From bb18992f803864410d5481397f74271c5b848155 Mon Sep 17 00:00:00 2001 From: Stefan Dej Date: Tue, 14 Apr 2020 00:08:52 +0200 Subject: [PATCH] add interface settings and save gui.json on virtual_sdcard --- public/config.json | 16 +---- src/App.vue | 28 ++------ .../panels/Settings/DashboardPanel.vue | 58 +++++++++++++++ .../panels/Settings/MacrosPanel.vue | 49 +++++++++++++ .../panels/Settings/WebcamPanel.vue | 66 +++++++++++++++++ src/components/panels/Settings/index.js | 13 ++++ src/components/panels/ToolsPanel.vue | 5 +- src/components/panels/WebcamPanel.vue | 2 +- src/components/panels/index.js | 3 +- src/inputs/SettingsMacroSwitch.vue | 46 ++++++++++++ src/pages/Console.vue | 16 +---- src/pages/Webcam.vue | 32 +++++++++ src/pages/settings/general.vue | 10 --- src/pages/settings/interface.vue | 38 ++++++++++ src/routes/index.js | 21 ++++-- src/store/actions.js | 71 +++++++++++++++++-- src/store/getters.js | 23 ++++++ src/store/index.js | 7 +- src/store/mutations.js | 35 +++++---- 19 files changed, 448 insertions(+), 91 deletions(-) create mode 100644 src/components/panels/Settings/DashboardPanel.vue create mode 100644 src/components/panels/Settings/MacrosPanel.vue create mode 100644 src/components/panels/Settings/WebcamPanel.vue create mode 100644 src/components/panels/Settings/index.js create mode 100644 src/inputs/SettingsMacroSwitch.vue create mode 100644 src/pages/Webcam.vue delete mode 100644 src/pages/settings/general.vue create mode 100644 src/pages/settings/interface.vue diff --git a/public/config.json b/public/config.json index 34f66b3b6..bfab5638e 100644 --- a/public/config.json +++ b/public/config.json @@ -1,22 +1,8 @@ { "socket": { - "hostname": "kossel.local", + "hostname": "voron250.local", "port": 8080, "reconnectInterval": 3000, "reconnectAttempts": 1000 - }, - "webcam": { - "url": "http://192.168.0.210/webcam/?action=stream" - }, - "gui": { - "dashboard": { - "boolWebcam": true, - "hiddenMacros": [ - "M600", "FLASH_YES", "FLASH_NO", "TESTMOVE_A", "TESTMOVE_B", "TESTMOVE_X", "TESTMOVE_Y", "M141", "CANCEL", "M120", "M121", "CANCEL_PRINT", "PRINT_START", "PRINT_END", "RESTORE_LIGHT", "M355" - ] - }, - "gcodefiles": { - "countPerPage": 15 - } } } \ No newline at end of file diff --git a/src/App.vue b/src/App.vue index 203f96fea..66cf8d189 100644 --- a/src/App.vue +++ b/src/App.vue @@ -12,8 +12,10 @@ {{ hostname }}