From 74ff01ba3a402ba5597dbde3a2f2d4792d91e3c8 Mon Sep 17 00:00:00 2001 From: Stefan Dej Date: Sun, 31 Dec 2023 08:27:12 +0100 Subject: [PATCH] fix: fix long initial time with huge print history (#1714) * refactor: refactor history page and list panel Signed-off-by: Stefan Dej * fix: fix long initial time with huge print history Signed-off-by: Stefan Dej * refactor: add "All" to locale Signed-off-by: Stefan Dej * feat: add button to statistic chart Signed-off-by: Stefan Dej * locale(de): update german locale Signed-off-by: Stefan Dej * refactor: remove unused icon import Signed-off-by: Stefan Dej * locale: apply suggestions from code review Co-authored-by: rackrick <45207681+rackrick@users.noreply.github.com> --------- Signed-off-by: Stefan Dej Co-authored-by: rackrick <45207681+rackrick@users.noreply.github.com> --- src/components/panels/HistoryListPanel.vue | 117 +++++++++--------- .../panels/HistoryStatisticsPanel.vue | 29 ++++- src/locales/de.json | 3 +- src/locales/en.json | 3 +- src/pages/History.vue | 6 +- src/store/server/history/actions.ts | 32 +++-- src/store/server/history/index.ts | 1 + src/store/server/history/mutations.ts | 4 + src/store/server/history/types.ts | 1 + 9 files changed, 122 insertions(+), 74 deletions(-) diff --git a/src/components/panels/HistoryListPanel.vue b/src/components/panels/HistoryListPanel.vue index 427101cbd..3ef8af0b9 100644 --- a/src/components/panels/HistoryListPanel.vue +++ b/src/components/panels/HistoryListPanel.vue @@ -15,7 +15,7 @@ outlined clearable hide-details - dense> + dense /> - - {{ mdiDatabaseExportOutline }} - - - {{ mdiRefresh }} - - + + {{ $t('History.LoadCompleteHistory') }} + + + + {{ $t('History.TitleExportHistory') }} + + + @@ -60,9 +65,9 @@ hide-details :input-value="status.showInTable" :label="`${status.displayName} (${status.value})`" - @change="changeStatusVisible(status)"> + @change="changeStatusVisible(status)" /> - + + @change="changeColumnVisible(header.value)" /> - + + @click.stop="select(!isSelected)" /> @@ -144,10 +146,7 @@ @@ -164,7 +163,7 @@ {{ mdiNotebook }} - + @@ -252,14 +251,14 @@ {{ detailsDialog.item.filename }} - + {{ $t('History.Status') }} @@ -278,13 +277,13 @@ }} - + {{ $t('History.StartTime') }} {{ formatDateTime(detailsDialog.item.start_time * 1000) }}