From af5a3e108e11b78de236786693e55d17d4d63470 Mon Sep 17 00:00:00 2001 From: Stefan Dej Date: Sat, 16 Dec 2023 17:21:09 +0100 Subject: [PATCH] feat: add mmu.log to logfiles panel (#1685) --- .../panels/Machine/LogfilesPanel.vue | 159 ++---------------- .../LogfilesPanel/LogfilesPanelGenericLog.vue | 67 ++++++++ .../LogfilesPanelRolloverDialog.vue | 94 +++++++++++ src/store/variables.ts | 5 + 4 files changed, 178 insertions(+), 147 deletions(-) create mode 100644 src/components/panels/Machine/LogfilesPanel/LogfilesPanelGenericLog.vue create mode 100644 src/components/panels/Machine/LogfilesPanel/LogfilesPanelRolloverDialog.vue diff --git a/src/components/panels/Machine/LogfilesPanel.vue b/src/components/panels/Machine/LogfilesPanel.vue index c4889c984..06f93b9c6 100644 --- a/src/components/panels/Machine/LogfilesPanel.vue +++ b/src/components/panels/Machine/LogfilesPanel.vue @@ -1,7 +1,7 @@ - - - - {{ mdiDownload }} - Klipper - - - - - {{ mdiDownload }} - Moonraker - - - - - {{ mdiDownload }} - Crowsnest - - - - - {{ mdiDownload }} - Sonar - - + + - - - - - - -

{{ $t('Machine.LogfilesPanel.RolloverDescription') }}

-
-
- - - - - -
- - - - {{ $t('Machine.LogfilesPanel.Cancel') }} - - - {{ $t('Machine.LogfilesPanel.Accept') }} - - -
-
+ diff --git a/src/components/panels/Machine/LogfilesPanel/LogfilesPanelGenericLog.vue b/src/components/panels/Machine/LogfilesPanel/LogfilesPanelGenericLog.vue new file mode 100644 index 000000000..489703359 --- /dev/null +++ b/src/components/panels/Machine/LogfilesPanel/LogfilesPanelGenericLog.vue @@ -0,0 +1,67 @@ + + + diff --git a/src/components/panels/Machine/LogfilesPanel/LogfilesPanelRolloverDialog.vue b/src/components/panels/Machine/LogfilesPanel/LogfilesPanelRolloverDialog.vue new file mode 100644 index 000000000..2cbb1edab --- /dev/null +++ b/src/components/panels/Machine/LogfilesPanel/LogfilesPanelRolloverDialog.vue @@ -0,0 +1,94 @@ + + + diff --git a/src/store/variables.ts b/src/store/variables.ts index 9e4a57473..8afa67f6f 100644 --- a/src/store/variables.ts +++ b/src/store/variables.ts @@ -130,6 +130,11 @@ export const hiddenDirectories = ['.git'] */ export const availableKlipperConfigReferenceTranslations = ['it', 'hu', 'zh'] +/* + * List of all downloadable logfiles + */ +export const genericLogfiles = ['klippy', 'moonraker', 'crowsnest', 'mmu', 'sonar'] + /* * List of all rollover logfiles */