Compare commits
206
Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
e919a81536 | ||
|
|
d6b98639c1 | ||
|
|
4ac9b56775 | ||
|
|
e0c1330c4a | ||
|
|
0d89f42935 | ||
|
|
1e5c6c39de | ||
|
|
ff782d9d04 | ||
|
|
61c2ba38b0 | ||
|
|
65cb342cb8 | ||
|
|
81e78e770c | ||
|
|
5ed63ed27f | ||
|
|
c831d33873 | ||
|
|
55df4da104 | ||
|
|
e3db2731ab | ||
|
|
f81c253e85 | ||
|
|
ec67ab3033 | ||
|
|
8acf2b3b7e | ||
|
|
3d14e8ba46 | ||
|
|
450c3db1e6 | ||
|
|
39dbebb2d2 | ||
|
|
94f60516c1 | ||
|
|
098c946dde | ||
|
|
97020863d2 | ||
|
|
d1218aa0f5 | ||
|
|
dc4a322420 | ||
|
|
2ff9e5a111 | ||
|
|
058688d470 | ||
|
|
26ed70b4a7 | ||
|
|
7b3781ebaf | ||
|
|
52ad699f92 | ||
|
|
b2335b16f2 | ||
|
|
a339cabc7d | ||
|
|
b6966f05ee | ||
|
|
c1b344e94c | ||
|
|
35f30aef4f | ||
|
|
da72a4e272 | ||
|
|
e5b0ad292b | ||
|
|
a54813a167 | ||
|
|
95a13c9c44 | ||
|
|
d1905f100a | ||
|
|
a3a12882f8 | ||
|
|
ffa05ee1d5 | ||
|
|
ea49345138 | ||
|
|
83e10bde0c | ||
|
|
9895622cfa | ||
|
|
c38716ba2a | ||
|
|
88ecdcc3c6 | ||
|
|
11f97d6289 | ||
|
|
706ed470c4 | ||
|
|
a6c927508f | ||
|
|
eeac987784 | ||
|
|
275a268c43 | ||
|
|
9c37383787 | ||
|
|
bc353a060d | ||
|
|
5286be32b1 | ||
|
|
3bb52a566e | ||
|
|
64e7626e04 | ||
|
|
deb81094d0 | ||
|
|
667bb2976d | ||
|
|
f404895126 | ||
|
|
6a2617075b | ||
|
|
2f984a6d5b | ||
|
|
d16f0e0fdf | ||
|
|
d91e3a64ba | ||
|
|
81a7289194 | ||
|
|
4f65bd4ba2 | ||
|
|
1934e29bad | ||
|
|
73f445d005 | ||
|
|
e45d7d69d2 | ||
|
|
cd6a5c3b4a | ||
|
|
0c4601e23a | ||
|
|
abec546575 | ||
|
|
93dd1e3034 | ||
|
|
1decdd2c57 | ||
|
|
093cd7c5d4 | ||
|
|
a20bab62a5 | ||
|
|
02ebeb8371 | ||
|
|
814f23213e | ||
|
|
f2a33a8e48 | ||
|
|
9df182f44a | ||
|
|
ec832488a9 | ||
|
|
07d9b75425 | ||
|
|
a150d11e81 | ||
|
|
cb87b4c198 | ||
|
|
f4b393053d | ||
|
|
97ace01908 | ||
|
|
63f438671f | ||
|
|
9a8c208930 | ||
|
|
f8bbc5e97c | ||
|
|
25d1267a07 | ||
|
|
1e090484ae | ||
|
|
62f95cddf5 | ||
|
|
5e865aa670 | ||
|
|
5b33db421d | ||
|
|
684e65ed59 | ||
|
|
7f6e6e5bdf | ||
|
|
c4181443e6 | ||
|
|
a51d2167d0 | ||
|
|
6c4bbdb5f9 | ||
|
|
b0e7e503ed | ||
|
|
fae1cc4ab6 | ||
|
|
dda7a488bb | ||
|
|
a33d26f17a | ||
|
|
53d85223e8 | ||
|
|
003586cb7a | ||
|
|
253ff4900c | ||
|
|
91f2b2fa05 | ||
|
|
f6f7fce424 | ||
|
|
f0e3a0a77a | ||
|
|
d190657221 | ||
|
|
0ba9d9c6b6 | ||
|
|
36b8acdcd9 | ||
|
|
648bbe581e | ||
|
|
0bbab2182f | ||
|
|
1298da15f2 | ||
|
|
945a3f8eaf | ||
|
|
abe66b4557 | ||
|
|
37a08a3a37 | ||
|
|
6844e6242c | ||
|
|
de4efb514c | ||
|
|
9d9e914533 | ||
|
|
4037715c8d | ||
|
|
f1724206f6 | ||
|
|
7005b87870 | ||
|
|
06cb14db46 | ||
|
|
25062e5a36 | ||
|
|
ca368867e2 | ||
|
|
d654518c65 | ||
|
|
8021d5a7ad | ||
|
|
cb4910758e | ||
|
|
af1809e025 | ||
|
|
6277a7380d | ||
|
|
3bfeb4613c | ||
|
|
e68bc016b6 | ||
|
|
0cf0311c54 | ||
|
|
8110b2f7b7 | ||
|
|
04ead521b0 | ||
|
|
f6fe02a347 | ||
|
|
8ef89d42f0 | ||
|
|
fe264e6142 | ||
|
|
dd3c897b75 | ||
|
|
d3ee2f920b | ||
|
|
95ebc25434 | ||
|
|
b533955bc3 | ||
|
|
501b012bdb | ||
|
|
69eb41923d | ||
|
|
1187216d5b | ||
|
|
61bb2dcac1 | ||
|
|
79b42aa588 | ||
|
|
9f506f8cbf | ||
|
|
b6527b471a | ||
|
|
85436a0cd6 | ||
|
|
1a6792b6b5 | ||
|
|
7b66065e77 | ||
|
|
7aad8f905d | ||
|
|
881ebbd49a | ||
|
|
8a87d8a144 | ||
|
|
6912dc027e | ||
|
|
123426c6ec | ||
|
|
869423f4c6 | ||
|
|
d92543e1c3 | ||
|
|
460fa71c70 | ||
|
|
1a7a23205b | ||
|
|
3f0f76e2d9 | ||
|
|
46381879e3 | ||
|
|
5218b0baea | ||
|
|
ce09984983 | ||
|
|
9bcbfa48de | ||
|
|
43674bf2d5 | ||
|
|
2ebd3a8396 | ||
|
|
eaba28e24b | ||
|
|
51602fe69c | ||
|
|
ee6a603fae | ||
|
|
34f2eb3189 | ||
|
|
b6cfb0fd88 | ||
|
|
5d2400ccbe | ||
|
|
a75b133dea | ||
|
|
f1ab29e4e6 | ||
|
|
bc5731e0bf | ||
|
|
44309b37df | ||
|
|
fbead2efb1 | ||
|
|
b6c2901908 | ||
|
|
3f4eeadb6f | ||
|
|
678eda0e8c | ||
|
|
3784d8e9c0 | ||
|
|
ae1fa8736a | ||
|
|
30b0469ffd | ||
|
|
7ab6f32d3a | ||
|
|
f60811255f | ||
|
|
47dd6ad6d9 | ||
|
|
64f7c2bebd | ||
|
|
d4b1be9fcc | ||
|
|
1779cca828 | ||
|
|
46e8821821 | ||
|
|
470a00c288 | ||
|
|
ad52728131 | ||
|
|
5d94063973 | ||
|
|
0bcfc4b582 | ||
|
|
57aa96420c | ||
|
|
eef899c19e | ||
|
|
94c1f35f9c | ||
|
|
ed82856140 | ||
|
|
a581be6aec | ||
|
|
a2d90df97c | ||
|
|
6fa1c28bc4 | ||
|
|
86ab389b32 |
No files matched your search
@@ -3,3 +3,4 @@ Dracula,,steadyjaw,dracula-mainsail-theme
|
||||
Cyberpunk,,Dario-Ciceri,cp2077-mainsail-theme
|
||||
Mainsail x Voron Toolhead,Various toolhead images inside the theme folder can be renamed to 'sidebar-background.png',eriroh,Mainsail-x-Voron-Toolhead-Theme
|
||||
Rat Rig (unofficial), includes various sidebar images which can be renamed to ‘sidebar-background.png’,Raabi91,ratrig-mainsail-theme
|
||||
Cryd,,Crykor90,Mainsail-Theme-by-Cryd
|
||||
|
@@ -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 |
@@ -11,7 +11,7 @@ permalink: /configuration
|
||||
**Mainsail requires a minimum configuration to function properly and will display a warning at startup if the required parts are not found in your configuration file(s).**
|
||||
{: .warning}
|
||||
|
||||
The following configuration elements are mandatory and must be configured for Mainsail to operate:
|
||||
The following configuration elements are mandatory and must be configured for Mainsail to operate correctly:
|
||||
|
||||
* [Virtual SD Card](configuration#virtual_sdcard)
|
||||
* [Display Status](configuration#display_status)
|
||||
@@ -22,28 +22,28 @@ The following configuration elements are optional, including making tweaks and a
|
||||
* [Custom Commands](configuration#customisation)
|
||||
|
||||
## Virtual SD Card
|
||||
This allows gcode file uploads.
|
||||
The `Virtual SD Card` allows gcode file uploads.
|
||||
```yaml
|
||||
[virtual_sdcard]
|
||||
path: ~/gcode_files
|
||||
```
|
||||
|
||||
## Display Status
|
||||
This is required for messages in your status panel, if you don't have a `[display]` in your configuration.
|
||||
`Display Status` is required for messages in your status panel, if you don't have `[display]` in your configuration.
|
||||
```yaml
|
||||
[display_status]
|
||||
```
|
||||
|
||||
## Pause, Resume, Cancel
|
||||
This enables pause / resume in mainsail.
|
||||
These macros enable pause and resume in Klipper.
|
||||
|
||||
```yaml
|
||||
[pause_resume]
|
||||
```
|
||||
|
||||
# Macros
|
||||
## for pause / resume / cancel functionality
|
||||
These should be modified to your own needs.
|
||||
## Add pause / resume / cancel functionality
|
||||
You can modify the below macros to fit your needs.
|
||||
{% raw %}
|
||||
```yaml
|
||||
[gcode_macro PAUSE]
|
||||
@@ -118,12 +118,12 @@ gcode:
|
||||
# Optional
|
||||
|
||||
## Customisation
|
||||
Klipper has many canned/preset commands that are themselves just macros.
|
||||
Klipper has a number of preset commands that are also just macros.
|
||||
|
||||
The default configuration of these may not suit your needs or preferences, (though they are usually a good place to start). It's possible to adjust these by including them in your config, along with whatever code you would like to run.
|
||||
The default configuration of these may not suit your needs or preferences, though they are usually a good place to start. It's possible to adjust these by including them in your config, along with any additional code you would like to run.
|
||||
|
||||
## Example
|
||||
Adjusting the `BED_MESH_CALIBRATE` command (which can be run from the Sidebar > Heightmap > Calibrate.
|
||||
Adjusting the `BED_MESH_CALIBRATE` command, which is found in the menu at Sidebar > Heightmap > Calibrate.
|
||||
{% raw %}
|
||||
```yaml
|
||||
[gcode_macro BED_MESH_CALIBRATE]
|
||||
|
||||
@@ -28,7 +28,7 @@ This would define a macro called `PRINT_START` that can be called with an `EXTRU
|
||||
```yaml
|
||||
[gcode_macro PRINT_START]
|
||||
gcode:
|
||||
{% set EXTRUDER_TEMP = params.EXTRUDER|default(10)|int %}
|
||||
{% set EXTRUDER_TEMP = params.EXTRUDER|default(230)|int %}
|
||||
```
|
||||
{% endraw %}
|
||||
Take note of the following important aspects:
|
||||
|
||||
@@ -11,6 +11,18 @@ has_toc: false
|
||||
|
||||
# Deprecated Values
|
||||
|
||||
###### NTC 100K beta 3950
|
||||
## Removal of `NTC 100K beta 3950` sensor type.
|
||||
|
||||
The "NTC 100K beta 3950" temperature sensor is _deprecated_ and will be removed in the near future.
|
||||
|
||||
In order to solve the problem search in your config for `sensor_type: NTC 100K beta 3950` and replace it with `sensor_type: Generic 3950`.
|
||||
|
||||
Most users will find the "Generic 3950" temperature sensor more accurate. Anyway you can continue to use the older (typically less accurate) definition. Therefor define a custom thermistor with `temperature1: 25`, `resistance1: 100000`, and `beta: 3950`.
|
||||
|
||||
[Source](https://www.klipper3d.org/Config_Changes.html){:target="_blank"} Klipper Configuration Changes
|
||||
{: .info}
|
||||
|
||||
###### rpi_temperature
|
||||
## Removal of `rpi_temperature` sensor alias.
|
||||
|
||||
|
||||
+11
-11
@@ -6,7 +6,7 @@ has_children: false
|
||||
---
|
||||
|
||||
# Welcome to Mainsail!
|
||||
Mainsail aims to make Klipper more accessible to end users through a lightweight, responsive web ui, centred around an intuitive and consistent design philsophy.
|
||||
Mainsail makes Klipper more accessible by adding a lightweight, responsive web user interface, centred around an intuitive and consistent design philosophy..
|
||||
{: .fs-5 }
|
||||
|
||||
[Getting Started](/setup){: .btn .btn-primary }
|
||||
@@ -17,30 +17,30 @@ Mainsail aims to make Klipper more accessible to end users through a lightweight
|
||||

|
||||
|
||||
## Features
|
||||
- Optimized for desktops, tablets and mobile devices
|
||||
- Responsive web interface, optimized for desktops, tablets and mobile devices
|
||||
- Supports multiple 3D printers (Printer Farm)
|
||||
- Localization (i18n)
|
||||
- File Manager (gcode and config files)
|
||||
- File Editor (gcode and config files)
|
||||
- Print History / Stats
|
||||
- Print History and Statistics
|
||||
- Temperature Presets (with custom gcode)
|
||||
- Bed Mesh Leveling
|
||||
- Multi-Webcam support
|
||||
- Control power devices (relays, TPLink, Tasmota, ..)
|
||||
- Customizable UI (logos, backgrounds & even custom css)
|
||||
- Control power devices such as relays, TPLink and Tasmota devices, and more
|
||||
- Customizable user interface including logos, backgrounds, and custom CSS
|
||||
|
||||
## Get support & assistance
|
||||
Do you need help or just want to talk? Join us on discord. We have a very active community.
|
||||
Have you found a bug? Then we would like you to create an Issue on GitHub.
|
||||
## Help and Support
|
||||
Do you need help or just want to talk? Join our active community on Discord.
|
||||
Have you found a bug? Please create an Issue in GitHub and let us know.
|
||||
|
||||
[Discord](https://discord.gg/skWTwTD){: .btn}{:target="_blank"}
|
||||
[GitHub Issues](https://github.com/mainsail-crew/mainsail/issues){: .btn}{:target="_blank"}
|
||||
|
||||
## Support this project
|
||||
The project is primarily developed and maintained by meteyou. To keep the project going he invests his free time, almost every day. To motivate him (☕🍺😜) there are several ways to support the project.
|
||||
## Support Mainsail
|
||||
Mainsail is primarily developed and maintained by `meteyou`. To keep the project going he invests his free time, almost every day. To motivate him (☕🍺😜) there are several ways to support him:
|
||||
|
||||
- [Patreon (recurring)](https://patreon.com/meteyou){:target="_blank"}
|
||||
- [Ko-Fi (one-time)](https://ko-fi.com/mainsail){:target="_blank"}
|
||||
|
||||
However, we would also like to ask you to support the regular contributors.
|
||||
Please also support all of our maintainers and contributors.
|
||||
{: .info}
|
||||
@@ -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 %}
|
||||
@@ -8,40 +8,49 @@ description: >-
|
||||
---
|
||||
|
||||
# {{ page.title }}
|
||||
{: .no_toc}
|
||||
{{ page.description }}
|
||||
|
||||

|
||||
|
||||
### 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".
|
||||
|
||||

|
||||
|
||||
### 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.
|
||||
|
||||

|
||||
|
||||
### 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.
|
||||
|
||||

|
||||
|
||||
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)
|
||||
|
||||

|
||||
|
||||
### 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`).
|
||||
|
||||
@@ -9,18 +9,17 @@ has_toc: false
|
||||
# Setup Guides
|
||||
|
||||
## Local installation
|
||||
Decide which route you want to follow for the installation. There are several ways to install Mainsail on a Raspberry Pi:
|
||||
You will need to choose which way you want to install Mainsail on a Raspberry Pi:
|
||||
|
||||
- [MainsailOS](mainsail-os.md) <span class="label label-red">recommended</span>
|
||||
A prebuilt image for your Raspberry Pi. Flash it and you are almost ready to go.
|
||||
A prebuilt image for your Raspberry Pi. Preconfigured and requires the least amount of setup.
|
||||
- [KIAUH](kiauh.md) - _Klipper Installation And Update Helper_
|
||||
A script toolbox to install and keep Klipper, Moonraker and Mainsail up to date. It contains many additional features and is the way to go for multiprinter setups.
|
||||
A script toolbox to install and update Klipper, Moonraker and Mainsail. KIAUH contains additional features and is recommended for multi-printer setups.
|
||||
- [Manual Setup](manual-setup/index.md)
|
||||
The rocky road. If you want to know how everything is set up by hand, you will get all the information here.
|
||||
The rocky road for the daring. For those who want to know how everything is set up manually.
|
||||
|
||||
## Hosted
|
||||
|
||||
Setup [remote access](../quicktips/remote-access) without installing/configuring a web server!
|
||||
{: .info}
|
||||
You an also setup [remote access](../quicktips/remote-access) without installing or configuring a web server.
|
||||
|
||||
A hosted instance of Mainsail can be found and used at [my.mainsail.xyz](http://my.mainsail.xyz), check out the [documentation](mainsail-hosted) for usage and configuration.
|
||||
You can test and review a hosted version of Mainsail at [my.mainsail.xyz](http://my.mainsail.xyz). Please read the [documentation](mainsail-hosted) for usage and configuration.
|
||||
@@ -8,8 +8,8 @@ permalink: /setup/kiauh
|
||||
---
|
||||
# Installing Mainsail with KIAUH
|
||||
|
||||
[KIAUH](https://github.com/th33xitus/kiauh) is a handy tool that helps you install or upgrade Klipper, Moonraker, Mainsail and various other extensions easily and comfortably.
|
||||
[KIAUH](https://github.com/th33xitus/kiauh) is a tool that helps you install or upgrade Klipper, Moonraker, Mainsail, and other extensions.
|
||||
|
||||

|
||||
|
||||
For more information and get to the guide click [here](https://github.com/th33xitus/kiauh).
|
||||
You can visit [KIAUH on GitHub](https://github.com/th33xitus/kiauh) to learn more and view its documentation.
|
||||
@@ -13,25 +13,22 @@ permalink: /setup/mainsail-hosted
|
||||
Mainsail and MainsailOS respect [Data Privacy](../data-privacy).
|
||||
{: .info}
|
||||
|
||||
The hosted version of mainsail can be used:
|
||||
|
||||
* On the same (local) network as your printer.
|
||||
* On a remote (different) network to your printer (requires the configuration of [remote access](../quicktips/remote-access)).
|
||||
The hosted version of Mainsail can be used on the same local network with your printer or on a different remote to network and requires you to setup [remote access](../quicktips/remote-access).
|
||||
|
||||
## Requirements
|
||||
|
||||
- MainsailOS and KIAUH are preconfigured to meet the requirements for the hosted service to work.
|
||||
- If you have a manual installation, then the following requirements must be met:
|
||||
* Klipper must be installed.
|
||||
* Moonraker must be installed.
|
||||
* my.mainsail.xyz must be configured as a CORS domain in moonraker.conf.
|
||||
- MainsailOS and KIAUH are preconfigured to meet the requirements for the hosted service.
|
||||
- If you have a manual installation, the following requirements must be met:
|
||||
* Klipper
|
||||
* Moonraker
|
||||
* `my.mainsail.xyz` must be configured as a CORS domain in `moonraker.conf`.
|
||||
|
||||
## Editing moonraker.conf
|
||||
### Editing moonraker.conf for remote access
|
||||
|
||||
Further information can be found in the Moonraker [documentation](https://moonraker.readthedocs.io/en/latest/configuration/#authorization)
|
||||
You can learn more about editing Moonraker's authorization [configuration documentation here.](https://moonraker.readthedocs.io/en/latest/configuration/#authorization)
|
||||
{: .info}
|
||||
|
||||
To allow [my.mainsail.xyz](http://my.mainsail.xyz) to access your local installation, navigate to moonraker.conf open it and add the following code:
|
||||
To configure [my.mainsail.xyz](http://my.mainsail.xyz) for access with your local installation, open `moonraker.conf` and add the following `authorization` section:
|
||||
|
||||
```yml
|
||||
[authorization]
|
||||
|
||||
@@ -10,13 +10,13 @@ permalink: /setup/mainsail-os
|
||||
|
||||
# Installing MainsailOS
|
||||
|
||||
MainsailOS builds upon RaspberryOS-Lite by incorporating Klipper, Moonraker and Mainsail into one disc image, making them more accessible and quicker to setup than before.
|
||||
MainsailOS builds upon Raspberry Pi OS Lite by including Klipper, Moonraker, and Mainsail into the disc image, making setup quick and Mainsail easier to use with Klipper and Moonraker.
|
||||
|
||||
Complex/custom configurations may be better suited to a [manual](manual-setup/index.md) installation of Mainsail.
|
||||
Advanced users may want more complex and custom configurations and Mainsail can be [manually installed](manual-setup/index.md).
|
||||
|
||||
If you are familiar with the flashing process, then please use your preferred method as you normally would.
|
||||
If you are familiar with process to flash the firmware, then please use your preferred method as you normally would.
|
||||
|
||||
If however you are unfamiliar with the flashing process then we have documented two methods to flash MainsailOS to your SD card:
|
||||
If however you are unfamiliar with the flashing process we have documented two methods to flash MainsailOS to your SD card:
|
||||
|
||||
* [Raspberry Pi Imager](mainsailos/pi-imager) (cross-platform, easiest) <span class="label label-red">recommended</span>
|
||||
* [Balena Etcher](mainsailos/balena-etcher) (requires manual setup)
|
||||
@@ -47,6 +47,7 @@ balenaEtcher appearance may vary depending on the host OS.
|
||||

|
||||
|
||||
* 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}
|
||||
|
||||
|
||||
@@ -11,54 +11,55 @@ permalink: /setup/mainsailos/first-boot
|
||||
|
||||
# First boot
|
||||
|
||||
Insert the flashed SD card into your Pi and connect other desired/necessary hardware (ethernet, USB to 3D printer, webcam).
|
||||
Insert the flashed SD card into your Pi and connect any other hardware such a network cable, USB cable to the 3D printer, or a webcam.
|
||||
|
||||
Power on the Pi and leave it to boot.
|
||||
Power on the Pi and let it boot up.
|
||||
|
||||
**The initial boot of MainsailOS may take some time to expand your "root" filesystem. The larger the SD card, the longer the first boot will take.**
|
||||
{: .warning}
|
||||
|
||||
Initially the green LED on the Pi will be extremely active. After some time it will only intermittently flicker, indicating it has likely completed the boot sequence.
|
||||
|
||||
The web ui should now be ready to access on your local network:
|
||||
The web interface should now be ready to access on your local network:
|
||||
|
||||
```
|
||||
http://mainsailos.local
|
||||
http://<IP address of your pi>
|
||||
```
|
||||
or
|
||||
```
|
||||
http://<IP address of your Pi>
|
||||
```
|
||||
|
||||
## Mainsail.cfg
|
||||
|
||||
**Important:** Include the mainsail.cfg into your printer.cfg
|
||||
**Important:** Include `mainsail.cfg` in your printer.cfg file
|
||||
{: .warning}
|
||||
|
||||
Mainsail will not work unless Klipper is told to include its configuration. This can be achieved either by placing the contents of mainsail.cfg into your printer.cfg.
|
||||
Mainsail will not work correctly until `mainsail.cfg` is included in Klipper's configuration file. Open Klipper's default `printer.cfg` file in Mainsail's file manager located in `Settings > Machine`. If you do not have a `printer.cfg` file, you can create one. Add the following line to `printer.cfg`
|
||||
|
||||
To do this, open the default printer.cfg in the Mainsail web GUI:
|
||||
```
|
||||
[include mainsail.cfg]
|
||||
```
|
||||
|
||||

|
||||
|
||||

|
||||
|
||||
Add the following line:
|
||||
|
||||
```yml
|
||||
[include mainsail.cfg]
|
||||
```
|
||||
and click on the "Save & Restart" button.
|
||||
and click on the`Save & Restart` button.
|
||||
|
||||
## Updates
|
||||
|
||||
Once you've successfully navigated to the Mainsail web ui we _thoroughly_ recommend that you run updates.
|
||||
Once you've successfully navigated to the Mainsail's web interface it is _strongly_ recommend that you run any available updates.
|
||||
{: .info}
|
||||
|
||||
Klipper, Moonraker and Mainsail have fast development cycles and whilst we do our best to ensure MainsailOS ships as close to the bleeding edge as we can, there will always be a short delay before releases make it into the image.
|
||||
Klipper, Moonraker and Mainsail have fast development cycles and while we do our best to ensure MainsailOS ships as close to upstream as we can, there will always be a short delay before releases make it into MainsailOS' image.
|
||||
|
||||
We recommend that you enable and use the [built in update-manager](../../update/update-manager) to perform a system update, then update the stack components (Klipper, Moonraker, Mainsail)
|
||||
It is recommended that you enable and use the [built in update-manager](../../update/update-manager) to perform any system updates, then update Klipper, Moonraker, Mainsail as needed.
|
||||
|
||||

|
||||
|
||||
|
||||
MainsailOS is now configured, and we can get Klipper's [printer.cfg](klipper-setup) setup.
|
||||
MainsailOS is now configured, and Klipper's configuration file, [printer.cfg], can be setup.
|
||||
|
||||
---
|
||||
[< tool selection](../mainsail-os.md){: .btn } [next step >](klipper-setup){: .btn }
|
||||
|
||||
@@ -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 }
|
||||
|
||||
|
||||
@@ -5,19 +5,19 @@ parent: Setup Guides
|
||||
nav_order: 5
|
||||
has_children: false
|
||||
has_toc: false
|
||||
permalink: /setup/mainsailos/pre-flight
|
||||
permalink: /setup/pre-flight
|
||||
---
|
||||
|
||||
# Preflight Checklist
|
||||
|
||||
A quick run-through to check no important steps have been missed during installation and configuration.
|
||||
You may wish to review the list below to make sure you have not missed any important steps during the setup process.
|
||||
|
||||
| Installed software components: | Configured: | Performed: |
|
||||
| Installed software components: | Configured: | Completed: |
|
||||
| :-- | :-- | :-- |
|
||||
| ✅ MainsailOS<br> **OR** <br> ✅ Klipper<br> ✅ Moonraker<br> ✅ Mainsail<br> | ✅ Network<br> ✅ [Configured printer.cfg](k>
|
||||
| ✅ MainsailOS<br> **OR** <br> ✅ Klipper<br> ✅ Moonraker<br> ✅ Mainsail<br> | ✅ Network<br> ✅ [Configured printer.cfg](mainsailos/klipper-setup)<br> ✅ [Included mainsail.cfg](mainsailos/first-boot#mainsailcfg)| ✅ Updates<br> ✅ Klipper verification(s)|
|
||||
|
||||
# Time to print
|
||||
# Time to print!
|
||||
|
||||
If you've covered all the steps, you should now have a complete software stack ready to perform calibration prints!
|
||||
If you have performed all of the installation steps, your installation should be complete and you are ready to start calibrating and printing with your 3D printer.
|
||||
|
||||
**Thank you for choosing Mainsail**
|
||||
Vendored
+5
-1
@@ -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>
|
||||
@@ -7,9 +7,10 @@ permalink: /update/
|
||||
has_toc: false
|
||||
---
|
||||
|
||||
There are currently two methods to update either via the web interface, or manually.
|
||||
There are two methods to update Mainsail: from Mainsail's interface in your web browser or by manually updating.
|
||||
|
||||
- [Update Manager](update-manager) <span class="label label-red">recommended</span>
|
||||
A built in update utility found in the web ui, under the machine tab.
|
||||
- [Manual Update](manual-update)
|
||||
Guides on manual update methods for each component; Klipper, Moonraker and Mainsail.
|
||||
|
||||
- [Update Manager Guide](update-manager) <span class="label label-red">(Recommended)</span>
|
||||
Update Klipper, Moonraker and Mainsail in your web browser using Mainsail. This is the recommended method.
|
||||
- [Manual Update Guide](manual-update)
|
||||
Review the included guides on how to manually update each component, including Klipper, Moonraker, and Mainsail.
|
||||
@@ -8,16 +8,18 @@ permalink: /update/klipper
|
||||
|
||||
## Klipper
|
||||
### Update from Repository
|
||||
|
||||
To update Klipper directly from its repository, run the following command in a terminal:
|
||||
|
||||
```bash
|
||||
cd ~/klipper
|
||||
git pull
|
||||
```
|
||||
|
||||
Restart Klipper (`sudo service klipper restart`) and check the `klippy.log`, if Klipper starts
|
||||
correctly and then continue the guide.
|
||||
Restart Klipper using the command `sudo service klipper restart` and check the `klippy.log`. if Klipper started correctly without any errors you may continue.
|
||||
|
||||
### Klipper config changes
|
||||
If you have issues after update your Klipper instance, you can check config changes [here](https://github.com/KevinOConnor/klipper/blob/master/docs/Config_Changes.md).
|
||||
### Klipper configuration changes
|
||||
If you have any issues after updating your Klipper instance, you can check the configuration changes [here](https://github.com/KevinOConnor/klipper/blob/master/docs/Config_Changes.md).
|
||||
|
||||
---
|
||||
[< table of contents](index.md){: .btn } [next step >](moonraker.md){: .btn}
|
||||
@@ -6,20 +6,26 @@ nav_order: 4
|
||||
permalink: /update/mainsail
|
||||
---
|
||||
|
||||
## Mainsail
|
||||
## Updating Mainsail
|
||||
|
||||
To update Mainsail manually, run the commands below in your terminal:
|
||||
|
||||
```bash
|
||||
cd ~/mainsail
|
||||
rm -R ./*
|
||||
wget -q -O mainsail.zip https://github.com/mainsail-crew/mainsail/releases/latest/download/mainsail.zip && unzip mainsail.zip && rm mainsail.zip
|
||||
```
|
||||
|
||||
### Move gui.json from gcodes to klipper_config
|
||||
This is only necessary if you update from 0.2.2 to 0.2.3 or higher. If you use MainsailOS, the virtual_sdcard directory is `gcode_files` instead of `sdcard`.
|
||||
### Updating from 0.2.2 to 0.2.3 or higher
|
||||
|
||||
If you are updating from Mainsail version 0.2.2 to a newer version, you must move the file `gui.json` from the `gcodes` directory to the `klipper_config' directory.
|
||||
|
||||
This is only necessary when updating from 0.2.2 to 0.2.3 or higher. If you use MainsailOS, the virtual_sdcard directory is `gcode_files` instead of `sdcard`.
|
||||
```
|
||||
mv ~/sdcard/gui.json ~/klipper_config/
|
||||
```
|
||||
|
||||
Now it should be possible to open the interface: `http://<printer-ip>/`.
|
||||
You should now be able to open Mainsail in your web browser at `http://<printer-ip>/`.
|
||||
|
||||
---
|
||||
[< previous step](moonraker.md){: .btn }
|
||||
@@ -6,21 +6,26 @@ nav_order: 3
|
||||
permalink: /update/moonraker
|
||||
---
|
||||
|
||||
## Moonraker
|
||||
## Updating Moonraker
|
||||
|
||||
To update Moonraker directly from its repository, run the following command in a terminal:
|
||||
|
||||
```bash
|
||||
cd ~/moonraker
|
||||
git pull
|
||||
```
|
||||
|
||||
Restart Moonraker (`sudo service moonraker restart`) and open the url `http://<printer-ip>:7125/printer/info` in your browser.
|
||||
Restart Moonraker using the command `sudo service moonraker restart` and open the URL `http://<printer-ip>:7125/printer/info` in your browser.
|
||||
|
||||
If you see a content like this
|
||||
Your printer is updated and ready if you see the following message:
|
||||
```
|
||||
{"result": {"hostname": "voron250", "error_detected": false, "version": "v0.8.0-643-g528f9f25", "is_ready": true, "message": "Printer is ready", "cpu": "4 core ARMv7 Processor rev 4 (v7l)"}}
|
||||
```
|
||||
|
||||
### Add Moonraker update manager
|
||||
To use the update manager in Mainsail you have to add this in your moonraker.conf:
|
||||
### Add Moonraker to the update manager
|
||||
|
||||
If you want to update Moonraker using the update manager, you need to add the following section to your printer's `moonraker.conf`:
|
||||
|
||||
```
|
||||
[update_manager]
|
||||
|
||||
@@ -30,21 +35,21 @@ repo: mainsail-crew/mainsail
|
||||
path: ~/mainsail
|
||||
```
|
||||
|
||||
### Change Moonraker to systemd service (December 6th 2020)
|
||||
Moonraker is now installed as a systemd service. If `moonraker.conf` is not located in the home directory, the command will looks something like the following:
|
||||
### Moonraker as a systemd service
|
||||
As of December 2020, Moonraker is added as a systemd service during installation. If `moonraker.conf` is not located in the home directory, run this command in your terminal:
|
||||
```bash
|
||||
~/moonraker/scripts/install-moonraker.sh -f -c /home/pi/klipper_config/moonraker.conf
|
||||
```
|
||||
This allows logging to stdout which can be viewed with the `journalctl -u moonraker command`.
|
||||
This allows logging to `stdout` which can be viewed with the command `journalctl -u moonraker` in your terminal.
|
||||
|
||||
### Update Moonraker dependence
|
||||
This is only nessasary, if you see missing modules in the moonraker log.
|
||||
### Update Moonraker's dependencies
|
||||
Updating Moonraker's dependecencies manually is only needed if you see missing modules in the Moonraker log. You can run the following command to update Moonraker's dependencies:
|
||||
```bash
|
||||
~/moonraker/scripts/install-moonraker.sh -r
|
||||
```
|
||||
|
||||
### Moonraker config changes
|
||||
If you have issues after update your Moonraker instance, you can check config changes [here](https://github.com/Arksine/moonraker/blob/master/docs/user_changes.md).
|
||||
### Moonraker configuration changes
|
||||
If you have issues after updating Moonraker, please review the list of changes requiring user intervention [here](https://github.com/Arksine/moonraker/blob/master/docs/user_changes.md).
|
||||
|
||||
---
|
||||
[< previous step](klipper.md){: .btn } [next step >](mainsail.md){: .btn }
|
||||
@@ -9,18 +9,18 @@ permalink: /update/update-manager
|
||||
|
||||
# Update Manager
|
||||
|
||||
You can find further information on this topic by checking out the [Moonraker documentation](https://github.com/Arksine/moonraker/blob/master/docs/configuration.md#update_manager){:target="_blank"}.
|
||||
You can find further information on this topic in the [Moonraker documentation](https://github.com/Arksine/moonraker/blob/master/docs/configuration.md#update_manager){:target="_blank"}.
|
||||
{: .info}
|
||||
|
||||
## Enabling the feature
|
||||
## Enabling Update Manager
|
||||
|
||||
To use the built in Update Manager it must first be enabled by editing the moonraker.conf file:
|
||||
To use the built in Update Manager it must first be enabled by editing the `moonraker.conf` file. From a terminal navigate to Klipper's configuration directory and edit the configuration file:
|
||||
|
||||
```bash
|
||||
cd ~/klipper_config
|
||||
sudo nano moonraker.conf
|
||||
```
|
||||
Add the following section to your printers moonraker.conf:
|
||||
Add the following section to your printer's `moonraker.conf`:
|
||||
|
||||
```yaml
|
||||
[update_manager]
|
||||
@@ -36,18 +36,20 @@ Restart Moonraker:
|
||||
sudo systemctl restart moonraker
|
||||
```
|
||||
|
||||
## Using the Web UI
|
||||
## Using Mainsail to Update
|
||||
|
||||
With the manager enabled reload the web ui and select the 'machine' tab from the sidebar. You should now see the Update Manager panel.
|
||||
With the update manager enabled, reload your web browser and select the 'Machine' tab from the sidebar. You should now see the Update Manager panel.
|
||||
|
||||
Holding shift whilst clicking the browser's refresh button (or pressing ctrl+f5) will force it to reload the page fully (without the cache).
|
||||
Holding shift while clicking the browser's refresh button (or pressing Control + F5) will force it to reload the page fully without the cache.
|
||||
{: .info}
|
||||
|
||||
Typically the update order is top to bottom.
|
||||
The update order is top to bottom.
|
||||
|
||||

|
||||
|
||||
To update a component, click the  button.
|
||||
To update a component, click the 'UPDATE' button next to the component you wish to update:
|
||||
|
||||
A new window will launch and the component will be updated. When the update is finished, the window can be closed.
|
||||

|
||||
|
||||
A popover window will launch and the component will be updated. When the update is finished, you can close the window.
|
||||
|
||||
Generated
+3267
-4158
File diff suppressed because it is too large.
Load diff
+14
-13
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "mainsail",
|
||||
"version": "2.1.0-beta1",
|
||||
"version": "2.1.0-rc1",
|
||||
"private": true,
|
||||
"decription": "a klipper web interface",
|
||||
"author": {
|
||||
@@ -15,24 +15,26 @@
|
||||
},
|
||||
"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.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",
|
||||
"overlayscrollbars": "^1.13.1",
|
||||
"overlayscrollbars-vue": "^0.2.2",
|
||||
"sass-loader": "^10.2.0",
|
||||
"semver": "^7.3.5",
|
||||
@@ -50,7 +52,7 @@
|
||||
"vue-simple-upload": "^0.1.6",
|
||||
"vue-toast-notification": "^0.6.1",
|
||||
"vuedraggable": "^2.24.3",
|
||||
"vuetify": "^2.5.10",
|
||||
"vuetify": "^2.6.1",
|
||||
"vuex": "^3.6.2"
|
||||
},
|
||||
"devDependencies": {
|
||||
@@ -70,7 +72,6 @@
|
||||
"eslint": "^6.8.0",
|
||||
"eslint-plugin-vue": "^6.2.2",
|
||||
"generate-file-webpack-plugin": "^1.0.1",
|
||||
"node-sass": "^6.0.1",
|
||||
"sass": "~1.32",
|
||||
"sw-precache-webpack-plugin": "^1.0.0",
|
||||
"typescript": "^4.3.5",
|
||||
|
||||
+7
-4
@@ -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 {
|
||||
@@ -275,14 +275,17 @@ export default class App extends Mixins(BaseMixin) {
|
||||
}
|
||||
|
||||
appHeight() {
|
||||
const doc = document.documentElement
|
||||
doc.style.setProperty('--app-height', window.innerHeight+'px')
|
||||
this.$nextTick(() => {
|
||||
const doc = document.documentElement
|
||||
doc.style.setProperty('--app-height', window.innerHeight+'px')
|
||||
})
|
||||
}
|
||||
|
||||
mounted(): void {
|
||||
this.drawFavicon(this.print_percent)
|
||||
this.appHeight()
|
||||
window.addEventListener('resize', this.appHeight)
|
||||
window.addEventListener('orientationchange', this.appHeight)
|
||||
}
|
||||
}
|
||||
</script>
|
||||
@@ -13,4 +13,22 @@ $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.KlipperStop')
|
||||
$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')
|
||||
@@ -11,7 +11,7 @@
|
||||
@close="close"
|
||||
@keydown.esc="escClose"
|
||||
>
|
||||
<panel card-class="editor-dialog" icon="mdi-file-document-edit-outline" :title="(filepath ? filepath.slice(1)+'/': '')+filename+' '+changed">
|
||||
<panel card-class="editor-dialog" :icon="(isWriteable ? ' mdi-file-document-edit-outline' : 'mdi-file-document-outline')" :title="(filepath ? filepath.slice(1)+'/': '')+filename+' '+(isWriteable ? changed : '('+$t('Editor.FileReadOnly')+')')">
|
||||
<template v-slot:buttons>
|
||||
<v-btn text tile href="https://www.klipper3d.org/Config_Reference.html" v-if="restartServiceName === 'klipper'" target="_blank" class="d-none d-md-flex"><v-icon small class="mr-1">mdi-help</v-icon>{{ $t('Editor.ConfigReference') }}</v-btn>
|
||||
<v-btn v-if="isWriteable" text tile :color="restartServiceName === null ? 'primary' : ''" @click="save(null)" ><v-icon small class="mr-1">mdi-content-save</v-icon><span class="d-none d-sm-inline">{{ $t('Editor.SaveClose') }}</span></v-btn>
|
||||
|
||||
@@ -4,17 +4,17 @@
|
||||
|
||||
<template>
|
||||
<v-dialog v-model="showDialog" persistent :width="400">
|
||||
<panel card-class="select-printer-dialog" icon="mdi-connection" :title="panelTitle" :margin-bottom="false" toolbar-color="primary">
|
||||
<panel card-class="select-printer-dialog" icon="mdi-connection" :title="panelTitle" :margin-bottom="false" toolbar-color="toolbar">
|
||||
<template v-slot:buttons>
|
||||
<template v-if="!isConnecting && !connectingFailed">
|
||||
<template v-if="dialogEditPrinter.bool"><v-btn icon tile class="minwidth-0" @click="dialogEditPrinter.bool = false"><v-icon>mdi-close-thick</v-icon></v-btn></template>
|
||||
<template v-else-if="dialogAddPrinter.bool"><v-btn icon tile class="minwidth-0" v-if="dialogAddPrinter.bool" @click="dialogAddPrinter.bool = false"><v-icon>mdi-close-thick</v-icon></v-btn></template>
|
||||
<template v-else-if="printers.length > 0"><v-btn icon tile class="minwidth-0" @click="checkPrinters"><v-icon>mdi-sync</v-icon></v-btn></template>
|
||||
<template v-else-if="printers.length > 0"><v-btn icon tile class="minwidth-0" @click="checkPrinters" color="primary"><v-icon>mdi-sync</v-icon></v-btn></template>
|
||||
</template>
|
||||
</template>
|
||||
<template v-if="isConnecting">
|
||||
<v-card-text>
|
||||
<v-progress-linear color="white" indeterminate></v-progress-linear>
|
||||
<v-progress-linear color="primary" indeterminate></v-progress-linear>
|
||||
</v-card-text>
|
||||
</template>
|
||||
<template v-else-if="!isConnecting && connectingFailed">
|
||||
@@ -103,8 +103,9 @@
|
||||
<v-card-actions>
|
||||
<v-btn
|
||||
color="red"
|
||||
text
|
||||
class="minwidth-0"
|
||||
icon
|
||||
tile
|
||||
class="minwidth-0 rounded"
|
||||
@click="delPrinter"
|
||||
>
|
||||
<v-icon small>mdi-delete</v-icon>
|
||||
@@ -124,13 +125,15 @@
|
||||
<v-row v-if="printers.length">
|
||||
<v-col class="px-6">
|
||||
<v-row v-for="(printer, index) in printers" v-bind:key="index">
|
||||
<v-col class="rounded transition-swing secondary py-2 px-2 mb-2" style="cursor: pointer;" @click="connect(printer)">
|
||||
<v-col class="rounded transition-swing toolbar py-2 px-2 mb-2 overflow-hidden" style="cursor: pointer;" @click="connect(printer)">
|
||||
<v-row align="center">
|
||||
<v-col class="col-auto pr-0">
|
||||
<v-progress-circular
|
||||
indeterminate
|
||||
color="primary"
|
||||
v-if="printer.socket.isConnecting"
|
||||
size="24"
|
||||
width="2.5"
|
||||
></v-progress-circular>
|
||||
<v-icon
|
||||
:color="printer.socket.isConnected ? 'green' : 'red'"
|
||||
@@ -138,7 +141,7 @@
|
||||
>mdi-{{ printer.socket.isConnected ? 'checkbox-marked-circle' : 'cancel' }}</v-icon>
|
||||
</v-col>
|
||||
<v-col>{{ getPrinterName(printer.id) }}</v-col>
|
||||
<v-col class="col-auto"><v-btn small class="minwidth-0" v-on:click.stop.prevent="editPrinter(printer)"><v-icon small>mdi-pencil</v-icon></v-btn></v-col>
|
||||
<v-col class="col-auto pa-0"><v-btn tile text icon large class="mr-1" v-on:click.stop.prevent="editPrinter(printer)"><v-icon small>mdi-pencil</v-icon></v-btn></v-col>
|
||||
</v-row>
|
||||
</v-col>
|
||||
</v-row>
|
||||
@@ -153,7 +156,7 @@
|
||||
</v-row>
|
||||
<v-row>
|
||||
<v-col class="text-center mt-0">
|
||||
<v-btn @click="dialogAddPrinter.bool = true">{{ $t("SelectPrinterDialog.AddPrinter") }}</v-btn>
|
||||
<v-btn text color="primary" @click="dialogAddPrinter.bool = true">{{ $t("SelectPrinterDialog.AddPrinter") }}</v-btn>
|
||||
</v-col>
|
||||
</v-row>
|
||||
</v-card-text>
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
<v-btn icon tile @click="showSettings = true">
|
||||
<v-icon>mdi-cogs</v-icon>
|
||||
</v-btn>
|
||||
<v-dialog v-model="showSettings" width="900" persistent :fullscreen="isMobile" @keydown.esc="showSettings = false">
|
||||
<v-dialog v-model="showSettings" width="900" persistent :fullscreen="isMobile" @keydown.esc="showSettings = false" scrollable>
|
||||
<panel :title="$t('Settings.InterfaceSettings')" icon="mdi-cogs" card-class="settings-menu-dialog" :margin-bottom="false" style="overflow: hidden;" :height="isMobile ? 0 : 548">
|
||||
<template v-slot:buttons>
|
||||
<v-btn icon tile @click="showSettings = false"><v-icon>mdi-close-thick</v-icon></v-btn>
|
||||
@@ -35,7 +35,7 @@
|
||||
</v-tabs>
|
||||
</overlay-scrollbars>
|
||||
</v-col>
|
||||
<v-col :class="isMobile ? '' : 'pl-0'" :style="isMobile ? '' : 'width: 700px;'">
|
||||
<v-col :class="isMobile ? '' : 'pl-0'" :style="isMobile ? '' : 'min-width: 500px;'">
|
||||
<overlay-scrollbars :class="'settings-tabs '+(isMobile ? '' : 'height500')" ref="settingsScroll" :options="{ overflowBehavior: { x: 'hidden' } }">
|
||||
<component :is="'settings-'+activeTab+'-tab'" @scrollToTop="scrollToTop"></component>
|
||||
</overlay-scrollbars>
|
||||
@@ -187,17 +187,18 @@ export default class TheSettingsMenu extends Mixins(BaseMixin) {
|
||||
|
||||
<style scoped>
|
||||
.settings-tabs {
|
||||
height: auto;
|
||||
max-height: calc(var(--app-height) - 96px);
|
||||
min-height: 100%;
|
||||
height: calc(var(--app-height) - 96px);
|
||||
}
|
||||
|
||||
.settings-tabs-bar {
|
||||
border-right: 1px solid rgba(255, 255, 255, 0.12);
|
||||
height: 100%;
|
||||
}
|
||||
|
||||
.settings-tabs-bar.height500,
|
||||
.settings-tabs.height500 {
|
||||
max-height: 500px;
|
||||
height: 500px;
|
||||
max-height: calc(var(--app-height) - 111px);
|
||||
}
|
||||
</style>
|
||||
|
||||
|
||||
+134
-49
@@ -2,24 +2,33 @@
|
||||
.nav-logo {
|
||||
height: 32px;
|
||||
}
|
||||
|
||||
.small-list-item {
|
||||
height: var(--sidebar-menu-item-height);
|
||||
}
|
||||
|
||||
.no-text-decoration {
|
||||
text-decoration: none;
|
||||
background-color: transparent;
|
||||
}
|
||||
|
||||
.no-background:before {
|
||||
background-color: rgba(255, 255, 255, 0) !important;
|
||||
}
|
||||
|
||||
.no-border {
|
||||
border: 0 !important;
|
||||
}
|
||||
</style>
|
||||
<style scoped>
|
||||
.active-nav-item {
|
||||
border-right: 4px solid var(--v-primary-base);
|
||||
}
|
||||
|
||||
.menu-item-icon {
|
||||
opacity: .85;
|
||||
}
|
||||
|
||||
.menu-item-title {
|
||||
line-height: 30px;
|
||||
font-size: 14px;
|
||||
@@ -27,43 +36,78 @@
|
||||
text-transform: uppercase;
|
||||
opacity: .85;
|
||||
}
|
||||
|
||||
.nav-scrollbar {
|
||||
height: 100%;
|
||||
}
|
||||
</style>
|
||||
|
||||
<template>
|
||||
<v-navigation-drawer v-model="naviDrawer" :src="sidebarBackground" :mini-variant="(navigationStyle === 'iconsOnly')" :key="navigationStyle" :width="navigationWidth" clipped app>
|
||||
<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-navigation-drawer v-model="naviDrawer" :src="sidebarBackground" :mini-variant="(navigationStyle === 'iconsOnly')" :key="navigationStyle" :width="navigationWidth" :temporary="boolNaviTemp" clipped app :style="sidebarCssVars">
|
||||
<overlay-scrollbars class="nav-scrollbar">
|
||||
<v-list class="pr-0 pt-0 ml-0">
|
||||
<v-list-item-group active-class="active-nav-item">
|
||||
<v-list-item
|
||||
router to="/"
|
||||
:class="'sidebar-logo no-text-decoration no-background no-border ' + ((navigationStyle === 'iconsOnly') ? 'pa-0 justify-center' : '')"
|
||||
:style="'height: ' + topbarHeight + 'px'"
|
||||
:ripple="false"
|
||||
v-if="isMobile"
|
||||
>
|
||||
<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>
|
||||
<template v-if="sidebarLogo">
|
||||
<img :src="sidebarLogo" :style="logoCssVars" class="nav-logo" alt="Logo" />
|
||||
</template>
|
||||
<template v-else>
|
||||
<mainsail-logo :color="logoColor" :style="logoCssVars" class="nav-logo" :ripple="false"></mainsail-logo>
|
||||
</template>
|
||||
<template v-if="navigationStyle !== 'iconsOnly'">
|
||||
<span class="text-h6 font-weight-regular text-truncate"> {{ printerName }} </span>
|
||||
</template>
|
||||
</v-list-item>
|
||||
<template v-if="countPrinters">
|
||||
<v-tooltip right :open-delay="500" :disabled="navigationStyle !== 'iconsOnly'">
|
||||
<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-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-list-item-group>
|
||||
</v-list>
|
||||
</v-list-item>
|
||||
</template>
|
||||
<span>{{ $t("App.Printers") }}</span>
|
||||
</v-tooltip>
|
||||
<v-divider class="my-1"></v-divider>
|
||||
</template>
|
||||
<div v-for="(category, index) in naviPoints" :key="index">
|
||||
<v-tooltip right :open-delay="500" :disabled="navigationStyle !== 'iconsOnly'">
|
||||
<template v-slot:activator="{ on, attrs }">
|
||||
<v-list-item
|
||||
router :to="category.path"
|
||||
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>{{ $t(`Router.${category.title}`) }}</span>
|
||||
</v-tooltip>
|
||||
</div>
|
||||
</v-list-item-group>
|
||||
</v-list>
|
||||
</overlay-scrollbars>
|
||||
<template v-slot:append>
|
||||
<v-list-item class="small-list-item mb-2">
|
||||
<v-list-item-icon class="menu-item-icon">
|
||||
@@ -82,17 +126,20 @@ import BaseMixin from '@/components/mixins/base'
|
||||
import {PrinterStateKlipperConfig} from '@/store/printer/types'
|
||||
import TheSelectPrinterDialog from '@/components/TheSelectPrinterDialog.vue'
|
||||
import AboutModal from '@/components/modals/AboutModal.vue'
|
||||
import {navigationWidth} from '@/store/variables'
|
||||
import {navigationWidth, topbarHeight} from '@/store/variables'
|
||||
import MainsailLogo from '@/components/ui/MainsailLogo.vue'
|
||||
|
||||
@Component({
|
||||
components: {
|
||||
TheSelectPrinterDialog,
|
||||
AboutModal
|
||||
AboutModal,
|
||||
MainsailLogo
|
||||
}
|
||||
})
|
||||
|
||||
export default class TheSidebarAlt extends Mixins(BaseMixin) {
|
||||
export default class TheSidebar extends Mixins(BaseMixin) {
|
||||
navigationWidth = navigationWidth
|
||||
topbarHeight = topbarHeight
|
||||
|
||||
get naviDrawer(): boolean {
|
||||
return this.$store.state.naviDrawer
|
||||
@@ -103,7 +150,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 {
|
||||
@@ -111,7 +158,9 @@ export default class TheSidebarAlt extends Mixins(BaseMixin) {
|
||||
}
|
||||
|
||||
get naviPoints(): AppRoute[] {
|
||||
return routes.filter((element) => element.showInNavi)
|
||||
return routes.filter((element) => {
|
||||
return element.showInNavi && this.showInNavi(element)
|
||||
})
|
||||
}
|
||||
|
||||
get klippy_state(): string {
|
||||
@@ -119,7 +168,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,22 +187,58 @@ 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']
|
||||
}
|
||||
|
||||
get boolNaviTemp(): boolean {
|
||||
if(!this.isMobile && this.$vuetify.breakpoint.mdAndDown) {
|
||||
return true
|
||||
}
|
||||
return false
|
||||
}
|
||||
|
||||
get sidebarCssVars(): any {
|
||||
if(this.boolNaviTemp){
|
||||
return {
|
||||
'top': `${topbarHeight}px !important`,
|
||||
'padding-bottom': `${topbarHeight}px`
|
||||
}
|
||||
}
|
||||
return {}
|
||||
}
|
||||
|
||||
get sidebarLogo(): string {
|
||||
return this.$store.getters['files/getSidebarLogo']
|
||||
}
|
||||
|
||||
get logoColor(): string {
|
||||
return this.$store.state.gui.uiSettings.logo
|
||||
}
|
||||
|
||||
get printerName():string {
|
||||
if (this.$store.state.gui.general.printername.length)
|
||||
return this.$store.state.gui.general.printername
|
||||
|
||||
return this.$store.state.printer.hostname
|
||||
}
|
||||
|
||||
get logoCssVars() {
|
||||
if(this.navigationStyle !== 'iconsOnly'){
|
||||
return {
|
||||
'margin-right': '16px'
|
||||
}
|
||||
}
|
||||
return {}
|
||||
}
|
||||
|
||||
showInNavi(route: AppRoute): boolean {
|
||||
if (['shutdown', 'error', 'disconnected'].includes(this.klippy_state) && !route.alwaysShow) return false
|
||||
|
||||
if (route.title === 'Webcam') return this.boolNaviWebcam
|
||||
|
||||
if (route.moonrakerComponent) return this.moonrakerComponents.includes(route.moonrakerComponent)
|
||||
if (route.registeredDirectory) return this.registeredDirectories.includes(route.registeredDirectory)
|
||||
if (route.klipperComponent) return (route.klipperComponent in this.klipperConfigfileSettings)
|
||||
else if (route.title === 'Webcam' && !this.boolNaviWebcam) return false
|
||||
else if (route.moonrakerComponent && !this.moonrakerComponents.includes(route.moonrakerComponent)) return false
|
||||
else if (route.registeredDirectory && !this.registeredDirectories.includes(route.registeredDirectory)) return false
|
||||
else if (route.klipperComponent && !(route.klipperComponent in this.klipperConfigfileSettings)) return false
|
||||
else if (route.klipperIsConnected && !this.klippyIsConnected) return false
|
||||
|
||||
return true
|
||||
}
|
||||
|
||||
@@ -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>
|
||||
@@ -75,7 +75,7 @@
|
||||
</v-menu>
|
||||
<v-dialog v-model="dialogPowerDeviceChange.show" width="400" :fullscreen="isMobile">
|
||||
<v-card>
|
||||
<v-card-title class="headline">{{ $t(this.dialogPowerDeviceChange.value === 'off' ? 'PowerDeviceChangeDialog.TurnDeviceOn' : 'PowerDeviceChangeDialog.TurnDeviceOff', {'device': dialogPowerDeviceChange.device}) }}</v-card-title>
|
||||
<v-card-title class="headline">{{ this.dialogPowerDeviceChange.value === 'off' ? $t('PowerDeviceChangeDialog.TurnDeviceOn', {'device': dialogPowerDeviceChange.device}) : $t('PowerDeviceChangeDialog.TurnDeviceOff', {'device': dialogPowerDeviceChange.device}) }}</v-card-title>
|
||||
<v-card-text>{{ $t('PowerDeviceChangeDialog.AreYouSure') }}</v-card-text>
|
||||
<v-card-actions>
|
||||
<v-spacer></v-spacer>
|
||||
@@ -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-alert" :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="error" @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,36 @@ 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 if (serviceName === 'klipper' && action === 'Restart') this.dialogConfirmation.description = this.$t('App.TopCornerMenu.ConfirmationDialog.Description.KlipperRestart')+''
|
||||
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 +241,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()
|
||||
}
|
||||
}
|
||||
|
||||
@@ -15,6 +15,11 @@
|
||||
.topbar .v-btn.v-btn--icon {
|
||||
width: var(--topbar-icon-btn-width) !important;
|
||||
}
|
||||
@media (min-width: 768px) {
|
||||
header.topbar {
|
||||
z-index: 8 !important;
|
||||
}
|
||||
}
|
||||
</style>
|
||||
|
||||
<template>
|
||||
@@ -198,7 +203,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 +211,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 +219,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
|
||||
}
|
||||
|
||||
@@ -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' })
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -25,8 +25,8 @@
|
||||
|
||||
<template>
|
||||
<v-row :class="'ma-0 '+entryStyle">
|
||||
<v-col class="col-auto pr-0">{{ event.formatTime }}</v-col>
|
||||
<v-col :class="colorConsoleMessage(event)" v-html="event.formatMessage" @click.capture="commandClick"></v-col>
|
||||
<v-col class="col-auto pr-0 text--disabled console-time">{{ event.formatTime }}</v-col>
|
||||
<v-col :class="colorConsoleMessage(event) + ' ' + 'console-message'" v-html="event.formatMessage" @click.capture="commandClick"></v-col>
|
||||
</v-row>
|
||||
</template>
|
||||
|
||||
@@ -46,9 +46,9 @@ export default class ConsoleTableEntry extends Vue {
|
||||
}
|
||||
|
||||
colorConsoleMessage(item: ServerStateEvent): string {
|
||||
if (item.message.startsWith('!! ')) return 'red--text'
|
||||
if (item.message.startsWith('!! ')) return 'error--text'
|
||||
|
||||
return ''
|
||||
return 'text--primary'
|
||||
}
|
||||
|
||||
commandClick(event: Event) {
|
||||
|
||||
@@ -2,20 +2,39 @@
|
||||
<style>
|
||||
.viewer {
|
||||
width: 100%;
|
||||
height: calc(var(--app-height) - 250px);
|
||||
height: calc(var(--app-height) - 266px);
|
||||
border: 1px solid #3f3f3f;
|
||||
}
|
||||
|
||||
.slider-autoheight,
|
||||
.slider-autoheight .v-slider {
|
||||
height: calc(var(--app-height) - 250px);
|
||||
height: calc(var(--app-height) - 286px);
|
||||
}
|
||||
|
||||
@media (min-width: 600px) and (max-width: 959px) {
|
||||
.viewer {
|
||||
height: calc(var(--app-height) - 318px);
|
||||
}
|
||||
.slider-autoheight,
|
||||
.slider-autoheight .v-slider {
|
||||
height: calc(var(--app-height) - 338px);
|
||||
}
|
||||
}
|
||||
|
||||
@media (max-width: 599px) {
|
||||
.viewer {
|
||||
height: calc(var(--app-height) - 356px);
|
||||
}
|
||||
.slider-autoheight,
|
||||
.slider-autoheight .v-slider {
|
||||
height: calc(var(--app-height) - 376px);
|
||||
}
|
||||
}
|
||||
|
||||
.slider-autoheight .v-slider {
|
||||
margin-top: 0;
|
||||
margin-bottom: 0;
|
||||
}
|
||||
|
||||
.slider-autoheight .v-input__slot {
|
||||
height: 100%;
|
||||
}
|
||||
@@ -50,8 +69,8 @@
|
||||
class="ml-3"
|
||||
v-show="reloadRequired"
|
||||
>
|
||||
<span v-show="$vuetify.breakpoint.smAndUp">{{$t("GCodeViewer.ReloadRequired")}}</span>
|
||||
<v-icon v-show="$vuetify.breakpoint.xs">mdi-reload-alert</v-icon>
|
||||
<span class="d-none d-sm-block">{{$t("GCodeViewer.ReloadRequired")}}</span>
|
||||
<v-icon class="d-sm-none">mdi-reload-alert</v-icon>
|
||||
</v-btn>
|
||||
<v-btn icon tile @click="resetCamera"><v-icon>mdi-camera-retake</v-icon></v-btn>
|
||||
</template>
|
||||
@@ -63,70 +82,68 @@
|
||||
<v-col class="col-auto pr-6">
|
||||
<v-slider
|
||||
vertical
|
||||
:disabled="tracking"
|
||||
:disabled="loading || !loadedFile"
|
||||
:max="maxZSlider"
|
||||
:min="0"
|
||||
:value="zSlider"
|
||||
class="slider-autoheight"
|
||||
class="slider-autoheight mt-3"
|
||||
@input="updateZSlider"
|
||||
></v-slider>
|
||||
</v-col>
|
||||
</v-row>
|
||||
<v-row class="mt-0">
|
||||
<v-col>
|
||||
<v-select :items="colorModes" :label="$t('GCodeViewer.ColorMode')" item-text="text" dense v-model="colorMode" hide-details outlined></v-select>
|
||||
</v-col>
|
||||
<v-col class="text-center">
|
||||
<template v-if="loadedFile === null">
|
||||
<v-btn @click="loadCurrentFile" class="mr-3" v-if="sdCardFilePath !== '' && sdCardFilePath !== loadedFile">{{ $t("GCodeViewer.LoadCurrentFile")}}</v-btn>
|
||||
<v-btn @click="chooseFile">{{ $t("GCodeViewer.LoadLocal") }}</v-btn>
|
||||
</template>
|
||||
<template v-else>
|
||||
<v-btn @click="tracking=!tracking" v-if="showTrackingButton" class="mr-3"><v-icon v-html="tracking ? 'mdi-toggle-switch' : 'mdi-toggle-switch-off-outline'" class="mr-2"></v-icon>{{ $t("GCodeViewer.Tracking") }}</v-btn>
|
||||
<v-btn @click="clearLoadedFile">{{ $t("GCodeViewer.ClearLoadedFile") }}</v-btn>
|
||||
</template>
|
||||
</v-col>
|
||||
<v-row class="mt-0 d-flex align-top">
|
||||
<v-col>
|
||||
<v-row>
|
||||
<v-col>
|
||||
<v-select :items="renderQualities" :label="$t('GCodeViewer.RenderQuality')" item-text="label" dense v-model="renderQuality" hide-details outlined></v-select>
|
||||
<v-col order-md="2" class="d-flex align-content-space-around justify-center flex-wrap flex-md-nowrap col-12 col-md-4">
|
||||
<template v-if="loadedFile === null">
|
||||
<v-btn @click="loadCurrentFile" class="mr-3" v-if="sdCardFilePath !== '' && sdCardFilePath !== loadedFile">{{ $t("GCodeViewer.LoadCurrentFile")}}</v-btn>
|
||||
<v-btn @click="chooseFile">{{ $t("GCodeViewer.LoadLocal") }}</v-btn>
|
||||
</template>
|
||||
<template v-else>
|
||||
<v-btn @click="tracking=!tracking" class="mr-3" v-if="showTrackingButton"><v-icon v-html="tracking ? 'mdi-toggle-switch' : 'mdi-toggle-switch-off-outline'" class="mr-2"></v-icon>{{ $t("GCodeViewer.Tracking") }}</v-btn>
|
||||
<v-btn @click="clearLoadedFile">{{ $t("GCodeViewer.ClearLoadedFile") }}</v-btn>
|
||||
</template>
|
||||
</v-col>
|
||||
<v-col class="col-auto">
|
||||
<v-menu :offset-y="true" :offset-x="true" top :close-on-content-click="false" :title="$t('Files.SetupCurrentList')">
|
||||
<template v-slot:activator="{ on, attrs }">
|
||||
<v-btn class="minwidth-0 px-2" v-bind="attrs" v-on="on"><v-icon>mdi-cog</v-icon></v-btn>
|
||||
</template>
|
||||
<v-list>
|
||||
<v-list-item class="minHeight36">
|
||||
<v-checkbox class="mt-0" hide-details v-model="showCursor" :label="$t('GCodeViewer.ShowToolhead')"></v-checkbox>
|
||||
</v-list-item>
|
||||
<v-list-item class="minHeight36">
|
||||
<v-checkbox class="mt-0" hide-details v-model="showTravelMoves" :label="$t('GCodeViewer.ShowTravelMoves')"></v-checkbox>
|
||||
</v-list-item>
|
||||
<v-list-item class="minHeight36" v-if="loadedFile === sdCardFilePath && printing_objects.length > 1">
|
||||
<v-checkbox class="mt-0" hide-details v-model="showObjectSelection" :label="$t('GCodeViewer.ShowObjectSelection')"></v-checkbox>
|
||||
</v-list-item>
|
||||
<v-divider></v-divider>
|
||||
<v-list-item class="minHeight36">
|
||||
<v-checkbox class="mt-0" hide-details v-model="hdRendering" :label="$t('GCodeViewer.HDRendering')"></v-checkbox>
|
||||
</v-list-item>
|
||||
<v-list-item class="minHeight36">
|
||||
<v-checkbox class="mt-0" hide-details v-model="forceLineRendering" :label="$t('GCodeViewer.ForceLineRendering')"></v-checkbox>
|
||||
</v-list-item>
|
||||
<v-list-item class="minHeight36">
|
||||
<v-checkbox class="mt-0" hide-details v-model="transparency" :label="$t('GCodeViewer.Transparency')"></v-checkbox>
|
||||
</v-list-item>
|
||||
<v-list-item class="minHeight36">
|
||||
<v-checkbox class="mt-0" hide-details v-model="voxelMode" :label="$t('GCodeViewer.VoxelMode')"></v-checkbox>
|
||||
</v-list-item>
|
||||
<v-list-item class="minHeight36">
|
||||
<v-checkbox class="mt-0" hide-details v-model="specularLighting" :label="$t('GCodeViewer.SpecularLighting')"></v-checkbox>
|
||||
</v-list-item>
|
||||
</v-list>
|
||||
</v-menu>
|
||||
<v-col class="col-12 col-sm-6 col-md-4">
|
||||
<v-select :items="colorModes" :label="$t('GCodeViewer.ColorMode')" item-text="text" dense v-model="colorMode" hide-details outlined></v-select>
|
||||
</v-col>
|
||||
<v-col order-md="3" class="col-12 col-sm-6 col-md-4">
|
||||
<v-select :items="renderQualities" :label="$t('GCodeViewer.RenderQuality')" item-text="label" dense v-model="renderQuality" hide-details outlined></v-select>
|
||||
</v-col>
|
||||
</v-row>
|
||||
</v-col>
|
||||
<v-menu :offset-y="true" :offset-x="true" top :close-on-content-click="false" :title="$t('Files.SetupCurrentList')">
|
||||
<template v-slot:activator="{ on, attrs }">
|
||||
<v-btn class="minwidth-0 px-2 mr-3 mt-3" v-bind="attrs" v-on="on"><v-icon>mdi-cog</v-icon></v-btn>
|
||||
</template>
|
||||
<v-list>
|
||||
<v-list-item class="minHeight36">
|
||||
<v-checkbox class="mt-0" hide-details v-model="showCursor" :label="$t('GCodeViewer.ShowToolhead')"></v-checkbox>
|
||||
</v-list-item>
|
||||
<v-list-item class="minHeight36">
|
||||
<v-checkbox class="mt-0" hide-details v-model="showTravelMoves" :label="$t('GCodeViewer.ShowTravelMoves')"></v-checkbox>
|
||||
</v-list-item>
|
||||
<v-list-item class="minHeight36" v-if="loadedFile === sdCardFilePath && printing_objects.length > 1">
|
||||
<v-checkbox class="mt-0" hide-details v-model="showObjectSelection" :label="$t('GCodeViewer.ShowObjectSelection')"></v-checkbox>
|
||||
</v-list-item>
|
||||
<v-divider></v-divider>
|
||||
<v-list-item class="minHeight36">
|
||||
<v-checkbox class="mt-0" hide-details v-model="hdRendering" :label="$t('GCodeViewer.HDRendering')"></v-checkbox>
|
||||
</v-list-item>
|
||||
<v-list-item class="minHeight36">
|
||||
<v-checkbox class="mt-0" hide-details v-model="forceLineRendering" :label="$t('GCodeViewer.ForceLineRendering')"></v-checkbox>
|
||||
</v-list-item>
|
||||
<v-list-item class="minHeight36">
|
||||
<v-checkbox class="mt-0" hide-details v-model="transparency" :label="$t('GCodeViewer.Transparency')"></v-checkbox>
|
||||
</v-list-item>
|
||||
<v-list-item class="minHeight36">
|
||||
<v-checkbox class="mt-0" hide-details v-model="voxelMode" :label="$t('GCodeViewer.VoxelMode')"></v-checkbox>
|
||||
</v-list-item>
|
||||
<v-list-item class="minHeight36">
|
||||
<v-checkbox class="mt-0" hide-details v-model="specularLighting" :label="$t('GCodeViewer.SpecularLighting')"></v-checkbox>
|
||||
</v-list-item>
|
||||
</v-list>
|
||||
</v-menu>
|
||||
</v-row>
|
||||
<input :accept="'.g,.gcode,.gc,.gco,.nc,.ngc,.tap'" @change="fileSelected" hidden multiple ref="fileInput" type="file" />
|
||||
</v-card-text>
|
||||
@@ -234,6 +251,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 +262,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 +277,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 +304,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)
|
||||
@@ -303,7 +327,8 @@ export default class Viewer extends Mixins(BaseMixin) {
|
||||
viewerInit(element: HTMLCanvasElement) {
|
||||
viewer = new GCodeViewer(element)
|
||||
viewer.init()
|
||||
viewer.setBackgroundColor('#121212')
|
||||
viewer.setBackgroundColor(this.backgroundColor)
|
||||
viewer.bed.setBedColor(this.gridColor)
|
||||
viewer.setCursorVisiblity(this.showCursor)
|
||||
viewer.setZClipPlane(1000000, -1000000)
|
||||
viewer.axes.show(this.showAxes)
|
||||
@@ -359,6 +384,7 @@ export default class Viewer extends Mixins(BaseMixin) {
|
||||
if (viewer) {
|
||||
viewer.clearScene(true)
|
||||
this.loadedFile = null
|
||||
this.tracking = false
|
||||
}
|
||||
}
|
||||
|
||||
@@ -373,7 +399,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 +418,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 +548,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)
|
||||
}
|
||||
}
|
||||
|
||||
@@ -529,6 +556,8 @@ export default class Viewer extends Mixins(BaseMixin) {
|
||||
async trackingChanged(newVal: boolean) {
|
||||
if (!viewer) return
|
||||
if (newVal) {
|
||||
//Set zSlider to max value
|
||||
this.zSlider = this.maxZSlider
|
||||
//Force renderers reload.
|
||||
viewer.gcodeProcessor.updateFilePosition(0)
|
||||
viewer?.forceRender()
|
||||
@@ -725,7 +754,7 @@ export default class Viewer extends Mixins(BaseMixin) {
|
||||
}
|
||||
|
||||
get backgroundColor() {
|
||||
return this.$store.state.gui.gcodeViewer?.backgroundColor ?? '#000000'
|
||||
return this.$store.state.gui.gcodeViewer?.backgroundColor ?? '#121212'
|
||||
}
|
||||
|
||||
@Watch('backgroundColor')
|
||||
@@ -735,7 +764,7 @@ export default class Viewer extends Mixins(BaseMixin) {
|
||||
}
|
||||
|
||||
get gridColor() {
|
||||
return this.$store.state.gui.gcodeViewer?.gridColor ?? '#000000'
|
||||
return this.$store.state.gui.gcodeViewer?.gridColor ?? '#B3B3B3'
|
||||
}
|
||||
|
||||
@Watch('gridColor')
|
||||
|
||||
@@ -0,0 +1,91 @@
|
||||
<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 !== null)"
|
||||
: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 FirmwareRetractionSettingsInput 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, default: null }) readonly max!: number | null
|
||||
@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
|
||||
@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
|
||||
this.sendCmd()
|
||||
}
|
||||
|
||||
increment(): void {
|
||||
this.value = (this.value < this.max! || this.max === null) ? 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})
|
||||
}
|
||||
|
||||
}
|
||||
</script>
|
||||
@@ -1,60 +0,0 @@
|
||||
<style scoped>
|
||||
|
||||
</style>
|
||||
|
||||
<template>
|
||||
<form v-on:submit.prevent="sendCmd">
|
||||
<v-text-field
|
||||
:label="label"
|
||||
:suffix="unit"
|
||||
v-model="value"
|
||||
type="number"
|
||||
outlined
|
||||
dense
|
||||
:append-icon="this.value !== this.defaultValue ? 'mdi-refresh' : ''"
|
||||
:error="this.value > this.defaultValue"
|
||||
@click:append="resetLimit"
|
||||
hide-details
|
||||
></v-text-field>
|
||||
</form>
|
||||
</template>
|
||||
|
||||
<script lang="ts">
|
||||
import Component from 'vue-class-component'
|
||||
import {Mixins, Prop, Watch} from 'vue-property-decorator'
|
||||
import BaseMixin from '@/components/mixins/base'
|
||||
|
||||
@Component
|
||||
export default class MachineLimitsInput extends Mixins(BaseMixin) {
|
||||
private value: any = 0
|
||||
|
||||
@Prop({ type: String, required: true }) readonly label!: string
|
||||
@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
|
||||
|
||||
@Watch('target')
|
||||
targetChanged(newVal: number): void {
|
||||
this.value = newVal
|
||||
}
|
||||
|
||||
created(): void {
|
||||
this.value = this.target
|
||||
}
|
||||
|
||||
resetLimit() {
|
||||
this.value = this.defaultValue
|
||||
|
||||
this.sendCmd()
|
||||
}
|
||||
|
||||
sendCmd() {
|
||||
const gcode = 'SET_VELOCITY_LIMIT ' + this.attributeName + '=' + Math.max(1, this.value).toFixed(0)
|
||||
this.$store.dispatch('server/addEvent', {message: gcode, type: 'command'})
|
||||
this.$socket.emit('printer.gcode.script', {script: gcode})
|
||||
}
|
||||
|
||||
}
|
||||
</script>
|
||||
@@ -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() {
|
||||
|
||||
@@ -10,14 +10,14 @@
|
||||
<v-col :class="pwm ? 'pb-1' : 'pb-3'">
|
||||
<v-subheader class="_fan-slider-subheader">
|
||||
<v-btn
|
||||
v-if="canLock && lockSliders && this.isTouchDevice && controllable"
|
||||
@click="sliderIsLocked = !sliderIsLocked"
|
||||
v-if="lockSliders && this.isTouchDevice && pwm"
|
||||
@click="isLocked = !isLocked"
|
||||
plain
|
||||
small
|
||||
icon
|
||||
>
|
||||
<v-icon small :color="(sliderIsLocked ? 'red' : '')">
|
||||
{{ sliderIsLocked ? 'mdi-lock-outline' : 'mdi-lock-open-variant-outline' }}
|
||||
<v-icon small :color="(isLocked ? 'red' : '')">
|
||||
{{ isLocked ? 'mdi-lock-outline' : 'mdi-lock-open-variant-outline' }}
|
||||
</v-icon>
|
||||
</v-btn>
|
||||
<v-icon
|
||||
@@ -43,7 +43,7 @@
|
||||
<v-slider
|
||||
v-model="value"
|
||||
v-touch="{start: resetLockTimer}"
|
||||
:disabled="canLock && sliderIsLocked"
|
||||
:disabled="isLocked"
|
||||
:min="0.0"
|
||||
:max="1.0"
|
||||
:step="0.01"
|
||||
@@ -52,11 +52,11 @@
|
||||
hide-details
|
||||
>
|
||||
<template v-slot:prepend>
|
||||
<v-icon @click="decrement" :disabled="canLock && sliderIsLocked">mdi-minus</v-icon>
|
||||
<v-icon @click="decrement" :disabled="isLocked">mdi-minus</v-icon>
|
||||
</template>
|
||||
|
||||
<template v-slot:append>
|
||||
<v-icon @click="increment" :disabled="canLock && sliderIsLocked">mdi-plus</v-icon>
|
||||
<v-icon @click="increment" :disabled="isLocked">mdi-plus</v-icon>
|
||||
</template>
|
||||
</v-slider>
|
||||
</v-card-text>
|
||||
@@ -76,11 +76,10 @@ import {Debounce} from 'vue-debounce-decorator'
|
||||
export default class MiscellaneousSlider extends Mixins(BaseMixin) {
|
||||
convertName = convertName
|
||||
private timeout: number | undefined
|
||||
private isLocked = false
|
||||
private min = 0
|
||||
private value = 0
|
||||
|
||||
@Prop({ required: true }) readonly sliderName!: string
|
||||
@Prop({ type: Boolean, default: true, required: true }) readonly canLock!: string
|
||||
@Prop({ type: Number, required: true }) target!: number
|
||||
@Prop({ type: Number, default: 1 }) max!: number
|
||||
@Prop({ type: String, default: '' }) name!: string
|
||||
@@ -93,17 +92,13 @@ export default class MiscellaneousSlider extends Mixins(BaseMixin) {
|
||||
|
||||
@Watch('lockSliders', {immediate: true})
|
||||
lockSlidersChanged(){
|
||||
if(this.lockSliders && this.isTouchDevice){
|
||||
this.sliderIsLocked = true
|
||||
} else {
|
||||
this.sliderIsLocked = false
|
||||
}
|
||||
this.isLocked = this.lockSliders && this.isTouchDevice
|
||||
}
|
||||
|
||||
startLockTimer() {
|
||||
let t = this.lockSlidersDelay
|
||||
if (!this.isTouchDevice || !this.lockSliders || (t <= 0)) return
|
||||
this.timeout = setTimeout(() => this.sliderIsLocked = true, t * 1000)
|
||||
this.timeout = setTimeout(() => this.isLocked = true, t * 1000)
|
||||
}
|
||||
|
||||
resetLockTimer() {
|
||||
@@ -111,20 +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
|
||||
}
|
||||
|
||||
get sliderIsLocked() {
|
||||
return this.$store.getters['gui/getLockedSliders'](this.sliderName)
|
||||
}
|
||||
|
||||
set sliderIsLocked(newVal) {
|
||||
if (!this.controllable) return
|
||||
this.$store.dispatch('gui/saveSliderLockState', { name: this.sliderName, value: newVal })
|
||||
return this.$store.state.gui.uiSettings.lockSlidersDelay
|
||||
}
|
||||
|
||||
@Debounce(500)
|
||||
|
||||
@@ -0,0 +1,91 @@
|
||||
<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 !== null)"
|
||||
: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 MotionSettingsInput 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, default: null }) readonly max!: number | null
|
||||
@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
|
||||
@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
|
||||
this.sendCmd()
|
||||
}
|
||||
|
||||
increment(): void {
|
||||
this.value = (this.value < this.max! || this.max === null) ? 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})
|
||||
}
|
||||
|
||||
}
|
||||
</script>
|
||||
@@ -0,0 +1,93 @@
|
||||
<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 !== null)"
|
||||
: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, default: null }) readonly max!: number | null
|
||||
@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
|
||||
this.sendCmd()
|
||||
}
|
||||
|
||||
increment(): void {
|
||||
this.value = (this.value < this.max! || this.max === null) ? 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>
|
||||
@@ -26,8 +26,13 @@
|
||||
:items="items"
|
||||
item-text="value"
|
||||
type="number"
|
||||
@change="setTemps"
|
||||
></v-combobox>
|
||||
@keyup.enter="setTemps"
|
||||
@keydown.tab="setTemps"
|
||||
@change="changeValue"
|
||||
@blur="onBlur"
|
||||
hide-spin-buttons
|
||||
>
|
||||
</v-combobox>
|
||||
</template>
|
||||
|
||||
<script lang="ts">
|
||||
@@ -47,17 +52,30 @@ export default class ToolInput extends Mixins(BaseMixin) {
|
||||
@Prop({ type: String, required: true }) readonly attributeName!: string
|
||||
@Prop({ type: Array, default: [] }) items!: number[]
|
||||
|
||||
changeValue(newVal: any) {
|
||||
if (typeof newVal === 'object') {
|
||||
this.setTemps()
|
||||
}
|
||||
}
|
||||
|
||||
onBlur(event: any) {
|
||||
if ('target' in event && event.target && 'value' in event.target) {
|
||||
this.value = event.target.value ?? this.value
|
||||
this.setTemps()
|
||||
}
|
||||
}
|
||||
|
||||
setTemps(): void {
|
||||
if (typeof this.value === 'object') this.value = this.value.value ?? 0
|
||||
if (this.value === '') this.value = 0
|
||||
if (this.value === null) this.value = 0
|
||||
|
||||
if (this.value > this.max_temp) {
|
||||
this.value = { value: this.target, text: this.target }
|
||||
this.$toast.error('Temperature too high for '+this.name+'! (max: '+this.max_temp+')')
|
||||
this.$toast.error(this.$t('Panels.ToolsPanel.TempTooHigh', { name: this.name, max: this.max_temp })+'')
|
||||
} else if (this.value < this.min_temp && this.value != 0) {
|
||||
this.value = { value: this.target, text: this.target }
|
||||
this.$toast.error('Temperature too low for '+this.name+'! (min: '+this.min_temp+')')
|
||||
} else {
|
||||
this.$toast.error(this.$t('Panels.ToolsPanel.TempTooLow', { name: this.name, min: this.min_temp })+'')
|
||||
} else if (this.target !== parseFloat(this.value)) {
|
||||
const gcode = this.command+' '+this.attributeName+'='+this.name+' TARGET='+this.value
|
||||
this.$store.dispatch('server/addEvent', { message: gcode, type: 'command' })
|
||||
this.$socket.emit('printer.gcode.script', { script: gcode })
|
||||
|
||||
@@ -10,23 +10,26 @@
|
||||
<v-col class="pb-1 pt-3">
|
||||
<v-subheader class="_tool-slider-subheader">
|
||||
<v-btn
|
||||
v-if="canLock && lockSliders && isTouchDevice"
|
||||
@click="sliderIsLocked = !sliderIsLocked"
|
||||
v-if="lockSliders && isTouchDevice"
|
||||
@click="isLocked = !isLocked"
|
||||
plain
|
||||
small
|
||||
icon
|
||||
>
|
||||
<v-icon small :color="(sliderIsLocked ? 'red' : '')">
|
||||
{{ sliderIsLocked ? 'mdi-lock-outline' : 'mdi-lock-open-variant-outline' }}
|
||||
<v-icon small :color="(isLocked ? 'red' : '')">
|
||||
{{ isLocked ? 'mdi-lock-outline' : 'mdi-lock-open-variant-outline' }}
|
||||
</v-icon>
|
||||
</v-btn>
|
||||
<v-icon small :class="'mr-2'">
|
||||
{{ icon }}
|
||||
</v-icon>
|
||||
<span>{{ label }}</span>
|
||||
<v-btn
|
||||
v-if="value !== defaultValue"
|
||||
class="ml-2"
|
||||
x-small
|
||||
icon
|
||||
:disabled="canLock && sliderIsLocked"
|
||||
:disabled="isLocked"
|
||||
@click="resetSlider"
|
||||
>
|
||||
<v-icon>mdi-restart</v-icon>
|
||||
@@ -40,7 +43,7 @@
|
||||
<v-slider
|
||||
v-model="value"
|
||||
v-touch="{start: resetLockTimer}"
|
||||
:disabled="canLock && sliderIsLocked"
|
||||
:disabled="isLocked"
|
||||
:min="min"
|
||||
:max="processedMax"
|
||||
:color="colorBar"
|
||||
@@ -48,11 +51,11 @@
|
||||
hide-details>
|
||||
|
||||
<template v-slot:prepend>
|
||||
<v-icon @click="decrement" :disabled="canLock && sliderIsLocked">mdi-minus</v-icon>
|
||||
<v-icon @click="decrement" :disabled="isLocked">mdi-minus</v-icon>
|
||||
</template>
|
||||
|
||||
<template v-slot:append>
|
||||
<v-icon @click="increment" :disabled="canLock && sliderIsLocked">mdi-plus</v-icon>
|
||||
<v-icon @click="increment" :disabled="isLocked">mdi-plus</v-icon>
|
||||
</template>
|
||||
</v-slider>
|
||||
</v-card-text>
|
||||
@@ -70,17 +73,17 @@ import {Debounce} from 'vue-debounce-decorator'
|
||||
@Component
|
||||
export default class ToolSlider extends Mixins(BaseMixin) {
|
||||
private timeout: number | undefined
|
||||
private isLocked = false
|
||||
value = 0
|
||||
startValue = 0
|
||||
processedMax = 100
|
||||
dynamicStep = 50
|
||||
|
||||
@Prop({ required: true }) readonly sliderName!: string
|
||||
@Prop({ type: Boolean, default: true, required: true }) readonly canLock!: string
|
||||
@Prop({ type: Number, required: true }) readonly target!: number
|
||||
@Prop({ type: String, required: true }) readonly command!: string
|
||||
@Prop({ type: String, default: '' }) readonly attributeName!: string
|
||||
@Prop({ type: String, default: '' }) readonly label!: string
|
||||
@Prop({ type: String, default: '' }) readonly icon!: string
|
||||
@Prop({ type: String, default: '%' }) readonly unit!: string
|
||||
@Prop({ type: Number, default: 1 }) readonly attributeScale!: number
|
||||
@Prop({ type: Number, default: 0 }) readonly min!: number
|
||||
@@ -102,17 +105,13 @@ export default class ToolSlider extends Mixins(BaseMixin) {
|
||||
|
||||
@Watch('lockSliders', {immediate: true})
|
||||
lockSlidersChanged(){
|
||||
if(this.lockSliders && this.isTouchDevice){
|
||||
this.sliderIsLocked = true
|
||||
} else {
|
||||
this.sliderIsLocked = false
|
||||
}
|
||||
this.isLocked = this.lockSliders && this.isTouchDevice
|
||||
}
|
||||
|
||||
startLockTimer() {
|
||||
let t = this.lockSlidersDelay
|
||||
if (!this.isTouchDevice || !this.lockSliders || (t <= 0)) return
|
||||
this.timeout = setTimeout(() => this.sliderIsLocked = true, t * 1000)
|
||||
this.timeout = setTimeout(() => this.isLocked = true, t * 1000)
|
||||
}
|
||||
|
||||
resetLockTimer() {
|
||||
@@ -120,19 +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
|
||||
}
|
||||
|
||||
get sliderIsLocked() {
|
||||
return this.$store.getters['gui/getLockedSliders'](this.sliderName)
|
||||
}
|
||||
|
||||
set sliderIsLocked(newVal) {
|
||||
this.$store.dispatch('gui/saveSliderLockState', { name: this.sliderName, value: newVal })
|
||||
return this.$store.state.gui.uiSettings.lockSlidersDelay
|
||||
}
|
||||
|
||||
get colorBar() {
|
||||
|
||||
@@ -41,7 +41,9 @@ export default class BaseMixin extends Vue {
|
||||
}
|
||||
|
||||
get printer_state(): string {
|
||||
return this.$store.state.printer.print_stats?.state ?? ''
|
||||
const printer_state = this.$store.state.printer.print_stats?.state ?? ''
|
||||
const timelapse_pause = this.$store.state.printer['gcode_macro TIMELAPSE_TAKE_FRAME']?.is_paused ?? false
|
||||
return (printer_state === 'paused' && timelapse_pause) ? 'printing' : printer_state
|
||||
}
|
||||
|
||||
get isMobile() {
|
||||
@@ -61,7 +63,8 @@ export default class BaseMixin extends Vue {
|
||||
}
|
||||
|
||||
get isTouchDevice() {
|
||||
return (('ontouchstart' in window) || (navigator.maxTouchPoints > 0))
|
||||
// ignore if browser reports maxTouchPoints === 256, can happen on Windows 10
|
||||
return (('ontouchstart' in window) || (navigator.maxTouchPoints > 0 && navigator.maxTouchPoints !== 256))
|
||||
}
|
||||
|
||||
get moonrakerComponents() {
|
||||
|
||||
@@ -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() {
|
||||
|
||||
@@ -2,17 +2,22 @@ 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 webcams() {
|
||||
return this.$store.getters['gui/webcams/getWebcams'] ?? []
|
||||
}
|
||||
|
||||
get missingPanelsMobile() {
|
||||
@@ -55,19 +60,25 @@ export default class DashboardMixin extends BaseMixin {
|
||||
let allPanels = [...allDashboardPanels]
|
||||
const missingPanels: any[] = []
|
||||
|
||||
// remove macros panel and add macrogroups panels if macroMode === expert
|
||||
if (this.macroMode === 'expert') {
|
||||
this.macrogroups.forEach((group: GuiMacrogroupsStateMacrogroup) => {
|
||||
this.macrogroups.forEach((group: GuiMacrosStateMacrogroup) => {
|
||||
allPanels.push('macrogroup_'+group.id)
|
||||
})
|
||||
|
||||
allPanels = allPanels.filter((name) => name !== 'macros')
|
||||
}
|
||||
|
||||
// remove webcam panel, if no webcam exists
|
||||
if (this.webcams.length === 0) {
|
||||
allPanels = allPanels.filter((name) => name !== 'webcam')
|
||||
}
|
||||
|
||||
allPanels.forEach((panelname) => {
|
||||
if (!panels.find((panel) => panel.name === panelname))
|
||||
missingPanels.push({
|
||||
name: panelname,
|
||||
visable: true
|
||||
visible: true
|
||||
})
|
||||
})
|
||||
|
||||
@@ -77,11 +88,18 @@ 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'
|
||||
}
|
||||
|
||||
return this.$t('Panels.'+capitalize(name)+'Panel.Headline')
|
||||
if (name.includes('-')) {
|
||||
let panelName = ''
|
||||
const subStrings = name.split('-')
|
||||
subStrings.forEach((subStr) => {panelName += capitalize(subStr)})
|
||||
return this.$t('Panels.' + panelName + 'Panel.Headline')
|
||||
}
|
||||
|
||||
return this.$t('Panels.' + capitalize(name) + 'Panel.Headline')
|
||||
}
|
||||
}
|
||||
@@ -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 ?? []),
|
||||
|
||||
@@ -153,9 +153,9 @@
|
||||
</v-row>
|
||||
<v-row no-gutters class="mt-3">
|
||||
<v-col class="col-12">
|
||||
<v-btn-toggle v-if="stepsReversed.length > 0" dense no-gutters style="flex-wrap: nowrap; width: 100%;" v-model="selectedCrossStep">
|
||||
<v-btn dense class="btnMinWidthAuto flex-grow-1 px-0" v-for="steps of stepsReversed" :key="'all-'+steps">
|
||||
<span class="body-2">{{ steps }}</span>
|
||||
<v-btn-toggle v-if="stepsReversed.length > 0" dense no-gutters style="flex-wrap: nowrap; width: 100%;" v-model="selectedCrossStep" :key="'all-steps-'+stepsReversed.join('_')">
|
||||
<v-btn dense class="btnMinWidthAuto flex-grow-1 px-0" v-for="step of stepsReversed" :key="'step-'+step">
|
||||
<span class="body-2">{{ step }}</span>
|
||||
</v-btn>
|
||||
</v-btn-toggle>
|
||||
<div class="font-weight-bold warning rounded pa-2" v-else>
|
||||
@@ -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() {
|
||||
|
||||
@@ -37,7 +37,7 @@
|
||||
<v-col class="col col-md-6 pt-2">
|
||||
<span class="text--disabled" style="font-size: .9em">{{ $t("Panels.ControlPanel.FeedrateIn") }} [mm/s]</span>
|
||||
<v-btn-toggle class="mt-1" dense no-gutters style="flex-wrap: nowrap; width: 100%;" >
|
||||
<v-tooltip top v-for="rate in feedratesSorted" v-bind:key="rate">
|
||||
<v-tooltip top v-for="rate in feedratesSorted" v-bind:key="rate" color="panel">
|
||||
<template v-slot:activator="{ on, attrs }">
|
||||
<v-btn v-bind="attrs" v-on="on" @click="setFeedrate(rate)" dense :class="(rate === currentFeedRate ? 'v-btn--active' : '') + ' btnMinWidthAuto flex-grow-1 px-0 _btnFeedrate'">{{ rate }}</v-btn>
|
||||
</template>
|
||||
@@ -48,8 +48,26 @@
|
||||
</v-row>
|
||||
<v-row class="">
|
||||
<v-col class="col text-center pt-0">
|
||||
<v-btn small @click="sendRetract()" class="mx-3" :loading="loadings.includes('btnRetract')" :disabled="!boolExtrudePossible"><v-icon small class="mr-1">mdi-arrow-up-bold</v-icon> {{ $t('Panels.ControlPanel.Retract') }}</v-btn>
|
||||
<v-btn small @click="sendDetract()" class="mx-3" :loading="loadings.includes('btnDetract')" :disabled="!boolExtrudePossible"><v-icon small class="mr-1">mdi-arrow-down-bold</v-icon> {{ $t('Panels.ControlPanel.Extrude') }}</v-btn>
|
||||
<v-tooltip top :disabled="boolExtrudePossible" color="panel">
|
||||
<template v-slot:activator="{ on }">
|
||||
<div v-on="on" class="d-inline-block">
|
||||
<v-btn small @click="sendRetract()" class="mx-3" :loading="loadings.includes('btnRetract')" :disabled="!boolExtrudePossible"><v-icon small class="mr-1">mdi-arrow-up-bold</v-icon> {{ $t('Panels.ControlPanel.Retract') }}</v-btn>
|
||||
</div>
|
||||
</template>
|
||||
<span>
|
||||
{{ $t("Panels.ControlPanel.HotendTooCold") }} {{ minExtrudeTemp }} °C
|
||||
</span>
|
||||
</v-tooltip>
|
||||
<v-tooltip top :disabled="boolExtrudePossible" color="panel">
|
||||
<template v-slot:activator="{ on }">
|
||||
<div v-on="on" class="d-inline-block">
|
||||
<v-btn small @click="sendDetract()" class="mx-3" :loading="loadings.includes('btnDetract')" :disabled="!boolExtrudePossible"><v-icon small class="mr-1">mdi-arrow-down-bold</v-icon> {{ $t('Panels.ControlPanel.Extrude') }}</v-btn>
|
||||
</div>
|
||||
</template>
|
||||
<span>
|
||||
{{ $t("Panels.ControlPanel.HotendTooCold") }} {{ minExtrudeTemp }} °C
|
||||
</span>
|
||||
</v-tooltip>
|
||||
</v-col>
|
||||
</v-row>
|
||||
</div>
|
||||
@@ -67,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() {
|
||||
@@ -83,25 +101,29 @@ 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() {
|
||||
return this.$store.getters['printer/getExtrudePossible']
|
||||
}
|
||||
|
||||
get minExtrudeTemp() {
|
||||
return this.$store.state.printer.configfile.config.extruder.min_extrude_temp
|
||||
}
|
||||
|
||||
doSend(gcode: string) {
|
||||
this.$store.dispatch('server/addEvent', { message: gcode, type: 'command' })
|
||||
this.$socket.emit('printer.gcode.script', { script: gcode })
|
||||
|
||||
@@ -72,7 +72,7 @@
|
||||
>
|
||||
<div v-if="printer.socket.isConnected && currentCamId !== 'off' && currentWebcam" class="webcamContainer">
|
||||
<template v-if="'service' in currentWebcam && currentWebcam.service === 'mjpegstreamer'">
|
||||
<webcam-mjpegstreamer :cam-settings="currentWebcam"></webcam-mjpegstreamer>
|
||||
<webcam-mjpegstreamer :cam-settings="currentWebcam" :show-fps="false"></webcam-mjpegstreamer>
|
||||
</template>
|
||||
<template v-if="'service' in currentWebcam && currentWebcam.service === 'mjpegstreamer-adaptive'">
|
||||
<webcam-mjpegstreamer-adaptive :cam-settings="currentWebcam" :printer-url="printerUrl" :show-fps="false"></webcam-mjpegstreamer-adaptive>
|
||||
|
||||
File diff suppressed because it is too large.
Load diff
@@ -131,7 +131,7 @@
|
||||
<v-list-item @click="clickRow(contextMenu.item)">
|
||||
<v-icon class="mr-1">mdi-text-box-search</v-icon> {{ $t('History.Details') }}
|
||||
</v-list-item>
|
||||
<v-list-item @click="startPrint(contextMenu.item)" v-if="contextMenu.item.exists" :disabled="is_printing">
|
||||
<v-list-item @click="startPrint(contextMenu.item)" v-if="contextMenu.item.exists" :disabled="printerIsPrinting || !klipperReadyForGui">
|
||||
<v-icon class="mr-1">mdi-printer</v-icon> {{ $t('History.Reprint') }}
|
||||
</v-list-item>
|
||||
<v-list-item @click="deleteJob(contextMenu.item)">
|
||||
@@ -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) {
|
||||
|
||||
@@ -0,0 +1,248 @@
|
||||
<template>
|
||||
<div>
|
||||
<panel
|
||||
icon="mdi-tray-full"
|
||||
:title="$t('JobQueue.JobQueue')"
|
||||
card-class="jobqueue-panel"
|
||||
>
|
||||
<template v-slot:buttons>
|
||||
<v-btn
|
||||
color="success"
|
||||
@click="startJobqueue"
|
||||
:loading="loadings.includes('startJobqueue')"
|
||||
icon
|
||||
tile
|
||||
v-if="queueState === 'paused'"
|
||||
:disabled="!klipperReadyForGui"
|
||||
>
|
||||
<v-tooltip top>
|
||||
<template v-slot:activator="{ on, attrs }">
|
||||
<v-icon v-bind="attrs" v-on="on">mdi-play</v-icon>
|
||||
</template>
|
||||
<span>{{ $t('JobQueue.Start') }}</span>
|
||||
</v-tooltip>
|
||||
</v-btn>
|
||||
<v-btn
|
||||
color="warning"
|
||||
@click="pauseJobqueue"
|
||||
:loading="loadings.includes('pauseJobqueue')"
|
||||
icon
|
||||
tile
|
||||
v-if="['ready', 'loading'].includes(queueState)"
|
||||
>
|
||||
<v-tooltip top>
|
||||
<template v-slot:activator="{ on, attrs }">
|
||||
<v-icon v-bind="attrs" v-on="on">mdi-pause</v-icon>
|
||||
</template>
|
||||
<span>{{ $t('JobQueue.Pause') }}</span>
|
||||
</v-tooltip>
|
||||
</v-btn>
|
||||
</template>
|
||||
<v-data-table
|
||||
:items="jobs"
|
||||
class="jobqueue-table"
|
||||
sort-by="time_added"
|
||||
:items-per-page.sync="countPerPage"
|
||||
:footer-props="{
|
||||
itemsPerPageText: $t('JobQueue.Jobs'),
|
||||
itemsPerPageAllText: $t('JobQueue.AllJobs'),
|
||||
itemsPerPageOptions: [10,25,50,100,-1]
|
||||
}"
|
||||
mobile-breakpoint="0">
|
||||
|
||||
<template #no-data>
|
||||
<div class="text-center">{{ $t('JobQueue.Empty') }}</div>
|
||||
</template>
|
||||
|
||||
<template #item="{ index, item }">
|
||||
<tr
|
||||
:key="item.job_id"
|
||||
v-longpress:600="(e) => showContextMenu(e, item)"
|
||||
@contextmenu="showContextMenu($event, item)"
|
||||
class="file-list-cursor user-select-none"
|
||||
>
|
||||
<td class="pr-0 text-center" style="width: 32px;">
|
||||
<template v-if="getSmallThumbnail(item) && getBigThumbnail(item)">
|
||||
<v-tooltip v-if="!item.isDirectory && getSmallThumbnail(item) && getBigThumbnail(item)" top content-class="tooltip__content-opacity1">
|
||||
<template v-slot:activator="{ on, attrs }">
|
||||
<vue-load-image>
|
||||
<img slot="image" :src="getSmallThumbnail(item)" width="32" height="32" v-bind="attrs" v-on="on" />
|
||||
<v-progress-circular slot="preloader" indeterminate color="primary"></v-progress-circular>
|
||||
<v-icon slot="error">mdi-file</v-icon>
|
||||
</vue-load-image>
|
||||
</template>
|
||||
<span><img :src="getBigThumbnail(item)" width="250" /></span>
|
||||
</v-tooltip>
|
||||
</template>
|
||||
<template v-else-if="getSmallThumbnail(item)">
|
||||
<vue-load-image>
|
||||
<img slot="image" :src="getSmallThumbnail(item)" width="32" height="32" />
|
||||
<v-progress-circular slot="preloader" indeterminate color="primary"></v-progress-circular>
|
||||
<v-icon slot="error">mdi-file</v-icon>
|
||||
</vue-load-image>
|
||||
</template>
|
||||
<template v-else>
|
||||
<v-icon>mdi-file</v-icon>
|
||||
</template>
|
||||
</td>
|
||||
<td class=" ">
|
||||
{{ item.filename }}
|
||||
<template v-if="existMetadata(item)">
|
||||
<br />
|
||||
<small>{{ getDescription(item) }}</small>
|
||||
</template>
|
||||
</td>
|
||||
</tr>
|
||||
</template>
|
||||
</v-data-table>
|
||||
</panel>
|
||||
<v-menu v-model="contextMenu.shown" :position-x="contextMenu.x" :position-y="contextMenu.y" absolute offset-y>
|
||||
<v-list>
|
||||
<v-list-item @click="deleteJob(contextMenu.item)">
|
||||
<v-icon class="mr-1">mdi-delete</v-icon> {{ $t('JobQueue.Delete') }}
|
||||
</v-list-item>
|
||||
</v-list>
|
||||
</v-menu>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<script lang="ts">
|
||||
import {Component, Mixins} from 'vue-property-decorator'
|
||||
import BaseMixin from '@/components/mixins/base'
|
||||
import {ServerHistoryStateJob} from '@/store/server/history/types'
|
||||
import {formatFilesize, formatPrintTime} from '@/plugins/helpers'
|
||||
import Panel from '@/components/ui/Panel.vue'
|
||||
import {ServerJobQueueStateJob} from '@/store/server/jobQueue/types'
|
||||
import {thumbnailBigMin, thumbnailSmallMax, thumbnailSmallMin} from '@/store/variables'
|
||||
@Component({
|
||||
components: {Panel}
|
||||
})
|
||||
export default class JobqueuePanel extends Mixins(BaseMixin) {
|
||||
formatFilesize = formatFilesize
|
||||
|
||||
private contextMenu = {
|
||||
shown: false,
|
||||
touchTimer: undefined,
|
||||
x: 0,
|
||||
y: 0,
|
||||
item: {}
|
||||
}
|
||||
|
||||
get jobs() {
|
||||
return this.$store.getters['server/jobQueue/getJobs']
|
||||
}
|
||||
|
||||
get queueState() {
|
||||
return this.$store.state.server.jobQueue.queue_state ?? ''
|
||||
}
|
||||
|
||||
get countPerPage() {
|
||||
return this.$store.state.gui.view.jobqueue.countPerPage
|
||||
}
|
||||
|
||||
set countPerPage(newVal) {
|
||||
this.$store.dispatch('gui/saveSetting', { name: 'view.jobqueue.countPerPage', value: newVal })
|
||||
}
|
||||
|
||||
refreshHistory() {
|
||||
this.$socket.emit('server.history.list', { start: 0, limit: 50 }, { action: 'server/history/getHistory' })
|
||||
}
|
||||
|
||||
formatPrintTime(totalSeconds: number) {
|
||||
if (totalSeconds) {
|
||||
let output = ''
|
||||
|
||||
const days = Math.floor(totalSeconds / (3600 * 24))
|
||||
if (days) {
|
||||
totalSeconds %= (3600 * 24)
|
||||
output += days+'d'
|
||||
}
|
||||
|
||||
const hours = Math.floor(totalSeconds / 3600)
|
||||
totalSeconds %= 3600
|
||||
if (hours) output += ' '+hours+'h'
|
||||
|
||||
const minutes = Math.floor(totalSeconds / 60)
|
||||
if (minutes) output += ' '+minutes+'m'
|
||||
|
||||
const seconds = totalSeconds % 60
|
||||
if (seconds) output += ' '+seconds.toFixed(0)+'s'
|
||||
|
||||
return output
|
||||
}
|
||||
|
||||
return '--'
|
||||
}
|
||||
|
||||
showContextMenu (e: any, item: ServerHistoryStateJob) {
|
||||
if (!this.contextMenu.shown) {
|
||||
e?.preventDefault()
|
||||
this.contextMenu.shown = true
|
||||
this.contextMenu.x = e?.clientX || e?.pageX || window.screenX / 2
|
||||
this.contextMenu.y = e?.clientY || e?.pageY || window.screenY / 2
|
||||
this.contextMenu.item = item
|
||||
this.$nextTick(() => {
|
||||
this.contextMenu.shown = true
|
||||
})
|
||||
}
|
||||
}
|
||||
|
||||
deleteJob(item: ServerJobQueueStateJob) {
|
||||
this.$store.dispatch('server/jobQueue/deleteFromQueue', [item.job_id])
|
||||
}
|
||||
|
||||
startJobqueue() {
|
||||
this.$store.dispatch('server/jobQueue/start')
|
||||
}
|
||||
|
||||
pauseJobqueue() {
|
||||
this.$store.dispatch('server/jobQueue/pause')
|
||||
}
|
||||
|
||||
getSmallThumbnail(item: ServerJobQueueStateJob) {
|
||||
if (item?.metadata?.thumbnails?.length) {
|
||||
const thumbnail = item?.metadata?.thumbnails.find((thumb: any) =>
|
||||
thumb.width >= thumbnailSmallMin && thumb.width <= thumbnailSmallMax &&
|
||||
thumb.height >= thumbnailSmallMin && thumb.height <= thumbnailSmallMax
|
||||
)
|
||||
const path = item.filename.lastIndexOf('/') !== -1 ? 'gcodes/'+item.filename.slice(0, item.filename.lastIndexOf('/')) : 'gcodes'
|
||||
|
||||
if (thumbnail && 'relative_path' in thumbnail) return this.apiUrl+'/server/files/'+path+'/'+encodeURI(thumbnail.relative_path)+'?timestamp='+item.metadata?.modified.getTime()
|
||||
}
|
||||
|
||||
return ''
|
||||
}
|
||||
|
||||
getBigThumbnail(item: ServerJobQueueStateJob) {
|
||||
if (item?.metadata?.thumbnails?.length) {
|
||||
const thumbnail = item?.metadata?.thumbnails.find((thumb: any) => thumb.width >= thumbnailBigMin)
|
||||
const path = item.filename.lastIndexOf('/') !== -1 ? 'gcodes/'+item.filename.slice(0, item.filename.lastIndexOf('/')) : 'gcodes'
|
||||
|
||||
if (thumbnail && 'relative_path' in thumbnail) return this.apiUrl+'/server/files/'+path+'/'+encodeURI(thumbnail.relative_path)+'?timestamp='+item.metadata?.modified.getTime()
|
||||
}
|
||||
|
||||
return ''
|
||||
}
|
||||
|
||||
getDescription(item: ServerJobQueueStateJob) {
|
||||
let output = ''
|
||||
|
||||
output += this.$t('Files.Filament')+': '
|
||||
if (item.metadata?.filament_total || item.metadata.filament_weight_total) {
|
||||
if (item.metadata?.filament_total) output += item.metadata.filament_total.toFixed()+' mm'
|
||||
if (item.metadata?.filament_total && item.metadata.filament_weight_total) output += ' / '
|
||||
if (item.metadata?.filament_weight_total) output += item.metadata.filament_weight_total.toFixed(2)+' g'
|
||||
} else output += '--'
|
||||
|
||||
output += ', '+this.$t('Files.PrintTime')+': '
|
||||
if (item.metadata?.estimated_time) output += formatPrintTime(item.metadata.estimated_time)
|
||||
else output += '--'
|
||||
|
||||
return output
|
||||
}
|
||||
|
||||
existMetadata(item: ServerJobQueueStateJob) {
|
||||
return item?.metadata?.metadataPulled
|
||||
}
|
||||
}
|
||||
</script>
|
||||
@@ -16,6 +16,7 @@
|
||||
hide-details
|
||||
dense
|
||||
@change="changeRoot"
|
||||
attach
|
||||
></v-select>
|
||||
</v-col>
|
||||
<v-col class="col col-lg-auto pl-lg-0 text-right">
|
||||
@@ -34,7 +35,7 @@
|
||||
<span>{{ button.text }}</span>
|
||||
</v-tooltip>
|
||||
</v-btn>
|
||||
<v-menu :offset-y="true" :title="$t('Machine.ConfigFilesPanel.SetupCurrentList')">
|
||||
<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>
|
||||
@@ -293,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
|
||||
@@ -363,8 +365,6 @@ export default class ConfigFilesPanel extends Mixins(BaseMixin) {
|
||||
private selected = []
|
||||
private options = { }
|
||||
private currentPage = 1
|
||||
private currentPath = ''
|
||||
private root = 'config'
|
||||
private contextMenu: contextMenu = {
|
||||
shown: false,
|
||||
isDirectory: false,
|
||||
@@ -531,51 +531,67 @@ 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()
|
||||
}
|
||||
|
||||
get root() {
|
||||
return this.$store.state.gui.view.configfiles.rootPath
|
||||
}
|
||||
|
||||
set root(newVal) {
|
||||
this.$store.dispatch('gui/saveSettingWithoutUpload', { name: 'view.configfiles.rootPath', value: newVal })
|
||||
}
|
||||
|
||||
get currentPath() {
|
||||
return this.$store.state.gui.view.configfiles.currentPath
|
||||
}
|
||||
|
||||
set currentPath(newVal) {
|
||||
this.$store.dispatch('gui/saveSettingWithoutUpload', { name: 'view.configfiles.currentPath', value: newVal })
|
||||
}
|
||||
|
||||
refreshFileList() {
|
||||
|
||||
@@ -19,7 +19,7 @@
|
||||
<v-row v-if="existProbe">
|
||||
<v-col class="py-1">
|
||||
<label class="mt-1 d-inline-block">Probe</label>
|
||||
<v-chip class="float-right" small :color="probe ? 'red' : 'green' " text-color="white">
|
||||
<v-chip small label class="float-right" :color="probe ? 'red' : 'green' " text-color="white">
|
||||
<template v-if="probe">
|
||||
{{ $t('Machine.EndstopPanel.TRIGGERED')}}
|
||||
</template>
|
||||
|
||||
@@ -1,91 +0,0 @@
|
||||
<template>
|
||||
<panel :title="$t('Machine.LimitsPanel.MachineLimits')" v-if="klipperReadyForGui" icon="mdi-speedometer" card-class="machine-machinelimits-panel" :collapsible="true">
|
||||
<v-card-text>
|
||||
<v-row>
|
||||
<v-col class="col-6">
|
||||
<machine-limits-input
|
||||
:label="$t('Machine.LimitsPanel.Velocity')"
|
||||
:target="current_velocity"
|
||||
:max="max_velocity"
|
||||
:default-value="max_velocity"
|
||||
unit="mm/s"
|
||||
attribute-name="VELOCITY"
|
||||
></machine-limits-input>
|
||||
</v-col>
|
||||
<v-col class="col-6">
|
||||
<machine-limits-input
|
||||
:label="$t('Machine.LimitsPanel.SquareCornerVelocity')"
|
||||
:target="current_square_corner_velocity"
|
||||
:max="max_square_corner_velocity"
|
||||
:default-value="max_square_corner_velocity"
|
||||
unit="mm/s"
|
||||
attribute-name="SQUARE_CORNER_VELOCITY"
|
||||
></machine-limits-input>
|
||||
</v-col>
|
||||
</v-row>
|
||||
<v-row>
|
||||
<v-col class="col-6">
|
||||
<machine-limits-input
|
||||
:label="$t('Machine.LimitsPanel.Acceleration')"
|
||||
:target="current_accel"
|
||||
:max="max_accel"
|
||||
:default-value="max_accel"
|
||||
unit="mm/s²"
|
||||
attribute-name="ACCEL"
|
||||
></machine-limits-input>
|
||||
</v-col>
|
||||
<v-col class="col-6">
|
||||
<machine-limits-input
|
||||
:label="$t('Machine.LimitsPanel.Deceleration')"
|
||||
:target="current_accel_to_decel"
|
||||
:max="max_accel_to_decel"
|
||||
:default-value="max_accel_to_decel"
|
||||
unit="mm/s²"
|
||||
attribute-name="ACCEL_TO_DECEL"
|
||||
></machine-limits-input>
|
||||
</v-col>
|
||||
</v-row>
|
||||
</v-card-text>
|
||||
</panel>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
|
||||
|
||||
import { Component, Mixins } from 'vue-property-decorator'
|
||||
import BaseMixin from '@/components/mixins/base.ts'
|
||||
import ToolSlider from '@/components/inputs/ToolSlider'
|
||||
import MachineLimitsInput from '@/components/inputs/MachineLimitsInput'
|
||||
import Panel from '@/components/ui/Panel'
|
||||
@Component({
|
||||
components: {Panel, MachineLimitsInput, ToolSlider}
|
||||
})
|
||||
export default class LimitsPanel extends Mixins(BaseMixin) {
|
||||
|
||||
get current_velocity() {
|
||||
return this.$store.state.printer?.toolhead?.max_velocity ?? 300
|
||||
}
|
||||
get current_accel() {
|
||||
return this.$store.state.printer?.toolhead?.max_accel ?? 3000
|
||||
}
|
||||
get current_accel_to_decel() {
|
||||
return this.$store.state.printer?.toolhead?.max_accel_to_decel ?? 1500
|
||||
}
|
||||
get current_square_corner_velocity() {
|
||||
return this.$store.state.printer?.toolhead?.square_corner_velocity ?? 8
|
||||
}
|
||||
|
||||
get max_velocity() {
|
||||
return this.$store.state.printer?.configfile?.settings?.printer?.max_velocity ?? 300
|
||||
}
|
||||
get max_accel() {
|
||||
return this.$store.state.printer?.configfile?.settings?.printer?.max_accel ?? 3000
|
||||
}
|
||||
get max_accel_to_decel() {
|
||||
return this.$store.state.printer?.configfile?.settings?.printer?.max_accel_to_decel ?? 1500
|
||||
}
|
||||
get max_square_corner_velocity() {
|
||||
return this.$store.state.printer?.configfile?.settings?.printer?.square_corner_velocity ?? 8
|
||||
}
|
||||
}
|
||||
</script>
|
||||
@@ -5,7 +5,7 @@
|
||||
</style>
|
||||
|
||||
<template>
|
||||
<div>
|
||||
<div v-if="klipperReadyForGui">
|
||||
<panel :title="$t('Machine.SystemPanel.SystemLoad')" icon="mdi-memory" card-class="machine-systemload-panel" :collapsible="true">
|
||||
<v-card-text class="px-0 py-2">
|
||||
<div v-for="(mcu, index) of mcus" v-bind:key="mcu.name">
|
||||
@@ -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">
|
||||
|
||||
@@ -314,6 +314,8 @@ export default class UpdatePanel extends Mixins(BaseMixin) {
|
||||
semver.gt(object.remote_version, object.version)
|
||||
) return 'primary'
|
||||
|
||||
if ((object.commits_behind ?? []).length) return 'primary'
|
||||
|
||||
if (
|
||||
'version' in object &&
|
||||
'remote_version' in object && (
|
||||
@@ -346,6 +348,8 @@ export default class UpdatePanel extends Mixins(BaseMixin) {
|
||||
semver.gt(object.remote_version, object.version)
|
||||
) return this.$t('Machine.UpdatePanel.Update')
|
||||
|
||||
if ((object.commits_behind ?? []).length) return this.$t('Machine.UpdatePanel.Update')
|
||||
|
||||
if (
|
||||
'version' in object &&
|
||||
'remote_version' in object && (
|
||||
@@ -378,6 +382,8 @@ export default class UpdatePanel extends Mixins(BaseMixin) {
|
||||
semver.gt(object.remote_version, object.version)
|
||||
) return 'progress-upload'
|
||||
|
||||
if ((object.commits_behind ?? []).length) return 'progress-upload'
|
||||
|
||||
if (
|
||||
'version' in object &&
|
||||
'remote_version' in object && (
|
||||
@@ -398,6 +404,8 @@ export default class UpdatePanel extends Mixins(BaseMixin) {
|
||||
if ('is_dirty' in object && object.is_dirty) return false
|
||||
|
||||
if (typeof object === 'object' && object !== false) {
|
||||
if ((object.commits_behind ?? []).length) return false
|
||||
|
||||
if (
|
||||
'version' in object &&
|
||||
'remote_version' in object &&
|
||||
@@ -411,8 +419,9 @@ export default class UpdatePanel extends Mixins(BaseMixin) {
|
||||
}
|
||||
|
||||
getVersionOutput(object: any) {
|
||||
const local_version = 'version' in object ? object.version : '?'
|
||||
const remote_version = 'remote_version' in object ? object.remote_version : '?'
|
||||
const local_version = object.version ?? '?'
|
||||
const remote_version = object.remote_version ?? '?'
|
||||
const commits_behind = object.commits_behind ?? []
|
||||
|
||||
let output = ''
|
||||
if ('remote_alias' in object && object.remote_alias !== 'origin') output += object.remote_alias
|
||||
@@ -425,6 +434,8 @@ export default class UpdatePanel extends Mixins(BaseMixin) {
|
||||
|
||||
if (semver.valid(remote_version) && semver.valid(local_version) && semver.gt(remote_version, local_version))
|
||||
output += local_version+' > '+remote_version
|
||||
else if (commits_behind.length)
|
||||
output += local_version+' > '+ this.$tc('Machine.UpdatePanel.CommitsAvailabe', commits_behind.length, { count: commits_behind.length })
|
||||
else if ('full_version_string' in object && object.full_version_string !== '?')
|
||||
output += object.full_version_string
|
||||
else
|
||||
|
||||
@@ -0,0 +1,105 @@
|
||||
<template>
|
||||
<v-card-text>
|
||||
<v-row>
|
||||
<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="null"
|
||||
:dec="2"
|
||||
unit="mm"
|
||||
attribute-name="RETRACT_LENGTH"
|
||||
></firmware-retraction-settings-input>
|
||||
</v-col>
|
||||
<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="null"
|
||||
: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-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="null"
|
||||
:dec="2"
|
||||
unit="mm"
|
||||
attribute-name="UNRETRACT_EXTRA_LENGTH"
|
||||
></firmware-retraction-settings-input>
|
||||
</v-col>
|
||||
<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="null"
|
||||
:dec="0"
|
||||
unit="mm/s"
|
||||
attribute-name="UNRETRACT_SPEED"
|
||||
></firmware-retraction-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 FirmwareRetractionSettingsInput from '@/components/inputs/FirmwareRetractionSettingsInput.vue'
|
||||
|
||||
@Component({
|
||||
components: {Panel, FirmwareRetractionSettingsInput}
|
||||
})
|
||||
export default class FirmwareRetractionSettings extends Mixins(BaseMixin) {
|
||||
|
||||
get current_retract_length(): number {
|
||||
return this.$store.state.printer?.firmware_retraction?.retract_length ?? 0
|
||||
}
|
||||
|
||||
get current_retract_speed(): number {
|
||||
return this.$store.state.printer?.firmware_retraction?.retract_speed ?? 20
|
||||
}
|
||||
|
||||
get current_unretract_extra_length(): number {
|
||||
return this.$store.state.printer?.firmware_retraction?.unretract_extra_length ?? 0
|
||||
}
|
||||
|
||||
get current_unretract_speed(): number {
|
||||
return this.$store.state.printer?.firmware_retraction?.unretract_speed ?? 10
|
||||
}
|
||||
|
||||
get config_retract_length(): number {
|
||||
return this.$store.state.printer?.configfile?.settings?.firmware_retraction?.retract_length ?? 0
|
||||
}
|
||||
|
||||
get config_retract_speed(): number {
|
||||
return this.$store.state.printer?.configfile?.settings?.firmware_retraction?.retract_speed ?? 20
|
||||
}
|
||||
|
||||
get config_unretract_extra_length(): number {
|
||||
return this.$store.state.printer?.configfile?.settings?.firmware_retraction?.unretract_extra_length ?? 0
|
||||
}
|
||||
|
||||
get config_unretract_speed(): number {
|
||||
return this.$store.state.printer?.configfile?.settings?.firmware_retraction?.unretract_speed ?? 10
|
||||
}
|
||||
}
|
||||
</script>
|
||||
@@ -0,0 +1,58 @@
|
||||
<template>
|
||||
<panel
|
||||
v-if="klipperReadyForGui"
|
||||
icon="mdi-engine"
|
||||
:title="$t('Panels.MachineSettingsPanel.Headline')"
|
||||
:collapsible="true"
|
||||
card-class="machine-settings-panel"
|
||||
>
|
||||
<div>
|
||||
<sub-panel
|
||||
:title="$t('Panels.MachineSettingsPanel.MotionSettings.Motion')"
|
||||
sub-panel-class="motion-settings-subpanel"
|
||||
>
|
||||
<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"
|
||||
>
|
||||
<firmware-retraction-settings></firmware-retraction-settings>
|
||||
</sub-panel>
|
||||
</div>
|
||||
</panel>
|
||||
</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 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({
|
||||
components: {
|
||||
Panel,
|
||||
SubPanel,
|
||||
MotionSettings,
|
||||
PressureAdvanceSettings,
|
||||
FirmwareRetractionSettings
|
||||
}
|
||||
})
|
||||
export default class MachineSettingsPanel extends Mixins(BaseMixin) {
|
||||
|
||||
get existsFirmwareRetraction() {
|
||||
return this.$store.state.printer.configfile?.settings?.firmware_retraction ?? false
|
||||
}
|
||||
|
||||
}
|
||||
</script>
|
||||
@@ -0,0 +1,105 @@
|
||||
<template>
|
||||
<v-card-text>
|
||||
<v-row>
|
||||
<v-col class="col-12 col-md-6">
|
||||
<motion-settings-input
|
||||
:label="$t('Panels.MachineSettingsPanel.MotionSettings.Velocity')"
|
||||
:target="current_velocity"
|
||||
:default-value="max_velocity"
|
||||
:step="1"
|
||||
:min="1"
|
||||
:max="null"
|
||||
:dec="0"
|
||||
unit="mm/s"
|
||||
attribute-name="VELOCITY"
|
||||
></motion-settings-input>
|
||||
</v-col>
|
||||
<v-col class="col-12 col-md-6">
|
||||
<motion-settings-input
|
||||
:label="$t('Panels.MachineSettingsPanel.MotionSettings.SquareCornerVelocity')"
|
||||
:target="current_square_corner_velocity"
|
||||
:default-value="max_square_corner_velocity"
|
||||
:step="1"
|
||||
:min="1"
|
||||
:max="null"
|
||||
: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-md-6">
|
||||
<motion-settings-input
|
||||
:label="$t('Panels.MachineSettingsPanel.MotionSettings.Acceleration')"
|
||||
:target="current_accel"
|
||||
:default-value="max_accel"
|
||||
:step="1"
|
||||
:min="1"
|
||||
:max="null"
|
||||
:dec="0"
|
||||
unit="mm/s²"
|
||||
attribute-name="ACCEL"
|
||||
></motion-settings-input>
|
||||
</v-col>
|
||||
<v-col class="col-12 col-md-6">
|
||||
<motion-settings-input
|
||||
:label="$t('Panels.MachineSettingsPanel.MotionSettings.MaxAccelToDecel')"
|
||||
:target="current_accel_to_decel"
|
||||
:default-value="max_accel_to_decel"
|
||||
:step="1"
|
||||
:min="1"
|
||||
:max="null"
|
||||
:dec="0"
|
||||
unit="mm/s²"
|
||||
attribute-name="ACCEL_TO_DECEL"
|
||||
></motion-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 MotionSettingsInput from '@/components/inputs/MotionSettingsInput.vue'
|
||||
|
||||
@Component({
|
||||
components: {Panel, MotionSettingsInput}
|
||||
})
|
||||
export default class MotionSettings extends Mixins(BaseMixin) {
|
||||
|
||||
get current_velocity(): number {
|
||||
return this.$store.state.printer?.toolhead?.max_velocity ?? 300
|
||||
}
|
||||
|
||||
get current_accel(): number {
|
||||
return this.$store.state.printer?.toolhead?.max_accel ?? 3000
|
||||
}
|
||||
|
||||
get current_accel_to_decel(): number {
|
||||
return this.$store.state.printer?.toolhead?.max_accel_to_decel ?? 1500
|
||||
}
|
||||
|
||||
get current_square_corner_velocity(): number {
|
||||
return this.$store.state.printer?.toolhead?.square_corner_velocity ?? 8
|
||||
}
|
||||
|
||||
get max_velocity(): number {
|
||||
return this.$store.state.printer?.configfile?.settings?.printer?.max_velocity ?? 300
|
||||
}
|
||||
|
||||
get max_accel(): number {
|
||||
return this.$store.state.printer?.configfile?.settings?.printer?.max_accel ?? 3000
|
||||
}
|
||||
|
||||
get max_accel_to_decel(): number {
|
||||
return this.$store.state.printer?.configfile?.settings?.printer?.max_accel_to_decel ?? 1500
|
||||
}
|
||||
|
||||
get max_square_corner_velocity(): number {
|
||||
return this.$store.state.printer?.configfile?.settings?.printer?.square_corner_velocity ?? 8
|
||||
}
|
||||
}
|
||||
</script>
|
||||
@@ -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>
|
||||
@@ -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
|
||||
|
||||
@@ -29,6 +29,9 @@
|
||||
<v-list-item class="minHeight36">
|
||||
<v-checkbox class="mt-0" v-model="hideWaitTemperatures" hide-details :label="$t('Panels.MiniconsolePanel.HideTemperatures')"></v-checkbox>
|
||||
</v-list-item>
|
||||
<v-list-item class="minHeight36" v-if="moonrakerComponents.includes('timelapse')">
|
||||
<v-checkbox class="mt-0" v-model="hideTlCommands" hide-details :label="$t('Panels.MiniconsolePanel.HideTimelapse')"></v-checkbox>
|
||||
</v-list-item>
|
||||
<v-list-item class="minHeight36" v-for="(filter, index) in customFilters" v-bind:key="index">
|
||||
<v-checkbox class="mt-0" v-model="filter.bool" @change="toggleFilter(filter)" hide-details :label="filter.name"></v-checkbox>
|
||||
</v-list-item>
|
||||
@@ -104,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
|
||||
@@ -143,14 +145,26 @@ export default class MiniconsolePanel extends Mixins(BaseMixin) {
|
||||
this.$store.dispatch('gui/saveSetting', { name: 'console.hideWaitTemperatures', value: newVal })
|
||||
}
|
||||
|
||||
get hideTlCommands(): boolean {
|
||||
return this.$store.state.gui.console.hideTlCommands
|
||||
}
|
||||
|
||||
set hideTlCommands(newVal) {
|
||||
this.$store.dispatch('gui/saveSetting', { name: 'console.hideTlCommands', value: newVal })
|
||||
}
|
||||
|
||||
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
|
||||
|
||||
@@ -163,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(() => {
|
||||
|
||||
@@ -13,7 +13,6 @@
|
||||
<div v-for="(object, index) of miscellaneous" v-bind:key="index">
|
||||
<v-divider v-if="index"></v-divider>
|
||||
<miscellaneous-slider
|
||||
:slider-name="object.name"
|
||||
:name="object.name"
|
||||
:type="object.type"
|
||||
:target="object.power"
|
||||
@@ -23,7 +22,6 @@
|
||||
:off_below="object.off_below"
|
||||
:max="object.max_power"
|
||||
:multi="parseInt(object.scale)"
|
||||
:can-lock="true"
|
||||
></miscellaneous-slider>
|
||||
</div>
|
||||
<div v-for="(sensor, index) of filamentSensors" v-bind:key="'sensor_'+index">
|
||||
|
||||
@@ -11,27 +11,25 @@
|
||||
card-class="printsettings-panel"
|
||||
>
|
||||
<tool-slider
|
||||
slider-name="speed-factor"
|
||||
:label="$t('Panels.PrintsettingsPanel.SpeedFactor')"
|
||||
icon="mdi-speedometer"
|
||||
:target="speed_factor"
|
||||
:max="200"
|
||||
:multi="100"
|
||||
:step="5"
|
||||
:dynamic-range="true"
|
||||
:can-lock="true"
|
||||
command="M220"
|
||||
attribute-name="S">
|
||||
</tool-slider>
|
||||
<template v-if="existsExtruder">
|
||||
<v-divider></v-divider>
|
||||
<tool-slider
|
||||
slider-name="extrusion-factor"
|
||||
:label="$t('Panels.PrintsettingsPanel.ExtrusionFactor')"
|
||||
icon="mdi-printer-3d-nozzle-outline"
|
||||
:target="extrude_factor"
|
||||
:max="200"
|
||||
:multi="100"
|
||||
:step="1"
|
||||
:can-lock="true"
|
||||
command="M221"
|
||||
attribute-name="S">
|
||||
</tool-slider>
|
||||
@@ -40,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) {
|
||||
|
||||
|
||||
@@ -376,6 +376,13 @@ export default class StatusPanel extends Mixins(BaseMixin) {
|
||||
loadingName: 'statusPrintResume',
|
||||
status: ['paused'],
|
||||
click: this.btnResumeJob
|
||||
}, {
|
||||
text: this.$t('Panels.StatusPanel.CancelPrint'),
|
||||
color: 'error',
|
||||
icon: 'mdi-stop',
|
||||
loadingName: 'statusPrintCancel',
|
||||
status: this.$store.state.gui.uiSettings.displayCancelPrint ? ['paused', 'printing'] : ['paused'],
|
||||
click: this.btnCancelJob
|
||||
}, {
|
||||
text: this.$t('Panels.StatusPanel.ExcludeObject.ExcludeObject'),
|
||||
color: 'warning',
|
||||
@@ -383,13 +390,6 @@ export default class StatusPanel extends Mixins(BaseMixin) {
|
||||
loadingName: '',
|
||||
status: this.printing_objects.length ? ['paused', 'printing'] : [],
|
||||
click: this.btnExcludeObject
|
||||
}, {
|
||||
text: this.$t('Panels.StatusPanel.CancelPrint'),
|
||||
color: 'error',
|
||||
icon: 'mdi-stop',
|
||||
loadingName: 'statusPrintCancel',
|
||||
status: this.$store.state.gui.general.displayCancelPrint ? ['paused', 'printing'] : ['paused'],
|
||||
click: this.btnCancelJob
|
||||
}, {
|
||||
text: this.$t('Panels.StatusPanel.ClearPrintStats'),
|
||||
color: 'primary',
|
||||
@@ -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) {
|
||||
|
||||
@@ -31,15 +31,15 @@
|
||||
style="max-width: 300px;"
|
||||
></v-text-field>
|
||||
<v-spacer></v-spacer>
|
||||
<v-btn v-if="this.directoryPermissions.includes('w')" @click="createDirectory" :title="$t('Timelapse.CreateNewDirectory')" color="grey darken-3" class="px-2 minwidth-0 ml-3"><v-icon>mdi-folder-plus</v-icon></v-btn>
|
||||
<v-btn @click="refreshFileList" :title="$t('Timelapse.RefreshCurrentDirectory')" color="grey darken-3" class="px-2 minwidth-0 ml-3"><v-icon>mdi-refresh</v-icon></v-btn>
|
||||
<v-btn v-if="this.directoryPermissions.includes('w')" @click="createDirectory" :title="$t('Timelapse.CreateNewDirectory')" class="px-2 minwidth-0 ml-3"><v-icon>mdi-folder-plus</v-icon></v-btn>
|
||||
<v-btn @click="refreshFileList" :title="$t('Timelapse.RefreshCurrentDirectory')" class="px-2 minwidth-0 ml-3"><v-icon>mdi-refresh</v-icon></v-btn>
|
||||
</v-col>
|
||||
</v-row>
|
||||
</v-card-text>
|
||||
<v-card-text>
|
||||
<v-row>
|
||||
<v-col class="col-12 py-2 d-flex align-center">
|
||||
<span><b>{{ $t('Timelapse.CurrentPath') }}:</b> {{ this.currentPath !== 'timelapse' ? "/"+this.currentPath.substring(7) : "/" }}</span>
|
||||
<span><b>{{ $t('Timelapse.CurrentPath') }}:</b> {{ this.currentPath !== 'timelapse' ? "/"+this.currentPath.substring(10) : "/" }}</span>
|
||||
<v-spacer></v-spacer>
|
||||
<template v-if="this.disk_usage !== null">
|
||||
<v-tooltip top>
|
||||
@@ -82,7 +82,7 @@
|
||||
</template>
|
||||
|
||||
<template #no-data>
|
||||
<div class="text-center">{{ $t('Timelapse.Empty') }}</div>
|
||||
<div class="text-center font-italic">{{ $t('Timelapse.Empty') }}</div>
|
||||
</template>
|
||||
|
||||
<template slot="body.prepend" v-if="(currentPath !== 'timelapse')">
|
||||
@@ -284,7 +284,6 @@ export default class TimelapseFilesPanel extends Mixins(BaseMixin) {
|
||||
}
|
||||
|
||||
private search = ''
|
||||
private currentPath = 'timelapse'
|
||||
private boolVideoDialog = false
|
||||
private videoDialogFilename = ''
|
||||
|
||||
@@ -370,31 +369,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() {
|
||||
@@ -405,6 +404,14 @@ export default class TimelapseFilesPanel extends Mixins(BaseMixin) {
|
||||
}) ?? []
|
||||
}
|
||||
|
||||
get currentPath() {
|
||||
return this.$store.state.gui.view.timelapse.currentPath
|
||||
}
|
||||
|
||||
set currentPath(newVal) {
|
||||
this.$store.dispatch('gui/saveSettingWithoutUpload', { name: 'view.timelapse.currentPath', value: newVal })
|
||||
}
|
||||
|
||||
createDirectory() {
|
||||
this.dialogCreateDirectory.name = ''
|
||||
this.dialogCreateDirectory.show = true
|
||||
@@ -537,6 +544,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 +558,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' })
|
||||
}
|
||||
|
||||
@@ -10,20 +10,22 @@
|
||||
<span class="subheading align-baseline"><v-icon left>mdi-information</v-icon>{{ $t("Timelapse.Status")}}</span>
|
||||
</v-toolbar-title>
|
||||
</v-toolbar>
|
||||
<v-card-text v-if="frameUrl" class="pb-0">
|
||||
<v-row>
|
||||
<v-col>
|
||||
<vue-load-image>
|
||||
<img slot="image" :src="frameUrl" :alt="$t('Timelapse.Preview')" class="w-100" />
|
||||
<v-progress-circular slot="preloader" indeterminate color="primary"></v-progress-circular>
|
||||
<v-icon slot="error">mdi-file</v-icon>
|
||||
</vue-load-image>
|
||||
</v-col>
|
||||
</v-row>
|
||||
</v-card-text>
|
||||
<v-card-text :class="framesCount ? 'pt-0' : ''">
|
||||
<v-row v-if="framesCount > 0">
|
||||
<v-col>
|
||||
<v-row no-gutters>
|
||||
<v-col class="col-12 col-sm-6 col-md-12 pb-3 pb-md-0 text--secondary">
|
||||
<v-card-text v-if="frameUrl" class="pb-0">
|
||||
<v-row>
|
||||
<v-col>
|
||||
<vue-load-image>
|
||||
<img slot="image" :src="frameUrl" :alt="$t('Timelapse.Preview')" class="w-100" :style="webcamStyle" />
|
||||
<v-progress-circular slot="preloader" indeterminate color="primary"></v-progress-circular>
|
||||
<v-icon slot="error">mdi-file</v-icon>
|
||||
</vue-load-image>
|
||||
</v-col>
|
||||
</v-row>
|
||||
</v-card-text>
|
||||
</v-col>
|
||||
<v-col class="col-12 col-sm-6 col-md-12 pt-3 pt-md-0 text--secondary" align-self="center" v-if="framesCount > 0">
|
||||
<v-card-text :class="framesCount ? 'pt-0' : ''">
|
||||
<template v-if="framesCount > 0">
|
||||
<settings-row :title="$t('Timelapse.Frames')">
|
||||
{{ framesCount }}
|
||||
@@ -45,7 +47,7 @@
|
||||
</settings-row>
|
||||
</template>
|
||||
</template>
|
||||
<template v-if="framesCount > 0 && ['complete', 'canceled'].includes(printer_state)">
|
||||
<template v-if="framesCount > 0 && !['printing', 'paused'].includes(printer_state)">
|
||||
<v-divider class="mt-2 mb-4"></v-divider>
|
||||
<v-row>
|
||||
<v-col class="text-center">
|
||||
@@ -54,14 +56,14 @@
|
||||
</v-col>
|
||||
</v-row>
|
||||
</template>
|
||||
</v-col>
|
||||
</v-row>
|
||||
<v-row v-else>
|
||||
<v-col>
|
||||
</v-card-text>
|
||||
</v-col>
|
||||
<v-col class="col-12 text--secondary" align-self="center" v-else>
|
||||
<v-card-text class="pt-0 pt-md-3">
|
||||
<p class="text-center my-0 font-italic">{{ $t('Timelapse.NoActiveTimelapse') }}</p>
|
||||
</v-col>
|
||||
</v-row>
|
||||
</v-card-text>
|
||||
</v-card-text>
|
||||
</v-col>
|
||||
</v-row>
|
||||
</v-card>
|
||||
<v-dialog v-model="boolDialogRendersettings" :max-width="700" :max-height="500" >
|
||||
<panel :title="$t('Timelapse.RenderSettings')" icon="mdi-text-box-search-outline" card-class="timelapse-rendersettings-dialog" :margin-bottom="false">
|
||||
@@ -78,6 +80,7 @@
|
||||
outlined
|
||||
dense
|
||||
hide-details
|
||||
attach
|
||||
></v-select>
|
||||
</v-col>
|
||||
<v-col class="col-4">
|
||||
@@ -89,6 +92,7 @@
|
||||
outlined
|
||||
dense
|
||||
hide-details
|
||||
hide-spin-buttons
|
||||
></v-text-field>
|
||||
<v-text-field
|
||||
:label="$t('Timelapse.MaxFramerate')"
|
||||
@@ -97,6 +101,7 @@
|
||||
outlined
|
||||
dense
|
||||
hide-details
|
||||
hide-spin-buttons
|
||||
class="mt-3"
|
||||
></v-text-field>
|
||||
<v-text-field
|
||||
@@ -106,6 +111,7 @@
|
||||
outlined
|
||||
dense
|
||||
hide-details
|
||||
hide-spin-buttons
|
||||
class="mt-3"
|
||||
></v-text-field>
|
||||
</template>
|
||||
@@ -117,6 +123,7 @@
|
||||
outlined
|
||||
dense
|
||||
hide-details
|
||||
hide-spin-buttons
|
||||
></v-text-field>
|
||||
</template>
|
||||
<v-text-field
|
||||
@@ -126,6 +133,7 @@
|
||||
outlined
|
||||
dense
|
||||
hide-details
|
||||
hide-spin-buttons
|
||||
class="mt-3"
|
||||
></v-text-field>
|
||||
</v-col>
|
||||
@@ -288,6 +296,25 @@ export default class TimelapseStatusPanel extends Mixins(BaseMixin) {
|
||||
return ((this.$store.state.server.timelapse?.rendering.status ?? '') === 'running')
|
||||
}
|
||||
|
||||
get camId() {
|
||||
return this.$store.state.server.timelapse.settings.camera ?? ''
|
||||
}
|
||||
|
||||
get camSettings() {
|
||||
return this.$store.getters['gui/webcams/getWebcam'](this.camId)
|
||||
}
|
||||
|
||||
get webcamStyle() {
|
||||
if (this.camSettings === undefined) return ''
|
||||
|
||||
let transforms = ''
|
||||
if ('flipX' in this.camSettings && this.camSettings.flipX) transforms += ' scaleX(-1)'
|
||||
if ('flipX' in this.camSettings && this.camSettings.flipY) transforms += ' scaleY(-1)'
|
||||
if (transforms.trimLeft().length) return { transform: transforms.trimLeft() }
|
||||
|
||||
return ''
|
||||
}
|
||||
|
||||
startRender() {
|
||||
this.boolDialogRendersettings = false
|
||||
|
||||
|
||||
@@ -42,8 +42,8 @@
|
||||
:disabled="['printing', 'paused'].includes(printer_state)"
|
||||
class="pa-1"
|
||||
>
|
||||
<span class="d-none ml-1 d-md-inline">{{ $t("Panels.ToolsPanel.Presets") }}</span>
|
||||
<v-icon v-show="$vuetify.breakpoint.smAndDown">mdi-fire</v-icon>
|
||||
<span class="d-none ml-1 d-md-block">{{ $t("Panels.ToolsPanel.Presets") }}</span>
|
||||
<v-icon class="d-md-none">mdi-fire</v-icon>
|
||||
<v-icon>mdi-menu-down</v-icon>
|
||||
</v-btn>
|
||||
</template>
|
||||
@@ -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 })
|
||||
}
|
||||
|
||||
|
||||
@@ -15,7 +15,7 @@
|
||||
<template v-slot:activator="{ on, attrs }">
|
||||
<v-btn text tile v-bind="attrs" v-on="on">
|
||||
<v-icon small v-if="'icon' in currentCam" class="mr-2">{{ currentCam.icon }}</v-icon>
|
||||
<span v-show="$vuetify.breakpoint.mdAndUp">{{ 'name' in currentCam ? currentCam.name : "unknown" }}</span>
|
||||
<span class="d-none d-md-block">{{ 'name' in currentCam ? currentCam.name : "unknown" }}</span>
|
||||
<v-icon small>mdi-menu-down</v-icon>
|
||||
</v-btn>
|
||||
</template>
|
||||
@@ -98,7 +98,7 @@ export default class WebcamPanel extends Mixins(BaseMixin) {
|
||||
get currentCamId(): string {
|
||||
if (this.webcams.length === 1) return this.webcams[0].id ?? 'all'
|
||||
|
||||
let currentCamId = this.$store.state.gui.webcamSettings.currentCam[this.viewport ?? ''] ?? 'all'
|
||||
let currentCamId = this.$store.state.gui.view.webcam.currentCam[this.viewport ?? ''] ?? 'all'
|
||||
if (this.webcams.findIndex((webcam: GuiWebcamStateWebcam) => webcam.id === currentCamId) !== -1)
|
||||
return currentCamId
|
||||
else if (currentCamId !== undefined && this.webcams.length === 1)
|
||||
|
||||
@@ -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() {
|
||||
|
||||
@@ -7,11 +7,11 @@
|
||||
<v-card flat v-if="!form.bool">
|
||||
<v-card-text>
|
||||
<settings-row :title="$t('Settings.ConsoleTab.Direction')">
|
||||
<v-select v-model="consoleDirection" :items="availableDirections" hide-details outlined dense></v-select>
|
||||
<v-select v-model="consoleDirection" :items="availableDirections" hide-details outlined dense attach></v-select>
|
||||
</settings-row>
|
||||
<v-divider class="my-2"></v-divider>
|
||||
<settings-row :title="$t('Settings.ConsoleTab.EntryStyle')">
|
||||
<v-select v-model="entryStyle" :items="availableEntryStyles" hide-details outlined dense></v-select>
|
||||
<v-select v-model="entryStyle" :items="availableEntryStyles" hide-details outlined dense attach></v-select>
|
||||
</settings-row>
|
||||
<v-divider class="my-2"></v-divider>
|
||||
<settings-row :title="$t('Settings.ConsoleTab.Height')">
|
||||
@@ -21,6 +21,12 @@
|
||||
<settings-row :title="$t('Settings.ConsoleTab.HideTemperatures')" :dynamic-slot-width="true">
|
||||
<v-switch v-model="hideWaitTemperatures" hide-details class="mt-0"></v-switch>
|
||||
</settings-row>
|
||||
<template v-if="moonrakerComponents.includes('timelapse')">
|
||||
<v-divider class="my-2"></v-divider>
|
||||
<settings-row :title="$t('Settings.ConsoleTab.HideTimelapse')" :dynamic-slot-width="true">
|
||||
<v-switch v-model="hideTimelapse" hide-details class="mt-0"></v-switch>
|
||||
</settings-row>
|
||||
</template>
|
||||
<v-divider class="my-2"></v-divider>
|
||||
<div v-for="(filter, index) in consoleFilters" v-bind:key="index">
|
||||
<v-divider class="my-2" v-if="index"></v-divider>
|
||||
@@ -114,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() {
|
||||
@@ -134,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() {
|
||||
@@ -154,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() {
|
||||
@@ -162,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')
|
||||
@@ -180,7 +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.hideTlCommands
|
||||
}
|
||||
|
||||
set hideTimelapse(newVal) {
|
||||
this.$store.dispatch('gui/console/saveSetting', { name: 'hideTlCommands', value: newVal })
|
||||
}
|
||||
|
||||
existsPresetName(name: string) {
|
||||
@@ -201,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() {
|
||||
@@ -226,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>
|
||||
@@ -8,7 +8,7 @@
|
||||
<v-card-text>
|
||||
<v-form ref="formControlExtruder">
|
||||
<settings-row :title="$t('Settings.ControlTab.Style')">
|
||||
<v-select v-model="controlStyle" :items="controlStyles" outlined dense hide-details></v-select>
|
||||
<v-select v-model="controlStyle" :items="controlStyles" outlined dense hide-details attach></v-select>
|
||||
</settings-row>
|
||||
<v-divider class="my-2"></v-divider>
|
||||
<template v-if="['circle', 'cross'].includes(controlStyle)">
|
||||
@@ -32,9 +32,10 @@
|
||||
type="number"
|
||||
suffix="mm/s"
|
||||
hide-details="auto"
|
||||
:rules="[v => v > 0 || 'Minimum speed is 1']"
|
||||
:rules="[v => v > 0 || $t('Settings.ControlTab.ValueGreaterThan', {value: '0'})]"
|
||||
outlined
|
||||
dense
|
||||
hide-spin-buttons
|
||||
></v-text-field>
|
||||
</settings-row>
|
||||
<v-divider class="my-2"></v-divider>
|
||||
@@ -45,9 +46,10 @@
|
||||
type="number"
|
||||
suffix="mm/s"
|
||||
hide-details="auto"
|
||||
:rules="[v => v > 0 || 'Minimum speed is 1']"
|
||||
:rules="[v => v > 0 || $t('Settings.ControlTab.ValueGreaterThan', {value: '0'})]"
|
||||
outlined
|
||||
dense
|
||||
hide-spin-buttons
|
||||
></v-text-field>
|
||||
</settings-row>
|
||||
<v-divider class="my-2"></v-divider>
|
||||
@@ -56,18 +58,19 @@
|
||||
<v-combobox
|
||||
v-model="stepsAll"
|
||||
hide-selected
|
||||
hide-details
|
||||
hide-details="auto"
|
||||
multiple
|
||||
small-chips
|
||||
:deletable-chips="true"
|
||||
append-icon=""
|
||||
type="number"
|
||||
:rules="[
|
||||
v => v.length > 0 || 'Minimum 1 value',
|
||||
v => v.length < 9 || 'For narrow screens it is recommended to enter max. 3 values.',
|
||||
v => v.length > 0 || $t('Settings.ControlTab.MinimumValues', {minimum: '1'}),
|
||||
v => v.length <= 9 || $t('Settings.ControlTab.MaximumValuesVisibility', {maximum: '9'}),
|
||||
]"
|
||||
dense
|
||||
outlined
|
||||
hide-spin-buttons
|
||||
></v-combobox>
|
||||
</settings-row>
|
||||
<v-divider class="my-2"></v-divider>
|
||||
@@ -77,18 +80,19 @@
|
||||
<v-combobox
|
||||
v-model="stepsCircleXY"
|
||||
hide-selected
|
||||
hide-details
|
||||
hide-details="auto"
|
||||
multiple
|
||||
small-chips
|
||||
:deletable-chips="true"
|
||||
append-icon=""
|
||||
type="number"
|
||||
:rules="[
|
||||
v => v.length > 0 || 'Minimum 1 value',
|
||||
v => v.length < 9 || 'For narrow screens it is recommended to enter max. 4 values.',
|
||||
]"
|
||||
v => v.length > 0 || $t('Settings.ControlTab.MinimumValues', {minimum: '1'}),
|
||||
v => v.length <= 4 || $t('Settings.ControlTab.MaximumValues', {maximum: '4'}),
|
||||
]"
|
||||
dense
|
||||
outlined
|
||||
hide-spin-buttons
|
||||
></v-combobox>
|
||||
</settings-row>
|
||||
<v-divider class="my-2"></v-divider>
|
||||
@@ -96,18 +100,19 @@
|
||||
<v-combobox
|
||||
v-model="stepsCircleZ"
|
||||
hide-selected
|
||||
hide-details
|
||||
hide-details="auto"
|
||||
multiple
|
||||
small-chips
|
||||
:deletable-chips="true"
|
||||
append-icon=""
|
||||
type="number"
|
||||
:rules="[
|
||||
v => v.length > 0 || 'Minimum 1 value',
|
||||
v => v.length < 9 || 'For narrow screens it is recommended to enter max. 4 values.',
|
||||
]"
|
||||
v => v.length > 0 || $t('Settings.ControlTab.MinimumValues', {minimum: '1'}),
|
||||
v => v.length <= 4 || $t('Settings.ControlTab.MaximumValues', {maximum: '4'}),
|
||||
]"
|
||||
dense
|
||||
outlined
|
||||
hide-spin-buttons
|
||||
></v-combobox>
|
||||
</settings-row>
|
||||
<v-divider class="my-2"></v-divider>
|
||||
@@ -117,18 +122,19 @@
|
||||
<v-combobox
|
||||
v-model="stepsXY"
|
||||
hide-selected
|
||||
hide-details
|
||||
hide-details="auto"
|
||||
multiple
|
||||
small-chips
|
||||
:deletable-chips="true"
|
||||
append-icon=""
|
||||
type="number"
|
||||
:rules="[
|
||||
v => v.length > 0 || 'Minimum 1 value',
|
||||
v => v.length < 9 || 'For narrow screens it is recommended to enter max. 3 values.',
|
||||
]"
|
||||
v => v.length > 0 || $t('Settings.ControlTab.MinimumValues', {minimum: '1'}),
|
||||
v => v.length <= 3 || $t('Settings.ControlTab.MaximumValuesVisibility', {maximum: '3'}),
|
||||
]"
|
||||
dense
|
||||
outlined
|
||||
hide-spin-buttons
|
||||
></v-combobox>
|
||||
</settings-row>
|
||||
<v-divider class="my-2"></v-divider>
|
||||
@@ -136,18 +142,19 @@
|
||||
<v-combobox
|
||||
v-model="stepsZ"
|
||||
hide-selected
|
||||
hide-details
|
||||
hide-details="auto"
|
||||
multiple
|
||||
small-chips
|
||||
:deletable-chips="true"
|
||||
append-icon=""
|
||||
type="number"
|
||||
:rules="[
|
||||
v => v.length > 0 || 'Minimum 1 value',
|
||||
v => v.length < 9 || 'For narrow screens it is recommended to enter max. 3 values.',
|
||||
]"
|
||||
v => v.length > 0 || $t('Settings.ControlTab.MinimumValues', {minimum: '1'}),
|
||||
v => v.length <= 3 || $t('Settings.ControlTab.MaximumValuesVisibility', {maximum: '3'}),
|
||||
]"
|
||||
dense
|
||||
outlined
|
||||
hide-spin-buttons
|
||||
></v-combobox>
|
||||
</settings-row>
|
||||
<v-divider class="my-2"></v-divider>
|
||||
@@ -162,12 +169,13 @@
|
||||
:deletable-chips="true"
|
||||
append-icon=""
|
||||
type="number"
|
||||
:rules="[
|
||||
v => v.length > 0 || 'Minimum 1 value',
|
||||
v => v.length < 6 || 'For narrow screens it is recommended to enter max. 5 values.',
|
||||
]"
|
||||
:rules="[
|
||||
v => v.length > 0 || $t('Settings.ControlTab.MinimumValues', {minimum: '1'}),
|
||||
v => v.length <= 5 || $t('Settings.ControlTab.MaximumValuesVisibility', {maximum: '5'}),
|
||||
]"
|
||||
dense
|
||||
outlined
|
||||
hide-spin-buttons
|
||||
></v-combobox>
|
||||
</settings-row>
|
||||
<v-divider class="my-2"></v-divider>
|
||||
@@ -181,12 +189,13 @@
|
||||
:deletable-chips="true"
|
||||
append-icon=""
|
||||
type="number"
|
||||
:rules="[
|
||||
v => v.length > 0 || 'Minimum 1 value',
|
||||
v => v.length < 6 || 'For narrow screens it is recommended to enter max. 5 values.',
|
||||
]"
|
||||
:rules="[
|
||||
v => v.length > 0 || $t('Settings.ControlTab.MinimumValues', {minimum: '1'}),
|
||||
v => v.length <= 5 || $t('Settings.ControlTab.MaximumValuesVisibility', {maximum: '5'}),
|
||||
]"
|
||||
dense
|
||||
outlined
|
||||
hide-spin-buttons
|
||||
></v-combobox>
|
||||
</settings-row>
|
||||
</v-form>
|
||||
@@ -227,135 +236,142 @@ 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 })
|
||||
}
|
||||
|
||||
set stepsAll(newVal) {
|
||||
const absSteps = []
|
||||
for(const value of newVal) absSteps.push(Math.abs(value))
|
||||
const steps = absSteps.filter(this.onlyUnique)
|
||||
|
||||
this.$store.dispatch('gui/saveSetting', { name: 'dashboard.control.stepsAll', value: absSteps })
|
||||
this.$store.dispatch('gui/saveSetting', { name: 'control.stepsAll', value: steps })
|
||||
}
|
||||
|
||||
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 })
|
||||
}
|
||||
|
||||
set stepsXY(steps) {
|
||||
set stepsXY(newVal) {
|
||||
const absSteps = []
|
||||
for(const value of steps) absSteps.push(Math.abs(value))
|
||||
for(const value of newVal) absSteps.push(Math.abs(value))
|
||||
const steps = absSteps.filter(this.onlyUnique)
|
||||
|
||||
this.$store.dispatch('gui/saveSetting', { name: 'dashboard.control.stepsXY', value: absSteps })
|
||||
this.$store.dispatch('gui/saveSetting', { name: 'control.stepsXY', value: steps })
|
||||
}
|
||||
|
||||
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 })
|
||||
}
|
||||
|
||||
set stepsZ(steps) {
|
||||
set stepsZ(newVal) {
|
||||
const absSteps = []
|
||||
for(const value of steps) absSteps.push(Math.abs(value))
|
||||
for(const value of newVal) absSteps.push(Math.abs(value))
|
||||
const steps = absSteps.filter(this.onlyUnique)
|
||||
|
||||
this.$store.dispatch('gui/saveSetting', { name: 'dashboard.control.stepsZ', value: absSteps })
|
||||
this.$store.dispatch('gui/saveSetting', { name: 'control.stepsZ', value: steps })
|
||||
}
|
||||
|
||||
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 })
|
||||
}
|
||||
|
||||
set stepsCircleXY(steps) {
|
||||
set stepsCircleXY(newVal) {
|
||||
const absSteps = []
|
||||
for(const value of steps) absSteps.push(Math.abs(value))
|
||||
for(const value of newVal) absSteps.push(Math.abs(value))
|
||||
const steps = absSteps.filter(this.onlyUnique)
|
||||
|
||||
this.$store.dispatch('gui/saveSetting', { name: 'dashboard.control.stepsCircleXY', value: absSteps })
|
||||
this.$store.dispatch('gui/saveSetting', { name: 'control.stepsCircleXY', value: steps })
|
||||
}
|
||||
|
||||
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 })
|
||||
}
|
||||
|
||||
set stepsCircleZ(steps) {
|
||||
set stepsCircleZ(newVal) {
|
||||
const absSteps = []
|
||||
for(const value of steps) absSteps.push(Math.abs(value))
|
||||
for(const value of newVal) absSteps.push(Math.abs(value))
|
||||
const steps = absSteps.filter(this.onlyUnique)
|
||||
|
||||
this.$store.dispatch('gui/saveSetting', { name: 'dashboard.control.stepsCircleZ', value: absSteps })
|
||||
this.$store.dispatch('gui/saveSetting', { name: 'control.stepsCircleZ', value: steps })
|
||||
}
|
||||
|
||||
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 })
|
||||
}
|
||||
|
||||
set feedamountsE(amounts) {
|
||||
set feedamountsE(newVal) {
|
||||
const absAmounts = []
|
||||
for(const value of amounts) absAmounts.push(Math.abs(value))
|
||||
for(const value of newVal) absAmounts.push(Math.abs(value))
|
||||
const amounts = absAmounts.filter(this.onlyUnique)
|
||||
|
||||
this.$store.dispatch('gui/saveSetting', { name: 'dashboard.extruder.feedamounts', value: absAmounts })
|
||||
this.$store.dispatch('gui/saveSetting', { name: 'control.extruder.feedamounts', value: amounts })
|
||||
}
|
||||
|
||||
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 })
|
||||
}
|
||||
|
||||
set feedratesE(rates) {
|
||||
set feedratesE(newVal) {
|
||||
const absRates = []
|
||||
for(const value of rates) absRates.push(Math.abs(value))
|
||||
for(const value of newVal) absRates.push(Math.abs(value))
|
||||
const rates = absRates.filter(this.onlyUnique)
|
||||
|
||||
this.$store.dispatch('gui/saveSetting', { name: 'dashboard.extruder.feedrates', value: absRates })
|
||||
this.$store.dispatch('gui/saveSetting', { name: 'control.extruder.feedrates', value: rates })
|
||||
}
|
||||
|
||||
blurFeedrateXY() {
|
||||
@@ -366,6 +382,10 @@ export default class SettingsControlTab extends Mixins(BaseMixin) {
|
||||
if (!(this.feedrateZ > 0)) this.feedrateZ = 25
|
||||
}
|
||||
|
||||
onlyUnique(value: any, index: any, self: any[]) {
|
||||
return self.indexOf(value) === index
|
||||
}
|
||||
|
||||
mounted() {
|
||||
this.$refs.formControlExtruder.validate()
|
||||
}
|
||||
|
||||
@@ -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 })
|
||||
}
|
||||
}
|
||||
|
||||
@@ -45,7 +45,7 @@
|
||||
</template>
|
||||
<v-color-picker :value="minFeedColor" @update:color="updateColorValue('minFeedColor', $event)" hide-mode-switch mode="rgba"></v-color-picker>
|
||||
</v-menu>
|
||||
<v-text-field :rules="[v => v > 0 || 'Minimum speed is 1']" @blur="feedBlur" dense hide-details="auto" outlined suffix="mm/s" type="number" v-model="minFeed"></v-text-field>
|
||||
<v-text-field :rules="[v => v > 0 || 'Minimum speed is 1']" @blur="feedBlur" dense hide-details="auto" outlined suffix="mm/s" type="number" v-model="minFeed" hide-spin-buttons></v-text-field>
|
||||
</settings-row>
|
||||
<v-divider class="my-2"></v-divider>
|
||||
<settings-row :title="$t('Settings.GCodeViewerTab.MaxFeed')">
|
||||
@@ -55,7 +55,7 @@
|
||||
</template>
|
||||
<v-color-picker :value="maxFeedColor" @update:color="updateColorValue('maxFeedColor', $event)" hide-mode-switch mode="rgba"></v-color-picker>
|
||||
</v-menu>
|
||||
<v-text-field :rules="[v => v > 0 || 'Minimum speed is 1']" @blur="feedBlur" dense hide-details="auto" outlined suffix="mm/s" type="number" v-model="maxFeed"></v-text-field>
|
||||
<v-text-field :rules="[v => v > 0 || 'Minimum speed is 1']" @blur="feedBlur" dense hide-details="auto" outlined suffix="mm/s" type="number" v-model="maxFeed" hide-spin-buttons></v-text-field>
|
||||
</settings-row>
|
||||
</v-card-text>
|
||||
</v-card>
|
||||
|
||||
@@ -7,24 +7,82 @@
|
||||
</settings-row>
|
||||
<v-divider class="my-2"></v-divider>
|
||||
<settings-row :title="$t('Settings.GeneralTab.Language')">
|
||||
<v-select v-model="currentLanguage" :items="availableLanguages" hide-details outlined dense></v-select>
|
||||
<v-select v-model="currentLanguage" :items="availableLanguages" hide-details outlined dense attach></v-select>
|
||||
</settings-row>
|
||||
<v-divider class="my-2"></v-divider>
|
||||
<settings-row :title="$t('Settings.GeneralTab.CalcEstimateTime')" :sub-title="$t('Settings.GeneralTab.CalcEstimateTimeDescription')">
|
||||
<v-select v-model="calcEstimateTime" :items="calcEstimateItems" multiple hide-details dense outlined></v-select>
|
||||
<v-select v-model="calcEstimateTime" :items="calcEstimateItems" multiple hide-details dense outlined attach></v-select>
|
||||
</settings-row>
|
||||
<v-divider class="my-2"></v-divider>
|
||||
<settings-row :title="$t('Settings.GeneralTab.CalcEtaTime')" :sub-title="$t('Settings.GeneralTab.CalcEtaTimeDescription')">
|
||||
<v-select v-model="calcEtaTime" :items="calcEtaTimeItems" multiple hide-details dense outlined></v-select>
|
||||
<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,54 +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')"
|
||||
:label="$t('Settings.GeneralTab.DbTimelapseSettings')"
|
||||
v-if="availableNamespaces.includes('timelapse')"
|
||||
hide-details
|
||||
class="mt-0"
|
||||
@change="changeNamespace('timelapse')"
|
||||
></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')"
|
||||
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>
|
||||
@@ -91,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>
|
||||
@@ -101,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>
|
||||
|
||||
@@ -111,19 +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,
|
||||
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() {
|
||||
@@ -198,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></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) {
|
||||
|
||||
@@ -44,7 +44,7 @@
|
||||
</settings-row>
|
||||
<v-divider class="my-2"></v-divider>
|
||||
<settings-row :title="$t('Settings.MacrosTab.Color')">
|
||||
<v-select v-model="editGroup.color" :items="groupColors" @change="updateGroupOptionColor" outlined dense hide-details></v-select>
|
||||
<v-select v-model="editGroup.color" :items="groupColors" @change="updateGroupOptionColor" outlined dense hide-details attach></v-select>
|
||||
</settings-row>
|
||||
<template v-if="editGroup.color === 'custom'">
|
||||
<v-divider class="my-2"></v-divider>
|
||||
@@ -178,7 +178,7 @@
|
||||
</template>
|
||||
</v-card-text>
|
||||
<v-card-actions class="d-flex justify-end">
|
||||
<v-btn text @click="cancelEditMacrogroup">{{ $t('Settings.Cancel')}}</v-btn>
|
||||
<v-btn text @click="cancelEditMacrogroup">{{ $t('Settings.Close')}}</v-btn>
|
||||
</v-card-actions>
|
||||
</template>
|
||||
</div>
|
||||
@@ -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>
|
||||
@@ -59,6 +59,7 @@
|
||||
suffix="°C"
|
||||
dense
|
||||
outlined
|
||||
hide-spin-buttons
|
||||
></v-text-field>
|
||||
</settings-row>
|
||||
</div>
|
||||
@@ -77,6 +78,7 @@
|
||||
suffix="°C"
|
||||
dense
|
||||
outlined
|
||||
hide-spin-buttons
|
||||
></v-text-field>
|
||||
</settings-row>
|
||||
</div>
|
||||
@@ -290,8 +292,8 @@ export default class SettingsPresetsTab extends Mixins(BaseMixin) {
|
||||
}
|
||||
|
||||
if (this.form.id !== null) {
|
||||
this.$store.dispatch('gui/presets/update', { id: this.form.id, values: preset} )
|
||||
} else this.$store.dispatch('gui/presets/store', { values: preset} )
|
||||
this.$store.dispatch('gui/presets/update', { id: this.form.id, values: preset } )
|
||||
} else this.$store.dispatch('gui/presets/store', { values: preset } )
|
||||
|
||||
this.clearForm()
|
||||
}
|
||||
@@ -304,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
|
||||
}
|
||||
}
|
||||
|
||||
@@ -12,16 +12,16 @@
|
||||
</settings-row>
|
||||
<v-divider class="my-2"></v-divider>
|
||||
<settings-row :title="$t('Settings.TimelapseTab.Camera')" :sub-title="$t('Settings.TimelapseTab.CameraDescription')">
|
||||
<v-select v-model="camera" :items="cameraOptions" hide-details outlined dense :disabled="blockedsettings.includes('cameraOptions')"></v-select>
|
||||
<v-select v-model="camera" :items="cameraOptions" hide-details outlined dense :disabled="blockedsettings.includes('camera') || blockedsettings.includes('snapshoturl')" attach></v-select>
|
||||
</settings-row>
|
||||
<v-divider class="my-2"></v-divider>
|
||||
<settings-row :title="$t('Settings.TimelapseTab.Mode')" :sub-title="$t('Settings.TimelapseTab.ModeDescription')">
|
||||
<v-select v-model="mode" :items="modeOptions" hide-details outlined dense :disabled="blockedsettings.includes('modeOptions')"></v-select>
|
||||
<v-select v-model="mode" :items="modeOptions" hide-details outlined dense :disabled="blockedsettings.includes('modeOptions')" attach></v-select>
|
||||
</settings-row>
|
||||
<template v-if="mode === 'hyperlapse'">
|
||||
<v-divider class="my-2"></v-divider>
|
||||
<settings-row :title="$t('Settings.TimelapseTab.HyperlapseCycle')" :sub-title="$t('Settings.TimelapseTab.HyperlapseCycleDescription')">
|
||||
<v-text-field v-model="hyperlapseCycle" type="number" suffix="s" hide-details="auto" outlined dense :disabled="blockedsettings.includes('hyperlapseCycle')"></v-text-field>
|
||||
<v-text-field v-model="hyperlapseCycle" type="number" suffix="s" hide-details="auto" outlined dense :disabled="blockedsettings.includes('hyperlapseCycle')" hide-spin-buttons></v-text-field>
|
||||
</settings-row>
|
||||
</template>
|
||||
<v-divider class="my-2"></v-divider>
|
||||
@@ -33,6 +33,10 @@
|
||||
<v-switch v-model="saveframes" hide-details class="mt-0" :disabled="blockedsettings.includes('saveframes')"></v-switch>
|
||||
</settings-row>
|
||||
<v-divider class="my-2"></v-divider>
|
||||
<settings-row :title="$t('Settings.TimelapseTab.StreamDelayCompensation')" :sub-title="$t('Settings.TimelapseTab.StreamDelayCompensationDescription')">
|
||||
<v-text-field v-model="stream_delay_compensation" type="number" suffix="s" step="0.01" hide-details="auto" outlined dense :disabled="blockedsettings.includes('stream_delay_compensation')"></v-text-field>
|
||||
</settings-row>
|
||||
<v-divider class="my-2"></v-divider>
|
||||
<settings-row :title="$t('Settings.TimelapseTab.GcodeVerbose')" :sub-title="$t('Settings.TimelapseTab.GcodeVerboseDescription')" :dynamicSlotWidth="true">
|
||||
<v-switch v-model="gcode_verbose" hide-details class="mt-0" :disabled="blockedsettings.includes('gcode_verbose')"></v-switch>
|
||||
</settings-row><v-divider class="my-2"></v-divider>
|
||||
@@ -43,41 +47,51 @@
|
||||
<template v-if="parkhead">
|
||||
<v-divider class="my-2"></v-divider>
|
||||
<settings-row :title="$t('Settings.TimelapseTab.Parkpos')" :sub-title="$t('Settings.TimelapseTab.ParkposDescription')">
|
||||
<v-select v-model="parkpos" :items="parkposOptions" hide-details outlined dense :disabled="blockedsettings.includes('parkposOptions')"></v-select>
|
||||
<v-select v-model="parkpos" :items="parkposOptions" hide-details outlined dense :disabled="blockedsettings.includes('parkposOptions')" attach></v-select>
|
||||
</settings-row>
|
||||
<template v-if="parkpos === 'custom'">
|
||||
<v-divider class="my-2"></v-divider>
|
||||
<settings-row :title="$t('Settings.TimelapseTab.PosX')" :sub-title="$t('Settings.TimelapseTab.PosXDescription')">
|
||||
<v-text-field v-model="park_custom_pos_x" type="number" suffix="mm" hide-details="auto" outlined dense :disabled="blockedsettings.includes('park_custom_pos_x')"></v-text-field>
|
||||
<v-text-field v-model="park_custom_pos_x" type="number" suffix="mm" hide-details="auto" outlined dense :disabled="blockedsettings.includes('park_custom_pos_x')" hide-spin-buttons></v-text-field>
|
||||
</settings-row>
|
||||
<v-divider class="my-2"></v-divider>
|
||||
<settings-row :title="$t('Settings.TimelapseTab.PosY')" :sub-title="$t('Settings.TimelapseTab.PosYDescription')">
|
||||
<v-text-field v-model="park_custom_pos_y" type="number" suffix="mm" hide-details="auto" outlined dense :disabled="blockedsettings.includes('park_custom_pos_y')"></v-text-field>
|
||||
<v-text-field v-model="park_custom_pos_y" type="number" suffix="mm" hide-details="auto" outlined dense :disabled="blockedsettings.includes('park_custom_pos_y')" hide-spin-buttons></v-text-field>
|
||||
</settings-row>
|
||||
<v-divider class="my-2"></v-divider>
|
||||
<settings-row :title="$t('Settings.TimelapseTab.PosDZ')" :sub-title="$t('Settings.TimelapseTab.PosDZDescription')">
|
||||
<v-text-field v-model="park_custom_pos_dz" type="number" suffix="mm" hide-details="auto" outlined dense :disabled="blockedsettings.includes('park_custom_pos_dz')"></v-text-field>
|
||||
<v-text-field v-model="park_custom_pos_dz" type="number" suffix="mm" hide-details="auto" outlined dense :disabled="blockedsettings.includes('park_custom_pos_dz')" hide-spin-buttons></v-text-field>
|
||||
</settings-row>
|
||||
</template>
|
||||
<v-divider class="my-2"></v-divider>
|
||||
<settings-row :title="$t('Settings.TimelapseTab.TravelSpeed')" :sub-title="$t('Settings.TimelapseTab.TravelSpeedDescription')">
|
||||
<v-text-field v-model="park_travel_speed" type="number" suffix="mm/s" hide-details="auto" outlined dense :disabled="blockedsettings.includes('park_travel_speed')"></v-text-field>
|
||||
<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')"></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.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')"></v-text-field>
|
||||
</settings-row>
|
||||
<v-divider class="my-2"></v-divider>
|
||||
<settings-row :title="$t('Settings.TimelapseTab.ExtractSpeed')" :sub-title="$t('Settings.TimelapseTab.ExtractSpeedDescription')">
|
||||
<v-text-field v-model="park_extrude_speed" type="number" suffix="mm/s" hide-details="auto" outlined dense :disabled="blockedsettings.includes('park_extrude_speed')"></v-text-field>
|
||||
</settings-row>
|
||||
<v-divider class="my-2"></v-divider>
|
||||
<settings-row :title="$t('Settings.TimelapseTab.ExtractDistance')" :sub-title="$t('Settings.TimelapseTab.ExtractDistanceDescription')">
|
||||
<v-text-field v-model="park_extrude_distance" type="number" suffix="mm" hide-details="auto" outlined dense :disabled="blockedsettings.includes('park_extrude_distance')"></v-text-field>
|
||||
<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>
|
||||
</settings-row>
|
||||
</template>
|
||||
<v-divider class="my-2"></v-divider>
|
||||
@@ -88,34 +102,30 @@
|
||||
<template v-if="variable_fps">
|
||||
<v-divider class="my-2"></v-divider>
|
||||
<settings-row :title="$t('Settings.TimelapseTab.Targetlength')" :sub-title="$t('Settings.TimelapseTab.TargetlengthDescription')">
|
||||
<v-text-field v-model="targetlength" type="number" suffix="s" hide-details="auto" outlined dense :disabled="blockedsettings.includes('targetlength')"></v-text-field>
|
||||
<v-text-field v-model="targetlength" type="number" suffix="s" hide-details="auto" outlined dense :disabled="blockedsettings.includes('targetlength')" hide-spin-buttons></v-text-field>
|
||||
</settings-row>
|
||||
<v-divider class="my-2"></v-divider>
|
||||
<settings-row :title="$t('Settings.TimelapseTab.VariableFpsMin')" :sub-title="$t('Settings.TimelapseTab.VariableFpsMinDescription')">
|
||||
<v-text-field v-model="variable_fps_min" type="number" suffix="frames" hide-details="auto" outlined dense :disabled="blockedsettings.includes('variable_fps_min')"></v-text-field>
|
||||
<v-text-field v-model="variable_fps_min" type="number" suffix="frames" hide-details="auto" outlined dense :disabled="blockedsettings.includes('variable_fps_min')" hide-spin-buttons></v-text-field>
|
||||
</settings-row>
|
||||
<v-divider class="my-2"></v-divider>
|
||||
<settings-row :title="$t('Settings.TimelapseTab.VariableFpsMax')" :sub-title="$t('Settings.TimelapseTab.VariableFpsMaxDescription')">
|
||||
<v-text-field v-model="variable_fps_max" type="number" suffix="frames" hide-details="auto" outlined dense :disabled="blockedsettings.includes('variable_fps_max')"></v-text-field>
|
||||
<v-text-field v-model="variable_fps_max" type="number" suffix="frames" hide-details="auto" outlined dense :disabled="blockedsettings.includes('variable_fps_max')" hide-spin-buttons></v-text-field>
|
||||
</settings-row>
|
||||
</template>
|
||||
<template v-else>
|
||||
<v-divider class="my-2"></v-divider>
|
||||
<settings-row :title="$t('Settings.TimelapseTab.OutputFramerate')" :sub-title="$t('Settings.TimelapseTab.OutputFramerateDescription')">
|
||||
<v-text-field v-model="output_framerate" type="number" suffix="frames" hide-details="auto" outlined dense :disabled="blockedsettings.includes('output_framerate')"></v-text-field>
|
||||
<v-text-field v-model="output_framerate" type="number" suffix="frames" hide-details="auto" outlined dense :disabled="blockedsettings.includes('output_framerate')" hide-spin-buttons></v-text-field>
|
||||
</settings-row>
|
||||
</template>
|
||||
<v-divider class="my-2"></v-divider>
|
||||
<settings-row :title="$t('Settings.TimelapseTab.Rotation')" :sub-title="$t('Settings.TimelapseTab.RotationDescription')">
|
||||
<v-text-field v-model="rotation" type="number" hide-details="auto" outlined dense :disabled="blockedsettings.includes('rotation')"></v-text-field>
|
||||
</settings-row>
|
||||
<v-divider class="my-2"></v-divider>
|
||||
<settings-row :title="$t('Settings.TimelapseTab.duplicatelastframe')" :sub-title="$t('Settings.TimelapseTab.duplicatelastframeDescription')">
|
||||
<v-text-field v-model="duplicatelastframe" type="number" hide-details="auto" outlined dense :disabled="blockedsettings.includes('duplicatelastframe')"></v-text-field>
|
||||
<v-text-field v-model="duplicatelastframe" type="number" hide-details="auto" outlined dense :disabled="blockedsettings.includes('duplicatelastframe')" hide-spin-buttons></v-text-field>
|
||||
</settings-row>
|
||||
<v-divider class="my-2"></v-divider>
|
||||
<settings-row :title="$t('Settings.TimelapseTab.ConstantRateFactor')" :sub-title="$t('Settings.TimelapseTab.ConstantRateFactorDescription')">
|
||||
<v-text-field v-model="constant_rate_factor" type="number" hide-details="auto" outlined dense :disabled="blockedsettings.includes('constant_rate_factor')"></v-text-field>
|
||||
<v-text-field v-model="constant_rate_factor" type="number" hide-details="auto" outlined dense :disabled="blockedsettings.includes('constant_rate_factor')" hide-spin-buttons></v-text-field>
|
||||
</settings-row>
|
||||
<v-divider class="my-2"></v-divider>
|
||||
<settings-row :title="$t('Settings.TimelapseTab.Pixelformat')" :sub-title="$t('Settings.TimelapseTab.PixelformatDescription')">
|
||||
@@ -242,6 +252,14 @@ export default class SettingsTimelapseTab extends Mixins(BaseMixin) {
|
||||
this.$store.dispatch('server/timelapse/saveSetting', { saveframes: newVal })
|
||||
}
|
||||
|
||||
get stream_delay_compensation() {
|
||||
return this.$store.state.server.timelapse.settings.stream_delay_compensation
|
||||
}
|
||||
|
||||
set stream_delay_compensation(newVal) {
|
||||
this.$store.dispatch('server/timelapse/saveSetting', { stream_delay_compensation: newVal })
|
||||
}
|
||||
|
||||
get previewimage() {
|
||||
return this.$store.state.server.timelapse.settings.previewimage
|
||||
}
|
||||
@@ -338,6 +356,22 @@ export default class SettingsTimelapseTab extends Mixins(BaseMixin) {
|
||||
this.$store.dispatch('server/timelapse/saveSetting', { park_extrude_distance: newVal })
|
||||
}
|
||||
|
||||
get park_time() {
|
||||
return this.$store.state.server.timelapse.settings.park_time
|
||||
}
|
||||
|
||||
set park_time(newVal) {
|
||||
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
|
||||
}
|
||||
@@ -402,14 +436,6 @@ export default class SettingsTimelapseTab extends Mixins(BaseMixin) {
|
||||
this.$store.dispatch('server/timelapse/saveSetting', { variable_fps_max: newVal })
|
||||
}
|
||||
|
||||
get rotation() {
|
||||
return this.$store.state.server.timelapse.settings.rotation
|
||||
}
|
||||
|
||||
set rotation(newVal) {
|
||||
this.$store.dispatch('server/timelapse/saveSetting', { rotation: newVal })
|
||||
}
|
||||
|
||||
get duplicatelastframe() {
|
||||
return this.$store.state.server.timelapse.settings.duplicatelastframe
|
||||
}
|
||||
|
||||
@@ -72,6 +72,7 @@
|
||||
hide-details
|
||||
outlined
|
||||
dense
|
||||
hide-spin-buttons
|
||||
></v-text-field>
|
||||
</settings-row>
|
||||
</v-expand-transition>
|
||||
@@ -85,7 +86,7 @@
|
||||
</settings-row>
|
||||
<v-divider class="my-2"></v-divider>
|
||||
<settings-row :title="$t('Settings.UiSettingsTab.NavigationStyle')" :sub-title="$t('Settings.UiSettingsTab.NavigationStyleDescription')">
|
||||
<v-select v-model="navigationStyleSetting" :items="navigationStyles" outlined dense hide-details class="mt-0"></v-select>
|
||||
<v-select v-model="navigationStyleSetting" :items="navigationStyles" outlined dense hide-details class="mt-0" attach></v-select>
|
||||
</settings-row>
|
||||
<v-divider class="my-2"></v-divider>
|
||||
<settings-row :title="$t('Settings.UiSettingsTab.BoolHideUploadAndPrintButton')" :sub-title="$t('Settings.UiSettingsTab.BoolHideUploadAndPrintButtonDescription')" :dynamicSlotWidth="true">
|
||||
@@ -114,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() {
|
||||
@@ -219,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 {
|
||||
|
||||
@@ -20,7 +20,7 @@
|
||||
</v-card-actions>
|
||||
</v-card>
|
||||
<v-card flat v-else>
|
||||
<v-form v-model="form.valid" @submit.prevent="saveWebcam">
|
||||
<v-form v-model="form.valid" ref="webcamForm" @submit.prevent="saveWebcam">
|
||||
<v-card-title>
|
||||
{{ form.id === null ? $t("Settings.WebcamsTab.CreateWebcam") : $t("Settings.WebcamsTab.EditWebcam") }}
|
||||
</v-card-title>
|
||||
@@ -65,7 +65,7 @@
|
||||
v-model="form.urlStream"
|
||||
:label="$t('Settings.WebcamsTab.UrlStream')"
|
||||
hide-details="auto"
|
||||
:rules="[rules.required]"
|
||||
:rules="form.service !== 'mjpegstreamer-adaptive' ? [rules.required] : []"
|
||||
></v-text-field>
|
||||
</v-col>
|
||||
</v-row>
|
||||
@@ -75,7 +75,7 @@
|
||||
v-model="form.urlSnapshot"
|
||||
:label="$t('Settings.WebcamsTab.UrlSnapshot')"
|
||||
hide-details="auto"
|
||||
:rules="[rules.requiredMjpegAdaptive]"
|
||||
:rules="form.service === 'mjpegstreamer-adaptive' ? [rules.required] : []"
|
||||
></v-text-field>
|
||||
</v-col>
|
||||
</v-row>
|
||||
@@ -86,6 +86,7 @@
|
||||
:items="serviceItems"
|
||||
hide-details
|
||||
:label="$t('Settings.WebcamsTab.Service')"
|
||||
attach
|
||||
></v-select>
|
||||
</v-col>
|
||||
</v-row>
|
||||
@@ -210,10 +211,13 @@ export default class SettingsWebcamsTab extends Mixins(BaseMixin) {
|
||||
|
||||
private rules = {
|
||||
required: (value: string) => value !== '' || this.$t('Settings.WebcamsTab.Required'),
|
||||
requiredMjpegAdaptive: (value: string) => (value !== '' && this.form.service === 'mjpegstreamer-adaptive') || this.$t('Settings.WebcamsTab.Required'),
|
||||
unique: (value: string) => !this.existsWebcamName(value) || this.$t('Settings.WebcamsTab.NameAlreadyExists'),
|
||||
}
|
||||
|
||||
$refs!: {
|
||||
webcamForm: any
|
||||
}
|
||||
|
||||
get webcams() {
|
||||
return this.$store.getters['gui/webcams/getWebcams'] ?? []
|
||||
}
|
||||
@@ -278,6 +282,10 @@ export default class SettingsWebcamsTab extends Mixins(BaseMixin) {
|
||||
|
||||
this.form.bool = true
|
||||
this.form.valid = false
|
||||
|
||||
this.$nextTick(() => {
|
||||
this.$refs.webcamForm?.validate()
|
||||
})
|
||||
}
|
||||
|
||||
saveWebcam() {
|
||||
|
||||
@@ -8,9 +8,8 @@
|
||||
.btn-collapsible i::before {
|
||||
transition: transform 500ms;
|
||||
}
|
||||
|
||||
.icon-rotate-180:before {
|
||||
transform: rotate(180deg);
|
||||
.icon-rotate-90:before {
|
||||
transform: rotate(90deg);
|
||||
}
|
||||
</style>
|
||||
|
||||
@@ -55,7 +54,7 @@
|
||||
class="btn-collapsible"
|
||||
:ripple="true"
|
||||
>
|
||||
<v-icon :class="(!expand ? 'icon-rotate-180' : '')">mdi-chevron-down</v-icon>
|
||||
<v-icon :class="(expand ? '' : 'icon-rotate-90')">mdi-chevron-down</v-icon>
|
||||
</v-btn>
|
||||
</v-toolbar-items>
|
||||
</v-toolbar>
|
||||
|
||||
@@ -0,0 +1,56 @@
|
||||
<style lang="scss" scoped>
|
||||
.btn-collapsible i::before {
|
||||
transition: transform 500ms;
|
||||
}
|
||||
|
||||
.icon-rotate-180:before {
|
||||
transform: rotate(180deg);
|
||||
}
|
||||
</style>
|
||||
|
||||
<template>
|
||||
<div>
|
||||
<v-card-actions>
|
||||
<v-btn
|
||||
@click="expand = !expand"
|
||||
class="btn-collapsible"
|
||||
plain
|
||||
small
|
||||
>
|
||||
<v-icon small :class="(!expand ? 'icon-rotate-180' : '')">{{ expand ? iconExpanded : iconCollapsed }}</v-icon>
|
||||
<span class="pl-1">{{ title }}</span>
|
||||
</v-btn>
|
||||
<v-divider class="mx-1"></v-divider>
|
||||
</v-card-actions>
|
||||
<v-expand-transition>
|
||||
<div v-show="expand">
|
||||
<slot></slot>
|
||||
</div>
|
||||
</v-expand-transition>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<script lang="ts">
|
||||
|
||||
import Component from 'vue-class-component'
|
||||
import {Mixins, Prop} from 'vue-property-decorator'
|
||||
import BaseMixin from '@/components/mixins/base'
|
||||
|
||||
@Component
|
||||
|
||||
export default class Panel extends Mixins(BaseMixin) {
|
||||
|
||||
@Prop({ required: false, default: 'mdi-minus' }) readonly iconExpanded!: string | null
|
||||
@Prop({ required: false, default: 'mdi-plus' }) readonly iconCollapsed!: string | null
|
||||
@Prop({ required: true, default: '' }) readonly title!: string
|
||||
@Prop({ required: true }) readonly subPanelClass!: string
|
||||
|
||||
get expand() {
|
||||
return this.$store.getters['gui/getPanelExpand'](this.subPanelClass)
|
||||
}
|
||||
|
||||
set expand(newVal) {
|
||||
this.$store.dispatch('gui/saveExpandPanel', { name: this.subPanelClass, value: newVal })
|
||||
}
|
||||
}
|
||||
</script>
|
||||
@@ -16,14 +16,14 @@
|
||||
|
||||
<template>
|
||||
<div v-observe-visibility="visibilityChanged" style="position: relative;">
|
||||
<img ref="image" class="webcamImage" />
|
||||
<span class="webcamFpsOutput">{{ $t('Panels.WebcamPanel.FPS')}}: {{ fpsOutput }}</span>
|
||||
<img ref="image" class="webcamImage" :style="webcamStyle" />
|
||||
<span class="webcamFpsOutput" v-if="showFps">{{ $t('Panels.WebcamPanel.FPS')}}: {{ fpsOutput }}</span>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<script lang="ts">
|
||||
import Component from 'vue-class-component'
|
||||
import {Mixins, Prop} from 'vue-property-decorator'
|
||||
import {Mixins, Prop, Watch} from 'vue-property-decorator'
|
||||
import BaseMixin from '@/components/mixins/base'
|
||||
|
||||
const CONTENT_LENGTH = 'content-length'
|
||||
@@ -32,10 +32,11 @@ const TYPE_JPEG = 'image/jpeg'
|
||||
@Component
|
||||
export default class Mjpegstreamer extends Mixins(BaseMixin) {
|
||||
private isVisible = true
|
||||
private imageRatio = 0
|
||||
private currentFPS = 0
|
||||
private timerFPS: number | null = null
|
||||
private timerRestart: number | null = null
|
||||
private stream: ReadableStream | null = null
|
||||
private controller: AbortController | null = null
|
||||
|
||||
@Prop({ required: true })
|
||||
camSettings: any
|
||||
@@ -43,6 +44,8 @@ export default class Mjpegstreamer extends Mixins(BaseMixin) {
|
||||
@Prop()
|
||||
printerUrl: string | undefined
|
||||
|
||||
@Prop({ default: true }) showFps!: boolean
|
||||
|
||||
$refs!: {
|
||||
canvas: HTMLCanvasElement,
|
||||
image: HTMLImageElement,
|
||||
@@ -84,8 +87,11 @@ export default class Mjpegstreamer extends Mixins(BaseMixin) {
|
||||
return contentLength
|
||||
}
|
||||
|
||||
this.controller = new AbortController()
|
||||
const { signal } = this.controller
|
||||
|
||||
//readable stream credit to from https://github.com/aruntj/mjpeg-readable-stream
|
||||
fetch(this.url)
|
||||
fetch(this.url, { signal })
|
||||
.then(response => response.body)
|
||||
.then(rb => {
|
||||
const reader = rb?.getReader()
|
||||
@@ -104,6 +110,10 @@ export default class Mjpegstreamer extends Mixins(BaseMixin) {
|
||||
frames = 0
|
||||
}, 1000)
|
||||
|
||||
this.timerRestart = setInterval(() => {
|
||||
this.restartStream()
|
||||
}, 60000)
|
||||
|
||||
this.stream = new ReadableStream({
|
||||
start(controller) {
|
||||
return pump()
|
||||
@@ -162,14 +172,29 @@ export default class Mjpegstreamer extends Mixins(BaseMixin) {
|
||||
if (isVisible) {
|
||||
this.startStream()
|
||||
} else {
|
||||
if (this.timerFPS) clearTimeout(this.timerFPS)
|
||||
this.stream?.cancel()
|
||||
this.stopStream()
|
||||
}
|
||||
}
|
||||
|
||||
beforeDestroy() {
|
||||
this.stopStream()
|
||||
}
|
||||
|
||||
stopStream() {
|
||||
if (this.timerFPS) clearTimeout(this.timerFPS)
|
||||
if (this.timerRestart) clearTimeout(this.timerRestart)
|
||||
this.controller?.abort()
|
||||
this.stream?.cancel()
|
||||
}
|
||||
|
||||
async restartStream() {
|
||||
this.stopStream()
|
||||
this.startStream()
|
||||
}
|
||||
|
||||
@Watch('url')
|
||||
urlChanged() {
|
||||
this.restartStream()
|
||||
}
|
||||
}
|
||||
</script>
|
||||
@@ -0,0 +1,917 @@
|
||||
{
|
||||
"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 styring",
|
||||
"KlipperRestart": "Genstart",
|
||||
"KlipperFirmwareRestart": "Genstart firmware",
|
||||
"ServiceControl": "Services",
|
||||
"PowerDevices": "Strømstyring",
|
||||
"HostControl": "Værtsstyring",
|
||||
"Start": "Start",
|
||||
"Stop": "Stop",
|
||||
"Restart": "Genstart",
|
||||
"Reboot": "Genstart",
|
||||
"Shutdown": "Luk ned",
|
||||
"Cancel": "Annuller",
|
||||
"ConfirmationDialog": {
|
||||
"Title": {
|
||||
"KlipperRestart": "Genstart Klipper",
|
||||
"KlipperFirmwareRestart": "Genstart Klipper firmware",
|
||||
"ServiceStart": "Start service",
|
||||
"ServiceRestart": "Genstart service",
|
||||
"ServiceStop": "Stop service",
|
||||
"HostReboot": "Genstart vært",
|
||||
"HostShutdown": "Luk vært ned"
|
||||
},
|
||||
"Description": {
|
||||
"KlipperStop": "Hvis du stopper Klipper nu, vil det igangværende print fejle.",
|
||||
"KlipperRestart": "Hvis du genstarter Klipper nu, vil det igangværende print fejle.",
|
||||
"KlipperFirmwareRestart": "Hvis du genstarter Klipper firmware nu, vil det igangværende print fejle.",
|
||||
"ServiceStart": "Hvis du starter denne service nu, er der stor risiko for at dit igangværende print vil fejle.",
|
||||
"ServiceRestart": "Hvis du genstarter denne service nu, er der stor risiko for at dit igangværende print vil fejle.",
|
||||
"ServiceStop": "Hvis du stopper denne service nu, er der stor risiko for at dit igangværende print vil fejle.",
|
||||
"HostReboot": "Hvis du genstarter værten nu, vil det igangværende print fejle.",
|
||||
"HostShutdown": "Hvis du lukker værten ned nu, vil det igangværende print fejle."
|
||||
}
|
||||
}
|
||||
},
|
||||
"UpdateDialog": {
|
||||
"Updating": "Opdaterer {software}...",
|
||||
"UpdatingDone": "Opdatering 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": "Opdater 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",
|
||||
"Filament": "Filament",
|
||||
"FilamentUsage": "Filament forbrug",
|
||||
"FilamentWeight": "Filament vægt",
|
||||
"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": "Antal 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 sektion \"{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",
|
||||
"MaxAccelToDecel": "Maks. accel. til decel.",
|
||||
"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": "Hastighed",
|
||||
"ExtrusionFactor": "Ekstrudering"
|
||||
},
|
||||
"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": "Opdaterings Manager",
|
||||
"CheckForUpdates": "Tjek for opdateringer",
|
||||
"System": "System",
|
||||
"PackagesCanBeUpgraded": "Pakker kan opgraderes",
|
||||
"OSPackages": "OS-Pakker",
|
||||
"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",
|
||||
"Distro": "Distro"
|
||||
}
|
||||
},
|
||||
"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",
|
||||
"DbConsoleHistory": "Terminal Historik",
|
||||
"DbView": "Vis indstillinger",
|
||||
"DbHistoryJobs": "Jobhistorik",
|
||||
"DbHistoryTotals": "Totalhistorik",
|
||||
"DbWebcams": "Webcams",
|
||||
"DbTimelapseSettings": "Timelapse indstillinger",
|
||||
"MoonrakerDb": "Moonraker DB",
|
||||
"Backup": "Backup",
|
||||
"BackupDialog": "Vælg de sektioner du ønsker at lave backup af:",
|
||||
"Restore": "Gendan",
|
||||
"CannotReadJson": "Kan ikke læse backup-fil",
|
||||
"RestoreDialog": "Vælg de sektioner du ønsker at gendanne fra backup:"
|
||||
},
|
||||
"WebcamsTab": {
|
||||
"Webcams": "Webcams",
|
||||
"AddWebcam": "Tilføj webcam",
|
||||
"CreateWebcam": "Nyt Webcam",
|
||||
"EditWebcam": "Rediger Webcam",
|
||||
"SaveWebcam": "Gem Webcam",
|
||||
"UpdateWebcam": "Opdater Webcam",
|
||||
"IconPrinter": "Printer",
|
||||
"IconNozzle": "Dyse",
|
||||
"IconBed": "Bed",
|
||||
"IconCam": "Kamera",
|
||||
"IconFilament": "Filament",
|
||||
"IconDoor": "Dør",
|
||||
"IconMcu": "MCU",
|
||||
"IconHot": "Bål",
|
||||
"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)",
|
||||
"FwRetract": "Firmware Retract",
|
||||
"FwRetractDescription": "Brug firmware retraction i timelapse makroen",
|
||||
"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": "Håndtering",
|
||||
"Simple": "Simpel",
|
||||
"Expert": "Ekspert",
|
||||
"Group": "Gruppe",
|
||||
"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 øverst",
|
||||
"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"
|
||||
}
|
||||
}
|
||||
+237
-39
@@ -2,6 +2,13 @@
|
||||
"title": "Deutsch",
|
||||
"App": {
|
||||
"Printers": "Drucker",
|
||||
"Titles": {
|
||||
"Error": "FEHLER",
|
||||
"Pause": "Druck pausiert",
|
||||
"Printing": "{percent}% Drucken - {filename}",
|
||||
"PrintingETA": "{percent}% Drucken - ETA: {eta} - {filename}",
|
||||
"Complete": "Fertiggestellt - {filename}"
|
||||
},
|
||||
"TopBar": {
|
||||
"SAVE_CONFIG": "SAVE CONFIG",
|
||||
"UploadPrint": "Hochladen & Drucken",
|
||||
@@ -17,8 +24,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": "Dienst Start",
|
||||
"ServiceRestart": "Dienst Neustart",
|
||||
"ServiceStop": "Dienst Stop",
|
||||
"HostReboot": "Host Neustart",
|
||||
"HostShutdown": "Host Herunterfahren"
|
||||
},
|
||||
"Description": {
|
||||
"KlipperStop": "Ein Stopp von Klipper wird zum Abbruch des aktuellen Druckauftrags führen!",
|
||||
"KlipperRestart": "Ein Neustart von Klipper wird zum Abbruch des aktuellen Druckauftrags führen!",
|
||||
"KlipperFirmwareRestart": "Ein Neustart der Klipper Firmware wird zum Abbruch des aktuellen Druckauftrags führen!",
|
||||
"ServiceStart": "Ein Start dieses Dienstes kann zum Abbruch des aktuellen Druckauftrags führen!",
|
||||
"ServiceRestart": "Ein Neustart dieses Dienstes kann zum Abbruch des aktuellen Druckauftrags führen!",
|
||||
"ServiceStop": "Ein Stopp dieses Dienstes kann zum Abbruch des aktuellen Druckauftrags führen!",
|
||||
"HostReboot": "Ein Neustart des Hosts wird zum Abbruch des aktuellen Druckauftrags führen!",
|
||||
"HostShutdown": "Ein Herunterfahren des Hosts wird zum Abbruch des aktuellen Druckauftrags führen!"
|
||||
}
|
||||
}
|
||||
},
|
||||
"UpdateDialog": {
|
||||
"Updating": "Aktualisiere {software}...",
|
||||
@@ -94,6 +126,7 @@
|
||||
"Heightmap": "Heightmap",
|
||||
"G-Code Files": "G-Code Dateien",
|
||||
"History": "Verlauf",
|
||||
"Timelapse": "Zeitraffer",
|
||||
"Machine": "Maschine",
|
||||
"G-Code Viewer": "G-Code-Betrachter"
|
||||
},
|
||||
@@ -110,7 +143,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",
|
||||
@@ -130,16 +164,15 @@
|
||||
"Empty": "Leer",
|
||||
"DropFilesToAddGcode": "Drag & Drop, um G-Code hinzuzufügen.",
|
||||
"PrintStart": "Druck starten",
|
||||
"AddToQueue": "Zur Auftragswarteschlange hinzufügen",
|
||||
"Preheat": "Vorheizen",
|
||||
"Download": "Herunterladen",
|
||||
"Rename": "Umbenennen",
|
||||
"Delete": "Löschen",
|
||||
"StartJob": "Job beginnen",
|
||||
"DoYouWantToStartFilename": "Willst du {filename} starten?",
|
||||
"No": "Nein",
|
||||
"Yes": "Ja",
|
||||
"StartPrint": "Druck starten",
|
||||
"NewDirectory": "Neues Verzeichnis",
|
||||
"PleaseEnterANewDirectoryName": "Bitte gebe einen neuen Verzeichnisnamen ein: ",
|
||||
"RenameFile": "Datei umbenennen",
|
||||
"EditFile": "Datei bearbeiten",
|
||||
"Name": "Name",
|
||||
@@ -154,11 +187,16 @@
|
||||
"LastModified": "Zuletzt geändert",
|
||||
"ObjectHeight": "Objekthöhe",
|
||||
"LayerHeight": "Schichthöhe",
|
||||
"NozzleDiameter": "Düsendurchmesser",
|
||||
"Filament": "Filament",
|
||||
"FilamentName": "Filament Name",
|
||||
"FilamentType": "Filament Typ",
|
||||
"FilamentUsage": "Filamentverbrauch",
|
||||
"FilamentWeight": "Filamentgewicht",
|
||||
"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.",
|
||||
@@ -166,11 +204,21 @@
|
||||
"SuccessfullyDeleted": "{filename} erfolgreich gelöscht.",
|
||||
"View3D" : "3D Betrachtung"
|
||||
},
|
||||
"JobQueue": {
|
||||
"JobQueue": "Auftragswarteschlange",
|
||||
"Jobs": "Aufträge",
|
||||
"AllJobs": "Alle Aufträge",
|
||||
"Empty": "Leer",
|
||||
"Delete": "Löschen",
|
||||
"Start": "Start",
|
||||
"Pause": "Pause"
|
||||
},
|
||||
"Console": {
|
||||
"SetupConsole": "Einstellungen",
|
||||
"SendCode": "Code senden...",
|
||||
"Empty": "Leer",
|
||||
"HideTemperatures": "verstecke Temperaturen",
|
||||
"HideTemperatures": "Temperaturen ausblenden",
|
||||
"HideTimelapse": "Timelapse ausblenden",
|
||||
"CommandList": "Kommandoliste"
|
||||
},
|
||||
"Heightmap": {
|
||||
@@ -255,6 +303,56 @@
|
||||
"HistoryPrinttimeAVG": "Drucke",
|
||||
"ShowStatusName": "Zeige \"{name}\" ({count})"
|
||||
},
|
||||
"Timelapse": {
|
||||
"TimelapseFiles": "Zeitraffer Dateien",
|
||||
"Search": "suche",
|
||||
"CreateNewDirectory": "Neues Verzeichnis",
|
||||
"RefreshCurrentDirectory": "Verzeichnis aktualisieren",
|
||||
"Empty": "Keine fertigen Zeitraffer gefunden.",
|
||||
"CurrentPath": "Aktueller Pfad",
|
||||
"FreeDisk": "Freier Speicherplatz",
|
||||
"Used": "Belegt",
|
||||
"Free": "Frei",
|
||||
"Total": "Gesamt",
|
||||
"Files": "Dateien",
|
||||
"AllFiles": "Alle",
|
||||
"Rename": "Umbenennen",
|
||||
"Download": "Download",
|
||||
"Delete": "Löschen",
|
||||
"RenameFile": "Datei umbenennen",
|
||||
"Name": "Name",
|
||||
"Cancel": "Abbrechen",
|
||||
"Create": "Erstellen",
|
||||
"NewDirectory": "Neues Verzeichnis",
|
||||
"RenameDirectory": "Verzeichnis umbenennen",
|
||||
"DeleteDirectory": "Verzeichnis löschen",
|
||||
"DeleteDirectoryQuestion": "Willst du wirklich das Verzeichnis \"{name}\" mit seinem gesamten Inhalt löschen?",
|
||||
"Filesize": "Dateigröße",
|
||||
"LastModified": "Zuletzt geändert",
|
||||
"Status": "Status",
|
||||
"Preview": "Vorschau",
|
||||
"Enabled": "Aktiviert",
|
||||
"Autorender": "Autorender",
|
||||
"Frames": "Bilder",
|
||||
"EstimatedLength": "Geschätzte Länge",
|
||||
"Render": "render",
|
||||
"RenderSettings": "Render Einstellungen",
|
||||
"Type": "Typ",
|
||||
"Fixed": "fix",
|
||||
"Variable": "Variabel",
|
||||
"Framerate": "Bildwiederholrate",
|
||||
"MinFramerate": "Min. Bildwiederholrate",
|
||||
"MaxFramerate": "Max. Bildwiederholrate",
|
||||
"DuplicateLastframe": "Letztes Bild duplizieren",
|
||||
"Targetlength": "Zieldauer",
|
||||
"TargetFps": "Ziel-FPS",
|
||||
"StartRender": "Rendering starten",
|
||||
"TimelapseRendering": "Zeitraffer-Rendering",
|
||||
"TimelapseRenderingSuccessful": "Zeitraffer-Rendering erfolgreich",
|
||||
"Video": "Video",
|
||||
"NoActiveTimelapse": "Keine Aufzeichnungen verfügbar.",
|
||||
"SaveFrames": "Bilder speichern"
|
||||
},
|
||||
"Panels": {
|
||||
"ControlPanel": {
|
||||
"Headline": "Steuerung",
|
||||
@@ -274,7 +372,8 @@
|
||||
"FeedAmountIn": "Vorschub in",
|
||||
"FeedrateIn": "Geschwindigkeit in",
|
||||
"Retract": "Rückzug",
|
||||
"Extrude": "Extrudieren"
|
||||
"Extrude": "Extrudieren",
|
||||
"HotendTooCold": "Hotend-Temp. niedriger als"
|
||||
},
|
||||
"MacrosPanel": {
|
||||
"Headline": "Makros",
|
||||
@@ -302,10 +401,34 @@
|
||||
"DeprecatedOption": "Option '{option}' im Abschnitt '{section}' ist veraltet und wird in einem zukünftigen Release entfernt.",
|
||||
"DeprecatedValue": "Wert '{value}' in Option '{option}' im Abschnitt '{section}' ist veraltet und wird in einem zukünftigen Release entfernt."
|
||||
},
|
||||
"MachineSettingsPanel": {
|
||||
"Headline": "Maschinen Einstellungen",
|
||||
"MotionSettings": {
|
||||
"Motion": "Bewegung",
|
||||
"Velocity": "Geschwindigkeit",
|
||||
"Acceleration": "Beschleunigung",
|
||||
"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",
|
||||
"RetractSpeed": "Rückzuggeschwindigkeit",
|
||||
"UnretractExtraLength": "Zusätzliche Ausfahrlänge",
|
||||
"UnretractSpeed": "Ausfahrgeschwindigkeit"
|
||||
}
|
||||
},
|
||||
"MiniconsolePanel": {
|
||||
"Headline": "Konsole",
|
||||
"SetupConsole": "Einstellungen",
|
||||
"HideTemperatures": "Temperaturmeldungen ausblenden",
|
||||
"HideTimelapse": "Timelapse ausblenden",
|
||||
"SendCode": "Befehl senden..."
|
||||
},
|
||||
"MinSettingsPanel": {
|
||||
@@ -398,7 +521,9 @@
|
||||
"Target": "Zieltemperatur",
|
||||
"Power": "PWM-Leistung",
|
||||
"Speed": "PWM-Geschwindigkeit"
|
||||
}
|
||||
},
|
||||
"TempTooLow": "Temperature von {name} zu niedrig! (min: {min})",
|
||||
"TempTooHigh": "Temperature von {name} zu hoch! (max: {max})"
|
||||
},
|
||||
"WebcamPanel": {
|
||||
"Headline": "Webcam",
|
||||
@@ -412,7 +537,7 @@
|
||||
"CurrentOffset": "Aktueller Versatz",
|
||||
"Save": "Speichern",
|
||||
"ToEndstop": "bis Endschalter",
|
||||
"ToProbe": "bis Probe",
|
||||
"ToProbe": "bis Sensor",
|
||||
"SaveInfoHeadline": "Information",
|
||||
"SaveInfoDescription": "Der neue Z-Versatz wurde berechnet und registriert. Auf SAVE_CONFIG, klicken um den neuen Z-Versatz in Ihrer printer.cfg zu speichern und Klipper neu zu starten.",
|
||||
"SaveInfoDescriptionPrint": "Der neue Z-Versatz wurde berechnet und registriert. Nach dem Drucken auf SAVE_CONFIG in der oberen Leiste klicken um die Einstellungen in der Datei printer.cfg zu speichern und Klipper neu zu starten.",
|
||||
@@ -426,7 +551,7 @@
|
||||
"ConfigFiles": "Konfigurationsdateien",
|
||||
"SetupCurrentList": "Einstellungen",
|
||||
"HiddenFiles": "Versteckte Dateien",
|
||||
"HideBackupFiles": "Verstecke Sicherungsdateien",
|
||||
"HideBackupFiles": "Sicherungsdateien ausblenden",
|
||||
"CurrentPath": "Aktueller Pfad",
|
||||
"Files": "Dateien",
|
||||
"FreeDisk": "Freier Speicherplatz",
|
||||
@@ -440,7 +565,6 @@
|
||||
"Download": "Herunterladen",
|
||||
"Rename": "Umbenennen",
|
||||
"Delete": "Löschen",
|
||||
"PleaseStandBy": "Bitte warten",
|
||||
"RenameFile": "Datei umbenennen",
|
||||
"Name": "Name",
|
||||
"UploadFile": "Datei hochladen",
|
||||
@@ -463,13 +587,6 @@
|
||||
"open": "OFFEN",
|
||||
"EndstopInfo": "Drücke die Sync-Schaltfläche in der rechten Ecke, um den aktuellen Zustand abzufragen."
|
||||
},
|
||||
"LimitsPanel": {
|
||||
"MachineLimits": "Betriebsgrenzen",
|
||||
"Velocity": "Geschwindigkeit",
|
||||
"Acceleration": "Beschleunigung",
|
||||
"Deceleration": "Verlangsamung",
|
||||
"SquareCornerVelocity": "Eck-Geschwindigkeit"
|
||||
},
|
||||
"LogfilesPanel": {
|
||||
"Logfiles": "Logdateien"
|
||||
},
|
||||
@@ -493,7 +610,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",
|
||||
@@ -505,11 +623,13 @@
|
||||
"Memory": "Mem",
|
||||
"Constants": "Konstanten",
|
||||
"LastStats": "Letzte Statistik",
|
||||
"HostDetails": "Host-Details"
|
||||
"HostDetails": "Host-Details",
|
||||
"Distro": "Distribution"
|
||||
}
|
||||
},
|
||||
"Settings": {
|
||||
"InterfaceSettings": "Schnittstelleneinstellungen",
|
||||
"Close": "Schließen",
|
||||
"Cancel": "Abbruch",
|
||||
"Edit": "Bearbeiten",
|
||||
"GeneralTab": {
|
||||
@@ -521,10 +641,22 @@
|
||||
"CalcEtaTime": "ETA Berechnung",
|
||||
"CalcEtaTimeDescription": "Bei Mehrfachauswahl wird ein Durchschnitt berechnet",
|
||||
"FactoryReset": "Werkseinstellungen",
|
||||
"FactoryInfo": "Mainsail wirklich auf die Werkseinstellungen zurücksetzen?",
|
||||
"ResetMainsail": "Mainsail zurücksetzen"
|
||||
"FactoryDialog": "Bitte wähle alle Abschnitte die du zurücksetzen möchtest:",
|
||||
"Reset": "zurücksetzen",
|
||||
"DbConsoleHistory": "Verlauf der Konsole",
|
||||
"DbView": "Ansichtseinstellungen",
|
||||
"DbHistoryJobs": "Historie Druckvorgänge",
|
||||
"DbHistoryTotals": "Historie Gesamtzähler",
|
||||
"DbWebcams": "Webcams",
|
||||
"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:"
|
||||
},
|
||||
"WebcamTab": {
|
||||
"WebcamsTab": {
|
||||
"Webcams": "Webcams",
|
||||
"AddWebcam": "Webcam hinzufügen",
|
||||
"CreateWebcam": "Erstelle Webcam",
|
||||
@@ -545,7 +677,6 @@
|
||||
"Ipstream": "IP Kamera",
|
||||
"Required": "benötigt",
|
||||
"NameAlreadyExists": "Name existiert bereits",
|
||||
"UrlNotAvailable": "URL nicht verfügbar",
|
||||
"Name": "Name",
|
||||
"UrlStream": "Stream URL",
|
||||
"UrlSnapshot": "Schnappschuss URL",
|
||||
@@ -554,6 +685,73 @@
|
||||
"FlipHorizontally": "Webcam waagerecht spiegeln",
|
||||
"FlipVertically": "Webcam vertikal spiegeln"
|
||||
},
|
||||
"TimelapseTab": {
|
||||
"Enabled": "Aktiviert",
|
||||
"EnabledDescription": "Wenn diese Option deaktiviert ist, werden G-Code Makros ignoriert und Autorender wird übersprungen.",
|
||||
"Timelapse": "Zeitraffer",
|
||||
"Mode": "Modus",
|
||||
"ModeDescription": "Wähle zwischen Layermacro und Hyperlapse (zeitbasiert) Modus",
|
||||
"Autorender": "Autorender",
|
||||
"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",
|
||||
"GcodeVerboseDescription": "Wenn aktiviert, schreiben G-Code Makros Informationen in die Konsole",
|
||||
"Parkhead": "Druckkopf parken",
|
||||
"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",
|
||||
"RetractSpeedDescription": "Geschwindigkeit mit der der Extruder das Filament zurückzieht.",
|
||||
"RetractDistance": "Rückzugslänge",
|
||||
"RetractDistanceDescription": "Die Länge an Filament die der Extruder zurückzieht.",
|
||||
"UnretractSpeed": "Ausfahrgeschwindigkeit",
|
||||
"UnretractSpeedDescription": "Geschwindigkeit mit der der Extruder das Filament nach einem Rückzug vorschiebt.",
|
||||
"UnretractDistance": "Ausfahrlänge",
|
||||
"UnretractDistanceDescription": "Die Länge an Filament die der Extruder nach einem Rückzuck vorschiebt.",
|
||||
"ConstantRateFactor": "Constant Rate Factor",
|
||||
"ConstantRateFactorDescription": "Damit wird die Qualität im Verhältnis zur Dateigröße des gerenderten Videos konfiguriert. Die CRF-Skala reicht von 0-51, wobei 0 für verlustfrei, 23 für die Standardeinstellung und 51 für die schlechtestmögliche Qualität steht. Ein niedrigerer Wert führt im Allgemeinen zu höherer Qualität, und ein subjektiv vernünftiger Bereich ist 17-28. 17 oder 18 gelten als visuell verlustfrei.",
|
||||
"OutputFramerate": "Ausgabe Bildrate",
|
||||
"OutputFramerateDescription": "Bestimmt die Framerate des Videos. Hinweis: Dies wird ignoriert, wenn variable_fps aktiviert ist",
|
||||
"Pixelformat": "Pixelformat",
|
||||
"PixelformatDescription": "Definiert das Pixelformat des Ausgabevideos",
|
||||
"Extraoutputparams": "Extra-Ausgabeparameter",
|
||||
"ExtraoutputparamsDescription": "Legt zusätzliche Ausgabeparameter für FFMPEG fest. Hinweis: Wenn Sie hier etwas angeben, wird die Rotationseinstellung deaktiviert",
|
||||
"VariableFps": "Variable FPS",
|
||||
"VariableFpsDescription": "Wenn diese Option aktiviert ist, wird die Framerate des Ausgabevideos anhand der Zieldauer berechnet.",
|
||||
"Targetlength": "Zieldauer",
|
||||
"TargetlengthDescription": "Die Zieldauer wenn Variable FPS aktiviert ist",
|
||||
"VariableFpsMin": "Min. Variable FPS",
|
||||
"VariableFpsMinDescription": "",
|
||||
"VariableFpsMax": "Max. Variable FPS",
|
||||
"VariableFpsMaxDescription": "",
|
||||
"duplicatelastframe": "Letztes Bild duplizieren",
|
||||
"duplicatelastframeDescription": "Dupliziert das letzte Bild am Ende des Videos",
|
||||
"HyperlapseCycle": "Hyperlapse-Zyklusdauer",
|
||||
"HyperlapseCycleDescription": "Es wird alle X Sekunden ein Schnappschuss gemacht",
|
||||
"General": "Allgemein",
|
||||
"RenderingOptions": "Rendering-Optionen",
|
||||
"TimeFormatCode": "Zeitformat-Code",
|
||||
"TimeFormatCodeDescription": "Legt fest, wie der Zeitstempel in der Ausgabedatei kodiert werden soll",
|
||||
"Camera": "Kamera",
|
||||
"CameraDescription": "Legt fest, welche Kamera verwendet werden soll"
|
||||
},
|
||||
"DashboardTab": {
|
||||
"Dashboard": "Dashboard",
|
||||
"Mobile": "Mobile",
|
||||
@@ -569,9 +767,9 @@
|
||||
"Management": "Verwaltung",
|
||||
"Simple": "Einfach",
|
||||
"Expert": "Experte",
|
||||
"Group": "Gruppe",
|
||||
"NoGroups": "Keine Gruppen gefunden...",
|
||||
"Macrogroups": "Gruppen",
|
||||
"CreateGroup": "Gruppe erstellen",
|
||||
"EditGroup": "Gruppe bearbeiten",
|
||||
"CountMacros": "keine Makros hinzugefügt | {count} Makro | {count} Makros",
|
||||
"Name": "Name",
|
||||
@@ -592,9 +790,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"
|
||||
},
|
||||
@@ -606,7 +804,6 @@
|
||||
"Cross": "Kreuz",
|
||||
"SpeedXY": "Geschw. XY",
|
||||
"SpeedZ": "Geschw. Z",
|
||||
"EnableCross": "Steuerkreuz aktivieren",
|
||||
"MoveDistancesInMm": "Abstände in mm verschieben",
|
||||
"InvertXMovement": "X-Bewegung invertieren",
|
||||
"InvertYMovement": "Y-Bewegung invertieren",
|
||||
@@ -614,7 +811,11 @@
|
||||
"MoveDistancesXYInMm": "Verfahrwege XY in mm",
|
||||
"MoveDistancesZInMm": "Verfahrwege Z in mm",
|
||||
"MoveDistancesEInMm": "Verfahrwege E in mm",
|
||||
"SpeedEInMms": "Geschw. E in mm/s"
|
||||
"SpeedEInMms": "Geschw. E in mm/s",
|
||||
"MinimumValues": "Minimum: {minimum} Eintrag",
|
||||
"MaximumValues": "Maximum: {maximum} Einträge",
|
||||
"MaximumValuesVisibility": "Maximal {maximum} Einträge für beste Darstellung",
|
||||
"ValueGreaterThan": "Wert muss größer als {value} sein"
|
||||
},
|
||||
"ConsoleTab": {
|
||||
"Console": "Konsole",
|
||||
@@ -622,7 +823,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",
|
||||
@@ -635,7 +837,7 @@
|
||||
"EntryStyleCompact": "kompakt"
|
||||
},
|
||||
"PresetsTab": {
|
||||
"PreheatPresets": "presets",
|
||||
"PreheatPresets": "Presets",
|
||||
"Cooldown": "Abkühlen",
|
||||
"AddPreset": "Preset hinzufügen",
|
||||
"CreateHeadline": "Voreinstellung erstellen",
|
||||
@@ -660,7 +862,7 @@
|
||||
"UiSettings": "UI-Einstellungen",
|
||||
"Logo": "Logo",
|
||||
"Primary": "Primärfarbe",
|
||||
"GcodeThumbnails": "Gcode Vorschaubilder",
|
||||
"GcodeThumbnails": "G-Code Vorschaubilder",
|
||||
"GcodeThumbnailsDescription": "Klicke auf die Schaltfläche um zum Leitfaden zu gelangen.",
|
||||
"Guide": "Leitfaden",
|
||||
"ShowWebcamInNavigation": "Zeige Webcam in der Navigation",
|
||||
@@ -670,8 +872,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",
|
||||
@@ -688,8 +890,6 @@
|
||||
"GCodeViewerTab": {
|
||||
"GCodeViewer": "G-Code Betrachter",
|
||||
"ExtruderColor" : "Extruder Farben",
|
||||
"FeedRate": "Vorschub",
|
||||
"Extruder" : "Extruder",
|
||||
"BackgroundColor" : "Hintergrundfarbe",
|
||||
"GridColor": "Gitterfarbe",
|
||||
"ShowAxes": "Zeige Achsen an",
|
||||
@@ -708,7 +908,6 @@
|
||||
"Title" : "G-Code Betrachter",
|
||||
"LoadLocal": "Lokale Datei",
|
||||
"ClearLoadedFile": "Löschen",
|
||||
"ResetCamera": "Kamera zurücksetzen",
|
||||
"RenderQuality" : "Darstellungsqualität",
|
||||
"Low" : "Gering",
|
||||
"Medium" : "Mittel",
|
||||
@@ -726,7 +925,6 @@
|
||||
"ReloadRequired" : "Neu laden erforderlich",
|
||||
"LoadCurrentFile": "Momentane Datei",
|
||||
"Tracking": "Tracking",
|
||||
"ZClip" : "Z Clipping",
|
||||
"Rendering" : "Rendering",
|
||||
"Downloading" : "Downloaden",
|
||||
"ColorMode" : "Farbmodus"
|
||||
|
||||
Loaded 100 of 181 files, more files were not shown because too many files have changed in this diff.
Show more
Reference in new issue
Block a user