From e9de11169346111122a210fe318a7a777f47ea96 Mon Sep 17 00:00:00 2001 From: Dominika Jadowska Date: Fri, 26 Jul 2024 19:14:14 +0200 Subject: [PATCH] Add an update all funtion --- frontend/src/components/StackList.vue | 21 ++++++++++++++++++++- frontend/src/lang/ar.json | 3 ++- frontend/src/lang/bg-BG.json | 3 ++- frontend/src/lang/ca.json | 3 ++- frontend/src/lang/cs-CZ.json | 3 ++- frontend/src/lang/da.json | 3 ++- frontend/src/lang/de.json | 3 ++- frontend/src/lang/en.json | 3 ++- frontend/src/lang/es.json | 3 ++- frontend/src/lang/fr.json | 3 ++- frontend/src/lang/hu.json | 3 ++- frontend/src/lang/id.json | 3 ++- frontend/src/lang/it-IT.json | 3 ++- frontend/src/lang/ja.json | 3 ++- frontend/src/lang/ko-KR.json | 3 ++- frontend/src/lang/nl.json | 3 ++- frontend/src/lang/pl-PL.json | 3 ++- frontend/src/lang/pt-BR.json | 3 ++- frontend/src/lang/pt.json | 3 ++- frontend/src/lang/ro.json | 3 ++- frontend/src/lang/ru.json | 3 ++- frontend/src/lang/sl.json | 3 ++- frontend/src/lang/sv-SE.json | 3 ++- frontend/src/lang/th.json | 3 ++- frontend/src/lang/tr.json | 3 ++- frontend/src/lang/uk-UA.json | 3 ++- frontend/src/lang/ur.json | 3 ++- frontend/src/lang/vi.json | 3 ++- frontend/src/lang/zh-CN.json | 3 ++- frontend/src/lang/zh-TW.json | 3 ++- 30 files changed, 78 insertions(+), 30 deletions(-) diff --git a/frontend/src/components/StackList.vue b/frontend/src/components/StackList.vue index 6b00cb2..713dbd1 100644 --- a/frontend/src/components/StackList.vue +++ b/frontend/src/components/StackList.vue @@ -8,6 +8,7 @@
+
@@ -19,6 +20,12 @@
+
+ +
@@ -346,6 +353,18 @@ export default { this.cancelSelectMode(); }, + + updateAll() { + console.log("updateAll"); + console.log(this.sortedStackList); + for (let stack of this.sortedStackList) { + console.log(stack); + this.$root.emitAgent(stack.endpoint, "updateStack", stack.name, (res) => { + this.processing = false; + this.$root.toastRes(res); + }); + } + } }, }; @@ -417,7 +436,7 @@ export default { } .search-input { - max-width: 15em; + max-width: 10em; } .stack-item { diff --git a/frontend/src/lang/ar.json b/frontend/src/lang/ar.json index c50bafb..ba2a3b4 100644 --- a/frontend/src/lang/ar.json +++ b/frontend/src/lang/ar.json @@ -98,5 +98,6 @@ "url": "رابط | روابط", "extra": "إضافات", "reverseProxyMsg1": "هل تستدخم خادم عكسي؟", - "connecting...": "جاري الاتصال بخادم المقبس…" + "connecting...": "جاري الاتصال بخادم المقبس…", + "updateAll": "تحديث الكل", } diff --git a/frontend/src/lang/bg-BG.json b/frontend/src/lang/bg-BG.json index 136d226..9e85c44 100644 --- a/frontend/src/lang/bg-BG.json +++ b/frontend/src/lang/bg-BG.json @@ -112,5 +112,6 @@ "dockgeAgent": "Dockge агент | Dockge агенти", "connecting": "Свързване", "agentRemovedSuccessfully": "Агентът е премахнат успешно.", - "LongSyntaxNotSupported": "Дългият синтаксис не се поддържа тук. Моля, използвайте YAML редактора." + "LongSyntaxNotSupported": "Дългият синтаксис не се поддържа тук. Моля, използвайте YAML редактора.", + "updateAll": "Обнови всички" } diff --git a/frontend/src/lang/ca.json b/frontend/src/lang/ca.json index 71f46fa..d8afa37 100644 --- a/frontend/src/lang/ca.json +++ b/frontend/src/lang/ca.json @@ -111,5 +111,6 @@ "Please use this option carefully!": "Si us plau, utilitzeu aquesta opció amb cura!", "Enable Auth": "Habilitar autenticació", "I understand, please disable": "Ho entenc, si us plau deshabilita", - "Password": "Contrasenya" + "Password": "Contrasenya", + "updateAll": "Actualitzar totes" } diff --git a/frontend/src/lang/cs-CZ.json b/frontend/src/lang/cs-CZ.json index 67f62b9..0ff2c38 100644 --- a/frontend/src/lang/cs-CZ.json +++ b/frontend/src/lang/cs-CZ.json @@ -97,5 +97,6 @@ "extra": "Extra", "reverseProxyMsg1": "Používáte Reverzní proxy server?", "reverseProxyMsg2": "Podívat se jak to nastavit pro WebSocket", - "Cannot connect to the socket server.": "Nelze se připojit k serveru ." + "Cannot connect to the socket server.": "Nelze se připojit k serveru .", + "updateAll": "Aktualizovat všechny" } diff --git a/frontend/src/lang/da.json b/frontend/src/lang/da.json index 43739b6..f1cd14b 100644 --- a/frontend/src/lang/da.json +++ b/frontend/src/lang/da.json @@ -111,5 +111,6 @@ "agentAddedSuccessfully": "Agent succesfuld tilføjet.", "agentRemovedSuccessfully": "Agent succesfuld fjernet.", "removeAgent": "Fjern agent", - "removeAgentMsg": "Er du sikker på at du vil fjerne denne agent?" + "removeAgentMsg": "Er du sikker på at du vil fjerne denne agent?", + "updateAll": "Opdater alle" } diff --git a/frontend/src/lang/de.json b/frontend/src/lang/de.json index 58bf442..0e07894 100644 --- a/frontend/src/lang/de.json +++ b/frontend/src/lang/de.json @@ -112,5 +112,6 @@ "agentRemovedSuccessfully": "Agent erfolgreich entfernt.", "removeAgent": "Agent Entfernen", "removeAgentMsg": "Bist Du sicher, dass Du diesen Agent entfernen möchtest?", - "LongSyntaxNotSupported": "Lange Syntax wird nicht unterstützt. Bitte verwende den YAML-Editor." + "LongSyntaxNotSupported": "Lange Syntax wird nicht unterstützt. Bitte verwende den YAML-Editor.", + "updateAll": "Alle aktualisieren" } diff --git a/frontend/src/lang/en.json b/frontend/src/lang/en.json index 93bf53a..5d13ad2 100644 --- a/frontend/src/lang/en.json +++ b/frontend/src/lang/en.json @@ -112,5 +112,6 @@ "agentRemovedSuccessfully": "Agent removed successfully.", "removeAgent": "Remove Agent", "removeAgentMsg": "Are you sure you want to remove this agent?", - "LongSyntaxNotSupported": "Long syntax is not supported here. Please use the YAML editor." + "LongSyntaxNotSupported": "Long syntax is not supported here. Please use the YAML editor.", + "updateAll": "Update All" } diff --git a/frontend/src/lang/es.json b/frontend/src/lang/es.json index 30d24a6..6483091 100644 --- a/frontend/src/lang/es.json +++ b/frontend/src/lang/es.json @@ -111,5 +111,6 @@ "removeAgentMsg": "Estás seguro que deseas remover este agente?", "dockgeAgent": "Agentes Dockge", "connecting": "Conectando", - "agentRemovedSuccessfully": "Agente removido satisfactoriamente." + "agentRemovedSuccessfully": "Agente removido satisfactoriamente.", + "updateAll": "Actualizar todos" } diff --git a/frontend/src/lang/fr.json b/frontend/src/lang/fr.json index 9f637a0..ee2897e 100644 --- a/frontend/src/lang/fr.json +++ b/frontend/src/lang/fr.json @@ -112,5 +112,6 @@ "currentEndpoint": "Actuel", "connect": "Connecter", "removeAgentMsg": "Êtes-vous sûr de vouloir supprimer cet agent ?", - "LongSyntaxNotSupported": "La syntaxe longue n'est pas prise en charge ici. Veuillez utiliser l'éditeur YAML." + "LongSyntaxNotSupported": "La syntaxe longue n'est pas prise en charge ici. Veuillez utiliser l'éditeur YAML.", + "updateAll": "Mettre à jour tout" } diff --git a/frontend/src/lang/hu.json b/frontend/src/lang/hu.json index 8d940da..74f08ee 100644 --- a/frontend/src/lang/hu.json +++ b/frontend/src/lang/hu.json @@ -111,5 +111,6 @@ "Cannot connect to the socket server.": "A Socket csatlakozás nem elérhető.", "connecting...": "Csatlakozás a socket szerver-hez…", "url": "URL | URL-ek", - "dockgeURL": "Dockge URL (pl. http://127.0.0.1:5001)" + "dockgeURL": "Dockge URL (pl. http://127.0.0.1:5001)", + "updateAll": "Frissítés Minden" } diff --git a/frontend/src/lang/id.json b/frontend/src/lang/id.json index 3d97a30..46e6cc7 100644 --- a/frontend/src/lang/id.json +++ b/frontend/src/lang/id.json @@ -111,5 +111,6 @@ "currentEndpoint": "Sekarang", "agentOnline": "Terhubung", "agentOffline": "Terputus", - "removeAgentMsg": "Apakah anda yakin untuk menghapus agen ini?" + "removeAgentMsg": "Apakah anda yakin untuk menghapus agen ini?", + "updateAll": "Perbarui Semua" } diff --git a/frontend/src/lang/it-IT.json b/frontend/src/lang/it-IT.json index 64c987f..d213d2a 100644 --- a/frontend/src/lang/it-IT.json +++ b/frontend/src/lang/it-IT.json @@ -111,5 +111,6 @@ "removeAgent": "Rimuovi Agente", "removeAgentMsg": "Sei sicuro di voler rimuovere questo agente?", "addAgent": "Aggungi Agente", - "agentAddedSuccessfully": "Agente aggiunto correttamente." + "agentAddedSuccessfully": "Agente aggiunto correttamente.", + "updateAll": "Aggiorna tutti" } diff --git a/frontend/src/lang/ja.json b/frontend/src/lang/ja.json index c4fb072..c78da95 100644 --- a/frontend/src/lang/ja.json +++ b/frontend/src/lang/ja.json @@ -107,5 +107,6 @@ "agentRemovedSuccessfully": "エージェントは正常に削除されました。", "removeAgent": "エージェントを削除", "removeAgentMsg": "本当にこのエージェントを削除しますか?", - "url": "URL | URL" + "url": "URL | URL", + "updateAll": "全てのエージェントをアップデート" } diff --git a/frontend/src/lang/ko-KR.json b/frontend/src/lang/ko-KR.json index 515c897..e5f72bb 100644 --- a/frontend/src/lang/ko-KR.json +++ b/frontend/src/lang/ko-KR.json @@ -112,5 +112,6 @@ "currentEndpoint": "현재", "connecting": "연결 중", "agentRemovedSuccessfully": "에이전트를 성공적으로 삭제했습니다.", - "LongSyntaxNotSupported": "긴 문법은 여기서 지원되지 않습니다. YAML 에디터를 사용하세요." + "LongSyntaxNotSupported": "긴 문법은 여기서 지원되지 않습니다. YAML 에디터를 사용하세요.", + "updateAll": "정지 & 비활성화" } diff --git a/frontend/src/lang/nl.json b/frontend/src/lang/nl.json index 4063c54..47403dc 100644 --- a/frontend/src/lang/nl.json +++ b/frontend/src/lang/nl.json @@ -111,5 +111,6 @@ "agentAddedSuccessfully": "Agent toegevoegd.", "agentRemovedSuccessfully": "Agent verwijderd.", "removeAgent": "Verwijder agent", - "removeAgentMsg": "Weet je zeker dat je deze agent wilt verwijderen?" + "removeAgentMsg": "Weet je zeker dat je deze agent wilt verwijderen?", + "updateAll": "Update alles" } diff --git a/frontend/src/lang/pl-PL.json b/frontend/src/lang/pl-PL.json index 3bc17b3..a98c0bd 100644 --- a/frontend/src/lang/pl-PL.json +++ b/frontend/src/lang/pl-PL.json @@ -111,5 +111,6 @@ "connecting...": "Łączenie z socketem serwera…", "extra": "Ekstra", "url": "URL | URLe", - "reconnecting...": "Wznawianie połączenia…" + "reconnecting...": "Wznawianie połączenia…", + "updateAll": "Zaktualizuj wszystkie" } diff --git a/frontend/src/lang/pt-BR.json b/frontend/src/lang/pt-BR.json index f79c006..cc7765a 100644 --- a/frontend/src/lang/pt-BR.json +++ b/frontend/src/lang/pt-BR.json @@ -111,5 +111,6 @@ "agentAddedSuccessfully": "Agente adicionado com sucesso.", "agentRemovedSuccessfully": "Agente removido com sucesso.", "removeAgent": "Remover Agente", - "removeAgentMsg": "Tem certeza de que deseja remover este agente?" + "removeAgentMsg": "Tem certeza de que deseja remover este agente?", + "updateAll": "Atualizar tudo" } diff --git a/frontend/src/lang/pt.json b/frontend/src/lang/pt.json index a584d68..2d98725 100644 --- a/frontend/src/lang/pt.json +++ b/frontend/src/lang/pt.json @@ -111,5 +111,6 @@ "url": "URL | URLs", "extra": "Extra", "reconnecting...": "Reconectando…", - "connecting...": "Conectando ao servidor de socket…" + "connecting...": "Conectando ao servidor de socket…", + "updateAll": "Atualizar tudo" } diff --git a/frontend/src/lang/ro.json b/frontend/src/lang/ro.json index 83c09ae..c92764c 100644 --- a/frontend/src/lang/ro.json +++ b/frontend/src/lang/ro.json @@ -98,5 +98,6 @@ "Please use this option carefully!": "Vă rugăm să utilizați această opțiune cu atenție!", "Show update if available": "Afișează actualizarea dacă este disponibilă", "disableauth.message1": "Sigur doriți să dezactivați autentificarea?", - "disableauth.message2": "Este conceput pentru scenarii în care intenționați să implementați autentificarea terță în fața Dockge-lui, cum ar fi Cloudflare Access, Authelia sau alte mecanisme de autentificare." + "disableauth.message2": "Este conceput pentru scenarii în care intenționați să implementați autentificarea terță în fața Dockge-lui, cum ar fi Cloudflare Access, Authelia sau alte mecanisme de autentificare.", + "updateAll": "Actualizează " } diff --git a/frontend/src/lang/ru.json b/frontend/src/lang/ru.json index 81874f1..c8f769d 100644 --- a/frontend/src/lang/ru.json +++ b/frontend/src/lang/ru.json @@ -112,5 +112,6 @@ "dockgeAgent": "Агент Dockge | Агенты Dockge", "dockgeURL": "URL-адрес Dockge (например: http://127.0.0.1:5001)", "agentRemovedSuccessfully": "Агент успешно удален.", - "LongSyntaxNotSupported": "Длинный синтаксис здесь не поддерживается. Пожалуйста, используйте редактор YAML." + "LongSyntaxNotSupported": "Длинный синтаксис здесь не поддерживается. Пожалуйста, используйте редактор YAML.", + "updateAll": "Обновить все" } diff --git a/frontend/src/lang/sl.json b/frontend/src/lang/sl.json index de5fee7..47577fc 100644 --- a/frontend/src/lang/sl.json +++ b/frontend/src/lang/sl.json @@ -99,5 +99,6 @@ "newUpdate": "Nova posodobitev", "reverseProxyMsg2": "Preverite, kako ga konfigurirati za WebSocket", "Cannot connect to the socket server.": "Ni mogoče vzpostaviti povezave s strežnikom vtičnic.", - "url": "URL | URL-ji" + "url": "URL | URL-ji", + "updateAll": "Posodobi vse" } diff --git a/frontend/src/lang/sv-SE.json b/frontend/src/lang/sv-SE.json index d76bba3..d3ea2fd 100644 --- a/frontend/src/lang/sv-SE.json +++ b/frontend/src/lang/sv-SE.json @@ -111,5 +111,6 @@ "removeAgent": "Ta bort agent", "removeAgentMsg": "Är du säker att du vill ta bort denna agent?", "dockgeAgent": "Dockge agenter | Dockge agenter", - "agentAddedSuccessfully": "Agent tillagd." + "agentAddedSuccessfully": "Agent tillagd.", + "updateAll": "Uppdatera alla" } diff --git a/frontend/src/lang/th.json b/frontend/src/lang/th.json index 8cb847b..7c61381 100644 --- a/frontend/src/lang/th.json +++ b/frontend/src/lang/th.json @@ -98,5 +98,6 @@ "connecting...": "กำลังเชื่อมต่อกับเซิร์ฟเวอร์ socket…", "url": "URL | URLs", "extra": "พิเศษ", - "reconnecting...": "กำลังเชื่อมต่อใหม่…" + "reconnecting...": "กำลังเชื่อมต่อใหม่…", + "updateAll": "อัปเดตทุกอย่าง" } diff --git a/frontend/src/lang/tr.json b/frontend/src/lang/tr.json index 0d6dfe4..532ab44 100644 --- a/frontend/src/lang/tr.json +++ b/frontend/src/lang/tr.json @@ -111,5 +111,6 @@ "agentAddedSuccessfully": "Aracı başarıyla eklendi.", "agentRemovedSuccessfully": "Aracı başarıyla kaldırıldı.", "removeAgent": "Aracıyı Kaldır", - "removeAgentMsg": "Bu aracıyı kaldırmak istediğinize emin misiniz?" + "removeAgentMsg": "Bu aracıyı kaldırmak istediğinize emin misiniz?", + "updateAll": "Tut" } diff --git a/frontend/src/lang/uk-UA.json b/frontend/src/lang/uk-UA.json index 7d42651..387bac8 100644 --- a/frontend/src/lang/uk-UA.json +++ b/frontend/src/lang/uk-UA.json @@ -112,5 +112,6 @@ "agentRemovedSuccessfully": "Агент успішно видалено.", "agentAddedSuccessfully": "Агент успішно додано.", "removeAgentMsg": "Ви впевнені, що хочете видалити цей агент?", - "LongSyntaxNotSupported": "Довгий синтаксис тут не підтримується. Будь ласка, використовуйте редактор YAML." + "LongSyntaxNotSupported": "Довгий синтаксис тут не підтримується. Будь ласка, використовуйте редактор YAML.", + "updateAll": "Оновити все" } diff --git a/frontend/src/lang/ur.json b/frontend/src/lang/ur.json index c4b8b12..3076326 100644 --- a/frontend/src/lang/ur.json +++ b/frontend/src/lang/ur.json @@ -112,5 +112,6 @@ "agentRemovedSuccessfully": "ایجنٹ کو کامیابی سے ہٹا دیا گیا۔", "removeAgent": "ایجنٹ کو ہٹا دیں", "removeAgentMsg": "کیا آپ واقعی اس ایجنٹ کو ہٹانا چاہتے ہیں؟", - "LongSyntaxNotSupported": "لمبا نحو یہاں تعاون یافتہ نہیں ہے۔ براہ کرم YAML ایڈیٹر استعمال کریں۔" + "LongSyntaxNotSupported": "لمبا نحو یہاں تعاون یافتہ نہیں ہے۔ براہ کرم YAML ایڈیٹر استعمال کریں۔", + "updateAll": "تمام تازہ کاری کو ہٹا دیں" } diff --git a/frontend/src/lang/vi.json b/frontend/src/lang/vi.json index 54a0c3b..bc1c8e6 100644 --- a/frontend/src/lang/vi.json +++ b/frontend/src/lang/vi.json @@ -111,5 +111,6 @@ "disableauth.message2": "Nó được thiết kế trong hoàn cảnh mà bạn dự định triển khai xác thực đăng nhập bên thứ ba trước Dockge như là Cloudflare Access, Authelia hay các phương thức xác minh đăng nhập khác.", "dockerImage": "Image", "Show update if available": "Hiển thị cập nhật nếu có", - "restartPolicyUnlessStopped": "Trừ Khi Dừng Lại" + "restartPolicyUnlessStopped": "Trừ Khi Dừng Lại", + "updateAll": "Cập Nhật Càc" } diff --git a/frontend/src/lang/zh-CN.json b/frontend/src/lang/zh-CN.json index 1b926e2..afa82a2 100644 --- a/frontend/src/lang/zh-CN.json +++ b/frontend/src/lang/zh-CN.json @@ -112,5 +112,6 @@ "removeAgent": "移除代理", "removeAgentMsg": "您确定要移除此代理?", "agentAddedSuccessfully": "代理添加成功。", - "LongSyntaxNotSupported": "此处不支持Long syntax,请使用YAML编辑器。" + "LongSyntaxNotSupported": "此处不支持Long syntax,请使用YAML编辑器。", + "updateAll": "更新全部" } diff --git a/frontend/src/lang/zh-TW.json b/frontend/src/lang/zh-TW.json index 5c83dd0..e83b274 100644 --- a/frontend/src/lang/zh-TW.json +++ b/frontend/src/lang/zh-TW.json @@ -100,5 +100,6 @@ "url": "網址 | 網址", "extra": "額外", "newUpdate": "新版本", - "currentEndpoint": "目前" + "currentEndpoint": "目前", + "updateAll": "更新所有" }