From 6b8f56985a20d52c5df38513c87f129dfefd9339 Mon Sep 17 00:00:00 2001 From: th33xitus Date: Wed, 17 Nov 2021 21:03:57 +0100 Subject: [PATCH] feat: lockable sliders (#412) * fix: replace tab characters by spaces Signed-off-by: Dominik Willner * fix: replace tab characters by spaces Signed-off-by: Dominik Willner * feature: add lockable sliders Signed-off-by: Dominik Willner * feat: add lockable sliders feat: add auto-lock sliders Signed-off-by: Dominik Willner * locale: add EN locale for LockSlider and AutoLockSlider features. Signed-off-by: Dominik Willner * chore: rename autoLockSliders to lockSliders refactor: include startLockTimer method in sendCmd method Signed-off-by: Dominik Willner * refactor: refactor startLockTimer method Signed-off-by: Dominik Willner * refactor: lockSlidersChanged Watcher Signed-off-by: Dominik Willner * refactor: remove helper, use new isTouchDevice BaseMixin method instead Signed-off-by: Dominik Willner * feat: add lockable sliders to miscellaneous sliders Signed-off-by: Dominik Willner * fix: every interaction with the slider resets timeout correctly Signed-off-by: Dominik Willner * fix: fix typo Signed-off-by: Dominik Willner * chore: remove unused import Signed-off-by: Dominik Willner * chore: remove unused import Signed-off-by: Dominik Willner * chore: replace tabs with spaces Signed-off-by: Dominik Willner * chore: replace tabs with spaces / remove trailing newlines Signed-off-by: Dominik Willner * refactor: rename name/value pairs to a more appropriate name Signed-off-by: Dominik Willner * refactor(locale): update EN locale file Signed-off-by: Dominik Willner * fix: get/set correct store name Signed-off-by: Dominik Willner * refactor: use "Delay" instead of "Timeout" Signed-off-by: Dominik Willner * refactor(locale): update EN locale file Signed-off-by: Dominik Willner * refactor(locale): update DE locale file Signed-off-by: Dominik Willner * refactor: rename menuStyle to navigationStyle Signed-off-by: Dominik Willner --- .../klipper_errors/command_format_mismatch.md | 94 +- src/components/TheSidebar.vue | 6 +- src/components/inputs/MiscellaneousSlider.vue | 82 +- src/components/inputs/ToolSlider.vue | 58 +- src/components/panels/MiscellaneousPanel.vue | 2 + src/components/panels/PrintsettingsPanel.vue | 25 +- .../settings/SettingsUiSettingsTab.vue | 62 +- src/locales/de.json | 1306 ++++++++------- src/locales/en.json | 1462 ++++++++--------- src/locales/es.json | 2 +- src/locales/it.json | 1204 +++++++------- src/locales/nl.json | 1206 +++++++------- src/locales/zh.json | 1210 +++++++------- src/store/gui/actions.ts | 19 +- src/store/gui/getters.ts | 11 +- src/store/gui/index.ts | 5 +- src/store/gui/mutations.ts | 21 +- 17 files changed, 3578 insertions(+), 3197 deletions(-) diff --git a/docs/faq/klipper_errors/command_format_mismatch.md b/docs/faq/klipper_errors/command_format_mismatch.md index dd0d95d8..b8ed8b32 100644 --- a/docs/faq/klipper_errors/command_format_mismatch.md +++ b/docs/faq/klipper_errors/command_format_mismatch.md @@ -1,48 +1,48 @@ ---- -layout: default -title: Command format mismatch -parent: Klipper Errors -grand_parent: FAQ -nav_order: 10 -has_children: false -permalink: /faq/klipper_errors/command_format_mismatch -has_toc: false -description: >- - You have updated Klipper and now you get this cryptic error message? We would like to help... ---- - -# Klipper Error - Command format mismatch - -You have updated Klipper and now you get this cryptic error message? - -![Command format mismatch](../../assets/img/faq/errors/mcu_error.png) - -This is an error and needs to be fixed to make Mainsail and Klipper work again. -{: .info} - -## TL;DR - -Klipper on your host and on your MCU have different versions. -Recompile and flash your MCUs and it will work again. Please also pay attention to the "Linux MCU", if you had e.g. an adxl345 in use. - -The following links should help you to solve the problem: -[Klipper SD-Card Updates](https://www.klipper3d.org/SDCard_Updates.html){:target="_blank"} -[Klipper Building and flashing the micro-controller](https://www.klipper3d.org/Installation.html#building-and-flashing-the-micro-controller){:target="_blank"} - -## More detailed - -Klipper consists of two parts: -The software on your host (e.g. Raspberry Pi) and the firmware on your microcontroller (MCU). - -Under normal circumstances, Klipper (on your host) can simply be updated from Mainsail without any problems and everything will work as expected. - -From time to time it happens that there are changes in Klipper that make it necessary to update all your MCUs. Assuming you have run a Klipper update and Klipper on your host now supports commands that your MCUs does not understand. Then you will get the above error message. - -Fortunately, these kind of updates don't happen very often, but now it has happened to you. ;-) - -In order to solve the problem, you need to update all your MCUs. We are talking about multiple MCUs here, as people tend to forget that they have multiple microcontrollers in use. One of these candidates is the "Linux MCU" that many people install on their Raspberry Pi to measure resonances with an adxl345. - -Detailed information on how to update the firmware can be found in the Klipper Documentation linked above (under TL;DR). - -As far as we know, work is in progress to let Klipper update the firmware on its own. +--- +layout: default +title: Command format mismatch +parent: Klipper Errors +grand_parent: FAQ +nav_order: 10 +has_children: false +permalink: /faq/klipper_errors/command_format_mismatch +has_toc: false +description: >- + You have updated Klipper and now you get this cryptic error message? We would like to help... +--- + +# Klipper Error - Command format mismatch + +You have updated Klipper and now you get this cryptic error message? + +![Command format mismatch](../../assets/img/faq/errors/mcu_error.png) + +This is an error and needs to be fixed to make Mainsail and Klipper work again. +{: .info} + +## TL;DR + +Klipper on your host and on your MCU have different versions. +Recompile and flash your MCUs and it will work again. Please also pay attention to the "Linux MCU", if you had e.g. an adxl345 in use. + +The following links should help you to solve the problem: +[Klipper SD-Card Updates](https://www.klipper3d.org/SDCard_Updates.html){:target="_blank"} +[Klipper Building and flashing the micro-controller](https://www.klipper3d.org/Installation.html#building-and-flashing-the-micro-controller){:target="_blank"} + +## More detailed + +Klipper consists of two parts: +The software on your host (e.g. Raspberry Pi) and the firmware on your microcontroller (MCU). + +Under normal circumstances, Klipper (on your host) can simply be updated from Mainsail without any problems and everything will work as expected. + +From time to time it happens that there are changes in Klipper that make it necessary to update all your MCUs. Assuming you have run a Klipper update and Klipper on your host now supports commands that your MCUs does not understand. Then you will get the above error message. + +Fortunately, these kind of updates don't happen very often, but now it has happened to you. ;-) + +In order to solve the problem, you need to update all your MCUs. We are talking about multiple MCUs here, as people tend to forget that they have multiple microcontrollers in use. One of these candidates is the "Linux MCU" that many people install on their Raspberry Pi to measure resonances with an adxl345. + +Detailed information on how to update the firmware can be found in the Klipper Documentation linked above (under TL;DR). + +As far as we know, work is in progress to let Klipper update the firmware on its own. {: .info} \ No newline at end of file diff --git a/src/components/TheSidebar.vue b/src/components/TheSidebar.vue index 02e0b7be..e2d2707f 100644 --- a/src/components/TheSidebar.vue +++ b/src/components/TheSidebar.vue @@ -30,7 +30,7 @@