From 8cfdb2533787ef70ed9cd733f9ce817ab5413d0e Mon Sep 17 00:00:00 2001 From: samerbahri98 Date: Mon, 5 Feb 2024 21:18:24 +0100 Subject: [PATCH] feat(ui) backup --- web/src/lang/de.js | 2 ++ web/src/lang/en.js | 2 ++ web/src/lang/es.js | 2 ++ web/src/lang/fr.js | 2 ++ web/src/lang/it.js | 2 ++ web/src/lang/pl.js | 2 ++ web/src/lang/pt.js | 2 ++ web/src/lang/pt_br.js | 2 ++ web/src/lang/ru.js | 2 ++ web/src/lang/zh_hans.js | 2 ++ web/src/lang/zh_hant.js | 2 ++ web/src/views/project/Settings.vue | 51 ++++++++++++++++++++++++------ 12 files changed, 64 insertions(+), 9 deletions(-) diff --git a/web/src/lang/de.js b/web/src/lang/de.js index 0e576e52..1dcbcb4e 100644 --- a/web/src/lang/de.js +++ b/web/src/lang/de.js @@ -1,4 +1,6 @@ export default { + backup: 'Sicherung', + downloadTheProjectBackupFile: 'Laden Sie die Projektsicherungsdatei (in JSON) herunter.', incorrectUsrPwd: 'Falscher Benutzername oder falsches Passwort', askDeleteUser: 'Soll dieser Benutzer gelöscht werden?', askDeleteTemp: 'Soll diese Vorlage gelöscht werden?', diff --git a/web/src/lang/en.js b/web/src/lang/en.js index 16588d94..4423267e 100644 --- a/web/src/lang/en.js +++ b/web/src/lang/en.js @@ -1,4 +1,6 @@ export default { + backup: 'Backup', + downloadTheProjectBackupFile: 'Download the project backup file (in json)', incorrectUsrPwd: 'Incorrect login or password', askDeleteUser: 'Do you really want to delete this user?', askDeleteTemp: 'Do you really want to delete this template?', diff --git a/web/src/lang/es.js b/web/src/lang/es.js index d17e2635..11dfbb3c 100644 --- a/web/src/lang/es.js +++ b/web/src/lang/es.js @@ -1,4 +1,6 @@ export default { + backup: 'Respaldo', + downloadTheProjectBackupFile: 'Descargue el archivo de copia de seguridad del proyecto (en json)', incorrectUsrPwd: 'Usuario o contraseña incorrecta', askDeleteUser: '¿Realmente desea eliminar este usuario?', askDeleteTemp: '¿Realmente desea eliminar esta plantilla?', diff --git a/web/src/lang/fr.js b/web/src/lang/fr.js index 197aef9f..4cd6e299 100644 --- a/web/src/lang/fr.js +++ b/web/src/lang/fr.js @@ -1,4 +1,6 @@ export default { + backup: 'Sauvegarde', + downloadTheProjectBackupFile: 'Téléchargez le fichier de sauvegarde du projet (en json)', incorrectUsrPwd: 'Identifiant ou mot de passe incorrect', askDeleteUser: 'Voulez-vous vraiment supprimer cet utilisateur ?', askDeleteTemp: 'Voulez-vous vraiment supprimer ce modèle ?', diff --git a/web/src/lang/it.js b/web/src/lang/it.js index 2d520920..50acbbe9 100644 --- a/web/src/lang/it.js +++ b/web/src/lang/it.js @@ -1,4 +1,6 @@ export default { + backup: 'backup', + downloadTheProjectBackupFile: 'Scarica il file di backup del progetto (in json)', incorrectUsrPwd: 'Nome utente o password errati', askDeleteUser: 'Vuoi davvero eliminare questo utente?', askDeleteTemp: 'Vuoi davvero eliminare questo modello?', diff --git a/web/src/lang/pl.js b/web/src/lang/pl.js index 7e56bc63..d1a9d95f 100644 --- a/web/src/lang/pl.js +++ b/web/src/lang/pl.js @@ -1,4 +1,6 @@ export default { + backup: 'Kopia zapasowa', + downloadTheProjectBackupFile: 'Pobierz plik kopii zapasowej projektu (w formacie json)', incorrectUsrPwd: 'Nieprawidłowa nazwa użytkownika lub hasło.', askDeleteUser: 'Czy na pewno chcesz usunąć tego użytkownika?', askDeleteTemp: 'Czy na pewno chcesz usunąć ten szablon?', diff --git a/web/src/lang/pt.js b/web/src/lang/pt.js index 7769cb0f..c8909dee 100644 --- a/web/src/lang/pt.js +++ b/web/src/lang/pt.js @@ -1,4 +1,6 @@ export default { + backup: 'Cópia de segurança', + downloadTheProjectBackupFile: 'Baixe o arquivo de backup do projeto (em json)', incorrectUsrPwd: 'Nome de utilizador ou palavra-passe incorretos', askDeleteUser: 'Tem a certeza de que deseja eliminar este utilizador?', askDeleteTemp: 'Tem a certeza de que deseja eliminar este modelo?', diff --git a/web/src/lang/pt_br.js b/web/src/lang/pt_br.js index 6bdd6d5d..193578f5 100644 --- a/web/src/lang/pt_br.js +++ b/web/src/lang/pt_br.js @@ -1,4 +1,6 @@ export default { + backup: 'Cópia de segurança', + downloadTheProjectBackupFile: 'Baixe o arquivo de backup do projeto (em json)', incorrectUsrPwd: 'Usuário ou senha incorretos', askDeleteUser: 'Você realmente deseja excluir este usuário?', askDeleteTemp: 'Você realmente deseja excluir este modelo?', diff --git a/web/src/lang/ru.js b/web/src/lang/ru.js index 32b67eb2..571284e5 100644 --- a/web/src/lang/ru.js +++ b/web/src/lang/ru.js @@ -1,4 +1,6 @@ export default { + backup: 'Бэкап', + downloadTheProjectBackupFile: 'Загрузите файл резервной копии проекта (в формате JSON)', incorrectUsrPwd: 'Некорректный логин или пароль', askDeleteUser: 'Вы действительно хотите удалить этого пользователя?', askDeleteTemp: 'Вы действительно хотите удалить этот шаблон?', diff --git a/web/src/lang/zh_hans.js b/web/src/lang/zh_hans.js index 4bfe9d2c..389dd47c 100644 --- a/web/src/lang/zh_hans.js +++ b/web/src/lang/zh_hans.js @@ -1,4 +1,6 @@ export default { + backup: '备份', + downloadTheProjectBackupFile: '下载项目备份文件(json格式)', incorrectUsrPwd: '用户名或密码错误', askDeleteUser: '您确定要删除此用户吗?', askDeleteTemp: '您确实要删除此模板吗?', diff --git a/web/src/lang/zh_hant.js b/web/src/lang/zh_hant.js index 89f388fc..f633fc3b 100644 --- a/web/src/lang/zh_hant.js +++ b/web/src/lang/zh_hant.js @@ -1,4 +1,6 @@ export default { + backup: '備份', + downloadTheProjectBackupFile: '下載專案備份檔(json格式)', incorrectUsrPwd: '使用者名稱或密碼錯誤', askDeleteUser: '您確定要刪除此使用者嗎? ', askDeleteTemp: '您確實要刪除此範本嗎? ', diff --git a/web/src/views/project/Settings.vue b/web/src/views/project/Settings.vue index c45570ab..5a4d7258 100644 --- a/web/src/views/project/Settings.vue +++ b/web/src/views/project/Settings.vue @@ -27,8 +27,20 @@ {{ $t('save') }} - -
+
+ + + {{ $t('backup') }} + + + +
+ {{ $t('downloadTheProjectBackupFile') }} +
+
+
+
+
{{ $t('deleteProject2') }} @@ -44,14 +56,13 @@