From 8271fb714ccfc82538c873e88b62c8141755ba90 Mon Sep 17 00:00:00 2001 From: Majid Achhoud Date: Fri, 24 Jan 2025 14:59:36 +0100 Subject: [PATCH 01/23] Add Web of Trust Section --- frontend/src/common/backend.ts | 4 + frontend/src/components/AdminSettings.vue | 162 ++++++++++++++++++++-- frontend/src/i18n/de-DE.json | 7 + frontend/src/i18n/en-US.json | 9 +- 4 files changed, 169 insertions(+), 13 deletions(-) diff --git a/frontend/src/common/backend.ts b/frontend/src/common/backend.ts index 47cbc11f..28413d3f 100644 --- a/frontend/src/common/backend.ts +++ b/frontend/src/common/backend.ts @@ -366,6 +366,10 @@ class SettingsService { public async get(): Promise { return axiosAuth.get('/settings').then(response => response.data); } + + public async put(settings: SettingsDto): Promise { + return axiosAuth.put('/settings', settings); + } } /** diff --git a/frontend/src/components/AdminSettings.vue b/frontend/src/components/AdminSettings.vue index cf264f5f..63ce9f1b 100644 --- a/frontend/src/components/AdminSettings.vue +++ b/frontend/src/components/AdminSettings.vue @@ -121,17 +121,32 @@ {{ t('admin.licenseInfo.expiresAt.description.expired') }}
+ {{ t('admin.webOfTrust.trustLevel.error') }} +
+ {{ t('admin.webOfTrust.maxChainLength.error') }} +
+ {{ t('admin.webOfTrust.description') }} +
{{ t('common.unexpectedError', [onSaveError.message]) }}
- {{ t('admin.webOfTrust.trustLevel.error') }} -
- {{ t('admin.webOfTrust.maxChainLength.error') }} -
- {{ t('admin.webOfTrust.trustLevel.error') }} + +
+ {{ t('admin.webOfTrust.wotMaxDepth.error') }}
- {{ t('admin.webOfTrust.maxChainLength.error') }} + +
+ {{ t('admin.webOfTrust.wotIdVerifyLen.error') }}
registered by
{{ event.updatedBy }}
maximum wot depth
{{ event.wotMaxDepth }}
fingerprint verification preciseness
{{ event.wotIdVerifyLen }}
{{ t('admin.webOfTrust.wotMaxDepth.error') }}
{{ t('admin.webOfTrust.wotIdVerifyLen.error') }}
updated by
@@ -59,7 +59,7 @@
{{ $t('admin.serverInfo.keycloakVersion.description') }} @@ -70,7 +70,7 @@
{{ t('admin.licenseInfo.seats.description.enoughSeats', [remainingSeats]) }} @@ -106,12 +106,12 @@
{{ t('admin.licenseInfo.expiresAt.description.valid') }} @@ -122,7 +122,7 @@
{{ t('admin.licenseInfo.seats.description.enoughSeats', [remainingSeats]) }} @@ -172,7 +172,7 @@
{{ t('auditLog.paymentRequired.description') }}
{{ t('claimVaultOwnershipDialog.description') }}
{{ t('createVault.error.illegalVaultName') }} \, /, :, *, ?, ", <, >, |
{{ t('createVault.error.formValidationFailed') }}
{{ t('common.unexpectedError', [onCreateError.message]) }}
diff --git a/frontend/src/components/EditVaultMetadataDialog.vue b/frontend/src/components/EditVaultMetadataDialog.vue index 2739c2ab..cddf6c17 100644 --- a/frontend/src/components/EditVaultMetadataDialog.vue +++ b/frontend/src/components/EditVaultMetadataDialog.vue @@ -2,7 +2,7 @@ - + @@ -26,23 +26,23 @@ {{ t('editVaultMetadataDialog.vaultName') }} - + {{ t('editVaultMetadataDialog.vaultDescription') }} ({{ t('common.optional') }}) - +
You don't have the permission to access this page.
{{ t('initialSetup.recoverUserKey.accountKey.description') }}
{{ t('initialSetup.recoverUserKey.deviceName.description') }}
Please check the URL in the address bar and try again.
{{ t('recoverVaultDialog.description') }}
@@ -56,7 +56,7 @@
diff --git a/frontend/src/components/SearchInputGroup.vue b/frontend/src/components/SearchInputGroup.vue index 00dfe7da..b8ede174 100644 --- a/frontend/src/components/SearchInputGroup.vue +++ b/frontend/src/components/SearchInputGroup.vue @@ -1,6 +1,6 @@ - - + + selectedItem = item"> @@ -8,11 +8,11 @@ - - + + - + @@ -27,7 +27,7 @@ - + {{ actionTitle }} diff --git a/frontend/src/components/SignUserKeysDialog.vue b/frontend/src/components/SignUserKeysDialog.vue index 2f6508b0..ffecd853 100644 --- a/frontend/src/components/SignUserKeysDialog.vue +++ b/frontend/src/components/SignUserKeysDialog.vue @@ -2,7 +2,7 @@ - + @@ -26,7 +26,7 @@ Fingerprint - + @@ -37,10 +37,10 @@ - + {{ t('signUserKeysDialog.submit') }} - + {{ t('common.cancel') }} diff --git a/frontend/src/components/SimpleNavigationBar.vue b/frontend/src/components/SimpleNavigationBar.vue index 02d151b4..ebaadf26 100644 --- a/frontend/src/components/SimpleNavigationBar.vue +++ b/frontend/src/components/SimpleNavigationBar.vue @@ -13,13 +13,13 @@ - + Open user menu - + {{ t('nav.profile.signedInAs') }} {{ me.name }} diff --git a/frontend/src/components/SlideOver.vue b/frontend/src/components/SlideOver.vue index 457c0cda..bd031d12 100644 --- a/frontend/src/components/SlideOver.vue +++ b/frontend/src/components/SlideOver.vue @@ -14,7 +14,7 @@ {{ title }} - + Close panel diff --git a/frontend/src/components/TrustDetails.vue b/frontend/src/components/TrustDetails.vue index 027963fe..f2b01694 100644 --- a/frontend/src/components/TrustDetails.vue +++ b/frontend/src/components/TrustDetails.vue @@ -1,16 +1,16 @@ - + - + {{ t('trustDetails.trustLevel.untrusted') }} {{ t('trustDetails.trustLevel', [ n(1, 'percent')]) }} {{ t('trustDetails.trustLevel', [ n(1 / trustLevel, 'percent')]) }} - + {{ t('trustDetails.showSignDialogBtn') }} {{ t('trustDetails.userNotSetUp') }} diff --git a/frontend/src/components/UnlockError.vue b/frontend/src/components/UnlockError.vue index 89bdd0fe..6c04b3ed 100644 --- a/frontend/src/components/UnlockError.vue +++ b/frontend/src/components/UnlockError.vue @@ -9,7 +9,7 @@ - + diff --git a/frontend/src/components/UnlockSuccess.vue b/frontend/src/components/UnlockSuccess.vue index 8a3b4fb3..8697cbc7 100644 --- a/frontend/src/components/UnlockSuccess.vue +++ b/frontend/src/components/UnlockSuccess.vue @@ -12,7 +12,7 @@ - + @@ -27,7 +27,7 @@ Complete setting up your account and retrieve your account key. - Complete Setup + Complete Setup @@ -38,7 +38,7 @@ Please enter your account key in Cryptomator to authorize it. - View Account Key in my Profile + View Account Key in my Profile diff --git a/frontend/src/components/UserProfile.vue b/frontend/src/components/UserProfile.vue index 7de4af1d..4cfa1597 100644 --- a/frontend/src/components/UserProfile.vue +++ b/frontend/src/components/UserProfile.vue @@ -18,13 +18,13 @@ {{ me.email }} - + {{ t('userProfile.actions.manageAccount') }} - + {{ t('userProfile.actions.changeLanguage') }} @@ -32,7 +32,7 @@ - + {{ t(`locale.${locale}`) }} diff --git a/frontend/src/components/UserkeyFingerprint.vue b/frontend/src/components/UserkeyFingerprint.vue index d9ad858e..08b86b22 100644 --- a/frontend/src/components/UserkeyFingerprint.vue +++ b/frontend/src/components/UserkeyFingerprint.vue @@ -7,7 +7,7 @@ {{ t('userkeyFingerprint.description') }} - + {{ t('userkeyFingerprint.title') }} diff --git a/frontend/src/components/VaultDetails.vue b/frontend/src/components/VaultDetails.vue index 3fcfc098..42bc5820 100644 --- a/frontend/src/components/VaultDetails.vue +++ b/frontend/src/components/VaultDetails.vue @@ -11,7 +11,7 @@ - + {{ t('vaultDetails.warning.archived') }} @@ -49,8 +49,8 @@ {{ member.name }} {{ t('vaultDetails.sharedWith.badge.owner') }} - - + + Open options menu @@ -58,7 +58,7 @@ - + @@ -90,7 +90,7 @@ - + @@ -117,7 +117,7 @@ - + {{ t('vaultDetails.actions.claimOwnership') }} @@ -125,11 +125,11 @@ - + {{ t('vaultDetails.actions.editVaultMetadata') }} - + {{ t('vaultDetails.actions.archiveVault') }} @@ -137,13 +137,13 @@ - + {{ t('vaultDetails.recoverVault.title') }} {{ t('vaultDetails.recoverVault.description') }} - + {{ t('vaultDetails.actions.recoverVault') }} @@ -151,15 +151,15 @@ - + {{ t('vaultDetails.actions.downloadVaultTemplate') }} - + {{ t('vaultDetails.actions.displayRecoveryKey') }} - + {{ t('vaultDetails.actions.reactivateVault') }} @@ -168,28 +168,28 @@ - + {{ t('vaultDetails.actions.updatePermissions') }} - + {{ t('vaultDetails.actions.updatePermissions.reload') }} - + {{ t('vaultDetails.actions.editVaultMetadata') }} - + {{ t('vaultDetails.actions.downloadVaultTemplate') }} - + {{ t('vaultDetails.actions.displayRecoveryKey') }} - + {{ t('vaultDetails.actions.archiveVault') }} diff --git a/frontend/src/components/VaultList.vue b/frontend/src/components/VaultList.vue index 36afe773..2032226b 100644 --- a/frontend/src/components/VaultList.vue +++ b/frontend/src/components/VaultList.vue @@ -15,18 +15,18 @@ - + - + {{ filterOptions[selectedFilter] }} - + {{ name }} @@ -40,14 +40,14 @@ - + {{ t('vaultList.addVault') }} - + @@ -71,7 +71,7 @@ - +
{{ t('trustDetails.trustLevel.untrusted') }}
{{ t('trustDetails.trustLevel', [ n(1, 'percent')]) }}
{{ t('trustDetails.trustLevel', [ n(1 / trustLevel, 'percent')]) }}
{{ t('trustDetails.userNotSetUp') }}
Complete setting up your account and retrieve your account key.
Please enter your account key in Cryptomator to authorize it.
{{ me.email }}
{{ t('vaultDetails.warning.archived') }}
{{ member.name }}
{{ t('vaultDetails.recoverVault.description') }}