From 16b6ed6000df3464b5af44712b7a45b8a911d209 Mon Sep 17 00:00:00 2001 From: Stefan Dej Date: Tue, 1 Sep 2020 19:32:21 +0200 Subject: [PATCH 01/25] bugfix: min_extrude_temp from config file (extrude/retract buttons on dashboard) Signed-off-by: Stefan Dej --- src/components/panels/ExtruderPanel.vue | 1 - src/store/getters.js | 4 ++-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/src/components/panels/ExtruderPanel.vue b/src/components/panels/ExtruderPanel.vue index 16bb9b05..8495742a 100644 --- a/src/components/panels/ExtruderPanel.vue +++ b/src/components/panels/ExtruderPanel.vue @@ -54,7 +54,6 @@ }, computed: { ...mapState({ - config: state => state.config, loadings: state => state.loadings, printer_state: state => state.printer.print_stats.state, }), diff --git a/src/store/getters.js b/src/store/getters.js index b7fba8b8..468728bf 100644 --- a/src/store/getters.js +++ b/src/store/getters.js @@ -267,8 +267,8 @@ export default { let extruderName = state.printer.toolhead.extruder; extruder.name = extruderName; - if (state.config[extruderName]) { - extruder.config = state.config[extruderName]; + if (state.printer.configfile.config[extruderName]) { + extruder.config = state.printer.configfile.config[extruderName]; } if (state.printer[extruderName]) { From 890a3e333253efc60c9af3e544e86d20556eb68b Mon Sep 17 00:00:00 2001 From: Stefan Dej Date: Tue, 1 Sep 2020 20:19:53 +0200 Subject: [PATCH 02/25] bugfix: min_extrude_temp from config file (extrude/retract buttons on dashboard) Signed-off-by: Stefan Dej --- src/components/panels/ExtruderPanel.vue | 13 ++++++++----- src/store/getters.js | 2 ++ 2 files changed, 10 insertions(+), 5 deletions(-) diff --git a/src/components/panels/ExtruderPanel.vue b/src/components/panels/ExtruderPanel.vue index 8495742a..1801ec78 100644 --- a/src/components/panels/ExtruderPanel.vue +++ b/src/components/panels/ExtruderPanel.vue @@ -50,22 +50,19 @@ feedrate: 5, loadingRetract: false, loadingDetract: false, + extruder: null, } }, computed: { ...mapState({ loadings: state => state.loadings, printer_state: state => state.printer.print_stats.state, + config: state => state.printer.configfile.config, }), ...mapGetters([ 'getMacros', 'getCurrentExtruder', ]), - extruder: { - get: function() { - return this.$store.getters.getCurrentExtruder; - } - } }, methods: { setFeedAmount(value) { @@ -92,6 +89,12 @@ this.loadingRetract = loadings.includes('extruderRetract'); this.loadingDetract = loadings.includes('extruderDetract'); }, + config: { + handler() { + this.extruder = this.getCurrentExtruder; + }, + immediate: true + } } } \ No newline at end of file diff --git a/src/store/getters.js b/src/store/getters.js index 468728bf..f1995a0a 100644 --- a/src/store/getters.js +++ b/src/store/getters.js @@ -259,6 +259,8 @@ export default { }, getCurrentExtruder: state => { + if (state.printer.configfile.config === null) return null; + let extruder = { name: "", status: null, From 84c9040e2a1ddbf8ae75b982e3d1868db34d8ef8 Mon Sep 17 00:00:00 2001 From: Stefan Dej Date: Tue, 1 Sep 2020 20:22:47 +0200 Subject: [PATCH 03/25] bugfix: print pause button reset loading status Signed-off-by: Stefan Dej --- src/store/actions.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/store/actions.js b/src/store/actions.js index 5e51042d..d16238d2 100644 --- a/src/store/actions.js +++ b/src/store/actions.js @@ -209,11 +209,11 @@ export default { }, respondPrintPause({commit}) { - commit('removeLoading', { name: 'statusPrintCancel' }); + commit('removeLoading', { name: 'statusPrintPause' }); }, respondPrintResume({commit}) { - commit('removeLoading', { name: 'statusPrintCancel' }); + commit('removeLoading', { name: 'statusPrintResume' }); }, respondPrintCancel({commit}) { From 39f3cfe8249129c2142918f39f99a834b57f8770 Mon Sep 17 00:00:00 2001 From: Stefan Dej Date: Tue, 1 Sep 2020 20:42:13 +0200 Subject: [PATCH 04/25] bugfix: ZOffsetPanel.vue current offset Signed-off-by: Stefan Dej --- src/components/panels/ZOffsetPanel.vue | 4 ++-- src/store/index.js | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/components/panels/ZOffsetPanel.vue b/src/components/panels/ZOffsetPanel.vue index f44cdd6f..f282895a 100644 --- a/src/components/panels/ZOffsetPanel.vue +++ b/src/components/panels/ZOffsetPanel.vue @@ -13,7 +13,7 @@ -

Current Offset: {{ base_zpos.toFixed(2) }}mm

+

Current Offset: {{ homing_origin.length > 1 ? homing_origin[2].toFixed(2) : 0.00 }}mm

@@ -51,7 +51,7 @@ computed: { ...mapState({ loadings: state => state.loadings, - base_zpos: state => state.printer.gcode_move.base_zpos, + homing_origin: state => state.printer.gcode_move.homing_origin, printer_state: state => state.printer.print_stats.state, homed_axis: state => state.printer.toolhead.homed_axes, }), diff --git a/src/store/index.js b/src/store/index.js index 519fc637..42024a8f 100644 --- a/src/store/index.js +++ b/src/store/index.js @@ -110,7 +110,7 @@ export default new Vuex.Store({ gcode_move: { extrude_factor: 1, speed_factor: 1, - base_zpos: 0, + homing_origin: [0,0,0,0], absolute_coordinates: true, absolute_extrude: true, speed: 0, From 65a4e40d39cc2ab5b767f4c6db25996f6448737f Mon Sep 17 00:00:00 2001 From: Stefan Dej Date: Tue, 1 Sep 2020 20:53:37 +0200 Subject: [PATCH 05/25] bugfix: SettingsSystemPanel remove margin top when klipper != ready Signed-off-by: Stefan Dej --- src/pages/settings/machine.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/pages/settings/machine.vue b/src/pages/settings/machine.vue index e7e36bfd..f0a54e79 100644 --- a/src/pages/settings/machine.vue +++ b/src/pages/settings/machine.vue @@ -15,7 +15,7 @@ - + From 6094c4f9bd2039798f3276463b745174c7d83b48 Mon Sep 17 00:00:00 2001 From: Stefan Dej Date: Tue, 1 Sep 2020 22:44:23 +0200 Subject: [PATCH 06/25] bugfix: show favicon if print process == 100% Signed-off-by: Stefan Dej --- src/App.vue | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/App.vue b/src/App.vue index 21864a6d..0190a152 100644 --- a/src/App.vue +++ b/src/App.vue @@ -135,8 +135,7 @@ export default { }, drawFavicon(val) { let favicon = document.getElementById('favicon'); - if (val === 0) favicon.href = "/favicon.ico"; - else { + if (val > 0 && val < 100) { let faviconSize = 64; let canvas = document.createElement('canvas'); @@ -175,7 +174,7 @@ export default { context.fill(); favicon.href = canvas.toDataURL('image/png'); - } + } else favicon.href = "/favicon.ico" } }, watch: { From ad6ae1128bd3d76702bd85d6ed865816443b958f Mon Sep 17 00:00:00 2001 From: Stefan Dej Date: Tue, 1 Sep 2020 22:45:12 +0200 Subject: [PATCH 07/25] feature: show gcode thumbnail in StatusPanel.vue while printing Signed-off-by: Stefan Dej --- src/components/panels/StatusPanel.vue | 194 +++++++++++++++----------- 1 file changed, 109 insertions(+), 85 deletions(-) diff --git a/src/components/panels/StatusPanel.vue b/src/components/panels/StatusPanel.vue index 3dbb7db5..209b678b 100644 --- a/src/components/panels/StatusPanel.vue +++ b/src/components/panels/StatusPanel.vue @@ -2,6 +2,10 @@ .vertical_align_center { margin: auto 0; } + + .statusPanel-image-preview { + width: 100%; + } From 38a0c8f441797e96075038d439903280b877f5c4 Mon Sep 17 00:00:00 2001 From: Stefan Dej Date: Tue, 1 Sep 2020 22:50:09 +0200 Subject: [PATCH 08/25] bugfix: settings panel system -> responsive view Signed-off-by: Stefan Dej --- src/components/panels/Settings/SystemPanel.vue | 12 ++++++------ src/pages/settings/machine.vue | 10 +++++----- 2 files changed, 11 insertions(+), 11 deletions(-) diff --git a/src/components/panels/Settings/SystemPanel.vue b/src/components/panels/Settings/SystemPanel.vue index 2932e232..3ab0fcb9 100644 --- a/src/components/panels/Settings/SystemPanel.vue +++ b/src/components/panels/Settings/SystemPanel.vue @@ -8,12 +8,12 @@ -
mdi-downloadKlipper Log
-
mdi-downloadMoonraker Log
-
mdi-cachedRestart
-
mdi-cachedFW Restart
-
mdi-cachedHost Reboot
-
mdi-powerHost Shutdown
+
mdi-downloadKlipper Log
+
mdi-downloadMoonraker Log
+
mdi-cachedRestart
+
mdi-cachedFW Restart
+
mdi-cachedHost Reboot
+
mdi-powerHost Shutdown
diff --git a/src/pages/settings/machine.vue b/src/pages/settings/machine.vue index f0a54e79..0d0260f5 100644 --- a/src/pages/settings/machine.vue +++ b/src/pages/settings/machine.vue @@ -1,21 +1,21 @@