style: use prettier on other file formats as well (#648)

This commit is contained in:
pataar authored and GitHub committed 2022-02-16 22:10:16 +01:00
1 parent dfa3abc35c
commit 615ee73801
108 files changed
+1874 -2402

No files matched your search

+2 -9
View File
@@ -5,12 +5,7 @@
"es6": true,
"node": true
},
"extends": [
"plugin:vue/essential",
"eslint:recommended",
"@vue/typescript",
"prettier"
],
"extends": ["plugin:vue/essential", "eslint:recommended", "@vue/typescript", "prettier"],
"globals": {
"Atomics": "readonly",
"SharedArrayBuffer": "readonly"
@@ -20,7 +15,5 @@
"parser": "@typescript-eslint/parser",
"sourceType": "module"
},
"plugins": [
"vue"
]
"plugins": ["vue"]
}
+1 -1
View File
@@ -10,4 +10,4 @@ Project maintainers have the right and responsibility to remove, edit, or reject
Instances of abusive, harassing, or otherwise unacceptable behavior may be reported by opening an issue or contacting one or more of the project maintainers.
This Code of Conduct is adapted from the [Contributor Covenant](http://contributor-covenant.org), version 1.0.0, available at [http://contributor-covenant.org/version/1/0/0/](http://contributor-covenant.org/version/1/0/0/)
This Code of Conduct is adapted from the [Contributor Covenant](http://contributor-covenant.org), version 1.0.0, available at [http://contributor-covenant.org/version/1/0/0/](http://contributor-covenant.org/version/1/0/0/)
+1 -1
View File
@@ -4,7 +4,6 @@ about: Create a report to help us improve
title: ''
labels: bug
assignees: ''
---
**Describe the bug:**\
@@ -18,5 +17,6 @@ If applicable, add screenshots to help explain your problem.
**Logfiles:**\
Please upload your Logfiles here or upload them to [pastebin.com](http://pastebin.com) and paste your log links here.
- klippy.log
- moonraker.log
+1 -2
View File
@@ -1,10 +1,9 @@
---
name: Feature request
about: Suggest an idea for this project
title: "[FR]"
title: '[FR]'
labels: ''
assignees: ''
---
**Is your feature request related to a problem? Please describe.**
+2 -2
View File
@@ -6,9 +6,9 @@ name: Build
on:
# Triggers the workflow on push or pull request events but only for the develop branch
push:
branches: [ develop ]
branches: [develop]
pull_request:
branches: [ develop ]
branches: [develop]
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
+4 -4
View File
@@ -1,7 +1,7 @@
name: Build Size Report
on:
pull_request_target:
types: [ labeled ]
types: [labeled]
jobs:
check:
runs-on: ubuntu-latest
@@ -14,8 +14,8 @@ jobs:
- uses: preactjs/compressed-size-action@v2
with:
strip-hash: "\\b\\w{8}\\."
pattern: "./dist/**/*.{js,css,html,json,woff2,svg,png}"
exclude: "{./dist/manifest.json,./dist/build.zip,**/*.map,**/node_modules/**}"
pattern: './dist/**/*.{js,css,html,json,woff2,svg,png}'
exclude: '{./dist/manifest.json,./dist/build.zip,**/*.map,**/node_modules/**}'
- uses: actions-ecosystem/action-remove-labels@v1
with:
labels: analyze # analyze complete, remote the label afterwards
labels: analyze # analyze complete, remote the label afterwards
+3 -3
View File
@@ -6,10 +6,10 @@ name: Code style check
on:
# Triggers the workflow on push or pull request events but only for the develop branch
push:
branches: [ develop ]
branches: [develop]
pull_request:
branches:
- "*"
- '*'
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
@@ -40,4 +40,4 @@ jobs:
prettier: true
eslint_dir: src
eslint_extensions: ts,vue
prettier_dir: src
prettier_dir: src
+20 -4
View File
@@ -1,6 +1,22 @@
{
"tabWidth": 4,
"singleQuote": true,
"semi": false,
"printWidth": 120
"tabWidth": 4,
"singleQuote": true,
"semi": false,
"printWidth": 120,
"bracketSameLine": true,
"htmlWhitespaceSensitivity": "ignore",
"overrides": [
{
"files": "*.yml",
"options": {
"tabWidth": 2
}
},
{
"files": "*.md",
"options": {
"tabWidth": 2
}
}
]
}
+6 -5
View File
@@ -19,12 +19,13 @@ Hi! I'm really excited that you are interested in contributing to Mainsail. Befo
- It's OK to have multiple small commits as you work on the PR - GitHub will automatically squash it before merging.
- If adding a new feature:
- Provide a convincing reason to add this feature. Ideally, you should open a suggestion issue first and have it approved before working on it.
- Provide a convincing reason to add this feature. Ideally, you should open a suggestion issue first and have it approved before working on it.
- If fixing bug:
- If you are resolving a special issue, add `(fix #xxxx[,#xxxx])` (#xxxx is the issue id) in your PR title for a better release log, e.g. `update entities encoding/decoding (fix #3899)`.
- Provide a detailed description of the bug in the PR. Live demo preferred.
- Add appropriate test coverage if applicable.
- If you are resolving a special issue, add `(fix #xxxx[,#xxxx])` (#xxxx is the issue id) in your PR title for a better release log, e.g. `update entities encoding/decoding (fix #3899)`.
- Provide a detailed description of the bug in the PR. Live demo preferred.
- Add appropriate test coverage if applicable.
## Committing Changes
@@ -39,4 +40,4 @@ As a pure community-driven project without major corporate backing, we also welc
## Credits
Thank you to all the people who have already contributed to Mainsail!
Thank you to all the people who have already contributed to Mainsail!
+15 -9
View File
@@ -3,6 +3,7 @@
</p>
# Mainsail
[![downloads](https://img.shields.io/github/downloads/mainsail-crew/mainsail/total?style=flat-square)](https://github.com/mainsail-crew/mainsail/releases) [![localizations](https://shields-staging.herokuapp.com/github/directory-file-count/mainsail-crew/mainsail/src%2Flocales?label=localizations&extension=json&type=file&style=flat-square)](https://docs.mainsail.xyz/development/localization) [![stars](https://img.shields.io/github/stars/meteyou/mainsail?style=flat-square)](https://github.com/mainsail-crew/mainsail/stargazers) [![forks](https://img.shields.io/github/forks/meteyou/mainsail?style=flat-square)](https://github.com/mainsail-crew/mainsail/network/members)
[![license](https://img.shields.io/github/license/meteyou/mainsail?style=flat-square)](https://github.com/mainsail-crew/mainsail/blob/develop/LICENSE) [![last-commit](https://img.shields.io/github/last-commit/meteyou/mainsail?style=flat-square)](https://github.com/mainsail-crew/mainsail/commits/) ![size](https://img.shields.io/github/repo-size/meteyou/mainsail?style=flat-square)
[![discord](https://img.shields.io/discord/758059413700345988?color=%235865F2&label=discord&logo=discord&logoColor=white&style=flat-square)](https://discord.gg/skWTwTD) [![patreons](https://img.shields.io/endpoint.svg?url=https%3A%2F%2Fshieldsio-patreon.vercel.app%2Fapi%3Fusername%3Dmeteyou%26type%3Dpatrons&style=flat-square)](https://www.patreon.com/meteyou)
@@ -17,10 +18,12 @@ Mainsail is also available in remote mode on [http://my.mainsail.xyz](http://my.
[Release Notes](https://github.com/mainsail-crew/mainsail/releases)
## Screenshots
![screenshot-dashboard](https://raw.githubusercontent.com/mainsail-crew/docs/master/assets/img/screenshot.png)
![Features](https://raw.githubusercontent.com/mainsail-crew/docs/master/assets/img/features.png)
## Features
## Features
- Responsive web interface, optimized for desktops, tablets and mobile devices
- Supports multiple 3D printers (Printer Farm)
- Localization (i18n)
@@ -40,21 +43,24 @@ Mainsail is also available in remote mode on [http://my.mainsail.xyz](http://my.
- Exclude objects (not yet officially supported by Klipper)
## Help and Support
Do you need help or just want to talk? Join our active community on [Discord](https://discord.gg/skWTwTD).
Do you need help or just want to talk? Join our active community on [Discord](https://discord.gg/skWTwTD).
Have you found a bug? Please create an [Issue](https://github.com/mainsail-crew/mainsail/issues) in GitHub and let us know.
## Support Mainsail
Mainsail is primarily developed and maintained by meteyou. To keep the project going he invests his free time, almost every day. To motivate him (☕🍺😜) there are several ways to support him:
[![patreon](https://img.shields.io/badge/patreon-participate-yellow.svg?style=flat-square)](https://www.patreon.com/meteyou)
[![kofi](https://img.shields.io/badge/buy%20me%20a%20coffee-donate-yellow.svg?style=flat-square)](https://ko-fi.com/mainsail)
[![patreon](https://img.shields.io/badge/patreon-participate-yellow.svg?style=flat-square)](https://www.patreon.com/meteyou)
[![kofi](https://img.shields.io/badge/buy%20me%20a%20coffee-donate-yellow.svg?style=flat-square)](https://ko-fi.com/mainsail)
## Credit, sources and inspiration
* [Kevin O'Connor](https://github.com/KevinOConnor) for the awesome 3D printer firmware [Klipper](https://github.com/KevinOConnor/klipper)
* [Eric Callahan (arksine)](https://github.com/Arksine) for [Moonraker (Klipper API)](https://github.com/Arksine/moonraker). Without Moonraker, Mainsail would not be possible.
* [lixxbox](https://github.com/lixxbox) for the Mainsail logo & Docs
* [Vue.js](https://vuejs.org/): The Progressive JavaScript Framework
* [Vuetify](https://vuetifyjs.com/): Material Design Component Framework for Vue.js
- [Kevin O'Connor](https://github.com/KevinOConnor) for the awesome 3D printer firmware [Klipper](https://github.com/KevinOConnor/klipper)
- [Eric Callahan (arksine)](https://github.com/Arksine) for [Moonraker (Klipper API)](https://github.com/Arksine/moonraker). Without Moonraker, Mainsail would not be possible.
- [lixxbox](https://github.com/lixxbox) for the Mainsail logo & Docs
- [Vue.js](https://vuejs.org/): The Progressive JavaScript Framework
- [Vuetify](https://vuetifyjs.com/): Material Design Component Framework for Vue.js
Massive thanks to the whole [Voron Design](http://vorondesign.com/) community. Without them such a project would not be possible.
+3 -3
View File
@@ -1,4 +1,4 @@
version: "3.8"
version: '3.8'
services:
api:
build:
@@ -12,7 +12,7 @@ services:
- ./docker/config/moonraker:/home/node/.moonraker_database
container_name: mainsail-stack-api
ports:
- "7125:7125"
- '7125:7125'
networks:
- dev_net
npm:
@@ -30,7 +30,7 @@ services:
- ./index.html:/home/node/mainsail/index.html
container_name: mainsail-stack-npm
ports:
- "8080:8080"
- '8080:8080'
depends_on:
- api
networks:
+26 -25
View File
@@ -1,30 +1,31 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width,initial-scale=1.0">
<title>Mainsail</title>
<head>
<meta charset="utf-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<meta name="viewport" content="width=device-width,initial-scale=1.0" />
<title>Mainsail</title>
<link rel="icon" type="image/png" sizes="32x32" href="/img/icons/favicon-32x32.png">
<link rel="icon" type="image/png" sizes="16x16" href="/img/icons/favicon-16x16.png">
<meta name="theme-color" content="#121212">
<meta name="apple-mobile-web-app-capable" content="yes">
<meta name="apple-mobile-web-app-status-bar-style" content="black">
<link rel="manifest" href="/manifest.json">
<meta name="apple-mobile-web-app-title" content="Mainsail">
<link rel="apple-touch-icon" href="/img/icons/apple-touch-icon-152x152.png">
<link rel="mask-icon" href="/img/icons/icon-196-maskable.png" color="#121212">
<meta name="msapplication-TileImage" content="/img/icons/mstile-150x150.png">
<meta name="msapplication-TileColor" content="#121212">
<link rel="icon" type="image/png" sizes="32x32" href="/img/icons/favicon-32x32.png" />
<link rel="icon" type="image/png" sizes="16x16" href="/img/icons/favicon-16x16.png" />
<meta name="theme-color" content="#121212" />
<meta name="apple-mobile-web-app-capable" content="yes" />
<meta name="apple-mobile-web-app-status-bar-style" content="black" />
<link rel="manifest" href="/manifest.json" />
<meta name="apple-mobile-web-app-title" content="Mainsail" />
<link rel="apple-touch-icon" href="/img/icons/apple-touch-icon-152x152.png" />
<link rel="mask-icon" href="/img/icons/icon-196-maskable.png" color="#121212" />
<meta name="msapplication-TileImage" content="/img/icons/mstile-150x150.png" />
<meta name="msapplication-TileColor" content="#121212" />
<script type="module" src="/src/main.ts"></script>
</head>
<body>
<noscript>
<strong>We're sorry but Mainsail doesn't work properly without JavaScript enabled. Please enable it to
continue.</strong>
</noscript>
<div id="app"></div>
</body>
<script type="module" src="/src/main.ts"></script>
</head>
<body>
<noscript>
<strong>
We're sorry but Mainsail doesn't work properly without JavaScript enabled. Please enable it to continue.
</strong>
</noscript>
<div id="app"></div>
</body>
</html>
+98 -97
View File
@@ -1,100 +1,101 @@
{
"name": "mainsail",
"version": "2.2.0-alpha",
"private": true,
"decription": "a klipper web interface",
"author": {
"name": "Stefan Dej"
},
"scripts": {
"serve": "vite serve",
"build": "vite build && npm run build.zip",
"format": "prettier --write src vite.config.ts",
"format:check": "prettier --check src vite.config.ts",
"lint": "eslint --ext .ts,.vue --ignore-path .gitignore src",
"lint:fix": "eslint --ext .ts,.vue --ignore-path .gitignore src --fix",
"build.zip": "cd ./dist && zip -r mainsail.zip ./ && cd ..",
"i18n-extract": "vue-i18n-extract use-config"
},
"dependencies": {
"@codemirror/basic-setup": "^0.19.0",
"@codemirror/highlight": "^0.19.6",
"@codemirror/lang-javascript": "^0.19.3",
"@codemirror/lang-json": "^0.19.1",
"@codemirror/language": "^0.19.7",
"@codemirror/legacy-modes": "^0.19.0",
"@codemirror/search": "^0.19.4",
"@codemirror/state": "^0.19.6",
"@codemirror/stream-parser": "^0.19.2",
"@codemirror/view": "^0.19.28",
"@sindarius/gcodeviewer": "^2.1.17",
"@types/node": "^16.11.22",
"@types/overlayscrollbars": "^1.12.1",
"axios": "^0.26.0",
"core-js": "^3.16.0",
"echarts": "^5.2.2",
"echarts-for-vue": "^1.4.1",
"echarts-gl": "^2.0.8",
"js-sha256": "^0.9.0",
"overlayscrollbars": "^1.13.1",
"overlayscrollbars-vue": "^0.2.2",
"regenerator-runtime": "^0.13.9",
"semver": "^7.3.5",
"uuid": "^8.3.2",
"vue": "^2.6.14",
"vue-class-component": "^7.2.6",
"vue-i18n": "^8.25.0",
"vue-load-image": "^0.2.0",
"vue-meta": "^2.4.0",
"vue-observe-visibility": "^1.0.0",
"vue-property-decorator": "^9.1.2",
"vue-toast-notification": "^0.6.1",
"vuedraggable": "^2.24.3",
"vuetify": "^2.6.1",
"vuex": "^3.6.2"
},
"devDependencies": {
"@intlify/vite-plugin-vue-i18n": "^2.5.0",
"@mdi/font": "^6.2.95",
"@types/semver": "^7.3.8",
"@types/uuid": "^8.3.1",
"@typescript-eslint/eslint-plugin": "^5.11.0",
"@typescript-eslint/parser": "^5.11.0",
"@vue/composition-api": "^1.0.5",
"@vue/eslint-config-typescript": "^10.0.0",
"autoprefixer": "^10.4.2",
"eslint": "^8.9.0",
"eslint-config-prettier": "^8.3.0",
"eslint-plugin-vue": "^8.4.1",
"prettier": "^2.5.1",
"sass": "~1.32",
"typescript": "^4.5.5",
"unplugin-vue-components": "0.17.11",
"vite": "^2.7.13",
"vite-plugin-checker": "^0.4.2",
"vite-plugin-package-version": "^1.0.2",
"vite-plugin-vue2": "^1.9.3",
"vue-debounce-decorator": "^1.0.1",
"vue-i18n-extract": "^1.2.3",
"vue-router": "^3.5.2",
"vue-template-compiler": "^2.6.14"
},
"postcss": {
"plugins": {
"autoprefixer": {}
"name": "mainsail",
"version": "2.2.0-alpha",
"private": true,
"decription": "a klipper web interface",
"author": {
"name": "Stefan Dej"
},
"scripts": {
"serve": "vite serve",
"build": "vite build && npm run build.zip",
"format": "npm run format:base -- --write",
"format:base": "prettier .prettierrc src vite.config.ts package.json public/manifest.json .eslintrc.json .github/ index.html *.yml *.md",
"format:check": "npm run format:base -- --check",
"lint": "eslint --ext .ts,.vue --ignore-path .gitignore src",
"lint:fix": "eslint --ext .ts,.vue --ignore-path .gitignore src --fix",
"build.zip": "cd ./dist && zip -r mainsail.zip ./ && cd ..",
"i18n-extract": "vue-i18n-extract use-config"
},
"dependencies": {
"@codemirror/basic-setup": "^0.19.0",
"@codemirror/highlight": "^0.19.6",
"@codemirror/lang-javascript": "^0.19.3",
"@codemirror/lang-json": "^0.19.1",
"@codemirror/language": "^0.19.7",
"@codemirror/legacy-modes": "^0.19.0",
"@codemirror/search": "^0.19.4",
"@codemirror/state": "^0.19.6",
"@codemirror/stream-parser": "^0.19.2",
"@codemirror/view": "^0.19.28",
"@sindarius/gcodeviewer": "^2.1.17",
"@types/node": "^16.11.22",
"@types/overlayscrollbars": "^1.12.1",
"axios": "^0.26.0",
"core-js": "^3.16.0",
"echarts": "^5.2.2",
"echarts-for-vue": "^1.4.1",
"echarts-gl": "^2.0.8",
"js-sha256": "^0.9.0",
"overlayscrollbars": "^1.13.1",
"overlayscrollbars-vue": "^0.2.2",
"regenerator-runtime": "^0.13.9",
"semver": "^7.3.5",
"uuid": "^8.3.2",
"vue": "^2.6.14",
"vue-class-component": "^7.2.6",
"vue-i18n": "^8.25.0",
"vue-load-image": "^0.2.0",
"vue-meta": "^2.4.0",
"vue-observe-visibility": "^1.0.0",
"vue-property-decorator": "^9.1.2",
"vue-toast-notification": "^0.6.1",
"vuedraggable": "^2.24.3",
"vuetify": "^2.6.1",
"vuex": "^3.6.2"
},
"devDependencies": {
"@intlify/vite-plugin-vue-i18n": "^2.5.0",
"@mdi/font": "^6.2.95",
"@types/semver": "^7.3.8",
"@types/uuid": "^8.3.1",
"@typescript-eslint/eslint-plugin": "^5.11.0",
"@typescript-eslint/parser": "^5.11.0",
"@vue/composition-api": "^1.0.5",
"@vue/eslint-config-typescript": "^10.0.0",
"autoprefixer": "^10.4.2",
"eslint": "^8.9.0",
"eslint-config-prettier": "^8.3.0",
"eslint-plugin-vue": "^8.4.1",
"prettier": "^2.5.1",
"sass": "~1.32",
"typescript": "^4.5.5",
"unplugin-vue-components": "0.17.11",
"vite": "^2.7.13",
"vite-plugin-checker": "^0.4.2",
"vite-plugin-package-version": "^1.0.2",
"vite-plugin-vue2": "^1.9.3",
"vue-debounce-decorator": "^1.0.1",
"vue-i18n-extract": "^1.2.3",
"vue-router": "^3.5.2",
"vue-template-compiler": "^2.6.14"
},
"postcss": {
"plugins": {
"autoprefixer": {}
}
},
"browserslist": [
"> 1%",
"not dead",
"not op_mini all",
"last 2 chrome major versions",
"last 2 firefox major versions",
"last 2 safari major versions",
"last 2 opera major versions",
"last 2 edge major versions"
],
"engines": {
"node": "^16"
}
},
"browserslist": [
"> 1%",
"not dead",
"not op_mini all",
"last 2 chrome major versions",
"last 2 firefox major versions",
"last 2 safari major versions",
"last 2 opera major versions",
"last 2 edge major versions"
],
"engines": {
"node": "^16"
}
}
+22 -22
View File
@@ -1,23 +1,23 @@
{
"short_name": "Mainsail",
"name": "Mainsail",
"display": "standalone",
"scope" : "/",
"start_url" : "/",
"theme_color": "#D51F26",
"background_color": "#121212",
"icons": [
{
"src": "/img/icons/icon-196-maskable.png",
"sizes": "196x196",
"type": "image/png",
"purpose": "any maskable"
},
{
"src": "/img/icons/icon-512-maskable.png",
"sizes": "512x512",
"type": "image/png",
"purpose": "any maskable"
}
]
}
"short_name": "Mainsail",
"name": "Mainsail",
"display": "standalone",
"scope": "/",
"start_url": "/",
"theme_color": "#D51F26",
"background_color": "#121212",
"icons": [
{
"src": "/img/icons/icon-196-maskable.png",
"sizes": "196x196",
"type": "image/png",
"purpose": "any maskable"
},
{
"src": "/img/icons/icon-512-maskable.png",
"sizes": "512x512",
"type": "image/png",
"purpose": "any maskable"
}
]
}
+10 -14
View File
@@ -10,8 +10,7 @@
color="lightgray"
:small="isMini"
v-bind="attrs"
v-on="on"
>
v-on="on">
<v-icon>mdi-help</v-icon>
</v-btn>
</template>
@@ -21,8 +20,7 @@
:title="$t('Console.CommandList')"
icon="mdi-help"
card-class="command-help-dialog"
:margin-bottom="false"
>
:margin-bottom="false">
<template v-slot:buttons>
<v-btn icon tile @click="isOpen = false"><v-icon>mdi-close-thick</v-icon></v-btn>
</template>
@@ -35,8 +33,7 @@
outlined
hide-details
clearable
dense
></v-text-field>
dense></v-text-field>
</v-col>
</v-row>
</v-card-title>
@@ -50,20 +47,19 @@
v-for="cmd of helplistFiltered"
:key="cmd.commandLow"
class="px-0"
two-line
>
two-line>
<v-list-item-content class="px-0">
<v-list-item-title
class="blue--text font-weight-bold cursor-pointer"
@click="
$emit('onCommand', cmd.command)
isOpen = false
"
>{{ cmd.command }}</v-list-item-title
>
<v-list-item-subtitle class="text-wrap">{{
cmd.description
}}</v-list-item-subtitle>
">
{{ cmd.command }}
</v-list-item-title>
<v-list-item-subtitle class="text-wrap">
{{ cmd.description }}
</v-list-item-subtitle>
</v-list-item-content>
</v-list-item>
</v-list>
+6 -6
View File
@@ -7,12 +7,12 @@
<v-toolbar-title>
<span class="subheading">
<v-icon class="mdi mdi-connection" left></v-icon>
<template v-if="connectingFailed">{{
$t('ConnectionDialog.Failed', { host: formatHostname })
}}</template>
<template v-else-if="isConnecting">{{
$t('ConnectionDialog.Connecting', { host: formatHostname })
}}</template>
<template v-if="connectingFailed">
{{ $t('ConnectionDialog.Failed', { host: formatHostname }) }}
</template>
<template v-else-if="isConnecting">
{{ $t('ConnectionDialog.Connecting', { host: formatHostname }) }}
</template>
<template v-else>{{ formatHostname }}</template>
</span>
</v-toolbar-title>
+24 -26
View File
@@ -9,8 +9,7 @@
hide-overlay
:transition="false"
@close="close"
@keydown.esc="escClose"
>
@keydown.esc="escClose">
<panel
card-class="editor-dialog"
:icon="isWriteable ? ' mdi-file-document-edit-outline' : 'mdi-file-document-outline'"
@@ -19,8 +18,7 @@
filename +
' ' +
(isWriteable ? changed : '(' + $t('Editor.FileReadOnly') + ')')
"
>
">
<template v-slot:buttons>
<v-btn
text
@@ -28,27 +26,29 @@
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
>
class="d-none d-md-flex">
<v-icon small class="mr-1">mdi-help</v-icon>
{{ $t('Editor.ConfigReference') }}
</v-btn>
<v-btn
v-if="isWriteable"
text
tile
:color="restartServiceName === null ? 'primary' : ''"
@click="save(null)"
><v-icon small class="mr-1">mdi-content-save</v-icon
><span class="d-none d-sm-inline">{{ $t('Editor.SaveClose') }}</span></v-btn
>
@click="save(null)">
<v-icon small class="mr-1">mdi-content-save</v-icon>
<span class="d-none d-sm-inline">{{ $t('Editor.SaveClose') }}</span>
</v-btn>
<v-btn
v-if="restartServiceName !== null"
color="primary"
text
tile
@click="save(restartServiceName)"
class="d-none d-sm-flex"
><v-icon small class="mr-1">mdi-restart</v-icon>{{ $t('Editor.SaveRestart') }}</v-btn
>
class="d-none d-sm-flex">
<v-icon small class="mr-1">mdi-restart</v-icon>
{{ $t('Editor.SaveRestart') }}
</v-btn>
<v-btn icon tile @click="close"><v-icon>mdi-close-thick</v-icon></v-btn>
</template>
<v-card-text class="pa-0">
@@ -58,27 +58,26 @@
ref="editor"
v-model="sourcecode"
:name="filename"
v-bind:file-extension="fileExtension"
></codemirror-async>
v-bind:file-extension="fileExtension"></codemirror-async>
</overlay-scrollbars>
</v-card-text>
</panel>
</v-dialog>
<v-snackbar v-model="loaderBool" :timeout="-1" :value="true" fixed right bottom dark>
<div>
{{ snackbarHeadline }}<br />
{{ snackbarHeadline }}
<br />
<strong>{{ filename }}</strong>
</div>
<template v-if="loaderProgress.total > 0">
<span class="mr-1"
>({{ formatFilesize(loaderProgress.loaded) }}/{{ formatFilesize(loaderProgress.total) }})</span
>
{{ Math.round((100 * loaderProgress.loaded) / loaderProgress.total) }} % @
{{ loaderProgress.speed }}/s<br />
<span class="mr-1">
({{ formatFilesize(loaderProgress.loaded) }}/{{ formatFilesize(loaderProgress.total) }})
</span>
{{ Math.round((100 * loaderProgress.loaded) / loaderProgress.total) }} % @ {{ loaderProgress.speed }}/s
<br />
<v-progress-linear
class="mt-2"
:value="(100 * loaderProgress.loaded) / loaderProgress.total"
></v-progress-linear>
:value="(100 * loaderProgress.loaded) / loaderProgress.total"></v-progress-linear>
</template>
<template v-else>
<v-progress-linear class="mt-2" indeterminate></v-progress-linear>
@@ -94,8 +93,7 @@
card-class="editor-confirm-change-dialog"
icon="mdi-help-circle"
:title="$t('Editor.UnsavedChanges')"
:margin-bottom="false"
>
:margin-bottom="false">
<template v-slot:buttons>
<v-btn icon tile @click="dialogConfirmChange = false"><v-icon>mdi-close-thick</v-icon></v-btn>
</template>
+43 -49
View File
@@ -7,30 +7,29 @@
icon="mdi-connection"
:title="panelTitle"
:margin-bottom="false"
toolbar-color="toolbar"
>
toolbar-color="toolbar">
<template v-slot:buttons>
<template v-if="!isConnecting && !connectingFailed">
<template v-if="dialogEditPrinter.bool"
><v-btn icon tile class="minwidth-0" @click="dialogEditPrinter.bool = false"
><v-icon>mdi-close-thick</v-icon></v-btn
></template
>
<template v-else-if="dialogAddPrinter.bool"
><v-btn
<template v-if="dialogEditPrinter.bool">
<v-btn icon tile class="minwidth-0" @click="dialogEditPrinter.bool = false">
<v-icon>mdi-close-thick</v-icon>
</v-btn>
</template>
<template v-else-if="dialogAddPrinter.bool">
<v-btn
icon
tile
class="minwidth-0"
v-if="dialogAddPrinter.bool"
@click="dialogAddPrinter.bool = false"
><v-icon>mdi-close-thick</v-icon></v-btn
></template
>
<template v-else-if="printers.length > 0"
><v-btn icon tile class="minwidth-0" @click="checkPrinters" color="primary"
><v-icon>mdi-sync</v-icon></v-btn
></template
>
@click="dialogAddPrinter.bool = false">
<v-icon>mdi-close-thick</v-icon>
</v-btn>
</template>
<template v-else-if="printers.length > 0">
<v-btn icon tile class="minwidth-0" @click="checkPrinters" color="primary">
<v-icon>mdi-sync</v-icon>
</v-btn>
</template>
</template>
</template>
<template v-if="isConnecting">
@@ -48,9 +47,9 @@
}}
</p>
<div class="text-center">
<v-btn text @click="switchToChangePrinter" color="white" class="mr-3">{{
$t('SelectPrinterDialog.ChangePrinter')
}}</v-btn>
<v-btn text @click="switchToChangePrinter" color="white" class="mr-3">
{{ $t('SelectPrinterDialog.ChangePrinter') }}
</v-btn>
<v-btn text @click="reconnect" color="primary">{{ $t('SelectPrinterDialog.TryAgain') }}</v-btn>
</div>
</v-card-text>
@@ -70,8 +69,7 @@
required
outlined
hide-details="auto"
dense
></v-text-field>
dense></v-text-field>
</v-col>
<v-col class="col-4">
<v-text-field
@@ -81,8 +79,7 @@
hide-details="auto"
required
outlined
dense
></v-text-field>
dense></v-text-field>
</v-col>
</v-row>
</v-card-text>
@@ -108,8 +105,7 @@
required
outlined
dense
hide-details="auto"
></v-text-field>
hide-details="auto"></v-text-field>
</v-col>
<v-col class="col-4">
<v-text-field
@@ -119,8 +115,7 @@
required
outlined
dense
hide-details="auto"
></v-text-field>
hide-details="auto"></v-text-field>
</v-col>
</v-row>
</v-card-text>
@@ -142,8 +137,7 @@
<v-col
class="rounded transition-swing toolbar py-2 px-2 mb-2 overflow-hidden"
style="cursor: pointer"
@click="connect(printer)"
>
@click="connect(printer)">
<v-row align="center">
<v-col class="col-auto pr-0">
<v-progress-circular
@@ -151,28 +145,27 @@
color="primary"
v-if="printer.socket.isConnecting"
size="24"
width="2.5"
></v-progress-circular>
width="2.5"></v-progress-circular>
<v-icon
:color="printer.socket.isConnected ? 'green' : 'red'"
v-if="!printer.socket.isConnecting"
>mdi-{{
v-if="!printer.socket.isConnecting">
mdi-{{
printer.socket.isConnected ? 'checkbox-marked-circle' : 'cancel'
}}</v-icon
>
}}
</v-icon>
</v-col>
<v-col>{{ getPrinterName(printer.id) }}</v-col>
<v-col class="col-auto pa-0"
><v-btn
<v-col class="col-auto pa-0">
<v-btn
tile
text
icon
large
class="mr-1"
v-on:click.stop.prevent="editPrinter(printer)"
><v-icon small>mdi-pencil</v-icon></v-btn
></v-col
>
v-on:click.stop.prevent="editPrinter(printer)">
<v-icon small>mdi-pencil</v-icon>
</v-btn>
</v-col>
</v-row>
</v-col>
</v-row>
@@ -188,17 +181,18 @@
</p>
<p class="text-center mb-0">
{{ $t('SelectPrinterDialog.YouCanFindMore') }}
<a href="https://docs.mainsail.xyz/remotemode" target="_blank"
>https://docs.mainsail.xyz/remotemode</a
>.
<a href="https://docs.mainsail.xyz/remotemode" target="_blank">
https://docs.mainsail.xyz/remotemode
</a>
.
</p>
</v-col>
</v-row>
<v-row>
<v-col class="text-center mt-0">
<v-btn text color="primary" @click="dialogAddPrinter.bool = true">{{
$t('SelectPrinterDialog.AddPrinter')
}}</v-btn>
<v-btn text color="primary" @click="dialogAddPrinter.bool = true">
{{ $t('SelectPrinterDialog.AddPrinter') }}
</v-btn>
</v-col>
</v-row>
</v-card-text>
+5 -10
View File
@@ -9,16 +9,14 @@
persistent
:fullscreen="isMobile"
@keydown.esc="showSettings = false"
scrollable
>
scrollable>
<panel
:title="$t('Settings.InterfaceSettings')"
icon="mdi-cogs"
card-class="settings-menu-dialog"
:margin-bottom="false"
style="overflow: hidden"
:height="isMobile ? 0 : 548"
>
:height="isMobile ? 0 : 548">
<template v-slot:buttons>
<v-btn icon tile @click="showSettings = false"><v-icon>mdi-close-thick</v-icon></v-btn>
</template>
@@ -28,8 +26,7 @@
v-for="(tab, index) of tabTitles"
v-bind:key="index"
:href="'#' + tab.name"
class="justify-start"
>
class="justify-start">
<v-icon left v-html="tab.icon"></v-icon>
{{ tab.title }}
</v-tab>
@@ -44,8 +41,7 @@
v-bind:key="index"
:href="'#' + tab.name"
class="justify-start"
style="width: 200px"
>
style="width: 200px">
<v-icon left v-html="tab.icon"></v-icon>
<span class="text-truncate">{{ tab.title }}</span>
</v-tab>
@@ -56,8 +52,7 @@
<overlay-scrollbars
:class="'settings-tabs ' + (isMobile ? '' : 'height500')"
ref="settingsScroll"
:options="{ overflowBehavior: { x: 'hidden' } }"
>
:options="{ overflowBehavior: { x: 'hidden' } }">
<component :is="'settings-' + activeTab + '-tab'" @scrollToTop="scrollToTop"></component>
</overlay-scrollbars>
</v-col>
+12 -17
View File
@@ -51,8 +51,7 @@
:temporary="boolNaviTemp"
clipped
app
:style="sidebarCssVars"
>
:style="sidebarCssVars">
<overlay-scrollbars class="nav-scrollbar">
<v-list class="pr-0 pt-0 ml-0">
<v-list-item-group active-class="active-nav-item">
@@ -65,8 +64,7 @@
"
:style="'height: ' + topbarHeight + 'px'"
:ripple="false"
v-if="isMobile"
>
v-if="isMobile">
<template v-if="sidebarLogo">
<img :src="sidebarLogo" :style="logoCssVars" class="nav-logo" alt="Logo" />
</template>
@@ -75,11 +73,10 @@
:color="logoColor"
:style="logoCssVars"
class="nav-logo"
:ripple="false"
></mainsail-logo>
:ripple="false"></mainsail-logo>
</template>
<template v-if="navigationStyle !== 'iconsOnly'">
<span class="text-h6 font-weight-regular text-truncate"> {{ printerName }} </span>
<span class="text-h6 font-weight-regular text-truncate">{{ printerName }}</span>
</template>
</v-list-item>
<template v-if="countPrinters">
@@ -90,15 +87,14 @@
to="/allPrinters"
class="small-list-item mt-1"
v-bind="attrs"
v-on="on"
>
v-on="on">
<v-list-item-icon class="my-3 mr-3 menu-item-icon">
<v-icon>mdi-view-dashboard-outline</v-icon>
</v-list-item-icon>
<v-list-item-content>
<v-list-item-title tile class="menu-item-title">{{
$t('App.Printers')
}}</v-list-item-title>
<v-list-item-title tile class="menu-item-title">
{{ $t('App.Printers') }}
</v-list-item-title>
</v-list-item-content>
</v-list-item>
</template>
@@ -114,15 +110,14 @@
:to="category.path"
class="small-list-item"
v-bind="attrs"
v-on="on"
>
v-on="on">
<v-list-item-icon class="my-3 mr-3 menu-item-icon">
<v-icon>mdi-{{ category.icon }}</v-icon>
</v-list-item-icon>
<v-list-item-content>
<v-list-item-title tile class="menu-item-title">{{
$t(`Router.${category.title}`)
}}</v-list-item-title>
<v-list-item-title tile class="menu-item-title">
{{ $t(`Router.${category.title}`) }}
</v-list-item-title>
</v-list-item-content>
</v-list-item>
</template>
+13 -14
View File
@@ -6,8 +6,7 @@
:offset-y="true"
:close-on-content-click="false"
v-model="showMenu"
v-if="throttledStateFlags.length"
>
v-if="throttledStateFlags.length">
<template v-slot:activator="{ on, attrs }">
<v-btn :color="currentFlags.length ? 'error' : 'warning'" icon tile class="mr-3" v-bind="attrs" v-on="on">
<v-icon>mdi-raspberry-pi</v-icon>
@@ -16,29 +15,29 @@
<v-list min-width="300" max-width="600">
<template v-if="currentFlags.length">
<v-subheader class="" style="height: auto">{{
$t('App.ThrottledStates.HeadlineCurrentFlags')
}}</v-subheader>
<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.Description${convertName(flag)}`)
}}</v-list-item-subtitle>
<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>
<template v-if="previouslyFlags.length">
<v-divider class="my-2" v-if="currentFlags.length"></v-divider>
<v-subheader class="" style="height: auto">{{
$t('App.ThrottledStates.HeadlinePreviouslyFlags')
}}</v-subheader>
<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.Description${convertName(flag)}`)
}}</v-list-item-subtitle>
<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>
@@ -9,7 +9,8 @@
</v-snackbar>
<v-snackbar v-model="boolShowDialogSuccess" :timeout="5000" :value="true" fixed right bottom dark>
<div>
{{ $t('Timelapse.TimelapseRenderingSuccessful') }}<br />
{{ $t('Timelapse.TimelapseRenderingSuccessful') }}
<br />
<strong>{{ filename }}</strong>
</div>
</v-snackbar>
+41 -43
View File
@@ -14,14 +14,13 @@
</template>
<v-list dense>
<template v-if="klipperState !== 'disconnected'">
<v-subheader class="" style="height: auto">{{
$t('App.TopCornerMenu.KlipperControl')
}}</v-subheader>
<v-subheader class="" style="height: auto">
{{ $t('App.TopCornerMenu.KlipperControl') }}
</v-subheader>
<v-list-item
class="minheight30 pr-2"
link
@click="checkDialog(klipperRestart, 'klipper', 'restart')"
>
@click="checkDialog(klipperRestart, 'klipper', 'restart')">
<v-list-item-title>{{ $t('App.TopCornerMenu.KlipperRestart') }}</v-list-item-title>
<v-list-item-action class="my-0 d-flex flex-row" style="min-width: auto">
<v-icon class="mr-2" small>mdi-restart</v-icon>
@@ -30,8 +29,7 @@
<v-list-item
class="minheight30 pr-2"
link
@click="checkDialog(klipperFirmwareRestart, 'klipper', 'firmwareRestart')"
>
@click="checkDialog(klipperFirmwareRestart, 'klipper', 'firmwareRestart')">
<v-list-item-title>{{ $t('App.TopCornerMenu.KlipperFirmwareRestart') }}</v-list-item-title>
<v-list-item-action class="my-0 d-flex flex-row" style="min-width: auto">
<v-icon class="mr-2" small>mdi-restart</v-icon>
@@ -40,16 +38,16 @@
</template>
<template v-if="services.length">
<v-divider class="mt-0" v-if="klipperState !== 'disconnected'"></v-divider>
<v-subheader class="pt-2" style="height: auto">{{
$t('App.TopCornerMenu.ServiceControl')
}}</v-subheader>
<v-subheader class="pt-2" style="height: auto">
{{ $t('App.TopCornerMenu.ServiceControl') }}
</v-subheader>
<v-list-item class="minheight30 pr-2" v-for="service in services" v-bind:key="service">
<v-list-item-title>
<v-tooltip left>
<template v-slot:activator="{ on, attrs }">
<span v-bind="attrs" v-on="on">{{
service.charAt(0).toUpperCase() + service.slice(1)
}}</span>
<span v-bind="attrs" v-on="on">
{{ service.charAt(0).toUpperCase() + service.slice(1) }}
</span>
</template>
<span>{{ getServiceState(service) }} ({{ getServiceSubState(service) }})</span>
</v-tooltip>
@@ -59,28 +57,28 @@
icon
small
v-if="getServiceState(service) === 'inactive'"
@click="checkDialog(serviceStart, service, 'start')"
><v-icon small>mdi-play</v-icon></v-btn
>
<v-btn icon small v-else @click="checkDialog(serviceRestart, service, 'restart')"
><v-icon small>mdi-restart</v-icon></v-btn
>
@click="checkDialog(serviceStart, service, 'start')">
<v-icon small>mdi-play</v-icon>
</v-btn>
<v-btn icon small v-else @click="checkDialog(serviceRestart, service, 'restart')">
<v-icon small>mdi-restart</v-icon>
</v-btn>
<v-btn
icon
small
:disabled="getServiceState(service) === 'inactive' || service === 'moonraker'"
@click="checkDialog(serviceStop, service, 'stop')"
:style="service === 'moonraker' ? 'visibility: hidden;' : ''"
><v-icon small>mdi-stop</v-icon></v-btn
>
:style="service === 'moonraker' ? 'visibility: hidden;' : ''">
<v-icon small>mdi-stop</v-icon>
</v-btn>
</v-list-item-action>
</v-list-item>
</template>
<template v-if="powerDevices.length">
<v-divider class="mt-0"></v-divider>
<v-subheader class="pt-2" style="height: auto">{{
$t('App.TopCornerMenu.PowerDevices')
}}</v-subheader>
<v-subheader class="pt-2" style="height: auto">
{{ $t('App.TopCornerMenu.PowerDevices') }}
</v-subheader>
<v-list-item
v-for="(device, index) in powerDevices"
v-bind:key="index"
@@ -89,13 +87,12 @@
:disabled="
device.status === 'error' ||
(device.locked_while_printing && ['printing', 'paused'].includes(printer_state))
"
>
">
<v-list-item-title>{{ device.device }}</v-list-item-title>
<v-list-item-action class="my-0 d-flex flex-row" style="min-width: auto">
<v-icon class="mr-2" :color="device.status === 'on' ? '' : 'grey darken-2'"
>mdi-{{ device.status === 'on' ? 'toggle-switch' : 'toggle-switch-off' }}</v-icon
>
<v-icon class="mr-2" :color="device.status === 'on' ? '' : 'grey darken-2'">
mdi-{{ device.status === 'on' ? 'toggle-switch' : 'toggle-switch-off' }}
</v-icon>
</v-list-item-action>
</v-list-item>
</template>
@@ -117,20 +114,22 @@
</v-menu>
<v-dialog v-model="dialogPowerDeviceChange.show" width="400" :fullscreen="isMobile">
<v-card>
<v-card-title class="headline">{{
this.dialogPowerDeviceChange.value === 'off'
? $t('PowerDeviceChangeDialog.TurnDeviceOn', { device: dialogPowerDeviceChange.device })
: $t('PowerDeviceChangeDialog.TurnDeviceOff', { device: dialogPowerDeviceChange.device })
}}</v-card-title>
<v-card-title class="headline">
{{
this.dialogPowerDeviceChange.value === 'off'
? $t('PowerDeviceChangeDialog.TurnDeviceOn', { device: dialogPowerDeviceChange.device })
: $t('PowerDeviceChangeDialog.TurnDeviceOff', { device: dialogPowerDeviceChange.device })
}}
</v-card-title>
<v-card-text>{{ $t('PowerDeviceChangeDialog.AreYouSure') }}</v-card-text>
<v-card-actions>
<v-spacer></v-spacer>
<v-btn color="red darken-1" text @click="dialogPowerDeviceChange.show = false">{{
$t('PowerDeviceChangeDialog.No')
}}</v-btn>
<v-btn color="green darken-1" text @click="powerDeviceToggle">{{
$t('PowerDeviceChangeDialog.Yes')
}}</v-btn>
<v-btn color="red darken-1" text @click="dialogPowerDeviceChange.show = false">
{{ $t('PowerDeviceChangeDialog.No') }}
</v-btn>
<v-btn color="green darken-1" text @click="powerDeviceToggle">
{{ $t('PowerDeviceChangeDialog.Yes') }}
</v-btn>
</v-card-actions>
</v-card>
</v-dialog>
@@ -139,8 +138,7 @@
card-class="confirm-top-corner-menu-dialog"
icon="mdi-alert"
:title="dialogConfirmation.title"
:margin-bottom="false"
>
:margin-bottom="false">
<template v-slot:buttons>
<v-btn icon tile @click="dialogConfirmation.show = false"><v-icon>mdi-close-thick</v-icon></v-btn>
</template>
+17 -23
View File
@@ -32,8 +32,7 @@
:src="sidebarLogo"
style="height: 32px"
class="nav-logo ml-4 mr-1 d-none d-sm-flex"
alt="Logo"
/>
alt="Logo" />
</template>
<template v-else>
<mainsail-logo
@@ -42,8 +41,7 @@
class="nav-logo ml-4 mr-1 d-none d-sm-flex"
router
to="/"
:ripple="false"
></mainsail-logo>
:ripple="false"></mainsail-logo>
</template>
</router-link>
<v-toolbar-title class="text-no-wrap ml-0 pl-2 mr-2">{{ printerName }}</v-toolbar-title>
@@ -55,8 +53,7 @@
ref="fileUploadAndStart"
:accept="validGcodeExtensions.join(', ')"
style="display: none"
@change="uploadAndStart"
/>
@change="uploadAndStart" />
<v-btn
tile
:icon="$vuetify.breakpoint.smAndDown"
@@ -66,10 +63,9 @@
v-if="klippyIsConnected && saveConfigPending"
:disabled="printerIsPrinting"
:loading="loadings.includes('topbarSaveConfig')"
@click="saveConfig"
>
<v-icon class="d-md-none">mdi-content-save</v-icon
><span class="d-none d-md-inline">{{ $t('App.TopBar.SAVE_CONFIG') }}</span>
@click="saveConfig">
<v-icon class="d-md-none">mdi-content-save</v-icon>
<span class="d-none d-md-inline">{{ $t('App.TopBar.SAVE_CONFIG') }}</span>
</v-btn>
<v-btn
tile
@@ -83,10 +79,9 @@
!boolHideUploadAndPrintButton
"
:loading="loadings.includes('btnUploadAndStart')"
@click="btnUploadAndStart"
>
<v-icon class="mr-md-2">mdi-file-upload</v-icon
><span class="d-none d-md-inline">{{ $t('App.TopBar.UploadPrint') }}</span>
@click="btnUploadAndStart">
<v-icon class="mr-md-2">mdi-file-upload</v-icon>
<span class="d-none d-md-inline">{{ $t('App.TopBar.UploadPrint') }}</span>
</v-btn>
<v-btn
tile
@@ -96,18 +91,18 @@
class="button-min-width-auto px-3 emergency-button"
v-if="klippyIsConnected"
:loading="loadings.includes('topbarEmergencyStop')"
@click="btnEmergencyStop"
>
<v-icon class="mr-md-2">mdi-alert-circle-outline</v-icon
><span class="d-none d-md-inline">{{ $t('App.TopBar.EmergencyStop') }}</span>
@click="btnEmergencyStop">
<v-icon class="mr-md-2">mdi-alert-circle-outline</v-icon>
<span class="d-none d-md-inline">{{ $t('App.TopBar.EmergencyStop') }}</span>
</v-btn>
<the-settings-menu></the-settings-menu>
<the-top-corner-menu></the-top-corner-menu>
</v-app-bar>
<v-snackbar :timeout="-1" :value="true" fixed right bottom dark v-model="uploadSnackbar.status">
<strong>{{ $t('App.TopBar.Uploading') }} {{ uploadSnackbar.filename }}</strong
><br />
{{ Math.round(uploadSnackbar.percent) }} % @ {{ formatFilesize(Math.round(uploadSnackbar.speed)) }}/s<br />
<strong>{{ $t('App.TopBar.Uploading') }} {{ uploadSnackbar.filename }}</strong>
<br />
{{ Math.round(uploadSnackbar.percent) }} % @ {{ formatFilesize(Math.round(uploadSnackbar.speed)) }}/s
<br />
<v-progress-linear class="mt-2" :value="uploadSnackbar.percent"></v-progress-linear>
<template v-slot:action="{ attrs }">
<v-btn color="red" text v-bind="attrs" @click="cancelUpload" style="min-width: auto">
@@ -121,8 +116,7 @@
toolbar-color="error"
card-class="emergency-stop-dialog"
icon="mdi-alert-circle-outline"
:margin-bottom="false"
>
:margin-bottom="false">
<template v-slot:buttons>
<v-btn icon tile @click="showEmergencyStopDialog = false"><v-icon>mdi-close-thick</v-icon></v-btn>
</template>
+4 -5
View File
@@ -56,8 +56,7 @@
:custom-sort="customSort"
sort-by="date"
:sort-desc="true"
color="primary"
>
color="primary">
<template #no-data>
<div class="py-2">{{ $t('App.UpdateDialog.Empty') }}</div>
</template>
@@ -78,9 +77,9 @@
</v-row>
<v-row>
<v-col class="text-center pt-5">
<v-btn text @click="close" :disabled="!complete" color="primary">{{
$t('App.UpdateDialog.Close')
}}</v-btn>
<v-btn text @click="close" :disabled="!complete" color="primary">
{{ $t('App.UpdateDialog.Close') }}
</v-btn>
</v-col>
</v-row>
</v-card-text>
@@ -4,8 +4,7 @@
:option="chartOptions"
:init-options="{ renderer: 'svg' }"
style="height: 250px; width: 100%"
v-observe-visibility="visibilityChanged"
></ECharts>
v-observe-visibility="visibilityChanged"></ECharts>
</template>
<script lang="ts">
@@ -4,8 +4,7 @@
:option="chartOptions"
:init-options="{ renderer: 'svg' }"
style="height: 175px; width: 100%"
v-observe-visibility="visibilityChanged"
></ECharts>
v-observe-visibility="visibilityChanged"></ECharts>
</template>
<script lang="ts">
@@ -4,8 +4,7 @@
:option="chartOptions"
:init-options="{ renderer: 'svg' }"
style="height: 175px; width: 100%"
v-observe-visibility="visibilityChanged"
></ECharts>
v-observe-visibility="visibilityChanged"></ECharts>
</template>
<script lang="ts">
+1 -2
View File
@@ -4,8 +4,7 @@
:option="chartOptions"
:init-options="{ renderer: 'svg' }"
style="height: 250px; width: 100%"
v-observe-visibility="visibilityChanged"
></ECharts>
v-observe-visibility="visibilityChanged"></ECharts>
</template>
<script lang="ts">
+1 -2
View File
@@ -13,8 +13,7 @@
v-bind:key="index"
class="consoleTableRow"
:event="event"
@command-click="commandClick"
></console-table-entry>
@command-click="commandClick"></console-table-entry>
</template>
</div>
</template>
+1 -2
View File
@@ -29,8 +29,7 @@
<v-col
:class="colorConsoleMessage(event) + ' ' + 'console-message'"
v-html="event.formatMessage"
@click.capture="commandClick"
></v-col>
@click.capture="commandClick"></v-col>
</v-row>
</template>
+33 -47
View File
@@ -66,8 +66,7 @@
@click="reloadViewer"
color="info"
class="ml-3"
v-show="reloadRequired"
>
v-show="reloadRequired">
<span class="d-none d-sm-block">{{ $t('GCodeViewer.ReloadRequired') }}</span>
<v-icon class="d-sm-none">mdi-reload-alert</v-icon>
</v-btn>
@@ -86,8 +85,7 @@
:min="0"
:value="zSlider"
class="slider-autoheight mt-3"
@input="updateZSlider"
></v-slider>
@input="updateZSlider"></v-slider>
</v-col>
</v-row>
<v-row class="mt-0 d-flex align-top">
@@ -95,25 +93,23 @@
<v-row>
<v-col
order-md="2"
class="d-flex align-content-space-around justify-center flex-wrap flex-md-nowrap col-12 col-md-4"
>
class="d-flex align-content-space-around justify-center flex-wrap flex-md-nowrap col-12 col-md-4">
<template v-if="loadedFile === null">
<v-btn
@click="loadCurrentFile"
class="mr-3"
v-if="sdCardFilePath !== '' && sdCardFilePath !== loadedFile"
>{{ $t('GCodeViewer.LoadCurrentFile') }}</v-btn
>
v-if="sdCardFilePath !== '' && sdCardFilePath !== loadedFile">
{{ $t('GCodeViewer.LoadCurrentFile') }}
</v-btn>
<v-btn @click="chooseFile">{{ $t('GCodeViewer.LoadLocal') }}</v-btn>
</template>
<template v-else>
<v-btn @click="tracking = !tracking" class="mr-3" v-if="showTrackingButton"
><v-icon
<v-btn @click="tracking = !tracking" class="mr-3" v-if="showTrackingButton">
<v-icon
v-html="tracking ? 'mdi-toggle-switch' : 'mdi-toggle-switch-off-outline'"
class="mr-2"
></v-icon
>{{ $t('GCodeViewer.Tracking') }}</v-btn
>
class="mr-2"></v-icon>
{{ $t('GCodeViewer.Tracking') }}
</v-btn>
<v-btn @click="clearLoadedFile">{{ $t('GCodeViewer.ClearLoadedFile') }}</v-btn>
</template>
</v-col>
@@ -125,8 +121,7 @@
dense
v-model="colorMode"
hide-details
outlined
></v-select>
outlined></v-select>
</v-col>
<v-col order-md="3" class="col-12 col-sm-6 col-md-4">
<v-select
@@ -136,8 +131,7 @@
dense
v-model="renderQuality"
hide-details
outlined
></v-select>
outlined></v-select>
</v-col>
</v-row>
</v-col>
@@ -146,12 +140,11 @@
:offset-x="true"
top
:close-on-content-click="false"
:title="$t('Files.SetupCurrentList')"
>
:title="$t('Files.SetupCurrentList')">
<template v-slot:activator="{ on, attrs }">
<v-btn class="minwidth-0 px-2 mr-3 mt-3" v-bind="attrs" v-on="on"
><v-icon>mdi-cog</v-icon></v-btn
>
<v-btn class="minwidth-0 px-2 mr-3 mt-3" v-bind="attrs" v-on="on">
<v-icon>mdi-cog</v-icon>
</v-btn>
</template>
<v-list>
<v-list-item class="minHeight36">
@@ -159,27 +152,23 @@
class="mt-0"
hide-details
v-model="showCursor"
:label="$t('GCodeViewer.ShowToolhead')"
></v-checkbox>
:label="$t('GCodeViewer.ShowToolhead')"></v-checkbox>
</v-list-item>
<v-list-item class="minHeight36">
<v-checkbox
class="mt-0"
hide-details
v-model="showTravelMoves"
:label="$t('GCodeViewer.ShowTravelMoves')"
></v-checkbox>
:label="$t('GCodeViewer.ShowTravelMoves')"></v-checkbox>
</v-list-item>
<v-list-item
class="minHeight36"
v-if="loadedFile === sdCardFilePath && printing_objects.length > 1"
>
v-if="loadedFile === sdCardFilePath && printing_objects.length > 1">
<v-checkbox
class="mt-0"
hide-details
v-model="showObjectSelection"
:label="$t('GCodeViewer.ShowObjectSelection')"
></v-checkbox>
:label="$t('GCodeViewer.ShowObjectSelection')"></v-checkbox>
</v-list-item>
<v-divider></v-divider>
<v-list-item class="minHeight36">
@@ -187,40 +176,35 @@
class="mt-0"
hide-details
v-model="hdRendering"
:label="$t('GCodeViewer.HDRendering')"
></v-checkbox>
:label="$t('GCodeViewer.HDRendering')"></v-checkbox>
</v-list-item>
<v-list-item class="minHeight36">
<v-checkbox
class="mt-0"
hide-details
v-model="forceLineRendering"
:label="$t('GCodeViewer.ForceLineRendering')"
></v-checkbox>
:label="$t('GCodeViewer.ForceLineRendering')"></v-checkbox>
</v-list-item>
<v-list-item class="minHeight36">
<v-checkbox
class="mt-0"
hide-details
v-model="transparency"
:label="$t('GCodeViewer.Transparency')"
></v-checkbox>
:label="$t('GCodeViewer.Transparency')"></v-checkbox>
</v-list-item>
<v-list-item class="minHeight36">
<v-checkbox
class="mt-0"
hide-details
v-model="voxelMode"
:label="$t('GCodeViewer.VoxelMode')"
></v-checkbox>
:label="$t('GCodeViewer.VoxelMode')"></v-checkbox>
</v-list-item>
<v-list-item class="minHeight36">
<v-checkbox
class="mt-0"
hide-details
v-model="specularLighting"
:label="$t('GCodeViewer.SpecularLighting')"
></v-checkbox>
:label="$t('GCodeViewer.SpecularLighting')"></v-checkbox>
</v-list-item>
</v-list>
</v-menu>
@@ -231,13 +215,13 @@
hidden
multiple
ref="fileInput"
type="file"
/>
type="file" />
</v-card-text>
</panel>
<v-snackbar v-model="loading" :timeout="-1" :value="true" fixed right bottom dark>
<div>
{{ $t('GCodeViewer.Rendering') }} - {{ loadingPercent }}%<br />
{{ $t('GCodeViewer.Rendering') }} - {{ loadingPercent }}%
<br />
<strong>{{ this.loadedFile }}</strong>
</div>
<v-progress-linear class="mt-2" :value="loadingPercent"></v-progress-linear>
@@ -251,14 +235,16 @@
<template v-if="downloadSnackbar.total > 0">
<div>
{{ $t('GCodeViewer.Downloading') }} - {{ Math.round(downloadSnackbar.percent) }} % @
{{ formatFilesize(Math.round(downloadSnackbar.speed)) }}/s<br />
{{ formatFilesize(Math.round(downloadSnackbar.speed)) }}/s
<br />
<strong>{{ downloadSnackbar.filename }}</strong>
</div>
<v-progress-linear class="mt-2" :value="downloadSnackbar.percent"></v-progress-linear>
</template>
<template v-else>
<div>
{{ $t('GCodeViewer.Downloading') }}<br />
{{ $t('GCodeViewer.Downloading') }}
<br />
<strong>{{ downloadSnackbar.filename }}</strong>
</div>
<v-progress-linear class="mt-2" indeterminate></v-progress-linear>
+3 -3
View File
@@ -13,9 +13,9 @@
<span>{{ convertName(name) }}</span>
<v-spacer></v-spacer>
<small :class="'mr-3 ' + statusColor + '--text'">{{ statusText }}</small>
<v-icon @click="changeSensor">{{
enabled ? 'mdi-toggle-switch' : 'mdi-toggle-switch-off-outline'
}}</v-icon>
<v-icon @click="changeSensor">
{{ enabled ? 'mdi-toggle-switch' : 'mdi-toggle-switch-off-outline' }}
</v-icon>
</v-subheader>
</v-col>
</v-row>
@@ -24,8 +24,7 @@
hide-spin-buttons
hide-details
outlined
dense
>
dense>
<template v-if="hasSpinner" v-slot:append-outer>
<div class="_spin_button_group">
<v-btn
@@ -34,8 +33,7 @@
class="mt-n3"
icon
plain
small
>
small>
<v-icon>mdi-chevron-up</v-icon>
</v-btn>
<v-btn @click="decrement" :disabled="value <= min || error" class="mb-n3" icon plain small>
+2 -4
View File
@@ -17,8 +17,7 @@
:color="color"
:class="paramArray.length ? 'macroWithParameters' : ''"
:loading="loadings.includes('macro_' + macro.name)"
@click="doSendMacro(macro.name)"
>
@click="doSendMacro(macro.name)">
{{ macro.name.replace(/_/g, ' ') }}
</v-btn>
<template v-if="paramArray.length">
@@ -42,8 +41,7 @@
dense
clearable
clear-icon="mdi-refresh"
@keyup.enter="sendWithParams"
></v-text-field>
@keyup.enter="sendWithParams"></v-text-field>
</v-col>
</v-row>
<v-row class="my-2">
@@ -14,8 +14,7 @@
@click="isLocked = !isLocked"
plain
small
icon
>
icon>
<v-icon small :color="isLocked ? 'red' : ''">
{{ isLocked ? 'mdi-lock-outline' : 'mdi-lock-open-variant-outline' }}
</v-icon>
@@ -23,8 +22,7 @@
<v-icon
small
:class="'mr-2 ' + (value >= off_below && value > 0 ? 'icon-rotate' : '')"
v-if="type !== 'output_pin'"
>
v-if="type !== 'output_pin'">
mdi-fan
</v-icon>
<span>{{ convertName(name) }}</span>
@@ -49,8 +47,7 @@
:step="0.01"
:color="value < off_below && value > 0 ? 'red' : undefined"
@change="changeSlider"
hide-details
>
hide-details>
<template v-slot:prepend>
<v-icon @click="decrement" :disabled="isLocked">mdi-minus</v-icon>
</template>
@@ -24,8 +24,7 @@
hide-spin-buttons
hide-details
outlined
dense
>
dense>
<template v-if="hasSpinner" v-slot:append-outer>
<div class="_spin_button_group">
<v-btn
@@ -34,8 +33,7 @@
class="mt-n3"
icon
plain
small
>
small>
<v-icon>mdi-chevron-up</v-icon>
</v-btn>
<v-btn @click="decrement" :disabled="value <= min || error" class="mb-n3" icon plain small>
+3 -6
View File
@@ -31,8 +31,7 @@
hide-spin-buttons
hide-details="auto"
outlined
dense
>
dense>
<template v-if="hasSpinner" v-slot:append-outer>
<div class="_spin_button_group">
<v-btn
@@ -41,8 +40,7 @@
class="mt-n3"
icon
plain
small
>
small>
<v-icon>mdi-chevron-up</v-icon>
</v-btn>
<v-btn
@@ -51,8 +49,7 @@
class="mb-n3"
icon
plain
small
>
small>
<v-icon>mdi-chevron-down</v-icon>
</v-btn>
</div>
@@ -24,8 +24,7 @@
hide-spin-buttons
hide-details
outlined
dense
>
dense>
<template v-if="hasSpinner" v-slot:append-outer>
<div class="_spin_button_group">
<v-btn
@@ -34,8 +33,7 @@
class="mt-n3"
icon
plain
small
>
small>
<v-icon>mdi-chevron-up</v-icon>
</v-btn>
<v-btn @click="decrement" :disabled="value <= min || error" class="mb-n3" icon plain small>
+1 -3
View File
@@ -34,9 +34,7 @@
@keydown.tab="setTemps"
@change="changeValue"
@blur="onBlur"
hide-spin-buttons
>
</v-combobox>
hide-spin-buttons></v-combobox>
</template>
<script lang="ts">
+3 -5
View File
@@ -24,12 +24,11 @@
x-small
icon
:disabled="isLocked"
@click="resetSlider"
>
@click="resetSlider">
<v-icon>mdi-restart</v-icon>
</v-btn>
<v-spacer></v-spacer>
<span class="font-weight-bold"> {{ value }} {{ unit }} </span>
<span class="font-weight-bold">{{ value }} {{ unit }}</span>
</v-subheader>
<v-card-text class="py-0">
<v-slider
@@ -40,8 +39,7 @@
:max="processedMax"
:color="colorBar"
@change="changeSlider"
hide-details
>
hide-details>
<template v-slot:prepend>
<v-icon @click="decrement" :disabled="isLocked">mdi-minus</v-icon>
</template>
+4 -5
View File
@@ -18,9 +18,9 @@
<v-tooltip right color="panel">
<template v-slot:activator="{ on, attrs }">
<!-- <v-icon v-bind="attrs" @mouseenter="on.mouseenter" @mouseleave="on.mouseleave" @click.stop="isOpen = true">mdi-help-circle-outline</v-icon> -->
<v-icon v-on="an" v-bind="attrs" @mouseenter="on.mouseenter" @mouseleave="on.mouseleave"
>mdi-help-circle-outline</v-icon
>
<v-icon v-on="an" v-bind="attrs" @mouseenter="on.mouseenter" @mouseleave="on.mouseleave">
mdi-help-circle-outline
</v-icon>
</template>
<span class="dark version-container">
<div><img height="12" src="/img/logo.svg" /></div>
@@ -44,8 +44,7 @@
<v-img
height="80"
contain
src="https://docs.mainsail.xyz/assets/img/logo-mainsail.png"
></v-img>
src="https://docs.mainsail.xyz/assets/img/logo-mainsail.png"></v-img>
</v-col>
</v-row>
<v-row tag="data1" justify="center">
+1 -2
View File
@@ -26,8 +26,7 @@
icon="mdi-gamepad"
:title="$t('Panels.ControlPanel.Headline')"
:collapsible="true"
card-class="control-panel"
>
card-class="control-panel">
<v-container>
<control-panel-cross-control v-if="controlStyle === 'cross'"></control-panel-cross-control>
<control-panel-circle-control v-else-if="controlStyle === 'circle'"></control-panel-circle-control>
@@ -17,27 +17,28 @@
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
>
: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="existsQGL"
>{{ $t('Panels.ControlPanel.QGL') }}</v-btn
>
v-if="existsQGL">
{{ $t('Panels.ControlPanel.QGL') }}
</v-btn>
<v-btn
small
@click="doZtilt"
:loading="loadings.includes('zTilt')"
:color="colorZTilt"
class="ml-2"
v-if="existsZtilt"
>{{ $t('Panels.ControlPanel.ZTilt') }}</v-btn
>
v-if="existsZtilt">
{{ $t('Panels.ControlPanel.ZTilt') }}
</v-btn>
</v-col>
</v-row>
<v-row no-gutters class="mt-2">
@@ -47,23 +48,23 @@
@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-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
>
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-bind:key="'x+' + steps">
<span class="body-2">+{{ steps }}</span>
</v-btn>
</v-btn-toggle>
</v-col>
</v-row>
@@ -74,23 +75,23 @@
@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-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
>
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-bind:key="'y+' + steps">
<span class="body-2">+{{ steps }}</span>
</v-btn>
</v-btn-toggle>
</v-col>
</v-row>
@@ -101,23 +102,23 @@
@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-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
>
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-bind:key="'z+' + steps">
<span class="body-2">+{{ steps }}</span>
</v-btn>
</v-btn-toggle>
</v-col>
</v-row>
@@ -111,24 +111,20 @@ svg a#tilt_adjust #tilt_icon {
xmlns:xlink="http://www.w3.org/1999/xlink"
xml:space="preserve"
xmlns:serif="http://www.serif.com/"
style="fill-rule: evenodd; clip-rule: evenodd; stroke-linejoin: round; stroke-miterlimit: 2"
>
style="fill-rule: evenodd; clip-rule: evenodd; stroke-linejoin: round; stroke-miterlimit: 2">
<g id="ArtBoard1" transform="matrix(1.24239,0,0,1,0,0)">
<rect x="0" y="0" width="62" height="62" style="fill: none" />
<g id="home_buttons" transform="matrix(0.804902,0,0,1,0.0430241,0)">
<a @click="doHomeX">
<g
id="home_x"
transform="matrix(0.707107,-0.707107,0.707107,0.707107,-1.41799,4.05689)"
>
transform="matrix(0.707107,-0.707107,0.707107,0.707107,-1.41799,4.05689)">
<g
id="home_button_x"
:class="'home_button' + (homedAxes.includes('x') ? ' homed' : '')"
transform="matrix(0.68689,0.68689,-0.68689,0.68689,3.87132,0.962447)"
>
transform="matrix(0.68689,0.68689,-0.68689,0.68689,3.87132,0.962447)">
<path
d="M9.188,-0C9.634,0.001 10.028,0.291 10.162,0.717C10.295,1.142 10.136,1.605 9.77,1.86C6.722,4.035 4.05,6.701 1.869,9.743C1.614,10.11 1.151,10.269 0.724,10.135C0.298,10.002 0.008,9.607 0.008,9.16C0,6.418 0,2.781 0,1.029C-0,0.756 0.108,0.495 0.302,0.302C0.495,0.108 0.756,-0 1.029,0L9.188,-0Z"
/>
d="M9.188,-0C9.634,0.001 10.028,0.291 10.162,0.717C10.295,1.142 10.136,1.605 9.77,1.86C6.722,4.035 4.05,6.701 1.869,9.743C1.614,10.11 1.151,10.269 0.724,10.135C0.298,10.002 0.008,9.607 0.008,9.16C0,6.418 0,2.781 0,1.029C-0,0.756 0.108,0.495 0.302,0.302C0.495,0.108 0.756,-0 1.029,0L9.188,-0Z" />
</g>
<g transform="matrix(0.654426,0,0,0.654426,0.298666,4.01315)">
<text x="3.789px" y="6.089px">X</text>
@@ -136,28 +132,23 @@ svg a#tilt_adjust #tilt_icon {
<g
id="Icon"
class="home-icon"
transform="matrix(0.147059,0,0,0.147059,2.10662,2.08254)"
>
transform="matrix(0.147059,0,0,0.147059,2.10662,2.08254)">
<path
d="M10,20L10,14L14,14L14,20L19,20L19,12L22,12L12,3L2,12L5,12L5,20L10,20Z"
style="fill-rule: nonzero"
/>
style="fill-rule: nonzero" />
</g>
</g>
</a>
<a @click="doHomeY">
<g
id="home_y"
transform="matrix(0.707107,0.707107,-0.707107,0.707107,57.8807,-1.41799)"
>
transform="matrix(0.707107,0.707107,-0.707107,0.707107,57.8807,-1.41799)">
<g
id="home_button_y"
:class="'home_button' + (homedAxes.includes('y') ? ' homed' : '')"
transform="matrix(0.68689,0.68689,-0.68689,0.68689,3.87132,0.962447)"
>
transform="matrix(0.68689,0.68689,-0.68689,0.68689,3.87132,0.962447)">
<path
d="M9.188,-0C9.634,0.001 10.028,0.291 10.162,0.717C10.295,1.142 10.136,1.605 9.77,1.86C6.722,4.035 4.05,6.701 1.869,9.743C1.614,10.11 1.151,10.269 0.724,10.135C0.298,10.002 0.008,9.607 0.008,9.16C0,6.418 0,2.781 0,1.029C-0,0.756 0.108,0.495 0.302,0.302C0.495,0.108 0.756,-0 1.029,0L9.188,-0Z"
/>
d="M9.188,-0C9.634,0.001 10.028,0.291 10.162,0.717C10.295,1.142 10.136,1.605 9.77,1.86C6.722,4.035 4.05,6.701 1.869,9.743C1.614,10.11 1.151,10.269 0.724,10.135C0.298,10.002 0.008,9.607 0.008,9.16C0,6.418 0,2.781 0,1.029C-0,0.756 0.108,0.495 0.302,0.302C0.495,0.108 0.756,-0 1.029,0L9.188,-0Z" />
</g>
<g transform="matrix(0.654426,0,0,0.654426,0.298666,4.01315)">
<text x="3.789px" y="6.089px">Y</text>
@@ -165,28 +156,23 @@ svg a#tilt_adjust #tilt_icon {
<g
id="icon"
class="home-icon"
transform="matrix(0.147059,0,0,0.147059,2.10662,2.08254)"
>
transform="matrix(0.147059,0,0,0.147059,2.10662,2.08254)">
<path
d="M10,20L10,14L14,14L14,20L19,20L19,12L22,12L12,3L2,12L5,12L5,20L10,20Z"
style="fill-rule: nonzero"
/>
style="fill-rule: nonzero" />
</g>
</g>
</a>
<a @click="doHomeZ">
<g
id="home_z"
transform="matrix(-0.707107,0.707107,-0.707107,-0.707107,63.3555,57.8807)"
>
transform="matrix(-0.707107,0.707107,-0.707107,-0.707107,63.3555,57.8807)">
<g
id="home_button_z"
:class="'home_button ' + (homedAxes.includes('z') ? ' homed' : '')"
transform="matrix(0.68689,0.68689,-0.68689,0.68689,3.87132,0.962447)"
>
transform="matrix(0.68689,0.68689,-0.68689,0.68689,3.87132,0.962447)">
<path
d="M9.188,0C9.634,0.001 10.028,0.291 10.162,0.717C10.295,1.142 10.136,1.605 9.77,1.86C6.722,4.035 4.05,6.701 1.869,9.743C1.614,10.11 1.151,10.269 0.724,10.135C0.298,10.002 0.008,9.607 0.008,9.16C0,6.418 0,2.781 0,1.029C-0,0.756 0.108,0.495 0.302,0.302C0.495,0.108 0.756,-0 1.029,0L9.188,0Z"
/>
d="M9.188,0C9.634,0.001 10.028,0.291 10.162,0.717C10.295,1.142 10.136,1.605 9.77,1.86C6.722,4.035 4.05,6.701 1.869,9.743C1.614,10.11 1.151,10.269 0.724,10.135C0.298,10.002 0.008,9.607 0.008,9.16C0,6.418 0,2.781 0,1.029C-0,0.756 0.108,0.495 0.302,0.302C0.495,0.108 0.756,-0 1.029,0L9.188,0Z" />
</g>
<g transform="matrix(0.654426,0,0,0.654426,0.298666,4.01315)">
<text x="3.93px" y="6.089px">Z</text>
@@ -195,39 +181,32 @@ svg a#tilt_adjust #tilt_icon {
id="icon1"
class="home-icon"
serif:id="icon"
transform="matrix(0.147059,0,0,0.147059,2.10662,2.08254)"
>
transform="matrix(0.147059,0,0,0.147059,2.10662,2.08254)">
<path
d="M10,20L10,14L14,14L14,20L19,20L19,12L22,12L12,3L2,12L5,12L5,20L10,20Z"
style="fill-rule: nonzero"
/>
style="fill-rule: nonzero" />
</g>
</g>
</a>
<a @click="doHome">
<g
id="home_all"
transform="matrix(-0.707107,-0.707107,0.707107,-0.707107,4.05689,63.3555)"
>
transform="matrix(-0.707107,-0.707107,0.707107,-0.707107,4.05689,63.3555)">
<g
id="home_button_all"
:class="'home_button' + (homedAxes.includes('xyz') ? ' homed' : '')"
transform="matrix(0.68689,0.68689,-0.68689,0.68689,3.87132,0.962447)"
>
transform="matrix(0.68689,0.68689,-0.68689,0.68689,3.87132,0.962447)">
<path
d="M9.188,0C9.634,0.001 10.028,0.291 10.162,0.717C10.295,1.142 10.136,1.605 9.77,1.86C6.722,4.035 4.05,6.701 1.869,9.743C1.614,10.11 1.151,10.269 0.724,10.135C0.298,10.002 0.008,9.607 0.008,9.16C0,6.418 0,2.781 0,1.029C-0,0.756 0.108,0.495 0.302,0.302C0.495,0.108 0.756,-0 1.029,0L9.188,0Z"
/>
d="M9.188,0C9.634,0.001 10.028,0.291 10.162,0.717C10.295,1.142 10.136,1.605 9.77,1.86C6.722,4.035 4.05,6.701 1.869,9.743C1.614,10.11 1.151,10.269 0.724,10.135C0.298,10.002 0.008,9.607 0.008,9.16C0,6.418 0,2.781 0,1.029C-0,0.756 0.108,0.495 0.302,0.302C0.495,0.108 0.756,-0 1.029,0L9.188,0Z" />
</g>
<g
id="icon2"
class="home-icon"
serif:id="icon"
transform="matrix(0.29377,0,0,0.29377,0.346087,1.64241)"
>
transform="matrix(0.29377,0,0,0.29377,0.346087,1.64241)">
<path
d="M10,20L10,14L14,14L14,20L19,20L19,12L22,12L12,3L2,12L5,12L5,20L10,20Z"
style="fill-rule: nonzero"
/>
style="fill-rule: nonzero" />
</g>
</g>
</a>
@@ -242,12 +221,10 @@ svg a#tilt_adjust #tilt_icon {
feedrateZ
)
"
class="step inner"
>
class="step inner">
<g transform="matrix(0.804902,0,0,1,0,0)">
<path
d="M66.037,19.186C69.409,18.542 72.742,18.52 76.037,19.102L76.037,23.682C76.037,23.815 75.984,23.942 75.891,24.036C75.564,24.362 74.774,25.153 74.359,25.567C74.204,25.722 73.967,25.757 73.773,25.656C72.955,25.236 72.029,25 71.048,25C70.051,25 69.112,25.243 68.284,25.674C68.09,25.777 67.852,25.742 67.697,25.586C67.283,25.175 66.506,24.395 66.183,24.071C66.09,23.977 66.037,23.85 66.037,23.718C66.037,22.806 66.037,19.186 66.037,19.186Z"
/>
d="M66.037,19.186C69.409,18.542 72.742,18.52 76.037,19.102L76.037,23.682C76.037,23.815 75.984,23.942 75.891,24.036C75.564,24.362 74.774,25.153 74.359,25.567C74.204,25.722 73.967,25.757 73.773,25.656C72.955,25.236 72.029,25 71.048,25C70.051,25 69.112,25.243 68.284,25.674C68.09,25.777 67.852,25.742 67.697,25.586C67.283,25.175 66.506,24.395 66.183,24.071C66.09,23.977 66.037,23.85 66.037,23.718C66.037,22.806 66.037,19.186 66.037,19.186Z" />
</g>
</a>
<a
@@ -257,14 +234,11 @@ svg a#tilt_adjust #tilt_icon {
feedrateZ
)
"
class="step inner-mid"
>
class="step inner-mid">
<g
transform="matrix(0.804902,1.2326e-32,-9.92118e-33,1,-5.71917e-15,-7.10543e-15)"
>
transform="matrix(0.804902,1.2326e-32,-9.92118e-33,1,-5.71917e-15,-7.10543e-15)">
<path
d="M66.037,13.244C69.353,12.66 72.687,12.7 76.037,13.355L76.037,20.099C74.523,19.39 72.831,19 71.048,19C69.256,19 67.556,19.393 66.037,20.109L66.037,13.244Z"
/>
d="M66.037,13.244C69.353,12.66 72.687,12.7 76.037,13.355L76.037,20.099C74.523,19.39 72.831,19 71.048,19C69.256,19 67.556,19.393 66.037,20.109L66.037,13.244Z" />
</g>
</a>
<a
@@ -274,12 +248,10 @@ svg a#tilt_adjust #tilt_icon {
feedrateZ
)
"
class="step outer-mid"
>
class="step outer-mid">
<g transform="matrix(0.804902,0,0,1,0,0)">
<path
d="M66.037,7.221C69.367,6.597 72.7,6.583 76.037,7.192L76.037,13.702C74.453,13.245 72.778,13 71.048,13C69.309,13 67.627,13.247 66.037,13.708L66.037,7.221Z"
/>
d="M66.037,7.221C69.367,6.597 72.7,6.583 76.037,7.192L76.037,13.702C74.453,13.245 72.778,13 71.048,13C69.309,13 67.627,13.247 66.037,13.708L66.037,7.221Z" />
</g>
</a>
<a
@@ -289,12 +261,10 @@ svg a#tilt_adjust #tilt_icon {
feedrateZ
)
"
class="step outer"
>
class="step outer">
<g transform="matrix(0.804902,0,0,1,0,0)">
<path
d="M66.037,2.5C66.037,1.672 66.709,1 67.537,1L74.537,1C75.365,1 76.037,1.672 76.037,2.5L76.037,7.521C74.428,7.179 72.759,7 71.048,7C69.33,7 67.654,7.181 66.037,7.525L66.037,2.5Z"
/>
d="M66.037,2.5C66.037,1.672 66.709,1 67.537,1L74.537,1C75.365,1 76.037,1.672 76.037,2.5L76.037,7.521C74.428,7.179 72.759,7 71.048,7C69.33,7 67.654,7.181 66.037,7.525L66.037,2.5Z" />
</g>
</a>
</g>
@@ -306,12 +276,10 @@ svg a#tilt_adjust #tilt_icon {
feedrateZ
)
"
class="step inner"
>
class="step inner">
<g transform="matrix(0.804902,0,0,1,0,0)">
<path
d="M66.037,19.186C69.409,18.542 72.742,18.52 76.037,19.102L76.037,23.682C76.037,23.815 75.984,23.942 75.891,24.036C75.564,24.362 74.774,25.153 74.359,25.567C74.204,25.722 73.967,25.757 73.773,25.656C72.955,25.236 72.029,25 71.048,25C70.051,25 69.112,25.243 68.284,25.674C68.09,25.777 67.852,25.742 67.697,25.586C67.283,25.175 66.506,24.395 66.183,24.071C66.09,23.977 66.037,23.85 66.037,23.718C66.037,22.806 66.037,19.186 66.037,19.186Z"
/>
d="M66.037,19.186C69.409,18.542 72.742,18.52 76.037,19.102L76.037,23.682C76.037,23.815 75.984,23.942 75.891,24.036C75.564,24.362 74.774,25.153 74.359,25.567C74.204,25.722 73.967,25.757 73.773,25.656C72.955,25.236 72.029,25 71.048,25C70.051,25 69.112,25.243 68.284,25.674C68.09,25.777 67.852,25.742 67.697,25.586C67.283,25.175 66.506,24.395 66.183,24.071C66.09,23.977 66.037,23.85 66.037,23.718C66.037,22.806 66.037,19.186 66.037,19.186Z" />
</g>
</a>
<a
@@ -321,14 +289,11 @@ svg a#tilt_adjust #tilt_icon {
feedrateZ
)
"
class="step inner-mid"
>
class="step inner-mid">
<g
transform="matrix(0.804902,1.2326e-32,-9.92118e-33,1,-5.71917e-15,-7.10543e-15)"
>
transform="matrix(0.804902,1.2326e-32,-9.92118e-33,1,-5.71917e-15,-7.10543e-15)">
<path
d="M66.037,13.244C69.353,12.66 72.687,12.7 76.037,13.355L76.037,20.099C74.523,19.39 72.831,19 71.048,19C69.256,19 67.556,19.393 66.037,20.109L66.037,13.244Z"
/>
d="M66.037,13.244C69.353,12.66 72.687,12.7 76.037,13.355L76.037,20.099C74.523,19.39 72.831,19 71.048,19C69.256,19 67.556,19.393 66.037,20.109L66.037,13.244Z" />
</g>
</a>
<a
@@ -338,12 +303,10 @@ svg a#tilt_adjust #tilt_icon {
feedrateZ
)
"
class="step outer-mid"
>
class="step outer-mid">
<g transform="matrix(0.804902,0,0,1,0,0)">
<path
d="M66.037,7.221C69.367,6.597 72.7,6.583 76.037,7.192L76.037,13.702C74.453,13.245 72.778,13 71.048,13C69.309,13 67.627,13.247 66.037,13.708L66.037,7.221Z"
/>
d="M66.037,7.221C69.367,6.597 72.7,6.583 76.037,7.192L76.037,13.702C74.453,13.245 72.778,13 71.048,13C69.309,13 67.627,13.247 66.037,13.708L66.037,7.221Z" />
</g>
</a>
<a
@@ -353,12 +316,10 @@ svg a#tilt_adjust #tilt_icon {
feedrateZ
)
"
class="step outer"
>
class="step outer">
<g transform="matrix(0.804902,0,0,1,0,0)">
<path
d="M66.037,2.5C66.037,1.672 66.709,1 67.537,1L74.537,1C75.365,1 76.037,1.672 76.037,2.5L76.037,7.521C74.428,7.179 72.759,7 71.048,7C69.33,7 67.654,7.181 66.037,7.525L66.037,2.5Z"
/>
d="M66.037,2.5C66.037,1.672 66.709,1 67.537,1L74.537,1C75.365,1 76.037,1.672 76.037,2.5L76.037,7.521C74.428,7.179 72.759,7 71.048,7C69.33,7 67.654,7.181 66.037,7.525L66.037,2.5Z" />
</g>
</a>
</g>
@@ -394,12 +355,10 @@ svg a#tilt_adjust #tilt_icon {
feedrateXY
)
"
class="step inner"
>
class="step inner">
<g transform="matrix(0.48,0,0,0.48,19,19)">
<path
d="M36.096,19.243C35.88,18.839 35.954,18.342 36.278,18.019C40.686,13.619 69.84,-15.445 69.84,-15.445C90.891,13.786 89.845,38.467 69.564,65.144C69.564,65.144 40.684,36.265 36.318,31.899C35.996,31.576 35.922,31.081 36.134,30.678C37.008,28.975 37.5,27.044 37.5,25C37.5,22.925 36.993,20.967 36.096,19.243Z"
/>
d="M36.096,19.243C35.88,18.839 35.954,18.342 36.278,18.019C40.686,13.619 69.84,-15.445 69.84,-15.445C90.891,13.786 89.845,38.467 69.564,65.144C69.564,65.144 40.684,36.265 36.318,31.899C35.996,31.576 35.922,31.081 36.134,30.678C37.008,28.975 37.5,27.044 37.5,25C37.5,22.925 36.993,20.967 36.096,19.243Z" />
</g>
</a>
<a
@@ -409,12 +368,10 @@ svg a#tilt_adjust #tilt_icon {
feedrateXY
)
"
class="step inner-mid"
>
class="step inner-mid">
<g transform="matrix(0.72,0,0,0.72,13,13)">
<path
d="M54.897,-1.964C68.991,16.277 68.542,32.764 54.738,51.763L44.077,41.131L38.115,35.169C40.361,32.389 41.667,28.846 41.667,25C41.667,21.132 40.346,17.57 38.076,14.784L54.897,-1.964Z"
/>
d="M54.897,-1.964C68.991,16.277 68.542,32.764 54.738,51.763L44.077,41.131L38.115,35.169C40.361,32.389 41.667,28.846 41.667,25C41.667,21.132 40.346,17.57 38.076,14.784L54.897,-1.964Z" />
</g>
</a>
<a
@@ -424,12 +381,10 @@ svg a#tilt_adjust #tilt_icon {
feedrateXY
)
"
class="step outer-mid"
>
class="step outer-mid">
<g transform="matrix(0.96,0,0,0.96,7,7)">
<path
d="M47.418,4.777C57.663,18.688 57.829,31.029 47.304,45.072L39.308,37.098C42.081,33.838 43.75,29.612 43.75,25C43.75,20.371 42.069,16.132 39.277,12.868L47.418,4.777Z"
/>
d="M47.418,4.777C57.663,18.688 57.829,31.029 47.304,45.072L39.308,37.098C42.081,33.838 43.75,29.612 43.75,25C43.75,20.371 42.069,16.132 39.277,12.868L47.418,4.777Z" />
</g>
</a>
<a
@@ -439,12 +394,10 @@ svg a#tilt_adjust #tilt_icon {
feedrateXY
)
"
class="step outer"
>
class="step outer">
<g transform="matrix(1.2,0,0,1.2,1,1)">
<path
d="M43.181,8.535C43.262,8.453 43.373,8.409 43.488,8.412C43.602,8.415 43.711,8.466 43.787,8.551C47.661,12.933 50,18.695 50,25C50,31.291 47.672,37.042 43.811,41.42C43.735,41.505 43.627,41.556 43.512,41.559C43.398,41.562 43.287,41.518 43.206,41.437C42.343,40.575 39.981,38.213 39.981,38.213C43.11,34.7 45,30.069 45,25C45,19.918 43.1,15.276 39.956,11.759C39.956,11.759 42.319,9.397 43.181,8.535Z"
/>
d="M43.181,8.535C43.262,8.453 43.373,8.409 43.488,8.412C43.602,8.415 43.711,8.466 43.787,8.551C47.661,12.933 50,18.695 50,25C50,31.291 47.672,37.042 43.811,41.42C43.735,41.505 43.627,41.556 43.512,41.559C43.398,41.562 43.287,41.518 43.206,41.437C42.343,40.575 39.981,38.213 39.981,38.213C43.11,34.7 45,30.069 45,25C45,19.918 43.1,15.276 39.956,11.759C39.956,11.759 42.319,9.397 43.181,8.535Z" />
</g>
</a>
</g>
@@ -456,12 +409,10 @@ svg a#tilt_adjust #tilt_icon {
feedrateXY
)
"
class="step inner"
>
class="step inner">
<g transform="matrix(0.48,0,0,0.48,19,19)">
<path
d="M36.096,19.243C35.88,18.839 35.954,18.342 36.278,18.019C40.686,13.619 69.84,-15.445 69.84,-15.445C90.891,13.786 89.845,38.467 69.564,65.144C69.564,65.144 40.684,36.265 36.318,31.899C35.996,31.576 35.922,31.081 36.134,30.678C37.008,28.975 37.5,27.044 37.5,25C37.5,22.925 36.993,20.967 36.096,19.243Z"
/>
d="M36.096,19.243C35.88,18.839 35.954,18.342 36.278,18.019C40.686,13.619 69.84,-15.445 69.84,-15.445C90.891,13.786 89.845,38.467 69.564,65.144C69.564,65.144 40.684,36.265 36.318,31.899C35.996,31.576 35.922,31.081 36.134,30.678C37.008,28.975 37.5,27.044 37.5,25C37.5,22.925 36.993,20.967 36.096,19.243Z" />
</g>
</a>
<a
@@ -471,12 +422,10 @@ svg a#tilt_adjust #tilt_icon {
feedrateXY
)
"
class="step inner-mid"
>
class="step inner-mid">
<g transform="matrix(0.72,0,0,0.72,13,13)">
<path
d="M54.897,-1.964C68.991,16.277 68.542,32.764 54.738,51.763L44.077,41.131L38.115,35.169C40.361,32.389 41.667,28.846 41.667,25C41.667,21.132 40.346,17.57 38.076,14.784L54.897,-1.964Z"
/>
d="M54.897,-1.964C68.991,16.277 68.542,32.764 54.738,51.763L44.077,41.131L38.115,35.169C40.361,32.389 41.667,28.846 41.667,25C41.667,21.132 40.346,17.57 38.076,14.784L54.897,-1.964Z" />
</g>
</a>
<a
@@ -486,12 +435,10 @@ svg a#tilt_adjust #tilt_icon {
feedrateXY
)
"
class="step outer-mid"
>
class="step outer-mid">
<g transform="matrix(0.96,0,0,0.96,7,7)">
<path
d="M47.418,4.777C57.663,18.688 57.829,31.029 47.304,45.072L39.308,37.098C42.081,33.838 43.75,29.612 43.75,25C43.75,20.371 42.069,16.132 39.277,12.868L47.418,4.777Z"
/>
d="M47.418,4.777C57.663,18.688 57.829,31.029 47.304,45.072L39.308,37.098C42.081,33.838 43.75,29.612 43.75,25C43.75,20.371 42.069,16.132 39.277,12.868L47.418,4.777Z" />
</g>
</a>
<a
@@ -501,20 +448,17 @@ svg a#tilt_adjust #tilt_icon {
feedrateXY
)
"
class="step outer"
>
class="step outer">
<g transform="matrix(1.2,0,0,1.2,1,1)">
<path
d="M43.181,8.535C43.262,8.453 43.373,8.409 43.488,8.412C43.602,8.415 43.711,8.466 43.787,8.551C47.661,12.933 50,18.695 50,25C50,31.291 47.672,37.042 43.811,41.42C43.735,41.505 43.627,41.556 43.512,41.559C43.398,41.562 43.287,41.518 43.206,41.437C42.343,40.575 39.981,38.213 39.981,38.213C43.11,34.7 45,30.069 45,25C45,19.918 43.1,15.276 39.956,11.759C39.956,11.759 42.319,9.397 43.181,8.535Z"
/>
d="M43.181,8.535C43.262,8.453 43.373,8.409 43.488,8.412C43.602,8.415 43.711,8.466 43.787,8.551C47.661,12.933 50,18.695 50,25C50,31.291 47.672,37.042 43.811,41.42C43.735,41.505 43.627,41.556 43.512,41.559C43.398,41.562 43.287,41.518 43.206,41.437C42.343,40.575 39.981,38.213 39.981,38.213C43.11,34.7 45,30.069 45,25C45,19.918 43.1,15.276 39.956,11.759C39.956,11.759 42.319,9.397 43.181,8.535Z" />
</g>
</a>
</g>
<g
id="Bottom1"
serif:id="Bottom"
transform="matrix(6.12323e-17,1,-1,6.12323e-17,61.9767,-1.77705e-14)"
>
transform="matrix(6.12323e-17,1,-1,6.12323e-17,61.9767,-1.77705e-14)">
<a
@click="
doSendMove(
@@ -522,12 +466,10 @@ svg a#tilt_adjust #tilt_icon {
feedrateXY
)
"
class="step inner"
>
class="step inner">
<g transform="matrix(0.48,0,0,0.48,19,19)">
<path
d="M36.096,19.243C35.88,18.839 35.954,18.342 36.278,18.019C40.686,13.619 69.84,-15.445 69.84,-15.445C90.891,13.786 89.845,38.467 69.564,65.144C69.564,65.144 40.684,36.265 36.318,31.899C35.996,31.576 35.922,31.081 36.134,30.678C37.008,28.975 37.5,27.044 37.5,25C37.5,22.925 36.993,20.967 36.096,19.243Z"
/>
d="M36.096,19.243C35.88,18.839 35.954,18.342 36.278,18.019C40.686,13.619 69.84,-15.445 69.84,-15.445C90.891,13.786 89.845,38.467 69.564,65.144C69.564,65.144 40.684,36.265 36.318,31.899C35.996,31.576 35.922,31.081 36.134,30.678C37.008,28.975 37.5,27.044 37.5,25C37.5,22.925 36.993,20.967 36.096,19.243Z" />
</g>
</a>
<a
@@ -537,12 +479,10 @@ svg a#tilt_adjust #tilt_icon {
feedrateXY
)
"
class="step inner-mid"
>
class="step inner-mid">
<g transform="matrix(0.72,0,0,0.72,13,13)">
<path
d="M54.897,-1.964C68.991,16.277 68.542,32.764 54.738,51.763L44.077,41.131L38.115,35.169C40.361,32.389 41.667,28.846 41.667,25C41.667,21.132 40.346,17.57 38.076,14.784L54.897,-1.964Z"
/>
d="M54.897,-1.964C68.991,16.277 68.542,32.764 54.738,51.763L44.077,41.131L38.115,35.169C40.361,32.389 41.667,28.846 41.667,25C41.667,21.132 40.346,17.57 38.076,14.784L54.897,-1.964Z" />
</g>
</a>
<a
@@ -552,12 +492,10 @@ svg a#tilt_adjust #tilt_icon {
feedrateXY
)
"
class="step outer-mid"
>
class="step outer-mid">
<g transform="matrix(0.96,0,0,0.96,7,7)">
<path
d="M47.418,4.777C57.663,18.688 57.829,31.029 47.304,45.072L39.308,37.098C42.081,33.838 43.75,29.612 43.75,25C43.75,20.371 42.069,16.132 39.277,12.868L47.418,4.777Z"
/>
d="M47.418,4.777C57.663,18.688 57.829,31.029 47.304,45.072L39.308,37.098C42.081,33.838 43.75,29.612 43.75,25C43.75,20.371 42.069,16.132 39.277,12.868L47.418,4.777Z" />
</g>
</a>
<a
@@ -567,20 +505,17 @@ svg a#tilt_adjust #tilt_icon {
feedrateXY
)
"
class="step outer"
>
class="step outer">
<g transform="matrix(1.2,0,0,1.2,1,1)">
<path
d="M43.181,8.535C43.262,8.453 43.373,8.409 43.488,8.412C43.602,8.415 43.711,8.466 43.787,8.551C47.661,12.933 50,18.695 50,25C50,31.291 47.672,37.042 43.811,41.42C43.735,41.505 43.627,41.556 43.512,41.559C43.398,41.562 43.287,41.518 43.206,41.437C42.343,40.575 39.981,38.213 39.981,38.213C43.11,34.7 45,30.069 45,25C45,19.918 43.1,15.276 39.956,11.759C39.956,11.759 42.319,9.397 43.181,8.535Z"
/>
d="M43.181,8.535C43.262,8.453 43.373,8.409 43.488,8.412C43.602,8.415 43.711,8.466 43.787,8.551C47.661,12.933 50,18.695 50,25C50,31.291 47.672,37.042 43.811,41.42C43.735,41.505 43.627,41.556 43.512,41.559C43.398,41.562 43.287,41.518 43.206,41.437C42.343,40.575 39.981,38.213 39.981,38.213C43.11,34.7 45,30.069 45,25C45,19.918 43.1,15.276 39.956,11.759C39.956,11.759 42.319,9.397 43.181,8.535Z" />
</g>
</a>
</g>
<g
id="Top1"
serif:id="Top"
transform="matrix(6.12323e-17,-1,1,6.12323e-17,7.10543e-15,61.9767)"
>
transform="matrix(6.12323e-17,-1,1,6.12323e-17,7.10543e-15,61.9767)">
<a
@click="
doSendMove(
@@ -588,12 +523,10 @@ svg a#tilt_adjust #tilt_icon {
feedrateXY
)
"
class="step inner"
>
class="step inner">
<g transform="matrix(0.48,0,0,0.48,19,19)">
<path
d="M36.096,19.243C35.88,18.839 35.954,18.342 36.278,18.019C40.686,13.619 69.84,-15.445 69.84,-15.445C90.891,13.786 89.845,38.467 69.564,65.144C69.564,65.144 40.684,36.265 36.318,31.899C35.996,31.576 35.922,31.081 36.134,30.678C37.008,28.975 37.5,27.044 37.5,25C37.5,22.925 36.993,20.967 36.096,19.243Z"
/>
d="M36.096,19.243C35.88,18.839 35.954,18.342 36.278,18.019C40.686,13.619 69.84,-15.445 69.84,-15.445C90.891,13.786 89.845,38.467 69.564,65.144C69.564,65.144 40.684,36.265 36.318,31.899C35.996,31.576 35.922,31.081 36.134,30.678C37.008,28.975 37.5,27.044 37.5,25C37.5,22.925 36.993,20.967 36.096,19.243Z" />
</g>
</a>
<a
@@ -603,12 +536,10 @@ svg a#tilt_adjust #tilt_icon {
feedrateXY
)
"
class="step inner-mid"
>
class="step inner-mid">
<g transform="matrix(0.72,0,0,0.72,13,13)">
<path
d="M54.897,-1.964C68.991,16.277 68.542,32.764 54.738,51.763L44.077,41.131L38.115,35.169C40.361,32.389 41.667,28.846 41.667,25C41.667,21.132 40.346,17.57 38.076,14.784L54.897,-1.964Z"
/>
d="M54.897,-1.964C68.991,16.277 68.542,32.764 54.738,51.763L44.077,41.131L38.115,35.169C40.361,32.389 41.667,28.846 41.667,25C41.667,21.132 40.346,17.57 38.076,14.784L54.897,-1.964Z" />
</g>
</a>
<a
@@ -618,12 +549,10 @@ svg a#tilt_adjust #tilt_icon {
feedrateXY
)
"
class="step outer-mid"
>
class="step outer-mid">
<g transform="matrix(0.96,0,0,0.96,7,7)">
<path
d="M47.418,4.777C57.663,18.688 57.829,31.029 47.304,45.072L39.308,37.098C42.081,33.838 43.75,29.612 43.75,25C43.75,20.371 42.069,16.132 39.277,12.868L47.418,4.777Z"
/>
d="M47.418,4.777C57.663,18.688 57.829,31.029 47.304,45.072L39.308,37.098C42.081,33.838 43.75,29.612 43.75,25C43.75,20.371 42.069,16.132 39.277,12.868L47.418,4.777Z" />
</g>
</a>
<a
@@ -633,12 +562,10 @@ svg a#tilt_adjust #tilt_icon {
feedrateXY
)
"
class="step outer"
>
class="step outer">
<g transform="matrix(1.2,0,0,1.2,1,1)">
<path
d="M43.181,8.535C43.262,8.453 43.373,8.409 43.488,8.412C43.602,8.415 43.711,8.466 43.787,8.551C47.661,12.933 50,18.695 50,25C50,31.291 47.672,37.042 43.811,41.42C43.735,41.505 43.627,41.556 43.512,41.559C43.398,41.562 43.287,41.518 43.206,41.437C42.343,40.575 39.981,38.213 39.981,38.213C43.11,34.7 45,30.069 45,25C45,19.918 43.1,15.276 39.956,11.759C39.956,11.759 42.319,9.397 43.181,8.535Z"
/>
d="M43.181,8.535C43.262,8.453 43.373,8.409 43.488,8.412C43.602,8.415 43.711,8.466 43.787,8.551C47.661,12.933 50,18.695 50,25C50,31.291 47.672,37.042 43.811,41.42C43.735,41.505 43.627,41.556 43.512,41.559C43.398,41.562 43.287,41.518 43.206,41.437C42.343,40.575 39.981,38.213 39.981,38.213C43.11,34.7 45,30.069 45,25C45,19.918 43.1,15.276 39.956,11.759C39.956,11.759 42.319,9.397 43.181,8.535Z" />
</g>
</a>
</g>
@@ -671,15 +598,13 @@ svg a#tilt_adjust #tilt_icon {
id="tilt_adjust"
@click="clickSpecialButton"
v-if="existsQGL || existsZtilt"
:class="colorSpecialButton"
>
:class="colorSpecialButton">
<circle id="tilt_button" cx="70.92" cy="31" r="5" />
<text x="66.776px" y="32.066px">Z-TILT</text>
<g id="tilt_icon">
<path d="M74.189,31.503L67.751,30.009L67.638,30.496L74.076,31.99L74.189,31.503Z" />
<path
d="M74.361,32.85L74.034,32.676L74.939,32.188L75.039,33.211L74.745,33.055C74.386,33.724 73.858,34.288 73.213,34.69L72.983,34.321C73.563,33.959 74.038,33.452 74.361,32.85ZM67.193,28.75C67.586,28.1 68.142,27.564 68.807,27.196L69.018,27.576C68.42,27.907 67.919,28.389 67.565,28.974L67.883,29.165L66.954,29.605L66.907,28.578L67.193,28.75Z"
/>
d="M74.361,32.85L74.034,32.676L74.939,32.188L75.039,33.211L74.745,33.055C74.386,33.724 73.858,34.288 73.213,34.69L72.983,34.321C73.563,33.959 74.038,33.452 74.361,32.85ZM67.193,28.75C67.586,28.1 68.142,27.564 68.807,27.196L69.018,27.576C68.42,27.907 67.919,28.389 67.565,28.974L67.883,29.165L66.954,29.605L66.907,28.578L67.193,28.75Z" />
</g>
</a>
</svg>
@@ -27,8 +27,7 @@
:disabled="selectedCrossStep === null || selectedCrossStep === undefined"
@click="
doSendMove('Y' + (reverseY ? '-' : '+') + stepsReversed[selectedCrossStep], feedrateXY)
"
>
">
<v-icon>mdi-chevron-up</v-icon>
</v-btn>
</v-col>
@@ -39,8 +38,7 @@
:disabled="selectedCrossStep === null || selectedCrossStep === undefined"
@click="
doSendMove('Z' + (reverseZ ? '-' : '+') + stepsReversed[selectedCrossStep], feedrateZ)
"
>
">
<v-icon>mdi-chevron-up</v-icon>
</v-btn>
</v-col>
@@ -53,8 +51,7 @@
:disabled="selectedCrossStep === null || selectedCrossStep === undefined"
@click="
doSendMove('X' + (!reverseX ? '-' : '+') + stepsReversed[selectedCrossStep], feedrateXY)
"
>
">
<v-icon>mdi-chevron-left</v-icon>
</v-btn>
</v-col>
@@ -64,8 +61,7 @@
:disabled="selectedCrossStep === null || selectedCrossStep === undefined"
@click="
doSendMove('Y' + (!reverseY ? '-' : '+') + stepsReversed[selectedCrossStep], feedrateXY)
"
>
">
<v-icon>mdi-chevron-down</v-icon>
</v-btn>
</v-col>
@@ -76,8 +72,7 @@
:disabled="selectedCrossStep === null || selectedCrossStep === undefined"
@click="
doSendMove('X' + (reverseX ? '-' : '+') + stepsReversed[selectedCrossStep], feedrateXY)
"
>
">
<v-icon>mdi-chevron-right</v-icon>
</v-btn>
</v-col>
@@ -87,8 +82,7 @@
:disabled="selectedCrossStep === null || selectedCrossStep === undefined"
@click="
doSendMove('Z' + (!reverseZ ? '-' : '+') + stepsReversed[selectedCrossStep], feedrateZ)
"
>
">
<v-icon>mdi-chevron-down</v-icon>
</v-btn>
</v-col>
@@ -104,8 +98,7 @@
@click="doHome"
height="30"
:loading="loadings.includes('homeAll')"
:color="homedAxes.includes('xyz') ? 'primary' : 'warning'"
>
: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>
@@ -121,9 +114,9 @@
:color="colorQuadGantryLevel"
height="30"
:loading="loadings.includes('qgl')"
@click="doQGL"
>{{ $t('Panels.ControlPanel.QGL') }}</v-btn
>
@click="doQGL">
{{ $t('Panels.ControlPanel.QGL') }}
</v-btn>
<v-btn
v-if="existsZtilt"
class="btnMinWidthAuto flex-grow-1 px-0"
@@ -132,9 +125,9 @@
:color="colorZTilt"
height="30"
:loading="loadings.includes('zTilt')"
@click="doZtilt"
>{{ $t('Panels.ControlPanel.ZTilt') }}</v-btn
>
@click="doZtilt">
{{ $t('Panels.ControlPanel.ZTilt') }}
</v-btn>
</v-col>
</v-row>
<v-row dense class="">
@@ -145,8 +138,7 @@
height="30"
:loading="loadings.includes('homeX')"
:color="homedAxes.includes('x') ? 'primary' : 'warning'"
@click="doHomeX"
>
@click="doHomeX">
{{ $t('Panels.ControlPanel.X') }}
</v-btn>
</v-col>
@@ -157,8 +149,7 @@
height="30"
:loading="loadings.includes('homeY')"
:color="homedAxes.includes('y') ? 'primary' : 'warning'"
@click="doHomeY"
>
@click="doHomeY">
{{ $t('Panels.ControlPanel.Y') }}
</v-btn>
</v-col>
@@ -169,8 +160,7 @@
height="30"
:loading="loadings.includes('homeZ')"
:color="homedAxes.includes('z') ? 'primary' : 'warning'"
@click="doHomeZ"
>
@click="doHomeZ">
{{ $t('Panels.ControlPanel.Z') }}
</v-btn>
</v-col>
@@ -186,22 +176,21 @@
no-gutters
style="flex-wrap: nowrap; width: 100%"
v-model="selectedCrossStep"
:key="'all-steps-' + stepsReversed.join('_')"
>
:key="'all-steps-' + stepsReversed.join('_')">
<v-btn
dense
class="btnMinWidthAuto flex-grow-1 px-0"
v-for="step of stepsReversed"
:key="'step-' + step"
>
:key="'step-' + step">
<span class="body-2">{{ step }}</span>
</v-btn>
</v-btn-toggle>
<div class="font-weight-bold warning rounded pa-2" v-else>
{{ $t('Panels.ControlPanel.PleaseConfigureSteps') }}<br />
<router-link style="color: white" to="/settings/interface">{{
$t('Panels.ControlPanel.SettingsInterfaceControl')
}}</router-link>
{{ $t('Panels.ControlPanel.PleaseConfigureSteps') }}
<br />
<router-link style="color: white" to="/settings/interface">
{{ $t('Panels.ControlPanel.SettingsInterfaceControl') }}
</router-link>
</div>
</v-col>
</v-row>
+25 -28
View File
@@ -29,9 +29,9 @@
</v-row>
<v-row class="">
<v-col class="col col-md-6 pt-2">
<span class="text--disabled" style="font-size: 0.9em"
>{{ $t('Panels.ControlPanel.FeedAmountIn') }} [mm]</span
>
<span class="text--disabled" style="font-size: 0.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"
@@ -41,15 +41,15 @@
:class="
(amount === currentFeedAmount ? 'v-btn--active' : '') +
' btnMinWidthAuto flex-grow-1 px-0 _btnFeedrate'
"
>{{ amount }}</v-btn
>
">
{{ amount }}
</v-btn>
</v-btn-toggle>
</v-col>
<v-col class="col col-md-6 pt-2">
<span class="text--disabled" style="font-size: 0.9em"
>{{ $t('Panels.ControlPanel.FeedrateIn') }} [mm/s]</span
>
<span class="text--disabled" style="font-size: 0.9em">
{{ $t('Panels.ControlPanel.FeedrateIn') }} [mm/s]
</span>
<v-btn-toggle class="mt-1" dense no-gutters style="flex-wrap: nowrap; width: 100%">
<v-tooltip top v-for="rate in feedratesSorted" v-bind:key="rate" color="panel">
<template v-slot:activator="{ on, attrs }">
@@ -61,16 +61,13 @@
:class="
(rate === currentFeedRate ? 'v-btn--active' : '') +
' btnMinWidthAuto flex-grow-1 px-0 _btnFeedrate'
"
>{{ rate }}</v-btn
>
">
{{ rate }}
</v-btn>
</template>
<span v-if="filamentDiameter"
>{{
Math.round(Math.pow(filamentDiameter / 2, 2) * Math.PI * rate * 10) / 10
}}
mm&sup3;/s</span
>
<span v-if="filamentDiameter">
{{ Math.round(Math.pow(filamentDiameter / 2, 2) * Math.PI * rate * 10) / 10 }} mm&sup3;/s
</span>
</v-tooltip>
</v-btn-toggle>
</v-col>
@@ -85,13 +82,13 @@
@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
>
:disabled="!boolExtrudePossible">
<v-icon small class="mr-1">mdi-arrow-up-bold</v-icon>
{{ $t('Panels.ControlPanel.Retract') }}
</v-btn>
</div>
</template>
<span> {{ $t('Panels.ControlPanel.HotendTooCold') }} {{ minExtrudeTemp }} °C </span>
<span>{{ $t('Panels.ControlPanel.HotendTooCold') }} {{ minExtrudeTemp }} °C</span>
</v-tooltip>
<v-tooltip top :disabled="boolExtrudePossible" color="panel">
<template v-slot:activator="{ on }">
@@ -101,13 +98,13 @@
@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
>
:disabled="!boolExtrudePossible">
<v-icon small class="mr-1">mdi-arrow-down-bold</v-icon>
{{ $t('Panels.ControlPanel.Extrude') }}
</v-btn>
</div>
</template>
<span> {{ $t('Panels.ControlPanel.HotendTooCold') }} {{ minExtrudeTemp }} °C </span>
<span>{{ $t('Panels.ControlPanel.HotendTooCold') }} {{ minExtrudeTemp }} °C</span>
</v-tooltip>
</v-col>
</v-row>
+2 -4
View File
@@ -5,13 +5,11 @@
:title="$tc('Panels.DependenciesPanel.Dependency', dependencies.length) + ' (' + dependencies.length + ')'"
:collapsible="true"
card-class="dependencies-panel"
toolbar-color="orange darken-2"
>
toolbar-color="orange darken-2">
<v-card-text
:class="index > 0 ? 'py-0' : 'pt-3 pb-0'"
v-for="(dependency, index) in dependencies"
v-bind:key="index"
>
v-bind:key="index">
<v-divider class="my-2" v-if="index"></v-divider>
<v-row>
<v-col>
+20 -27
View File
@@ -37,8 +37,7 @@
(!printer.socket.isConnected && !printer.socket.isConnecting ? 'disabledPrinter' : '')
"
:loading="printer.socket.isConnecting"
:toolbar-color="isCurrentPrinter ? 'primary' : ''"
>
:toolbar-color="isCurrentPrinter ? 'primary' : ''">
<template v-slot:buttons>
<v-menu :offset-y="true" title="Webcam" v-if="showWebcamSwitch">
<template v-slot:activator="{ on, attrs }">
@@ -60,8 +59,7 @@
v-for="webcam of printer_webcams"
v-bind:key="webcam.index"
link
@click="currentCamId = webcam.id"
>
@click="currentCamId = webcam.id">
<v-list-item-icon class="mr-0">
<v-icon small>{{ webcam.icon }}</v-icon>
</v-list-item-icon>
@@ -78,29 +76,24 @@
<v-img :height="imageHeight" :src="printer_image" class="d-flex align-end" ref="imageDiv">
<div
v-if="printer.socket.isConnected && currentCamId !== 'off' && currentWebcam"
class="webcamContainer"
>
class="webcamContainer">
<template v-if="'service' in currentWebcam && currentWebcam.service === 'mjpegstreamer'">
<webcam-mjpegstreamer
:cam-settings="currentWebcam"
:printer-url="printerUrl"
:show-fps="false"
></webcam-mjpegstreamer>
:show-fps="false"></webcam-mjpegstreamer>
</template>
<template
v-if="'service' in currentWebcam && currentWebcam.service === 'mjpegstreamer-adaptive'"
>
v-if="'service' in currentWebcam && currentWebcam.service === 'mjpegstreamer-adaptive'">
<webcam-mjpegstreamer-adaptive
:cam-settings="currentWebcam"
:printer-url="printerUrl"
:show-fps="false"
></webcam-mjpegstreamer-adaptive>
:show-fps="false"></webcam-mjpegstreamer-adaptive>
</template>
</div>
<v-card-title
class="white--text py-2"
style="background-color: rgba(0, 0, 0, 0.3); backdrop-filter: blur(3px)"
>
style="background-color: rgba(0, 0, 0, 0.3); backdrop-filter: blur(3px)">
<v-row>
<v-col class="col-auto pr-0 d-flex align-center" style="width: 58px">
<template v-if="printer_logo">
@@ -110,18 +103,17 @@
<mainsail-logo
:color="printerLogoColor"
style="width: 100%"
class="my-auto"
></mainsail-logo>
class="my-auto"></mainsail-logo>
</template>
</v-col>
<v-col class="col" style="width: 100px">
<h3 class="font-weight-regular">{{ printer_status }}</h3>
<span
class="subtitle-2 text-truncate px-0 text--disabled d-block"
v-if="printer_current_filename !== ''"
><v-icon small class="mr-1">mdi-file-outline</v-icon
>{{ printer_current_filename }}</span
>
v-if="printer_current_filename !== ''">
<v-icon small class="mr-1">mdi-file-outline</v-icon>
{{ printer_current_filename }}
</span>
</v-col>
</v-row>
</v-card-title>
@@ -132,8 +124,7 @@
<v-col
:class="object.name === 'ETA' ? 'col-auto' : 'col' + ' px-2'"
v-for="object in printer_preview"
v-bind:key="object.name"
>
v-bind:key="object.name">
<strong class="d-block text-center">{{ object.name }}</strong>
<span class="d-block text-center">{{ object.value }}</span>
</v-col>
@@ -142,11 +133,13 @@
</v-card-text>
<v-fade-transition>
<v-overlay v-if="hover" absolute :z-index="4">
<v-btn color="primary" @click="clickPrinter">{{
printer.socket.isConnected
? $t('Panels.FarmPrinterPanel.SwitchToPrinter')
: $t('Panels.FarmPrinterPanel.ReconnectToPrinter')
}}</v-btn>
<v-btn color="primary" @click="clickPrinter">
{{
printer.socket.isConnected
? $t('Panels.FarmPrinterPanel.SwitchToPrinter')
: $t('Panels.FarmPrinterPanel.ReconnectToPrinter')
}}
</v-btn>
</v-overlay>
</v-fade-transition>
</div>
+103 -124
View File
@@ -61,8 +61,7 @@
clearable
hide-details
dense
style="max-width: 300px"
></v-text-field>
style="max-width: 300px"></v-text-field>
<v-spacer></v-spacer>
<input
type="file"
@@ -70,32 +69,31 @@
:accept="validGcodeExtensions.join(', ')"
style="display: none"
multiple
@change="uploadFile"
/>
@change="uploadFile" />
<v-btn
@click="clickUploadButton"
:title="$t('Files.UploadNewGcode')"
class="primary--text px-2 minwidth-0 ml-3"
:loading="loadings.includes('gcodeUpload')"
><v-icon>mdi-upload</v-icon></v-btn
>
:loading="loadings.includes('gcodeUpload')">
<v-icon>mdi-upload</v-icon>
</v-btn>
<v-btn
@click="createDirectory"
:title="$t('Files.CreateNewDirectory')"
class="px-2 minwidth-0 ml-3"
><v-icon>mdi-folder-plus</v-icon></v-btn
>
class="px-2 minwidth-0 ml-3">
<v-icon>mdi-folder-plus</v-icon>
</v-btn>
<v-btn
@click="refreshFileList"
:title="$t('Files.RefreshCurrentDirectory')"
class="px-2 minwidth-0 ml-3"
><v-icon>mdi-refresh</v-icon></v-btn
>
class="px-2 minwidth-0 ml-3">
<v-icon>mdi-refresh</v-icon>
</v-btn>
<v-menu offset-y left :close-on-content-click="false" :title="$t('Files.SetupCurrentList')">
<template v-slot:activator="{ on, attrs }">
<v-btn class="px-2 minwidth-0 ml-3" v-bind="attrs" v-on="on"
><v-icon>mdi-cog</v-icon></v-btn
>
<v-btn class="px-2 minwidth-0 ml-3" v-bind="attrs" v-on="on">
<v-icon>mdi-cog</v-icon>
</v-btn>
</template>
<v-list>
<v-list-item class="minHeight36">
@@ -103,30 +101,26 @@
class="mt-0"
hide-details
v-model="showHiddenFiles"
:label="$t('Files.HiddenFiles')"
></v-checkbox>
:label="$t('Files.HiddenFiles')"></v-checkbox>
</v-list-item>
<v-list-item class="minHeight36">
<v-checkbox
class="mt-0"
hide-details
v-model="showPrintedFiles"
:label="$t('Files.PrintedFiles')"
></v-checkbox>
:label="$t('Files.PrintedFiles')"></v-checkbox>
</v-list-item>
<v-divider></v-divider>
<v-list-item
class="minHeight36"
v-for="header of configHeaders"
v-bind:key="header.key"
>
v-bind:key="header.key">
<v-checkbox
class="mt-0"
hide-details
v-model="header.visible"
@change="changeMetadataVisible(header.value)"
:label="header.text"
></v-checkbox>
:label="header.text"></v-checkbox>
</v-list-item>
</v-list>
</v-menu>
@@ -136,21 +130,24 @@
<v-card-text>
<v-row>
<v-col class="col-12 py-2 d-flex align-center">
<span
><b>{{ $t('Files.CurrentPath') }}:</b>
{{ this.currentPath !== 'gcodes' ? '/' + this.currentPath.substring(7) : '/' }}</span
>
<span>
<b>{{ $t('Files.CurrentPath') }}:</b>
{{ this.currentPath !== 'gcodes' ? '/' + this.currentPath.substring(7) : '/' }}
</span>
<v-spacer></v-spacer>
<template v-if="this.disk_usage !== null">
<v-tooltip top>
<template v-slot:activator="{ on, attrs }">
<span v-bind="attrs" v-on="on">
<b>{{ $t('Files.FreeDisk') }}:</b> {{ formatFilesize(disk_usage.free) }}
<b>{{ $t('Files.FreeDisk') }}:</b>
{{ formatFilesize(disk_usage.free) }}
</span>
</template>
<span>
{{ $t('Files.Used') }}: {{ formatFilesize(this.disk_usage.used) }}<br />
{{ $t('Files.Free') }}: {{ formatFilesize(this.disk_usage.free) }}<br />
{{ $t('Files.Used') }}: {{ formatFilesize(this.disk_usage.used) }}
<br />
{{ $t('Files.Free') }}: {{ formatFilesize(this.disk_usage.free) }}
<br />
{{ $t('Files.Total') }}: {{ formatFilesize(this.disk_usage.total) }}
</span>
</v-tooltip>
@@ -176,8 +173,7 @@
:search="search"
:custom-filter="advancedSearch"
mobile-breakpoint="0"
@current-items="refreshMetadata"
>
@current-items="refreshMetadata">
<template slot="items">
<td v-for="header in filteredHeaders" v-bind:key="header.value">{{ header.text }}</td>
</template>
@@ -192,8 +188,7 @@
@click="clickRowGoBack"
@dragover="dragOverFilelist($event, { isDirectory: true, filename: '..' })"
@dragleave="dragLeaveFilelist"
@drop.prevent.stop="dragDropFilelist($event, { isDirectory: true, filename: '..' })"
>
@drop.prevent.stop="dragDropFilelist($event, { isDirectory: true, filename: '..' })">
<td class="pr-0 text-center" style="width: 32px"><v-icon>mdi-folder-upload</v-icon></td>
<td class=" " :colspan="filteredHeaders.length">..</td>
</tr>
@@ -212,8 +207,7 @@
@dragover="dragOverFilelist($event, item)"
@dragleave="dragLeaveFilelist"
@drop.prevent.stop="dragDropFilelist($event, item)"
:data-name="item.filename"
>
:data-name="item.filename">
<td class="pr-0 text-center" style="width: 32px">
<template v-if="item.isDirectory">
<v-icon>mdi-folder</v-icon>
@@ -223,8 +217,7 @@
<v-tooltip
v-if="!item.isDirectory && getSmallThumbnail(item) && getBigThumbnail(item)"
top
content-class="tooltip__content-opacity1"
>
content-class="tooltip__content-opacity1">
<template v-slot:activator="{ on, attrs }">
<vue-load-image>
<img
@@ -233,13 +226,11 @@
width="32"
height="32"
v-bind="attrs"
v-on="on"
/>
v-on="on" />
<v-progress-circular
slot="preloader"
indeterminate
color="primary"
></v-progress-circular>
color="primary"></v-progress-circular>
<v-icon slot="error">mdi-file</v-icon>
</vue-load-image>
</template>
@@ -252,8 +243,7 @@
<v-progress-circular
slot="preloader"
indeterminate
color="primary"
></v-progress-circular>
color="primary"></v-progress-circular>
<v-icon slot="error">mdi-file</v-icon>
</vue-load-image>
</template>
@@ -267,9 +257,9 @@
<v-tooltip top v-if="getJobStatus(item)">
<template v-slot:activator="{ on, attrs }">
<span v-bind="attrs" v-on="on">
<v-icon small :color="getStatusColor(getJobStatus(item))">{{
getStatusIcon(getJobStatus(item))
}}</v-icon>
<v-icon small :color="getStatusColor(getJobStatus(item))">
{{ getStatusIcon(getJobStatus(item)) }}
</v-icon>
</span>
</template>
<span>{{ getJobStatus(item).replace(/_/g, ' ') }}</span>
@@ -277,8 +267,7 @@
</td>
<td
class="text-no-wrap text-right"
v-if="headers.find((header) => header.value === 'size').visible"
>
v-if="headers.find((header) => header.value === 'size').visible">
{{ item.isDirectory ? '--' : formatFilesize(item.size) }}
</td>
<td class="text-right" v-if="headers.find((header) => header.value === 'modified').visible">
@@ -286,76 +275,68 @@
</td>
<td
class="text-no-wrap text-right"
v-if="headers.find((header) => header.value === 'object_height').visible"
>
v-if="headers.find((header) => header.value === 'object_height').visible">
{{ item.object_height ? item.object_height.toFixed(2) + ' mm' : '--' }}
</td>
<td
class="text-no-wrap text-right"
v-if="headers.find((header) => header.value === 'layer_height').visible"
>
v-if="headers.find((header) => header.value === 'layer_height').visible">
{{ item.layer_height ? item.layer_height.toFixed(2) + ' mm' : '--' }}
</td>
<td
class="text-no-wrap text-right"
v-if="headers.find((header) => header.value === 'nozzle_diameter').visible"
>
v-if="headers.find((header) => header.value === 'nozzle_diameter').visible">
{{ item.nozzle_diameter ? item.nozzle_diameter.toFixed(2) + ' mm' : '--' }}
</td>
<td
class="text-no-wrap text-right"
v-if="headers.find((header) => header.value === 'filament_name').visible"
>
v-if="headers.find((header) => header.value === 'filament_name').visible">
{{ item.filament_name ? item.filament_name : '--' }}
</td>
<td
class="text-no-wrap text-right"
v-if="headers.find((header) => header.value === 'filament_type').visible"
>
v-if="headers.find((header) => header.value === 'filament_type').visible">
{{ item.filament_type ? item.filament_type : '--' }}
</td>
<td
class="text-no-wrap text-right"
v-if="headers.find((header) => header.value === 'filament_total').visible"
>
v-if="headers.find((header) => header.value === 'filament_total').visible">
{{ item.filament_total ? item.filament_total.toFixed() + ' mm' : '--' }}
</td>
<td
class="text-no-wrap text-right"
v-if="headers.find((header) => header.value === 'filament_weight_total').visible"
>
v-if="headers.find((header) => header.value === 'filament_weight_total').visible">
{{ item.filament_weight_total ? item.filament_weight_total.toFixed(2) + ' g' : '--' }}
</td>
<td
class="text-no-wrap text-right"
v-if="headers.find((header) => header.value === 'estimated_time').visible"
>
v-if="headers.find((header) => header.value === 'estimated_time').visible">
{{ formatPrintTime(item.estimated_time) }}
</td>
<td
class="text-no-wrap text-right"
v-if="headers.find((header) => header.value === 'slicer').visible"
>
{{ item.slicer ? item.slicer : '--' }}<br /><small v-if="item.slicer_version">{{
item.slicer_version
}}</small>
v-if="headers.find((header) => header.value === 'slicer').visible">
{{ item.slicer ? item.slicer : '--' }}
<br />
<small v-if="item.slicer_version">{{ item.slicer_version }}</small>
</td>
</tr>
</template>
</v-data-table>
<div
class="dragzone d-flex justify-center flex-column"
:style="'visibility: ' + dropzone.visibility + '; opacity: ' + dropzone.hidden"
>
:style="'visibility: ' + dropzone.visibility + '; opacity: ' + dropzone.hidden">
<div class="textnode">{{ $t('Files.DropFilesToAddGcode') }}</div>
</div>
</panel>
<v-snackbar :timeout="-1" :value="true" fixed right bottom dark v-model="uploadSnackbar.status">
<span v-if="uploadSnackbar.max > 1" class="mr-1"
>({{ uploadSnackbar.number }}/{{ uploadSnackbar.max }})</span
><strong>{{ $t('Files.Uploading') + ' ' + uploadSnackbar.filename }}</strong
><br />
{{ Math.round(uploadSnackbar.percent) }} % @ {{ formatFilesize(Math.round(uploadSnackbar.speed)) }}/s<br />
<span v-if="uploadSnackbar.max > 1" class="mr-1">
({{ uploadSnackbar.number }}/{{ uploadSnackbar.max }})
</span>
<strong>{{ $t('Files.Uploading') + ' ' + uploadSnackbar.filename }}</strong>
<br />
{{ Math.round(uploadSnackbar.percent) }} % @ {{ formatFilesize(Math.round(uploadSnackbar.speed)) }}/s
<br />
<v-progress-linear class="mt-2" :value="uploadSnackbar.percent"></v-progress-linear>
<template v-slot:action="{ attrs }">
<v-btn color="red" text v-bind="attrs" @click="cancelUpload" style="min-width: auto">
@@ -368,12 +349,11 @@
<v-img
contain
v-if="getBigThumbnail(dialogPrintFile.item)"
:src="getBigThumbnail(dialogPrintFile.item)"
></v-img>
:src="getBigThumbnail(dialogPrintFile.item)"></v-img>
<v-card-title class="headline">{{ $t('Files.StartJob') }}</v-card-title>
<v-card-text class="pb-0">{{
$t('Files.DoYouWantToStartFilename', { filename: dialogPrintFile.item.filename })
}}</v-card-text>
<v-card-text class="pb-0">
{{ $t('Files.DoYouWantToStartFilename', { filename: dialogPrintFile.item.filename }) }}
</v-card-text>
<template v-if="moonrakerComponents.includes('timelapse')">
<v-divider class="mt-3 mb-2"></v-divider>
<v-card-text class="pb-0">
@@ -390,9 +370,9 @@
color="primary"
text
@click="startPrint(dialogPrintFile.item.filename)"
:disabled="printerIsPrinting || !klipperReadyForGui"
>{{ $t('Files.StartPrint') }}</v-btn
>
:disabled="printerIsPrinting || !klipperReadyForGui">
{{ $t('Files.StartPrint') }}
</v-btn>
</v-card-actions>
</v-card>
</v-dialog>
@@ -401,16 +381,16 @@
<v-list-item
@click="clickRow(contextMenu.item, true)"
:disabled="printerIsPrinting || !klipperReadyForGui || !isGcodeFile(contextMenu.item)"
v-if="!contextMenu.item.isDirectory"
>
<v-icon class="mr-1">mdi-play</v-icon> {{ $t('Files.PrintStart') }}
v-if="!contextMenu.item.isDirectory">
<v-icon class="mr-1">mdi-play</v-icon>
{{ $t('Files.PrintStart') }}
</v-list-item>
<v-list-item
@click="addToQueue(contextMenu.item)"
v-if="!contextMenu.item.isDirectory && moonrakerComponents.includes('job_queue')"
:disabled="!isGcodeFile(contextMenu.item)"
>
<v-icon class="mr-1">mdi-playlist-plus</v-icon> {{ $t('Files.AddToQueue') }}
:disabled="!isGcodeFile(contextMenu.item)">
<v-icon class="mr-1">mdi-playlist-plus</v-icon>
{{ $t('Files.AddToQueue') }}
</v-list-item>
<v-list-item
@click="preheat"
@@ -420,35 +400,40 @@
'first_layer_bed_temp' in contextMenu.item &&
contextMenu.item.first_layer_bed_temp > 0
"
:disabled="['error', 'printing', 'paused'].includes(printer_state)"
>
<v-icon class="mr-1">mdi-fire</v-icon> {{ $t('Files.Preheat') }}
:disabled="['error', 'printing', 'paused'].includes(printer_state)">
<v-icon class="mr-1">mdi-fire</v-icon>
{{ $t('Files.Preheat') }}
</v-list-item>
<v-list-item
@click="view3D(contextMenu.item)"
v-if="!contextMenu.item.isDirectory"
:disabled="!isGcodeFile(contextMenu.item)"
>
:disabled="!isGcodeFile(contextMenu.item)">
<v-icon class="mr-1">mdi-video-3d</v-icon>
{{ $t('Files.View3D') }}
</v-list-item>
<v-list-item @click="downloadFile" v-if="!contextMenu.item.isDirectory">
<v-icon class="mr-1">mdi-cloud-download</v-icon> {{ $t('Files.Download') }}
<v-icon class="mr-1">mdi-cloud-download</v-icon>
{{ $t('Files.Download') }}
</v-list-item>
<v-list-item @click="renameDirectory(contextMenu.item)" v-if="contextMenu.item.isDirectory">
<v-icon class="mr-1">mdi-rename-box</v-icon> {{ $t('Files.Rename') }}
<v-icon class="mr-1">mdi-rename-box</v-icon>
{{ $t('Files.Rename') }}
</v-list-item>
<v-list-item @click="editFile(contextMenu.item)" v-if="!contextMenu.item.isDirectory">
<v-icon class="mr-1">mdi-pencil</v-icon> {{ $t('Files.EditFile') }}
<v-icon class="mr-1">mdi-pencil</v-icon>
{{ $t('Files.EditFile') }}
</v-list-item>
<v-list-item @click="renameFile(contextMenu.item)" v-if="!contextMenu.item.isDirectory">
<v-icon class="mr-1">mdi-rename-box</v-icon> {{ $t('Files.Rename') }}
<v-icon class="mr-1">mdi-rename-box</v-icon>
{{ $t('Files.Rename') }}
</v-list-item>
<v-list-item @click="removeFile" v-if="!contextMenu.item.isDirectory">
<v-icon class="mr-1">mdi-delete</v-icon> {{ $t('Files.Delete') }}
<v-icon class="mr-1">mdi-delete</v-icon>
{{ $t('Files.Delete') }}
</v-list-item>
<v-list-item @click="deleteDirectory(contextMenu.item)" v-if="contextMenu.item.isDirectory">
<v-icon class="mr-1">mdi-delete</v-icon> {{ $t('Files.Delete') }}
<v-icon class="mr-1">mdi-delete</v-icon>
{{ $t('Files.Delete') }}
</v-list-item>
</v-list>
</v-menu>
@@ -456,12 +441,11 @@
<panel
:title="$t('Files.NewDirectory')"
card-class="gcode-files-new-directory-dialog"
:margin-bottom="false"
>
:margin-bottom="false">
<template v-slot:buttons>
<v-btn icon tile @click="dialogCreateDirectory.show = false"
><v-icon>mdi-close-thick</v-icon></v-btn
>
<v-btn icon tile @click="dialogCreateDirectory.show = false">
<v-icon>mdi-close-thick</v-icon>
</v-btn>
</template>
<v-card-text>
<v-text-field
@@ -470,8 +454,7 @@
@keypress.enter="createDirectoryAction"
:label="$t('Files.Name')"
:rules="input_rules"
required
></v-text-field>
required></v-text-field>
</v-card-text>
<v-card-actions>
<v-spacer></v-spacer>
@@ -491,8 +474,7 @@
ref="inputFieldRenameFile"
@keyup.enter="renameFileAction"
:label="$t('Files.Name')"
required
></v-text-field>
required></v-text-field>
</v-card-text>
<v-card-actions>
<v-spacer></v-spacer>
@@ -505,12 +487,11 @@
<panel
:title="$t('Files.RenameDirectory')"
card-class="gcode-files-rename-directory-dialog"
:margin-bottom="false"
>
:margin-bottom="false">
<template v-slot:buttons>
<v-btn icon tile @click="dialogRenameDirectory.show = false"
><v-icon>mdi-close-thick</v-icon></v-btn
>
<v-btn icon tile @click="dialogRenameDirectory.show = false">
<v-icon>mdi-close-thick</v-icon>
</v-btn>
</template>
<v-card-text>
<v-text-field
@@ -518,8 +499,7 @@
ref="inputFieldRenameDirectory"
:label="$t('Files.Name')"
@keyup.enter="renameDirectoryAction"
required
></v-text-field>
required></v-text-field>
</v-card-text>
<v-card-actions>
<v-spacer></v-spacer>
@@ -532,12 +512,11 @@
<panel
:title="$t('Files.DeleteDirectory')"
card-class="gcode-files-delete-directory-dialog"
:margin-bottom="false"
>
:margin-bottom="false">
<template v-slot:buttons>
<v-btn icon tile @click="dialogDeleteDirectory.show = false"
><v-icon>mdi-close-thick</v-icon></v-btn
>
<v-btn icon tile @click="dialogDeleteDirectory.show = false">
<v-icon>mdi-close-thick</v-icon>
</v-btn>
</template>
<v-card-text>
<p class="mb-0">
+71 -95
View File
@@ -11,8 +11,7 @@
<panel
icon="mdi-file-document-multiple-outline"
:title="$t('History.PrintHistory')"
card-class="history-list-panel"
>
card-class="history-list-panel">
<v-card-text>
<v-row>
<v-col class="col-4 d-flex align-center">
@@ -24,8 +23,7 @@
outlined
clearable
hide-details
dense
></v-text-field>
dense></v-text-field>
</v-col>
<v-col class="offset-4 col-4 d-flex align-center justify-end">
<template v-if="selectedJobs.length">
@@ -33,33 +31,32 @@
:title="$t('History.Delete')"
color="warning"
class="px-2 minwidth-0 ml-3"
@click="deleteSelectedDialog = true"
><v-icon>mdi-delete</v-icon></v-btn
>
@click="deleteSelectedDialog = true">
<v-icon>mdi-delete</v-icon>
</v-btn>
</template>
<v-btn
:title="$t('History.TitleRefreshHistory')"
class="px-2 minwidth-0 ml-3"
@click="refreshHistory"
><v-icon>mdi-refresh</v-icon></v-btn
>
@click="refreshHistory">
<v-icon>mdi-refresh</v-icon>
</v-btn>
<v-menu :offset-y="true" :close-on-content-click="false" title="Setup current list">
<template v-slot:activator="{ on, attrs }">
<v-btn
class="px-2 minwidth-0 ml-3"
:title="$t('History.TitleSettings')"
v-bind="attrs"
v-on="on"
><v-icon>mdi-cog</v-icon></v-btn
>
v-on="on">
<v-icon>mdi-cog</v-icon>
</v-btn>
</template>
<v-list>
<template v-if="allPrintStatusArray.length">
<v-list-item
class="minHeight36"
v-for="status of allPrintStatusArray"
v-bind:key="status.key"
>
v-bind:key="status.key">
<v-checkbox
class="mt-0"
hide-details
@@ -67,23 +64,20 @@
@change="changeStatusVisible(status)"
:label="
$t('History.ShowStatusName', { name: status.name, count: status.value })
"
></v-checkbox>
"></v-checkbox>
</v-list-item>
<v-divider></v-divider>
</template>
<v-list-item
class="minHeight36"
v-for="header of configHeaders"
v-bind:key="header.key"
>
v-bind:key="header.key">
<v-checkbox
class="mt-0"
hide-details
v-model="header.visible"
@change="changeColumnVisible(header.value)"
:label="header.text"
></v-checkbox>
:label="header.text"></v-checkbox>
</v-list-item>
</v-list>
</v-menu>
@@ -110,8 +104,7 @@
:search="search"
:custom-filter="advancedSearch"
mobile-breakpoint="0"
show-select
>
show-select>
<template slot="items" slot-scope="props">
<td v-for="header in filteredHeaders" v-bind:key="header.text" class="text-no-wrap">
{{ props.item[header.value] }}
@@ -128,15 +121,13 @@
v-longpress:600="(e) => showContextMenu(e, item)"
@contextmenu="showContextMenu($event, item)"
@click="clickRow(item)"
:class="'file-list-cursor user-select-none ' + (item.exists ? '' : 'text--disabled')"
>
:class="'file-list-cursor user-select-none ' + (item.exists ? '' : 'text--disabled')">
<td class="pr-0">
<v-simple-checkbox
:value="isSelected"
class="pa-0 mr-0"
v-ripple
@click.stop="select(!isSelected)"
></v-simple-checkbox>
@click.stop="select(!isSelected)"></v-simple-checkbox>
</td>
<td class="px-0 text-center" style="width: 32px">
<template v-if="!item.exists">
@@ -152,13 +143,11 @@
width="32"
height="32"
v-bind="attrs"
v-on="on"
/>
v-on="on" />
<v-progress-circular
slot="preloader"
indeterminate
color="primary"
></v-progress-circular>
color="primary"></v-progress-circular>
<v-icon slot="error">mdi-file</v-icon>
</vue-load-image>
</template>
@@ -171,8 +160,7 @@
<v-progress-circular
slot="preloader"
indeterminate
color="primary"
></v-progress-circular>
color="primary"></v-progress-circular>
<v-icon slot="error">mdi-file</v-icon>
</vue-load-image>
</template>
@@ -185,9 +173,9 @@
<v-tooltip top>
<template v-slot:activator="{ on, attrs }">
<span v-bind="attrs" v-on="on">
<v-icon small :color="getStatusColor(item.status)" :disabled="!item.exists">{{
getStatusIcon(item.status)
}}</v-icon>
<v-icon small :color="getStatusColor(item.status)" :disabled="!item.exists">
{{ getStatusIcon(item.status) }}
</v-icon>
</span>
</template>
<span>{{ item.status.replace(/_/g, ' ') }}</span>
@@ -196,15 +184,15 @@
<td
v-for="col in tableFields"
v-bind:key="col.value"
:class="col.outputType !== 'date' ? 'text-no-wrap' : ''"
>
:class="col.outputType !== 'date' ? 'text-no-wrap' : ''">
{{ outputValue(col, item) }}
</td>
<td class=" " v-if="headers.find((header) => header.value === 'slicer').visible">
{{ 'slicer' in item.metadata && item.metadata.slicer ? item.metadata.slicer : '--' }}
<small v-if="'slicer_version' in item.metadata && item.metadata.slicer_version"
><br />{{ item.metadata.slicer_version }}</small
>
<small v-if="'slicer_version' in item.metadata && item.metadata.slicer_version">
<br />
{{ item.metadata.slicer_version }}
</small>
</td>
</tr>
</template>
@@ -213,17 +201,19 @@
<v-menu v-model="contextMenu.shown" :position-x="contextMenu.x" :position-y="contextMenu.y" absolute offset-y>
<v-list>
<v-list-item @click="clickRow(contextMenu.item)">
<v-icon class="mr-1">mdi-text-box-search</v-icon> {{ $t('History.Details') }}
<v-icon class="mr-1">mdi-text-box-search</v-icon>
{{ $t('History.Details') }}
</v-list-item>
<v-list-item
@click="startPrint(contextMenu.item)"
v-if="contextMenu.item.exists"
:disabled="printerIsPrinting || !klipperReadyForGui"
>
<v-icon class="mr-1">mdi-printer</v-icon> {{ $t('History.Reprint') }}
:disabled="printerIsPrinting || !klipperReadyForGui">
<v-icon class="mr-1">mdi-printer</v-icon>
{{ $t('History.Reprint') }}
</v-list-item>
<v-list-item @click="deleteJob(contextMenu.item)">
<v-icon class="mr-1">mdi-delete</v-icon> {{ $t('History.Delete') }}
<v-icon class="mr-1">mdi-delete</v-icon>
{{ $t('History.Delete') }}
</v-list-item>
</v-list>
</v-menu>
@@ -231,14 +221,12 @@
v-model="detailsDialog.boolShow"
:max-width="600"
persistent
@keydown.esc="detailsDialog.boolShow = false"
>
@keydown.esc="detailsDialog.boolShow = false">
<panel
:title="$t('History.JobDetails')"
icon="mdi-update"
card-class="history-detail-dialog"
:margin-bottom="false"
>
:margin-bottom="false">
<template v-slot:buttons>
<v-btn icon tile @click="detailsDialog.boolShow = false"><v-icon>mdi-close-thick</v-icon></v-btn>
</template>
@@ -280,57 +268,51 @@
</v-row>
</template>
<template
v-if="'metadata' in detailsDialog.item && 'estimated_time' in detailsDialog.item.metadata"
>
v-if="'metadata' in detailsDialog.item && 'estimated_time' in detailsDialog.item.metadata">
<v-divider class="my-3"></v-divider>
<v-row>
<v-col>{{ $t('History.EstimatedTime') }}</v-col>
<v-col class="text-right">{{
formatPrintTime(detailsDialog.item.metadata.estimated_time)
}}</v-col>
<v-col class="text-right">
{{ formatPrintTime(detailsDialog.item.metadata.estimated_time) }}
</v-col>
</v-row>
</template>
<template v-if="detailsDialog.item.print_duration > 0">
<v-divider class="my-3"></v-divider>
<v-row>
<v-col>{{ $t('History.PrintDuration') }}</v-col>
<v-col class="text-right">{{
formatPrintTime(detailsDialog.item.print_duration)
}}</v-col>
<v-col class="text-right">
{{ formatPrintTime(detailsDialog.item.print_duration) }}
</v-col>
</v-row>
</template>
<template v-if="detailsDialog.item.total_duration > 0">
<v-divider class="my-3"></v-divider>
<v-row>
<v-col>{{ $t('History.TotalDuration') }}</v-col>
<v-col class="text-right">{{
formatPrintTime(detailsDialog.item.total_duration)
}}</v-col>
<v-col class="text-right">
{{ formatPrintTime(detailsDialog.item.total_duration) }}
</v-col>
</v-row>
</template>
<template
v-if="'metadata' in detailsDialog.item && 'filament_total' in detailsDialog.item.metadata"
>
v-if="'metadata' in detailsDialog.item && 'filament_total' in detailsDialog.item.metadata">
<v-divider class="my-3"></v-divider>
<v-row>
<v-col>{{ $t('History.EstimatedFilamentWeight') }}</v-col>
<v-col class="text-right"
>{{
Math.round(detailsDialog.item.metadata.filament_weight_total * 100) / 100
}}
g</v-col
>
<v-col class="text-right">
{{ Math.round(detailsDialog.item.metadata.filament_weight_total * 100) / 100 }} g
</v-col>
</v-row>
</template>
<template
v-if="'metadata' in detailsDialog.item && 'filament_total' in detailsDialog.item.metadata"
>
v-if="'metadata' in detailsDialog.item && 'filament_total' in detailsDialog.item.metadata">
<v-divider class="my-3"></v-divider>
<v-row>
<v-col>{{ $t('History.EstimatedFilament') }}</v-col>
<v-col class="text-right"
>{{ Math.round(detailsDialog.item.metadata.filament_total) }} mm</v-col
>
<v-col class="text-right">
{{ Math.round(detailsDialog.item.metadata.filament_total) }} mm
</v-col>
</v-row>
</template>
<template v-if="detailsDialog.item.filament_used > 0">
@@ -344,46 +326,42 @@
v-if="
'metadata' in detailsDialog.item &&
'first_layer_extr_temp' in detailsDialog.item.metadata
"
>
">
<v-divider class="my-3"></v-divider>
<v-row>
<v-col>{{ $t('History.FirstLayerExtTemp') }}</v-col>
<v-col class="text-right"
>{{ detailsDialog.item.metadata.first_layer_extr_temp }} °C</v-col
>
<v-col class="text-right">
{{ detailsDialog.item.metadata.first_layer_extr_temp }} °C
</v-col>
</v-row>
</template>
<template
v-if="
'metadata' in detailsDialog.item &&
'first_layer_bed_temp' in detailsDialog.item.metadata
"
>
">
<v-divider class="my-3"></v-divider>
<v-row>
<v-col>{{ $t('History.FirstLayerBedTemp') }}</v-col>
<v-col class="text-right"
>{{ detailsDialog.item.metadata.first_layer_bed_temp }} °C</v-col
>
<v-col class="text-right">
{{ detailsDialog.item.metadata.first_layer_bed_temp }} °C
</v-col>
</v-row>
</template>
<template
v-if="
'metadata' in detailsDialog.item && 'first_layer_height' in detailsDialog.item.metadata
"
>
">
<v-divider class="my-3"></v-divider>
<v-row>
<v-col>{{ $t('History.FirstLayerHeight') }}</v-col>
<v-col class="text-right"
>{{ detailsDialog.item.metadata.first_layer_height }} mm</v-col
>
<v-col class="text-right">
{{ detailsDialog.item.metadata.first_layer_height }} mm
</v-col>
</v-row>
</template>
<template
v-if="'metadata' in detailsDialog.item && 'layer_height' in detailsDialog.item.metadata"
>
v-if="'metadata' in detailsDialog.item && 'layer_height' in detailsDialog.item.metadata">
<v-divider class="my-3"></v-divider>
<v-row>
<v-col>{{ $t('History.LayerHeight') }}</v-col>
@@ -391,8 +369,7 @@
</v-row>
</template>
<template
v-if="'metadata' in detailsDialog.item && 'object_height' in detailsDialog.item.metadata"
>
v-if="'metadata' in detailsDialog.item && 'object_height' in detailsDialog.item.metadata">
<v-divider class="my-3"></v-divider>
<v-row>
<v-col>{{ $t('History.ObjectHeight') }}</v-col>
@@ -407,8 +384,7 @@
</v-row>
</template>
<template
v-if="'metadata' in detailsDialog.item && 'slicer_version' in detailsDialog.item.metadata"
>
v-if="'metadata' in detailsDialog.item && 'slicer_version' in detailsDialog.item.metadata">
<v-divider class="my-3"></v-divider>
<v-row>
<v-col>{{ $t('History.SlicerVersion') }}</v-col>
@@ -3,8 +3,7 @@
icon="mdi-chart-areaspline"
:title="$t('History.Statistics')"
card-class="history-statistics-panel"
:collapsible="true"
>
:collapsible="true">
<v-card-text class="pa-0">
<v-row align="center">
<v-col class="col-12 col-sm-6 col-md-4">
+10 -17
View File
@@ -9,8 +9,7 @@
icon
tile
v-if="queueState === 'paused'"
:disabled="!klipperReadyForGui"
>
:disabled="!klipperReadyForGui">
<v-tooltip top>
<template v-slot:activator="{ on, attrs }">
<v-icon v-bind="attrs" v-on="on">mdi-play</v-icon>
@@ -24,8 +23,7 @@
:loading="loadings.includes('pauseJobqueue')"
icon
tile
v-if="['ready', 'loading'].includes(queueState)"
>
v-if="['ready', 'loading'].includes(queueState)">
<v-tooltip top>
<template v-slot:activator="{ on, attrs }">
<v-icon v-bind="attrs" v-on="on">mdi-pause</v-icon>
@@ -44,8 +42,7 @@
itemsPerPageAllText: $t('JobQueue.AllJobs'),
itemsPerPageOptions: [10, 25, 50, 100, -1],
}"
mobile-breakpoint="0"
>
mobile-breakpoint="0">
<template #no-data>
<div class="text-center">{{ $t('JobQueue.Empty') }}</div>
</template>
@@ -55,15 +52,13 @@
:key="item.job_id"
v-longpress:600="(e) => showContextMenu(e, item)"
@contextmenu="showContextMenu($event, item)"
class="file-list-cursor user-select-none"
>
class="file-list-cursor user-select-none">
<td class="pr-0 text-center" style="width: 32px">
<template v-if="getSmallThumbnail(item) && getBigThumbnail(item)">
<v-tooltip
v-if="!item.isDirectory && getSmallThumbnail(item) && getBigThumbnail(item)"
top
content-class="tooltip__content-opacity1"
>
content-class="tooltip__content-opacity1">
<template v-slot:activator="{ on, attrs }">
<vue-load-image>
<img
@@ -72,13 +67,11 @@
width="32"
height="32"
v-bind="attrs"
v-on="on"
/>
v-on="on" />
<v-progress-circular
slot="preloader"
indeterminate
color="primary"
></v-progress-circular>
color="primary"></v-progress-circular>
<v-icon slot="error">mdi-file</v-icon>
</vue-load-image>
</template>
@@ -91,8 +84,7 @@
<v-progress-circular
slot="preloader"
indeterminate
color="primary"
></v-progress-circular>
color="primary"></v-progress-circular>
<v-icon slot="error">mdi-file</v-icon>
</vue-load-image>
</template>
@@ -114,7 +106,8 @@
<v-menu v-model="contextMenu.shown" :position-x="contextMenu.x" :position-y="contextMenu.y" absolute offset-y>
<v-list>
<v-list-item @click="deleteJob(contextMenu.item)">
<v-icon class="mr-1">mdi-delete</v-icon> {{ $t('JobQueue.Delete') }}
<v-icon class="mr-1">mdi-delete</v-icon>
{{ $t('JobQueue.Delete') }}
</v-list-item>
</v-list>
</v-menu>
@@ -5,8 +5,7 @@
:title="$t('Panels.KlipperWarningsPanel.KlipperWarnings') + ' (' + warnings.length + ')'"
:collapsible="true"
card-class="klipper-warnings-panel"
toolbar-color="orange darken-2"
>
toolbar-color="orange darken-2">
<v-card-text :class="index > 0 ? 'py-0' : 'pt-3 pb-0'" v-for="(warning, index) in warnings" v-bind:key="index">
<v-divider class="my-2" v-if="index"></v-divider>
<v-row>
@@ -31,18 +30,18 @@
<p class="orange--text mb-0" v-else>{{ warning.message }}</p>
</v-col>
<v-col class="col-auto d-flex align-center">
<a :href="getDocsLink(warning)" target="_blank" class="text-decoration-none"
><v-icon>mdi-information</v-icon></a
>
<a :href="getDocsLink(warning)" target="_blank" class="text-decoration-none">
<v-icon>mdi-information</v-icon>
</a>
</v-col>
</v-row>
</v-card-text>
<v-divider class="mt-3"></v-divider>
<v-card-actions class="justify-start">
<v-btn small :href="apiUrl + '/server/files/klipper.log'" target="_blank" class="ml-2 primary--text"
><v-icon class="mr-2" small>mdi-download</v-icon
>{{ $t('Panels.KlipperWarningsPanel.DownloadLog') }}</v-btn
>
<v-btn small :href="apiUrl + '/server/files/klipper.log'" target="_blank" class="ml-2 primary--text">
<v-icon class="mr-2" small>mdi-download</v-icon>
{{ $t('Panels.KlipperWarningsPanel.DownloadLog') }}
</v-btn>
</v-card-actions>
</panel>
</template>
+9 -9
View File
@@ -3,8 +3,7 @@
v-if="klipperState !== 'ready' && socketIsConnected"
icon="mdi-alert-circle"
:title="$t('Panels.KlippyStatePanel.KlippyState') + ': ' + klipperState"
card-class="klippy-state-panel"
>
card-class="klippy-state-panel">
<template v-if="klippyIsConnected">
<v-card-text class="py-1 mt-2" v-if="klippy_message !== null">
<pre style="white-space: pre-wrap">{{ klippy_message }}</pre>
@@ -14,13 +13,14 @@
</v-card-text>
<v-divider class="mt-2"></v-divider>
<v-card-actions class="justify-start">
<v-btn small @click="restart" class="ml-2 error--text"
><v-icon class="mr-sm-2">mdi-restart</v-icon>{{ $t('Panels.KlippyStatePanel.Restart') }}</v-btn
>
<v-btn small @click="firmwareRestart" class="ml-4 error--text"
><v-icon class="mr-sm-2">mdi-restart</v-icon
>{{ $t('Panels.KlippyStatePanel.FirmwareRestart') }}</v-btn
>
<v-btn small @click="restart" class="ml-2 error--text">
<v-icon class="mr-sm-2">mdi-restart</v-icon>
{{ $t('Panels.KlippyStatePanel.Restart') }}
</v-btn>
<v-btn small @click="firmwareRestart" class="ml-4 error--text">
<v-icon class="mr-sm-2">mdi-restart</v-icon>
{{ $t('Panels.KlippyStatePanel.FirmwareRestart') }}
</v-btn>
</v-card-actions>
</template>
<template v-else>
@@ -5,8 +5,7 @@
<panel
:title="$t('Machine.ConfigFilesPanel.ConfigFiles')"
card-class="machine-configfiles-panel"
icon="mdi-information"
>
icon="mdi-information">
<v-card-text>
<v-row>
<v-col class="col-12 col-lg pr-lg-0">
@@ -18,8 +17,7 @@
hide-details
dense
@change="changeRoot"
attach
></v-select>
attach></v-select>
</v-col>
<v-col class="col col-lg-auto pl-lg-0 text-right">
<input type="file" ref="fileUpload" style="display: none" multiple @change="uploadFile" />
@@ -28,8 +26,7 @@
v-bind:key="button.loadingName"
class="px-2 minwidth-0 ml-3"
@click="button.click"
:loading="button.loadingName !== null && loadings.includes(button.loadingName)"
>
:loading="button.loadingName !== null && loadings.includes(button.loadingName)">
<v-tooltip top>
<template v-slot:activator="{ on, attrs }">
<v-icon v-bind="attrs" v-on="on">{{ button.icon }}</v-icon>
@@ -39,9 +36,9 @@
</v-btn>
<v-menu offset-y left :title="$t('Machine.ConfigFilesPanel.SetupCurrentList')" attach>
<template v-slot:activator="{ on, attrs }">
<v-btn class="px-2 minwidth-0 ml-3" v-bind="attrs" v-on="on"
><v-icon>mdi-cog</v-icon></v-btn
>
<v-btn class="px-2 minwidth-0 ml-3" v-bind="attrs" v-on="on">
<v-icon>mdi-cog</v-icon>
</v-btn>
</template>
<v-list>
<v-list-item class="minHeight36">
@@ -49,16 +46,14 @@
class="mt-0"
hide-details
v-model="showHiddenFiles"
:label="$t('Machine.ConfigFilesPanel.HiddenFiles')"
></v-checkbox>
:label="$t('Machine.ConfigFilesPanel.HiddenFiles')"></v-checkbox>
</v-list-item>
<v-list-item class="minHeight36">
<v-checkbox
class="mt-0"
hide-details
v-model="hideBackupFiles"
:label="$t('Machine.ConfigFilesPanel.HideBackupFiles')"
></v-checkbox>
:label="$t('Machine.ConfigFilesPanel.HideBackupFiles')"></v-checkbox>
</v-list-item>
</v-list>
</v-menu>
@@ -68,9 +63,10 @@
<v-card-text>
<v-row>
<v-col class="col-12 py-2 d-flex align-center">
<span
><b>{{ $t('Machine.ConfigFilesPanel.CurrentPath') }}:</b> {{ this.absolutePath }}</span
>
<span>
<b>{{ $t('Machine.ConfigFilesPanel.CurrentPath') }}:</b>
{{ this.absolutePath }}
</span>
<v-spacer></v-spacer>
<template v-if="disk_usage !== null">
<v-tooltip top>
@@ -81,10 +77,10 @@
</span>
</template>
<span>
{{ $t('Machine.ConfigFilesPanel.Used') }}: {{ formatFilesize(disk_usage.used)
}}<br />
{{ $t('Machine.ConfigFilesPanel.Free') }}: {{ formatFilesize(disk_usage.free)
}}<br />
{{ $t('Machine.ConfigFilesPanel.Used') }}: {{ formatFilesize(disk_usage.used) }}
<br />
{{ $t('Machine.ConfigFilesPanel.Free') }}: {{ formatFilesize(disk_usage.free) }}
<br />
{{ $t('Machine.ConfigFilesPanel.Total') }}: {{ formatFilesize(disk_usage.total) }}
</span>
</v-tooltip>
@@ -109,8 +105,7 @@
itemsPerPageOptions: [10, 25, 50, 100, -1],
}"
mobile-breakpoint="0"
item-key="name"
>
item-key="name">
<template #no-data>
<div class="text-center">{{ $t('Machine.ConfigFilesPanel.Empty') }}</div>
</template>
@@ -121,8 +116,7 @@
@click="clickRowGoBack"
@dragover="dragOverFilelist($event, { isDirectory: true, filename: '..' })"
@dragleave="dragLeaveFilelist"
@drop.prevent.stop="dragDropFilelist($event, { isDirectory: true, filename: '..' })"
>
@drop.prevent.stop="dragDropFilelist($event, { isDirectory: true, filename: '..' })">
<td class="pr-0 text-center" style="width: 32px"><v-icon>mdi-folder-upload</v-icon></td>
<td class=" " colspan="4">..</td>
</tr>
@@ -141,8 +135,7 @@
@dragend="dragendFile($event)"
@dragover="dragOverFilelist($event, item)"
@dragleave="dragLeaveFilelist"
@drop.prevent.stop="dragDropFilelist($event, item)"
>
@drop.prevent.stop="dragDropFilelist($event, item)">
<td class="pr-0 text-center" style="width: 32px">
<v-icon v-if="item.isDirectory">mdi-folder</v-icon>
<v-icon v-if="!item.isDirectory">mdi-file</v-icon>
@@ -167,31 +160,32 @@
}}
</v-list-item>
<v-list-item @click="downloadFile" v-if="!contextMenu.item.isDirectory">
<v-icon class="mr-1">mdi-cloud-download</v-icon> {{ $t('Machine.ConfigFilesPanel.Download') }}
<v-icon class="mr-1">mdi-cloud-download</v-icon>
{{ $t('Machine.ConfigFilesPanel.Download') }}
</v-list-item>
<v-list-item
@click="renameFile(contextMenu.item)"
v-if="!contextMenu.item.isDirectory && contextMenu.item.permissions.includes('w')"
>
<v-icon class="mr-1">mdi-rename-box</v-icon> {{ $t('Machine.ConfigFilesPanel.Rename') }}
v-if="!contextMenu.item.isDirectory && contextMenu.item.permissions.includes('w')">
<v-icon class="mr-1">mdi-rename-box</v-icon>
{{ $t('Machine.ConfigFilesPanel.Rename') }}
</v-list-item>
<v-list-item
@click="renameDirectory(contextMenu.item)"
v-if="contextMenu.item.isDirectory && contextMenu.item.permissions.includes('w')"
>
<v-icon class="mr-1">mdi-rename-box</v-icon> {{ $t('Machine.ConfigFilesPanel.Rename') }}
v-if="contextMenu.item.isDirectory && contextMenu.item.permissions.includes('w')">
<v-icon class="mr-1">mdi-rename-box</v-icon>
{{ $t('Machine.ConfigFilesPanel.Rename') }}
</v-list-item>
<v-list-item
@click="removeFile"
v-if="!contextMenu.item.isDirectory && contextMenu.item.permissions.includes('w')"
>
<v-icon class="mr-1">mdi-delete</v-icon> {{ $t('Machine.ConfigFilesPanel.Delete') }}
v-if="!contextMenu.item.isDirectory && contextMenu.item.permissions.includes('w')">
<v-icon class="mr-1">mdi-delete</v-icon>
{{ $t('Machine.ConfigFilesPanel.Delete') }}
</v-list-item>
<v-list-item
@click="deleteDirectory(contextMenu.item)"
v-if="contextMenu.item.isDirectory && contextMenu.item.permissions.includes('w')"
>
<v-icon class="mr-1">mdi-delete</v-icon> {{ $t('Machine.ConfigFilesPanel.Delete') }}
v-if="contextMenu.item.isDirectory && contextMenu.item.permissions.includes('w')">
<v-icon class="mr-1">mdi-delete</v-icon>
{{ $t('Machine.ConfigFilesPanel.Delete') }}
</v-list-item>
</v-list>
</v-menu>
@@ -204,13 +198,11 @@
dialogImage.item.url = null
dialogImage.item.svg = null
"
class="fill-height"
>
class="fill-height">
<panel
:title="dialogImage.item.name"
card-class="maschine-configfiles-imageviewer-dialog"
style="position: relative"
>
style="position: relative">
<template v-slot:buttons>
<v-btn
icon
@@ -219,8 +211,7 @@
dialogImage.show = false
dialogImage.item.url = null
dialogImage.item.svg = null
"
>
">
<v-icon>mdi-close-thick</v-icon>
</v-btn>
</template>
@@ -229,8 +220,7 @@
v-if="dialogImage.item.url"
:src="dialogImage.item.url"
style="max-height: 100%; width: auto"
alt="image"
/>
alt="image" />
<div v-else-if="dialogImage.item.svg" class="fill-width" v-html="dialogImage.item.svg"></div>
</div>
</panel>
@@ -239,8 +229,7 @@
<panel
:title="$t('Machine.ConfigFilesPanel.CreateFile')"
card-class="maschine-configfiles-create-file-dialog"
:margin-bottom="false"
>
:margin-bottom="false">
<template v-slot:buttons>
<v-btn icon tile @click="dialogCreateFile.show = false"><v-icon>mdi-close-thick</v-icon></v-btn>
</template>
@@ -250,17 +239,16 @@
v-model="dialogCreateFile.name"
ref="inputDialogCreateFileName"
@keyup.enter="createFileAction"
required
></v-text-field>
required></v-text-field>
</v-card-text>
<v-card-actions>
<v-spacer></v-spacer>
<v-btn color="" text @click="dialogCreateFile.show = false">{{
$t('Machine.ConfigFilesPanel.Cancel')
}}</v-btn>
<v-btn color="primary" text @click="createFileAction">{{
$t('Machine.ConfigFilesPanel.Create')
}}</v-btn>
<v-btn color="" text @click="dialogCreateFile.show = false">
{{ $t('Machine.ConfigFilesPanel.Cancel') }}
</v-btn>
<v-btn color="primary" text @click="createFileAction">
{{ $t('Machine.ConfigFilesPanel.Create') }}
</v-btn>
</v-card-actions>
</panel>
</v-dialog>
@@ -268,8 +256,7 @@
<panel
:title="$t('Machine.ConfigFilesPanel.RenameFile')"
card-class="maschine-configfiles-rename-file-dialog"
:margin-bottom="false"
>
:margin-bottom="false">
<template v-slot:buttons>
<v-btn icon tile @click="dialogRenameFile.show = false"><v-icon>mdi-close-thick</v-icon></v-btn>
</template>
@@ -279,17 +266,16 @@
v-model="dialogRenameFile.newName"
ref="inputDialogRenameFileName"
@keyup.enter="renameFileAction"
required
></v-text-field>
required></v-text-field>
</v-card-text>
<v-card-actions>
<v-spacer></v-spacer>
<v-btn color="" text @click="dialogRenameFile.show = false">{{
$t('Machine.ConfigFilesPanel.Cancel')
}}</v-btn>
<v-btn color="primary" text @click="renameFileAction">{{
$t('Machine.ConfigFilesPanel.Rename')
}}</v-btn>
<v-btn color="" text @click="dialogRenameFile.show = false">
{{ $t('Machine.ConfigFilesPanel.Cancel') }}
</v-btn>
<v-btn color="primary" text @click="renameFileAction">
{{ $t('Machine.ConfigFilesPanel.Rename') }}
</v-btn>
</v-card-actions>
</panel>
</v-dialog>
@@ -297,12 +283,11 @@
<panel
:title="$t('Machine.ConfigFilesPanel.CreateDirectory')"
card-class="maschine-configfiles-create-directory-dialog"
:margin-bottom="false"
>
:margin-bottom="false">
<template v-slot:buttons>
<v-btn icon tile @click="dialogCreateDirectory.show = false"
><v-icon>mdi-close-thick</v-icon></v-btn
>
<v-btn icon tile @click="dialogCreateDirectory.show = false">
<v-icon>mdi-close-thick</v-icon>
</v-btn>
</template>
<v-card-text>
<v-text-field
@@ -310,17 +295,16 @@
v-model="dialogCreateDirectory.name"
ref="inputDialogCreateDirectoryName"
@keyup.enter="createDirectoryAction"
required
></v-text-field>
required></v-text-field>
</v-card-text>
<v-card-actions>
<v-spacer></v-spacer>
<v-btn color="" text @click="dialogCreateDirectory.show = false">{{
$t('Machine.ConfigFilesPanel.Cancel')
}}</v-btn>
<v-btn color="primary" text @click="createDirectoryAction">{{
$t('Machine.ConfigFilesPanel.Create')
}}</v-btn>
<v-btn color="" text @click="dialogCreateDirectory.show = false">
{{ $t('Machine.ConfigFilesPanel.Cancel') }}
</v-btn>
<v-btn color="primary" text @click="createDirectoryAction">
{{ $t('Machine.ConfigFilesPanel.Create') }}
</v-btn>
</v-card-actions>
</panel>
</v-dialog>
@@ -328,12 +312,11 @@
<panel
:title="$t('Machine.ConfigFilesPanel.RenameDirectory')"
card-class="maschine-configfiles-rename-directory-dialog"
:margin-bottom="false"
>
:margin-bottom="false">
<template v-slot:buttons>
<v-btn icon tile @click="dialogRenameDirectory.show = false"
><v-icon>mdi-close-thick</v-icon></v-btn
>
<v-btn icon tile @click="dialogRenameDirectory.show = false">
<v-icon>mdi-close-thick</v-icon>
</v-btn>
</template>
<v-card-text>
<v-text-field
@@ -341,17 +324,16 @@
v-model="dialogRenameDirectory.newName"
ref="inputDialogRenameDirectoryName"
@keyup.enter="renameDirectoryAction"
required
></v-text-field>
required></v-text-field>
</v-card-text>
<v-card-actions>
<v-spacer></v-spacer>
<v-btn color="" text @click="dialogRenameDirectory.show = false">{{
$t('Machine.ConfigFilesPanel.Cancel')
}}</v-btn>
<v-btn color="primary" text @click="renameDirectoryAction">{{
$t('Machine.ConfigFilesPanel.Rename')
}}</v-btn>
<v-btn color="" text @click="dialogRenameDirectory.show = false">
{{ $t('Machine.ConfigFilesPanel.Cancel') }}
</v-btn>
<v-btn color="primary" text @click="renameDirectoryAction">
{{ $t('Machine.ConfigFilesPanel.Rename') }}
</v-btn>
</v-card-actions>
</panel>
</v-dialog>
@@ -359,12 +341,11 @@
<panel
:title="$t('Machine.ConfigFilesPanel.DeleteDirectory')"
card-class="maschine-configfiles-delete-directory-dialog"
:margin-bottom="false"
>
:margin-bottom="false">
<template v-slot:buttons>
<v-btn icon tile @click="dialogDeleteDirectory.show = false"
><v-icon>mdi-close-thick</v-icon></v-btn
>
<v-btn icon tile @click="dialogDeleteDirectory.show = false">
<v-icon>mdi-close-thick</v-icon>
</v-btn>
</template>
<v-card-text>
<p class="mb-0">
@@ -377,21 +358,23 @@
</v-card-text>
<v-card-actions>
<v-spacer></v-spacer>
<v-btn color="" text @click="dialogDeleteDirectory.show = false">{{
$t('Machine.ConfigFilesPanel.Cancel')
}}</v-btn>
<v-btn color="error" text @click="deleteDirectoryAction">{{
$t('Machine.ConfigFilesPanel.Delete')
}}</v-btn>
<v-btn color="" text @click="dialogDeleteDirectory.show = false">
{{ $t('Machine.ConfigFilesPanel.Cancel') }}
</v-btn>
<v-btn color="error" text @click="deleteDirectoryAction">
{{ $t('Machine.ConfigFilesPanel.Delete') }}
</v-btn>
</v-card-actions>
</panel>
</v-dialog>
<v-snackbar v-model="uploadSnackbar.status" :timeout="-1" :value="true" fixed right bottom dark>
<span v-if="uploadSnackbar.max > 1" class="mr-1"
>({{ uploadSnackbar.number }}/{{ uploadSnackbar.max }})</span
><strong>{{ $t('Machine.ConfigFilesPanel.Uploading') }} {{ uploadSnackbar.filename }}</strong
><br />
{{ Math.round(uploadSnackbar.percent) }} % @ {{ formatFilesize(Math.round(uploadSnackbar.speed)) }}/s<br />
<span v-if="uploadSnackbar.max > 1" class="mr-1">
({{ uploadSnackbar.number }}/{{ uploadSnackbar.max }})
</span>
<strong>{{ $t('Machine.ConfigFilesPanel.Uploading') }} {{ uploadSnackbar.filename }}</strong>
<br />
{{ Math.round(uploadSnackbar.percent) }} % @ {{ formatFilesize(Math.round(uploadSnackbar.speed)) }}/s
<br />
<v-progress-linear class="mt-2" :value="uploadSnackbar.percent"></v-progress-linear>
<template v-slot:action="{ attrs }">
<v-btn color="red" text v-bind="attrs" @click="cancelUpload" style="min-width: auto">
@@ -3,23 +3,22 @@
:title="$t('Machine.EndstopPanel.Endstops')"
icon="mdi-arrow-expand-vertical"
card-class="machine-endstop-panel"
:collapsible="true"
>
:collapsible="true">
<v-card-text class="pb-0">
<v-container px-0 py-0>
<template v-if="Object.keys(endstops).length">
<v-row v-for="key of Object.keys(endstops)" v-bind:key="key">
<v-col class="py-1">
<label class="mt-1 d-inline-block"
>{{ $t('Machine.EndstopPanel.Endstop') }} <b>{{ key.toUpperCase() }}</b></label
>
<label class="mt-1 d-inline-block">
{{ $t('Machine.EndstopPanel.Endstop') }}
<b>{{ key.toUpperCase() }}</b>
</label>
<v-chip
small
label
class="float-right"
:color="endstops[key] === 'open' ? 'green' : 'red'"
text-color="white"
>
text-color="white">
<template v-if="endstops[key] === 'open'">
{{ $t('Machine.EndstopPanel.open') }}
</template>
+10 -10
View File
@@ -3,8 +3,7 @@
:title="$t('Machine.LogfilesPanel.Logfiles')"
icon="mdi-file-document-edit"
card-class="machine-logfiles-panel"
:collapsible="true"
>
:collapsible="true">
<v-card-text :class="'text-center text-lg-left py-0'">
<v-container pb-0 px-0>
<v-row>
@@ -13,20 +12,21 @@
:href="this.apiUrl + '/server/files/klippy.log'"
@click="downloadLog"
block
class="primary--text"
><v-icon class="mr-2">mdi-download</v-icon>Klipper</v-btn
>
class="primary--text">
<v-icon class="mr-2">mdi-download</v-icon>
Klipper
</v-btn>
</v-col>
<v-col
:class="'col-12 pt-0 ' + (klipperState !== 'ready' ? 'col-md-6 mt-md-3 ' : 'col-md-12') + ''"
>
:class="'col-12 pt-0 ' + (klipperState !== 'ready' ? 'col-md-6 mt-md-3 ' : 'col-md-12') + ''">
<v-btn
:href="this.apiUrl + '/server/files/moonraker.log'"
@click="downloadLog"
block
class="primary--text"
><v-icon class="mr-2">mdi-download</v-icon>Moonraker</v-btn
>
class="primary--text">
<v-icon class="mr-2">mdi-download</v-icon>
Moonraker
</v-btn>
</v-col>
</v-row>
</v-container>
+59 -59
View File
@@ -10,42 +10,43 @@
:title="$t('Machine.SystemPanel.SystemLoad')"
icon="mdi-memory"
card-class="machine-systemload-panel"
:collapsible="true"
>
:collapsible="true">
<v-card-text class="px-0 py-2">
<div v-for="(mcu, index) of mcus" v-bind:key="mcu.name">
<v-divider class="my-2" v-if="index"></v-divider>
<v-row class="py-0">
<v-col class="pl-6">
<strong style="cursor: pointer" @click="openMcuDetails(mcu)">{{ mcu.name }}</strong
><small v-if="mcu.chip" class="ml-2">({{ mcu.chip }})</small><br />
{{ $t('Machine.SystemPanel.Version') }}: {{ mcu.version }}<br />
<strong style="cursor: pointer" @click="openMcuDetails(mcu)">{{ mcu.name }}</strong>
<small v-if="mcu.chip" class="ml-2">({{ mcu.chip }})</small>
<br />
{{ $t('Machine.SystemPanel.Version') }}: {{ mcu.version }}
<br />
{{ $t('Machine.SystemPanel.Load') }}: {{ mcu.load }}, {{ $t('Machine.SystemPanel.Awake') }}:
{{ mcu.awake }}
<span v-if="mcu.freq !== null"
>, {{ $t('Machine.SystemPanel.Frequency') }}: {{ mcu.freqFormat }}</span
>
<span v-if="mcu.freq !== null">
, {{ $t('Machine.SystemPanel.Frequency') }}: {{ mcu.freqFormat }}
</span>
<template v-if="mcu.tempSensor">
<span>, </span>
<span>,</span>
<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
>
<span v-bind="attrs" v-on="on">
Temp: {{ mcu.tempSensor.temperature + '°C' }}
</span>
</template>
<span>
max: {{ mcu.tempSensor.measured_max_temp }}°C<br />
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-else>Temp: {{ mcu.tempSensor.temperature + '°C' }}</template>
</template>
</v-col>
<v-col class="px-6 col-auto d-flex justify-end align-center">
@@ -54,8 +55,7 @@
:size="55"
:width="7"
:value="mcu.loadPercent"
:color="mcu.loadProgressColor"
>
:color="mcu.loadProgressColor">
{{ mcu.loadPercent }}
</v-progress-circular>
</v-col>
@@ -68,51 +68,54 @@
<strong style="cursor: pointer" @click="hostDetailsDialog.bool = true">Host</strong>
<v-tooltip top>
<template v-slot:activator="{ on, attrs }">
<small v-if="hostStats.cpuName" class="ml-2" v-bind="attrs" v-on="on"
>({{ hostStats.cpuName }})</small
>
<small v-if="hostStats.cpuName" class="ml-2" v-bind="attrs" v-on="on">
({{ hostStats.cpuName }})
</small>
</template>
<span v-if="hostStats.cpuDesc">{{ hostStats.cpuDesc }}</span>
</v-tooltip>
<br />
<span v-if="hostStats.version"
>{{ $t('Machine.SystemPanel.Version') }}: {{ hostStats.version }}<br
/></span>
<span v-if="hostStats.os"
>{{ $t('Machine.SystemPanel.Os') }}: {{ hostStats.os }}<br
/></span>
<span v-if="hostStats.release_info && hostStats.release_info.name !== '0.'"
>{{ $t('Machine.SystemPanel.Distro') }}: {{ hostStats.release_info.name }}
<span v-if="hostStats.version">
{{ $t('Machine.SystemPanel.Version') }}: {{ hostStats.version }}
<br />
</span>
<span v-if="hostStats.os">
{{ $t('Machine.SystemPanel.Os') }}: {{ hostStats.os }}
<br />
</span>
<span v-if="hostStats.release_info && hostStats.release_info.name !== '0.'">
{{ $t('Machine.SystemPanel.Distro') }}: {{ hostStats.release_info.name }}
{{ hostStats.release_info.version_id }}
<span v-if="hostStats.release_info.codename"
>({{ hostStats.release_info.codename }})</span
><br
/></span>
<span v-if="hostStats.release_info.codename">
({{ hostStats.release_info.codename }})
</span>
<br />
</span>
<span>{{ $t('Machine.SystemPanel.Load') }}: {{ hostStats.load }}</span>
<span v-if="hostStats.memoryFormat"
>, {{ $t('Machine.SystemPanel.Memory') }}: {{ hostStats.memoryFormat }}</span
>
<span v-if="hostStats.memoryFormat">
, {{ $t('Machine.SystemPanel.Memory') }}: {{ hostStats.memoryFormat }}
</span>
<template v-if="hostStats.tempSensor">
<span>, </span>
<span>,</span>
<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
>
<span v-bind="attrs" v-on="on">
Temp: {{ hostStats.tempSensor.temperature + '°C' }}
</span>
</template>
<span>
max: {{ hostStats.tempSensor.measured_max_temp }}°C<br />
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-else>Temp: {{ hostStats.tempSensor.temperature + '°C' }}</template>
</template>
</v-col>
<v-col class="px-6 col-auto d-flex justify-end align-center">
@@ -121,8 +124,7 @@
:size="55"
:width="7"
:value="hostStats.loadPercent"
:color="hostStats.loadProgressColor"
>
:color="hostStats.loadProgressColor">
{{ hostStats.loadPercent }}
</v-progress-circular>
</v-col>
@@ -135,8 +137,7 @@
:title="mcuDetailsDialog.headline"
icon="mdi-text-box-search-outline"
card-class="machine-systemload-mcu-details-dialog"
:margin-bottom="false"
>
:margin-bottom="false">
<template v-slot:buttons>
<v-btn icon tile @click="mcuDetailsDialog.bool = false"><v-icon>mdi-close-thick</v-icon></v-btn>
</template>
@@ -144,9 +145,9 @@
<overlay-scrollbars style="height: 350px" class="px-6">
<template v-if="mcuDetailsDialog.mcu.mcu_constants">
<v-row>
<v-col
><span class="headline">{{ $t('Machine.SystemPanel.Constants') }}</span></v-col
>
<v-col>
<span class="headline">{{ $t('Machine.SystemPanel.Constants') }}</span>
</v-col>
</v-row>
<div v-for="(value, key, index) in mcuDetailsDialog.mcu.mcu_constants" :key="key">
<v-divider class="my-3" v-if="index"></v-divider>
@@ -158,9 +159,9 @@
</template>
<template v-if="mcuDetailsDialog.mcu.last_stats">
<v-row class="mt-5">
<v-col
><span class="headline">{{ $t('Machine.SystemPanel.LastStats') }}</span></v-col
>
<v-col>
<span class="headline">{{ $t('Machine.SystemPanel.LastStats') }}</span>
</v-col>
</v-row>
<div v-for="(value, key, index) in mcuDetailsDialog.mcu.last_stats" :key="key">
<v-divider class="my-3" v-if="index"></v-divider>
@@ -179,8 +180,7 @@
:title="$t('Machine.SystemPanel.HostDetails')"
icon="mdi-text-box-search-outline"
card-class="machine-systemload-host-details-dialog"
:margin-bottom="false"
>
:margin-bottom="false">
<template v-slot:buttons>
<v-btn icon tile @click="hostDetailsDialog.bool = false"><v-icon>mdi-close-thick</v-icon></v-btn>
</template>
@@ -190,9 +190,9 @@
<div v-for="(infoGroup, key, index) of systemInfo" v-bind:key="key">
<template v-if="key !== 'available_services'">
<v-row :class="index ? 'mt-5' : ''">
<v-col
><span class="headline">{{ key }}</span></v-col
>
<v-col>
<span class="headline">{{ key }}</span>
</v-col>
</v-row>
<div v-for="(value, key, index) in infoGroup" :key="key">
<v-divider class="my-3" v-if="index"></v-divider>
+49 -58
View File
@@ -65,8 +65,7 @@ ul.commits {
v-if="enableUpdateManager"
icon="mdi-update"
card-class="machine-update-panel"
:collapsible="true"
>
:collapsible="true">
<template v-slot:buttons>
<v-tooltip top>
<template v-slot:activator="{ on, attrs }">
@@ -79,9 +78,9 @@ ul.commits {
:disabled="['printing', 'paused'].includes(printer_state)"
@click="btnSync"
v-bind="attrs"
v-on="on"
><v-icon>mdi-refresh</v-icon></v-btn
>
v-on="on">
<v-icon>mdi-refresh</v-icon>
</v-btn>
</template>
<span>{{ $t('Machine.UpdatePanel.CheckForUpdates') }}</span>
</v-tooltip>
@@ -92,15 +91,16 @@ ul.commits {
<v-divider class="my-0" v-if="index"></v-divider>
<v-row class="py-2">
<v-col class="pl-6">
<strong>{{ 'name' in value ? value.name : key }}</strong
><br />
<strong>{{ 'name' in value ? value.name : key }}</strong>
<br />
<span
@click="openCommitsOverlay(key, value)"
:class="getVersionClickable(value) ? 'primary--text cursor--pointer' : ''"
><v-icon v-if="getVersionClickable(value)" small color="primary" class="mr-1"
>mdi-information</v-icon
>{{ getVersionOutput(value) }}</span
>
:class="getVersionClickable(value) ? 'primary--text cursor--pointer' : ''">
<v-icon v-if="getVersionClickable(value)" small color="primary" class="mr-1">
mdi-information
</v-icon>
{{ getVersionOutput(value) }}
</span>
</v-col>
<v-col class="col-auto pr-6 text-right" align-self="center">
<template v-if="getRecoveryOptions(value)">
@@ -114,8 +114,7 @@ ul.commits {
:disabled="getBtnDisabled(value)"
class="minwidth-0 px-2 text-uppercase"
v-bind="attrs"
v-on="on"
>
v-on="on">
<v-icon small class="mr-1">mdi-{{ getBtnIcon(value) }}</v-icon>
{{ getBtnText(value) }}
<v-icon small>mdi-menu-down</v-icon>
@@ -149,10 +148,10 @@ ul.commits {
:color="getBtnColor(value)"
@click="updateModule(key)"
:disabled="getBtnDisabled(value)"
class="minwidth-0 px-2 text-uppercase"
><v-icon small class="mr-1">mdi-{{ getBtnIcon(value) }}</v-icon
>{{ getBtnText(value) }}</v-chip
>
class="minwidth-0 px-2 text-uppercase">
<v-icon small class="mr-1">mdi-{{ getBtnIcon(value) }}</v-icon>
{{ getBtnText(value) }}
</v-chip>
</template>
</v-col>
</v-row>
@@ -161,20 +160,20 @@ ul.commits {
<v-divider class="my-0 border-top-2"></v-divider>
<v-row class="pt-2">
<v-col class="col-auto pl-6 text-no-wrap">
<strong>{{ $t('Machine.UpdatePanel.System') }}</strong
><br />
<strong>{{ $t('Machine.UpdatePanel.System') }}</strong>
<br />
<v-tooltip top v-if="version_info.system.package_count > 0" :max-width="300">
<template v-slot:activator="{ on, attrs }">
<span v-bind="attrs" v-on="on"
>{{ version_info.system.package_count }}
{{ $t('Machine.UpdatePanel.PackagesCanBeUpgraded') }}</span
>
<span v-bind="attrs" v-on="on">
{{ version_info.system.package_count }}
{{ $t('Machine.UpdatePanel.PackagesCanBeUpgraded') }}
</span>
</template>
<span>{{ version_info.system.package_list.join(', ') }}</span>
</v-tooltip>
<span v-if="version_info.system.package_count === 0">{{
$t('Machine.UpdatePanel.OSPackages')
}}</span>
<span v-if="version_info.system.package_count === 0">
{{ $t('Machine.UpdatePanel.OSPackages') }}
</span>
</v-col>
<v-col class="pr-6 text-right" align-self="center">
<v-chip
@@ -184,17 +183,16 @@ ul.commits {
:color="version_info.system.package_count ? 'primary' : 'green'"
:disabled="!version_info.system.package_count || printer_state === 'printing'"
@click="updateSystem"
class="minwidth-0 px-2 text-uppercase"
><v-icon small class="mr-1"
>mdi-{{
version_info.system.package_count ? 'progress-upload' : 'check'
}}</v-icon
>{{
class="minwidth-0 px-2 text-uppercase">
<v-icon small class="mr-1">
mdi-{{ version_info.system.package_count ? 'progress-upload' : 'check' }}
</v-icon>
{{
version_info.system.package_count
? $t('Machine.UpdatePanel.Upgrade')
: $t('Machine.UpdatePanel.UpToDate')
}}</v-chip
>
}}
</v-chip>
</v-col>
</v-row>
</template>
@@ -207,8 +205,7 @@ ul.commits {
color="primary"
small
@click="updateAll"
:disabled="['printing', 'paused'].includes(this.printer_state)"
>
:disabled="['printing', 'paused'].includes(this.printer_state)">
<v-icon left>mdi-progress-upload</v-icon>
{{ $t('Machine.UpdatePanel.UpdateAll') }}
</v-btn>
@@ -223,8 +220,7 @@ ul.commits {
:title="$t('Machine.UpdatePanel.Commits')"
icon="mdi-update"
:margin-bottom="false"
card-class="machine-update-commits-dialog"
>
card-class="machine-update-commits-dialog">
<template v-slot:buttons>
<v-btn icon tile @click="commitsOverlay.bool = false"><v-icon>mdi-close-thick</v-icon></v-btn>
</template>
@@ -236,8 +232,7 @@ ul.commits {
<v-timeline-item
small
v-for="group of commitsOverlay.groupedCommits"
v-bind:key="group.date.getTime()"
>
v-bind:key="group.date.getTime()">
<v-row class="pt-0">
<v-col class="pr-12">
<h3 class="caption">
@@ -254,35 +249,31 @@ ul.commits {
<li
class="commit px-3 py-2"
v-for="commit of group.commits"
v-bind:key="commit.sha"
>
v-bind:key="commit.sha">
<v-row>
<v-col>
<h4 class="subtitle-2 text--white mb-0">
{{ commit.subject
}}<v-chip
{{ commit.subject }}
<v-chip
outlined
label
x-small
class="ml-2 px-2"
v-if="!openCommits.includes(commit.sha)"
@click="openCommits.push(commit.sha)"
><v-icon small
>mdi-dots-horizontal</v-icon
></v-chip
>
@click="openCommits.push(commit.sha)">
<v-icon small>mdi-dots-horizontal</v-icon>
</v-chip>
</h4>
<p
v-if="openCommits.includes(commit.sha)"
class="caption text--secondary mb-2"
style="white-space: pre-line"
v-html="commit.message"
></p>
v-html="commit.message"></p>
<p class="caption mb-0">
<span
class="font-weight-bold text-decoration-none white--text"
>{{ commit.author }}</span
>
class="font-weight-bold text-decoration-none white--text">
{{ commit.author }}
</span>
<span>{{ convertCommitDate(commit.date) }}</span>
</p>
</v-col>
@@ -299,9 +290,9 @@ ul.commits {
'/commit/' +
commit.sha
"
target="_blank"
>{{ commit.sha.substr(0, 6) }}</v-chip
>
target="_blank">
{{ commit.sha.substr(0, 6) }}
</v-chip>
</v-col>
</v-row>
</li>
@@ -13,8 +13,7 @@
:max="null"
:dec="2"
unit="mm"
attribute-name="RETRACT_LENGTH"
></firmware-retraction-settings-input>
attribute-name="RETRACT_LENGTH"></firmware-retraction-settings-input>
</v-col>
<v-col class="col-12 col-md-6">
<firmware-retraction-settings-input
@@ -28,8 +27,7 @@
:max="null"
:dec="0"
unit="mm/s"
attribute-name="RETRACT_SPEED"
></firmware-retraction-settings-input>
attribute-name="RETRACT_SPEED"></firmware-retraction-settings-input>
</v-col>
</v-row>
<v-row>
@@ -47,8 +45,7 @@
:max="null"
:dec="2"
unit="mm"
attribute-name="UNRETRACT_EXTRA_LENGTH"
></firmware-retraction-settings-input>
attribute-name="UNRETRACT_EXTRA_LENGTH"></firmware-retraction-settings-input>
</v-col>
<v-col class="col-12 col-md-6">
<firmware-retraction-settings-input
@@ -62,8 +59,7 @@
:max="null"
:dec="0"
unit="mm/s"
attribute-name="UNRETRACT_SPEED"
></firmware-retraction-settings-input>
attribute-name="UNRETRACT_SPEED"></firmware-retraction-settings-input>
</v-col>
</v-row>
</v-card-text>
@@ -4,26 +4,22 @@
icon="mdi-engine"
:title="$t('Panels.MachineSettingsPanel.Headline').toString()"
:collapsible="true"
card-class="machine-settings-panel"
>
card-class="machine-settings-panel">
<div>
<sub-panel
:title="$t('Panels.MachineSettingsPanel.MotionSettings.Motion').toString()"
sub-panel-class="motion-settings-subpanel"
>
sub-panel-class="motion-settings-subpanel">
<motion-settings></motion-settings>
</sub-panel>
<sub-panel
:title="$t('Panels.MachineSettingsPanel.PressureAdvanceSettings.PressureAdvance').toString()"
sub-panel-class="pressure-advance-settings-subpanel"
>
sub-panel-class="pressure-advance-settings-subpanel">
<pressure-advance-settings></pressure-advance-settings>
</sub-panel>
<sub-panel
v-if="existsFirmwareRetraction"
:title="$t('Panels.MachineSettingsPanel.FirmwareRetractionSettings.FirmwareRetraction').toString()"
sub-panel-class="firmware-retraction-settings-subpanel"
>
sub-panel-class="firmware-retraction-settings-subpanel">
<firmware-retraction-settings></firmware-retraction-settings>
</sub-panel>
</div>
@@ -13,8 +13,7 @@
:max="null"
:dec="0"
unit="mm/s"
attribute-name="VELOCITY"
></motion-settings-input>
attribute-name="VELOCITY"></motion-settings-input>
</v-col>
<v-col class="col-12 col-md-6">
<motion-settings-input
@@ -27,8 +26,7 @@
:max="null"
:dec="1"
unit="mm/s"
attribute-name="SQUARE_CORNER_VELOCITY"
></motion-settings-input>
attribute-name="SQUARE_CORNER_VELOCITY"></motion-settings-input>
</v-col>
</v-row>
<v-row>
@@ -44,8 +42,7 @@
:max="null"
:dec="0"
unit="mm/s²"
attribute-name="ACCEL"
></motion-settings-input>
attribute-name="ACCEL"></motion-settings-input>
</v-col>
<v-col class="col-12 col-md-6">
<motion-settings-input
@@ -59,8 +56,7 @@
:max="null"
:dec="0"
unit="mm/s²"
attribute-name="ACCEL_TO_DECEL"
></motion-settings-input>
attribute-name="ACCEL_TO_DECEL"></motion-settings-input>
</v-col>
</v-row>
</v-card-text>
@@ -8,8 +8,8 @@
@click="resetToActiveExtruder"
class="mr-2"
icon
plain
><v-icon>mdi-restart</v-icon>
plain>
<v-icon>mdi-restart</v-icon>
</v-btn>
<v-select
v-model="selectedExtruder"
@@ -18,8 +18,7 @@
:value="active_extruder"
hide-details
outlined
dense
></v-select>
dense></v-select>
</div>
</v-col>
<v-col :class="this.all_extruders.length > 1 ? 'col-12 col-md-6 col-xl-4' : 'col-12 col-md-6'">
@@ -34,8 +33,7 @@
:step="0.001"
:dec="3"
unit="mm/s"
attribute-name="ADVANCE"
></pressure-advance-settings-input>
attribute-name="ADVANCE"></pressure-advance-settings-input>
</v-col>
<v-col :class="this.all_extruders.length > 1 ? 'col-12 col-md-6 col-xl-4' : 'col-12 col-md-6'">
<pressure-advance-settings-input
@@ -50,8 +48,7 @@
:spinnerFactor="10"
:dec="3"
unit="s"
attribute-name="SMOOTH_TIME"
></pressure-advance-settings-input>
attribute-name="SMOOTH_TIME"></pressure-advance-settings-input>
</v-col>
</v-row>
</v-card-text>
+2 -4
View File
@@ -6,8 +6,7 @@
icon="mdi-code-tags"
:title="macrogroup.name"
:collapsible="true"
:card-class="'macrogroup_' + panelId + '_panel'"
>
:card-class="'macrogroup_' + panelId + '_panel'">
<v-card-text class="py-2">
<v-row>
<v-col class="text-center">
@@ -16,8 +15,7 @@
:key="'macroparam_' + index"
:macro="macro"
:color="getColor(macro)"
class="mx-1 my-1"
/>
class="mx-1 my-1" />
</v-col>
</v-row>
</v-card-text>
+2 -4
View File
@@ -4,8 +4,7 @@
icon="mdi-code-tags"
:title="$t('Panels.MacrosPanel.Headline')"
:collapsible="true"
card-class="macros-panel"
>
card-class="macros-panel">
<v-card-text class="py-2">
<v-row>
<v-col class="text-center">
@@ -14,8 +13,7 @@
:key="'macro_' + index"
:macro="macro"
color="primary"
class="mx-1 my-1"
/>
class="mx-1 my-1" />
</v-col>
</v-row>
</v-card-text>
+7 -7
View File
@@ -5,14 +5,14 @@
:title="$t('Panels.MinSettingsPanel.MissingConfiguration')"
:collapsible="true"
card-class="min-settings-panel"
toolbar-color="orange darken-2"
>
toolbar-color="orange darken-2">
<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') }}
<code>{{ module }}</code>
{{ $t('Panels.MinSettingsPanel.IsNotDefinedInConfig') }}
</li>
</ul>
</v-col>
@@ -30,10 +30,10 @@
<v-divider class="mb-2"></v-divider>
</template>
<v-card-actions class="justify-center pb-3">
<v-btn small href="https://docs.mainsail.xyz/necessary-configuration" target="_blank"
><v-icon small class="mr-1">mdi-information</v-icon
>{{ $t('Panels.MinSettingsPanel.MoreInformation') }}</v-btn
>
<v-btn small href="https://docs.mainsail.xyz/necessary-configuration" target="_blank">
<v-icon small class="mr-1">mdi-information</v-icon>
{{ $t('Panels.MinSettingsPanel.MoreInformation') }}
</v-btn>
</v-card-actions>
</panel>
</template>
+8 -16
View File
@@ -15,16 +15,14 @@
:title="$t('Panels.MiniconsolePanel.Headline')"
:collapsible="true"
card-class="miniconsole-panel"
:hideButtonsOnCollapse="true"
>
:hideButtonsOnCollapse="true">
<template v-slot:buttons>
<command-help-modal @onCommand="gcode = $event" :inToolbar="true"></command-help-modal>
<v-menu
:offset-y="true"
:close-on-content-click="false"
:title="$t('Panels.MiniconsolePanel.SetupConsole')"
>
:title="$t('Panels.MiniconsolePanel.SetupConsole')">
<template v-slot:activator="{ on, attrs }">
<v-btn icon tile v-bind="attrs" v-on="on"><v-icon small>mdi-filter</v-icon></v-btn>
</template>
@@ -34,16 +32,14 @@
class="mt-0"
v-model="hideWaitTemperatures"
hide-details
:label="$t('Panels.MiniconsolePanel.HideTemperatures')"
></v-checkbox>
:label="$t('Panels.MiniconsolePanel.HideTemperatures')"></v-checkbox>
</v-list-item>
<v-list-item class="minHeight36" v-if="moonrakerComponents.includes('timelapse')">
<v-checkbox
class="mt-0"
v-model="hideTlCommands"
hide-details
:label="$t('Panels.MiniconsolePanel.HideTimelapse')"
></v-checkbox>
:label="$t('Panels.MiniconsolePanel.HideTimelapse')"></v-checkbox>
</v-list-item>
<v-list-item class="minHeight36" v-for="(filter, index) in customFilters" v-bind:key="index">
<v-checkbox
@@ -51,8 +47,7 @@
v-model="filter.bool"
@change="toggleFilter(filter)"
hide-details
:label="filter.name"
></v-checkbox>
:label="filter.name"></v-checkbox>
</v-list-item>
</v-list>
</v-menu>
@@ -80,8 +75,7 @@
:prepend-icon="isTouchDevice ? 'mdi-chevron-double-right' : ''"
@click:prepend="getAutocomplete"
append-icon="mdi-send"
@click:append="doSend"
></v-textarea>
@click:append="doSend"></v-textarea>
</v-card-text>
<v-card-text :class="(consoleDirection === 'table' ? 'order-2' : 'order-1') + ' pa-0'">
<v-row>
@@ -89,14 +83,12 @@
<overlay-scrollbars
ref="miniConsoleScroll"
:style="'height: ' + consoleHeight + 'px;'"
:options="{}"
>
:options="{}">
<console-table
ref="console"
:events="events"
:is-mini="true"
@command-click="commandClick"
/>
@command-click="commandClick" />
<v-divider></v-divider>
</overlay-scrollbars>
</v-col>
+3 -6
View File
@@ -6,8 +6,7 @@
icon="mdi-dip-switch"
:title="$t('Panels.MiscellaneousPanel.Headline')"
:collapsible="true"
card-class="miscellaneous-panel"
>
card-class="miscellaneous-panel">
<div v-for="(object, index) of miscellaneous" v-bind:key="index">
<v-divider v-if="index"></v-divider>
<miscellaneous-slider
@@ -19,16 +18,14 @@
:pwm="object.pwm"
:off_below="object.off_below"
:max="object.max_power"
:multi="parseInt(object.scale)"
></miscellaneous-slider>
: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>
:filament_detected="sensor.filament_detected"></filament-sensor>
</div>
</panel>
</template>
@@ -5,8 +5,7 @@
:title="$t('Panels.MoonrakerStatePanel.MoonrakerWarnings')"
:collapsible="true"
card-class="moonraker-state-panel"
toolbar-color="orange darken-2"
>
toolbar-color="orange darken-2">
<v-card-text v-if="failedComponents.length">
<v-row>
<v-col>
@@ -24,17 +23,16 @@
<v-card-text
:class="index > 0 ? 'py-0' : 'pt-3 pb-0'"
v-for="(warning, index) in warnings"
v-bind:key="warning"
>
v-bind:key="warning">
<v-divider class="my-2" v-if="index"></v-divider>
<p class="orange--text mb-0">{{ warning }}</p>
</v-card-text>
<v-divider class="mt-3"></v-divider>
<v-card-actions class="justify-start">
<v-btn small :href="apiUrl + '/server/files/moonraker.log'" target="_blank" class="ml-2 primary--text"
><v-icon class="mr-2" small>mdi-download</v-icon
>{{ $t('Panels.MoonrakerStatePanel.DownloadLog') }}</v-btn
>
<v-btn small :href="apiUrl + '/server/files/moonraker.log'" target="_blank" class="ml-2 primary--text">
<v-icon class="mr-2" small>mdi-download</v-icon>
{{ $t('Panels.MoonrakerStatePanel.DownloadLog') }}
</v-btn>
</v-card-actions>
</panel>
</template>
+11 -10
View File
@@ -6,7 +6,8 @@
<v-toolbar flat dense>
<v-toolbar-title>
<span class="subheading">
<v-icon class="mdi mdi-power" left></v-icon>{{ $t('Panels.PowerControlPanel.PowerControl') }}
<v-icon class="mdi mdi-power" left></v-icon>
{{ $t('Panels.PowerControlPanel.PowerControl') }}
</span>
</v-toolbar-title>
</v-toolbar>
@@ -18,23 +19,23 @@
<v-col class="py-0 pt-1">{{ device.device }}</v-col>
<v-col class="py-0 text-right">
<v-btn-toggle v-model="device.status">
<v-btn small v-if="device.status === 'error'" disabled>{{
$t('Panels.PowerControlPanel.Error')
}}</v-btn>
<v-btn small v-if="device.status === 'error'" disabled>
{{ $t('Panels.PowerControlPanel.Error') }}
</v-btn>
<v-btn
small
v-if="device.status !== 'error'"
:disabled="device.status === 'on'"
@click="setPower(device, 1)"
>{{ $t('Panels.PowerControlPanel.On') }}</v-btn
>
@click="setPower(device, 1)">
{{ $t('Panels.PowerControlPanel.On') }}
</v-btn>
<v-btn
small
v-if="device.status !== 'error'"
:disabled="device.status === 'off'"
@click="setPower(device, 0)"
>{{ $t('Panels.PowerControlPanel.Off') }}</v-btn
>
@click="setPower(device, 0)">
{{ $t('Panels.PowerControlPanel.Off') }}
</v-btn>
</v-btn-toggle>
</v-col>
</v-row>
+3 -8
View File
@@ -6,8 +6,7 @@
icon="mdi-printer-3d"
:title="$t('Panels.PrintsettingsPanel.Headline')"
:collapsible="true"
card-class="printsettings-panel"
>
card-class="printsettings-panel">
<tool-slider
:label="$t('Panels.PrintsettingsPanel.SpeedFactor')"
icon="mdi-speedometer"
@@ -17,9 +16,7 @@
:step="5"
:dynamic-range="true"
command="M220"
attribute-name="S"
>
</tool-slider>
attribute-name="S"></tool-slider>
<template v-if="existsExtruder">
<v-divider></v-divider>
<tool-slider
@@ -30,9 +27,7 @@
:multi="100"
:step="1"
command="M221"
attribute-name="S"
>
</tool-slider>
attribute-name="S"></tool-slider>
</template>
</panel>
</template>
+112 -115
View File
@@ -16,8 +16,7 @@
icon="mdi-information"
:title="printerStateOutput"
:collapsible="true"
card-class="status-panel"
>
card-class="status-panel">
<template v-slot:icon>
<v-progress-circular
:rotate="-90"
@@ -26,9 +25,7 @@
:value="printPercent"
color="primary"
class="mr-3"
v-if="['paused', 'printing'].includes(printer_state)"
>
</v-progress-circular>
v-if="['paused', 'printing'].includes(printer_state)"></v-progress-circular>
</template>
<template v-slot:buttons>
<v-btn
@@ -38,8 +35,7 @@
@click="button.click"
:loading="loadings.includes(button.loadingName)"
icon
tile
>
tile>
<v-tooltip top>
<template v-slot:activator="{ on, attrs }">
<v-icon v-bind="attrs" v-on="on">{{ button.icon }}</v-icon>
@@ -57,18 +53,16 @@
ref="bigThumbnail"
height="200"
@focus="focusBigThumbnail"
@blur="blurBigThumbnail"
>
@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)"
>
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
>
<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>
@@ -76,21 +70,20 @@
</template>
<status-panel-exclude-object
:show-dialog.sync="boolShowObjects"
@update:showDialog="updateShowDialog"
></status-panel-exclude-object>
@update:showDialog="updateShowDialog"></status-panel-exclude-object>
<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
>
<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-icon class="text--disabled cursor-pointer" @click="clearDisplayMessage" small>
mdi-close-circle
</v-icon>
</v-col>
</v-row>
</v-container>
@@ -101,11 +94,11 @@
<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
>
: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">
@@ -118,13 +111,11 @@
width="32"
height="32"
v-bind="attrs"
v-on="on"
/>
v-on="on" />
<v-progress-circular
slot="preloader"
indeterminate
color="primary"
></v-progress-circular>
color="primary"></v-progress-circular>
<v-icon slot="error">mdi-file</v-icon>
</vue-load-image>
</template>
@@ -137,8 +128,7 @@
<v-progress-circular
slot="preloader"
indeterminate
color="primary"
></v-progress-circular>
color="primary"></v-progress-circular>
<v-icon slot="error">mdi-file</v-icon>
</vue-load-image>
</template>
@@ -155,29 +145,28 @@
? 'pt-5 pb-2 mb-0'
: 'py-5')
"
align="center"
>
align="center">
<v-col class="col-3 pa-0">
<strong>{{ $t('Panels.StatusPanel.Position') }}</strong
><br />
<strong>{{ $t('Panels.StatusPanel.Position') }}</strong>
<br />
{{ coordinates }}
</v-col>
<v-col class="col-3 pa-0">
<strong>{{ $t('Panels.StatusPanel.X') }}</strong
><br />
<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 />
<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 />
<strong>{{ $t('Panels.StatusPanel.Z') }}</strong>
<br />
{{ positions.z }}
</div>
</template>
@@ -195,20 +184,19 @@
<v-tooltip top>
<template v-slot:activator="{ on, attrs }">
<div v-bind="attrs" v-on="on">
<strong>{{ $t('Panels.StatusPanel.Speed') }}</strong
><br />
<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
>
<span>
{{ $t('Panels.StatusPanel.Requested') }}: {{ requested_speed + ' mm/s' }}
</span>
</v-tooltip>
</template>
<template v-else>
<strong>{{ $t('Panels.StatusPanel.Speed') }}</strong
><br />
<strong>{{ $t('Panels.StatusPanel.Speed') }}</strong>
<br />
<span class="text-no-wrap">{{ requested_speed }} mm/s</span>
</template>
</v-col>
@@ -216,34 +204,36 @@
<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>
<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
>
<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>
<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) }} /
<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>
@@ -253,15 +243,14 @@
<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 />
<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
>
<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>
@@ -273,42 +262,44 @@
<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>
<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 />
{{ 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.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>
<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 />
{{ print_time ? formatTime(print_time) : '--' }}
<br />
{{ $t('Panels.StatusPanel.Difference') }}:
{{
print_time && print_time_total
@@ -319,8 +310,8 @@
</v-tooltip>
</v-col>
<v-col class="col-3 pa-0">
<strong>{{ $t('Panels.StatusPanel.ETA') }}</strong
><br />
<strong>{{ $t('Panels.StatusPanel.ETA') }}</strong>
<br />
<span class="text-no-wrap">{{ eta ? formatDateTime(eta) : '--' }}</span>
</v-col>
</v-row>
@@ -331,32 +322,38 @@
<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>
<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>
<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 />
<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>
<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>
@@ -6,8 +6,8 @@
<div class="d-flex flex-row flex-nowrap justify-space-between">
<div class="py-2" style="width: calc(100% - 25px)">
<span class="subtitle-2 d-block px-0 text--disabled text-truncate">
<v-icon class="mr-2" small>mdi-printer-3d-nozzle</v-icon
>{{ current_object !== null ? current_object : '--' }}
<v-icon class="mr-2" small>mdi-printer-3d-nozzle</v-icon>
{{ current_object !== null ? current_object : '--' }}
</span>
</div>
<div class="py-2 pl-0">
@@ -15,9 +15,9 @@
class="text--disabled cursor-pointer"
@click="openCancelObjectDialog(current_object)"
small
v-if="current_object !== null"
>mdi-selection-remove</v-icon
>
v-if="current_object !== null">
mdi-selection-remove
</v-icon>
</div>
</div>
</v-container>
@@ -26,23 +26,23 @@
<v-card>
<v-toolbar flat dense>
<v-toolbar-title>
<span class="subheading"
><v-icon left>mdi-selection-remove</v-icon
>{{ $t('Panels.StatusPanel.ExcludeObject.ExcludeObjectHeadline') }}</span
>
<span class="subheading">
<v-icon left>mdi-selection-remove</v-icon>
{{ $t('Panels.StatusPanel.ExcludeObject.ExcludeObjectHeadline') }}
</span>
</v-toolbar-title>
</v-toolbar>
<v-card-text class="mt-3">{{
$t('Panels.StatusPanel.ExcludeObject.ExcludeObjectText', { name: excludeObjectDialogName })
}}</v-card-text>
<v-card-text class="mt-3">
{{ $t('Panels.StatusPanel.ExcludeObject.ExcludeObjectText', { name: excludeObjectDialogName }) }}
</v-card-text>
<v-card-actions>
<v-spacer></v-spacer>
<v-btn text @click="boolShowExcludeObjectDialog = false">{{
$t('Panels.StatusPanel.ExcludeObject.Cancel')
}}</v-btn>
<v-btn color="primary" text @click="cancelObject">{{
$t('Panels.StatusPanel.ExcludeObject.ExcludeObject')
}}</v-btn>
<v-btn text @click="boolShowExcludeObjectDialog = false">
{{ $t('Panels.StatusPanel.ExcludeObject.Cancel') }}
</v-btn>
<v-btn color="primary" text @click="cancelObject">
{{ $t('Panels.StatusPanel.ExcludeObject.ExcludeObject') }}
</v-btn>
</v-card-actions>
</v-card>
</v-dialog>
@@ -51,8 +51,7 @@
:exclude-object-dialog-name.sync="excludeObjectDialogName"
@update:name="updateExcludeObjectDialogName"
:exclude-object-dialog-bool.sync="boolShowExcludeObjectDialog"
@update:bool="updateExcludeObjectDialogBool"
></status-panel-exclude-object-dialog>
@update:bool="updateExcludeObjectDialogBool"></status-panel-exclude-object-dialog>
</div>
</template>
@@ -7,8 +7,7 @@
:title="$t('Panels.StatusPanel.ExcludeObject.ExcludeObject')"
icon="mdi-selection-remove"
card-class="exclude-object-dialog"
:margin-bottom="false"
>
:margin-bottom="false">
<template v-slot:buttons>
<v-btn icon tile @click="hideDialog"><v-icon>mdi-close-thick</v-icon></v-btn>
</template>
@@ -18,8 +17,7 @@
<status-panel-exclude-object-dialog-map
:hover-name="hoverName"
@update:name="updateExcludeObjectDialogName"
@update:bool="updateExcludeObjectDialogBool"
></status-panel-exclude-object-dialog-map>
@update:bool="updateExcludeObjectDialogBool"></status-panel-exclude-object-dialog-map>
</v-col>
<v-col class="col-12 col-sm-6 pt-0 pt-sm-3">
<status-panel-exclude-object-dialog-list
@@ -28,8 +26,7 @@
@update:hoverName="updateHoverObjectDialogName"
:exclude-object-dialog-bool.sync="excludeObjectDialogBool"
@update:bool="updateExcludeObjectDialogBool"
:hover-name="hoverName"
></status-panel-exclude-object-dialog-list>
:hover-name="hoverName"></status-panel-exclude-object-dialog-list>
</v-col>
</v-row>
</v-container>
@@ -8,27 +8,25 @@
class="py-3 d-flex"
@click="mouseOverObject(object.name)"
@mouseover="mouseOverObject(object.name)"
@mouseleave="mouseOverObject('')"
>
@mouseleave="mouseOverObject('')">
<v-col
:class="
'py-2 subtitle-2 text-truncate ' +
(hoverName === object.name ? 'text--white' : 'text--disabled')
"
>
">
{{ object.name }}
</v-col>
<v-col class="col-auto py-2">
<v-chip pill small class="text--disabled" v-if="excluded_objects.includes(object.name)">{{
$t('Panels.StatusPanel.ExcludeObject.Excluded')
}}</v-chip>
<v-chip pill small class="text--disabled" v-if="excluded_objects.includes(object.name)">
{{ $t('Panels.StatusPanel.ExcludeObject.Excluded') }}
</v-chip>
<v-icon
class="text--disabled cursor-pointer"
@click="openExcludeObjectDialog(object.name)"
small
v-else
>mdi-close-circle</v-icon
>
v-else>
mdi-close-circle
</v-icon>
</v-col>
</v-row>
<v-divider v-bind:key="'divider_' + object.name"></v-divider>
@@ -36,8 +36,7 @@ svg {
xmlns="http://www.w3.org/2000/svg"
xmlns:xlink="http://www.w3.org/1999/xlink"
:viewBox="viewBox"
xml:space="preserve"
>
xml:space="preserve">
<defs>
<marker id="arrowhead" markerWidth="5" markerHeight="4" refX="2" refY="2" orient="auto">
<polygon points="0 0, 5 2, 0 4" :fill="coordinationCrossColor" />
@@ -50,8 +49,7 @@ svg {
:y2="convertY(1)"
:stroke="coordinationCrossColor"
stroke-width="2"
marker-end="url(#arrowhead)"
/>
marker-end="url(#arrowhead)" />
<line
:x1="convertX(1)"
:y1="convertY(0)"
@@ -59,8 +57,7 @@ svg {
:y2="convertY(stepperYmax / 4)"
:stroke="coordinationCrossColor"
stroke-width="2"
marker-end="url(#arrowhead)"
/>
marker-end="url(#arrowhead)" />
<g>
<line
v-for="x in xStripes"
@@ -71,8 +68,7 @@ svg {
:y2="convertY(stepperYmax)"
:stroke="coordinationCrossColor"
:stroke-opacity="0.25"
stroke-width="1"
/>
stroke-width="1" />
<line
v-for="y in yStripes"
v-bind:key="'yLines' + y"
@@ -82,8 +78,7 @@ svg {
:y2="convertY(y)"
:stroke="coordinationCrossColor"
:stroke-opacity="0.25"
stroke-width="1"
/>
stroke-width="1" />
</g>
<g v-for="(object, index) in printing_objects" v-bind:key="index">
@@ -102,8 +97,7 @@ svg {
"
@mouseover="showObjectTooltip(object.name)"
@mouseout="hideObjectTooltip"
@click="openExcludeObjectDialog(object.name)"
/>
@click="openExcludeObjectDialog(object.name)" />
</g>
</svg>
</div>
@@ -17,8 +17,7 @@
<panel
:title="$t('Timelapse.TimelapseFiles')"
icon="mdi-file-document-multiple-outline"
card-class="timelapse-files-panel"
>
card-class="timelapse-files-panel">
<v-card-text>
<v-row>
<v-col class="col-12 d-flex align-center">
@@ -31,43 +30,45 @@
clearable
hide-details
dense
style="max-width: 300px"
></v-text-field>
style="max-width: 300px"></v-text-field>
<v-spacer></v-spacer>
<v-btn
v-if="this.directoryPermissions.includes('w')"
@click="createDirectory"
:title="$t('Timelapse.CreateNewDirectory')"
class="px-2 minwidth-0 ml-3"
><v-icon>mdi-folder-plus</v-icon></v-btn
>
class="px-2 minwidth-0 ml-3">
<v-icon>mdi-folder-plus</v-icon>
</v-btn>
<v-btn
@click="refreshFileList"
:title="$t('Timelapse.RefreshCurrentDirectory')"
class="px-2 minwidth-0 ml-3"
><v-icon>mdi-refresh</v-icon></v-btn
>
class="px-2 minwidth-0 ml-3">
<v-icon>mdi-refresh</v-icon>
</v-btn>
</v-col>
</v-row>
</v-card-text>
<v-card-text>
<v-row>
<v-col class="col-12 py-2 d-flex align-center">
<span
><b>{{ $t('Timelapse.CurrentPath') }}:</b>
{{ this.currentPath !== 'timelapse' ? '/' + this.currentPath.substring(10) : '/' }}</span
>
<span>
<b>{{ $t('Timelapse.CurrentPath') }}:</b>
{{ this.currentPath !== 'timelapse' ? '/' + this.currentPath.substring(10) : '/' }}
</span>
<v-spacer></v-spacer>
<template v-if="this.disk_usage !== null">
<v-tooltip top>
<template v-slot:activator="{ on, attrs }">
<span v-bind="attrs" v-on="on">
<b>{{ $t('Timelapse.FreeDisk') }}:</b> {{ formatFilesize(disk_usage.free) }}
<b>{{ $t('Timelapse.FreeDisk') }}:</b>
{{ formatFilesize(disk_usage.free) }}
</span>
</template>
<span>
{{ $t('Timelapse.Used') }}: {{ formatFilesize(this.disk_usage.used) }}<br />
{{ $t('Timelapse.Free') }}: {{ formatFilesize(this.disk_usage.free) }}<br />
{{ $t('Timelapse.Used') }}: {{ formatFilesize(this.disk_usage.used) }}
<br />
{{ $t('Timelapse.Free') }}: {{ formatFilesize(this.disk_usage.free) }}
<br />
{{ $t('Timelapse.Total') }}: {{ formatFilesize(this.disk_usage.total) }}
</span>
</v-tooltip>
@@ -92,8 +93,7 @@
item-key="name"
:search="search"
:custom-filter="advancedSearch"
mobile-breakpoint="0"
>
mobile-breakpoint="0">
<template slot="items">
<td v-for="header in headers" v-bind:key="header.value">{{ header.text }}</td>
</template>
@@ -115,8 +115,7 @@
v-longpress:600="(e) => showContextMenu(e, item)"
@contextmenu="showContextMenu($event, item)"
@click="clickRow(item)"
class="file-list-cursor user-select-none"
>
class="file-list-cursor user-select-none">
<td class="pr-0 text-center" style="width: 32px">
<template v-if="item.isDirectory">
<v-icon>mdi-folder</v-icon>
@@ -128,8 +127,7 @@
<v-tooltip
v-if="!item.isDirectory && getThumbnail(item)"
top
content-class="tooltip__content-opacity1"
>
content-class="tooltip__content-opacity1">
<template v-slot:activator="{ on, attrs }">
<vue-load-image>
<img
@@ -138,13 +136,11 @@
:alt="item.filename"
width="32"
v-bind="attrs"
v-on="on"
/>
v-on="on" />
<v-progress-circular
slot="preloader"
indeterminate
color="primary"
></v-progress-circular>
color="primary"></v-progress-circular>
<v-icon slot="error">mdi-file</v-icon>
</vue-load-image>
</template>
@@ -158,8 +154,7 @@
<td class=" ">{{ item.filename }}</td>
<td
class="text-no-wrap text-right"
v-if="headers.find((header) => header.value === 'size').visible"
>
v-if="headers.find((header) => header.value === 'size').visible">
{{ item.isDirectory ? '--' : formatFilesize(item.size) }}
</td>
<td class="text-right" v-if="headers.find((header) => header.value === 'modified').visible">
@@ -172,31 +167,32 @@
<v-menu v-model="contextMenu.shown" :position-x="contextMenu.x" :position-y="contextMenu.y" absolute offset-y>
<v-list>
<v-list-item @click="downloadFile(contextMenu.item.filename)" v-if="!contextMenu.item.isDirectory">
<v-icon left>mdi-cloud-download</v-icon> {{ $t('Timelapse.Download') }}
<v-icon left>mdi-cloud-download</v-icon>
{{ $t('Timelapse.Download') }}
</v-list-item>
<v-list-item
@click="renameDirectory(contextMenu.item)"
v-if="contextMenu.item.isDirectory && contextMenu.item.permissions.includes('w')"
>
<v-icon left>mdi-rename-box</v-icon> {{ $t('Timelapse.Rename') }}
v-if="contextMenu.item.isDirectory && contextMenu.item.permissions.includes('w')">
<v-icon left>mdi-rename-box</v-icon>
{{ $t('Timelapse.Rename') }}
</v-list-item>
<v-list-item
@click="renameFile(contextMenu.item)"
v-if="!contextMenu.item.isDirectory && contextMenu.item.permissions.includes('w')"
>
<v-icon left>mdi-rename-box</v-icon> {{ $t('Timelapse.Rename') }}
v-if="!contextMenu.item.isDirectory && contextMenu.item.permissions.includes('w')">
<v-icon left>mdi-rename-box</v-icon>
{{ $t('Timelapse.Rename') }}
</v-list-item>
<v-list-item
@click="removeFile"
v-if="!contextMenu.item.isDirectory && contextMenu.item.permissions.includes('w')"
>
<v-icon left>mdi-delete</v-icon> {{ $t('Timelapse.Delete') }}
v-if="!contextMenu.item.isDirectory && contextMenu.item.permissions.includes('w')">
<v-icon left>mdi-delete</v-icon>
{{ $t('Timelapse.Delete') }}
</v-list-item>
<v-list-item
@click="deleteDirectory(contextMenu.item)"
v-if="contextMenu.item.isDirectory && contextMenu.item.permissions.includes('w')"
>
<v-icon left>mdi-delete</v-icon> {{ $t('Timelapse.Delete') }}
v-if="contextMenu.item.isDirectory && contextMenu.item.permissions.includes('w')">
<v-icon left>mdi-delete</v-icon>
{{ $t('Timelapse.Delete') }}
</v-list-item>
</v-list>
</v-menu>
@@ -204,8 +200,7 @@
<panel
:title="$t('Timelapse.RenameFile')"
card-class="gcode-files-rename-file-dialog"
:margin-bottom="false"
>
:margin-bottom="false">
<template v-slot:buttons>
<v-btn icon tile @click="dialogRenameFile.show = false"><v-icon>mdi-close-thick</v-icon></v-btn>
</template>
@@ -215,8 +210,7 @@
:label="$t('Timelapse.Name')"
ref="inputFieldRenameFile"
@keypress.enter="renameFileAction"
required
></v-text-field>
required></v-text-field>
</v-card-text>
<v-card-actions>
<v-spacer></v-spacer>
@@ -229,12 +223,11 @@
<panel
:title="$t('Timelapse.NewDirectory')"
card-class="gcode-files-new-directory-dialog"
:margin-bottom="false"
>
:margin-bottom="false">
<template v-slot:buttons>
<v-btn icon tile @click="dialogCreateDirectory.show = false"
><v-icon>mdi-close-thick</v-icon></v-btn
>
<v-btn icon tile @click="dialogCreateDirectory.show = false">
<v-icon>mdi-close-thick</v-icon>
</v-btn>
</template>
<v-card-text>
<v-text-field
@@ -243,14 +236,13 @@
@keypress.enter="createDirectoryAction"
:label="$t('Timelapse.Name')"
:rules="input_rules"
required
></v-text-field>
required></v-text-field>
</v-card-text>
<v-card-actions>
<v-spacer></v-spacer>
<v-btn color="" text @click="dialogCreateDirectory.show = false">{{
$t('Timelapse.Cancel')
}}</v-btn>
<v-btn color="" text @click="dialogCreateDirectory.show = false">
{{ $t('Timelapse.Cancel') }}
</v-btn>
<v-btn color="primary" text @click="createDirectoryAction">{{ $t('Timelapse.Create') }}</v-btn>
</v-card-actions>
</panel>
@@ -259,12 +251,11 @@
<panel
:title="$t('Timelapse.RenameDirectory')"
card-class="gcode-files-rename-directory-dialog"
:margin-bottom="false"
>
:margin-bottom="false">
<template v-slot:buttons>
<v-btn icon tile @click="dialogRenameDirectory.show = false"
><v-icon>mdi-close-thick</v-icon></v-btn
>
<v-btn icon tile @click="dialogRenameDirectory.show = false">
<v-icon>mdi-close-thick</v-icon>
</v-btn>
</template>
<v-card-text>
<v-text-field
@@ -272,14 +263,13 @@
ref="inputFieldRenameDirectory"
:label="$t('Timelapse.Name')"
@keyup.enter="renameDirectoryAction"
required
></v-text-field>
required></v-text-field>
</v-card-text>
<v-card-actions>
<v-spacer></v-spacer>
<v-btn color="" text @click="dialogRenameDirectory.show = false">{{
$t('Timelapse.Cancel')
}}</v-btn>
<v-btn color="" text @click="dialogRenameDirectory.show = false">
{{ $t('Timelapse.Cancel') }}
</v-btn>
<v-btn color="primary" text @click="renameDirectoryAction">{{ $t('Timelapse.Rename') }}</v-btn>
</v-card-actions>
</panel>
@@ -288,12 +278,11 @@
<panel
:title="$t('Timelapse.DeleteDirectory')"
card-class="gcode-files-delete-directory-dialog"
:margin-bottom="false"
>
:margin-bottom="false">
<template v-slot:buttons>
<v-btn icon tile @click="dialogDeleteDirectory.show = false"
><v-icon>mdi-close-thick</v-icon></v-btn
>
<v-btn icon tile @click="dialogDeleteDirectory.show = false">
<v-icon>mdi-close-thick</v-icon>
</v-btn>
</template>
<v-card-text>
<p class="mb-0">
@@ -302,9 +291,9 @@
</v-card-text>
<v-card-actions>
<v-spacer></v-spacer>
<v-btn color="" text @click="dialogDeleteDirectory.show = false">{{
$t('Timelapse.Cancel')
}}</v-btn>
<v-btn color="" text @click="dialogDeleteDirectory.show = false">
{{ $t('Timelapse.Cancel') }}
</v-btn>
<v-btn color="error" text @click="deleteDirectoryAction">{{ $t('Timelapse.Delete') }}</v-btn>
</v-card-actions>
</panel>
@@ -314,8 +303,7 @@
:title="$t('Timelapse.Video')"
icon="mdi-file-video"
card-class="timelapse-video-dialog"
:margin-bottom="false"
>
:margin-bottom="false">
<template v-slot:buttons>
<v-btn icon tile @click="boolVideoDialog = false"><v-icon>mdi-close-thick</v-icon></v-btn>
</template>
@@ -325,8 +313,7 @@
<video
:src="this.apiUrl + '/server/files/' + videoDialogFilename"
controls
style="width: 100%"
>
style="width: 100%">
Sorry, your browser doesn't support embedded videos, but don't worry, you can
<a :href="this.apiUrl + '/server/files/' + videoDialogFilename">download it</a>
and watch it with your favorite video player!
@@ -339,9 +326,9 @@
text
color="primary"
:href="this.apiUrl + '/server/files/' + videoDialogFilename"
target="_blank"
>{{ $t('Timelapse.Download') }}</v-btn
>
target="_blank">
{{ $t('Timelapse.Download') }}
</v-btn>
</v-col>
</v-row>
</v-card-text>
@@ -5,9 +5,10 @@
<v-card class="mb-3">
<v-toolbar flat dense>
<v-toolbar-title>
<span class="subheading align-baseline"
><v-icon left>mdi-information</v-icon>{{ $t('Timelapse.Status') }}</span
>
<span class="subheading align-baseline">
<v-icon left>mdi-information</v-icon>
{{ $t('Timelapse.Status') }}
</span>
</v-toolbar-title>
</v-toolbar>
<v-row no-gutters>
@@ -21,13 +22,11 @@
:src="frameUrl"
:alt="$t('Timelapse.Preview')"
class="w-100"
:style="webcamStyle"
/>
:style="webcamStyle" />
<v-progress-circular
slot="preloader"
indeterminate
color="primary"
></v-progress-circular>
color="primary"></v-progress-circular>
<v-icon slot="error">mdi-file</v-icon>
</vue-load-image>
</v-col>
@@ -37,8 +36,7 @@
<v-col
class="col-12 col-sm-6 col-md-12 pt-3 pt-md-0 text--secondary"
align-self="center"
v-if="framesCount > 0"
>
v-if="framesCount > 0">
<v-card-text :class="framesCount ? 'pt-0' : ''">
<template v-if="framesCount > 0">
<settings-row :title="$t('Timelapse.Frames')">
@@ -69,16 +67,16 @@
text
color="primary"
:disabled="disableRenderButton"
@click="boolDialogRendersettings = true"
>{{ $t('Timelapse.Render') }}</v-btn
>
@click="boolDialogRendersettings = true">
{{ $t('Timelapse.Render') }}
</v-btn>
<v-btn
text
color="primary"
@click="saveFrames"
:loading="loadings.includes('timelapse_saveframes')"
>{{ $t('Timelapse.SaveFrames') }}</v-btn
>
:loading="loadings.includes('timelapse_saveframes')">
{{ $t('Timelapse.SaveFrames') }}
</v-btn>
</v-col>
</v-row>
</template>
@@ -96,8 +94,7 @@
:title="$t('Timelapse.RenderSettings')"
icon="mdi-text-box-search-outline"
card-class="timelapse-rendersettings-dialog"
:margin-bottom="false"
>
:margin-bottom="false">
<template v-slot:buttons>
<v-btn icon @click="boolDialogRendersettings = false"><v-icon>mdi-close-thick</v-icon></v-btn>
</template>
@@ -111,8 +108,7 @@
outlined
dense
hide-details
attach
></v-select>
attach></v-select>
</v-col>
<v-col class="col-4">
<template v-if="variable_fps">
@@ -123,8 +119,7 @@
outlined
dense
hide-details
hide-spin-buttons
></v-text-field>
hide-spin-buttons></v-text-field>
<v-text-field
:label="$t('Timelapse.MaxFramerate')"
v-model="variable_fps_max"
@@ -133,8 +128,7 @@
dense
hide-details
hide-spin-buttons
class="mt-3"
></v-text-field>
class="mt-3"></v-text-field>
<v-text-field
:label="$t('Timelapse.Targetlength')"
v-model="targetlength"
@@ -143,8 +137,7 @@
dense
hide-details
hide-spin-buttons
class="mt-3"
></v-text-field>
class="mt-3"></v-text-field>
</template>
<template v-else>
<v-text-field
@@ -154,8 +147,7 @@
outlined
dense
hide-details
hide-spin-buttons
></v-text-field>
hide-spin-buttons></v-text-field>
</template>
<v-text-field
:label="$t('Timelapse.DuplicateLastframe')"
@@ -165,8 +157,7 @@
dense
hide-details
hide-spin-buttons
class="mt-3"
></v-text-field>
class="mt-3"></v-text-field>
</v-col>
<v-col class="col-4">
<template v-if="variable_fps">
@@ -178,8 +169,7 @@
dense
hide-details
readonly
class="mb-3"
></v-text-field>
class="mb-3"></v-text-field>
</template>
<v-text-field
:label="$t('Timelapse.EstimatedLength')"
@@ -187,8 +177,7 @@
outlined
dense
hide-details
readonly
></v-text-field>
readonly></v-text-field>
</v-col>
</v-row>
</v-card-text>
+80 -97
View File
@@ -27,8 +27,7 @@
icon="mdi-thermometer-lines"
:title="$t('Panels.ToolsPanel.Headline')"
:collapsible="true"
card-class="tools-panel"
>
card-class="tools-panel">
<template v-slot:buttons>
<v-menu :offset-y="true" title="Preheat" v-if="presets.length">
<template v-slot:activator="{ on, attrs }">
@@ -39,8 +38,7 @@
v-bind="attrs"
v-on="on"
:disabled="['printing', 'paused'].includes(printer_state)"
class="pa-1"
>
class="pa-1">
<span class="d-none ml-1 d-md-block">{{ $t('Panels.ToolsPanel.Presets') }}</span>
<v-icon class="d-md-none">mdi-fire</v-icon>
<v-icon>mdi-menu-down</v-icon>
@@ -63,9 +61,9 @@
<v-icon small color="primary">mdi-snowflake</v-icon>
</v-list-item-icon>
<v-list-item-content>
<v-list-item-title class="primary--text">{{
$t('Panels.ToolsPanel.Cooldown')
}}</v-list-item-title>
<v-list-item-title class="primary--text">
{{ $t('Panels.ToolsPanel.Cooldown') }}
</v-list-item-title>
</v-list-item-content>
</v-list-item>
</v-list>
@@ -76,10 +74,9 @@
tile
@click="cooldown()"
v-if="presets.length === 0"
color="primary"
>
<v-icon small>mdi-snowflake</v-icon
><span class="d-none ml-1 d-md-inline">{{ $t('Panels.ToolsPanel.Cooldown') }}</span>
color="primary">
<v-icon small>mdi-snowflake</v-icon>
<span class="d-none ml-1 d-md-inline">{{ $t('Panels.ToolsPanel.Cooldown') }}</span>
</v-btn>
<v-menu :offset-y="true" :close-on-content-click="false" :title="$t('Panels.ToolsPanel.SetupTemperatures')">
<template v-slot:activator="{ on, attrs }">
@@ -91,16 +88,14 @@
class="mt-0"
v-model="boolTempchart"
hide-details
:label="$t('Panels.ToolsPanel.ShowChart')"
></v-checkbox>
:label="$t('Panels.ToolsPanel.ShowChart')"></v-checkbox>
</v-list-item>
<v-list-item class="minHeight36">
<v-checkbox
class="mt-0"
v-model="autoscaleTempchart"
hide-details
:label="$t('Panels.ToolsPanel.AutoscaleChart')"
></v-checkbox>
:label="$t('Panels.ToolsPanel.AutoscaleChart')"></v-checkbox>
</v-list-item>
</v-list>
</v-menu>
@@ -108,18 +103,18 @@
<v-card-text class="pa-0 content">
<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 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-md-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-md-block">{{
$t('Panels.ToolsPanel.State')
}}</v-col>
style="min-width: 75px">
{{ $t('Panels.ToolsPanel.Color') }}
</v-col>
<v-col class="py-2 text-center font-weight-bold d-none d-md-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>
</v-row>
@@ -129,28 +124,26 @@
<v-col class="pl-8 pr-0 flex-grow-0 py-2 colHeaterIcons">
<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 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-md-block"
v-if="boolTempchart"
style="min-width: 75px"
>
style="min-width: 75px">
<div
:style="'background-color: ' + heater.chartColor + 'cc;'"
class="datasetColorSymbol d-inline-block"
@click="openHeater(heater)"
></div>
@click="openHeater(heater)"></div>
</v-col>
<v-col class="py-2 text-center d-none d-md-block">
<v-tooltip top>
<template v-slot:activator="{ on, attrs }">
<small v-bind="attrs" v-on="on">{{
heater.target > 0 ? heater.power + '%' : 'off'
}}</small>
<small v-bind="attrs" v-on="on">
{{ heater.target > 0 ? heater.power + '%' : 'off' }}
</small>
</template>
<span>{{ $t('Panels.ToolsPanel.Avg') }}: {{ heater.avgPower + '%' }}</span>
</v-tooltip>
@@ -158,9 +151,9 @@
<v-col class="py-2 text-center">
<span class="d-block">{{ heater.temperature.toFixed(1) }}°C</span>
<div v-for="(values, key) of heater.additionSensors" v-bind:key="key">
<span v-if="values.bool" class="d-block"
><small>{{ values.value }} {{ values.unit }}</small></span
>
<span v-if="values.bool" class="d-block">
<small>{{ values.value }} {{ values.unit }}</small>
</span>
</div>
</v-col>
<v-col class="text-center py-2 pr-8 vertical_align_center">
@@ -171,8 +164,7 @@
:max_temp="heater.max_temp"
:items="heater.presets"
command="SET_HEATER_TEMPERATURE"
attribute-name="HEATER"
></tool-input>
attribute-name="HEATER"></tool-input>
</v-col>
</v-row>
</div>
@@ -182,36 +174,34 @@
<v-col class="flex-grow-0 py-2 pl-8 pr-0 colHeaterIcons">
<v-icon
:color="fan.target ? 'grey lighten-5' : 'grey darken-2'"
:class="fan.speed ? ' icon-rotate' : ''"
>mdi-fan</v-icon
>
: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 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-md-block"
v-if="boolTempchart"
style="min-width: 75px"
>
style="min-width: 75px">
<div
:style="'background-color: ' + fan.chartColor + 'cc;'"
class="datasetColorSymbol d-inline-block"
@click="openHeater(fan)"
></div>
@click="openHeater(fan)"></div>
</v-col>
<v-col class="py-2 text-center d-none d-md-block">
<v-tooltip top>
<template v-slot:activator="{ on, attrs }">
<small class="d-block" v-bind="attrs" v-on="on">{{
fan.target > 0 && fan.speed > 0
? fan.speed + '%'
: fan.target > 0
? 'standby'
: 'off'
}}</small>
<small class="d-block" v-bind="attrs" v-on="on">
{{
fan.target > 0 && fan.speed > 0
? fan.speed + '%'
: fan.target > 0
? 'standby'
: 'off'
}}
</small>
</template>
<span>{{ $t('Panels.ToolsPanel.Avg') }}: {{ fan.avgSpeed + '%' }}</span>
</v-tooltip>
@@ -219,15 +209,15 @@
<v-col class="py-2 text-center">
<span class="d-block">{{ fan.temperature.toFixed(1) }}°C</span>
<div v-for="(values, key) of fan.additionSensors" v-bind:key="key">
<span v-if="values.bool" class="d-block"
><small>{{ values.value }} {{ values.unit }}</small></span
>
<span v-if="values.bool" class="d-block">
<small>{{ values.value }} {{ values.unit }}</small>
</span>
</div>
<small
v-if="fan.rpm !== null"
:class="'d-block ' + (fan.rpm === 0 && fan.speed > 0 ? 'red--text' : '')"
>{{ fan.rpm }} RPM</small
>
:class="'d-block ' + (fan.rpm === 0 && fan.speed > 0 ? 'red--text' : '')">
{{ fan.rpm }} RPM
</small>
</v-col>
<v-col class="text-center py-2 pr-8 pr-0 vertical_align_center">
<tool-input
@@ -237,8 +227,7 @@
:max_temp="fan.max_temp"
:items="fan.presets"
command="SET_TEMPERATURE_FAN_TARGET"
attribute-name="temperature_fan"
></tool-input>
attribute-name="temperature_fan"></tool-input>
</v-col>
</v-row>
</div>
@@ -257,44 +246,42 @@
': ' +
sensor.max_temp +
'°'
"
>mdi-{{ sensor.icon }}</v-icon
>
">
mdi-{{ sensor.icon }}
</v-icon>
</v-col>
<v-col class="py-2 font-weight-bold">
<span style="cursor: pointer" @click="openHeater(sensor)">{{
convertName(sensor.name)
}}</span>
<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-md-block"
v-if="boolTempchart"
style="min-width: 75px"
>
style="min-width: 75px">
<div
:style="'background-color: ' + sensor.chartColor + 'CC;'"
class="datasetColorSymbol d-inline-block"
@click="openHeater(sensor)"
></div>
@click="openHeater(sensor)"></div>
</v-col>
<v-col class="py-2 d-none d-md-block"><span>&nbsp;</span></v-col>
<v-col class="py-2 text-center">
<v-tooltip top>
<template v-slot:activator="{ on, attrs }">
<span style="cursor: default" class="d-block px-0" v-bind="attrs" v-on="on"
>{{ sensor.temperature.toFixed(1) }}°C</span
>
<span style="cursor: default" class="d-block px-0" v-bind="attrs" v-on="on">
{{ sensor.temperature.toFixed(1) }}°C
</span>
</template>
<span
>{{ $t('Panels.ToolsPanel.Max') }}: {{ sensor.measured_max_temp }}°C<br />{{
$t('Panels.ToolsPanel.Min')
}}: {{ sensor.measured_min_temp }}°C</span
>
<span>
{{ $t('Panels.ToolsPanel.Max') }}: {{ sensor.measured_max_temp }}°C
<br />
{{ $t('Panels.ToolsPanel.Min') }}: {{ sensor.measured_min_temp }}°C
</span>
</v-tooltip>
<div v-for="(values, key) of sensor.additionSensors" v-bind:key="key">
<span v-if="values.bool" class="d-block"
><small>{{ values.value }} {{ values.unit }}</small></span
>
<span v-if="values.bool" class="d-block">
<small>{{ values.value }} {{ values.unit }}</small>
</span>
</div>
</v-col>
<v-col class="text-center py-2 pr-8 vertical_align_center"><span>&nbsp;</span></v-col>
@@ -313,8 +300,7 @@
:title="convertName(editHeater.name)"
:icon="'mdi-' + editHeater.icon"
card-class="tools-edit-heater-dialog"
:margin-bottom="false"
>
:margin-bottom="false">
<template v-slot:buttons>
<v-btn icon tile @click="editHeater.bool = false"><v-icon>mdi-close-thick</v-icon></v-btn>
</template>
@@ -334,8 +320,7 @@
"
hide-details
class="mt-0"
@change="setVisible(dataset)"
></v-checkbox>
@change="setVisible(dataset)"></v-checkbox>
</v-col>
</v-row>
<v-row v-for="key in Object.keys(editHeater.additionSensors)" v-bind:key="key">
@@ -345,8 +330,7 @@
:label="$t('Panels.ToolsPanel.ShowNameInList', { name: key })"
hide-details
class="mt-0"
@change="setVisibleAdditionalSensor(key)"
></v-checkbox>
@change="setVisibleAdditionalSensor(key)"></v-checkbox>
</v-col>
</v-row>
<v-row>
@@ -356,8 +340,7 @@
mode="hexa"
:value="editHeater.color"
@update:color="setChartColor"
class="mx-auto"
></v-color-picker>
class="mx-auto"></v-color-picker>
</v-col>
</v-row>
</v-card-text>
+2 -4
View File
@@ -6,8 +6,7 @@
icon="mdi-webcam"
:title="$t('Panels.WebcamPanel.Headline')"
:collapsible="this.$route.fullPath !== '/cam'"
card-class="webcam-panel"
>
card-class="webcam-panel">
<template v-slot:buttons v-if="webcams.length > 1">
<v-menu :offset-y="true" title="Webcam">
<template v-slot:activator="{ on, attrs }">
@@ -30,8 +29,7 @@
v-for="webcam of webcams"
v-bind:key="webcam.id"
link
@click="currentCamId = webcam.id"
>
@click="currentCamId = webcam.id">
<v-list-item-icon class="mr-0">
<v-icon small>{{ webcam.icon }}</v-icon>
</v-list-item-icon>
+39 -40
View File
@@ -7,19 +7,18 @@
icon="mdi-arrow-collapse-vertical"
:title="$t('Panels.ZoffsetPanel.Headline')"
:collapsible="true"
card-class="zoffset-panel"
>
card-class="zoffset-panel">
<template v-slot:buttons>
<template v-if="z_gcode_offset !== 0">
<v-btn icon tile @click="clearZOffset()" :loading="loadings.includes('babySteppingClear')"
><v-icon>mdi-broom</v-icon></v-btn
>
<v-btn icon tile @click="clearZOffset()" :loading="loadings.includes('babySteppingClear')">
<v-icon>mdi-broom</v-icon>
</v-btn>
<v-menu offset-y left v-if="existZOffsetApplyProbe && existZOffsetApplyEndstop">
<template v-slot:activator="{ on, attrs }">
<v-btn text tile color="primary" v-bind="attrs" v-on="on" class="pa-1"
><span class="ml-1">{{ $t('Panels.ZoffsetPanel.Save') }}</span
><v-icon>mdi-menu-down</v-icon></v-btn
>
<v-btn text tile color="primary" v-bind="attrs" v-on="on" class="pa-1">
<span class="ml-1">{{ $t('Panels.ZoffsetPanel.Save') }}</span>
<v-icon>mdi-menu-down</v-icon>
</v-btn>
</template>
<v-list dense class="py-0">
<v-list-item link @click="saveZOffsetToEndstop">
@@ -46,18 +45,20 @@
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
>
@click="saveZOffsetToProbe">
<v-icon small class="mr-1">mdi-content-save</v-icon>
{{ $t('Panels.ZoffsetPanel.Save') }}
</v-btn>
<v-btn
text
tile
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
>
@click="saveZOffsetToEndstop">
<v-icon small class="mr-1">mdi-content-save</v-icon>
{{ $t('Panels.ZoffsetPanel.Save') }}
</v-btn>
</template>
</template>
<v-card-text class="px-0 py-0">
@@ -74,44 +75,43 @@
<v-btn-toggle
dense
no-gutters
class="mx-2 mt-3 mt-sm-0 order-last flex-nowrap order-sm-first"
>
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.01<span
class="d-sm-none d-md-inline"
>mm</span
></v-btn
>
:loading="loadings.includes('babySteppingDownFine')">
<v-icon small class="mr-2">mdi-arrow-collapse-down</v-icon>
-0.01
<span class="d-sm-none d-md-inline">mm</span>
</v-btn>
<v-btn
small
@click="sendBabySteppingDown()"
class=""
:loading="loadings.includes('babySteppingDown')"
>-0.05<span class="d-sm-none d-md-inline">mm</span></v-btn
>
:loading="loadings.includes('babySteppingDown')">
-0.05
<span class="d-sm-none d-md-inline">mm</span>
</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.01<span
class="d-sm-none d-md-inline"
>mm</span
></v-btn
>
:loading="loadings.includes('babySteppingUpFine')">
<v-icon small class="mr-2">mdi-arrow-expand-up</v-icon>
+0.01
<span class="d-sm-none d-md-inline">mm</span>
</v-btn>
<v-btn
small
@click="sendBabySteppingUp()"
class=""
:loading="loadings.includes('babySteppingUp')"
>+0.05<span class="d-sm-none d-md-inline">mm</span></v-btn
>
:loading="loadings.includes('babySteppingUp')">
+0.05
<span class="d-sm-none d-md-inline">mm</span>
</v-btn>
</v-btn-toggle>
</v-col>
</v-row>
@@ -123,11 +123,10 @@
:title="$t('Panels.ZoffsetPanel.SaveInfoHeadline')"
icon="mdi-information"
card-class="zoffset-saveinfo-dialog"
:margin-bottom="false"
>
<v-card-text class="mt-3" v-if="printerIsPrinting">{{
$t('Panels.ZoffsetPanel.SaveInfoDescriptionPrint')
}}</v-card-text>
:margin-bottom="false">
<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>
+15 -16
View File
@@ -11,8 +11,7 @@
hide-details
outlined
dense
attach
></v-select>
attach></v-select>
</settings-row>
<v-divider class="my-2"></v-divider>
<settings-row :title="$t('Settings.ConsoleTab.EntryStyle')">
@@ -22,8 +21,7 @@
hide-details
outlined
dense
attach
></v-select>
attach></v-select>
</settings-row>
<v-divider class="my-2"></v-divider>
<settings-row :title="$t('Settings.ConsoleTab.Height')">
@@ -34,8 +32,7 @@
:min="200"
:max="900"
:step="10"
:label="consoleHeightTmp + 'px'"
></v-slider>
:label="consoleHeightTmp + 'px'"></v-slider>
</settings-row>
<v-divider class="my-2"></v-divider>
<settings-row :title="$t('Settings.ConsoleTab.HideTemperatures')" :dynamic-slot-width="true">
@@ -56,20 +53,19 @@
outlined
class="minwidth-0 px-2"
:color="filter.bool ? 'white' : 'grey'"
@click="toggleFilter(filter)"
>
@click="toggleFilter(filter)">
<v-icon small>mdi-{{ filter.bool ? 'filter' : 'filter-off' }}</v-icon>
</v-btn>
<v-btn small outlined class="ml-3" @click="editFilter(filter)">
<v-icon left small>mdi-pencil</v-icon>{{ $t('Settings.Edit') }}
<v-icon left small>mdi-pencil</v-icon>
{{ $t('Settings.Edit') }}
</v-btn>
<v-btn
small
outlined
@click="deleteFilter(filter.id)"
class="ml-3 minwidth-0 px-2"
color="error"
>
color="error">
<v-icon small>mdi-delete</v-icon>
</v-btn>
</settings-row>
@@ -81,9 +77,13 @@
</v-card>
<v-card flat v-else>
<v-form v-model="form.valid" @submit.prevent="saveFilter">
<v-card-title>{{
form.id === null ? $t('Settings.ConsoleTab.CreateHeadline') : $t('Settings.ConsoleTab.EditHeadline')
}}</v-card-title>
<v-card-title>
{{
form.id === null
? $t('Settings.ConsoleTab.CreateHeadline')
: $t('Settings.ConsoleTab.EditHeadline')
}}
</v-card-title>
<v-card-text>
<settings-row :title="$t('Settings.ConsoleTab.Name')">
<v-text-field
@@ -91,8 +91,7 @@
hide-details="auto"
:rules="[rules.required, rules.unique]"
dense
outlined
></v-text-field>
outlined></v-text-field>
</settings-row>
<v-divider class="my-2"></v-divider>
<settings-row :title="$t('Settings.ConsoleTab.Regex')">
+10 -20
View File
@@ -12,8 +12,7 @@
outlined
dense
hide-details
attach
></v-select>
attach></v-select>
</settings-row>
<v-divider class="my-2"></v-divider>
<template v-if="['circle', 'cross'].includes(controlStyle)">
@@ -40,8 +39,7 @@
:rules="[(v) => v > 0 || $t('Settings.ControlTab.ValueGreaterThan', { value: '0' })]"
outlined
dense
hide-spin-buttons
></v-text-field>
hide-spin-buttons></v-text-field>
</settings-row>
<v-divider class="my-2"></v-divider>
<settings-row :title="$t('Settings.ControlTab.SpeedZ')">
@@ -54,8 +52,7 @@
:rules="[(v) => v > 0 || $t('Settings.ControlTab.ValueGreaterThan', { value: '0' })]"
outlined
dense
hide-spin-buttons
></v-text-field>
hide-spin-buttons></v-text-field>
</settings-row>
<v-divider class="my-2"></v-divider>
<template v-if="controlStyle === 'cross'">
@@ -77,8 +74,7 @@
]"
dense
outlined
hide-spin-buttons
></v-combobox>
hide-spin-buttons></v-combobox>
</settings-row>
<v-divider class="my-2"></v-divider>
</template>
@@ -99,8 +95,7 @@
]"
dense
outlined
hide-spin-buttons
></v-combobox>
hide-spin-buttons></v-combobox>
</settings-row>
<v-divider class="my-2"></v-divider>
<settings-row :title="$t('Settings.ControlTab.MoveDistancesZInMm')" :mobile-second-row="true">
@@ -119,8 +114,7 @@
]"
dense
outlined
hide-spin-buttons
></v-combobox>
hide-spin-buttons></v-combobox>
</settings-row>
<v-divider class="my-2"></v-divider>
</template>
@@ -143,8 +137,7 @@
]"
dense
outlined
hide-spin-buttons
></v-combobox>
hide-spin-buttons></v-combobox>
</settings-row>
<v-divider class="my-2"></v-divider>
<settings-row :title="$t('Settings.ControlTab.MoveDistancesZInMm')" :mobile-second-row="true">
@@ -165,8 +158,7 @@
]"
dense
outlined
hide-spin-buttons
></v-combobox>
hide-spin-buttons></v-combobox>
</settings-row>
<v-divider class="my-2"></v-divider>
</template>
@@ -188,8 +180,7 @@
]"
dense
outlined
hide-spin-buttons
></v-combobox>
hide-spin-buttons></v-combobox>
</settings-row>
<v-divider class="my-2"></v-divider>
<settings-row :title="$t('Settings.ControlTab.SpeedEInMms')" :mobile-second-row="true">
@@ -210,8 +201,7 @@
]"
dense
outlined
hide-spin-buttons
></v-combobox>
hide-spin-buttons></v-combobox>
</settings-row>
</v-form>
</v-card-text>
@@ -30,8 +30,7 @@
:handle="isMobile ? '.handle' : ''"
class="v-list-item-group"
ghost-class="ghost"
group="desktopViewport"
>
group="desktopViewport">
<template v-for="element in desktopLayout1">
<v-list-item :key="'item-desktop-' + element.name" link>
<v-row>
@@ -46,15 +45,15 @@
<v-icon
v-if="!element.visible"
color="grey lighten-1"
@click.stop="changeState1(element.name, true)"
>mdi-checkbox-blank-outline</v-icon
>
@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
>
@click.stop="changeState1(element.name, false)">
mdi-checkbox-marked
</v-icon>
</v-col>
</v-row>
</v-list-item>
@@ -71,8 +70,7 @@
:handle="isMobile ? '.handle' : ''"
class="v-list-item-group"
ghost-class="ghost"
group="desktopViewport"
>
group="desktopViewport">
<template v-for="element in desktopLayout2">
<v-list-item :key="'item-desktop-' + element.name" link>
<v-row>
@@ -87,15 +85,15 @@
<v-icon
v-if="!element.visible"
color="grey lighten-1"
@click.stop="changeState2(element.name, true)"
>mdi-checkbox-blank-outline</v-icon
>
@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
>
@click.stop="changeState2(element.name, false)">
mdi-checkbox-marked
</v-icon>
</v-col>
</v-row>
</v-list-item>
@@ -30,8 +30,7 @@
:handle="isMobile ? '.handle' : ''"
class="v-list-item-group"
ghost-class="ghost"
group="mobileViewport"
>
group="mobileViewport">
<template v-for="element in mobileLayout">
<v-list-item :key="'item-mobile-' + element.name" link>
<v-row>
@@ -46,15 +45,15 @@
<v-icon
v-if="!element.visible"
color="grey lighten-1"
@click.stop="changeState(element.name, true)"
>mdi-checkbox-blank-outline</v-icon
>
@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
>
@click.stop="changeState(element.name, false)">
mdi-checkbox-marked
</v-icon>
</v-col>
</v-row>
</v-list-item>
@@ -30,8 +30,7 @@
:handle="isMobile ? '.handle' : ''"
class="v-list-item-group"
ghost-class="ghost"
group="tabletViewport"
>
group="tabletViewport">
<template v-for="element in tabletLayout1">
<v-list-item :key="'item-tablet-' + element.name" link>
<v-row>
@@ -46,15 +45,15 @@
<v-icon
v-if="!element.visible"
color="grey lighten-1"
@click.stop="changeState1(element.name, true)"
>mdi-checkbox-blank-outline</v-icon
>
@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
>
@click.stop="changeState1(element.name, false)">
mdi-checkbox-marked
</v-icon>
</v-col>
</v-row>
</v-list-item>
@@ -71,8 +70,7 @@
:handle="isMobile ? '.handle' : ''"
class="v-list-item-group"
ghost-class="ghost"
group="tabletViewport"
>
group="tabletViewport">
<template v-for="element in tabletLayout2">
<v-list-item :key="'item-tablet-' + element.name" link>
<v-row>
@@ -87,15 +85,15 @@
<v-icon
v-if="!element.visible"
color="grey lighten-1"
@click.stop="changeState2(element.name, true)"
>mdi-checkbox-blank-outline</v-icon
>
@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
>
@click.stop="changeState2(element.name, false)">
mdi-checkbox-marked
</v-icon>
</v-col>
</v-row>
</v-list-item>
@@ -30,8 +30,7 @@
:handle="isMobile ? '.handle' : ''"
class="v-list-item-group"
ghost-class="ghost"
group="widescreenViewport"
>
group="widescreenViewport">
<template v-for="element in widescreenLayout1">
<v-list-item :key="'item-widescreen-' + element.name" link>
<v-row>
@@ -46,15 +45,15 @@
<v-icon
v-if="!element.visible"
color="grey lighten-1"
@click.stop="changeState1(element.name, true)"
>mdi-checkbox-blank-outline</v-icon
>
@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
>
@click.stop="changeState1(element.name, false)">
mdi-checkbox-marked
</v-icon>
</v-col>
</v-row>
</v-list-item>
@@ -71,8 +70,7 @@
:handle="isMobile ? '.handle' : ''"
class="v-list-item-group"
ghost-class="ghost"
group="widescreenViewport"
>
group="widescreenViewport">
<template v-for="element in widescreenLayout2">
<v-list-item :key="'item-widescreen-' + element.name" link>
<v-row>
@@ -87,15 +85,15 @@
<v-icon
v-if="!element.visible"
color="grey lighten-1"
@click.stop="changeState2(element.name, true)"
>mdi-checkbox-blank-outline</v-icon
>
@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
>
@click.stop="changeState2(element.name, false)">
mdi-checkbox-marked
</v-icon>
</v-col>
</v-row>
</v-list-item>
@@ -112,8 +110,7 @@
:handle="isMobile ? '.handle' : ''"
class="v-list-item-group"
ghost-class="ghost"
group="widescreenViewport"
>
group="widescreenViewport">
<template v-for="element in widescreenLayout3">
<v-list-item :key="'item-widescreen-' + element.name" link>
<v-row>
@@ -128,15 +125,15 @@
<v-icon
v-if="!element.visible"
color="grey lighten-1"
@click.stop="changeState3(element.name, true)"
>mdi-checkbox-blank-outline</v-icon
>
@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
>
@click.stop="changeState3(element.name, false)">
mdi-checkbox-marked
</v-icon>
</v-col>
</v-row>
</v-list-item>
@@ -5,16 +5,14 @@
<settings-row
:title="$t('Settings.EditorTab.UseEscToClose')"
:sub-title="$t('Settings.EditorTab.UseEscToCloseDescription')"
:dynamicSlotWidth="true"
>
:dynamicSlotWidth="true">
<v-switch v-model="escToClose" hide-details class="mt-0"></v-switch>
</settings-row>
<v-divider class="my-2"></v-divider>
<settings-row
:title="$t('Settings.EditorTab.ConfirmUnsavedChanges')"
:sub-title="$t('Settings.EditorTab.ConfirmUnsavedChangesDescription')"
:dynamicSlotWidth="true"
>
:dynamicSlotWidth="true">
<v-switch v-model="confirmUnsavedChanges" hide-details class="mt-0"></v-switch>
</settings-row>
<v-divider class="my-2"></v-divider>
@@ -14,15 +14,13 @@
class="minwidth-0 px-5"
small
v-bind="attrs"
v-on="on"
></v-btn>
v-on="on"></v-btn>
</template>
<v-color-picker
:value="backgroundColor"
@update:color="updateColorValue('backgroundColor', $event)"
hide-mode-switch
mode="rgba"
></v-color-picker>
mode="rgba"></v-color-picker>
</v-menu>
</settings-row>
<v-divider class="my-2"></v-divider>
@@ -35,8 +33,7 @@
:value="gridColor"
@update:color="updateColorValue('gridColor', $event)"
hide-mode-switch
mode="rgba"
></v-color-picker>
mode="rgba"></v-color-picker>
</v-menu>
</settings-row>
<v-divider class="my-2"></v-divider>
@@ -48,8 +45,7 @@
bottom
left
offset-y
v-for="(extruderColor, index) in extruderColors"
>
v-for="(extruderColor, index) in extruderColors">
<template v-slot:activator="{ on, attrs }">
<v-col align="right" class="mt-1" cols="12">
<span class="mr-2">{{ index }}</span>
@@ -58,16 +54,14 @@
class="minwidth-0 px-5"
small
v-bind="attrs"
v-on="on"
></v-btn>
v-on="on"></v-btn>
</v-col>
</template>
<v-color-picker
:value="extruderColors[index]"
@update:color="colorsUpdated($event, index)"
hide-mode-switch
mode="rgba"
></v-color-picker>
mode="rgba"></v-color-picker>
</v-menu>
</v-row>
</settings-row>
@@ -80,15 +74,13 @@
class="minwidth-0 px-5 mr-3"
small
v-bind="attrs"
v-on="on"
></v-btn>
v-on="on"></v-btn>
</template>
<v-color-picker
:value="minFeedColor"
@update:color="updateColorValue('minFeedColor', $event)"
hide-mode-switch
mode="rgba"
></v-color-picker>
mode="rgba"></v-color-picker>
</v-menu>
<v-text-field
:rules="[(v) => v > 0 || 'Minimum speed is 1']"
@@ -99,8 +91,7 @@
suffix="mm/s"
type="number"
v-model="minFeed"
hide-spin-buttons
></v-text-field>
hide-spin-buttons></v-text-field>
</settings-row>
<v-divider class="my-2"></v-divider>
<settings-row :title="$t('Settings.GCodeViewerTab.MaxFeed')">
@@ -111,15 +102,13 @@
class="minwidth-0 px-5 mr-3"
small
v-bind="attrs"
v-on="on"
></v-btn>
v-on="on"></v-btn>
</template>
<v-color-picker
:value="maxFeedColor"
@update:color="updateColorValue('maxFeedColor', $event)"
hide-mode-switch
mode="rgba"
></v-color-picker>
mode="rgba"></v-color-picker>
</v-menu>
<v-text-field
:rules="[(v) => v > 0 || 'Minimum speed is 1']"
@@ -130,8 +119,7 @@
suffix="mm/s"
type="number"
v-model="maxFeed"
hide-spin-buttons
></v-text-field>
hide-spin-buttons></v-text-field>
</settings-row>
</v-card-text>
</v-card>
+28 -47
View File
@@ -13,14 +13,12 @@
hide-details
outlined
dense
attach
></v-select>
attach></v-select>
</settings-row>
<v-divider class="my-2"></v-divider>
<settings-row
:title="$t('Settings.GeneralTab.CalcEstimateTime')"
:sub-title="$t('Settings.GeneralTab.CalcEstimateTimeDescription')"
>
:sub-title="$t('Settings.GeneralTab.CalcEstimateTimeDescription')">
<v-select
v-model="calcEstimateTime"
:items="calcEstimateItems"
@@ -28,14 +26,12 @@
hide-details
dense
outlined
attach
></v-select>
attach></v-select>
</settings-row>
<v-divider class="my-2"></v-divider>
<settings-row
:title="$t('Settings.GeneralTab.CalcEtaTime')"
:sub-title="$t('Settings.GeneralTab.CalcEtaTimeDescription')"
>
:sub-title="$t('Settings.GeneralTab.CalcEtaTimeDescription')">
<v-select
v-model="calcEtaTime"
:items="calcEtaTimeItems"
@@ -43,8 +39,7 @@
hide-details
dense
outlined
attach
></v-select>
attach></v-select>
</settings-row>
<v-divider class="my-2"></v-divider>
<settings-row :title="$t('Settings.GeneralTab.MoonrakerDb')" :dynamicSlotWidth="true">
@@ -53,20 +48,19 @@
:accept="['.json']"
ref="uploadBackupFile"
class="d-none"
@change="uploadRestore"
/>
<v-btn @click="backupDb" :loading="loadings.includes('backupDbButton')" small>{{
$t('Settings.GeneralTab.Backup')
}}</v-btn>
<v-btn @click="restoreDb" small :loading="loadings.includes('restoreUploadButton')" class="ml-3">{{
$t('Settings.GeneralTab.Restore')
}}</v-btn>
@change="uploadRestore" />
<v-btn @click="backupDb" :loading="loadings.includes('backupDbButton')" small>
{{ $t('Settings.GeneralTab.Backup') }}
</v-btn>
<v-btn @click="restoreDb" small :loading="loadings.includes('restoreUploadButton')" class="ml-3">
{{ $t('Settings.GeneralTab.Restore') }}
</v-btn>
</settings-row>
<v-divider class="my-2"></v-divider>
<settings-row :title="$t('Settings.GeneralTab.FactoryReset')" :dynamicSlotWidth="true">
<v-btn @click="resetMainsail" color="error" small>{{
$t('Settings.GeneralTab.FactoryReset')
}}</v-btn>
<v-btn @click="resetMainsail" color="error" small>
{{ $t('Settings.GeneralTab.FactoryReset') }}
</v-btn>
</settings-row>
</v-card-text>
</v-card>
@@ -75,8 +69,7 @@
:title="$t('Settings.GeneralTab.Backup')"
card-class="mainsail-backup-dialog"
:margin-bottom="false"
icon="mdi-help-circle"
>
icon="mdi-help-circle">
<template v-slot:buttons>
<v-btn icon tile @click="dialogBackupMainsail = false"><v-icon>mdi-close-thick</v-icon></v-btn>
</template>
@@ -94,23 +87,20 @@
hide-details
class="mt-0"
:key="db.name"
@change="changeNamespace(db.name)"
></v-checkbox>
@change="changeNamespace(db.name)"></v-checkbox>
</template>
<v-checkbox
:label="$t('Settings.GeneralTab.DbTimelapseSettings')"
v-if="availableNamespaces.includes('timelapse')"
hide-details
class="mt-0"
@change="changeNamespace('timelapse')"
></v-checkbox>
@change="changeNamespace('timelapse')"></v-checkbox>
<v-checkbox
:label="$t('Settings.GeneralTab.DbWebcams')"
v-if="availableNamespaces.includes('webcams')"
hide-details
class="mt-0"
@change="changeNamespace('webcams')"
></v-checkbox>
@change="changeNamespace('webcams')"></v-checkbox>
</v-col>
</v-row>
<v-row>
@@ -128,8 +118,7 @@
:title="$t('Settings.GeneralTab.FactoryReset')"
card-class="factory-reset-dialog"
:margin-bottom="false"
icon="mdi-help-circle"
>
icon="mdi-help-circle">
<template v-slot:buttons>
<v-btn icon tile @click="dialogResetMainsail = false"><v-icon>mdi-close-thick</v-icon></v-btn>
</template>
@@ -147,37 +136,32 @@
hide-details
class="mt-0"
:key="db.name"
@change="changeNamespace(db.name)"
></v-checkbox>
@change="changeNamespace(db.name)"></v-checkbox>
</template>
<v-checkbox
:label="$t('Settings.GeneralTab.DbTimelapseSettings')"
v-if="availableNamespaces.includes('timelapse')"
hide-details
class="mt-0"
@change="changeNamespace('timelapse')"
></v-checkbox>
@change="changeNamespace('timelapse')"></v-checkbox>
<v-checkbox
:label="$t('Settings.GeneralTab.DbWebcams')"
v-if="availableNamespaces.includes('webcams')"
hide-details
class="mt-0"
@change="changeNamespace('webcams')"
></v-checkbox>
@change="changeNamespace('webcams')"></v-checkbox>
<v-checkbox
:label="$t('Settings.GeneralTab.DbHistoryJobs')"
v-if="moonrakerComponents.includes('history')"
hide-details
class="mt-0"
@change="changeNamespace('history_jobs')"
></v-checkbox>
@change="changeNamespace('history_jobs')"></v-checkbox>
<v-checkbox
:label="$t('Settings.GeneralTab.DbHistoryTotals')"
v-if="moonrakerComponents.includes('history')"
hide-details
class="mt-0"
@change="changeNamespace('history_totals')"
></v-checkbox>
@change="changeNamespace('history_totals')"></v-checkbox>
</v-col>
</v-row>
<v-row>
@@ -185,8 +169,7 @@
<v-btn
color="red"
@click="resetMainsailAction"
:loading="loadings.includes('resetMainsail')"
>
:loading="loadings.includes('resetMainsail')">
{{ $t('Settings.GeneralTab.Reset') }}
</v-btn>
</v-col>
@@ -199,8 +182,7 @@
:title="$t('Settings.GeneralTab.Restore')"
card-class="factory-reset-dialog"
:margin-bottom="false"
icon="mdi-help-circle"
>
icon="mdi-help-circle">
<template v-slot:buttons>
<v-btn icon tile @click="dialogRestoreMainsail = false"><v-icon>mdi-close-thick</v-icon></v-btn>
</template>
@@ -218,8 +200,7 @@
hide-details
class="mt-0"
:key="db.name"
@change="changeNamespace(db.name)"
></v-checkbox>
@change="changeNamespace(db.name)"></v-checkbox>
</template>
</v-col>
</v-row>
@@ -10,8 +10,7 @@
<template v-if="mode === 'expert'">
<settings-macros-tab-expert
@update:showGeneral="updateShowGeneral"
@scrollToTop="scrollToTop"
></settings-macros-tab-expert>
@scrollToTop="scrollToTop"></settings-macros-tab-expert>
</template>
<template v-else>
<settings-macros-tab-simple></settings-macros-tab-simple>
@@ -13,18 +13,17 @@
count: 'macros' in group ? group.macros.length : 0,
})
"
:dynamicSlotWidth="true"
>
:dynamicSlotWidth="true">
<v-btn small outlined class="ml-3" @click="editMacrogroup(group)">
<v-icon left small>mdi-pencil</v-icon>{{ $t('Settings.Edit') }}
<v-icon left small>mdi-pencil</v-icon>
{{ $t('Settings.Edit') }}
</v-btn>
<v-btn
small
outlined
@click="deleteMacrogroup(group.id)"
class="ml-3 minwidth-0 px-2"
color="error"
>
color="error">
<v-icon small>mdi-delete</v-icon>
</v-btn>
</settings-row>
@@ -52,8 +51,7 @@
:rules="[rules.required, rules.groupUnique]"
dense
outlined
@change="updateGroupOptionName"
></v-text-field>
@change="updateGroupOptionName"></v-text-field>
</settings-row>
<v-divider class="my-2"></v-divider>
<settings-row :title="$t('Settings.MacrosTab.Color')">
@@ -64,8 +62,7 @@
outlined
dense
hide-details
attach
></v-select>
attach></v-select>
</settings-row>
<template v-if="editGroup.color === 'custom'">
<v-divider class="my-2"></v-divider>
@@ -77,15 +74,13 @@
v-on="on"
:color="editGroup.colorCustom"
class="minwidth-0 px-5"
small
></v-btn>
small></v-btn>
</template>
<v-color-picker
:value="editGroup.colorCustom"
hide-mode-switch
mode="rgba"
@update:color="updateGroupOptionColorCustom"
></v-color-picker>
@update:color="updateGroupOptionColorCustom"></v-color-picker>
</v-menu>
</settings-row>
</template>
@@ -100,8 +95,7 @@
v-on="on"
@click="updateGroupOptionShowInStandby(!editGroup.showInStandby)"
class="ml-3 minwidth-0 px-2"
:color="editGroup.showInStandby ? '' : 'secondary'"
>
:color="editGroup.showInStandby ? '' : 'secondary'">
<v-icon small>mdi-sleep</v-icon>
</v-btn>
</template>
@@ -116,8 +110,7 @@
v-on="on"
@click="updateGroupOptionShowInPause(!editGroup.showInPause)"
class="ml-3 minwidth-0 px-2"
:color="editGroup.showInPause ? '' : 'secondary'"
>
:color="editGroup.showInPause ? '' : 'secondary'">
<v-icon small>mdi-pause</v-icon>
</v-btn>
</template>
@@ -132,8 +125,7 @@
v-on="on"
@click="updateGroupOptionShowInPrinting(!editGroup.showInPrinting)"
class="ml-3 minwidth-0 px-2"
:color="editGroup.showInPrinting ? '' : 'secondary'"
>
:color="editGroup.showInPrinting ? '' : 'secondary'">
<v-icon small>mdi-printer-3d-nozzle</v-icon>
</v-btn>
</template>
@@ -148,8 +140,7 @@
handle=".handle"
ghost-class="ghost"
group="macros"
@change="updateMacroOrder"
>
@change="updateMacroOrder">
<template v-for="(macro, index) in editGroupMacros">
<div v-bind:key="macro.name">
<v-row>
@@ -161,8 +152,7 @@
:title="macro.name"
:sub-title="getMacroDescription(macro.name)"
v-bind:key="'groupMacro_macro_' + index"
:dynamicSlotWidth="true"
>
:dynamicSlotWidth="true">
<template v-if="existsMacro(macro.name)">
<v-tooltip top>
<template v-slot:activator="{ on, attrs }">
@@ -173,9 +163,9 @@
v-on="on"
@click="changeColorMacroFromGroup(macro)"
class="ml-3 minwidth-0 px-2"
:color="macro.color"
>
<v-icon small left>mdi-palette</v-icon> {{ macro.color }}
:color="macro.color">
<v-icon small left>mdi-palette</v-icon>
{{ macro.color }}
</v-btn>
</template>
<span>{{ $t('Settings.MacrosTab.ChangeMacroColor') }}</span>
@@ -195,8 +185,7 @@
)
"
class="ml-3 minwidth-0 px-2"
:color="macro.showInStandby ? '' : 'secondary'"
>
:color="macro.showInStandby ? '' : 'secondary'">
<v-icon small>mdi-sleep</v-icon>
</v-btn>
</template>
@@ -217,8 +206,7 @@
)
"
class="ml-3 minwidth-0 px-2"
:color="macro.showInPause ? '' : 'secondary'"
>
:color="macro.showInPause ? '' : 'secondary'">
<v-icon small>mdi-pause</v-icon>
</v-btn>
</template>
@@ -239,8 +227,7 @@
)
"
class="ml-3 minwidth-0 px-2"
:color="macro.showInPrinting ? '' : 'secondary'"
>
:color="macro.showInPrinting ? '' : 'secondary'">
<v-icon small>mdi-printer-3d-nozzle</v-icon>
</v-btn>
</template>
@@ -256,8 +243,7 @@
v-on="on"
@click="removeMacroFromGroup(macro)"
class="ml-3 minwidth-0 px-2"
color="error"
>
color="error">
<v-icon small>mdi-delete</v-icon>
</v-btn>
</template>
@@ -286,10 +272,10 @@
:title="macro.name"
:sub-title="macro.description"
v-bind:key="'availableMacro_macro_' + index"
:dynamicSlotWidth="true"
>
:dynamicSlotWidth="true">
<v-btn small outlined class="ml-3" @click="addMacroToGroup(macro)">
<v-icon left small>mdi-plus</v-icon> {{ $t('Settings.MacrosTab.Add') }}
<v-icon left small>mdi-plus</v-icon>
{{ $t('Settings.MacrosTab.Add') }}
</v-btn>
</settings-row>
</template>
@@ -9,8 +9,7 @@
:input-value="getMacroStatus(macro.name)"
@change="changeMacroStatus(macro.name)"
hide-details
class="mt-0"
></v-switch>
class="mt-0"></v-switch>
</settings-row>
</div>
</template>
+17 -17
View File
@@ -7,15 +7,15 @@
<v-divider class="my-2" v-if="key"></v-divider>
<settings-row :title="preset.name" :sub-title="getSubTitle(preset)">
<v-btn small outlined class="ml-3" @click="editPreset(preset)">
<v-icon left small>mdi-pencil</v-icon>{{ $t('Settings.Edit') }}
<v-icon left small>mdi-pencil</v-icon>
{{ $t('Settings.Edit') }}
</v-btn>
<v-btn
small
outlined
@click="deletePreset(preset.id)"
class="ml-3 minwidth-0 px-2"
color="error"
>
color="error">
<v-icon small>mdi-delete</v-icon>
</v-btn>
</settings-row>
@@ -23,7 +23,8 @@
<v-divider class="my-2" v-if="presets.length"></v-divider>
<settings-row :title="$t('Settings.PresetsTab.Cooldown')">
<v-btn small outlined class="ml-3" @click="editCooldown">
<v-icon left small>mdi-pencil</v-icon>{{ $t('Settings.Edit') }}
<v-icon left small>mdi-pencil</v-icon>
{{ $t('Settings.Edit') }}
</v-btn>
</settings-row>
</v-card-text>
@@ -33,9 +34,13 @@
</v-card>
<v-card flat v-else-if="form.bool">
<v-form v-model="form.valid" @submit.prevent="savePreset">
<v-card-title>{{
form.id === null ? $t('Settings.PresetsTab.CreateHeadline') : $t('Settings.PresetsTab.EditHeadline')
}}</v-card-title>
<v-card-title>
{{
form.id === null
? $t('Settings.PresetsTab.CreateHeadline')
: $t('Settings.PresetsTab.EditHeadline')
}}
</v-card-title>
<v-card-text>
<v-row class="mt-3" v-if="form.boolInvalidMin">
<v-col class="py-0">
@@ -48,8 +53,7 @@
hide-details="auto"
:rules="[rules.required, rules.unique]"
dense
outlined
></v-text-field>
outlined></v-text-field>
</settings-row>
<div v-for="heater of heaters" v-bind:key="heater.name">
<v-divider class="my-2"></v-divider>
@@ -57,8 +61,7 @@
<v-checkbox
v-model="form.values[heater.name].bool"
hide-details
class="shrink mt-0"
></v-checkbox>
class="shrink mt-0"></v-checkbox>
<v-text-field
v-model="form.values[heater.name].value"
hide-details="auto"
@@ -66,8 +69,7 @@
suffix="°C"
dense
outlined
hide-spin-buttons
></v-text-field>
hide-spin-buttons></v-text-field>
</settings-row>
</div>
<div v-for="fan of temperatureFans" v-bind:key="'temperature_fan ' + fan.name">
@@ -76,8 +78,7 @@
<v-checkbox
v-model="form.values['temperature_fan ' + fan.name].bool"
hide-details
class="shrink mt-0"
></v-checkbox>
class="shrink mt-0"></v-checkbox>
<v-text-field
v-model="form.values['temperature_fan ' + fan.name].value"
hide-details="auto"
@@ -85,8 +86,7 @@
suffix="°C"
dense
outlined
hide-spin-buttons
></v-text-field>
hide-spin-buttons></v-text-field>
</settings-row>
</div>
<v-divider class="my-2"></v-divider>
@@ -8,27 +8,26 @@
<settings-row
:title="formatPrinterName(printer)"
:loading="printer.socket.isConnecting"
:icon="printer.socket.isConnected ? 'mdi-checkbox-marked-circle' : 'mdi-cancel'"
>
:icon="printer.socket.isConnected ? 'mdi-checkbox-marked-circle' : 'mdi-cancel'">
<v-btn small outlined @click="editPrinter(printer)">
<v-icon left small>mdi-pencil</v-icon>{{ $t('Settings.Edit') }}
<v-icon left small>mdi-pencil</v-icon>
{{ $t('Settings.Edit') }}
</v-btn>
<v-btn
small
outlined
@click="delPrinter(printer.id)"
class="ml-3 minwidth-0 px-2"
color="error"
>
color="error">
<v-icon small>mdi-delete</v-icon>
</v-btn>
</settings-row>
</div>
</v-card-text>
<v-card-actions class="d-flex justify-end">
<v-btn text color="primary" @click="createPrinter">{{
$t('Settings.RemotePrintersTab.AddPrinter')
}}</v-btn>
<v-btn text color="primary" @click="createPrinter">
{{ $t('Settings.RemotePrintersTab.AddPrinter') }}
</v-btn>
</v-card-actions>
</v-card>
<v-card flat v-else>
@@ -51,8 +50,7 @@
hide-details="auto"
required
dense
outlined
></v-text-field>
outlined></v-text-field>
</settings-row>
<v-divider class="my-2"></v-divider>
<settings-row :title="$t('Settings.RemotePrintersTab.Port')">
@@ -62,18 +60,17 @@
hide-details="auto"
required
dense
outlined
></v-text-field>
outlined></v-text-field>
</settings-row>
</v-card-text>
<v-card-actions class="d-flex justify-end">
<v-btn text @click="form.bool = false">{{ $t('Settings.Cancel') }}</v-btn>
<v-btn text color="primary" @click="storePrinter" v-if="form.id === null">{{
$t('Settings.RemotePrintersTab.AddPrinter')
}}</v-btn>
<v-btn text color="primary" @click="updatePrinter" v-else>{{
$t('Settings.RemotePrintersTab.UpdatePrinter')
}}</v-btn>
<v-btn text color="primary" @click="storePrinter" v-if="form.id === null">
{{ $t('Settings.RemotePrintersTab.AddPrinter') }}
</v-btn>
<v-btn text color="primary" @click="updatePrinter" v-else>
{{ $t('Settings.RemotePrintersTab.UpdatePrinter') }}
</v-btn>
</v-card-actions>
</v-card>
</div>
+64 -125
View File
@@ -6,33 +6,28 @@
<settings-row
:title="$t('Settings.TimelapseTab.Enabled')"
:sub-title="$t('Settings.TimelapseTab.EnabledDescription')"
:dynamicSlotWidth="true"
>
:dynamicSlotWidth="true">
<v-switch
v-model="enabled"
hide-details
class="mt-0"
:disabled="blockedsettings.includes('enabled')"
></v-switch>
:disabled="blockedsettings.includes('enabled')"></v-switch>
</settings-row>
<v-divider class="my-2"></v-divider>
<settings-row
:title="$t('Settings.TimelapseTab.Autorender')"
:sub-title="$t('Settings.TimelapseTab.AutorenderDescription')"
:dynamicSlotWidth="true"
>
:dynamicSlotWidth="true">
<v-switch
v-model="autorender"
hide-details
class="mt-0"
:disabled="blockedsettings.includes('autorender')"
></v-switch>
:disabled="blockedsettings.includes('autorender')"></v-switch>
</settings-row>
<v-divider class="my-2"></v-divider>
<settings-row
:title="$t('Settings.TimelapseTab.Camera')"
:sub-title="$t('Settings.TimelapseTab.CameraDescription')"
>
:sub-title="$t('Settings.TimelapseTab.CameraDescription')">
<v-select
v-model="camera"
:items="cameraOptions"
@@ -40,14 +35,12 @@
outlined
dense
:disabled="blockedsettings.includes('camera') || blockedsettings.includes('snapshoturl')"
attach
></v-select>
attach></v-select>
</settings-row>
<v-divider class="my-2"></v-divider>
<settings-row
:title="$t('Settings.TimelapseTab.Mode')"
:sub-title="$t('Settings.TimelapseTab.ModeDescription')"
>
:sub-title="$t('Settings.TimelapseTab.ModeDescription')">
<v-select
v-model="mode"
:items="modeOptions"
@@ -55,15 +48,13 @@
outlined
dense
:disabled="blockedsettings.includes('modeOptions')"
attach
></v-select>
attach></v-select>
</settings-row>
<template v-if="mode === 'hyperlapse'">
<v-divider class="my-2"></v-divider>
<settings-row
:title="$t('Settings.TimelapseTab.HyperlapseCycle')"
:sub-title="$t('Settings.TimelapseTab.HyperlapseCycleDescription')"
>
:sub-title="$t('Settings.TimelapseTab.HyperlapseCycleDescription')">
<v-text-field
v-model="hyperlapseCycle"
type="number"
@@ -72,41 +63,35 @@
outlined
dense
:disabled="blockedsettings.includes('hyperlapseCycle')"
hide-spin-buttons
></v-text-field>
hide-spin-buttons></v-text-field>
</settings-row>
</template>
<v-divider class="my-2"></v-divider>
<settings-row
:title="$t('Settings.TimelapseTab.PreviewImage')"
:sub-title="$t('Settings.TimelapseTab.PreviewImageDescription')"
:dynamicSlotWidth="true"
>
:dynamicSlotWidth="true">
<v-switch
v-model="previewimage"
hide-details
class="mt-0"
:disabled="blockedsettings.includes('previewimage')"
></v-switch>
:disabled="blockedsettings.includes('previewimage')"></v-switch>
</settings-row>
<v-divider class="my-2"></v-divider>
<settings-row
:title="$t('Settings.TimelapseTab.SaveFrames')"
:sub-title="$t('Settings.TimelapseTab.SaveFramesDescription')"
:dynamicSlotWidth="true"
>
:dynamicSlotWidth="true">
<v-switch
v-model="saveframes"
hide-details
class="mt-0"
:disabled="blockedsettings.includes('saveframes')"
></v-switch>
:disabled="blockedsettings.includes('saveframes')"></v-switch>
</settings-row>
<v-divider class="my-2"></v-divider>
<settings-row
:title="$t('Settings.TimelapseTab.StreamDelayCompensation')"
:sub-title="$t('Settings.TimelapseTab.StreamDelayCompensationDescription')"
>
:sub-title="$t('Settings.TimelapseTab.StreamDelayCompensationDescription')">
<v-text-field
v-model="stream_delay_compensation"
type="number"
@@ -115,41 +100,36 @@
hide-details="auto"
outlined
dense
:disabled="blockedsettings.includes('stream_delay_compensation')"
></v-text-field>
:disabled="blockedsettings.includes('stream_delay_compensation')"></v-text-field>
</settings-row>
<v-divider class="my-2"></v-divider>
<settings-row
:title="$t('Settings.TimelapseTab.GcodeVerbose')"
:sub-title="$t('Settings.TimelapseTab.GcodeVerboseDescription')"
:dynamicSlotWidth="true"
>
:dynamicSlotWidth="true">
<v-switch
v-model="gcode_verbose"
hide-details
class="mt-0"
:disabled="blockedsettings.includes('gcode_verbose')"
></v-switch> </settings-row
><v-divider class="my-2"></v-divider>
:disabled="blockedsettings.includes('gcode_verbose')"></v-switch>
</settings-row>
<v-divider class="my-2"></v-divider>
<h3 class="text-h5 mt-6 mb-3">{{ $t('Settings.TimelapseTab.Parkhead') }}</h3>
<settings-row
:title="$t('Settings.TimelapseTab.Parkhead')"
:sub-title="$t('Settings.TimelapseTab.ParkheadDescription')"
:dynamicSlotWidth="true"
>
:dynamicSlotWidth="true">
<v-switch
v-model="parkhead"
hide-details
class="mt-0"
:disabled="blockedsettings.includes('parkhead')"
></v-switch>
:disabled="blockedsettings.includes('parkhead')"></v-switch>
</settings-row>
<template v-if="parkhead">
<v-divider class="my-2"></v-divider>
<settings-row
:title="$t('Settings.TimelapseTab.Parkpos')"
:sub-title="$t('Settings.TimelapseTab.ParkposDescription')"
>
:sub-title="$t('Settings.TimelapseTab.ParkposDescription')">
<v-select
v-model="parkpos"
:items="parkposOptions"
@@ -157,15 +137,13 @@
outlined
dense
:disabled="blockedsettings.includes('parkposOptions')"
attach
></v-select>
attach></v-select>
</settings-row>
<template v-if="parkpos === 'custom'">
<v-divider class="my-2"></v-divider>
<settings-row
:title="$t('Settings.TimelapseTab.PosX')"
:sub-title="$t('Settings.TimelapseTab.PosXDescription')"
>
:sub-title="$t('Settings.TimelapseTab.PosXDescription')">
<v-text-field
v-model="park_custom_pos_x"
type="number"
@@ -174,14 +152,12 @@
outlined
dense
:disabled="blockedsettings.includes('park_custom_pos_x')"
hide-spin-buttons
></v-text-field>
hide-spin-buttons></v-text-field>
</settings-row>
<v-divider class="my-2"></v-divider>
<settings-row
:title="$t('Settings.TimelapseTab.PosY')"
:sub-title="$t('Settings.TimelapseTab.PosYDescription')"
>
:sub-title="$t('Settings.TimelapseTab.PosYDescription')">
<v-text-field
v-model="park_custom_pos_y"
type="number"
@@ -190,14 +166,12 @@
outlined
dense
:disabled="blockedsettings.includes('park_custom_pos_y')"
hide-spin-buttons
></v-text-field>
hide-spin-buttons></v-text-field>
</settings-row>
<v-divider class="my-2"></v-divider>
<settings-row
:title="$t('Settings.TimelapseTab.PosDZ')"
:sub-title="$t('Settings.TimelapseTab.PosDZDescription')"
>
:sub-title="$t('Settings.TimelapseTab.PosDZDescription')">
<v-text-field
v-model="park_custom_pos_dz"
type="number"
@@ -206,15 +180,13 @@
outlined
dense
:disabled="blockedsettings.includes('park_custom_pos_dz')"
hide-spin-buttons
></v-text-field>
hide-spin-buttons></v-text-field>
</settings-row>
</template>
<v-divider class="my-2"></v-divider>
<settings-row
:title="$t('Settings.TimelapseTab.TravelSpeed')"
:sub-title="$t('Settings.TimelapseTab.TravelSpeedDescription')"
>
:sub-title="$t('Settings.TimelapseTab.TravelSpeedDescription')">
<v-text-field
v-model="park_travel_speed"
type="number"
@@ -223,28 +195,24 @@
outlined
dense
:disabled="blockedsettings.includes('park_travel_speed')"
hide-spin-buttons
></v-text-field>
hide-spin-buttons></v-text-field>
</settings-row>
<v-divider class="my-2"></v-divider>
<settings-row
:title="$t('Settings.TimelapseTab.FwRetract')"
:sub-title="$t('Settings.TimelapseTab.FwRetractDescription')"
:dynamicSlotWidth="true"
>
:dynamicSlotWidth="true">
<v-switch
v-model="fw_retract"
hide-details
class="mt-0"
:disabled="blockedsettings.includes('fw_retract')"
></v-switch>
:disabled="blockedsettings.includes('fw_retract')"></v-switch>
</settings-row>
<template v-if="!fw_retract">
<v-divider class="my-2"></v-divider>
<settings-row
:title="$t('Settings.TimelapseTab.RetractSpeed')"
:sub-title="$t('Settings.TimelapseTab.RetractSpeedDescription')"
>
:sub-title="$t('Settings.TimelapseTab.RetractSpeedDescription')">
<v-text-field
v-model="park_retract_speed"
type="number"
@@ -253,14 +221,12 @@
outlined
dense
:disabled="blockedsettings.includes('park_retract_speed')"
hide-spin-buttons
></v-text-field>
hide-spin-buttons></v-text-field>
</settings-row>
<v-divider class="my-2"></v-divider>
<settings-row
:title="$t('Settings.TimelapseTab.RetractDistance')"
:sub-title="$t('Settings.TimelapseTab.RetractDistanceDescription')"
>
:sub-title="$t('Settings.TimelapseTab.RetractDistanceDescription')">
<v-text-field
v-model="park_retract_distance"
type="number"
@@ -269,14 +235,12 @@
outlined
dense
:disabled="blockedsettings.includes('park_retract_distance')"
hide-spin-buttons
></v-text-field>
hide-spin-buttons></v-text-field>
</settings-row>
<v-divider class="my-2"></v-divider>
<settings-row
:title="$t('Settings.TimelapseTab.UnretractSpeed')"
:sub-title="$t('Settings.TimelapseTab.UnretractSpeedDescription')"
>
:sub-title="$t('Settings.TimelapseTab.UnretractSpeedDescription')">
<v-text-field
v-model="park_extrude_speed"
type="number"
@@ -285,14 +249,12 @@
outlined
dense
:disabled="blockedsettings.includes('park_extrude_speed')"
hide-spin-buttons
></v-text-field>
hide-spin-buttons></v-text-field>
</settings-row>
<v-divider class="my-2"></v-divider>
<settings-row
:title="$t('Settings.TimelapseTab.UnretractDistance')"
:sub-title="$t('Settings.TimelapseTab.UnretractDistanceDescription')"
>
:sub-title="$t('Settings.TimelapseTab.UnretractDistanceDescription')">
<v-text-field
v-model="park_extrude_distance"
type="number"
@@ -301,15 +263,13 @@
outlined
dense
:disabled="blockedsettings.includes('park_extrude_distance')"
hide-spin-buttons
></v-text-field>
hide-spin-buttons></v-text-field>
</settings-row>
</template>
<v-divider class="my-2"></v-divider>
<settings-row
:title="$t('Settings.TimelapseTab.ParkTime')"
:sub-title="$t('Settings.TimelapseTab.ParkTimeDescription')"
>
:sub-title="$t('Settings.TimelapseTab.ParkTimeDescription')">
<v-text-field
v-model="park_time"
type="number"
@@ -318,8 +278,7 @@
step="0.1"
outlined
dense
:disabled="blockedsettings.includes('park_time')"
></v-text-field>
:disabled="blockedsettings.includes('park_time')"></v-text-field>
</settings-row>
</template>
<v-divider class="my-2"></v-divider>
@@ -327,21 +286,18 @@
<settings-row
:title="$t('Settings.TimelapseTab.VariableFps')"
:sub-title="$t('Settings.TimelapseTab.VariableFpsDescription')"
:dynamicSlotWidth="true"
>
:dynamicSlotWidth="true">
<v-switch
v-model="variable_fps"
hide-details
class="mt-0"
:disabled="blockedsettings.includes('variable_fps')"
></v-switch>
:disabled="blockedsettings.includes('variable_fps')"></v-switch>
</settings-row>
<template v-if="variable_fps">
<v-divider class="my-2"></v-divider>
<settings-row
:title="$t('Settings.TimelapseTab.Targetlength')"
:sub-title="$t('Settings.TimelapseTab.TargetlengthDescription')"
>
:sub-title="$t('Settings.TimelapseTab.TargetlengthDescription')">
<v-text-field
v-model="targetlength"
type="number"
@@ -350,14 +306,12 @@
outlined
dense
:disabled="blockedsettings.includes('targetlength')"
hide-spin-buttons
></v-text-field>
hide-spin-buttons></v-text-field>
</settings-row>
<v-divider class="my-2"></v-divider>
<settings-row
:title="$t('Settings.TimelapseTab.VariableFpsMin')"
:sub-title="$t('Settings.TimelapseTab.VariableFpsMinDescription')"
>
:sub-title="$t('Settings.TimelapseTab.VariableFpsMinDescription')">
<v-text-field
v-model="variable_fps_min"
type="number"
@@ -366,14 +320,12 @@
outlined
dense
:disabled="blockedsettings.includes('variable_fps_min')"
hide-spin-buttons
></v-text-field>
hide-spin-buttons></v-text-field>
</settings-row>
<v-divider class="my-2"></v-divider>
<settings-row
:title="$t('Settings.TimelapseTab.VariableFpsMax')"
:sub-title="$t('Settings.TimelapseTab.VariableFpsMaxDescription')"
>
:sub-title="$t('Settings.TimelapseTab.VariableFpsMaxDescription')">
<v-text-field
v-model="variable_fps_max"
type="number"
@@ -382,16 +334,14 @@
outlined
dense
:disabled="blockedsettings.includes('variable_fps_max')"
hide-spin-buttons
></v-text-field>
hide-spin-buttons></v-text-field>
</settings-row>
</template>
<template v-else>
<v-divider class="my-2"></v-divider>
<settings-row
:title="$t('Settings.TimelapseTab.OutputFramerate')"
:sub-title="$t('Settings.TimelapseTab.OutputFramerateDescription')"
>
:sub-title="$t('Settings.TimelapseTab.OutputFramerateDescription')">
<v-text-field
v-model="output_framerate"
type="number"
@@ -400,15 +350,13 @@
outlined
dense
:disabled="blockedsettings.includes('output_framerate')"
hide-spin-buttons
></v-text-field>
hide-spin-buttons></v-text-field>
</settings-row>
</template>
<v-divider class="my-2"></v-divider>
<settings-row
:title="$t('Settings.TimelapseTab.duplicatelastframe')"
:sub-title="$t('Settings.TimelapseTab.duplicatelastframeDescription')"
>
:sub-title="$t('Settings.TimelapseTab.duplicatelastframeDescription')">
<v-text-field
v-model="duplicatelastframe"
type="number"
@@ -416,14 +364,12 @@
outlined
dense
:disabled="blockedsettings.includes('duplicatelastframe')"
hide-spin-buttons
></v-text-field>
hide-spin-buttons></v-text-field>
</settings-row>
<v-divider class="my-2"></v-divider>
<settings-row
:title="$t('Settings.TimelapseTab.ConstantRateFactor')"
:sub-title="$t('Settings.TimelapseTab.ConstantRateFactorDescription')"
>
:sub-title="$t('Settings.TimelapseTab.ConstantRateFactorDescription')">
<v-text-field
v-model="constant_rate_factor"
type="number"
@@ -431,50 +377,43 @@
outlined
dense
:disabled="blockedsettings.includes('constant_rate_factor')"
hide-spin-buttons
></v-text-field>
hide-spin-buttons></v-text-field>
</settings-row>
<v-divider class="my-2"></v-divider>
<settings-row
:title="$t('Settings.TimelapseTab.Pixelformat')"
:sub-title="$t('Settings.TimelapseTab.PixelformatDescription')"
>
:sub-title="$t('Settings.TimelapseTab.PixelformatDescription')">
<v-text-field
v-model="pixelformat"
type="text"
hide-details="auto"
outlined
dense
:disabled="blockedsettings.includes('pixelformat')"
></v-text-field>
:disabled="blockedsettings.includes('pixelformat')"></v-text-field>
</settings-row>
<v-divider class="my-2"></v-divider>
<settings-row
:title="$t('Settings.TimelapseTab.TimeFormatCode')"
:sub-title="$t('Settings.TimelapseTab.TimeFormatCodeDescription')"
>
:sub-title="$t('Settings.TimelapseTab.TimeFormatCodeDescription')">
<v-text-field
v-model="time_format_code"
type="text"
hide-details="auto"
outlined
dense
:disabled="blockedsettings.includes('time_format_code')"
></v-text-field>
:disabled="blockedsettings.includes('time_format_code')"></v-text-field>
</settings-row>
<v-divider class="my-2"></v-divider>
<settings-row
:title="$t('Settings.TimelapseTab.Extraoutputparams')"
:sub-title="$t('Settings.TimelapseTab.ExtraoutputparamsDescription')"
>
:sub-title="$t('Settings.TimelapseTab.ExtraoutputparamsDescription')">
<v-text-field
v-model="extraoutputparams"
type="text"
hide-details="auto"
outlined
dense
:disabled="blockedsettings.includes('extraoutputparams')"
></v-text-field>
:disabled="blockedsettings.includes('extraoutputparams')"></v-text-field>
</settings-row>
</v-card-text>
</v-card>
@@ -8,9 +8,9 @@
small
text
class="minwidth-0"
@click="logoColor = defaultLogoColor"
><v-icon small>mdi-restart</v-icon></v-btn
>
@click="logoColor = defaultLogoColor">
<v-icon small>mdi-restart</v-icon>
</v-btn>
<v-menu bottom left offset-y :close-on-content-click="false">
<template v-slot:activator="{ on, attrs }">
<v-btn v-bind="attrs" v-on="on" :color="logoColor" class="minwidth-0 px-5" small></v-btn>
@@ -19,8 +19,7 @@
:value="logoColor"
hide-mode-switch
mode="rgba"
@update:color="updateLogoColor"
></v-color-picker>
@update:color="updateLogoColor"></v-color-picker>
</v-menu>
</settings-row>
<v-divider class="my-2"></v-divider>
@@ -30,9 +29,9 @@
small
text
class="minwidth-0"
@click="primaryColor = defaultPrimaryColor"
><v-icon small>mdi-restart</v-icon></v-btn
>
@click="primaryColor = defaultPrimaryColor">
<v-icon small>mdi-restart</v-icon>
</v-btn>
<v-menu bottom left offset-y :close-on-content-click="false">
<template v-slot:activator="{ on, attrs }">
<v-btn v-bind="attrs" v-on="on" :color="primaryColor" class="minwidth-0 px-5" small></v-btn>
@@ -41,31 +40,28 @@
:value="primaryColor"
hide-mode-switch
mode="rgba"
@update:color="updatePrimaryColor"
></v-color-picker>
@update:color="updatePrimaryColor"></v-color-picker>
</v-menu>
</settings-row>
<v-divider class="my-2"></v-divider>
<settings-row
:title="$t('Settings.UiSettingsTab.GcodeThumbnails')"
:sub-title="$t('Settings.UiSettingsTab.GcodeThumbnailsDescription')"
:dynamicSlotWidth="true"
>
:dynamicSlotWidth="true">
<v-btn
outlined
small
color="primary"
href="https://docs.mainsail.xyz/quicktips/thumbnails"
target="_blank"
>{{ $t('Settings.UiSettingsTab.Guide') }}</v-btn
>
target="_blank">
{{ $t('Settings.UiSettingsTab.Guide') }}
</v-btn>
</settings-row>
<v-divider class="my-2"></v-divider>
<settings-row
:title="$t('Settings.UiSettingsTab.BoolBigThumbnail')"
:sub-title="$t('Settings.UiSettingsTab.BoolBigThumbnailDescription')"
:dynamicSlotWidth="true"
>
:dynamicSlotWidth="true">
<v-switch v-model="boolBigThumbnail" hide-details class="mt-0"></v-switch>
</settings-row>
<v-divider class="my-2"></v-divider>
@@ -76,24 +72,21 @@
<settings-row
:title="$t('Settings.UiSettingsTab.DisplayCANCEL_PRINT')"
:sub-title="$t('Settings.UiSettingsTab.DisplayCANCEL_PRINTDescription')"
:dynamicSlotWidth="true"
>
:dynamicSlotWidth="true">
<v-switch v-model="displayCancelPrint" hide-details class="mt-0"></v-switch>
</settings-row>
<v-divider class="my-2"></v-divider>
<settings-row
:title="$t('Settings.UiSettingsTab.DisplayZOffset')"
:sub-title="$t('Settings.UiSettingsTab.DisplayZOffsetDescription')"
:dynamicSlotWidth="true"
>
:dynamicSlotWidth="true">
<v-switch v-model="displayZOffsetStandby" hide-details class="mt-0"></v-switch>
</settings-row>
<v-divider class="my-2"></v-divider>
<settings-row
:title="$t('Settings.UiSettingsTab.LockSliders')"
:sub-title="$t('Settings.UiSettingsTab.LockSlidersDescription')"
:dynamicSlotWidth="true"
>
:dynamicSlotWidth="true">
<v-switch v-model="lockSliders" hide-details class="mt-0"></v-switch>
</settings-row>
<v-divider class="my-2"></v-divider>
@@ -102,8 +95,7 @@
v-show="lockSliders"
:title="$t('Settings.UiSettingsTab.LockSlidersDelay')"
:sub-title="$t('Settings.UiSettingsTab.LockSlidersDelayDescription')"
:dynamicSlotWidth="true"
>
:dynamicSlotWidth="true">
<v-text-field
class="mt-0"
prepend-icon="mdi-timer-outline"
@@ -118,31 +110,27 @@
hide-details
outlined
dense
hide-spin-buttons
></v-text-field>
hide-spin-buttons></v-text-field>
</settings-row>
</v-expand-transition>
<v-divider v-show="lockSliders" class="my-2"></v-divider>
<settings-row
:title="$t('Settings.UiSettingsTab.ConfirmOnEmergencyStop')"
:sub-title="$t('Settings.UiSettingsTab.ConfirmOnEmergencyStopDescription')"
:dynamicSlotWidth="true"
>
:dynamicSlotWidth="true">
<v-switch v-model="confirmOnEmergencyStop" hide-details class="mt-0"></v-switch>
</settings-row>
<v-divider class="my-2"></v-divider>
<settings-row
:title="$t('Settings.UiSettingsTab.ConfirmOnPowerDeviceChange')"
:sub-title="$t('Settings.UiSettingsTab.ConfirmOnPowerDeviceChangeDescription')"
:dynamicSlotWidth="true"
>
:dynamicSlotWidth="true">
<v-switch v-model="confirmOnPowerDeviceChange" hide-details class="mt-0"></v-switch>
</settings-row>
<v-divider class="my-2"></v-divider>
<settings-row
:title="$t('Settings.UiSettingsTab.NavigationStyle')"
:sub-title="$t('Settings.UiSettingsTab.NavigationStyleDescription')"
>
:sub-title="$t('Settings.UiSettingsTab.NavigationStyleDescription')">
<v-select
v-model="navigationStyleSetting"
:items="navigationStyles"
@@ -150,15 +138,13 @@
dense
hide-details
class="mt-0"
attach
></v-select>
attach></v-select>
</settings-row>
<v-divider class="my-2"></v-divider>
<settings-row
:title="$t('Settings.UiSettingsTab.BoolHideUploadAndPrintButton')"
:sub-title="$t('Settings.UiSettingsTab.BoolHideUploadAndPrintButtonDescription')"
:dynamicSlotWidth="true"
>
:dynamicSlotWidth="true">
<v-switch v-model="boolHideUploadAndPrintButton" hide-details class="mt-0"></v-switch>
</settings-row>
</v-card-text>
+16 -21
View File
@@ -7,15 +7,15 @@
<v-divider class="my-2"></v-divider>
<settings-row :title="webcam.name" :icon="webcam.icon" :sub-title="getSubtitle(webcam)">
<v-btn small outlined @click="editWebcam(webcam)">
<v-icon small left>mdi-pencil</v-icon> {{ $t('Settings.Edit') }}
<v-icon small left>mdi-pencil</v-icon>
{{ $t('Settings.Edit') }}
</v-btn>
<v-btn
small
outlined
@click="deleteWebcam(webcam.id)"
class="ml-3 minwidth-0 px-2"
color="error"
>
color="error">
<v-icon small>mdi-delete</v-icon>
</v-btn>
</settings-row>
@@ -45,8 +45,7 @@
color="transparent"
v-bind="attrs"
v-on="on"
elevation="0"
>
elevation="0">
<v-icon>{{ form.icon }}</v-icon>
</v-btn>
</template>
@@ -55,8 +54,7 @@
v-for="icon of iconItems"
v-bind:key="icon.value"
link
@click="setFormIcon(icon.value)"
>
@click="setFormIcon(icon.value)">
<v-list-item-icon class="mr-0">
<v-icon small>{{ icon.value }}</v-icon>
</v-list-item-icon>
@@ -74,8 +72,7 @@
:label="$t('Settings.WebcamsTab.Name')"
hide-details="auto"
:rules="[rules.required, rules.unique]"
dense
></v-text-field>
dense></v-text-field>
</v-col>
</v-row>
<v-row>
@@ -84,8 +81,9 @@
v-model="form.urlStream"
:label="$t('Settings.WebcamsTab.UrlStream')"
hide-details="auto"
:rules="form.service !== 'mjpegstreamer-adaptive' ? [rules.required] : []"
></v-text-field>
:rules="
form.service !== 'mjpegstreamer-adaptive' ? [rules.required] : []
"></v-text-field>
</v-col>
</v-row>
<v-row>
@@ -94,8 +92,9 @@
v-model="form.urlSnapshot"
:label="$t('Settings.WebcamsTab.UrlSnapshot')"
hide-details="auto"
:rules="form.service === 'mjpegstreamer-adaptive' ? [rules.required] : []"
></v-text-field>
:rules="
form.service === 'mjpegstreamer-adaptive' ? [rules.required] : []
"></v-text-field>
</v-col>
</v-row>
<v-row>
@@ -105,8 +104,7 @@
:items="serviceItems"
hide-details
:label="$t('Settings.WebcamsTab.Service')"
attach
></v-select>
attach></v-select>
</v-col>
</v-row>
<v-row v-if="form.service === 'mjpegstreamer-adaptive'">
@@ -114,8 +112,7 @@
<v-text-field
v-model="form.targetFps"
hide-details
:label="$t('Settings.WebcamsTab.TargetFPS')"
></v-text-field>
:label="$t('Settings.WebcamsTab.TargetFPS')"></v-text-field>
</v-col>
</v-row>
<v-row>
@@ -124,8 +121,7 @@
v-model="form.flipX"
hide-details
class="mt-1"
:label="$t('Settings.WebcamsTab.FlipHorizontally')"
></v-checkbox>
:label="$t('Settings.WebcamsTab.FlipHorizontally')"></v-checkbox>
</v-col>
</v-row>
<v-row>
@@ -134,8 +130,7 @@
v-model="form.flipY"
hide-details
class="mt-1"
:label="$t('Settings.WebcamsTab.FlipVertically')"
></v-checkbox>
:label="$t('Settings.WebcamsTab.FlipVertically')"></v-checkbox>
</v-col>
</v-row>
</v-col>
+19 -38
View File
@@ -8,15 +8,13 @@
xmlns:xlink="http://www.w3.org/1999/xlink"
xml:space="preserve"
xmlns:serif="http://www.serif.com/"
style="fill-rule: evenodd; clip-rule: evenodd; stroke-linejoin: round; stroke-miterlimit: 2"
>
style="fill-rule: evenodd; clip-rule: evenodd; stroke-linejoin: round; stroke-miterlimit: 2">
<g id="Mainsail" transform="matrix(1,0,0,1,10,0)">
<g id="Mainsail_text" transform="matrix(1,0,0,1,-54.2745,6.1424)">
<text
x="47.429px"
y="60.749px"
:style="'font-family:Roboto;font-size:16px;fill:rgb(' + colorMainsail + ');'"
>
:style="'font-family:Roboto;font-size:16px;fill:rgb(' + colorMainsail + ');'">
Mainsail
</text>
</g>
@@ -24,20 +22,17 @@
<g transform="matrix(0.101469,0,0,0.101469,1.34792,1.1764)">
<path
d="M286.718,107.235L99.735,392.115L0,392.01L258.225,0C264.135,36.795 273.9,73.26 286.718,107.235"
:style="'fill:rgb(' + colorMainsail + ');fill-rule:nonzero;'"
/>
:style="'fill:rgb(' + colorMainsail + ');fill-rule:nonzero;'" />
</g>
<g transform="matrix(0.101469,0,0,0.101469,1.34792,1.1764)">
<path
d="M309.96,160.155L156.375,392.19L256.08,392.332L357.353,237.585C339.518,213.218 323.648,187.328 309.96,160.155"
:style="'fill:rgb(' + colorMainsail + ');fill-rule:nonzero;'"
/>
:style="'fill:rgb(' + colorMainsail + ');fill-rule:nonzero;'" />
</g>
<g transform="matrix(0.101469,0,0,0.101469,1.34792,1.1764)">
<path
d="M449.535,335.768L412.597,392.332L312.75,392.115L388.95,276.862C407.61,298.012 427.868,317.707 449.535,335.767L449.535,335.768Z"
:style="'fill:rgb(' + colorMainsail + ');fill-rule:nonzero;'"
/>
:style="'fill:rgb(' + colorMainsail + ');fill-rule:nonzero;'" />
</g>
</g>
</g>
@@ -45,30 +40,25 @@
<g id="arrow_left1" serif:id="arrow_left" transform="matrix(0.687874,0,0,0.721154,20.3568,-15.8811)">
<path
d="M93.918,56.626L93.918,60.724L73.299,52.528L93.918,44.333L93.918,48.431L118.741,48.431L118.741,56.626L93.918,56.626Z"
:style="'fill:rgb(' + colorMoonraker + ')'"
/>
:style="'fill:rgb(' + colorMoonraker + ')'" />
</g>
<g
id="arrow_right1"
serif:id="arrow_right"
transform="matrix(-0.687874,-8.42403e-17,8.83159e-17,-0.721154,217.125,59.8811)"
>
transform="matrix(-0.687874,-8.42403e-17,8.83159e-17,-0.721154,217.125,59.8811)">
<path
d="M93.918,56.626L93.918,60.724L73.299,52.528L93.918,44.333L93.918,48.431L118.741,48.431L118.741,56.626L93.918,56.626Z"
:style="'fill:rgb(' + colorMoonraker + ')'"
/>
:style="'fill:rgb(' + colorMoonraker + ')'" />
</g>
<g id="success1" serif:id="success" transform="matrix(1.1,0,0,1.1,105.541,9.8)" v-if="moonraker">
<path
d="M20,12C20,16.389 16.389,20 12,20C7.611,20 4,16.389 4,12C4,7.611 7.611,4 12,4C12.76,4 13.5,4.11 14.2,4.31L15.77,2.74C14.61,2.26 13.34,2 12,2C6.514,2 2,6.514 2,12C2,17.486 6.514,22 12,22C17.486,22 22,17.486 22,12M7.91,10.08L6.5,11.5L11,16L21,6L19.59,4.58L11,13.17L7.91,10.08Z"
style="fill: rgb(38, 203, 124); fill-rule: nonzero"
/>
style="fill: rgb(38, 203, 124); fill-rule: nonzero" />
</g>
<g id="alert1" serif:id="alert" transform="matrix(1.1,0,0,1.1,105.541,9.8)" v-else>
<path
d="M11,15L13,15L13,17L11,17L11,15M11,7L13,7L13,13L11,13L11,7M12,2C6.47,2 2,6.5 2,12C2,17.486 6.514,22 12,22C17.486,22 22,17.486 22,12C22,6.514 17.486,2 12,2M12,20C7.611,20 4,16.389 4,12C4,7.611 7.611,4 12,4C16.389,4 20,7.611 20,12C20,16.389 16.389,20 12,20Z"
style="fill: rgb(245, 124, 5); fill-rule: nonzero"
/>
style="fill: rgb(245, 124, 5); fill-rule: nonzero" />
</g>
</g>
<g id="Moonraker" transform="matrix(1,0,0,1,10,0)">
@@ -76,51 +66,44 @@
<text
x="45.429px"
y="60.749px"
:style="'fill:rgb(' + colorMoonraker + ');font-family:Roboto;font-size:16px;'"
>
:style="'fill:rgb(' + colorMoonraker + ');font-family:Roboto;font-size:16px;'">
Moonraker
</text>
</g>
<g id="Moonraker_icon" transform="matrix(2,0,0,2,181,-5)">
<path
d="M13,19L14,19C14.549,19 15,19.451 15,20L22,20L22,22L15,22C15,22.549 14.549,23 14,23L10,23C9.451,23 9,22.549 9,22L2,22L2,20L9,20C9,19.451 9.451,19 10,19L11,19L11,17L4,17C3.451,17 3,16.549 3,16L3,12C3,11.451 3.451,11 4,11L20,11C20.549,11 21,11.451 21,12L21,16C21,16.549 20.549,17 20,17L13,17L13,19M4,3L20,3C20.549,3 21,3.451 21,4L21,8C21,8.549 20.549,9 20,9L4,9C3.451,9 3,8.549 3,8L3,4C3,3.451 3.451,3 4,3M9,7L10,7L10,5L9,5L9,7M9,15L10,15L10,13L9,13L9,15M5,5L5,7L7,7L7,5L5,5M5,13L5,15L7,15L7,13L5,13Z"
:style="'fill:rgb(' + colorMoonraker + ');fill-rule:nonzero;'"
/>
:style="'fill:rgb(' + colorMoonraker + ');fill-rule:nonzero;'" />
</g>
</g>
<g id="Moonraker_Klipper" transform="matrix(1,0,0,1,194.593,0)">
<g id="arrow_left" transform="matrix(0.687874,0,0,0.721154,20.3568,-15.8811)">
<path
d="M93.918,56.626L93.918,60.724L73.299,52.528L93.918,44.333L93.918,48.431L118.741,48.431L118.741,56.626L93.918,56.626Z"
style="fill: rgb(115, 115, 115)"
/>
style="fill: rgb(115, 115, 115)" />
</g>
<g id="arrow_right" transform="matrix(-0.687874,-8.42403e-17,8.83159e-17,-0.721154,217.125,59.8811)">
<path
d="M93.918,56.626L93.918,60.724L73.299,52.528L93.918,44.333L93.918,48.431L118.741,48.431L118.741,56.626L93.918,56.626Z"
style="fill: rgb(115, 115, 115)"
/>
style="fill: rgb(115, 115, 115)" />
</g>
<template v-if="moonraker">
<g id="success" transform="matrix(1.1,0,0,1.1,105.541,9.8)" v-if="klipper">
<path
d="M20,12C20,16.389 16.389,20 12,20C7.611,20 4,16.389 4,12C4,7.611 7.611,4 12,4C12.76,4 13.5,4.11 14.2,4.31L15.77,2.74C14.61,2.26 13.34,2 12,2C6.514,2 2,6.514 2,12C2,17.486 6.514,22 12,22C17.486,22 22,17.486 22,12M7.91,10.08L6.5,11.5L11,16L21,6L19.59,4.58L11,13.17L7.91,10.08Z"
style="fill: rgb(38, 203, 124); fill-rule: nonzero"
/>
style="fill: rgb(38, 203, 124); fill-rule: nonzero" />
</g>
<g id="alert" transform="matrix(1.1,0,0,1.1,105.541,9.8)" v-else>
<path
d="M11,15L13,15L13,17L11,17L11,15M11,7L13,7L13,13L11,13L11,7M12,2C6.47,2 2,6.5 2,12C2,17.486 6.514,22 12,22C17.486,22 22,17.486 22,12C22,6.514 17.486,2 12,2M12,20C7.611,20 4,16.389 4,12C4,7.611 7.611,4 12,4C16.389,4 20,7.611 20,12C20,16.389 16.389,20 12,20Z"
style="fill: rgb(245, 124, 5); fill-rule: nonzero"
/>
style="fill: rgb(245, 124, 5); fill-rule: nonzero" />
</g>
</template>
<template v-else>
<g id="unknown" transform="matrix(1.1,0,0,1.1,105.541,9.8)">
<path
d="M11,18L13,18L13,16L11,16L11,18M12,2C6.514,2 2,6.514 2,12C2,17.486 6.514,22 12,22C17.486,22 22,17.486 22,12C22,6.514 17.486,2 12,2M12,20C7.59,20 4,16.41 4,12C4,7.59 7.59,4 12,4C16.41,4 20,7.59 20,12C20,16.41 16.41,20 12,20M12,6C9.806,6 8,7.806 8,10L10,10C10,8.903 10.903,8 12,8C13.097,8 14,8.903 14,10C14,12 11,11.75 11,15L13,15C13,12.75 16,12.5 16,10C16,7.806 14.194,6 12,6Z"
style="fill: rgb(115, 115, 115); fill-rule: nonzero"
/>
style="fill: rgb(115, 115, 115); fill-rule: nonzero" />
</g>
</template>
</g>
@@ -129,16 +112,14 @@
<text
x="48.429px"
y="60.749px"
:style="'font-family:Roboto;font-size:16px;fill:rgb(' + colorKlipper + ');'"
>
:style="'font-family:Roboto;font-size:16px;fill:rgb(' + colorKlipper + ');'">
Klipper
</text>
</g>
<g id="Klipper_icon" transform="matrix(2,0,0,2,366,-3)">
<path
d="M19,6C19.549,6 20,5.549 20,5C20,4.451 19.549,4 19,4C18.451,4 18,4.451 18,5C18,5.549 18.451,6 19,6M19,2C20.646,2 22,3.354 22,5L22,11L18,11L18,7L6,7L6,11L2,11L2,5C2,3.354 3.354,2 5,2L19,2M18,18.25C18,18.63 17.79,18.96 17.47,19.13L12.57,21.82C12.4,21.94 12.21,22 12,22C11.79,22 11.59,21.94 11.43,21.82L6.53,19.13C6.21,18.96 6,18.63 6,18.25L6,13C6,12.62 6.21,12.29 6.53,12.12L11.43,9.68C11.59,9.56 11.79,9.5 12,9.5C12.21,9.5 12.4,9.56 12.57,9.68L17.47,12.12C17.79,12.29 18,12.62 18,13L18,18.25M12,11.65L9.04,13L12,14.6L14.96,13L12,11.65M8,17.66L11,19.29L11,16.33L8,14.71L8,17.66M16,17.66L16,14.71L13,16.33L13,19.29L16,17.66Z"
:style="'fill:rgb(' + colorKlipper + ');fill-rule:nonzero;'"
/>
:style="'fill:rgb(' + colorKlipper + ');fill-rule:nonzero;'" />
</g>
</g>
</svg>
Loaded 100 of 108 files, more files were not shown because too many files have changed in this diff. Show more