|
589 | 589 | </div> |
590 | 590 |
|
591 | 591 | <div class="form-group"> |
592 | | - <label class="form-label">{{ t("settings.security.autoBlocking.thresholds.authFailures.label") }}</label> |
| 592 | + <label class="form-label">{{ |
| 593 | + t("settings.security.autoBlocking.thresholds.authFailures.label") |
| 594 | + }}</label> |
593 | 595 | <span class="form-hint">{{ t("settings.security.autoBlocking.thresholds.authFailures.hint") }}</span> |
594 | 596 | <input |
595 | 597 | v-model.number="securitySettings.auth_failure_threshold" |
|
611 | 613 | </div> |
612 | 614 |
|
613 | 615 | <div class="form-group"> |
614 | | - <label class="form-label">{{ t("settings.security.autoBlocking.thresholds.repeatedHits.label") }}</label> |
| 616 | + <label class="form-label">{{ |
| 617 | + t("settings.security.autoBlocking.thresholds.repeatedHits.label") |
| 618 | + }}</label> |
615 | 619 | <span class="form-hint">{{ t("settings.security.autoBlocking.thresholds.repeatedHits.hint") }}</span> |
616 | 620 | <input |
617 | 621 | v-model.number="securitySettings.repeated_hits_threshold" |
|
754 | 758 | <i class="pi pi-user" /> |
755 | 759 | {{ cred.username }} |
756 | 760 | </span> |
757 | | - <span v-if="cred.is_default" class="credential-badge default">{{ t("settings.value.default") }}</span> |
| 761 | + <span v-if="cred.is_default" class="credential-badge default">{{ |
| 762 | + t("settings.value.default") |
| 763 | + }}</span> |
758 | 764 | </div> |
759 | 765 | </div> |
760 | 766 | <div v-if="canDeleteRegistries" class="credential-actions"> |
|
775 | 781 |
|
776 | 782 | <!-- Delete Confirmation Modal --> |
777 | 783 | <Teleport to="body"> |
778 | | - <div v-if="showDeleteConfirm" class="modal-overlay" @click.self="cancelDeleteCredential"> |
779 | | - <div class="confirm-modal"> |
780 | | - <div class="confirm-icon danger"> |
781 | | - <i class="pi pi-exclamation-triangle" /> |
782 | | - </div> |
783 | | - <h3>{{ t("settings.credentials.delete.title") }}</h3> |
784 | | - <i18n-t keypath="settings.credentials.delete.message" tag="p"> |
785 | | - <strong>{{ credentialToDelete?.name }}</strong> |
786 | | - </i18n-t> |
787 | | - <div class="confirm-actions"> |
788 | | - <button class="btn btn-secondary" @click="cancelDeleteCredential">{{ t("common.cancel") }}</button> |
789 | | - <button class="btn btn-danger" :disabled="deletingCredentialId !== null" @click="deleteCredential"> |
790 | | - <i v-if="deletingCredentialId" class="pi pi-spin pi-spinner" /> |
791 | | - {{ t("settings.credentials.actions.delete") }} |
792 | | - </button> |
793 | | - </div> |
| 784 | + <div v-if="showDeleteConfirm" class="modal-overlay" @click.self="cancelDeleteCredential"> |
| 785 | + <div class="confirm-modal"> |
| 786 | + <div class="confirm-icon danger"> |
| 787 | + <i class="pi pi-exclamation-triangle" /> |
| 788 | + </div> |
| 789 | + <h3>{{ t("settings.credentials.delete.title") }}</h3> |
| 790 | + <i18n-t keypath="settings.credentials.delete.message" tag="p"> |
| 791 | + <strong>{{ credentialToDelete?.name }}</strong> |
| 792 | + </i18n-t> |
| 793 | + <div class="confirm-actions"> |
| 794 | + <button class="btn btn-secondary" @click="cancelDeleteCredential">{{ t("common.cancel") }}</button> |
| 795 | + <button class="btn btn-danger" :disabled="deletingCredentialId !== null" @click="deleteCredential"> |
| 796 | + <i v-if="deletingCredentialId" class="pi pi-spin pi-spinner" /> |
| 797 | + {{ t("settings.credentials.actions.delete") }} |
| 798 | + </button> |
794 | 799 | </div> |
795 | 800 | </div> |
| 801 | + </div> |
796 | 802 | </Teleport> |
797 | 803 | </div> |
798 | 804 | </div> |
@@ -1010,7 +1016,10 @@ const createCredential = async () => { |
1010 | 1016 | password: newCredential.password, |
1011 | 1017 | is_default: newCredential.is_default, |
1012 | 1018 | }); |
1013 | | - notifications.success(t("settings.credentials.notifications.savedTitle"), t("settings.credentials.notifications.savedDesc")); |
| 1019 | + notifications.success( |
| 1020 | + t("settings.credentials.notifications.savedTitle"), |
| 1021 | + t("settings.credentials.notifications.savedDesc"), |
| 1022 | + ); |
1014 | 1023 | resetNewCredentialForm(); |
1015 | 1024 | showAddCredentialForm.value = false; |
1016 | 1025 | await fetchCredentials(); |
@@ -1199,9 +1208,15 @@ const saveSecuritySettings = async () => { |
1199 | 1208 | if (action.errors && action.errors.length > 0) { |
1200 | 1209 | notifications.error(t("settings.security.notifications.updateWarningTitle"), action.errors.join(", ")); |
1201 | 1210 | } else if (action.container_recreated) { |
1202 | | - notifications.success(t("settings.notifications.savedTitle"), t("settings.security.notifications.savedRecreated")); |
| 1211 | + notifications.success( |
| 1212 | + t("settings.notifications.savedTitle"), |
| 1213 | + t("settings.security.notifications.savedRecreated"), |
| 1214 | + ); |
1203 | 1215 | } else if (action.nginx_reloaded) { |
1204 | | - notifications.success(t("settings.notifications.savedTitle"), t("settings.security.notifications.savedReloaded")); |
| 1216 | + notifications.success( |
| 1217 | + t("settings.notifications.savedTitle"), |
| 1218 | + t("settings.security.notifications.savedReloaded"), |
| 1219 | + ); |
1205 | 1220 | } else { |
1206 | 1221 | notifications.success(t("settings.notifications.savedTitle"), t("settings.security.notifications.saved")); |
1207 | 1222 | } |
@@ -1248,7 +1263,10 @@ const testConnection = async () => { |
1248 | 1263 | }; |
1249 | 1264 |
|
1250 | 1265 | const refreshData = () => { |
1251 | | - notifications.info(t("settings.general.quickActions.refreshingTitle"), t("settings.general.quickActions.refreshingDesc")); |
| 1266 | + notifications.info( |
| 1267 | + t("settings.general.quickActions.refreshingTitle"), |
| 1268 | + t("settings.general.quickActions.refreshingDesc"), |
| 1269 | + ); |
1252 | 1270 | window.location.reload(); |
1253 | 1271 | }; |
1254 | 1272 |
|
|
0 commit comments