From eab9060fa6e143acd50eeb8f8b0078cb64cc15bb Mon Sep 17 00:00:00 2001 From: Stefan Dej Date: Fri, 8 Dec 2023 17:08:44 +0100 Subject: [PATCH 1/9] refactor: fix linter issue in SettingsControlTab (#1677) --- .../settings/SettingsControlTab.vue | 26 +++++++++---------- 1 file changed, 12 insertions(+), 14 deletions(-) diff --git a/src/components/settings/SettingsControlTab.vue b/src/components/settings/SettingsControlTab.vue index 8fbe7eb92..6a8ff0f76 100644 --- a/src/components/settings/SettingsControlTab.vue +++ b/src/components/settings/SettingsControlTab.vue @@ -178,20 +178,18 @@ - + + + + Date: Fri, 8 Dec 2023 17:08:57 +0100 Subject: [PATCH 2/9] fix: more tolerant with thumbnails sizes (#1674) --- src/components/dialogs/StartPrintDialog.vue | 18 ++++++++++++------ src/store/variables.ts | 4 ++-- 2 files changed, 14 insertions(+), 8 deletions(-) diff --git a/src/components/dialogs/StartPrintDialog.vue b/src/components/dialogs/StartPrintDialog.vue index df282f951..e0642a80c 100644 --- a/src/components/dialogs/StartPrintDialog.vue +++ b/src/components/dialogs/StartPrintDialog.vue @@ -1,7 +1,13 @@ @@ -102,6 +117,14 @@ export default class MotionSettings extends Mixins(BaseMixin) { return Math.trunc(this.$store.state.printer?.toolhead?.max_accel_to_decel ?? this.accel / 2) } + get minimumCruiseRatio(): number | null { + const value = this.$store.state.printer?.toolhead?.minimum_cruise_ratio ?? null + + if (value === null) return null + + return Math.round(value * 100) / 100 + } + get squareCornerVelocity(): number { return Math.floor((this.$store.state.printer?.toolhead?.square_corner_velocity ?? 8) * 10) / 10 } @@ -118,11 +141,16 @@ export default class MotionSettings extends Mixins(BaseMixin) { return Math.trunc(this.$store.state.printer?.configfile?.settings?.printer?.max_accel_to_decel ?? 1500) } + get defaultMinimumCruiseRatio(): number { + const value = this.$store.state.printer?.configfile?.settings?.printer?.minimum_cruise_ratio ?? 0.5 + + return Math.round(value / 10) * 10 + } + get defaultSquareCornerVelocity(): number { - return ( - Math.floor((this.$store.state.printer?.configfile?.settings?.printer?.square_corner_velocity ?? 8) * 10) / - 10 - ) + const value = this.$store.state.printer?.configfile?.settings?.printer?.square_corner_velocity ?? 8 + + return Math.floor(value * 10) / 10 } @Debounce(500) diff --git a/src/locales/de.json b/src/locales/de.json index b6e494ec9..cf956e1e8 100644 --- a/src/locales/de.json +++ b/src/locales/de.json @@ -582,6 +582,7 @@ "MotionSettings": { "Acceleration": "Beschleunigung", "MaxAccelToDecel": "Max. Beschl. zu Verz.", + "MinimumCruiseRatio": "Min. Kreuzfahr Quote", "SquareCornerVelocity": "Eck-Geschwindigkeit", "Velocity": "Geschwindigkeit" } diff --git a/src/locales/en.json b/src/locales/en.json index e62fb45a2..9ad788d7d 100644 --- a/src/locales/en.json +++ b/src/locales/en.json @@ -582,6 +582,7 @@ "MotionSettings": { "Acceleration": "Acceleration", "MaxAccelToDecel": "Max Accel. to Decel.", + "MinimumCruiseRatio": "Min. Cruise Ratio", "SquareCornerVelocity": "Square Corner Velocity", "Velocity": "Velocity" } From c5b3f473e4ff43b0cba69166d1831632a70deb83 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Fri, 8 Dec 2023 20:39:50 +0100 Subject: [PATCH 4/9] build(deps-dev): bump vite from 4.4.10 to 4.4.12 (#1671) Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> --- package-lock.json | 8 ++++---- package.json | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/package-lock.json b/package-lock.json index e0ed3dd7f..46813fa9d 100644 --- a/package-lock.json +++ b/package-lock.json @@ -79,7 +79,7 @@ "start-server-and-test": "^2.0.0", "typescript": "^4.5.5", "unplugin-vue-components": "^0.22.12", - "vite": "^4.4.9", + "vite": "^4.4.12", "vite-plugin-checker": "^0.6.0", "vite-plugin-package-version": "^1.0.2", "vite-plugin-pwa": "^0.16.4", @@ -9593,9 +9593,9 @@ } }, "node_modules/vite": { - "version": "4.4.10", - "resolved": "https://registry.npmjs.org/vite/-/vite-4.4.10.tgz", - "integrity": "sha512-TzIjiqx9BEXF8yzYdF2NTf1kFFbjMjUSV0LFZ3HyHoI3SGSPLnnFUKiIQtL3gl2AjHvMrprOvQ3amzaHgQlAxw==", + "version": "4.4.12", + "resolved": "https://registry.npmjs.org/vite/-/vite-4.4.12.tgz", + "integrity": "sha512-KtPlUbWfxzGVul8Nut8Gw2Qe8sBzWY+8QVc5SL8iRFnpnrcoCaNlzO40c1R6hPmcdTwIPEDkq0Y9+27a5tVbdQ==", "dev": true, "dependencies": { "esbuild": "^0.18.10", diff --git a/package.json b/package.json index ce340e1cd..24a1efda6 100644 --- a/package.json +++ b/package.json @@ -94,7 +94,7 @@ "start-server-and-test": "^2.0.0", "typescript": "^4.5.5", "unplugin-vue-components": "^0.22.12", - "vite": "^4.4.9", + "vite": "^4.4.12", "vite-plugin-checker": "^0.6.0", "vite-plugin-package-version": "^1.0.2", "vite-plugin-pwa": "^0.16.4", From 9395a8142f6834c034beb46007de8655c8e678c2 Mon Sep 17 00:00:00 2001 From: Francois Chagnon Date: Fri, 8 Dec 2023 15:37:57 -0500 Subject: [PATCH 5/9] feat: show filament sensor state even when it is disabled (#1656) Co-authored-by: Stefan Dej --- src/components/inputs/FilamentSensor.vue | 23 ++++++++++++----------- src/locales/de.json | 3 +-- src/locales/en.json | 3 +-- 3 files changed, 14 insertions(+), 15 deletions(-) diff --git a/src/components/inputs/FilamentSensor.vue b/src/components/inputs/FilamentSensor.vue index 8e0565815..82b53085a 100644 --- a/src/components/inputs/FilamentSensor.vue +++ b/src/components/inputs/FilamentSensor.vue @@ -1,9 +1,3 @@ - - diff --git a/src/components/panels/Extruder/ExtruderControlPanelTools.vue b/src/components/panels/Extruder/ExtruderControlPanelTools.vue index 740d1f8a8..5248d26f8 100644 --- a/src/components/panels/Extruder/ExtruderControlPanelTools.vue +++ b/src/components/panels/Extruder/ExtruderControlPanelTools.vue @@ -1,5 +1,5 @@