From d6063198111c3b658dc5ea980a1b1f5e9b93096b Mon Sep 17 00:00:00 2001 From: rackrick <45207681+rackrick@users.noreply.github.com> Date: Wed, 13 Dec 2023 23:36:19 +0100 Subject: [PATCH 01/12] fix: add anchor to regex for special msg replacement (#1635) --- src/plugins/helpers.ts | 17 ++++++++++++----- 1 file changed, 12 insertions(+), 5 deletions(-) diff --git a/src/plugins/helpers.ts b/src/plugins/helpers.ts index 7f4c89b31..0641ec209 100644 --- a/src/plugins/helpers.ts +++ b/src/plugins/helpers.ts @@ -62,13 +62,20 @@ export const camelize = (str: string): string => { } export function formatConsoleMessage(message: string): string { - message = message.replace(/!! /g, '') - message = message.replace(/\/\/ /g, '') + // remove !! at error msg start + message = message.replace(/^!! /g, '') + // remove !! after \n new line + message = message.replace(/\n!! /g, '\n') + // remove // at command msg start + message = message.replace(/^\/\/ /g, '') + // remove // at \n new line + message = message.replace(/\n\/\/ /g, '\n') + // remove echo + message = message.replace(/^echo:/g, '') + message = message.replace(/^echo: /g, '') + // replace linebreaks with html
message = message.replace('\n// ', '
') message = message.replace(/\r\n|\r|\n/g, '
') - //message = message.replaceAll('
', '
') - //return message.split('
'); - return message } From 59c31e7222a095339037fdd575db152084f6264c Mon Sep 17 00:00:00 2001 From: inhabitant <145587990+inhabitworker@users.noreply.github.com> Date: Sat, 16 Dec 2023 09:09:39 +0000 Subject: [PATCH 02/12] feat: light mode ui (#1580) Co-authored-by: big boy <46307379+blu3mangroup@users.noreply.github.com> Co-authored-by: big boy Co-authored-by: Stefan Dej --- public/config.json | 1 + public/img/sidebar-background-light.svg | 206 ++++++++++++++++++ remote/config.json | 1 + src/App.vue | 18 +- src/assets/styles/page.css | 26 +++ src/components/TheConnectingDialog.vue | 8 +- src/components/TheEditor.vue | 2 +- src/components/TheSettingsMenu.vue | 4 + src/components/TheSidebar.vue | 10 +- .../TheTimelapseRenderingSnackbar.vue | 10 +- src/components/TheTopbar.vue | 2 +- src/components/TheUpdateDialog.vue | 36 +-- src/components/TheUploadSnackbar.vue | 2 +- .../charts/HistoryAllPrintStatusChart.vue | 64 +++--- .../charts/HistoryFilamentUsage.vue | 157 +++++++------ src/components/charts/HistoryPrinttimeAvg.vue | 129 ++++++----- src/components/charts/TempChart.vue | 29 +-- src/components/console/ConsoleTableEntry.vue | 4 + src/components/gcodeviewer/Viewer.vue | 4 +- src/components/mixins/theme.ts | 47 ++++ .../Extruder/ExtruderControlPanelControl.vue | 4 + .../Extruder/ExtruderControlPanelTools.vue | 4 + src/components/panels/FarmPrinterPanel.vue | 27 ++- .../panels/Machine/ConfigFilesPanel.vue | 13 +- src/components/panels/MiniconsolePanel.vue | 4 + src/components/panels/StatusPanel.vue | 2 +- .../panels/ToolheadControls/BarsControl.vue | 102 ++++----- .../panels/ToolheadControls/CircleControl.vue | 26 +++ .../ToolheadControls/ZoffsetControl.vue | 4 + .../settings/SettingsMacrosTabExpert.vue | 28 +-- .../settings/SettingsNavigationTab.vue | 12 +- .../settings/SettingsNavigationTabItem.vue | 11 +- .../settings/SettingsUiSettingsTab.vue | 27 +++ src/components/ui/Panel.vue | 7 +- src/locales/en.json | 4 + src/main.ts | 23 +- src/pages/Heightmap.vue | 38 ++-- src/plugins/vuetify.ts | 6 - src/store/actions.ts | 2 +- src/store/farm/printer/getters.ts | 4 +- src/store/files/getters.ts | 4 +- src/store/gui/index.ts | 3 +- src/store/gui/types.ts | 1 + src/store/printer/getters.ts | 1 + src/store/server/history/getters.ts | 9 - src/store/server/history/types.ts | 3 - src/store/types.ts | 1 + src/store/variables.ts | 1 + 48 files changed, 745 insertions(+), 386 deletions(-) create mode 100644 public/img/sidebar-background-light.svg create mode 100644 src/components/mixins/theme.ts diff --git a/public/config.json b/public/config.json index 26ac427f1..cdc1db4a6 100644 --- a/public/config.json +++ b/public/config.json @@ -1,5 +1,6 @@ { "defaultLocale": "en", + "defaultTheme": "dark", "hostname": null, "port": null, "instancesDB": "moonraker", diff --git a/public/img/sidebar-background-light.svg b/public/img/sidebar-background-light.svg new file mode 100644 index 000000000..805f24268 --- /dev/null +++ b/public/img/sidebar-background-light.svg @@ -0,0 +1,206 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/remote/config.json b/remote/config.json index 1ac52bb39..c00849b08 100644 --- a/remote/config.json +++ b/remote/config.json @@ -1,5 +1,6 @@ { "defaultLocale": "en", + "defaultTheme": "dark", "hostname": null, "port": null, "instancesDB": "browser", diff --git a/src/App.vue b/src/App.vue index 315e6cfe5..0af7f9de4 100644 --- a/src/App.vue +++ b/src/App.vue @@ -1,5 +1,5 @@