Skip to content

Commit

Permalink
encryption madness
Browse files Browse the repository at this point in the history
  • Loading branch information
jlcvp committed Sep 22, 2024
1 parent 49352ff commit 75146a4
Show file tree
Hide file tree
Showing 14 changed files with 718 additions and 317 deletions.
33 changes: 32 additions & 1 deletion .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -1,3 +1,34 @@
{
"typescript.preferences.autoImportFileExcludePatterns": ["@ionic/angular/common", "@ionic/angular/standalone"]
"typescript.preferences.autoImportFileExcludePatterns": [
"@ionic/angular/common",
"@ionic/angular/standalone"
],
"i18n-ally.localesPaths": [
"src/assets/i18n",
],
"i18n-ally.keystyle": "nested",
"i18n-ally.keysInUse": [
"CRYPTO_API_NOT_SUPPORTED",
"ACCOUNT_SELECT_MODAL.DESELECT_ALL",
"ACCOUNT_SELECT_MODAL.SELECT_ALL",
"ADD_ACCOUNT_MODAL.ERROR_MSGS.INVALID_SESSION",
"ACCOUNT_SYNC.ERROR.CORRUPT_BACKUP_FILE",
"ACCOUNT_SYNC.ERROR.EMPTY_FILE",
"ACCOUNT_SYNC.ERROR.GENERIC_IMPORT_ERROR",
"ACCOUNT_SYNC.ERROR.NO_ACCOUNTS_SELECTED_TO_IMPORT",
"CONFIG_MENU.ENCRYPTION_ACTIVE",
"CONFIG_MENU.ENCRYPTION_INACTIVE",
"CRYPTO.ALREADY_DECRYPTED",
"CRYPTO.ALREADY_ENCRYPTED",
"CRYPTO.MISSING_ENCRYPTED_DATA",
"LOGIN.VALIDATION_MSGS.EMAIL_PATTERN",
"LOGIN.VALIDATION_MSGS.REQUIRED_EMAIL",
"LOGIN.VALIDATION_MSGS.REQUIRED_PASSWORD",
"LOGIN.ERROR_MSGS.DEFAULT_ERROR",
"LOGIN.ERROR_MSGS.INVALID_PASSWORD",
"LOGIN.ERROR_MSGS.TOO_MANY_ATTEMPTS_TRY_LATER",
"LOGIN.ERROR_MSGS.USER_NOT_FOUND",
"ACCOUNT_SERVICE.ERROR.ACCOUNT_NOT_FOUND",
"UTILS.ERROR_INVALID_SEMVER_FORMAT"
]
}
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
<ion-title>{{ title || ("ACCOUNT_SELECT_MODAL.DEFAULT_TITLE" | translate) }}</ion-title>
<ion-buttons slot="end">
<ion-button (click)="onConfirm()" [disabled]="selectedAccountsCount<1">
<ion-label>{{ confirmText || ("CONFIRM_SELECTION.EXPORT" | translate) }}</ion-label>
<ion-label>{{ confirmText || ("ACCOUNT_SELECT_MODAL.CONFIRM_SELECTION" | translate) }}</ion-label>
</ion-button>
</ion-buttons>
</ion-toolbar>
Expand Down
29 changes: 12 additions & 17 deletions src/app/home/home.page.html
Original file line number Diff line number Diff line change
Expand Up @@ -9,22 +9,10 @@
<ng-template>
<ion-content>
<ion-list class="ion-no-padding">
<ion-item button detail="false" (click)="unlockAccountAction()">
<ion-icon slot="start" name="lock-open-outline"></ion-icon>
<ion-label>{{ "CONFIG_MENU.UNLOCK" | translate }}</ion-label>
</ion-item>
<ion-item button detail="false" (click)="addAccountAction()">
<ion-icon slot="start" name="add-outline"></ion-icon>
<ion-label>{{ "CONFIG_MENU.ADD_ACCOUNT" | translate }}</ion-label>
</ion-item>
<ion-item button detail="false" (click)="exportAccountAction()">
<ion-icon slot="start" name="share-outline"></ion-icon>
<ion-label>{{ "CONFIG_MENU.EXPORT_ACCOUNTS" | translate }}</ion-label>
</ion-item>
<ion-item button detail="false" (click)="importAccountAction()">
<ion-icon slot="start" name="download-outline"></ion-icon>
<ion-label>{{ "CONFIG_MENU.IMPORT_ACCOUNTS" | translate }}</ion-label>
</ion-item>
<ion-item button detail="true" id="encryption-menu-trigger">
<ion-icon slot="start" name="document-lock-outline"></ion-icon>
<ion-label>{{ "CONFIG_MENU.ENCRYPTION_OPTIONS" | translate }}</ion-label>
Expand All @@ -40,14 +28,18 @@
<ion-item button detail="false" (click)="periodicCheckToggle()">
<ion-toggle [checked]="shouldPeriodicCheckPassword"> {{ "CONFIG_MENU.PERIODIC_CHECK" | translate }} </ion-toggle>
</ion-item>
<!-- <ion-item button detail="false" (click)="changeEncryptionAction('password')">
<ion-icon slot="start" ></ion-icon>
<ion-label>{{ "CONFIG_MENU.ENCRYPTION_PASSWORD" | translate }}</ion-label>
</ion-item> -->
</ion-list>
</ion-content>
</ng-template>
</ion-popover>
<ion-item button detail="false" (click)="exportAccountAction()">
<ion-icon slot="start" name="share-outline"></ion-icon>
<ion-label>{{ "CONFIG_MENU.EXPORT_ACCOUNTS" | translate }}</ion-label>
</ion-item>
<ion-item button detail="false" (click)="importAccountAction()">
<ion-icon slot="start" name="download-outline"></ion-icon>
<ion-label>{{ "CONFIG_MENU.IMPORT_ACCOUNTS" | translate }}</ion-label>
</ion-item>
<ion-item button detail="true" id="dark-mode-trigger">
<ion-icon slot="start" name="invert-mode-outline"></ion-icon>
<ion-label> {{ "CONFIG_MENU.COLOR_MODE" | translate }} </ion-label>
Expand Down Expand Up @@ -77,9 +69,12 @@
<ion-icon slot="start" name="log-out-outline"></ion-icon>
<ion-label>{{ "CONFIG_MENU.LOGOUT" | translate }}</ion-label>
</ion-item>

</ion-list>
</ion-content>
<ion-footer class="ion-no-padding ion-no-margin ion-text-center ion-activatable ripple-parent version-info" (click)="showVersionInfo()">
<ion-ripple-effect></ion-ripple-effect>
<ion-note class="ion-no-padding ion-no-margin">{{ versionInfo.versionName }}</ion-note>
</ion-footer>
</ng-template>
</ion-popover>
</ion-buttons>
Expand Down
Loading

0 comments on commit 75146a4

Please sign in to comment.