diff --git a/CertManager/src/main/ets/pages/certInstallAliasInput.ets b/CertManager/src/main/ets/pages/certInstallAliasInput.ets index ae185e3..f3b4e76 100644 --- a/CertManager/src/main/ets/pages/certInstallAliasInput.ets +++ b/CertManager/src/main/ets/pages/certInstallAliasInput.ets @@ -144,10 +144,10 @@ struct CertInstallAliasInput { this.mAppCredAuthPresenter.checkCertNameLength(fileInfo.uri, this.certAlias, fileInfo.suffix, pwd) .then((result: number) => { if (result !== CMModelErrorCode.CM_MODEL_ERROR_SUCCESS) { - console.info("CertNameLength reached limit!"); + console.info('CertNameLength reached limit!'); this.isCertLong = true; } else { - console.info("CertNameLength is within the limit !"); + console.info('CertNameLength is within the limit!'); this.isCertLong = false; this.mAppCredAuthPresenter.installCert(fileInfo.uri, this.certAlias, fileInfo.suffix); } diff --git a/CertManager/src/main/ets/pages/certInstallFromStorage.ets b/CertManager/src/main/ets/pages/certInstallFromStorage.ets index 4d4bd49..98c12d2 100644 --- a/CertManager/src/main/ets/pages/certInstallFromStorage.ets +++ b/CertManager/src/main/ets/pages/certInstallFromStorage.ets @@ -222,7 +222,7 @@ struct CertificateComponent { .width(WidthPercent.WH_100_100) .height(WidthPercent.WH_100_100); } - .backgroundColor($r("sys.color.ohos_id_color_sub_background")) + .backgroundColor($r('sys.color.ohos_id_color_sub_background')) .width(WidthPercent.WH_100_100) .height(WidthPercent.WH_100_100); } @@ -230,8 +230,8 @@ struct CertificateComponent { onPageShow() { let uiExtensionFlag = GlobalContext.getContext().getFlag(); let installType: string = GlobalContext.getContext().getAbilityWant().parameters?.installType as string; - let uri = GlobalContext.getContext().getAbilityWant().uri - || GlobalContext.getContext().getAbilityWant().parameters?.uri; + let uri = GlobalContext.getContext().getAbilityWant().uri || + GlobalContext.getContext().getAbilityWant().parameters?.uri; GlobalContext.getContext().clearAbilityWantUri(); GlobalContext.getContext().clearAbilityWantParamsUri(); if (uri === 'certInstall') { diff --git a/CertManager/src/main/ets/presenter/CmInstallPresenter.ets b/CertManager/src/main/ets/presenter/CmInstallPresenter.ets index 6e519d6..57f054e 100644 --- a/CertManager/src/main/ets/presenter/CmInstallPresenter.ets +++ b/CertManager/src/main/ets/presenter/CmInstallPresenter.ets @@ -51,11 +51,11 @@ export default class CmInstallPresenter { console.debug(TAG + 'updateCertFileType suffix: ' + suffix); if ((suffix === 'cer') || (suffix === 'pem')) { this.optType = CMModelOptType.CM_MODEL_OPT_USER_CA; - } else if (((suffix === 'p12') || (suffix === 'jks') || (suffix === 'pfx')) - && AppStorage.get('installUserCred') === true) { + } else if (((suffix === 'p12') || (suffix === 'jks') || (suffix === 'pfx')) && + AppStorage.get('installUserCred') === true) { this.optType = CMModelOptType.CM_MODEL_OPT_APP_CRED; - } else if (((suffix === 'p12') || (suffix === 'jks') || (suffix === 'pfx')) - && AppStorage.get('installSystemCred') === true) { + } else if (((suffix === 'p12') || (suffix === 'jks') || (suffix === 'pfx')) && + AppStorage.get('installSystemCred') === true) { this.optType = CMModelOptType.CM_MODEL_OPT_SYSTEM_CRED; } else { console.debug(TAG, 'The file type is not supported. suffix: ' + suffix);