Compare commits

..
Author SHA1 Message Date
Stefan Dej 6a2617075b chore: push version number to v2.1.0-beta5
Signed-off-by: Stefan Dej <meteyou@gmail.com>
2021-12-26 01:01:52 +01:00
Stefan Dej 2f984a6d5b Merge remote-tracking branch 'origin/develop' into develop 2021-12-26 00:56:22 +01:00
th33xitus d16f0e0fdf locale: update de translation (#482)
Signed-off-by: Dominik Willner <th33xitus@gmail.com>
2021-12-26 00:53:44 +01:00
Stefan Dej d91e3a64ba feat: add tooltip by icon only sidebar navi
Signed-off-by: Stefan Dej <meteyou@gmail.com>
2021-12-26 00:29:41 +01:00
Stefan Dej 81a7289194 feat: add special output text for klipper stop service
Signed-off-by: Stefan Dej <meteyou@gmail.com>
2021-12-26 00:09:26 +01:00
Stefan Dej 4f65bd4ba2 refactor: remove old function in TheSidebar.vue
Signed-off-by: Stefan Dej <meteyou@gmail.com>
2021-12-25 23:54:27 +01:00
Stefan Dej 1934e29bad fix: settings menu in gcode files
dropdown menu was in the wrong direction

Signed-off-by: Stefan Dej <meteyou@gmail.com>
2021-12-25 23:48:43 +01:00
Stefan Dej 73f445d005 feat: confirmation service host control (#481)
* feat: add confirmation for klipper/service/host restart/stop when printer is printing

Signed-off-by: Stefan Dej <meteyou@gmail.com>

* locale: modify confirmation dialog names

Signed-off-by: Stefan Dej <meteyou@gmail.com>

* fix: en locale syntax

Signed-off-by: Stefan Dej <meteyou@gmail.com>

* fix: locale for service restart dialog

Signed-off-by: Stefan Dej <meteyou@gmail.com>
2021-12-25 23:46:37 +01:00
Stefan Dej e45d7d69d2 fix: settings menu in config files
dropdown menu was in the wrong direction

Signed-off-by: Stefan Dej <meteyou@gmail.com>
2021-12-25 23:46:17 +01:00
Stefan Dej cd6a5c3b4a fix: tempchart length/duration issues
Signed-off-by: Stefan Dej <meteyou@gmail.com>
2021-12-24 16:33:47 +01:00
Stefan Dej 0c4601e23a fix: check if settings object exists in getMiscellaneous
Signed-off-by: Stefan Dej <meteyou@gmail.com>
2021-12-24 16:31:54 +01:00
Stefan Dej abec546575 fix: check if settings object exists
Signed-off-by: Stefan Dej <meteyou@gmail.com>
2021-12-24 16:13:34 +01:00
Stefan Dej 93dd1e3034 fix: check if settings object exists
Signed-off-by: Stefan Dej <meteyou@gmail.com>
2021-12-24 15:24:11 +01:00
Stefan Dej 1decdd2c57 fix: set default primary color in exclude object dialog map
Signed-off-by: Stefan Dej <meteyou@gmail.com>
2021-12-24 13:19:51 +01:00
Stefan Dej 093cd7c5d4 refactor: add variable descriptions in variables.ts
Signed-off-by: Stefan Dej <meteyou@gmail.com>
2021-12-24 01:11:03 +01:00
Stefan Dej a20bab62a5 fix: hide timelapse root directories in config files panel
Signed-off-by: Stefan Dej <meteyou@gmail.com>
2021-12-24 01:00:10 +01:00
Stefan Dej 02ebeb8371 fix: modify text color of console output
Signed-off-by: Stefan Dej <meteyou@gmail.com>
2021-12-24 00:56:04 +01:00
Stefan Dej 814f23213e refactor: remove debug outputs
Signed-off-by: Stefan Dej <meteyou@gmail.com>
2021-12-24 00:52:18 +01:00
Stefan Dej f2a33a8e48 fix: recover gcode viewer after switching tabs
Signed-off-by: Stefan Dej <meteyou@gmail.com>
2021-12-24 00:35:04 +01:00
Stefan Dej 9df182f44a chore: update gcode-viewer to v2.1.17
Signed-off-by: Stefan Dej <meteyou@gmail.com>
2021-12-23 23:39:33 +01:00
Stefan Dej ec832488a9 fix: hide stop moonraker service button
Signed-off-by: Stefan Dej <meteyou@gmail.com>
2021-12-23 22:44:35 +01:00
Stefan Dej 07d9b75425 fix: disable moonraker serive stop button
Signed-off-by: Stefan Dej <meteyou@gmail.com>
2021-12-23 22:16:33 +01:00
Stefan Dej a150d11e81 feat: highlight hovered objectname in exclude object dialog list
Signed-off-by: Stefan Dej <meteyou@gmail.com>
2021-12-23 22:15:07 +01:00
Stefan Dej cb87b4c198 feat: display release_info in SystemPanel.vue
Signed-off-by: Stefan Dej <meteyou@gmail.com>
2021-12-22 21:31:49 +01:00
Stefan Dej f4b393053d feat: add fw_retract setting in timelapse setting menu
Signed-off-by: Stefan Dej <meteyou@gmail.com>
2021-12-20 23:53:17 +01:00
Stefan Dej 97ace01908 refactor: remove old comment
Signed-off-by: Stefan Dej <meteyou@gmail.com>
2021-12-20 23:46:30 +01:00
Stefan Dej 63f438671f fix: custom console filters were not displayed (rework moonraker db)
Signed-off-by: Stefan Dej <meteyou@gmail.com>
2021-12-20 22:58:53 +01:00
Stefan Dej 9a8c208930 fix: settings toggle to hide upload & print button doesnt work after store rework
Signed-off-by: Stefan Dej <meteyou@gmail.com>
2021-12-20 22:54:25 +01:00
Stefan Dej f8bbc5e97c fix: min height in settings menu cut dropdown menus
Signed-off-by: Stefan Dej <meteyou@gmail.com>
2021-12-20 00:02:42 +01:00
Stefan Dej 25d1267a07 fix: issue with tempchart/temphistory if the browser go into sleep mode
Signed-off-by: Stefan Dej <meteyou@gmail.com>
2021-12-19 23:43:11 +01:00
Stefan Dej 1e090484ae fix: fix renamed moonraker db gui paths
Signed-off-by: Stefan Dej <meteyou@gmail.com>
2021-12-19 21:26:51 +01:00
Stefan Dej 62f95cddf5 refactor: style heightmap tooltip
Signed-off-by: Stefan Dej <meteyou@gmail.com>
2021-12-19 21:11:10 +01:00
Stefan Dej 5e865aa670 fix: axis name are undefined in the heightmap tooltip
fixed #471

Signed-off-by: Stefan Dej <meteyou@gmail.com>
2021-12-19 21:05:32 +01:00
Stefan Dej 5b33db421d chore: update echarts packages
Signed-off-by: Stefan Dej <meteyou@gmail.com>
2021-12-19 20:30:47 +01:00
Stefan Dej 684e65ed59 fix: fixe some renamed store paths
Signed-off-by: Stefan Dej <meteyou@gmail.com>
2021-12-19 18:25:28 +01:00
Stefan Dej 7f6e6e5bdf feat: backup/restore/default moonraker db (#476)
* refactor: reset dbCheckboxes

Signed-off-by: Stefan Dej <meteyou@gmail.com>

* refactor: rework moonraker db reset

Signed-off-by: Stefan Dej <meteyou@gmail.com>

* feat: add function to create a mainsail db backup

Signed-off-by: Stefan Dej <meteyou@gmail.com>

* refactor: fix type of dbCheckboxes

Signed-off-by: Stefan Dej <meteyou@gmail.com>

* refactor: first restore test

Signed-off-by: Stefan Dej <meteyou@gmail.com>

* feat: restore db from json file

Signed-off-by: Stefan Dej <meteyou@gmail.com>

* refactor: rework gui store

Signed-off-by: Stefan Dej <meteyou@gmail.com>

* fix: rework gui store issues

Signed-off-by: Stefan Dej <meteyou@gmail.com>

* fix: rework gui store issues with extruder panel

Signed-off-by: Stefan Dej <meteyou@gmail.com>

* refactor: rename gui/macrogroups to gui/macros and move back to mainsail namespace

Signed-off-by: Stefan Dej <meteyou@gmail.com>

* fix: ignore simple hide macros settings in expert macro mode

Signed-off-by: Stefan Dej <meteyou@gmail.com>

* fix: init load bug

Signed-off-by: Stefan Dej <meteyou@gmail.com>

* refactor: rename gui/consolefilter to gui/console and move back to mainsail namespace and update gui/macros

Signed-off-by: Stefan Dej <meteyou@gmail.com>

* refactor: remove old function in gui/macros

Signed-off-by: Stefan Dej <meteyou@gmail.com>

* refactor: rework gui/presets

Signed-off-by: Stefan Dej <meteyou@gmail.com>

* refactor: rework gui/gcodehistory

Signed-off-by: Stefan Dej <meteyou@gmail.com>

* refactor: add all gui restart actions in gui restart action

Signed-off-by: Stefan Dej <meteyou@gmail.com>

* refactor: rework gui/remoteprinters

Signed-off-by: Stefan Dej <meteyou@gmail.com>

* fix: control store gets

Signed-off-by: Stefan Dej <meteyou@gmail.com>

* refactor: rework reset moonraker db in interface settings

Signed-off-by: Stefan Dej <meteyou@gmail.com>

* refactor: rework backup moonraker DB

Signed-off-by: Stefan Dej <meteyou@gmail.com>

* refactor: rework restore moonraker db

Signed-off-by: Stefan Dej <meteyou@gmail.com>

* bugfix: backup/restore moonraker db locale

Signed-off-by: Stefan Dej <meteyou@gmail.com>

* bugfix: backup/restore moonraker db locale, add tempchart

Signed-off-by: Stefan Dej <meteyou@gmail.com>

* fix: change tempchart settings wrong store path

Signed-off-by: Stefan Dej <meteyou@gmail.com>

* fix: add view locale to db backup/restore and delete old locale

Signed-off-by: Stefan Dej <meteyou@gmail.com>

* feat: use /config/.theme/default.json when reset moonraker db to fill in default values after reset

Signed-off-by: Stefan Dej <meteyou@gmail.com>

* feat: use /config/.theme/default.json when mainsail will be loaded the first time

Signed-off-by: Stefan Dej <meteyou@gmail.com>

* refactor: add description to backup dialog

Signed-off-by: Stefan Dej <meteyou@gmail.com>

* fix: save macrogroup update

Signed-off-by: Stefan Dej <meteyou@gmail.com>
2021-12-19 17:06:43 +01:00
Stefan Dej c4181443e6 fix: hide timelapse console filter doesnt work
Signed-off-by: Stefan Dej <meteyou@gmail.com>
2021-12-19 16:58:29 +01:00
Stefan Dej a51d2167d0 locale(da): add DA language file
a big thx to SRBJ

Signed-off-by: Stefan Dej <meteyou@gmail.com>
2021-12-19 13:14:08 +01:00
Stefan Dej 6c4bbdb5f9 locale(ru): fix ru language file for the word "Flow"
fix issue #477

Signed-off-by: Stefan Dej <meteyou@gmail.com>
2021-12-19 13:11:35 +01:00
Stefan Dej b0e7e503ed locale(fr): update FR language file
a big thx to Ronald Forster

Signed-off-by: Stefan Dej <meteyou@gmail.com>
2021-12-19 13:06:44 +01:00
th33xitus fae1cc4ab6 feat: custom number input spin buttons (#468)
* feat: pressure advance settings on dashboard

Signed-off-by: Dominik Willner <th33xitus@gmail.com>

* refactor: move pressure advance settings

* move pressure advance settings from PrintsettingsPanel to MachineSettingsPanel

Signed-off-by: Dominik Willner <th33xitus@gmail.com>

* feat: custom number input spin buttons

* this feature adds custom spin buttons to the number inputs of the motion, pressure advance and firmware retraction settings

Signed-off-by: Dominik Willner <th33xitus@gmail.com>
2021-12-17 21:46:28 +01:00
th33xitus dda7a488bb fix: correct spelling of max_accel_to_decel input field (#475)
Signed-off-by: Dominik Willner <th33xitus@gmail.com>
2021-12-17 21:44:44 +01:00
lixxbox a33d26f17a docs: thumbnails - replace prusaslicer screenshot 2021-12-13 13:02:31 +01:00
lixxbox 53d85223e8 docs: remove description for legacy slicers 2021-12-13 11:24:26 +01:00
lixxbox 003586cb7a docs: fix thumbnail toc 2021-12-13 11:22:49 +01:00
lixxbox 253ff4900c docs: add youtube videos for themes & thumbnails 2021-12-13 11:16:03 +01:00
lixxbox 91f2b2fa05 docs: fix link to pre-flight 2021-12-13 09:57:38 +01:00
lixxbox f6f7fce424 docs: removed duplicate entry
only renamed for now, in case the file is still needed.
2021-12-13 09:41:08 +01:00
lixxbox f0e3a0a77a docs: fix layout 2021-12-13 09:30:41 +01:00
lixxbox d190657221 docs: fix pre-flight
I have added entries to the table and fixed some links
2021-12-13 09:20:54 +01:00
Stefan Dej 0ba9d9c6b6 feat: display moonraker-timelapse error message (#467)
Signed-off-by: Stefan Dej <meteyou@gmail.com>
2021-12-11 22:11:28 +01:00
th33xitus 36b8acdcd9 fix: prevent duplicates (#464)
refactor: don't use regex

Signed-off-by: Dominik Willner <th33xitus@gmail.com>
2021-12-10 00:06:27 +01:00
Eike Ahmels 648bbe581e fix: fixed editor highlight stop bug (#462)
* image fix, grammar fix

* fixed suggestions bug, some cleanup from old editor, svg edge case

* FIX: save a file with special characters

* DOCU: new community theme, multi cam setup

Signed-off-by: Eike Ahmels <eike.ahmels@tu-dortmund.de>

* FIX: editor highlight bug

Signed-off-by: Eike Ahmels <eike.ahmels@tu-dortmund.de>
2021-12-09 13:07:32 +01:00
cgrossi70 0bbab2182f locale(es): fix some missing translates (#461) 2021-12-09 08:22:59 +01:00
Stefan Dej 1298da15f2 feat: store last gcode commands in moonraker db (#460)
* feat: add console gcode history in moonraker db

Signed-off-by: Stefan Dej <meteyou@gmail.com>
2021-12-08 23:22:30 +01:00
Stefan Dej 945a3f8eaf fix: change exclude object icon and cut object name, if it is too long
Signed-off-by: Stefan Dej <meteyou@gmail.com>
2021-12-08 21:56:47 +01:00
th33xitusandStefan Dej abe66b4557 feat: pressure advance settings on dashboard (#459)
* feat: pressure advance settings on dashboard

Signed-off-by: Dominik Willner <th33xitus@gmail.com>

* fix: motion setting input layout

Signed-off-by: Dominik Willner <th33xitus@gmail.com>

* fix: use restart icon instead of refresh icon

Signed-off-by: Dominik Willner <th33xitus@gmail.com>

* fix: fw retract settings input layout

Signed-off-by: Dominik Willner <th33xitus@gmail.com>

* refactor: move pressure advance settings

* move pressure advance settings from PrintsettingsPanel to MachineSettingsPanel

Signed-off-by: Dominik Willner <th33xitus@gmail.com>

* fix: hide spin buttons in fw retract input fields

Signed-off-by: Dominik Willner <th33xitus@gmail.com>

* fix: hide spin buttons in pa input fields

Signed-off-by: Dominik Willner <th33xitus@gmail.com>

* refactor: class assignment conditions in pa settings

Signed-off-by: Dominik Willner <th33xitus@gmail.com>

* chore: define function return types

Signed-off-by: Dominik Willner <th33xitus@gmail.com>

* refactor: remove unused imports

Signed-off-by: Stefan Dej <meteyou@gmail.com>

Co-authored-by: Stefan Dej <meteyou@gmail.com>
2021-12-08 20:01:11 +01:00
Stefan Dej 37a08a3a37 fix: disable print start dialog for non gcode files
Signed-off-by: Stefan Dej <meteyou@gmail.com>
2021-12-08 19:40:52 +01:00
Stefan Dej 6844e6242c refactor: new sort of context menu options in gcode files
Signed-off-by: Stefan Dej <meteyou@gmail.com>
2021-12-08 19:39:48 +01:00
Stefan Dej de4efb514c fix: disable context menu options for not allowed file extensions in GcodefilesPanel.vue
Signed-off-by: Stefan Dej <meteyou@gmail.com>
2021-12-08 19:39:12 +01:00
Stefan Dej 9d9e914533 fix: add file extension filter to drag&drop fileupload in gcode files
Signed-off-by: Stefan Dej <meteyou@gmail.com>
2021-12-08 19:35:35 +01:00
Stefan Dej 4037715c8d fix: add accept attribute to gcode file upload
Signed-off-by: Stefan Dej <meteyou@gmail.com>
2021-12-08 18:26:38 +01:00
EmperorandStefan Dej f1724206f6 locale(ru): update translation file (#458)
* Update ru.json

* locale(ru): remove all unused keys

Signed-off-by: Stefan Dej <meteyou@gmail.com>

* Update ru.json

Co-authored-by: Stefan Dej <meteyou@gmail.com>
2021-12-08 00:45:46 +01:00
deddoggo 7005b87870 locale(it): update translation file (#455)
* Beta3 IT

* Beta4 IT
2021-12-08 00:43:54 +01:00
CodingJustForRunandStefan Dej 06cb14db46 locale(hu): update translation file (#454)
* New vesion based on changes in en version

ready for new release

* locale(hu): remove all unused keys

Signed-off-by: Stefan Dej <meteyou@gmail.com>

* updated the 3 changes

Group and the 2 hidetimeleapse has been inserted.

Co-authored-by: Stefan Dej <meteyou@gmail.com>
2021-12-08 00:42:54 +01:00
Stefan Dej 25062e5a36 fix: delete also timelapse preview image if exists
Signed-off-by: Stefan Dej <meteyou@gmail.com>
2021-12-07 23:51:59 +01:00
Stefan Dej ca368867e2 fix: update job_queue start command
Signed-off-by: Stefan Dej <meteyou@gmail.com>
2021-12-07 23:01:02 +01:00
127 changed files with 4568 additions and 1880 deletions

No files matched your search

+15
View File
@@ -49,6 +49,21 @@ $btn-primary-color: $red-300;
content: url("/assets/img/alert.svg");
}
.youtube-container {
position: relative;
width: 100%;
height: 0;
padding-bottom: 56.25%; /* 9/16 */
}
.youtube-container > iframe {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
}
.key {
padding: 0px 5px;
border-radius: 3px;
Binary file not shown.

Before

Width:  |  Height:  |  Size: 17 KiB

After

Width:  |  Height:  |  Size: 6.0 KiB

@@ -1,7 +1,7 @@
---
layout: default
title: Necessary Configuration
nav_order: 5
nav_exclude: true
has_children: false
permalink: /necessary-configuration
---
@@ -120,4 +120,4 @@ gcode:
BASE_BED_MESH_CALIBRATE
#after the original gcode
```
{% endraw %}
{% endraw %}
+21 -12
View File
@@ -8,40 +8,49 @@ description: >-
---
# {{ page.title }}
{: .no_toc}
{{ page.description }}
![preview](../assets/img/additional/large-preview.png)
### PrusaSlicer (since v2.3.0)
<details open markdown="block">
<summary>
Slicers
</summary>
{: .text-delta }
1. TOC
{:toc}
</details>
## PrusaSlicer (since v2.3.0)
In "Expert" mode PrusaSlicer has an option in the "Printer Settings" tab to activate previews.
Under `General / Firmware`, enter `32x32,400x300` as "G-code thumbnails".
![PrusaSlicer](../assets/img/additional/PrusaSlicer2.3.0-thumbnails.png)
### SuperSlicer (since v2.2.54.0)
<div class="youtube-container">
<iframe type="text/html" src="https://www.youtube.com/embed/4nFqfq8kikU" frameborder="0"></iframe>
</div>
## SuperSlicer (since v2.2.54.0)
In "Expert" mode SuperSlicer has some very convenient options in the "Printer Settings" tab to activate and customize the previews.
![SuperSlicer](../assets/img/additional/SuperSlicer-thumbnails.png)
### PrusaSlicer/SuperSlicer
<div class="youtube-container">
<iframe type="text/html" src="https://www.youtube.com/embed/xdOM5Uco9hM" frameborder="0"></iframe>
</div>
To enable thumbnails, click on `Help > Show Configuration Folder` and navigate to your printer profiles inside the `printer` folder.
Open your printer profile in a text editor and find `thumbnails =` and add the resolutions `32x32,400x300`. Save the file and restart your Slicer.
![PrusaSlicer](../assets/img/additional/PrusaSlicer-thumbnails.png)
From now on the gcode files contain thumbnails displayed by mainsail.
### Cura
## Cura
The Cura plugin "Cura2Moonraker" is required for this. You can find this plugin and a install guide
here: [https://github.com/emtrax-ltd/Cura2MoonrakerPlugin](https://github.com/emtrax-ltd/Cura2MoonrakerPlugin)
![Cura](../assets/img/additional/Cura-thumbnails.png)
### ideaMaker (since v4.2.1)
## ideaMaker (since v4.2.1)
To enable thumbnails, open the `Advanced` tab in the `printer settings`, enable the `GCode Thumbnails for Octoprint and Mainsail` option and
enter your prefered *square format* image size in the `Resolution` fields (e.g. `400 X 400`).
@@ -47,6 +47,7 @@ balenaEtcher appearance may vary depending on the host OS.
![screenshot-balena-select-sd-card-choice](../../assets/img/setup/balena-select-sd-card-choice.png)
* Return the the main screen, and select 'Flash'. Accept any warnings to continue.
**FLASHING WILL DESTROY ALL DATA ON YOUR SD CARD AND CANNOT BE REVERSED**
{: .alert}
+1 -1
View File
@@ -40,6 +40,6 @@ Before progressing to the next step, ensure that you have:
---
[< first boot](first-boot){: .btn } [next step >](pre-flight){: .btn }
[< first boot](first-boot){: .btn } [next step >](../pre-flight){: .btn }
+2 -2
View File
@@ -5,7 +5,7 @@ parent: Setup Guides
nav_order: 5
has_children: false
has_toc: false
permalink: /setup/mainsailos/pre-flight
permalink: /setup/pre-flight
---
# Preflight Checklist
@@ -14,7 +14,7 @@ A quick run-through to check no important steps have been missed during installa
| Installed software components: | Configured: | Performed: |
| :-- | :-- | :-- |
| &#x2705; MainsailOS<br> **OR** <br> &#x2705; Klipper<br> &#x2705; Moonraker<br> &#x2705; Mainsail<br> | &#x2705; Network<br> &#x2705; [Configured printer.cfg](k>
| &#x2705; MainsailOS<br> **OR** <br> &#x2705; Klipper<br> &#x2705; Moonraker<br> &#x2705; Mainsail<br> | &#x2705; Network<br> &#x2705; [Configured printer.cfg](mainsailos/klipper-setup)<br> &#x2705; [Included mainsail.cfg](mainsailos/first-boot#mainsailcfg)| &#x2705; Updates<br> &#x2705; Klipper verification(s)|
# Time to print
+5 -1
View File
@@ -11,4 +11,8 @@ description: >-
# {{ page.title }}
{{ page.description }}
Start with [prepare](/theming/prepare) to create a basic structure for your own theme, or take a look in [themes](/theming/themes) to see if there are already suitable themes from the Mainsail community.
Start with [prepare](/theming/prepare) to create a basic structure for your own theme, or take a look in [themes](/theming/themes) to see if there are already suitable themes from the Mainsail community.
<div class="youtube-container">
<iframe type="text/html" src="https://www.youtube.com/embed/kbSfLQtl4tA" frameborder="0"></iframe>
</div>
+88 -110
View File
@@ -1,29 +1,30 @@
{
"name": "mainsail",
"version": "2.1.0-beta3",
"version": "2.1.0-beta4",
"lockfileVersion": 2,
"requires": true,
"packages": {
"": {
"name": "mainsail",
"version": "2.1.0-beta3",
"version": "2.1.0-beta4",
"dependencies": {
"@codemirror/basic-setup": "^0.19.0",
"@codemirror/highlight": "^0.19.2",
"@codemirror/lang-javascript": "^0.19.1",
"@codemirror/highlight": "^0.19.6",
"@codemirror/lang-javascript": "^0.19.3",
"@codemirror/lang-json": "^0.19.1",
"@codemirror/language": "^0.19.7",
"@codemirror/legacy-modes": "^0.19.0",
"@codemirror/search": "^0.19.2",
"@codemirror/state": "^0.19.1",
"@codemirror/stream-parser": "^0.19.1",
"@codemirror/view": "^0.19.1",
"@sindarius/gcodeviewer": "^2.1.13",
"@codemirror/search": "^0.19.4",
"@codemirror/state": "^0.19.6",
"@codemirror/stream-parser": "^0.19.2",
"@codemirror/view": "^0.19.28",
"@sindarius/gcodeviewer": "^2.1.17",
"@types/overlayscrollbars": "^1.12.1",
"axios": "^0.21.2",
"core-js": "^3.16.0",
"echarts": "^5.1.2",
"echarts": "^5.2.2",
"echarts-for-vue": "^1.4.1",
"echarts-gl": "^2.0.7",
"echarts-gl": "^2.0.8",
"joi": "^17.4.1",
"js-sha256": "^0.9.0",
"object-assign-deep": "^0.4.0",
@@ -1902,9 +1903,9 @@
}
},
"node_modules/@codemirror/highlight": {
"version": "0.19.2",
"resolved": "https://registry.npmjs.org/@codemirror/highlight/-/highlight-0.19.2.tgz",
"integrity": "sha512-SSbGFCZMXeWhhG3sQ+YiN1ChONiXrx3vA1uYddgrglqdyFakotVe7mwiWOW0e7TKO5JfQKYdVJx0SIRXTIomXg==",
"version": "0.19.6",
"resolved": "https://registry.npmjs.org/@codemirror/highlight/-/highlight-0.19.6.tgz",
"integrity": "sha512-+eibu6on9quY8uN3xJ/n3rH+YIDLlpX7YulVmFvqAIz/ukRQ5tWaBmB7fMixHmnmRIRBRZgB8rNtonuMwZSAHQ==",
"dependencies": {
"@codemirror/language": "^0.19.0",
"@codemirror/rangeset": "^0.19.0",
@@ -1924,17 +1925,17 @@
}
},
"node_modules/@codemirror/lang-javascript": {
"version": "0.19.1",
"resolved": "https://registry.npmjs.org/@codemirror/lang-javascript/-/lang-javascript-0.19.1.tgz",
"integrity": "sha512-fFAP4nkfU36c14K8f6ytVYYeuX/2E7dJ+bD7UCZPWavXYjwdHAgDCJGH84MjhBSh0lMc908We80vyYg1j3MnRQ==",
"version": "0.19.3",
"resolved": "https://registry.npmjs.org/@codemirror/lang-javascript/-/lang-javascript-0.19.3.tgz",
"integrity": "sha512-2NE5z98Nz9Rv4OS5UtgehCSnyQjac+P85+evzy1D/4wllp/EPaHIEEtSP1daBvrLy49SdI/9vES3ZJu6rSv4/w==",
"dependencies": {
"@codemirror/autocomplete": "^0.19.0",
"@codemirror/highlight": "^0.19.0",
"@codemirror/highlight": "^0.19.6",
"@codemirror/language": "^0.19.0",
"@codemirror/lint": "^0.19.0",
"@codemirror/state": "^0.19.0",
"@codemirror/view": "^0.19.0",
"@lezer/javascript": "^0.15.0"
"@lezer/javascript": "^0.15.1"
}
},
"node_modules/@codemirror/lang-json": {
@@ -1948,14 +1949,14 @@
}
},
"node_modules/@codemirror/language": {
"version": "0.19.2",
"resolved": "https://registry.npmjs.org/@codemirror/language/-/language-0.19.2.tgz",
"integrity": "sha512-Zz/gVezTknHhH2HcaMsYauxz06+3+IFU0nhhZmdTMcGbDL/ryQI2R543k9Zc58wA31lGa6uN+JzpZynEcGBwMQ==",
"version": "0.19.7",
"resolved": "https://registry.npmjs.org/@codemirror/language/-/language-0.19.7.tgz",
"integrity": "sha512-pNNUtYWMIMG0lUSKyUXJr8U0rFiCKsKFXbA2Oj17PC+S1FY99hV0z1vcntW67ekAIZw9DMEUQnLsKBuIbAUX7Q==",
"dependencies": {
"@codemirror/state": "^0.19.0",
"@codemirror/text": "^0.19.0",
"@codemirror/view": "^0.19.0",
"@lezer/common": "^0.15.0",
"@lezer/common": "^0.15.5",
"@lezer/lr": "^0.15.0"
}
},
@@ -2019,31 +2020,30 @@
}
},
"node_modules/@codemirror/search": {
"version": "0.19.2",
"resolved": "https://registry.npmjs.org/@codemirror/search/-/search-0.19.2.tgz",
"integrity": "sha512-TrRxUxyJ/a7HXtUvMZhgkOUbKE1xO33UhXjn1XACEHKWhgovw1vEeEEti9dZejN8/QOOFJed39InUxmp7oQ8HA==",
"version": "0.19.4",
"resolved": "https://registry.npmjs.org/@codemirror/search/-/search-0.19.4.tgz",
"integrity": "sha512-Oogbi/Ep7suM3Q6eCeRdaPBHyJtuFnYo287H9uXwrbS7nCCoqYBy272tUt0OMt3GhJ3yK0/g+XMDveb+HVKRtA==",
"dependencies": {
"@codemirror/panel": "^0.19.0",
"@codemirror/rangeset": "^0.19.0",
"@codemirror/state": "^0.19.2",
"@codemirror/state": "^0.19.3",
"@codemirror/text": "^0.19.0",
"@codemirror/view": "^0.19.0",
"crelt": "^1.0.5"
}
},
"node_modules/@codemirror/state": {
"version": "0.19.2",
"resolved": "https://registry.npmjs.org/@codemirror/state/-/state-0.19.2.tgz",
"integrity": "sha512-dDqCrtkb0c/LYUlvQBLyLfkISEskbZnhvBbcVOF4j2AusJ1ptJ3EGMxBL9G16GP1TOdC1T613gA1J1qc3pbfGQ==",
"version": "0.19.6",
"resolved": "https://registry.npmjs.org/@codemirror/state/-/state-0.19.6.tgz",
"integrity": "sha512-sqIQZE9VqwQj7D4c2oz9mfLhlT1ElAzGB5lO1lE33BPyrdNy1cJyCIOecT4cn4VeJOFrnjOeu+IftZ3zqdFETw==",
"dependencies": {
"@codemirror/text": "^0.19.0"
}
},
"node_modules/@codemirror/stream-parser": {
"version": "0.19.1",
"resolved": "https://registry.npmjs.org/@codemirror/stream-parser/-/stream-parser-0.19.1.tgz",
"integrity": "sha512-ZoQR8oIDUaKyGm94lYSUAkfrFw7Cqr12MaIC6UAQter7GHYcN1A+Xa1z8rY0wd9Yv+w1yoDLY0XvpPMt2CEBzw==",
"license": "MIT",
"version": "0.19.2",
"resolved": "https://registry.npmjs.org/@codemirror/stream-parser/-/stream-parser-0.19.2.tgz",
"integrity": "sha512-hBKRQlyu8GUOrY33xZ6/1kAfNZ8ZUm6cX9a7mPx8zAAqnpz/fpksC/qJRrkg1mPMBwxm+JG4fqAwDGJ3gLVniQ==",
"dependencies": {
"@codemirror/highlight": "^0.19.0",
"@codemirror/language": "^0.19.0",
@@ -2068,13 +2068,12 @@
}
},
"node_modules/@codemirror/view": {
"version": "0.19.1",
"resolved": "https://registry.npmjs.org/@codemirror/view/-/view-0.19.1.tgz",
"integrity": "sha512-CxSM5Q9hK89CSX6mpT1ZPDq3kjzE1Ynx02l12M/MVTLvExge/8Ly8L+NYbKHpsR/uRtNc4E9V+dep+JXYOJYqQ==",
"license": "MIT",
"version": "0.19.28",
"resolved": "https://registry.npmjs.org/@codemirror/view/-/view-0.19.28.tgz",
"integrity": "sha512-GsUC+or1uJAhy6QaRDaAK7MwQ4JqZsjDv3A3zzWhELP5I/V+qNBY5RmaMNwsM5kNJOKrGf9pVigJocFI5kiPzg==",
"dependencies": {
"@codemirror/rangeset": "^0.19.0",
"@codemirror/state": "^0.19.0",
"@codemirror/state": "^0.19.3",
"@codemirror/text": "^0.19.0",
"style-mod": "^4.0.0",
"w3c-keyname": "^2.2.4"
@@ -2139,14 +2138,14 @@
}
},
"node_modules/@lezer/common": {
"version": "0.15.3",
"resolved": "https://registry.npmjs.org/@lezer/common/-/common-0.15.3.tgz",
"integrity": "sha512-TLDp0BX/XAXhR2tleyWM7TjQ6LXVkkh2PcAHPu+fgi0xcT9JmI56Gh8zgMhoztDJAzH2ItMmufzVPVeBwz9VDw=="
"version": "0.15.10",
"resolved": "https://registry.npmjs.org/@lezer/common/-/common-0.15.10.tgz",
"integrity": "sha512-vlr+be73zTDoQBIknBVOh/633tmbQcjxUu9PIeVeYESeBK3V6TuBW96RRFg93Y2cyK9lglz241gOgSn452HFvA=="
},
"node_modules/@lezer/javascript": {
"version": "0.15.0",
"resolved": "https://registry.npmjs.org/@lezer/javascript/-/javascript-0.15.0.tgz",
"integrity": "sha512-euFjbbyYmxpBls9FyBAKnGLEjaMFqfHvhfueA7M1PitZdieHu8KSblutmcwjpWKIV4eH4uElMZO2cPVe0aFxXA==",
"version": "0.15.2",
"resolved": "https://registry.npmjs.org/@lezer/javascript/-/javascript-0.15.2.tgz",
"integrity": "sha512-ytWvdJ1NAc0pfrNipGQs8otJVfjVibpIiFKH0fl99rKSA6cVlyQN/XTj/dEAQCfBfCBPAFdc30cuUe5CGZ0odA==",
"dependencies": {
"@lezer/lr": "^0.15.0"
}
@@ -2254,9 +2253,9 @@
"integrity": "sha512-RNiOoTPkptFtSVzQevY/yWtZwf/RxyVnPy/OcA9HBM3MlGDnBEYL5B41H0MTn0Uec8Hi+2qUtTfG2WWZBmMejQ=="
},
"node_modules/@sindarius/gcodeviewer": {
"version": "2.1.13",
"resolved": "https://registry.npmjs.org/@sindarius/gcodeviewer/-/gcodeviewer-2.1.13.tgz",
"integrity": "sha512-TAQi1YhNQ55eLemeviQvFxSOpwsNXaM1hSGgAHX/IirmduENjVtI582f4+dt/3/K+irEEaOFK763E465m+3oYg==",
"version": "2.1.17",
"resolved": "https://registry.npmjs.org/@sindarius/gcodeviewer/-/gcodeviewer-2.1.17.tgz",
"integrity": "sha512-N7knP2qP/sAdsyKjY+S6W7rRArLGIxQJ8iAqRJp7fFooW8eAtefZcIERbIECj8+R8kWKCFKw7US3NWa/TylKdQ==",
"dependencies": {
"@babylonjs/core": "^4.2.0",
"@babylonjs/inspector": "^4.2.0",
@@ -3592,18 +3591,6 @@
"webpack": ">=2.0.0 <5.0.0"
}
},
"node_modules/@vue/cli-plugin-eslint/node_modules/rimraf": {
"version": "2.6.3",
"resolved": "https://registry.npmjs.org/rimraf/-/rimraf-2.6.3.tgz",
"integrity": "sha512-mwqeW5XsA2qAejG46gYdENaxXjx9onRNCfn7L0duuP4hCuTIi/QO7PDK07KJfp1d+izWPrzEJDcSqBa0OZQriA==",
"dev": true,
"dependencies": {
"glob": "^7.1.3"
},
"bin": {
"rimraf": "bin.js"
}
},
"node_modules/@vue/cli-plugin-pwa": {
"version": "4.5.15",
"resolved": "https://registry.npmjs.org/@vue/cli-plugin-pwa/-/cli-plugin-pwa-4.5.15.tgz",
@@ -8150,9 +8137,9 @@
}
},
"node_modules/echarts-gl": {
"version": "2.0.7",
"resolved": "https://registry.npmjs.org/echarts-gl/-/echarts-gl-2.0.7.tgz",
"integrity": "sha512-ZP6BSIEhA4uj4VRphbASV4lfa0Vszp17zMumLo5f48IP6T9zzxRa/fr/UwGaqYMCNh5qbJ8OvWkP28AV7zi06w==",
"version": "2.0.8",
"resolved": "https://registry.npmjs.org/echarts-gl/-/echarts-gl-2.0.8.tgz",
"integrity": "sha512-ayFmjLxdF9pRpnh1Lz5aOgjnLqL3WIGu0t4Bt+oFwXGsViU2XcjCkHZARsZdv05lySow8eMD9JYZGXfLpuqYng==",
"dependencies": {
"claygl": "^1.2.1",
"zrender": "^5.1.1"
@@ -21309,9 +21296,9 @@
}
},
"@codemirror/highlight": {
"version": "0.19.2",
"resolved": "https://registry.npmjs.org/@codemirror/highlight/-/highlight-0.19.2.tgz",
"integrity": "sha512-SSbGFCZMXeWhhG3sQ+YiN1ChONiXrx3vA1uYddgrglqdyFakotVe7mwiWOW0e7TKO5JfQKYdVJx0SIRXTIomXg==",
"version": "0.19.6",
"resolved": "https://registry.npmjs.org/@codemirror/highlight/-/highlight-0.19.6.tgz",
"integrity": "sha512-+eibu6on9quY8uN3xJ/n3rH+YIDLlpX7YulVmFvqAIz/ukRQ5tWaBmB7fMixHmnmRIRBRZgB8rNtonuMwZSAHQ==",
"requires": {
"@codemirror/language": "^0.19.0",
"@codemirror/rangeset": "^0.19.0",
@@ -21331,17 +21318,17 @@
}
},
"@codemirror/lang-javascript": {
"version": "0.19.1",
"resolved": "https://registry.npmjs.org/@codemirror/lang-javascript/-/lang-javascript-0.19.1.tgz",
"integrity": "sha512-fFAP4nkfU36c14K8f6ytVYYeuX/2E7dJ+bD7UCZPWavXYjwdHAgDCJGH84MjhBSh0lMc908We80vyYg1j3MnRQ==",
"version": "0.19.3",
"resolved": "https://registry.npmjs.org/@codemirror/lang-javascript/-/lang-javascript-0.19.3.tgz",
"integrity": "sha512-2NE5z98Nz9Rv4OS5UtgehCSnyQjac+P85+evzy1D/4wllp/EPaHIEEtSP1daBvrLy49SdI/9vES3ZJu6rSv4/w==",
"requires": {
"@codemirror/autocomplete": "^0.19.0",
"@codemirror/highlight": "^0.19.0",
"@codemirror/highlight": "^0.19.6",
"@codemirror/language": "^0.19.0",
"@codemirror/lint": "^0.19.0",
"@codemirror/state": "^0.19.0",
"@codemirror/view": "^0.19.0",
"@lezer/javascript": "^0.15.0"
"@lezer/javascript": "^0.15.1"
}
},
"@codemirror/lang-json": {
@@ -21355,14 +21342,14 @@
}
},
"@codemirror/language": {
"version": "0.19.2",
"resolved": "https://registry.npmjs.org/@codemirror/language/-/language-0.19.2.tgz",
"integrity": "sha512-Zz/gVezTknHhH2HcaMsYauxz06+3+IFU0nhhZmdTMcGbDL/ryQI2R543k9Zc58wA31lGa6uN+JzpZynEcGBwMQ==",
"version": "0.19.7",
"resolved": "https://registry.npmjs.org/@codemirror/language/-/language-0.19.7.tgz",
"integrity": "sha512-pNNUtYWMIMG0lUSKyUXJr8U0rFiCKsKFXbA2Oj17PC+S1FY99hV0z1vcntW67ekAIZw9DMEUQnLsKBuIbAUX7Q==",
"requires": {
"@codemirror/state": "^0.19.0",
"@codemirror/text": "^0.19.0",
"@codemirror/view": "^0.19.0",
"@lezer/common": "^0.15.0",
"@lezer/common": "^0.15.5",
"@lezer/lr": "^0.15.0"
}
},
@@ -21425,30 +21412,30 @@
}
},
"@codemirror/search": {
"version": "0.19.2",
"resolved": "https://registry.npmjs.org/@codemirror/search/-/search-0.19.2.tgz",
"integrity": "sha512-TrRxUxyJ/a7HXtUvMZhgkOUbKE1xO33UhXjn1XACEHKWhgovw1vEeEEti9dZejN8/QOOFJed39InUxmp7oQ8HA==",
"version": "0.19.4",
"resolved": "https://registry.npmjs.org/@codemirror/search/-/search-0.19.4.tgz",
"integrity": "sha512-Oogbi/Ep7suM3Q6eCeRdaPBHyJtuFnYo287H9uXwrbS7nCCoqYBy272tUt0OMt3GhJ3yK0/g+XMDveb+HVKRtA==",
"requires": {
"@codemirror/panel": "^0.19.0",
"@codemirror/rangeset": "^0.19.0",
"@codemirror/state": "^0.19.2",
"@codemirror/state": "^0.19.3",
"@codemirror/text": "^0.19.0",
"@codemirror/view": "^0.19.0",
"crelt": "^1.0.5"
}
},
"@codemirror/state": {
"version": "0.19.2",
"resolved": "https://registry.npmjs.org/@codemirror/state/-/state-0.19.2.tgz",
"integrity": "sha512-dDqCrtkb0c/LYUlvQBLyLfkISEskbZnhvBbcVOF4j2AusJ1ptJ3EGMxBL9G16GP1TOdC1T613gA1J1qc3pbfGQ==",
"version": "0.19.6",
"resolved": "https://registry.npmjs.org/@codemirror/state/-/state-0.19.6.tgz",
"integrity": "sha512-sqIQZE9VqwQj7D4c2oz9mfLhlT1ElAzGB5lO1lE33BPyrdNy1cJyCIOecT4cn4VeJOFrnjOeu+IftZ3zqdFETw==",
"requires": {
"@codemirror/text": "^0.19.0"
}
},
"@codemirror/stream-parser": {
"version": "0.19.1",
"resolved": "https://registry.npmjs.org/@codemirror/stream-parser/-/stream-parser-0.19.1.tgz",
"integrity": "sha512-ZoQR8oIDUaKyGm94lYSUAkfrFw7Cqr12MaIC6UAQter7GHYcN1A+Xa1z8rY0wd9Yv+w1yoDLY0XvpPMt2CEBzw==",
"version": "0.19.2",
"resolved": "https://registry.npmjs.org/@codemirror/stream-parser/-/stream-parser-0.19.2.tgz",
"integrity": "sha512-hBKRQlyu8GUOrY33xZ6/1kAfNZ8ZUm6cX9a7mPx8zAAqnpz/fpksC/qJRrkg1mPMBwxm+JG4fqAwDGJ3gLVniQ==",
"requires": {
"@codemirror/highlight": "^0.19.0",
"@codemirror/language": "^0.19.0",
@@ -21473,12 +21460,12 @@
}
},
"@codemirror/view": {
"version": "0.19.1",
"resolved": "https://registry.npmjs.org/@codemirror/view/-/view-0.19.1.tgz",
"integrity": "sha512-CxSM5Q9hK89CSX6mpT1ZPDq3kjzE1Ynx02l12M/MVTLvExge/8Ly8L+NYbKHpsR/uRtNc4E9V+dep+JXYOJYqQ==",
"version": "0.19.28",
"resolved": "https://registry.npmjs.org/@codemirror/view/-/view-0.19.28.tgz",
"integrity": "sha512-GsUC+or1uJAhy6QaRDaAK7MwQ4JqZsjDv3A3zzWhELP5I/V+qNBY5RmaMNwsM5kNJOKrGf9pVigJocFI5kiPzg==",
"requires": {
"@codemirror/rangeset": "^0.19.0",
"@codemirror/state": "^0.19.0",
"@codemirror/state": "^0.19.3",
"@codemirror/text": "^0.19.0",
"style-mod": "^4.0.0",
"w3c-keyname": "^2.2.4"
@@ -21535,14 +21522,14 @@
}
},
"@lezer/common": {
"version": "0.15.3",
"resolved": "https://registry.npmjs.org/@lezer/common/-/common-0.15.3.tgz",
"integrity": "sha512-TLDp0BX/XAXhR2tleyWM7TjQ6LXVkkh2PcAHPu+fgi0xcT9JmI56Gh8zgMhoztDJAzH2ItMmufzVPVeBwz9VDw=="
"version": "0.15.10",
"resolved": "https://registry.npmjs.org/@lezer/common/-/common-0.15.10.tgz",
"integrity": "sha512-vlr+be73zTDoQBIknBVOh/633tmbQcjxUu9PIeVeYESeBK3V6TuBW96RRFg93Y2cyK9lglz241gOgSn452HFvA=="
},
"@lezer/javascript": {
"version": "0.15.0",
"resolved": "https://registry.npmjs.org/@lezer/javascript/-/javascript-0.15.0.tgz",
"integrity": "sha512-euFjbbyYmxpBls9FyBAKnGLEjaMFqfHvhfueA7M1PitZdieHu8KSblutmcwjpWKIV4eH4uElMZO2cPVe0aFxXA==",
"version": "0.15.2",
"resolved": "https://registry.npmjs.org/@lezer/javascript/-/javascript-0.15.2.tgz",
"integrity": "sha512-ytWvdJ1NAc0pfrNipGQs8otJVfjVibpIiFKH0fl99rKSA6cVlyQN/XTj/dEAQCfBfCBPAFdc30cuUe5CGZ0odA==",
"requires": {
"@lezer/lr": "^0.15.0"
}
@@ -21639,9 +21626,9 @@
"integrity": "sha512-RNiOoTPkptFtSVzQevY/yWtZwf/RxyVnPy/OcA9HBM3MlGDnBEYL5B41H0MTn0Uec8Hi+2qUtTfG2WWZBmMejQ=="
},
"@sindarius/gcodeviewer": {
"version": "2.1.13",
"resolved": "https://registry.npmjs.org/@sindarius/gcodeviewer/-/gcodeviewer-2.1.13.tgz",
"integrity": "sha512-TAQi1YhNQ55eLemeviQvFxSOpwsNXaM1hSGgAHX/IirmduENjVtI582f4+dt/3/K+irEEaOFK763E465m+3oYg==",
"version": "2.1.17",
"resolved": "https://registry.npmjs.org/@sindarius/gcodeviewer/-/gcodeviewer-2.1.17.tgz",
"integrity": "sha512-N7knP2qP/sAdsyKjY+S6W7rRArLGIxQJ8iAqRJp7fFooW8eAtefZcIERbIECj8+R8kWKCFKw7US3NWa/TylKdQ==",
"requires": {
"@babylonjs/core": "^4.2.0",
"@babylonjs/inspector": "^4.2.0",
@@ -22667,15 +22654,6 @@
"object-hash": "^1.1.4",
"rimraf": "^2.6.1"
}
},
"rimraf": {
"version": "2.6.3",
"resolved": "https://registry.npmjs.org/rimraf/-/rimraf-2.6.3.tgz",
"integrity": "sha512-mwqeW5XsA2qAejG46gYdENaxXjx9onRNCfn7L0duuP4hCuTIi/QO7PDK07KJfp1d+izWPrzEJDcSqBa0OZQriA==",
"dev": true,
"requires": {
"glob": "^7.1.3"
}
}
}
},
@@ -26289,9 +26267,9 @@
}
},
"echarts-gl": {
"version": "2.0.7",
"resolved": "https://registry.npmjs.org/echarts-gl/-/echarts-gl-2.0.7.tgz",
"integrity": "sha512-ZP6BSIEhA4uj4VRphbASV4lfa0Vszp17zMumLo5f48IP6T9zzxRa/fr/UwGaqYMCNh5qbJ8OvWkP28AV7zi06w==",
"version": "2.0.8",
"resolved": "https://registry.npmjs.org/echarts-gl/-/echarts-gl-2.0.8.tgz",
"integrity": "sha512-ayFmjLxdF9pRpnh1Lz5aOgjnLqL3WIGu0t4Bt+oFwXGsViU2XcjCkHZARsZdv05lySow8eMD9JYZGXfLpuqYng==",
"requires": {
"claygl": "^1.2.1",
"zrender": "^5.1.1"
+11 -10
View File
@@ -1,6 +1,6 @@
{
"name": "mainsail",
"version": "2.1.0-beta4",
"version": "2.1.0-beta5",
"private": true,
"decription": "a klipper web interface",
"author": {
@@ -15,21 +15,22 @@
},
"dependencies": {
"@codemirror/basic-setup": "^0.19.0",
"@codemirror/highlight": "^0.19.2",
"@codemirror/lang-javascript": "^0.19.1",
"@codemirror/language": "^0.19.7",
"@codemirror/highlight": "^0.19.6",
"@codemirror/lang-javascript": "^0.19.3",
"@codemirror/lang-json": "^0.19.1",
"@codemirror/legacy-modes": "^0.19.0",
"@codemirror/search": "^0.19.2",
"@codemirror/state": "^0.19.1",
"@codemirror/stream-parser": "^0.19.1",
"@codemirror/view": "^0.19.1",
"@sindarius/gcodeviewer": "^2.1.13",
"@codemirror/search": "^0.19.4",
"@codemirror/state": "^0.19.6",
"@codemirror/stream-parser": "^0.19.2",
"@codemirror/view": "^0.19.28",
"@sindarius/gcodeviewer": "^2.1.17",
"@types/overlayscrollbars": "^1.12.1",
"axios": "^0.21.2",
"core-js": "^3.16.0",
"echarts": "^5.1.2",
"echarts": "^5.2.2",
"echarts-for-vue": "^1.4.1",
"echarts-gl": "^2.0.7",
"echarts-gl": "^2.0.8",
"joi": "^17.4.1",
"js-sha256": "^0.9.0",
"object-assign-deep": "^0.4.0",
+2 -2
View File
@@ -114,11 +114,11 @@ export default class App extends Mixins(BaseMixin) {
}
get logoColor(): string {
return this.$store.state.gui.theme.logo
return this.$store.state.gui.uiSettings.logo
}
get primaryColor(): string {
return this.$store.state.gui.theme.primary
return this.$store.state.gui.uiSettings.primary
}
get warningColor(): string {
+18 -1
View File
@@ -13,4 +13,21 @@ $t('App.ThrottledStates.DescriptionTemperatureLimitActive')
$t('App.ThrottledStates.DescriptionPreviouslyUnderVolted')
$t('App.ThrottledStates.DescriptionPreviouslyFrequencyCapped')
$t('App.ThrottledStates.DescriptionPreviouslyThrottled')
$t('App.ThrottledStates.DescriptionPreviouslyTemperatureLimited')
$t('App.ThrottledStates.DescriptionPreviouslyTemperatureLimited')
$t('App.TopCornerMenu.Start')
$t('App.TopCornerMenu.Restart')
$t('App.TopCornerMenu.Stop')
$t('App.TopCornerMenu.ConfirmationDialog.Title.KlipperRestart')
$t('App.TopCornerMenu.ConfirmationDialog.Title.KlipperFirmwareRestart')
$t('App.TopCornerMenu.ConfirmationDialog.Title.ServiceStart')
$t('App.TopCornerMenu.ConfirmationDialog.Title.ServiceRestart')
$t('App.TopCornerMenu.ConfirmationDialog.Title.ServiceStop')
$t('App.TopCornerMenu.ConfirmationDialog.Title.HostReboot')
$t('App.TopCornerMenu.ConfirmationDialog.Title.HostShutdown')
$t('App.TopCornerMenu.ConfirmationDialog.Description.KlipperRestart')
$t('App.TopCornerMenu.ConfirmationDialog.Description.KlipperFirmwareRestart')
$t('App.TopCornerMenu.ConfirmationDialog.Description.ServiceStart')
$t('App.TopCornerMenu.ConfirmationDialog.Description.ServiceRestart')
$t('App.TopCornerMenu.ConfirmationDialog.Description.ServiceStop')
$t('App.TopCornerMenu.ConfirmationDialog.Description.HostReboot')
$t('App.TopCornerMenu.ConfirmationDialog.Description.HostShutdown')
+1
View File
@@ -188,6 +188,7 @@ export default class TheSettingsMenu extends Mixins(BaseMixin) {
<style scoped>
.settings-tabs {
height: auto;
min-height: 100%;
max-height: calc(var(--app-height) - 96px);
}
+40 -30
View File
@@ -34,33 +34,47 @@
<v-list class="pr-0 pt-0 ml-0">
<v-list-item-group active-class="active-nav-item">
<template v-if="countPrinters">
<v-list-item
router to="/allPrinters"
class="small-list-item mt-1"
>
<v-list-item-icon class="my-3 mr-3 menu-item-icon">
<v-icon>mdi-view-dashboard-outline</v-icon>
</v-list-item-icon>
<v-list-item-content>
<v-list-item-title tile class="menu-item-title">{{ $t("App.Printers")}}</v-list-item-title>
</v-list-item-content>
<v-tooltip right>
<template v-slot:activator="{ on, attrs }">
<v-list-item
router to="/allPrinters"
class="small-list-item mt-1"
v-bind="attrs"
v-on="on"
>
<v-list-item-icon class="my-3 mr-3 menu-item-icon">
<v-icon>mdi-view-dashboard-outline</v-icon>
</v-list-item-icon>
<v-list-item-content>
<v-list-item-title tile class="menu-item-title">{{ $t("App.Printers") }}</v-list-item-title>
</v-list-item-content>
</v-list-item>
</v-list-item>
</template>
<span v-if="navigationStyle === 'iconsOnly'">{{ $t("App.Printers") }}</span>
</v-tooltip>
<v-divider class="my-1"></v-divider>
</template>
<div v-for="(category, index) in naviPoints" :key="index">
<v-list-item
router :to="category.path"
v-if="showInNavi(category)"
class="small-list-item"
>
<v-list-item-icon class="my-3 mr-3 menu-item-icon">
<v-icon>mdi-{{ category.icon }}</v-icon>
</v-list-item-icon>
<v-list-item-content>
<v-list-item-title tile class="menu-item-title">{{ $t(`Router.${category.title}`) }}</v-list-item-title>
</v-list-item-content>
</v-list-item>
<div v-for="(category, index) in naviPoints" :key="index">
<v-tooltip right :open-delay="500">
<template v-slot:activator="{ on, attrs }">
<v-list-item
router :to="category.path"
v-if="showInNavi(category)"
class="small-list-item"
v-bind="attrs"
v-on="on"
>
<v-list-item-icon class="my-3 mr-3 menu-item-icon">
<v-icon>mdi-{{ category.icon }}</v-icon>
</v-list-item-icon>
<v-list-item-content>
<v-list-item-title tile class="menu-item-title">{{ $t(`Router.${category.title}`) }}</v-list-item-title>
</v-list-item-content>
</v-list-item>
</template>
<span v-if="navigationStyle === 'iconsOnly'">{{ $t(`Router.${category.title}`) }}</span>
</v-tooltip>
</div>
</v-list-item-group>
</v-list>
@@ -103,7 +117,7 @@ export default class TheSidebarAlt extends Mixins(BaseMixin) {
}
get navigationStyle() {
return this.$store.state.gui.dashboard.navigationStyle
return this.$store.state.gui.uiSettings.navigationStyle
}
get sidebarBackground(): string {
@@ -119,7 +133,7 @@ export default class TheSidebarAlt extends Mixins(BaseMixin) {
}
get boolNaviWebcam(): boolean {
return this.$store.state.gui.webcamSettings.boolNavi
return this.$store.state.gui.uiSettings.boolWebcamNavi
}
get moonrakerComponents(): string[] {
@@ -138,10 +152,6 @@ export default class TheSidebarAlt extends Mixins(BaseMixin) {
return this.$route.fullPath
}
get isUpdateAvailable(): boolean {
return this.$store.getters['server/updateManager/isUpdateAvailable']
}
get countPrinters() {
return this.$store.getters['farm/countPrinters']
}
+83 -11
View File
@@ -15,13 +15,13 @@
<v-list dense>
<template v-if="klipperState !== 'disconnected'">
<v-subheader class="" style="height: auto;">{{ $t("App.TopCornerMenu.KlipperControl") }}</v-subheader>
<v-list-item class="minheight30 pr-2" link @click="klipperRestart()">
<v-list-item class="minheight30 pr-2" link @click="checkDialog(klipperRestart)">
<v-list-item-title>{{ $t("App.TopCornerMenu.KlipperRestart") }}</v-list-item-title>
<v-list-item-action class="my-0 d-flex flex-row" style="min-width: auto;">
<v-icon class="mr-2" small>mdi-restart</v-icon>
</v-list-item-action>
</v-list-item>
<v-list-item class="minheight30 pr-2" link @click="klipperFirmwareRestart()">
<v-list-item class="minheight30 pr-2" link @click="checkDialog(klipperFirmwareRestart)">
<v-list-item-title>{{ $t("App.TopCornerMenu.KlipperFirmwareRestart") }}</v-list-item-title>
<v-list-item-action class="my-0 d-flex flex-row" style="min-width: auto;">
<v-icon class="mr-2" small>mdi-restart</v-icon>
@@ -41,9 +41,9 @@
</v-tooltip>
</v-list-item-title>
<v-list-item-action class="my-0 d-flex flex-row" style="min-width: auto;">
<v-btn icon small v-if="getServiceState(service) === 'inactive'" @click="serviceStart(service)"><v-icon small>mdi-play</v-icon></v-btn>
<v-btn icon small v-else @click="serviceRestart(service)"><v-icon small>mdi-restart</v-icon></v-btn>
<v-btn icon small :disabled="getServiceState(service) === 'inactive'" @click="serviceStop(service)"><v-icon small>mdi-stop</v-icon></v-btn>
<v-btn icon small v-if="getServiceState(service) === 'inactive'" @click="checkDialog(serviceStart, service)"><v-icon small>mdi-play</v-icon></v-btn>
<v-btn icon small v-else @click="checkDialog(serviceRestart, service)"><v-icon small>mdi-restart</v-icon></v-btn>
<v-btn icon small :disabled="getServiceState(service) === 'inactive' || service === 'moonraker'" @click="checkDialog(serviceStop, service)" :style="service === 'moonraker' ? 'visibility: hidden;' : ''"><v-icon small>mdi-stop</v-icon></v-btn>
</v-list-item-action>
</v-list-item>
</template>
@@ -59,13 +59,13 @@
</template>
<v-divider class="mt-0"></v-divider>
<v-subheader class="pt-2" style="height: auto;">{{ $t("App.TopCornerMenu.HostControl") }}</v-subheader>
<v-list-item class="minheight30 pr-2" link @click="hostReboot()">
<v-list-item class="minheight30 pr-2" link @click="checkDialog(hostReboot)">
<v-list-item-title>{{ $t("App.TopCornerMenu.Reboot") }}</v-list-item-title>
<v-list-item-action class="my-0 d-flex flex-row" style="min-width: auto;">
<v-icon class="mr-2" small>mdi-power</v-icon>
</v-list-item-action>
</v-list-item>
<v-list-item class="minheight30 pr-2" link @click="hostShutdown()">
<v-list-item class="minheight30 pr-2" link @click="checkDialog(hostShutdown)">
<v-list-item-title>{{ $t("App.TopCornerMenu.Shutdown") }}</v-list-item-title>
<v-list-item-action class="my-0 d-flex flex-row" style="min-width: auto;">
<v-icon class="mr-2" small>mdi-power</v-icon>
@@ -84,6 +84,29 @@
</v-card-actions>
</v-card>
</v-dialog>
<v-dialog v-model="dialogConfirmation.show" width="400" :fullscreen="isMobile">
<panel card-class="confirm-top-corner-menu-dialog" icon="mdi-help-circle" :title="dialogConfirmation.title" :margin-bottom="false">
<template v-slot:buttons>
<v-btn icon tile @click="dialogConfirmation.show = false"><v-icon>mdi-close-thick</v-icon></v-btn>
</template>
<v-card-text class="pt-3">
<v-row>
<v-col>
<p class="body-2">{{ dialogConfirmation.description }}</p>
</v-col>
</v-row>
</v-card-text>
<v-card-actions>
<v-spacer></v-spacer>
<v-btn text @click="dialogConfirmation.show = false">
{{ $t('App.TopCornerMenu.Cancel') }}
</v-btn>
<v-btn text color="primary" @click="executeDialog">
{{ dialogConfirmation.actionButtonText }}
</v-btn>
</v-card-actions>
</panel>
</v-dialog>
</div>
</template>
@@ -93,6 +116,7 @@ import Component from 'vue-class-component'
import { Mixins } from 'vue-property-decorator'
import BaseMixin from '@/components/mixins/base'
import {ServerPowerStateDevice} from '@/store/server/power/types'
import Panel from '@/components/ui/Panel.vue'
interface dialogPowerDeviceChange {
show: boolean
@@ -100,7 +124,18 @@ interface dialogPowerDeviceChange {
value: string
}
@Component
interface dialogConfirmation {
show: boolean
serviceName: string | null
executableFunction: any | null
title: string
description: string
actionButtonText: string
}
@Component({
components: {Panel}
})
export default class TheTopCornerMenu extends Mixins(BaseMixin) {
showMenu = false
@@ -110,6 +145,15 @@ export default class TheTopCornerMenu extends Mixins(BaseMixin) {
value: ''
}
dialogConfirmation: dialogConfirmation = {
show: false,
serviceName: null,
executableFunction: null,
title: '',
description: '',
actionButtonText: ''
}
get services() {
const services = this.$store.state.server.system_info?.available_services?.filter((name: string) => name !== 'klipper_mcu') ?? []
services.sort()
@@ -136,6 +180,35 @@ export default class TheTopCornerMenu extends Mixins(BaseMixin) {
return null
}
checkDialog(executableFunction: any, serviceName: string | null = null) {
if (this.printerIsPrinting) {
const functionName = (executableFunction.name ?? 'unknown').replace('bound ', '')
let action: string = 'Restart'
const actionTypes = ['Start', 'Restart', 'Stop', 'Reboot', 'Shutdown']
actionTypes.forEach((actionType: string) => {
if (functionName.endsWith(actionType)) action = actionType
})
this.dialogConfirmation.executableFunction = executableFunction
this.dialogConfirmation.serviceName = serviceName
const functionNameUppercase = functionName.trim().charAt(0).toUpperCase() + functionName.trim().slice(1)
this.dialogConfirmation.title = this.$t('App.TopCornerMenu.ConfirmationDialog.Title.' + functionNameUppercase)+''
if (serviceName === 'klipper' && action === 'Stop') this.dialogConfirmation.description = this.$t('App.TopCornerMenu.ConfirmationDialog.Description.KlipperStop')+''
else this.dialogConfirmation.description = this.$t('App.TopCornerMenu.ConfirmationDialog.Description.' + functionNameUppercase)+''
this.dialogConfirmation.actionButtonText = this.$t('App.TopCornerMenu.' + action.charAt(0).toUpperCase() + action.slice(1))+''
this.dialogConfirmation.show = true
} else executableFunction(serviceName)
}
executeDialog() {
this.dialogConfirmation.executableFunction(this.dialogConfirmation.serviceName)
this.dialogConfirmation.show = false
}
klipperRestart() {
this.showMenu = false
this.$store.dispatch('server/addEvent', { message: 'RESTART', type: 'command' })
@@ -167,11 +240,10 @@ export default class TheTopCornerMenu extends Mixins(BaseMixin) {
this.dialogPowerDeviceChange.device = device.device
this.dialogPowerDeviceChange.value = value
const confirmOnPowerDeviceChange = this.$store.state.gui.general.confirmOnPowerDeviceChange
const confirmOnPowerDeviceChange = this.$store.state.gui.uiSettings.confirmOnPowerDeviceChange
if (confirmOnPowerDeviceChange) {
this.dialogPowerDeviceChange.show = true
}
else {
} else {
this.powerDeviceToggle()
}
}
+4 -4
View File
@@ -198,7 +198,7 @@ export default class TheTopbar extends Mixins(BaseMixin) {
}
get boolWideNavDrawer() {
return this.$store.state.gui.dashboard.boolWideNavDrawer ?? false
return this.$store.state.gui.uiSettings.boolWideNavDrawer ?? false
}
get countPrinters() {
@@ -206,7 +206,7 @@ export default class TheTopbar extends Mixins(BaseMixin) {
}
get boolHideUploadAndPrintButton() {
return this.$store.state.gui.dashboard.boolHideUploadAndPrintButton ?? false
return this.$store.state.gui.uiSettings.boolHideUploadAndPrintButton ?? false
}
get sidebarLogo(): string {
@@ -214,11 +214,11 @@ export default class TheTopbar extends Mixins(BaseMixin) {
}
get logoColor(): string {
return this.$store.state.gui.theme.logo
return this.$store.state.gui.uiSettings.logo
}
btnEmergencyStop() {
const confirmOnEmergencyStop = this.$store.state.gui.general.confirmOnEmergencyStop
const confirmOnEmergencyStop = this.$store.state.gui.uiSettings.confirmOnEmergencyStop
if (confirmOnEmergencyStop) {
this.showEmergencyStopDialog = true
}
+13 -4
View File
@@ -14,7 +14,7 @@ import { convertName } from '@/plugins/helpers'
import Component from 'vue-class-component'
import {Mixins, Watch} from 'vue-property-decorator'
import BaseMixin from '../mixins/base'
import {PrinterTempHistoryStateSerie} from '@/store/printer/tempHistory/types'
import {PrinterTempHistoryStateSerie, PrinterTempHistoryStateSourceEntry} from '@/store/printer/tempHistory/types'
import { createComponent } from 'echarts-for-vue'
import * as echarts from 'echarts'
@@ -210,7 +210,7 @@ export default class TempChart extends Mixins(BaseMixin) {
}
get autoscale() {
return this.$store.state.gui.tempchart.autoscale ?? true
return this.$store.state.gui.view.tempchart.autoscale ?? true
}
get maxTemp() {
@@ -243,15 +243,24 @@ export default class TempChart extends Mixins(BaseMixin) {
updateChart() {
if (this.chart && this.isVisible) {
//const t0 = performance.now()
const limitDate = new Date(Date.now() - this.maxHistory * 1000)
let newSource = [...this.source].filter((entry: PrinterTempHistoryStateSourceEntry) => {
return entry.date >= limitDate
})
this.chart?.setOption({
dataset: {
source: this.source
source: newSource
},
})
//const t1 = performance.now()
//window.console.debug(t1-t0)
//window.console.debug('calc chart', (t1-t0).toFixed(), newSource.length, this.source.length)
// reset tempHistory if working sources are smaller than 80%
if (this.source.length > 0 && newSource.length < this.maxHistory * 0.8) {
this.$socket.emit('server.temperature_store', {}, { action: 'printer/tempHistory/init' })
}
}
}
+2 -2
View File
@@ -25,7 +25,7 @@
<template>
<v-row :class="'ma-0 '+entryStyle">
<v-col class="col-auto pr-0">{{ event.formatTime }}</v-col>
<v-col class="col-auto pr-0 text--secondary">{{ event.formatTime }}</v-col>
<v-col :class="colorConsoleMessage(event)" v-html="event.formatMessage" @click.capture="commandClick"></v-col>
</v-row>
</template>
@@ -48,7 +48,7 @@ export default class ConsoleTableEntry extends Vue {
colorConsoleMessage(item: ServerStateEvent): string {
if (item.message.startsWith('!! ')) return 'red--text'
return ''
return 'white--text'
}
commandClick(event: Event) {
+12 -4
View File
@@ -234,6 +234,7 @@ export default class Viewer extends Mixins(BaseMixin) {
async mounted() {
this.loadedFile = this.$store.state.gcodeviewer?.loadedFileBackup ?? null
viewer = this.$store.state.gcodeviewer?.viewerBackup ?? null
await this.init()
@@ -244,6 +245,7 @@ export default class Viewer extends Mixins(BaseMixin) {
if (viewer) {
viewer.gcodeProcessor.loadingProgressCallback = null
this.$store.dispatch('gcodeviewer/setLoadedFileBackup', this.loadedFile)
this.$store.dispatch('gcodeviewer/setViewerBackup', viewer)
}
window.removeEventListener('resize', this.eventListenerResize)
@@ -258,7 +260,7 @@ export default class Viewer extends Mixins(BaseMixin) {
}
get sdCardFilePath() {
return this.$store.state.printer.print_stats.filename ?? ''
return this.$store.state.printer.print_stats?.filename ?? ''
}
get currentPosition() {
@@ -285,7 +287,12 @@ export default class Viewer extends Mixins(BaseMixin) {
canvasElement.className = 'viewer'
this.$refs.viewerCanvasContainer.appendChild(canvasElement)
await this.$store.dispatch('gcodeviewer/setCanvasBackup', canvasElement)
} else this.$refs.viewerCanvasContainer.appendChild(canvasElement)
} else {
this.$refs.viewerCanvasContainer.appendChild(canvasElement)
if (viewer?.gcodeProcessor) {
viewer.gcodeProcessor.updateFilePosition(viewer?.fileSize)
}
}
if (viewer === null) {
await this.viewerInit(canvasElement)
@@ -373,7 +380,6 @@ export default class Viewer extends Mixins(BaseMixin) {
this.zSlider = this.maxZSlider
this.loading = false
viewer.setCursorVisiblity(this.showCursor)
viewer.gcodeProcessor.updateFilePosition(viewer.fileSize)
if (this.loadedFile === this.sdCardFilePath && this.printing_objects.length) {
let objects: any = []
@@ -393,6 +399,8 @@ export default class Viewer extends Mixins(BaseMixin) {
viewer.buildObjects.loadObjectBoundaries(objects)
viewer.buildObjects.showObjectSelection(this.showObjectSelection)
}
viewer.gcodeProcessor.updateFilePosition(viewer.fileSize)
}
async fileSelected(e: any) {
@@ -521,7 +529,7 @@ export default class Viewer extends Mixins(BaseMixin) {
if (newVal > 0 && this.printerIsPrinting && this.tracking && newVal > offset) {
viewer.gcodeProcessor.updateFilePosition(newVal - offset)
} else {
viewer.gcodeProcessor.updateFilePosition(0)
viewer.gcodeProcessor.updateFilePosition(viewer.fileSize)
}
}
@@ -1,33 +1,55 @@
<style scoped>
._spin_button_group {
width: 24px;
margin: -6px -6px 0 -6px;
}
</style>
<template>
<form v-on:submit.prevent="sendCmd">
<v-text-field
v-model="value"
class="d-flex align-center"
@click:append="resetLimit"
:label="label"
:suffix="unit"
:append-icon="this.value !== this.defaultValue ? 'mdi-refresh' : ''"
:error="this.value < 0"
:append-icon="this.value !== this.defaultValue ? 'mdi-restart' : ''"
:error="(this.value < this.min) || ((this.value > this.max) && this.max !== -1)"
:step="step"
:min="min"
:max="max"
:dec="dec"
type="number"
min="0"
hide-spin-buttons
hide-details
outlined
dense
></v-text-field>
>
<template v-slot:append-outer>
<div class="_spin_button_group">
<v-btn @click="increment" class="mt-n3" icon plain small><v-icon>mdi-chevron-up</v-icon></v-btn>
<v-btn @click="decrement" class="mb-n3" icon plain small><v-icon>mdi-chevron-down</v-icon></v-btn>
</div>
</template>
</v-text-field>
</form>
</template>
<script lang="ts">
import Component from 'vue-class-component'
import {Mixins, Prop, Watch} from 'vue-property-decorator'
import {Debounce} from 'vue-debounce-decorator'
import BaseMixin from '@/components/mixins/base'
@Component
export default class FirmwareRetractionSettingsInput extends Mixins(BaseMixin) {
private value: any = 0
private value: number = 0
@Prop({ type: String, required: true }) readonly label!: string
@Prop({ type: Number, required: false }) readonly step!: string
@Prop({ type: Number, required: false , default: 1 }) readonly step!: number
@Prop({ type: Number, required: true , default: 0 }) readonly min!: number
@Prop({ type: Number, required: false , default: -1 }) readonly max!: number
@Prop({ type: Number, required: true , default: 0 }) readonly dec!: number
@Prop({ type: Number, required: true, default: 0 }) readonly target!: number
@Prop({ type: Number, required: true, default: 0 }) readonly defaultValue!: number
@Prop({ type: String, required: true }) readonly attributeName!: string
@@ -42,14 +64,25 @@ export default class FirmwareRetractionSettingsInput extends Mixins(BaseMixin) {
this.value = this.target
}
resetLimit() {
resetLimit(): void {
this.value = this.defaultValue
this.sendCmd()
}
sendCmd() {
const gcode = 'SET_RETRACTION ' + this.attributeName + '=' + Math.max(0, this.value).toFixed(2)
decrement(): void {
this.value = (this.value > this.min) ? Math.round((this.value - this.step) * (10 ** this.dec)) / (10 ** this.dec) : this.min
this.sendCmd()
}
increment(): void {
this.value = (this.value < this.max || this.max === -1) ? Math.round((this.value + this.step) * (10 ** this.dec)) / (10 ** this.dec) : this.max
this.sendCmd()
}
@Debounce(500)
sendCmd(): void {
const gcode = 'SET_RETRACTION ' + this.attributeName + '=' + Math.max(this.min, this.value).toFixed(this.dec)
this.$store.dispatch('server/addEvent', {message: gcode, type: 'command'})
this.$socket.emit('printer.gcode.script', {script: gcode})
}
+2 -2
View File
@@ -68,7 +68,7 @@
import Component from 'vue-class-component'
import {Mixins, Prop, Watch} from 'vue-property-decorator'
import BaseMixin from '@/components/mixins/base'
import {GuiMacrogroupsStateMacrogroupMacro} from '@/store/gui/macrogroups/types'
import {GuiMacrosStateMacrogroupMacro} from '@/store/gui/macros/types'
interface param {
type: 'int' | 'double' | 'string' | null,
@@ -85,7 +85,7 @@ export default class MacroButton extends Mixins(BaseMixin) {
private paramArray: string[] = []
private params: params = {}
@Prop({ required: true }) readonly macro!: GuiMacrogroupsStateMacrogroupMacro
@Prop({ required: true }) readonly macro!: GuiMacrosStateMacrogroupMacro
@Prop({ default: 'primary' }) readonly color!: string
get klipperMacro() {
@@ -106,11 +106,11 @@ export default class MiscellaneousSlider extends Mixins(BaseMixin) {
}
get lockSliders() {
return this.$store.state.gui.general.lockSlidersOnTouchDevices
return this.$store.state.gui.uiSettings.lockSlidersOnTouchDevices
}
get lockSlidersDelay() {
return this.$store.state.gui.general.lockSlidersDelay
return this.$store.state.gui.uiSettings.lockSlidersDelay
}
@Debounce(500)
+43 -14
View File
@@ -1,39 +1,57 @@
<style scoped>
._spin_button_group {
width: 24px;
margin: -6px -6px 0 -6px;
}
</style>
<template>
<form v-on:submit.prevent="sendCmd">
<v-text-field
v-model="value"
class="d-flex align-center"
@click:append="resetLimit"
:label="label"
:suffix="unit"
v-model="value"
:append-icon="this.value !== this.defaultValue ? 'mdi-restart' : ''"
:error="(this.value < this.min) || ((this.value > this.max) && this.max !== -1)"
:step="step"
:min="min"
:max="max"
:dec="dec"
type="number"
hide-spin-buttons
hide-details
outlined
dense
:append-icon="this.value !== this.defaultValue ? 'mdi-refresh' : ''"
:error="this.value <= 0"
min="1"
@click:append="resetLimit"
hide-details
hide-spin-buttons
></v-text-field>
>
<template v-slot:append-outer>
<div class="_spin_button_group">
<v-btn @click="increment" class="mt-n3" icon plain small><v-icon>mdi-chevron-up</v-icon></v-btn>
<v-btn @click="decrement" class="mb-n3" icon plain small><v-icon>mdi-chevron-down</v-icon></v-btn>
</div>
</template>
</v-text-field>
</form>
</template>
<script lang="ts">
import Component from 'vue-class-component'
import {Mixins, Prop, Watch} from 'vue-property-decorator'
import {Debounce} from 'vue-debounce-decorator'
import BaseMixin from '@/components/mixins/base'
@Component
export default class MotionSettingsInput extends Mixins(BaseMixin) {
private value: any = 0
private value: number = 0
@Prop({ type: String, required: true }) readonly label!: string
@Prop({ type: Number, required: false , default: 1 }) readonly step!: number
@Prop({ type: Number, required: true , default: 0 }) readonly min!: number
@Prop({ type: Number, required: false , default: -1 }) readonly max!: number
@Prop({ type: Number, required: true , default: 0 }) readonly dec!: number
@Prop({ type: Number, required: true, default: 0 }) readonly target!: number
@Prop({ type: Number, required: true, default: 0 }) readonly defaultValue!: number
@Prop({ type: Number, required: true, default: 100 }) readonly max!: number
@Prop({ type: String, required: true }) readonly attributeName!: string
@Prop({ type: String, required: true }) readonly unit!: string
@@ -46,14 +64,25 @@ export default class MotionSettingsInput extends Mixins(BaseMixin) {
this.value = this.target
}
resetLimit() {
resetLimit(): void {
this.value = this.defaultValue
this.sendCmd()
}
sendCmd() {
const gcode = 'SET_VELOCITY_LIMIT ' + this.attributeName + '=' + Math.max(1, this.value).toFixed(0)
decrement(): void {
this.value = (this.value > this.min) ? Math.round((this.value - this.step) * (10 ** this.dec)) / (10 ** this.dec) : this.min
this.sendCmd()
}
increment(): void {
this.value = (this.value < this.max || this.max === -1) ? Math.round((this.value + this.step) * (10 ** this.dec)) / (10 ** this.dec) : this.max
this.sendCmd()
}
@Debounce(500)
sendCmd(): void {
const gcode = 'SET_VELOCITY_LIMIT ' + this.attributeName + '=' + Math.max(this.min, this.value).toFixed(this.dec)
this.$store.dispatch('server/addEvent', {message: gcode, type: 'command'})
this.$socket.emit('printer.gcode.script', {script: gcode})
}
@@ -0,0 +1,94 @@
<style scoped>
._spin_button_group {
width: 24px;
margin: -6px -6px 0 -6px;
}
</style>
<template>
<form v-on:submit.prevent="sendCmd">
<v-text-field
v-model="value"
class="d-flex align-center"
@click:append="resetLimit"
:label="label"
:suffix="unit"
:append-icon="this.value !== this.defaultValue ? 'mdi-restart' : ''"
:error="(this.value < this.min) || ((this.value > this.max) && this.max !== -1)"
:step="step"
:min="min"
:max="max"
:dec="dec"
type="number"
hide-spin-buttons
hide-details
outlined
dense
>
<template v-slot:append-outer>
<div class="_spin_button_group">
<v-btn @click="increment" class="mt-n3" icon plain small><v-icon>mdi-chevron-up</v-icon></v-btn>
<v-btn @click="decrement" class="mb-n3" icon plain small><v-icon>mdi-chevron-down</v-icon></v-btn>
</div>
</template>
</v-text-field>
</form>
</template>
<script lang="ts">
import Component from 'vue-class-component'
import {Mixins, Prop, Watch} from 'vue-property-decorator'
import {Debounce} from 'vue-debounce-decorator'
import BaseMixin from '@/components/mixins/base'
@Component
export default class PressureAdvanceSettingsInput extends Mixins(BaseMixin) {
private value: number = 0
@Prop({ type: String, required: true }) readonly label!: string
@Prop({ type: Number, required: false , default: 1 }) readonly step!: number
@Prop({ type: Number, required: true , default: 0 }) readonly min!: number
@Prop({ type: Number, required: false , default: -1 }) readonly max!: number
@Prop({ type: Number, required: true , default: 0 }) readonly dec!: number
@Prop({ type: Number, required: true, default: 0 }) readonly target!: number
@Prop({ type: Number, required: true, default: 0 }) readonly defaultValue!: number
@Prop({ type: String, required: true, default: 'extruder'}) readonly extruder!: string
@Prop({ type: String, required: true }) readonly attributeName!: string
@Prop({ type: String, required: true }) readonly unit!: string
@Watch('target')
targetChanged(newVal: number): void {
this.value = newVal
}
created(): void {
this.value = this.target
}
resetLimit(): void {
this.value = this.defaultValue
this.sendCmd()
}
decrement(): void {
this.value = (this.value > this.min) ? Math.round((this.value - this.step) * (10 ** this.dec)) / (10 ** this.dec) : this.min
console.log(this.value)
this.sendCmd()
}
increment(): void {
this.value = (this.value < this.max || this.max === -1) ? Math.round((this.value + this.step) * (10 ** this.dec)) / (10 ** this.dec) : this.max
this.sendCmd()
}
@Debounce(500)
sendCmd(): void {
const gcode = 'SET_PRESSURE_ADVANCE ' + 'EXTRUDER=' + this.extruder + ' '
+ this.attributeName + '=' + Math.max(this.min, this.value).toFixed(this.dec)
this.$store.dispatch('server/addEvent', {message: gcode, type: 'command'})
this.$socket.emit('printer.gcode.script', {script: gcode})
}
}
</script>
+2 -2
View File
@@ -119,11 +119,11 @@ export default class ToolSlider extends Mixins(BaseMixin) {
}
get lockSliders() {
return this.$store.state.gui.general.lockSlidersOnTouchDevices
return this.$store.state.gui.uiSettings.lockSlidersOnTouchDevices
}
get lockSlidersDelay() {
return this.$store.state.gui.general.lockSlidersDelay
return this.$store.state.gui.uiSettings.lockSlidersDelay
}
get colorBar() {
+2 -2
View File
@@ -13,11 +13,11 @@ export default class ControlMixin extends Vue {
}
get feedrateXY() {
return this.$store.state.gui.dashboard?.control?.feedrateXY ?? 100
return this.$store.state.gui.control?.feedrateXY ?? 100
}
get feedrateZ() {
return this.$store.state.gui.dashboard?.control?.feedrateZ ?? 10
return this.$store.state.gui.control?.feedrateZ ?? 10
}
get existsQGL() {
+6 -6
View File
@@ -2,17 +2,17 @@ import Component from 'vue-class-component'
import BaseMixin from '@/components/mixins/base'
import {allDashboardPanels} from '@/store/variables'
import {capitalize} from '@/plugins/helpers'
import {GuiMacrogroupsStateMacrogroup} from '@/store/gui/macrogroups/types'
import {GuiMacrosStateMacrogroup} from '@/store/gui/macros/types'
@Component
export default class DashboardMixin extends BaseMixin {
get macroMode() {
return this.$store.state.gui.dashboard.macroManagement ?? 'simple'
return this.$store.state.gui.macros.mode ?? 'simple'
}
get macrogroups() {
return this.$store.getters['gui/macrogroups/getAllMacrogroups'] ?? []
return this.$store.getters['gui/macros/getAllMacrogroups'] ?? []
}
get missingPanelsMobile() {
@@ -56,7 +56,7 @@ export default class DashboardMixin extends BaseMixin {
const missingPanels: any[] = []
if (this.macroMode === 'expert') {
this.macrogroups.forEach((group: GuiMacrogroupsStateMacrogroup) => {
this.macrogroups.forEach((group: GuiMacrosStateMacrogroup) => {
allPanels.push('macrogroup_'+group.id)
})
@@ -67,7 +67,7 @@ export default class DashboardMixin extends BaseMixin {
if (!panels.find((panel) => panel.name === panelname))
missingPanels.push({
name: panelname,
visable: true
visible: true
})
})
@@ -77,7 +77,7 @@ export default class DashboardMixin extends BaseMixin {
getPanelName(name: string) {
if (name.startsWith('macrogroup_')) {
const groupId = name.split('_')[1] ?? ''
const group = this.macrogroups.find((group: GuiMacrogroupsStateMacrogroup) => group.id === groupId)
const group = this.macrogroups.find((group: GuiMacrosStateMacrogroup) => group.id === groupId)
return (group) ? group.name : 'Macrogroup'
}
+1 -1
View File
@@ -52,7 +52,7 @@ import Panel from '@/components/ui/Panel.vue'
})
export default class ControlPanel extends Mixins(BaseMixin) {
get controlStyle() {
return this.$store.state.gui.dashboard.control.style ?? 'bars'
return this.$store.state.gui.control.style ?? 'bars'
}
get existsExtruder() {
@@ -55,19 +55,19 @@ import ControlMixin from '@/components/mixins/control'
@Component
export default class ControlPanelBarsControl extends Mixins(BaseMixin, ControlMixin) {
get stepsXYsorted() {
return [...this.$store.state.gui.dashboard.control.stepsXY].sort(function(a, b) { return b-a })
return [...this.$store.state.gui.control.stepsXY].sort(function(a, b) { return b-a })
}
get stepsXYsortedReverse() {
return [...this.$store.state.gui.dashboard.control.stepsXY].sort(function(a, b) { return a-b })
return [...this.$store.state.gui.control.stepsXY].sort(function(a, b) { return a-b })
}
get stepsZsorted() {
return [...this.$store.state.gui.dashboard.control.stepsZ].sort(function(a, b) { return b-a })
return [...this.$store.state.gui.control.stepsZ].sort(function(a, b) { return b-a })
}
get stepsZsortedReverse() {
return [...this.$store.state.gui.dashboard.control.stepsZ].sort(function(a, b) { return a-b })
return [...this.$store.state.gui.control.stepsZ].sort(function(a, b) { return a-b })
}
}
</script>
@@ -344,19 +344,19 @@ import ControlMixin from '@/components/mixins/control'
@Component
export default class ControlPanelCrossControl extends Mixins(BaseMixin, ControlMixin) {
get reverseX() {
return this.$store.state.gui.dashboard.control.reverseX
return this.$store.state.gui.control.reverseX
}
get reverseY() {
return this.$store.state.gui.dashboard.control.reverseY
return this.$store.state.gui.control.reverseY
}
get reverseZ() {
return this.$store.state.gui.dashboard.control.reverseZ
return this.$store.state.gui.control.reverseZ
}
get stepsXY() {
const steps = this.$store.state.gui.dashboard?.control?.stepsCircleXY ?? []
const steps = this.$store.state.gui.control?.stepsCircleXY ?? []
return Array.from(new Set([
...(steps ?? []),
@@ -364,7 +364,7 @@ export default class ControlPanelCrossControl extends Mixins(BaseMixin, ControlM
}
get stepsZ() {
const steps = this.$store.state.gui.dashboard?.control?.stepsCircleZ ?? []
const steps = this.$store.state.gui.control?.stepsCircleZ ?? []
return Array.from(new Set([
...(steps ?? []),
@@ -177,27 +177,27 @@ export default class ControlPanelCrossControl extends Mixins(BaseMixin, ControlM
private homeCols = 6
get selectedCrossStep() {
return this.$store.state.gui.dashboard.control.selectedCrossStep
return this.$store.state.gui.control.selectedCrossStep
}
set selectedCrossStep(newVal) {
this.$store.dispatch('gui/saveSetting', { name: 'dashboard.control.selectedCrossStep', value: newVal })
this.$store.dispatch('gui/saveSetting', { name: 'control.selectedCrossStep', value: newVal })
}
get reverseX() {
return this.$store.state.gui.dashboard.control.reverseX
return this.$store.state.gui.control.reverseX
}
get reverseY() {
return this.$store.state.gui.dashboard.control.reverseY
return this.$store.state.gui.control.reverseY
}
get reverseZ() {
return this.$store.state.gui.dashboard.control.reverseZ
return this.$store.state.gui.control.reverseZ
}
get stepsAll() {
return this.$store.state.gui.dashboard?.control?.stepsAll ?? []
return this.$store.state.gui.control?.stepsAll ?? []
}
get stepsReversed() {
@@ -85,11 +85,11 @@ export default class ControlPanelExtruder extends Mixins(BaseMixin) {
}
get feedamounts() {
return this.$store.state.gui.dashboard?.extruder?.feedamounts ?? []
return this.$store.state.gui.control.extruder?.feedamounts ?? []
}
get feedrates() {
return this.$store.state.gui.dashboard?.extruder?.feedrates ?? []
return this.$store.state.gui.control.extruder?.feedrates ?? []
}
get feedamountsSorted() {
@@ -101,19 +101,19 @@ export default class ControlPanelExtruder extends Mixins(BaseMixin) {
}
get currentFeedAmount() {
return parseFloat(this.$store.state.gui.dashboard.extruder.feedamount)
return parseFloat(this.$store.state.gui.control.extruder.feedamount)
}
set currentFeedAmount(newVal) {
this.$store.dispatch('gui/saveSetting', { name: 'dashboard.extruder.feedamount', value: newVal })
this.$store.dispatch('gui/saveSetting', { name: 'control.extruder.feedamount', value: newVal })
}
get currentFeedRate() {
return parseFloat(this.$store.state.gui.dashboard.extruder.feedrate)
return parseFloat(this.$store.state.gui.control.extruder.feedrate)
}
set currentFeedRate(newVal) {
this.$store.dispatch('gui/saveSetting', { name: 'dashboard.extruder.feedrate', value: newVal })
this.$store.dispatch('gui/saveSetting', { name: 'control.extruder.feedrate', value: newVal })
}
get boolExtrudePossible() {
+41 -23
View File
@@ -69,11 +69,11 @@
style="max-width: 300px;"
></v-text-field>
<v-spacer></v-spacer>
<input type="file" ref="fileUpload" style="display: none" multiple @change="uploadFile" />
<input type="file" ref="fileUpload" :accept="validGcodeExtensions.join(', ')" style="display: none" multiple @change="uploadFile" />
<v-btn @click="clickUploadButton" :title="$t('Files.UploadNewGcode')" class="primary--text px-2 minwidth-0 ml-3" :loading="loadings.includes('gcodeUpload')"><v-icon>mdi-upload</v-icon></v-btn>
<v-btn @click="createDirectory" :title="$t('Files.CreateNewDirectory')" class="px-2 minwidth-0 ml-3"><v-icon>mdi-folder-plus</v-icon></v-btn>
<v-btn @click="refreshFileList" :title="$t('Files.RefreshCurrentDirectory')" class="px-2 minwidth-0 ml-3"><v-icon>mdi-refresh</v-icon></v-btn>
<v-menu :offset-y="true" :close-on-content-click="false" :title="$t('Files.SetupCurrentList')">
<v-menu offset-y left :close-on-content-click="false" :title="$t('Files.SetupCurrentList')">
<template v-slot:activator="{ on, attrs }">
<v-btn class="px-2 minwidth-0 ml-3" v-bind="attrs" v-on="on"><v-icon>mdi-cog</v-icon></v-btn>
</template>
@@ -274,10 +274,10 @@
</v-dialog>
<v-menu v-model="contextMenu.shown" :position-x="contextMenu.x" :position-y="contextMenu.y" absolute offset-y>
<v-list>
<v-list-item @click="clickRow(contextMenu.item, true)" :disabled="printerIsPrinting || !klipperReadyForGui" v-if="!contextMenu.item.isDirectory">
<v-list-item @click="clickRow(contextMenu.item, true)" :disabled="printerIsPrinting || !klipperReadyForGui || !isGcodeFile(contextMenu.item)" v-if="!contextMenu.item.isDirectory">
<v-icon class="mr-1">mdi-play</v-icon> {{ $t('Files.PrintStart')}}
</v-list-item>
<v-list-item @click="addToQueue(contextMenu.item)" v-if="!contextMenu.item.isDirectory && moonrakerComponents.includes('job_queue')">
<v-list-item @click="addToQueue(contextMenu.item)" v-if="!contextMenu.item.isDirectory && moonrakerComponents.includes('job_queue')" :disabled="!isGcodeFile(contextMenu.item)">
<v-icon class="mr-1">mdi-playlist-plus</v-icon> {{ $t('Files.AddToQueue')}}
</v-list-item>
<v-list-item
@@ -292,6 +292,10 @@
>
<v-icon class="mr-1">mdi-fire</v-icon> {{ $t('Files.Preheat')}}
</v-list-item>
<v-list-item @click="view3D(contextMenu.item)" v-if="!contextMenu.item.isDirectory" :disabled="!isGcodeFile(contextMenu.item)">
<v-icon class="mr-1">mdi-video-3d</v-icon>
{{ $t('Files.View3D') }}
</v-list-item>
<v-list-item @click="downloadFile" v-if="!contextMenu.item.isDirectory">
<v-icon class="mr-1">mdi-cloud-download</v-icon> {{ $t('Files.Download')}}
</v-list-item>
@@ -310,10 +314,6 @@
<v-list-item @click="deleteDirectory(contextMenu.item)" v-if="contextMenu.item.isDirectory">
<v-icon class="mr-1">mdi-delete</v-icon> {{ $t('Files.Delete')}}
</v-list-item>
<v-list-item @click="view3D(contextMenu.item)" v-if="!contextMenu.item.isDirectory">
<v-icon class="mr-1">mdi-video-3d</v-icon>
{{ $t('Files.View3D') }}
</v-list-item>
</v-list>
</v-menu>
<v-dialog v-model="dialogCreateDirectory.show" :max-width="400">
@@ -628,55 +628,55 @@ export default class GcodefilesPanel extends Mixins(BaseMixin) {
}
get hideMetadataColums() {
return this.$store.state.gui.gcodefiles.hideMetadataColums
return this.$store.state.gui.view.gcodefiles.hideMetadataColums
}
set hideMetadataColums(newVal) {
this.$store.dispatch('gui/saveSetting', { name: 'gcodefiles.hideMetadataColums', value: newVal })
this.$store.dispatch('gui/saveSetting', { name: 'view.gcodefiles.hideMetadataColums', value: newVal })
}
get showHiddenFiles() {
return this.$store.state.gui.gcodefiles.showHiddenFiles
return this.$store.state.gui.view.gcodefiles.showHiddenFiles
}
set showHiddenFiles(newVal) {
this.$store.dispatch('gui/saveSetting', { name: 'gcodefiles.showHiddenFiles', value: newVal })
this.$store.dispatch('gui/saveSetting', { name: 'view.gcodefiles.showHiddenFiles', value: newVal })
}
get showPrintedFiles() {
return this.$store.state.gui.gcodefiles.showPrintedFiles
return this.$store.state.gui.view.gcodefiles.showPrintedFiles
}
set showPrintedFiles(newVal) {
this.$store.dispatch('gui/saveSetting', { name: 'gcodefiles.showPrintedFiles', value: newVal })
this.$store.dispatch('gui/saveSetting', { name: 'view.gcodefiles.showPrintedFiles', value: newVal })
}
get sortBy() {
return this.$store.state.gui.gcodefiles.sortBy
return this.$store.state.gui.view.gcodefiles.sortBy
}
set sortBy(newVal) {
if (newVal === undefined) newVal = 'modified'
this.$store.dispatch('gui/saveSetting', { name: 'gcodefiles.sortBy', value: newVal })
this.$store.dispatch('gui/saveSetting', { name: 'view.gcodefiles.sortBy', value: newVal })
}
get sortDesc() {
return this.$store.state.gui.gcodefiles.sortDesc
return this.$store.state.gui.view.gcodefiles.sortDesc
}
set sortDesc(newVal) {
if (newVal === undefined) newVal = false
this.$store.dispatch('gui/saveSetting', { name: 'gcodefiles.sortDesc', value: newVal })
this.$store.dispatch('gui/saveSetting', { name: 'view.gcodefiles.sortDesc', value: newVal })
}
get countPerPage() {
return this.$store.state.gui.gcodefiles.countPerPage
return this.$store.state.gui.view.gcodefiles.countPerPage
}
set countPerPage(newVal) {
this.$store.dispatch('gui/saveSetting', { name: 'gcodefiles.countPerPage', value: newVal })
this.$store.dispatch('gui/saveSetting', { name: 'view.gcodefiles.countPerPage', value: newVal })
}
get timelapseEnabled() {
@@ -727,11 +727,23 @@ export default class GcodefilesPanel extends Mixins(BaseMixin) {
this.dropzone.opacity = 0
if (e.dataTransfer.files.length) {
const files = [...e.dataTransfer.files].filter((file: File) => {
const format = file.name.slice(file.name.lastIndexOf('.'))
if (!validGcodeExtensions.includes(format)) {
this.$toast.error(this.$t('Files.WrongFileUploaded', { filename: file.name }).toString())
return false
}
return true
})
this.$store.dispatch('socket/addLoading', { name: 'gcodeUpload' })
let successFiles = []
this.uploadSnackbar.number = 0
this.uploadSnackbar.max = e.dataTransfer.files.length
for (const file of e.dataTransfer.files) {
this.uploadSnackbar.max = files.length
for (const file of files) {
this.uploadSnackbar.number++
const result = await this.doUploadFile(file)
successFiles.push(result)
@@ -932,7 +944,7 @@ export default class GcodefilesPanel extends Mixins(BaseMixin) {
if (item.isDirectory) {
this.currentPath += '/' + item.filename
} else if (!['error', 'printing', 'paused'].includes(this.printer_state)) {
} else if (!['error', 'printing', 'paused'].includes(this.printer_state) && this.isGcodeFile(item)) {
this.dialogPrintFile.show = true
this.dialogPrintFile.item = item
}
@@ -1100,6 +1112,12 @@ export default class GcodefilesPanel extends Mixins(BaseMixin) {
})
}
isGcodeFile(file: FileStateFile) {
const format = file.filename.slice(file.filename.lastIndexOf('.'))
return validGcodeExtensions.includes(format)
}
view3D(item: FileStateFile) {
this.$router.push({path: '/viewer', query: {filename: this.currentPath + '/' + item.filename}})
}
+4 -4
View File
@@ -473,19 +473,19 @@ export default class HistoryListPanel extends Mixins(BaseMixin) {
}
get countPerPage() {
return this.$store.state.gui.history.countPerPage
return this.$store.state.gui.view.historycountPerPage
}
set countPerPage(newVal) {
this.$store.dispatch('gui/saveSetting', { name: 'history.countPerPage', value: newVal })
this.$store.dispatch('gui/saveSetting', { name: 'view.history.countPerPage', value: newVal })
}
get hideColums() {
return this.$store.state.gui.history.hideColums
return this.$store.state.gui.view.history.hideColums
}
set hideColums(newVal) {
this.$store.dispatch('gui/saveSetting', { name: 'history.hideColums', value: newVal })
this.$store.dispatch('gui/saveSetting', { name: 'view.history.hideColums', value: newVal })
}
refreshHistory() {
@@ -89,11 +89,11 @@ export default class HistoryStatisticsPanel extends Mixins(BaseMixin) {
}
get toggleChart () {
return this.$store.state.gui.history.toggleChartCol3
return this.$store.state.gui.view.history.toggleChartCol3
}
set toggleChart(newVal) {
this.$store.dispatch('gui/saveSetting', { name: 'history.toggleChartCol3', value: newVal })
this.$store.dispatch('gui/saveSetting', { name: 'view.history.toggleChartCol3', value: newVal })
}
formatPrintTime(totalSeconds: number) {
+7 -7
View File
@@ -8,8 +8,8 @@
<template v-slot:buttons>
<v-btn
color="success"
@click="resumeJobqueue"
:loading="loadings.includes('resumeJobqueue')"
@click="startJobqueue"
:loading="loadings.includes('startJobqueue')"
icon
tile
v-if="queueState === 'paused'"
@@ -19,7 +19,7 @@
<template v-slot:activator="{ on, attrs }">
<v-icon v-bind="attrs" v-on="on">mdi-play</v-icon>
</template>
<span>{{ $t('JobQueue.Resume') }}</span>
<span>{{ $t('JobQueue.Start') }}</span>
</v-tooltip>
</v-btn>
<v-btn
@@ -137,11 +137,11 @@ export default class JobqueuePanel extends Mixins(BaseMixin) {
}
get countPerPage() {
return this.$store.state.gui.jobqueue.countPerPage
return this.$store.state.gui.view.jobqueue.countPerPage
}
set countPerPage(newVal) {
this.$store.dispatch('gui/saveSetting', { name: 'jobqueue.countPerPage', value: newVal })
this.$store.dispatch('gui/saveSetting', { name: 'view.jobqueue.countPerPage', value: newVal })
}
refreshHistory() {
@@ -191,8 +191,8 @@ export default class JobqueuePanel extends Mixins(BaseMixin) {
this.$store.dispatch('server/jobQueue/deleteFromQueue', [item.job_id])
}
resumeJobqueue() {
this.$store.dispatch('server/jobQueue/resume')
startJobqueue() {
this.$store.dispatch('server/jobQueue/start')
}
pauseJobqueue() {
@@ -35,7 +35,7 @@
<span>{{ button.text }}</span>
</v-tooltip>
</v-btn>
<v-menu :offset-y="true" :title="$t('Machine.ConfigFilesPanel.SetupCurrentList')" attach>
<v-menu offset-y left :title="$t('Machine.ConfigFilesPanel.SetupCurrentList')" attach>
<template v-slot:activator="{ on, attrs }">
<v-btn class="px-2 minwidth-0 ml-3" v-bind="attrs" v-on="on"><v-icon>mdi-cog</v-icon></v-btn>
</template>
@@ -294,6 +294,7 @@ import {formatDate, formatFilesize, sortFiles} from '@/plugins/helpers'
import {FileStateFile} from '@/store/files/types'
import axios from 'axios'
import Panel from '@/components/ui/Panel.vue'
import {hiddenRootDirectories} from '@/store/variables'
interface contextMenu {
shown: boolean
@@ -532,51 +533,51 @@ export default class ConfigFilesPanel extends Mixins(BaseMixin) {
}
get countPerPage() {
return this.$store.state.gui.settings.configfiles.countPerPage
return this.$store.state.gui.view.configfiles.countPerPage
}
set countPerPage(newVal) {
this.$store.dispatch('gui/saveSetting', { name: 'settings.configfiles.countPerPage', value: newVal })
this.$store.dispatch('gui/saveSetting', { name: 'view.configfiles.countPerPage', value: newVal })
}
get showHiddenFiles() {
return this.$store.state.gui.settings.configfiles.showHiddenFiles
return this.$store.state.gui.view.configfiles.showHiddenFiles
}
set showHiddenFiles(newVal) {
this.$store.dispatch('gui/saveSetting', { name: 'settings.configfiles.showHiddenFiles', value: newVal })
this.$store.dispatch('gui/saveSetting', { name: 'view.configfiles.showHiddenFiles', value: newVal })
}
get hideBackupFiles() {
return this.$store.state.gui.settings.configfiles.hideBackupFiles
return this.$store.state.gui.view.configfiles.hideBackupFiles
}
set hideBackupFiles(newVal) {
this.$store.dispatch('gui/saveSetting', { name: 'settings.configfiles.hideBackupFiles', value: newVal })
this.$store.dispatch('gui/saveSetting', { name: 'view.configfiles.hideBackupFiles', value: newVal })
}
get sortBy() {
return this.$store.state.gui.settings.configfiles.sortBy
return this.$store.state.gui.view.configfiles.sortBy
}
set sortBy(newVal) {
if (newVal === undefined) newVal = 'filename'
this.$store.dispatch('gui/saveSetting', { name: 'settings.configfiles.sortBy', value: newVal })
this.$store.dispatch('gui/saveSetting', { name: 'view.configfiles.sortBy', value: newVal })
}
get sortDesc() {
return this.$store.state.gui.settings.configfiles.sortDesc
return this.$store.state.gui.view.configfiles.sortDesc
}
set sortDesc(newVal) {
if (newVal === undefined) newVal = false
this.$store.dispatch('gui/saveSetting', { name: 'settings.configfiles.sortDesc', value: newVal })
this.$store.dispatch('gui/saveSetting', { name: 'view.configfiles.sortDesc', value: newVal })
}
get registeredDirectories() {
return this.$store.state.server.registered_directories.filter((dir: string) => dir !== 'gcodes').sort()
return this.$store.state.server.registered_directories.filter((dir: string) => !hiddenRootDirectories.includes(dir)).sort()
}
refreshFileList() {
@@ -62,6 +62,7 @@
<br />
<span v-if="hostStats.version">{{ $t('Machine.SystemPanel.Version') }}: {{ hostStats.version }}<br /></span>
<span v-if="hostStats.os">{{ $t('Machine.SystemPanel.Os') }}: {{ hostStats.os }}<br /></span>
<span v-if="hostStats.release_info && hostStats.release_info.name !== '0.'">{{ $t('Machine.SystemPanel.Distro') }}: {{ hostStats.release_info.name }} {{ hostStats.release_info.version_id }} <span v-if="hostStats.release_info.codename">({{ hostStats.release_info.codename }})</span><br /></span>
<span>{{ $t('Machine.SystemPanel.Load') }}: {{ hostStats.load }}</span>
<span v-if="hostStats.memoryFormat">, {{ $t('Machine.SystemPanel.Memory') }}: {{ hostStats.memoryFormat }}</span>
<template v-if="hostStats.tempSensor">
@@ -1,42 +1,56 @@
<template>
<v-card-text>
<v-row>
<v-col class="col-12 col-sm-6">
<v-col class="col-12 col-md-6">
<firmware-retraction-settings-input
:label="$t('Panels.MachineSettingsPanel.FirmwareRetractionSettings.RetractLength')"
:target="current_retract_length"
:default-value="config_retract_length"
:step="0.01"
:min="0"
:max="-1"
:dec="2"
unit="mm"
attribute-name="RETRACT_LENGTH"
></firmware-retraction-settings-input>
</v-col>
<v-col class="col-12 col-sm-6">
<v-col class="col-12 col-md-6">
<firmware-retraction-settings-input
:label="$t('Panels.MachineSettingsPanel.FirmwareRetractionSettings.RetractSpeed')"
:target="current_retract_speed"
:default-value="config_retract_speed"
:step="1"
:min="1"
:max="-1"
:dec="0"
unit="mm/s"
attribute-name="RETRACT_SPEED"
></firmware-retraction-settings-input>
</v-col>
</v-row>
<v-row>
<v-col class="col-12 col-sm-6">
<v-col class="col-12 col-md-6">
<firmware-retraction-settings-input
:label="$t('Panels.MachineSettingsPanel.FirmwareRetractionSettings.UnretractExtraLength')"
:target="current_unretract_extra_length"
:default-value="config_unretract_extra_length"
:step="0.01"
:min="0"
:max="-1"
:dec="2"
unit="mm"
attribute-name="UNRETRACT_EXTRA_LENGTH"
></firmware-retraction-settings-input>
</v-col>
<v-col class="col-12 col-sm-6">
<v-col class="col-12 col-md-6">
<firmware-retraction-settings-input
:label="$t('Panels.MachineSettingsPanel.FirmwareRetractionSettings.UnretractSpeed')"
:target="current_unretract_speed"
:default-value="config_unretract_speed"
:step="1"
:min="1"
:max="-1"
:dec="0"
unit="mm/s"
attribute-name="UNRETRACT_SPEED"
></firmware-retraction-settings-input>
@@ -56,35 +70,35 @@ import FirmwareRetractionSettingsInput from '@/components/inputs/FirmwareRetract
})
export default class FirmwareRetractionSettings extends Mixins(BaseMixin) {
get current_retract_length() {
get current_retract_length(): number {
return this.$store.state.printer?.firmware_retraction?.retract_length ?? 0
}
get current_retract_speed() {
get current_retract_speed(): number {
return this.$store.state.printer?.firmware_retraction?.retract_speed ?? 20
}
get current_unretract_extra_length() {
get current_unretract_extra_length(): number {
return this.$store.state.printer?.firmware_retraction?.unretract_extra_length ?? 0
}
get current_unretract_speed() {
get current_unretract_speed(): number {
return this.$store.state.printer?.firmware_retraction?.unretract_speed ?? 10
}
get config_retract_length() {
get config_retract_length(): number {
return this.$store.state.printer?.configfile?.settings?.firmware_retraction?.retract_length ?? 0
}
get config_retract_speed() {
get config_retract_speed(): number {
return this.$store.state.printer?.configfile?.settings?.firmware_retraction?.retract_speed ?? 20
}
get config_unretract_extra_length() {
get config_unretract_extra_length(): number {
return this.$store.state.printer?.configfile?.settings?.firmware_retraction?.unretract_extra_length ?? 0
}
get config_unretract_speed() {
get config_unretract_speed(): number {
return this.$store.state.printer?.configfile?.settings?.firmware_retraction?.unretract_speed ?? 10
}
}
@@ -6,9 +6,7 @@
:collapsible="true"
card-class="machine-settings-panel"
>
<motion-settings v-if="!existsFirmwareRetraction"></motion-settings>
<div v-if="existsFirmwareRetraction">
<div>
<sub-panel
:title="$t('Panels.MachineSettingsPanel.MotionSettings.Motion')"
sub-panel-class="motion-settings-subpanel"
@@ -16,6 +14,13 @@
<motion-settings></motion-settings>
</sub-panel>
<sub-panel
:title="$t('Panels.MachineSettingsPanel.PressureAdvanceSettings.PressureAdvance')"
sub-panel-class="pressure-advance-settings-subpanel"
>
<pressure-advance-settings></pressure-advance-settings>
</sub-panel>
<sub-panel
v-if="existsFirmwareRetraction"
:title="$t('Panels.MachineSettingsPanel.FirmwareRetractionSettings.FirmwareRetraction')"
sub-panel-class="firmware-retraction-settings-subpanel"
>
@@ -31,6 +36,7 @@ import BaseMixin from '@/components/mixins/base'
import Panel from '@/components/ui/Panel.vue'
import SubPanel from '@/components/ui/SubPanel.vue'
import MotionSettings from '@/components/panels/MachineSettings/MotionSettings.vue'
import PressureAdvanceSettings from '@/components/panels/MachineSettings/PressureAdvanceSettings.vue'
import FirmwareRetractionSettings from '@/components/panels/MachineSettings/FirmwareRetractionSettings.vue'
@Component({
@@ -38,6 +44,7 @@ import FirmwareRetractionSettings from '@/components/panels/MachineSettings/Firm
Panel,
SubPanel,
MotionSettings,
PressureAdvanceSettings,
FirmwareRetractionSettings
}
})
@@ -1,44 +1,56 @@
<template>
<v-card-text>
<v-row>
<v-col class="col-12 col-sm-6">
<v-col class="col-12 col-md-6">
<motion-settings-input
:label="$t('Panels.MachineSettingsPanel.MotionSettings.Velocity')"
:target="current_velocity"
:max="max_velocity"
:default-value="max_velocity"
:step="1"
:min="1"
:max="-1"
:dec="0"
unit="mm/s"
attribute-name="VELOCITY"
></motion-settings-input>
</v-col>
<v-col class="col-12 col-sm-6">
<v-col class="col-12 col-md-6">
<motion-settings-input
:label="$t('Panels.MachineSettingsPanel.MotionSettings.SquareCornerVelocity')"
:target="current_square_corner_velocity"
:max="max_square_corner_velocity"
:default-value="max_square_corner_velocity"
:step="1"
:min="1"
:max="-1"
:dec="0"
unit="mm/s"
attribute-name="SQUARE_CORNER_VELOCITY"
></motion-settings-input>
</v-col>
</v-row>
<v-row>
<v-col class="col-12 col-sm-6">
<v-col class="col-12 col-md-6">
<motion-settings-input
:label="$t('Panels.MachineSettingsPanel.MotionSettings.Acceleration')"
:target="current_accel"
:max="max_accel"
:default-value="max_accel"
:step="1"
:min="1"
:max="-1"
:dec="0"
unit="mm/s²"
attribute-name="ACCEL"
></motion-settings-input>
</v-col>
<v-col class="col-12 col-sm-6">
<v-col class="col-12 col-md-6">
<motion-settings-input
:label="$t('Panels.MachineSettingsPanel.MotionSettings.Deceleration')"
:label="$t('Panels.MachineSettingsPanel.MotionSettings.MaxAccelToDecel')"
:target="current_accel_to_decel"
:max="max_accel_to_decel"
:default-value="max_accel_to_decel"
:step="1"
:min="1"
:max="-1"
:dec="0"
unit="mm/s²"
attribute-name="ACCEL_TO_DECEL"
></motion-settings-input>
@@ -58,35 +70,35 @@ import MotionSettingsInput from '@/components/inputs/MotionSettingsInput.vue'
})
export default class MotionSettings extends Mixins(BaseMixin) {
get current_velocity() {
get current_velocity(): number {
return this.$store.state.printer?.toolhead?.max_velocity ?? 300
}
get current_accel() {
get current_accel(): number {
return this.$store.state.printer?.toolhead?.max_accel ?? 3000
}
get current_accel_to_decel() {
get current_accel_to_decel(): number {
return this.$store.state.printer?.toolhead?.max_accel_to_decel ?? 1500
}
get current_square_corner_velocity() {
get current_square_corner_velocity(): number {
return this.$store.state.printer?.toolhead?.square_corner_velocity ?? 8
}
get max_velocity() {
get max_velocity(): number {
return this.$store.state.printer?.configfile?.settings?.printer?.max_velocity ?? 300
}
get max_accel() {
get max_accel(): number {
return this.$store.state.printer?.configfile?.settings?.printer?.max_accel ?? 3000
}
get max_accel_to_decel() {
get max_accel_to_decel(): number {
return this.$store.state.printer?.configfile?.settings?.printer?.max_accel_to_decel ?? 1500
}
get max_square_corner_velocity() {
get max_square_corner_velocity(): number {
return this.$store.state.printer?.configfile?.settings?.printer?.square_corner_velocity ?? 8
}
}
@@ -0,0 +1,105 @@
<template>
<v-card-text>
<v-row>
<v-col v-if="this.all_extruders.length > 1" class="col-12 col-xl-4">
<div class="d-flex align-center">
<v-btn
v-if="this.selectedExtruder !== this.active_extruder"
@click="resetToActiveExtruder"
class="mr-2"
icon
plain
><v-icon>mdi-restart</v-icon>
</v-btn>
<v-select
v-model="selectedExtruder"
:label="$t('Panels.MachineSettingsPanel.PressureAdvanceSettings.Extruder')"
:items="all_extruders"
:value="active_extruder"
hide-details
outlined
dense
></v-select>
</div>
</v-col>
<v-col :class="(this.all_extruders.length > 1) ? 'col-12 col-md-6 col-xl-4' : 'col-12 col-md-6'">
<pressure-advance-settings-input
:label="$t('Panels.MachineSettingsPanel.PressureAdvanceSettings.Advance')"
:target="current_pressure_advance"
:default-value="default_pressure_advance"
:extruder="selectedExtruder"
:min="0"
:max="1"
:step="0.001"
:dec="3"
unit="mm/s"
attribute-name="ADVANCE"
></pressure-advance-settings-input>
</v-col>
<v-col :class="(this.all_extruders.length > 1) ? 'col-12 col-md-6 col-xl-4' : 'col-12 col-md-6'">
<pressure-advance-settings-input
:label="$t('Panels.MachineSettingsPanel.PressureAdvanceSettings.SmoothTime')"
:target="current_smooth_time"
:default-value="default_smooth_time"
:extruder="selectedExtruder"
:min="0"
:max="0.2"
:step="0.01"
:dec="2"
unit="s"
attribute-name="SMOOTH_TIME"
></pressure-advance-settings-input>
</v-col>
</v-row>
</v-card-text>
</template>
<script lang="ts">
import { Component, Mixins } from 'vue-property-decorator'
import BaseMixin from '@/components/mixins/base'
import Panel from '@/components/ui/Panel.vue'
import PressureAdvanceSettingsInput from '@/components/inputs/PressureAdvanceSettingsInput.vue'
@Component({
components: {Panel, PressureAdvanceSettingsInput}
})
export default class PressureAdvanceSettings extends Mixins(BaseMixin) {
private extruders: string[] = []
private selectedExtruder = ''
resetToActiveExtruder(): void {
this.selectedExtruder = this.$store.state.printer.toolhead?.extruder
}
get all_extruders(): string[] {
Object.keys(this.$store.state.printer).forEach((e) => {
if (e.startsWith('extruder') && !this.extruders.includes(e)) this.extruders.push(e)
})
this.extruders.length === 1 ? this.resetToActiveExtruder() : {}
return this.extruders
}
get active_extruder(): string {
this.resetToActiveExtruder()
return this.$store.state.printer.toolhead?.extruder
}
get current_pressure_advance(): number {
return this.$store.state.printer?.[this.selectedExtruder]?.pressure_advance ?? 0
}
get current_smooth_time(): number {
return this.$store.state.printer?.[this.selectedExtruder]?.smooth_time ?? 0.04
}
get default_pressure_advance(): number {
return this.$store.state.printer.configfile?.settings?.[this.selectedExtruder]?.pressure_advance ?? 0
}
get default_smooth_time(): number {
return this.$store.state.printer.configfile?.settings?.[this.selectedExtruder]?.pressure_advance_smooth_time ?? 0.04
}
}
</script>
+6 -6
View File
@@ -31,7 +31,7 @@ import BaseMixin from '../mixins/base'
import Panel from '@/components/ui/Panel.vue'
import MacroButton from '@/components/inputs/MacroButton.vue'
import {PrinterStateMacro} from '@/store/printer/types'
import {GuiMacrogroupsStateMacrogroupMacro} from '@/store/gui/macrogroups/types'
import {GuiMacrosStateMacrogroupMacro} from '@/store/gui/macros/types'
@Component({
components: {MacroButton, Panel}
})
@@ -40,17 +40,17 @@ export default class MacrogroupPanel extends Mixins(BaseMixin) {
@Prop({ required: true }) panelId!: string
get macrogroup() {
return this.$store.getters['gui/macrogroups/getMacrogroup'](this.panelId)
return this.$store.getters['gui/macros/getMacrogroup'](this.panelId)
}
get allMacros() {
return this.$store.getters['printer/getMacros'] ?? []
return this.$store.getters['printer/getAllMacros'] ?? []
}
get macros() {
let macros = this.macrogroup?.macros ?? []
macros = macros.filter((macro: GuiMacrogroupsStateMacrogroupMacro) => {
macros = macros.filter((macro: GuiMacrosStateMacrogroupMacro) => {
if (!this.allMacros.find((existMacro: PrinterStateMacro) => existMacro.name.toLowerCase() === macro.name.toLowerCase())) return false
return (
@@ -60,7 +60,7 @@ export default class MacrogroupPanel extends Mixins(BaseMixin) {
)
})
return macros.sort((a: GuiMacrogroupsStateMacrogroupMacro, b: GuiMacrogroupsStateMacrogroupMacro) => a.pos - b.pos)
return macros.sort((a: GuiMacrosStateMacrogroupMacro, b: GuiMacrosStateMacrogroupMacro) => a.pos - b.pos)
}
get macrogroupStatus() {
@@ -71,7 +71,7 @@ export default class MacrogroupPanel extends Mixins(BaseMixin) {
)
}
getColor(macro: GuiMacrogroupsStateMacrogroupMacro) {
getColor(macro: GuiMacrosStateMacrogroupMacro) {
if (macro.color === 'group') {
if (this.macrogroup.color === 'custom') return this.macrogroup.colorCustom
else return this.macrogroup.color
+6 -3
View File
@@ -107,7 +107,6 @@ export default class MiniconsolePanel extends Mixins(BaseMixin) {
}
private gcode = ''
private lastCommands: string[] = []
private lastCommandNumber: number | null = null
private items = [];
private cmdListSearch: string | null = null
@@ -155,13 +154,17 @@ export default class MiniconsolePanel extends Mixins(BaseMixin) {
}
get customFilters(): any[] {
return this.$store.state.gui.console.customFilters
return this.$store.state.gui.console.consolefilters
}
get rows(): number {
return this.gcode?.split('\n').length ?? 1
}
get lastCommands(): string[] {
return this.$store.state.gui.gcodehistory.entries ?? []
}
commandClick(msg: string): void {
this.gcode = msg
@@ -174,7 +177,7 @@ export default class MiniconsolePanel extends Mixins(BaseMixin) {
if (!cmd.shiftKey) {
if (this.gcode !== '') {
this.$store.dispatch('printer/sendGcode', this.gcode)
this.lastCommands.push(this.gcode)
this.$store.dispatch('gui/gcodehistory/addToHistory', this.gcode)
this.gcode = ''
this.lastCommandNumber = null
setTimeout(() => {
+6 -3
View File
@@ -38,13 +38,16 @@
</template>
<script lang="ts">
import {Component, Mixins} from 'vue-property-decorator'
import BaseMixin from '@/components/mixins/base'
import ToolSlider from '@/components/inputs/ToolSlider.vue'
import Panel from '@/components/ui/Panel.vue'
import ToolSlider from '@/components/inputs/ToolSlider.vue'
@Component({
components: {Panel, ToolSlider}
components: {
Panel,
ToolSlider
}
})
export default class PrintsettingsPanel extends Mixins(BaseMixin) {
+2 -2
View File
@@ -388,7 +388,7 @@ export default class StatusPanel extends Mixins(BaseMixin) {
color: 'error',
icon: 'mdi-stop',
loadingName: 'statusPrintCancel',
status: this.$store.state.gui.general.displayCancelPrint ? ['paused', 'printing'] : ['paused'],
status: this.$store.state.gui.uiSettings.displayCancelPrint ? ['paused', 'printing'] : ['paused'],
click: this.btnCancelJob
}, {
text: this.$t('Panels.StatusPanel.ClearPrintStats'),
@@ -573,7 +573,7 @@ export default class StatusPanel extends Mixins(BaseMixin) {
}
get boolBigThumbnail() {
const setting = this.$store.state.gui.dashboard.boolBigThumbnail ?? true
const setting = this.$store.state.gui.uiSettings.boolBigThumbnail ?? true
return this.current_filename && setting && this.thumbnailBig
}
@@ -4,15 +4,17 @@
<template>
<div v-if="['printing', 'paused'].includes(printer_state) && printing_objects.length">
<v-container>
<v-row>
<v-col class="py-2">
<span class="subtitle-2 d-block px-0 text--disabled"><v-icon class="mr-2" small>mdi-printer-3d-nozzle</v-icon>{{ current_object !== null ? current_object : '--' }}</span>
</v-col>
<v-col class="col-auto py-2">
<v-icon class="text--disabled cursor-pointer" @click="openCancelObjectDialog(current_object)" small v-if="current_object !== null">mdi-close-circle</v-icon>
</v-col>
</v-row>
<v-container class="py-0">
<div class="d-flex flex-row flex-nowrap justify-space-between">
<div class="py-2" style="width: calc(100% - 25px);">
<span class="subtitle-2 d-block px-0 text--disabled text-truncate">
<v-icon class="mr-2" small>mdi-printer-3d-nozzle</v-icon>{{ current_object !== null ? current_object : '--' }}
</span>
</div>
<div class="py-2 pl-0">
<v-icon class="text--disabled cursor-pointer" @click="openCancelObjectDialog(current_object)" small v-if="current_object !== null">mdi-selection-remove</v-icon>
</div>
</div>
</v-container>
<v-divider class="mt-0 mb-0" ></v-divider>
<v-dialog v-model="boolShowExcludeObjectDialog" max-width="400">
@@ -25,6 +25,7 @@
@update:hoverName="updateHoverObjectDialogName"
:exclude-object-dialog-bool.sync="excludeObjectDialogBool"
@update:bool="updateExcludeObjectDialogBool"
:hover-name="hoverName"
></status-panel-exclude-object-dialog-list>
</v-col>
</v-row>
@@ -5,8 +5,8 @@
<template>
<div>
<template v-for="object in printing_objects">
<v-row v-bind:key="'div_'+object.name" class="py-3 d-flex" @mouseover="mouseOverObject(object.name)" @mouseleave="mouseOverObject('')">
<v-col class="py-2 subtitle-2 text--disabled text-truncate">
<v-row v-bind:key="'div_'+object.name" class="py-3 d-flex" @click="mouseOverObject(object.name)" @mouseover="mouseOverObject(object.name)" @mouseleave="mouseOverObject('')">
<v-col :class="'py-2 subtitle-2 text-truncate '+(hoverName === object.name ? 'text--white' : 'text--disabled')">
{{ object.name }}
</v-col>
<v-col class="col-auto py-2">
@@ -21,11 +21,13 @@
<script lang="ts">
import Component from 'vue-class-component'
import {Mixins} from 'vue-property-decorator'
import {Mixins, Prop} from 'vue-property-decorator'
import BaseMixin from '@/components/mixins/base'
@Component
export default class StatusPanelObjectsDialogList extends Mixins(BaseMixin) {
@Prop({ required: false, default: '' }) readonly hoverName!: string
get printing_objects() {
return this.$store.state.printer.exclude_object?.objects ?? []
}
@@ -65,6 +65,7 @@
import Component from 'vue-class-component'
import {Mixins, Prop} from 'vue-property-decorator'
import BaseMixin from '@/components/mixins/base'
import {defaultPrimaryColor} from '@/store/variables'
@Component
export default class StatusPanelObjectsDialogMap extends Mixins(BaseMixin) {
@@ -142,7 +143,7 @@ export default class StatusPanelObjectsDialogMap extends Mixins(BaseMixin) {
}
get primaryColor() {
return this.$store.state.gui.theme.primary
return this.$store.state.gui.theme?.primary ?? defaultPrimaryColor
}
convertX(x: number) {
@@ -370,31 +370,31 @@ export default class TimelapseFilesPanel extends Mixins(BaseMixin) {
}
get sortBy() {
return this.$store.state.gui.timelapse.sortBy ?? 'modified'
return this.$store.state.gui.view.gcodefiles.sortBy ?? 'modified'
}
set sortBy(newVal) {
if (newVal === undefined) newVal = 'modified'
this.$store.dispatch('gui/saveSetting', { name: 'timelapse.sortBy', value: newVal })
this.$store.dispatch('gui/saveSetting', { name: 'view.timelapse.sortBy', value: newVal })
}
get sortDesc() {
return this.$store.state.gui.timelapse.sortDesc ?? true
return this.$store.state.gui.view.gcodefiles.sortDesc ?? true
}
set sortDesc(newVal) {
if (newVal === undefined) newVal = false
this.$store.dispatch('gui/saveSetting', { name: 'timelapse.sortDesc', value: newVal })
this.$store.dispatch('gui/saveSetting', { name: 'view.timelapse.sortDesc', value: newVal })
}
get countPerPage() {
return this.$store.state.gui.timelapse?.countPerPage ?? 10
return this.$store.state.gui.view.gcodefiles?.countPerPage ?? 10
}
set countPerPage(newVal) {
this.$store.dispatch('gui/saveSetting', { name: 'timelapse.countPerPage', value: newVal })
this.$store.dispatch('gui/saveSetting', { name: 'view.timelapse.countPerPage', value: newVal })
}
get displayFiles() {
@@ -537,6 +537,11 @@ export default class TimelapseFilesPanel extends Mixins(BaseMixin) {
}
removeFile() {
const filename = this.contextMenu.item.filename.slice(0, this.contextMenu.item.filename.lastIndexOf('.'))
const previewFilename = filename+'.jpg'
const previewExists = (this.files.findIndex((file) => file.filename === previewFilename) !== -1)
if(previewExists) this.$socket.emit('server.files.delete_file', { path: this.currentPath+'/'+previewFilename }, { action: 'files/getDeleteFile' })
this.$socket.emit('server.files.delete_file', { path: this.currentPath+'/'+this.contextMenu.item.filename }, { action: 'files/getDeleteFile' })
}
@@ -546,8 +551,6 @@ export default class TimelapseFilesPanel extends Mixins(BaseMixin) {
}
deleteDirectoryAction() {
//TODO: delete all files (mp4, jpg, zip)
this.dialogDeleteDirectory.show = false
this.$socket.emit('server.files.delete_directory', { path: this.currentPath+'/'+this.contextMenu.item.filename, force: true }, { action: 'files/getDeleteDir' })
}
+7 -7
View File
@@ -303,19 +303,19 @@ export default class ToolsPanel extends Mixins(BaseMixin) {
}
get boolTempchart(): boolean {
return this.$store.state.gui.dashboard?.boolTempchart ?? false
return this.$store.state.gui.view.tempchart.boolTempchart ?? false
}
set boolTempchart(newVal: boolean) {
this.$store.dispatch('gui/saveSetting', { name: 'dashboard.boolTempchart', value: newVal })
this.$store.dispatch('gui/saveSetting', { name: 'view.tempchart.boolTempchart', value: newVal })
}
get autoscaleTempchart(): boolean {
return this.$store.state.gui.tempchart.autoscale ?? false
return this.$store.state.gui.view.tempchart.autoscale ?? false
}
set autoscaleTempchart(newVal: boolean) {
this.$store.dispatch('gui/saveSetting', { name: 'tempchart.autoscale', value: newVal })
this.$store.dispatch('gui/saveSetting', { name: 'view.tempchart.autoscale', value: newVal })
}
get heaters(): PrinterStateHeater[] {
@@ -377,12 +377,12 @@ export default class ToolsPanel extends Mixins(BaseMixin) {
const serieName = 'bool'+type.charAt(0).toUpperCase() + type.slice(1)
const value = this.editHeater[serieName]
const name = 'tempchart.datasetSettings.'+this.editHeater.name+'.'+type
const name = 'view.tempchart.datasetSettings.'+this.editHeater.name+'.'+type
this.$store.dispatch('gui/saveSetting', { name, value })
}
setVisibleAdditionalSensor(sensor: string): void {
const name = 'tempchart.datasetSettings.'+this.editHeater.name+'.additionalSensors.'+sensor
const name = 'view.tempchart.datasetSettings.'+this.editHeater.name+'.additionalSensors.'+sensor
this.$store.dispatch('gui/saveSetting', { name, value: this.editHeater.additionSensors[sensor].bool })
}
@@ -391,7 +391,7 @@ export default class ToolsPanel extends Mixins(BaseMixin) {
if (typeof value === 'object' && 'hex' in value) value = value.hex
this.$store.commit('printer/tempHistory/setColor', { name: this.editHeater.name, value: value })
const name = 'tempchart.datasetSettings.'+this.editHeater.name+'.color'
const name = 'view.tempchart.datasetSettings.'+this.editHeater.name+'.color'
this.$store.dispatch('gui/saveSetting', { name, value })
}
+1 -1
View File
@@ -104,7 +104,7 @@ export default class ZoffsetPanel extends Mixins(BaseMixin) {
}
get displayZOffsetStandby() {
return this.$store.state.gui.general.displayZOffsetStandby ?? false
return this.$store.state.gui.uiSettings.displayZOffsetStandby ?? false
}
get homing_origin() {
+11 -11
View File
@@ -120,7 +120,7 @@ export default class SettingsConsoleTab extends Mixins(BaseMixin) {
}
get consoleFilters() {
return this.$store.getters['gui/consolefilters/getConsolefilters'] ?? []
return this.$store.getters['gui/console/getConsolefilters'] ?? []
}
get availableDirections() {
@@ -140,7 +140,7 @@ export default class SettingsConsoleTab extends Mixins(BaseMixin) {
}
set consoleDirection(newVal) {
this.$store.dispatch('gui/saveSetting', { name: 'console.direction', value: newVal })
this.$store.dispatch('gui/console/saveSetting', { name: 'direction', value: newVal })
}
get availableEntryStyles() {
@@ -160,7 +160,7 @@ export default class SettingsConsoleTab extends Mixins(BaseMixin) {
}
set entryStyle(newVal) {
this.$store.dispatch('gui/saveSetting', { name: 'console.entryStyle', value: newVal })
this.$store.dispatch('gui/console/saveSetting', { name: 'entryStyle', value: newVal })
}
get consoleHeight() {
@@ -168,7 +168,7 @@ export default class SettingsConsoleTab extends Mixins(BaseMixin) {
}
set consoleHeight(newVal) {
this.$store.dispatch('gui/saveSetting', { name: 'console.height', value: newVal })
this.$store.dispatch('gui/console/saveSetting', { name: 'height', value: newVal })
}
@Watch('consoleHeight')
@@ -186,15 +186,15 @@ export default class SettingsConsoleTab extends Mixins(BaseMixin) {
}
set hideWaitTemperatures(newVal) {
this.$store.dispatch('gui/saveSetting', { name: 'console.hideWaitTemperatures', value: newVal })
this.$store.dispatch('gui/console/saveSetting', { name: 'hideWaitTemperatures', value: newVal })
}
get hideTimelapse() {
return this.$store.state.gui.console.hideTimelapse
return this.$store.state.gui.console.hideTlCommands
}
set hideTimelapse(newVal) {
this.$store.dispatch('gui/saveSetting', { name: 'console.hideTimelapse', value: newVal })
this.$store.dispatch('gui/console/saveSetting', { name: 'hideTlCommands', value: newVal })
}
existsPresetName(name: string) {
@@ -215,7 +215,7 @@ export default class SettingsConsoleTab extends Mixins(BaseMixin) {
regex: filter.regex
}
this.$store.dispatch('gui/consolefilters/update', { id: filter.id, values })
this.$store.dispatch('gui/console/filterUpdate', { id: filter.id, values })
}
createFilter() {
@@ -240,16 +240,16 @@ export default class SettingsConsoleTab extends Mixins(BaseMixin) {
}
if (this.form.id)
this.$store.dispatch('gui/consolefilters/update', { id: this.form.id, values: filter })
this.$store.dispatch('gui/console/filterUpdate', { id: this.form.id, values: filter })
else
this.$store.dispatch('gui/consolefilters/store', { values: filter })
this.$store.dispatch('gui/console/filterStore', { values: filter })
this.clearForm()
}
}
deleteFilter(id: string) {
this.$store.dispatch('gui/consolefilters/delete', id)
this.$store.dispatch('gui/console/filterDelete', id)
}
}
</script>
+26 -26
View File
@@ -236,55 +236,55 @@ export default class SettingsControlTab extends Mixins(BaseMixin) {
}
get controlStyle() {
return this.$store.state.gui.dashboard.control.style ?? 'bar'
return this.$store.state.gui.control.style ?? 'bar'
}
set controlStyle(newVal) {
this.$store.dispatch('gui/saveSetting', { name: 'dashboard.control.style', value: newVal })
this.$store.dispatch('gui/saveSetting', { name: 'control.style', value: newVal })
}
get reverseX() {
return this.$store.state.gui.dashboard.control.reverseX
return this.$store.state.gui.control.reverseX
}
set reverseX(newVal) {
this.$store.dispatch('gui/saveSetting', { name: 'dashboard.control.reverseX', value: newVal })
this.$store.dispatch('gui/saveSetting', { name: 'control.reverseX', value: newVal })
}
get reverseY() {
return this.$store.state.gui.dashboard.control.reverseY
return this.$store.state.gui.control.reverseY
}
set reverseY(newVal) {
this.$store.dispatch('gui/saveSetting', { name: 'dashboard.control.reverseY', value: newVal })
this.$store.dispatch('gui/saveSetting', { name: 'control.reverseY', value: newVal })
}
get reverseZ() {
return this.$store.state.gui.dashboard.control.reverseZ
return this.$store.state.gui.control.reverseZ
}
set reverseZ(newVal) {
this.$store.dispatch('gui/saveSetting', { name: 'dashboard.control.reverseZ', value: newVal })
this.$store.dispatch('gui/saveSetting', { name: 'control.reverseZ', value: newVal })
}
get feedrateXY() {
return this.$store.state.gui.dashboard.control.feedrateXY
return this.$store.state.gui.control.feedrateXY
}
set feedrateXY(newVal) {
this.$store.dispatch('gui/saveSetting', { name: 'dashboard.control.feedrateXY', value: newVal })
this.$store.dispatch('gui/saveSetting', { name: 'control.feedrateXY', value: newVal })
}
get feedrateZ() {
return this.$store.state.gui.dashboard.control.feedrateZ
return this.$store.state.gui.control.feedrateZ
}
set feedrateZ(newVal) {
this.$store.dispatch('gui/saveSetting', { name: 'dashboard.control.feedrateZ', value: newVal })
this.$store.dispatch('gui/saveSetting', { name: 'control.feedrateZ', value: newVal })
}
get stepsAll() {
const steps = this.$store.state.gui.dashboard.control.stepsAll
const steps = this.$store.state.gui.control.stepsAll
return (steps ?? []).sort(function (a: number,b: number) { return b-a })
}
@@ -292,11 +292,11 @@ export default class SettingsControlTab extends Mixins(BaseMixin) {
const absSteps = []
for(const value of newVal) absSteps.push(Math.abs(value))
this.$store.dispatch('gui/saveSetting', { name: 'dashboard.control.stepsAll', value: absSteps })
this.$store.dispatch('gui/saveSetting', { name: 'control.stepsAll', value: absSteps })
}
get stepsXY() {
const steps = this.$store.state.gui.dashboard.control.stepsXY
const steps = this.$store.state.gui.control.stepsXY
return steps.sort(function (a: number,b: number) { return b-a })
}
@@ -304,11 +304,11 @@ export default class SettingsControlTab extends Mixins(BaseMixin) {
const absSteps = []
for(const value of steps) absSteps.push(Math.abs(value))
this.$store.dispatch('gui/saveSetting', { name: 'dashboard.control.stepsXY', value: absSteps })
this.$store.dispatch('gui/saveSetting', { name: 'control.stepsXY', value: absSteps })
}
get stepsZ() {
const steps = this.$store.state.gui.dashboard.control.stepsZ
const steps = this.$store.state.gui.control.stepsZ
return steps.sort(function (a: number,b: number) { return b-a })
}
@@ -316,11 +316,11 @@ export default class SettingsControlTab extends Mixins(BaseMixin) {
const absSteps = []
for(const value of steps) absSteps.push(Math.abs(value))
this.$store.dispatch('gui/saveSetting', { name: 'dashboard.control.stepsZ', value: absSteps })
this.$store.dispatch('gui/saveSetting', { name: 'control.stepsZ', value: absSteps })
}
get stepsCircleXY() {
const steps = this.$store.state.gui.dashboard.control.stepsCircleXY
const steps = this.$store.state.gui.control.stepsCircleXY
return steps.sort(function (a: number,b: number) { return b-a })
}
@@ -328,11 +328,11 @@ export default class SettingsControlTab extends Mixins(BaseMixin) {
const absSteps = []
for(const value of steps) absSteps.push(Math.abs(value))
this.$store.dispatch('gui/saveSetting', { name: 'dashboard.control.stepsCircleXY', value: absSteps })
this.$store.dispatch('gui/saveSetting', { name: 'control.stepsCircleXY', value: absSteps })
}
get stepsCircleZ() {
const steps = this.$store.state.gui.dashboard.control.stepsCircleZ
const steps = this.$store.state.gui.control.stepsCircleZ
return steps.sort(function (a: number,b: number) { return b-a })
}
@@ -340,11 +340,11 @@ export default class SettingsControlTab extends Mixins(BaseMixin) {
const absSteps = []
for(const value of steps) absSteps.push(Math.abs(value))
this.$store.dispatch('gui/saveSetting', { name: 'dashboard.control.stepsCircleZ', value: absSteps })
this.$store.dispatch('gui/saveSetting', { name: 'control.stepsCircleZ', value: absSteps })
}
get feedamountsE() {
const steps = this.$store.state.gui.dashboard.extruder.feedamounts
const steps = this.$store.state.gui.control.extruder.feedamounts
return steps.sort(function (a: number,b: number) { return b-a })
}
@@ -352,11 +352,11 @@ export default class SettingsControlTab extends Mixins(BaseMixin) {
const absAmounts = []
for(const value of amounts) absAmounts.push(Math.abs(value))
this.$store.dispatch('gui/saveSetting', { name: 'dashboard.extruder.feedamounts', value: absAmounts })
this.$store.dispatch('gui/saveSetting', { name: 'control.extruder.feedamounts', value: absAmounts })
}
get feedratesE() {
const steps = this.$store.state.gui.dashboard.extruder.feedrates
const steps = this.$store.state.gui.control.extruder.feedrates
return steps.sort(function (a: number,b: number) { return b-a })
}
@@ -364,7 +364,7 @@ export default class SettingsControlTab extends Mixins(BaseMixin) {
const absRates = []
for(const value of rates) absRates.push(Math.abs(value))
this.$store.dispatch('gui/saveSetting', { name: 'dashboard.extruder.feedrates', value: absRates })
this.$store.dispatch('gui/saveSetting', { name: 'control.extruder.feedrates', value: absRates })
}
blurFeedrateXY() {
@@ -37,7 +37,7 @@
{{ getPanelName(element.name) }}
</v-col>
<v-col class="col-auto pl-0">
<v-icon v-if="!element.visable" color="grey lighten-1" @click.stop="changeState1(element.name,true)">mdi-checkbox-blank-outline</v-icon>
<v-icon v-if="!element.visible" color="grey lighten-1" @click.stop="changeState1(element.name,true)">mdi-checkbox-blank-outline</v-icon>
<v-icon v-else color="primary" @click.stop="changeState1(element.name,false)">mdi-checkbox-marked</v-icon>
</v-col>
</v-row>
@@ -62,7 +62,7 @@
{{ getPanelName(element.name) }}
</v-col>
<v-col class="col-auto pl-0">
<v-icon v-if="!element.visable" color="grey lighten-1" @click.stop="changeState2(element.name,true)">mdi-checkbox-blank-outline</v-icon>
<v-icon v-if="!element.visible" color="grey lighten-1" @click.stop="changeState2(element.name,true)">mdi-checkbox-blank-outline</v-icon>
<v-icon v-else color="primary" @click.stop="changeState2(element.name,false)">mdi-checkbox-marked</v-icon>
</v-col>
</v-row>
@@ -124,7 +124,7 @@ export default class SettingsDashboardTabDesktop extends Mixins(DashboardMixin)
changeState1(name: string, newVal: boolean) {
const index = this.desktopLayout1.findIndex((element: any) => element.name === name)
if (index !== -1) {
this.desktopLayout1[index].visable = newVal
this.desktopLayout1[index].visible = newVal
this.$store.dispatch('gui/saveSetting', {name: 'dashboard.desktopLayout1', value: this.desktopLayout1 })
}
}
@@ -132,7 +132,7 @@ export default class SettingsDashboardTabDesktop extends Mixins(DashboardMixin)
changeState2(name: string, newVal: boolean) {
const index = this.desktopLayout2.findIndex((element: any) => element.name === name)
if (index !== -1) {
this.desktopLayout2[index].visable = newVal
this.desktopLayout2[index].visible = newVal
this.$store.dispatch('gui/saveSetting', {name: 'dashboard.desktopLayout2', value: this.desktopLayout2 })
}
}
@@ -37,7 +37,7 @@
{{ getPanelName(element.name) }}
</v-col>
<v-col class="col-auto pl-0">
<v-icon v-if="!element.visable" color="grey lighten-1" @click.stop="changeState(element.name,true)">mdi-checkbox-blank-outline</v-icon>
<v-icon v-if="!element.visible" color="grey lighten-1" @click.stop="changeState(element.name,true)">mdi-checkbox-blank-outline</v-icon>
<v-icon v-else color="primary" @click.stop="changeState(element.name,false)">mdi-checkbox-marked</v-icon>
</v-col>
</v-row>
@@ -89,7 +89,7 @@ export default class SettingsDashboardTabMobile extends Mixins(DashboardMixin) {
changeState(name: string, newVal: boolean) {
const index = this.mobileLayout.findIndex((element: any) => element.name === name)
if (index !== -1) {
this.mobileLayout[index].visable = newVal
this.mobileLayout[index].visible = newVal
this.$store.dispatch('gui/saveSetting', {name: 'dashboard.mobileLayout', value: this.mobileLayout })
}
}
@@ -37,7 +37,7 @@
{{ getPanelName(element.name) }}
</v-col>
<v-col class="col-auto pl-0">
<v-icon v-if="!element.visable" color="grey lighten-1" @click.stop="changeState1(element.name,true)">mdi-checkbox-blank-outline</v-icon>
<v-icon v-if="!element.visible" color="grey lighten-1" @click.stop="changeState1(element.name,true)">mdi-checkbox-blank-outline</v-icon>
<v-icon v-else color="primary" @click.stop="changeState1(element.name,false)">mdi-checkbox-marked</v-icon>
</v-col>
</v-row>
@@ -62,7 +62,7 @@
{{ getPanelName(element.name) }}
</v-col>
<v-col class="col-auto pl-0">
<v-icon v-if="!element.visable" color="grey lighten-1" @click.stop="changeState2(element.name,true)">mdi-checkbox-blank-outline</v-icon>
<v-icon v-if="!element.visible" color="grey lighten-1" @click.stop="changeState2(element.name,true)">mdi-checkbox-blank-outline</v-icon>
<v-icon v-else color="primary" @click.stop="changeState2(element.name,false)">mdi-checkbox-marked</v-icon>
</v-col>
</v-row>
@@ -124,7 +124,7 @@ export default class SettingsDashboardTabTablet extends Mixins(DashboardMixin) {
changeState1(name: string, newVal: boolean) {
const index = this.tabletLayout1.findIndex((element: any) => element.name === name)
if (index !== -1) {
this.tabletLayout1[index].visable = newVal
this.tabletLayout1[index].visible = newVal
this.$store.dispatch('gui/saveSetting', {name: 'dashboard.tabletLayout1', value: this.tabletLayout1 })
}
}
@@ -132,7 +132,7 @@ export default class SettingsDashboardTabTablet extends Mixins(DashboardMixin) {
changeState2(name: string, newVal: boolean) {
const index = this.tabletLayout2.findIndex((element: any) => element.name === name)
if (index !== -1) {
this.tabletLayout2[index].visable = newVal
this.tabletLayout2[index].visible = newVal
this.$store.dispatch('gui/saveSetting', {name: 'dashboard.tabletLayout2', value: this.tabletLayout2 })
}
}
@@ -37,7 +37,7 @@
{{ getPanelName(element.name) }}
</v-col>
<v-col class="col-auto pl-0">
<v-icon v-if="!element.visable" color="grey lighten-1" @click.stop="changeState1(element.name,true)">mdi-checkbox-blank-outline</v-icon>
<v-icon v-if="!element.visible" color="grey lighten-1" @click.stop="changeState1(element.name,true)">mdi-checkbox-blank-outline</v-icon>
<v-icon v-else color="primary" @click.stop="changeState1(element.name,false)">mdi-checkbox-marked</v-icon>
</v-col>
</v-row>
@@ -62,7 +62,7 @@
{{ getPanelName(element.name) }}
</v-col>
<v-col class="col-auto pl-0">
<v-icon v-if="!element.visable" color="grey lighten-1" @click.stop="changeState2(element.name,true)">mdi-checkbox-blank-outline</v-icon>
<v-icon v-if="!element.visible" color="grey lighten-1" @click.stop="changeState2(element.name,true)">mdi-checkbox-blank-outline</v-icon>
<v-icon v-else color="primary" @click.stop="changeState2(element.name,false)">mdi-checkbox-marked</v-icon>
</v-col>
</v-row>
@@ -87,7 +87,7 @@
{{ getPanelName(element.name) }}
</v-col>
<v-col class="col-auto pl-0">
<v-icon v-if="!element.visable" color="grey lighten-1" @click.stop="changeState3(element.name,true)">mdi-checkbox-blank-outline</v-icon>
<v-icon v-if="!element.visible" color="grey lighten-1" @click.stop="changeState3(element.name,true)">mdi-checkbox-blank-outline</v-icon>
<v-icon v-else color="primary" @click.stop="changeState3(element.name,false)">mdi-checkbox-marked</v-icon>
</v-col>
</v-row>
@@ -159,7 +159,7 @@ export default class SettingsDashboardTabWidescreen extends Mixins(DashboardMixi
changeState1(name: string, newVal: boolean) {
const index = this.widescreenLayout1.findIndex((element: any) => element.name === name)
if (index !== -1) {
this.widescreenLayout1[index].visable = newVal
this.widescreenLayout1[index].visible = newVal
this.$store.dispatch('gui/saveSetting', {name: 'dashboard.widescreenLayout1', value: this.widescreenLayout1 })
}
}
@@ -167,7 +167,7 @@ export default class SettingsDashboardTabWidescreen extends Mixins(DashboardMixi
changeState2(name: string, newVal: boolean) {
const index = this.widescreenLayout2.findIndex((element: any) => element.name === name)
if (index !== -1) {
this.widescreenLayout2[index].visable = newVal
this.widescreenLayout2[index].visible = newVal
this.$store.dispatch('gui/saveSetting', {name: 'dashboard.widescreenLayout2', value: this.widescreenLayout2 })
}
}
@@ -175,7 +175,7 @@ export default class SettingsDashboardTabWidescreen extends Mixins(DashboardMixi
changeState3(name: string, newVal: boolean) {
const index = this.widescreenLayout3.findIndex((element: any) => element.name === name)
if (index !== -1) {
this.widescreenLayout3[index].visable = newVal
this.widescreenLayout3[index].visible = newVal
this.$store.dispatch('gui/saveSetting', {name: 'dashboard.widescreenLayout3', value: this.widescreenLayout3 })
}
}
+322 -55
View File
@@ -18,13 +18,71 @@
<v-select v-model="calcEtaTime" :items="calcEtaTimeItems" multiple hide-details dense outlined attach></v-select>
</settings-row>
<v-divider class="my-2"></v-divider>
<settings-row :title="$t('Settings.GeneralTab.MoonrakerDb')" :dynamicSlotWidth="true">
<input type="file" :accept="['.json']" ref="uploadBackupFile" class="d-none" @change="uploadRestore" />
<v-btn @click="backupDb" :loading="loadings.includes('backupDbButton')" small>{{ $t('Settings.GeneralTab.Backup') }}</v-btn>
<v-btn @click="restoreDb" small :loading="loadings.includes('restoreUploadButton')" class="ml-3">{{ $t('Settings.GeneralTab.Restore') }}</v-btn>
</settings-row>
<v-divider class="my-2"></v-divider>
<settings-row :title="$t('Settings.GeneralTab.FactoryReset')" :dynamicSlotWidth="true">
<v-btn @click="dialogResetMainsail=true" color="error" small>{{ $t('Settings.GeneralTab.FactoryReset') }}</v-btn>
<v-btn @click="resetMainsail" color="error" small>{{ $t('Settings.GeneralTab.FactoryReset') }}</v-btn>
</settings-row>
</v-card-text>
</v-card>
<v-dialog v-model="dialogBackupMainsail" persistent :width="360">
<panel :title="$t('Settings.GeneralTab.Backup')" card-class="mainsail-backup-dialog" :margin-bottom="false" icon="mdi-help-circle">
<template v-slot:buttons>
<v-btn icon tile @click="dialogBackupMainsail = false"><v-icon>mdi-close-thick</v-icon></v-btn>
</template>
<v-card-text>
<v-row>
<v-col>
<p class="mb-0">{{ $t('Settings.GeneralTab.BackupDialog') }}</p>
</v-col>
</v-row>
<v-row>
<v-col class="pl-6">
<template v-for="db in mainsailKeys">
<v-checkbox
:label="db.label"
hide-details
class="mt-0"
:key="db.name"
@change="changeNamespace(db.name)"
></v-checkbox>
</template>
<v-checkbox
:label="$t('Settings.GeneralTab.DbTimelapseSettings')"
v-if="availableNamespaces.includes('timelapse')"
hide-details
class="mt-0"
@change="changeNamespace('timelapse')"
></v-checkbox>
<v-checkbox
:label="$t('Settings.GeneralTab.DbWebcams')"
v-if="availableNamespaces.includes('webcams')"
hide-details
class="mt-0"
@change="changeNamespace('webcams')"
></v-checkbox>
</v-col>
</v-row>
<v-row>
<v-col class="text-center">
<v-btn
color="red"
@click="backupMainsail"
:loading="loadings.includes('backupMainsail')"
>
{{ $t('Settings.GeneralTab.Backup') }}
</v-btn>
</v-col>
</v-row>
</v-card-text>
</panel>
</v-dialog>
<v-dialog v-model="dialogResetMainsail" persistent :width="360">
<panel :title="$t('Settings.GeneralTab.FactoryReset')" card-class="ractory-reset-dialog" :margin-bottom="false" icon="mdi-help-circle">
<panel :title="$t('Settings.GeneralTab.FactoryReset')" card-class="factory-reset-dialog" :margin-bottom="false" icon="mdi-help-circle">
<template v-slot:buttons>
<v-btn icon tile @click="dialogResetMainsail = false"><v-icon>mdi-close-thick</v-icon></v-btn>
</template>
@@ -36,61 +94,42 @@
</v-row>
<v-row>
<v-col class="pl-6">
<template v-for="db in mainsailKeys">
<v-checkbox
:label="db.label"
hide-details
class="mt-0"
:key="db.name"
@change="changeNamespace(db.name)"
></v-checkbox>
</template>
<v-checkbox
v-model="dbCheckboxes.mainsail"
:label="$t('Settings.GeneralTab.DbGeneral')"
v-if="moonrakerDbNamespaces.includes('mainsail')"
hide-details
class="mt-0"
></v-checkbox>
<v-checkbox
v-model="dbCheckboxes.mainsail_presets"
:label="$t('Settings.GeneralTab.DbPresets')"
v-if="moonrakerDbNamespaces.includes('mainsail_presets')"
hide-details
class="mt-0"
></v-checkbox>
<v-checkbox
v-model="dbCheckboxes.mainsail_macrogroups"
:label="$t('Settings.GeneralTab.DbMacrogroups')"
v-if="moonrakerDbNamespaces.includes('mainsail_macrogroups')"
hide-details
class="mt-0"
></v-checkbox>
<v-checkbox
v-model="dbCheckboxes.mainsail_remoteprinters"
:label="$t('Settings.GeneralTab.DbRemoteprinters')"
v-if="moonrakerDbNamespaces.includes('mainsail_remoteprinters')"
hide-details
class="mt-0"
></v-checkbox>
<v-checkbox
v-model="dbCheckboxes.webcams"
:label="$t('Settings.GeneralTab.DbWebcams')"
v-if="moonrakerDbNamespaces.includes('webcams')"
hide-details
class="mt-0"
></v-checkbox>
<v-checkbox
v-model="dbCheckboxes.timelapse"
:label="$t('Settings.GeneralTab.DbTimelapseSettings')"
v-if="moonrakerDbNamespaces.includes('timelapse')"
v-if="availableNamespaces.includes('timelapse')"
hide-details
class="mt-0"
@change="changeNamespace('timelapse')"
></v-checkbox>
<v-checkbox
:label="$t('Settings.GeneralTab.DbWebcams')"
v-if="availableNamespaces.includes('webcams')"
hide-details
class="mt-0"
@change="changeNamespace('webcams')"
></v-checkbox>
<v-checkbox
v-model="dbCheckboxes.history_jobs"
:label="$t('Settings.GeneralTab.DbHistoryJobs')"
v-if="moonrakerComponents.includes('history')"
hide-details
class="mt-0"
@change="changeNamespace('history_jobs')"
></v-checkbox>
<v-checkbox
v-model="dbCheckboxes.history_totals"
:label="$t('Settings.GeneralTab.DbHistoryTotals')"
v-if="moonrakerComponents.includes('history')"
hide-details
class="mt-0"
@change="changeNamespace('history_totals')"
></v-checkbox>
</v-col>
</v-row>
@@ -98,8 +137,8 @@
<v-col class="text-center">
<v-btn
color="red"
@click="resetMainsail"
:loading="dialogResetMainsailLoading"
@click="resetMainsailAction"
:loading="loadings.includes('resetMainsail')"
>
{{ $t('Settings.GeneralTab.Reset') }}
</v-btn>
@@ -108,6 +147,44 @@
</v-card-text>
</panel>
</v-dialog>
<v-dialog v-model="dialogRestoreMainsail" persistent :width="360">
<panel :title="$t('Settings.GeneralTab.Restore')" card-class="factory-reset-dialog" :margin-bottom="false" icon="mdi-help-circle">
<template v-slot:buttons>
<v-btn icon tile @click="dialogRestoreMainsail = false"><v-icon>mdi-close-thick</v-icon></v-btn>
</template>
<v-card-text>
<v-row>
<v-col>
<p class="mb-0">{{ $t('Settings.GeneralTab.RestoreDialog') }}</p>
</v-col>
</v-row>
<v-row>
<v-col class="pl-6">
<template v-for="db in restoreableNamespaces">
<v-checkbox
:label="db.label"
hide-details
class="mt-0"
:key="db.name"
@change="changeNamespace(db.name)"
></v-checkbox>
</template>
</v-col>
</v-row>
<v-row>
<v-col class="text-center">
<v-btn
color="red"
@click="restoreDbAction"
:loading="loadings.includes('restoreMainsail')"
>
{{ $t('Settings.GeneralTab.Restore') }}
</v-btn>
</v-col>
</v-row>
</v-card-text>
</panel>
</v-dialog>
</div>
</template>
@@ -118,20 +195,74 @@ import { Mixins } from 'vue-property-decorator'
import BaseMixin from '@/components/mixins/base'
import SettingsRow from '@/components/settings/SettingsRow.vue'
import Panel from '@/components/ui/Panel.vue'
import Vue from 'vue'
@Component({
components: {Panel, SettingsRow}
})
export default class SettingsGeneralTab extends Mixins(BaseMixin) {
private dialogBackupMainsail = false
private dialogResetMainsail = false
private dialogResetMainsailLoading = false
private dbCheckboxes = {
mainsail: false,
mainsail_presets: false,
mainsail_macrogroups: false,
mainsail_remoteprinters: false,
timelapse: false,
history_jobs: false,
history_totals: false,
private dialogRestoreMainsail = false
private dbCheckboxes: string[] = []
private restoreableNamespaces: { name: string, label: string}[] = []
private restoreObjects: any = {}
private mainsailKeys: { name: string, label: string}[] = []
private availableNamespaces: string[] = []
$refs!: {
uploadBackupFile: HTMLInputElement
}
get availableKeys() {
return [
{
name: 'general',
label: this.$t('Settings.GeneralTab.General')+''
}, {
name: 'console',
label: this.$t('Settings.ConsoleTab.Console')+''
}, {
name: 'control',
label: this.$t('Settings.ControlTab.Control')+''
}, {
name: 'dashboard',
label: this.$t('Settings.DashboardTab.Dashboard')+''
}, {
name: 'editor',
label: this.$t('Settings.EditorTab.Editor')+''
}, {
name: 'gcodeviewer',
label: this.$t('Settings.GCodeViewerTab.GCodeViewer')+''
}, {
name: 'gcodehistory',
label: this.$t('Settings.GeneralTab.DbConsoleHistory')+''
}, {
name: 'macros',
label: this.$t('Settings.MacrosTab.Macros')+''
}, {
name: 'presets',
label: this.$t('Settings.PresetsTab.PreheatPresets')+''
}, {
name: 'remoteprinters',
label: this.$t('Settings.RemotePrintersTab.RemotePrinters')+''
}, {
name: 'timelapse',
label: this.$t('Settings.TimelapseTab.Timelapse')+''
}, {
name: 'uiSettings',
label: this.$t('Settings.UiSettingsTab.UiSettings')+''
}, {
name: 'view',
label: this.$t('Settings.GeneralTab.DbView')+''
}, {
name: 'webcams',
label: this.$t('Settings.WebcamsTab.Webcams')+''
}
]
}
get printerName() {
@@ -206,9 +337,145 @@ export default class SettingsGeneralTab extends Mixins(BaseMixin) {
return this.$store.state.server.components ?? []
}
resetMainsail() {
this.$store.dispatch('gui/resetMoonrakerDB', this.dbCheckboxes)
this.dialogResetMainsailLoading = true
async refreshNamespaces() {
this.availableNamespaces = []
const url = this.$store.getters['socket/getUrl'] + '/server/database/list'
const response = await fetch(url)
if (response) {
const objects = await response.json()
this.availableNamespaces = [...objects.result?.namespaces] ?? []
}
}
async refreshMainsailKeys() {
this.mainsailKeys = []
const url = this.$store.getters['socket/getUrl'] + '/server/database/item?namespace=mainsail'
const response = await fetch(url)
if (response) {
const objects = await response.json()
if (objects?.result?.value) {
Object.keys(objects?.result?.value).forEach((tmp: string) => {
if (tmp !== 'initVersion') {
const namespace = this.availableKeys.find((namespace) => namespace.name === tmp)
const tmpNamespace = namespace ? namespace : { name: tmp, label: tmp }
this.mainsailKeys.push(tmpNamespace)
}
})
this.mainsailKeys = this.mainsailKeys.sort((a, b) => {
if (a.name === 'general') return -1
if (b.name === 'general') return 1
const stringA = a.label.toString().toLowerCase()
const stringB = b.label.toString().toLowerCase()
if (stringA < stringB) return -1
if (stringA > stringB) return 1
return 0
})
}
}
}
changeNamespace(name: string) {
if (this.dbCheckboxes.includes(name)) {
const index = this.dbCheckboxes.indexOf(name)
if (index >= 0) this.dbCheckboxes.splice(index, 1)
} else this.dbCheckboxes.push(name)
}
async resetMainsail() {
await this.refreshNamespaces()
if (this.availableNamespaces.includes('mainsail')) await this.refreshMainsailKeys()
else this.mainsailKeys = []
this.dbCheckboxes = []
this.dialogResetMainsail = true
}
async resetMainsailAction() {
await this.$store.dispatch('socket/addLoading', 'resetMainsail')
await this.$store.dispatch('gui/resetMoonrakerDB', this.dbCheckboxes)
}
async backupDb() {
this.$store.dispatch('socket/addLoading', 'backupDbButton')
await this.refreshNamespaces()
if (this.availableNamespaces.includes('mainsail')) await this.refreshMainsailKeys()
else this.mainsailKeys = []
this.dbCheckboxes = []
this.dialogBackupMainsail = true
}
async backupMainsail() {
await this.$store.dispatch('socket/addLoading', 'backupMainsail')
await this.$store.dispatch('gui/backupMoonrakerDB', this.dbCheckboxes)
await this.$store.dispatch('socket/removeLoading', 'backupMainsail')
this.dialogBackupMainsail = false
}
async restoreDb() {
this.$store.dispatch('socket/addLoading', 'restoreUploadButton')
this.$refs?.uploadBackupFile?.click()
}
uploadRestore() {
if (this.$refs.uploadBackupFile.files?.length) {
const backup = this.$refs.uploadBackupFile.files[0]
if (backup) {
const reader = new FileReader()
reader.readAsText(backup, 'UTF-8')
reader.onload = (evt) => {
this.restoreableNamespaces = []
try {
this.restoreObjects = JSON.parse(evt?.target?.result+'')
Object.keys(this.restoreObjects).forEach((tmp: string) => {
const namespace = this.availableKeys.find((namespace) => namespace.name === tmp)
const tmpNamespace = namespace ? namespace : { name: tmp, label: tmp }
this.restoreableNamespaces.push(tmpNamespace)
})
this.restoreableNamespaces = this.restoreableNamespaces.sort((a, b) => {
if (a.name === 'general') return -1
if (b.name === 'general') return 1
const stringA = a.label.toString().toLowerCase()
const stringB = b.label.toString().toLowerCase()
if (stringA < stringB) return -1
if (stringA > stringB) return 1
return 0
})
this.dbCheckboxes = []
this.dialogRestoreMainsail = true
} catch (e) {
Vue.$toast.error(this.$t('Settings.GeneralTab.CannotReadJson')+'')
}
}
reader.onerror = (evt) => {
window.console.error(evt)
}
}
this.$refs.uploadBackupFile.value = ''
}
}
async restoreDbAction () {
this.$store.dispatch('socket/addLoading', 'restoreDbAction')
this.$store.dispatch('gui/restoreMoonrakerDB', {
dbCheckboxes: this.dbCheckboxes,
restoreObjects: this.restoreObjects
})
}
}
</script>
@@ -4,11 +4,11 @@
<v-card-text v-if="showGeneral">
<h3 class="text-h5 mb-3">{{ $t('Settings.MacrosTab.General') }}</h3>
<settings-row :title="$t('Settings.MacrosTab.Management')">
<v-select v-model="macroManagement" :items="macroManagements" outlined dense hide-details attach></v-select>
<v-select v-model="mode" :items="modes" outlined dense hide-details attach></v-select>
</settings-row>
<v-divider class="my-2"></v-divider>
</v-card-text>
<template v-if="macroManagement === 'expert'">
<template v-if="mode === 'expert'">
<settings-macros-tab-expert @update:showGeneral="updateShowGeneral" @scrollToTop="scrollToTop"></settings-macros-tab-expert>
</template>
<template v-else>
@@ -30,7 +30,7 @@ import SettingsMacrosTabExpert from '@/components/settings/SettingsMacrosTabExpe
export default class SettingsMacrosTab extends Mixins(BaseMixin) {
private showGeneral = true
get macroManagements() {
get modes() {
return [
{
text: this.$t('Settings.MacrosTab.Simple'),
@@ -43,12 +43,12 @@ export default class SettingsMacrosTab extends Mixins(BaseMixin) {
]
}
get macroManagement() {
return this.$store.state.gui?.dashboard?.macroManagement ?? 'simple'
get mode() {
return this.$store.state.gui?.macros?.mode ?? 'simple'
}
set macroManagement(newVal) {
this.$store.dispatch('gui/saveSetting', { name: 'dashboard.macroManagement', value: newVal })
set mode(newVal) {
this.$store.dispatch('gui/macros/saveSetting', { name: 'mode', value: newVal })
}
updateShowGeneral(newVal: boolean) {
@@ -192,7 +192,7 @@ import draggable from 'vuedraggable'
import SettingsRow from '@/components/settings/SettingsRow.vue'
import {Debounce} from 'vue-debounce-decorator'
import {PrinterStateMacro} from '@/store/printer/types'
import {GuiMacrogroupsStateMacrogroup, GuiMacrogroupsStateMacrogroupMacro} from '@/store/gui/macrogroups/types'
import {GuiMacrosStateMacrogroup, GuiMacrosStateMacrogroupMacro} from '@/store/gui/macros/types'
@Component({
components: {SettingsRow, draggable}
@@ -253,24 +253,24 @@ export default class SettingsMacrosTabExpert extends Mixins(BaseMixin) {
}
get availableMacros() {
return this.allMacros.filter((m: GuiMacrogroupsStateMacrogroupMacro) => !this.editGroupUsedMacros.includes(m.name))
return this.allMacros.filter((m: GuiMacrosStateMacrogroupMacro) => !this.editGroupUsedMacros.includes(m.name))
}
get groups() {
return this.$store.getters['gui/macrogroups/getAllMacrogroups'] ?? []
return this.$store.getters['gui/macros/getAllMacrogroups'] ?? []
}
get editGroupUsedMacros() {
return this.editGroup?.macros?.map((m: GuiMacrogroupsStateMacrogroupMacro) => m.name) ?? []
return this.editGroup?.macros?.map((m: GuiMacrosStateMacrogroupMacro) => m.name) ?? []
}
get editGroup(): GuiMacrogroupsStateMacrogroup | null {
return this.$store.getters['gui/macrogroups/getMacrogroup'](this.editGroupId)
get editGroup(): GuiMacrosStateMacrogroup | null {
return this.$store.getters['gui/macros/getMacrogroup'](this.editGroupId)
}
get editGroupMacros() {
const macros = this.editGroup?.macros ?? []
macros.sort((a: GuiMacrogroupsStateMacrogroupMacro, b: GuiMacrogroupsStateMacrogroupMacro) => a.pos - b.pos)
macros.sort((a: GuiMacrosStateMacrogroupMacro, b: GuiMacrosStateMacrogroupMacro) => a.pos - b.pos)
return macros
}
@@ -280,7 +280,7 @@ export default class SettingsMacrosTabExpert extends Mixins(BaseMixin) {
}
existsGroupName(name: string) {
return (this.groups.findIndex((group: GuiMacrogroupsStateMacrogroup) => group.name === name && group.id != this.editGroupId) >= 0)
return (this.groups.findIndex((group: GuiMacrosStateMacrogroup) => group.name === name && group.id != this.editGroupId) >= 0)
}
clearColorObject(color: any): string {
@@ -304,29 +304,29 @@ export default class SettingsMacrosTabExpert extends Mixins(BaseMixin) {
showInPause: true,
showInPrinting: true,
}
this.editGroupId = await this.$store.dispatch('gui/macrogroups/store', { values })
this.editGroupId = await this.$store.dispatch('gui/macros/groupStore', { values })
this.boolFormEdit = true
}
editMacrogroup(group: GuiMacrogroupsStateMacrogroup) {
editMacrogroup(group: GuiMacrosStateMacrogroup) {
this.boolFormEdit = true
this.editGroupId = group.id
}
deleteMacrogroup(id: string) {
this.$store.dispatch('gui/macrogroups/delete', id)
this.$store.dispatch('gui/macros/groupDelete', id)
}
addMacroToGroup(macro: PrinterStateMacro) {
this.$store.dispatch('gui/macrogroups/addMacroToMacrogroup', {
this.$store.dispatch('gui/macros/addMacroToMacrogroup', {
id: this.editGroupId,
macro: macro.name
})
}
updateMacroFromGroup(macro: GuiMacrogroupsStateMacrogroupMacro, option: string, value: boolean | string | number) {
this.$store.dispatch('gui/macrogroups/updateMacroFromMacrogroup', {
updateMacroFromGroup(macro: GuiMacrosStateMacrogroupMacro, option: string, value: boolean | string | number) {
this.$store.dispatch('gui/macros/updateMacroFromMacrogroup', {
id: this.editGroupId,
macro: macro.name,
option: option,
@@ -344,7 +344,7 @@ export default class SettingsMacrosTabExpert extends Mixins(BaseMixin) {
this.updateMacroFromGroup(this.editGroupMacros[newIndex], 'pos', oldPos)
}
changeColorMacroFromGroup(macro: GuiMacrogroupsStateMacrogroupMacro) {
changeColorMacroFromGroup(macro: GuiMacrosStateMacrogroupMacro) {
let index = this.macroColors.findIndex((color) => color.value === macro.color) + 1
const maxIndex = this.macroColors.length - 1
@@ -354,8 +354,8 @@ export default class SettingsMacrosTabExpert extends Mixins(BaseMixin) {
this.updateMacroFromGroup(macro, 'color', newColor)
}
removeMacroFromGroup(macro: GuiMacrogroupsStateMacrogroupMacro) {
this.$store.dispatch('gui/macrogroups/removeMacroFromMacrogroup', {
removeMacroFromGroup(macro: GuiMacrosStateMacrogroupMacro) {
this.$store.dispatch('gui/macros/removeMacroFromMacrogroup', {
id: this.editGroupId,
macro: macro.name
})
@@ -376,7 +376,7 @@ export default class SettingsMacrosTabExpert extends Mixins(BaseMixin) {
const values:any = {}
values[option] = newVal
this.$store.dispatch('gui/macrogroups/update', {
this.$store.dispatch('gui/macros/groupUpdate', {
id: this.editGroupId,
values
})
@@ -34,7 +34,7 @@ export default class SettingsMacrosTabSimple extends Mixins(BaseMixin) {
}
get hiddenMacros() {
return this.$store.state.gui.dashboard.hiddenMacros ?? []
return this.$store.state.gui.macros.hiddenMacros ?? []
}
getMacroStatus(name: string) {
@@ -49,7 +49,7 @@ export default class SettingsMacrosTabSimple extends Mixins(BaseMixin) {
else
hiddenMacros.push(name.toUpperCase())
this.$store.dispatch('gui/saveSetting', { name: 'dashboard.hiddenMacros', value: hiddenMacros })
this.$store.dispatch('gui/macros/saveSetting', { name: 'hiddenMacros', value: hiddenMacros })
}
}
</script>
@@ -306,7 +306,7 @@ export default class SettingsPresetsTab extends Mixins(BaseMixin) {
saveCooldown() {
if (this.cooldownForm.valid) {
this.$store.dispatch('gui/presets/updateCooldownGcode', this.cooldownForm.gcode)
this.$store.dispatch('gui/presets/saveSetting', { name: 'cooldownGcode', value: this.cooldownForm.gcode })
this.cooldownForm.bool = false
}
}
@@ -68,21 +68,27 @@
<v-text-field v-model="park_travel_speed" type="number" suffix="mm/s" hide-details="auto" outlined dense :disabled="blockedsettings.includes('park_travel_speed')" hide-spin-buttons></v-text-field>
</settings-row>
<v-divider class="my-2"></v-divider>
<settings-row :title="$t('Settings.TimelapseTab.RetractSpeed')" :sub-title="$t('Settings.TimelapseTab.RetractSpeedDescription')">
<v-text-field v-model="park_retract_speed" type="number" suffix="mm/s" hide-details="auto" outlined dense :disabled="blockedsettings.includes('park_retract_speed')" hide-spin-buttons></v-text-field>
</settings-row>
<v-divider class="my-2"></v-divider>
<settings-row :title="$t('Settings.TimelapseTab.RetractDistance')" :sub-title="$t('Settings.TimelapseTab.RetractDistanceDescription')">
<v-text-field v-model="park_retract_distance" type="number" suffix="mm" hide-details="auto" outlined dense :disabled="blockedsettings.includes('park_retract_distance')" hide-spin-buttons></v-text-field>
</settings-row>
<v-divider class="my-2"></v-divider>
<settings-row :title="$t('Settings.TimelapseTab.UnretractSpeed')" :sub-title="$t('Settings.TimelapseTab.UnretractSpeedDescription')">
<v-text-field v-model="park_extrude_speed" type="number" suffix="mm/s" hide-details="auto" outlined dense :disabled="blockedsettings.includes('park_extrude_speed')" hide-spin-buttons></v-text-field>
</settings-row>
<v-divider class="my-2"></v-divider>
<settings-row :title="$t('Settings.TimelapseTab.UnretractDistance')" :sub-title="$t('Settings.TimelapseTab.UnretractDistanceDescription')">
<v-text-field v-model="park_extrude_distance" type="number" suffix="mm" hide-details="auto" outlined dense :disabled="blockedsettings.includes('park_extrude_distance')" hide-spin-buttons></v-text-field>
<settings-row :title="$t('Settings.TimelapseTab.FwRetract')" :sub-title="$t('Settings.TimelapseTab.FwRetractDescription')" :dynamicSlotWidth="true">
<v-switch v-model="fw_retract" hide-details class="mt-0" :disabled="blockedsettings.includes('fw_retract')"></v-switch>
</settings-row>
<template v-if="!fw_retract">
<v-divider class="my-2"></v-divider>
<settings-row :title="$t('Settings.TimelapseTab.RetractSpeed')" :sub-title="$t('Settings.TimelapseTab.RetractSpeedDescription')">
<v-text-field v-model="park_retract_speed" type="number" suffix="mm/s" hide-details="auto" outlined dense :disabled="blockedsettings.includes('park_retract_speed')" hide-spin-buttons></v-text-field>
</settings-row>
<v-divider class="my-2"></v-divider>
<settings-row :title="$t('Settings.TimelapseTab.RetractDistance')" :sub-title="$t('Settings.TimelapseTab.RetractDistanceDescription')">
<v-text-field v-model="park_retract_distance" type="number" suffix="mm" hide-details="auto" outlined dense :disabled="blockedsettings.includes('park_retract_distance')" hide-spin-buttons></v-text-field>
</settings-row>
<v-divider class="my-2"></v-divider>
<settings-row :title="$t('Settings.TimelapseTab.UnretractSpeed')" :sub-title="$t('Settings.TimelapseTab.UnretractSpeedDescription')">
<v-text-field v-model="park_extrude_speed" type="number" suffix="mm/s" hide-details="auto" outlined dense :disabled="blockedsettings.includes('park_extrude_speed')" hide-spin-buttons></v-text-field>
</settings-row>
<v-divider class="my-2"></v-divider>
<settings-row :title="$t('Settings.TimelapseTab.UnretractDistance')" :sub-title="$t('Settings.TimelapseTab.UnretractDistanceDescription')">
<v-text-field v-model="park_extrude_distance" type="number" suffix="mm" hide-details="auto" outlined dense :disabled="blockedsettings.includes('park_extrude_distance')" hide-spin-buttons></v-text-field>
</settings-row>
</template>
<v-divider class="my-2"></v-divider>
<settings-row :title="$t('Settings.TimelapseTab.ParkTime')" :sub-title="$t('Settings.TimelapseTab.ParkTimeDescription')">
<v-text-field v-model="park_time" type="number" suffix="s" hide-details="auto" step="0.1" outlined dense :disabled="blockedsettings.includes('park_time')"></v-text-field>
@@ -358,6 +364,14 @@ export default class SettingsTimelapseTab extends Mixins(BaseMixin) {
this.$store.dispatch('server/timelapse/saveSetting', { park_time: newVal })
}
get fw_retract() {
return this.$store.state.server.timelapse.settings.fw_retract
}
set fw_retract(newVal) {
this.$store.dispatch('server/timelapse/saveSetting', { fw_retract: newVal })
}
get constant_rate_factor() {
return this.$store.state.server.timelapse.settings.constant_rate_factor
}
@@ -115,95 +115,95 @@ export default class SettingsUiSettingsTab extends Mixins(BaseMixin) {
private defaultPrimaryColor = defaultPrimaryColor
get logoColor() {
return this.$store.state.gui.theme.logo
return this.$store.state.gui.uiSettings.logo
}
set logoColor(newVal) {
this.$store.dispatch('gui/saveSetting', {name: 'theme.logo', value: newVal})
this.$store.dispatch('gui/saveSetting', {name: 'uiSettings.logo', value: newVal})
}
get primaryColor() {
return this.$store.state.gui.theme.primary
return this.$store.state.gui.uiSettings.primary
}
set primaryColor(newVal) {
this.$store.dispatch('gui/saveSetting', {name: 'theme.primary', value: newVal})
this.$store.dispatch('gui/saveSetting', {name: 'uiSettings.primary', value: newVal})
}
get boolBigThumbnail() {
return this.$store.state.gui.dashboard.boolBigThumbnail
return this.$store.state.gui.uiSettings.boolBigThumbnail
}
set boolBigThumbnail(newVal) {
this.$store.dispatch('gui/saveSetting', {name: 'dashboard.boolBigThumbnail', value: newVal })
this.$store.dispatch('gui/saveSetting', {name: 'uiSettings.boolBigThumbnail', value: newVal })
}
get boolWebcamInNavigation() {
return this.$store.state.gui.webcamSettings.boolNavi ?? false
return this.$store.state.gui.uiSettings.boolWebcamNavi ?? false
}
set boolWebcamInNavigation(newVal) {
this.$store.dispatch('gui/saveSetting', { name: 'webcamSettings.boolNavi', value: newVal })
this.$store.dispatch('gui/saveSetting', { name: 'uiSettings.boolWebcamNavi', value: newVal })
}
get displayCancelPrint() {
return this.$store.state.gui.general.displayCancelPrint
return this.$store.state.gui.uiSettings.displayCancelPrint
}
set displayCancelPrint(newVal) {
this.$store.dispatch('gui/saveSetting', {name: 'general.displayCancelPrint', value: newVal })
this.$store.dispatch('gui/saveSetting', {name: 'uiSettings.displayCancelPrint', value: newVal })
}
get displayZOffsetStandby() {
return this.$store.state.gui.general.displayZOffsetStandby
return this.$store.state.gui.uiSettings.displayZOffsetStandby
}
set displayZOffsetStandby(newVal) {
this.$store.dispatch('gui/saveSetting', {name: 'general.displayZOffsetStandby', value: newVal })
this.$store.dispatch('gui/saveSetting', {name: 'uiSettings.displayZOffsetStandby', value: newVal })
}
get confirmOnEmergencyStop() {
return this.$store.state.gui.general.confirmOnEmergencyStop
return this.$store.state.gui.uiSettings.confirmOnEmergencyStop
}
set confirmOnEmergencyStop(newVal) {
this.$store.dispatch('gui/saveSetting', {name: 'general.confirmOnEmergencyStop', value: newVal })
this.$store.dispatch('gui/saveSetting', {name: 'uiSettings.confirmOnEmergencyStop', value: newVal })
}
get confirmOnPowerDeviceChange() {
return this.$store.state.gui.general.confirmOnPowerDeviceChange
return this.$store.state.gui.uiSettings.confirmOnPowerDeviceChange
}
set confirmOnPowerDeviceChange(newVal) {
this.$store.dispatch('gui/saveSetting', {name: 'general.confirmOnPowerDeviceChange', value: newVal })
this.$store.dispatch('gui/saveSetting', {name: 'uiSettings.confirmOnPowerDeviceChange', value: newVal })
}
get lockSliders() {
return this.$store.state.gui.general.lockSlidersOnTouchDevices
return this.$store.state.gui.uiSettings.lockSlidersOnTouchDevices
}
set lockSliders(newVal) {
this.$store.dispatch('gui/saveSetting', {name: 'general.lockSlidersOnTouchDevices', value: newVal})
this.$store.dispatch('gui/saveSetting', {name: 'uiSettings.lockSlidersOnTouchDevices', value: newVal})
}
get lockSlidersDelay() {
return this.$store.state.gui.general.lockSlidersDelay
return this.$store.state.gui.uiSettings.lockSlidersDelay
}
set lockSlidersDelay(newVal) {
(newVal >= 0) ? this.$store.dispatch('gui/saveSetting', {name: 'general.lockSlidersDelay', value: newVal}) : {}
(newVal >= 0) ? this.$store.dispatch('gui/saveSetting', {name: 'uiSettings.lockSlidersDelay', value: newVal}) : {}
}
get boolWideNavDrawer() {
return this.$store.state.gui.dashboard.boolWideNavDrawer ?? false
return this.$store.state.gui.uiSettings.boolWideNavDrawer ?? false
}
get navigationStyleSetting() {
return this.$store.state.gui.dashboard.navigationStyle
return this.$store.state.gui.uiSettings.navigationStyle
}
set navigationStyleSetting(newVal) {
this.$store.dispatch('gui/saveSetting', {name: 'dashboard.navigationStyle', value: newVal })
this.$store.dispatch('gui/saveSetting', {name: 'uiSettings.navigationStyle', value: newVal })
}
get navigationStyles() {
@@ -220,11 +220,11 @@ export default class SettingsUiSettingsTab extends Mixins(BaseMixin) {
}
get boolHideUploadAndPrintButton() {
return this.$store.state.gui.dashboard.boolHideUploadAndPrintButton ?? false
return this.$store.state.gui.uiSettings.boolHideUploadAndPrintButton ?? false
}
set boolHideUploadAndPrintButton(newVal) {
this.$store.dispatch('gui/toggleHideUploadAndPrintBtn', newVal)
this.$store.dispatch('gui/saveSetting', {name: 'uiSettings.boolHideUploadAndPrintButton', value: newVal })
}
clearColorObject(color: any): string {
+883
View File
@@ -0,0 +1,883 @@
{
"title": "Dansk",
"App": {
"Printers": "Printere",
"TopBar": {
"SAVE_CONFIG": "GEM KONFIGURATION",
"UploadPrint": "Upload & Print",
"EmergencyStop": "Nødstop",
"Uploading": "Uploader",
"UploadOfFileSuccessful": "Upload af {file} udført",
"CannotUploadTheFile": "Kan ikke uploade filen!"
},
"TopCornerMenu": {
"KlipperControl": "Klipper Control",
"KlipperRestart": "Genstart",
"KlipperFirmwareRestart": "Genstart alt",
"ServiceControl": "Service Control",
"PowerDevices": "Strøm enheder",
"HostControl": "Værtsstyring",
"Reboot": "Genstart",
"Shutdown": "Luk ned"
},
"UpdateDialog": {
"Updating": "Updaterer {software}...",
"UpdatingDone": "Updatering af {software} udført!",
"Recovering": "Gendanner {software}...",
"RecoveringDone": "Gendannelse af {software} udført!",
"Empty": "Tøm",
"Close": "Luk"
},
"ThrottledStates": {
"HeadlineCurrentFlags": "Lige nu varsel",
"HeadlinePreviouslyFlags": "Tidligere varsel",
"TitleUnderVoltageDetected": "Lav spænding opdaget",
"TitleFrequencyCapped": "Maks. frekvens formindsket",
"TitleCurrentlyThrottled": "Begrænset i øjeblikket",
"TitleTemperatureLimitActive": "Temperaturgrænse nået",
"TitlePreviouslyUnderVolted": "Lav spænding opdaget tidligere",
"TitlePreviouslyFrequencyCapped": "Maks. frekvens formindsket tidligere",
"TitlePreviouslyThrottled": "Tidligere begrænset",
"TitlePreviouslyTemperatureLimited": "Temperaturgrænse nået tidligere",
"DescriptionUnderVoltageDetected": "rPI strømforsyning i øjeblikket under 4,65V",
"DescriptionFrequencyCapped": "rPi ARM maks. frekvens er i øjeblikket begrænset til 1.2 GHz.",
"DescriptionCurrentlyThrottled": "rPi ARM kerne(r) er i øjeblikket begrænset .",
"DescriptionTemperatureLimitActive": "rPi uC (3A+/3B+ only) temperatur er i øjeblikket over advarselsgrænsen (standard 60°C).",
"DescriptionPreviouslyUnderVolted": "rPI strømforsyning faldt til under 4,65V mindst en gang siden sidste opstart.",
"DescriptionPreviouslyFrequencyCapped": "rPi ARM maks. frekvens var mindst en gang begrænset til 1.2 GHz siden sidste opstart.",
"DescriptionPreviouslyThrottled": "rPI ARM kerne(r) var begrænset mindst en gang siden sidste opstart.",
"DescriptionPreviouslyTemperatureLimited": "rPi uC (3A+/3B+ only) temperatur var mindst en gang over advarselsgrænsen siden sidste opstart."
}
},
"EmergencyStopDialog": {
"EmergencyStop": "Nødstop",
"AreYouSure": "Er du sikker?",
"No": "Nej",
"Yes": "Ja"
},
"PowerDeviceChangeDialog": {
"TurnDeviceOn": "Tænd {device}",
"TurnDeviceOff": "Sluk {device}",
"AreYouSure": "Er du sikker?",
"No": "Nej",
"Yes": "Ja"
},
"ConnectionDialog": {
"Connecting": "Forbinder med {host}",
"Failed": "Forbindelse fejlede",
"CannotConnectTo": "Kan ikke forbinde med Moonraker ({host}).",
"TryAgain": "Prøv igen",
"CheckMoonrakerLog": "Hvis denne besked vises flere gange, kig da i logfilen her:"
},
"SelectPrinterDialog": {
"Connecting": "Forbinder med {host}",
"ConnectionFailed": "Forbindelse fejlede",
"CannotConnectTo": "Kan ikke forbinde med {host}.",
"TryAgain": "Prøv igen",
"SelectPrinter": "Vælg printer",
"AddPrinter": "Tilføj Printer",
"EditPrinter": "Rediger Printer",
"UpdatePrinter": "Updater Printer",
"ChangePrinter": "Skift Printer",
"HostnameRequired": "Værtsnavn er påkrævet",
"HostnameInvalid": "Ugyldigt værtsnavn/IP",
"PortRequired": "Port er påkrævet",
"Hello": "Hej og velkommen til fjernbetjeningsversionen af Mainsail!",
"RememberToAdd": "Husk at tilføje {cors} i moonraker.conf under \"cors_domains\".",
"YouCanFindMore": "Du kan finde flere detaljer her"
},
"Router": {
"Dashboard": "Kontrolpanel",
"Printers": "Printere",
"Webcam": "Webcam",
"Console": "Terminal",
"Heightmap": "Højdekort",
"G-Code Files": "G-Code Filer",
"History": "Historik",
"Timelapse": "Timelapse",
"Machine": "Printer",
"G-Code Viewer": "G-Code Viser"
},
"Editor": {
"Minimap": "Vis minikort",
"Downloading": "Downloader",
"Uploading": "Uploader",
"ConfigReference": "Konfigurationsreference",
"SaveRestart": "Gem & genstart",
"SaveClose": "Gem & luk",
"SuccessfullySaved": "{filename} blev gemt.",
"FailedSave": "{filename} blev IKKE gemt!",
"UnsavedChanges": "Ugemte ændringer",
"UnsavedChangesMessage": "Ønsker du at gemme ændringerne i filen {filename}?",
"UnsavedChangesSubMessage": "Dine ændringer går tabt hvis du ikke gemmer. Du kan deaktivere denne besked i \"editor-settings\".",
"DontSave": "Gem ikke",
"Cancel": "Annuller",
"FileReadOnly": "Skrivebeskyttet"
},
"Files": {
"GCodeFiles": "G-Code Filer",
"UploadNewGcode": "Upload ny G-Code",
"CreateNewDirectory": "Ny mappe",
"RefreshCurrentDirectory": "Opdater mappe",
"SetupCurrentList": "Rediger visning",
"HiddenFiles": "Skjulte filer",
"PrintedFiles": "Printede filer",
"FreeDisk": "Ledig plads",
"Used": "Brugt",
"Free": "Ledig",
"Total": "Total",
"Files": "Filer",
"AllFiles": "Alle",
"Search": "Søg",
"Empty": "Tom",
"DropFilesToAddGcode": "Træk G-Code-filer her for at uploade.",
"PrintStart": "Start print",
"AddToQueue": "Tilføj til kø",
"Preheat": "Forvarm",
"Download": "Download",
"Rename": "Omdøb",
"Delete": "Slet",
"StartJob": "Start print",
"DoYouWantToStartFilename": "Vil du printe {filename}?",
"StartPrint": "Start print",
"NewDirectory": "Ny mappe",
"RenameFile": "Omdøb Fil",
"EditFile": "Rediger Fil",
"Name": "Navn",
"Cancel": "Annuller",
"Create": "Opret",
"RenameDirectory": "Omdøb mappe",
"DeleteDirectory": "Slet mappe",
"DeleteDirectoryQuestion": "Vil du slette mappen \"{name}\" og alt dens indhold?",
"Uploading": "Uploader",
"CurrentPath": "Du er her:",
"Filesize": "Filstørrelse",
"LastModified": "Sidst ændret",
"ObjectHeight": "Total højde",
"LayerHeight": "Laghøjde",
"FilamentUsage": "Filament forbrug (m)",
"FilamentWeight": "Filament vægt (g)",
"PrintTime": "Printtid",
"Slicer": "Slicer",
"Downloading": "Downloader",
"WrongFileUploaded": "Upload blev afvist for {filename}. Forkert filformat!",
"SuccessfullyUploaded": "Upload af {filename} udført!",
"SuccessfullyRenamed": "{filename} omdøbt.",
"SuccessfullyMoved": "{filename} flyttet.",
"SuccessfullyCreated": "{filename} oprettet.",
"SuccessfullyDeleted": "{filename} slettet.",
"View3D": "Vis i 3D"
},
"JobQueue": {
"JobQueue": "Jobkø",
"Jobs": "Jobs",
"AllJobs": "Alle Jobs",
"Empty": "Tom",
"Delete": "Slet",
"Start": "Start",
"Pause": "Pause"
},
"Console": {
"SetupConsole": "Terminalindstillinger",
"SendCode": "Send kode...",
"Empty": "Tom",
"HideTemperatures": "Skjul temperaturer",
"HideTimelapse": "Skjul Timelapse",
"CommandList": "Liste over kommandoer"
},
"Heightmap": {
"Heightmap": "Højdekort",
"ErrorKlipperNotReady": "Klipper er ikke klar. Kan ikke vise højdekort.",
"NoProfile": "Ingen profil tilgængelig",
"TitleHomeAll": "Home alle",
"Clear": "Slet",
"TitleClear": "Slet bed mesh",
"Calibrate": "Kalibrer",
"TitleCalibrate": "Kalibrer nyt Bed Mesh",
"NoBedMeshHasBeenLoadedYet": "Intet Bed Mesh indlæst.",
"Probed": "Reel",
"Mesh": "Mesh",
"Flat": "Fladt",
"Wireframe": "Wireframe",
"Scale": "Skalér",
"Profiles": "Profiler",
"Deleted": "Slettet",
"RenameBedMeshProfile": "Omdøb Bed Mesh profil",
"Name": "Navn",
"Abort": "Afbryd",
"Rename": "Omdøb",
"BedMeshRemove": "Slet Bed Mesh",
"BedMeshCalibrate": "Kalibrer Bed Mesh",
"DoYouReallyWantToCalibrate": "Vil du starte kalibrering?",
"DeleteBedMeshProfile": "Slet Bed Mesh profil",
"DoYouReallyWantToDelete": "Vil du slette \"{name}\"?",
"Remove": "Fjern",
"CurrentMesh": {
"Headline": "Nuværende Bed Mesh",
"Name": "Navn",
"Size": "Størrelse",
"Min": "Min",
"Max": "Maks",
"Variance": "Variation"
}
},
"History": {
"Statistics": "Statistik",
"TotalPrinttime": "Total printtid",
"LongestPrinttime": "Længste print",
"AvgPrinttime": "Gns. printtid",
"TotalFilamentUsed": "Filament brugt ialt",
"TotalJobs": "Totale antal print",
"FilamentUsage": "Filament brugt",
"PrinttimeAvg": "Printtid gns.",
"PrintHistory": "Print historik",
"TitleRefreshHistory": "Opdater historik",
"TitleSettings": "Indstillinger",
"Search": "Søg",
"Jobs": "Job",
"AllJobs": "Alle job",
"Empty": "Tom",
"Details": "Detaljer",
"Reprint": "Print igen",
"Delete": "Slet",
"JobDetails": "Jobdetaljer",
"Filename": "Filnavn",
"Filesize": "Filstørrelse",
"LastModified": "Sidst ændret",
"Status": "Status",
"StartTime": "Starttid",
"EndTime": "Sluttid",
"EstimatedTime": "Estimeret tid",
"PrintDuration": "Print varighed",
"PrintTime": "Print Tid",
"TotalDuration": "Total varighed",
"TotalTime": "Total Tid",
"EstimatedFilamentWeight": "Estimeret filament vægt",
"EstimatedFilament": "Estimeret filament",
"FilamentCalc": "Filament beregnet",
"FilamentUsed": "Filament brugt",
"FirstLayerExtTemp": "Første lag Nozzle Temp.",
"FirstLayerBedTemp": "Første lag Bed Temp.",
"FirstLayerHeight": "Første lag højde",
"LayerHeight": "Laghøjde",
"ObjectHeight": "Objekt Højde",
"Slicer": "Slicer",
"SlicerVersion": "Slicer Version",
"HistoryFilamentUsage": "Filament",
"HistoryPrinttimeAVG": "Print",
"ShowStatusName": "Vis \"{name}\" ({count})"
},
"Timelapse": {
"TimelapseFiles": "Timelapse Filer",
"Search": "Søg",
"CreateNewDirectory": "Ny mappe",
"RefreshCurrentDirectory": "Opdater mappe",
"Empty": "Ingen færdige Timelapse filer fundet.",
"CurrentPath": "Du er her:",
"FreeDisk": "Ledig plads",
"Used": "Brugt",
"Free": "Ledig",
"Total": "Total",
"Files": "Filer",
"AllFiles": "Alle",
"Rename": "Omdøb",
"Download": "Download",
"Delete": "Slet",
"RenameFile": "Omdøb fil",
"Name": "Navn",
"Cancel": "Annuller",
"Create": "Opret",
"NewDirectory": "Ny mappe",
"RenameDirectory": "Omdøb mappe",
"DeleteDirectory": "Slet mappe",
"DeleteDirectoryQuestion": "Vil du slette mappen \"{name}\" og alt dens indhold?",
"Filesize": "Filstørrelse",
"LastModified": "Sidst ændret",
"Status": "Status",
"Preview": "Forhåndsvisning",
"Enabled": "Aktiv",
"Autorender": "Autorendering",
"Frames": "Frames",
"EstimatedLength": "Estimeret længde",
"Render": "Rendering",
"RenderSettings": "Indstillinger for rendering",
"Type": "Type",
"Fixed": "Fast",
"Variable": "Variabel",
"Framerate": "Framerate",
"MinFramerate": "Min. framerate",
"MaxFramerate": "Maks. framerate",
"DuplicateLastframe": "Dupliker sidste frame",
"Targetlength": "Ønsket længde",
"TargetFps": "Ønsket FPS",
"StartRender": "Start rendering",
"TimelapseRendering": "Timelapse rendering",
"TimelapseRenderingSuccessful": "Timelapse rendering succesfuld",
"Video": "Video",
"NoActiveTimelapse": "Ingen aktive Timelapse",
"SaveFrames": "Gem frames"
},
"Panels": {
"ControlPanel": {
"Headline": "Kontrolpanel",
"SetupControls": "Kontrolindstillinger",
"AlternateControls": "Alternative kontroller",
"InvertX": "Invertér X",
"InvertY": "Invertér Y",
"InvertZ": "Invertér Z",
"ALL": "Alle",
"QGL": "QGL",
"ZTilt": "Z Tilt",
"X": "X",
"Y": "Y",
"Z": "Z",
"PleaseConfigureSteps": "Konfigurer steps",
"SettingsInterfaceControl": "Indstillinger > Interface > Control",
"FeedAmountIn": "Længde",
"FeedrateIn": "Hastighed",
"Retract": "Retract",
"Extrude": "Extrude",
"HotendTooCold": "Hotend temp. under"
},
"MacrosPanel": {
"Headline": "Makroer",
"Send": "Send"
},
"DependenciesPanel": {
"Dependency": "Afhængighed | Afhængigheder",
"DependencyDescription": "Din nuværende version af {name} understøtter ikke alle funktioner i Mainsail. Opdater {name} til mindst version {neededVersion}."
},
"FarmPrinterPanel": {
"WebcamOff": "Sluk",
"SwitchToPrinter": "Skift til printer",
"ReconnectToPrinter": "Genopret forbindelse"
},
"KlippyStatePanel": {
"KlippyState": "Klippy-Status",
"MoonrakerCannotConnect": "Moonraker kan ikke forbinde til Klipper!",
"KlipperCheck": "Check at Klipper service kører og at en UDS (Unix Domain Socket) er konfigureret.",
"Restart": "Genstart",
"FirmwareRestart": "Genstart alt"
},
"KlipperWarningsPanel": {
"KlipperWarnings": "Klipper advarsler",
"DownloadLog": "Download log",
"DeprecatedOption": "Funktionen \"{option}\" i sehtion \"{section}\" er forældet.",
"DeprecatedValue": "Værdien \"{value}\" i muligheden \"{option}\" i sektion \"{section}\" er forældet."
},
"MachineSettingsPanel": {
"Headline": "Printer indstillinger",
"MotionSettings": {
"Motion": "Bevægelse",
"Velocity": "Hastighed (Feedrate)",
"Acceleration": "Acceleration",
"Deceleration": "Deceleration",
"SquareCornerVelocity": "Hastighed for 90° hjørne"
},
"PressureAdvanceSettings": {
"PressureAdvance": "Pressure Advance",
"Extruder": "Extruder",
"Advance": "Advance",
"SmoothTime": "Smooth Time"
},
"FirmwareRetractionSettings": {
"FirmwareRetraction": "Firmware Retraction",
"RetractLength": "Retract længde",
"RetractSpeed": "Retract hastighed",
"UnretractExtraLength": "Unretract ekstra længde",
"UnretractSpeed": "Unretract hastighed"
}
},
"MiniconsolePanel": {
"Headline": "Terminal",
"SetupConsole": "Terminalindstillinger",
"HideTemperatures": "Skjul temperaturer",
"HideTimelapse": "Skjul Timelapse",
"SendCode": "Send kode..."
},
"MinSettingsPanel": {
"MissingConfiguration": "Konfiguration mangler",
"IsNotDefinedInConfig": "er ikke defineret i CONFIG.",
"IncludeMainsailCfg": "Husk at inkludere mainsail.cfg i din CONFIG fil.",
"MoreInformation": "Mere information"
},
"PrintsettingsPanel": {
"Headline": "Print indstillinger",
"SpeedFactor": "Hastigheds faktor",
"ExtrusionFactor": "Ekstrusions factor"
},
"MiscellaneousPanel": {
"Headline": "Diverse",
"RunoutSensor": {
"Disabled": "Deaktiveret",
"Detected": "Fundet",
"Empty": "Tom"
}
},
"MoonrakerStatePanel": {
"MoonrakerWarnings": "Moonraker advarsler",
"MoonrakerErrorInfo": "En fejl blev fundet under indlæsning af moonraker komponenter. Tjek logfilen og ret fejlen.",
"FollowingPluginHasAnError": "Følgende plugin har en fejl:",
"DownloadLog": "Download log"
},
"PowerControlPanel": {
"PowerControl": "Strømstyring",
"Error": "Fejl",
"On": "Tænd",
"Off": "Sluk"
},
"StatusPanel": {
"Headline": "Status",
"Position": "Position",
"Absolute": "Absolut",
"Relative": "Relativ",
"X": "X",
"Y": "Y",
"Z": "Z",
"PausePrint": "Pause print",
"ResumePrint": "Genoptag print",
"CancelPrint": "Afbryd print",
"ClearPrintStats": "Slet printstatistik",
"ReprintJob": "Print job igen",
"Requested": "Anmodet",
"Speed": "Hastighed",
"Flow": "Flow",
"Max": "maks",
"Filament": "Filament",
"Layer": "Lag",
"ObjectHeight": "Objekt Højde",
"Estimate": "Estimeret",
"File": "Fil",
"Print": "Reel printtid",
"Difference": "Opvarmning",
"Total": "Total",
"Slicer": "Slicer",
"ETA": "ETA",
"Unknown": "Ukendt",
"ExcludeObject": {
"ExcludeObject": "Ekskluder objekt",
"Excluded": "Ekskluderet",
"ExcludeObjectHeadline": "Ekskluder objekt",
"ExcludeObjectText": "Vil du ekskludere \"{name}\"?",
"Cancel": "Annuller"
}
},
"ToolsPanel": {
"Headline": "Temperaturer",
"Presets": "Forudindstillinger",
"Cooldown": "Nedkøling",
"SetupTemperatures": "Temperaturvisningsindstillinger",
"ShowChart": "Vis diagram",
"AutoscaleChart": "Autoskalér diagram",
"Name": "Navn",
"Color": "Farve",
"State": "Status",
"Current": "Nuværende",
"Target": "Indstillet",
"Min": "min",
"Max": "maks",
"Avg": "Gns",
"ShowNameInChart": "Vis {name} i diagram",
"ShowNameInList": "Vis {name} på liste",
"TemperaturesInChart": "Temperatur [°C]",
"Dataset": {
"Temperature": "Nuværende temperatur",
"Target": "Indstillet temperatur",
"Power": "PWM-power",
"Speed": "PWM-hastighed"
}
},
"WebcamPanel": {
"Headline": "Webcam",
"FPS": "FPS",
"All": "Alle",
"UnknownWebcamService": "Ukendt Webcam service",
"UrlNotAvailable": "URL ikke tilgængelig"
},
"ZoffsetPanel": {
"Headline": "Z-Offset",
"CurrentOffset": "Nuværende offset",
"Save": "Gem",
"ToEndstop": "Til Endstop",
"ToProbe": "Til Probe",
"SaveInfoHeadline": "Information",
"SaveInfoDescription": "Det nye z-offset er blevet beregnet og registreret. Klik på GEM KONFIGURATION for at gemme det nye z-offset i CONFIG og genstarte Klipper.",
"SaveInfoDescriptionPrint": "Det nye z-offset er blevet beregnet og registreret. Klik på GEM KONFIGURATION i topbaren efter endt print for at gemme det nye z-offset i CONFIG og genstarte Klipper.",
"SAVE_CONFIG": "GEM KONFIGURATION",
"Later": "Senere",
"Ok": "OK"
}
},
"Machine": {
"ConfigFilesPanel": {
"ConfigFiles": "Konfigurationsfiler",
"SetupCurrentList": "Indstil visning",
"HiddenFiles": "Skjulte filer",
"HideBackupFiles": "Skjul backupfiler",
"CurrentPath": "Du er her:",
"Files": "Filer",
"FreeDisk": "Ledig plads",
"Used": "Brugt",
"Free": "Ledig",
"Total": "Total",
"AllFiles": "Alle",
"Empty": "Tom",
"ShowFile": "Vis fil",
"EditFile": "Rediger fil",
"Download": "Download",
"Rename": "Omdøb",
"Delete": "Slet",
"RenameFile": "Omdøb fil",
"Name": "Navn",
"UploadFile": "Upload Fil",
"Cancel": "Annuller",
"Create": "Ny",
"CreateFile": "Ny Fil",
"RefreshDirectory": "Opdater mappe",
"CreateDirectory": "Ny mappe",
"RenameDirectory": "Omdøb mappe",
"DeleteDirectory": "Slet mappe",
"DeleteDirectoryQuestion": "Vil du slette mappen \"{name}\" og alt dens indhold?",
"Uploading": "Uploader",
"Filesize": "Filstørrelse",
"LastModified": "Sidst ændret"
},
"EndstopPanel": {
"Endstops": "Endstops",
"Endstop": "Endstop",
"TRIGGERED": "Aktiveret",
"open": "Åben",
"EndstopInfo": "Klik på \"Sync\"-knappen nederst til højre for at opdatere Endstop status."
},
"LogfilesPanel": {
"Logfiles": "Logfiles"
},
"UpdatePanel": {
"UpdateManager": "Updaterings Manager",
"CheckForUpdates": "Tjek for updateringer",
"System": "System",
"PackagesCanBeUpgraded": "Packages kan opgraderes",
"OSPackages": "OS-Packages",
"Commits": "Forpligtelse",
"UpToDate": "up-to-date",
"Detached": "Løsrevet",
"Update": "Opdater",
"Upgrade": "Opgrader",
"Dirty": "Uren-kode",
"Invalid": "Ugyldig",
"Unknown": "Ukendt",
"ERROR": "FEJL",
"CommitsOnDate": " Forpligtelse af {date}",
"CommittedHoursAgo": "Forpligtelse delt for {hours} timer siden",
"CommittedYesterday": "Forpligtelse delt igår",
"CommittedDaysAgo": "Forpligtelse delt for {days} dage siden",
"CommittedOnDate": "Forpligtelse delt d. {date}",
"UpdateAll": "Opdater alle komponenter",
"CommitsAvailabe": "Ingen commits tilgængelige | {count} commits tilgængelige | {count} commits tilgængelige"
},
"SystemPanel": {
"SystemLoad": "Systembelastning",
"Version": "Version",
"Os": "OS",
"Load": "Belastning",
"Awake": "Vågen/Aktiv",
"Frequency": "Frekvens",
"Memory": "Hukommelse",
"Constants": "Konstanter",
"LastStats": "Seneste data",
"HostDetails": "Værtsdetaljer"
}
},
"Settings": {
"InterfaceSettings": "Interfaceindstillinger",
"Close": "Luk",
"Cancel": "Annuller",
"Edit": "Rediger",
"GeneralTab": {
"General": "Generelt",
"PrinterName": "Printernavn",
"Language": "Sprog",
"CalcEstimateTime": "Beregn estimeret printtid",
"CalcEstimateTimeDescription": "Hvis flere er valgt vil et gennemsnit blive brugt",
"CalcEtaTime": "Beregn sluttidspunkt for print",
"CalcEtaTimeDescription": "Hvis flere er valgt vil et gennemsnit blive brugt",
"FactoryReset": "Komplet nulstilling",
"FactoryDialog": "Vælg venligst de sektioner du ønsker at nulstille:",
"Reset": "Nulstil",
"DbGeneral": "Generelt",
"DbPresets": "Forudinstillinger",
"DbGcodehistry": "G-Code Historik",
"DbMacrogroups": "Makrogrupper",
"DbRemoteprinters": "Fjernprintere",
"DbHistoryJobs": "Jobhistorik",
"DbHistoryTotals": "Totalhistorik",
"DbWebcams": "Webcams",
"DbTimelapseSettings": "Timelapse indstillinger"
},
"WebcamsTab": {
"Webcams": "Webcams",
"AddWebcam": "Tilføj webcam",
"CreateWebcam": "Nyt Webcam",
"EditWebcam": "Rediger Webcam",
"SaveWebcam": "Gem Webcam",
"UpdateWebcam": "Opdater Webcam",
"IconPrinter": "Printer",
"IconNozzle": "Nozzle",
"IconBed": "Bed",
"IconCam": "Cam",
"IconFilament": "Filament",
"IconDoor": "Door",
"IconMcu": "MCU",
"IconHot": "Hot",
"Mjpegstreamer": "MJPEG-Streamer",
"MjpegstreamerAdaptive": "Adaptiv MJPEG-Streamer (eksperimental)",
"Uv4lMjpeg": "UV4L-MJPEG",
"Ipstream": "IP Kamera",
"Required": "Krævet",
"NameAlreadyExists": "Navnet bruges allerede",
"Name": "Navn",
"UrlStream": "URL Stream",
"UrlSnapshot": "URL Snapshot",
"Service": "Service",
"TargetFPS": "Ønsket FPS",
"FlipHorizontally": "Vend webcam horisontalt",
"FlipVertically": "Vend webcam vertikalt"
},
"TimelapseTab": {
"Enabled": "Aktiveret",
"EnabledDescription": "Hvis inaktiv, bliver G-Code makroer ignoreret og AutoRendering bliver sprunget over.",
"Timelapse": "Timelapse",
"Mode": "Modus",
"ModeDescription": "Vælg mellem \"Layermacro\" og \"Hyperlapse\" (tidsbaseret) modus",
"Autorender": "Autorendering",
"AutorenderDescription": "Hvis aktiv, vil Timelapse video automatisk blive renderet efter afsluttet print.",
"SaveFrames": "Gem Frames",
"SaveFramesDescription": "Gem frames til zip-fil for ekstern rendering",
"StreamDelayCompensation": "Kompensering for \"Stream-Delay\" forsinkelse",
"StreamDelayCompensationDescription": "Kompenser \"frame capture\"",
"PreviewImage": "Forhåndsvisning af billede",
"PreviewImageDescription": "Gem en forhåndsvisning med samme navn som videoen",
"GcodeVerbose": "Beskrevet G-Code",
"GcodeVerboseDescription": "Hvis aktiv, vil G-Code skrive informationer i terminalen",
"Parkhead": "Parker Hotend",
"ParkheadDescription": "Hvis aktiv, vil hotend blive parkeret før der tages billeder.",
"Parkpos": "Parkeringsposition",
"ParkposDescription": "Vælg parkeringsposition",
"ParkTime": "Parkeringstid",
"ParkTimeDescription": "Tilføj yderligere tid til parkering for bedre præcision.",
"PosX": "Position X",
"PosXDescription": "Parkeringspostion X (absolut)",
"PosY": "Position Y",
"PosYDescription": "Parkeringspostion Y (absolut)",
"PosDZ": "Position Z",
"PosDZDescription": "Parkeringspostion Z (relativ)",
"TravelSpeed": "Travel-hastighed",
"TravelSpeedDescription": "Travel-hastighed til og fra parkeringsposition",
"RetractSpeed": "Retract hastighed",
"RetractSpeedDescription": "Hastighed der bruges til retractions.",
"RetractDistance": "Retract distance",
"RetractDistanceDescription": "Længden af retractions.",
"UnretractSpeed": "Unretract hastighed",
"UnretractSpeedDescription": "Hastigheden der bruges til unretracts.",
"UnretractDistance": "Unretract distance",
"UnretractDistanceDescription": "Længden af unretracts.",
"ConstantRateFactor": "Constant Rate Faktor",
"ConstantRateFactorDescription": "Konfigurerer Kvalitet / Filstørrelse af den renderede video. Kan justeres mellem 0–51, Hvor 0 er tabsfri, 23 er standard og 51 er værste kvalitet (mindste filstørrelse). En lavere værdi giver højere kvalitet, og et \"normalt\" område er 17-28. 17 eller 18 kan betragtes som visuelt tabsfrit.",
"OutputFramerate": "Output Framerate",
"OutputFramerateDescription": "Definerer framerate i videoen. Bemærk: Dette ignoreres hvis \"variable_fps\" er aktiveret",
"Pixelformat": "Pixelformat",
"PixelformatDescription": "Definerer pixelformatet i videoen",
"Extraoutputparams": "Ekstra output parametre",
"ExtraoutputparamsDescription": "Definerer ekstra output parametre til FFMPEG. Bemærk: Udfyldning af dette felt vil deaktivere rotationsindstillinger",
"VariableFps": "Variabel FPS",
"VariableFpsDescription": "Hvis aktiv, vil framrate blive beregnet ud fra ønsket længde.",
"Targetlength": "Ønsket længde",
"TargetlengthDescription": "Den ænskede længde på videoen når Variabel FPS er aktiveret",
"VariableFpsMin": "Variabel FPS min",
"VariableFpsMinDescription": "",
"VariableFpsMax": "Variabel FPS maks",
"VariableFpsMaxDescription": "",
"duplicatelastframe": "Kopier sidste frame",
"duplicatelastframeDescription": "Kopierer sidste frame i videoen",
"HyperlapseCycle": "Hyperlapse cyklus tid",
"HyperlapseCycleDescription": "Frames optages med det angivne tidsmellemrum (sek.)",
"General": "Generelt",
"RenderingOptions": "Renderingsindstillinger",
"TimeFormatCode": "Tidsformat kode",
"TimeFormatCodeDescription": "Angiver hvordan tid skal defineres i output filen",
"Camera": "Kamera",
"CameraDescription": "Vælg hvilket kamera der skal bruges"
},
"DashboardTab": {
"Dashboard": "Kontrolpanel",
"Mobile": "Mobil",
"Tablet": "Tablet",
"Desktop": "Desktop",
"Widescreen": "Widescreen",
"ResetLayout": "Nulstil layout"
},
"MacrosTab": {
"Macros": "Macroer",
"NOMacros": "Ingen macroer fundet...",
"General": "Generelt",
"Management": "Management",
"Simple": "Simpel",
"Expert": "Ekspert",
"NoGroups": "Ingen grupper fundet...",
"Macrogroups": "Grupper",
"EditGroup": "Edit Gruppe",
"CountMacros": "Ingen Macroer tilføjet | {count} Macro | {count} Macroer",
"Name": "Navn",
"Color": "Farve",
"CustomColor": "Brugerdefineret farve",
"Status": "Status",
"Primary": "Primær",
"Secondary": "Sekundær",
"Success": "Succes",
"Warning": "Advarsel",
"Error": "Fejl",
"Custom": "Brugerdefineret",
"AddGroup": "Tilføj gruppe",
"GroupMacros": "Gruppér macroer",
"AvailableMacros": "Tilgængelige macroer",
"Add": "Tilføj",
"NoMacrosInGroup": "Ingen makroer i denne gruppe.",
"NoAvailableMacros": "Ingen tilgængelige makroer.",
"UnknownGroup": "Ukendt gruppe",
"ChangeMacroColor": "Skift farve på knappen.",
"ShowInStateStandby": "Vis/skjul hvis printer er inaktiv.",
"ShowInStatePaused": "Vis/skjul hvis printer er på pause.",
"ShowInStatePrinting": "Vis/skjul hvis printer er aktiv.",
"DeleteMacroFromGroup": "Fjern makro fra gruppe.",
"DeletedMacro": "Makro fjernet"
},
"ControlTab": {
"Control": "Kontrol",
"Style": "Stil",
"Bars": "Barer",
"Circle": "Cirkel",
"Cross": "Kryds",
"SpeedXY": "Hastighed XY",
"SpeedZ": "Hastighed Z",
"MoveDistancesInMm": "Distance i mm",
"InvertXMovement": "Invertér X",
"InvertYMovement": "Invertér Y",
"InvertZMovement": "Invertér Z",
"MoveDistancesXYInMm": "Distance XY i mm",
"MoveDistancesZInMm": "Distance Z i mm",
"MoveDistancesEInMm": "Distance E i mm",
"SpeedEInMms": "Hastighed E i mm/s"
},
"ConsoleTab": {
"Console": "Terminal",
"Direction": "Retning",
"DirectionTable": "Sidste handling øvert",
"DirectionShell": "Sidste handling nederst",
"Height": "Højde",
"HideTemperatures": "Skjul temperaturer",
"HideTimelapse": "Skjul Timelapse",
"CreateHeadline": "Nyt filter",
"Name": "Navn",
"Regex": "Regex",
"StoreButton": "Gem filter",
"UpdateButton": "Opdater filter",
"EditHeadline": "Rediger filter",
"AddFilter": "Tilføj filter",
"EntryStyle": "Indtastnings-Design",
"EntryStyleDefault": "Standard",
"EntryStyleCompact": "Kompakt"
},
"PresetsTab": {
"PreheatPresets": "Forudindstillinger",
"Cooldown": "Nedkøling",
"AddPreset": "Tilføj forudindstilling",
"CreateHeadline": "Ny forudindstilling",
"EditHeadline": "Rediger forudindstilling",
"Name": "Navn",
"CustomGCode": "Brugerdefineret G-Code",
"PresetInfo": "Du skal indstille mindst én temperatur eller g-kode.",
"StoreButton": "Gem forudindstilling",
"UpdateButton": "Opdater forudindstilling",
"EditCooldown": "Rediger nedkøling",
"UpdateCooldown": "Opdater nedkøling"
},
"RemotePrintersTab": {
"RemotePrinters": "Printere",
"AddPrinter": "Tilføj printer",
"EditPrinter": "Rediger printer",
"UpdatePrinter": "Opdater printer",
"Hostname": "Værtsnavn",
"Port": "Port"
},
"UiSettingsTab": {
"UiSettings": "UI-indstillinger",
"Logo": "Logo",
"Primary": "Primær",
"GcodeThumbnails": "Gcode forhåndsvisninger",
"GcodeThumbnailsDescription": "Klik på knappen for mere information.",
"Guide": "Guide",
"ShowWebcamInNavigation": "Vis Webcam i navigation",
"BoolBigThumbnail": "Stor forhåndsvisning",
"BoolBigThumbnailDescription": "Vis et stort billede i statuspanelet under print.",
"NavigationStyle": "Navigationsstil",
"NavigationStyleDescription": "Skift navigationens udseende",
"NavigationStyleIconsOnly": "Kun ikoner",
"NavigationStyleIconsAndText": "Ikoner + Tekst",
"BoolHideUploadAndPrintButton": "Skjul \"Upload og Print\" knap",
"BoolHideUploadAndPrintButtonDescription": "Vis eller skjul \"Upload and Print\" knappen i top-baren.",
"DisplayCANCEL_PRINT": "Vis Afbryd print",
"DisplayCANCEL_PRINTDescription": "Viser Afbryd print knappen konstant - ingen tofaktor godkendelse nødvendig.",
"DisplayZOffset": "Vis Z-Offset-panel",
"DisplayZOffsetDescription": "Ellers vises panelet kun når et print er igang.",
"LockSliders": "Lås sliders på touch-enheder",
"LockSlidersDescription": "Sliders skal låses op på touchenheder før de kan ændres.",
"LockSlidersDelay": "Forsinkelse på låsning af sliders",
"LockSlidersDelayDescription": "Sliders vil låse efter det angivne tidsrum (sek). Hvis sat til 0 eller efterladt tomt, vil Sliders kun låse ved opdatering/genindlæsning af siden.",
"ConfirmOnEmergencyStop": "Kræv bekræftelse før Nødstop",
"ConfirmOnEmergencyStopDescription": "Viser en bekræftelses dialogboks ved tryk på Nødstop",
"ConfirmOnPowerDeviceChange": "Kræv bekræftelse ved ændringer på Enhedens strømtilstand",
"ConfirmOnPowerDeviceChangeDescription": "Vis bekræftelse ved ændringer på Enhedens strømtilstand"
},
"GCodeViewerTab": {
"GCodeViewer": "G-Code viser",
"ExtruderColor": "Extruder farve",
"BackgroundColor": "Baggrundsfarve",
"GridColor": "Grid farve",
"ShowAxes": "Vis akser",
"MinFeed": "Minimum hastighed",
"MaxFeed": "Maksimum hastighed"
},
"EditorTab": {
"Editor": "Editor",
"UseEscToClose": "Tryk ESC for at lukke Editor.",
"UseEscToCloseDescription": "Tillader at ESC lukker Editor",
"ConfirmUnsavedChanges": "Spørg om at gemme ændringer",
"ConfirmUnsavedChangesDescription": "Hvis aktiv beder Editor om bekræftelse på at gemme eller kassere. Ellers bliver ændringer automatisk kasseret."
}
},
"GCodeViewer": {
"Title": "G-Code Viser",
"LoadLocal": "Lokal Fil",
"ClearLoadedFile": "Fjern",
"RenderQuality": "Renderingskvalitet",
"Low": "Lav",
"Medium": "Medium",
"High": "Høj",
"Ultra": "Ultra",
"Max": "Maks",
"ShowToolhead": "Vis nozzle",
"ShowTravelMoves": "Vis Travel",
"ShowObjectSelection": "Vis Objekt valg",
"HDRendering": "HD Rendering (Runde Extrusions)",
"ForceLineRendering": "Gennemtving Linje Rendering",
"Transparency": "Transparens",
"VoxelMode": "Voxel Mode (ASMBL)",
"SpecularLighting": "Spejlende belysning",
"ReloadRequired": "Opdatering påkrævet",
"LoadCurrentFile": "Aktuel fil",
"Tracking": "Sporing",
"Rendering": "Rendering",
"Downloading": "Downloader",
"ColorMode": "Farvevisning"
}
}
+69 -19
View File
@@ -17,8 +17,33 @@
"ServiceControl": "Dienst-Steuerung",
"PowerDevices": "Stromversorgung",
"HostControl": "Host-Steuerung",
"Start": "Start",
"Stop": "Stop",
"Restart": "Neustart",
"Reboot": "Neustart",
"Shutdown": "Herunterfahren"
"Shutdown": "Herunterfahren",
"Cancel": "Abbrechen",
"ConfirmationDialog": {
"Title": {
"KlipperRestart": "Klipper Neustart",
"KlipperFirmwareRestart": "Klipper Firmware Neustart",
"ServiceStart": "Service Start",
"ServiceRestart": "Service Neustart",
"ServiceStop": "Service Stop",
"HostReboot": "Host Neustart",
"HostShutdown": "Host Herunterfahren"
},
"Description": {
"KlipperStop": "Wenn du Klipper jetzt stoppst, wird der momentane Druck fehlschlagen.",
"KlipperRestart": "Wenn du Klipper jetzt neustartest, wird der momentane Druck fehlschlagen.",
"KlipperFirmwareRestart": "Wenn du die Klipper Firmware jetzt neustartest, wird der momentane Druck fehlschlagen.",
"ServiceStart": "Wenn du diesen Service jetzt startest, riskierst du höchstwahrscheinlich einen Fehlschlag des momentanen Druckauftrags.",
"ServiceRestart": "Wenn du diesen Service jetzt neustartest, riskierst du höchstwahrscheinlich einen Fehlschlag des momentanen Druckauftrags.",
"ServiceStop": "Wenn du diesen Service jetzt stoppst, riskierst du höchstwahrscheinlich einen Fehlschlag des momentanen Druckauftrags.",
"HostReboot": "Wenn du den Host jetzt neustartest, wird der momentane Druck fehlschlagen.",
"HostShutdown": "Wenn du den Host jetzt herunterfährst, wird der momentane Druck fehlschlagen."
}
}
},
"UpdateDialog": {
"Updating": "Aktualisiere {software}...",
@@ -111,7 +136,8 @@
"UnsavedChangesMessage": "Möchtest du die Änderungen an {filename} speichern?",
"UnsavedChangesSubMessage": "Deine Änderungen werden verloren gehen wenn du sie nicht speicherst. Du kannst diese Meldung in den Editor-Einstellungen deaktivieren.",
"DontSave": "Nicht speichern",
"Cancel": "Abbrechen"
"Cancel": "Abbrechen",
"FileReadOnly": "schreibgeschützt"
},
"Files": {
"GCodeFiles": "G-Code Dateien",
@@ -160,6 +186,7 @@
"PrintTime": "Druckdauer",
"Slicer": "Slicer",
"Downloading": "Herunterladen",
"WrongFileUploaded": "Hochladen von {filename} verweigert. Falsches Dateiformat!",
"SuccessfullyUploaded": "Hochladen von {filename} erfolgreich!",
"SuccessfullyRenamed": "{filename} erfolgreich umbenannt.",
"SuccessfullyMoved": "{filename} erfolgreich verschoben.",
@@ -180,7 +207,8 @@
"SetupConsole": "Einstellungen",
"SendCode": "Code senden...",
"Empty": "Leer",
"HideTemperatures": "verstecke Temperaturen",
"HideTemperatures": "Temperaturen ausblenden",
"HideTimelapse": "Timelapse ausblenden",
"CommandList": "Kommandoliste"
},
"Heightmap": {
@@ -334,7 +362,8 @@
"FeedAmountIn": "Vorschub in",
"FeedrateIn": "Geschwindigkeit in",
"Retract": "Rückzug",
"Extrude": "Extrudieren"
"Extrude": "Extrudieren",
"HotendTooCold": "Hotend-Temp. niedriger als"
},
"MacrosPanel": {
"Headline": "Makros",
@@ -368,9 +397,15 @@
"Motion": "Bewegung",
"Velocity": "Geschwindigkeit",
"Acceleration": "Beschleunigung",
"Deceleration": "Verlangsamung",
"MaxAccelToDecel": "Max. Beschl. zu Verz.",
"SquareCornerVelocity": "Eck-Geschwindigkeit"
},
"PressureAdvanceSettings": {
"PressureAdvance": "Pressure Advance",
"Extruder": "Extruder",
"Advance": "Advance",
"SmoothTime": "Smooth Time"
},
"FirmwareRetractionSettings": {
"FirmwareRetraction": "Firmware Rückzug",
"RetractLength": "Rückzugslänge",
@@ -383,6 +418,7 @@
"Headline": "Konsole",
"SetupConsole": "Einstellungen",
"HideTemperatures": "Temperaturmeldungen ausblenden",
"HideTimelapse": "Timelapse ausblenden",
"SendCode": "Befehl senden..."
},
"MinSettingsPanel": {
@@ -503,7 +539,7 @@
"ConfigFiles": "Konfigurationsdateien",
"SetupCurrentList": "Einstellungen",
"HiddenFiles": "Versteckte Dateien",
"HideBackupFiles": "Verstecke Sicherungsdateien",
"HideBackupFiles": "Sicherungsdateien ausblenden",
"CurrentPath": "Aktueller Pfad",
"Files": "Dateien",
"FreeDisk": "Freier Speicherplatz",
@@ -562,7 +598,8 @@
"CommittedYesterday": "eingereicht gestern",
"CommittedDaysAgo": "eingereicht vor {days} Tagen",
"CommittedOnDate": "eingereicht am {date}",
"UpdateAll": "Alle Komponenten updaten"
"UpdateAll": "Alle Komponenten updaten",
"CommitsAvailabe": "keine Einreichung verfügbar | {count} Einreichung verfügbar | {count} Einreichungen verfügbar"
},
"SystemPanel": {
"SystemLoad": "Systemauslastung",
@@ -574,7 +611,8 @@
"Memory": "Mem",
"Constants": "Konstanten",
"LastStats": "Letzte Statistik",
"HostDetails": "Host-Details"
"HostDetails": "Host-Details",
"Distro": "Distribution"
}
},
"Settings": {
@@ -593,14 +631,18 @@
"FactoryReset": "Werkseinstellungen",
"FactoryDialog": "Bitte wähle alle Abschnitte die du zurücksetzen möchtest:",
"Reset": "zurücksetzen",
"DbGeneral": "Allgemein",
"DbPresets": "Presets",
"DbMacrogroups": "Macro-Gruppen",
"DbRemoteprinters": "Remote Drucker",
"DbConsoleHistory": "Verlauf der Konsole",
"DbView": "Ansichtseinstellungen",
"DbHistoryJobs": "Historie Druckvorgänge",
"DbHistoryTotals": "Historie Gesamtzähler",
"DbWebcams": "Webcams",
"DbTimelapseSettings": "Zeitraffer Einstellungen"
"DbTimelapseSettings": "Zeitraffer Einstellungen",
"MoonrakerDb": "Moonraker Datenbank",
"Backup": "Datensicherung",
"BackupDialog": "Bitte wähle alle Abschnitte aus, die du sichern möchtest:",
"Restore": "Wiederherstellung",
"CannotReadJson": "Sicherungsdatei kann nicht gelesen/analysiert werden.",
"RestoreDialog": "Bitte wähle alle Abschnitte aus, die du wiederherstellen möchtest:"
},
"WebcamsTab": {
"Webcams": "Webcams",
@@ -641,6 +683,8 @@
"AutorenderDescription": "Wenn diese Option aktiviert ist, wird das Zeitraffervideo am Ende des Druckvorgangs automatisch gerendert",
"SaveFrames": "Bilder speichern",
"SaveFramesDescription": "Speichern der Bilder in einer Zip-Datei für externes Rendern",
"StreamDelayCompensation": "Stream-Verzögerungs-Kompensation",
"StreamDelayCompensationDescription": "Verzögern der Bildaufnahme",
"PreviewImage": "Vorschaubild",
"PreviewImageDescription": "Speichert ein Vorschaubild mit demselben Namen wie das Video",
"GcodeVerbose": "Ausführliche G-Codes",
@@ -649,12 +693,16 @@
"ParkheadDescription": "Wenn diese Option aktiviert ist, wird der Druckkopf vor der Aufnahme eines Bildes geparkt.",
"Parkpos": "Park-Position",
"ParkposDescription": "Wähle Park-Position",
"ParkTime": "Park Dauer",
"ParkTimeDescription": "Verlängern der Park Dauer",
"PosX": "Position X",
"PosXDescription": "Park-Postion X (absolut)",
"PosY": "Position Y",
"PosYDescription": "Park-Postion Y (absolut)",
"PosDZ": "Position Z",
"PosDZDescription": "Park-Postion Z (relativ)",
"FwRetract": "Firmware Rückzug",
"FwRetractDescription": "Benutze Firmware Rückzug im Timelapse Makro",
"TravelSpeed": "Eilgang Geschwindigkeit",
"TravelSpeedDescription": "Eilgang Geschwindigkeit für die Fahrt zur Park-Position und Wiederaufnahme des Drucks",
"RetractSpeed": "Rückzuggeschwindigkeit",
@@ -707,6 +755,7 @@
"Management": "Verwaltung",
"Simple": "Einfach",
"Expert": "Experte",
"Group": "Gruppe",
"NoGroups": "Keine Gruppen gefunden...",
"Macrogroups": "Gruppen",
"EditGroup": "Gruppe bearbeiten",
@@ -729,9 +778,9 @@
"NoAvailableMacros": "Keine verfügbaren Makros.",
"UnknownGroup": "Unbekannte Gruppe",
"ChangeMacroColor": "Farbe der Schaltfläche ändern.",
"ShowInStateStandby": "Anzeigen/verstecken wenn der Drucker im Standby ist.",
"ShowInStatePaused": "Anzeigen/verstecken wenn der Drucker pausiert ist.",
"ShowInStatePrinting": "Anzeigen/verstecken wenn der Drucker am drucken ist.",
"ShowInStateStandby": "Anzeigen/ausblenden wenn der Drucker im Standby ist.",
"ShowInStatePaused": "Anzeigen/ausblenden wenn der Drucker pausiert ist.",
"ShowInStatePrinting": "Anzeigen/ausblenden wenn der Drucker am drucken ist.",
"DeleteMacroFromGroup": "Makro aus Gruppe entfernen.",
"DeletedMacro": "Makro gelöscht"
},
@@ -758,7 +807,8 @@
"DirectionTable": "Letzter Eintrag oben",
"DirectionShell": "Letzter Eintrag unten",
"Height": "Höhe",
"HideTemperatures": "Temperaturen verstecken",
"HideTemperatures": "Temperaturen ausblenden",
"HideTimelapse": "Timelapse ausblenden",
"CreateHeadline": "Filter erstellen",
"Name": "Name",
"Regex": "Regex",
@@ -806,8 +856,8 @@
"NavigationStyleDescription": "Erscheinungsbild der Navigation ändern",
"NavigationStyleIconsOnly": "Nur Icons",
"NavigationStyleIconsAndText": "Icons + Text",
"BoolHideUploadAndPrintButton": "Verstecke \"Hochladen & Drucken\" Button",
"BoolHideUploadAndPrintButtonDescription": "Verstecke oder zeige die \"Hochladen & Drucken\" Schaltfläche in der Kopfleiste.",
"BoolHideUploadAndPrintButton": "\"Hochladen & Drucken\" Schaltfläche ausblenden",
"BoolHideUploadAndPrintButtonDescription": "Blendet die \"Hochladen & Drucken\" Schaltfläche in der Kopfleiste ein oder aus.",
"DisplayCANCEL_PRINT": "Zeige CANCEL_PRINT an",
"DisplayCANCEL_PRINTDescription": "Zeigt die CANCEL_PRINT Schaltfläche dauerhaft an - keine weitere Bestätigung erforderlich.",
"DisplayZOffset": "Zeige Z-Offset-Panel an",
+49 -9
View File
@@ -17,8 +17,33 @@
"ServiceControl": "Service Control",
"PowerDevices": "Power Devices",
"HostControl": "Host Control",
"Start": "Start",
"Stop": "Stop",
"Restart": "Restart",
"Reboot": "Reboot",
"Shutdown": "Shutdown"
"Shutdown": "Shutdown",
"Cancel": "Cancel",
"ConfirmationDialog": {
"Title": {
"KlipperRestart": "Klipper restart",
"KlipperFirmwareRestart": "Klipper firmware restart",
"ServiceStart": "Service start",
"ServiceRestart": "Service restart",
"ServiceStop": "Service stop",
"HostReboot": "Host reboot",
"HostShutdown": "Host shutdown"
},
"Description": {
"KlipperStop": "If you stop Klipper now, the current print will fail.",
"KlipperRestart": "If you restart Klipper now, the current print will fail.",
"KlipperFirmwareRestart": "If you restart the Klipper firmware now, the current print will fail.",
"ServiceStart": "If you start this service now, you are very likely risking a failure of your ongoing print job.",
"ServiceRestart": "If you restart this service now, you are very likely risking a failure of your ongoing print job.",
"ServiceStop": "If you stop this service now, you are very likely risking a failure of your ongoing print job.",
"HostReboot": "If you reboot the host now, the current print will fail.",
"HostShutdown": "If you shutdown the host now, the current print will fail."
}
}
},
"UpdateDialog": {
"Updating": "Updating {software}...",
@@ -161,6 +186,7 @@
"PrintTime": "Print Time",
"Slicer": "Slicer",
"Downloading": "Downloading",
"WrongFileUploaded": "Upload was denied for {filename}. Wrong file format!",
"SuccessfullyUploaded": "Upload of {filename} successful!",
"SuccessfullyRenamed": "Successfully renamed {filename}.",
"SuccessfullyMoved": "Successfully moved {filename}.",
@@ -174,7 +200,7 @@
"AllJobs": "All Jobs",
"Empty": "Empty",
"Delete": "Delete",
"Resume": "Resume",
"Start": "Start",
"Pause": "Pause"
},
"Console": {
@@ -371,9 +397,15 @@
"Motion": "Motion",
"Velocity": "Velocity",
"Acceleration": "Acceleration",
"Deceleration": "Deceleration",
"MaxAccelToDecel": "Max Accel. to Decel.",
"SquareCornerVelocity": "Square Corner Velocity"
},
"PressureAdvanceSettings": {
"PressureAdvance": "Pressure Advance",
"Extruder": "Extruder",
"Advance": "Advance",
"SmoothTime": "Smooth Time"
},
"FirmwareRetractionSettings": {
"FirmwareRetraction": "Firmware Retraction",
"RetractLength": "Retract Length",
@@ -579,7 +611,8 @@
"Memory": "Mem",
"Constants": "Constants",
"LastStats": "Last stats",
"HostDetails": "Host details"
"HostDetails": "Host details",
"Distro": "Distro"
}
},
"Settings": {
@@ -598,14 +631,18 @@
"FactoryReset": "Factory reset",
"FactoryDialog": "Please select all the sections you want to reset:",
"Reset": "reset",
"DbGeneral": "General",
"DbPresets": "Presets",
"DbMacrogroups": "Macrogroups",
"DbRemoteprinters": "Remoteprinters",
"DbConsoleHistory": "Console History",
"DbView": "View Settings",
"DbHistoryJobs": "History Jobs",
"DbHistoryTotals": "History Totals",
"DbWebcams": "Webcams",
"DbTimelapseSettings": "Timelapse Settings"
"DbTimelapseSettings": "Timelapse Settings",
"MoonrakerDb": "Moonraker DB",
"Backup": "Backup",
"BackupDialog": "Please select all the sections you want to create a backup:",
"Restore": "Restore",
"CannotReadJson": "Cannot read/parse backup file.",
"RestoreDialog": "Please select all the sections you want to restore:"
},
"WebcamsTab": {
"Webcams": "Webcams",
@@ -664,6 +701,8 @@
"PosYDescription": "Park postion Y (absolute)",
"PosDZ": "Position Z",
"PosDZDescription": "Park postion Z (relative)",
"FwRetract": "FW Retract",
"FwRetractDescription": "Use firmware retraction in the timelapse macro",
"TravelSpeed": "Travel Speed",
"TravelSpeedDescription": "Travel speed while moving to the parking position and resuming",
"RetractSpeed": "Retract Speed",
@@ -716,6 +755,7 @@
"Management": "Management",
"Simple": "Simple",
"Expert": "Expert",
"Group": "Group",
"NoGroups": "No group found...",
"Macrogroups": "Groups",
"EditGroup": "Edit Group",
+11 -4
View File
@@ -158,7 +158,8 @@
"SendCode": "Enviar Codigo....",
"Empty": "Vacio",
"HideTemperatures": "Ocultar Temperaturas",
"CommandList": "Lista de comandos"
"CommandList": "Lista de comandos",
"HideTimelapse": "Ocultar timelapse"
},
"Heightmap": {
"Heightmap": "Mapa de altura",
@@ -283,7 +284,8 @@
"Headline": "Consola",
"SetupConsole": "Configurar Consola",
"HideTemperatures": "Ocultar temperaturas",
"SendCode": "Enviar codigo..."
"SendCode": "Enviar codigo...",
"HideTimelapse": "Ocultar timelapse"
},
"MinSettingsPanel": {
"MissingConfiguration": "Configuracion no entrada",
@@ -489,7 +491,8 @@
"CommittedHoursAgo": "Confirmado hace {hours} horas",
"CommittedOnDate": "Confirmado en {date}",
"CommittedYesterday": "Confirmado ayer",
"UpdateAll": "Actualizar todo"
"UpdateAll": "Actualizar todo",
"CommitsAvailabe": "Sin confrmaciones disponibles | {count} confimacion disponible | {count} confirmaciones disponibles"
},
"SystemPanel": {
"SystemLoad": "Carga del sistema",
@@ -698,7 +701,11 @@
"TargetlengthDescription": "Indica la duracion del video cuando FPS variable esta activado",
"GcodeVerbose": "Gcode Verbose",
"HyperlapseCycle": "Tiempo de ciclo Hyperlapse",
"HyperlapseCycleDescription": "Una foto es tomada cada X segundos"
"HyperlapseCycleDescription": "Una foto es tomada cada X segundos",
"RetractDistanceDescription": "El largo del filamento que el extrusor retrae",
"RetractSpeedDescription": "Velocidad con que el extrusor retrae el filamento",
"UnretractDistanceDescription": "El largo del filamenteto que el extrusor vuelve a extruir despues de la retraccion",
"UnretractSpeedDescription": "Velocidad con la que el extrusor vuelve a extruir despues de la retraccion"
},
"UiSettingsTab": {
"BoolBigThumbnail": "Miniatura grande",
+28 -10
View File
@@ -74,7 +74,8 @@
"DontSave": "Ne pas sauvegarder",
"UnsavedChanges": "Changements non sauvegardés",
"UnsavedChangesMessage": "Désirez-vous sauvegarder les changements dans {filename} ?",
"UnsavedChangesSubMessage": "Vos changements seront perdus si vous ne les sauvegardez pas. Vous pouvez desactiver ce message dans les réglages de l'éditeur."
"UnsavedChangesSubMessage": "Vos changements seront perdus si vous ne les sauvegardez pas. Vous pouvez desactiver ce message dans les réglages de l'éditeur.",
"FileReadOnly": "lecture seule"
},
"Files": {
"GCodeFiles": "Fichiers G-Code",
@@ -128,14 +129,16 @@
"View3D": "Vue 3D",
"StartPrint": "Imprimer",
"Filament": "Filament",
"AddToQueue": "Ajouter à la queue"
"AddToQueue": "Ajouter à la queue",
"WrongFileUploaded": "Téléchargem,ent refusé pour {filename}. Mauvais format de fichier !"
},
"Console": {
"SetupConsole": "Configuration console",
"SendCode": "Envoyer la commande",
"Empty": "vide",
"HideTemperatures": "Cacher les températures",
"CommandList": "Liste des commandes"
"CommandList": "Liste des commandes",
"HideTimelapse": "Cacher accéléré"
},
"Heightmap": {
"Heightmap": "Maillage de hauteur",
@@ -238,7 +241,8 @@
"FeedAmountIn": "Longueur à extraire",
"FeedrateIn": "Vitesse d'extrusion",
"Retract": "Rétractation",
"Extrude": "Extrusion"
"Extrude": "Extrusion",
"HotendTooCold": "Tête d'impression trop froide"
},
"MacrosPanel": {
"Headline": "Macros",
@@ -260,7 +264,8 @@
"Headline": "Console",
"SetupConsole": "Réglage Console",
"HideTemperatures": "Cacher températures",
"SendCode": "Envoyer la commande..."
"SendCode": "Envoyer la commande...",
"HideTimelapse": "Cacher accéléré"
},
"MinSettingsPanel": {
"MissingConfiguration": "Configuration absente",
@@ -399,6 +404,12 @@
"RetractSpeed": "Vitesse de rétractation",
"UnretractExtraLength": "Distance d'extrusion supplémentaire",
"UnretractSpeed": "Vitesse d'extrusion"
},
"PressureAdvanceSettings": {
"Advance": "avance",
"Extruder": "extrudeur",
"PressureAdvance": "pression en avance",
"SmoothTime": "Temps de lissage"
}
}
},
@@ -420,7 +431,8 @@
"UpdateButton": "Mettre à jour le filtre",
"EntryStyle": "Style de dialogue d'entrée",
"EntryStyleCompact": "compact",
"EntryStyleDefault": "defaut"
"EntryStyleDefault": "defaut",
"HideTimelapse": "Cacher accéléré"
},
"ControlTab": {
"Control": "Contrôle",
@@ -458,7 +470,8 @@
"DbWebcams": "Caméras",
"FactoryDialog": "Choisissez les sections à réinitialiser",
"Reset": "réinitalisation",
"DbTimelapseSettings": "Accéléré"
"DbTimelapseSettings": "Accéléré",
"DbGcodehistry": "Historique G-Code"
},
"InterfaceSettings": "Réglages interface",
"MacrosTab": {
@@ -660,7 +673,11 @@
"RetractSpeedDescription": "Vitesse de rétractation du filament avant parking.",
"RetractDistanceDescription": "Distance de rétractation du filament avant parking.",
"UnretractDistanceDescription": "Distance d'extrusion du filament après parking et avant reprise d'impression.",
"UnretractSpeedDescription": "Vitesse d'extrusion du filament après parking et avant reprise d'impression."
"UnretractSpeedDescription": "Vitesse d'extrusion du filament après parking et avant reprise d'impression.",
"ParkTime": "Temps de parking",
"ParkTimeDescription": "Ajoute un temps aditionnel en position de parking",
"StreamDelayCompensation": "Dlai de compensation du flux",
"StreamDelayCompensationDescription": "Délai avant capture d'une image du flux."
}
},
"ConnectionDialog": {
@@ -746,7 +763,8 @@
"CommittedHoursAgo": "Publié il y a {hours} heures",
"CommittedOnDate": "Publié le {date}",
"CommittedYesterday": "Publié hier",
"UpdateAll": "Mettre tout à jour"
"UpdateAll": "Mettre tout à jour",
"CommitsAvailabe": "pas de mise à jour disponible | {count} mise à jour disponible | {count} mises à jour disponibles"
}
},
"SelectPrinterDialog": {
@@ -861,6 +879,6 @@
"JobQueue": "Queue des travaux",
"Jobs": "Travaux",
"Pause": "Pause",
"Resume": "Reprise"
"Start": "Impression"
}
}
+857 -561
View File
File diff suppressed because it is too large. Load diff
+22 -9
View File
@@ -60,7 +60,8 @@
"Empty": "Vuoto",
"HideTemperatures": "Nascondi temperature",
"SendCode": "Invia codice...",
"SetupConsole": "Impostazione Console"
"SetupConsole": "Impostazione Console",
"HideTimelapse": "Nascondi Timelapse"
},
"Editor": {
"ConfigReference": "Configurazione di Riferimento",
@@ -75,7 +76,8 @@
"DontSave": "Non salvare",
"UnsavedChanges": "Modifiche non salvate",
"UnsavedChangesMessage": "Vuoi salvare le modifiche apportate a {filename}?",
"UnsavedChangesSubMessage": "Le tue modifiche andranno perse se non le salvi. Puoi disabilitare questo messaggio nelle impostazioni dell'editor."
"UnsavedChangesSubMessage": "Le tue modifiche andranno perse se non le salvi. Puoi disabilitare questo messaggio nelle impostazioni dell'editor.",
"FileReadOnly": "read-only"
},
"Files": {
"AllFiles": "Tutto",
@@ -289,7 +291,8 @@
"CommittedHoursAgo": "committed {hours} hours ago",
"CommittedOnDate": "committed on {date}",
"CommittedYesterday": "committed yesterday",
"UpdateAll": "Aggiorna tutti i componenti"
"UpdateAll": "Aggiorna tutti i componenti",
"CommitsAvailabe": "no commits available | {count} commit available | {count} commits available"
}
},
"Panels": {
@@ -311,7 +314,8 @@
"X": "X",
"Y": "Y",
"Z": "Z",
"ZTilt": "Inclinazione Z"
"ZTilt": "Inclinazione Z",
"HotendTooCold": "Temp. hotend più bassa di"
},
"FarmPrinterPanel": {
"SwitchToPrinter": "Passa alla Stampante",
@@ -339,7 +343,8 @@
"Headline": "Console",
"HideTemperatures": "Nascondi Temperature",
"SendCode": "Invia codice...",
"SetupConsole": "Impostazioni Console"
"SetupConsole": "Impostazioni Console",
"HideTimelapse": "Nascondi Timelapse"
},
"MiscellaneousPanel": {
"Headline": "Miscellanea",
@@ -524,7 +529,8 @@
"UpdateButton": "Aggiorna filtro",
"EntryStyle": "Entry-Design",
"EntryStyleCompact": "compatto",
"EntryStyleDefault": "default"
"EntryStyleDefault": "default",
"HideTimelapse": "Nascondi Timelapse"
},
"ControlTab": {
"Control": "Controllo",
@@ -656,8 +662,8 @@
"ConstantRateFactorDescription": "Questo configura la qualità vs grandezza del video. Il raggio della scala del CRF è 0-51, dove 0 è lossless, 23 è il default e 51 è la qualità peggiore possibile. Un valore più basso porta generalmente ad una qualità maggiore e un raggio consigliato è di 17-28. Considera 17 o 18 come visualmente lossless.",
"Enabled": "Abilitato",
"EnabledDescription": "Se disabilitato, le macro gcode sono ignorate e autorender è ignorato.",
"UnretractDistance": "Distanza Estrusione",
"UnretractSpeed": "Velocità Estrusione",
"UnretractDistance": "Distanza Ri-estrusione",
"UnretractSpeed": "Velocità Ri-estrusione",
"Extraoutputparams": "Parametrioutputextra",
"ExtraoutputparamsDescription": "Definisce output aggiuntivi a FFMPEG. Nota: Specificare qualsiasi cosa qui disabiliterà l'impostazione di rotazione",
"GcodeVerbose": "VerbosoGcode",
@@ -701,7 +707,14 @@
"VariableFpsMax": "FPS Variabili max",
"VariableFpsMin": "FPS Variabili min",
"duplicatelastframe": "duplicaultimoframe",
"duplicatelastframeDescription": "Duplica l'ultimo frame alla fine del video"
"duplicatelastframeDescription": "Duplica l'ultimo frame alla fine del video",
"RetractSpeedDescription": "Velocità alla quale l'estrusore retrae il filamento.",
"UnretractDistanceDescription": "La lunghezza di filamento che l'estrusore ri-estrude dopo una retrazione.",
"UnretractSpeedDescription": "Velocità alla quale l'estrusore ri-estrude dopo una retrazione.",
"ParkTime": "Tempo Parcheggio",
"ParkTimeDescription": "Aggiungi tempo extra durante il parcheggio.",
"StreamDelayCompensation": "Compensazione Ritardo Stream",
"StreamDelayCompensationDescription": "Ritarda cattura frame"
},
"UiSettingsTab": {
"BoolBigThumbnail": "Grande anteprima",
+369 -74
View File
@@ -36,8 +36,8 @@
"KlipperRestart": "Перезапустить",
"PowerDevices": "Силовые устройства",
"Reboot": "Перезагрузка",
"RestartServices": "Перезапуск служб",
"Shutdown": "Выключение"
"Shutdown": "Выключение",
"ServiceControl": "Контроль обслуживания"
},
"UpdateDialog": {
"Recovering": "Восстановление",
@@ -53,7 +53,8 @@
"HideTemperatures": "Скрытые температуры",
"SendCode": "Отправьте код...",
"SetupConsole": "Мебельная консоль",
"CommandList": "Список команд"
"CommandList": "Список команд",
"HideTimelapse": "Скрыть таймлапс"
},
"Editor": {
"Minimap": "Показать минимум",
@@ -63,7 +64,12 @@
"SaveClose": "Сохранить и закрыть",
"SaveRestart": "Сохранить и перезапустить",
"SuccessfullySaved": "{filename} успешно сохранено.",
"Uploading": "Загрузка"
"Uploading": "Загрузка",
"Cancel": "Отмена",
"DontSave": "Не сохранять",
"UnsavedChanges": "Несохраненные изменения",
"UnsavedChangesMessage": "Хотите ли вы сохранить изменения в {filename}?",
"UnsavedChangesSubMessage": "Ваши изменения будут потеряны, если вы их не сохраните. Вы можете отключить это сообщение в настройках редактора."
},
"Files": {
"AllFiles": "Все",
@@ -87,9 +93,7 @@
"LayerHeight": "Высота слоя",
"Name": "Имя",
"NewDirectory": "Новый каталог",
"No": "Нет",
"ObjectHeight": "Высота объекта",
"PleaseEnterANewDirectoryName": "Пожалуйста, введите новое имя каталога: ",
"Preheat": "Предварительный подогрев",
"PrintStart": "Печать",
"PrintTime": "Время печати",
@@ -106,7 +110,6 @@
"UploadNewGcode": "Загрузить новый Gcode",
"Uploading": "Загрузить",
"Used": "Использует: ",
"Yes": "Да",
"DeleteDirectory": "Удалить каталог",
"DeleteDirectoryQuestion": "Вы действительно хотите удалить каталог \"{name}\" со всем его содержимым?",
"DoYouWantToStartFilename": "Вы хотите начать {filename}?",
@@ -116,7 +119,11 @@
"SuccessfullyDeleted": "Успешно удалено {filename}.",
"SuccessfullyMoved": "Успешное перемещение {filename}.",
"SuccessfullyRenamed": "Успешное переименование {filename}.",
"SuccessfullyUploaded": "Загрузка {filename} успешна!"
"SuccessfullyUploaded": "Загрузка {filename} успешна!",
"AddToQueue": "Добавить в очередь заданий",
"Filament": "Филамент",
"StartPrint": "Druck starten",
"View3D": "3D просмотр"
},
"Heightmap": {
"Abort": "Отменить",
@@ -143,7 +150,16 @@
"ErrorKlipperNotReady": "Клиппер не готов. Карта высот отключена.",
"Flat": "Плоский",
"NoProfile": "Профиль отсутствует",
"Wireframe": "Каркас"
"Wireframe": "Каркас",
"BedMeshRemove": "Удалить сетку кровати",
"CurrentMesh": {
"Headline": "Текущая сетка",
"Max": "Макс",
"Min": "Мин",
"Name": "Имя",
"Size": "Размер",
"Variance": "Отклонение"
}
},
"History": {
"AllJobs": "весь",
@@ -217,7 +233,8 @@
},
"FarmPrinterPanel": {
"WebcamOff": "Офф",
"SwitchToPrinter": "Переключение на принтер"
"SwitchToPrinter": "Переключение на принтер",
"ReconnectToPrinter": "Подключите"
},
"KlippyStatePanel": {
"FirmwareRestart": "Перезапуск прошивки",
@@ -241,7 +258,8 @@
"Send": "Отправить",
"SendCode": "Отправьте код...",
"SetupConsole": "Настройка консоли ",
"Headline": "Консоль"
"Headline": "Консоль",
"HideTimelapse": "Скрыть таймлапс"
},
"MiscellaneousPanel": {
"ExtrusionFactor": "коэффициент экструзии",
@@ -276,7 +294,7 @@
"Estimate": "Оцените",
"Filament": "Филамент",
"File": "Файл",
"Flow": "Река",
"Flow": "Поток",
"Layer": "Слой",
"Max": "макс.",
"ObjectHeight": "Высота объекта",
@@ -294,7 +312,14 @@
"Y": "Y",
"Z": "Z",
"Headline": "Статус",
"Requested": "Запрошено"
"Requested": "Запрошено",
"ExcludeObject": {
"Cancel": "Отмена",
"ExcludeObject": "Исключить объект",
"ExcludeObjectHeadline": "Objekt ausschließen",
"ExcludeObjectText": "Вы действительно хотите исключить \"{name}\"?",
"Excluded": "исключено"
}
},
"ToolsPanel": {
"AutoscaleChart": "Автомасштабируемая диаграмма",
@@ -341,7 +366,8 @@
"ZBabyStepping": "Z Смещение"
},
"MacrosPanel": {
"Headline": "Макросы"
"Headline": "Макросы",
"Send": "отправить"
},
"MoonrakerStatePanel": {
"DownloadLog": "Скачать журнал",
@@ -366,6 +392,33 @@
"SaveInfoHeadline": "Информация",
"ToEndstop": "до конечной остановки",
"ToProbe": "к зонду"
},
"DependenciesPanel": {
"Dependency": "Зависимость | Зависимости",
"DependencyDescription": "Ваша текущая версия {name} не поддерживает все функции Mainsail. Обновите {name} по крайней мере до версии {neededVersion}."
},
"KlipperWarningsPanel": {
"DeprecatedOption": "Опция '{option}' в разделе '{section}' устарела и будет удалена в будущем выпуске.",
"DeprecatedValue": "Значение '{value}' в опции '{option}' в секции '{section}' устарело и будет удалено в будущем релизе.",
"DownloadLog": "Загрузить файл журнала",
"KlipperWarnings": "Предупреждения о клиперах"
},
"MachineSettingsPanel": {
"Headline": "Настройки машины",
"FirmwareRetractionSettings": {
"FirmwareRetraction": "Отступление от прошивки",
"RetractLength": "Длина втягивания",
"RetractSpeed": "Скорость втягивания",
"UnretractExtraLength": "Дополнительная длина удлинителя",
"UnretractSpeed": "Скорость выдвижения"
},
"MotionSettings": {
"Acceleration": "Ускорение",
"Deceleration": "Замедление",
"Motion": "Движение",
"SquareCornerVelocity": "Угловая скорость",
"Velocity": "Скорость"
}
}
},
"Router": {
@@ -376,7 +429,9 @@
"History": "Курс",
"Machine": "Машина",
"Printers": "Принтер",
"Webcam": "Веб-камера"
"Webcam": "Веб-камера",
"G-Code Viewer": "Программа просмотра G-кодов",
"Timelapse": "Time-lapse"
},
"Settings": {
"Cancel": "Отмена",
@@ -393,11 +448,13 @@
"Name": "Имя",
"Regex": "Regex",
"StoreButton": "Фильтр магазина",
"UpdateButton": "Обновление фильтра"
"UpdateButton": "Обновление фильтра",
"EntryStyleCompact": "компактный",
"EntryStyleDefault": "стандарт",
"EntryStyle": "Стиль записей"
},
"ControlTab": {
"Control": "Контроль",
"EnableCross": "Разрешить движение крестом",
"InvertXMovement": "Инвертировать движение X",
"InvertYMovement": "Инвертирование движения Y",
"InvertZMovement": "Инвертировать движение Z",
@@ -407,27 +464,69 @@
"MoveDistancesZInMm": "Расстояние перемещения Z в мм",
"SpeedEInMms": "Скорость E в мм/с",
"SpeedXY": "Скорость XY",
"SpeedZ": "Скорость Z"
"SpeedZ": "Скорость Z",
"Bars": "Бар",
"Circle": "Круг",
"Cross": "Крест",
"Style": "Стиль"
},
"Edit": "Редактировать",
"GeneralTab": {
"BoolBigThumbnail": "Большая миниатюра",
"BoolBigThumbnailDescription": "Отображение большого эскиза на панели состояния во время печати.",
"DisplayCANCEL_PRINT": "Отобразить CANCEL_PRINT",
"DisplayCANCEL_PRINTDescription": "Показывает кнопку CANCEL_PRINT постоянно - подтверждение второго слоя не требуется.",
"DisplayZOffset": "Показать панель со смещением по Z",
"DisplayZOffsetDescription": "В противном случае панель появится только после начала печати.",
"FactoryInfo": "Вы действительно хотите сбросить настройки грота на заводские?",
"FactoryReset": "Заводской сброс",
"General": "Общий",
"Language": "Язык",
"PrinterName": "Имя принтера",
"ResetMainsail": "сбросить грот"
"CalcEstimateTime": "Расчет расчетного времени",
"CalcEstimateTimeDescription": "В случае множественного выбора рассчитывается среднее значение",
"CalcEtaTime": "Расчет расчетного времени прибытия",
"CalcEtaTimeDescription": "В случае множественного выбора рассчитывается среднее значение",
"DbGeneral": "Общий",
"DbHistoryTotals": "Общий счетчик истории",
"DbMacrogroups": "Макрогруппы",
"DbPresets": "Предустановки",
"DbRemoteprinters": "Удаленный принтер",
"DbTimelapseSettings": "Настройки временного интервала",
"DbWebcams": "Веб-камеры",
"FactoryDialog": "Пожалуйста, выберите все разделы, которые вы хотите сбросить:",
"Reset": "сброс",
"DbHistoryJobs": "История печати"
},
"InterfaceSettings": "Настройки интерфейса",
"MacrosTab": {
"Macros": "Макросы",
"NOMacros": "Макросы не найдены..."
"NOMacros": "Макросы не найдены...",
"Add": "добавить",
"AddGroup": "Добавить группу",
"AvailableMacros": "Существующие макросы",
"ChangeMacroColor": "Измените цвет кнопки.",
"Color": "Цвет",
"CountMacros": "макросы не добавлены | {count} макрос | {count} макросы",
"Custom": "пользовательский",
"CustomColor": "Пользовательский цвет",
"DeleteMacroFromGroup": "Удалить макрос из группы.",
"DeletedMacro": "Макрос удален",
"EditGroup": "Редактирование группы",
"Error": "Ошибка",
"Expert": "Эксперт",
"General": "Общий",
"GroupMacros": "Групповые макросы",
"Macrogroups": "Группы",
"Management": "Администрация",
"Name": "Имя",
"NoAvailableMacros": "Нет доступных макросов.",
"NoGroups": "Группы не найдены...",
"NoMacrosInGroup": "В этой группе нет макросов.",
"Primary": "основной",
"Secondary": "вторичный",
"ShowInStatePaused": "Показать/скрыть, когда принтер приостановлен.",
"ShowInStatePrinting": "Показать/скрыть, когда принтер печатает.",
"ShowInStateStandby": "Показать/скрыть, когда принтер находится в режиме ожидания.",
"Simple": "Просто",
"Status": "Статус",
"Success": "Успех",
"UnknownGroup": "Неизвестная группа",
"Warning": "Предупреждение",
"Group": "Группировка макросов"
},
"PresetsTab": {
"AddPreset": "добавление предустановки",
@@ -451,41 +550,6 @@
"RemotePrinters": "Удаленные принтеры",
"UpdatePrinter": "Обновление принтера"
},
"ThemeTab": {
"Logo": "Логотип",
"Primary": "Основной",
"Theme": "Тема"
},
"WebcamTab": {
"AddWebcam": "добавить веб-камеру",
"CreateWebcam": "Создать веб-камеру",
"EditWebcam": "Редактирование веб-камерыa",
"FlipHorizontally": "Переверните веб-камеру горизонтально",
"FlipVertically": "Переверните веб-камеру вертикально",
"IconBed": "Кровать",
"IconCam": "Кэм",
"IconDoor": "Дверь",
"IconFilament": "Филамент",
"IconHot": "Горячий",
"IconMcu": "MCU",
"IconNozzle": "Форсунка",
"IconPrinter": "Принтер",
"Ipstream": "IP-камера",
"Mjpegstreamer": "MJPEG-стример",
"MjpegstreamerAdaptive": "Адаптивный MJPEG-стример (экспериментальный)",
"Name": "Имя",
"NameAlreadyExists": "Имя уже существует",
"Required": "требуется",
"SaveWebcam": "Сохранить веб-камеру",
"Service": "Сервис",
"ShowInNavigation": "Показать в навигации",
"TargetFPS": "Целевой FPS",
"UpdateWebcam": "Обновление веб-камеры",
"UrlNotAvailable": "URL недоступен",
"Uv4lMjpeg": "UV4L-MJPEG",
"WebcamURL": "URL веб-камеры",
"Webcams": "Веб-камеры"
},
"DashboardTab": {
"Dashboard": "Приборная панель",
"Desktop": "Рабочий стол",
@@ -493,6 +557,142 @@
"ResetLayout": "Сброс макета",
"Tablet": "Планшет",
"Widescreen": "Широкоэкранный"
},
"Close": "Закрыть",
"EditorTab": {
"ConfirmUnsavedChanges": "Предложение сохранить или отменить несохраненные изменения",
"ConfirmUnsavedChangesDescription": "Если включено, то для сохранения/отмены несохраненных изменений требуется подтверждение. Если отключено, изменения отбрасываются в фоновом режиме.",
"Editor": "Редактор",
"UseEscToClose": "Нажмите ESC, чтобы закрыть редактор",
"UseEscToCloseDescription": "Позволяет закрыть редактор с помощью ESC."
},
"GCodeViewerTab": {
"BackgroundColor": "Цвет фона",
"ExtruderColor": "Цвета экструдера",
"GCodeViewer": "Программа просмотра G-кода",
"GridColor": "Цвет сетки",
"MaxFeed": "Максимальная подача",
"MinFeed": "Мин. подача",
"ShowAxes": "Показать оси"
},
"TimelapseTab": {
"Autorender": "Авторы",
"AutorenderDescription": "Если эта опция активирована, то по окончании процесса печати автоматически выводится таймлапс видео.",
"Camera": "Камера",
"CameraDescription": "Определяет, какая камера будет использоваться",
"ConstantRateFactor": "Коэффициент постоянной ставки",
"ConstantRateFactorDescription": "Это настраивает качество в зависимости от размера файла отрендеренного видео. Шкала CRF варьируется от 0-51, где 0 - без потерь, 23 - значение по умолчанию, а 51 - наихудшее возможное качество. Меньшее значение обычно приводит к более высокому качеству, и субъективно разумный диапазон составляет 17-28. 17 или 18 считаются визуально без потерь.",
"Enabled": "Активирует",
"EnabledDescription": "Если эта опция отключена, макросы G-кода игнорируются, а Autorender пропускается.",
"Extraoutputparams": "Дополнительный выходной параметр",
"ExtraoutputparamsDescription": "Устанавливает дополнительные параметры вывода для FFMPEG. Примечание: Если вы укажете здесь что-либо, настройка вращения будет отключена.",
"GcodeVerbose": "Подробные G-коды",
"GcodeVerboseDescription": "Если включено, макросы G-кода записывают информацию в консоль",
"General": "Общий",
"HyperlapseCycle": "Продолжительность цикла гиперлапса",
"HyperlapseCycleDescription": "Снимок делается каждые X секунд",
"Mode": "Режим",
"ModeDescription": "Выберите между макросъемкой слоя и режимом гиперлапса (с привязкой ко времени)",
"OutputFramerate": "Выходная частота кадров",
"OutputFramerateDescription": "Определяет частоту кадров видео. Примечание: Этот параметр игнорируется, если включена переменная_fps",
"Parkhead": "Печатающая головка Park",
"ParkheadDescription": "Если этот параметр включен, печатающая головка паркуется перед получением изображения.",
"Parkpos": "Положение в парке",
"ParkposDescription": "Выберите положение парка",
"Pixelformat": "Формат пикселя",
"PixelformatDescription": "Определяет пиксельный формат выходного видео",
"PosDZ": "Позиция Z",
"PosDZDescription": "Парковочное положение Z (относительное)",
"PosX": "Позиция X",
"PosXDescription": "Парковочное положение X (абсолютное)",
"PosY": "Должность Y",
"PosYDescription": "Положение парковки Y (абсолютное)",
"PreviewImage": "Изображение для предварительного просмотра",
"PreviewImageDescription": "Сохраняет миниатюру с тем же именем, что и видео.",
"RenderingOptions": "Параметры рендеринга",
"RetractDistance": "Длина втягивания",
"RetractSpeed": "Скорость втягивания",
"SaveFrames": "Сохранить изображения",
"SaveFramesDescription": "Сохранение изображений в zip-файле для внешнего рендеринга",
"Targetlength": "Целевая продолжительность",
"TargetlengthDescription": "Длительность цели при активации переменного FPS",
"TimeFormatCode": "Код формата времени",
"TimeFormatCodeDescription": "Определяет, как метка времени должна быть закодирована в выходном файле",
"Timelapse": "Time-lapse",
"TravelSpeed": "Быстрая скорость перемещения",
"TravelSpeedDescription": "Быстрая скорость перемещения для перехода в парковочное положение и возобновления печати",
"VariableFps": "Переменный FPS",
"VariableFpsDescription": "Если эта опция активирована, частота кадров выходного видео рассчитывается на основе целевой длительности.",
"VariableFpsMax": "Макс. Переменный FPS",
"VariableFpsMin": "Мин. переменная FPS",
"duplicatelastframe": "Дублирование последнего изображения",
"duplicatelastframeDescription": "Дублирует последнее изображение в конце видеоролика",
"RetractSpeedDescription": "Скорость, с которой экструдер втягивает нить.",
"RetractDistanceDescription": "Длина нити, которую втягивает экструдер.",
"UnretractSpeed": "Скорость втягивания",
"UnretractSpeedDescription": "Скорость, с которой экструдер продвигает нить после втягивания.",
"UnretractDistance": "Расстояние расцепления",
"UnretractDistanceDescription": "Длина нити, которую экструдер продвигает после обратного рывка.",
"VariableFpsMinDescription": "Минимальное количество IPS в переменном режиме.",
"VariableFpsMaxDescription": "Максимальное количество IPS в переменном режиме."
},
"UiSettingsTab": {
"BoolBigThumbnail": "Большие эскизы",
"BoolBigThumbnailDescription": "Отображение большого эскиза на экране состояния во время печати.",
"BoolHideUploadAndPrintButton": "Скрыть кнопку \"Загрузить и распечатать\"",
"BoolHideUploadAndPrintButtonDescription": "Скрыть или показать кнопку \"Загрузка и печать\" в строке заголовка.",
"ConfirmOnEmergencyStop": "Требуется подтверждение для аварийной остановки",
"ConfirmOnEmergencyStopDescription": "Показать диалог подтверждения перед аварийной остановкой.",
"ConfirmOnPowerDeviceChange": "Подтверждение для изменения питания устройств",
"ConfirmOnPowerDeviceChangeDescription": "Отображение диалога подтверждения перед изменением питания устройств.",
"DisplayCANCEL_PRINT": "Показать CANCEL_PRINT",
"DisplayCANCEL_PRINTDescription": "Отображает кнопку CANCEL_PRINT постоянно - дальнейшее подтверждение не требуется.",
"DisplayZOffset": "Показать панель Z-смещения",
"DisplayZOffsetDescription": "В противном случае панель управления отображается только после запуска печати.",
"GcodeThumbnails": "Эскизы G-кода",
"GcodeThumbnailsDescription": "Нажмите на кнопку, чтобы перейти к руководству.",
"Guide": "Руководство",
"LockSliders": "Блокировка слайдера на устройствах с сенсорным экраном",
"LockSlidersDelay": "Задержка блокировки ползунка",
"LockSlidersDelayDescription": "Ползунки блокируются после определенной задержки. Если 0 или пусто, то ползунки блокируются только после изменения/перезагрузки страницы.",
"LockSlidersDescription": "Перед внесением изменений ползунки должны быть сначала разблокированы.",
"Logo": "Логотип",
"NavigationStyle": "Стиль навигации",
"NavigationStyleDescription": "Изменение внешнего вида навигации",
"NavigationStyleIconsAndText": "Иконки + текст",
"NavigationStyleIconsOnly": "Только значки",
"Primary": "Основной цвет",
"ShowWebcamInNavigation": "Показать веб-камеру в навигации",
"UiSettings": "Настройки пользовательского интерфейса"
},
"WebcamsTab": {
"AddWebcam": "Добавить веб-камеру",
"CreateWebcam": "Создать веб-камеру",
"EditWebcam": "Редактирование веб-камеры",
"FlipHorizontally": "Зеркальное отображение веб-камеры по горизонтали",
"FlipVertically": "Зеркальная веб-камера в вертикальном положении",
"IconBed": "Кровать",
"IconCam": "Камера",
"IconDoor": "Дверь",
"IconFilament": "Филамент",
"IconHot": "Горячий",
"IconMcu": "MCU",
"IconNozzle": "Форсунка",
"IconPrinter": "Принтер",
"Ipstream": "IP-камера",
"Mjpegstreamer": "MJPEG стример",
"MjpegstreamerAdaptive": "Адаптивный стример MJPEG (экспериментальный)",
"Name": "Имя",
"NameAlreadyExists": "Имя уже существует",
"Required": "нуждается в",
"SaveWebcam": "Сохранить веб-камеру",
"Service": "Сервис",
"TargetFPS": "Целевой FPS",
"UpdateWebcam": "Обновление веб-камеры",
"UrlSnapshot": "URL моментального снимка",
"UrlStream": "URL потока",
"Uv4lMjpeg": "UV4L-MJPEG",
"Webcams": "Веб-камеры"
}
},
"title": "Pусский",
@@ -525,7 +725,6 @@
"HiddenFiles": "Скрытые файлы",
"LastModified": "Последнее изменение",
"Name": "Имя",
"PleaseStandBy": "Пожалуйста, будьте готовы",
"RefreshDirectory": "Обновить каталог",
"Rename": "Переименовать",
"RenameDirectory": "Переименовать каталог",
@@ -535,7 +734,8 @@
"Total": "Всего",
"UploadFile": "Загрузить файл",
"Uploading": "Загрузка",
"Used": "Используется"
"Used": "Используется",
"HideBackupFiles": "Скрыть файлы резервного копирования"
},
"EndstopPanel": {
"Endstop": "Концевой упор",
@@ -544,13 +744,6 @@
"TRIGGERED": "ПЕРЕДАНО",
"open": "ОТКРЫТЬ"
},
"LimitsPanel": {
"Acceleration": "Ускорение",
"Deceleration": "Замедление",
"MachineLimits": "Пределы машины",
"SquareCornerVelocity": "Квадратичная угловая скорость",
"Velocity": "Скорость"
},
"LogfilesPanel": {
"Logfiles": "Журналы"
},
@@ -569,7 +762,6 @@
"UpdatePanel": {
"CheckForUpdates": "Проверьте наличие обновлений",
"Commits": "Обязательства",
"CommittedAt": "совершённый в",
"Detached": "отдельно стоящий",
"Dirty": "грязный",
"ERROR": "ОШИБКА",
@@ -581,7 +773,13 @@
"UpToDate": "актуальная информация",
"Update": "обновление",
"UpdateManager": "Менеджер по обновлению",
"Upgrade": "обновление"
"Upgrade": "обновление",
"CommitsAvailabe": "нет доступных коммитов | {count} доступных коммитов | {count} доступных коммитов",
"CommitsOnDate": "Отправлено {date}",
"CommittedDaysAgo": "Отправлено {days} назад",
"CommittedHoursAgo": "Отправлено {hours} назад",
"CommittedOnDate": "подана {date}",
"CommittedYesterday": "представленный вчера"
}
},
"SelectPrinterDialog": {
@@ -600,5 +798,102 @@
"TryAgain": "повторите попытку",
"UpdatePrinter": "Обновление принтера",
"YouCanFindMore": "Более подробную информацию вы можете найти на сайте"
},
"Timelapse": {
"AllFiles": "Все",
"Cancel": "Отмена",
"Autorender": "Авторы",
"Create": "Создать",
"CreateNewDirectory": "Новый каталог",
"CurrentPath": "Текущий путь",
"Delete": "Удалить",
"DeleteDirectory": "Удалить каталог",
"DeleteDirectoryQuestion": "Вы действительно хотите удалить каталог \"{name}\" со всем его содержимым?",
"Download": "Скачать",
"DuplicateLastframe": "Дублирование последнего изображения",
"Empty": "Готовых таймлапсов не найдено.",
"Enabled": "Активирует",
"EstimatedLength": "Предполагаемая длина",
"Files": "Файлы",
"Filesize": "Размер файла",
"Fixed": "исправить",
"Framerate": "Частота кадров",
"Frames": "Изображения",
"Free": "Бесплатно",
"FreeDisk": "Свободное пространство",
"LastModified": "Последнее изменение",
"MaxFramerate": "Макс. Частота кадров",
"MinFramerate": "Мин. частота кадров",
"Name": "Имя",
"NewDirectory": "Новый каталог",
"NoActiveTimelapse": "Записи отсутствуют.",
"Preview": "Предварительный просмотр",
"RefreshCurrentDirectory": "Обновление каталога",
"Rename": "Переименовать",
"RenameDirectory": "Переименовать каталог",
"RenameFile": "Переименовать файл",
"Render": "рендеринг",
"RenderSettings": "Настройки рендеринга",
"SaveFrames": "Сохранить изображения",
"Search": "suche",
"StartRender": "Начать рендеринг",
"Status": "Статус",
"TargetFps": "Целевой FPS",
"Targetlength": "Целевая продолжительность",
"TimelapseFiles": "Файлы замедленного действия",
"TimelapseRendering": "Временная визуализация",
"TimelapseRenderingSuccessful": "Успешный рендеринг с замедленной съемкой",
"Total": "Всего",
"Type": "Тип",
"Used": "Оккупированный",
"Variable": "Переменная",
"Video": "Видео"
},
"PowerDeviceChangeDialog": {
"AreYouSure": "Вы уверены?",
"No": "Нет",
"TurnDeviceOff": "{device} выключить",
"TurnDeviceOn": "{device} Включите",
"Yes": "Да"
},
"JobQueue": {
"AllJobs": "Все заказы",
"Delete": "Удалить",
"Empty": "Пустой",
"JobQueue": "Очередь на работу",
"Jobs": "Заказы",
"Pause": "Pause",
"Resume": "Продолжить"
},
"EmergencyStopDialog": {
"AreYouSure": "Вы уверены?",
"EmergencyStop": "Аварийная остановка",
"No": "Нет",
"Yes": "Ja"
},
"GCodeViewer": {
"ClearLoadedFile": "Удалить",
"ColorMode": "Цветовой режим",
"Downloading": "Скачать",
"ForceLineRendering": "Отображение линии силы",
"HDRendering": "HD-представление (круглые экструзии)",
"High": "Высокий",
"LoadCurrentFile": "Текущий файл",
"LoadLocal": "Локальный файл",
"Low": "Низкий",
"Max": "Макс",
"Medium": "Средний",
"ReloadRequired": "Требуется перезагрузка",
"RenderQuality": "Качество презентации",
"Rendering": "Рендеринг",
"ShowObjectSelection": "Показать выбор объекта",
"ShowToolhead": "Показать головку инструмента",
"ShowTravelMoves": "Показывайте движения в быстром темпе",
"SpecularLighting": "Основные моменты",
"Title": "Программа просмотра G-кода",
"Tracking": "Отслеживание",
"Transparency": "Прозрачность",
"Ultra": "Ультра",
"VoxelMode": "Воксельный режим (ASMBL)"
}
}
}
+6 -3
View File
@@ -95,7 +95,6 @@ import CommandHelpModal from '@/components/CommandHelpModal.vue'
})
export default class PageConsole extends Mixins(BaseMixin) {
private gcode = ''
private lastCommands: string[] = []
private lastCommandNumber: number | null = null
private items = []
@@ -147,7 +146,11 @@ export default class PageConsole extends Mixins(BaseMixin) {
}
get customFilters(): any[] {
return this.$store.state.gui.console.customFilters
return this.$store.state.gui.console.consolefilters
}
get lastCommands(): string[] {
return this.$store.state.gui.gcodehistory.entries ?? []
}
commandClick(msg: string): void {
@@ -162,7 +165,7 @@ export default class PageConsole extends Mixins(BaseMixin) {
if (!cmd.shiftKey) {
if (this.gcode !== '') {
this.$store.dispatch('printer/sendGcode', this.gcode)
this.lastCommands.push(this.gcode)
this.$store.dispatch('gui/gcodehistory/addToHistory', this.gcode)
this.gcode = ''
this.lastCommandNumber = null
setTimeout(() => {
+8 -8
View File
@@ -97,7 +97,7 @@ export default class PageDashboard extends Mixins(DashboardMixin) {
get mobileLayout() {
let panels = this.$store.getters['gui/getPanels']('mobileLayout')
panels = panels.concat(this.missingPanelsMobile)
panels = panels.filter((element: any) => element.visable)
panels = panels.filter((element: any) => element.visible)
return panels
}
@@ -105,14 +105,14 @@ export default class PageDashboard extends Mixins(DashboardMixin) {
get tabletLayout1() {
let panels = this.$store.getters['gui/getPanels']('tabletLayout1')
panels = panels.concat(this.missingPanelsTablet)
panels = panels.filter((element: any) => element.visable)
panels = panels.filter((element: any) => element.visible)
return panels
}
get tabletLayout2() {
let panels = this.$store.getters['gui/getPanels']('tabletLayout2')
panels = panels.filter((element: any) => element.visable)
panels = panels.filter((element: any) => element.visible)
return panels
}
@@ -120,14 +120,14 @@ export default class PageDashboard extends Mixins(DashboardMixin) {
get desktopLayout1() {
let panels = this.$store.getters['gui/getPanels']('desktopLayout1')
panels = panels.concat(this.missingPanelsDesktop)
panels = panels.filter((element: any) => element.visable)
panels = panels.filter((element: any) => element.visible)
return panels
}
get desktopLayout2() {
let panels = this.$store.getters['gui/getPanels']('desktopLayout2')
panels = panels.filter((element: any) => element.visable)
panels = panels.filter((element: any) => element.visible)
return panels
}
@@ -135,21 +135,21 @@ export default class PageDashboard extends Mixins(DashboardMixin) {
get widescreenLayout1() {
let panels = this.$store.getters['gui/getPanels']('widescreenLayout1')
panels = panels.concat(this.missingPanelsWidescreen)
panels = panels.filter((element: any) => element.visable)
panels = panels.filter((element: any) => element.visible)
return panels
}
get widescreenLayout2() {
let panels = this.$store.getters['gui/getPanels']('widescreenLayout2')
panels = panels.filter((element: any) => element.visable)
panels = panels.filter((element: any) => element.visible)
return panels
}
get widescreenLayout3() {
let panels = this.$store.getters['gui/getPanels']('widescreenLayout3')
panels = panels.filter((element: any) => element.visable)
panels = panels.filter((element: any) => element.visible)
return panels
}
+28 -17
View File
@@ -66,7 +66,7 @@
</panel>
</v-col>
<v-col class="col-12 col-md-4">
<panel :title="$t('Heightmap.CurrentMesh.Headline')" v-if="bed_mesh.profile_name !== ''" card-class="heightmap-current-mesh-panel" icon="mdi-information" :collapsible="true" class="mt-0">
<panel :title="$t('Heightmap.CurrentMesh.Headline')" v-if="bed_mesh !== null && bed_mesh.profile_name !== ''" card-class="heightmap-current-mesh-panel" icon="mdi-information" :collapsible="true" class="mt-0">
<v-card-text class="py-3 px-0">
<v-row class="px-3">
<v-col>{{ $t('Heightmap.CurrentMesh.Name') }}</v-col>
@@ -244,6 +244,13 @@ export default class PageHeightmap extends Mixins(BaseMixin) {
get chartOptions() {
return {
tooltip: {
backgroundColor: 'rgba(0,0,0,0.9)',
borderWidth: 0,
textStyle: {
color: '#fff',
fontSize: '14px'
},
padding: 15,
formatter: this.tooltipFormatter
},
darkMode: true,
@@ -362,51 +369,51 @@ export default class PageHeightmap extends Mixins(BaseMixin) {
}
get showProbed(): boolean {
return this.$store.state.gui.heightmap.probed ?? true
return this.$store.state.gui.view.heightmap.probed ?? true
}
set showProbed(newVal) {
this.$store.dispatch('gui/saveSetting', { name: 'heightmap.probed', value: newVal })
this.$store.dispatch('gui/saveSetting', { name: 'view.heightmap.probed', value: newVal })
}
get showMesh(): boolean {
return this.$store.state.gui.heightmap.mesh ?? true
return this.$store.state.gui.view.heightmap.mesh ?? true
}
set showMesh(newVal) {
this.$store.dispatch('gui/saveSetting', { name: 'heightmap.mesh', value: newVal })
this.$store.dispatch('gui/saveSetting', { name: 'view.heightmap.mesh', value: newVal })
}
get showFlat(): boolean {
return this.$store.state.gui.heightmap.flat ?? true
return this.$store.state.gui.view.heightmap.flat ?? true
}
set showFlat(newVal) {
this.$store.dispatch('gui/saveSetting', { name: 'heightmap.flat', value: newVal })
this.$store.dispatch('gui/saveSetting', { name: 'view.heightmap.flat', value: newVal })
}
get wireframe(): boolean {
return this.$store.state.gui.heightmap.wireframe ?? true
return this.$store.state.gui.view.heightmap.wireframe ?? true
}
set wireframe(newVal) {
this.$store.dispatch('gui/saveSetting', { name: 'heightmap.wireframe', value: newVal })
this.$store.dispatch('gui/saveSetting', { name: 'view.heightmap.wireframe', value: newVal })
}
get scale(): boolean {
return this.$store.state.gui.heightmap.scale ?? true
return this.$store.state.gui.view.heightmap.scale ?? true
}
set scale(newVal) {
this.$store.dispatch('gui/saveSetting', { name: 'heightmap.scale', value: newVal })
this.$store.dispatch('gui/saveSetting', { name: 'view.heightmap.scale', value: newVal })
}
get scaleVisualMap(): boolean {
return this.$store.state.gui.heightmap.scaleVisualMap ?? false
return this.$store.state.gui.view.heightmap.scaleVisualMap ?? false
}
set scaleVisualMap(newVal) {
this.$store.dispatch('gui/saveSetting', { name: 'heightmap.scaleVisualMap', value: newVal })
this.$store.dispatch('gui/saveSetting', { name: 'view.heightmap.scaleVisualMap', value: newVal })
}
get rangeX(): number[] {
@@ -720,10 +727,14 @@ export default class PageHeightmap extends Mixins(BaseMixin) {
}
tooltipFormatter(data: any): string {
return '<b>'+data.seriesName+'</b><br />' +
'<b>' + data.dimensionNames[0]+'</b>: '+data.data[0].toFixed(1) + ' mm <br />' +
'<b>' + data.dimensionNames[1]+'</b>: '+data.data[1].toFixed(1) + ' mm <br />' +
'<b>' + data.dimensionNames[2]+'</b>: '+data.data[2].toFixed(3) + ' mm '
const outputArray: string[] = []
outputArray.push('<b>'+data.seriesName+'</b>')
Object.keys(data.encode).sort().forEach((axisName: string) => {
outputArray.push('<b>' + axisName.toUpperCase() + '</b>: '+data.data[data.encode[axisName][0]].toFixed(axisName === 'z' ? 3 : 1) + ' mm')
})
return outputArray.join('<br />')
}
loadProfile(name: string): void {
+1 -1
View File
@@ -43,7 +43,7 @@ export const getters: GetterTree<FarmPrinterState, any> = {
},
getLogoColor: (state) => {
return state.data.gui?.theme?.logo ?? defaultLogoColor
return state.data.gui?.uiSettings?.logo ?? defaultLogoColor
},
getStatus: (state, getters) => {
+4
View File
@@ -7,6 +7,10 @@ export const actions: ActionTree<GcodeviewerState, RootState> = {
commit('reset')
},
setViewerBackup({ commit }, backup) {
commit('setViewerBackup', backup)
},
setCanvasBackup({ commit }, backup) {
commit('setCanvasBackup', backup)
},
+1
View File
@@ -6,6 +6,7 @@ import { getters } from '@/store/gcodeviewer/getters'
export const getDefaultState = (): GcodeviewerState => {
return {
viewerBackup: null,
canvasBackup: null,
loadedFileBackup: null
}
+4
View File
@@ -8,6 +8,10 @@ export const mutations: MutationTree<GcodeviewerState> = {
Object.assign(state, getDefaultState())
},
setViewerBackup(state, backup) {
Vue.set(state, 'viewerBackup', backup)
},
setCanvasBackup(state, backup) {
Vue.set(state, 'canvasBackup', backup)
},
+1
View File
@@ -1,4 +1,5 @@
export interface GcodeviewerState {
viewerBackup: any
canvasBackup: any
loadedFileBackup: string | null
}
+229 -143
View File
@@ -3,10 +3,16 @@ import {ActionTree} from 'vuex'
import {GuiState} from '@/store/gui/types'
import {RootState} from '@/store/types'
import { getDefaultState } from './index'
import {themeDir} from '@/store/variables'
export const actions: ActionTree<GuiState, RootState> = {
reset({ commit }) {
reset({ commit, dispatch }) {
commit('reset')
dispatch('console/reset')
dispatch('gcodehistory/reset')
dispatch('macros/reset')
dispatch('presets/reset')
},
init() {
@@ -15,107 +21,73 @@ export const actions: ActionTree<GuiState, RootState> = {
},
initStore({ commit, dispatch, rootState }, payload) {
//added in V2.1.0
if (
payload.value.dashboard?.control !== undefined &&
'useCross' in payload.value.dashboard?.control
) {
dispatch('saveSetting', { name: 'dashboard.control.style', value: 'cross' })
Vue.$socket.emit('server.database.delete_item', { namespace: 'mainsail', key: 'dashboard.control.useCross' })
delete payload.value.dashboard?.control.useCross
}
//added in V2.1.0
if (payload.value.webcam) {
window.console.debug('convert old webcams')
if (payload.value.webcam.configs && payload.value.webcam.configs.length) {
payload.value.webcam.configs.forEach((oldWebcam: any) => {
const newWebcam = {...oldWebcam, urlStream: oldWebcam.url, urlSnapshot: oldWebcam.url.replace('action=stream', 'action=snapshot')}
delete newWebcam.url
dispatch('webcam/store', { values: newWebcam })
})
}
commit('saveSetting', { name: 'webcamSettings.boolNavi', value: payload.value.webcam.boolNavi })
Vue.$socket.emit('server.database.delete_item', { namespace: 'mainsail', key: 'webcam' })
}
//added in V2.1.0
if (payload.value.presets) {
window.console.debug('convert old presets')
if (payload.value.presets && payload.value.presets.length) {
payload.value.presets.forEach((oldPreset: any) => {
dispatch('presets/store', { values: oldPreset })
})
delete payload.value.presets
}
Vue.$socket.emit('server.database.delete_item', { namespace: 'mainsail', key: 'presets' })
}
//added in V2.1.0
if (payload.value.cooldownGcode) {
window.console.debug('convert old cooldownGcode')
dispatch('presets/updateCooldownGcode', payload.value.cooldownGcode)
Vue.$socket.emit('server.database.delete_item', { namespace: 'mainsail', key: 'cooldownGcode' })
delete payload.value.cooldownGcode
}
//added in V2.1.0
if (payload.value.console?.customFilters) {
window.console.debug('convert old consolefilters')
if (payload.value.console.customFilters && payload.value.console.customFilters.length) {
payload.value.console.customFilters.forEach((oldFilter: any) => {
dispatch('consolefilters/store', {values: oldFilter})
})
}
delete payload.value.console.customFilters
Vue.$socket.emit('server.database.delete_item', { namespace: 'mainsail', key: 'console.customFilters' })
}
//added in V2.1.0
if (payload.value.remote_printers) {
if (!rootState.socket?.remoteMode) {
window.console.debug('convert old remotePrinters')
payload.value.remote_printers.forEach((printer: any) => {
const values = {
hostname: printer.hostname ?? '',
port: printer.port ?? 7125,
settings: printer.settings ?? {},
}
dispatch('remoteprinters/store', { values })
})
Vue.$socket.emit('server.database.delete_item', { namespace: 'mainsail', key: 'remote_printers' })
}
delete payload.value.remote_printers
}
//added in V2.1.0
if (payload.value.dashboard?.macrogroups) {
window.console.debug('convert old macrogroups')
payload.value.dashboard?.macrogroups.forEach((macrogroup: any) => {
dispatch('macrogroups/store', { values: macrogroup })
})
Vue.$socket.emit('server.database.delete_item', { namespace: 'mainsail', key: 'dashboard.macrogroups' })
delete payload.value.dashboard.macrogroups
if ('remoteprinters' in payload.value) {
if (!rootState.socket?.remoteMode) dispatch('remoteprinters/initStore', payload.value.remoteprinters.printers)
delete payload.value.remoteprinters
}
commit('setData', payload.value)
},
/*
* Create mainsail namespace in moonraker DB and fill in default values
*/
async initDb({ dispatch, rootGetters }) {
const baseUrl = rootGetters['socket/getUrl'] + '/server/database/item'
const urlDefault = rootGetters['socket/getUrl'] + '/server/files/config/' + themeDir + '/default.json?time=' + Date.now()
const responseDefault = await fetch(urlDefault)
let defaults: any = {}
if (responseDefault) {
defaults = await responseDefault.json()
if (defaults.error?.code === 404) defaults = {}
}
for (const key in defaults) {
if (['webcams', 'timelapse'].includes(key)) {
for (const key2 of defaults[key]) {
await fetch(baseUrl, {
method: 'POST',
headers: {
'Content-Type': 'application/json'
},
body: JSON.stringify({
namespace: key,
key: key2,
value: defaults[key][key2]
})
})
}
} else {
await fetch(baseUrl, {
method: 'POST',
headers: {
'Content-Type': 'application/json'
},
body: JSON.stringify({
namespace: 'mainsail',
key: key,
value: defaults[key]
})
})
}
}
await fetch(baseUrl, {
method: 'POST',
headers: {
'Content-Type': 'application/json'
},
body: JSON.stringify({
namespace: 'mainsail',
key: 'initVersion',
value: rootGetters['getVersion']
})
})
dispatch('init')
},
saveSetting({ commit }, payload) {
commit('saveSetting', payload)
@@ -139,7 +111,7 @@ export const actions: ActionTree<GuiState, RootState> = {
commit('setGcodefilesMetadata', data)
dispatch('updateSettings', {
keyName: 'gcodefiles',
newVal: state.gcodefiles
newVal: state.view.gcodefiles
})
},
@@ -147,7 +119,7 @@ export const actions: ActionTree<GuiState, RootState> = {
commit('setGcodefilesShowHiddenFiles', data)
dispatch('updateSettings', {
keyName: 'gcodefiles',
newVal: state.gcodefiles
newVal: state.view.gcodefiles
})
},
@@ -155,66 +127,188 @@ export const actions: ActionTree<GuiState, RootState> = {
commit('setCurrentWebcam', payload)
dispatch('updateSettings', {
keyName: 'webcamSettings.currentCam',
newVal: state.webcamSettings.currentCam
newVal: state.view.webcam.currentCam
})
},
setTempchartDatasetAdditionalSensorSetting({ commit, dispatch, state }, payload) {
commit('setTempchartDatasetAdditionalSensorSetting', payload)
dispatch('updateSettings', {
keyName: 'tempchart',
newVal: state.tempchart
keyName: 'view.tempchart',
newVal: state.view.tempchart
})
},
async resetMoonrakerDB({ commit, dispatch }, payload) {
await commit('setResetDatabases', payload)
dispatch('resetMoonrakerDbLoop')
},
async resetMoonrakerDB({ commit, dispatch, rootGetters }, payload) {
const baseUrl = rootGetters['socket/getUrl'] + '/server/database/item'
async resetMoonrakerDbLoop({ state, commit }) {
if (state.resetDatabases.length) {
const namespace = state.resetDatabases[0]
if (namespace.startsWith('mainsail') || ['webcams', 'timelapse'].includes(namespace)) {
Vue.$socket.emit('server.database.get_item', { namespace: namespace }, { action: 'gui/resetMoonrakerDbLoopItems' })
} else if (namespace === 'history_jobs') {
Vue.$socket.emit('server.history.delete_job', { all: true }, { action: 'gui/resetMoonrakerDbLoopItems' })
} else if (namespace === 'history_totals') {
Vue.$socket.emit('server.history.reset_totals', { }, { action: 'gui/resetMoonrakerDbLoopItems' })
}
await commit('removeResetDatabase', namespace)
} else window.location.reload()
},
resetMoonrakerDbLoopItems({ dispatch }, payload) {
if ('value' in payload && Object.keys(payload.value).length) {
Object.keys(payload.value).forEach(key => {
Vue.$socket.emit('server.database.delete_item', { namespace: payload.namespace, key: key })
})
const urlDefault = rootGetters['socket/getUrl'] + '/server/files/config/' + themeDir + '/default.json?time=' + Date.now()
const responseDefault = await fetch(urlDefault)
let defaults: any = {}
if (responseDefault) {
defaults = await responseDefault.json()
if (defaults.error?.code === 404) defaults = {}
}
dispatch('resetMoonrakerDbLoop')
for (const key of payload) {
if (['webcams', 'timelapse'].includes(key)) {
const url = baseUrl + '?namespace=' + key
const response = await fetch(url)
const objects = await response.json()
if (objects?.result?.value) {
for (const item of Object.keys(objects?.result?.value)) {
await fetch(url+'&key='+item, { method: 'DELETE' })
}
}
if (key in defaults) {
for (const key2 of defaults[key]) {
await fetch(baseUrl, {
method: 'POST',
headers: {
'Content-Type': 'application/json'
},
body: JSON.stringify({
namespace: key,
key: key2,
value: defaults[key][key2]
})
})
}
}
} else if (key === 'history_jobs') {
await fetch(rootGetters['socket/getUrl'] + '/server/history/job?all=true', { method: 'DELETE' })
} else if (key === 'history_totals') {
await fetch(rootGetters['socket/getUrl'] + '/server/history/reset_totals', { method: 'POST' })
} else {
await fetch(rootGetters['socket/getUrl'] + '/server/database/item?namespace=mainsail&key=' + key, { method: 'DELETE' })
if (key in defaults) {
await fetch(baseUrl, {
method: 'POST',
headers: {
'Content-Type': 'application/json'
},
body: JSON.stringify({
namespace: 'mainsail',
key: key,
value: defaults[key]
})
})
}
}
}
window.location.reload()
},
async backupMoonrakerDB({ commit, dispatch, rootGetters }, payload) {
const backup: any = {}
const responseMainsail = await fetch(rootGetters['socket/getUrl'] + '/server/database/item?namespace=mainsail')
const objectsMainsail = await responseMainsail.json()
const mainsailDb = objectsMainsail?.result?.value ?? {}
for (const key of payload) {
if (['timelapse', 'webcams'].includes(key)) {
const url = rootGetters['socket/getUrl'] + '/server/database/item?namespace=' + key
const response = await fetch(url)
const objects = await response.json()
if (objects?.result?.value) backup[key] = {...objects?.result?.value}
} else if (key in mainsailDb) {
backup[key] = {...mainsailDb[key]}
}
}
const element = document.createElement('a')
element.setAttribute('href', 'data:text/plain;charset=utf-8,' + encodeURIComponent(JSON.stringify(backup)))
element.setAttribute('download', 'backup-mainsail.json')
element.style.display = 'none'
document.body.appendChild(element)
element.click()
document.body.removeChild(element)
},
async restoreMoonrakerDB({ rootGetters }, payload) {
const baseUrl = rootGetters['socket/getUrl'] + '/server/database/item'
const mainsailUrl = baseUrl + '?namespace=mainsail'
const responseNamespaces = await fetch(rootGetters['socket/getUrl'] + '/server/database/list')
const objectsNamespaces = await responseNamespaces.json()
const namespacesArray = objectsNamespaces?.result?.namespaces ?? []
let mainsailArray: string[] = []
if (namespacesArray.includes('mainsail')) {
const responseMainsail = await fetch(mainsailUrl)
const objectsMainsail = await responseMainsail.json()
mainsailArray = Object.keys(objectsMainsail?.result?.value ?? {})
}
for (const key of payload.dbCheckboxes) {
if (['timelapse', 'webcams'].includes(key)) {
if (namespacesArray.includes(key)) {
const url = baseUrl + '?namespace=' + key
const response = await fetch(url)
const objects = await response.json()
if (objects?.result?.value) {
for (const item of Object.keys(objects?.result?.value)) {
await fetch(url + '&key=' + item, {method: 'DELETE'})
}
}
}
for (const key2 of Object.keys(payload.restoreObjects[key])) {
const value = payload.restoreObjects[key][key2]
await fetch(baseUrl, {
method: 'POST',
headers: {
'Content-Type': 'application/json'
},
body: JSON.stringify({
namespace: key,
key: key2,
value
})
})
}
} else {
if (mainsailArray.includes(key)) await fetch(mainsailUrl+'&key='+key, { method: 'DELETE' })
await fetch(mainsailUrl, {
method: 'POST',
headers: {
'Content-Type': 'application/json'
},
body: JSON.stringify({
namespace: 'mainsail',
key,
value: payload.restoreObjects[key]
})
})
}
}
window.location.reload()
},
setHistoryColumns({ commit, dispatch, state }, data) {
commit('setHistoryColumns', data)
dispatch('updateSettings', {
keyName: 'history',
newVal: state.history
keyName: 'view.history',
newVal: state.view.history
})
},
hideStatusInHistoryList({ commit, dispatch, state }, name) {
const array: string[] = [...state.history.hidePrintStatus]
const array: string[] = [...state.view.history.hidePrintStatus]
if (!array.includes(name)) {
array.push(name)
commit('setHistoryHidePrintStatus', array)
dispatch('updateSettings', {
keyName: 'history.hidePrintStatus',
keyName: 'view.history.hidePrintStatus',
newVal: array
})
}
@@ -231,7 +325,7 @@ export const actions: ActionTree<GuiState, RootState> = {
},
showStatusInHistoryList({ commit, dispatch, state }, name) {
const array: string[] = [...state.history.hidePrintStatus]
const array: string[] = [...state.view.history.hidePrintStatus]
const index = array.indexOf(name)
if (index !== -1) {
@@ -239,7 +333,7 @@ export const actions: ActionTree<GuiState, RootState> = {
commit('setHistoryHidePrintStatus', array)
dispatch('updateSettings', {
keyName: 'history.hidePrintStatus',
keyName: 'view.history.hidePrintStatus',
newVal: array
})
}
@@ -247,7 +341,7 @@ export const actions: ActionTree<GuiState, RootState> = {
resetLayout({ dispatch }, name) {
const defaultState = getDefaultState()
// eslint-disable-next-line
// @ts-ignore
const newVal: any = defaultState.dashboard[name] ?? []
dispatch('saveSetting', {
@@ -255,12 +349,4 @@ export const actions: ActionTree<GuiState, RootState> = {
value: newVal
})
},
toggleHideUploadAndPrintBtn({commit, dispatch, state}, payload) {
commit('toggleHideUploadAndPrintBtn', payload)
dispatch('updateSettings', {
keyName: 'dashboard.boolHideUploadAndPrintButton',
newVal: state.dashboard.boolHideUploadAndPrintButton
})
}
}
+45
View File
@@ -0,0 +1,45 @@
import { ActionTree } from 'vuex'
import {RootState} from '@/store/types'
import { v4 as uuidv4 } from 'uuid'
import Vue from 'vue'
import {GuiConsoleState} from '@/store/gui/console/types'
export const actions: ActionTree<GuiConsoleState, RootState> = {
reset({ commit }) {
commit('reset')
},
saveSetting({ dispatch }, payload) {
dispatch('gui/saveSetting', {
name: 'console.'+payload.name,
value: payload.value
}, { root: true })
},
filterUpload(_, payload) {
Vue.$socket.emit('server.database.post_item', { namespace: 'mainsail', key: 'console.consolefilters.'+payload.id, value: payload.value })
},
filterStore({ commit, dispatch, state }, payload) {
const id = uuidv4()
commit('filterStore', { id, values: payload.values })
dispatch('filterUpload', {
id,
value: state.consolefilters[id]
})
},
filterUpdate({ commit, dispatch, state }, payload) {
commit('filterUpdate', payload)
dispatch('filterUpload', {
id: payload.id,
value: state.consolefilters[payload.id]
})
},
filterDelete({ commit }, payload) {
commit('filterDelete', payload)
Vue.$socket.emit('server.database.delete_item', { namespace: 'mainsail', key: 'console.consolefilters.'+payload })
},
}
@@ -1,12 +1,13 @@
import { GetterTree } from 'vuex'
import {GuiConsolefiltersState, GuiConsolefiltersStateFilter} from '@/store/gui/consolefilters/types'
import {GuiConsoleState, GuiConsoleStateFilter} from '@/store/gui/console/types'
import {caseInsensitiveSort} from '@/plugins/helpers'
import {timelapseConsoleFilters} from '@/store/variables'
// eslint-disable-next-line
export const getters: GetterTree<GuiConsolefiltersState, any> = {
export const getters: GetterTree<GuiConsoleState, any> = {
getConsolefilters:(state) => {
const consolefilters: GuiConsolefiltersStateFilter[] = []
const consolefilters: GuiConsoleStateFilter[] = []
Object.keys(state.consolefilters).forEach((id: string) => {
consolefilters.push({...state.consolefilters[id], id})
@@ -21,12 +22,8 @@ export const getters: GetterTree<GuiConsolefiltersState, any> = {
if (rootState.gui.console.hideWaitTemperatures)
output.push('^(?:ok\\s+)?(B|C|T\\d*):')
if (rootState.gui.console.hideTlCommands) {
output.push('^_TIMELAPSE_NEW_FRAME')
output.push('^TIMELAPSE_TAKE_FRAME')
output.push('^TIMELAPSE_RENDER')
output.push('^_SET_TIMELAPSE_SETUP')
}
if (rootState.gui.console.hideTlCommands)
timelapseConsoleFilters.forEach((rule: string) => { output.push(rule) })
Object.keys(state.consolefilters).forEach((id: string) => {
const filter = state.consolefilters[id]
+28
View File
@@ -0,0 +1,28 @@
import { Module } from 'vuex'
import { actions } from '@/store/gui/console/actions'
import { mutations } from '@/store/gui/console/mutations'
import { getters } from '@/store/gui/console/getters'
import {GuiConsoleState} from '@/store/gui/console/types'
export const getDefaultState = (): GuiConsoleState => {
return {
hideWaitTemperatures: true,
hideTlCommands: true,
direction: 'table',
entryStyle: 'default',
height: 300,
consolefilters: {},
}
}
// initial state
const state = getDefaultState()
// eslint-disable-next-line
export const console: Module<GuiConsoleState, any> = {
namespaced: true,
state,
getters,
actions,
mutations
}
@@ -1,22 +1,18 @@
import { getDefaultState } from './index'
import {MutationTree} from 'vuex'
import Vue from 'vue'
import {GuiConsolefiltersState} from '@/store/gui/consolefilters/types'
import {GuiConsoleState} from '@/store/gui/console/types'
export const mutations: MutationTree<GuiConsolefiltersState> = {
export const mutations: MutationTree<GuiConsoleState> = {
reset(state) {
Object.assign(state, getDefaultState())
},
initStore(state, payload) {
Vue.set(state, 'consolefilters', payload.value)
},
store(state, payload) {
filterStore(state, payload) {
Vue.set(state.consolefilters, payload.id, payload.values)
},
update(state, payload) {
filterUpdate(state, payload) {
if (payload.id in state.consolefilters) {
const preset = {...state.consolefilters[payload.id]}
Object.assign(preset, payload.values)
@@ -25,7 +21,7 @@ export const mutations: MutationTree<GuiConsolefiltersState> = {
}
},
delete(state, payload) {
filterDelete(state, payload) {
if (payload in state.consolefilters) {
Vue.delete(state.consolefilters, payload)
}
+17
View File
@@ -0,0 +1,17 @@
export interface GuiConsoleState {
hideWaitTemperatures: boolean
hideTlCommands: boolean
direction: 'table' | 'shell'
entryStyle: 'default' | 'compact'
height: number
consolefilters: {
[key: string]: GuiConsoleStateFilter
}
}
export interface GuiConsoleStateFilter {
id?: string | null
bool: boolean
name: string
regex: string
}
-48
View File
@@ -1,48 +0,0 @@
import { ActionTree } from 'vuex'
import {RootState} from '@/store/types'
import { v4 as uuidv4 } from 'uuid'
import Vue from 'vue'
import {GuiConsolefiltersState} from '@/store/gui/consolefilters/types'
export const actions: ActionTree<GuiConsolefiltersState, RootState> = {
reset({ commit }) {
commit('reset')
},
init() {
window.console.debug('init gui/consolefilters')
Vue.$socket.emit('server.database.get_item', { namespace: 'mainsail_consolefilters' }, { action: 'gui/consolefilters/initStore' })
},
initStore({ commit }, payload) {
commit('reset')
commit('initStore', payload)
},
upload(_, payload) {
Vue.$socket.emit('server.database.post_item', { namespace: 'mainsail_consolefilters', key: payload.id, value: payload.value })
},
store({ commit, dispatch, state }, payload) {
const id = uuidv4()
commit('store', { id, values: payload.values })
dispatch('upload', {
id,
value: state.consolefilters[id]
})
},
update({ commit, dispatch, state }, payload) {
commit('update', payload)
dispatch('upload', {
id: payload.id,
value: state.consolefilters[payload.id]
})
},
delete({ commit }, payload) {
commit('delete', payload)
Vue.$socket.emit('server.database.delete_item', { namespace: 'mainsail_consolefilters', key: payload })
},
}
-23
View File
@@ -1,23 +0,0 @@
import { Module } from 'vuex'
import { actions } from '@/store/gui/consolefilters/actions'
import { mutations } from '@/store/gui/consolefilters/mutations'
import { getters } from '@/store/gui/consolefilters/getters'
import {GuiConsolefiltersState} from '@/store/gui/consolefilters/types'
export const getDefaultState = (): GuiConsolefiltersState => {
return {
consolefilters: {},
}
}
// initial state
const state = getDefaultState()
// eslint-disable-next-line
export const consolefilters: Module<GuiConsolefiltersState, any> = {
namespaced: true,
state,
getters,
actions,
mutations
}
-12
View File
@@ -1,12 +0,0 @@
export interface GuiConsolefiltersState {
consolefilters: {
[key: string]: GuiConsolefiltersStateFilter
}
}
export interface GuiConsolefiltersStateFilter {
id?: string | null
bool: boolean
name: string
regex: string
}
+25
View File
@@ -0,0 +1,25 @@
import { ActionTree } from 'vuex'
import {RootState} from '@/store/types'
import Vue from 'vue'
import {GuiGcodehistoryState} from '@/store/gui/gcodehistory/types'
import {maxGcodeHistory} from '@/store/variables'
export const actions: ActionTree<GuiGcodehistoryState, RootState> = {
reset({ commit }) {
commit('reset')
},
upload({ state }) {
Vue.$socket.emit('server.database.post_item', { namespace: 'mainsail', key: 'gcodehistory.entries', value: state.entries })
},
async addToHistory({ commit, dispatch, state }, payload) {
const newHistory = [...state.entries]
newHistory.push(payload)
while (newHistory.length > maxGcodeHistory) newHistory.splice(0, 1)
await commit('updateHistory', newHistory)
await dispatch('upload')
}
}
+7
View File
@@ -0,0 +1,7 @@
import { GetterTree } from 'vuex'
import {GuiGcodehistoryState} from '@/store/gui/gcodehistory/types'
// eslint-disable-next-line
export const getters: GetterTree<GuiGcodehistoryState, any> = {
}
+23
View File
@@ -0,0 +1,23 @@
import { Module } from 'vuex'
import { actions } from '@/store/gui/gcodehistory/actions'
import { mutations } from '@/store/gui/gcodehistory/mutations'
import { getters } from '@/store/gui/gcodehistory/getters'
import {GuiGcodehistoryState} from '@/store/gui/gcodehistory/types'
export const getDefaultState = (): GuiGcodehistoryState => {
return {
entries: [],
}
}
// initial state
const state = getDefaultState()
// eslint-disable-next-line
export const gcodehistory: Module<GuiGcodehistoryState, any> = {
namespaced: true,
state,
getters,
actions,
mutations
}
+14
View File
@@ -0,0 +1,14 @@
import { getDefaultState } from './index'
import {MutationTree} from 'vuex'
import Vue from 'vue'
import {GuiGcodehistoryState} from '@/store/gui/gcodehistory/types'
export const mutations: MutationTree<GuiGcodehistoryState> = {
reset(state) {
Object.assign(state, getDefaultState())
},
updateHistory(state, payload) {
Vue.set(state, 'entries', payload)
},
}
+3
View File
@@ -0,0 +1,3 @@
export interface GuiGcodehistoryState {
entries: string[]
}
+14 -13
View File
@@ -1,25 +1,25 @@
import {GetterTree} from 'vuex'
import {GuiState} from '@/store/gui/types'
import {GuiMacrogroupsStateMacrogroup} from '@/store/gui/macrogroups/types'
import {GuiMacrosStateMacrogroup} from '@/store/gui/macros/types'
// eslint-disable-next-line
export const getters: GetterTree<GuiState, any> = {
getDatasetValue: (state) => (payload: { name: string, type: string }) => {
if (
payload.name in state.tempchart.datasetSettings &&
payload.type in state.tempchart.datasetSettings[payload.name]
) return state.tempchart.datasetSettings[payload.name][payload.type]
payload.name in state.view.tempchart.datasetSettings &&
payload.type in state.view.tempchart.datasetSettings[payload.name]
) return state.view.tempchart.datasetSettings[payload.name][payload.type]
return ['temperature', 'target'].includes(payload.type)
},
getDatasetAdditionalSensorValue: (state) => (payload: { name: string, sensor: string }) => {
if (
payload.name in state.tempchart.datasetSettings &&
'additionalSensors' in state.tempchart.datasetSettings[payload.name] &&
payload.sensor in state.tempchart.datasetSettings[payload.name].additionalSensors
) return state.tempchart.datasetSettings[payload.name].additionalSensors[payload.sensor]
payload.name in state.view.tempchart.datasetSettings &&
'additionalSensors' in state.view.tempchart.datasetSettings[payload.name] &&
payload.sensor in state.view.tempchart.datasetSettings[payload.name].additionalSensors
) return state.view.tempchart.datasetSettings[payload.name].additionalSensors[payload.sensor]
return true
},
@@ -28,19 +28,20 @@ export const getters: GetterTree<GuiState, any> = {
return !state.dashboard.nonExpandPanels?.includes(name) ?? true
},
getPanels: (state, getters) => (viewport: string) => {
getPanels: (state, getters, rootState) => (viewport: string) => {
// @ts-ignore
let panels = state.dashboard[viewport]?.filter((element: any) => element !== null) ?? []
if (state.dashboard.macroManagement === 'simple') panels = panels.filter((element: any) => !element.name.startsWith('macrogroup_'))
if (rootState.gui.macros.mode === 'simple') panels = panels.filter((element: any) => !element.name.startsWith('macrogroup_'))
else {
panels = panels.filter((element: any) => element.name !== 'macros')
const macrogroups = getters['macrogroups/getAllMacrogroups']
const macrogroups = getters['macros/getAllMacrogroups']
if (macrogroups.length) {
panels = panels.filter((element: any) => {
if (!element.name.startsWith('macrogroup_')) return true
const macrogroupId = element.name.substr(11)
return (macrogroups.findIndex((macrogroup: GuiMacrogroupsStateMacrogroup) => macrogroup.id === macrogroupId) !== -1)
return (macrogroups.findIndex((macrogroup: GuiMacrosStateMacrogroup) => macrogroup.id === macrogroupId) !== -1)
})
}
}
@@ -53,6 +54,6 @@ export const getters: GetterTree<GuiState, any> = {
},
getLockedSliders: (state) => (name: string) => {
return state.dashboard.lockedSliders?.includes(name) ?? false
return state.view.lockedSliders?.includes(name) ?? false
}
}
+139 -147
View File
@@ -6,8 +6,9 @@ import { getters } from '@/store/gui/getters'
import {defaultLogoColor, defaultPrimaryColor} from '@/store/variables'
// load modules
import { consolefilters } from '@/store/gui/consolefilters'
import { macrogroups } from '@/store/gui/macrogroups'
import { console } from '@/store/gui/console'
import { gcodehistory } from '@/store/gui/gcodehistory'
import { macros } from '@/store/gui/macros'
import { presets } from '@/store/gui/presets'
import { remoteprinters } from '@/store/gui/remoteprinters'
import { webcams } from '@/store/gui/webcams'
@@ -17,174 +18,85 @@ export const getDefaultState = (): GuiState => {
general: {
printername: '',
language: 'en',
displayCancelPrint: false,
displayZOffsetStandby: false,
lockSlidersOnTouchDevices: true,
lockSlidersDelay: 1.5,
confirmOnEmergencyStop: false,
confirmOnPowerDeviceChange: false,
calcEstimateTime: ['file', 'filament'],
calcEtaTime: ['file', 'filament', 'slicer'],
calcEtaTime: ['file', 'filament', 'slicer']
},
theme: {
logo: defaultLogoColor,
primary: defaultPrimaryColor,
},
dashboard: {
boolTempchart: true,
boolBigThumbnail: true,
boolWideNavDrawer: false,
navigationStyle: 'iconsAndText',
macroManagement: 'simple',
hiddenMacros: [],
hiddenTempChart: [],
control: {
style: 'bars',
feedrateXY: 100,
stepsXY: [ 100, 10, 1 ],
feedrateZ: 25,
stepsZ: [ 25, 1, 0.1 ],
stepsAll: [0.1, 1, 10, 25, 50, 100],
stepsCircleXY: [1, 10, 50, 100],
stepsCircleZ: [0.1, 1, 10, 50],
selectedCrossStep: null,
reverseX: false,
reverseY: false,
reverseZ: false
},
control: {
style: 'bars',
feedrateXY: 100,
stepsXY: [ 100, 10, 1 ],
feedrateZ: 25,
stepsZ: [ 25, 1, 0.1 ],
stepsAll: [0.1, 1, 10, 25, 50, 100],
stepsCircleXY: [1, 10, 50, 100],
stepsCircleZ: [0.1, 1, 10, 50],
selectedCrossStep: null,
reverseX: false,
reverseY: false,
reverseZ: false,
extruder: {
feedamount: 25,
feedamounts: [ 50, 25, 10, 5, 1 ],
feedrate: 5,
feedrates: [ 15, 10, 5, 2, 1 ],
},
},
dashboard: {
nonExpandPanels: [],
mobileLayout: [
{ 'name': 'webcam', visable: false },
{ 'name': 'zoffset', visable: true },
{ 'name': 'control', visable: true },
{ 'name': 'macros', visable: true },
{ 'name': 'printsettings', visable: true },
{ 'name': 'machine-settings', visable: true },
{ 'name': 'miscellaneous', visable: true },
{ 'name': 'tools', visable: true },
{ 'name': 'miniconsole', visable: false },
{ 'name': 'webcam', visible: false },
{ 'name': 'zoffset', visible: true },
{ 'name': 'control', visible: true },
{ 'name': 'macros', visible: true },
{ 'name': 'printsettings', visible: true },
{ 'name': 'machine-settings', visible: true },
{ 'name': 'miscellaneous', visible: true },
{ 'name': 'tools', visible: true },
{ 'name': 'miniconsole', visible: false },
],
tabletLayout1: [
{ 'name': 'webcam', visable: true },
{ 'name': 'zoffset', visable: true },
{ 'name': 'control', visable: true },
{ 'name': 'macros', visable: true },
{ 'name': 'printsettings', visable: true },
{ 'name': 'machine-settings', visable: true },
{ 'name': 'miscellaneous', visable: true },
{ 'name': 'webcam', visible: true },
{ 'name': 'zoffset', visible: true },
{ 'name': 'control', visible: true },
{ 'name': 'macros', visible: true },
{ 'name': 'printsettings', visible: true },
{ 'name': 'machine-settings', visible: true },
{ 'name': 'miscellaneous', visible: true },
],
tabletLayout2: [
{ 'name': 'tools', visable: true },
{ 'name': 'miniconsole', visable: true },
{ 'name': 'tools', visible: true },
{ 'name': 'miniconsole', visible: true },
],
desktopLayout1: [
{ 'name': 'webcam', visable: true },
{ 'name': 'zoffset', visable: true },
{ 'name': 'control', visable: true },
{ 'name': 'macros', visable: true },
{ 'name': 'printsettings', visable: true },
{ 'name': 'machine-settings', visable: true },
{ 'name': 'miscellaneous', visable: true },
{ 'name': 'webcam', visible: true },
{ 'name': 'zoffset', visible: true },
{ 'name': 'control', visible: true },
{ 'name': 'macros', visible: true },
{ 'name': 'printsettings', visible: true },
{ 'name': 'machine-settings', visible: true },
{ 'name': 'miscellaneous', visible: true },
],
desktopLayout2: [
{ 'name': 'tools', visable: true },
{ 'name': 'miniconsole', visable: true },
{ 'name': 'tools', visible: true },
{ 'name': 'miniconsole', visible: true },
],
widescreenLayout1: [
{ 'name': 'zoffset', visable: true },
{ 'name': 'control', visable: true },
{ 'name': 'macros', visable: true },
{ 'name': 'miscellaneous', visable: true },
{ 'name': 'zoffset', visible: true },
{ 'name': 'control', visible: true },
{ 'name': 'macros', visible: true },
{ 'name': 'miscellaneous', visible: true },
],
widescreenLayout2: [
{ 'name': 'tools', visable: true },
{ 'name': 'printsettings', visable: true },
{ 'name': 'machine-settings', visable: true },
{ 'name': 'tools', visible: true },
{ 'name': 'printsettings', visible: true },
{ 'name': 'machine-settings', visible: true },
],
widescreenLayout3: [
{ 'name': 'webcam', visable: true },
{ 'name': 'miniconsole', visable: true },
{ 'name': 'webcam', visible: true },
{ 'name': 'miniconsole', visible: true },
],
nonExpandPanels: []
},
webcamSettings: {
currentCam: {
dashboard: 'all',
page: 'all'
},
boolNavi: false,
},
tempchart: {
autoscale: false,
datasetSettings: {
},
},
console: {
hideWaitTemperatures: true,
hideTlCommands: true,
direction: 'table',
entryStyle: 'default',
height: 300
},
gcodefiles: {
countPerPage: 10,
sortBy: 'modified',
sortDesc: true,
showHiddenFiles: false,
showPrintedFiles: true,
hideMetadataColums: []
},
timelapse: {
countPerPage: 10,
sortBy: 'modified',
sortDesc: true,
showHiddenFiles: false,
},
jobqueue: {
countPerPage: 10,
},
heightmap: {
probed: true,
mesh: false,
flat: false,
wireframe: true,
scale: 0.5,
scaleVisualMap: false,
},
history: {
countPerPage: 10,
toggleChartCol3: 'filament_usage',
hidePrintStatus: [],
hideColums: [
'size',
'modified',
'end_time',
'total_duration',
'filament_total',
'first_layer_extr_temp',
'first_layer_bed_temp',
'first_layer_height',
'layer_height',
'object_height',
]
},
settings: {
configfiles: {
countPerPage: 10,
sortBy: 'filename',
sortDesc: false,
showHiddenFiles: false,
hideBackupFiles: false
}
},
editor: {
minimap: false,
escToClose: true,
confirmUnsavedChanges: true
},
@@ -193,7 +105,7 @@ export const getDefaultState = (): GuiState => {
gridColor : '#0000FF',
backgroundColor : '#000000',
colorMode : 2,
showAxes : 'true',
showAxes : true,
minFeed : 20,
maxFeed : 100,
minFeedColor : '#0000FF',
@@ -210,6 +122,85 @@ export const getDefaultState = (): GuiState => {
voxelHeight: 1,
specularLighting: false,
},
uiSettings: {
logo: defaultLogoColor,
primary: defaultPrimaryColor,
displayCancelPrint: false,
displayZOffsetStandby: false,
lockSlidersOnTouchDevices: true,
lockSlidersDelay: 1.5,
confirmOnEmergencyStop: false,
confirmOnPowerDeviceChange: false,
boolBigThumbnail: true,
boolWideNavDrawer: false,
boolHideUploadAndPrintButton: false,
boolWebcamNavi: false,
navigationStyle: 'iconsAndText',
},
view: {
configfiles: {
countPerPage: 10,
sortBy: 'filename',
sortDesc: false,
showHiddenFiles: false,
hideBackupFiles: false
},
gcodefiles: {
countPerPage: 10,
sortBy: 'modified',
sortDesc: true,
showHiddenFiles: false,
showPrintedFiles: true,
hideMetadataColums: []
},
heightmap: {
probed: true,
mesh: false,
flat: false,
wireframe: true,
scale: 0.5,
scaleVisualMap: false,
},
history: {
countPerPage: 10,
toggleChartCol3: 'filament_usage',
hidePrintStatus: [],
hideColums: [
'size',
'modified',
'end_time',
'total_duration',
'filament_total',
'first_layer_extr_temp',
'first_layer_bed_temp',
'first_layer_height',
'layer_height',
'object_height',
]
},
jobqueue: {
countPerPage: 10,
},
lockedSliders: [],
tempchart: {
boolTempchart: true,
hiddenDataset: [],
autoscale: false,
datasetSettings: { },
},
timelapse: {
countPerPage: 10,
sortBy: 'modified',
sortDesc: true,
showHiddenFiles: false,
},
webcam: {
currentCam: {
dashboard: 'all',
page: 'all'
},
},
},
}
}
@@ -223,8 +214,9 @@ export const gui: Module<GuiState, any> = {
actions,
mutations,
modules: {
consolefilters,
macrogroups,
console,
gcodehistory,
macros,
presets,
remoteprinters,
webcams,
-23
View File
@@ -1,23 +0,0 @@
import { Module } from 'vuex'
import { actions } from '@/store/gui/macrogroups/actions'
import { mutations } from '@/store/gui/macrogroups/mutations'
import { getters } from '@/store/gui/macrogroups/getters'
import {GuiMacrogroupsState} from '@/store/gui/macrogroups/types'
export const getDefaultState = (): GuiMacrogroupsState => {
return {
macrogroups: {},
}
}
// initial state
const state = getDefaultState()
// eslint-disable-next-line
export const macrogroups: Module<GuiMacrogroupsState, any> = {
namespaced: true,
state,
getters,
actions,
mutations
}
@@ -2,64 +2,62 @@ import { ActionTree } from 'vuex'
import {RootState} from '@/store/types'
import { v4 as uuidv4 } from 'uuid'
import Vue from 'vue'
import {GuiMacrogroupsState} from '@/store/gui/macrogroups/types'
import {GuiMacrosState} from '@/store/gui/macros/types'
export const actions: ActionTree<GuiMacrogroupsState, RootState> = {
export const actions: ActionTree<GuiMacrosState, RootState> = {
reset({ commit }) {
commit('reset')
},
init() {
window.console.debug('init gui/macrogroups')
Vue.$socket.emit('server.database.get_item', { namespace: 'mainsail_macrogroups' }, { action: 'gui/macrogroups/initStore' })
saveSetting({ dispatch }, payload) {
dispatch('gui/saveSetting', {
name: 'macros.'+payload.name,
value: payload.value
}, { root: true })
},
initStore({ commit }, payload) {
commit('reset')
commit('initStore', payload)
groupUpload({ state }, id) {
Vue.$socket.emit('server.database.post_item', { namespace: 'mainsail', key: 'macros.macrogroups.'+id, value: state.macrogroups[id] })
},
upload({ state }, id) {
Vue.$socket.emit('server.database.post_item', { namespace: 'mainsail_macrogroups', key: id, value: state.macrogroups[id] })
},
async store({ commit, dispatch, state }, payload) {
async groupStore({ commit, dispatch, state }, payload) {
const id = uuidv4()
await commit('store', { id, values: payload.values })
await dispatch('upload', id)
await commit('groupStore', { id, values: payload.values })
await dispatch('groupUpload', id)
return id
},
update({ commit, dispatch, state }, payload) {
commit('update', payload)
dispatch('upload', payload.id)
groupUpdate({ commit, dispatch, state }, payload) {
commit('groupUpdate', payload)
dispatch('groupUpload', payload.id)
},
addMacroToMacrogroup({ commit, dispatch }, payload) {
commit('addMacroToMacrogroup', payload)
dispatch('upload', payload.id)
dispatch('groupUpload', payload.id)
},
updateMacroFromMacrogroup({ commit, dispatch }, payload) {
commit('updateMacroFromMacrogroup', payload)
dispatch('upload', payload.id)
dispatch('groupUpload', payload.id)
},
removeMacroFromMacrogroup({ commit, dispatch }, payload) {
commit('removeMacroFromMacrogroup', payload)
dispatch('upload', payload.id)
dispatch('groupUpload', payload.id)
},
delete({ commit, dispatch, rootState }, id) {
commit('delete', id)
Vue.$socket.emit('server.database.delete_item', { namespace: 'mainsail_macrogroups', key: id })
groupDelete({ commit, dispatch, rootState }, id) {
commit('groupDelete', id)
Vue.$socket.emit('server.database.delete_item', { namespace: 'mainsail', key: 'macros.macrogroups.'+id })
const layouts = ['mobileLayout', 'tabletLayout1', 'tabletLayout2', 'desktopLayout1', 'desktopLayout2',
'widescreenLayout1', 'widescreenLayout2', 'widescreenLayout3']
layouts.forEach((layoutname: string) => {
// @ts-ignore
const layoutArray = [...rootState.gui?.dashboard[layoutname]]
const index = layoutArray.findIndex((layoutPos: any) => layoutPos.name === 'macrogroup_'+id)
@@ -67,6 +65,7 @@ export const actions: ActionTree<GuiMacrogroupsState, RootState> = {
commit('gui/deleteFromDashboardLayout', { layoutname, index }, { root: true })
dispatch('gui/updateSettings', {
keyName: 'dashboard.'+layoutname,
// @ts-ignore
newVal: rootState.gui?.dashboard[layoutname]
}, { root: true })
}
Loaded 100 of 127 files, more files were not shown because too many files have changed in this diff. Show more