From 3eb222066ce5adf8ef89426e3cccee3ad896db37 Mon Sep 17 00:00:00 2001 From: Amir Raminfar Date: Tue, 1 Aug 2023 12:35:05 -0700 Subject: [PATCH] feat: updates home dashboard to support mobile view (#2334) * feat: updates home dashboard to support mobile view * updates created translation * adds ellipses --- assets/components/ContainerTable.vue | 101 +++++++++++++++++---------- locales/de.yml | 2 +- locales/en.yml | 2 +- locales/es.yml | 2 +- locales/pr.yml | 2 +- locales/ru.yml | 2 +- locales/zh.yml | 2 +- 7 files changed, 70 insertions(+), 43 deletions(-) diff --git a/assets/components/ContainerTable.vue b/assets/components/ContainerTable.vue index 9f8e51a2..766c490d 100644 --- a/assets/components/ContainerTable.vue +++ b/assets/components/ContainerTable.vue @@ -4,14 +4,15 @@ - {{ $t(label) }} + {{ $t(value.label) }} @@ -22,17 +23,19 @@ - + {{ container.name }} - {{ container.state }} - - + {{ container.state }} + + + + {{ (container.movingAverage.cpu / 100).toLocaleString(undefined, { style: "percent" }) }} - + {{ (container.movingAverage.memory / 100).toLocaleString(undefined, { style: "percent" }) }} @@ -50,41 +53,55 @@ diff --git a/locales/de.yml b/locales/de.yml index 37b6b5d3..b341e39c 100644 --- a/locales/de.yml +++ b/locales/de.yml @@ -16,7 +16,7 @@ label: username: Benutzername container-name: Container Name status: Status - last-started: Zuletzt gestartet + created: Erstellt avg-cpu: Avg CPU (%) avg-mem: Avg MEM (%) tooltip: diff --git a/locales/en.yml b/locales/en.yml index 5cdc9ded..ea2bba1d 100644 --- a/locales/en.yml +++ b/locales/en.yml @@ -16,7 +16,7 @@ label: username: Username container-name: Container Name status: Status - last-started: Last started + created: Created avg-cpu: Avg. CPU (%) avg-mem: Avg. MEM (%) tooltip: diff --git a/locales/es.yml b/locales/es.yml index 05e0fde5..50536169 100644 --- a/locales/es.yml +++ b/locales/es.yml @@ -16,7 +16,7 @@ label: username: Nombre de usuario container-name: Nombre del contenedor status: Estado - last-started: Último inicio + created: Creado avg-cpu: Promedio de CPU (%) avg-mem: Promedio de MEM (%) tooltip: diff --git a/locales/pr.yml b/locales/pr.yml index 0ca78c51..40215bc8 100644 --- a/locales/pr.yml +++ b/locales/pr.yml @@ -16,7 +16,7 @@ label: username: Nome de usuário container-name: Nome do contentor status: Estado - last-started: Última iniciada + created: Criado avg-cpu: Média de CPU (%) avg-mem: Média de MEM (%) tooltip: diff --git a/locales/ru.yml b/locales/ru.yml index 8c3fbdf5..5f3cff1b 100644 --- a/locales/ru.yml +++ b/locales/ru.yml @@ -16,7 +16,7 @@ label: username: Имя пользователя container-name: Имя контейнера status: Статус - last-started: Последний запуск + created: Создан avg-cpu: средний процессор (%) avg-mem: средняя память (%) tooltip: diff --git a/locales/zh.yml b/locales/zh.yml index 0706a4d6..c7af1f40 100644 --- a/locales/zh.yml +++ b/locales/zh.yml @@ -16,7 +16,7 @@ label: username: 用户名 container-name: 容器名称 status: 状态 - last-started: 最后启动 + created: 创建时间 avg-cpu: 平均CPU (%) avg-mem: 平均MEM (%) tooltip: