From 2f81bf390fd36798da89577a23a8b34b877bcc09 Mon Sep 17 00:00:00 2001 From: lixxbox Date: Mon, 25 Oct 2021 19:51:49 +0200 Subject: [PATCH 1/6] docs: Add Rat Rig community theme by Raabi91 --- docs/_data/themes.csv | 1 + 1 file changed, 1 insertion(+) diff --git a/docs/_data/themes.csv b/docs/_data/themes.csv index 61fa655e..cac1731c 100644 --- a/docs/_data/themes.csv +++ b/docs/_data/themes.csv @@ -2,3 +2,4 @@ name,short_note,author,repo Dracula,,steadyjaw,dracula-mainsail-theme Cyberpunk,,Dario-Ciceri,cp2077-mainsail-theme Mainsail x Voron Toolhead,Various toolhead images inside the theme folder can be renamed to 'sidebar-background.png',eriroh,Mainsail-x-Voron-Toolhead-Theme +Rat Rig (unofficial), includes various sidebar images, which can be renamed to ‘sidebar-background.png’,Raabi91,ratrig-mainsail-theme From f90fc81634939eb9b1e3bd00261de697969dc51c Mon Sep 17 00:00:00 2001 From: lixxbox Date: Mon, 25 Oct 2021 19:55:36 +0200 Subject: [PATCH 2/6] Update themes.csv --- docs/_data/themes.csv | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/_data/themes.csv b/docs/_data/themes.csv index cac1731c..5bde75b2 100644 --- a/docs/_data/themes.csv +++ b/docs/_data/themes.csv @@ -2,4 +2,4 @@ name,short_note,author,repo Dracula,,steadyjaw,dracula-mainsail-theme Cyberpunk,,Dario-Ciceri,cp2077-mainsail-theme Mainsail x Voron Toolhead,Various toolhead images inside the theme folder can be renamed to 'sidebar-background.png',eriroh,Mainsail-x-Voron-Toolhead-Theme -Rat Rig (unofficial), includes various sidebar images, which can be renamed to ‘sidebar-background.png’,Raabi91,ratrig-mainsail-theme +Rat Rig (unofficial), includes various sidebar images which can be renamed to ‘sidebar-background.png’,Raabi91,ratrig-mainsail-theme From 3984a40fd90c84d414d4bbcc058858e4cf20a498 Mon Sep 17 00:00:00 2001 From: lixxbox Date: Tue, 26 Oct 2021 15:50:49 +0200 Subject: [PATCH 3/6] docs: add FAQ with some klipper warnings --- docs/faq/index.md | 13 +++ .../faq/klipper_warnings/deprecated_option.md | 95 +++++++++++++++++++ docs/faq/klipper_warnings/deprecated_value.md | 21 ++++ docs/faq/klipper_warnings/index.md | 9 ++ 4 files changed, 138 insertions(+) create mode 100644 docs/faq/index.md create mode 100644 docs/faq/klipper_warnings/deprecated_option.md create mode 100644 docs/faq/klipper_warnings/deprecated_value.md create mode 100644 docs/faq/klipper_warnings/index.md diff --git a/docs/faq/index.md b/docs/faq/index.md new file mode 100644 index 00000000..bbb76770 --- /dev/null +++ b/docs/faq/index.md @@ -0,0 +1,13 @@ +--- +layout: default +title: FAQ +nav_order: 110 +has_children: true +permalink: /faq/ +has_toc: false +--- +# Frequently Askes Questions + +We are still gathering some "frequently asked questions" and will publish them here soon. + +The primary reason why this section already exists, is because of the Klipper warnings in the subcategory, that needed to be fixed fast. diff --git a/docs/faq/klipper_warnings/deprecated_option.md b/docs/faq/klipper_warnings/deprecated_option.md new file mode 100644 index 00000000..d526ddf8 --- /dev/null +++ b/docs/faq/klipper_warnings/deprecated_option.md @@ -0,0 +1,95 @@ +--- +layout: default +title: Deprecated Options +parent: Klipper Warnings +grand_parent: FAQ +nav_order: 20 +has_children: false +permalink: /faq/klipper_warnings/deprecated_option +has_toc: false +--- + +# Deprecated Options + +###### default_parameter +## Removal of `default_parameter_` for gcode macros. + +In the past, default parameters for gcode macros were defined like so: + +```yaml +[gcode_macro PRINT_START] +default_parameter_EXTRUDER: 230 +gcode: + ... +``` +This would define a macro called `PRINT_START` that can be called with an `EXTRUDER` parameter like so: `PRINT_START EXTRUDER=200`. If no value is passed for `EXTRUDER` the default value of 230 is used. This style of default parameters has been deprecated. Instead, define your macro like so: + +{% raw %} +```yaml +[gcode_macro PRINT_START] +gcode: + {% set EXTRUDER_TEMP = params.EXTRUDER|default(10)|int %} +``` +{% endraw %} +Take note of the following important aspects: +- Parameters passed to gcode macros are stored in the `params` object. So if your macro is called with `VALUE=50`, `params.VALUE` will contain the value 50. After the deprecation, only the `params` object will contain these values. +- Make sure to name your "set variable" something else as the name of the variable in the `params` object (see how I used `EXTRUDER_TEMP` for the "set variable" and `EXTRUDER` for the actual macro parameter above) to avoid confusion and possible parsing errors. +- If you want to pass a default, add `|default()` to the end of the params variable (see above, where my default value is 10). +- To ensure that `EXTRUDER_TEMP` will have an integer value, add `|int` to the end of the command, to turn passed parameters (if they exist) and the default into an integer. Depending on what kind of parameter you're passing, there are `|int` `|float` `|bool` or `|string` converters available. Make sure that you convert to int if you want to compare the values in your gcode macro. + +The above description was provided by our community member [FHeilmann](https://github.com/FHeilmann){:target="_blank"} and we have his permission to publish it here. Thanks a lot! +[Source](https://gist.github.com/FHeilmann/a8097b3e908e85de7255bbe6246ddfd5){:target="_blank"}. +{: .info} + +###### step_distance +## Removal of `step_distance` + +`step_distance` describes the distance covered by a certain axis with 1 stepper (micro-)step. The downside of this parameter (and one of the reasons for its removal, is that if one were to change the microstepping of a stepper, the step_distance changes as well. Klipper therefore removed the `step_distance` parameter in favor of `rotation_distance` and `full_steps_per_rotation`. These two parameters are unaffected by microstepping, and can be easily determined by inspecting the used hardware. + +Perform the following steps to convert your config: +- comment out the old `step_distance` parameter +- add three new parameters: + - `full_steps_per_rotation` this is 400 for 0.9 degree stepper motors and 200 for 1.8 degree stepper motors. + - `rotation_distance` this can be determined either according to hardware, or by converting the old `step_distance` using math. + - `gear_ratio` can additionally be used to describe an axis that uses a reduction gear (like the Voron-2 Z axis) + - The easiest way to obtain the correct values for `rotation_distance` and `gear_ratio` is to check the official Voron printer github repositories. All example configs have been updated to include the correct values for the new parameters. Keep in mind that you'll still have to calibrate your extruder steps/mm if you choose to copy the values for the extruder. Instructions on how to convert and recalibrate the extruder values can be found [here](https://github.com/Klipper3d/klipper/blob/master/docs/Rotation_Distance.md#extruder). + - The formulas to convert `step_distance` to `rotation distance` can be found [here](https://github.com/Klipper3d/klipper/blob/master/docs/Rotation_Distance.md#obtaining-rotation_distance-from-steps_per_mm-or-step_distance) + - Guidance on how to inspect your hardware to determine your conversion distance can be found [here](https://github.com/Klipper3d/klipper/blob/master/docs/Rotation_Distance.md#obtaining-rotation_distance-by-inspecting-the-hardware). Make sure to also consider any reduction gearing, if applicable, by checking [this section](https://github.com/Klipper3d/klipper/blob/master/docs/Rotation_Distance.md#using-a-gear_ratio) as well. + - For every stepper, except your extruder, you should end up with even numbers (e.g. 40 instead of 39.9683). + +The above description was provided by our community member [FHeilmann](https://github.com/FHeilmann){:target="_blank"} and we have his permission to publish it here. Thanks a lot! +[Source](https://gist.github.com/FHeilmann/a8097b3e908e85de7255bbe6246ddfd5){:target="_blank"}. +{: .info} + +###### pin_map +## Removal of `pin_map` + +For Voron printers, this is only relevant if you're running an arduino based controller board and use pins named similar to `ar19` etc. These pin declarations are no longer valid and need to be replaced with their hardware pin identifiers. To find the appropriate hardware pin identifier perform a google image search for your board plus `pinout`. E.g.: + +`arduino mega 2560 pinout` + +which will yield images such as this one: + +![image](https://user-images.githubusercontent.com/4352664/138724260-5813281d-d62d-4b0c-87ee-1f64d301c15f.png) + +There, find the pin you're trying to replace. The old pin maps use the digital number of the pin. For example, if your old pin was `ar10`, looking at the image you will find that the `D10` pin corresponds to `PB4`. Replace all pins in your config accordingly, and finally remove the `pin_map:` configuration parameter from your `mcu` section. + +Alternatively, you can copy an appropriate `[board_pins]` block from [this location](https://github.com/Klipper3d/klipper/blob/master/config/sample-aliases.cfg) to your config. If you're using multiple arduinos, make sure to add the appropriate mcu to each block like so: + +```yaml +[board_pins arduino-mega] +mcu: mcu +``` + +The above description was provided by our community member [FHeilmann](https://github.com/FHeilmann){:target="_blank"} and we have his permission to publish it here. Thanks a lot! +[Source](https://gist.github.com/FHeilmann/a8097b3e908e85de7255bbe6246ddfd5){:target="_blank"}. +{: .info} + +###### pid_integral_max +## Removal of `pid_integral_max` + +Remove any instances of `pid_integral_max` from your config. + +The above description was provided by our community member [FHeilmann](https://github.com/FHeilmann){:target="_blank"} and we have his permission to publish it here. Thanks a lot! +[Source](https://gist.github.com/FHeilmann/a8097b3e908e85de7255bbe6246ddfd5){:target="_blank"}. +{: .info} diff --git a/docs/faq/klipper_warnings/deprecated_value.md b/docs/faq/klipper_warnings/deprecated_value.md new file mode 100644 index 00000000..575e0aed --- /dev/null +++ b/docs/faq/klipper_warnings/deprecated_value.md @@ -0,0 +1,21 @@ +--- +layout: default +title: Deprecated Values +parent: Klipper Warnings +grand_parent: FAQ +nav_order: 10 +has_children: false +permalink: /faq/klipper_warnings/deprecated_value +has_toc: false +--- + +# Deprecated Values + +###### rpi_temperature +## Removal of `rpi_temperature` sensor alias. + +Replace `sensor_type: rpi_temperature` by `sensor_type: temperature_host` everywhere in your config. + +The above description was provided by our community member [FHeilmann](https://github.com/FHeilmann){:target="_blank"} and we have his permission to publish it here. Thanks a lot! +[Source](https://gist.github.com/FHeilmann/a8097b3e908e85de7255bbe6246ddfd5){:target="_blank"}. +{: .info} diff --git a/docs/faq/klipper_warnings/index.md b/docs/faq/klipper_warnings/index.md new file mode 100644 index 00000000..a658f853 --- /dev/null +++ b/docs/faq/klipper_warnings/index.md @@ -0,0 +1,9 @@ +--- +layout: default +title: Klipper Warnings +parent: FAQ +nav_order: 10 +has_children: true +permalink: /faq/klipper_warnings +has_toc: false +--- From 4ece97a535cf7f4be3718905e73c23e32e03d63a Mon Sep 17 00:00:00 2001 From: Stefan Dej Date: Wed, 27 Oct 2021 22:37:15 +0200 Subject: [PATCH 4/6] feat: macro management (#396) * feature: add multiple macro management settings (simple/expert) Signed-off-by: Stefan Dej * feature: create and remove Macrogroups Signed-off-by: Stefan Dej * refactor: edit function for macro groups Signed-off-by: Stefan Dej * feature: create/edit/delete macrogroups Signed-off-by: Stefan Dej * fix: init data in heightmap dont exist without bed_mesh Signed-off-by: Stefan Dej * chore: extract macro params (#392) Signed-off-by: Eike Ahmels * feat: finish macro management settings Signed-off-by: Stefan Dej * feat: macro management in dashboard settings and display panels Signed-off-by: Stefan Dej * fix: align of icons and text in settings dashboard Signed-off-by: Stefan Dej * refactor: move gcode macros in seperate component Signed-off-by: Stefan Dej * feat: combine "show status lines" in edit macro groups Signed-off-by: Stefan Dej * fix: display macrogroups and macros in paused state Signed-off-by: Stefan Dej * fix: macro group rights and display errors Signed-off-by: Stefan Dej * refactor: remove create macrogroup and just add new group without name Signed-off-by: Stefan Dej * fix: hide macrogroups when macromanagement is simple Signed-off-by: Stefan Dej * feat: change to Roboto-Mono font in console Signed-off-by: Stefan Dej * chore: add robotoMono font Signed-off-by: Stefan Dej * refactor: remove debug outputs Signed-off-by: Stefan Dej * refactor: update regex for extract params from macros Signed-off-by: Stefan Dej * fix: macro params regex update Signed-off-by: Stefan Dej * feat: hide params with '_' as first char Signed-off-by: Stefan Dej * refactor: switch simple macros panel to macro-button component Signed-off-by: Stefan Dej * refactor: fix padding of macro params dialog Signed-off-by: Stefan Dej * refactor: add tooltips to macro management icon buttons Signed-off-by: Stefan Dej * fix: filter not existing macrogroups in panellist Signed-off-by: Stefan Dej * fix: delete layout position when deleting macrogroup Signed-off-by: Stefan Dej Co-authored-by: Eike Ahmels --- package-lock.json | 85 +++- package.json | 2 + public/fonts/robotoMono-regular.woff | Bin 0 -> 15160 bytes src/assets/styles/fonts.css | 8 + src/components/TheSettingsMenu.vue | 6 +- src/components/console/ConsoleTableEntry.vue | 2 +- src/components/inputs/MacroButton.vue | 144 ++++++ src/components/inputs/MiscellaneousSlider.vue | 2 - src/components/mixins/dashboard.ts | 87 ++++ .../panels/Machine/EndstopPanel.vue | 1 - src/components/panels/Machine/UpdatePanel.vue | 2 - src/components/panels/MacrogroupPanel.vue | 75 ++++ src/components/panels/MacrosPanel.vue | 26 +- src/components/panels/MiniconsolePanel.vue | 2 +- .../settings/SettingsConsoleTab.vue | 1 - .../settings/SettingsDashboardTabDesktop.vue | 79 ++-- .../settings/SettingsDashboardTabMobile.vue | 55 +-- .../settings/SettingsDashboardTabTablet.vue | 79 ++-- .../SettingsDashboardTabWidescreen.vue | 105 +++-- src/components/settings/SettingsMacrosTab.vue | 67 +-- .../settings/SettingsMacrosTabExpert.vue | 410 ++++++++++++++++++ .../settings/SettingsMacrosTabSimple.vue | 55 +++ src/locales/en.json | 36 +- src/pages/Console.vue | 2 +- src/pages/Dashboard.vue | 74 +++- src/pages/Heightmap.vue | 4 +- src/plugins/helpers.ts | 46 ++ src/store/gui/actions.ts | 82 ++++ src/store/gui/getters.ts | 30 +- src/store/gui/index.ts | 2 + src/store/gui/mutations.ts | 76 +++- src/store/gui/types.ts | 20 + src/store/printer/getters.ts | 25 +- src/store/printer/types.ts | 12 +- src/store/variables.ts | 13 +- 35 files changed, 1474 insertions(+), 241 deletions(-) create mode 100644 public/fonts/robotoMono-regular.woff create mode 100644 src/components/inputs/MacroButton.vue create mode 100644 src/components/mixins/dashboard.ts create mode 100644 src/components/panels/MacrogroupPanel.vue create mode 100644 src/components/settings/SettingsMacrosTabExpert.vue create mode 100644 src/components/settings/SettingsMacrosTabSimple.vue diff --git a/package-lock.json b/package-lock.json index c56b1e35..8ec6fdb3 100644 --- a/package-lock.json +++ b/package-lock.json @@ -27,6 +27,7 @@ "object-assign-deep": "^0.4.0", "sass-loader": "^10.2.0", "semver": "^7.3.5", + "uuid": "^8.3.2", "vue": "^2.6.14", "vue-class-component": "^7.2.6", "vue-context": "^6.0.0", @@ -47,6 +48,7 @@ "devDependencies": { "@mdi/font": "^6.2.95", "@types/semver": "^7.3.8", + "@types/uuid": "^8.3.1", "@typescript-eslint/eslint-plugin": "^4.28.5", "@typescript-eslint/parser": "^4.29.3", "@vue/cli-plugin-babel": "^4.5.13", @@ -2238,6 +2240,12 @@ "node": ">=0.10.0" } }, + "node_modules/@types/uuid": { + "version": "8.3.1", + "resolved": "https://registry.npmjs.org/@types/uuid/-/uuid-8.3.1.tgz", + "integrity": "sha512-Y2mHTRAbqfFkpjldbkHGY8JIzRN6XqYRliG8/24FcHm2D2PwW24fl5xMRTVGdrb7iMrwCaIEbLWerGIkXuFWVg==", + "dev": true + }, "node_modules/@types/webpack": { "version": "4.41.29", "resolved": "https://registry.npmjs.org/@types/webpack/-/webpack-4.41.29.tgz", @@ -15133,6 +15141,16 @@ "node": ">= 6" } }, + "node_modules/request/node_modules/uuid": { + "version": "3.4.0", + "resolved": "https://registry.npmjs.org/uuid/-/uuid-3.4.0.tgz", + "integrity": "sha512-HjSDRw6gZE5JMggctHBcjVak08+KEVhSIiDzFnT9S9aegmp85S/bReBVTb4QTFaRNptJ9kuYaNhnbNEOkbKb/A==", + "deprecated": "Please upgrade to version 7 or higher. Older versions may use Math.random() in certain circumstances, which is known to be problematic. See https://v8.dev/blog/math-random for details.", + "devOptional": true, + "bin": { + "uuid": "bin/uuid" + } + }, "node_modules/require-directory": { "version": "2.1.1", "resolved": "https://registry.npmjs.org/require-directory/-/require-directory-2.1.1.tgz", @@ -16149,6 +16167,16 @@ "ms": "^2.1.1" } }, + "node_modules/sockjs/node_modules/uuid": { + "version": "3.4.0", + "resolved": "https://registry.npmjs.org/uuid/-/uuid-3.4.0.tgz", + "integrity": "sha512-HjSDRw6gZE5JMggctHBcjVak08+KEVhSIiDzFnT9S9aegmp85S/bReBVTb4QTFaRNptJ9kuYaNhnbNEOkbKb/A==", + "deprecated": "Please upgrade to version 7 or higher. Older versions may use Math.random() in certain circumstances, which is known to be problematic. See https://v8.dev/blog/math-random for details.", + "dev": true, + "bin": { + "uuid": "bin/uuid" + } + }, "node_modules/sort-keys": { "version": "1.1.2", "resolved": "https://registry.npmjs.org/sort-keys/-/sort-keys-1.1.2.tgz", @@ -18037,13 +18065,11 @@ } }, "node_modules/uuid": { - "version": "3.4.0", - "resolved": "https://registry.npmjs.org/uuid/-/uuid-3.4.0.tgz", - "integrity": "sha512-HjSDRw6gZE5JMggctHBcjVak08+KEVhSIiDzFnT9S9aegmp85S/bReBVTb4QTFaRNptJ9kuYaNhnbNEOkbKb/A==", - "deprecated": "Please upgrade to version 7 or higher. Older versions may use Math.random() in certain circumstances, which is known to be problematic. See https://v8.dev/blog/math-random for details.", - "devOptional": true, + "version": "8.3.2", + "resolved": "https://registry.npmjs.org/uuid/-/uuid-8.3.2.tgz", + "integrity": "sha512-+NYs2QeMWy+GWFOEm9xnn6HCDp0l7QBD7ml8zLUmJ+93Q5NF0NocErnwkTkXVFNiX3/fpC6afS8Dhb/gz7R7eg==", "bin": { - "uuid": "bin/uuid" + "uuid": "dist/bin/uuid" } }, "node_modules/v8-compile-cache": { @@ -19471,6 +19497,16 @@ "node": ">= 6" } }, + "node_modules/webpack-log/node_modules/uuid": { + "version": "3.4.0", + "resolved": "https://registry.npmjs.org/uuid/-/uuid-3.4.0.tgz", + "integrity": "sha512-HjSDRw6gZE5JMggctHBcjVak08+KEVhSIiDzFnT9S9aegmp85S/bReBVTb4QTFaRNptJ9kuYaNhnbNEOkbKb/A==", + "deprecated": "Please upgrade to version 7 or higher. Older versions may use Math.random() in certain circumstances, which is known to be problematic. See https://v8.dev/blog/math-random for details.", + "dev": true, + "bin": { + "uuid": "bin/uuid" + } + }, "node_modules/webpack-merge": { "version": "4.2.2", "resolved": "https://registry.npmjs.org/webpack-merge/-/webpack-merge-4.2.2.tgz", @@ -22045,6 +22081,12 @@ } } }, + "@types/uuid": { + "version": "8.3.1", + "resolved": "https://registry.npmjs.org/@types/uuid/-/uuid-8.3.1.tgz", + "integrity": "sha512-Y2mHTRAbqfFkpjldbkHGY8JIzRN6XqYRliG8/24FcHm2D2PwW24fl5xMRTVGdrb7iMrwCaIEbLWerGIkXuFWVg==", + "dev": true + }, "@types/webpack": { "version": "4.41.29", "resolved": "https://registry.npmjs.org/@types/webpack/-/webpack-4.41.29.tgz", @@ -32185,6 +32227,14 @@ "tough-cookie": "~2.5.0", "tunnel-agent": "^0.6.0", "uuid": "^3.3.2" + }, + "dependencies": { + "uuid": { + "version": "3.4.0", + "resolved": "https://registry.npmjs.org/uuid/-/uuid-3.4.0.tgz", + "integrity": "sha512-HjSDRw6gZE5JMggctHBcjVak08+KEVhSIiDzFnT9S9aegmp85S/bReBVTb4QTFaRNptJ9kuYaNhnbNEOkbKb/A==", + "devOptional": true + } } }, "require-directory": { @@ -32988,6 +33038,14 @@ "faye-websocket": "^0.11.3", "uuid": "^3.4.0", "websocket-driver": "^0.7.4" + }, + "dependencies": { + "uuid": { + "version": "3.4.0", + "resolved": "https://registry.npmjs.org/uuid/-/uuid-3.4.0.tgz", + "integrity": "sha512-HjSDRw6gZE5JMggctHBcjVak08+KEVhSIiDzFnT9S9aegmp85S/bReBVTb4QTFaRNptJ9kuYaNhnbNEOkbKb/A==", + "dev": true + } } }, "sockjs-client": { @@ -34522,10 +34580,9 @@ "dev": true }, "uuid": { - "version": "3.4.0", - "resolved": "https://registry.npmjs.org/uuid/-/uuid-3.4.0.tgz", - "integrity": "sha512-HjSDRw6gZE5JMggctHBcjVak08+KEVhSIiDzFnT9S9aegmp85S/bReBVTb4QTFaRNptJ9kuYaNhnbNEOkbKb/A==", - "devOptional": true + "version": "8.3.2", + "resolved": "https://registry.npmjs.org/uuid/-/uuid-8.3.2.tgz", + "integrity": "sha512-+NYs2QeMWy+GWFOEm9xnn6HCDp0l7QBD7ml8zLUmJ+93Q5NF0NocErnwkTkXVFNiX3/fpC6afS8Dhb/gz7R7eg==" }, "v8-compile-cache": { "version": "2.3.0", @@ -35677,6 +35734,14 @@ "requires": { "ansi-colors": "^3.0.0", "uuid": "^3.3.2" + }, + "dependencies": { + "uuid": { + "version": "3.4.0", + "resolved": "https://registry.npmjs.org/uuid/-/uuid-3.4.0.tgz", + "integrity": "sha512-HjSDRw6gZE5JMggctHBcjVak08+KEVhSIiDzFnT9S9aegmp85S/bReBVTb4QTFaRNptJ9kuYaNhnbNEOkbKb/A==", + "dev": true + } } }, "webpack-merge": { diff --git a/package.json b/package.json index 449b8024..2d2484a1 100644 --- a/package.json +++ b/package.json @@ -33,6 +33,7 @@ "object-assign-deep": "^0.4.0", "sass-loader": "^10.2.0", "semver": "^7.3.5", + "uuid": "^8.3.2", "vue": "^2.6.14", "vue-class-component": "^7.2.6", "vue-context": "^6.0.0", @@ -53,6 +54,7 @@ "devDependencies": { "@mdi/font": "^6.2.95", "@types/semver": "^7.3.8", + "@types/uuid": "^8.3.1", "@typescript-eslint/eslint-plugin": "^4.28.5", "@typescript-eslint/parser": "^4.29.3", "@vue/cli-plugin-babel": "^4.5.13", diff --git a/public/fonts/robotoMono-regular.woff b/public/fonts/robotoMono-regular.woff new file mode 100644 index 0000000000000000000000000000000000000000..dbe7504e027b5b5aa5d85a54ab29d5dbbdd8e700 GIT binary patch literal 15160 zcmYj&1B@ua67AZ!YumPM+qP}nwsm*+u5H`4ZQK6)-uplKovBoxGgaN4p7bO$mE$HS zDhdDy@Y}f90bu{*Ra<}Yf0_TF|G$YTsR#l90Mh?*EWgH@gc676dCQWjAD<$8ZH&##G}*iX_L*%;UZ008|$K#yO~%6`jzZ)V{1%K>};k`Vvb{+L;N znErCX002zCtC2=#%=}R?H!(2&oi6z|hV?%N$dV0b{!9LLCx0>CuMtDl0aBXVIJ^IH zm;YNMV86<^EU>km(Qh0(_Al4`YyD8IZ_qXd?!WVLEdJ*G@&Nb%KY*OJ1~w+Y-0g1+ z-S7H>d4u#q?d_bLfAzZ8O+ZB$1W zw4BOk+{@E(zVQX!0?yNe%KbM#WfHhjT?0U5?unz>Cv0!E$!4SZe^=o9knGhnQ{~2h zJrSzIE4_=+JRk2f*I}Yepu64M(ocQa-%Pl6@z^(>V&lu=Rh~LC!LY-VAU5#yu@3Xj87HI70UwtjS? znA90{q!^}ckOgVhA>|}#whb7jDHbU&Cu-&yZ)j>ob%hD)=0PYanzS8BtE&2SOsuMg zZLkpQ`YBVb%UTuijjOr^+Kwxg!ER(z*7&vGz5hLBfImL~@b2qX-r)MkOUt*L8C$`N zS6w&OHzZm~HfLQ5h@6lT07CHjk@)(c!t(!!)BzO&BM~cSp81a6F5f-rc0Rnj%8ki> zGS+IXg}ZUh($<(xrg=^_oo0BBbQ!QOdg+(DE)l5ls0M43d*j3p(SkvM3j9t9kGKTa zM8kY)dLmin-D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vB^OXL(8_2I&LjIU5n6X_LD=~|Dyv~cE!7$p=D^-2X+IzjsZqBSLD zY5cotTlEUKFZ)a<%dSbRz?^oBXd}gSC|CRbW+BfSWt?GN3cvP?ky5MHqgdZNx9+76 zHCP`MpQOr02Twz6S&s(?4JI;^nmjK0RIPhz(!F3 literal 0 HcmV?d00001 diff --git a/src/assets/styles/fonts.css b/src/assets/styles/fonts.css index 0269f783..89491583 100644 --- a/src/assets/styles/fonts.css +++ b/src/assets/styles/fonts.css @@ -45,4 +45,12 @@ font-weight: 900; src: local('Roboto Black'), local('Roboto-Black'), url(/fonts/roboto-black.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; +} +/* latin */ +@font-face { + font-family: 'Roboto Mono'; + font-style: normal; + font-weight: 400; + src: local('Roboto Mono'), local('Roboto-Mono'), url(/fonts/robotoMono-regular.woff) format('woff'); + unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; } \ No newline at end of file diff --git a/src/components/TheSettingsMenu.vue b/src/components/TheSettingsMenu.vue index 90f0b4c4..66c134bc 100644 --- a/src/components/TheSettingsMenu.vue +++ b/src/components/TheSettingsMenu.vue @@ -35,7 +35,7 @@ - + @@ -140,6 +140,10 @@ export default class TheSettingsMenu extends Mixins(BaseMixin) { @Watch('activeTab') activeTabWatch() { + this.scrollToTop() + } + + scrollToTop() { if (this.$refs.settingsScroll) this.$refs.settingsScroll.$el.scrollTop = 0 } } diff --git a/src/components/console/ConsoleTableEntry.vue b/src/components/console/ConsoleTableEntry.vue index 60ec6f42..76445b6f 100644 --- a/src/components/console/ConsoleTableEntry.vue +++ b/src/components/console/ConsoleTableEntry.vue @@ -1,6 +1,6 @@ + + + + \ No newline at end of file diff --git a/src/components/inputs/MiscellaneousSlider.vue b/src/components/inputs/MiscellaneousSlider.vue index 46d4a49c..cd1f3dab 100644 --- a/src/components/inputs/MiscellaneousSlider.vue +++ b/src/components/inputs/MiscellaneousSlider.vue @@ -99,8 +99,6 @@ export default class MiscellaneousSlider extends Mixins(BaseMixin) { } increment() { - window.console.log(this.value) - this.value = this.value < 1.0 ? Math.round((this.value + 0.01) * 100) / 100 : 1.0 if (this.value < this.off_below) this.value = this.off_below this.sendCmd() diff --git a/src/components/mixins/dashboard.ts b/src/components/mixins/dashboard.ts new file mode 100644 index 00000000..3779474c --- /dev/null +++ b/src/components/mixins/dashboard.ts @@ -0,0 +1,87 @@ +import Component from 'vue-class-component' +import BaseMixin from '@/components/mixins/base' +import {allDashboardPanels} from '@/store/variables' +import {GuiStateMacrogroup} from '@/store/gui/types' +import {capitalize} from '@/plugins/helpers' + +@Component +export default class DashboardMixin extends BaseMixin { + + get macroMode() { + return this.$store.state.gui.dashboard.macroManagement ?? 'simple' + } + + get macrogroups() { + return this.$store.state.gui.dashboard.macrogroups ?? [] + } + + get missingPanelsMobile() { + const panels = [ + ...this.$store.state.gui.dashboard.mobileLayout, + ] + + return this.checkMissingPanels(panels) + } + + get missingPanelsTablet() { + const panels = [ + ...this.$store.state.gui.dashboard.tabletLayout1, + ...this.$store.state.gui.dashboard.tabletLayout2, + ] + + return this.checkMissingPanels(panels) + } + + get missingPanelsDesktop() { + const panels = [ + ...this.$store.state.gui.dashboard.desktopLayout1, + ...this.$store.state.gui.dashboard.desktopLayout2, + ] + + return this.checkMissingPanels(panels) + } + + get missingPanelsWidescreen() { + const panels = [ + ...this.$store.state.gui.dashboard.widescreenLayout1, + ...this.$store.state.gui.dashboard.widescreenLayout2, + ...this.$store.state.gui.dashboard.widescreenLayout3, + ] + + return this.checkMissingPanels(panels) + } + + checkMissingPanels(panels: any[]) { + let allPanels = [...allDashboardPanels] + const missingPanels: any[] = [] + + if (this.macroMode === 'expert') { + this.macrogroups.forEach((group: GuiStateMacrogroup) => { + allPanels.push('macrogroup_'+group.id) + }) + + allPanels = allPanels.filter((name) => name !== 'macros') + } + + allPanels.forEach((panelname) => { + if (!panels.find((panel) => panel.name === panelname)) + missingPanels.push({ + name: panelname, + visable: true + }) + }) + + return missingPanels + } + + getPanelName(name: string) { + if (name.startsWith('macrogroup_')) { + const groupId = name.split('_')[1] ?? '' + const group = this.macrogroups.find((group: GuiStateMacrogroup) => group.id === groupId) + + return (group) ? group.name : 'Macrogroup' + } + + return this.$t('Panels.'+capitalize(name)+'Panel.Headline') + } +} \ No newline at end of file diff --git a/src/components/panels/Machine/EndstopPanel.vue b/src/components/panels/Machine/EndstopPanel.vue index d4be18c7..d53c3cb6 100644 --- a/src/components/panels/Machine/EndstopPanel.vue +++ b/src/components/panels/Machine/EndstopPanel.vue @@ -79,7 +79,6 @@ export default class EndstopPanel extends Mixins(BaseMixin) { syncEndstops() { this.$socket.emit('printer.query_endstops.status', { }, { action: 'printer/getEndstopStatus', loading: 'queryEndstops' }) if (this.existProbe) { - window.console.log('exist probe') this.$store.dispatch('server/addEvent', { message: 'QUERY_PROBE', type: 'command' }) this.$socket.emit('printer.gcode.script', { script: 'QUERY_PROBE' }) } diff --git a/src/components/panels/Machine/UpdatePanel.vue b/src/components/panels/Machine/UpdatePanel.vue index 63884b53..c1e6d00d 100644 --- a/src/components/panels/Machine/UpdatePanel.vue +++ b/src/components/panels/Machine/UpdatePanel.vue @@ -475,8 +475,6 @@ export default class UpdatePanel extends Mixins(BaseMixin) { } this.commitsOverlay.bool = true - - window.console.log(this.commitsOverlay.groupedCommits) } } diff --git a/src/components/panels/MacrogroupPanel.vue b/src/components/panels/MacrogroupPanel.vue new file mode 100644 index 00000000..38f89b19 --- /dev/null +++ b/src/components/panels/MacrogroupPanel.vue @@ -0,0 +1,75 @@ + + + + + diff --git a/src/components/panels/MacrosPanel.vue b/src/components/panels/MacrosPanel.vue index 645035d7..bdf907db 100644 --- a/src/components/panels/MacrosPanel.vue +++ b/src/components/panels/MacrosPanel.vue @@ -1,7 +1,3 @@ - - @@ -65,16 +107,23 @@ import {Component, Mixins} from 'vue-property-decorator' import BaseMixin from '@/components/mixins/base' import {formatFilesize} from '@/plugins/helpers' import Codemirror from '@/components/inputs/Codemirror.vue' + @Component({ components: {Codemirror} }) export default class TheEditor extends Mixins(BaseMixin) { + private dialogConfirmChange = false + formatFilesize = formatFilesize refs!: { editor: any } + get changed() { + return this.$store.state.editor.changed ? '*' : '' + } + get show() { return this.$store.state.editor.bool ?? false } @@ -146,11 +195,33 @@ export default class TheEditor extends Mixins(BaseMixin) { this.$store.dispatch('editor/cancelLoad') } + escClose() { + if (this.$store.state.gui.editor.escToClose) + this.close() + } + close() { + if (this.$store.state.gui.editor.confirmUnsavedChanges) + this.promptUnsavedChanges() + else + this.$store.dispatch('editor/close') + } + + discardChanges() { + this.dialogConfirmChange = false this.$store.dispatch('editor/close') } + promptUnsavedChanges() { + if (!this.$store.state.editor.changed) + this.$store.dispatch('editor/close') + else + this.dialogConfirmChange = true + } + save(restartServiceName: string | null = null) { + this.dialogConfirmChange = false + this.$store.dispatch('editor/saveFile', { content: this.sourcecode, restartServiceName: restartServiceName diff --git a/src/components/TheSettingsMenu.vue b/src/components/TheSettingsMenu.vue index 66c134bc..e55860d1 100644 --- a/src/components/TheSettingsMenu.vue +++ b/src/components/TheSettingsMenu.vue @@ -59,6 +59,8 @@ import SettingsRemotePrintersTab from '@/components/settings/SettingsRemotePrint import SettingsThemeTab from '@/components/settings/SettingsThemeTab.vue' import SettingsDashboardTab from '@/components/settings/SettingsDashboardTab.vue' import SettingsGCodeViewerTab from '@/components/settings/SettingsGCodeViewerTab.vue' +import SettingsEditorTab from '@/components/settings/SettingsEditorTab.vue' + import Panel from '@/components/ui/Panel.vue' @Component({ components: { @@ -72,7 +74,8 @@ import Panel from '@/components/ui/Panel.vue' SettingsWebcamTab, SettingsGeneralTab, SettingsDashboardTab, - SettingsGCodeViewerTab + SettingsGCodeViewerTab, + SettingsEditorTab } }) export default class TheSettingsMenu extends Mixins(BaseMixin) { @@ -134,6 +137,11 @@ export default class TheSettingsMenu extends Mixins(BaseMixin) { icon: 'mdi-video-3d', name: 'g-code-viewer', title: this.$t('Settings.GCodeViewerTab.GCodeViewer') + }, + { + icon: 'mdi-file-document-edit-outline', + name: 'editor', + title: this.$t('Settings.EditorTab.Editor') } ] } diff --git a/src/components/settings/SettingsEditorTab.vue b/src/components/settings/SettingsEditorTab.vue new file mode 100644 index 00000000..f00039dc --- /dev/null +++ b/src/components/settings/SettingsEditorTab.vue @@ -0,0 +1,45 @@ + + + \ No newline at end of file diff --git a/src/locales/en.json b/src/locales/en.json index e5cd4aaf..34e71557 100644 --- a/src/locales/en.json +++ b/src/locales/en.json @@ -105,7 +105,12 @@ "SaveRestart": "Save & Restart", "SaveClose": "Save & close", "SuccessfullySaved": "{filename} successfully saved.", - "FailedSave": "{filename} could not be uploaded!" + "FailedSave": "{filename} could not be uploaded!", + "UnsavedChanges": "Unsaved Changes", + "UnsavedChangesMessage": "Do you want to save your changes made to {filename}?", + "UnsavedChangesSubMessage": "Your changes will be lost if you don't save them. You can disable this message in the editor settings.", + "DontSave": "Don't save", + "Cancel": "Cancel" }, "Files": { "GCodeFiles": "G-Code Files", @@ -664,6 +669,13 @@ "ShowAxes": "Show Axes", "MinFeed" :"Min Feed Rate", "MaxFeed" : "Max Feed Rate" + }, + "EditorTab": { + "Editor": "Editor", + "UseEscToClose": "Use ESC to close editor", + "UseEscToCloseDescription": "Allows the ESC key to close the editor", + "ConfirmUnsavedChanges": "Prompt to save or discard unsaved changes", + "ConfirmUnsavedChangesDescription": "If enabled, the editor requires a confirmation to either save or discard the changes made. If disabled, changes are silently discarded." } }, "GCodeViewer":{ diff --git a/src/store/editor/index.ts b/src/store/editor/index.ts index cfb7b252..5dff1e16 100644 --- a/src/store/editor/index.ts +++ b/src/store/editor/index.ts @@ -20,7 +20,9 @@ export const getDefaultState = (): EditorState => { total: 0, speed: '', }, - cancelToken: null + cancelToken: null, + loadedHash: '', + changed: false } } diff --git a/src/store/editor/mutations.ts b/src/store/editor/mutations.ts index be8fcc23..874fb38a 100644 --- a/src/store/editor/mutations.ts +++ b/src/store/editor/mutations.ts @@ -2,8 +2,10 @@ import { getDefaultState } from './index' import {MutationTree} from 'vuex' import {EditorState} from '@/store/editor/types' import Vue from 'vue' +import { sha256 } from 'js-sha256' export const mutations: MutationTree = { + reset(state) { Object.assign(state, getDefaultState()) }, @@ -25,6 +27,13 @@ export const mutations: MutationTree = { Vue.set(state, 'fileroot', payload.fileroot) Vue.set(state, 'filepath', payload.filepath) Vue.set(state, 'sourcecode', payload.file) + + // Because the used editor converts all Windows-Style line endings with unix ones on load, + // the hash is computed with the source always having unix-style line endings. + // https://github.com/codemirror/CodeMirror/issues/3395 + + Vue.set(state, 'loadedHash', sha256(payload.file.replace(/(?:\r\n|\r|\n)/g, '\n'))) + Vue.set(state, 'changed', false) Vue.set(state, 'bool', true) }, @@ -42,5 +51,24 @@ export const mutations: MutationTree = { updateSourcecode(state, payload) { Vue.set(state, 'sourcecode', payload) + + // To check if a file has been changed by the user, we need to calculate a hash + // (or otherwise we would need to save the full file in memory twice). Simply listening + // to the changed event is not enough, because if the user types an "a" and then deletes + // the "a" again, the file would still be shown as changed, even though the edited file + // is equal to the stored file. + + // I've tested this functionality with huge text files (60MB G-Code) and while calculating + // the hash took 2 seconds per run, the editor itself is pretty laggy even without hash + // calculations. Hash calculations with typical config file sizes (50KB) only take 1 or 2ms + // on my machine, so I guess this is acceptable for most use cases. + + if (sha256(payload) != state.loadedHash) + state.changed = true + else + state.changed = false } + } + + diff --git a/src/store/editor/types.ts b/src/store/editor/types.ts index d8e622cb..fa2d6f3d 100644 --- a/src/store/editor/types.ts +++ b/src/store/editor/types.ts @@ -13,5 +13,7 @@ export interface EditorState { total: number speed: string }, - cancelToken: any + cancelToken: any, + loadedHash: string, + changed: boolean } \ No newline at end of file diff --git a/src/store/gui/index.ts b/src/store/gui/index.ts index 9c5d13f7..1cc5600f 100644 --- a/src/store/gui/index.ts +++ b/src/store/gui/index.ts @@ -167,7 +167,9 @@ export const getDefaultState = (): GuiState => { } }, editor: { - minimap: false + minimap: false, + escToClose: true, + confirmUnsavedChanges: true }, //moonraker DB api dont accept camel case key names remotePrinters: [], @@ -194,7 +196,7 @@ export const getDefaultState = (): GuiState => { voxelWidth: 1, voxelHeight: 1, specularLighting: false, - } + }, } } From 330dee04ed9d4df6b0b9bb106b12bf6b5561d237 Mon Sep 17 00:00:00 2001 From: Felicia Hummel Date: Wed, 27 Oct 2021 22:52:23 +0200 Subject: [PATCH 6/6] fix: Bump the version for @codemirror/search to 0.19.2 to benefit from (#394) these bugfixes: > Make sure any existing search text is selected when opening the search panel. Add search config option to not match case when search panel is opened (#4) --- package.json | 1 + 1 file changed, 1 insertion(+) diff --git a/package.json b/package.json index 2d2484a1..5f8dbe69 100644 --- a/package.json +++ b/package.json @@ -22,6 +22,7 @@ "@codemirror/state": "^0.19.1", "@codemirror/stream-parser": "^0.19.1", "@codemirror/view": "^0.19.1", + "@codemirror/search": "^0.19.2", "@sindarius/gcodeviewer": "^2.1.13", "axios": "^0.21.1", "core-js": "^3.16.0",