Compare commits

...
Author SHA1 Message Date
Stefan Dej 0f6168dc04 push version number to v2.0.0-beta2
Signed-off-by: Stefan Dej <meteyou@gmail.com>
2021-08-03 21:21:14 +02:00
Stefan Dej 4832fa09eb bugfix: remove 'show on dashboard' option in settings > webcam
Signed-off-by: Stefan Dej <meteyou@gmail.com>
2021-08-03 21:18:11 +02:00
Stefan Dej 29f41b029a bugfix: remove printing favicon after cancelled job
Signed-off-by: Stefan Dej <meteyou@gmail.com>
2021-08-03 21:12:07 +02:00
Stefan Dej f4a3de15ca feature: set current viewport as default when open settings > dashboard
Signed-off-by: Stefan Dej <meteyou@gmail.com>
2021-08-03 20:57:35 +02:00
Stefan Dej 1d40c8aeb2 bugfix: only send a request when current_file is set
Signed-off-by: Stefan Dej <meteyou@gmail.com>
2021-08-03 20:52:32 +02:00
Stefan Dej d0de862af1 remove debug output in webSocketClient.ts
Signed-off-by: Stefan Dej <meteyou@gmail.com>
2021-08-03 20:46:36 +02:00
Stefan Dej 74cb2384e1 bugfix: cancelled status panel show wrong values
Signed-off-by: Stefan Dej <meteyou@gmail.com>
2021-08-03 20:42:37 +02:00
Stefan Dej 4cb68488b7 feature: add logo favicon and progress favicon in logo color
Signed-off-by: Stefan Dej <meteyou@gmail.com>
2021-08-03 19:14:46 +02:00
Stefan Dej bfa4e2524c locale: last fr fixes
Signed-off-by: Stefan Dej <meteyou@gmail.com>
2021-08-03 16:52:56 +02:00
Stefan Dej 50dbc468e8 feature: sortable dashboard panels (#319)
* init test setup

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

* bugfix: ts typos

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

* bugfix: better tab system

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

* add touch support for drag&drop and split components

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

* feature: add panel filter to each viewport

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

* bugfix: mjpegstreamerAdaptive dont start with a wront image url

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

* add i18n support for dashboard settings

Signed-off-by: Stefan Dej <meteyou@gmail.com>
2021-08-03 16:22:30 +02:00
Stefan Dej 390a3ef571 locale: update francais
Signed-off-by: Stefan Dej <meteyou@gmail.com>
2021-08-02 22:10:01 +02:00
Stefan Dej 370c104f56 feature: add support for save gcode offset to endstop/probe
Signed-off-by: Stefan Dej <meteyou@gmail.com>
2021-08-02 16:47:48 +02:00
Stefan Dej 895bdf1db7 bugfix: SAVE_CONFIG button in topbar fixed
Signed-off-by: Stefan Dej <meteyou@gmail.com>
2021-08-02 16:47:11 +02:00
Stefan Dej 19e2d36fdf bugfix: printer.cfg was no longer displayed after SAVE_CONFIG
Signed-off-by: Stefan Dej <meteyou@gmail.com>
2021-08-02 16:29:16 +02:00
Stefan Dej 45f200b40b bugfix: editor translation unknown class
Signed-off-by: Stefan Dej <meteyou@gmail.com>
2021-08-02 10:57:31 +02:00
Stefan Dej 58ddf91f85 Merge remote-tracking branch 'origin/master' 2021-08-02 01:48:27 +02:00
Stefan Dej 6999f0a724 cleanup en language file and fix vue-i18n-extract missing keys
Signed-off-by: Stefan Dej <meteyou@gmail.com>
2021-08-02 01:48:20 +02:00
Markus Nigbur 5c83992021 Fixed some typos (#318)
* Fixed some typos

* Fixed typos

* Fixed typos
2021-08-02 00:14:38 +02:00
Stefan Dej fe6fb1c209 bugfix: change button color if primary color too light
Signed-off-by: Stefan Dej <meteyou@gmail.com>
2021-08-02 00:11:24 +02:00
Stefan Dej 8a29847465 bugfix: rename machine url to fix reload issue in machine
Signed-off-by: Stefan Dej <meteyou@gmail.com>
2021-08-01 23:38:06 +02:00
Stefan Dej 126c8c40f7 bugfix: add modified to dirs
Signed-off-by: Stefan Dej <meteyou@gmail.com>
2021-08-01 23:35:50 +02:00
Stefan Dej 0fb55444f7 bugfix: load thumbnails with timestamp to avoid caching problems
Signed-off-by: Stefan Dej <meteyou@gmail.com>
2021-08-01 23:12:26 +02:00
Stefan Dej ca3e9ed161 Merge remote-tracking branch 'origin/master' 2021-08-01 21:26:59 +02:00
Stefan Dej 51214fa701 update npm packages and cleanup
Signed-off-by: Stefan Dej <meteyou@gmail.com>
2021-08-01 21:26:48 +02:00
dependabot[bot] f1f8aeebc1 build(deps): bump addressable from 2.7.0 to 2.8.0 in /docs (#306)
Bumps [addressable](https://github.com/sporkmonger/addressable) from 2.7.0 to 2.8.0.
- [Release notes](https://github.com/sporkmonger/addressable/releases)
- [Changelog](https://github.com/sporkmonger/addressable/blob/main/CHANGELOG.md)
- [Commits](https://github.com/sporkmonger/addressable/compare/addressable-2.7.0...addressable-2.8.0)

---
updated-dependencies:
- dependency-name: addressable
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-08-01 20:25:05 +02:00
Stefan Dej 2d743eaa37 feature: show gcode thumbnail in full height on focus
Signed-off-by: Stefan Dej <meteyou@gmail.com>
2021-08-01 15:19:53 +02:00
Stefan Dej fd1f70649f Merge remote-tracking branch 'origin/master' 2021-08-01 14:06:12 +02:00
Stefan Dej aefd4caf5e Feature/motion report (#317)
* test new flow and velocity

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

* test build for live speed & flow

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

* bugfix: fix ToolSlider.vue for printsettings and machine limits

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

* remove debug output

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

* rework MachineLimits

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

* feature: live extruder, toolhead speed and position data in StatusPanel.vue

Signed-off-by: Stefan Dej <meteyou@gmail.com>
2021-08-01 14:05:44 +02:00
Stefan Dej 9f8db4856a rework MachineLimits
Signed-off-by: Stefan Dej <meteyou@gmail.com>
2021-08-01 13:10:46 +02:00
Stefan Dej 1b679e0185 remove debug output
Signed-off-by: Stefan Dej <meteyou@gmail.com>
2021-07-31 22:47:57 +02:00
Stefan Dej 10c530454e bugfix: fix ToolSlider.vue for printsettings and machine limits
Signed-off-by: Stefan Dej <meteyou@gmail.com>
2021-07-31 22:37:21 +02:00
Stefan Dej 79c490b1a6 bugfix: bind TAB to editor
Signed-off-by: Stefan Dej <meteyou@gmail.com>
2021-07-29 19:54:14 +02:00
Stefan Dej 4c4742bc7e bugfix: upload & print button clear loading status after uploading files
Signed-off-by: Stefan Dej <meteyou@gmail.com>
2021-07-29 19:49:53 +02:00
Stefan Dej f304039a2f bugfix: autoscroll in update dialog
Signed-off-by: Stefan Dej <meteyou@gmail.com>
2021-07-29 19:46:48 +02:00
Stefan Dej 237195b02d bugfix: fix scrollbar toggle issue with browser zoom in heightmap
Signed-off-by: Stefan Dej <meteyou@gmail.com>
2021-07-26 17:31:07 +02:00
Stefan Dej 7a55cad11d feature: change to motion_report with fallback to toolhead position in status panel
Signed-off-by: Stefan Dej <meteyou@gmail.com>
2021-07-26 15:54:56 +02:00
Stefan Dej ed7b8c4b24 feature: add message to include mainsail.cfg in printer.cfg
Signed-off-by: Stefan Dej <meteyou@gmail.com>
2021-07-25 23:51:22 +02:00
Stefan Dej f887d4ee05 feature: hide klipper_mcu service in topcornermenu (fix if empty)
Signed-off-by: Stefan Dej <meteyou@gmail.com>
2021-07-25 23:41:39 +02:00
Stefan Dej 2308d70d5c feature: hide klipper_mcu service in topcornermenu
Signed-off-by: Stefan Dej <meteyou@gmail.com>
2021-07-25 23:34:48 +02:00
Stefan Dej e594ba7ab6 fix cpu throttled notifiy
Signed-off-by: Stefan Dej <meteyou@gmail.com>
2021-07-25 23:31:56 +02:00
Stefan Dej 76453e86f2 bugfix: system loads cannot be displayed with temperature_fan for mcu temp sensor
Signed-off-by: Stefan Dej <meteyou@gmail.com>
2021-07-25 23:31:38 +02:00
Stefan Dej 1fda940f11 remove debug console outputs
Signed-off-by: Stefan Dej <meteyou@gmail.com>
2021-07-25 22:02:25 +02:00
Stefan Dej c642fc2b15 bugfix: fix heightmap on mobile devices
Signed-off-by: Stefan Dej <meteyou@gmail.com>
2021-07-25 21:56:12 +02:00
Stefan Dej 34a3b66b5d bugfix: editing preheat presets
Signed-off-by: Stefan Dej <meteyou@gmail.com>
2021-07-25 21:02:53 +02:00
Stefan Dej ac83670212 bugfix: editing files in subdirectory
Signed-off-by: Stefan Dej <meteyou@gmail.com>
2021-07-25 20:39:21 +02:00
Stefan Dej 6ed16758af bugfix: change stepper config to toolhead min/max for max range (fix for delta printers)
Signed-off-by: Stefan Dej <meteyou@gmail.com>
2021-07-25 19:06:53 +02:00
Stefan Dej f8b2e7f1ea fix for safari 10
Signed-off-by: Stefan Dej <meteyou@gmail.com>
2021-07-25 18:39:01 +02:00
Stefan Dej 5d28ce7427 Merge remote-tracking branch 'origin/master' 2021-07-25 16:39:54 +02:00
Stefan Dej 90343478a7 remove debug output in gcode-files
Signed-off-by: Stefan Dej <meteyou@gmail.com>
2021-07-25 16:39:11 +02:00
KwadFan 83294f757a Added Multiplatform Hint, (#311)
to avoid confusion

Signed-off-by: Stephan Wendel <me@stephanwe.de>
2021-07-17 17:14:57 +02:00
73 changed files with 3783 additions and 3796 deletions

No files matched your search

-590
View File
@@ -1,590 +0,0 @@
const converter = require('monaco-vscode-textmate-theme-converter');
const fs = require('fs');
const converted = converter.convertTheme({
"$schema": "vscode://schemas/color-theme",
"type": "dark",
"colors": {
"activityBarBadge.background": "#007acc",
"editor.background": "#1e1e1e",
"editor.foreground": "#d4d4d4",
"editor.inactiveSelectionBackground": "#3a3d41",
"editor.selectionHighlightBackground": "#add6ff26",
"editorIndentGuide.activeBackground": "#707070",
"editorIndentGuide.background": "#404040",
"input.placeholderForeground": "#a6a6a6",
"list.dropBackground": "#383b3d",
"menu.background": "#252526",
"menu.foreground": "#cccccc",
"sideBarSectionHeader.background": "#00000000",
"sideBarSectionHeader.border": "#cccccc33",
"sideBarTitle.foreground": "#bbbbbb",
"statusBarItem.remoteBackground": "#16825d",
"statusBarItem.remoteForeground": "#ffffff",
"tab.lastPinnedBorder": "#cccccc33",
},
"tokenColors": [
{
"scope": [
"meta.embedded",
"source.groovy.embedded"
],
"settings": {
"foreground": "#D4D4D4"
}
},
{
"scope": "emphasis",
"settings": {
"fontStyle": "italic"
}
},
{
"scope": "strong",
"settings": {
"fontStyle": "bold"
}
},
{
"scope": "header",
"settings": {
"foreground": "#000080"
}
},
{
"scope": "comment",
"settings": {
"foreground": "#6A9955"
}
},
{
"scope": "constant.language",
"settings": {
"foreground": "#569CD6"
}
},
{
"scope": [
"constant.numeric",
"variable.other.enummember",
"keyword.operator.plus.exponent",
"keyword.operator.minus.exponent"
],
"settings": {
"foreground": "#B5CEA8"
}
},
{
"scope": "constant.regexp",
"settings": {
"foreground": "#646695"
}
},
{
"scope": "entity.name.tag",
"settings": {
"foreground": "#569CD6"
}
},
{
"scope": "entity.name.tag.css",
"settings": {
"foreground": "#D7BA7D"
}
},
{
"scope": "entity.other.attribute-name",
"settings": {
"foreground": "#9CDCFE"
}
},
{
"scope": [
"entity.other.attribute-name.class.css",
"entity.other.attribute-name.class.mixin.css",
"entity.other.attribute-name.id.css",
"entity.other.attribute-name.parent-selector.css",
"entity.other.attribute-name.pseudo-class.css",
"entity.other.attribute-name.pseudo-element.css",
"source.css.less entity.other.attribute-name.id",
"entity.other.attribute-name.scss"
],
"settings": {
"foreground": "#D7BA7D"
}
},
{
"scope": "invalid",
"settings": {
"foreground": "#F44747"
}
},
{
"scope": "markup.underline",
"settings": {
"fontStyle": "underline"
}
},
{
"scope": "markup.bold",
"settings": {
"foreground": "#569CD6",
"fontStyle": "bold"
}
},
{
"scope": "markup.heading",
"settings": {
"foreground": "#569CD6",
"fontStyle": "bold"
}
},
{
"scope": "markup.italic",
"settings": {
"fontStyle": "italic"
}
},
{
"scope": "markup.inserted",
"settings": {
"foreground": "#B5CEA8"
}
},
{
"scope": "markup.deleted",
"settings": {
"foreground": "#CE9178"
}
},
{
"scope": "markup.changed",
"settings": {
"foreground": "#569CD6"
}
},
{
"scope": "punctuation.definition.quote.begin.markdown",
"settings": {
"foreground": "#6A9955"
}
},
{
"scope": "punctuation.definition.list.begin.markdown",
"settings": {
"foreground": "#6796E6"
}
},
{
"scope": "markup.inline.raw",
"settings": {
"foreground": "#CE9178"
}
},
{
"scope": "punctuation.definition.tag",
"settings": {
"foreground": "#808080"
}
},
{
"scope": [
"meta.preprocessor",
"entity.name.function.preprocessor"
],
"settings": {
"foreground": "#569CD6"
}
},
{
"scope": "meta.preprocessor.string",
"settings": {
"foreground": "#CE9178"
}
},
{
"scope": "meta.preprocessor.numeric",
"settings": {
"foreground": "#B5CEA8"
}
},
{
"scope": "meta.structure.dictionary.key.python",
"settings": {
"foreground": "#9CDCFE"
}
},
{
"scope": "meta.diff.header",
"settings": {
"foreground": "#569CD6"
}
},
{
"scope": "storage",
"settings": {
"foreground": "#569CD6"
}
},
{
"scope": "storage.type",
"settings": {
"foreground": "#569CD6"
}
},
{
"scope": [
"storage.modifier",
"keyword.operator.noexcept"
],
"settings": {
"foreground": "#569CD6"
}
},
{
"scope": [
"string",
"meta.embedded.assembly"
],
"settings": {
"foreground": "#CE9178"
}
},
{
"scope": "string.tag",
"settings": {
"foreground": "#CE9178"
}
},
{
"scope": "string.value",
"settings": {
"foreground": "#CE9178"
}
},
{
"scope": "string.regexp",
"settings": {
"foreground": "#D16969"
}
},
{
"scope": [
"punctuation.definition.template-expression.begin",
"punctuation.definition.template-expression.end",
"punctuation.section.embedded"
],
"settings": {
"foreground": "#569CD6"
}
},
{
"scope": [
"meta.template.expression"
],
"settings": {
"foreground": "#D4D4D4"
}
},
{
"scope": [
"support.type.vendored.property-name",
"support.type.property-name",
"variable.css",
"variable.scss",
"variable.other.less",
"source.coffee.embedded"
],
"settings": {
"foreground": "#9CDCFE"
}
},
{
"scope": "keyword",
"settings": {
"foreground": "#569CD6"
}
},
{
"scope": "keyword.control",
"settings": {
"foreground": "#569CD6"
}
},
{
"scope": "keyword.operator",
"settings": {
"foreground": "#D4D4D4"
}
},
{
"scope": [
"keyword.operator.new",
"keyword.operator.expression",
"keyword.operator.cast",
"keyword.operator.sizeof",
"keyword.operator.alignof",
"keyword.operator.typeid",
"keyword.operator.alignas",
"keyword.operator.instanceof",
"keyword.operator.logical.python",
"keyword.operator.wordlike"
],
"settings": {
"foreground": "#569CD6"
}
},
{
"scope": "keyword.other.unit",
"settings": {
"foreground": "#B5CEA8"
}
},
{
"scope": [
"punctuation.section.embedded.begin.php",
"punctuation.section.embedded.end.php"
],
"settings": {
"foreground": "#569CD6"
}
},
{
"scope": "support.function.git-rebase",
"settings": {
"foreground": "#9CDCFE"
}
},
{
"scope": "constant.sha.git-rebase",
"settings": {
"foreground": "#B5CEA8"
}
},
{
"scope": [
"storage.modifier.import.java",
"variable.language.wildcard.java",
"storage.modifier.package.java"
],
"settings": {
"foreground": "#D4D4D4"
}
},
{
"scope": "variable.language",
"settings": {
"foreground": "#569CD6"
}
},
{
"scope": [
"entity.name.function",
"support.function",
"support.constant.handlebars",
"source.powershell variable.other.member",
"entity.name.operator.custom-literal"
],
"settings": {
"foreground": "#DCDCAA"
}
},
{
"scope": [
"meta.return-type",
"support.class",
"support.type",
"entity.name.type",
"entity.name.namespace",
"entity.other.attribute",
"entity.name.scope-resolution",
"entity.name.class",
"storage.type.numeric.go",
"storage.type.byte.go",
"storage.type.boolean.go",
"storage.type.string.go",
"storage.type.uintptr.go",
"storage.type.error.go",
"storage.type.rune.go",
"storage.type.cs",
"storage.type.generic.cs",
"storage.type.modifier.cs",
"storage.type.variable.cs",
"storage.type.annotation.java",
"storage.type.generic.java",
"storage.type.java",
"storage.type.object.array.java",
"storage.type.primitive.array.java",
"storage.type.primitive.java",
"storage.type.token.java",
"storage.type.groovy",
"storage.type.annotation.groovy",
"storage.type.parameters.groovy",
"storage.type.generic.groovy",
"storage.type.object.array.groovy",
"storage.type.primitive.array.groovy",
"storage.type.primitive.groovy"
],
"settings": {
"foreground": "#4EC9B0"
}
},
{
"scope": [
"meta.type.cast.expr",
"meta.type.new.expr",
"support.constant.math",
"support.constant.dom",
"support.constant.json",
"entity.other.inherited-class"
],
"settings": {
"foreground": "#4EC9B0"
}
},
{
"scope": [
"keyword.control",
"source.cpp keyword.operator.new",
"keyword.operator.delete",
"keyword.other.using",
"keyword.other.operator",
"entity.name.operator"
],
"settings": {
"foreground": "#C586C0"
}
},
{
"scope": [
"variable",
"meta.definition.variable.name",
"support.variable",
"entity.name.variable"
],
"settings": {
"foreground": "#9CDCFE"
}
},
{
"scope": [
"variable.other.constant",
"variable.other.enummember"
],
"settings": {
"foreground": "#4FC1FF"
}
},
{
"scope": [
"meta.object-literal.key"
],
"settings": {
"foreground": "#9CDCFE"
}
},
{
"scope": [
"support.constant.property-value",
"support.constant.font-name",
"support.constant.media-type",
"support.constant.media",
"constant.other.color.rgb-value",
"constant.other.rgb-value",
"support.constant.color"
],
"settings": {
"foreground": "#CE9178"
}
},
{
"scope": [
"punctuation.definition.group.regexp",
"punctuation.definition.group.assertion.regexp",
"punctuation.definition.character-class.regexp",
"punctuation.character.set.begin.regexp",
"punctuation.character.set.end.regexp",
"keyword.operator.negation.regexp",
"support.other.parenthesis.regexp"
],
"settings": {
"foreground": "#CE9178"
}
},
{
"scope": [
"constant.character.character-class.regexp",
"constant.other.character-class.set.regexp",
"constant.other.character-class.regexp",
"constant.character.set.regexp"
],
"settings": {
"foreground": "#D16969"
}
},
{
"scope": [
"keyword.operator.or.regexp",
"keyword.control.anchor.regexp"
],
"settings": {
"foreground": "#DCDCAA"
}
},
{
"scope": "keyword.operator.quantifier.regexp",
"settings": {
"foreground": "#D7BA7D"
}
},
{
"scope": "constant.character",
"settings": {
"foreground": "#569CD6"
}
},
{
"scope": "constant.character.escape",
"settings": {
"foreground": "#D7BA7D"
}
},
{
"scope": "entity.name.label",
"settings": {
"foreground": "#C8C8C8"
}
},
{
"scope": "token.info-token",
"settings": {
"foreground": "#6796E6"
}
},
{
"scope": "token.warn-token",
"settings": {
"foreground": "#CD9731"
}
},
{
"scope": "token.error-token",
"settings": {
"foreground": "#F44747"
}
},
{
"scope": "token.debug-token",
"settings": {
"foreground": "#B267E6"
}
}
]
});
fs.writeFile('converted.json', JSON.stringify(converted), (err) => {
if (err) {
throw err;
}
console.log('converted');
});
-1
View File
@@ -1 +0,0 @@
{"inherit":false,"base":"vs-dark","colors":{"activityBarBadge.background":"#007acc","editor.background":"#1e1e1e","editor.foreground":"#d4d4d4","editor.inactiveSelectionBackground":"#3a3d41","editor.selectionHighlightBackground":"#add6ff26","editorIndentGuide.activeBackground":"#707070","editorIndentGuide.background":"#404040","input.placeholderForeground":"#a6a6a6","list.dropBackground":"#383b3d","menu.background":"#252526","menu.foreground":"#cccccc","sideBarSectionHeader.background":"#00000000","sideBarSectionHeader.border":"#cccccc33","sideBarTitle.foreground":"#bbbbbb","statusBarItem.remoteBackground":"#16825d","statusBarItem.remoteForeground":"#ffffff","tab.lastPinnedBorder":"#cccccc33"},"rules":[{"foreground":"#D4D4D4","token":"meta.embedded"},{"foreground":"#D4D4D4","token":"source.groovy.embedded"},{"fontStyle":"italic","token":"emphasis"},{"fontStyle":"bold","token":"strong"},{"foreground":"#000080","token":"header"},{"foreground":"#6A9955","token":"comment"},{"foreground":"#569CD6","token":"constant.language"},{"foreground":"#B5CEA8","token":"constant.numeric"},{"foreground":"#B5CEA8","token":"variable.other.enummember"},{"foreground":"#B5CEA8","token":"keyword.operator.plus.exponent"},{"foreground":"#B5CEA8","token":"keyword.operator.minus.exponent"},{"foreground":"#646695","token":"constant.regexp"},{"foreground":"#569CD6","token":"entity.name.tag"},{"foreground":"#D7BA7D","token":"entity.name.tag.css"},{"foreground":"#9CDCFE","token":"entity.other.attribute-name"},{"foreground":"#D7BA7D","token":"entity.other.attribute-name.class.css"},{"foreground":"#D7BA7D","token":"entity.other.attribute-name.class.mixin.css"},{"foreground":"#D7BA7D","token":"entity.other.attribute-name.id.css"},{"foreground":"#D7BA7D","token":"entity.other.attribute-name.parent-selector.css"},{"foreground":"#D7BA7D","token":"entity.other.attribute-name.pseudo-class.css"},{"foreground":"#D7BA7D","token":"entity.other.attribute-name.pseudo-element.css"},{"foreground":"#D7BA7D","token":"source.css.less entity.other.attribute-name.id"},{"foreground":"#D7BA7D","token":"entity.other.attribute-name.scss"},{"foreground":"#F44747","token":"invalid"},{"fontStyle":"underline","token":"markup.underline"},{"foreground":"#569CD6","fontStyle":"bold","token":"markup.bold"},{"foreground":"#569CD6","fontStyle":"bold","token":"markup.heading"},{"fontStyle":"italic","token":"markup.italic"},{"foreground":"#B5CEA8","token":"markup.inserted"},{"foreground":"#CE9178","token":"markup.deleted"},{"foreground":"#569CD6","token":"markup.changed"},{"foreground":"#6A9955","token":"punctuation.definition.quote.begin.markdown"},{"foreground":"#6796E6","token":"punctuation.definition.list.begin.markdown"},{"foreground":"#CE9178","token":"markup.inline.raw"},{"foreground":"#808080","token":"punctuation.definition.tag"},{"foreground":"#569CD6","token":"meta.preprocessor"},{"foreground":"#569CD6","token":"entity.name.function.preprocessor"},{"foreground":"#CE9178","token":"meta.preprocessor.string"},{"foreground":"#B5CEA8","token":"meta.preprocessor.numeric"},{"foreground":"#9CDCFE","token":"meta.structure.dictionary.key.python"},{"foreground":"#569CD6","token":"meta.diff.header"},{"foreground":"#569CD6","token":"storage"},{"foreground":"#569CD6","token":"storage.type"},{"foreground":"#569CD6","token":"storage.modifier"},{"foreground":"#569CD6","token":"keyword.operator.noexcept"},{"foreground":"#CE9178","token":"string"},{"foreground":"#CE9178","token":"meta.embedded.assembly"},{"foreground":"#CE9178","token":"string.tag"},{"foreground":"#CE9178","token":"string.value"},{"foreground":"#D16969","token":"string.regexp"},{"foreground":"#569CD6","token":"punctuation.definition.template-expression.begin"},{"foreground":"#569CD6","token":"punctuation.definition.template-expression.end"},{"foreground":"#569CD6","token":"punctuation.section.embedded"},{"foreground":"#D4D4D4","token":"meta.template.expression"},{"foreground":"#9CDCFE","token":"support.type.vendored.property-name"},{"foreground":"#9CDCFE","token":"support.type.property-name"},{"foreground":"#9CDCFE","token":"variable.css"},{"foreground":"#9CDCFE","token":"variable.scss"},{"foreground":"#9CDCFE","token":"variable.other.less"},{"foreground":"#9CDCFE","token":"source.coffee.embedded"},{"foreground":"#569CD6","token":"keyword"},{"foreground":"#569CD6","token":"keyword.control"},{"foreground":"#D4D4D4","token":"keyword.operator"},{"foreground":"#569CD6","token":"keyword.operator.new"},{"foreground":"#569CD6","token":"keyword.operator.expression"},{"foreground":"#569CD6","token":"keyword.operator.cast"},{"foreground":"#569CD6","token":"keyword.operator.sizeof"},{"foreground":"#569CD6","token":"keyword.operator.alignof"},{"foreground":"#569CD6","token":"keyword.operator.typeid"},{"foreground":"#569CD6","token":"keyword.operator.alignas"},{"foreground":"#569CD6","token":"keyword.operator.instanceof"},{"foreground":"#569CD6","token":"keyword.operator.logical.python"},{"foreground":"#569CD6","token":"keyword.Line truncated
+1 -1
View File
@@ -7,7 +7,7 @@ GEM
minitest (~> 5.1)
tzinfo (~> 1.1)
zeitwerk (~> 2.2, >= 2.2.2)
addressable (2.7.0)
addressable (2.8.0)
public_suffix (>= 2.0.2, < 5.0)
coffee-script (2.4.1)
coffee-script-source
+1 -1
View File
@@ -13,7 +13,7 @@ description: >-
## Setup
Make a copy of the `.env.development.local.example` and omit the .example.
In the new file edit it to refect your desired printer:
In the new file edit it to reflect your desired printer:
```dotenv
#for your printer with moonraker running on 192.168.0.15
VUE_APP_HOSTNAME=192.168.0.15
+4 -2
View File
@@ -28,7 +28,7 @@ Due to the major changes we will probably jump directly to **Mainsail 2000** ins
![logo](/assets/img/preview/menu2k.gif)
# Easy to customize
Throw your own wallaper in the folder and you are ready to go.
Throw your own wallpaper in the folder and you are ready to go.
![logo](/assets/img/preview/Wallpaper2k.png)
@@ -39,4 +39,6 @@ Mainsails new smart assistant *Clippy* is always there to help and advise.
He may be receiving support from *Wizard* in the near future, who could help you with your printing problems.
![logo](/assets/img/preview/Merlin2k.png)
![logo](/assets/img/preview/Merlin2k.png)
+9 -6
View File
@@ -13,6 +13,9 @@ Our recommended way to install Mainsail on a Raspberry Pi is to use [MainsailOS]
as pre-packaged disk image. If you are building a custom configuration, you may need to skip
these instructions and install Mainsail [manually](manual-setup/index.md).
**Note: To avoid confusion, the described way is available for Windows, Linux and MacOS because RPI Imager is a Multiplatform Tool!**
{: .info}
_Note: It is a good idea to use a premium SDcard from a reputable manufacturer such as Sandisk, Kingston or Samsung. Perfomancewise you should consider using a "A1" or better, marked SDCard. Low end cards will often fail quickly when used in this application
**PLEASE OBEY THAT THIS WILL DESTROY ALL DATA ON YOUR CARD**_
{: .alert}
@@ -45,9 +48,9 @@ Click on "Use Custom"
![](../assets/img/setup/rpi-sdcard.png)
_As an Example..._
6. Now its time to setup things like Hostname, Wifi, Language and more.
6. Now it's time to setup things like Hostname, Wifi, Language and more.
It depends on your needs what you setup, but it has to be WIFI and SSH at least!
Grab your Keybord and hit:
Grab your keyboard and hit:
<kbd>CTRL</kbd><span>+</span><kbd>SHIFT</kbd><span>+</span><kbd>X</kbd>
@@ -58,14 +61,14 @@ Grab your Keybord and hit:
![](../assets/img/setup/rpi-setup-2.png)
7. As last Step click on "Write", rpi-imager will give you a Warning. Click "YES" to continue...
7. As the last Step click on "Write", rpi-imager will give you a Warning. Click "YES" to continue...
![](../assets/img/setup/rpi-warning.png)
8. Watch the Progressbar and wait until you see:
![](../assets/img/setup/rpi-finished.png)
Hit the "Continue" Button and remove safely your SDCard. ( eg. unmount on Linux )
Hit the "Continue" Button and safely remove your SDCard. ( eg. unmount on Linux )
9. Insert the SDcard into your Pi, and power on the Pi.
@@ -79,9 +82,9 @@ Grab your Keybord and hit:
- If your network supports bonjour, the pi should show up as `mainsailos.local` or the given Hostname in the Setup Section.
- If your network automatically assigns DNS hostnames, it may simply show up as `mainsailos` or accordingly given Hostname.
- Failing these two options, you may need to check your router's DHCP server, and find out what IP address as been assigned to the device.
- Failing these two options, you may need to check your router's DHCP server, and find out what IP address has been assigned to the device.
_**After you're able to get to the Mainsail Webinterface you should consider to Update the System to get latest features. Mainsail, Klipper and Moonraker got an relative fast Development Cycle. We can't provide MainsailOS Image with all the latest and greatest. So we encourage you to Update on first Login**_
_**After you're able to get to the Mainsail Webinterface you should consider updating the System to get the latest features. Mainsail, Klipper and Moonraker got a relatively fast Development Cycle. We can't provide MainsailOS Image with all the latest and greatest. So we encourage you to Update on first Login**_
{: .info}
_If you decide to update, you should update in following order:_
+1212 -1808
View File
File diff suppressed because it is too large. Load diff
+21 -24
View File
@@ -1,6 +1,6 @@
{
"name": "mainsail",
"version": "2.0.0-beta",
"version": "2.0.0-beta2",
"private": true,
"decription": "a klipper web interface",
"author": {
@@ -18,64 +18,61 @@
"@codemirror/legacy-modes": "^0.18.1",
"@codemirror/state": "^0.18.7",
"@codemirror/stream-parser": "^0.18.2",
"@codemirror/view": "^0.18.18",
"@codemirror/view": "^0.18.19",
"axios": "^0.21.1",
"core-js": "^3.15.2",
"core-js": "^3.16.0",
"echarts": "^5.1.2",
"echarts-for-vue": "^1.4.1",
"echarts-gl": "^2.0.6",
"joi": "^17.4.0",
"echarts-gl": "^2.0.7",
"joi": "^17.4.1",
"js-sha256": "^0.9.0",
"object-assign-deep": "^0.4.0",
"onigasm": "^2.2.5",
"sass-loader": "^10.2.0",
"semver": "^7.3.5",
"serialize-javascript": "^1.9.1",
"vue": "^2.6.12",
"vue": "^2.6.14",
"vue-class-component": "^7.2.6",
"vue-context": "^6.0.0",
"vue-github-api": "^0.1.7",
"vue-headful": "^2.1.0",
"vue-i18n": "^8.24.4",
"vue-load-image": "^0.1.12",
"vue-i18n": "^8.25.0",
"vue-load-image": "^0.2.0",
"vue-observe-visibility": "^1.0.0",
"vue-property-decorator": "^9.1.2",
"vue-resource": "^1.5.2",
"vue-resource": "^1.5.3",
"vue-simple-upload": "^0.1.6",
"vue-toast-notification": "^0.6.1",
"vue2-perfect-scrollbar": "^1.5.0",
"vuetify": "^2.5.6",
"vuedraggable": "^2.24.3",
"vuetify": "^2.5.8",
"vuex": "^3.6.2"
},
"devDependencies": {
"@mdi/font": "^5.9.55",
"@types/semver": "^7.3.7",
"@typescript-eslint/eslint-plugin": "^4.28.2",
"@typescript-eslint/parser": "^4.28.2",
"@types/semver": "^7.3.8",
"@typescript-eslint/eslint-plugin": "^4.28.5",
"@typescript-eslint/parser": "^4.28.5",
"@vue/cli-plugin-babel": "^4.5.13",
"@vue/cli-plugin-eslint": "^4.5.13",
"@vue/cli-plugin-pwa": "^4.5.13",
"@vue/cli-plugin-typescript": "^4.5.13",
"@vue/cli-service": "^4.5.13",
"@vue/composition-api": "^1.0.0-rc.13",
"@vue/composition-api": "^1.0.5",
"@vue/eslint-config-typescript": "^7.0.0",
"babel-eslint": "^10.1.0",
"css-loader": "^5.2.4",
"eslint": "^6.8.0",
"eslint-plugin-vue": "^6.2.2",
"generate-file-webpack-plugin": "^1.0.1",
"node-sass": "^6.0.0",
"sass": "^1.32.13",
"sass-loader": "^10.2.0",
"style-loader": "^2.0.0",
"node-sass": "^6.0.1",
"sass": "^1.37.0",
"sw-precache-webpack-plugin": "^1.0.0",
"typescript": "^4.3.2",
"typescript": "^4.3.5",
"vue-cli-plugin-route": "0.0.7",
"vue-cli-plugin-vuetify": "^2.4.0",
"vue-debounce-decorator": "^1.0.1",
"vue-i18n-extract": "^1.2.3",
"vue-loader": "^16.2.0",
"vue-router": "^3.5.1",
"vue-template-compiler": "^2.6.12",
"vue-router": "^3.5.2",
"vue-template-compiler": "^2.6.14",
"vuetify-loader": "^1.7.2"
},
"eslintConfig": {
+1
View File
@@ -0,0 +1 @@
$t('title')
+124 -71
View File
@@ -1,4 +1,4 @@
<style scoped>
<style>
@import './assets/styles/fonts.css';
@import './assets/styles/toastr.css';
@import './assets/styles/page.scss';
@@ -11,20 +11,22 @@
background-size: cover;
background-repeat: no-repeat;
}
.v-btn:not(.v-btn--outlined).primary {
color: var(--v-btn-text-primary)
}
</style>
<template>
<v-app dark>
<v-app dark :style="cssVars">
<vue-headful :title="title" />
<the-sidebar></the-sidebar>
<the-topbar></the-topbar>
<v-main id="content" v-bind:style="{ background: mainBackground }">
<v-scroll-y-transition>
<v-container fluid id="page-container" class="container px-3 px-sm-6 py-sm-6 mx-auto">
<router-view></router-view>
</v-container>
</v-scroll-y-transition>
<v-main id="content" :style="{ background: mainBackground }">
<v-container fluid id="page-container" class="container px-3 px-sm-6 py-sm-6 mx-auto">
<router-view></router-view>
</v-container>
</v-main>
<the-select-printer-dialog v-if="remoteMode"></the-select-printer-dialog>
<the-connecting-dialog v-else></the-connecting-dialog>
@@ -38,11 +40,12 @@ import Component from 'vue-class-component'
import TheSidebar from "@/components/TheSidebar.vue";
import BaseMixin from "@/components/mixins/base";
import TheTopbar from "@/components/TheTopbar.vue";
import {Mixins,Watch} from "vue-property-decorator";
import {Mixins, Vue, Watch} from "vue-property-decorator";
import TheUpdateDialog from "@/components/TheUpdateDialog.vue";
import TheConnectingDialog from "@/components/TheConnectingDialog.vue";
import TheSelectPrinterDialog from "@/components/TheSelectPrinterDialog.vue";
import TheEditor from "@/components/TheEditor.vue";
import MainsailLogo from "@/components/ui/MainsailLogo.vue";
@Component({
components: {
@@ -72,6 +75,10 @@ export default class App extends Mixins(BaseMixin) {
return this.$store.getters["files/getCustomStylesheet"]
}
get customFavicons () {
return this.$store.getters["files/getCustomFavicons"] ?? null
}
get language () {
return this.$store.state.gui.general.language
}
@@ -80,10 +87,38 @@ export default class App extends Mixins(BaseMixin) {
return this.$store.state.printer.print_stats?.filename ?? ""
}
get logoColor () {
return this.$store.state.gui.theme.logo
}
get primaryColor () {
return this.$store.state.gui.theme.primary
}
get primaryTextColor() {
let splits = /^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(this.primaryColor)
if (splits) {
const r = parseInt(splits[1], 16) * 0.2126
const g = parseInt(splits[2], 16) * 0.7152
const b = parseInt(splits[3], 16) * 0.0722
const perceivedLightness = (r + g + b) / 255
return perceivedLightness > 0.7 ? '#222' : '#fff'
}
return '#ffffff'
}
get cssVars() {
return {
'--v-btn-text-primary': this.primaryTextColor
}
}
get print_percent () {
return Math.round(this.$store.getters["printer/getPrintPercent"] * 100)
}
@Watch('language')
languageChanged(newVal: string) {
this.$i18n.locale = newVal;
@@ -106,7 +141,7 @@ export default class App extends Mixins(BaseMixin) {
@Watch('current_file')
current_fileChanged(newVal: string) {
this.$socket.emit("server.files.metadata", { filename: newVal }, { action: "files/getMetadataCurrentFile" });
if (newVal !== "") this.$socket.emit("server.files.metadata", { filename: newVal }, { action: "files/getMetadataCurrentFile" });
}
@Watch('primaryColor')
@@ -115,78 +150,96 @@ export default class App extends Mixins(BaseMixin) {
this.$vuetify.theme.currentTheme.primary = newVal
})
}
}
/*export default Vue.extend({
computed: {
print_percent () {
return this.$store.getters["printer/getPrintPercent"]
},
defaultFavicons () {
return this.$store.getters["files/getFavicons"]
},
},
methods: {
/!*drawFavicon(val: number) {
const favicon16 = document.querySelector("link[rel*='icon'][sizes='16x16']")
const favicon32 = document.querySelector("link[rel*='icon'][sizes='32x32']")
drawFavicon(val: number) {
const favicon16: HTMLLinkElement | null = document.querySelector("link[rel*='icon'][sizes='16x16']")
const favicon32: HTMLLinkElement | null = document.querySelector("link[rel*='icon'][sizes='32x32']")
if (val > 0 && val < 100 && favicon16 && favicon32) {
if (favicon16 && favicon32) {
if (this.printerIsPrinting) {
let faviconSize = 64;
let canvas = document.createElement('canvas');
canvas.width = faviconSize;
canvas.height = faviconSize;
const context = canvas.getContext('2d');
let centerX = canvas.width / 2;
let centerY = canvas.height / 2;
let radius = 32;
let percent = (val * 100).toFixed(0);
let canvas = document.createElement('canvas')
canvas.width = faviconSize
canvas.height = faviconSize
const context = canvas.getContext('2d')
const centerX = canvas.width / 2
const centerY = canvas.height / 2
const radius = 32
/!* draw the grey circle *!/
// draw the grey circle
if (context) {
context.beginPath();
context.moveTo(centerX, centerY);
context.arc(centerX, centerY, radius, 0, 2 * Math.PI, false);
context.closePath();
context.fillStyle = "#ddd";
context.fill();
context.strokeStyle = "rgba(200, 208, 218, 0.66)";
context.stroke();
context.beginPath()
context.moveTo(centerX, centerY)
context.arc(centerX, centerY, radius, 0, 2 * Math.PI, false)
context.closePath()
context.fillStyle = "#ddd"
context.fill()
context.strokeStyle = "rgba(200, 208, 218, 0.66)"
context.stroke()
/!* draw the green circle based on percentage *!/
let startAngle = 1.5 * Math.PI;
let endAngle = 0;
let unitValue = (Math.PI - 0.5 * Math.PI) / 25;
if (percent >= 0 && percent <= 25) endAngle = startAngle + (percent * unitValue);
else if (percent > 25 && percent <= 50) endAngle = startAngle + (percent * unitValue);
else if (percent > 50 && percent <= 75) endAngle = startAngle + (percent * unitValue);
else if (percent > 75 && percent <= 100) endAngle = startAngle + (percent * unitValue);
// draw the green circle based on percentage
let startAngle = 1.5 * Math.PI
let endAngle = 0
let unitValue = (Math.PI - 0.5 * Math.PI) / 25
if (val >= 0 && val <= 25) endAngle = startAngle + (val * unitValue)
else if (val > 25 && val <= 50) endAngle = startAngle + (val * unitValue)
else if (val > 50 && val <= 75) endAngle = startAngle + (val * unitValue)
else if (val > 75 && val <= 100) endAngle = startAngle + (val * unitValue)
context.beginPath();
context.moveTo(centerX, centerY);
context.arc(centerX, centerY, radius, startAngle, endAngle, false);
context.closePath();
context.fillStyle = "#e41313";
context.fill();
context.beginPath()
context.moveTo(centerX, centerY)
context.arc(centerX, centerY, radius, startAngle, endAngle, false)
context.closePath()
context.fillStyle = this.logoColor
context.fill()
favicon16.href = canvas.toDataURL('image/png')
favicon32.href = canvas.toDataURL('image/png')
}
} else if (favicon16 && favicon32) {
const [favicon16Default, favicon32Default] = this.defaultFavicons
favicon16.href = favicon16Default
favicon32.href = favicon32Default
} else if (this.customFavicons) {
const [favicon16Path, favicon32Path] = this.customFavicons
favicon16.href = favicon16Path
favicon32.href = favicon32Path
} else {
const favicon = 'data:image/svg+xml;base64,' + btoa(
'<svg version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px" viewBox="0 0 599.38 523.11" xml:space="preserve">' +
'<g>' +
'<path style="fill:'+this.logoColor+';" d="M382.29,142.98L132.98,522.82L0,522.68L344.3,0l0,0C352.18,49.06,365.2,97.68,382.29,142.98"/>' +
'<path style="fill:'+this.logoColor+';" d="M413.28,213.54L208.5,522.92l132.94,0.19l135.03-206.33l0,0C452.69,284.29,431.53,249.77,413.28,213.54 L413.28,213.54"/>' +
'<path style="fill:'+this.logoColor+';" d="M599.38,447.69l-49.25,75.42L417,522.82l101.6-153.67l0,0C543.48,397.35,570.49,423.61,599.38,447.69 L599.38,447.69z"/>' +
'</g>' +
'</svg>'
)
favicon16.href = favicon
favicon32.href = favicon
}
},*!/
},
watch: {
/!*print_percent() {
this.drawFavicon(this.print_percent);
},
defaultFavicons() {
this.drawFavicon(this.print_percent);
}*!/
},
})*/
}
}
@Watch('customFavicons')
customFaviconsChanged() {
this.drawFavicon(this.print_percent)
}
@Watch('logoColor')
logoColorChanged() {
this.drawFavicon(this.print_percent)
}
@Watch('print_percent')
print_percentChanged(newVal: number) {
this.drawFavicon(newVal)
}
@Watch('printerIsPrinting')
printerIsPrintingChanged() {
this.drawFavicon(this.print_percent)
}
mounted() {
this.drawFavicon(this.print_percent)
}
}
</script>
+1 -1
View File
@@ -3,7 +3,7 @@ body {
}
#page-container {
max-width: 1400px;
max-width: 1800px;
}
.overflowingContentWidgets {
+16
View File
@@ -0,0 +1,16 @@
$t('App.ThrottledStates.TitleUnderVoltageDetected')
$t('App.ThrottledStates.TitleFrequencyCapped')
$t('App.ThrottledStates.TitleCurrentlyThrottled')
$t('App.ThrottledStates.TitleTemperatureLimitActive')
$t('App.ThrottledStates.TitlePreviouslyUnderVolted')
$t('App.ThrottledStates.TitlePreviouslyFrequencyCapped')
$t('App.ThrottledStates.TitlePreviouslyThrottled')
$t('App.ThrottledStates.TitlePreviouslyTemperatureLimited')
$t('App.ThrottledStates.DescriptionUnderVoltageDetected')
$t('App.ThrottledStates.DescriptionFrequencyCapped')
$t('App.ThrottledStates.DescriptionCurrentlyThrottled')
$t('App.ThrottledStates.DescriptionTemperatureLimitActive')
$t('App.ThrottledStates.DescriptionPreviouslyUnderVolted')
$t('App.ThrottledStates.DescriptionPreviouslyFrequencyCapped')
$t('App.ThrottledStates.DescriptionPreviouslyThrottled')
$t('App.ThrottledStates.DescriptionPreviouslyTemperatureLimited')
+1 -1
View File
@@ -34,7 +34,7 @@ export default class ConsoleTableEntry extends Vue {
commandClick(event: Event) {
const eventTarget = event.target as Element
if (eventTarget.localName === "a" && eventTarget.className.indexOf('command') !== -1) {
const command = eventTarget.innerHTML.replaceAll('<br>', '\n')
const command = eventTarget.innerHTML.replace(/<br>/g, '\n')
this.$emit('command-click', command)
}
+6 -2
View File
@@ -18,7 +18,7 @@
<v-btn icon dark @click="close">
<v-icon>mdi-close</v-icon>
</v-btn>
<v-toolbar-title>{{ filename }}</v-toolbar-title>
<v-toolbar-title>{{ filepath ? filepath.slice(1)+"/" : "" }}{{ filename }}</v-toolbar-title>
<v-spacer></v-spacer>
<v-toolbar-items>
<v-btn dark text 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>
@@ -79,6 +79,10 @@ export default class TheEditor extends Mixins(BaseMixin) {
return this.$store.state.editor.bool ?? false
}
get filepath(): string {
return this.$store.state.editor.filepath ?? ""
}
get filename(): string {
return this.$store.state.editor.filename ?? ""
}
@@ -114,7 +118,7 @@ export default class TheEditor extends Mixins(BaseMixin) {
}
get snackbarHeadline() {
let directionUppercase = "Downloading"
let directionUppercase = this.$t("Files.Downloading")
if (this.loaderProgress.direction) {
directionUppercase = this.loaderProgress.direction?.charAt(0).toUpperCase() + this.loaderProgress.direction?.slice(1)
}
+30 -18
View File
@@ -12,10 +12,10 @@
<v-spacer></v-spacer>
<v-btn small class="minwidth-0 px-2" color="grey darken-2" @click="showSettings = false"><v-icon small>mdi-close-thick</v-icon></v-btn>
<template v-if="isMobile" v-slot:extension>
<v-tabs v-model="tabs" :center-active="true" :show-arrows="true">
<v-tabs v-model="activeTab" :center-active="true" :show-arrows="true">
<v-tab
v-for="(tab, index) of tabTitles" v-bind:key="index"
:href="'#settings-tabs-'+tab.name"
:href="'#'+tab.name"
class="justify-start">
<v-icon left v-html="tab.icon"></v-icon>
{{ tab.title }}
@@ -25,10 +25,10 @@
</v-toolbar>
<v-row>
<v-col class="col-auto pr-0" v-if="!isMobile">
<v-tabs v-model="tabs" :vertical="true">
<v-tabs v-model="activeTab" :vertical="true">
<v-tab
v-for="(tab, index) of tabTitles" v-bind:key="index"
:href="'#settings-tabs-'+tab.name"
:href="'#'+tab.name"
class="justify-start">
<v-icon left v-html="tab.icon"></v-icon>
{{ tab.title }}
@@ -36,17 +36,8 @@
</v-tabs>
</v-col>
<v-col :class="isMobile ? '' : 'pl-0'">
<perfect-scrollbar :class="'settings-tabs '+(isMobile ? '' : 'height500')">
<v-tabs-items v-model="tabs">
<v-tab-item value="settings-tabs-general"><settings-general-tab></settings-general-tab></v-tab-item>
<v-tab-item value="settings-tabs-theme"><settings-theme-tab></settings-theme-tab></v-tab-item>
<v-tab-item value="settings-tabs-webcam"><settings-webcam-tab></settings-webcam-tab></v-tab-item>
<v-tab-item value="settings-tabs-macros"><settings-macros-tab></settings-macros-tab></v-tab-item>
<v-tab-item value="settings-tabs-control"><settings-control-tab></settings-control-tab></v-tab-item>
<v-tab-item value="settings-tabs-console"><settings-console-tab></settings-console-tab></v-tab-item>
<v-tab-item value="settings-tabs-presets"><settings-presets-tab></settings-presets-tab></v-tab-item>
<v-tab-item value="settings-tabs-remote-printers"><settings-remote-printers-tab></settings-remote-printers-tab></v-tab-item>
</v-tabs-items>
<perfect-scrollbar :class="'settings-tabs '+(isMobile ? '' : 'height500')" ref="settingsScroll">
<component :is="'settings-'+activeTab+'-tab'"></component>
</perfect-scrollbar>
</v-col>
</v-row>
@@ -58,7 +49,7 @@
<script lang="ts">
import Component from 'vue-class-component'
import { Mixins } from 'vue-property-decorator'
import {Mixins, Watch} from 'vue-property-decorator'
import BaseMixin from '@/components/mixins/base'
import SettingsGeneralTab from "@/components/settings/SettingsGeneralTab.vue";
import SettingsWebcamTab from "@/components/settings/SettingsWebcamTab.vue";
@@ -68,16 +59,27 @@ import SettingsConsoleTab from "@/components/settings/SettingsConsoleTab.vue";
import SettingsPresetsTab from "@/components/settings/SettingsPresetsTab.vue";
import SettingsRemotePrintersTab from "@/components/settings/SettingsRemotePrintersTab.vue";
import SettingsThemeTab from "@/components/settings/SettingsThemeTab.vue";
import SettingsDashboardTab from "@/components/settings/SettingsDashboardTab.vue";
@Component({
components: {
SettingsThemeTab,
SettingsRemotePrintersTab,
SettingsPresetsTab,
SettingsConsoleTab, SettingsControlTab, SettingsMacrosTab, SettingsWebcamTab, SettingsGeneralTab}
SettingsConsoleTab,
SettingsControlTab,
SettingsMacrosTab,
SettingsWebcamTab,
SettingsGeneralTab,
SettingsDashboardTab
}
})
export default class TheSettingsMenu extends Mixins(BaseMixin) {
private showSettings = false
private tabs: any = null
private activeTab = 'general'
$refs!: {
settingsScroll: any
}
get tabTitles() {
return [
@@ -91,6 +93,11 @@ export default class TheSettingsMenu extends Mixins(BaseMixin) {
name: 'theme',
title: this.$t('Settings.ThemeTab.Theme')
},
{
icon: 'mdi-monitor-dashboard',
name: 'dashboard',
title: this.$t('Settings.DashboardTab.Dashboard')
},
{
icon: 'mdi-webcam',
name: 'webcam',
@@ -123,6 +130,11 @@ export default class TheSettingsMenu extends Mixins(BaseMixin) {
},
]
}
@Watch('activeTab')
activeTabWatch() {
if (this.$refs.settingsScroll) this.$refs.settingsScroll.$el.scrollTop = 0
}
}
</script>
-17
View File
@@ -34,16 +34,6 @@
slot="activator" class="nav-link" exact :to="category.path" @click.prevent
v-if="showInNavi(category)">
<v-icon>mdi-{{ category.icon }}</v-icon>
<v-icon
small
color="warning"
style="
top: 11px;
left: 32px;
position: absolute;
"
v-if="category.title === 'Settings' && isUpdateAvailable"
>mdi-progress-upload</v-icon>
<span class="nav-title">{{ $t(`Router.${category.title}`) }}</span>
<v-icon class="nav-arrow" v-if="category.children && category.children.length > 0">mdi-chevron-down</v-icon>
</router-link>
@@ -165,14 +155,7 @@ export default class TheSidebar extends Mixins(BaseMixin) {
}
mounted() {
window.console.log("lg", this.$vuetify.breakpoint.lgAndUp)
this.naviDrawer = this.$vuetify.breakpoint.lgAndUp
}
@Watch('naviDrawer')
naviDrawerChanged(newVal: any) {
window.console.log("naviDrawerChanged", newVal)
}
}
</script>
+5 -5
View File
@@ -15,8 +15,8 @@
<v-subheader class="" style="height: auto;">{{ $t("App.ThrottledStates.HeadlineCurrentFlags") }}</v-subheader>
<v-list-item v-for="(flag) in currentFlags" :key="flag" two-line>
<v-list-item-content class="py-0">
<v-list-item-title>{{ $t('App.ThrottledStates.Title'+convertName(flag)) }}</v-list-item-title>
<v-list-item-subtitle class="text-wrap">{{ $t('App.ThrottledStates.Tooltip'+convertName(flag)) }}</v-list-item-subtitle>
<v-list-item-title>{{ $t(`App.ThrottledStates.Title${convertName(flag)}`) }}</v-list-item-title>
<v-list-item-subtitle class="text-wrap">{{ $t(`App.ThrottledStates.Description${convertName(flag)}`) }}</v-list-item-subtitle>
</v-list-item-content>
</v-list-item>
</template>
@@ -25,8 +25,8 @@
<v-subheader class="" style="height: auto;">{{ $t("App.ThrottledStates.HeadlinePreviouslyFlags") }}</v-subheader>
<v-list-item v-for="(flag) in previouslyFlags" :key="flag" two-line>
<v-list-item-content class="py-0">
<v-list-item-title>{{ $t('App.ThrottledStates.Title'+convertName(flag)) }}</v-list-item-title>
<v-list-item-subtitle class="text-wrap">{{ $t('App.ThrottledStates.Tooltip'+convertName(flag)) }}</v-list-item-subtitle>
<v-list-item-title>{{ $t(`App.ThrottledStates.Title${convertName(flag)}`) }}</v-list-item-title>
<v-list-item-subtitle class="text-wrap">{{ $t(`App.ThrottledStates.Description${convertName(flag)}`) }}</v-list-item-subtitle>
</v-list-item-content>
</v-list-item>
</template>
@@ -74,7 +74,7 @@ export default class TheThrottledStates extends Mixins(BaseMixin) {
}
convertName(flag: string): string {
flag = flag.replaceAll(" ", "").replaceAll("-", "")
flag = flag.replace(/ /g, "").replace(/-/g, "")
flag = flag.charAt(0).toUpperCase() + flag.slice(1)
return flag
+1 -1
View File
@@ -59,7 +59,7 @@ export default class TheTopCornerMenu extends Mixins(BaseMixin) {
showMenu = false
get services() {
const services = this.$store.state.server.system_info.available_services ?? []
const services = this.$store.state.server.system_info.available_services?.filter((name: string) => name !== 'klipper_mcu') ?? []
services.sort()
return services
}
+3 -3
View File
@@ -15,7 +15,7 @@
color="primary"
class="mr-5 d-none d-sm-flex"
v-if="klippyIsConnected && saveConfigPending"
:disabled="['printing', 'paused'].includes(printer_state)"
:disabled="printerIsPrinting"
:loading="loadings.includes('topbarSaveConfig')"
@click="saveConfig">
{{ $t("App.TopBar.SAVE_CONFIG") }}
@@ -134,7 +134,7 @@ export default class TheTopbar extends Mixins(BaseMixin) {
}
get saveConfigPending() {
return this.$store.state.printer.configfile?.pending ?? false
return this.$store.state.printer.configfile?.save_config_pending ?? false
}
emergencyStop() {
@@ -159,7 +159,7 @@ export default class TheTopbar extends Mixins(BaseMixin) {
successFiles.push(result)
}
this.$store.dispatch('socket/removeLoading', { name: 'gcodeUpload' })
this.$store.dispatch('socket/removeLoading', { name: 'btnUploadAndStart' })
for(const file of successFiles) {
const text = this.$t("App.TopBar.UploadOfFileSuccessful", {file:file}).toString()
this.$toast.success(text)
+45 -34
View File
@@ -1,12 +1,13 @@
<style scoped>
.updaterLog {
.updaterLogScroll {
height: 350px;
max-height: 350px;
overflow-y: auto;
overflow-x: hidden;
}
.updaterLog .title-cell {
white-space: nowrap;
vertical-align: top;
}
.updaterLog.v-data-table > .v-data-table__wrapper > table > tbody > tr > td {
@@ -42,36 +43,42 @@
</span>
</v-toolbar-title>
</v-toolbar>
<v-card-text class="py-6">
<v-data-table
:headers="headers"
:items="messages"
item-key="date"
hide-default-footer
hide-default-header
disable-pagination
class="updaterLog"
ref="updaterLog"
:custom-sort="customSort"
sort-by="date"
:sort-desc="true"
color="primary"
>
<template #no-data>
<div class="py-2">{{ $t("App.UpdateDialog.Empty")}}</div>
</template>
<v-card-text class="px-3">
<v-row>
<v-col class="py-6 px-0">
<perfect-scrollbar class="updaterLogScroll" :options="{ suppressScrollX: true }" ref="updaterLogScroll">
<v-data-table
:headers="headers"
:items="messages"
item-key="date"
hide-default-footer
hide-default-header
disable-pagination
class="updaterLog"
ref="updaterLog"
:custom-sort="customSort"
sort-by="date"
:sort-desc="true"
color="primary"
>
<template #no-data>
<div class="py-2">{{ $t("App.UpdateDialog.Empty")}}</div>
</template>
<template #item="{ item }">
<tr>
<td class="log-cell title-cell py-2">
{{ formatTime(item.date)}}
</td>
<td class="log-cell content-cell pl-0 py-2" colspan="2" style="width:100%;">
<span v-if="item.message" class="message" v-html="item.message"></span>
</td>
</tr>
</template>
</v-data-table>
<template #item="{ item }">
<tr>
<td class="log-cell title-cell py-2">
{{ formatTime(item.date)}}
</td>
<td class="log-cell content-cell pl-0 py-2" colspan="2" style="width:100%;">
<span v-if="item.message" class="message" v-html="item.message"></span>
</td>
</tr>
</template>
</v-data-table>
</perfect-scrollbar>
</v-col>
</v-row>
<v-row>
<v-col class="text-center pt-5">
<v-btn @click="close" :disabled="!complete" color="primary">{{ $t("App.UpdateDialog.Close")}}</v-btn>
@@ -84,7 +91,7 @@
<script lang="ts">
import Component from 'vue-class-component'
import { Mixins } from 'vue-property-decorator'
import {Mixins, Watch} from 'vue-property-decorator'
import BaseMixin from '@/components/mixins/base'
@Component({
@@ -93,6 +100,7 @@ import BaseMixin from '@/components/mixins/base'
})
export default class TheUpdateDialog extends Mixins(BaseMixin) {
$refs!: {
updaterLogScroll: any
updaterLog: HTMLDivElement
}
@@ -154,8 +162,11 @@ export default class TheUpdateDialog extends Mixins(BaseMixin) {
}
}
updated() {
if (this.$refs.updaterLog) this.$refs.updaterLog.scrollTop = this.$refs.updaterLog.scrollHeight
@Watch('messages')
messagesChanged() {
this.$nextTick(() => {
if (this.$refs.updaterLogScroll) this.$refs.updaterLogScroll.$el.scrollTop = this.$refs.updaterLogScroll.$el.scrollHeight
})
}
}
</script>
+3 -1
View File
@@ -20,7 +20,8 @@ import {mainsailTheme} from "@/plugins/codemirrorTheme";
import {StreamLanguage} from "@codemirror/stream-parser";
import { klipper_config } from "@/plugins/StreamParserKlipperConfig";
import { gcode } from "@/plugins/StreamParserGcode";
import {EditorView} from "@codemirror/view";
import {EditorView, keymap} from "@codemirror/view";
import {defaultTabBinding} from "@codemirror/commands";
import {yaml} from "@/plugins/StreamParserYaml";
@Component
@@ -86,6 +87,7 @@ export default class Codemirror extends Mixins(BaseMixin) {
get cmExtensions() {
const extensions = [
basicSetup,
keymap.of([defaultTabBinding]),
mainsailTheme,
EditorView.updateListener.of(update => {
this.content = update.state?.doc.toString()
@@ -0,0 +1,60 @@
<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>
+15 -5
View File
@@ -15,7 +15,7 @@
class="ml-2"
x-small
icon
@click="processedMin = min; processedMax = max; value = defaultValue; sliding = true; sendCmd()"
@click="resetSlider"
>
<v-icon>mdi-restart</v-icon>
</v-btn>
@@ -49,8 +49,6 @@
<script lang="ts">
import {Component, Mixins, Prop, Watch} from "vue-property-decorator";
import BaseMixin from "@/components/mixins/base";
import {Debounce} from "vue-debounce-decorator";
@@ -80,8 +78,8 @@ export default class ToolSlider extends Mixins(BaseMixin) {
this.startValue = this.target * this.multi
this.dynamicStep = Math.floor((this.max - this.min) / 2)
if (this.value > this.max) {
this.processedMax = Math.ceil(this.value / this.defaultValue) * this.defaultValue
if (this.value >= this.processedMax) {
this.processedMax = (Math.ceil(this.value / this.dynamicStep) + 1) * this.dynamicStep
}
}
@@ -91,6 +89,8 @@ export default class ToolSlider extends Mixins(BaseMixin) {
@Debounce(250)
changeSlider() {
this.sendCmd()
if (!this.dynamicRange) return
if (this.value >= this.processedMax) {
this.processedMax = this.value + this.dynamicStep
@@ -112,6 +112,16 @@ export default class ToolSlider extends Mixins(BaseMixin) {
this.processedMax = newVal > this.value ? newVal : Math.ceil(this.value / this.dynamicStep) * this.dynamicStep
}
resetSlider() {
this.value = this.defaultValue
this.processedMax = this.max
if (this.value >= this.processedMax) {
this.processedMax = (Math.ceil(this.value / this.dynamicStep) + 1) * this.dynamicStep
}
this.sendCmd()
}
sendCmd() {
const gcode = this.command + ' ' + this.attributeName + (Math.max(1, this.value) * this.attributeScale).toFixed(0)
this.$store.dispatch('server/addEvent', {message: gcode, type: 'command'})
+12
View File
@@ -43,4 +43,16 @@ export default class BaseMixin extends Vue {
get isMobile() {
return this.$vuetify.breakpoint.mobile
}
get isTablet() {
return this.$vuetify.breakpoint.smAndUp && !this.isDesktop && !this.isWidescreen
}
get isDesktop() {
return this.$vuetify.breakpoint.lgAndUp && !this.isWidescreen
}
get isWidescreen() {
return this.$vuetify.breakpoint.xl
}
}
+237 -268
View File
@@ -21,270 +21,248 @@
</style>
<template>
<div>
<v-card class="mb-6" v-if="klipperReadyForGui && ['standby', 'paused', 'complete', 'cancelled', 'error'].includes(printer_state)">
<v-toolbar flat dense>
<v-toolbar-title>
<span class="subheading"><v-icon left>mdi-gamepad</v-icon>{{ $t('Panels.ControlPanel.Controls') }}</span>
</v-toolbar-title>
<v-spacer></v-spacer>
<v-menu :offset-y="true" :close-on-content-click="false" :title="$t('Panels.ControlPanel.SetupControls')" left>
<template v-slot:activator="{ on, attrs }">
<v-btn small class="px-2 minwidth-0" color="grey darken-3" v-bind="attrs" v-on="on"><v-icon small>mdi-cog</v-icon></v-btn>
</template>
<v-list>
<v-card class="mb-6" v-if="klipperReadyForGui && ['standby', 'paused', 'complete', 'cancelled', 'error'].includes(printer_state)">
<v-toolbar flat dense>
<v-toolbar-title>
<span class="subheading"><v-icon left>mdi-gamepad</v-icon>{{ $t('Panels.ControlPanel.Headline') }}</span>
</v-toolbar-title>
<v-spacer></v-spacer>
<v-menu :offset-y="true" :close-on-content-click="false" :title="$t('Panels.ControlPanel.SetupControls')" left>
<template v-slot:activator="{ on, attrs }">
<v-btn small class="px-2 minwidth-0" color="grey darken-3" v-bind="attrs" v-on="on"><v-icon small>mdi-cog</v-icon></v-btn>
</template>
<v-list>
<v-list-item class="minHeight36">
<v-checkbox v-model="useCross" class="mt-0" hide-details :label="$t('Panels.ControlPanel.AlternateControls')"></v-checkbox>
</v-list-item>
<template v-if="useCross">
<v-list-item class="minHeight36">
<v-checkbox v-model="useCross" class="mt-0" hide-details :label="$t('Panels.ControlPanel.AlternateControls')"></v-checkbox>
<v-checkbox v-model="reverseX" class="mt-0" hide-details :label="$t('Panels.ControlPanel.InvertX')"></v-checkbox>
</v-list-item>
<template v-if="useCross">
<v-list-item class="minHeight36">
<v-checkbox v-model="reverseX" class="mt-0" hide-details :label="$t('Panels.ControlPanel.InvertX')"></v-checkbox>
</v-list-item>
<v-list-item class="minHeight36">
<v-checkbox v-model="reverseY" class="mt-0" hide-details :label="$t('Panels.ControlPanel.InvertY')"></v-checkbox>
</v-list-item>
<v-list-item class="minHeight36">
<v-checkbox v-model="reverseZ" class="mt-0" hide-details :label="$t('Panels.ControlPanel.InvertZ')"></v-checkbox>
</v-list-item>
</template>
</v-list>
</v-menu>
</v-toolbar>
<v-container>
<template v-if="useCross">
<v-row>
<v-col :cols="homeCols">
<v-row dense class="mb-1">
<v-col cols="3"></v-col>
<v-col cols="3">
<v-btn class="btnMinWidthAuto fill-width"
:disabled="selectedCrossStep === null || selectedCrossStep === undefined"
@click="doSendMove('Y'+(reverseY ? '-' : '+')+stepsReversed[selectedCrossStep], feedrateXY)"
>
<v-icon>mdi-chevron-up</v-icon>
</v-btn>
</v-col>
<v-col cols="3"></v-col>
<v-col cols="3">
<v-btn class="btnMinWidthAuto fill-width"
:disabled="selectedCrossStep === null || selectedCrossStep === undefined"
@click="doSendMove('Z'+(reverseZ ? '-' : '+')+stepsReversed[selectedCrossStep], feedrateZ)"
>
<v-icon>mdi-chevron-up</v-icon>
</v-btn>
</v-col>
</v-row>
<v-row dense>
<v-col cols="3" class="p-rel">
<v-btn class="btnMinWidthAuto fill-width p-abs" style="top: -50%; width: calc(100% - 8px);"
:disabled="selectedCrossStep === null || selectedCrossStep === undefined"
@click="doSendMove('X'+(!reverseX ? '-' : '+')+stepsReversed[selectedCrossStep], feedrateXY)"
>
<v-icon>mdi-chevron-left</v-icon>
</v-btn>
</v-col>
<v-col cols="3">
<v-btn class="btnMinWidthAuto fill-width"
:disabled="selectedCrossStep === null || selectedCrossStep === undefined"
@click="doSendMove('Y'+(!reverseY ? '-' : '+')+stepsReversed[selectedCrossStep], feedrateXY)"
>
<v-icon>mdi-chevron-down</v-icon>
</v-btn>
</v-col>
<v-col cols="3" class="p-rel">
<v-btn class="btnMinWidthAuto fill-width p-abs" style="top: -50%; width: calc(100% - 8px);"
:disabled="selectedCrossStep === null || selectedCrossStep === undefined"
@click="doSendMove('X'+(reverseX ? '-' : '+')+stepsReversed[selectedCrossStep], feedrateXY)"
>
<v-icon>mdi-chevron-right</v-icon>
</v-btn>
</v-col>
<v-col cols="3">
<v-btn class="btnMinWidthAuto fill-width"
:disabled="selectedCrossStep === null || selectedCrossStep === undefined"
@click="doSendMove('Z'+(!reverseZ ? '-' : '+')+stepsReversed[selectedCrossStep], feedrateZ)"
>
<v-icon>mdi-chevron-down</v-icon>
</v-btn>
</v-col>
</v-row>
</v-col>
<v-col :cols="homeCols" class="d-flex align-center">
<div class="flex-grow-1" style="border-radius: 4px; overflow: hidden;">
<v-row dense class="" style="margin-bottom: -2px!important;">
<v-col :cols="'quad_gantry_level' in config || 'z_tilt' in config ? 6 : 12">
<v-btn class="w-100"
tile
@click="doHome"
height="30"
:loading="loadings.includes('homeAll')"
:color="homedAxes.includes('xyz') ? 'primary' : 'warning'"
>
<div class="d-flex align-center">
<v-icon>mdi-home</v-icon>
<span class="ml-1">{{ $t('Panels.ControlPanel.ALL') }}</span>
</div>
</v-btn>
</v-col>
<v-col v-if="'quad_gantry_level' in config || 'z_tilt' in config" cols="6" class="d-flex">
<v-btn v-if="'quad_gantry_level' in config"
class="btnMinWidthAuto flex-grow-1 px-0"
tile
dense
:color="colorQuadGantryLevel"
height="30"
:loading="loadings.includes('qgl')"
@click="doQGL"
>{{ $t('Panels.ControlPanel.QGL') }}</v-btn>
<v-btn v-if="'z_tilt' in config"
class="btnMinWidthAuto flex-grow-1 px-0"
tile
dense
:color="colorZTilt"
height="30"
:loading="loadings.includes('zTilt')"
@click="doZtilt"
>{{ $t('Panels.ControlPanel.ZTilt') }}</v-btn>
</v-col>
</v-row>
<v-row dense class="">
<v-col cols="4" class="flex-grow-1">
<v-btn class="btnMinWidthAuto w-100"
tile
height="30"
:loading="loadings.includes('homeX')"
:color="homedAxes.includes('x') ? 'primary' : 'warning'"
@click="doHomeX"
>
{{ $t('Panels.ControlPanel.X') }}
</v-btn>
</v-col>
<v-col cols="4" class="flex-grow-1">
<v-btn class="btnMinWidthAuto w-100"
tile
height="30"
:loading="loadings.includes('homeY')"
:color="homedAxes.includes('y') ? 'primary' : 'warning'"
@click="doHomeY"
>
{{ $t('Panels.ControlPanel.Y') }}
</v-btn>
</v-col>
<v-col cols="4" class="flex-grow-1">
<v-btn class="btnMinWidthAuto w-100"
tile
height="30"
:loading="loadings.includes('homeZ')"
:color="homedAxes.includes('z') ? 'primary' : 'warning'"
@click="doHomeZ"
>
{{ $t('Panels.ControlPanel.Z') }}
</v-btn>
</v-col>
</v-row>
</div>
</v-col>
</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-list-item class="minHeight36">
<v-checkbox v-model="reverseY" class="mt-0" hide-details :label="$t('Panels.ControlPanel.InvertY')"></v-checkbox>
</v-list-item>
<v-list-item class="minHeight36">
<v-checkbox v-model="reverseZ" class="mt-0" hide-details :label="$t('Panels.ControlPanel.InvertZ')"></v-checkbox>
</v-list-item>
</template>
</v-list>
</v-menu>
</v-toolbar>
<v-container>
<template v-if="useCross">
<v-row>
<v-col :cols="homeCols">
<v-row dense class="mb-1">
<v-col cols="3"></v-col>
<v-col cols="3">
<v-btn class="btnMinWidthAuto fill-width"
:disabled="selectedCrossStep === null || selectedCrossStep === undefined"
@click="doSendMove('Y'+(reverseY ? '-' : '+')+stepsReversed[selectedCrossStep], feedrateXY)"
>
<v-icon>mdi-chevron-up</v-icon>
</v-btn>
</v-btn-toggle>
<div class="font-weight-bold warning rounded pa-2" v-else>
{{ $t('Panels.ControlPanel.PleaseConfigureSteps') }}<br>
<router-link style="color: white;" to="/settings/interface">{{ $t('Panels.ControlPanel.SettingsInterfaceControl') }}</router-link>
</div>
</v-col>
</v-row>
</template>
<template v-else>
<v-row no-gutters>
<v-col class="col-12 pb-0 text-center">
<v-btn small @click="doHome" :loading="loadings.includes('homeAll')" :color="homedAxes.includes('xyz') ? 'primary' : 'warning'"><v-icon class="mr-1">mdi-home</v-icon>{{ $t('Panels.ControlPanel.ALL') }}</v-btn>
<v-btn small @click="doQGL" :loading="loadings.includes('qgl')" :color="colorQuadGantryLevel" class="ml-2" v-if="'quad_gantry_level' in config">{{ $t('Panels.ControlPanel.QGL') }}</v-btn>
<v-btn small @click="doZtilt" :loading="loadings.includes('zTilt')" :color="colorZTilt" class="ml-2" v-if="'z_tilt' in config">{{ $t('Panels.ControlPanel.ZTilt') }}</v-btn>
</v-col>
</v-row>
<v-row no-gutters class="mt-2">
<v-col class="text-center">
<v-btn-toggle dense no-gutters class="row no-gutters" style="flex-wrap: nowrap; width: 100%;" >
<v-btn @click="doSendMove('X-'+steps, feedrateXY)" class="btnMinWidthAuto col" v-for="steps of stepsXYsorted" v-bind:key="'x-'+steps"><span class="body-2">-{{ steps }}</span></v-btn>
<v-btn @click="doHomeX" :color="homedAxes.includes('x') ? 'primary' : 'warning'" :loading="loadings.includes('homeX')" class="font-weight-bold btnHomeAxis">{{ $t('Panels.ControlPanel.X') }}</v-btn>
<v-btn @click="doSendMove('X+'+steps, feedrateXY)" class="btnMinWidthAuto col" v-for="steps of stepsXYsortedReverse" v-bind:key="'x+'+steps"><span class="body-2">+{{ steps }}</span></v-btn>
</v-btn-toggle>
</v-col>
</v-row>
<v-row no-gutters class="mt-3">
<v-col class="text-center">
<v-btn-toggle dense no-gutters class="row no-gutters" style="flex-wrap: nowrap; width: 100%;" >
<v-btn @click="doSendMove('Y-'+steps, feedrateXY)" class="btnMinWidthAuto col" v-for="steps of stepsXYsorted" v-bind:key="'y-'+steps"><span class="body-2">-{{ steps }}</span></v-btn>
<v-btn @click="doHomeY" :color="homedAxes.includes('y') ? 'primary' : 'warning'" :loading="loadings.includes('homeY')" class="font-weight-bold btnHomeAxis">{{ $t('Panels.ControlPanel.Y') }}</v-btn>
<v-btn @click="doSendMove('Y+'+steps, feedrateXY)" class="btnMinWidthAuto col" v-for="steps of stepsXYsortedReverse" v-bind:key="'y+'+steps"><span class="body-2">+{{ steps }}</span></v-btn>
</v-btn-toggle>
</v-col>
</v-row>
<v-row no-gutters class="mt-3">
<v-col class="text-center">
<v-btn-toggle dense no-gutters class="row no-gutters" style="flex-wrap: nowrap; width: 100%;" >
<v-btn @click="doSendMove('Z-'+steps, feedrateZ)" class="btnMinWidthAuto col" v-for="steps of stepsZsorted" v-bind:key="'z-'+steps"><span class="body-2">-{{ steps }}</span></v-btn>
<v-btn @click="doHomeZ" :color="homedAxes.includes('z') ? 'primary' : 'warning'" :loading="loadings.includes('homeZ')" class="font-weight-bold btnHomeAxis">{{ $t('Panels.ControlPanel.Z') }}</v-btn>
<v-btn @click="doSendMove('Z+'+steps, feedrateZ)" class="btnMinWidthAuto col" v-for="steps of stepsZsortedReverse" v-bind:key="'z+'+steps"><span class="body-2">+{{ steps }}</span></v-btn>
</v-btn-toggle>
</v-col>
</v-row>
</template>
<template v-if="existsExtruder">
<v-row>
<v-col class="pa-0">
<v-divider></v-divider>
</v-col>
</v-row>
<v-row class="">
<v-col class="col col-md-6 pt-2">
<span class="text--disabled" style="font-size: .9em">{{ $t("Panels.ControlPanel.FeedAmountIn") }} [mm]</span>
<v-btn-toggle class="mt-1" dense no-gutters style="flex-wrap: nowrap; width: 100%;" >
<v-btn v-for="amount in feedamountsSorted" v-bind:key="amount" @click="setFeedAmount(amount)" dense :class="(amount === currentFeedAmount ? 'v-btn--active' : '') + ' btnMinWidthAuto flex-grow-1 px-0 _btnFeedrate'">{{ amount }}</v-btn>
</v-btn-toggle>
</v-col>
<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-btn v-for="rate in feedratesSorted" v-bind:key="rate" @click="setFeedrate(rate)" dense :class="(rate === currentFeedRate ? 'v-btn--active' : '') + ' btnMinWidthAuto flex-grow-1 px-0 _btnFeedrate'">{{ rate }}</v-btn>
</v-btn-toggle>
</v-col>
</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-col>
</v-row>
</template>
</v-container>
</v-card>
<v-card class="mb-6" v-if="klipperReadyForGui && macros.length > 0">
<v-toolbar flat dense>
<v-toolbar-title>
<span class="subheading"><v-icon left>mdi-code-tags</v-icon>{{ $t('Panels.ControlPanel.Macros') }}</span>
</v-toolbar-title>
</v-toolbar>
<v-container>
<v-row no-gutters v-if="macros.length">
<v-col class="text-center mr-fix-2 mb-fix-2">
<v-btn v-for="(macro, index) in macros"
:key="index+99"
small
color="primary"
class="mr-2 mb-2"
:loading="loadings.includes('macro_'+macro.name)"
@click="doSendMacro(macro.name)">{{ macro.name.replace(/_/g, " ") }}</v-btn>
</v-col>
<v-col cols="3"></v-col>
<v-col cols="3">
<v-btn class="btnMinWidthAuto fill-width"
:disabled="selectedCrossStep === null || selectedCrossStep === undefined"
@click="doSendMove('Z'+(reverseZ ? '-' : '+')+stepsReversed[selectedCrossStep], feedrateZ)"
>
<v-icon>mdi-chevron-up</v-icon>
</v-btn>
</v-col>
</v-row>
<v-row dense>
<v-col cols="3" class="p-rel">
<v-btn class="btnMinWidthAuto fill-width p-abs" style="top: -50%; width: calc(100% - 8px);"
:disabled="selectedCrossStep === null || selectedCrossStep === undefined"
@click="doSendMove('X'+(!reverseX ? '-' : '+')+stepsReversed[selectedCrossStep], feedrateXY)"
>
<v-icon>mdi-chevron-left</v-icon>
</v-btn>
</v-col>
<v-col cols="3">
<v-btn class="btnMinWidthAuto fill-width"
:disabled="selectedCrossStep === null || selectedCrossStep === undefined"
@click="doSendMove('Y'+(!reverseY ? '-' : '+')+stepsReversed[selectedCrossStep], feedrateXY)"
>
<v-icon>mdi-chevron-down</v-icon>
</v-btn>
</v-col>
<v-col cols="3" class="p-rel">
<v-btn class="btnMinWidthAuto fill-width p-abs" style="top: -50%; width: calc(100% - 8px);"
:disabled="selectedCrossStep === null || selectedCrossStep === undefined"
@click="doSendMove('X'+(reverseX ? '-' : '+')+stepsReversed[selectedCrossStep], feedrateXY)"
>
<v-icon>mdi-chevron-right</v-icon>
</v-btn>
</v-col>
<v-col cols="3">
<v-btn class="btnMinWidthAuto fill-width"
:disabled="selectedCrossStep === null || selectedCrossStep === undefined"
@click="doSendMove('Z'+(!reverseZ ? '-' : '+')+stepsReversed[selectedCrossStep], feedrateZ)"
>
<v-icon>mdi-chevron-down</v-icon>
</v-btn>
</v-col>
</v-row>
</v-col>
<v-col :cols="homeCols" class="d-flex align-center">
<div class="flex-grow-1" style="border-radius: 4px; overflow: hidden;">
<v-row dense class="" style="margin-bottom: -2px!important;">
<v-col :cols="'quad_gantry_level' in config || 'z_tilt' in config ? 6 : 12">
<v-btn class="w-100"
tile
@click="doHome"
height="30"
:loading="loadings.includes('homeAll')"
:color="homedAxes.includes('xyz') ? 'primary' : 'warning'"
>
<div class="d-flex align-center">
<v-icon>mdi-home</v-icon>
<span class="ml-1">{{ $t('Panels.ControlPanel.ALL') }}</span>
</div>
</v-btn>
</v-col>
<v-col v-if="'quad_gantry_level' in config || 'z_tilt' in config" cols="6" class="d-flex">
<v-btn v-if="'quad_gantry_level' in config"
class="btnMinWidthAuto flex-grow-1 px-0"
tile
dense
:color="colorQuadGantryLevel"
height="30"
:loading="loadings.includes('qgl')"
@click="doQGL"
>{{ $t('Panels.ControlPanel.QGL') }}</v-btn>
<v-btn v-if="'z_tilt' in config"
class="btnMinWidthAuto flex-grow-1 px-0"
tile
dense
:color="colorZTilt"
height="30"
:loading="loadings.includes('zTilt')"
@click="doZtilt"
>{{ $t('Panels.ControlPanel.ZTilt') }}</v-btn>
</v-col>
</v-row>
<v-row dense class="">
<v-col cols="4" class="flex-grow-1">
<v-btn class="btnMinWidthAuto w-100"
tile
height="30"
:loading="loadings.includes('homeX')"
:color="homedAxes.includes('x') ? 'primary' : 'warning'"
@click="doHomeX"
>
{{ $t('Panels.ControlPanel.X') }}
</v-btn>
</v-col>
<v-col cols="4" class="flex-grow-1">
<v-btn class="btnMinWidthAuto w-100"
tile
height="30"
:loading="loadings.includes('homeY')"
:color="homedAxes.includes('y') ? 'primary' : 'warning'"
@click="doHomeY"
>
{{ $t('Panels.ControlPanel.Y') }}
</v-btn>
</v-col>
<v-col cols="4" class="flex-grow-1">
<v-btn class="btnMinWidthAuto w-100"
tile
height="30"
:loading="loadings.includes('homeZ')"
:color="homedAxes.includes('z') ? 'primary' : 'warning'"
@click="doHomeZ"
>
{{ $t('Panels.ControlPanel.Z') }}
</v-btn>
</v-col>
</v-row>
</div>
</v-col>
</v-row>
</v-container>
</v-card>
</div>
<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>
</v-btn-toggle>
<div class="font-weight-bold warning rounded pa-2" v-else>
{{ $t('Panels.ControlPanel.PleaseConfigureSteps') }}<br>
<router-link style="color: white;" to="/settings/interface">{{ $t('Panels.ControlPanel.SettingsInterfaceControl') }}</router-link>
</div>
</v-col>
</v-row>
</template>
<template v-else>
<v-row no-gutters>
<v-col class="col-12 pb-0 text-center">
<v-btn small @click="doHome" :loading="loadings.includes('homeAll')" :color="homedAxes.includes('xyz') ? 'primary' : 'warning'"><v-icon class="mr-1">mdi-home</v-icon>{{ $t('Panels.ControlPanel.ALL') }}</v-btn>
<v-btn small @click="doQGL" :loading="loadings.includes('qgl')" :color="colorQuadGantryLevel" class="ml-2" v-if="'quad_gantry_level' in config">{{ $t('Panels.ControlPanel.QGL') }}</v-btn>
<v-btn small @click="doZtilt" :loading="loadings.includes('zTilt')" :color="colorZTilt" class="ml-2" v-if="'z_tilt' in config">{{ $t('Panels.ControlPanel.ZTilt') }}</v-btn>
</v-col>
</v-row>
<v-row no-gutters class="mt-2">
<v-col class="text-center">
<v-btn-toggle dense no-gutters class="row no-gutters" style="flex-wrap: nowrap; width: 100%;" >
<v-btn @click="doSendMove('X-'+steps, feedrateXY)" class="btnMinWidthAuto col" v-for="steps of stepsXYsorted" v-bind:key="'x-'+steps"><span class="body-2">-{{ steps }}</span></v-btn>
<v-btn @click="doHomeX" :color="homedAxes.includes('x') ? 'primary' : 'warning'" :loading="loadings.includes('homeX')" class="font-weight-bold btnHomeAxis">{{ $t('Panels.ControlPanel.X') }}</v-btn>
<v-btn @click="doSendMove('X+'+steps, feedrateXY)" class="btnMinWidthAuto col" v-for="steps of stepsXYsortedReverse" v-bind:key="'x+'+steps"><span class="body-2">+{{ steps }}</span></v-btn>
</v-btn-toggle>
</v-col>
</v-row>
<v-row no-gutters class="mt-3">
<v-col class="text-center">
<v-btn-toggle dense no-gutters class="row no-gutters" style="flex-wrap: nowrap; width: 100%;" >
<v-btn @click="doSendMove('Y-'+steps, feedrateXY)" class="btnMinWidthAuto col" v-for="steps of stepsXYsorted" v-bind:key="'y-'+steps"><span class="body-2">-{{ steps }}</span></v-btn>
<v-btn @click="doHomeY" :color="homedAxes.includes('y') ? 'primary' : 'warning'" :loading="loadings.includes('homeY')" class="font-weight-bold btnHomeAxis">{{ $t('Panels.ControlPanel.Y') }}</v-btn>
<v-btn @click="doSendMove('Y+'+steps, feedrateXY)" class="btnMinWidthAuto col" v-for="steps of stepsXYsortedReverse" v-bind:key="'y+'+steps"><span class="body-2">+{{ steps }}</span></v-btn>
</v-btn-toggle>
</v-col>
</v-row>
<v-row no-gutters class="mt-3">
<v-col class="text-center">
<v-btn-toggle dense no-gutters class="row no-gutters" style="flex-wrap: nowrap; width: 100%;" >
<v-btn @click="doSendMove('Z-'+steps, feedrateZ)" class="btnMinWidthAuto col" v-for="steps of stepsZsorted" v-bind:key="'z-'+steps"><span class="body-2">-{{ steps }}</span></v-btn>
<v-btn @click="doHomeZ" :color="homedAxes.includes('z') ? 'primary' : 'warning'" :loading="loadings.includes('homeZ')" class="font-weight-bold btnHomeAxis">{{ $t('Panels.ControlPanel.Z') }}</v-btn>
<v-btn @click="doSendMove('Z+'+steps, feedrateZ)" class="btnMinWidthAuto col" v-for="steps of stepsZsortedReverse" v-bind:key="'z+'+steps"><span class="body-2">+{{ steps }}</span></v-btn>
</v-btn-toggle>
</v-col>
</v-row>
</template>
<template v-if="existsExtruder">
<v-row>
<v-col class="pa-0">
<v-divider></v-divider>
</v-col>
</v-row>
<v-row class="">
<v-col class="col col-md-6 pt-2">
<span class="text--disabled" style="font-size: .9em">{{ $t("Panels.ControlPanel.FeedAmountIn") }} [mm]</span>
<v-btn-toggle class="mt-1" dense no-gutters style="flex-wrap: nowrap; width: 100%;" >
<v-btn v-for="amount in feedamountsSorted" v-bind:key="amount" @click="setFeedAmount(amount)" dense :class="(amount === currentFeedAmount ? 'v-btn--active' : '') + ' btnMinWidthAuto flex-grow-1 px-0 _btnFeedrate'">{{ amount }}</v-btn>
</v-btn-toggle>
</v-col>
<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-btn v-for="rate in feedratesSorted" v-bind:key="rate" @click="setFeedrate(rate)" dense :class="(rate === currentFeedRate ? 'v-btn--active' : '') + ' btnMinWidthAuto flex-grow-1 px-0 _btnFeedrate'">{{ rate }}</v-btn>
</v-btn-toggle>
</v-col>
</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-col>
</v-row>
</template>
</v-container>
</v-card>
</template>
<script lang="ts">
@@ -444,10 +422,6 @@ export default class ControlPanel extends Mixins(BaseMixin) {
return status ? "primary" : "warning"
}
get macros() {
return this.$store.getters['printer/getMacros']
}
get boolExtrudePossible() {
return this.$store.getters['printer/getExtrudePossible']
}
@@ -497,11 +471,6 @@ export default class ControlPanel extends Mixins(BaseMixin) {
this.$socket.emit('printer.gcode.script', { script: gcode })
}
doSendMacro(gcode: string) {
this.$store.dispatch('server/addEvent', { message: gcode, type: 'command' })
this.$socket.emit('printer.gcode.script', { script: gcode }, { loading: 'macro_'+gcode })
}
setFeedAmount(value: number) {
this.currentFeedAmount = value
}
+5 -3
View File
@@ -113,7 +113,7 @@
<v-icon small :color="getStatusColor(item.status)" :disabled="!item.exists">{{ getStatusIcon(item.status) }}</v-icon>
</span>
</template>
<span>{{ item.status.replaceAll("_", " ") }}</span>
<span>{{ item.status.replace(/_/g, " ") }}</span>
</v-tooltip>
</td>
<td v-for="col in tableFields" v-bind:key="col.value" :class="col.outputType !== 'date' ? 'text-no-wrap' : ''">
@@ -595,7 +595,8 @@ export default class HistoryListPanel extends Mixins(BaseMixin) {
relative_url = item.filename.substr(0, item.filename.lastIndexOf("/")+1)
}
if (thumbnail && 'relative_path' in thumbnail) return this.apiUrl+"/server/files/gcodes/"+relative_url+thumbnail.relative_path
if (thumbnail && 'relative_path' in thumbnail)
return this.apiUrl+"/server/files/gcodes/"+relative_url+thumbnail.relative_path+"?timestamp="+item.metadata.modified
}
return false
@@ -614,7 +615,8 @@ export default class HistoryListPanel extends Mixins(BaseMixin) {
relative_url = item.filename.substr(0, item.filename.lastIndexOf("/")+1)
}
if (thumbnail && 'relative_path' in thumbnail) return this.apiUrl+"/server/files/gcodes/"+relative_url+thumbnail.relative_path
if (thumbnail && 'relative_path' in thumbnail)
return this.apiUrl+"/server/files/gcodes/"+relative_url+thumbnail.relative_path+"?timestamp="+item.metadata.modified
}
return false
@@ -618,8 +618,8 @@ export default class ConfigFilesPanel extends Mixins(BaseMixin) {
renameDirectoryAction() {
this.dialogRenameDirectory.show = false;
this.$socket.emit('server.files.move', {
source: this.absolutePath+"/"+this.dialogRenameDirectory.item.filename,
dest: this.absolutePath+"/"+this.dialogRenameDirectory.newName
source: (this.absolutePath+"/"+this.dialogRenameDirectory.item.filename).slice(1),
dest: (this.absolutePath+"/"+this.dialogRenameDirectory.newName).slice(1)
}, { action: 'files/getMove' });
}
@@ -668,8 +668,8 @@ export default class ConfigFilesPanel extends Mixins(BaseMixin) {
renameFileAction() {
this.dialogRenameFile.show = false
this.$socket.emit('server.files.move', {
source: this.absolutePath+"/"+this.dialogRenameFile.item.filename,
dest: this.absolutePath+"/"+this.dialogRenameFile.newName
source: (this.absolutePath+"/"+this.dialogRenameFile.item.filename).slice(1),
dest: (this.absolutePath+"/"+this.dialogRenameFile.newName).slice(1),
}, { action: 'files/getMove' })
}
+48 -47
View File
@@ -5,52 +5,52 @@
<span class="subheading"><v-icon left>mdi-speedometer</v-icon>{{ $t('Machine.LimitsPanel.MachineLimits')}}</span>
</v-toolbar-title>
</v-toolbar>
<tool-slider
:label="$t('Machine.LimitsPanel.Velocity')"
unit="mm/s"
:target="current_velocity"
:max="max_velocity"
:default-value="max_velocity"
:step="50"
:dynamic-range="true"
command="SET_VELOCITY_LIMIT"
attribute-name="VELOCITY="
></tool-slider>
<v-divider></v-divider>
<tool-slider
:label="$t('Machine.LimitsPanel.Acceleration')"
unit="mm/s²"
:target="current_accel"
:max="max_accel"
:default-value="max_accel"
:step="100"
:dynamic-range="true"
command="SET_VELOCITY_LIMIT"
attribute-name="ACCEL="
></tool-slider>
<v-divider></v-divider>
<tool-slider
:label="$t('Machine.LimitsPanel.Deceleration')"
unit="mm/s²" :target="current_accel_to_decel"
:max="max_accel_to_decel"
:default-value="max_accel_to_decel"
:step="100"
:dynamic-range="true"
command="SET_VELOCITY_LIMIT"
attribute-name="ACCEL_TO_DECEL="
></tool-slider>
<v-divider></v-divider>
<tool-slider
:label="$t('Machine.LimitsPanel.SquareCornerVelocity')"
unit="mm/s"
:target="current_square_corner_velocity"
:max="max_square_corner_velocity"
:default-value="max_square_corner_velocity"
:step="1"
:dynamic-range="true"
command="SET_VELOCITY_LIMIT"
attribute-name="SQUARE_CORNER_VELOCITY="
></tool-slider>
<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>
</v-card>
</template>
@@ -60,8 +60,9 @@
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'
@Component({
components: {ToolSlider}
components: {MachineLimitsInput, ToolSlider}
})
export default class LimitsPanel extends Mixins(BaseMixin) {
+28 -18
View File
@@ -24,15 +24,20 @@
<span v-if="mcu.freq !== null">, {{ $t('Machine.SystemPanel.Frequency') }}: {{ mcu.freqFormat }}</span>
<template v-if="mcu.tempSensor">
<span>, </span>
<v-tooltip top>
<template v-slot:activator="{ on, attrs }">
<span v-bind="attrs" v-on="on">Temp: {{ mcu.tempSensor.temperature+"°C" }}</span>
</template>
<span>
max: {{ mcu.tempSensor.measured_max_temp }}°C<br />
min: {{ mcu.tempSensor.measured_min_temp }}°C
</span>
</v-tooltip>
<template v-if="mcu.tempSensor.measured_min_temp !== null && mcu.tempSensor.measured_max_temp !== null">
<v-tooltip top>
<template v-slot:activator="{ on, attrs }">
<span v-bind="attrs" v-on="on">Temp: {{ mcu.tempSensor.temperature+"°C" }}</span>
</template>
<span>
max: {{ mcu.tempSensor.measured_max_temp }}°C<br />
min: {{ mcu.tempSensor.measured_min_temp }}°C
</span>
</v-tooltip>
</template>
<template v-else>
Temp: {{ mcu.tempSensor.temperature+"°C" }}
</template>
</template>
</v-col>
<v-col class="px-6 col-auto d-flex justify-end align-center">
@@ -66,15 +71,20 @@
<span v-if="hostStats.memoryFormat">, {{ $t('Machine.SystemPanel.Memory') }}: {{ hostStats.memoryFormat }}</span>
<template v-if="hostStats.tempSensor">
<span>, </span>
<v-tooltip top>
<template v-slot:activator="{ on, attrs }">
<span v-bind="attrs" v-on="on">Temp: {{ hostStats.tempSensor.temperature+"°C" }}</span>
</template>
<span v-if="hostStats.tempSensor.measured_min_temp && hostStats.tempSensor.measured_max_temp">
max: {{ hostStats.tempSensor.measured_max_temp }}°C<br />
min: {{ hostStats.tempSensor.measured_min_temp }}°C
</span>
</v-tooltip>
<template v-if="hostStats.tempSensor.measured_min_temp !== null && hostStats.tempSensor.measured_max_temp !== null">
<v-tooltip top>
<template v-slot:activator="{ on, attrs }">
<span v-bind="attrs" v-on="on">Temp: {{ hostStats.tempSensor.temperature+"°C" }}</span>
</template>
<span>
max: {{ hostStats.tempSensor.measured_max_temp }}°C<br />
min: {{ hostStats.tempSensor.measured_min_temp }}°C
</span>
</v-tooltip>
</template>
<template v-else>
Temp: {{ hostStats.tempSensor.temperature+"°C" }}
</template>
</template>
</v-col>
<v-col class="px-6 col-auto d-flex justify-end align-center">
+44
View File
@@ -0,0 +1,44 @@
<style lang="scss" scoped>
</style>
<template>
<v-card class="mb-6" v-if="klipperReadyForGui && macros.length > 0">
<v-toolbar flat dense>
<v-toolbar-title>
<span class="subheading"><v-icon left>mdi-code-tags</v-icon>{{ $t('Panels.MacrosPanel.Headline') }}</span>
</v-toolbar-title>
</v-toolbar>
<v-container>
<v-row no-gutters v-if="macros.length">
<v-col class="text-center mr-fix-2 mb-fix-2">
<v-btn v-for="(macro, index) in macros"
:key="index+99"
small
color="primary"
class="mr-2 mb-2"
:loading="loadings.includes('macro_'+macro.name)"
@click="doSendMacro(macro.name)">{{ macro.name.replace(/_/g, " ") }}</v-btn>
</v-col>
</v-row>
</v-container>
</v-card>
</template>
<script lang="ts">
import {Component, Mixins} from "vue-property-decorator";
import BaseMixin from "../mixins/base";
@Component
export default class MacrosPanel extends Mixins(BaseMixin) {
get macros() {
return this.$store.getters['printer/getMacros']
}
doSendMacro(gcode: string) {
this.$store.dispatch('server/addEvent', { message: gcode, type: 'command' })
this.$socket.emit('printer.gcode.script', { script: gcode }, { loading: 'macro_'+gcode })
}
}
</script>
+24 -9
View File
@@ -7,20 +7,31 @@
</span>
</v-toolbar-title>
</v-toolbar>
<v-card-text class="px-0 pt-0 pb-2 content">
<v-layout wrap class=" text-center">
<v-flex col class="text-left">
<ul class="mb-5">
<v-card-text>
<v-row>
<v-col>
<ul class="">
<li v-for="module in missingConfigs" v-bind:key="module" class="orange--text">
<code>{{ module }}</code> {{ $t("Panels.MinSettingsPanel.IsNotDefinedInConfig") }}
</li>
</ul>
<div class="text-center">
<v-btn href="https://docs.mainsail.xyz/necessary-configuration" target="_blank" color="white" outlined small><v-icon small class="mr-1">mdi-information</v-icon>{{ $t("Panels.MinSettingsPanel.MoreInformation") }}</v-btn>
</div>
</v-flex>
</v-layout>
</v-col>
</v-row>
</v-card-text>
<template v-if="mainsailCfgExists">
<v-divider></v-divider>
<v-card-text>
<v-row>
<v-col>
<p class="orange--text mb-0">{{ $t("Panels.MinSettingsPanel.IncludeMainsailCfg") }}</p>
</v-col>
</v-row>
</v-card-text>
<v-divider class="mb-2"></v-divider>
</template>
<v-card-actions class="justify-center pb-3">
<v-btn href="https://docs.mainsail.xyz/necessary-configuration" target="_blank" color="white" outlined small><v-icon small class="mr-1">mdi-information</v-icon>{{ $t("Panels.MinSettingsPanel.MoreInformation") }}</v-btn>
</v-card-actions>
</v-card>
</template>
@@ -40,6 +51,10 @@ export default class MinSettingsPanel extends Mixins(BaseMixin) {
get missingConfigs() {
return this.$store.getters["printer/checkNecessaryConfig"] ?? []
}
get mainsailCfgExists() {
return this.$store.getters["files/checkConfigFile"]('mainsail.cfg') ?? false
}
}
</script>
+2 -2
View File
@@ -6,10 +6,10 @@
</style>
<template>
<v-card v-if="socketIsConnected" class="pb-0">
<v-card v-if="socketIsConnected" class="mb-9">
<v-toolbar flat dense>
<v-toolbar-title>
<span class="subheading"><v-icon left>mdi-console-line</v-icon>{{ $t("Panels.MiniconsolePanel.Console") }}</span>
<span class="subheading"><v-icon left>mdi-console-line</v-icon>{{ $t("Panels.MiniconsolePanel.Headline") }}</span>
</v-toolbar-title>
</v-toolbar>
<v-card-text>
+30 -57
View File
@@ -3,49 +3,35 @@
</style>
<template>
<div v-if="klipperReadyForGui">
<v-card class="mb-6" v-if="['printing', 'paused'].includes(printer_state)">
<v-toolbar flat dense >
<v-toolbar-title>
<span class="subheading"><v-icon class="mdi mdi-printer-3d" left></v-icon>{{ $t("Panels.MiscellaneousPanel.PrintSettings") }}</span>
</v-toolbar-title>
</v-toolbar>
<tool-slider :label="$t('Panels.MiscellaneousPanel.SpeedFactor')" :target="speed_factor" :max="200" :multi="100" :step="5" :dynamic-range="true" command="M220" attribute-name="S" ></tool-slider>
<template v-if="existsExtruder">
<v-divider></v-divider>
<tool-slider :label="$t('Panels.MiscellaneousPanel.ExtrusionFactor')" :target="extrude_factor" :max="200" :multi="100" :step="1" command="M221" attribute-name="S" ></tool-slider>
</template>
</v-card>
<v-card class="mb-6" v-if="miscellaneous.length || filamentSensors.length">
<v-toolbar flat dense >
<v-toolbar-title>
<span class="subheading"><v-icon left>mdi-dip-switch</v-icon>{{ $t("Panels.MiscellaneousPanel.Miscellaneous") }}</span>
</v-toolbar-title>
</v-toolbar>
<div v-for="(object, index) of miscellaneous" v-bind:key="index">
<v-divider v-if="index"></v-divider>
<miscellaneous-slider
:name="object.name"
:type="object.type"
:target="object.power"
:rpm="object.rpm"
:controllable="object.controllable"
:pwm="object.pwm"
:off_below="object.off_below"
:max="object.max_power"
:multi="parseInt(object.scale)"
></miscellaneous-slider>
</div>
<div v-for="(sensor, index) of filamentSensors" v-bind:key="'sensor_'+index">
<v-divider v-if="index || miscellaneous.length"></v-divider>
<filament-sensor
:name="sensor.name"
:enabled="sensor.enabled"
:filament_detected="sensor.filament_detected"
></filament-sensor>
</div>
</v-card>
</div>
<v-card class="mb-6" v-if="klipperReadyForGui && (miscellaneous.length || filamentSensors.length)">
<v-toolbar flat dense >
<v-toolbar-title>
<span class="subheading"><v-icon left>mdi-dip-switch</v-icon>{{ $t("Panels.MiscellaneousPanel.Headline") }}</span>
</v-toolbar-title>
</v-toolbar>
<div v-for="(object, index) of miscellaneous" v-bind:key="index">
<v-divider v-if="index"></v-divider>
<miscellaneous-slider
:name="object.name"
:type="object.type"
:target="object.power"
:rpm="object.rpm"
:controllable="object.controllable"
:pwm="object.pwm"
:off_below="object.off_below"
:max="object.max_power"
:multi="parseInt(object.scale)"
></miscellaneous-slider>
</div>
<div v-for="(sensor, index) of filamentSensors" v-bind:key="'sensor_'+index">
<v-divider v-if="index || miscellaneous.length"></v-divider>
<filament-sensor
:name="sensor.name"
:enabled="sensor.enabled"
:filament_detected="sensor.filament_detected"
></filament-sensor>
</div>
</v-card>
</template>
<script lang="ts">
@@ -56,18 +42,9 @@ import MiscellaneousSlider from "@/components/inputs/MiscellaneousSlider.vue";
import ToolSlider from "@/components/inputs/ToolSlider.vue";
import FilamentSensor from "@/components/inputs/FilamentSensor.vue";
@Component({
components: {FilamentSensor, ToolSlider, MiscellaneousSlider}
components: {FilamentSensor, MiscellaneousSlider}
})
export default class MiscellaneousPanel extends Mixins(BaseMixin) {
get extrude_factor() {
return this.$store.state.printer?.gcode_move?.extrude_factor ?? 1
}
get speed_factor() {
return this.$store.state.printer?.gcode_move?.speed_factor ?? 1
}
get miscellaneous() {
return this.$store.getters['printer/getMiscellaneous'] ?? []
}
@@ -75,9 +52,5 @@ export default class MiscellaneousPanel extends Mixins(BaseMixin) {
get filamentSensors() {
return this.$store.getters['printer/getFilamentSensors'] ?? []
}
get existsExtruder() {
return 'extruder' in this.$store.state.printer
}
}
</script>
@@ -0,0 +1,42 @@
<style scoped>
</style>
<template>
<v-card class="mb-6" v-if="klipperReadyForGui && ['printing', 'paused'].includes(printer_state)">
<v-toolbar flat dense >
<v-toolbar-title>
<span class="subheading"><v-icon class="mdi mdi-printer-3d" left></v-icon>{{ $t("Panels.PrintsettingsPanel.Headline") }}</span>
</v-toolbar-title>
</v-toolbar>
<tool-slider :label="$t('Panels.PrintsettingsPanel.SpeedFactor')" :target="speed_factor" :max="200" :multi="100" :step="5" :dynamic-range="true" command="M220" attribute-name="S" ></tool-slider>
<template v-if="existsExtruder">
<v-divider></v-divider>
<tool-slider :label="$t('Panels.PrintsettingsPanel.ExtrusionFactor')" :target="extrude_factor" :max="200" :multi="100" :step="1" command="M221" attribute-name="S" ></tool-slider>
</template>
</v-card>
</template>
<script lang="ts">
import {Component, Mixins} from "vue-property-decorator";
import BaseMixin from "@/components/mixins/base";
import ToolSlider from "@/components/inputs/ToolSlider.vue";
@Component({
components: {ToolSlider}
})
export default class PrintsettingsPanel extends Mixins(BaseMixin) {
get extrude_factor() {
return this.$store.state.printer?.gcode_move?.extrude_factor ?? 1
}
get speed_factor() {
return this.$store.state.printer?.gcode_move?.speed_factor ?? 1
}
get existsExtruder() {
return 'extruder' in this.$store.state.printer
}
}
</script>
+329 -270
View File
@@ -1,258 +1,272 @@
<style scoped>
.vertical_align_center {
margin: auto 0;
}
.statusPanel-image-preview {
width: 100%;
}
.v-btn.minwidth-0 {
min-width: auto !important;
<style lang="scss" scoped>
.statusPanel-big-thumbnail {
transition: height 0.25s ease-out;
}
</style>
<template>
<v-card v-if="klipperState === 'ready'" class="mb-6">
<v-toolbar flat dense>
<v-toolbar-title>
<span class="subheading align-baseline">
<v-progress-circular
:rotate="-90"
:size="30"
:width="5"
:value="printPercent"
v-if="['paused', 'printing'].includes(printer_state)"
color="primary"
class="mr-1"
<div>
<min-settings-panel></min-settings-panel>
<moonraker-state-panel></moonraker-state-panel>
<klippy-state-panel></klippy-state-panel>
<v-card v-if="klipperState === 'ready'" class="mb-6">
<v-toolbar flat dense>
<v-toolbar-title>
<span class="subheading align-baseline">
<v-progress-circular
:rotate="-90"
:size="30"
:width="5"
:value="printPercent"
v-if="['paused', 'printing'].includes(printer_state)"
color="primary"
class="mr-1"
>
</v-progress-circular>
<v-icon
v-if="!['paused', 'printing'].includes(printer_state)"
left
>
mdi-information
</v-icon>
{{ printerStateOutput }}
</span>
</v-toolbar-title>
<v-spacer></v-spacer>
<template >
<v-btn
v-for="button in filteredToolbarButtons"
v-bind:key="button.loadingName"
class="px-2 minwidth-0 ml-3"
:color="button.color"
@click="button.click"
:loading="loadings.includes(button.loadingName)"
small
>
</v-progress-circular>
<v-icon
v-if="!['paused', 'printing'].includes(printer_state)"
left
>
mdi-information
</v-icon>
{{ printerStateOutput }}
</span>
</v-toolbar-title>
<v-spacer></v-spacer>
<template >
<v-btn
v-for="button in filteredToolbarButtons"
v-bind:key="button.loadingName"
class="px-2 minwidth-0 ml-3"
:color="button.color"
@click="button.click"
:loading="loadings.includes(button.loadingName)"
small
>
<v-tooltip top>
<template v-slot:activator="{ on, attrs }">
<v-icon v-bind="attrs" v-on="on" small>{{ button.icon }}</v-icon>
</template>
<span>{{ button.text }}</span>
</v-tooltip>
</v-btn>
</template>
</v-toolbar>
<v-card-text class="px-0 py-0 content">
<template v-if="boolBigThumbnail">
<v-img
height="250px"
:src="thumbnailBig"
class="d-flex align-end"
>
<v-card-title class="white--text py-2 px-2" style="background-color: rgba(0,0,0,0.3); backdrop-filter: blur(3px);">
<v-row>
<v-col style="width: 100px">
<span class="subtitle-2 text-truncate px-0 text--disabled d-block"><v-icon small class="mr-2">mdi-file-outline</v-icon>{{ current_filename }}</span>
</v-col>
</v-row>
</v-card-title>
</v-img>
</template>
<template v-if="display_message || print_stats_message">
<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-message-processing-outline</v-icon>{{ print_stats_message ? print_stats_message : display_message }}</span>
</v-col>
<v-col class="col-auto py-2">
<v-icon class="text--disabled cursor-pointer" @click="clearDisplayMessage" small>mdi-close-circle</v-icon>
</v-col>
</v-row>
</v-container>
<v-divider class="mt-0 mb-0" ></v-divider>
</template>
<template v-if="current_filename && !boolBigThumbnail">
<v-container>
<v-row>
<v-col :class="thumbnailSmall ? 'py-3' : 'py-2'" :style="(thumbnailSmall ? 'width: calc(100% - 40px);' : '')">
<span class="subtitle-2 text-truncate d-block px-0 text--disabled"><v-icon small class="mr-2">mdi-file-outline</v-icon>{{ current_filename }}</span>
</v-col>
<v-col class="pa-2 pl-0 col-auto" v-if="thumbnailSmall">
<template v-if="thumbnailSmall && thumbnailBig">
<v-tooltip top content-class="tooltip__content-opacity1">
<template v-slot:activator="{ on, attrs }">
<vue-load-image class="d-flex">
<img slot="image" :src="thumbnailSmall" 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="thumbnailBig" width="250" /></span>
</v-tooltip>
</template>
<template v-else-if="thumbnailSmall">
<vue-load-image>
<img slot="image" :src="thumbnailSmall" 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>
</v-col>
</v-row>
</v-container>
<v-divider class="mt-0 mb-0" ></v-divider>
</template>
<v-container class="py-0">
<v-row :class="'text-center '+(!['printing', 'paused', 'error', 'complete', 'cancelled'].includes(printer_state) ? 'pt-5 pb-2 mb-0' : 'py-5')" align="center">
<v-col class="col-3 pa-0">
<strong>{{ $t("Panels.StatusPanel.Position") }}</strong><br />
{{ coordinates }}
</v-col>
<v-col class="col-3 pa-0">
<strong>{{ $t("Panels.StatusPanel.X") }}</strong><br />
{{ positions.x }}
</v-col>
<v-col class="col-3 pa-0">
<strong>{{ $t("Panels.StatusPanel.Y") }}</strong><br />
{{ positions.y }}
</v-col>
<v-col class="col-3 pa-0">
<v-tooltip top>
<template v-slot:activator="{ on, attrs }">
<div v-bind="attrs" v-on="on" class="text-center">
<strong>{{ $t("Panels.StatusPanel.Z") }}</strong><br />
{{ positions.z }}
</div>
<v-icon v-bind="attrs" v-on="on" small>{{ button.icon }}</v-icon>
</template>
<span>G-Code: {{ positions.gcode_z }}mm</span>
<span>{{ button.text }}</span>
</v-tooltip>
</v-col>
</v-row>
</v-container>
<template v-if="['printing', 'paused', 'error'].includes(printer_state)">
<v-divider class="my-0"></v-divider>
</v-btn>
</template>
</v-toolbar>
<v-card-text class="px-0 py-0 content">
<template v-if="boolBigThumbnail">
<v-img
:src="thumbnailBig"
tabindex="-1"
class="d-flex align-end statusPanel-big-thumbnail"
ref="bigThumbnail"
height="200"
@focus="focusBigThumbnail"
@blur="blurBigThumbnail"
>
<v-card-title class="white--text py-2 px-2" style="background-color: rgba(0,0,0,0.3); backdrop-filter: blur(3px);">
<v-row>
<v-col style="width: 100px">
<span class="subtitle-2 text-truncate px-0 text--disabled d-block"><v-icon small class="mr-2">mdi-file-outline</v-icon>{{ current_filename }}</span>
</v-col>
</v-row>
</v-card-title>
</v-img>
</template>
<template v-if="display_message || print_stats_message">
<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-message-processing-outline</v-icon>{{ print_stats_message ? print_stats_message : display_message }}</span>
</v-col>
<v-col class="col-auto py-2">
<v-icon class="text--disabled cursor-pointer" @click="clearDisplayMessage" small>mdi-close-circle</v-icon>
</v-col>
</v-row>
</v-container>
<v-divider class="mt-0 mb-0" ></v-divider>
</template>
<template v-if="current_filename && !boolBigThumbnail">
<v-container>
<v-row>
<v-col :class="thumbnailSmall ? 'py-3' : 'py-2'" :style="(thumbnailSmall ? 'width: calc(100% - 40px);' : '')">
<span class="subtitle-2 text-truncate d-block px-0 text--disabled"><v-icon small class="mr-2">mdi-file-outline</v-icon>{{ current_filename }}</span>
</v-col>
<v-col class="pa-2 pl-0 col-auto" v-if="thumbnailSmall">
<template v-if="thumbnailSmall && thumbnailBig">
<v-tooltip top content-class="tooltip__content-opacity1">
<template v-slot:activator="{ on, attrs }">
<vue-load-image class="d-flex">
<img slot="image" :src="thumbnailSmall" 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="thumbnailBig" width="250" /></span>
</v-tooltip>
</template>
<template v-else-if="thumbnailSmall">
<vue-load-image>
<img slot="image" :src="thumbnailSmall" 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>
</v-col>
</v-row>
</v-container>
<v-divider class="mt-0 mb-0" ></v-divider>
</template>
<v-container class="py-0">
<v-row class="text-center py-5" align="center">
<v-row :class="'text-center '+(!['printing', 'paused', 'error', 'complete', 'cancelled'].includes(printer_state) ? 'pt-5 pb-2 mb-0' : 'py-5')" align="center">
<v-col class="col-3 pa-0">
<strong>{{ $t("Panels.StatusPanel.Speed") }}</strong><br />
<span class="text-no-wrap">{{ requested_speed }} mm/s</span>
<strong>{{ $t("Panels.StatusPanel.Position") }}</strong><br />
{{ coordinates }}
</v-col>
<v-col class="col-3 pa-0">
<v-tooltip top>
<template v-slot:activator="{ on, attrs }">
<div v-bind="attrs" v-on="on">
<strong>{{ $t("Panels.StatusPanel.Flow") }}</strong><br />
<span class="d-block text-center text-no-wrap">{{ maxFlow.lastValue ? maxFlow.lastValue.toFixed(1)+" mm&sup3;/s" : "--" }}</span>
</div>
</template>
<span>{{ $t("Panels.StatusPanel.Max") }}: {{ maxFlow.maxValue ? maxFlow.maxValue.toFixed(1)+" mm&sup3;/s" : "--" }}</span>
</v-tooltip>
<strong>{{ $t("Panels.StatusPanel.X") }}</strong><br />
{{ positions.x }}
</v-col>
<v-col class="col-3 pa-0">
<v-tooltip top>
<template v-slot:activator="{ on, attrs }">
<div v-bind="attrs" v-on="on">
<strong>{{ $t("Panels.StatusPanel.Filament") }}</strong><br />
<span class="d-block text-center text-no-wrap">{{ filament_used >= 1000 ? (filament_used / 1000).toFixed(2)+" m" : filament_used.toFixed(2)+" mm" }}</span>
</div>
</template>
<span v-if="'filament_total' in current_file">{{ (filament_used / 1000).toFixed(2) }} / {{ (current_file.filament_total / 1000).toFixed(2) }} m = {{ ( 100 / current_file.filament_total * filament_used).toFixed(0) }} % </span>
</v-tooltip>
</v-col>
<v-col class="col-3 pa-0 text-center">
<v-tooltip top>
<template v-slot:activator="{ on, attrs }">
<div v-bind="attrs" v-on="on" class="text-center">
<strong>{{ $t("Panels.StatusPanel.Layer") }}</strong><br />
<span class="text-no-wrap">{{ current_layer }} of {{ max_layers }}</span>
</div>
</template>
<span v-if="'object_height' in current_file && current_file.object_height > 0">{{ $t("Panels.StatusPanel.ObjectHeight") }}: {{ current_file.object_height }} mm</span>
</v-tooltip>
</v-col>
</v-row>
</v-container>
<v-divider class="my-0"></v-divider>
<v-container class="py-0">
<v-row class="text-center pt-5 pb-2 mb-0" align="center">
<v-col class="col-3 pa-0">
<v-tooltip top>
<template v-slot:activator="{ on, attrs }">
<div v-bind="attrs" v-on="on" class="text-center">
<strong>{{ $t("Panels.StatusPanel.Estimate") }}</strong><br />
<span class="text-no-wrap">{{ estimated_time_avg ? formatTime(estimated_time_avg) : '--' }}</span>
</div>
</template>
<div class="text-right">
{{ $t("Panels.StatusPanel.File") }}: {{ estimated_time_file ? formatTime(estimated_time_file) : '--' }}<br />
{{ $t("Panels.StatusPanel.Filament") }}: {{ estimated_time_filament ? formatTime(estimated_time_filament) : '--' }}
</div>
</v-tooltip>
</v-col>
<v-col class="col-3 pa-0">
<strong>{{ $t("Panels.StatusPanel.Slicer") }}</strong><br />
<span class="text-no-wrap">{{ estimated_time_slicer ? formatTime(estimated_time_slicer) : '--' }}</span>
<strong>{{ $t("Panels.StatusPanel.Y") }}</strong><br />
{{ positions.y }}
</v-col>
<v-col class="col-3 pa-0">
<v-tooltip top>
<template v-slot:activator="{ on, attrs }">
<div v-bind="attrs" v-on="on" class="text-center">
<strong>{{ $t("Panels.StatusPanel.Total") }}</strong><br />
<span class="text-no-wrap">{{ print_time_total ? formatTime(print_time_total) : '--' }}</span>
<strong>{{ $t("Panels.StatusPanel.Z") }}</strong><br />
{{ positions.z }}
</div>
</template>
<div class="text-right">
{{ $t("Panels.StatusPanel.Print") }}: {{ print_time ? formatTime(print_time) : '--' }}<br />
{{ $t("Panels.StatusPanel.Difference") }}: {{ print_time && print_time_total ? formatTime(print_time_total - print_time) : '--' }}
</div>
<span>G-Code: {{ positions.gcode_z }}mm</span>
</v-tooltip>
</v-col>
<v-col class="col-3 pa-0">
<strong>{{ $t("Panels.StatusPanel.ETA") }}</strong><br />
<span class="text-no-wrap">{{ eta ? formatDateTime(eta) : '--' }}</span>
</v-col>
</v-row>
</v-container>
</template>
<template v-if="['complete'].includes(printer_state)">
<v-divider class="my-0"></v-divider>
<v-container class="py-0">
<v-row class="text-center pt-5 pb-2 mb-0" align="center">
<v-col class="col-3 pa-0">
<strong>{{ $t("Panels.StatusPanel.Filament") }}</strong><br />
<span class="text-no-wrap">{{ filament_used >= 1000 ? (filament_used / 1000).toFixed(2)+" m" : filament_used.toFixed(2)+" mm" }}</span>
</v-col>
<v-col class="col-3 pa-0">
<strong>{{ $t("Panels.StatusPanel.Slicer") }}</strong><br />
<span class="text-no-wrap">{{ 'estimated_time' in current_file ? formatTime(current_file.estimated_time) : '--' }}</span>
</v-col>
<v-col class="col-3 pa-0">
<strong>{{ $t("Panels.StatusPanel.Print") }}</strong><br />
<span class="text-no-wrap">{{ print_time ? formatTime(print_time) : '--' }}</span>
</v-col>
<v-col class="col-3 pa-0">
<strong>{{ $t("Panels.StatusPanel.Total") }}</strong><br />
<span class="text-no-wrap">{{ print_time_total ? formatTime(print_time_total) : '--' }}</span>
</v-col>
</v-row>
</v-container>
</template>
</v-card-text>
</v-card>
<template v-if="['printing', 'paused', 'error', 'cancelled'].includes(printer_state)">
<v-divider class="my-0"></v-divider>
<v-container class="py-0">
<v-row class="text-center py-5" align="center">
<v-col class="col-3 pa-0">
<template v-if="live_velocity !== null">
<v-tooltip top>
<template v-slot:activator="{ on, attrs }">
<div v-bind="attrs" v-on="on">
<strong>{{ $t("Panels.StatusPanel.Speed") }}</strong><br />
<span class="text-no-wrap">{{ live_velocity }} mm/s</span>
</div>
</template>
<span>{{ $t("Panels.StatusPanel.Requested") }}: {{ requested_speed+" mm/s" }}</span>
</v-tooltip>
</template>
<template v-else>
<strong>{{ $t("Panels.StatusPanel.Speed") }}</strong><br />
<span class="text-no-wrap">{{ requested_speed }} mm/s</span>
</template>
</v-col>
<v-col class="col-3 pa-0">
<v-tooltip top>
<template v-slot:activator="{ on, attrs }">
<div v-bind="attrs" v-on="on">
<strong>{{ $t("Panels.StatusPanel.Flow") }}</strong><br />
<span class="d-block text-center text-no-wrap">{{ live_flow+" mm&sup3;/s" }}</span>
</div>
</template>
<span>{{ $t("Panels.StatusPanel.Max") }}: {{ maxFlow ? maxFlow+" mm&sup3;/s" : "--" }}</span>
</v-tooltip>
</v-col>
<v-col class="col-3 pa-0">
<v-tooltip top>
<template v-slot:activator="{ on, attrs }">
<div v-bind="attrs" v-on="on">
<strong>{{ $t("Panels.StatusPanel.Filament") }}</strong><br />
<span class="d-block text-center text-no-wrap">{{ filament_used >= 1000 ? (filament_used / 1000).toFixed(2)+" m" : filament_used.toFixed(2)+" mm" }}</span>
</div>
</template>
<span v-if="'filament_total' in current_file">{{ (filament_used / 1000).toFixed(2) }} / {{ (current_file.filament_total / 1000).toFixed(2) }} m = {{ ( 100 / current_file.filament_total * filament_used).toFixed(0) }} % </span>
</v-tooltip>
</v-col>
<v-col class="col-3 pa-0 text-center">
<v-tooltip top>
<template v-slot:activator="{ on, attrs }">
<div v-bind="attrs" v-on="on" class="text-center">
<strong>{{ $t("Panels.StatusPanel.Layer") }}</strong><br />
<span class="text-no-wrap">{{ current_layer }} of {{ max_layers }}</span>
</div>
</template>
<span v-if="'object_height' in current_file && current_file.object_height > 0">{{ $t("Panels.StatusPanel.ObjectHeight") }}: {{ current_file.object_height }} mm</span>
</v-tooltip>
</v-col>
</v-row>
</v-container>
<v-divider class="my-0"></v-divider>
<v-container class="py-0">
<v-row class="text-center pt-5 pb-2 mb-0" align="center">
<v-col class="col-3 pa-0">
<v-tooltip top>
<template v-slot:activator="{ on, attrs }">
<div v-bind="attrs" v-on="on" class="text-center">
<strong>{{ $t("Panels.StatusPanel.Estimate") }}</strong><br />
<span class="text-no-wrap">{{ estimated_time_avg ? formatTime(estimated_time_avg) : '--' }}</span>
</div>
</template>
<div class="text-right">
{{ $t("Panels.StatusPanel.File") }}: {{ estimated_time_file ? formatTime(estimated_time_file) : '--' }}<br />
{{ $t("Panels.StatusPanel.Filament") }}: {{ estimated_time_filament ? formatTime(estimated_time_filament) : '--' }}
</div>
</v-tooltip>
</v-col>
<v-col class="col-3 pa-0">
<strong>{{ $t("Panels.StatusPanel.Slicer") }}</strong><br />
<span class="text-no-wrap">{{ estimated_time_slicer ? formatTime(estimated_time_slicer) : '--' }}</span>
</v-col>
<v-col class="col-3 pa-0">
<v-tooltip top>
<template v-slot:activator="{ on, attrs }">
<div v-bind="attrs" v-on="on" class="text-center">
<strong>{{ $t("Panels.StatusPanel.Total") }}</strong><br />
<span class="text-no-wrap">{{ print_time_total ? formatTime(print_time_total) : '--' }}</span>
</div>
</template>
<div class="text-right">
{{ $t("Panels.StatusPanel.Print") }}: {{ print_time ? formatTime(print_time) : '--' }}<br />
{{ $t("Panels.StatusPanel.Difference") }}: {{ print_time && print_time_total ? formatTime(print_time_total - print_time) : '--' }}
</div>
</v-tooltip>
</v-col>
<v-col class="col-3 pa-0">
<strong>{{ $t("Panels.StatusPanel.ETA") }}</strong><br />
<span class="text-no-wrap">{{ eta ? formatDateTime(eta) : '--' }}</span>
</v-col>
</v-row>
</v-container>
</template>
<template v-if="['complete'].includes(printer_state)">
<v-divider class="my-0"></v-divider>
<v-container class="py-0">
<v-row class="text-center pt-5 pb-2 mb-0" align="center">
<v-col class="col-3 pa-0">
<strong>{{ $t("Panels.StatusPanel.Filament") }}</strong><br />
<span class="text-no-wrap">{{ filament_used >= 1000 ? (filament_used / 1000).toFixed(2)+" m" : filament_used.toFixed(2)+" mm" }}</span>
</v-col>
<v-col class="col-3 pa-0">
<strong>{{ $t("Panels.StatusPanel.Slicer") }}</strong><br />
<span class="text-no-wrap">{{ 'estimated_time' in current_file ? formatTime(current_file.estimated_time) : '--' }}</span>
</v-col>
<v-col class="col-3 pa-0">
<strong>{{ $t("Panels.StatusPanel.Print") }}</strong><br />
<span class="text-no-wrap">{{ print_time ? formatTime(print_time) : '--' }}</span>
</v-col>
<v-col class="col-3 pa-0">
<strong>{{ $t("Panels.StatusPanel.Total") }}</strong><br />
<span class="text-no-wrap">{{ print_time_total ? formatTime(print_time_total) : '--' }}</span>
</v-col>
</v-row>
</v-container>
</template>
</v-card-text>
</v-card>
</div>
</template>
<script>
@@ -260,17 +274,19 @@ import Component from 'vue-class-component'
import { Mixins, Watch } from 'vue-property-decorator'
import BaseMixin from '@/components/mixins/base'
import VueLoadImage from "vue-load-image"
import MinSettingsPanel from '@/components/panels/MinSettingsPanel'
import MoonrakerStatePanel from '@/components/panels/MoonrakerStatePanel'
import KlippyStatePanel from '@/components/panels/KlippyStatePanel'
@Component({
components: {KlippyStatePanel, MoonrakerStatePanel, MinSettingsPanel},
VueLoadImage
})
export default class StatusPanel extends Mixins(BaseMixin) {
maxFlow = {
intervalTimer: null,
lastExtruderPos: 0,
lastTime: 0,
lastValue: 0,
maxValue: 0,
maxFlow = 0
refs = {
bigThumbnail: HTMLDivElement
}
get current_filename() {
@@ -379,6 +395,26 @@ export default class StatusPanel extends Mixins(BaseMixin) {
})
}
get live_velocity() {
return Math.abs(this.$store.state.printer.motion_report?.live_velocity?.toFixed(0)) ?? null
}
get live_extruder_velocity() {
const live_extruder_velocity = this.$store.state.printer.motion_report?.live_extruder_velocity ?? null
if (live_extruder_velocity === null) return null
return live_extruder_velocity > 0 ? live_extruder_velocity : 0
}
get live_flow() {
if (this.live_extruder_velocity === null) return null
const filamentCrossSection = Math.pow(this.filament_diameter / 2, 2) * Math.PI
const currentFlow = filamentCrossSection * this.live_extruder_velocity
return currentFlow?.toFixed(1)
}
get requested_speed() {
const requested_speed = this.$store.state.printer.gcode_move?.speed ?? 0
const speed_factor = this.$store.state.printer.gcode_move?.speed_factor ?? 0
@@ -458,7 +494,8 @@ export default class StatusPanel extends Mixins(BaseMixin) {
relative_url = this.current_file.filename.substr(0, this.current_file.filename.lastIndexOf("/")+1)
}
if (thumbnail && 'relative_path' in thumbnail) return this.apiUrl+"/server/files/gcodes/"+relative_url+thumbnail.relative_path
if (thumbnail && 'relative_path' in thumbnail)
return this.apiUrl+"/server/files/gcodes/"+relative_url+thumbnail.relative_path+"?timestamp="+this.current_file.modified
}
}
@@ -478,13 +515,44 @@ export default class StatusPanel extends Mixins(BaseMixin) {
relative_url = this.current_file.filename.substr(0, this.current_file.filename.lastIndexOf("/")+1)
}
if (thumbnail && 'relative_path' in thumbnail) return this.apiUrl+"/server/files/gcodes/"+relative_url+thumbnail.relative_path
if (thumbnail && 'relative_path' in thumbnail)
return this.apiUrl+"/server/files/gcodes/"+relative_url+thumbnail.relative_path+"?timestamp="+this.current_file.modified
}
}
return ""
}
get thumbnailBigHeight() {
if (
"thumbnails" in this.current_file &&
this.current_file.thumbnails.length
) {
const thumbnail = this.current_file.thumbnails.find(thumb => thumb.width >= 300 && thumb.width <= 400)
if (thumbnail && 'height' in thumbnail) {
return thumbnail.height
}
}
return 200
}
get thumbnailBigWidth() {
if (
"thumbnails" in this.current_file &&
this.current_file.thumbnails.length
) {
const thumbnail = this.current_file.thumbnails.find(thumb => thumb.width >= 300 && thumb.width <= 400)
if (thumbnail && 'width' in thumbnail) {
return thumbnail.width
}
}
return 300
}
get boolBigThumbnail() {
const setting = this.$store.state.gui.dashboard.boolBigThumbnail ?? true
@@ -533,49 +601,40 @@ export default class StatusPanel extends Mixins(BaseMixin) {
return h+":"+m+((diff > 60*60*24*1000) ? "+"+parseInt(diff / (60*60*24*1000)) : "")
}
calcMaxFlow() {
const newExtruderPos = parseFloat(this.filament_used)
@Watch('live_flow')
live_flowChanged(newVal) {
newVal = parseFloat(newVal)
if (
this.maxFlow.lastExtruderPos &&
this.maxFlow.lastExtruderPos < newExtruderPos &&
this.maxFlow.lastTime
) {
const timeDiff = (new Date().getTime() - this.maxFlow.lastTime) / 1000
const filamentDiff = newExtruderPos - this.maxFlow.lastExtruderPos
const filamentCrossSection = Math.pow(this.filament_diameter / 2, 2) * Math.PI
if (newVal && this.maxFlow < newVal) this.maxFlow = newVal
}
if (timeDiff < 5000) {
this.maxFlow.lastValue = filamentCrossSection * filamentDiff / timeDiff
focusBigThumbnail() {
if (this.$refs.bigThumbnail) {
const clientWidth = this.$refs.bigThumbnail.$el.clientWidth
const thumbnailWidth = this.thumbnailBigWidth
const factor = clientWidth / thumbnailWidth
if (this.maxFlow.maxValue < this.maxFlow.lastValue) this.maxFlow.maxValue = this.maxFlow.lastValue
}
this.$refs.bigThumbnail.$el.style.height = (this.thumbnailBigHeight * factor).toFixed()+"px"
}
}
this.maxFlow.lastExtruderPos = newExtruderPos
this.maxFlow.lastTime = new Date().getTime()
blurBigThumbnail() {
if (this.$refs.bigThumbnail) {
this.$refs.bigThumbnail.$el.style.height = "200px"
}
}
onResize() {
const isFocused = (document.activeElement === this.$refs.bigThumbnail?.$el)
if (isFocused) this.focusBigThumbnail()
}
created() {
this.maxFlow.intervalTimer = setInterval(() => {
this.calcMaxFlow()
}, 3000)
window.addEventListener('resize', this.onResize);
}
beforeDestroy() {
if (this.maxFlow.intervalTimer) {
clearInterval(this.maxFlow.intervalTimer)
this.maxFlow.intervalTimer = null
}
}
@Watch('printerState')
printerStateChange(newVal) {
if (['complete', 'cancel', 'error', 'standby'].includes(newVal)) {
this.maxFlow.lastValue = 0
this.maxFlow.maxValue = 0
this.maxFlow.lastTime = 0
}
destroyed() {
window.removeEventListener('resize', this.onResize);
}
}
</script>
+5 -5
View File
@@ -26,7 +26,7 @@
<v-card v-if="klipperReadyForGui" class="mb-6">
<v-toolbar flat dense>
<v-toolbar-title>
<span class="subheading"><v-icon left>mdi-thermometer-lines</v-icon>{{ $t("Panels.ToolsPanel.Temperatures") }}</span>
<span class="subheading"><v-icon left>mdi-thermometer-lines</v-icon>{{ $t("Panels.ToolsPanel.Headline") }}</span>
</v-toolbar-title>
<v-spacer></v-spacer>
<v-menu :offset-y="true" title="Preheat" v-if="presets.length">
@@ -74,7 +74,7 @@
<v-container class="px-0">
<v-row align="center">
<v-col class="py-2 font-weight-bold" style="padding-left: 68px;">{{ $t("Panels.ToolsPanel.Name") }}</v-col>
<v-col class="py-2 text-center flex-grow-0 font-weight-bold d-none d-sm-block" v-if="boolTempchart" style="min-width: 70px;">{{ $t("Panels.ToolsPanel.Color") }}</v-col>
<v-col class="py-2 text-center flex-grow-0 font-weight-bold d-none d-sm-block" v-if="boolTempchart" style="min-width: 75px;">{{ $t("Panels.ToolsPanel.Color") }}</v-col>
<v-col class="py-2 text-center font-weight-bold d-none d-sm-block">{{ $t("Panels.ToolsPanel.State") }}</v-col>
<v-col class="py-2 text-center font-weight-bold">{{ $t("Panels.ToolsPanel.Current") }}</v-col>
<v-col class="py-2 pr-8 text-center font-weight-bold">{{ $t("Panels.ToolsPanel.Target") }}</v-col>
@@ -86,7 +86,7 @@
<v-icon :color="heater.iconColor">mdi-{{ heater.icon }}</v-icon>
</v-col>
<v-col class="py-2 font-weight-bold"><span style="cursor: pointer;" @click="openHeater(heater)">{{ convertName(heater.name) }}</span></v-col>
<v-col class="py-2 flex-grow-0 text-center d-none d-sm-block" v-if="boolTempchart" style="min-width: 70px;">
<v-col class="py-2 flex-grow-0 text-center d-none d-sm-block" v-if="boolTempchart" style="min-width: 75px;">
<div :style="'background-color: '+heater.chartColor+'cc;'" class="datasetColorSymbol d-inline-block" @click="openHeater(heater)"></div>
</v-col>
<v-col class="py-2 text-center d-none d-sm-block">
@@ -123,7 +123,7 @@
<v-icon :color="(fan.target ? 'grey lighten-5' : 'grey darken-2')" :class="(fan.speed ? ' icon-rotate' : '')">mdi-fan</v-icon>
</v-col>
<v-col class="py-2 font-weight-bold"><span style="cursor: pointer;" @click="openHeater(fan)">{{ convertName(fan.name) }}</span></v-col>
<v-col class="py-2 flex-grow-0 text-center d-none d-sm-block" v-if="boolTempchart" style="min-width: 70px;">
<v-col class="py-2 flex-grow-0 text-center d-none d-sm-block" v-if="boolTempchart" style="min-width: 75px;">
<div :style="'background-color: '+fan.chartColor+'cc;'" class="datasetColorSymbol d-inline-block" @click="openHeater(fan)"></div>
</v-col>
<v-col class="py-2 text-center d-none d-sm-block">
@@ -163,7 +163,7 @@
<v-col class="py-2 font-weight-bold">
<span style="cursor: pointer;" @click="openHeater(sensor)">{{ convertName(sensor.name) }}</span>
</v-col>
<v-col class="py-2 flex-grow-0 text-center d-none d-sm-block" v-if="boolTempchart" style="min-width: 70px;">
<v-col class="py-2 flex-grow-0 text-center d-none d-sm-block" v-if="boolTempchart" style="min-width: 75px;">
<div :style="'background-color: '+sensor.chartColor+'CC;'" class="datasetColorSymbol d-inline-block" @click="openHeater(sensor)"></div>
</v-col>
<v-col class="py-2 d-none d-sm-block"><span>&nbsp;</span></v-col>
+1 -1
View File
@@ -7,7 +7,7 @@
<v-toolbar flat dense >
<v-toolbar-title>
<span class="subheading">
<v-icon left>mdi-webcam</v-icon> {{ $t('Panels.WebcamPanel.Webcam')}}
<v-icon left>mdi-webcam</v-icon> {{ $t('Panels.WebcamPanel.Headline')}}
</span>
</v-toolbar-title>
<v-spacer></v-spacer>
-87
View File
@@ -1,87 +0,0 @@
<style>
</style>
<template>
<v-card v-if="displayPanel" class="mb-6">
<v-toolbar flat dense >
<v-toolbar-title>
<span class="subheading"><v-icon class="mdi mdi-arrow-collapse-vertical" left></v-icon>{{ $t("Panels.ZOffsetPanel.ZOffset") }}</span>
</v-toolbar-title>
</v-toolbar>
<v-card-text class="px-0 py-0">
<v-container>
<v-row class="py-0">
<v-col class="pb-0 text-center">
<p class="mb-0">{{ $t("Panels.ZOffsetPanel.CurrentOffset") }}: {{ homing_origin.length > 1 ? homing_origin[2].toFixed(3) : 0.000 }}mm</p>
</v-col>
</v-row>
<v-row>
<v-col class="col text-center d-flex flex-column align-center flex-sm-row justify-center">
<v-btn-toggle dense no-gutters class="mx-2 mt-3 mt-sm-0 order-last flex-nowrap order-sm-first" >
<v-btn small @click="sendBabySteppingDownFine()" class="" :loading="loadings.includes('babySteppingDownFine')" ><v-icon small class="mr-2">mdi-arrow-collapse-down</v-icon> -0.01mm</v-btn>
<v-btn small @click="sendBabySteppingDown()" class="" :loading="loadings.includes('babySteppingDown')" >-0.05mm</v-btn>
</v-btn-toggle>
<v-btn-toggle dense no-gutters class="mx-2 order-first flex-nowrap order-sm-last" >
<v-btn small @click="sendBabySteppingUpFine()" class="" :loading="loadings.includes('babySteppingUpFine')" ><v-icon small class="mr-2">mdi-arrow-expand-up</v-icon> +0.01mm</v-btn>
<v-btn small @click="sendBabySteppingUp()" class="" :loading="loadings.includes('babySteppingUp')" >+0.05mm</v-btn>
</v-btn-toggle>
</v-col>
</v-row>
</v-container>
</v-card-text>
</v-card>
</template>
<script lang="ts">
import {Component, Mixins} from "vue-property-decorator";
import BaseMixin from "../mixins/base";
@Component
export default class ZOffsetPanel extends Mixins(BaseMixin) {
get displayPanel() {
if (!this.klippyIsConnected) return false
return (['printing', 'paused'].includes(this.printer_state)) || (this.displayZOffsetStandby && ['standby', 'complete', 'cancelled'].includes(this.printer_state))
}
get displayZOffsetStandby() {
return this.$store.state.gui.general.displayZOffsetStandby ?? false
}
get homing_origin() {
return this.$store.state.printer?.gcode_move?.homing_origin ?? []
}
get homed_axis() {
return this.$store.state.printer.toolhead.homed_axes ?? ""
}
sendBabySteppingDownFine() {
const gcode = "SET_GCODE_OFFSET Z_ADJUST=-0.01"+(this.homed_axis === "xyz" ? " MOVE=1" : "");
this.$store.dispatch('server/addEvent', { message: gcode, type: 'command' });
this.$socket.emit('printer.gcode.script', { script: gcode }, { loading: 'babySteppingDownFine' });
}
sendBabySteppingDown() {
const gcode = "SET_GCODE_OFFSET Z_ADJUST=-0.05"+(this.homed_axis === "xyz" ? " MOVE=1" : "")
this.$store.dispatch('server/addEvent', { message: gcode, type: 'command' })
this.$socket.emit('printer.gcode.script', { script: gcode }, { loading: 'babySteppingDown' })
}
sendBabySteppingUpFine() {
const gcode = "SET_GCODE_OFFSET Z_ADJUST=0.01"+(this.homed_axis === "xyz" ? " MOVE=1" : "")
this.$store.dispatch('server/addEvent', { message: gcode, type: 'command' })
this.$socket.emit('printer.gcode.script', { script: gcode }, { loading: 'babySteppingUpFine' })
}
sendBabySteppingUp() {
const gcode = "SET_GCODE_OFFSET Z_ADJUST=0.05"+(this.homed_axis === "xyz" ? " MOVE=1" : "")
this.$store.dispatch('server/addEvent', { message: gcode, type: 'command' })
this.$socket.emit('printer.gcode.script', { script: gcode }, { loading: 'babySteppingUp' })
}
}
</script>
+187
View File
@@ -0,0 +1,187 @@
<style>
</style>
<template>
<div>
<v-card v-if="displayPanel" class="mb-6">
<v-toolbar flat dense >
<v-toolbar-title>
<span class="subheading"><v-icon class="mdi mdi-arrow-collapse-vertical" left></v-icon>{{ $t("Panels.ZoffsetPanel.Headline") }}</span>
</v-toolbar-title>
<v-spacer></v-spacer>
<template v-if="z_gcode_offset !== 0">
<v-btn small class="px-2 minwidth-0" color="grey darken-3" @click="clearZOffset()" :loading="loadings.includes('babySteppingClear')"><v-icon small>mdi-broom</v-icon></v-btn>
<v-menu offset-y left v-if="existZOffsetApplyProbe && existZOffsetApplyEndstop">
<template v-slot:activator="{ on, attrs }">
<v-btn small class="px-2 minwidth-0 ml-3" color="primary" v-bind="attrs" v-on="on">{{ $t("Panels.ZoffsetPanel.Save") }} <v-icon small>mdi-menu-down</v-icon></v-btn>
</template>
<v-list dense class="py-0">
<v-list-item link @click="saveZOffsetToEndstop">
<v-list-item-icon class="mr-0">
<v-icon small>mdi-electric-switch</v-icon>
</v-list-item-icon>
<v-list-item-content>
<v-list-item-title>{{ $t("Panels.ZoffsetPanel.ToEndstop") }}</v-list-item-title>
</v-list-item-content>
</v-list-item>
<v-list-item link @click="saveZOffsetToProbe">
<v-list-item-icon class="mr-0">
<v-icon small>mdi-elevator</v-icon>
</v-list-item-icon>
<v-list-item-content>
<v-list-item-title>{{ $t("Panels.ZoffsetPanel.ToProbe") }}</v-list-item-title>
</v-list-item-content>
</v-list-item>
</v-list>
</v-menu>
<v-btn small class="px-2 minwidth-0" color="primary ml-3" v-else-if="existZOffsetApplyProbe && !existZOffsetApplyEndstop" @click="saveZOffsetToProbe"><v-icon small class="mr-1">mdi-content-save</v-icon>{{ $t("Panels.ZoffsetPanel.Save") }}</v-btn>
<v-btn small class="px-2 minwidth-0" color="primary ml-3" v-else-if="!existZOffsetApplyProbe && existZOffsetApplyEndstop" @click="saveZOffsetToEndstop"><v-icon small class="mr-1">mdi-content-save</v-icon>{{ $t("Panels.ZoffsetPanel.Save") }}</v-btn>
</template>
</v-toolbar>
<v-card-text class="px-0 py-0">
<v-container>
<v-row class="py-0">
<v-col class="pb-0 text-center">
<p class="mb-0">{{ $t("Panels.ZoffsetPanel.CurrentOffset") }}: {{ z_gcode_offset.toFixed(3) }}mm</p>
</v-col>
</v-row>
<v-row>
<v-col class="col text-center d-flex flex-column align-center flex-sm-row justify-center">
<v-btn-toggle dense no-gutters class="mx-2 mt-3 mt-sm-0 order-last flex-nowrap order-sm-first" >
<v-btn small @click="sendBabySteppingDownFine()" class="" :loading="loadings.includes('babySteppingDownFine')" ><v-icon small class="mr-2">mdi-arrow-collapse-down</v-icon> -0.01mm</v-btn>
<v-btn small @click="sendBabySteppingDown()" class="" :loading="loadings.includes('babySteppingDown')" >-0.05mm</v-btn>
</v-btn-toggle>
<v-btn-toggle dense no-gutters class="mx-2 order-first flex-nowrap order-sm-last" >
<v-btn small @click="sendBabySteppingUpFine()" class="" :loading="loadings.includes('babySteppingUpFine')" ><v-icon small class="mr-2">mdi-arrow-expand-up</v-icon> +0.01mm</v-btn>
<v-btn small @click="sendBabySteppingUp()" class="" :loading="loadings.includes('babySteppingUp')" >+0.05mm</v-btn>
</v-btn-toggle>
</v-col>
</v-row>
</v-container>
</v-card-text>
</v-card>
<v-dialog v-model="saveOffsetDialog" max-width="290">
<v-card>
<v-toolbar flat dense >
<v-toolbar-title>
<span class="subheading"><v-icon class="mdi mdi-information" left></v-icon>{{ $t("Panels.ZoffsetPanel.SaveInfoHeadline") }}</span>
</v-toolbar-title>
</v-toolbar>
<v-card-text class="mt-3" v-if="printerIsPrinting">{{ $t("Panels.ZoffsetPanel.SaveInfoDescriptionPrint") }}</v-card-text>
<v-card-text class="mt-3" v-else>{{ $t("Panels.ZoffsetPanel.SaveInfoDescription") }}</v-card-text>
<v-card-actions v-if="printerIsPrinting">
<v-spacer></v-spacer>
<v-btn text @click="saveOffsetDialog = false">{{ $t("Panels.ZoffsetPanel.Ok") }}</v-btn>
</v-card-actions>
<v-card-actions v-else>
<v-spacer></v-spacer>
<v-btn color="primary" text @click="saveConfig">{{ $t("Panels.ZoffsetPanel.SAVE_CONFIG") }}</v-btn>
<v-btn text @click="saveOffsetDialog = false">{{ $t("Panels.ZoffsetPanel.Later") }}</v-btn>
</v-card-actions>
</v-card>
</v-dialog>
</div>
</template>
<script lang="ts">
import {Component, Mixins} from "vue-property-decorator";
import BaseMixin from "../mixins/base";
import {CommandHelp} from "@/store/printer/types";
@Component
export default class ZoffsetPanel extends Mixins(BaseMixin) {
private saveOffsetDialog = false
get displayPanel() {
if (!this.klippyIsConnected) return false
if (this.displayZOffsetStandby) return this.klipperReadyForGui
else if (this.klipperReadyForGui && this.z_gcode_offset !== 0) return true
else if(['printing', 'paused'].includes(this.printer_state)) return true
return false
}
get displayZOffsetStandby() {
return this.$store.state.gui.general.displayZOffsetStandby ?? false
}
get homing_origin() {
return this.$store.state.printer?.gcode_move?.homing_origin ?? []
}
get z_gcode_offset() {
return this.homing_origin.length > 1 ? Math.round(this.homing_origin[2] * 1000) / 1000 : 0
}
get homed_axis() {
return this.$store.state.printer.toolhead.homed_axes ?? ""
}
get helplist() {
return this.$store.state.printer.helplist ?? []
}
get existZOffsetApplyProbe() {
return this.helplist.findIndex((gcode: CommandHelp) => gcode.commandLow === 'z_offset_apply_probe') !== -1
}
get existZOffsetApplyEndstop() {
return this.helplist.findIndex((gcode: CommandHelp) => gcode.commandLow === 'z_offset_apply_endstop') !== -1
}
sendBabySteppingDownFine() {
const gcode = "SET_GCODE_OFFSET Z_ADJUST=-0.01"+(this.homed_axis === "xyz" ? " MOVE=1" : "");
this.$store.dispatch('server/addEvent', { message: gcode, type: 'command' });
this.$socket.emit('printer.gcode.script', { script: gcode }, { loading: 'babySteppingDownFine' });
}
sendBabySteppingDown() {
const gcode = "SET_GCODE_OFFSET Z_ADJUST=-0.05"+(this.homed_axis === "xyz" ? " MOVE=1" : "")
this.$store.dispatch('server/addEvent', { message: gcode, type: 'command' })
this.$socket.emit('printer.gcode.script', { script: gcode }, { loading: 'babySteppingDown' })
}
sendBabySteppingUpFine() {
const gcode = "SET_GCODE_OFFSET Z_ADJUST=0.01"+(this.homed_axis === "xyz" ? " MOVE=1" : "")
this.$store.dispatch('server/addEvent', { message: gcode, type: 'command' })
this.$socket.emit('printer.gcode.script', { script: gcode }, { loading: 'babySteppingUpFine' })
}
sendBabySteppingUp() {
const gcode = "SET_GCODE_OFFSET Z_ADJUST=0.05"+(this.homed_axis === "xyz" ? " MOVE=1" : "")
this.$store.dispatch('server/addEvent', { message: gcode, type: 'command' })
this.$socket.emit('printer.gcode.script', { script: gcode }, { loading: 'babySteppingUp' })
}
clearZOffset() {
const gcode = "SET_GCODE_OFFSET Z=0"+(this.homed_axis === "xyz" ? " MOVE=1" : "")
this.$store.dispatch('server/addEvent', { message: gcode, type: 'command' })
this.$socket.emit('printer.gcode.script', { script: gcode }, { loading: 'babySteppingClear' })
}
saveZOffsetToEndstop() {
const gcode = "Z_OFFSET_APPLY_ENDSTOP"
this.$store.dispatch('server/addEvent', { message: gcode, type: 'command' })
this.$socket.emit('printer.gcode.script', { script: gcode })
this.saveOffsetDialog = true
}
saveZOffsetToProbe() {
const gcode = "Z_OFFSET_APPLY_PROBE"
this.$store.dispatch('server/addEvent', { message: gcode, type: 'command' })
this.$socket.emit('printer.gcode.script', { script: gcode })
this.saveOffsetDialog = true
}
saveConfig() {
const gcode = "SAVE_CONFIG"
this.$store.dispatch('server/addEvent', { message: gcode, type: 'command' })
this.$socket.emit('printer.gcode.script', { script: gcode }, { loading: 'topbarSaveConfig' })
this.saveOffsetDialog = false
}
}
</script>
@@ -0,0 +1,77 @@
<style scoped>
</style>
<template>
<v-card flat>
<v-card-text>
<v-row>
<v-col class="text-center">
<v-btn-toggle v-model="viewport" class="mx-auto">
<v-btn value="mobile">
<span class="hidden-sm-and-down">{{ $t('Settings.DashboardTab.Mobile') }}</span>
<v-icon right class="hidden-sm-and-down">mdi-cellphone</v-icon>
<v-icon class="hidden-md-and-up">mdi-cellphone</v-icon>
</v-btn>
<v-btn value="tablet">
<span class="hidden-sm-and-down">{{ $t('Settings.DashboardTab.Tablet') }}</span>
<v-icon right class="hidden-sm-and-down">mdi-tablet</v-icon>
<v-icon class="hidden-md-and-up">mdi-tablet</v-icon>
</v-btn>
<v-btn value="desktop">
<span class="hidden-sm-and-down">{{ $t('Settings.DashboardTab.Desktop') }}</span>
<v-icon right class="hidden-sm-and-down">mdi-monitor-dashboard</v-icon>
<v-icon class="hidden-md-and-up">mdi-monitor-dashboard</v-icon>
</v-btn>
<v-btn value="widescreen">
<span class="hidden-sm-and-down">{{ $t('Settings.DashboardTab.Widescreen') }}</span>
<v-icon right class="hidden-sm-and-down">mdi-monitor-screenshot</v-icon>
<v-icon class="hidden-md-and-up">mdi-monitor-screenshot</v-icon>
</v-btn>
</v-btn-toggle>
</v-col>
</v-row>
<v-row>
<v-col>
<component :is="'settings-dashboard-tab-'+viewport"></component>
</v-col>
</v-row>
</v-card-text>
</v-card>
</template>
<script lang="ts">
import Component from 'vue-class-component'
import { Mixins } from 'vue-property-decorator'
import BaseMixin from '@/components/mixins/base'
import draggable from 'vuedraggable'
import SettingsDashboardTabMobile from "@/components/settings/SettingsDashboardTabMobile.vue";
import SettingsDashboardTabTablet from "@/components/settings/SettingsDashboardTabTablet.vue";
import SettingsDashboardTabDesktop from "@/components/settings/SettingsDashboardTabDesktop.vue";
import SettingsDashboardTabWidescreen from "@/components/settings/SettingsDashboardTabWidescreen.vue";
@Component( {
components: {
draggable,
SettingsDashboardTabMobile,
SettingsDashboardTabTablet,
SettingsDashboardTabDesktop,
SettingsDashboardTabWidescreen
}
}
)
export default class SettingsDashboardTab extends Mixins(BaseMixin) {
private viewport = 'desktop'
mounted() {
if (this.isMobile) this.viewport = 'mobile'
else if (this.isTablet) this.viewport = 'tablet'
else if (this.isDesktop) this.viewport = 'desktop'
else if (this.isWidescreen) this.viewport = 'widescreen'
else this.viewport = 'desktop'
}
}
</script>
@@ -0,0 +1,134 @@
<style scoped>
.ghost {
opacity: 0.5;
background: #c8ebfb;
}
</style>
<template>
<v-card flat>
<v-card-text>
<v-row>
<v-col class="col-12 col-md-6">
<v-card class="mx-auto" max-width="300" tile >
<v-list dense>
<v-list-item>
<v-list-item-icon>
<v-icon>mdi-information</v-icon>
</v-list-item-icon>
<v-list-item-content>
<v-list-item-title>{{ $t('Panels.StatusPanel.Headline') }}</v-list-item-title>
</v-list-item-content>
<v-list-item-action>
<v-icon color="grey lighten-1">mdi-lock</v-icon>
</v-list-item-action>
</v-list-item>
<draggable v-model="desktopLayout1" class="v-list-item-group" ghost-class="ghost" group="desktopViewport">
<template v-for="(element) in desktopLayout1">
<v-list-item :key="'item-desktop-'+element.name" link>
<v-list-item-icon>
<v-icon v-text="convertPanelnameToIcon(element.name)"></v-icon>
</v-list-item-icon>
<v-list-item-content>
<v-list-item-title>{{ $t('Panels.'+capitalize(element.name)+'Panel.Headline') }}</v-list-item-title>
</v-list-item-content>
<v-list-item-action>
<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-else color="primary" @click.stop="changeState1(element.name,false)">mdi-checkbox-marked</v-icon>
</v-list-item-action>
</v-list-item>
</template>
</draggable>
</v-list>
</v-card>
</v-col>
<v-col class="col-12 col-md-6">
<v-card class="mx-auto" max-width="300" tile >
<v-list dense>
<draggable v-model="desktopLayout2" class="v-list-item-group" ghost-class="ghost" group="desktopViewport">
<template v-for="(element) in desktopLayout2">
<v-list-item :key="'item-desktop-'+element.name" link>
<v-list-item-icon>
<v-icon v-text="convertPanelnameToIcon(element.name)"></v-icon>
</v-list-item-icon>
<v-list-item-content>
<v-list-item-title>{{ $t('Panels.'+capitalize(element.name)+'Panel.Headline') }}</v-list-item-title>
</v-list-item-content>
<v-list-item-action>
<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-else color="primary" @click.stop="changeState2(element.name,false)">mdi-checkbox-marked</v-icon>
</v-list-item-action>
</v-list-item>
</template>
</draggable>
</v-list>
</v-card>
</v-col>
</v-row>
<v-row>
<v-col class="text-center">
<v-btn color="error" @click="resetLayout">{{ $t('Settings.DashboardTab.ResetLayout') }}</v-btn>
</v-col>
</v-row>
</v-card-text>
</v-card>
</template>
<script lang="ts">
import Component from 'vue-class-component'
import { Mixins } from 'vue-property-decorator'
import BaseMixin from '@/components/mixins/base'
import draggable from 'vuedraggable'
import {capitalize, convertPanelnameToIcon} from "@/plugins/helpers";
@Component( {
components: {
draggable
}
}
)
export default class SettingsDashboardTabDesktop extends Mixins(BaseMixin) {
capitalize = capitalize
convertPanelnameToIcon = convertPanelnameToIcon
get desktopLayout1() {
return this.$store.state.gui?.dashboard?.desktopLayout1?.filter((element: any) => element !== null) ?? []
}
set desktopLayout1(newVal) {
newVal = newVal.filter((element: any) => element !== undefined)
this.$store.dispatch('gui/saveSetting', {name: 'dashboard.desktopLayout1', value: newVal })
}
get desktopLayout2() {
return this.$store.state.gui?.dashboard?.desktopLayout2?.filter((element: any) => element !== null) ?? []
}
set desktopLayout2(newVal) {
newVal = newVal.filter((element: any) => element !== undefined)
this.$store.dispatch('gui/saveSetting', {name: 'dashboard.desktopLayout2', value: newVal })
}
changeState1(name: string, newVal: boolean) {
const index = this.desktopLayout1.findIndex((element: any) => element.name === name)
if (index !== -1) {
this.desktopLayout1[index].visable = newVal
this.$store.dispatch('gui/saveSetting', {name: 'dashboard.desktopLayout1', value: this.desktopLayout1 })
}
}
changeState2(name: string, newVal: boolean) {
const index = this.desktopLayout2.findIndex((element: any) => element.name === name)
if (index !== -1) {
this.desktopLayout2[index].visable = newVal
this.$store.dispatch('gui/saveSetting', {name: 'dashboard.desktopLayout2', value: this.desktopLayout2 })
}
}
resetLayout() {
this.$store.dispatch('gui/resetLayout', 'desktopLayout1')
this.$store.dispatch('gui/resetLayout', 'desktopLayout2')
}
}
</script>
@@ -0,0 +1,93 @@
<style scoped>
.ghost {
opacity: 0.5;
background: #c8ebfb;
}
</style>
<template>
<v-card flat>
<v-card-text>
<v-row>
<v-col>
<v-card class="mx-auto" max-width="300" tile >
<v-list dense>
<v-list-item>
<v-list-item-icon>
<v-icon>mdi-information</v-icon>
</v-list-item-icon>
<v-list-item-content>
<v-list-item-title>{{ $t('Panels.StatusPanel.Headline') }}</v-list-item-title>
</v-list-item-content>
<v-list-item-action>
<v-icon color="grey lighten-1">mdi-lock</v-icon>
</v-list-item-action>
</v-list-item>
<draggable v-model="mobileLayout" class="v-list-item-group" ghost-class="ghost" group="mobileViewport">
<template v-for="(element) in mobileLayout">
<v-list-item :key="'item-mobile-'+element.name" link>
<v-list-item-icon>
<v-icon v-text="convertPanelnameToIcon(element.name)"></v-icon>
</v-list-item-icon>
<v-list-item-content>
<v-list-item-title>{{ $t('Panels.'+capitalize(element.name)+'Panel.Headline') }}</v-list-item-title>
</v-list-item-content>
<v-list-item-action>
<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-else color="primary" @click.stop="changeState(element.name,false)">mdi-checkbox-marked</v-icon>
</v-list-item-action>
</v-list-item>
</template>
</draggable>
</v-list>
</v-card>
</v-col>
</v-row>
<v-row>
<v-col class="text-center">
<v-btn color="error" @click="resetLayout">{{ $t('Settings.DashboardTab.ResetLayout') }}</v-btn>
</v-col>
</v-row>
</v-card-text>
</v-card>
</template>
<script lang="ts">
import Component from 'vue-class-component'
import { Mixins } from 'vue-property-decorator'
import BaseMixin from '@/components/mixins/base'
import draggable from 'vuedraggable'
import {capitalize, convertPanelnameToIcon} from "@/plugins/helpers";
@Component( {
components: {
draggable
}
}
)
export default class SettingsDashboardTabMobile extends Mixins(BaseMixin) {
capitalize = capitalize
convertPanelnameToIcon = convertPanelnameToIcon
get mobileLayout() {
return this.$store.state.gui?.dashboard?.mobileLayout?.filter((element: any) => element !== null) ?? []
}
set mobileLayout(newVal) {
newVal = newVal.filter((element: any) => element !== undefined)
this.$store.dispatch('gui/saveSetting', {name: 'dashboard.mobileLayout', value: newVal })
}
changeState(name: string, newVal: boolean) {
const index = this.mobileLayout.findIndex((element: any) => element.name === name)
if (index !== -1) {
this.mobileLayout[index].visable = newVal
this.$store.dispatch('gui/saveSetting', {name: 'dashboard.mobileLayout', value: this.mobileLayout })
}
}
resetLayout() {
this.$store.dispatch('gui/resetLayout', 'mobileLayout')
}
}
</script>
@@ -0,0 +1,134 @@
<style scoped>
.ghost {
opacity: 0.5;
background: #c8ebfb;
}
</style>
<template>
<v-card flat>
<v-card-text>
<v-row>
<v-col class="col-12 col-md-6">
<v-card class="mx-auto" max-width="300" tile >
<v-list dense>
<v-list-item>
<v-list-item-icon>
<v-icon>mdi-information</v-icon>
</v-list-item-icon>
<v-list-item-content>
<v-list-item-title>{{ $t('Panels.StatusPanel.Headline') }}</v-list-item-title>
</v-list-item-content>
<v-list-item-action>
<v-icon color="grey lighten-1">mdi-lock</v-icon>
</v-list-item-action>
</v-list-item>
<draggable v-model="tabletLayout1" class="v-list-item-group" ghost-class="ghost" group="tabletViewport">
<template v-for="(element) in tabletLayout1">
<v-list-item :key="'item-tablet-'+element.name" link>
<v-list-item-icon>
<v-icon v-text="convertPanelnameToIcon(element.name)"></v-icon>
</v-list-item-icon>
<v-list-item-content>
<v-list-item-title>{{ $t('Panels.'+capitalize(element.name)+'Panel.Headline') }}</v-list-item-title>
</v-list-item-content>
<v-list-item-action>
<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-else color="primary" @click.stop="changeState1(element.name,false)">mdi-checkbox-marked</v-icon>
</v-list-item-action>
</v-list-item>
</template>
</draggable>
</v-list>
</v-card>
</v-col>
<v-col class="col-12 col-md-6">
<v-card class="mx-auto" max-width="300" tile >
<v-list dense>
<draggable v-model="tabletLayout2" class="v-list-item-group" ghost-class="ghost" group="tabletViewport">
<template v-for="(element) in tabletLayout2">
<v-list-item :key="'item-tablet-'+element.name" link>
<v-list-item-icon>
<v-icon v-text="convertPanelnameToIcon(element.name)"></v-icon>
</v-list-item-icon>
<v-list-item-content>
<v-list-item-title>{{ $t('Panels.'+capitalize(element.name)+'Panel.Headline') }}</v-list-item-title>
</v-list-item-content>
<v-list-item-action>
<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-else color="primary" @click.stop="changeState2(element.name,false)">mdi-checkbox-marked</v-icon>
</v-list-item-action>
</v-list-item>
</template>
</draggable>
</v-list>
</v-card>
</v-col>
</v-row>
<v-row>
<v-col class="text-center">
<v-btn color="error" @click="resetLayout">{{ $t('Settings.DashboardTab.ResetLayout') }}</v-btn>
</v-col>
</v-row>
</v-card-text>
</v-card>
</template>
<script lang="ts">
import Component from 'vue-class-component'
import { Mixins } from 'vue-property-decorator'
import BaseMixin from '@/components/mixins/base'
import draggable from 'vuedraggable'
import {capitalize, convertPanelnameToIcon} from "@/plugins/helpers";
@Component( {
components: {
draggable
}
}
)
export default class SettingsDashboardTabTablet extends Mixins(BaseMixin) {
capitalize = capitalize
convertPanelnameToIcon = convertPanelnameToIcon
get tabletLayout1() {
return this.$store.state.gui?.dashboard?.tabletLayout1?.filter((element: any) => element !== null) ?? []
}
set tabletLayout1(newVal) {
newVal = newVal.filter((element: any) => element !== undefined)
this.$store.dispatch('gui/saveSetting', {name: 'dashboard.tabletLayout1', value: newVal })
}
get tabletLayout2() {
return this.$store.state.gui?.dashboard?.tabletLayout2?.filter((element: any) => element !== null) ?? []
}
set tabletLayout2(newVal) {
newVal = newVal.filter((element: any) => element !== undefined)
this.$store.dispatch('gui/saveSetting', {name: 'dashboard.tabletLayout2', value: newVal })
}
changeState1(name: string, newVal: boolean) {
const index = this.tabletLayout1.findIndex((element: any) => element.name === name)
if (index !== -1) {
this.tabletLayout1[index].visable = newVal
this.$store.dispatch('gui/saveSetting', {name: 'dashboard.tabletLayout1', value: this.tabletLayout1 })
}
}
changeState2(name: string, newVal: boolean) {
const index = this.tabletLayout2.findIndex((element: any) => element.name === name)
if (index !== -1) {
this.tabletLayout2[index].visable = newVal
this.$store.dispatch('gui/saveSetting', {name: 'dashboard.tabletLayout2', value: this.tabletLayout2 })
}
}
resetLayout() {
this.$store.dispatch('gui/resetLayout', 'tabletLayout1')
this.$store.dispatch('gui/resetLayout', 'tabletLayout2')
}
}
</script>
@@ -0,0 +1,175 @@
<style scoped>
.ghost {
opacity: 0.5;
background: #c8ebfb;
}
</style>
<template>
<v-card flat>
<v-card-text>
<v-row>
<v-col class="col-12 col-md-4">
<v-card class="mx-auto" max-width="300" tile >
<v-list dense>
<v-list-item>
<v-list-item-icon>
<v-icon>mdi-information</v-icon>
</v-list-item-icon>
<v-list-item-content>
<v-list-item-title>{{ $t('Panels.StatusPanel.Headline') }}</v-list-item-title>
</v-list-item-content>
<v-list-item-action>
<v-icon color="grey lighten-1">mdi-lock</v-icon>
</v-list-item-action>
</v-list-item>
<draggable v-model="widescreenLayout1" class="v-list-item-group" ghost-class="ghost" group="widescreenViewport">
<template v-for="(element) in widescreenLayout1">
<v-list-item :key="'item-widescreen-'+element.name" link>
<v-list-item-icon>
<v-icon v-text="convertPanelnameToIcon(element.name)"></v-icon>
</v-list-item-icon>
<v-list-item-content>
<v-list-item-title>{{ $t('Panels.'+capitalize(element.name)+'Panel.Headline') }}</v-list-item-title>
</v-list-item-content>
<v-list-item-action>
<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-else color="primary" @click.stop="changeState1(element.name,false)">mdi-checkbox-marked</v-icon>
</v-list-item-action>
</v-list-item>
</template>
</draggable>
</v-list>
</v-card>
</v-col>
<v-col class="col-12 col-md-4">
<v-card class="mx-auto" max-width="300" tile >
<v-list dense>
<draggable v-model="widescreenLayout2" class="v-list-item-group" ghost-class="ghost" group="widescreenViewport">
<template v-for="(element) in widescreenLayout2">
<v-list-item :key="'item-widescreen-'+element.name" link>
<v-list-item-icon>
<v-icon v-text="convertPanelnameToIcon(element.name)"></v-icon>
</v-list-item-icon>
<v-list-item-content>
<v-list-item-title>{{ $t('Panels.'+capitalize(element.name)+'Panel.Headline') }}</v-list-item-title>
</v-list-item-content>
<v-list-item-action>
<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-else color="primary" @click.stop="changeState2(element.name,false)">mdi-checkbox-marked</v-icon>
</v-list-item-action>
</v-list-item>
</template>
</draggable>
</v-list>
</v-card>
</v-col>
<v-col class="col-12 col-md-4">
<v-card class="mx-auto" max-width="300" tile >
<v-list dense>
<draggable v-model="widescreenLayout3" class="v-list-item-group" ghost-class="ghost" group="widescreenViewport">
<template v-for="(element) in widescreenLayout3">
<v-list-item :key="'item-widescreen-'+element.name" link>
<v-list-item-icon>
<v-icon v-text="convertPanelnameToIcon(element.name)"></v-icon>
</v-list-item-icon>
<v-list-item-content>
<v-list-item-title>{{ $t('Panels.'+capitalize(element.name)+'Panel.Headline') }}</v-list-item-title>
</v-list-item-content>
<v-list-item-action>
<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-else color="primary" @click.stop="changeState3(element.name,false)">mdi-checkbox-marked</v-icon>
</v-list-item-action>
</v-list-item>
</template>
</draggable>
</v-list>
</v-card>
</v-col>
</v-row>
<v-row>
<v-col class="text-center">
<v-btn color="error" @click="resetLayout">{{ $t('Settings.DashboardTab.ResetLayout') }}</v-btn>
</v-col>
</v-row>
</v-card-text>
</v-card>
</template>
<script lang="ts">
import Component from 'vue-class-component'
import { Mixins } from 'vue-property-decorator'
import BaseMixin from '@/components/mixins/base'
import draggable from 'vuedraggable'
import {capitalize, convertPanelnameToIcon} from "@/plugins/helpers";
@Component( {
components: {
draggable
}
}
)
export default class SettingsDashboardTabWidescreen extends Mixins(BaseMixin) {
capitalize = capitalize
convertPanelnameToIcon = convertPanelnameToIcon
get widescreenLayout1() {
return this.$store.state.gui?.dashboard?.widescreenLayout1?.filter((element: any) => element !== null) ?? []
}
set widescreenLayout1(newVal) {
newVal = newVal.filter((element: any) => element !== undefined)
this.$store.dispatch('gui/saveSetting', {name: 'dashboard.widescreenLayout1', value: newVal })
}
get widescreenLayout2() {
return this.$store.state.gui?.dashboard?.widescreenLayout2?.filter((element: any) => element !== null) ?? []
}
set widescreenLayout2(newVal) {
newVal = newVal.filter((element: any) => element !== undefined)
this.$store.dispatch('gui/saveSetting', {name: 'dashboard.widescreenLayout2', value: newVal })
}
get widescreenLayout3() {
return this.$store.state.gui?.dashboard?.widescreenLayout3?.filter((element: any) => element !== null) ?? []
}
set widescreenLayout3(newVal) {
newVal = newVal.filter((element: any) => element !== undefined)
this.$store.dispatch('gui/saveSetting', {name: 'dashboard.widescreenLayout3', value: newVal })
}
changeState1(name: string, newVal: boolean) {
const index = this.widescreenLayout1.findIndex((element: any) => element.name === name)
if (index !== -1) {
this.widescreenLayout1[index].visable = newVal
this.$store.dispatch('gui/saveSetting', {name: 'dashboard.widescreenLayout1', value: this.widescreenLayout1 })
}
}
changeState2(name: string, newVal: boolean) {
const index = this.widescreenLayout2.findIndex((element: any) => element.name === name)
if (index !== -1) {
this.widescreenLayout2[index].visable = newVal
this.$store.dispatch('gui/saveSetting', {name: 'dashboard.widescreenLayout2', value: this.widescreenLayout2 })
}
}
changeState3(name: string, newVal: boolean) {
const index = this.widescreenLayout3.findIndex((element: any) => element.name === name)
if (index !== -1) {
this.widescreenLayout3[index].visable = newVal
this.$store.dispatch('gui/saveSetting', {name: 'dashboard.widescreenLayout3', value: this.widescreenLayout3 })
}
}
resetLayout() {
this.$store.dispatch('gui/resetLayout', 'widescreenLayout1')
this.$store.dispatch('gui/resetLayout', 'widescreenLayout2')
this.$store.dispatch('gui/resetLayout', 'widescreenLayout3')
}
}
</script>
@@ -282,7 +282,7 @@ export default class SettingsPresetsTab extends Mixins(BaseMixin) {
if (setValues === 0) this.form.boolInvalidMin = true
else if (this.form.valid) {
if (this.form.index) {
if (this.form.index !== null) {
this.$store.dispatch('gui/updatePreset', this.form )
} else this.$store.dispatch('gui/addPreset', this.form )
@@ -2,10 +2,6 @@
<div>
<v-card flat v-if="!form.bool">
<v-card-text>
<settings-row :title="$t('Settings.WebcamTab.ShowOnDashboard')">
<v-switch v-model="boolDashboard" hide-details class="mt-0"></v-switch>
</settings-row>
<v-divider class="my-2"></v-divider>
<settings-row :title="$t('Settings.WebcamTab.ShowInNavigation')">
<v-switch v-model="boolNavi" hide-details class="mt-0"></v-switch>
</settings-row>
+1 -1
View File
@@ -12,7 +12,7 @@
</div>
<div slot="error" class="text-center py-5">
<v-icon x-large>mdi-webcam-off</v-icon>
<div class="subtitle-1 mt-2">{{ $t('Settings.WebcamPanel.UrlNotAvailable') }}</div>
<div class="subtitle-1 mt-2">{{ $t('Panels.WebcamPanel.UrlNotAvailable') }}</div>
</div>
</vue-load-image>
</template>
@@ -59,7 +59,6 @@ export default class MjpegstreamerAdaptive extends Mixins(BaseMixin) {
visibilityChanged(isVisible: boolean) {
this.isVisible = isVisible
if (isVisible) this.refreshFrame()
else {
clearTimeout(this.timer)
@@ -126,7 +125,12 @@ export default class MjpegstreamerAdaptive extends Mixins(BaseMixin) {
}
loadImage(url: string) {
return new Promise(r => { let i = new Image(); i.onload = (() => r(i)); i.src = url; });
return new Promise(r => {
let image = new Image()
image.onload = (() => r(image))
image.onerror = (() => setTimeout(this.refreshFrame, 1000))
image.src = url
});
}
}
</script>
+1 -1
View File
@@ -12,7 +12,7 @@
</div>
<div slot="error" class="text-center py-5">
<v-icon x-large>mdi-webcam-off</v-icon>
<div class="subtitle-1 mt-2">{{ $t('Settings.WebcamPanel.UrlNotAvailable') }}</div>
<div class="subtitle-1 mt-2">{{ $t('Panels.WebcamPanel.UrlNotAvailable') }}</div>
</div>
</vue-load-image>
</template>
+51 -40
View File
@@ -39,14 +39,14 @@
"TitlePreviouslyFrequencyCapped": "Previously Frequency Capped",
"TitlePreviouslyThrottled": "Previously Throttled",
"TitlePreviouslyTemperatureLimited": "Previously Temperature Limited",
"TooltipUnderVoltageDetected": "rPI supply voltage currently below 4.65V",
"TooltipFrequencyCapped": "rPi ARM max frequency is currently limited to 1.2 GHz.",
"TooltipCurrentlyThrottled": "rPi ARM core(s) are currently throttled down.",
"TooltipTemperatureLimitActive": "rPi uC (3A+/3B+ only) temperature is currently above the soft limit (default 60C).",
"TooltipPreviouslyUnderVolted": "rPI supply voltage dropped below 4.65V at least once since the last power-on.",
"TooltipPreviouslyFrequencyCapped": "rPi ARM max frequency was at least once limited to 1.2 GHz since last power-on.",
"TooltipPreviouslyThrottled": "rPI ARM core(s) where throttled down at least once since last power-on.",
"TooltipPreviouslyTemperatureLimited": "rPi uC (3A+/3B+ only) temperature was at least once above the soft limit (default 60C) since last power-on."
"DescriptionUnderVoltageDetected": "rPI supply voltage currently below 4.65V",
"DescriptionFrequencyCapped": "rPi ARM max frequency is currently limited to 1.2 GHz.",
"DescriptionCurrentlyThrottled": "rPi ARM core(s) are currently throttled down.",
"DescriptionTemperatureLimitActive": "rPi uC (3A+/3B+ only) temperature is currently above the soft limit (default 60C).",
"DescriptionPreviouslyUnderVolted": "rPI supply voltage dropped below 4.65V at least once since the last power-on.",
"DescriptionPreviouslyFrequencyCapped": "rPi ARM max frequency was at least once limited to 1.2 GHz since last power-on.",
"DescriptionPreviouslyThrottled": "rPI ARM core(s) where throttled down at least once since last power-on.",
"DescriptionPreviouslyTemperatureLimited": "rPi uC (3A+/3B+ only) temperature was at least once above the soft limit (default 60C) since last power-on."
}
},
"ConnectionDialog": {
@@ -76,14 +76,12 @@
"Router": {
"Dashboard": "Dashboard",
"Printers": "Printers",
"Settings": "Settings",
"Webcam": "Webcam",
"Console": "Console",
"Heightmap": "Heightmap",
"G-Code Files": "G-Code Files",
"History": "History",
"Machine": "Machine",
"Interface": "Interface"
"Machine": "Machine"
},
"Editor": {
"Minimap": "Show minimap",
@@ -149,14 +147,10 @@
"SuccessfullyDeleted": "Successfully deleted {filename}."
},
"Console": {
"send": "send",
"SetupConsole": "Setup Console",
"SendCode": "Send code...",
"Empty": "Empty",
"HideTemperatures": "Hide temperatures",
"CustomFilters": "Custom filters",
"Date": "Date",
"Event": "Event",
"CommandList": "Command list"
},
"Heightmap": {
@@ -235,7 +229,7 @@
},
"Panels": {
"ControlPanel": {
"Controls": "Controls",
"Headline": "Controls",
"SetupControls": "Setup Controls",
"AlternateControls": "Alternate controls",
"InvertX": "Invert X",
@@ -249,12 +243,13 @@
"Z": "Z",
"PleaseConfigureSteps": "Please configure steps",
"SettingsInterfaceControl": "Settings > Interface > Control",
"Home": "Home",
"FeedAmountIn": "Feed amount in",
"FeedrateIn": "Feedrate in",
"Retract": "Retract",
"Extrude": "Extrude",
"Macros": "Macros"
"Extrude": "Extrude"
},
"MacrosPanel": {
"Headline": "Macros"
},
"FarmPrinterPanel": {
"WebcamOff": "Off",
@@ -268,24 +263,24 @@
"FirmwareRestart": "Firmware Restart"
},
"MiniconsolePanel": {
"Console": "Console",
"Headline": "Console",
"SetupConsole": "Setup Console",
"HideTemperatures": "Hide temperatures",
"CustomFilters": "Custom filters",
"SendCode": "Send code...",
"Send": "Send",
"Empty": "Empty"
"SendCode": "Send code..."
},
"MinSettingsPanel": {
"MissingConfiguration": "Missing configuration",
"IsNotDefinedInConfig": "is not defined in config.",
"IncludeMainsailCfg": "Make sure you include the mainsail.cfg in your printer.cfg file.",
"MoreInformation": "more information"
},
"MiscellaneousPanel": {
"PrintSettings": "Print Settings",
"Miscellaneous": "Miscellaneous",
"PrintsettingsPanel": {
"Headline": "Print Settings",
"SpeedFactor": "Speed factor",
"ExtrusionFactor": "Extrusion factor",
"ExtrusionFactor": "Extrusion factor"
},
"MiscellaneousPanel": {
"Headline": "Miscellaneous",
"RunoutSensor": {
"Disabled": "disabled",
"Detected": "detected",
@@ -305,6 +300,7 @@
"Off": "Off"
},
"StatusPanel": {
"Headline": "Status",
"Position": "Position",
"Absolute": "absolute",
"Relative": "relative",
@@ -316,6 +312,7 @@
"CancelPrint": "Cancel print",
"ClearPrintStats": "Clear print stats",
"ReprintJob": "Reprint job",
"Requested": "Requested",
"Speed": "Speed",
"Flow": "Flow",
"Max": "max",
@@ -332,7 +329,7 @@
"Unknown": "Unknown"
},
"ToolsPanel": {
"Temperatures": "Temperatures",
"Headline": "Temperatures",
"Presets": "Presets",
"Cooldown": "Cooldown",
"SetupTemperatures": "Setup Temperatures",
@@ -357,14 +354,24 @@
}
},
"WebcamPanel": {
"Webcam": "Webcam",
"Headline": "Webcam",
"FPS": "FPS",
"All": "All",
"UnknownWebcamService": "Unknown Webcam Service"
"UnknownWebcamService": "Unknown Webcam Service",
"UrlNotAvailable": "URL not available"
},
"ZOffsetPanel": {
"ZOffset": "Z-Offset",
"CurrentOffset": "Current Offset"
"ZoffsetPanel": {
"Headline": "Z-Offset",
"CurrentOffset": "Current Offset",
"Save": "Save",
"ToEndstop": "to Endstop",
"ToProbe": "to Probe",
"SaveInfoHeadline": "Information",
"SaveInfoDescription": "The new z-offset has been calculated and registered. Click on SAVE_CONFIG to store the new z-offset in your printer.cfg and restart Klipper.",
"SaveInfoDescriptionPrint": "The new Z offset has been calculated and registered. After printing, click on SAVE_CONFIG in the top bar to store it in printer.cfg and restart Klipper.",
"SAVE_CONFIG": "SAVE_CONFIG",
"Later": "Later",
"Ok": "OK"
}
},
"Machine": {
@@ -468,7 +475,6 @@
},
"WebcamTab": {
"Webcams": "Webcams",
"ShowOnDashboard": "Show on dashboard",
"ShowInNavigation": "Show in navigation",
"AddWebcam": "add webcam",
"CreateWebcam": "Create Webcam",
@@ -501,6 +507,14 @@
"FlipHorizontally": "Flip webcam horizontally",
"FlipVertically": "Flip webcam vertically"
},
"DashboardTab": {
"Dashboard": "Dashboard",
"Mobile": "Mobile",
"Tablet": "Tablet",
"Desktop": "Desktop",
"Widescreen": "Widescreen",
"ResetLayout": "Reset Layout"
},
"MacrosTab": {
"Macros": "Macros",
"NOMacros": "No macros found..."
@@ -523,15 +537,13 @@
"Console": "Console",
"ShowOnDashboard": "Show on dashboard",
"HideTemperatures": "Hide temperatures",
"CustomFilters": "Custom filter",
"CreateHeadline": "Create filter",
"Name": "Name",
"Regex": "Regex",
"StoreButton": "Store filter",
"UpdateButton": "Update filter",
"EditHeadline": "Edit filter",
"AddFilter": "add filter",
"Rules": "Rules"
"AddFilter": "add filter"
},
"PresetsTab": {
"PreheatPresets": "Preheat Presets",
@@ -558,8 +570,7 @@
"ThemeTab": {
"Theme": "Theme",
"Logo": "Logo",
"Primary": "Primary",
"ResetTheme": "reset Theme"
"Primary": "Primary"
}
}
}
+318 -212
View File
@@ -1,58 +1,73 @@
{
"title": "Français",
"App": {
"Connecting": "Connection",
"To": "avec",
"Failed": "impossible",
"TryAgain": "re-essayer",
"Printers": "Imprimantes",
"CannotNotConnectTo": "Connection impossible",
"ConnectionTo": "Connection avec",
"ConnectionFailed": "Connection impossible",
"SelectPrinter": "Choix de l'imprimante",
"AddPrinter": "Ajouter imprimante",
"EditPrinter": "Edition imprimante",
"UpdatePrinter": "Enregistrer",
"ChangePrinter": "Selection d'imprimante",
"Hello": "Bonjour et bienvenue dans le mode distance de Mainsail!",
"PleaseRememberToAdd": "N'oubliez pas d'ajouter",
"InMoonrakerConf": "dans moonraker.conf section 'cors_domains'.",
"YouCanFindMore": "Plus de détails sur",
"Remotemode": "https://docs.mainsail.xyz/remotemode",
"KlipperControl": "Contrôle de Klipper",
"Restart": "Redémarrage",
"FirmwareRestart": "Redémarrage FIRMWARE",
"RestartServices": "Redémarrage des services",
"Klipper": "Klipper ",
"Moonraker": "Moonraker ",
"PowerDevices": "Module d'alimentation",
"HostControl": "Contrôle de l'hôte",
"Reboot": "Redémarrage",
"Shutdown": "Arrêt",
"Updating": "Mise à jour",
"Recovering": "Réinitialisation",
"done": "Terminé!",
"Empty": "vide",
"Close": "Fermeture",
"SAVECONFIG": "SAVE CONFIG",
"UploadPrint": "Chargement et impression",
"EmergencyStop": "Arrêt d'urgence",
"Uploading": "Chargement"
"TopBar": {
"CannotUploadTheFile": "Chargement du fichier impossible",
"EmergencyStop": "Arrêt d'urgence",
"SAVE_CONFIG": "Sauvegarde de la configuration",
"UploadOfFileSuccessful": "le fichier {file} a été chargé",
"UploadPrint": "Chargement & impression",
"Uploading": "Chargement"
},
"TopCornerMenu": {
"HostControl": "Contrôle de l'hôte",
"KlipperControl": "Contrôle de Klipper",
"KlipperFirmwareRestart": "Rdémarrage du Firmware",
"KlipperRestart": "Redémarrage de Klipper",
"PowerDevices": "Modules d'alimentation",
"Reboot": "Redémarrage",
"RestartServices": "Redémarrage des services",
"Shutdown": "Arrêt"
},
"ThrottledStates": {
"DescriptionUnderVoltageDetected": "rPI alimentation inférieure à 4.65V",
"DescriptionTemperatureLimitActive": "rPi uC (3A+/3B+) température au dessus de la limite software (défaut 60°C).",
"DescriptionPreviouslyUnderVolted": "rPI l'alimentation a chuté au moins une fois sous 4.65V depuis la dernière mise sous tension",
"DescriptionPreviouslyThrottled": "rPI ARM core(s) a été réduit au moins une fois depuis la dernière mise sous tension",
"DescriptionPreviouslyTemperatureLimited": "rPi uC (3A+/3B+ only) température au dessus de la limite software (défaut 60°C) au moins une fois depuis la dernière mise sous tension",
"DescriptionPreviouslyFrequencyCapped": "rPi ARM la fréquence max a été limitée à 1.2 GHz au moins une fois depuis la dernière mise sous tension",
"DescriptionFrequencyCapped": "rPi ARM la fréquence max est limitée à 1.2 GHz",
"DescriptionCurrentlyThrottled": "rPi ARM core(s) sont actuellement réduits",
"TitleUnderVoltageDetected": "Alimentation faible détectée",
"TitleTemperatureLimitActive": "Limite de température active",
"TitlePreviouslyUnderVolted": "précédemment alimentation faible",
"TitlePreviouslyThrottled": "Précédemment fréquence réduite",
"TitlePreviouslyTemperatureLimited": "a été limité par la température",
"TitlePreviouslyFrequencyCapped": "a été limité en fréquence",
"TitleFrequencyCapped": "fréquence réduite",
"TitleCurrentlyThrottled": "actuellement en mode réduit",
"HeadlinePreviouslyFlags": "Etat précédent",
"HeadlineCurrentFlags": "Etat actuel"
},
"UpdateDialog": {
"Close": "Fermer",
"Empty": "Vide",
"Recovering": "Restaurer {software}...",
"Updating": "Mise à jour {software}...",
"UpdatingDone": "Mise à jour {software} effectuée!",
"RecoveringDone": "Restauration {software} effectuée!"
}
},
"Router": {
"Dashboard": "Tableau de bord",
"Printers": "Imprimantes",
"Settings": "Réglages",
"Webcam": "Caméra",
"Console": "Console",
"Heightmap": "Maillage",
"G-Code Files": "Fichiers G-Code",
"History": "Historique",
"Machine": "Machine",
"Interface": "Interface"
"Machine": "Machine"
},
"Editor": {
"Minimap": "Afficher minimap"
"Minimap": "Afficher minimap",
"ConfigReference": "Référence de configuration",
"Downloading": "Téléchargement",
"FailedSave": "Le fichier {filename} n'a pas pu être téléchargé",
"SaveClose": "Sauvegarde et fermeture",
"SaveRestart": "Sauvegarde et redémarrage",
"SuccessfullySaved": "Le fichier {filename} a été sauvegardé",
"Uploading": "Téléchargement"
},
"Files": {
"GCodeFiles": "Fichiers G-Code",
@@ -77,14 +92,12 @@
"Rename": "Renommer",
"Delete": "Effacer",
"StartJob": "Démarrer",
"DoYouWantToStart": "Voulez-vous imprimer",
"No": "Non",
"Yes": "Oui",
"NewDirectory": "Nouveau dossier",
"PleaseEnterANewDirectoryName": "Entrez le nom du nouveau dossier",
"RenameFile": "Renommer le fichier",
"EditFile": "Editer Fichier",
"SaveClose": "Sauvegarder et fermer",
"Name": "Nom",
"Cancel": "Annuler",
"Create": "Créer",
@@ -97,28 +110,35 @@
"LayerHeight": "Hauteur de couche",
"FilamentUsage": "Utilisation de filament",
"PrintTime": "Temps d'impression",
"Slicer": "Trancheur"
"Slicer": "Trancheur",
"DeleteDirectory": "Effacer le dossier",
"DeleteDirectoryQuestion": "Voulez vous vraiment effacer le dossier \"{name}\" et tout son contenu ?",
"DoYouWantToStartFilename": "Voulez vous démarrer {filename} ?",
"Downloading": "Téléchargement en cours",
"FilamentWeight": "Poids du filament",
"SuccessfullyCreated": "Fichier {filename} créé",
"SuccessfullyDeleted": "Fichier {filename} éffacé",
"SuccessfullyMoved": "Fichier {filename} déplacé",
"SuccessfullyRenamed": "Fichier {filename} renommé",
"SuccessfullyUploaded": "Fichier {filename} mis à jour"
},
"Console": {
"send": "envoi",
"SetupConsole": "Configuration console",
"SendCode": "Envoyer la commande",
"Empty": "vide",
"HideTemperatures": "Cacher les températures",
"CustomFilters": "Filtres utilisateur",
"Date": "Date",
"Event": "Evénement"
"CommandList": "Liste des commandes"
},
"Heightmap": {
"Heightmap": "Profil de hauteur",
"TitleHomeAll": "Référence tous",
"TitleHomeAll": "Réf. tous",
"Clear": "effacer",
"TitleClear": "Effacer Maillage",
"Calibrate": "calibration",
"TitleCalibrate": "Calibrer nouveau Maillage",
"NoBedMeshHasBeenLoadedYet": "Aucun profil chargé.",
"NoBedMeshHasBeenLoadedYet": "Aucun profil chargé",
"Probed": "Mesuré",
"Mesh": "Maillage calculé",
"Mesh": "Calculé",
"Scale": "Echelle",
"Profiles": "Profils",
"Deleted": "effacé",
@@ -130,7 +150,10 @@
"DoYouReallyWantToCalibrate": "Voulez-vous démarrer la calibration du Maillage plateau ?",
"DeleteBedMeshProfile": "Effacer profil Maillage",
"DoYouReallyWantToDelete": "Voulez-vous effacer le profil ?",
"Remove": "supprimer"
"Remove": "supprimer",
"Flat": "Plat",
"NoProfile": "Aucun profil disponible",
"Wireframe": "Maillage"
},
"History": {
"Statistics": "Statistiques",
@@ -142,7 +165,7 @@
"FilamentUsage": "Filament consommé",
"PrinttimeAvg": "Temps moyen d'impression",
"PrintHistory": "Historique",
"TitleRefreshHistory": "Rafraîchir l’historique",
"TitleRefreshHistory": "Rafraîchir l'historique",
"TitleSettings": "Réglages",
"Search": "Recherche",
"Jobs": "Travaux",
@@ -174,11 +197,13 @@
"Slicer": "Trancheur",
"SlicerVersion": "Version trancheur",
"HistoryFilamentUsage": "Filament",
"HistoryPrinttimeAVG": "Impressions"
"HistoryPrinttimeAVG": "Impressions",
"EstimatedFilamentWeight": "Estimation poids de filament",
"ShowStatusName": "Afficher \"{name}\" ({count})"
},
"Panels": {
"ControlPanel": {
"Controls": "Contrôles",
"Headline": "Contrôles",
"SetupControls": "Réglages",
"AlternateControls": "Commandes en croix",
"InvertX": "Inversion X",
@@ -192,48 +217,50 @@
"Z": "Z",
"PleaseConfigureSteps": "Configurez Pas",
"SettingsInterfaceControl": "Réglages > Interface > Contrôle",
"Home": "Référence",
"FeedAmountIn": "Longueur à extraire",
"FeedrateIn": "Vitesse d'extrusion",
"Retract": "Rétractation",
"Extrude": "Extrusion",
"Macros": "Macros"
"Extrude": "Extrusion"
},
"MacrosPanel": {
"Headline": "Macros"
},
"FarmPrinterPanel": {
"WebcamOff": "Arrêt"
"WebcamOff": "Arrêt",
"SwitchToPrinter": "Changer d'imprimante"
},
"KlippyStatePanel": {
"KlippyState": "Etat-Klippy",
"KlippyInfo": "Moonraker ne peut pas se connecter àKlippy!\nContrôlez que le service Klipper est actif et qu'un UDS (Unix Domain Socket) est configuré.",
"Restart": "Redémarrage",
"FirmwareRestart": "Redémarrage Firmware"
"FirmwareRestart": "Redémarrage Firmware",
"KlipperCheck": "Contrôlez que le sevice Klipper est actif et qu'un UDS (Unix Domain Socket) est configuré",
"MoonrakerCannotConnect": "Moonraker n'arrive pas à se connecter à Klipper"
},
"MiniconsolePanel": {
"Console": "Console",
"Headline": "Console",
"SetupConsole": "Réglage Console",
"HideTemperatures": "Cacher températures",
"CustomFilters": "Filtres utilisateur",
"SendCode": "Envoyer la commande...",
"Send": "Envoi",
"Empty": "vide"
"SendCode": "Envoyer la commande..."
},
"MinSettingsPanel": {
"MissingConfiguration": "Configuration absente",
"IsNotDefinedInConfig": "n'est pas défini dans le fichier de configuration.",
"MoreInformation": "plus d'information"
"MoreInformation": "plus d'information",
"IncludeMainsailCfg": "Soyez sur d'avoir inclus \"mainsail.cfg\" dans votre fichier \"printer.cfg\""
},
"MiscellaneousPanel": {
"PrintSettings": "Réglages d'impression",
"Miscellaneous": "Divers",
"Headline": "Divers",
"RunoutSensor": {
"Detected": "détecté",
"Disabled": "inactif",
"Empty": "vide"
}
},
"PrintsettingsPanel": {
"Headline": "Réglages d'impression",
"SpeedFactor": "Facteur de vitesse",
"ExtrusionFactor": "Facteur d'extrusion"
},
"MoonrakerFailedComponentsPanel": {
"MoonrakerFailedComponents": "Composants Moonraker en erreur",
"MoonrakerErrorInfo": "Une erreur a été détectée lors du chargement des composants de Moonraker. Contrôlez le fichier Log pour plus d'informations.",
"FollowingPluginHasAnError": "Le plugin suivant a une erreur:",
"DownloadLog": "Téléchargement fichier Log"
},
"PowerControlPanel": {
"PowerControl": "Alimentation",
"Error": "Erreur",
@@ -241,6 +268,7 @@
"Off": "Arrêt"
},
"StatusPanel": {
"Headline": "Status",
"Position": "Position",
"Absolute": "absolu",
"Relative": "relatif",
@@ -265,10 +293,11 @@
"Total": "Total",
"Slicer": "Trancheur",
"ETA": "TEA",
"Unknown": "Inconnu"
"Unknown": "Inconnu",
"Requested": "Requis"
},
"ToolsPanel": {
"Temperatures": "Températures",
"Headline": "Températures",
"Presets": "Préréglages",
"Cooldown": "Refroidissement",
"SetupTemperatures": "Réglages Températures",
@@ -282,183 +311,260 @@
"Min": "min",
"Max": "max",
"Avg": "Moyenne",
"UNKNOWN": "INCONNU",
"CurrentTemperature": "température actuelle",
"TargetTemperature": "température cible",
"PwmPower": "puissance PWM",
"ShowNameInChart": "Afficher {name} dans le graphique",
"ShowNameInList": "Afficher {name} dans la liste",
"TemperaturesInChart": "Température [°C]"
"TemperaturesInChart": "Température [°C]",
"Dataset": {
"Power": "Puissance-PWM",
"Speed": "Vitesse-PWM",
"Target": "température cible",
"Temperature": "température actuelle"
}
},
"WebcamPanel": {
"Webcam": "Caméra",
"Headline": "Caméra",
"FPS": "Ips",
"All": "Tous",
"UnknownWebcamService": "Service Caméra inconnu"
"UnknownWebcamService": "Service Caméra inconnu",
"UrlNotAvailable": "URL non disponible"
},
"ZOffsetPanel": {
"ZBabyStepping": "Z micro pas",
"CurrentOffset": "Offset actuel"
"ZoffsetPanel": {
"Headline": "Offset Z",
"CurrentOffset": "Offset actuel",
"Save": "Sauvegarder",
"SAVE_CONFIG": "SAVE_CONFIG",
"ToEndstop": "jusqu'au fin de course",
"ToProbe": "jusqu'à la sonde",
"SaveInfoHeadline": "Information",
"SaveInfoDescriptionPrint": "Le nouvel offset Z a été calculé et enregistré. Après l'impression cliquez sur SAVE_CONFIG dans la barre du haut afin de sauvegarder les valeurs dans \"printer.cfg\" et redémarrez Klipper.",
"SaveInfoDescription": "Le nouvel offset Z a été calculé et enregistré. Cliquez sur SAVE_CONFIG afin de sauvegarder les valeurs dans \"printer.cfg\" et redémarrez Klipper.",
"Ok": "Ok",
"Later": "Plus tard"
},
"MoonrakerStatePanel": {
"DownloadLog": "Téléchargement log",
"FollowingPluginHasAnError": "Le Plug-in suivant a une erreur",
"MoonrakerErrorInfo": "Une erreur a été détectée lors du chargement d'un composant de Moonraker. Contrôlez le fichier log et corrigez.",
"MoonrakerWarnings": "Avertissement Moonraker"
}
},
"Settings": {
"ConfigFilesPanel": {
"ConfigFiles": "Fichiers de configuration",
"SetupCurrentList": "Réglage liste actuelle",
"HiddenFiles": "Fichiers cachés",
"CurrentPath": "Chemin actuel",
"Files": "Fichiers",
"AllFiles": "Tous",
"Empty": "vide",
"EditFile": "Editer fichier",
"Download": "Télécharger",
"Rename": "Renommer",
"Delete": "Effacer",
"PleaseStandBy": "Veuillez attendre...",
"ConfigReference": "Référence de configuration",
"SaveClose": "Sauvegarder et fermer",
"SaveRestart": "Sauvegarder et redémarrer",
"RenameFile": "Renommer fichier",
"Cancel": "Annuler",
"ConsoleTab": {
"AddFilter": "ajouter filter",
"Console": "Console",
"CreateHeadline": "Créer filtre",
"EditHeadline": "Editer filtre",
"HideTemperatures": "Cacher températures",
"Name": "Nom",
"Cancel": "Annuler",
"Create": "Créer",
"CreateFile": "Créer un fichier",
"CreateFolder": "Créer un dossier",
"Uploading": "Téléchargement",
"Filesize": "Taille",
"LastModified": "Dernière modification"
"Regex": "Regex",
"ShowOnDashboard": "Afficher sur l'écran principal",
"StoreButton": "Sauvegarder filtre",
"UpdateButton": "Mettre à jour filtre"
},
"ConsolePanel": {
"Console": "Console",
"HideTemperatures": "Cacher les messages de températures",
"CustomFilters": "Filtres utilisateur",
"Rules": "Règles"
},
"ControlPanel": {
"ControlTab": {
"Control": "Contrôle",
"EnableCross": "Activer mouvements en croix",
"InvertXMovement": "Inversion X",
"InvertYMovement": "Inversion Y",
"InvertZMovement": "Inversion Z",
"MoveDistancesEInMm": "Déplacement E en mm",
"MoveDistancesInMm": "Déplacement en mm",
"MoveDistancesXYInMm": "Déplacement XY en mm",
"MoveDistancesZInMm": "Déplacement Z en mm",
"SpeedEInMms": "Vitesse E en mm/s",
"SpeedXY": "Vitesse XY",
"SpeedZ": "Vitesse Z",
"EnableCross": "Activer les mouvements en croix",
"MoveDistancesInMm": "Distance de déplacement [mm]",
"InvertXMovement": "Mouvement X inverse",
"InvertYMovement": "Mouvement Y inverse",
"InvertZMovement": "Mouvement Z inverse",
"MoveDistancesXYInMm": "Distance de déplacement XY [mm]",
"MoveDistancesZInMm": "Distance de déplacement Z [mm]",
"MoveDistancesEInMm": "Longueur d'extrusion E [mm]",
"Extruder": "Extrudeur",
"SpeedEInMms": "Vitesse d'extrusion E [mm/s]"
"SpeedZ": "Vitesse Z"
},
"DashboardPanel": {
"Dashboard": "Tableau de bord",
"Webcam": "Caméra",
"Tempchart": "Graphique de température",
"Console": "Console",
"ChartUpdateInterval": "Période mise à jour du graphique",
"DatapointInterval": "Intervale entre deux points"
},
"EndstopPanel": {
"Endstops": "Fins de course",
"Endstop": "Fin de course",
"TRIGGERED": "ACTIF",
"open": "OUVERT",
"EndstopInfo": "Pressez le bouton sync en bas à droite afin d'actualiser l'état des fins de course."
},
"GeneralPanel": {
"Edit": "Edition",
"GeneralTab": {
"BoolBigThumbnail": "Grande miniature",
"BoolBigThumbnailDescription": "Afficher une grande miniature à l'écran durant l'impression",
"DisplayCANCEL_PRINT": "Afficher \"Annuler impression\"",
"DisplayCANCEL_PRINTDescription": "Affiche le bouton \"Annuler impression\" de manière permanente. Pas de confirmation demandée",
"DisplayZOffset": "Afficher Offset-Z",
"DisplayZOffsetDescription": "Autrement le panneau n'apparait qu'une fois l'impression démarrée",
"FactoryInfo": "Voulez-vous vraiment restorer Mainsail aux réglage d'usine ?",
"FactoryReset": "Réglages d'usine",
"General": "Général",
"PrinterName": "Nom de l'imprimante",
"Language": "Langue",
"DisplayCANCEL_PRINT": "Afficher CANCEL_PRINT",
"DisplayZOffset": "Afficher le panneau Z-Offset",
"ShowCANCEL_PRINT": "Affiche le bouton CANCEL_PRINT de manière permanente. Pas de confirmation nécessaire.",
"ShowZOffset": "Affiche le panneau Z-Offset de manière permanente.",
"FactoryReset": "Configuration d'origine",
"FactoryInfo": "Voulez-vous vraiment remettre Mainsail à sa configuration d'origine ?",
"ResetMainsail": "MAZ mainsail"
"PrinterName": "Nom de l'imprimante",
"ResetMainsail": "Mise à zéro Mainsail"
},
"LimitsPanel": {
"MachineLimits": "Limites de l'imprimante",
"Velocity": "Vitesse",
"Acceleration": "Accélération",
"Deceleration": "Décélération",
"SquareCornerVelocity": "Vitesse des angles droits"
},
"LogfilesPanel": {
"Logfiles": "Fichiers Log"
},
"MacrosPanel": {
"InterfaceSettings": "Réglages interface",
"MacrosTab": {
"Macros": "Macros",
"NOMacros": "Pas de macros trouvées..."
"NOMacros": "Pas de macros trouvées"
},
"PresetsPanel": {
"PreheatPresets": "Préréglage de préchauffage",
"Cooldown": "Refroidissement",
"DashboardTab": {
"Dashboard": "Tableau de bord",
"Mobile": "Mobile",
"Tablet": "Tablet",
"Desktop": "Desktop",
"Widescreen": "Widescreen",
"ResetLayout": "réinitialisation de la mise en page"
},
"PresetsTab": {
"AddPreset": "ajouter préréglage",
"Cooldown": "Refroidissement",
"CreateHeadline": "Créer préréglage",
"CustomGCode": "G-Code utilisateur",
"EditCooldown": "Editer refroidissement",
"EditHeadline": "Editer préréglage",
"Name": "Nom",
"CustomGCode": "G-Code utilisateur",
"PresetInfo": "Vous devez indiquer au minimum une température cible ou un gcode utilisateur.",
"StoreButton": "Enregistrer préréglage",
"PreheatPresets": "Préréglage chauffage",
"PresetInfo": "Vous devez définir une température cible ou un G-Code utilisateur",
"StoreButton": "Sauvegarder préréglage",
"UpdateButton": "Mise à jour préréglage",
"EditCooldown": "Editer refroidissement",
"UpdateCooldown": "Mise à jour refroidissement"
},
"RemotePrintersPanel": {
"RemotePrinters": "Imprimantes distantes",
"RemotePrintersTab": {
"AddPrinter": "Ajouter imprimante",
"EditPrinter": "Editer imprimante",
"Hostname": "Nom d'hôte",
"Port": "Port",
"RemotePrinters": "Imprimante distante",
"UpdatePrinter": "Mise à jour imprimante"
},
"RunoutPanel": {
"Detected": "détecté",
"Empty": "vide"
"ThemeTab": {
"Logo": "Logo",
"Primary": "Primaire",
"Theme": "Thème"
},
"UpdatePanel": {
"UpdateManager": "Contrôleur de mise à jour",
"CheckForUpdates": "Contrôle des mises à jour",
"System": "Système",
"PackagesCanBeUpgraded": "les paquets ne peuvent être mis à jour",
"OSPackages": "Paquets système",
"Commits": "Publications",
"CommittedAt": "publié le",
"UpToDate": "à jour",
"Detached": "non lié",
"Update": "mise à jour",
"Upgrade": "Mise à jour (version)",
"Dirty": "modifié",
"Invalid": "invalide",
"Unknown": "inconnu",
"ERROR": "ERREUR"
},
"WebcamPanel": {
"Webcams": "Caméras",
"ShowInNavigation": "Afficher dans la navigation",
"WebcamTab": {
"AddWebcam": "Ajouter caméra",
"CreateWebcam": "Créer caméra",
"EditWebcam": "Editer caméra",
"SaveWebcam": "Sauvegarder Caméra",
"UpdateWebcam": "Mise à jour caméra",
"IconPrinter": "Imprimante",
"IconNozzle": "Buse",
"FlipHorizontally": "Miroir horizontal",
"FlipVertically": "Miroir vertical",
"IconBed": "Plateau",
"IconCam": "Caméra",
"IconFilament": "Filament",
"IconDoor": "Porte",
"IconMcu": "MCU",
"IconFilament": "Filament",
"IconHot": "Chaud",
"Mjpegstreamer": "Flux MJPEG",
"MjpegstreamerAdaptive": "Flux MJPEG Adaptif (experimental)",
"Ipstream": "Caméra IP ",
"Required": "requis",
"NameAlreadyExists": "Nom existe déjà",
"UrlNotAvailable": "URL non disponible",
"IconMcu": "MCU",
"IconNozzle": "Buze",
"IconPrinter": "Imprimante",
"Ipstream": "Caméra IP",
"Mjpegstreamer": "Flux-MJPEG",
"MjpegstreamerAdaptive": "Flux-MJPEG Adaptatif (expérimental)",
"Name": "Nom",
"WebcamURL": "URL caméra",
"NameAlreadyExists": "Nom existe déjà",
"Required": "requis",
"SaveWebcam": "sauvegarde caméra",
"Service": "Service",
"TargetFPS": "Ips cible",
"FlipHorizontally": "Miroir horizontal",
"FlipVertically": "Miroir vertical"
"ShowInNavigation": "Afficher dans la navigation",
"TargetFPS": "IPS destination",
"UpdateWebcam": "Mise à jour Caméra",
"UrlNotAvailable": "URL non disponible",
"Uv4lMjpeg": "UV4L-MJPEG",
"WebcamURL": "URL Caméra",
"Webcams": "Caméras"
}
},
"ConnectionDialog": {
"CannotConnectTo": "Connection avec Moonraker ({host}) impossible",
"CheckMoonrakerLog": "Si ce message apparait régulièrement, contrôlez le fichier log à l'adresse suivante:",
"Connecting": "Connection avec {host}",
"Failed": "Connection échouée",
"TryAgain": " répétez"
},
"Machine": {
"ConfigFilesPanel": {
"AllFiles": "Tous",
"Cancel": "Annuler",
"ConfigFiles": "Fichiers de configuration",
"Create": "Créer",
"CreateDirectory": "Nouveau dossier",
"CreateFile": "Nouveau fichier",
"CurrentPath": "Chemin actuel",
"Delete": "Effacer",
"DeleteDirectory": "Effacer dossier",
"DeleteDirectoryQuestion": "Voulez-vous vraiment effacer le dossier \"{name}\" et son contenu ?",
"Download": "Téléchargement",
"EditFile": "Editer fichier",
"Empty": "vide",
"Files": "Fichiers",
"Filesize": "Taille",
"Free": "Libre",
"FreeDisk": "Disque libre",
"HiddenFiles": "Fichiers cachés",
"LastModified": "Dernière modification",
"Name": "Nom",
"PleaseStandBy": "Attendez",
"RefreshDirectory": "Rafraichir le dossier",
"Rename": "Renommer",
"RenameDirectory": "Renommer le dossier",
"RenameFile": "Renommer le fichier",
"SetupCurrentList": "Ajuster la liste",
"ShowFile": "Afficher le fichier",
"Total": "Total",
"UploadFile": "Chargement d'un fichier",
"Uploading": "Téléchargement",
"Used": "Utilisé"
},
"EndstopPanel": {
"Endstop": "Fin de course",
"EndstopInfo": "Pressez le bouton de synchronisation en bas à droite afin de recharger l'état des fin de course",
"Endstops": "Fin de course",
"open": "inactif",
"TRIGGERED": "actif"
},
"LimitsPanel": {
"Acceleration": "Accélération",
"Deceleration": "Decélération",
"MachineLimits": "Limites de l'imprimante",
"SquareCornerVelocity": "Vitesse des angles droits",
"Velocity": "Vitesse"
},
"LogfilesPanel": {
"Logfiles": "Fichiers log"
},
"SystemPanel": {
"Awake": "Actif",
"Constants": "Constantes",
"Frequency": "Fréquence",
"HostDetails": "Détails hôte",
"LastStats": "Dern. Stats.",
"Load": "Charge",
"Memory": "Mémoire",
"Os": "OS",
"SystemLoad": "Charge Système",
"Version": "Version"
},
"UpdatePanel": {
"CheckForUpdates": "Contrôle de mises à jour",
"Commits": "Publié",
"CommittedAt": "Publié à",
"Detached": "détaché",
"Dirty": "différent",
"ERROR": "Erreur",
"Invalid": "invalide",
"OSPackages": "Paquets système",
"PackagesCanBeUpgraded": "Les paquets peuvent être mis à jour",
"System": "Système",
"Unknown": "inconnu",
"UpToDate": "à jour",
"Update": "mise à jour",
"UpdateManager": "Gestionnaire de mises à jour",
"Upgrade": "mise à jour"
}
},
"SelectPrinterDialog": {
"AddPrinter": "Ajout d'imprimante",
"CannotConnectTo": "Connection vers {host} impossible",
"ChangePrinter": "Changement d'imprimante",
"Connecting": "Connection vers {host}",
"ConnectionFailed": "Connection impossible",
"EditPrinter": "Edition imprimante",
"Hello": "Bonjour et bienvenue dans le mode distance de Mainsail",
"HostnameInvalid": "Nom d'hôte/IP invalide",
"HostnameRequired": "Nom d'hôte/IP requis",
"PortRequired": "Port requis",
"RememberToAdd": "Merci d'ajouter {cors} dans moonraker.conf rubrique 'cors_domains'.",
"SelectPrinter": "Choisir imprimante",
"TryAgain": "re-essayer",
"UpdatePrinter": "Mise à jour imprimante",
"YouCanFindMore": "Vous pouvez trouver plus de détails ici:"
}
}
+88 -23
View File
@@ -1,20 +1,58 @@
<template>
<v-row>
<v-col class="col-sm-12 col-md-5">
<min-settings-panel></min-settings-panel>
<moonraker-state-panel></moonraker-state-panel>
<klippy-state-panel></klippy-state-panel>
<status-panel></status-panel>
<webcam-panel v-if="showDashboardWebcam"></webcam-panel>
<z-offset-panel></z-offset-panel>
<control-panel></control-panel>
<miscellaneous-panel></miscellaneous-panel>
</v-col>
<v-col class="col-sm-12 col-md-7">
<tools-panel></tools-panel>
<miniconsole-panel v-if="showDashboardConsole"></miniconsole-panel>
</v-col>
</v-row>
<div>
<v-row v-if="isMobile">
<v-col>
<status-panel></status-panel>
<template v-for="component in mobileLayout">
<component v-bind:is="component.name+'-panel'" :key="'dashboard-mobileLayout-'+component.name"></component>
</template>
</v-col>
</v-row>
<v-row v-else-if="isTablet">
<v-col class="col-6">
<status-panel></status-panel>
<template v-for="component in tabletLayout1">
<component v-bind:is="component.name+'-panel'" :key="'dashboard-tabletLayout1-'+component.name"></component>
</template>
</v-col>
<v-col class="col-6">
<template v-for="component in tabletLayout2">
<component v-bind:is="component.name+'-panel'" :key="'dashboard-tabletLayout2-'+component.name"></component>
</template>
</v-col>
</v-row>
<v-row v-else-if="isDesktop">
<v-col class="col-5">
<status-panel></status-panel>
<template v-for="component in desktopLayout1">
<component v-bind:is="component.name+'-panel'" :key="'dashboard-desktopLayout1-'+component.name"></component>
</template>
</v-col>
<v-col class="col-7">
<template v-for="component in desktopLayout2">
<component v-bind:is="component.name+'-panel'" :key="'dashboard-desktopLayout2-'+component.name"></component>
</template>
</v-col>
</v-row>
<v-row v-else-if="isWidescreen">
<v-col class="col-3">
<status-panel></status-panel>
<template v-for="component in widescreenLayout1">
<component v-bind:is="component.name+'-panel'" :key="'dashboard-desktopLayout1-'+component.name"></component>
</template>
</v-col>
<v-col class="col-5">
<template v-for="component in widescreenLayout2">
<component v-bind:is="component.name+'-panel'" :key="'dashboard-desktopLayout2-'+component.name"></component>
</template>
</v-col>
<v-col class="col-4">
<template v-for="component in widescreenLayout3">
<component v-bind:is="component.name+'-panel'" :key="'dashboard-desktopLayout3-'+component.name"></component>
</template>
</v-col>
</v-row>
</div>
</template>
<script lang="ts">
@@ -28,17 +66,21 @@ import MoonrakerStatePanel from "@/components/panels/MoonrakerStatePanel.vue";
import StatusPanel from "@/components/panels/StatusPanel.vue";
import ToolsPanel from "@/components/panels/ToolsPanel.vue";
import WebcamPanel from "@/components/panels/WebcamPanel.vue";
import ZOffsetPanel from "@/components/panels/ZOffsetPanel.vue";
import ZoffsetPanel from "@/components/panels/ZoffsetPanel.vue";
import ControlPanel from "@/components/panels/ControlPanel.vue";
import MacrosPanel from "@/components/panels/MacrosPanel.vue";
import MiscellaneousPanel from "@/components/panels/MiscellaneousPanel.vue";
import MiniconsolePanel from "@/components/panels/MiniconsolePanel.vue";
import PrintsettingsPanel from "@/components/panels/PrintsettingsPanel.vue";
@Component({
components: {
PrintsettingsPanel,
MiniconsolePanel,
MiscellaneousPanel,
ControlPanel,
ZOffsetPanel,
MacrosPanel,
ZoffsetPanel,
WebcamPanel,
ToolsPanel,
StatusPanel,
@@ -48,13 +90,36 @@ import MiniconsolePanel from "@/components/panels/MiniconsolePanel.vue";
}
})
export default class PageDashboard extends Mixins(BaseMixin) {
get showDashboardWebcam() {
return this.$store.state.gui.webcam.boolDashboard
get mobileLayout() {
return this.$store.state.gui.dashboard.mobileLayout.filter((element: any) => element.visable) ?? []
}
get showDashboardConsole() {
return this.$store.state.gui.console.boolDashboard
get tabletLayout1() {
return this.$store.state.gui.dashboard.tabletLayout1.filter((element: any) => element.visable) ?? []
}
get tabletLayout2() {
return this.$store.state.gui.dashboard.tabletLayout2.filter((element: any) => element.visable) ?? []
}
get desktopLayout1() {
return this.$store.state.gui.dashboard.desktopLayout1.filter((element: any) => element.visable) ?? []
}
get desktopLayout2() {
return this.$store.state.gui.dashboard.desktopLayout2.filter((element: any) => element.visable) ?? []
}
get widescreenLayout1() {
return this.$store.state.gui.dashboard.widescreenLayout1.filter((element: any) => element.visable) ?? []
}
get widescreenLayout2() {
return this.$store.state.gui.dashboard.widescreenLayout2.filter((element: any) => element.visable) ?? []
}
get widescreenLayout3() {
return this.$store.state.gui.dashboard.widescreenLayout3.filter((element: any) => element.visable) ?? []
}
}
</script>
+5 -79
View File
@@ -193,7 +193,7 @@
</template>
</template>
</td>
<td class=" ">{{ item.filename }} {{ getJobStatus(item) }}</td>
<td class=" ">{{ item.filename }}</td>
<td class="text-center">
<v-tooltip top v-if="getJobStatus(item)">
<template v-slot:activator="{ on, attrs }">
@@ -201,7 +201,7 @@
<v-icon small :color="getStatusColor(getJobStatus(item))">{{ getStatusIcon(getJobStatus(item)) }}</v-icon>
</span>
</template>
<span>{{ getJobStatus(item).replaceAll("_", " ") }}</span>
<span>{{ getJobStatus(item).replace(/_/g, " ") }}</span>
</v-tooltip>
</td>
<td class="text-no-wrap text-right" v-if="headers.find(header => header.value === 'size').visible">{{ item.isDirectory ? '--' : formatFilesize(item.size) }}</td>
@@ -349,83 +349,9 @@
</v-card-actions>
</v-card>
</v-dialog>
<!--
<v-snackbar
:timeout="-1"
:value="true"
fixed
centered
bottom
dark
v-model="editor.showLoader"
>
<div>
{{ $t('Files.Downloading') }}<br />
<strong>{{ editor.item.filename }}</strong>
</div>
<span v-if="editor.progress.total > 1" class="mr-1">({{ formatFilesize(editor.progress.loaded) }}/{{ formatFilesize(editor.progress.total) }})</span>
{{ Math.round(100 * editor.progress.loaded / editor.progress.total) }} % @ {{ editor.progress.speed }}/s<br />
<v-progress-linear class="mt-2" :value="100 * editor.progress.loaded / editor.progress.total"></v-progress-linear>
<template v-slot:action="{ attrs }">
<v-btn
color="red"
text
v-bind="attrs"
@click="cancelDownload(); editor.showLoader = false"
style="min-width: auto;"
>
<v-icon class="0">mdi-close</v-icon>
</v-btn>
</template>
</v-snackbar>
<v-dialog v-model="editor.show" fullscreen :transition="null" @close="closeEditor()">
<v-card class="fill-height">
<v-toolbar dark color="primary">
<v-btn icon dark @click="closeEditor()">
<v-icon>mdi-close</v-icon>
</v-btn>
<v-toolbar-title>{{ editor.item.filename }}</v-toolbar-title>
<v-spacer></v-spacer>
<v-toolbar-items>
<v-menu
transition="slide-y-transition"
:close-on-content-click="false"
offset-y
bottom
left
>
<template #activator="{ on, attrs }">
<v-btn
dark
icon
v-bind="attrs"
v-on="on"
>
<v-icon>mdi-cog</v-icon>
</v-btn>
</template>
<v-list dense>
<v-list-item class="minheight30">
<v-checkbox v-model="editorMinimap" :label="$t('Editor.Minimap')"></v-checkbox>
</v-list-item>
</v-list>
</v-menu>
<v-btn dark text @click="saveFile">
<v-icon small class="mr-1">mdi-content-save</v-icon>
<span class="d-none d-sm-inline">{{ $t('Files.SaveClose') }}</span>
</v-btn>
</v-toolbar-items>
</v-toolbar>
<div v-if="editor.init" id="editor" class="mainsail-editor"></div>
</v-card>
</v-dialog>
-->
</div>
</template>
<script lang="ts">
import {Component, Mixins, Watch} from "vue-property-decorator";
import BaseMixin from "@/components/mixins/base";
import axios from "axios";
@@ -958,7 +884,7 @@ export default class PageFiles extends Mixins(BaseMixin) {
thumb.height >= 32 && thumb.height <= 64
)
if (thumbnail && 'relative_path' in thumbnail) return this.apiUrl+"/server/files/"+this.currentPath+"/"+thumbnail.relative_path
if (thumbnail && 'relative_path' in thumbnail) return this.apiUrl+"/server/files/"+this.currentPath+"/"+thumbnail.relative_path+"?timestamp="+item.modified.getTime()
}
return ""
@@ -968,7 +894,7 @@ export default class PageFiles extends Mixins(BaseMixin) {
if (item.thumbnails?.length) {
const thumbnail = item.thumbnails.find(thumb => thumb.width >= 300 && thumb.width <= 400)
if (thumbnail && 'relative_path' in thumbnail) return this.apiUrl+"/server/files/"+this.currentPath+"/"+thumbnail.relative_path
if (thumbnail && 'relative_path' in thumbnail) return this.apiUrl+"/server/files/"+this.currentPath+"/"+thumbnail.relative_path+"?timestamp="+item.modified.getTime()
}
return ""
@@ -1058,7 +984,7 @@ export default class PageFiles extends Mixins(BaseMixin) {
this.$store.dispatch('editor/openFile', {
root: 'gcodes',
path: path,
path: path !== "" ? "/"+path : "",
filename: item.filename
})
}
+12 -12
View File
@@ -45,22 +45,22 @@
</v-card-text>
</template>
<template v-else>
<v-card-text class="py-0">
<v-card-text class="py-0 px-0">
<v-row>
<v-col class="">
<ECharts
ref="heightmap"
:option="chartOptions"
:init-options="{ renderer: 'svg' }"
style="height: 400px; width: 100%; overflow: auto;"
style="height: 400px; width: 100%; overflow: hidden;"
></ECharts>
</v-col>
</v-row>
<v-row>
<v-col class=" pt-0 pb-3 col-auto">
<v-col class="col-12 col-sm-auto pt-0 pb-0 pl-sm-6 d-flex justify-center justify-sm-start">
<v-switch v-model="scaleVisualMap" :label="$t('Heightmap.Scale')" class="mt-0 ml-5"></v-switch>
</v-col>
<v-col class="d-flex justify-center pt-0 pb-3 pr-16">
<v-col class="d-flex justify-center pt-0 pb-6 pb-sm-3 pr-sm-16">
<v-checkbox v-model="showProbed" :label="$t('Heightmap.Probed')" hide-details class="mx-3 mt-0" ></v-checkbox>
<v-checkbox v-model="showMesh" :label="$t('Heightmap.Mesh')" hide-details class="mx-3 mt-0" ></v-checkbox>
<v-checkbox v-model="showFlat" :label="$t('Heightmap.Flat')" hide-details class="mx-3 mt-0" ></v-checkbox>
@@ -253,10 +253,10 @@ export default class PageHeightmap extends Mixins(BaseMixin) {
color: ['#313695', '#4575b4', '#74add1', '#abd9e9', '#e0f3f8', '#ffffbf', '#fee090', '#fdae61', '#f46d43', '#d73027', '#a50026']
},
seriesIndex: this.visualMapSeriesIndex,
left: 20,
left: this.isMobile ? 10 : 30,
top: 20,
bottom: 0,
itemWidth: 30,
itemWidth: this.isMobile ? 10 : 30,
itemHeight: 350,
precision: 3,
textStyle: {
@@ -401,17 +401,17 @@ export default class PageHeightmap extends Mixins(BaseMixin) {
}
get rangeX() {
const stepper_x = this.$store.state.printer.configfile?.settings?.stepper_x
if (stepper_x) return [stepper_x.position_min, stepper_x.position_max]
const axis_minimum = this.$store.state.printer.toolhead?.axis_minimum
const axis_maximum = this.$store.state.printer.toolhead?.axis_maximum
return [0,0]
return [axis_minimum[0] ?? 0, axis_maximum[0] ?? 0]
}
get rangeY() {
const stepper_y = this.$store.state.printer.configfile?.settings?.stepper_y
if (stepper_y) return [stepper_y.position_min, stepper_y.position_max]
const axis_minimum = this.$store.state.printer.toolhead?.axis_minimum
const axis_maximum = this.$store.state.printer.toolhead?.axis_maximum
return [0,0]
return [axis_minimum[1] ?? 0, axis_maximum[1] ?? 0]
}
get heightmapLimit() {
+23 -4
View File
@@ -30,15 +30,34 @@ export const caseInsensitiveSort = (values: any[], orderType: string): any[] =>
})
}
export const capitalize = (str: string): string => {
return str.charAt(0).toUpperCase() + str.slice(1)
}
export const convertPanelnameToIcon = (name: string): string => {
switch (name) {
case 'webcam': return 'mdi-webcam'
case 'zoffset': return 'mdi-arrow-collapse-vertical'
case 'control': return 'mdi-gamepad'
case 'macros': return 'mdi-code-tags'
case 'printsettings': return 'mdi-printer-3d'
case 'miscellaneous': return 'mdi-dip-switch'
case 'tools': return 'mdi-thermometer-lines'
case 'miniconsole': return 'mdi-console-line'
default: return 'mdi-information'
}
}
export const camelize = (str: string): string => {
return str.replaceAll('_', ' ').replace(/(?:^\w|[A-Z]|\b\w)/g, (word, index) => {
return str.replace(/_/g, ' ').replace(/(?:^\w|[A-Z]|\b\w)/g, (word, index) => {
return index === 0 ? word.toLowerCase() : word.toUpperCase();
}).replace(/\s+/g, '');
}
export function formatConsoleMessage(message: string): string {
message = message.replaceAll('!! ', '')
message = message.replaceAll('// ', '')
message = message.replace(/!! /g, '')
message = message.replace(/\/\/ /g, '')
message = message.replace('\n// ', '<br>')
message = message.replace(/\r\n|\r|\n/g, '<br>')
//message = message.replaceAll('<br />', '<br>')
@@ -49,7 +68,7 @@ export function formatConsoleMessage(message: string): string {
export const convertName = (name: string): string => {
let output = ""
name = name.replaceAll("_", " ")
name = name.replace(/_/g, ' ')
name.split(" ").forEach(split => {
output += " "+split.charAt(0).toUpperCase() + split.slice(1)
})
-8
View File
@@ -59,14 +59,6 @@ export class WebSocketClient {
if (wait && wait.action !== ""){
if (data.error && data.error.message) {
window.console.error("Response Error: "+wait.action+" > "+data.error.message)
if (wait.params) window.console.log(wait.params)
/*this.store?.dispatch(wait.action,
Object.assign(wait.actionPreload || {}, {
error: data.error,
requestParams: wait.params
})
)*/
} else if (wait.action) {
let result = data.result
if (result === "ok") result = { result: result }
+8
View File
@@ -0,0 +1,8 @@
$t('Router.Dashboard')
$t('Router.Printers')
$t('Router.Webcam')
$t('Router.Console')
$t('Router.Heightmap')
$t('Router.G-Code Files')
$t('Router.History')
$t('Router.Machine')
+2 -2
View File
@@ -69,7 +69,7 @@ const routes: AppRoute[] = [
},
{
title: "Machine",
path: '/machine',
path: '/config',
icon: 'wrench',
component: Machine,
alwaysShow: true,
@@ -81,7 +81,7 @@ const routes: AppRoute[] = [
alwaysShow: false,
showInNavi: false,
path: '/settings/machine',
redirect: '/machine'
redirect: '/config'
}
]
+1 -1
View File
@@ -75,7 +75,7 @@ export const actions: ActionTree<EditorState, RootState> = {
const formData = new FormData()
formData.append('file', content, state.filename)
formData.append('root', state.fileroot)
formData.append('path', state.filepath)
formData.append('path', state.filepath.slice(1))
formData.append('checksum', sha256(payload.content))
const url = rootGetters['socket/getUrl'] + '/server/files/upload'
+1 -6
View File
@@ -228,11 +228,6 @@ export const getters: GetterTree<FarmPrinterState, any> = {
},
getPrinterWebcams: (state) => {
if (
state.data.gui.webcam?.configs?.length &&
(state.data.gui.webcam.boolDashboard || state.data.gui.webcam.boolNavi)
) return state.data.gui.webcam.configs
return []
return state.data.gui.webcam.configs ?? []
}
}
+6 -2
View File
@@ -64,7 +64,8 @@ export const actions: ActionTree<FileState, RootState> = {
commit('setCreateDir', {
item: {
path: path.length ? path+"/"+dir.dirname : dir.dirname,
root: root
root: root,
modified: dir.modified * 1000
}
})
@@ -130,7 +131,10 @@ export const actions: ActionTree<FileState, RootState> = {
break
case 'move_file':
commit('setMoveFile', payload)
if (payload.source_item?.path === 'printer_autosave.cfg' && payload.source_item?.root === 'config')
commit('setCreateFile', payload)
else
commit('setMoveFile', payload)
break
case 'delete_file':
+11 -5
View File
@@ -45,21 +45,19 @@ export const getters: GetterTree<FileState, any> = {
return getters['getThemeFileUrl'](acceptName, acceptExtensions) ?? null
},
getFavicons: (state, getters, rootState, rootGetters) => {
getCustomFavicons: (state, getters) => {
const acceptName16 = "favicon-32x32"
const acceptName32 = "favicon-32x32"
const acceptExtensions = ['png', 'svg']
const favicon16 = getters['getThemeFileUrl'](acceptName16, acceptExtensions)
const favicon16Default = '/img/icons/favicon-16x16.png'
const favicon32 = getters['getThemeFileUrl'](acceptName32, acceptExtensions)
const favicon32Default = '/img/icons/favicon-32x32.png'
if (favicon16 && favicon32) return [favicon16, favicon32]
else if (favicon16) return [favicon16, favicon16]
else if (favicon32) return [favicon32, favicon32]
return [favicon16Default, favicon32Default]
return null
},
getDiskUsage: (state) => (path: string) => {
@@ -70,5 +68,13 @@ export const getters: GetterTree<FileState, any> = {
if (dir && 'disk_usage' in dir) return dir.disk_usage
return null
}
},
checkConfigFile: (state) => (acceptName: string) => {
const directory = findDirectory(state.filetree, ['config'])
return directory?.findIndex((element: FileStateFile) =>
element.filename !== undefined && element.filename === acceptName
) !== -1
},
}
+2 -2
View File
@@ -200,9 +200,9 @@ export const mutations: MutationTree<FileState> = {
parent.push({
isDirectory: true,
filename: dirname,
modified: new Date(),
modified: payload.item.modified ?? new Date(),
childrens: [],
});
})
}
},
+11
View File
@@ -2,6 +2,7 @@ import Vue from "vue";
import {ActionTree} from "vuex";
import {GuiState} from "@/store/gui/types";
import {RootState} from "@/store/types";
import { getDefaultState } from './index'
export const actions: ActionTree<GuiState, RootState> = {
reset({ commit }) {
@@ -196,5 +197,15 @@ export const actions: ActionTree<GuiState, RootState> = {
newVal: array
})
}
},
resetLayout({ dispatch }, name) {
const defaultState = getDefaultState()
const newVal: any = defaultState.dashboard[name] ?? []
dispatch('saveSetting', {
name: 'dashboard.'+name,
value: newVal
})
}
}
+49 -1
View File
@@ -39,7 +39,55 @@ export const getDefaultState = (): GuiState => {
feedamounts: [ 50, 25, 10, 5, 1 ],
feedrate: 5,
feedrates: [ 60, 30, 15, 5, 1 ],
}
},
mobileLayout: [
{ 'name': 'webcam', visable: false },
{ 'name': 'zoffset', visable: true },
{ 'name': 'control', visable: true },
{ 'name': 'macros', visable: true },
{ 'name': 'printsettings', visable: true },
{ 'name': 'miscellaneous', visable: true },
{ 'name': 'tools', visable: true },
{ 'name': 'miniconsole', visable: false },
],
tabletLayout1: [
{ 'name': 'webcam', visable: true },
{ 'name': 'zoffset', visable: true },
{ 'name': 'control', visable: true },
{ 'name': 'macros', visable: true },
{ 'name': 'printsettings', visable: true },
{ 'name': 'miscellaneous', visable: true },
],
tabletLayout2: [
{ 'name': 'tools', visable: true },
{ 'name': 'miniconsole', visable: true },
],
desktopLayout1: [
{ 'name': 'webcam', visable: true },
{ 'name': 'zoffset', visable: true },
{ 'name': 'control', visable: true },
{ 'name': 'macros', visable: true },
{ 'name': 'printsettings', visable: true },
{ 'name': 'miscellaneous', visable: true },
],
desktopLayout2: [
{ 'name': 'tools', visable: true },
{ 'name': 'miniconsole', visable: true },
],
widescreenLayout1: [
{ 'name': 'zoffset', visable: true },
{ 'name': 'control', visable: true },
{ 'name': 'macros', visable: true },
{ 'name': 'miscellaneous', visable: true },
],
widescreenLayout2: [
{ 'name': 'tools', visable: true },
{ 'name': 'printsettings', visable: true },
],
widescreenLayout3: [
{ 'name': 'webcam', visable: true },
{ 'name': 'miniconsole', visable: true },
]
},
webcam: {
selectedCam: "",
+5 -5
View File
@@ -28,11 +28,11 @@ export const getters: GetterTree<PrinterState, RootState> = {
if (currentPosition > 0 && maxPosition > 0) return 1 / maxPosition * currentPosition;
}
return state.virtual_sdcard.progress
return state.virtual_sdcard?.progress ?? 0
},
getPositions: (state) => {
const position = state.toolhead?.position ?? [0,0,0]
const position = state.motion_report?.live_position ?? state.toolhead?.position ?? [0,0,0]
const gcode_position = state.gcode_move?.gcode_position ?? [0,0,0]
const absolute = state.gcode_move?.absolute_coordinates ?? true
@@ -500,11 +500,11 @@ export const getters: GetterTree<PrinterState, RootState> = {
const sensors = getters.getMcuTempSensors
sensors.forEach((sensor: any) => {
if (sensor.settings?.sensor_mcu === mcuName) {
if (sensor.settings?.sensor_mcu === mcuName && sensor.object?.temperature) {
output = {
temperature: sensor.object.temperature.toFixed(0),
measured_min_temp: sensor.object.measured_min_temp.toFixed(1),
measured_max_temp: sensor.object.measured_max_temp.toFixed(1)
measured_min_temp: sensor.object.measured_min_temp?.toFixed(1) ?? null,
measured_max_temp: sensor.object.measured_max_temp?.toFixed(1) ?? null
}
}
})
-1
View File
@@ -32,7 +32,6 @@ export const actions: ActionTree<ServerState, RootState> = {
},
initServerInfo: function ({ dispatch, commit }, payload) {
window.console.debug("init ServerInfo")
// delete old plugin entries
if ('plugins' in payload) delete payload.plugins
if ('failed_plugins' in payload) delete payload.failed_plugins
+2 -2
View File
@@ -40,9 +40,9 @@ export const getters: GetterTree<ServerState, any> = {
const memTotal = (state.system_info.cpu_info?.total_memory ?? 0) * 1024
if (memAvail > 0 && memTotal > 0) {
memoryFormat = Math.round((memTotal - memAvail) / 1024 / 1024 / 1024 * 10) / 10 + " / " + Math.round(memTotal / 1024 / 1024 / 1024) + " GB"
memoryFormat = formatFilesize(memTotal - memAvail) + " / " + formatFilesize(memTotal)
} else if (memTotal) {
memoryFormat = Math.round(memTotal / 1024 / 1024 / 1024) + " GB"
memoryFormat = formatFilesize(memTotal)
}
let tempSensor = rootGetters['printer/getHostTempSensor']
+3 -3
View File
@@ -44,7 +44,7 @@ export const mutations: MutationTree<ServerState> = {
},
setGcodeStore(state, payload: any) {
const t0 = performance.now()
//const t0 = performance.now()
if (payload.length >= maxEventHistory) {
payload = payload.slice(payload.length - maxEventHistory);
@@ -65,8 +65,8 @@ export const mutations: MutationTree<ServerState> = {
})
})
const t1 = performance.now()
window.console.debug("import events", t1-t0)
//const t1 = performance.now()
//window.console.debug("import events", t1-t0)
},
addEvent(state, payload) {
@@ -13,8 +13,6 @@ export const actions: ActionTree<ServerUpdateMangerState, RootState> = {
},
getStatus({ commit }, payload) {
window.console.log("response sync update")
commit('setStatus', payload)
},
}
+4 -1
View File
@@ -9,7 +9,6 @@ export const actions: ActionTree<SocketState, RootState> = {
},
setData({ commit }, payload) {
window.console.log(payload)
commit('setData', payload)
},
@@ -69,6 +68,10 @@ export const actions: ActionTree<SocketState, RootState> = {
commit('server/setProcStats', payload.params[0], { root: true })
break
case 'notify_cpu_throttled':
commit('server/setThrottledState', payload.params[0], { root: true })
break
case 'notify_filelist_changed':
dispatch('files/filelist_changed', payload.params[0], { root: true })
break;
+1 -1
View File
@@ -1,5 +1,5 @@
module.exports = {
vueFilesPath: './src/**/*.?(vue|js)',
vueFilesPath: './src/**/{*.?(js|ts|vue),.i18nignore}',
languageFilesPath: './src/locales/*.json',
options: {
output: false,
+1 -12
View File
@@ -8,9 +8,7 @@ const version = JSON.parse(packageJson).version || 0
module.exports = {
productionSourceMap: false,
"transpileDependencies": [
"vuetify"
],
transpileDependencies: [ 'vuetify' ],
pluginOptions: {
i18n: {
locale: 'en',
@@ -38,15 +36,6 @@ module.exports = {
}
}
},
css: {
loaderOptions: {
sass: {
sassOptions: {
}
}
}
},
pwa: {
serviceWorker: false,
iconPaths: {