1
0
mirror of https://github.com/amir20/dozzle.git synced 2025-12-21 13:23:07 +01:00

feat: updates labels between running and all containers (#2742)

This commit is contained in:
Amir Raminfar
2024-02-01 14:07:16 -08:00
committed by GitHub
parent 8677a34087
commit bd86b2289b
14 changed files with 17 additions and 3 deletions

View File

@@ -108,7 +108,7 @@ function isContainer(item: any): item is Container {
const menuItems = computed(() => { const menuItems = computed(() => {
const pinnedLabel = { keyLabel: "label.pinned" }; const pinnedLabel = { keyLabel: "label.pinned" };
const allLabel = { keyLabel: "label.containers" }; const allLabel = { keyLabel: showAllContainers.value ? "label.all-containers" : "label.running-containers" };
if (groupedContainers.value.pinned.length > 0) { if (groupedContainers.value.pinned.length > 0) {
return [pinnedLabel, ...groupedContainers.value.pinned, allLabel, ...groupedContainers.value.unpinned]; return [pinnedLabel, ...groupedContainers.value.pinned, allLabel, ...groupedContainers.value.unpinned];
} else { } else {

View File

@@ -34,6 +34,6 @@ test.describe("es locale", () => {
test.use({ locale: "es" }); test.use({ locale: "es" });
test("translated text", async ({ page }) => { test("translated text", async ({ page }) => {
await expect(page.getByTestId("label.containers")).toHaveText("Contenedores"); await expect(page.getByTestId("label.running-containers")).toHaveText("Contenedores en ejecución");
}); });
}); });

View File

@@ -5,5 +5,5 @@ test("simple authentication", async ({ page }) => {
await page.locator('input[name="username"]').fill("admin"); await page.locator('input[name="username"]').fill("admin");
await page.locator('input[name="password"]').fill("password"); await page.locator('input[name="password"]').fill("password");
await page.locator('button[type="submit"]').click(); await page.locator('button[type="submit"]').click();
await expect(page.getByTestId("label.containers")).toHaveText("Containers"); await expect(page.getByTestId("label.running-containers")).toHaveText("Running Containers");
}); });

Binary file not shown.

Before

Width:  |  Height:  |  Size: 10 KiB

After

Width:  |  Height:  |  Size: 10 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 12 KiB

After

Width:  |  Height:  |  Size: 13 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 11 KiB

After

Width:  |  Height:  |  Size: 11 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 12 KiB

After

Width:  |  Height:  |  Size: 12 KiB

View File

@@ -6,6 +6,8 @@ toolbar:
show-all: Zeige alle Streams show-all: Zeige alle Streams
label: label:
containers: Container containers: Container
running-containers: Laufende Container
all-containers: Alle Container
total-containers: Gesamte Container total-containers: Gesamte Container
running: Laufende running: Laufende
total-cpu-usage: Gesamte CPU Auslastung total-cpu-usage: Gesamte CPU Auslastung

View File

@@ -9,6 +9,8 @@ toolbar:
restart: Restart restart: Restart
label: label:
containers: Containers containers: Containers
running-containers: Running Containers
all-containers: All Containers
total-containers: Total Containers total-containers: Total Containers
running: Running running: Running
total-cpu-usage: Total CPU Usage total-cpu-usage: Total CPU Usage

View File

@@ -9,6 +9,8 @@ toolbar:
restart: Reiniciar restart: Reiniciar
label: label:
containers: Contenedores containers: Contenedores
running-containers: Contenedores en ejecución
all-containers: Todos los contenedores
total-containers: Contenedores Totales total-containers: Contenedores Totales
running: En ejecución running: En ejecución
total-cpu-usage: Uso total del Procesador total-cpu-usage: Uso total del Procesador

View File

@@ -6,6 +6,8 @@ toolbar:
show-all: Mostrar todos os fluxos show-all: Mostrar todos os fluxos
label: label:
containers: Contentores containers: Contentores
running-containers: Contentores em execução
all-containers: Todos os contentores
total-containers: Contentores Totais total-containers: Contentores Totais
running: Em execução running: Em execução
total-cpu-usage: Utilização total da CPU total-cpu-usage: Utilização total da CPU

View File

@@ -6,6 +6,8 @@ toolbar:
show-all: Показать все потоки show-all: Показать все потоки
label: label:
containers: Контейнеры containers: Контейнеры
running-containers: Запущенные контейнеры
all-containers: Все контейнеры
total-containers: Всего Контейнеров total-containers: Всего Контейнеров
running: Запущенные running: Запущенные
total-cpu-usage: Использование процессора total-cpu-usage: Использование процессора

View File

@@ -6,6 +6,8 @@ toolbar:
show-all: 顯示全部資料流 show-all: 顯示全部資料流
label: label:
containers: 容器 containers: 容器
running-containers: 運行中的容器
all-containers: 所有容器
total-containers: 總容器數 total-containers: 總容器數
running: 運行中 running: 運行中
total-cpu-usage: 總 CPU 使用率 total-cpu-usage: 總 CPU 使用率

View File

@@ -6,6 +6,8 @@ toolbar:
show-all: 显示全部 show-all: 显示全部
label: label:
containers: 容器 containers: 容器
running-containers: 运行中的容器
all-containers: 所有容器
total-containers: 所有容器 total-containers: 所有容器
running: 运行中 running: 运行中
total-cpu-usage: 所有CPU使用率 total-cpu-usage: 所有CPU使用率