Merge remote-tracking branch 'meteyou/master' into feature/gcodeviewer

This commit is contained in:
Juan Rosario committed 2021-08-02 07:28:26 -05:00
commit 5a5f0c5fb3
33 files changed
+1606 -2654

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)
+7 -7
View File
@@ -13,7 +13,7 @@ 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 avialable for Windows, Linux and MacOS because RPI Imager is a Multiplatform Tool!**
**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
@@ -48,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>
@@ -61,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.
@@ -82,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:_
+1178 -1792
View File
File diff suppressed because it is too large. Load diff
+19 -23
View File
@@ -18,65 +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",
"@sindarius/gcodeviewer": "^1.0.4",
"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",
"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')
+30 -8
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>
@@ -84,6 +86,26 @@ export default class App extends Mixins(BaseMixin) {
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
}
}
@Watch('language')
languageChanged(newVal: string) {
this.$i18n.locale = newVal;
+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
@@ -118,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)
}
-10
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>
+4 -4
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>
@@ -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'})
+4 -2
View File
@@ -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
+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) {
+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.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>
</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.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>
</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>
+108 -58
View File
@@ -1,14 +1,6 @@
<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>
@@ -59,9 +51,13 @@
<v-card-text class="px-0 py-0 content">
<template v-if="boolBigThumbnail">
<v-img
height="250px"
:src="thumbnailBig"
class="d-flex align-end"
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>
@@ -148,18 +144,31 @@
<v-container class="py-0">
<v-row class="text-center 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>
<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">{{ maxFlow.lastValue ? maxFlow.lastValue.toFixed(1)+" mm&sup3;/s" : "--" }}</span>
<span class="d-block text-center text-no-wrap">{{ live_flow+" mm&sup3;/s" }}</span>
</div>
</template>
<span>{{ $t("Panels.StatusPanel.Max") }}: {{ maxFlow.maxValue ? maxFlow.maxValue.toFixed(1)+" mm&sup3;/s" : "--" }}</span>
<span>{{ $t("Panels.StatusPanel.Max") }}: {{ maxFlow ? maxFlow+" mm&sup3;/s" : "--" }}</span>
</v-tooltip>
</v-col>
<v-col class="col-3 pa-0">
@@ -265,12 +274,10 @@ import VueLoadImage from "vue-load-image"
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 +386,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 +485,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 +506,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 +592,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>
+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>
+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>
+14 -25
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",
"G-Code Viewer": "G-Code Viewer"
},
"Editor": {
@@ -151,14 +149,10 @@
"View3D" : "View 3D"
},
"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": {
@@ -251,7 +245,6 @@
"Z": "Z",
"PleaseConfigureSteps": "Please configure steps",
"SettingsInterfaceControl": "Settings > Interface > Control",
"Home": "Home",
"FeedAmountIn": "Feed amount in",
"FeedrateIn": "Feedrate in",
"Retract": "Retract",
@@ -273,10 +266,7 @@
"Console": "Console",
"SetupConsole": "Setup Console",
"HideTemperatures": "Hide temperatures",
"CustomFilters": "Custom filters",
"SendCode": "Send code...",
"Send": "Send",
"Empty": "Empty"
"SendCode": "Send code..."
},
"MinSettingsPanel": {
"MissingConfiguration": "Missing configuration",
@@ -319,6 +309,7 @@
"CancelPrint": "Cancel print",
"ClearPrintStats": "Clear print stats",
"ReprintJob": "Reprint job",
"Requested": "Requested",
"Speed": "Speed",
"Flow": "Flow",
"Max": "max",
@@ -363,7 +354,8 @@
"Webcam": "Webcam",
"FPS": "FPS",
"All": "All",
"UnknownWebcamService": "Unknown Webcam Service"
"UnknownWebcamService": "Unknown Webcam Service",
"UrlNotAvailable": "URL not available"
},
"ZOffsetPanel": {
"ZOffset": "Z-Offset",
@@ -526,15 +518,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",
@@ -561,8 +551,7 @@
"ThemeTab": {
"Theme": "Theme",
"Logo": "Logo",
"Primary": "Primary",
"ResetTheme": "reset Theme"
"Primary": "Primary"
}
},
"GCodeViewer":{
+3
View File
@@ -8,6 +8,7 @@
<webcam-panel v-if="showDashboardWebcam"></webcam-panel>
<z-offset-panel></z-offset-panel>
<control-panel></control-panel>
<printsettings-panel></printsettings-panel>
<miscellaneous-panel></miscellaneous-panel>
</v-col>
<v-col class="col-sm-12 col-md-7">
@@ -32,9 +33,11 @@ import ZOffsetPanel from "@/components/panels/ZOffsetPanel.vue";
import ControlPanel from "@/components/panels/ControlPanel.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,
+2 -2
View File
@@ -888,7 +888,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 ""
@@ -898,7 +898,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 ""
+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
@@ -78,7 +78,7 @@ const routes: AppRoute[] = [
},
{
title: "Machine",
path: '/machine',
path: '/config',
icon: 'wrench',
component: Machine,
alwaysShow: true,
@@ -90,7 +90,7 @@ const routes: AppRoute[] = [
alwaysShow: false,
showInNavi: false,
path: '/settings/machine',
redirect: '/machine'
redirect: '/config'
}
]
+2 -1
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
}
})
+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: [],
});
})
}
},
+1 -1
View File
@@ -32,7 +32,7 @@ export const getters: GetterTree<PrinterState, RootState> = {
},
getPositions: (state) => {
const position = state.motion_report?.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
+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,
-9
View File
@@ -36,15 +36,6 @@ module.exports = {
}
}
},
css: {
loaderOptions: {
sass: {
sassOptions: {
}
}
}
},
pwa: {
serviceWorker: false,
iconPaths: {