Compare commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
6a7f2f56a4 | ||
|
|
47feaef671 | ||
|
|
0e4d104d20 | ||
|
|
9665fb9a38 | ||
|
|
b0cdbb48f3 | ||
|
|
52d0ea4ec5 | ||
|
|
c42f09acc9 | ||
|
|
1a6969eeea | ||
|
|
a3a71c8f15 | ||
|
|
3e49847fc3 | ||
|
|
6703721593 | ||
|
|
f3c42954f1 | ||
|
|
1bbbc0c0a8 | ||
|
|
2f868b537d | ||
|
|
c1a50180d0 | ||
|
|
3743023514 | ||
|
|
a798d8973c | ||
|
|
328530a6a3 | ||
|
|
43dc843eca | ||
|
|
92438bf8a7 | ||
|
|
e0e90bcdaf | ||
|
|
6a2a1baaab | ||
|
|
2a924bcd27 | ||
|
|
cec3a9fe33 | ||
|
|
b3ce868dec | ||
|
|
c904b7ba71 | ||
|
|
a8bf9e9559 | ||
|
|
3b5d7f146b | ||
|
|
6b9b69501a | ||
|
|
57a53b5ac3 | ||
|
|
c65527ddf2 | ||
|
|
22ccab831b | ||
|
|
0f94e80135 | ||
|
|
d29ce0a4f0 | ||
|
|
8782c89d71 | ||
|
|
b6fe84f19d | ||
|
|
051b89662b | ||
|
|
e7eb94faa1 | ||
|
|
2b7bf2a3f4 | ||
|
|
9c4fb547b5 | ||
|
|
727fc722af | ||
|
|
1a32147d68 | ||
|
|
380f3c1b6d | ||
|
|
7ac6a723b4 | ||
|
|
712d68136b | ||
|
|
034ff81e49 | ||
|
|
c2ecc845ca | ||
|
|
e21439d061 | ||
|
|
41fa1d98ca | ||
|
|
655d2fd339 | ||
|
|
0735ed37a9 | ||
|
|
d96070f336 | ||
|
|
d259abb749 | ||
|
|
3e06c5fd66 | ||
|
|
288e5110f4 | ||
|
|
41ca5244cc | ||
|
|
3d4b5451ae | ||
|
|
dc17ff1158 | ||
|
|
de23cb6243 | ||
|
|
94d7f0dc16 | ||
|
|
45c52e3571 | ||
|
|
03640e239b | ||
|
|
4c24fa7284 | ||
|
|
12483ee63b | ||
|
|
bae712540e | ||
|
|
31664b5f38 | ||
|
|
ba5aea2b88 | ||
|
|
a6e38df012 | ||
|
|
bc0018dadc | ||
|
|
1a659d30d2 | ||
|
|
d0bf0bde11 | ||
|
|
d87fe4173d |
No files matched your search
@@ -49,7 +49,7 @@ jobs:
|
||||
- name: Build and push Docker image
|
||||
uses: docker/build-push-action@v2
|
||||
with:
|
||||
platforms: linux/amd64,linux/arm64,linux/arm/v7
|
||||
platforms: linux/amd64,linux/arm64,linux/arm/v7,linux/arm/v6
|
||||
push: ${{ github.event_name != 'pull_request' }}
|
||||
tags: ${{ steps.meta.outputs.tags }}
|
||||
labels: ${{ steps.meta.outputs.labels }}
|
||||
@@ -0,0 +1,145 @@
|
||||
name: Release
|
||||
|
||||
on:
|
||||
workflow_dispatch:
|
||||
inputs:
|
||||
version:
|
||||
type: string
|
||||
description: New version number in X.Y.Z
|
||||
required: true
|
||||
|
||||
jobs:
|
||||
push-version-number:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Clone develop repository
|
||||
uses: actions/checkout@v3
|
||||
with:
|
||||
token: ${{ secrets.PAT }}
|
||||
ref: 'develop'
|
||||
|
||||
- name: get-npm-version
|
||||
id: package-version
|
||||
uses: martinbeentjes/npm-get-version-action@main
|
||||
|
||||
- name: Push version number
|
||||
if: steps.package-version.outputs.current-version != github.event.inputs.version
|
||||
shell: bash
|
||||
run: |
|
||||
npm version --no-git-tag-version ${{ github.event.inputs.version }}
|
||||
|
||||
- name: git add & commit & push
|
||||
if: steps.package-version.outputs.current-version != github.event.inputs.version
|
||||
uses: EndBug/add-and-commit@v9
|
||||
with:
|
||||
add: 'package.json package-lock.json'
|
||||
default_author: github_actions
|
||||
message: 'chore: push version number to v${{ github.event.inputs.version }}'
|
||||
push: true
|
||||
|
||||
update-master-branch:
|
||||
needs: ['push-version-number']
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: everlytic/branch-merge@1.1.5
|
||||
with:
|
||||
github_token: ${{ secrets.PAT }}
|
||||
source_ref: 'develop'
|
||||
target_branch: 'master'
|
||||
commit_message_template: '[Automated] Merged {source_ref} into target {target_branch}'
|
||||
|
||||
release:
|
||||
needs: ['update-master-branch']
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Fetch repo
|
||||
uses: actions/checkout@v3
|
||||
with:
|
||||
ref: 'master'
|
||||
fetch-depth: 0
|
||||
|
||||
- name: Install node
|
||||
uses: actions/setup-node@v3
|
||||
with:
|
||||
node-version: 18
|
||||
|
||||
- name: Install dependencies
|
||||
run: npm ci
|
||||
|
||||
- name: Build
|
||||
run: npm run build
|
||||
|
||||
- name: Move build out of dist
|
||||
shell: bash
|
||||
run: mv ./dist/mainsail.zip ./mainsail.zip
|
||||
|
||||
- name: Get latest tag
|
||||
id: latest_tag
|
||||
shell: bash
|
||||
run: |
|
||||
echo "TAG_NAME=$(git describe --tags $(git rev-list --tags --max-count=1))" >> $GITHUB_OUTPUT
|
||||
|
||||
- name: Generate a changelog
|
||||
uses: orhun/git-cliff-action@v1
|
||||
id: generate-changelog
|
||||
with:
|
||||
config: ./cliff-release.toml
|
||||
args: ${{ steps.latest_tag.outputs.TAG_NAME }}..HEAD
|
||||
|
||||
- name: Create release and upload build
|
||||
uses: softprops/action-gh-release@v1
|
||||
id: create-release
|
||||
with:
|
||||
name: v${{ github.event.inputs.version }}
|
||||
tag_name: v${{ github.event.inputs.version }}
|
||||
token: ${{ secrets.GITHUB_TOKEN }}
|
||||
files: ./mainsail.zip
|
||||
body: ${{ steps.generate-changelog.outputs.content }}
|
||||
|
||||
- name: Copy remote configs to dist
|
||||
shell: bash
|
||||
run: cp ./remote/* ./dist/
|
||||
|
||||
- name: Upload to remote server
|
||||
uses: SamKirkland/FTP-Deploy-Action@4.3.3
|
||||
with:
|
||||
server: ${{ secrets.REMOTEHOST }}
|
||||
username: ${{ secrets.REMOTEUSER }}
|
||||
password: ${{ secrets.REMOTEPASSWORD }}
|
||||
dangerous-clean-slate: true
|
||||
local-dir: ./dist/
|
||||
|
||||
update-changelog:
|
||||
needs: ['release']
|
||||
name: Generate changelog
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v3
|
||||
with:
|
||||
ref: 'develop'
|
||||
token: ${{ secrets.PAT }}
|
||||
fetch-depth: 0
|
||||
|
||||
- name: Get latest tag
|
||||
id: latest_tag
|
||||
shell: bash
|
||||
run: |
|
||||
echo "TAG_NAME=$(git describe --tags $(git rev-list --tags --max-count=1))" >> $GITHUB_OUTPUT
|
||||
|
||||
- name: Generate a changelog
|
||||
uses: orhun/git-cliff-action@v1
|
||||
id: git-cliff
|
||||
with:
|
||||
config: cliff.toml
|
||||
args: v0.0.4..${{ steps.latest_tag.outputs.TAG_NAME }}
|
||||
env:
|
||||
OUTPUT: ${{ github.workspace }}/CHANGELOG.md
|
||||
|
||||
- name: Show CHANGELOG
|
||||
run: |
|
||||
cat CHANGELOG.md
|
||||
- uses: stefanzweifel/git-auto-commit-action@v4
|
||||
with:
|
||||
commit_message: 'docs(changelog): update changelog'
|
||||
file_pattern: CHANGELOG.md
|
||||
@@ -1,42 +0,0 @@
|
||||
name: Update changelog
|
||||
|
||||
on:
|
||||
# Update the changelog after pushing a new tag
|
||||
push:
|
||||
tags:
|
||||
- '*'
|
||||
|
||||
# Update the changelog by invoking this workflow manually
|
||||
workflow_dispatch:
|
||||
|
||||
jobs:
|
||||
changelog:
|
||||
name: Generate changelog
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v3
|
||||
with:
|
||||
fetch-depth: 0
|
||||
- name: Get latest tag
|
||||
run: |
|
||||
echo "::set-output name=TAG_NAME::$(git describe --tags $(git rev-list --tags --max-count=1))"
|
||||
id: latest_tag
|
||||
- name: Generate a changelog
|
||||
uses: orhun/git-cliff-action@v1
|
||||
id: git-cliff
|
||||
with:
|
||||
config: cliff.toml
|
||||
args: v0.0.4..${{ steps.latest_tag.outputs.TAG_NAME }}
|
||||
env:
|
||||
OUTPUT: CHANGELOG.md
|
||||
|
||||
- name: show CHANGELOG
|
||||
run: |
|
||||
cat CHANGELOG.md
|
||||
|
||||
- uses: stefanzweifel/git-auto-commit-action@v4
|
||||
with:
|
||||
commit_message: 'chore(changelog): update changelog'
|
||||
file_pattern: CHANGELOG.md
|
||||
branch: develop
|
||||
@@ -10,6 +10,7 @@ temp
|
||||
.versions
|
||||
.changelog
|
||||
.idea
|
||||
.vscode
|
||||
package-lock.json
|
||||
*.local
|
||||
.env
|
||||
|
||||
+748
-214
File diff suppressed because it is too large.
Load diff
@@ -84,6 +84,14 @@ Do you need help or just want to talk? Join our active community on [Discord](ht
|
||||
Did you find a bug or did you thought of a feature?
|
||||
Please create an [Issue](https://github.com/mainsail-crew/mainsail/issues) in GitHub and let us know.
|
||||
|
||||
## Official Sponsors
|
||||
|
||||
<p align='center'>
|
||||
<img src="https://raw.githubusercontent.com/mainsail-crew/docs/master/assets/img/logo-bigtreetech.png" alt='Mainsail logo' width="150">
|
||||
</p>
|
||||
|
||||
**BIGTREETECH** is the official mainboard partner of Mainsail. BIGTREETECH is committed to developing innovative and competitive products to better serve the 3D printing community.
|
||||
|
||||
## Support Mainsail
|
||||
|
||||
Mainsail is primarily developed and maintained by meteyou. To keep the project going he invests his free time, almost
|
||||
|
||||
@@ -0,0 +1,68 @@
|
||||
# configuration file for git-cliff (0.1.0)
|
||||
|
||||
[changelog]
|
||||
# changelog header
|
||||
header = """
|
||||
# What's Changed
|
||||
"""
|
||||
# template for the changelog body
|
||||
# https://tera.netlify.app/docs/#introduction
|
||||
body = """
|
||||
{% for group, commits in commits | group_by(attribute="group") %}\
|
||||
### {{ group | split(pat="$") | last | upper_first }}
|
||||
{% for commit in commits
|
||||
| filter(attribute="scope")
|
||||
| sort(attribute="scope") %}
|
||||
- **{{commit.scope}}**: {{ commit.message | upper_first | trim }} | [{{ commit.id | truncate(length=7, end="") }}]({{ commit.id }})\
|
||||
{%- if commit.breaking %}
|
||||
{% raw %} {% endraw %}- **BREAKING**: {{commit.breaking_description}}
|
||||
{%- endif -%}
|
||||
|
||||
{%- endfor -%}
|
||||
{%- for commit in commits %}
|
||||
{%- if commit.scope -%}
|
||||
{% else -%}
|
||||
{% raw %}\n{% endraw %}\
|
||||
- {{ commit.message | upper_first | trim }} | [{{ commit.id | truncate(length=7, end="") }}]({{ commit.id }})\
|
||||
{%- if commit.breaking %}
|
||||
{% raw %} {% endraw %}- **BREAKING**: {{commit.breaking_description}}
|
||||
{%- endif -%}
|
||||
|
||||
{% endif -%}
|
||||
{% endfor -%}
|
||||
{% raw %}\n{% endraw %}
|
||||
{% endfor %}\n\
|
||||
"""
|
||||
# remove the leading and trailing whitespaces from the template
|
||||
trim = true
|
||||
# changelog footer
|
||||
footer = """
|
||||
"""
|
||||
|
||||
[git]
|
||||
# allow only conventional commits
|
||||
# https://www.conventionalcommits.org
|
||||
conventional_commits = true
|
||||
filter_unconventional = true
|
||||
# regex for parsing and grouping commits
|
||||
commit_parsers = [
|
||||
{ message = "^docs\\(changelog\\):", group = "Changelog", skip = true}, # Old redundant commits
|
||||
{ message = "^chore\\(changelog\\): update changelog", group = "Changelog", skip = true}, # Old redundant commits
|
||||
{ message = "^chore: push version number to", group = "9$Other", skip = true}, # Old redundant commits
|
||||
{ message = "^feat(\\(.*\\))?:", group = "1$Features"},
|
||||
{ message = "^feature(\\(.*\\))?:", group = "1$Features"},
|
||||
{ message = "^fix(\\(.*\\))?:", group = "2$Bug Fixes and Improvements"},
|
||||
{ message = "^docs(\\(.*\\))?:", group = "7$Documentation"},
|
||||
{ message = "^perf(\\(.*\\))?:", group = "3$Performance"},
|
||||
{ message = "^refactor(\\(.*\\))?:", group = "4$Refactor"},
|
||||
{ message = "^style(\\(.*\\))?:", group = "5$Styling"},
|
||||
{ message = "^test(\\(.*\\))?:", group = "9$Other"},
|
||||
{ message = "^locale(\\(.*\\))?:", group = "6$Localization"},
|
||||
{ message = "^chore(\\(.*\\))?:", group = "9$Other"},
|
||||
{ body = ".*security", group = "Security"},
|
||||
]
|
||||
# filter out the commits that are not matched by commit parsers
|
||||
filter_commits = true
|
||||
ignore_tags="v*-(beta|rc)*"
|
||||
# glob pattern for matching git tags
|
||||
tag_pattern = "v[0-9]*"
|
||||
+14
-14
@@ -17,7 +17,7 @@ body = """
|
||||
## [unreleased]
|
||||
{% endif %}\
|
||||
{% for group, commits in commits | group_by(attribute="group") %}\
|
||||
### {{ group | upper_first }}
|
||||
### {{ group | split(pat="$") | last | upper_first }}
|
||||
{% for commit in commits
|
||||
| filter(attribute="scope")
|
||||
| sort(attribute="scope") %}
|
||||
@@ -25,7 +25,6 @@ body = """
|
||||
{%- if commit.breaking %}
|
||||
{% raw %} {% endraw %}- **BREAKING**: {{commit.breaking_description}}
|
||||
{%- endif -%}
|
||||
|
||||
{%- endfor -%}
|
||||
{%- for commit in commits %}
|
||||
{%- if commit.scope -%}
|
||||
@@ -35,7 +34,6 @@ body = """
|
||||
{%- if commit.breaking %}
|
||||
{% raw %} {% endraw %}- **BREAKING**: {{commit.breaking_description}}
|
||||
{%- endif -%}
|
||||
|
||||
{% endif -%}
|
||||
{% endfor -%}
|
||||
{% raw %}\n{% endraw %}
|
||||
@@ -55,16 +53,18 @@ filter_unconventional = false
|
||||
# regex for parsing and grouping commits
|
||||
commit_parsers = [
|
||||
{ message = "^docs\\(changelog\\):", group = "Changelog", skip = true}, # Old redundant commits
|
||||
{ message = "^feat(\\(.*\\))?:", group = "Features"},
|
||||
{ message = "^feature(\\(.*\\))?:", group = "Features"},
|
||||
{ message = "^fix(\\(.*\\))?:", group = "Bug Fixes"},
|
||||
{ message = "^docs(\\(.*\\))?:", group = "Documentation"},
|
||||
{ message = "^perf(\\(.*\\))?:", group = "Performance"},
|
||||
{ message = "^refactor(\\(.*\\))?:", group = "Refactor"},
|
||||
{ message = "^style(\\(.*\\))?:", group = "Styling"},
|
||||
{ message = "^test(\\(.*\\))?:", group = "Testing"},
|
||||
{ message = "^locale(\\(.*\\))?:", group = "Localization"},
|
||||
{ message = "^chore(\\(.*\\))?:", group = "Miscellaneous Tasks", skip = true}, # chore tasks are not relevant for the changelog
|
||||
{ message = "^chore\\(changelog\\): update changelog", group = "Changelog", skip = true}, # Old redundant commits
|
||||
{ message = "^chore: push version number to", group = "9$Other", skip = true}, # Old redundant commits
|
||||
{ message = "^feat(\\(.*\\))?:", group = "1$Features"},
|
||||
{ message = "^feature(\\(.*\\))?:", group = "1$Features"},
|
||||
{ message = "^fix(\\(.*\\))?:", group = "2$Bug Fixes and Improvements"},
|
||||
{ message = "^docs(\\(.*\\))?:", group = "7$Documentation"},
|
||||
{ message = "^perf(\\(.*\\))?:", group = "3$Performance"},
|
||||
{ message = "^refactor(\\(.*\\))?:", group = "4$Refactor"},
|
||||
{ message = "^style(\\(.*\\))?:", group = "5$Styling"},
|
||||
{ message = "^test(\\(.*\\))?:", group = "9$Other"},
|
||||
{ message = "^locale(\\(.*\\))?:", group = "6$Localization"},
|
||||
{ message = "^chore(\\(.*\\))?:", group = "9$Other"},
|
||||
{ body = ".*security", group = "Security"},
|
||||
{ message = "release v2.1.2", group = "Release"}, # workaround for v2.1.2 release
|
||||
]
|
||||
@@ -72,4 +72,4 @@ commit_parsers = [
|
||||
filter_commits = true
|
||||
ignore_tags="v*-(beta|rc)*"
|
||||
# glob pattern for matching git tags
|
||||
tag_pattern = "v[0-9]*"
|
||||
tag_pattern = "v[0-9]*"
|
||||
Generated
+143
-119
@@ -1,12 +1,12 @@
|
||||
{
|
||||
"name": "mainsail",
|
||||
"version": "2.4.0",
|
||||
"version": "2.5.0",
|
||||
"lockfileVersion": 2,
|
||||
"requires": true,
|
||||
"packages": {
|
||||
"": {
|
||||
"name": "mainsail",
|
||||
"version": "2.4.0",
|
||||
"version": "2.5.0",
|
||||
"dependencies": {
|
||||
"@codemirror/commands": "^6.0.1",
|
||||
"@codemirror/lang-css": "^6.0.0",
|
||||
@@ -18,7 +18,7 @@
|
||||
"@codemirror/view": "^6.0.3",
|
||||
"@jaames/iro": "^5.5.2",
|
||||
"@lezer/highlight": "^1.0.0",
|
||||
"@sindarius/gcodeviewer": "^3.1.4",
|
||||
"@sindarius/gcodeviewer": "^3.2.2",
|
||||
"@types/node": "^18.0.0",
|
||||
"@types/overlayscrollbars": "^1.12.1",
|
||||
"axios": "^0.27.0",
|
||||
@@ -26,6 +26,7 @@
|
||||
"core-js": "^3.16.0",
|
||||
"echarts": "^5.2.2",
|
||||
"echarts-gl": "^2.0.8",
|
||||
"hls.js": "^1.3.3",
|
||||
"js-sha256": "^0.9.0",
|
||||
"lodash.kebabcase": "^4.1.1",
|
||||
"lodash.throttle": "^4.1.1",
|
||||
@@ -52,6 +53,7 @@
|
||||
"devDependencies": {
|
||||
"@intlify/vite-plugin-vue-i18n": "^2.5.0",
|
||||
"@mdi/js": "^7.0.0",
|
||||
"@types/file-saver": "^2.0.5",
|
||||
"@types/lodash.kebabcase": "^4.1.6",
|
||||
"@types/lodash.throttle": "^4.1.6",
|
||||
"@types/semver": "^7.3.8",
|
||||
@@ -1898,23 +1900,23 @@
|
||||
}
|
||||
},
|
||||
"node_modules/@babylonjs/core": {
|
||||
"version": "5.28.0",
|
||||
"resolved": "https://registry.npmjs.org/@babylonjs/core/-/core-5.28.0.tgz",
|
||||
"integrity": "sha512-muHxtHlQmkd8bH5VrF7iDDF4R1qxtzf3jsHLd+IdIJbKjbB1HDCJwekPROLHUA/GbPpb0F3Q4QGk2oixm1R9uQ=="
|
||||
"version": "5.41.0",
|
||||
"resolved": "https://registry.npmjs.org/@babylonjs/core/-/core-5.41.0.tgz",
|
||||
"integrity": "sha512-PrY12n9IOql+9P/bFhEI7WTUqneTI0W9+ROKkwallqtTYku3XV7O5E7BXpdLJwrB/VufKApu6ErNoUb9Zhj9Cg=="
|
||||
},
|
||||
"node_modules/@babylonjs/gui": {
|
||||
"version": "5.28.0",
|
||||
"resolved": "https://registry.npmjs.org/@babylonjs/gui/-/gui-5.28.0.tgz",
|
||||
"integrity": "sha512-iXY9s6HDi4g6s9EjCoTYHB5RM2PCeEw2Oy/8U+9zvrUCKVUC9ec0FSVsQRxKloaI8XpNY0iBVj0N98Lvh89u/A==",
|
||||
"version": "5.41.0",
|
||||
"resolved": "https://registry.npmjs.org/@babylonjs/gui/-/gui-5.41.0.tgz",
|
||||
"integrity": "sha512-eWoAb/TLM1+ANHVjSSx8VW6BfjCr6CTnQwKonKaOUcXtkjm0W0eAAd2BTTYbV3a5KoYxAnrYtZJT9YcxSPWG6Q==",
|
||||
"peer": true,
|
||||
"peerDependencies": {
|
||||
"@babylonjs/core": "^5.22.0"
|
||||
}
|
||||
},
|
||||
"node_modules/@babylonjs/gui-editor": {
|
||||
"version": "5.28.0",
|
||||
"resolved": "https://registry.npmjs.org/@babylonjs/gui-editor/-/gui-editor-5.28.0.tgz",
|
||||
"integrity": "sha512-E8Db3QWT+wmeTr9mMOI6XNtLG9k7z7k4bGDOvx94jD4iEQBcHJJCZpWjC3+Fdk6auaGlqq93JCtl7cWprntRdA==",
|
||||
"version": "5.41.0",
|
||||
"resolved": "https://registry.npmjs.org/@babylonjs/gui-editor/-/gui-editor-5.41.0.tgz",
|
||||
"integrity": "sha512-rm2MvwlMw+Tpwsu9xPveDKCK44DKKAfCbvPCHz6rD2Vp1pqj7Yml1ExIrOQvzehHX/lT0WCaT0Ur58413215yg==",
|
||||
"peer": true,
|
||||
"peerDependencies": {
|
||||
"@babylonjs/core": "^5.22.0",
|
||||
@@ -1924,9 +1926,9 @@
|
||||
}
|
||||
},
|
||||
"node_modules/@babylonjs/inspector": {
|
||||
"version": "5.28.0",
|
||||
"resolved": "https://registry.npmjs.org/@babylonjs/inspector/-/inspector-5.28.0.tgz",
|
||||
"integrity": "sha512-YQNGxqaFPa2Z/dMgxkUYCG+k4OSZrUMUwBVgzeRtELmAv9VVe3/GXEg60l2r1UuzUBA5NPPo1ZGhlwyYtWN4dw==",
|
||||
"version": "5.41.0",
|
||||
"resolved": "https://registry.npmjs.org/@babylonjs/inspector/-/inspector-5.41.0.tgz",
|
||||
"integrity": "sha512-oVsQVVnkRBfdWfMLwnBPAp3zajoQYspVbdbuxjGs67xfnPinj13RYVuUhx51hhacKTwOkMhYRzhfEdO1oCcwjg==",
|
||||
"dependencies": {
|
||||
"@fortawesome/fontawesome-svg-core": "^6.1.0",
|
||||
"@fortawesome/free-regular-svg-icons": "^6.0.0",
|
||||
@@ -1944,26 +1946,26 @@
|
||||
}
|
||||
},
|
||||
"node_modules/@babylonjs/loaders": {
|
||||
"version": "5.28.0",
|
||||
"resolved": "https://registry.npmjs.org/@babylonjs/loaders/-/loaders-5.28.0.tgz",
|
||||
"integrity": "sha512-N7B46skjG57frEm/h+zAR9cWswj9DV+byyy8Ttap0fu53y3Oe+b/v8wpoqriEbrHCR7JAlHtylMZa7ltkFQSGg==",
|
||||
"version": "5.41.0",
|
||||
"resolved": "https://registry.npmjs.org/@babylonjs/loaders/-/loaders-5.41.0.tgz",
|
||||
"integrity": "sha512-a4zHmmk26Cn22S3eL+wkY2pRCFB2pLmBNHZ0CTD+Xv0S4Ctdj3HHC1Q+lgO3z7I40uM8jb5xdoG0+uTIwTm+RQ==",
|
||||
"peerDependencies": {
|
||||
"@babylonjs/core": "^5.22.0",
|
||||
"babylonjs-gltf2interface": "^5.22.0"
|
||||
}
|
||||
},
|
||||
"node_modules/@babylonjs/materials": {
|
||||
"version": "5.28.0",
|
||||
"resolved": "https://registry.npmjs.org/@babylonjs/materials/-/materials-5.28.0.tgz",
|
||||
"integrity": "sha512-Hiw7Qj2TFqUEP0F/vHxNlZ6rZH6XjI0/E1Kpx3WzrOgGEbwv6YNDLzIsfZ8PA8eTiq3CZnKHB/6x4l4fXYzxWw==",
|
||||
"version": "5.41.0",
|
||||
"resolved": "https://registry.npmjs.org/@babylonjs/materials/-/materials-5.41.0.tgz",
|
||||
"integrity": "sha512-b5p94ATWc0e2E3xsWk6GG7jh3NUnOwy21rlYMhdc1TTTL16+BOtKoe9ju7Amv8VfwMubqLF+nMvZcJRBQWVreA==",
|
||||
"peerDependencies": {
|
||||
"@babylonjs/core": "^5.22.0"
|
||||
}
|
||||
},
|
||||
"node_modules/@babylonjs/serializers": {
|
||||
"version": "5.28.0",
|
||||
"resolved": "https://registry.npmjs.org/@babylonjs/serializers/-/serializers-5.28.0.tgz",
|
||||
"integrity": "sha512-hGDFoh50dKmmbJjqRvBWfMgy3TigyVCwa8r3DJs5l3KHF98RtG060JQmdOQaavs0LOjxNMgXj4hDRS89550kZA==",
|
||||
"version": "5.41.0",
|
||||
"resolved": "https://registry.npmjs.org/@babylonjs/serializers/-/serializers-5.41.0.tgz",
|
||||
"integrity": "sha512-PcYley4WdF1Aeiiaw6c0NxO25LmZWllN3ltg1YOdud/U08JRDCJol/yqLRS7XKBInC2X+ENU2laToQswBxQhPQ==",
|
||||
"peer": true,
|
||||
"peerDependencies": {
|
||||
"@babylonjs/core": "^5.22.0",
|
||||
@@ -2211,45 +2213,45 @@
|
||||
}
|
||||
},
|
||||
"node_modules/@fortawesome/fontawesome-common-types": {
|
||||
"version": "6.2.0",
|
||||
"resolved": "https://registry.npmjs.org/@fortawesome/fontawesome-common-types/-/fontawesome-common-types-6.2.0.tgz",
|
||||
"integrity": "sha512-rBevIsj2nclStJ7AxTdfsa3ovHb1H+qApwrxcTVo+NNdeJiB9V75hsKfrkG5AwNcRUNxrPPiScGYCNmLMoh8pg==",
|
||||
"version": "6.2.1",
|
||||
"resolved": "https://registry.npmjs.org/@fortawesome/fontawesome-common-types/-/fontawesome-common-types-6.2.1.tgz",
|
||||
"integrity": "sha512-Sz07mnQrTekFWLz5BMjOzHl/+NooTdW8F8kDQxjWwbpOJcnoSg4vUDng8d/WR1wOxM0O+CY9Zw0nR054riNYtQ==",
|
||||
"hasInstallScript": true,
|
||||
"engines": {
|
||||
"node": ">=6"
|
||||
}
|
||||
},
|
||||
"node_modules/@fortawesome/fontawesome-svg-core": {
|
||||
"version": "6.2.0",
|
||||
"resolved": "https://registry.npmjs.org/@fortawesome/fontawesome-svg-core/-/fontawesome-svg-core-6.2.0.tgz",
|
||||
"integrity": "sha512-Cf2mAAeMWFMzpLC7Y9H1I4o3wEU+XovVJhTiNG8ZNgSQj53yl7OCJaS80K4YjrABWZzbAHVaoHE1dVJ27AAYXw==",
|
||||
"version": "6.2.1",
|
||||
"resolved": "https://registry.npmjs.org/@fortawesome/fontawesome-svg-core/-/fontawesome-svg-core-6.2.1.tgz",
|
||||
"integrity": "sha512-HELwwbCz6C1XEcjzyT1Jugmz2NNklMrSPjZOWMlc+ZsHIVk+XOvOXLGGQtFBwSyqfJDNgRq4xBCwWOaZ/d9DEA==",
|
||||
"hasInstallScript": true,
|
||||
"dependencies": {
|
||||
"@fortawesome/fontawesome-common-types": "6.2.0"
|
||||
"@fortawesome/fontawesome-common-types": "6.2.1"
|
||||
},
|
||||
"engines": {
|
||||
"node": ">=6"
|
||||
}
|
||||
},
|
||||
"node_modules/@fortawesome/free-regular-svg-icons": {
|
||||
"version": "6.2.0",
|
||||
"resolved": "https://registry.npmjs.org/@fortawesome/free-regular-svg-icons/-/free-regular-svg-icons-6.2.0.tgz",
|
||||
"integrity": "sha512-M1dG+PAmkYMTL9BSUHFXY5oaHwBYfHCPhbJ8qj8JELsc9XCrUJ6eEHWip4q0tE+h9C0DVyFkwIM9t7QYyCpprQ==",
|
||||
"version": "6.2.1",
|
||||
"resolved": "https://registry.npmjs.org/@fortawesome/free-regular-svg-icons/-/free-regular-svg-icons-6.2.1.tgz",
|
||||
"integrity": "sha512-wiqcNDNom75x+pe88FclpKz7aOSqS2lOivZeicMV5KRwOAeypxEYWAK/0v+7r+LrEY30+qzh8r2XDaEHvoLsMA==",
|
||||
"hasInstallScript": true,
|
||||
"dependencies": {
|
||||
"@fortawesome/fontawesome-common-types": "6.2.0"
|
||||
"@fortawesome/fontawesome-common-types": "6.2.1"
|
||||
},
|
||||
"engines": {
|
||||
"node": ">=6"
|
||||
}
|
||||
},
|
||||
"node_modules/@fortawesome/free-solid-svg-icons": {
|
||||
"version": "6.2.0",
|
||||
"resolved": "https://registry.npmjs.org/@fortawesome/free-solid-svg-icons/-/free-solid-svg-icons-6.2.0.tgz",
|
||||
"integrity": "sha512-UjCILHIQ4I8cN46EiQn0CZL/h8AwCGgR//1c4R96Q5viSRwuKVo0NdQEc4bm+69ZwC0dUvjbDqAHF1RR5FA3XA==",
|
||||
"version": "6.2.1",
|
||||
"resolved": "https://registry.npmjs.org/@fortawesome/free-solid-svg-icons/-/free-solid-svg-icons-6.2.1.tgz",
|
||||
"integrity": "sha512-oKuqrP5jbfEPJWTij4sM+/RvgX+RMFwx3QZCZcK9PrBDgxC35zuc7AOFsyMjMd/PIFPeB2JxyqDr5zs/DZFPPw==",
|
||||
"hasInstallScript": true,
|
||||
"dependencies": {
|
||||
"@fortawesome/fontawesome-common-types": "6.2.0"
|
||||
"@fortawesome/fontawesome-common-types": "6.2.1"
|
||||
},
|
||||
"engines": {
|
||||
"node": ">=6"
|
||||
@@ -2742,9 +2744,9 @@
|
||||
}
|
||||
},
|
||||
"node_modules/@sideway/formula": {
|
||||
"version": "3.0.0",
|
||||
"resolved": "https://registry.npmjs.org/@sideway/formula/-/formula-3.0.0.tgz",
|
||||
"integrity": "sha512-vHe7wZ4NOXVfkoRb8T5otiENVlT7a3IAiw7H5M2+GO+9CDgcVUUsX1zalAztCmwyOr2RUTGJdgB+ZvSVqmdHmg==",
|
||||
"version": "3.0.1",
|
||||
"resolved": "https://registry.npmjs.org/@sideway/formula/-/formula-3.0.1.tgz",
|
||||
"integrity": "sha512-/poHZJJVjx3L+zVD6g9KgHfYnb443oi7wLu/XKojDviHy6HOEOA6z1Trk5aR1dGcmPenJEgb2sK2I80LeS3MIg==",
|
||||
"dev": true
|
||||
},
|
||||
"node_modules/@sideway/pinpoint": {
|
||||
@@ -2754,14 +2756,14 @@
|
||||
"dev": true
|
||||
},
|
||||
"node_modules/@sindarius/gcodeviewer": {
|
||||
"version": "3.1.4",
|
||||
"resolved": "https://registry.npmjs.org/@sindarius/gcodeviewer/-/gcodeviewer-3.1.4.tgz",
|
||||
"integrity": "sha512-yiasBlojKFe3vpelfdzpe0J/SY0WNgWSEjbXqkOv9wKcWwoIwotaJ0c+qusSEjbyFgEy+6slQNUyKuy3hsEjXA==",
|
||||
"version": "3.2.2",
|
||||
"resolved": "https://registry.npmjs.org/@sindarius/gcodeviewer/-/gcodeviewer-3.2.2.tgz",
|
||||
"integrity": "sha512-q8VaMzH8FOrFiiJkotu/oO+/1b4IQya2s6dR8KpuPznexed0FwYsSVwIGWkR1t+9FTV8hKrcdWHstYdbHLXyOA==",
|
||||
"dependencies": {
|
||||
"@babylonjs/core": "^5.28.0",
|
||||
"@babylonjs/inspector": "^5.28.0",
|
||||
"@babylonjs/loaders": "^5.28.0",
|
||||
"@babylonjs/materials": "^5.28.0",
|
||||
"@babylonjs/core": "^5.34.0",
|
||||
"@babylonjs/inspector": "^5.34.0",
|
||||
"@babylonjs/loaders": "^5.34.0",
|
||||
"@babylonjs/materials": "^5.34.0",
|
||||
"d3": "^7.4.4"
|
||||
}
|
||||
},
|
||||
@@ -2792,6 +2794,12 @@
|
||||
"integrity": "sha512-EYNwp3bU+98cpU4lAWYYL7Zz+2gryWH1qbdDTidVd6hkiR6weksdbMadyXKXNPEkQFhXM+hVO9ZygomHXp+AIw==",
|
||||
"dev": true
|
||||
},
|
||||
"node_modules/@types/file-saver": {
|
||||
"version": "2.0.5",
|
||||
"resolved": "https://registry.npmjs.org/@types/file-saver/-/file-saver-2.0.5.tgz",
|
||||
"integrity": "sha512-zv9kNf3keYegP5oThGLaPk8E081DFDuwfqjtiTzm6PoxChdJ1raSuADf2YGCVIyrSynLrgc8JWv296s7Q7pQSQ==",
|
||||
"dev": true
|
||||
},
|
||||
"node_modules/@types/json-schema": {
|
||||
"version": "7.0.11",
|
||||
"resolved": "https://registry.npmjs.org/@types/json-schema/-/json-schema-7.0.11.tgz",
|
||||
@@ -2839,9 +2847,9 @@
|
||||
"peer": true
|
||||
},
|
||||
"node_modules/@types/react": {
|
||||
"version": "18.0.21",
|
||||
"resolved": "https://registry.npmjs.org/@types/react/-/react-18.0.21.tgz",
|
||||
"integrity": "sha512-7QUCOxvFgnD5Jk8ZKlUAhVcRj7GuJRjnjjiY/IUBWKgOlnvDvTMLD4RTF7NPyVmbRhNrbomZiOepg7M/2Kj1mA==",
|
||||
"version": "18.0.26",
|
||||
"resolved": "https://registry.npmjs.org/@types/react/-/react-18.0.26.tgz",
|
||||
"integrity": "sha512-hCR3PJQsAIXyxhTNSiDFY//LhnMZWpNNr5etoCqx/iUfGc5gXWtQR2Phl908jVR6uPXacojQWTg4qRpkxTuGug==",
|
||||
"peer": true,
|
||||
"dependencies": {
|
||||
"@types/prop-types": "*",
|
||||
@@ -2850,9 +2858,9 @@
|
||||
}
|
||||
},
|
||||
"node_modules/@types/react-dom": {
|
||||
"version": "18.0.6",
|
||||
"resolved": "https://registry.npmjs.org/@types/react-dom/-/react-dom-18.0.6.tgz",
|
||||
"integrity": "sha512-/5OFZgfIPSwy+YuIBP/FgJnQnsxhZhjjrnxudMddeblOouIodEQ75X14Rr4wGSG/bknL+Omy9iWlLo1u/9GzAA==",
|
||||
"version": "18.0.10",
|
||||
"resolved": "https://registry.npmjs.org/@types/react-dom/-/react-dom-18.0.10.tgz",
|
||||
"integrity": "sha512-E42GW/JA4Qv15wQdqJq8DL4JhNpB3prJgjgapN3qJT9K2zO5IIAQh4VXvCEDupoqAwnz0cY4RlXeC/ajX5SFHg==",
|
||||
"peer": true,
|
||||
"dependencies": {
|
||||
"@types/react": "*"
|
||||
@@ -3654,9 +3662,9 @@
|
||||
}
|
||||
},
|
||||
"node_modules/babylonjs-gltf2interface": {
|
||||
"version": "5.28.0",
|
||||
"resolved": "https://registry.npmjs.org/babylonjs-gltf2interface/-/babylonjs-gltf2interface-5.28.0.tgz",
|
||||
"integrity": "sha512-Mm0s5yaaCbbU6DJr/lXpa7ZV3FziT5wWlvC2Yyn6Rhl7xgZQQUub1NjDn+vt0wh4XjETDEEuHwOYpm1i5cID3w==",
|
||||
"version": "5.41.0",
|
||||
"resolved": "https://registry.npmjs.org/babylonjs-gltf2interface/-/babylonjs-gltf2interface-5.41.0.tgz",
|
||||
"integrity": "sha512-+aARV7Q6rxLxKnLX7aqe2klaPHzg6c5JBtsadpSAfMLL9laF3e7YqfTlPR6Zf7XxsAZGJBxU9BULLvC5R3BapA==",
|
||||
"peer": true
|
||||
},
|
||||
"node_modules/balanced-match": {
|
||||
@@ -6231,6 +6239,11 @@
|
||||
"he": "bin/he"
|
||||
}
|
||||
},
|
||||
"node_modules/hls.js": {
|
||||
"version": "1.3.3",
|
||||
"resolved": "https://registry.npmjs.org/hls.js/-/hls.js-1.3.3.tgz",
|
||||
"integrity": "sha512-4Efu6g90HfFGDuQrkquhDoRpA/4iVpSMcfK9zguJ2qXEUfo5VknZt6rziwwFPHmC2DU3crZ0NtPD0eUqOhFyqg=="
|
||||
},
|
||||
"node_modules/html-tags": {
|
||||
"version": "2.0.0",
|
||||
"resolved": "https://registry.npmjs.org/html-tags/-/html-tags-2.0.0.tgz",
|
||||
@@ -6846,9 +6859,9 @@
|
||||
"dev": true
|
||||
},
|
||||
"node_modules/json5": {
|
||||
"version": "2.2.1",
|
||||
"resolved": "https://registry.npmjs.org/json5/-/json5-2.2.1.tgz",
|
||||
"integrity": "sha512-1hqLFMSrGHRHxav9q9gNjJ5EXznIxGVO09xQRrwplcS8qs28pZ8s8hupZAmqDwZUmVZ2Qb2jnyPOWcDH8m8dlA==",
|
||||
"version": "2.2.3",
|
||||
"resolved": "https://registry.npmjs.org/json5/-/json5-2.2.3.tgz",
|
||||
"integrity": "sha512-XmOWe7eyHYH14cLdVPoyg+GOH3rYX++KpzrylJwSW98t3Nk+U8XOl8FWKOgwtzdb8lXGf6zYwDUzeHMWfxasyg==",
|
||||
"dev": true,
|
||||
"bin": {
|
||||
"json5": "lib/cli.js"
|
||||
@@ -11286,28 +11299,28 @@
|
||||
}
|
||||
},
|
||||
"@babylonjs/core": {
|
||||
"version": "5.28.0",
|
||||
"resolved": "https://registry.npmjs.org/@babylonjs/core/-/core-5.28.0.tgz",
|
||||
"integrity": "sha512-muHxtHlQmkd8bH5VrF7iDDF4R1qxtzf3jsHLd+IdIJbKjbB1HDCJwekPROLHUA/GbPpb0F3Q4QGk2oixm1R9uQ=="
|
||||
"version": "5.41.0",
|
||||
"resolved": "https://registry.npmjs.org/@babylonjs/core/-/core-5.41.0.tgz",
|
||||
"integrity": "sha512-PrY12n9IOql+9P/bFhEI7WTUqneTI0W9+ROKkwallqtTYku3XV7O5E7BXpdLJwrB/VufKApu6ErNoUb9Zhj9Cg=="
|
||||
},
|
||||
"@babylonjs/gui": {
|
||||
"version": "5.28.0",
|
||||
"resolved": "https://registry.npmjs.org/@babylonjs/gui/-/gui-5.28.0.tgz",
|
||||
"integrity": "sha512-iXY9s6HDi4g6s9EjCoTYHB5RM2PCeEw2Oy/8U+9zvrUCKVUC9ec0FSVsQRxKloaI8XpNY0iBVj0N98Lvh89u/A==",
|
||||
"version": "5.41.0",
|
||||
"resolved": "https://registry.npmjs.org/@babylonjs/gui/-/gui-5.41.0.tgz",
|
||||
"integrity": "sha512-eWoAb/TLM1+ANHVjSSx8VW6BfjCr6CTnQwKonKaOUcXtkjm0W0eAAd2BTTYbV3a5KoYxAnrYtZJT9YcxSPWG6Q==",
|
||||
"peer": true,
|
||||
"requires": {}
|
||||
},
|
||||
"@babylonjs/gui-editor": {
|
||||
"version": "5.28.0",
|
||||
"resolved": "https://registry.npmjs.org/@babylonjs/gui-editor/-/gui-editor-5.28.0.tgz",
|
||||
"integrity": "sha512-E8Db3QWT+wmeTr9mMOI6XNtLG9k7z7k4bGDOvx94jD4iEQBcHJJCZpWjC3+Fdk6auaGlqq93JCtl7cWprntRdA==",
|
||||
"version": "5.41.0",
|
||||
"resolved": "https://registry.npmjs.org/@babylonjs/gui-editor/-/gui-editor-5.41.0.tgz",
|
||||
"integrity": "sha512-rm2MvwlMw+Tpwsu9xPveDKCK44DKKAfCbvPCHz6rD2Vp1pqj7Yml1ExIrOQvzehHX/lT0WCaT0Ur58413215yg==",
|
||||
"peer": true,
|
||||
"requires": {}
|
||||
},
|
||||
"@babylonjs/inspector": {
|
||||
"version": "5.28.0",
|
||||
"resolved": "https://registry.npmjs.org/@babylonjs/inspector/-/inspector-5.28.0.tgz",
|
||||
"integrity": "sha512-YQNGxqaFPa2Z/dMgxkUYCG+k4OSZrUMUwBVgzeRtELmAv9VVe3/GXEg60l2r1UuzUBA5NPPo1ZGhlwyYtWN4dw==",
|
||||
"version": "5.41.0",
|
||||
"resolved": "https://registry.npmjs.org/@babylonjs/inspector/-/inspector-5.41.0.tgz",
|
||||
"integrity": "sha512-oVsQVVnkRBfdWfMLwnBPAp3zajoQYspVbdbuxjGs67xfnPinj13RYVuUhx51hhacKTwOkMhYRzhfEdO1oCcwjg==",
|
||||
"requires": {
|
||||
"@fortawesome/fontawesome-svg-core": "^6.1.0",
|
||||
"@fortawesome/free-regular-svg-icons": "^6.0.0",
|
||||
@@ -11315,21 +11328,21 @@
|
||||
}
|
||||
},
|
||||
"@babylonjs/loaders": {
|
||||
"version": "5.28.0",
|
||||
"resolved": "https://registry.npmjs.org/@babylonjs/loaders/-/loaders-5.28.0.tgz",
|
||||
"integrity": "sha512-N7B46skjG57frEm/h+zAR9cWswj9DV+byyy8Ttap0fu53y3Oe+b/v8wpoqriEbrHCR7JAlHtylMZa7ltkFQSGg==",
|
||||
"version": "5.41.0",
|
||||
"resolved": "https://registry.npmjs.org/@babylonjs/loaders/-/loaders-5.41.0.tgz",
|
||||
"integrity": "sha512-a4zHmmk26Cn22S3eL+wkY2pRCFB2pLmBNHZ0CTD+Xv0S4Ctdj3HHC1Q+lgO3z7I40uM8jb5xdoG0+uTIwTm+RQ==",
|
||||
"requires": {}
|
||||
},
|
||||
"@babylonjs/materials": {
|
||||
"version": "5.28.0",
|
||||
"resolved": "https://registry.npmjs.org/@babylonjs/materials/-/materials-5.28.0.tgz",
|
||||
"integrity": "sha512-Hiw7Qj2TFqUEP0F/vHxNlZ6rZH6XjI0/E1Kpx3WzrOgGEbwv6YNDLzIsfZ8PA8eTiq3CZnKHB/6x4l4fXYzxWw==",
|
||||
"version": "5.41.0",
|
||||
"resolved": "https://registry.npmjs.org/@babylonjs/materials/-/materials-5.41.0.tgz",
|
||||
"integrity": "sha512-b5p94ATWc0e2E3xsWk6GG7jh3NUnOwy21rlYMhdc1TTTL16+BOtKoe9ju7Amv8VfwMubqLF+nMvZcJRBQWVreA==",
|
||||
"requires": {}
|
||||
},
|
||||
"@babylonjs/serializers": {
|
||||
"version": "5.28.0",
|
||||
"resolved": "https://registry.npmjs.org/@babylonjs/serializers/-/serializers-5.28.0.tgz",
|
||||
"integrity": "sha512-hGDFoh50dKmmbJjqRvBWfMgy3TigyVCwa8r3DJs5l3KHF98RtG060JQmdOQaavs0LOjxNMgXj4hDRS89550kZA==",
|
||||
"version": "5.41.0",
|
||||
"resolved": "https://registry.npmjs.org/@babylonjs/serializers/-/serializers-5.41.0.tgz",
|
||||
"integrity": "sha512-PcYley4WdF1Aeiiaw6c0NxO25LmZWllN3ltg1YOdud/U08JRDCJol/yqLRS7XKBInC2X+ENU2laToQswBxQhPQ==",
|
||||
"peer": true,
|
||||
"requires": {}
|
||||
},
|
||||
@@ -11536,32 +11549,32 @@
|
||||
}
|
||||
},
|
||||
"@fortawesome/fontawesome-common-types": {
|
||||
"version": "6.2.0",
|
||||
"resolved": "https://registry.npmjs.org/@fortawesome/fontawesome-common-types/-/fontawesome-common-types-6.2.0.tgz",
|
||||
"integrity": "sha512-rBevIsj2nclStJ7AxTdfsa3ovHb1H+qApwrxcTVo+NNdeJiB9V75hsKfrkG5AwNcRUNxrPPiScGYCNmLMoh8pg=="
|
||||
"version": "6.2.1",
|
||||
"resolved": "https://registry.npmjs.org/@fortawesome/fontawesome-common-types/-/fontawesome-common-types-6.2.1.tgz",
|
||||
"integrity": "sha512-Sz07mnQrTekFWLz5BMjOzHl/+NooTdW8F8kDQxjWwbpOJcnoSg4vUDng8d/WR1wOxM0O+CY9Zw0nR054riNYtQ=="
|
||||
},
|
||||
"@fortawesome/fontawesome-svg-core": {
|
||||
"version": "6.2.0",
|
||||
"resolved": "https://registry.npmjs.org/@fortawesome/fontawesome-svg-core/-/fontawesome-svg-core-6.2.0.tgz",
|
||||
"integrity": "sha512-Cf2mAAeMWFMzpLC7Y9H1I4o3wEU+XovVJhTiNG8ZNgSQj53yl7OCJaS80K4YjrABWZzbAHVaoHE1dVJ27AAYXw==",
|
||||
"version": "6.2.1",
|
||||
"resolved": "https://registry.npmjs.org/@fortawesome/fontawesome-svg-core/-/fontawesome-svg-core-6.2.1.tgz",
|
||||
"integrity": "sha512-HELwwbCz6C1XEcjzyT1Jugmz2NNklMrSPjZOWMlc+ZsHIVk+XOvOXLGGQtFBwSyqfJDNgRq4xBCwWOaZ/d9DEA==",
|
||||
"requires": {
|
||||
"@fortawesome/fontawesome-common-types": "6.2.0"
|
||||
"@fortawesome/fontawesome-common-types": "6.2.1"
|
||||
}
|
||||
},
|
||||
"@fortawesome/free-regular-svg-icons": {
|
||||
"version": "6.2.0",
|
||||
"resolved": "https://registry.npmjs.org/@fortawesome/free-regular-svg-icons/-/free-regular-svg-icons-6.2.0.tgz",
|
||||
"integrity": "sha512-M1dG+PAmkYMTL9BSUHFXY5oaHwBYfHCPhbJ8qj8JELsc9XCrUJ6eEHWip4q0tE+h9C0DVyFkwIM9t7QYyCpprQ==",
|
||||
"version": "6.2.1",
|
||||
"resolved": "https://registry.npmjs.org/@fortawesome/free-regular-svg-icons/-/free-regular-svg-icons-6.2.1.tgz",
|
||||
"integrity": "sha512-wiqcNDNom75x+pe88FclpKz7aOSqS2lOivZeicMV5KRwOAeypxEYWAK/0v+7r+LrEY30+qzh8r2XDaEHvoLsMA==",
|
||||
"requires": {
|
||||
"@fortawesome/fontawesome-common-types": "6.2.0"
|
||||
"@fortawesome/fontawesome-common-types": "6.2.1"
|
||||
}
|
||||
},
|
||||
"@fortawesome/free-solid-svg-icons": {
|
||||
"version": "6.2.0",
|
||||
"resolved": "https://registry.npmjs.org/@fortawesome/free-solid-svg-icons/-/free-solid-svg-icons-6.2.0.tgz",
|
||||
"integrity": "sha512-UjCILHIQ4I8cN46EiQn0CZL/h8AwCGgR//1c4R96Q5viSRwuKVo0NdQEc4bm+69ZwC0dUvjbDqAHF1RR5FA3XA==",
|
||||
"version": "6.2.1",
|
||||
"resolved": "https://registry.npmjs.org/@fortawesome/free-solid-svg-icons/-/free-solid-svg-icons-6.2.1.tgz",
|
||||
"integrity": "sha512-oKuqrP5jbfEPJWTij4sM+/RvgX+RMFwx3QZCZcK9PrBDgxC35zuc7AOFsyMjMd/PIFPeB2JxyqDr5zs/DZFPPw==",
|
||||
"requires": {
|
||||
"@fortawesome/fontawesome-common-types": "6.2.0"
|
||||
"@fortawesome/fontawesome-common-types": "6.2.1"
|
||||
}
|
||||
},
|
||||
"@hapi/hoek": {
|
||||
@@ -11957,9 +11970,9 @@
|
||||
}
|
||||
},
|
||||
"@sideway/formula": {
|
||||
"version": "3.0.0",
|
||||
"resolved": "https://registry.npmjs.org/@sideway/formula/-/formula-3.0.0.tgz",
|
||||
"integrity": "sha512-vHe7wZ4NOXVfkoRb8T5otiENVlT7a3IAiw7H5M2+GO+9CDgcVUUsX1zalAztCmwyOr2RUTGJdgB+ZvSVqmdHmg==",
|
||||
"version": "3.0.1",
|
||||
"resolved": "https://registry.npmjs.org/@sideway/formula/-/formula-3.0.1.tgz",
|
||||
"integrity": "sha512-/poHZJJVjx3L+zVD6g9KgHfYnb443oi7wLu/XKojDviHy6HOEOA6z1Trk5aR1dGcmPenJEgb2sK2I80LeS3MIg==",
|
||||
"dev": true
|
||||
},
|
||||
"@sideway/pinpoint": {
|
||||
@@ -11969,14 +11982,14 @@
|
||||
"dev": true
|
||||
},
|
||||
"@sindarius/gcodeviewer": {
|
||||
"version": "3.1.4",
|
||||
"resolved": "https://registry.npmjs.org/@sindarius/gcodeviewer/-/gcodeviewer-3.1.4.tgz",
|
||||
"integrity": "sha512-yiasBlojKFe3vpelfdzpe0J/SY0WNgWSEjbXqkOv9wKcWwoIwotaJ0c+qusSEjbyFgEy+6slQNUyKuy3hsEjXA==",
|
||||
"version": "3.2.2",
|
||||
"resolved": "https://registry.npmjs.org/@sindarius/gcodeviewer/-/gcodeviewer-3.2.2.tgz",
|
||||
"integrity": "sha512-q8VaMzH8FOrFiiJkotu/oO+/1b4IQya2s6dR8KpuPznexed0FwYsSVwIGWkR1t+9FTV8hKrcdWHstYdbHLXyOA==",
|
||||
"requires": {
|
||||
"@babylonjs/core": "^5.28.0",
|
||||
"@babylonjs/inspector": "^5.28.0",
|
||||
"@babylonjs/loaders": "^5.28.0",
|
||||
"@babylonjs/materials": "^5.28.0",
|
||||
"@babylonjs/core": "^5.34.0",
|
||||
"@babylonjs/inspector": "^5.34.0",
|
||||
"@babylonjs/loaders": "^5.34.0",
|
||||
"@babylonjs/materials": "^5.34.0",
|
||||
"d3": "^7.4.4"
|
||||
}
|
||||
},
|
||||
@@ -12009,6 +12022,12 @@
|
||||
"integrity": "sha512-EYNwp3bU+98cpU4lAWYYL7Zz+2gryWH1qbdDTidVd6hkiR6weksdbMadyXKXNPEkQFhXM+hVO9ZygomHXp+AIw==",
|
||||
"dev": true
|
||||
},
|
||||
"@types/file-saver": {
|
||||
"version": "2.0.5",
|
||||
"resolved": "https://registry.npmjs.org/@types/file-saver/-/file-saver-2.0.5.tgz",
|
||||
"integrity": "sha512-zv9kNf3keYegP5oThGLaPk8E081DFDuwfqjtiTzm6PoxChdJ1raSuADf2YGCVIyrSynLrgc8JWv296s7Q7pQSQ==",
|
||||
"dev": true
|
||||
},
|
||||
"@types/json-schema": {
|
||||
"version": "7.0.11",
|
||||
"resolved": "https://registry.npmjs.org/@types/json-schema/-/json-schema-7.0.11.tgz",
|
||||
@@ -12056,9 +12075,9 @@
|
||||
"peer": true
|
||||
},
|
||||
"@types/react": {
|
||||
"version": "18.0.21",
|
||||
"resolved": "https://registry.npmjs.org/@types/react/-/react-18.0.21.tgz",
|
||||
"integrity": "sha512-7QUCOxvFgnD5Jk8ZKlUAhVcRj7GuJRjnjjiY/IUBWKgOlnvDvTMLD4RTF7NPyVmbRhNrbomZiOepg7M/2Kj1mA==",
|
||||
"version": "18.0.26",
|
||||
"resolved": "https://registry.npmjs.org/@types/react/-/react-18.0.26.tgz",
|
||||
"integrity": "sha512-hCR3PJQsAIXyxhTNSiDFY//LhnMZWpNNr5etoCqx/iUfGc5gXWtQR2Phl908jVR6uPXacojQWTg4qRpkxTuGug==",
|
||||
"peer": true,
|
||||
"requires": {
|
||||
"@types/prop-types": "*",
|
||||
@@ -12067,9 +12086,9 @@
|
||||
}
|
||||
},
|
||||
"@types/react-dom": {
|
||||
"version": "18.0.6",
|
||||
"resolved": "https://registry.npmjs.org/@types/react-dom/-/react-dom-18.0.6.tgz",
|
||||
"integrity": "sha512-/5OFZgfIPSwy+YuIBP/FgJnQnsxhZhjjrnxudMddeblOouIodEQ75X14Rr4wGSG/bknL+Omy9iWlLo1u/9GzAA==",
|
||||
"version": "18.0.10",
|
||||
"resolved": "https://registry.npmjs.org/@types/react-dom/-/react-dom-18.0.10.tgz",
|
||||
"integrity": "sha512-E42GW/JA4Qv15wQdqJq8DL4JhNpB3prJgjgapN3qJT9K2zO5IIAQh4VXvCEDupoqAwnz0cY4RlXeC/ajX5SFHg==",
|
||||
"peer": true,
|
||||
"requires": {
|
||||
"@types/react": "*"
|
||||
@@ -12631,9 +12650,9 @@
|
||||
}
|
||||
},
|
||||
"babylonjs-gltf2interface": {
|
||||
"version": "5.28.0",
|
||||
"resolved": "https://registry.npmjs.org/babylonjs-gltf2interface/-/babylonjs-gltf2interface-5.28.0.tgz",
|
||||
"integrity": "sha512-Mm0s5yaaCbbU6DJr/lXpa7ZV3FziT5wWlvC2Yyn6Rhl7xgZQQUub1NjDn+vt0wh4XjETDEEuHwOYpm1i5cID3w==",
|
||||
"version": "5.41.0",
|
||||
"resolved": "https://registry.npmjs.org/babylonjs-gltf2interface/-/babylonjs-gltf2interface-5.41.0.tgz",
|
||||
"integrity": "sha512-+aARV7Q6rxLxKnLX7aqe2klaPHzg6c5JBtsadpSAfMLL9laF3e7YqfTlPR6Zf7XxsAZGJBxU9BULLvC5R3BapA==",
|
||||
"peer": true
|
||||
},
|
||||
"balanced-match": {
|
||||
@@ -14447,6 +14466,11 @@
|
||||
"integrity": "sha512-F/1DnUGPopORZi0ni+CvrCgHQ5FyEAHRLSApuYWMmrbSwoN2Mn/7k+Gl38gJnR7yyDZk6WLXwiGod1JOWNDKGw==",
|
||||
"dev": true
|
||||
},
|
||||
"hls.js": {
|
||||
"version": "1.3.3",
|
||||
"resolved": "https://registry.npmjs.org/hls.js/-/hls.js-1.3.3.tgz",
|
||||
"integrity": "sha512-4Efu6g90HfFGDuQrkquhDoRpA/4iVpSMcfK9zguJ2qXEUfo5VknZt6rziwwFPHmC2DU3crZ0NtPD0eUqOhFyqg=="
|
||||
},
|
||||
"html-tags": {
|
||||
"version": "2.0.0",
|
||||
"resolved": "https://registry.npmjs.org/html-tags/-/html-tags-2.0.0.tgz",
|
||||
@@ -14885,9 +14909,9 @@
|
||||
"dev": true
|
||||
},
|
||||
"json5": {
|
||||
"version": "2.2.1",
|
||||
"resolved": "https://registry.npmjs.org/json5/-/json5-2.2.1.tgz",
|
||||
"integrity": "sha512-1hqLFMSrGHRHxav9q9gNjJ5EXznIxGVO09xQRrwplcS8qs28pZ8s8hupZAmqDwZUmVZ2Qb2jnyPOWcDH8m8dlA==",
|
||||
"version": "2.2.3",
|
||||
"resolved": "https://registry.npmjs.org/json5/-/json5-2.2.3.tgz",
|
||||
"integrity": "sha512-XmOWe7eyHYH14cLdVPoyg+GOH3rYX++KpzrylJwSW98t3Nk+U8XOl8FWKOgwtzdb8lXGf6zYwDUzeHMWfxasyg==",
|
||||
"dev": true
|
||||
},
|
||||
"jsonc-eslint-parser": {
|
||||
|
||||
+4
-2
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "mainsail",
|
||||
"version": "2.4.0",
|
||||
"version": "2.5.0",
|
||||
"private": true,
|
||||
"decription": "a klipper web interface",
|
||||
"author": {
|
||||
@@ -33,7 +33,7 @@
|
||||
"@codemirror/view": "^6.0.3",
|
||||
"@jaames/iro": "^5.5.2",
|
||||
"@lezer/highlight": "^1.0.0",
|
||||
"@sindarius/gcodeviewer": "^3.1.4",
|
||||
"@sindarius/gcodeviewer": "^3.2.2",
|
||||
"@types/node": "^18.0.0",
|
||||
"@types/overlayscrollbars": "^1.12.1",
|
||||
"axios": "^0.27.0",
|
||||
@@ -41,6 +41,7 @@
|
||||
"core-js": "^3.16.0",
|
||||
"echarts": "^5.2.2",
|
||||
"echarts-gl": "^2.0.8",
|
||||
"hls.js": "^1.3.3",
|
||||
"js-sha256": "^0.9.0",
|
||||
"lodash.kebabcase": "^4.1.1",
|
||||
"lodash.throttle": "^4.1.1",
|
||||
@@ -67,6 +68,7 @@
|
||||
"devDependencies": {
|
||||
"@intlify/vite-plugin-vue-i18n": "^2.5.0",
|
||||
"@mdi/js": "^7.0.0",
|
||||
"@types/file-saver": "^2.0.5",
|
||||
"@types/lodash.kebabcase": "^4.1.6",
|
||||
"@types/lodash.throttle": "^4.1.6",
|
||||
"@types/semver": "^7.3.8",
|
||||
|
||||
@@ -0,0 +1,8 @@
|
||||
<IfModule mod_rewrite.c>
|
||||
RewriteEngine On
|
||||
RewriteBase /
|
||||
RewriteRule ^index\.html$ - [L]
|
||||
RewriteCond %{REQUEST_FILENAME} !-f
|
||||
RewriteCond %{REQUEST_FILENAME} !-d
|
||||
RewriteRule . /index.html [L]
|
||||
</IfModule>
|
||||
@@ -0,0 +1,7 @@
|
||||
{
|
||||
"defaultLocale": "en",
|
||||
"hostname": null,
|
||||
"port": null,
|
||||
"instancesDB": "browser",
|
||||
"instances": []
|
||||
}
|
||||
+16
-6
@@ -41,6 +41,7 @@
|
||||
<the-upload-snackbar></the-upload-snackbar>
|
||||
<the-manual-probe-dialog />
|
||||
<the-bed-screws-dialog />
|
||||
<the-screws-tilt-adjust-dialog />
|
||||
</template>
|
||||
<the-select-printer-dialog v-else-if="instancesDB !== 'moonraker'"></the-select-printer-dialog>
|
||||
<the-connecting-dialog v-else></the-connecting-dialog>
|
||||
@@ -63,6 +64,9 @@ import TheFullscreenUpload from '@/components/TheFullscreenUpload.vue'
|
||||
import TheUploadSnackbar from '@/components/TheUploadSnackbar.vue'
|
||||
import TheManualProbeDialog from '@/components/dialogs/TheManualProbeDialog.vue'
|
||||
import TheBedScrewsDialog from '@/components/dialogs/TheBedScrewsDialog.vue'
|
||||
import TheScrewsTiltAdjustDialog from '@/components/dialogs/TheScrewsTiltAdjustDialog.vue'
|
||||
|
||||
Component.registerHooks(['metaInfo'])
|
||||
|
||||
@Component({
|
||||
components: {
|
||||
@@ -77,15 +81,21 @@ import TheBedScrewsDialog from '@/components/dialogs/TheBedScrewsDialog.vue'
|
||||
TheUploadSnackbar,
|
||||
TheManualProbeDialog,
|
||||
TheBedScrewsDialog,
|
||||
},
|
||||
metaInfo() {
|
||||
const title = this.$store.getters['getTitle']
|
||||
return {
|
||||
titleTemplate: () => title,
|
||||
}
|
||||
TheScrewsTiltAdjustDialog,
|
||||
},
|
||||
})
|
||||
export default class App extends Mixins(BaseMixin) {
|
||||
public metaInfo(): any {
|
||||
let title = this.$store.getters['getTitle']
|
||||
|
||||
if (this.isPrinterPowerOff) title = this.$t('App.Titles.PrinterOff')
|
||||
|
||||
return {
|
||||
title,
|
||||
titleTemplate: '%s',
|
||||
}
|
||||
}
|
||||
|
||||
get title(): string {
|
||||
return this.$store.getters['getTitle']
|
||||
}
|
||||
|
||||
@@ -333,3 +333,52 @@ export default class TheEditor extends Mixins(BaseMixin) {
|
||||
}
|
||||
}
|
||||
</script>
|
||||
<style lang="scss" scoped>
|
||||
::v-deep .ͼ1 .cm-panel.cm-search *:focus:not(.focus-visible) {
|
||||
outline: none;
|
||||
}
|
||||
|
||||
::v-deep .ͼ1 .cm-panel.cm-search input[type='checkbox'] {
|
||||
width: 2.2em;
|
||||
height: 2.2em;
|
||||
color: dodgerblue;
|
||||
vertical-align: middle;
|
||||
-webkit-appearance: none;
|
||||
border: 10px;
|
||||
outline: 0;
|
||||
flex-grow: 0;
|
||||
border-radius: 4px;
|
||||
background: var(--v-toolbar-base);
|
||||
transition: background 300ms;
|
||||
cursor: pointer;
|
||||
margin-right: 0.5em;
|
||||
}
|
||||
|
||||
/* Pseudo element for check styling */
|
||||
|
||||
::v-deep .ͼ1 .cm-panel.cm-search input[type='checkbox']::before {
|
||||
content: '';
|
||||
color: transparent;
|
||||
display: block;
|
||||
width: inherit;
|
||||
height: inherit;
|
||||
border-radius: inherit;
|
||||
border: 2px;
|
||||
background-color: transparent;
|
||||
background-size: contain;
|
||||
box-shadow: inset 0 0 0 1px #ccd3d8;
|
||||
font-size: 16px;
|
||||
}
|
||||
|
||||
/* Checked */
|
||||
|
||||
::v-deep .ͼ1 .cm-panel.cm-search input[type='checkbox']:checked {
|
||||
background-color: var(--color-primary);
|
||||
}
|
||||
|
||||
::v-deep .ͼ1 .cm-panel.cm-search input[type='checkbox']:checked::before {
|
||||
box-shadow: none;
|
||||
background-color: var(--color-primary);
|
||||
background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24'%3E %3Cpath d='M15.88 8.29L10 14.17l-1.88-1.88a.996.996 0 1 0-1.41 1.41l2.59 2.59c.39.39 1.02.39 1.41 0L17.3 9.7a.996.996 0 0 0 0-1.41c-.39-.39-1.03-.39-1.42 0z' fill='%23fffff'/%3E %3C/svg%3E");
|
||||
}
|
||||
</style>
|
||||
@@ -30,7 +30,7 @@
|
||||
style="display: none"
|
||||
@change="uploadAndStart" />
|
||||
<v-btn
|
||||
v-if="klippyIsConnected && saveConfigPending"
|
||||
v-if="showSaveConfigButton"
|
||||
tile
|
||||
:icon="$vuetify.breakpoint.smAndDown"
|
||||
:text="$vuetify.breakpoint.mdAndUp"
|
||||
@@ -63,7 +63,7 @@
|
||||
class="button-min-width-auto px-3 emergency-button"
|
||||
:loading="loadings.includes('topbarEmergencyStop')"
|
||||
@click="btnEmergencyStop">
|
||||
<v-icon class="mr-md-2">{{ mdiAlertCircleOutline }}</v-icon>
|
||||
<v-icon class="mr-md-2">{{ mdiAlertOctagonOutline }}</v-icon>
|
||||
<span class="d-none d-md-inline">{{ $t('App.TopBar.EmergencyStop') }}</span>
|
||||
</v-btn>
|
||||
<the-notification-menu></the-notification-menu>
|
||||
@@ -84,10 +84,10 @@
|
||||
</v-snackbar>
|
||||
<v-dialog v-model="showEmergencyStopDialog" width="400" :fullscreen="isMobile">
|
||||
<panel
|
||||
:title="$t('EmergencyStopDialog.EmergencyStop')"
|
||||
:title="$t('EmergencyStopDialog.EmergencyStop').toString()"
|
||||
toolbar-color="error"
|
||||
card-class="emergency-stop-dialog"
|
||||
:icon="mdiAlertCircleOutline"
|
||||
:icon="mdiAlertOctagonOutline"
|
||||
:margin-bottom="false">
|
||||
<template #buttons>
|
||||
<v-btn icon tile @click="showEmergencyStopDialog = false">
|
||||
@@ -119,7 +119,7 @@ import PrinterSelector from '@/components/ui/PrinterSelector.vue'
|
||||
import MainsailLogo from '@/components/ui/MainsailLogo.vue'
|
||||
import TheNotificationMenu from '@/components/notifications/TheNotificationMenu.vue'
|
||||
import { topbarHeight } from '@/store/variables'
|
||||
import { mdiAlertCircleOutline, mdiContentSave, mdiFileUpload, mdiClose, mdiCloseThick } from '@mdi/js'
|
||||
import { mdiAlertOctagonOutline, mdiContentSave, mdiFileUpload, mdiClose, mdiCloseThick } from '@mdi/js'
|
||||
|
||||
type uploadSnackbar = {
|
||||
status: boolean
|
||||
@@ -145,7 +145,7 @@ type uploadSnackbar = {
|
||||
},
|
||||
})
|
||||
export default class TheTopbar extends Mixins(BaseMixin) {
|
||||
mdiAlertCircleOutline = mdiAlertCircleOutline
|
||||
mdiAlertOctagonOutline = mdiAlertOctagonOutline
|
||||
mdiContentSave = mdiContentSave
|
||||
mdiFileUpload = mdiFileUpload
|
||||
mdiClose = mdiClose
|
||||
@@ -196,6 +196,20 @@ export default class TheTopbar extends Mixins(BaseMixin) {
|
||||
return this.$store.state.printer.configfile?.save_config_pending ?? false
|
||||
}
|
||||
|
||||
get hideSaveConfigForBedMash() {
|
||||
return this.$store.state.gui.uiSettings.hideSaveConfigForBedMash ?? false
|
||||
}
|
||||
|
||||
get showSaveConfigButton() {
|
||||
if (!this.klipperReadyForGui) return false
|
||||
if (!this.hideSaveConfigForBedMash) return this.saveConfigPending
|
||||
|
||||
let pendingKeys = Object.keys(this.$store.state.printer.configfile?.save_config_pending_items ?? {})
|
||||
pendingKeys = pendingKeys.filter((key: string) => !key.startsWith('bed_mesh '))
|
||||
|
||||
return pendingKeys.length > 0
|
||||
}
|
||||
|
||||
get printerName(): string {
|
||||
if (this.$store.state.gui.general.printername.length) return this.$store.state.gui.general.printername
|
||||
|
||||
@@ -256,14 +270,14 @@ export default class TheTopbar extends Mixins(BaseMixin) {
|
||||
|
||||
async uploadAndStart() {
|
||||
if (this.$refs.fileUploadAndStart?.files.length) {
|
||||
this.$store.dispatch('socket/addLoading', { name: 'btnUploadAndStart' })
|
||||
await this.$store.dispatch('socket/addLoading', { name: 'btnUploadAndStart' })
|
||||
let successFiles = []
|
||||
for (const file of this.$refs.fileUploadAndStart?.files || []) {
|
||||
const result = await this.doUploadAndStart(file)
|
||||
successFiles.push(result)
|
||||
}
|
||||
|
||||
this.$store.dispatch('socket/removeLoading', { name: 'btnUploadAndStart' })
|
||||
await this.$store.dispatch('socket/removeLoading', { name: 'btnUploadAndStart' })
|
||||
for (const file of successFiles) {
|
||||
const text = this.$t('App.TopBar.UploadOfFileSuccessful', { file: file }).toString()
|
||||
this.$toast.success(text)
|
||||
@@ -329,6 +343,7 @@ export default class TheTopbar extends Mixins(BaseMixin) {
|
||||
</script>
|
||||
|
||||
<style>
|
||||
/*noinspection CssUnusedSymbol*/
|
||||
.topbar .v-toolbar__content {
|
||||
padding-top: 0 !important;
|
||||
padding-bottom: 0 !important;
|
||||
@@ -338,13 +353,17 @@ export default class TheTopbar extends Mixins(BaseMixin) {
|
||||
.button-min-width-auto {
|
||||
min-width: auto !important;
|
||||
}
|
||||
/*noinspection CssUnusedSymbol*/
|
||||
.topbar .v-btn {
|
||||
height: 100% !important;
|
||||
max-height: none;
|
||||
}
|
||||
/*noinspection CssUnusedSymbol*/
|
||||
.topbar .v-btn.v-btn--icon {
|
||||
/*noinspection CssUnresolvedCustomProperty*/
|
||||
width: var(--topbar-icon-btn-width) !important;
|
||||
}
|
||||
/*noinspection CssUnusedSymbol*/
|
||||
@media (min-width: 768px) {
|
||||
header.topbar {
|
||||
z-index: 8 !important;
|
||||
|
||||
+2
-2
@@ -5,7 +5,7 @@
|
||||
:option="chartOptions"
|
||||
:autoresize="true"
|
||||
:init-options="{ renderer: 'svg' }"
|
||||
style="height: 250px; width: 100%"></e-chart>
|
||||
style="height: 200px; width: 100%"></e-chart>
|
||||
</template>
|
||||
|
||||
<script lang="ts">
|
||||
@@ -19,7 +19,7 @@ import { ServerHistoryStateAllPrintStatusEntry } from '@/store/server/history/ty
|
||||
@Component({
|
||||
components: {},
|
||||
})
|
||||
export default class HistoryAllPrintStatus extends Mixins(BaseMixin) {
|
||||
export default class HistoryAllPrintStatusChart extends Mixins(BaseMixin) {
|
||||
declare $refs: {
|
||||
historyAllPrintStatus: any
|
||||
}
|
||||
@@ -0,0 +1,47 @@
|
||||
<template>
|
||||
<v-simple-table>
|
||||
<tbody>
|
||||
<tr v-for="status in printStatusArray" :key="status.name">
|
||||
<td>{{ status.displayName }}</td>
|
||||
<td class="text-right">{{ status.value }}</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</v-simple-table>
|
||||
</template>
|
||||
|
||||
<script lang="ts">
|
||||
import Component from 'vue-class-component'
|
||||
import { Mixins } from 'vue-property-decorator'
|
||||
import BaseMixin from '@/components/mixins/base'
|
||||
import { ServerHistoryStateAllPrintStatusEntry } from '@/store/server/history/types'
|
||||
|
||||
@Component({
|
||||
components: {},
|
||||
})
|
||||
export default class HistoryAllPrintStatusTable extends Mixins(BaseMixin) {
|
||||
get selectedJobs() {
|
||||
return this.$store.state.gui.view.history.selectedJobs ?? []
|
||||
}
|
||||
|
||||
get allPrintStatusArray() {
|
||||
return this.$store.getters['server/history/getAllPrintStatusArrayAll']
|
||||
}
|
||||
|
||||
get selectedPrintStatusArray() {
|
||||
return this.$store.getters['server/history/getSelectedPrintStatusArray']
|
||||
}
|
||||
|
||||
get printStatusArray() {
|
||||
const output: ServerHistoryStateAllPrintStatusEntry[] = []
|
||||
const orgArray = this.selectedJobs.length ? this.selectedPrintStatusArray : this.allPrintStatusArray
|
||||
|
||||
orgArray.forEach((status: ServerHistoryStateAllPrintStatusEntry) => {
|
||||
const tmp = { ...status }
|
||||
tmp.name = status.displayName
|
||||
output.push(tmp)
|
||||
})
|
||||
|
||||
return output
|
||||
}
|
||||
}
|
||||
</script>
|
||||
@@ -62,7 +62,7 @@
|
||||
<span>+{{ offset }}</span>
|
||||
</v-btn>
|
||||
</v-item-group>
|
||||
<v-item-group class="_btn-group mt-3">
|
||||
<v-item-group class="_btn-group mt-6 mt-sm-3">
|
||||
<v-btn
|
||||
v-for="(offset, index) in offsetsZ"
|
||||
:key="`offsetsDown-${index}`"
|
||||
|
||||
@@ -0,0 +1,69 @@
|
||||
<template>
|
||||
<v-dialog :value="showDialog" width="400" persistent :fullscreen="isMobile">
|
||||
<panel
|
||||
:title="$t('ScrewsTiltAdjust.Headline').toString()"
|
||||
:icon="mdiArrowCollapseDown"
|
||||
card-class="manual_probe-dialog"
|
||||
:margin-bottom="false"
|
||||
style="overflow: hidden"
|
||||
:height="isMobile ? 0 : 548">
|
||||
<template #buttons>
|
||||
<v-btn icon tile @click="clearScrewsTiltAdjust">
|
||||
<v-icon>{{ mdiCloseThick }}</v-icon>
|
||||
</v-btn>
|
||||
</template>
|
||||
<v-card-text v-if="error">
|
||||
<v-row>
|
||||
<v-col>
|
||||
<v-alert border="left" text type="error">{{ $t('ScrewsTiltAdjust.ErrorText') }}</v-alert>
|
||||
</v-col>
|
||||
</v-row>
|
||||
</v-card-text>
|
||||
<v-card-text v-if="Object.keys(results).length">
|
||||
<template v-for="(result, name, index) of results">
|
||||
<v-divider v-if="index" :key="`result-divider-${name}`" class="my-1" />
|
||||
<the-screws-tilt-adjust-dialog-entry :key="`result-${name}`" :name="name" :result="result" />
|
||||
</template>
|
||||
</v-card-text>
|
||||
<v-card-actions>
|
||||
<v-spacer></v-spacer>
|
||||
<v-btn color="primary" text @click="clearScrewsTiltAdjust">
|
||||
{{ $t('ScrewsTiltAdjust.Accept') }}
|
||||
</v-btn>
|
||||
</v-card-actions>
|
||||
</panel>
|
||||
</v-dialog>
|
||||
</template>
|
||||
|
||||
<script lang="ts">
|
||||
import { Component, Mixins } from 'vue-property-decorator'
|
||||
import BaseMixin from '@/components/mixins/base'
|
||||
import Panel from '@/components/ui/Panel.vue'
|
||||
import Responsive from '@/components/ui/Responsive.vue'
|
||||
import SettingsRow from '@/components/settings/SettingsRow.vue'
|
||||
import { mdiArrowCollapseDown, mdiCloseThick } from '@mdi/js'
|
||||
import ControlMixin from '@/components/mixins/control'
|
||||
import TheScrewsTiltAdjustDialogEntry from '@/components/dialogs/TheScrewsTiltAdjustDialogEntry.vue'
|
||||
@Component({
|
||||
components: { TheScrewsTiltAdjustDialogEntry, Panel, Responsive, SettingsRow },
|
||||
})
|
||||
export default class TheScrewsTiltAdjustDialog extends Mixins(BaseMixin, ControlMixin) {
|
||||
mdiArrowCollapseDown = mdiArrowCollapseDown
|
||||
mdiCloseThick = mdiCloseThick
|
||||
get state() {
|
||||
return this.$store.state.printer.screws_tilt_adjust ?? {}
|
||||
}
|
||||
get error() {
|
||||
return this.state.error ?? false
|
||||
}
|
||||
get results() {
|
||||
return this.state.results ?? {}
|
||||
}
|
||||
get showDialog() {
|
||||
return this.error || Object.keys(this.results).length
|
||||
}
|
||||
clearScrewsTiltAdjust() {
|
||||
this.$store.dispatch('printer/clearScrewsTiltAdjust')
|
||||
}
|
||||
}
|
||||
</script>
|
||||
@@ -0,0 +1,65 @@
|
||||
<template>
|
||||
<settings-row :title="outputName" :sub-title="subTitle">
|
||||
<v-chip v-if="!(is_base ?? false)" label small>
|
||||
<v-icon v-if="sign === 'CCW'" small left>{{ mdiRotateLeft }}</v-icon>
|
||||
<v-icon v-if="sign === 'CW'" small left>{{ mdiRotateRight }}</v-icon>
|
||||
{{ adjust }}
|
||||
</v-chip>
|
||||
<v-chip v-else label small>{{ $t('ScrewsTiltAdjust.Base') }}</v-chip>
|
||||
</settings-row>
|
||||
</template>
|
||||
<script lang="ts">
|
||||
import { Component, Mixins, Prop } from 'vue-property-decorator'
|
||||
import BaseMixin from '@/components/mixins/base'
|
||||
import Panel from '@/components/ui/Panel.vue'
|
||||
import Responsive from '@/components/ui/Responsive.vue'
|
||||
import SettingsRow from '@/components/settings/SettingsRow.vue'
|
||||
import { mdiRotateLeft, mdiRotateRight, mdiCloseThick } from '@mdi/js'
|
||||
import ControlMixin from '@/components/mixins/control'
|
||||
interface ScrewsTiltAdjustResult {
|
||||
z: number
|
||||
sign?: string
|
||||
adjust?: string
|
||||
is_base: boolean
|
||||
}
|
||||
@Component({
|
||||
components: { Panel, Responsive, SettingsRow },
|
||||
})
|
||||
export default class TheScrewsTiltAdjustDialogEntry extends Mixins(BaseMixin, ControlMixin) {
|
||||
mdiRotateLeft = mdiRotateLeft
|
||||
mdiCloseThick = mdiCloseThick
|
||||
mdiRotateRight = mdiRotateRight
|
||||
@Prop({ required: true }) declare readonly name: string
|
||||
@Prop({ required: true }) declare readonly result: ScrewsTiltAdjustResult
|
||||
get settings() {
|
||||
return this.$store.state.printer.configfile?.settings?.screws_tilt_adjust ?? {}
|
||||
}
|
||||
get outputName() {
|
||||
return this.settings[this.name + '_name'] ?? 'Unknown'
|
||||
}
|
||||
get coordinates() {
|
||||
return this.settings[this.name] ?? [0, 0]
|
||||
}
|
||||
get x() {
|
||||
return this.coordinates[0] ?? 0
|
||||
}
|
||||
get y() {
|
||||
return this.coordinates[1] ?? 0
|
||||
}
|
||||
get z() {
|
||||
return this.result.z.toFixed(3)
|
||||
}
|
||||
get subTitle() {
|
||||
return `(X: ${this.x}, Y: ${this.y}, Z: ${this.z})`
|
||||
}
|
||||
get sign() {
|
||||
return this.result.sign ?? ''
|
||||
}
|
||||
get adjust() {
|
||||
return this.result.adjust ?? '00:00'
|
||||
}
|
||||
get is_base() {
|
||||
return this.result.is_base ?? false
|
||||
}
|
||||
}
|
||||
</script>
|
||||
@@ -0,0 +1,82 @@
|
||||
<template>
|
||||
<div ref="view" class="codeview" @mouseup="mouseUp" @keydown="keyPress"></div>
|
||||
</template>
|
||||
|
||||
<script lang="ts">
|
||||
import { Component, PropSync, Prop, Vue, Watch } from 'vue-property-decorator'
|
||||
import { EditorView, basicSetup } from 'codemirror'
|
||||
import { EditorState } from '@codemirror/state'
|
||||
|
||||
@Component({})
|
||||
export default class CodeStream extends Vue {
|
||||
@PropSync('currentline') currentLineNumber!: number
|
||||
@Prop({ type: String, default: '' }) declare document: string
|
||||
@Prop({ type: Boolean, default: false }) declare isSimulating: boolean
|
||||
@Prop({ type: Boolean, default: false }) declare shown: boolean
|
||||
|
||||
view: EditorView | undefined = undefined
|
||||
|
||||
private mounted() {
|
||||
this.view = new EditorView({
|
||||
doc: this.document,
|
||||
extensions: [basicSetup, EditorState.readOnly.of(true)],
|
||||
parent: this.$refs['view'] as HTMLElement,
|
||||
})
|
||||
}
|
||||
|
||||
mouseUp() {
|
||||
if (this.view) {
|
||||
let line = this.view.state.doc.lineAt(this.view.state.selection.ranges[0].from)
|
||||
this.$emit('update:currentline', line.to)
|
||||
this.view.contentDOM.blur()
|
||||
this.$emit('got-focus')
|
||||
}
|
||||
}
|
||||
|
||||
keyPress() {
|
||||
if (this.view) {
|
||||
let line = this.view.state.doc.lineAt(this.view.state.selection.ranges[0].from)
|
||||
this.$emit('update:currentline', line.to)
|
||||
this.$emit('got-focus')
|
||||
}
|
||||
}
|
||||
|
||||
@Watch('document')
|
||||
documentUpdated() {
|
||||
if (this.view && this.shown) {
|
||||
this.view.dispatch({
|
||||
changes: {
|
||||
from: 0,
|
||||
to: this.view.state.doc.length,
|
||||
insert: this.document,
|
||||
},
|
||||
})
|
||||
}
|
||||
}
|
||||
|
||||
@Watch('currentLineNumber')
|
||||
currentlineUpdated(to: number) {
|
||||
if (this.view && this.shown) {
|
||||
let line = this.view.state.doc.lineAt(to)
|
||||
this.view.dispatch({
|
||||
selection: {
|
||||
anchor: line.from,
|
||||
head: line.from,
|
||||
},
|
||||
scrollIntoView: true,
|
||||
})
|
||||
}
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
||||
<style scoped>
|
||||
/deep/ .cm-activeLine {
|
||||
background-color: #333 !important;
|
||||
}
|
||||
|
||||
.codeview {
|
||||
height: 100%;
|
||||
overflow: auto;
|
||||
}
|
||||
</style>
|
||||
@@ -19,9 +19,19 @@
|
||||
</template>
|
||||
<v-card-text>
|
||||
<v-row :class="showScrubber ? 'withScrubber' : ''">
|
||||
<v-col>
|
||||
<v-col :cols="showGCode ? 8 : 12">
|
||||
<div ref="viewerCanvasContainer"></div>
|
||||
</v-col>
|
||||
<v-col v-show="showGCode" cols="4">
|
||||
<div class="viewer">
|
||||
<CodeStream
|
||||
ref="gcodestream"
|
||||
:shown="showGCode"
|
||||
:currentline.sync="scrubPosition"
|
||||
:document="fileData"
|
||||
:is-simulating="!printerIsPrinting" />
|
||||
</div>
|
||||
</v-col>
|
||||
</v-row>
|
||||
<v-row v-show="showScrubber" class="scrubber">
|
||||
<v-col class="pt-0">
|
||||
@@ -123,6 +133,14 @@
|
||||
hide-details
|
||||
:label="$t('GCodeViewer.ShowTravelMoves')"></v-checkbox>
|
||||
</v-list-item>
|
||||
<v-list-item class="minHeight36">
|
||||
<v-checkbox
|
||||
v-model="showGCode"
|
||||
class="mt-0"
|
||||
hide-details
|
||||
:label="$t('GCodeViewer.ShowGCode')"></v-checkbox>
|
||||
</v-list-item>
|
||||
|
||||
<v-list-item
|
||||
v-if="loadedFile === sdCardFilePath && printing_objects.length"
|
||||
class="minHeight36">
|
||||
@@ -168,6 +186,13 @@
|
||||
hide-details
|
||||
:label="$t('GCodeViewer.SpecularLighting')"></v-checkbox>
|
||||
</v-list-item>
|
||||
<v-list-item class="minHeight36">
|
||||
<v-checkbox
|
||||
v-model="cncMode"
|
||||
class="mt-0"
|
||||
hide-details
|
||||
:label="$t('GCodeViewer.CNCMode')"></v-checkbox>
|
||||
</v-list-item>
|
||||
</v-list>
|
||||
</v-menu>
|
||||
</v-col>
|
||||
@@ -255,6 +280,7 @@ import GCodeViewer from '@sindarius/gcodeviewer'
|
||||
import axios from 'axios'
|
||||
import { formatFilesize } from '@/plugins/helpers'
|
||||
import Panel from '@/components/ui/Panel.vue'
|
||||
import CodeStream from '@/components/gcodeviewer/CodeStream.vue'
|
||||
import {
|
||||
mdiCameraRetake,
|
||||
mdiCog,
|
||||
@@ -286,7 +312,7 @@ interface downloadSnackbar {
|
||||
|
||||
let viewer: any = null
|
||||
@Component({
|
||||
components: { Panel },
|
||||
components: { Panel, CodeStream },
|
||||
})
|
||||
export default class Viewer extends Mixins(BaseMixin) {
|
||||
/**
|
||||
@@ -342,6 +368,8 @@ export default class Viewer extends Mixins(BaseMixin) {
|
||||
name: '',
|
||||
}
|
||||
|
||||
private fileData: string = ''
|
||||
|
||||
@Prop({ type: String, default: '', required: false }) declare filename: string
|
||||
@Ref('fileInput') declare fileInput: HTMLInputElement
|
||||
@Ref('viewerCanvasContainer') declare viewerCanvasContainer: HTMLElement
|
||||
@@ -366,6 +394,9 @@ export default class Viewer extends Mixins(BaseMixin) {
|
||||
await this.init()
|
||||
|
||||
if (this.loadedFile !== null) this.scrubFileSize = viewer.fileSize
|
||||
if (viewer) {
|
||||
this.fileData = viewer.fileData
|
||||
}
|
||||
}
|
||||
|
||||
beforeDestroy() {
|
||||
@@ -484,13 +515,14 @@ export default class Viewer extends Mixins(BaseMixin) {
|
||||
}
|
||||
|
||||
viewer.gcodeProcessor.useHighQualityExtrusion(this.hdRendering)
|
||||
viewer.gcodeProcessor.updateForceWireMode(this.forceLineRendering)
|
||||
viewer.gcodeProcessor.updateForceWireMode(this.forceLineRendering || this.cncMode)
|
||||
viewer.gcodeProcessor.setAlpha(this.transparency)
|
||||
viewer.gcodeProcessor.setVoxelMode(this.voxelMode)
|
||||
viewer.gcodeProcessor.voxelWidth = this.voxelWidth
|
||||
viewer.gcodeProcessor.voxelHeight = this.voxelHeight
|
||||
viewer.gcodeProcessor.useSpecularColor(this.specularLighting)
|
||||
viewer.gcodeProcessor.setLiveTracking(false)
|
||||
viewer.gcodeProcessor.g1AsExtrusion = this.cncMode
|
||||
viewer.buildObjects.objectCallback = this.objectCallback
|
||||
|
||||
this.loadToolColors(this.extruderColors)
|
||||
@@ -574,6 +606,7 @@ export default class Viewer extends Mixins(BaseMixin) {
|
||||
this.fileSize = blob.length
|
||||
// Do something with result
|
||||
await viewer.processFile(blob)
|
||||
this.fileData = viewer.fileData
|
||||
}
|
||||
this.finishLoad()
|
||||
})
|
||||
@@ -621,6 +654,7 @@ export default class Viewer extends Mixins(BaseMixin) {
|
||||
|
||||
viewer.updateRenderQuality(this.renderQuality.value)
|
||||
await viewer.processFile(text)
|
||||
this.fileData = viewer.fileData
|
||||
this.loadingPercent = 100
|
||||
this.finishLoad()
|
||||
this.scrubFileSize = viewer.fileSize
|
||||
@@ -652,6 +686,7 @@ export default class Viewer extends Mixins(BaseMixin) {
|
||||
this.loading = true
|
||||
this.loadingPercent = 0
|
||||
await viewer.reload()
|
||||
this.fileData = viewer.fileData
|
||||
this.loadingPercent = 100
|
||||
this.finishLoad()
|
||||
}
|
||||
@@ -694,6 +729,7 @@ export default class Viewer extends Mixins(BaseMixin) {
|
||||
const offset = 350
|
||||
if (newVal > 0 && this.printerIsPrinting && this.tracking && newVal > offset) {
|
||||
viewer.gcodeProcessor.updateFilePosition(newVal - offset)
|
||||
this.scrubPosition = newVal - offset
|
||||
} else {
|
||||
viewer.gcodeProcessor.updateFilePosition(viewer.fileSize)
|
||||
}
|
||||
@@ -739,6 +775,18 @@ export default class Viewer extends Mixins(BaseMixin) {
|
||||
this.$store.dispatch('gui/saveSetting', { name: 'gcodeViewer.showTravelMoves', value: newVal })
|
||||
}
|
||||
|
||||
get showGCode(): boolean {
|
||||
return this.$store.state.gui.gcodeViewer.showGCode ?? false
|
||||
}
|
||||
|
||||
set showGCode(newVal: boolean) {
|
||||
this.$store.dispatch('gui/saveSetting', { name: 'gcodeViewer.showGCode', value: newVal })
|
||||
if (newVal && viewer) {
|
||||
this.fileData = viewer.fileData
|
||||
}
|
||||
this.handleResize()
|
||||
}
|
||||
|
||||
@Watch('showTravelMoves')
|
||||
showTravelMovesChanged(newVal: boolean) {
|
||||
viewer?.toggleTravels(newVal)
|
||||
@@ -784,7 +832,7 @@ export default class Viewer extends Mixins(BaseMixin) {
|
||||
@Watch('forceLineRendering')
|
||||
async forceLineRenderingChanged(newVal: boolean) {
|
||||
if (viewer) {
|
||||
viewer.gcodeProcessor.updateForceWireMode(newVal)
|
||||
viewer.gcodeProcessor.updateForceWireMode(newVal || this.cncMode)
|
||||
await this.reloadViewer()
|
||||
}
|
||||
}
|
||||
@@ -855,6 +903,17 @@ export default class Viewer extends Mixins(BaseMixin) {
|
||||
}
|
||||
}
|
||||
|
||||
get cncMode() {
|
||||
return this.$store.state.gui.gcodeViewer.cncMode
|
||||
}
|
||||
|
||||
set cncMode(newVal) {
|
||||
this.$store.dispatch('gui/saveSetting', { name: 'gcodeViewer.cncMode', value: newVal })
|
||||
viewer.gcodeProcessor.g1AsExtrusion = newVal
|
||||
viewer.gcodeProcessor.updateForceWireMode(this.forceLineRendering || newVal)
|
||||
this.reloadViewer()
|
||||
}
|
||||
|
||||
get extruderColors() {
|
||||
return this.$store.state.gui.gcodeViewer?.extruderColors ?? false
|
||||
}
|
||||
@@ -1044,6 +1103,7 @@ export default class Viewer extends Mixins(BaseMixin) {
|
||||
this.scrubInterval = setInterval(() => {
|
||||
this.scrubPosition += 100 * this.scrubSpeed
|
||||
viewer.gcodeProcessor.updateFilePosition(this.scrubPosition)
|
||||
viewer.simulateToolPosition()
|
||||
if (this.tracking || this.scrubPosition >= this.scrubFileSize) {
|
||||
this.scrubPlaying = false
|
||||
}
|
||||
@@ -1062,7 +1122,10 @@ export default class Viewer extends Mixins(BaseMixin) {
|
||||
@Debounce(200)
|
||||
@Watch('scrubPosition')
|
||||
updateScrubPosition(to: number): void {
|
||||
if (!this.tracking) viewer.gcodeProcessor.updateFilePosition(to)
|
||||
if (!this.tracking) {
|
||||
viewer.gcodeProcessor.updateFilePosition(to)
|
||||
viewer.simulateToolPosition()
|
||||
}
|
||||
}
|
||||
|
||||
fastForward(): void {
|
||||
|
||||
@@ -278,9 +278,13 @@ export default class MiscellaneousSlider extends Mixins(BaseMixin) {
|
||||
return errors
|
||||
}
|
||||
|
||||
get disableFanAnimation() {
|
||||
return this.$store.state.gui.uiSettings.disableFanAnimation ?? false
|
||||
}
|
||||
|
||||
get fanClasses() {
|
||||
const output = ['mr-2']
|
||||
if (this.value >= this.off_below && this.value > 0) output.push('icon-rotate')
|
||||
if (!this.disableFanAnimation && this.value >= this.off_below && this.value > 0) output.push('icon-rotate')
|
||||
|
||||
return output
|
||||
}
|
||||
|
||||
@@ -1,40 +1,26 @@
|
||||
<style scoped>
|
||||
._spin_button_group {
|
||||
width: 24px;
|
||||
margin-top: -6px;
|
||||
margin-left: -6px;
|
||||
margin-bottom: -6px;
|
||||
}
|
||||
|
||||
.v-input--has-state {
|
||||
margin-bottom: -18px !important;
|
||||
}
|
||||
</style>
|
||||
|
||||
<template>
|
||||
<form @submit.prevent="submit">
|
||||
<v-text-field
|
||||
v-model.number="value"
|
||||
v-model="value"
|
||||
:label="label"
|
||||
:suffix="unit"
|
||||
:error="invalidInput()"
|
||||
:error-messages="inputErrors()"
|
||||
:error="invalidInput"
|
||||
:error-messages="inputErrors"
|
||||
:disabled="disabled"
|
||||
:step="step"
|
||||
:min="min"
|
||||
:max="max"
|
||||
:dec="dec"
|
||||
type="number"
|
||||
hide-spin-buttons
|
||||
hide-details="auto"
|
||||
outlined
|
||||
dense
|
||||
class="d-flex align-top"
|
||||
@blur="value = target"
|
||||
@blur="value = target.toString()"
|
||||
@focus="$event.target.select()"
|
||||
@keydown="checkInvalidChars">
|
||||
<template v-if="defaultValue" #append>
|
||||
<v-icon @click="resetToDefault">{{ value !== defaultValue ? mdiRestart : '' }}</v-icon>
|
||||
<v-icon @click="resetToDefault">{{ value !== defaultValue.toString() ? mdiRestart : '' }}</v-icon>
|
||||
</template>
|
||||
<template v-if="hasSpinner" #append-outer>
|
||||
<div class="_spin_button_group">
|
||||
@@ -74,7 +60,7 @@ export default class NumberInput extends Mixins(BaseMixin) {
|
||||
mdiChevronUp = mdiChevronUp
|
||||
mdiChevronDown = mdiChevronDown
|
||||
|
||||
private value: number = 0
|
||||
private value: string = '0'
|
||||
private error: boolean = false
|
||||
private invalidChars: string[] = ['e', 'E', '+']
|
||||
|
||||
@@ -123,40 +109,44 @@ export default class NumberInput extends Mixins(BaseMixin) {
|
||||
declare readonly outputErrorMsg: boolean
|
||||
|
||||
created(): void {
|
||||
this.value = this.target
|
||||
this.value = this.target.toString()
|
||||
}
|
||||
|
||||
@Watch('target')
|
||||
updateTarget(): void {
|
||||
this.value = this.target
|
||||
this.value = this.target.toString()
|
||||
}
|
||||
|
||||
incrementValue(): void {
|
||||
if (this.value + this.step * this.spinnerFactor < this.max! || this.max === null) {
|
||||
this.value = Math.round((this.value + this.step * this.spinnerFactor) * 10 ** this.dec) / 10 ** this.dec
|
||||
} else {
|
||||
this.value = this.max
|
||||
}
|
||||
if (this.inputValue + this.step * this.spinnerFactor < this.max! || this.max === null) {
|
||||
this.value = (
|
||||
Math.round((this.inputValue + this.step * this.spinnerFactor) * 10 ** this.dec) /
|
||||
10 ** this.dec
|
||||
).toString()
|
||||
} else this.value = this.max.toString()
|
||||
|
||||
this.submit()
|
||||
}
|
||||
|
||||
decrementValue(): void {
|
||||
if (this.value - this.step * this.spinnerFactor > this.min) {
|
||||
this.value = Math.round((this.value - this.step * this.spinnerFactor) * 10 ** this.dec) / 10 ** this.dec
|
||||
} else {
|
||||
this.value = this.min
|
||||
}
|
||||
if (this.inputValue - this.step * this.spinnerFactor > this.min) {
|
||||
this.value = (
|
||||
Math.round((this.inputValue - this.step * this.spinnerFactor) * 10 ** this.dec) /
|
||||
10 ** this.dec
|
||||
).toString()
|
||||
} else this.value = this.min.toString()
|
||||
|
||||
this.submit()
|
||||
}
|
||||
|
||||
resetToDefault(): void {
|
||||
this.value = this.defaultValue
|
||||
this.value = this.defaultValue.toString()
|
||||
this.submit()
|
||||
}
|
||||
|
||||
submit(): void {
|
||||
if (this.invalidInput()) return
|
||||
this.$emit('submit', { name: this.param, value: this.value })
|
||||
if (this.invalidInput) return
|
||||
this.$emit('submit', { name: this.param, value: this.inputValue })
|
||||
}
|
||||
|
||||
// input validation //
|
||||
@@ -166,27 +156,44 @@ export default class NumberInput extends Mixins(BaseMixin) {
|
||||
if (this.invalidChars.includes(event.key)) event.preventDefault()
|
||||
}
|
||||
|
||||
invalidInput(): boolean {
|
||||
return this.value.toString() === '' || this.value < this.min || (this.value > this.max! && this.max !== null)
|
||||
// this function only parse this.value, to escape an empty input
|
||||
get inputValue(): number {
|
||||
if (this.value.toString() === '') return 0
|
||||
|
||||
return parseFloat(this.value.replace(',', '.'))
|
||||
}
|
||||
|
||||
inputErrors() {
|
||||
get invalidInput(): boolean {
|
||||
return this.inputErrors.length > 0
|
||||
}
|
||||
|
||||
get inputErrors() {
|
||||
if (!this.outputErrorMsg) return []
|
||||
|
||||
const errors = []
|
||||
if (this.value.toString() === '') {
|
||||
// "Input must not be empty!"
|
||||
errors.push(this.$t('App.NumberInput.NoEmptyAllowedError'))
|
||||
}
|
||||
if (this.max === null && this.value < this.min) {
|
||||
if (this.max === null && this.inputValue < this.min) {
|
||||
// "Must be grater or equal than {min}!"
|
||||
errors.push(this.$t('App.NumberInput.GreaterOrEqualError', { min: this.min }))
|
||||
}
|
||||
if (this.max !== null && (this.value > this.max! || this.value < this.min)) {
|
||||
if (this.max !== null && (this.inputValue > this.max! || this.inputValue < this.min)) {
|
||||
// "Must be between {min} and {max}!"
|
||||
errors.push(this.$t('App.NumberInput.MustBeBetweenError', { min: this.min, max: this.max }))
|
||||
}
|
||||
|
||||
return errors
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
||||
<style scoped>
|
||||
._spin_button_group {
|
||||
width: 24px;
|
||||
margin-top: -6px;
|
||||
margin-left: -6px;
|
||||
margin-bottom: -6px;
|
||||
}
|
||||
|
||||
.v-input--has-state {
|
||||
margin-bottom: -18px !important;
|
||||
}
|
||||
</style>
|
||||
@@ -1,6 +1,7 @@
|
||||
import Vue from 'vue'
|
||||
import Component from 'vue-class-component'
|
||||
import { DateTimeFormatOptions } from 'vue-i18n'
|
||||
import { ServerPowerStateDevice } from '@/store/server/power/types'
|
||||
|
||||
@Component
|
||||
export default class BaseMixin extends Vue {
|
||||
@@ -33,6 +34,8 @@ export default class BaseMixin extends Vue {
|
||||
}
|
||||
|
||||
get klipperState(): string {
|
||||
if (!this.klippyIsConnected) return 'disconnected'
|
||||
|
||||
return this.$store.state.server.klippy_state ?? ''
|
||||
}
|
||||
|
||||
@@ -44,6 +47,31 @@ export default class BaseMixin extends Vue {
|
||||
return this.klipperReadyForGui && ['printing', 'paused'].includes(this.printer_state)
|
||||
}
|
||||
|
||||
get printerPowerDevice(): string {
|
||||
let deviceName = this.$store.state.gui.uiSettings.powerDeviceName ?? null
|
||||
if (deviceName === null) deviceName = 'printer'
|
||||
|
||||
return deviceName
|
||||
}
|
||||
|
||||
get isPrinterPowerOff() {
|
||||
const devices = this.$store.getters['server/power/getDevices'] ?? []
|
||||
if (devices.length === 0) return false
|
||||
|
||||
const deviceIndex = devices.findIndex(
|
||||
(device: ServerPowerStateDevice) => device.device === this.printerPowerDevice
|
||||
)
|
||||
// stop if device is not found
|
||||
if (deviceIndex === -1) return false
|
||||
|
||||
const device = devices[deviceIndex]
|
||||
// Printer is on, if device status is "on" or "error"
|
||||
if (device.status !== 'off') return false
|
||||
|
||||
// if klippy is not connected (service shutdown) and device.status === off
|
||||
return !this.klippyIsConnected
|
||||
}
|
||||
|
||||
get loadings(): string[] {
|
||||
return this.$store.state.socket.loadings ?? []
|
||||
}
|
||||
|
||||
@@ -1,31 +1,22 @@
|
||||
import Component from 'vue-class-component'
|
||||
import BaseMixin from '@/components/mixins/base'
|
||||
import { allDashboardPanels } from '@/store/variables'
|
||||
import { capitalize } from '@/plugins/helpers'
|
||||
import { GuiMacrosStateMacrogroup } from '@/store/gui/macros/types'
|
||||
import {
|
||||
mdiArrowCollapseVertical,
|
||||
mdiCodeTags,
|
||||
mdiConsoleLine,
|
||||
mdiDipSwitch,
|
||||
mdiEngine,
|
||||
mdiGamepad,
|
||||
mdiInformation,
|
||||
mdiPrinter3dNozzle,
|
||||
mdiThermometerLines,
|
||||
mdiWebcam,
|
||||
} from '@mdi/js'
|
||||
|
||||
@Component
|
||||
export default class DashboardMixin extends BaseMixin {
|
||||
get printerKinematics() {
|
||||
return this.$store.getters['printer/getKinematics']
|
||||
}
|
||||
|
||||
get printerExtruderCount() {
|
||||
return this.$store.getters['printer/getExtruders'].length
|
||||
}
|
||||
|
||||
get printerAvailableHeatersCount() {
|
||||
return this.$store.getters['printer/getAvailableHeaters'].length
|
||||
}
|
||||
|
||||
get printerTemperatureSensorsCount() {
|
||||
return this.$store.getters['printer/getTemperatureSensors'].length
|
||||
}
|
||||
|
||||
get macroMode() {
|
||||
return this.$store.state.gui.macros.mode ?? 'simple'
|
||||
}
|
||||
|
||||
get macrogroups() {
|
||||
return this.$store.getters['gui/macros/getAllMacrogroups'] ?? []
|
||||
}
|
||||
@@ -34,89 +25,6 @@ export default class DashboardMixin extends BaseMixin {
|
||||
return this.$store.getters['gui/webcams/getWebcams'] ?? []
|
||||
}
|
||||
|
||||
get missingPanelsMobile() {
|
||||
const panels = [...this.$store.state.gui.dashboard.mobileLayout]
|
||||
|
||||
return this.checkMissingPanels(panels)
|
||||
}
|
||||
|
||||
get missingPanelsTablet() {
|
||||
const panels = [
|
||||
...this.$store.state.gui.dashboard.tabletLayout1,
|
||||
...this.$store.state.gui.dashboard.tabletLayout2,
|
||||
]
|
||||
|
||||
return this.checkMissingPanels(panels)
|
||||
}
|
||||
|
||||
get missingPanelsDesktop() {
|
||||
const panels = [
|
||||
...this.$store.state.gui.dashboard.desktopLayout1,
|
||||
...this.$store.state.gui.dashboard.desktopLayout2,
|
||||
]
|
||||
|
||||
return this.checkMissingPanels(panels)
|
||||
}
|
||||
|
||||
get missingPanelsWidescreen() {
|
||||
const panels = [
|
||||
...this.$store.state.gui.dashboard.widescreenLayout1,
|
||||
...this.$store.state.gui.dashboard.widescreenLayout2,
|
||||
...this.$store.state.gui.dashboard.widescreenLayout3,
|
||||
]
|
||||
|
||||
return this.checkMissingPanels(panels)
|
||||
}
|
||||
|
||||
get allPossiblePanels() {
|
||||
let allPanels = [...allDashboardPanels]
|
||||
|
||||
// remove macros panel and add macrogroups panels if macroMode === expert
|
||||
if (this.macroMode === 'expert') {
|
||||
this.macrogroups.forEach((group: GuiMacrosStateMacrogroup) => {
|
||||
allPanels.push('macrogroup_' + group.id)
|
||||
})
|
||||
|
||||
allPanels = allPanels.filter((name) => name !== 'macros')
|
||||
}
|
||||
|
||||
// remove toolhead panel, if kinematics === none
|
||||
if (this.printerKinematics === 'none') {
|
||||
allPanels = allPanels.filter((name) => name !== 'toolhead-control')
|
||||
}
|
||||
|
||||
// remove extruder panel, if printerExtruderCount < 1
|
||||
if (this.printerExtruderCount < 1) {
|
||||
allPanels = allPanels.filter((name) => name !== 'extruder-control')
|
||||
}
|
||||
|
||||
// remove temperature panel, if heaters & sensors < 1
|
||||
if (this.printerAvailableHeatersCount + this.printerTemperatureSensorsCount < 1) {
|
||||
allPanels = allPanels.filter((name) => name !== 'temperature')
|
||||
}
|
||||
|
||||
// remove webcam panel, if no webcam exists
|
||||
if (this.webcams.length === 0) {
|
||||
allPanels = allPanels.filter((name) => name !== 'webcam')
|
||||
}
|
||||
|
||||
return allPanels
|
||||
}
|
||||
|
||||
checkMissingPanels(panels: any[]) {
|
||||
const missingPanels: any[] = []
|
||||
|
||||
this.allPossiblePanels.forEach((panelname) => {
|
||||
if (!panels.find((panel) => panel.name === panelname))
|
||||
missingPanels.push({
|
||||
name: panelname,
|
||||
visible: true,
|
||||
})
|
||||
})
|
||||
|
||||
return missingPanels
|
||||
}
|
||||
|
||||
getPanelName(name: string) {
|
||||
if (name.startsWith('macrogroup_')) {
|
||||
const groupId = name.split('_')[1] ?? ''
|
||||
@@ -136,4 +44,32 @@ export default class DashboardMixin extends BaseMixin {
|
||||
|
||||
return this.$t(`Panels.${capitalize(name)}Panel.Headline`)
|
||||
}
|
||||
|
||||
convertPanelnameToIcon(name: string): string {
|
||||
if (name.startsWith('macrogroup_')) return mdiCodeTags
|
||||
|
||||
switch (name) {
|
||||
case 'webcam':
|
||||
return mdiWebcam
|
||||
case 'zoffset':
|
||||
return mdiArrowCollapseVertical
|
||||
case 'toolhead-control':
|
||||
return mdiGamepad
|
||||
case 'macros':
|
||||
return mdiCodeTags
|
||||
case 'miscellaneous':
|
||||
return mdiDipSwitch
|
||||
case 'temperature':
|
||||
return mdiThermometerLines
|
||||
case 'miniconsole':
|
||||
return mdiConsoleLine
|
||||
case 'machine-settings':
|
||||
return mdiEngine
|
||||
case 'extruder-control':
|
||||
return mdiPrinter3dNozzle
|
||||
|
||||
default:
|
||||
return mdiInformation
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -63,6 +63,7 @@
|
||||
:key="tool.name"
|
||||
:class="tool.active ? 'primary--text' : {}"
|
||||
:disabled="isPrinting"
|
||||
:style="{ 'background-color': '#' + tool.color }"
|
||||
dense
|
||||
class="flex-grow-1 px-0"
|
||||
@click="doSend(tool.name)">
|
||||
@@ -85,7 +86,7 @@
|
||||
attribute-name="S"></tool-slider>
|
||||
</v-container>
|
||||
<!-- PRESSURE ADVANCE SETTINGS -->
|
||||
<template v-if="!extruderSteppers.length > 0">
|
||||
<template v-if="!(extruderSteppers.length > 0)">
|
||||
<v-divider></v-divider>
|
||||
<pressure-advance-settings></pressure-advance-settings>
|
||||
</template>
|
||||
@@ -461,7 +462,11 @@ export default class ExtruderControlPanel extends Mixins(BaseMixin, ControlMixin
|
||||
}
|
||||
|
||||
get extrudedLength(): number {
|
||||
return Math.round(this.feedamount * this.extrudeFactor * (this.filamentDiameter / this.nozzleDiameter))
|
||||
return Math.round(
|
||||
this.feedamount *
|
||||
this.extrudeFactor *
|
||||
(Math.pow(this.filamentDiameter, 2) / Math.pow(this.nozzleDiameter, 2))
|
||||
)
|
||||
}
|
||||
|
||||
get volumetricFlow(): number {
|
||||
|
||||
@@ -18,6 +18,15 @@
|
||||
dense
|
||||
style="max-width: 300px"></v-text-field>
|
||||
<v-spacer></v-spacer>
|
||||
<v-btn
|
||||
v-if="selectedFiles.length"
|
||||
:title="$t('Files.Download')"
|
||||
color="primary"
|
||||
class="px-2 minwidth-0 ml-3"
|
||||
:loading="loadings.includes('gcodeDownloadZip')"
|
||||
@click="downloadSelectedFiles">
|
||||
<v-icon>{{ mdiCloudDownload }}</v-icon>
|
||||
</v-btn>
|
||||
<v-btn
|
||||
v-if="selectedFiles.length"
|
||||
:title="$t('Files.Delete')"
|
||||
@@ -315,6 +324,13 @@
|
||||
<v-icon class="mr-1">{{ mdiPlaylistPlus }}</v-icon>
|
||||
{{ $t('Files.AddToQueue') }}
|
||||
</v-list-item>
|
||||
<v-list-item
|
||||
v-if="!contextMenu.item.isDirectory && moonrakerComponents.includes('job_queue')"
|
||||
:disabled="!isGcodeFile(contextMenu.item)"
|
||||
@click="openAddBatchToQueueDialog(contextMenu.item)">
|
||||
<v-icon class="mr-1">{{ mdiPlaylistPlus }}</v-icon>
|
||||
{{ $t('Files.AddBatchToQueue') }}
|
||||
</v-list-item>
|
||||
<v-list-item
|
||||
v-if="contextMenu.item.preheat_gcode !== null"
|
||||
:disabled="['error', 'printing', 'paused'].includes(printer_state)"
|
||||
@@ -487,6 +503,53 @@
|
||||
</v-card-actions>
|
||||
</panel>
|
||||
</v-dialog>
|
||||
<v-dialog v-model="dialogAddBatchToQueue.show" max-width="400">
|
||||
<panel
|
||||
:title="$t('Files.AddToQueue').toString()"
|
||||
card-class="gcode-files-add-to-queue-dialog"
|
||||
:icon="mdiPlaylistPlus"
|
||||
:margin-bottom="false">
|
||||
<template #buttons>
|
||||
<v-btn icon tile @click="dialogAddBatchToQueue.show = false">
|
||||
<v-icon>{{ mdiCloseThick }}</v-icon>
|
||||
</v-btn>
|
||||
</template>
|
||||
|
||||
<v-card-text>
|
||||
<v-text-field
|
||||
ref="inputFieldAddToQueueCount"
|
||||
v-model="dialogAddBatchToQueue.count"
|
||||
:label="$t('Files.Count')"
|
||||
required
|
||||
hide-spin-buttons
|
||||
type="number"
|
||||
:rules="countInputRules"
|
||||
@keyup.enter="addBatchToQueueAction">
|
||||
<template #append-outer>
|
||||
<div class="_spin_button_group">
|
||||
<v-btn class="mt-n3" icon plain small @click="dialogAddBatchToQueue.count++">
|
||||
<v-icon>{{ mdiChevronUp }}</v-icon>
|
||||
</v-btn>
|
||||
<v-btn
|
||||
:disabled="dialogAddBatchToQueue.count <= 1"
|
||||
class="mb-n3"
|
||||
icon
|
||||
plain
|
||||
small
|
||||
@click="dialogAddBatchToQueue.count--">
|
||||
<v-icon>{{ mdiChevronDown }}</v-icon>
|
||||
</v-btn>
|
||||
</div>
|
||||
</template>
|
||||
</v-text-field>
|
||||
</v-card-text>
|
||||
<v-card-actions>
|
||||
<v-spacer></v-spacer>
|
||||
<v-btn color="" text @click="dialogAddBatchToQueue.show = false">{{ $t('Files.Cancel') }}</v-btn>
|
||||
<v-btn color="primary" text @click="addBatchToQueueAction">{{ $t('Files.AddToQueue') }}</v-btn>
|
||||
</v-card-actions>
|
||||
</panel>
|
||||
</v-dialog>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
@@ -500,6 +563,8 @@ import Panel from '@/components/ui/Panel.vue'
|
||||
import SettingsRow from '@/components/settings/SettingsRow.vue'
|
||||
import draggable from 'vuedraggable'
|
||||
import {
|
||||
mdiChevronDown,
|
||||
mdiChevronUp,
|
||||
mdiDragVertical,
|
||||
mdiCheckboxBlankOutline,
|
||||
mdiCheckboxMarked,
|
||||
@@ -543,6 +608,12 @@ interface dialogPrintFile {
|
||||
item: FileStateGcodefile
|
||||
}
|
||||
|
||||
interface dialogAddBatchToQueue {
|
||||
show: boolean
|
||||
count: number
|
||||
item: FileStateGcodefile
|
||||
}
|
||||
|
||||
interface dialogRenameObject {
|
||||
show: boolean
|
||||
newName: string
|
||||
@@ -563,6 +634,8 @@ interface tableColumnSetting {
|
||||
components: { StartPrintDialog, Panel, SettingsRow, draggable },
|
||||
})
|
||||
export default class GcodefilesPanel extends Mixins(BaseMixin, ControlMixin) {
|
||||
mdiChevronDown = mdiChevronDown
|
||||
mdiChevronUp = mdiChevronUp
|
||||
mdiFile = mdiFile
|
||||
mdiFileDocumentMultipleOutline = mdiFileDocumentMultipleOutline
|
||||
mdiMagnify = mdiMagnify
|
||||
@@ -637,6 +710,12 @@ export default class GcodefilesPanel extends Mixins(BaseMixin, ControlMixin) {
|
||||
item: { ...this.contextMenu.item },
|
||||
}
|
||||
|
||||
private dialogAddBatchToQueue: dialogAddBatchToQueue = {
|
||||
show: false,
|
||||
count: 1,
|
||||
item: { ...this.contextMenu.item },
|
||||
}
|
||||
|
||||
private dialogRenameFile: dialogRenameObject = {
|
||||
show: false,
|
||||
newName: '',
|
||||
@@ -662,9 +741,13 @@ export default class GcodefilesPanel extends Mixins(BaseMixin, ControlMixin) {
|
||||
(value: string) => !!value || this.$t('Files.InvalidNameEmpty'),
|
||||
(value: string) => !this.existsFilename(value) || this.$t('Files.InvalidNameAlreadyExists'),
|
||||
]
|
||||
private countInputRules = [
|
||||
(value: string) => !!value || this.$t('JobQueue.InvalidCountEmpty'),
|
||||
(value: string) => parseInt(value) > 0 || this.$t('JobQueue.InvalidCountGreaterZero'),
|
||||
]
|
||||
|
||||
existsFilename(name: string) {
|
||||
return this.files.findIndex((file) => file.filename === name) >= 0
|
||||
return this.files.findIndex((file: FileStateFile) => file.filename === name) >= 0
|
||||
}
|
||||
|
||||
get gcodeInputFileAccept() {
|
||||
@@ -1088,11 +1171,31 @@ export default class GcodefilesPanel extends Mixins(BaseMixin, ControlMixin) {
|
||||
this.currentPath = this.currentPath.slice(0, this.currentPath.lastIndexOf('/'))
|
||||
}
|
||||
|
||||
addToQueue(item: FileStateGcodefile | FileStateFile) {
|
||||
async addToQueue(item: FileStateGcodefile) {
|
||||
let filename = [this.currentPath, item.filename].join('/')
|
||||
if (filename.startsWith('/')) filename = filename.slice(1)
|
||||
|
||||
this.$store.dispatch('server/jobQueue/addToQueue', [filename])
|
||||
await this.$store.dispatch('server/jobQueue/addToQueue', [filename])
|
||||
}
|
||||
|
||||
openAddBatchToQueueDialog(item: FileStateGcodefile) {
|
||||
this.dialogAddBatchToQueue.show = true
|
||||
this.dialogAddBatchToQueue.count = 1
|
||||
this.dialogAddBatchToQueue.item = item
|
||||
}
|
||||
|
||||
async addBatchToQueueAction() {
|
||||
let filename = [this.currentPath, this.dialogAddBatchToQueue.item.filename].join('/')
|
||||
if (filename.startsWith('/')) filename = filename.slice(1)
|
||||
|
||||
const array: string[] = []
|
||||
for (let i = 0; i < this.dialogAddBatchToQueue.count; i++) {
|
||||
array.push(filename)
|
||||
}
|
||||
|
||||
await this.$store.dispatch('server/jobQueue/addToQueue', array)
|
||||
|
||||
this.dialogAddBatchToQueue.show = false
|
||||
}
|
||||
|
||||
changeMetadataVisible(name: string, value: boolean) {
|
||||
@@ -1129,6 +1232,36 @@ export default class GcodefilesPanel extends Mixins(BaseMixin, ControlMixin) {
|
||||
window.open(href)
|
||||
}
|
||||
|
||||
async downloadSelectedFiles() {
|
||||
let items: string[] = []
|
||||
|
||||
const addElementToItems = async (absolutPath: string, directory: FileStateFile[]) => {
|
||||
for (const file of directory) {
|
||||
const filePath = `${absolutPath}/${file.filename}`
|
||||
|
||||
if (file.isDirectory && file.childrens) {
|
||||
await addElementToItems(filePath, file.childrens)
|
||||
|
||||
continue
|
||||
}
|
||||
|
||||
items.push(filePath)
|
||||
}
|
||||
}
|
||||
|
||||
await addElementToItems('gcodes/' + this.currentPath, this.selectedFiles)
|
||||
const date = new Date()
|
||||
const timestamp = `${date.getFullYear()}${date.getMonth()}${date.getDay()}-${date.getHours()}${date.getMinutes()}${date.getSeconds()}`
|
||||
|
||||
this.$socket.emit(
|
||||
'server.files.zip',
|
||||
{ items, dest: `config/gcodes-${timestamp}.zip` },
|
||||
{ action: 'files/downloadZip', loading: 'gcodeDownloadZip' }
|
||||
)
|
||||
|
||||
this.selectedFiles = []
|
||||
}
|
||||
|
||||
renameFile(item: FileStateGcodefile) {
|
||||
this.dialogRenameFile.item = item
|
||||
this.dialogRenameFile.newName = item.filename
|
||||
@@ -1297,6 +1430,15 @@ export default class GcodefilesPanel extends Mixins(BaseMixin, ControlMixin) {
|
||||
}
|
||||
</script>
|
||||
|
||||
<style scoped>
|
||||
._spin_button_group {
|
||||
width: 24px;
|
||||
margin-top: -6px;
|
||||
margin-left: -6px;
|
||||
margin-bottom: -6px;
|
||||
}
|
||||
</style>
|
||||
|
||||
<style>
|
||||
/*noinspection CssUnusedSymbol*/
|
||||
.files-table .v-data-table-header__icon {
|
||||
|
||||
@@ -12,7 +12,7 @@
|
||||
<div>
|
||||
<panel
|
||||
:icon="mdiFileDocumentMultipleOutline"
|
||||
:title="$t('History.PrintHistory')"
|
||||
:title="$t('History.PrintHistory').toString()"
|
||||
card-class="history-list-panel">
|
||||
<v-card-text>
|
||||
<v-row>
|
||||
@@ -246,7 +246,7 @@
|
||||
persistent
|
||||
@keydown.esc="detailsDialog.boolShow = false">
|
||||
<panel
|
||||
:title="$t('History.JobDetails')"
|
||||
:title="$t('History.JobDetails').toString()"
|
||||
:icon="mdiUpdate"
|
||||
card-class="history-detail-dialog"
|
||||
:margin-bottom="false">
|
||||
@@ -273,7 +273,7 @@
|
||||
<v-row>
|
||||
<v-col>{{ $t('History.LastModified') }}</v-col>
|
||||
<v-col class="text-right">
|
||||
{{ formatDateTime(detailsDialog.item.metadata.modified) }}
|
||||
{{ formatDateTime(detailsDialog.item.metadata.modified * 1000) }}
|
||||
</v-col>
|
||||
</v-row>
|
||||
</template>
|
||||
@@ -291,13 +291,15 @@
|
||||
<v-divider class="my-3"></v-divider>
|
||||
<v-row>
|
||||
<v-col>{{ $t('History.StartTime') }}</v-col>
|
||||
<v-col class="text-right">{{ formatDateTime(detailsDialog.item.start_time) }}</v-col>
|
||||
<v-col class="text-right">{{ formatDateTime(detailsDialog.item.start_time * 1000) }}</v-col>
|
||||
</v-row>
|
||||
<template v-if="'end_time' in detailsDialog.item && detailsDialog.item.end_time > 0">
|
||||
<v-divider class="my-3"></v-divider>
|
||||
<v-row>
|
||||
<v-col>{{ $t('History.EndTime') }}</v-col>
|
||||
<v-col class="text-right">{{ formatDateTime(detailsDialog.item.end_time) }}</v-col>
|
||||
<v-col class="text-right">
|
||||
{{ formatDateTime(detailsDialog.item.end_time * 1000) }}
|
||||
</v-col>
|
||||
</v-row>
|
||||
</template>
|
||||
<template
|
||||
@@ -429,7 +431,10 @@
|
||||
</panel>
|
||||
</v-dialog>
|
||||
<v-dialog v-model="deleteSelectedDialog" max-width="400">
|
||||
<panel :title="$t('History.Delete')" card-class="history-delete-selected-dialog" :margin-bottom="false">
|
||||
<panel
|
||||
:title="$t('History.Delete').toString()"
|
||||
card-class="history-delete-selected-dialog"
|
||||
:margin-bottom="false">
|
||||
<template #buttons>
|
||||
<v-btn icon tile @click="deleteSelectedDialog = false">
|
||||
<v-icon>{{ mdiCloseThick }}</v-icon>
|
||||
|
||||
@@ -57,11 +57,23 @@
|
||||
</v-simple-table>
|
||||
</v-col>
|
||||
<v-col class="col-12 col-sm-6 col-md-4">
|
||||
<history-all-print-status></history-all-print-status>
|
||||
<history-all-print-status-chart
|
||||
v-if="togglePrintStatus === 'chart'"></history-all-print-status-chart>
|
||||
<history-all-print-status-table v-else></history-all-print-status-table>
|
||||
<div class="text-center mb-3">
|
||||
<v-btn-toggle v-model="togglePrintStatus" small mandatory>
|
||||
<v-btn small value="chart">
|
||||
{{ $t('History.Chart') }}
|
||||
</v-btn>
|
||||
<v-btn small value="table">
|
||||
{{ $t('History.Table') }}
|
||||
</v-btn>
|
||||
</v-btn-toggle>
|
||||
</div>
|
||||
</v-col>
|
||||
<v-col class="col-12 col-sm-12 col-md-4">
|
||||
<history-filament-usage v-if="toggleChart === 'filament_usage'"></history-filament-usage>
|
||||
<history-printtime-avg v-if="toggleChart === 'printtime_avg'"></history-printtime-avg>
|
||||
<history-printtime-avg v-else-if="toggleChart === 'printtime_avg'"></history-printtime-avg>
|
||||
<div class="text-center mt-3">
|
||||
<v-btn-toggle v-model="toggleChart" small mandatory>
|
||||
<v-btn small value="filament_usage">
|
||||
@@ -84,11 +96,11 @@ import BaseMixin from '@/components/mixins/base'
|
||||
import Panel from '@/components/ui/Panel.vue'
|
||||
import HistoryFilamentUsage from '@/components/charts/HistoryFilamentUsage.vue'
|
||||
import HistoryPrinttimeAvg from '@/components/charts/HistoryPrinttimeAvg.vue'
|
||||
import HistoryAllPrintStatus from '@/components/charts/HistoryAllPrintStatus.vue'
|
||||
import HistoryAllPrintStatusChart from '@/components/charts/HistoryAllPrintStatusChart.vue'
|
||||
import { ServerHistoryStateJob } from '@/store/server/history/types'
|
||||
import { mdiChartAreaspline } from '@mdi/js'
|
||||
@Component({
|
||||
components: { Panel, HistoryFilamentUsage, HistoryPrinttimeAvg, HistoryAllPrintStatus },
|
||||
components: { Panel, HistoryFilamentUsage, HistoryPrinttimeAvg, HistoryAllPrintStatusChart },
|
||||
})
|
||||
export default class HistoryStatisticsPanel extends Mixins(BaseMixin) {
|
||||
mdiChartAreaspline = mdiChartAreaspline
|
||||
@@ -177,6 +189,14 @@ export default class HistoryStatisticsPanel extends Mixins(BaseMixin) {
|
||||
this.$store.dispatch('gui/saveSetting', { name: 'view.history.toggleChartCol3', value: newVal })
|
||||
}
|
||||
|
||||
get togglePrintStatus() {
|
||||
return this.$store.state.gui.view.history.toggleChartCol2
|
||||
}
|
||||
|
||||
set togglePrintStatus(newVal) {
|
||||
this.$store.dispatch('gui/saveSetting', { name: 'view.history.toggleChartCol2', value: newVal })
|
||||
}
|
||||
|
||||
formatPrintTime(totalSeconds: number) {
|
||||
if (totalSeconds) {
|
||||
let output = ''
|
||||
|
||||
@@ -1,6 +1,10 @@
|
||||
<template>
|
||||
<div>
|
||||
<panel ref="jobqueuePanel" :icon="mdiTrayFull" :title="$t('JobQueue.JobQueue')" card-class="jobqueue-panel">
|
||||
<panel
|
||||
ref="jobqueuePanel"
|
||||
:icon="mdiTrayFull"
|
||||
:title="$t('JobQueue.JobQueue').toString()"
|
||||
card-class="jobqueue-panel">
|
||||
<template #buttons>
|
||||
<v-btn
|
||||
v-if="queueState === 'paused'"
|
||||
@@ -48,98 +52,29 @@
|
||||
</template>
|
||||
|
||||
<template #item="{ item }">
|
||||
<tr
|
||||
:key="item.job_id"
|
||||
v-longpress:600="(e) => showContextMenu(e, item)"
|
||||
class="file-list-cursor user-select-none"
|
||||
@contextmenu="showContextMenu($event, item)">
|
||||
<td class="pr-0 text-center" style="width: 32px">
|
||||
<template v-if="getSmallThumbnail(item) && getBigThumbnail(item)">
|
||||
<v-tooltip
|
||||
v-if="!item.isDirectory && getSmallThumbnail(item) && getBigThumbnail(item)"
|
||||
top
|
||||
content-class="tooltip__content-opacity1">
|
||||
<template #activator="{ on, attrs }">
|
||||
<vue-load-image>
|
||||
<img
|
||||
slot="image"
|
||||
:src="getSmallThumbnail(item)"
|
||||
width="32"
|
||||
height="32"
|
||||
v-bind="attrs"
|
||||
v-on="on" />
|
||||
<v-progress-circular
|
||||
slot="preloader"
|
||||
indeterminate
|
||||
color="primary"></v-progress-circular>
|
||||
<v-icon slot="error">{{ mdiFile }}</v-icon>
|
||||
</vue-load-image>
|
||||
</template>
|
||||
<span><img :src="getBigThumbnail(item)" width="250" /></span>
|
||||
</v-tooltip>
|
||||
</template>
|
||||
<template v-else-if="getSmallThumbnail(item)">
|
||||
<vue-load-image>
|
||||
<img slot="image" :src="getSmallThumbnail(item)" width="32" height="32" />
|
||||
<v-progress-circular
|
||||
slot="preloader"
|
||||
indeterminate
|
||||
color="primary"></v-progress-circular>
|
||||
<v-icon slot="error">{{ mdiFile }}</v-icon>
|
||||
</vue-load-image>
|
||||
</template>
|
||||
<template v-else>
|
||||
<v-icon>{{ mdiFile }}</v-icon>
|
||||
</template>
|
||||
</td>
|
||||
<td class=" ">
|
||||
<div class="d-block text-truncate" :style="styleContentTdWidth">{{ item.filename }}</div>
|
||||
<small v-if="existMetadata(item)">{{ getDescription(item) }}</small>
|
||||
</td>
|
||||
</tr>
|
||||
<jobqueue-entry :key="item.job_id" :item="item" :content-td-width="contentTdWidth" />
|
||||
</template>
|
||||
</v-data-table>
|
||||
<resize-observer @notify="handleResize" />
|
||||
</panel>
|
||||
<v-menu v-model="contextMenu.shown" :position-x="contextMenu.x" :position-y="contextMenu.y" absolute offset-y>
|
||||
<v-list>
|
||||
<v-list-item @click="deleteJob(contextMenu.item)">
|
||||
<v-icon class="mr-1">{{ mdiPlaylistRemove }}</v-icon>
|
||||
{{ $t('JobQueue.RemoveFromQueue') }}
|
||||
</v-list-item>
|
||||
</v-list>
|
||||
</v-menu>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<script lang="ts">
|
||||
import { Component, Mixins } from 'vue-property-decorator'
|
||||
import BaseMixin from '@/components/mixins/base'
|
||||
import { ServerHistoryStateJob } from '@/store/server/history/types'
|
||||
import { formatFilesize, formatPrintTime } from '@/plugins/helpers'
|
||||
import Panel from '@/components/ui/Panel.vue'
|
||||
import { ServerJobQueueStateJob } from '@/store/server/jobQueue/types'
|
||||
import { mdiPlay, mdiPause, mdiFile, mdiPlaylistRemove, mdiTrayFull } from '@mdi/js'
|
||||
import { mdiPlay, mdiPause, mdiTrayFull } from '@mdi/js'
|
||||
import JobqueueEntry from '@/components/panels/Status/JobqueueEntry.vue'
|
||||
@Component({
|
||||
components: { Panel },
|
||||
components: { JobqueueEntry, Panel },
|
||||
})
|
||||
export default class JobqueuePanel extends Mixins(BaseMixin) {
|
||||
mdiPlay = mdiPlay
|
||||
mdiPause = mdiPause
|
||||
mdiFile = mdiFile
|
||||
mdiPlaylistRemove = mdiPlaylistRemove
|
||||
mdiTrayFull = mdiTrayFull
|
||||
|
||||
formatFilesize = formatFilesize
|
||||
|
||||
private contentTdWidth = 100
|
||||
private contextMenu = {
|
||||
shown: false,
|
||||
touchTimer: undefined,
|
||||
x: 0,
|
||||
y: 0,
|
||||
item: {},
|
||||
}
|
||||
|
||||
declare $refs: {
|
||||
jobqueuePanel: any
|
||||
@@ -161,27 +96,6 @@ export default class JobqueuePanel extends Mixins(BaseMixin) {
|
||||
this.$store.dispatch('gui/saveSetting', { name: 'view.jobqueue.countPerPage', value: newVal })
|
||||
}
|
||||
|
||||
get styleContentTdWidth() {
|
||||
return `width: ${this.contentTdWidth}px;`
|
||||
}
|
||||
|
||||
showContextMenu(e: any, item: ServerHistoryStateJob) {
|
||||
if (!this.contextMenu.shown) {
|
||||
e?.preventDefault()
|
||||
this.contextMenu.shown = true
|
||||
this.contextMenu.x = e?.clientX || e?.pageX || window.screenX / 2
|
||||
this.contextMenu.y = e?.clientY || e?.pageY || window.screenY / 2
|
||||
this.contextMenu.item = item
|
||||
this.$nextTick(() => {
|
||||
this.contextMenu.shown = true
|
||||
})
|
||||
}
|
||||
}
|
||||
|
||||
deleteJob(item: ServerJobQueueStateJob) {
|
||||
this.$store.dispatch('server/jobQueue/deleteFromQueue', [item.job_id])
|
||||
}
|
||||
|
||||
startJobqueue() {
|
||||
this.$store.dispatch('server/jobQueue/start')
|
||||
}
|
||||
@@ -190,35 +104,6 @@ export default class JobqueuePanel extends Mixins(BaseMixin) {
|
||||
this.$store.dispatch('server/jobQueue/pause')
|
||||
}
|
||||
|
||||
getSmallThumbnail(item: ServerJobQueueStateJob) {
|
||||
return this.$store.getters['server/jobQueue/getSmallThumbnail'](item)
|
||||
}
|
||||
|
||||
getBigThumbnail(item: ServerJobQueueStateJob) {
|
||||
return this.$store.getters['server/jobQueue/getBigThumbnail'](item)
|
||||
}
|
||||
|
||||
getDescription(item: ServerJobQueueStateJob) {
|
||||
let output = ''
|
||||
|
||||
output += this.$t('Files.Filament') + ': '
|
||||
if (item.metadata?.filament_total || item.metadata.filament_weight_total) {
|
||||
if (item.metadata?.filament_total) output += item.metadata.filament_total.toFixed() + ' mm'
|
||||
if (item.metadata?.filament_total && item.metadata.filament_weight_total) output += ' / '
|
||||
if (item.metadata?.filament_weight_total) output += item.metadata.filament_weight_total.toFixed(2) + ' g'
|
||||
} else output += '--'
|
||||
|
||||
output += ', ' + this.$t('Files.PrintTime') + ': '
|
||||
if (item.metadata?.estimated_time) output += formatPrintTime(item.metadata.estimated_time)
|
||||
else output += '--'
|
||||
|
||||
return output
|
||||
}
|
||||
|
||||
existMetadata(item: ServerJobQueueStateJob) {
|
||||
return item?.metadata?.metadataPulled
|
||||
}
|
||||
|
||||
mounted() {
|
||||
this.calcContentTdWidth()
|
||||
}
|
||||
@@ -235,7 +120,7 @@ export default class JobqueuePanel extends Mixins(BaseMixin) {
|
||||
}
|
||||
</script>
|
||||
|
||||
<style>
|
||||
<style scoped>
|
||||
.jobqueue-panel {
|
||||
position: relative;
|
||||
}
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
<template>
|
||||
<div v-if="klipperState !== 'ready' && socketIsConnected">
|
||||
<v-container v-if="klippyIsConnected" class="pa-0 pb-6">
|
||||
<v-alert :color="messageType.color" dense text border="left" class="mb-0">
|
||||
<template v-if="klippyIsConnected">
|
||||
<v-alert :color="messageType.color" dense text border="left" class="mb-0 mb-6">
|
||||
<!-- KLIPPER MESSAGE TITLE -->
|
||||
<p class="font-weight-medium d-flex align-center">
|
||||
<v-icon :color="messageType.color" class="pr-2">{{ messageType.icon }}</v-icon>
|
||||
@@ -68,10 +68,28 @@
|
||||
<v-progress-circular indeterminate :color="messageType.color"></v-progress-circular>
|
||||
</v-card-text>
|
||||
</v-alert>
|
||||
</v-container>
|
||||
</template>
|
||||
<!-- Power OFF panel -->
|
||||
<template v-else-if="isPrinterPowerOff">
|
||||
<v-alert dense text border="left" class="mb-6">
|
||||
<p class="font-weight-medium d-flex align-center">
|
||||
<v-icon class="pr-2">{{ messageType.icon }}</v-icon>
|
||||
{{ $t('Panels.KlippyStatePanel.PrinterSwitchedOff') }}
|
||||
</p>
|
||||
<p>{{ $t('Panels.KlippyStatePanel.PrinterSwitchedOffDescription') }}</p>
|
||||
<v-row>
|
||||
<v-col class="text-center">
|
||||
<v-btn small outlined text :class="`${messageType.color}--text my-1`" @click="powerOn">
|
||||
<v-icon class="mr-sm-2">{{ mdiPower }}</v-icon>
|
||||
{{ $t('Panels.KlippyStatePanel.PowerOn') }}
|
||||
</v-btn>
|
||||
</v-col>
|
||||
</v-row>
|
||||
</v-alert>
|
||||
</template>
|
||||
<!-- DISCONNECTED INFOGRAPHIC -->
|
||||
<v-container v-if="klipperState === 'disconnected'" class="pa-0">
|
||||
<v-alert dense text border="left">
|
||||
<template v-else-if="klipperState === 'disconnected'">
|
||||
<v-alert dense text border="left" class="mb-6">
|
||||
<p class="font-weight-medium d-flex align-center">
|
||||
<v-icon class="pr-2">{{ messageType.icon }}</v-icon>
|
||||
{{ $t('Panels.KlippyStatePanel.ServiceReports', { service: 'Moonraker' }) }}:
|
||||
@@ -79,9 +97,9 @@
|
||||
</p>
|
||||
<connection-status :moonraker="true" :klipper="false"></connection-status>
|
||||
<p class="mt-2 mb-0 text-center">{{ $t('Panels.KlippyStatePanel.MoonrakerCannotConnect') }}</p>
|
||||
<p class="mb-0 text-center">{{ $t('Panels.KlippyStatePanel.KlipperCheck') }}</p>
|
||||
<p class="mb-0 text-center">{{ $t('Panels.KlippyStatePanel.CheckKlippyAndUdsAddress') }}</p>
|
||||
</v-alert>
|
||||
</v-container>
|
||||
</template>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
@@ -99,6 +117,7 @@ import {
|
||||
mdiRocketLaunch,
|
||||
mdiConnection,
|
||||
mdiPrinter3d,
|
||||
mdiPower,
|
||||
} from '@mdi/js'
|
||||
|
||||
@Component({
|
||||
@@ -108,6 +127,7 @@ export default class KlippyStatePanel extends Mixins(BaseMixin) {
|
||||
mdiPrinter3d = mdiPrinter3d
|
||||
mdiRestart = mdiRestart
|
||||
mdiDownload = mdiDownload
|
||||
mdiPower = mdiPower
|
||||
|
||||
get klippy_message() {
|
||||
return this.$store.state.server.klippy_message ?? null
|
||||
@@ -144,5 +164,16 @@ export default class KlippyStatePanel extends Mixins(BaseMixin) {
|
||||
|
||||
window.open(href)
|
||||
}
|
||||
|
||||
powerOn() {
|
||||
this.$socket.emit(
|
||||
'machine.device_power.post_device',
|
||||
{
|
||||
device: this.printerPowerDevice,
|
||||
action: 'on',
|
||||
},
|
||||
{ action: 'server/power/responseToggle' }
|
||||
)
|
||||
}
|
||||
}
|
||||
</script>
|
||||
@@ -666,6 +666,17 @@ export default class ConfigFilesPanel extends Mixins(BaseMixin) {
|
||||
|
||||
get toolbarButtons() {
|
||||
return [
|
||||
{
|
||||
text: this.$t('Machine.ConfigFilesPanel.Download'),
|
||||
color: 'primary',
|
||||
icon: mdiCloudDownload,
|
||||
loadingName: 'configDownloadZip',
|
||||
onlyWriteable: false,
|
||||
condition: this.selectedFiles.length > 0,
|
||||
click: () => {
|
||||
this.downloadSelectedFiles()
|
||||
},
|
||||
},
|
||||
{
|
||||
text: this.$t('Machine.ConfigFilesPanel.Delete'),
|
||||
color: 'error',
|
||||
@@ -702,7 +713,7 @@ export default class ConfigFilesPanel extends Mixins(BaseMixin) {
|
||||
loadingName: null,
|
||||
onlyWriteable: true,
|
||||
condition: true,
|
||||
click: this.createDirecotry,
|
||||
click: this.createDirectory,
|
||||
},
|
||||
{
|
||||
text: this.$t('Machine.ConfigFilesPanel.RefreshDirectory'),
|
||||
@@ -853,6 +864,8 @@ export default class ConfigFilesPanel extends Mixins(BaseMixin) {
|
||||
}
|
||||
|
||||
set currentPath(newVal) {
|
||||
this.selectedFiles = []
|
||||
|
||||
this.$store.dispatch('gui/saveSettingWithoutUpload', { name: 'view.configfiles.currentPath', value: newVal })
|
||||
}
|
||||
|
||||
@@ -931,7 +944,37 @@ export default class ConfigFilesPanel extends Mixins(BaseMixin) {
|
||||
window.open(href)
|
||||
}
|
||||
|
||||
createDirecotry() {
|
||||
async downloadSelectedFiles() {
|
||||
let items: string[] = []
|
||||
|
||||
const addElementToItems = async (absolutPath: string, directory: FileStateFile[]) => {
|
||||
for (const file of directory) {
|
||||
const filePath = `${absolutPath}/${file.filename}`
|
||||
|
||||
if (file.isDirectory && file.childrens) {
|
||||
await addElementToItems(filePath, file.childrens)
|
||||
|
||||
continue
|
||||
}
|
||||
|
||||
items.push(filePath)
|
||||
}
|
||||
}
|
||||
|
||||
await addElementToItems(this.absolutePath, this.selectedFiles)
|
||||
const date = new Date()
|
||||
const timestamp = `${date.getFullYear()}${date.getMonth()}${date.getDay()}-${date.getHours()}${date.getMinutes()}${date.getSeconds()}`
|
||||
|
||||
this.$socket.emit(
|
||||
'server.files.zip',
|
||||
{ items, dest: `config/${this.root}-${timestamp}.zip` },
|
||||
{ action: 'files/downloadZip', loading: 'configDownloadZip' }
|
||||
)
|
||||
|
||||
this.selectedFiles = []
|
||||
}
|
||||
|
||||
createDirectory() {
|
||||
this.dialogCreateDirectory.name = ''
|
||||
this.dialogCreateDirectory.show = true
|
||||
|
||||
|
||||
@@ -1,11 +1,30 @@
|
||||
<template>
|
||||
<panel
|
||||
:title="$t('Machine.LogfilesPanel.Logfiles').toString()"
|
||||
:icon="mdiFileDocumentEdit"
|
||||
card-class="machine-logfiles-panel"
|
||||
:collapsible="true">
|
||||
<v-card-text :class="'text-center text-lg-left py-0'">
|
||||
<v-container pb-0 px-0>
|
||||
<div>
|
||||
<panel
|
||||
:title="$t('Machine.LogfilesPanel.Logfiles').toString()"
|
||||
:icon="mdiFileDocumentEdit"
|
||||
card-class="machine-logfiles-panel"
|
||||
:collapsible="true">
|
||||
<template #buttons>
|
||||
<v-tooltip top>
|
||||
<template #activator="{ on, attrs }">
|
||||
<v-btn
|
||||
icon
|
||||
tile
|
||||
color="primary"
|
||||
:ripple="true"
|
||||
:loading="loadings.includes('loadingBtnRolloverLogs')"
|
||||
:disabled="['printing', 'paused'].includes(printer_state)"
|
||||
v-bind="attrs"
|
||||
v-on="on"
|
||||
@click="showRolloverDialog = true">
|
||||
<v-icon>{{ mdiFileSyncOutline }}</v-icon>
|
||||
</v-btn>
|
||||
</template>
|
||||
<span>{{ $t('Machine.LogfilesPanel.Rollover') }}</span>
|
||||
</v-tooltip>
|
||||
</template>
|
||||
<v-card-text :class="'text-center text-lg-left'">
|
||||
<v-row>
|
||||
<v-col :class="'col-12' + (klipperState !== 'ready' ? 'col-md-6' : 'col-md-12') + ''">
|
||||
<v-btn
|
||||
@@ -53,23 +72,74 @@
|
||||
</v-btn>
|
||||
</v-col>
|
||||
</v-row>
|
||||
</v-container>
|
||||
</v-card-text>
|
||||
</panel>
|
||||
</v-card-text>
|
||||
</panel>
|
||||
<v-dialog :value="showRolloverDialog" persistent width="400" :fullscreen="isMobile">
|
||||
<panel
|
||||
:title="$t('Machine.LogfilesPanel.Rollover').toString()"
|
||||
card-class="machine_rollover_logfiles-dialog"
|
||||
:icon="mdiFileSyncOutline"
|
||||
:margin-bottom="false">
|
||||
<template #buttons>
|
||||
<v-btn icon tile @click="showRolloverDialog = false">
|
||||
<v-icon>{{ mdiCloseThick }}</v-icon>
|
||||
</v-btn>
|
||||
</template>
|
||||
<v-card-text>
|
||||
<v-row>
|
||||
<v-col>
|
||||
<p class="mb-0">{{ $t('Machine.LogfilesPanel.RolloverDescription') }}</p>
|
||||
</v-col>
|
||||
</v-row>
|
||||
<v-row class="mt-0">
|
||||
<v-col>
|
||||
<v-checkbox
|
||||
v-for="log in rolloverLogfiles"
|
||||
:key="log"
|
||||
v-model="selectedRolloverLogs"
|
||||
:label="capitalize(log)"
|
||||
:value="log"
|
||||
hide-details
|
||||
class="mt-0" />
|
||||
</v-col>
|
||||
</v-row>
|
||||
</v-card-text>
|
||||
<v-card-actions>
|
||||
<v-spacer />
|
||||
<v-btn text @click="showRolloverDialog = false">
|
||||
{{ $t('Machine.LogfilesPanel.Cancel') }}
|
||||
</v-btn>
|
||||
<v-btn color="primary" text @click="btnRolloverLogs">
|
||||
{{ $t('Machine.LogfilesPanel.Accept') }}
|
||||
</v-btn>
|
||||
</v-card-actions>
|
||||
</panel>
|
||||
</v-dialog>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<script lang="ts">
|
||||
import { Component, Mixins } from 'vue-property-decorator'
|
||||
import { Component, Mixins, Watch } from 'vue-property-decorator'
|
||||
import BaseMixin from '../../mixins/base'
|
||||
import Panel from '@/components/ui/Panel.vue'
|
||||
import { FileStateFile } from '@/store/files/types'
|
||||
import { mdiDownload, mdiFileDocumentEdit } from '@mdi/js'
|
||||
import { mdiDownload, mdiFileDocumentEdit, mdiCloseThick, mdiFileSyncOutline } from '@mdi/js'
|
||||
import { rolloverLogfiles } from '@/store/variables'
|
||||
import { capitalize } from '@/plugins/helpers'
|
||||
@Component({
|
||||
components: { Panel },
|
||||
})
|
||||
export default class LogfilesPanel extends Mixins(BaseMixin) {
|
||||
mdiFileDocumentEdit = mdiFileDocumentEdit
|
||||
mdiDownload = mdiDownload
|
||||
mdiCloseThick = mdiCloseThick
|
||||
mdiFileSyncOutline = mdiFileSyncOutline
|
||||
|
||||
rolloverLogfiles = rolloverLogfiles
|
||||
capitalize = capitalize
|
||||
|
||||
private showRolloverDialog = false
|
||||
private selectedRolloverLogs: string[] = []
|
||||
|
||||
get logfiles() {
|
||||
return this.$store.getters['files/getDirectory']('logs')?.childrens ?? []
|
||||
@@ -85,6 +155,10 @@ export default class LogfilesPanel extends Mixins(BaseMixin) {
|
||||
return sonarLog?.size > 0
|
||||
}
|
||||
|
||||
get loadingRolloverLogs() {
|
||||
return this.loadings.filter((log) => log.startsWith('rolloverLog_')).length > 0
|
||||
}
|
||||
|
||||
downloadLog(event: any) {
|
||||
event.preventDefault()
|
||||
let href = ''
|
||||
@@ -93,5 +167,24 @@ export default class LogfilesPanel extends Mixins(BaseMixin) {
|
||||
|
||||
window.open(href)
|
||||
}
|
||||
|
||||
btnRolloverLogs() {
|
||||
if (this.selectedRolloverLogs.length === 0) return
|
||||
|
||||
this.selectedRolloverLogs.forEach((name) => {
|
||||
this.$socket.emit(
|
||||
'server.logs.rollover',
|
||||
{ application: name },
|
||||
{ loading: 'rolloverLog_' + name, action: 'files/rolloverLog' }
|
||||
)
|
||||
})
|
||||
|
||||
this.selectedRolloverLogs = []
|
||||
}
|
||||
|
||||
@Watch('loadingRolloverLogs')
|
||||
loadingRolloverLogsChanged(newVal: boolean) {
|
||||
if (newVal) this.showRolloverDialog = false
|
||||
}
|
||||
}
|
||||
</script>
|
||||
@@ -86,7 +86,11 @@
|
||||
<template v-if="networkInterfaces">
|
||||
<div v-for="(interfaceStats, interfaceName) in networkInterfaces" :key="interfaceName">
|
||||
<span class="text-no-wrap">
|
||||
{{ interfaceName }}{{ getIpAddress(interfaceStats.details.ip_addresses) }}:
|
||||
{{ interfaceName }}
|
||||
<template v-if="'details' in interfaceStats">
|
||||
{{ getIpAddress(interfaceStats.details.ip_addresses) }}
|
||||
</template>
|
||||
:
|
||||
</span>
|
||||
<span class="text-no-wrap">
|
||||
{{
|
||||
|
||||
@@ -81,7 +81,7 @@ svg {
|
||||
stroke-width="1" />
|
||||
</g>
|
||||
|
||||
<g v-for="(object, index) in printing_objects" :key="index">
|
||||
<g v-for="(object, index) in printing_objects_with_polygons" :key="index">
|
||||
<polygon
|
||||
:points="object.polygon.map((point) => convertX(point[0]) + ',' + convertY(point[1])).join(' ')"
|
||||
style="cursor: pointer"
|
||||
@@ -124,6 +124,10 @@ export default class StatusPanelObjectsDialogMap extends Mixins(BaseMixin) {
|
||||
return this.$store.state.printer.exclude_object?.objects ?? []
|
||||
}
|
||||
|
||||
get printing_objects_with_polygons() {
|
||||
return this.printing_objects.filter((eobject: any) => 'polygon' in eobject)
|
||||
}
|
||||
|
||||
get current_object() {
|
||||
return this.$store.state.printer.exclude_object?.current_object ?? null
|
||||
}
|
||||
@@ -144,20 +148,32 @@ export default class StatusPanelObjectsDialogMap extends Mixins(BaseMixin) {
|
||||
)
|
||||
}
|
||||
|
||||
get toolhead() {
|
||||
return this.$store.state.printer.toolhead ?? {}
|
||||
}
|
||||
|
||||
get axis_minimum() {
|
||||
return this.toolhead.axis_minimum ?? []
|
||||
}
|
||||
|
||||
get axis_maximum() {
|
||||
return this.toolhead.axis_maximum ?? []
|
||||
}
|
||||
|
||||
get stepperXmin() {
|
||||
return this.$store.state.printer.configfile?.settings?.stepper_x?.position_min ?? 0
|
||||
return this.axis_minimum[0] ?? 0
|
||||
}
|
||||
|
||||
get stepperXmax() {
|
||||
return this.$store.state.printer.configfile?.settings?.stepper_x?.position_max ?? 0
|
||||
return this.axis_maximum[0] ?? 200
|
||||
}
|
||||
|
||||
get stepperYmin() {
|
||||
return this.$store.state.printer.configfile?.settings?.stepper_y?.position_min ?? 200
|
||||
return this.axis_minimum[1] ?? 0
|
||||
}
|
||||
|
||||
get stepperYmax() {
|
||||
return this.$store.state.printer.configfile?.settings?.stepper_y?.position_max ?? 200
|
||||
return this.axis_maximum[1] ?? 200
|
||||
}
|
||||
|
||||
get absoluteX() {
|
||||
|
||||
@@ -83,6 +83,12 @@
|
||||
<v-icon class="mr-1">{{ mdiPlaylistPlus }}</v-icon>
|
||||
{{ $t('Files.AddToQueue') }}
|
||||
</v-list-item>
|
||||
<v-list-item
|
||||
v-if="moonrakerComponents.includes('job_queue')"
|
||||
@click="openAddBatchToQueueDialog(contextMenu.item)">
|
||||
<v-icon class="mr-1">{{ mdiPlaylistPlus }}</v-icon>
|
||||
{{ $t('Files.AddBatchToQueue') }}
|
||||
</v-list-item>
|
||||
<v-list-item
|
||||
v-if="contextMenu.item.preheat_gcode !== null"
|
||||
:disabled="['error', 'printing', 'paused'].includes(printer_state)"
|
||||
@@ -137,6 +143,53 @@
|
||||
</v-card-actions>
|
||||
</panel>
|
||||
</v-dialog>
|
||||
<v-dialog v-model="dialogAddBatchToQueue.show" max-width="400">
|
||||
<panel
|
||||
:title="$t('Files.AddToQueue').toString()"
|
||||
card-class="gcode-files-add-to-queue-dialog"
|
||||
:icon="mdiPlaylistPlus"
|
||||
:margin-bottom="false">
|
||||
<template #buttons>
|
||||
<v-btn icon tile @click="dialogAddBatchToQueue.show = false">
|
||||
<v-icon>{{ mdiCloseThick }}</v-icon>
|
||||
</v-btn>
|
||||
</template>
|
||||
|
||||
<v-card-text>
|
||||
<v-text-field
|
||||
ref="inputFieldAddToQueueCount"
|
||||
v-model="dialogAddBatchToQueue.count"
|
||||
:label="$t('Files.Count')"
|
||||
required
|
||||
hide-spin-buttons
|
||||
type="number"
|
||||
:rules="countInputRules"
|
||||
@keyup.enter="addBatchToQueueAction">
|
||||
<template #append-outer>
|
||||
<div class="_spin_button_group">
|
||||
<v-btn class="mt-n3" icon plain small @click="dialogAddBatchToQueue.count++">
|
||||
<v-icon>{{ mdiChevronUp }}</v-icon>
|
||||
</v-btn>
|
||||
<v-btn
|
||||
:disabled="dialogAddBatchToQueue.count <= 1"
|
||||
class="mb-n3"
|
||||
icon
|
||||
plain
|
||||
small
|
||||
@click="dialogAddBatchToQueue.count--">
|
||||
<v-icon>{{ mdiChevronDown }}</v-icon>
|
||||
</v-btn>
|
||||
</div>
|
||||
</template>
|
||||
</v-text-field>
|
||||
</v-card-text>
|
||||
<v-card-actions>
|
||||
<v-spacer></v-spacer>
|
||||
<v-btn color="" text @click="dialogAddBatchToQueue.show = false">{{ $t('Files.Cancel') }}</v-btn>
|
||||
<v-btn color="primary" text @click="addBatchToQueueAction">{{ $t('Files.AddToQueue') }}</v-btn>
|
||||
</v-card-actions>
|
||||
</panel>
|
||||
</v-dialog>
|
||||
</v-card>
|
||||
</template>
|
||||
|
||||
@@ -148,6 +201,8 @@ import ControlMixin from '@/components/mixins/control'
|
||||
import { FileStateGcodefile } from '@/store/files/types'
|
||||
import StartPrintDialog from '@/components/dialogs/StartPrintDialog.vue'
|
||||
import {
|
||||
mdiChevronDown,
|
||||
mdiChevronUp,
|
||||
mdiFile,
|
||||
mdiPlay,
|
||||
mdiPlaylistPlus,
|
||||
@@ -166,12 +221,20 @@ interface dialogRenameObject {
|
||||
item: FileStateGcodefile
|
||||
}
|
||||
|
||||
interface dialogAddBatchToQueue {
|
||||
show: boolean
|
||||
count: number
|
||||
item: FileStateGcodefile
|
||||
}
|
||||
|
||||
@Component({
|
||||
components: {
|
||||
StartPrintDialog,
|
||||
},
|
||||
})
|
||||
export default class StatusPanelGcodefiles extends Mixins(BaseMixin, ControlMixin) {
|
||||
mdiChevronDown = mdiChevronDown
|
||||
mdiChevronUp = mdiChevronUp
|
||||
mdiFile = mdiFile
|
||||
mdiPlay = mdiPlay
|
||||
mdiPlaylistPlus = mdiPlaylistPlus
|
||||
@@ -199,6 +262,7 @@ export default class StatusPanelGcodefiles extends Mixins(BaseMixin, ControlMixi
|
||||
last_status: null,
|
||||
last_start_time: null,
|
||||
last_total_duration: null,
|
||||
preheat_gcode: null,
|
||||
}
|
||||
private currentPath = ''
|
||||
private contentTdWidth = 100
|
||||
@@ -222,6 +286,17 @@ export default class StatusPanelGcodefiles extends Mixins(BaseMixin, ControlMixi
|
||||
item: { ...this.dialogFile },
|
||||
}
|
||||
|
||||
private dialogAddBatchToQueue: dialogAddBatchToQueue = {
|
||||
show: false,
|
||||
count: 1,
|
||||
item: { ...this.contextMenu.item },
|
||||
}
|
||||
|
||||
private countInputRules = [
|
||||
(value: string) => !!value || this.$t('JobQueue.InvalidCountEmpty'),
|
||||
(value: string) => parseInt(value) > 0 || this.$t('JobQueue.InvalidCountGreaterZero'),
|
||||
]
|
||||
|
||||
get gcodeFiles() {
|
||||
let gcodes = this.$store.getters['files/getAllGcodes'] ?? []
|
||||
gcodes = gcodes
|
||||
@@ -343,6 +418,26 @@ export default class StatusPanelGcodefiles extends Mixins(BaseMixin, ControlMixi
|
||||
this.$store.dispatch('server/jobQueue/addToQueue', [item.filename])
|
||||
}
|
||||
|
||||
openAddBatchToQueueDialog(item: FileStateGcodefile) {
|
||||
this.dialogAddBatchToQueue.show = true
|
||||
this.dialogAddBatchToQueue.count = 1
|
||||
this.dialogAddBatchToQueue.item = item
|
||||
}
|
||||
|
||||
async addBatchToQueueAction() {
|
||||
let filename = [this.currentPath, this.dialogAddBatchToQueue.item.filename].join('/')
|
||||
if (filename.startsWith('/')) filename = filename.slice(1)
|
||||
|
||||
const array: string[] = []
|
||||
for (let i = 0; i < this.dialogAddBatchToQueue.count; i++) {
|
||||
array.push(filename)
|
||||
}
|
||||
|
||||
await this.$store.dispatch('server/jobQueue/addToQueue', array)
|
||||
|
||||
this.dialogAddBatchToQueue.show = false
|
||||
}
|
||||
|
||||
view3D(item: FileStateGcodefile) {
|
||||
this.$router.push({ path: '/viewer', query: { filename: 'gcodes/' + item.filename } })
|
||||
}
|
||||
@@ -419,8 +514,15 @@ export default class StatusPanelGcodefiles extends Mixins(BaseMixin, ControlMixi
|
||||
}
|
||||
</script>
|
||||
|
||||
<style lang="scss" scoped>
|
||||
<style scoped>
|
||||
.filesGcodeCard {
|
||||
position: relative;
|
||||
}
|
||||
|
||||
._spin_button_group {
|
||||
width: 24px;
|
||||
margin-top: -6px;
|
||||
margin-left: -6px;
|
||||
margin-bottom: -6px;
|
||||
}
|
||||
</style>
|
||||
@@ -5,77 +5,27 @@
|
||||
hide-default-footer
|
||||
class="dashboard-jobqueue-table"
|
||||
sort-by="time_added"
|
||||
mobile-breakpoint="0"
|
||||
@current-items="setFirst">
|
||||
mobile-breakpoint="0">
|
||||
<template #no-data>
|
||||
<div class="text-center">{{ $t('Panels.StatusPanel.EmptyJobqueue') }}</div>
|
||||
</template>
|
||||
|
||||
<template #item="{ item }">
|
||||
<tr
|
||||
<template #item="{ item, index }">
|
||||
<jobqueue-entry
|
||||
:key="item.job_id"
|
||||
v-longpress:600="(e) => showContextMenu(e, item)"
|
||||
class="cursor-pointer"
|
||||
@contextmenu="showContextMenu($event, item)">
|
||||
<td class="pr-0 text-center" style="width: 32px">
|
||||
<template v-if="getSmallThumbnail(item) && getBigThumbnail(item)">
|
||||
<v-tooltip
|
||||
v-if="!item.isDirectory && getSmallThumbnail(item) && getBigThumbnail(item)"
|
||||
top
|
||||
content-class="tooltip__content-opacity1">
|
||||
<template #activator="{ on, attrs }">
|
||||
<vue-load-image>
|
||||
<img
|
||||
slot="image"
|
||||
:src="getSmallThumbnail(item)"
|
||||
width="32"
|
||||
height="32"
|
||||
v-bind="attrs"
|
||||
v-on="on" />
|
||||
<v-progress-circular
|
||||
slot="preloader"
|
||||
indeterminate
|
||||
color="primary"></v-progress-circular>
|
||||
<v-icon slot="error">{{ mdiFile }}</v-icon>
|
||||
</vue-load-image>
|
||||
</template>
|
||||
<span><img :src="getBigThumbnail(item)" width="250" /></span>
|
||||
</v-tooltip>
|
||||
</template>
|
||||
<template v-else-if="getSmallThumbnail(item)">
|
||||
<vue-load-image>
|
||||
<img slot="image" :src="getSmallThumbnail(item)" width="32" height="32" />
|
||||
<v-progress-circular
|
||||
slot="preloader"
|
||||
indeterminate
|
||||
color="primary"></v-progress-circular>
|
||||
<v-icon slot="error">{{ mdiFile }}</v-icon>
|
||||
</vue-load-image>
|
||||
</template>
|
||||
<template v-else>
|
||||
<v-icon>{{ mdiFile }}</v-icon>
|
||||
</template>
|
||||
</td>
|
||||
<td class="pr-2">
|
||||
<template v-if="item.isFirst && !printerIsPrinting">
|
||||
<v-btn icon color="success" class="float-right minwidth-0 mt-1" @click="startJobqueue">
|
||||
<v-icon>{{ mdiPlay }}</v-icon>
|
||||
</v-btn>
|
||||
</template>
|
||||
<div class="d-block text-truncate" :style="styleContentTdWidth">{{ item.filename }}</div>
|
||||
<small v-if="existMetadata(item)">{{ getDescription(item) }}</small>
|
||||
</td>
|
||||
</tr>
|
||||
:item="item"
|
||||
:is-first="index === 0"
|
||||
:content-td-width="contentTdWidth" />
|
||||
</template>
|
||||
<template v-if="jobs.length > jobsTable.length" #body.append>
|
||||
<template v-if="jobsRest.length" #body.append>
|
||||
<tr>
|
||||
<td class="pr-0 text-center" style="width: 32px">
|
||||
<v-icon>{{ mdiFileMultiple }}</v-icon>
|
||||
</td>
|
||||
<td class="pr-2">
|
||||
{{
|
||||
$tc('Panels.StatusPanel.JobqueueMoreFiles', jobs.length - jobsTable.length, {
|
||||
count: jobs.length - jobsTable.length,
|
||||
$tc('Panels.StatusPanel.JobqueueMoreFiles', restJobsLength, {
|
||||
count: restJobsLength,
|
||||
})
|
||||
}}
|
||||
<br />
|
||||
@@ -85,14 +35,6 @@
|
||||
</template>
|
||||
</v-data-table>
|
||||
<resize-observer @notify="handleResize" />
|
||||
<v-menu v-model="contextMenu.shown" :position-x="contextMenu.x" :position-y="contextMenu.y" absolute offset-y>
|
||||
<v-list>
|
||||
<v-list-item @click="removeFromJobqueue(contextMenu.item)">
|
||||
<v-icon class="mr-1">{{ mdiPlaylistRemove }}</v-icon>
|
||||
{{ $t('JobQueue.RemoveFromQueue') }}
|
||||
</v-list-item>
|
||||
</v-list>
|
||||
</v-menu>
|
||||
</v-card>
|
||||
</template>
|
||||
|
||||
@@ -101,24 +43,15 @@ import Component from 'vue-class-component'
|
||||
import { Mixins } from 'vue-property-decorator'
|
||||
import BaseMixin from '@/components/mixins/base'
|
||||
import { ServerJobQueueStateJob } from '@/store/server/jobQueue/types'
|
||||
import { mdiFile, mdiPlay, mdiFileMultiple, mdiPlaylistRemove } from '@mdi/js'
|
||||
import { mdiFileMultiple } from '@mdi/js'
|
||||
import JobqueueEntry from '@/components/panels/Status/JobqueueEntry.vue'
|
||||
@Component({
|
||||
components: {},
|
||||
components: { JobqueueEntry },
|
||||
})
|
||||
export default class StatusPanelJobqueue extends Mixins(BaseMixin) {
|
||||
mdiFile = mdiFile
|
||||
mdiPlay = mdiPlay
|
||||
mdiFileMultiple = mdiFileMultiple
|
||||
mdiPlaylistRemove = mdiPlaylistRemove
|
||||
|
||||
private contentTdWidth = 100
|
||||
private contextMenu = {
|
||||
shown: false,
|
||||
touchTimer: undefined,
|
||||
x: 0,
|
||||
y: 0,
|
||||
item: {},
|
||||
}
|
||||
|
||||
declare $refs: {
|
||||
filesJobqueue: any
|
||||
@@ -136,15 +69,27 @@ export default class StatusPanelJobqueue extends Mixins(BaseMixin) {
|
||||
return this.jobs.slice(5)
|
||||
}
|
||||
|
||||
get restJobsLength() {
|
||||
let count = 0
|
||||
|
||||
this.jobsRest.forEach((item: ServerJobQueueStateJob) => {
|
||||
count += (item.combinedIds?.length ?? 0) + 1
|
||||
})
|
||||
|
||||
return count
|
||||
}
|
||||
|
||||
get descriptionRestJobs() {
|
||||
let filamentLength = 0
|
||||
let filamentWeight = 0
|
||||
let printTime = 0
|
||||
|
||||
this.jobsRest.forEach((item: ServerJobQueueStateJob) => {
|
||||
if (item.metadata?.filament_total) filamentLength += item.metadata?.filament_total
|
||||
if (item.metadata?.filament_weight_total) filamentWeight += item.metadata?.filament_weight_total
|
||||
if (item.metadata?.estimated_time) printTime = item.metadata.estimated_time
|
||||
const count = (item.combinedIds?.length ?? 0) + 1
|
||||
|
||||
if (item.metadata?.filament_total) filamentLength += item.metadata?.filament_total * count
|
||||
if (item.metadata?.filament_weight_total) filamentWeight += item.metadata?.filament_weight_total * count
|
||||
if (item.metadata?.estimated_time) printTime = item.metadata.estimated_time * count
|
||||
})
|
||||
|
||||
let output = ''
|
||||
@@ -163,49 +108,6 @@ export default class StatusPanelJobqueue extends Mixins(BaseMixin) {
|
||||
return output
|
||||
}
|
||||
|
||||
get styleContentTdWidth() {
|
||||
return `width: ${this.contentTdWidth}px;`
|
||||
}
|
||||
|
||||
getSmallThumbnail(item: ServerJobQueueStateJob) {
|
||||
return this.$store.getters['server/jobQueue/getSmallThumbnail'](item)
|
||||
}
|
||||
|
||||
getBigThumbnail(item: ServerJobQueueStateJob) {
|
||||
return this.$store.getters['server/jobQueue/getBigThumbnail'](item)
|
||||
}
|
||||
|
||||
getDescription(item: ServerJobQueueStateJob) {
|
||||
let output = ''
|
||||
|
||||
output += this.$t('Panels.StatusPanel.Filament') + ': '
|
||||
if (item.metadata?.filament_total || item.metadata.filament_weight_total) {
|
||||
if (item.metadata?.filament_total) output += item.metadata.filament_total.toFixed() + ' mm'
|
||||
if (item.metadata?.filament_total && item.metadata.filament_weight_total) output += ' / '
|
||||
if (item.metadata?.filament_weight_total) output += item.metadata.filament_weight_total.toFixed(2) + ' g'
|
||||
} else output += '--'
|
||||
|
||||
output += ', ' + this.$t('Panels.StatusPanel.PrintTime') + ': '
|
||||
if (item.metadata?.estimated_time) output += this.formatPrintTime(item.metadata.estimated_time)
|
||||
else output += '--'
|
||||
|
||||
return output
|
||||
}
|
||||
|
||||
existMetadata(item: ServerJobQueueStateJob) {
|
||||
return item?.metadata?.metadataPulled
|
||||
}
|
||||
|
||||
setFirst(currItems: ServerJobQueueStateJob[]) {
|
||||
// first check that actually exists values
|
||||
if (currItems.length) {
|
||||
// toggle all to false
|
||||
currItems.forEach((x: ServerJobQueueStateJob) => (x.isFirst = false))
|
||||
// just set first to true
|
||||
currItems[0].isFirst = true
|
||||
}
|
||||
}
|
||||
|
||||
formatPrintTime(totalSeconds: number) {
|
||||
if (totalSeconds) {
|
||||
let output = ''
|
||||
@@ -232,27 +134,10 @@ export default class StatusPanelJobqueue extends Mixins(BaseMixin) {
|
||||
return '--'
|
||||
}
|
||||
|
||||
showContextMenu(e: any, item: ServerJobQueueStateJob) {
|
||||
if (!this.contextMenu.shown) {
|
||||
e?.preventDefault()
|
||||
this.contextMenu.shown = true
|
||||
this.contextMenu.x = e?.clientX || e?.pageX || window.screenX / 2
|
||||
this.contextMenu.y = e?.clientY || e?.pageY || window.screenY / 2
|
||||
this.contextMenu.item = item
|
||||
this.$nextTick(() => {
|
||||
this.contextMenu.shown = true
|
||||
})
|
||||
}
|
||||
}
|
||||
|
||||
startJobqueue() {
|
||||
this.$store.dispatch('server/jobQueue/start')
|
||||
}
|
||||
|
||||
removeFromJobqueue(item: ServerJobQueueStateJob) {
|
||||
this.$store.dispatch('server/jobQueue/deleteFromQueue', [item.job_id])
|
||||
}
|
||||
|
||||
mounted() {
|
||||
setTimeout(() => {
|
||||
this.calcContentTdWidth()
|
||||
|
||||
@@ -0,0 +1,271 @@
|
||||
<template>
|
||||
<tr
|
||||
v-longpress:600="(e) => showContextMenu(e, item)"
|
||||
class="cursor-pointer"
|
||||
@contextmenu="showContextMenu($event, item)">
|
||||
<td class="pr-0 text-center" style="width: 32px">
|
||||
<template v-if="smallThumbnail && bigThumbnail">
|
||||
<v-tooltip v-if="smallThumbnail && bigThumbnail" top content-class="tooltip__content-opacity1">
|
||||
<template #activator="{ on, attrs }">
|
||||
<vue-load-image>
|
||||
<img slot="image" :src="smallThumbnail" width="32" height="32" v-bind="attrs" v-on="on" />
|
||||
<div slot="preloader">
|
||||
<v-progress-circular indeterminate color="primary" />
|
||||
</div>
|
||||
<div slot="error">
|
||||
<v-icon>{{ mdiFile }}</v-icon>
|
||||
</div>
|
||||
</vue-load-image>
|
||||
</template>
|
||||
<span><img :src="bigThumbnail" width="250" /></span>
|
||||
</v-tooltip>
|
||||
</template>
|
||||
<template v-else-if="smallThumbnail">
|
||||
<vue-load-image>
|
||||
<img slot="image" :src="smallThumbnail" width="32" height="32" />
|
||||
<div slot="preloader">
|
||||
<v-progress-circular indeterminate color="primary" />
|
||||
</div>
|
||||
<div slot="error">
|
||||
<v-icon>{{ mdiFile }}</v-icon>
|
||||
</div>
|
||||
</vue-load-image>
|
||||
</template>
|
||||
<template v-else>
|
||||
<v-icon>{{ mdiFile }}</v-icon>
|
||||
</template>
|
||||
</td>
|
||||
<td class="pr-2">
|
||||
<template v-if="isFirst && !printerIsPrinting">
|
||||
<v-btn icon color="success" class="float-right minwidth-0 mt-1" @click="startJobqueue">
|
||||
<v-icon>{{ mdiPlay }}</v-icon>
|
||||
</v-btn>
|
||||
</template>
|
||||
<div class="d-block text-truncate" :style="styleContentTdWidth">
|
||||
<strong v-if="item.combinedIds.length">{{ item.combinedIds.length + 1 }}x</strong>
|
||||
{{ item.filename }}
|
||||
</div>
|
||||
<small v-if="item?.metadata?.metadataPulled">{{ description }}</small>
|
||||
</td>
|
||||
<v-menu v-model="contextMenu.shown" :position-x="contextMenu.x" :position-y="contextMenu.y" absolute offset-y>
|
||||
<v-list>
|
||||
<v-list-item @click="openChangeCountDialog(contextMenu.item)">
|
||||
<v-icon class="mr-1">{{ mdiCounter }}</v-icon>
|
||||
{{ $t('JobQueue.ChangeCount') }}
|
||||
</v-list-item>
|
||||
<v-list-item @click="removeFromJobqueue(contextMenu.item)">
|
||||
<v-icon class="mr-1">{{ mdiPlaylistRemove }}</v-icon>
|
||||
{{ $t('JobQueue.RemoveFromQueue') }}
|
||||
</v-list-item>
|
||||
</v-list>
|
||||
</v-menu>
|
||||
<v-dialog v-model="dialogChangeCount.show" max-width="400">
|
||||
<panel
|
||||
:title="$t('JobQueue.ChangeCount').toString()"
|
||||
:icon="mdiCounter"
|
||||
card-class="jobqueue-change-count-dialog"
|
||||
:margin-bottom="false">
|
||||
<template #buttons>
|
||||
<v-btn icon tile @click="dialogChangeCount.show = false">
|
||||
<v-icon>{{ mdiCloseThick }}</v-icon>
|
||||
</v-btn>
|
||||
</template>
|
||||
|
||||
<v-card-text>
|
||||
<v-text-field
|
||||
ref="inputFieldAddToQueueCount"
|
||||
v-model="dialogChangeCount.count"
|
||||
:label="$t('JobQueue.Count')"
|
||||
required
|
||||
:rules="countInputRules"
|
||||
hide-spin-buttons
|
||||
type="number"
|
||||
@keyup.enter="changeCountAction">
|
||||
<template #append-outer>
|
||||
<div class="_spin_button_group">
|
||||
<v-btn class="mt-n3" icon plain small @click="dialogChangeCount.count++">
|
||||
<v-icon>{{ mdiChevronUp }}</v-icon>
|
||||
</v-btn>
|
||||
<v-btn
|
||||
:disabled="dialogChangeCount.count <= 1"
|
||||
class="mb-n3"
|
||||
icon
|
||||
plain
|
||||
small
|
||||
@click="dialogChangeCount.count--">
|
||||
<v-icon>{{ mdiChevronDown }}</v-icon>
|
||||
</v-btn>
|
||||
</div>
|
||||
</template>
|
||||
</v-text-field>
|
||||
</v-card-text>
|
||||
<v-card-actions>
|
||||
<v-spacer />
|
||||
<v-btn color="" text @click="dialogChangeCount.show = false">{{ $t('JobQueue.Cancel') }}</v-btn>
|
||||
<v-btn color="primary" text @click="changeCountAction">{{ $t('JobQueue.ChangeCount') }}</v-btn>
|
||||
</v-card-actions>
|
||||
</panel>
|
||||
</v-dialog>
|
||||
</tr>
|
||||
</template>
|
||||
|
||||
<script lang="ts">
|
||||
import Component from 'vue-class-component'
|
||||
import { Mixins, Prop } from 'vue-property-decorator'
|
||||
import BaseMixin from '@/components/mixins/base'
|
||||
import { ServerJobQueueStateJob } from '@/store/server/jobQueue/types'
|
||||
import { mdiChevronDown, mdiChevronUp, mdiCloseThick, mdiCounter, mdiFile, mdiPlay, mdiPlaylistRemove } from '@mdi/js'
|
||||
import NumberInput from '@/components/inputs/NumberInput.vue'
|
||||
@Component({
|
||||
components: { NumberInput },
|
||||
})
|
||||
export default class StatusPanelJobqueueEntry extends Mixins(BaseMixin) {
|
||||
mdiChevronDown = mdiChevronDown
|
||||
mdiChevronUp = mdiChevronUp
|
||||
mdiCloseThick = mdiCloseThick
|
||||
mdiCounter = mdiCounter
|
||||
mdiFile = mdiFile
|
||||
mdiPlay = mdiPlay
|
||||
mdiPlaylistRemove = mdiPlaylistRemove
|
||||
|
||||
@Prop({ type: Object, required: true }) declare item: ServerJobQueueStateJob
|
||||
@Prop({ type: Number, required: true }) declare contentTdWidth: number
|
||||
@Prop({ type: Boolean, default: false }) declare isFirst: boolean
|
||||
private contextMenu: {
|
||||
shown: boolean
|
||||
x: number
|
||||
y: number
|
||||
item: ServerJobQueueStateJob | any
|
||||
} = {
|
||||
shown: false,
|
||||
x: 0,
|
||||
y: 0,
|
||||
item: {},
|
||||
}
|
||||
|
||||
private dialogChangeCount: {
|
||||
show: boolean
|
||||
count: number
|
||||
item: ServerJobQueueStateJob | any
|
||||
} = {
|
||||
show: false,
|
||||
count: 1,
|
||||
item: {},
|
||||
}
|
||||
|
||||
private countInputRules = [
|
||||
(value: string) => !!value || this.$t('JobQueue.InvalidCountEmpty'),
|
||||
(value: string) => parseInt(value) > 0 || this.$t('JobQueue.InvalidCountGreaterZero'),
|
||||
]
|
||||
|
||||
declare $refs: {
|
||||
filesJobqueue: any
|
||||
}
|
||||
|
||||
get styleContentTdWidth() {
|
||||
return `width: ${this.contentTdWidth}px;`
|
||||
}
|
||||
|
||||
get smallThumbnail() {
|
||||
return this.$store.getters['server/jobQueue/getSmallThumbnail'](this.item)
|
||||
}
|
||||
|
||||
get bigThumbnail() {
|
||||
return this.$store.getters['server/jobQueue/getBigThumbnail'](this.item)
|
||||
}
|
||||
|
||||
get description() {
|
||||
let output = ''
|
||||
|
||||
output += this.$t('Panels.StatusPanel.Filament') + ': '
|
||||
if (this.item.metadata?.filament_total || this.item.metadata.filament_weight_total) {
|
||||
if (this.item.metadata?.filament_total) output += this.item.metadata.filament_total.toFixed() + ' mm'
|
||||
if (this.item.metadata?.filament_total && this.item.metadata.filament_weight_total) output += ' / '
|
||||
if (this.item.metadata?.filament_weight_total)
|
||||
output += this.item.metadata.filament_weight_total.toFixed(2) + ' g'
|
||||
} else output += '--'
|
||||
|
||||
output += ', ' + this.$t('Panels.StatusPanel.PrintTime') + ': '
|
||||
if (this.item.metadata?.estimated_time) output += this.formatPrintTime(this.item.metadata.estimated_time)
|
||||
else output += '--'
|
||||
|
||||
return output
|
||||
}
|
||||
|
||||
formatPrintTime(totalSeconds: number) {
|
||||
if (totalSeconds) {
|
||||
let output = ''
|
||||
|
||||
const days = Math.floor(totalSeconds / (3600 * 24))
|
||||
if (days) {
|
||||
totalSeconds %= 3600 * 24
|
||||
output += days + 'd'
|
||||
}
|
||||
|
||||
const hours = Math.floor(totalSeconds / 3600)
|
||||
totalSeconds %= 3600
|
||||
if (hours) output += ' ' + hours + 'h'
|
||||
|
||||
const minutes = Math.floor(totalSeconds / 60)
|
||||
if (minutes) output += ' ' + minutes + 'm'
|
||||
|
||||
const seconds = totalSeconds % 60
|
||||
if (seconds) output += ' ' + seconds.toFixed(0) + 's'
|
||||
|
||||
return output
|
||||
}
|
||||
|
||||
return '--'
|
||||
}
|
||||
|
||||
showContextMenu(e: any, item: ServerJobQueueStateJob) {
|
||||
if (!this.contextMenu.shown) {
|
||||
e?.preventDefault()
|
||||
this.contextMenu.shown = true
|
||||
this.contextMenu.x = e?.clientX || e?.pageX || window.screenX / 2
|
||||
this.contextMenu.y = e?.clientY || e?.pageY || window.screenY / 2
|
||||
this.contextMenu.item = item
|
||||
this.$nextTick(() => {
|
||||
this.contextMenu.shown = true
|
||||
})
|
||||
}
|
||||
}
|
||||
|
||||
startJobqueue() {
|
||||
this.$store.dispatch('server/jobQueue/start')
|
||||
}
|
||||
|
||||
removeFromJobqueue(item: ServerJobQueueStateJob) {
|
||||
const ids = [...(item.combinedIds ?? [])]
|
||||
ids.push(item.job_id)
|
||||
|
||||
this.$store.dispatch('server/jobQueue/deleteFromQueue', ids)
|
||||
}
|
||||
|
||||
openChangeCountDialog(item: ServerJobQueueStateJob) {
|
||||
this.dialogChangeCount.show = true
|
||||
this.dialogChangeCount.count = (item.combinedIds?.length ?? 0) + 1
|
||||
this.dialogChangeCount.item = item
|
||||
}
|
||||
|
||||
changeCountAction() {
|
||||
this.$store.dispatch('server/jobQueue/changeCount', {
|
||||
job_id: this.dialogChangeCount.item.job_id,
|
||||
count: this.dialogChangeCount.count,
|
||||
})
|
||||
this.dialogChangeCount.show = false
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
||||
<style lang="scss" scoped>
|
||||
.filesJobqueue {
|
||||
position: relative;
|
||||
}
|
||||
._spin_button_group {
|
||||
width: 24px;
|
||||
margin-top: -6px;
|
||||
margin-left: -6px;
|
||||
margin-bottom: -6px;
|
||||
}
|
||||
</style>
|
||||
@@ -0,0 +1,225 @@
|
||||
<style lang="scss" scoped></style>
|
||||
|
||||
<template>
|
||||
<div>
|
||||
<v-dialog v-model="showDialog" width="400" persistent :fullscreen="isMobile">
|
||||
<panel
|
||||
:title="$t('Panels.StatusPanel.PauseAtLayer.PauseAtLayer').toString()"
|
||||
:icon="mdiLayersPlus"
|
||||
card-class="pause-at-layer-dialog"
|
||||
:margin-bottom="false">
|
||||
<template #buttons>
|
||||
<v-btn icon tile @click="hideDialog">
|
||||
<v-icon>{{ mdiCloseThick }}</v-icon>
|
||||
</v-btn>
|
||||
</template>
|
||||
<v-card-text>
|
||||
<v-row v-if="type === 'atLayer' && macroSettingsPauseAtLayerEnable">
|
||||
<v-col>
|
||||
<v-alert text type="warning" border="left">
|
||||
{{
|
||||
$t('Panels.StatusPanel.PauseAtLayer.DescriptionPauseAtLayerActive', {
|
||||
layer: macroSettingsPauseAtLayerLayer,
|
||||
call: macroSettingsPauseAtLayerCall,
|
||||
})
|
||||
}}
|
||||
</v-alert>
|
||||
</v-col>
|
||||
</v-row>
|
||||
<v-row v-if="type === 'nextLayer' && macroSettingsPauseNextLayerEnable">
|
||||
<v-col>
|
||||
<v-alert text type="warning" border="left">
|
||||
{{
|
||||
$t('Panels.StatusPanel.PauseAtLayer.DescriptionPauseNextLayerActive', {
|
||||
call: macroSettingsPauseAtLayerCall,
|
||||
})
|
||||
}}
|
||||
</v-alert>
|
||||
</v-col>
|
||||
</v-row>
|
||||
<v-row>
|
||||
<v-col>
|
||||
<v-select
|
||||
v-model="type"
|
||||
:items="itemsFiltered"
|
||||
:label="$t('Panels.StatusPanel.PauseAtLayer.Type')"
|
||||
outlined
|
||||
hide-details />
|
||||
</v-col>
|
||||
<v-col v-if="type === 'atLayer'">
|
||||
<v-text-field
|
||||
v-model="layer"
|
||||
:label="$t('Panels.StatusPanel.PauseAtLayer.Layer')"
|
||||
outlined
|
||||
hide-details />
|
||||
</v-col>
|
||||
</v-row>
|
||||
<v-row class="mt-0">
|
||||
<v-col>
|
||||
<v-select
|
||||
v-model="call"
|
||||
:items="itemsCall"
|
||||
:label="$t('Panels.StatusPanel.PauseAtLayer.Call')"
|
||||
outlined
|
||||
hide-details />
|
||||
</v-col>
|
||||
</v-row>
|
||||
</v-card-text>
|
||||
<v-card-actions>
|
||||
<v-spacer />
|
||||
<v-btn text @click="hideDialog">{{ $t('Panels.StatusPanel.PauseAtLayer.Abort') }}</v-btn>
|
||||
<v-btn color="primary" text @click="sendCommand">
|
||||
{{ $t('Panels.StatusPanel.PauseAtLayer.Accept') }}
|
||||
</v-btn>
|
||||
</v-card-actions>
|
||||
</panel>
|
||||
</v-dialog>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<script lang="ts">
|
||||
import Component from 'vue-class-component'
|
||||
import { Mixins, Prop, Watch } from 'vue-property-decorator'
|
||||
import BaseMixin from '@/components/mixins/base'
|
||||
import StatusPanelExcludeObjectDialogMap from '@/components/panels/Status/ExcludeObjectDialogMap.vue'
|
||||
import StatusPanelExcludeObjectDialogList from '@/components/panels/Status/ExcludeObjectDialogList.vue'
|
||||
import Panel from '@/components/ui/Panel.vue'
|
||||
import { mdiCloseThick, mdiLayersPlus } from '@mdi/js'
|
||||
import { PrinterStateMacro } from '@/store/printer/types'
|
||||
@Component({
|
||||
components: { Panel, StatusPanelExcludeObjectDialogList, StatusPanelExcludeObjectDialogMap },
|
||||
})
|
||||
export default class StatusPanelPauseAtLayerDialog extends Mixins(BaseMixin) {
|
||||
mdiLayersPlus = mdiLayersPlus
|
||||
mdiCloseThick = mdiCloseThick
|
||||
|
||||
@Prop({ required: true }) declare readonly showDialog: boolean
|
||||
|
||||
private type: 'nextLayer' | 'atLayer' = 'atLayer'
|
||||
private layer: number = 0
|
||||
private call: 'PAUSE' | 'M600' = 'PAUSE'
|
||||
|
||||
hideDialog() {
|
||||
this.$emit('update:showDialog', false)
|
||||
}
|
||||
|
||||
get items() {
|
||||
return [
|
||||
{
|
||||
text: this.$t('Panels.StatusPanel.PauseAtLayer.AtLayer'),
|
||||
value: 'atLayer',
|
||||
status: this.existsSetPauseAtLayer,
|
||||
},
|
||||
{
|
||||
text: this.$t('Panels.StatusPanel.PauseAtLayer.NextLayer'),
|
||||
value: 'nextLayer',
|
||||
status: this.existsSetPauseNextLayer,
|
||||
},
|
||||
]
|
||||
}
|
||||
|
||||
get itemsFiltered() {
|
||||
return this.items.filter((entry) => entry.status)
|
||||
}
|
||||
|
||||
get itemsCall() {
|
||||
return [
|
||||
{
|
||||
text: 'PAUSE',
|
||||
value: 'PAUSE',
|
||||
},
|
||||
{
|
||||
text: 'M600',
|
||||
value: 'M600',
|
||||
},
|
||||
]
|
||||
}
|
||||
|
||||
get current_layer() {
|
||||
return this.$store.state.printer.print_stats?.info?.current_layer ?? 0
|
||||
}
|
||||
|
||||
get total_layer() {
|
||||
return this.$store.state.printer.print_stats?.info?.total_layer ?? 0
|
||||
}
|
||||
|
||||
get macros() {
|
||||
return this.$store.getters['printer/getMacros'] ?? []
|
||||
}
|
||||
|
||||
get existsSetPauseAtLayer() {
|
||||
return this.macros.findIndex((macro: PrinterStateMacro) => macro.name === 'SET_PAUSE_AT_LAYER') !== -1
|
||||
}
|
||||
|
||||
get existsSetPauseNextLayer() {
|
||||
return this.macros.findIndex((macro: PrinterStateMacro) => macro.name === 'SET_PAUSE_NEXT_LAYER') !== -1
|
||||
}
|
||||
|
||||
get macroSetPrintStatsInfo() {
|
||||
return this.$store.state.printer['gcode_macro SET_PRINT_STATS_INFO'] ?? {}
|
||||
}
|
||||
|
||||
get macroSettingsPauseAtLayer() {
|
||||
return this.macroSetPrintStatsInfo.pause_at_layer ?? {}
|
||||
}
|
||||
|
||||
get macroSettingsPauseAtLayerEnable() {
|
||||
return this.macroSettingsPauseAtLayer.enable ?? false
|
||||
}
|
||||
|
||||
get macroSettingsPauseAtLayerCall() {
|
||||
return this.macroSettingsPauseAtLayer.call ?? 'PAUSE'
|
||||
}
|
||||
|
||||
get macroSettingsPauseAtLayerLayer() {
|
||||
return this.macroSettingsPauseAtLayer.layer ?? 0
|
||||
}
|
||||
|
||||
get macroSettingsPauseNextLayer() {
|
||||
return this.macroSetPrintStatsInfo.pause_next_layer ?? {}
|
||||
}
|
||||
|
||||
get macroSettingsPauseNextLayerEnable() {
|
||||
return this.macroSettingsPauseNextLayer.enable ?? false
|
||||
}
|
||||
|
||||
get macroSettingsPauseNextLayerCall() {
|
||||
return this.macroSettingsPauseNextLayer.call ?? 'PAUSE'
|
||||
}
|
||||
|
||||
sendCommand() {
|
||||
if (this.type === 'atLayer') {
|
||||
this.doSend(`SET_PAUSE_AT_LAYER ENABLE=1 LAYER=${this.layer} MACRO=${this.call}`)
|
||||
this.hideDialog()
|
||||
return
|
||||
}
|
||||
|
||||
this.doSend(`SET_PAUSE_NEXT_LAYER ENABLE=1 MACRO=${this.call}`)
|
||||
this.hideDialog()
|
||||
}
|
||||
|
||||
doSend(gcode: string) {
|
||||
this.$store.dispatch('server/addEvent', { message: gcode, type: 'command' })
|
||||
this.$socket.emit('printer.gcode.script', { script: gcode })
|
||||
}
|
||||
|
||||
@Watch('showDialog')
|
||||
showDialogChanged(newVal: boolean) {
|
||||
if (newVal) {
|
||||
this.layer = this.current_layer + 1
|
||||
this.type = 'atLayer'
|
||||
|
||||
if (!this.existsSetPauseAtLayer) this.type = 'nextLayer'
|
||||
}
|
||||
}
|
||||
|
||||
@Watch('type')
|
||||
typeChanged(newVal: string) {
|
||||
if (newVal === 'atLayer') {
|
||||
this.call = this.macroSettingsPauseAtLayerCall
|
||||
} else if (newVal === 'nextLayer') {
|
||||
this.call = this.macroSettingsPauseNextLayerCall
|
||||
}
|
||||
}
|
||||
}
|
||||
</script>
|
||||
@@ -34,18 +34,36 @@
|
||||
<span>{{ button.text }}</span>
|
||||
</v-tooltip>
|
||||
</v-btn>
|
||||
<v-menu v-if="multiFunctionButton" left offset-y :close-on-content-click="false" class="pa-0">
|
||||
<template #activator="{ on, attrs }">
|
||||
<v-btn icon tile v-bind="attrs" v-on="on">
|
||||
<v-icon>{{ mdiDotsVertical }}</v-icon>
|
||||
</v-btn>
|
||||
</template>
|
||||
<v-list dense>
|
||||
<v-list-item
|
||||
v-for="(entry, index) in multiFunctionMenuButtonsFiltered"
|
||||
:key="'multiFunction_' + index">
|
||||
<v-btn small style="width: 100%" @click="entry.click()">
|
||||
<v-icon left small>{{ entry.icon }}</v-icon>
|
||||
{{ entry.text }}
|
||||
</v-btn>
|
||||
</v-list-item>
|
||||
</v-list>
|
||||
</v-menu>
|
||||
</template>
|
||||
<status-panel-printstatus-thumbnail></status-panel-printstatus-thumbnail>
|
||||
<status-panel-exclude-object
|
||||
:show-dialog.sync="boolShowObjects"
|
||||
@update:showDialog="updateShowDialog"></status-panel-exclude-object>
|
||||
<status-panel-pause-at-layer-dialog :show-dialog.sync="boolShowPauseAtLayer" />
|
||||
<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>{{ mdiMessageProcessingOutline }}</v-icon>
|
||||
{{ print_stats_message ? print_stats_message : display_message }}
|
||||
{{ print_stats_message ?? display_message }}
|
||||
</span>
|
||||
</v-col>
|
||||
<v-col class="col-auto py-2">
|
||||
@@ -65,13 +83,13 @@
|
||||
<v-divider class="my-0"></v-divider>
|
||||
<v-tabs-items v-model="activeTab" class="_border-radius">
|
||||
<v-tab-item v-if="current_filename" value="status">
|
||||
<status-panel-printstatus></status-panel-printstatus>
|
||||
<status-panel-printstatus />
|
||||
</v-tab-item>
|
||||
<v-tab-item value="files">
|
||||
<status-panel-gcodefiles></status-panel-gcodefiles>
|
||||
<status-panel-gcodefiles />
|
||||
</v-tab-item>
|
||||
<v-tab-item value="jobqueue">
|
||||
<status-panel-jobqueue></status-panel-jobqueue>
|
||||
<status-panel-jobqueue />
|
||||
</v-tab-item>
|
||||
</v-tabs-items>
|
||||
</panel>
|
||||
@@ -89,6 +107,7 @@ import StatusPanelGcodefiles from '@/components/panels/Status/Gcodefiles.vue'
|
||||
import StatusPanelJobqueue from '@/components/panels/Status/Jobqueue.vue'
|
||||
import StatusPanelExcludeObject from '@/components/panels/Status/ExcludeObject.vue'
|
||||
import StatusPanelPrintstatusThumbnail from '@/components/panels/Status/PrintstatusThumbnail.vue'
|
||||
import StatusPanelPauseAtLayerDialog from '@/components/panels/Status/PauseAtLayerDialog.vue'
|
||||
import Panel from '@/components/ui/Panel.vue'
|
||||
import {
|
||||
mdiBroom,
|
||||
@@ -100,7 +119,10 @@ import {
|
||||
mdiStop,
|
||||
mdiMessageProcessingOutline,
|
||||
mdiCloseCircle,
|
||||
mdiLayersPlus,
|
||||
mdiDotsVertical,
|
||||
} from '@mdi/js'
|
||||
import { PrinterStateMacro } from '@/store/printer/types'
|
||||
|
||||
@Component({
|
||||
components: {
|
||||
@@ -112,14 +134,17 @@ import {
|
||||
StatusPanelJobqueue,
|
||||
StatusPanelPrintstatus,
|
||||
StatusPanelPrintstatusThumbnail,
|
||||
StatusPanelPauseAtLayerDialog,
|
||||
},
|
||||
})
|
||||
export default class StatusPanel extends Mixins(BaseMixin) {
|
||||
mdiInformation = mdiInformation
|
||||
mdiMessageProcessingOutline = mdiMessageProcessingOutline
|
||||
mdiCloseCircle = mdiCloseCircle
|
||||
mdiDotsVertical = mdiDotsVertical
|
||||
|
||||
private boolShowObjects = false
|
||||
private boolShowPauseAtLayer = false
|
||||
|
||||
declare $refs: {
|
||||
bigThumbnail: any
|
||||
@@ -133,7 +158,7 @@ export default class StatusPanel extends Mixins(BaseMixin) {
|
||||
}
|
||||
|
||||
get jobsCount() {
|
||||
return this.jobs?.length ?? 0
|
||||
return this.$store.getters['server/jobQueue/getJobsCount'] ?? 0
|
||||
}
|
||||
|
||||
get current_filename() {
|
||||
@@ -173,7 +198,7 @@ export default class StatusPanel extends Mixins(BaseMixin) {
|
||||
color: 'warning',
|
||||
icon: mdiPause,
|
||||
loadingName: 'statusPrintPause',
|
||||
status: ['printing'],
|
||||
status: () => ['printing'].includes(this.printer_state),
|
||||
click: this.btnPauseJob,
|
||||
},
|
||||
{
|
||||
@@ -181,7 +206,7 @@ export default class StatusPanel extends Mixins(BaseMixin) {
|
||||
color: 'success',
|
||||
icon: mdiPlay,
|
||||
loadingName: 'statusPrintResume',
|
||||
status: ['paused'],
|
||||
status: () => ['paused'].includes(this.printer_state),
|
||||
click: this.btnResumeJob,
|
||||
},
|
||||
{
|
||||
@@ -189,23 +214,44 @@ export default class StatusPanel extends Mixins(BaseMixin) {
|
||||
color: 'error',
|
||||
icon: mdiStop,
|
||||
loadingName: 'statusPrintCancel',
|
||||
status: this.$store.state.gui.uiSettings.displayCancelPrint ? ['paused', 'printing'] : ['paused'],
|
||||
status: () => {
|
||||
if (this.$store.state.gui.uiSettings.displayCancelPrint)
|
||||
return ['paused', 'printing'].includes(this.printer_state)
|
||||
|
||||
return ['paused'].includes(this.printer_state)
|
||||
},
|
||||
click: this.btnCancelJob,
|
||||
},
|
||||
{
|
||||
text: this.$t('Panels.StatusPanel.ExcludeObject.ExcludeObject'),
|
||||
color: 'warning',
|
||||
icon: mdiSelectionRemove,
|
||||
loadingName: '',
|
||||
status: this.printing_objects.length ? ['paused', 'printing'] : [],
|
||||
loadingName: 'excludeObjectButton',
|
||||
status: () => {
|
||||
if (this.multiFunctionButton || this.printing_objects.length < 2) return false
|
||||
|
||||
return ['paused', 'printing'].includes(this.printer_state)
|
||||
},
|
||||
click: this.btnExcludeObject,
|
||||
},
|
||||
{
|
||||
text: this.$t('Panels.StatusPanel.PauseAtLayer.PauseAtLayer'),
|
||||
color: 'warning',
|
||||
icon: mdiLayersPlus,
|
||||
loadingName: 'pauseAtLayer',
|
||||
status: () => {
|
||||
if (this.multiFunctionButton || this.layer_count === null) return false
|
||||
|
||||
return ['paused', 'printing'].includes(this.printer_state)
|
||||
},
|
||||
click: this.btnPauseAtLayer,
|
||||
},
|
||||
{
|
||||
text: this.$t('Panels.StatusPanel.ClearPrintStats'),
|
||||
color: 'primary',
|
||||
icon: mdiBroom,
|
||||
loadingName: 'statusPrintClear',
|
||||
status: ['error', 'complete', 'cancelled'],
|
||||
status: () => ['error', 'complete', 'cancelled'].includes(this.printer_state),
|
||||
click: this.btnClearJob,
|
||||
},
|
||||
{
|
||||
@@ -213,16 +259,14 @@ export default class StatusPanel extends Mixins(BaseMixin) {
|
||||
color: 'primary',
|
||||
icon: mdiPrinter,
|
||||
loadingName: 'statusPrintReprint',
|
||||
status: ['error', 'complete', 'cancelled'],
|
||||
status: () => ['error', 'complete', 'cancelled'].includes(this.printer_state),
|
||||
click: this.btnReprintJob,
|
||||
},
|
||||
]
|
||||
}
|
||||
|
||||
get filteredToolbarButtons() {
|
||||
return this.toolbarButtons.filter((button) => {
|
||||
return button.status.includes(this.printer_state)
|
||||
})
|
||||
return this.toolbarButtons.filter((button) => button.status())
|
||||
}
|
||||
|
||||
get printing_objects() {
|
||||
@@ -237,6 +281,57 @@ export default class StatusPanel extends Mixins(BaseMixin) {
|
||||
return this.$store.state.printer.print_stats?.message ?? ''
|
||||
}
|
||||
|
||||
get layer_count() {
|
||||
return this.$store.state.printer.print_stats?.info?.total_layer ?? null
|
||||
}
|
||||
|
||||
get multiFunctionMenuButtons() {
|
||||
return [
|
||||
{
|
||||
text: this.$t('Panels.StatusPanel.ExcludeObject.ExcludeObject'),
|
||||
loadingName: 'excludeObjectButton',
|
||||
icon: mdiSelectionRemove,
|
||||
status: () => this.printing_objects.length > 1,
|
||||
disabled: () => ['paused', 'printing'].includes(this.printer_state),
|
||||
click: this.btnExcludeObject,
|
||||
},
|
||||
{
|
||||
text: this.$t('Panels.StatusPanel.PauseAtLayer.PauseAtLayer') + ' - ' + this.displayPauseAtLayerButton,
|
||||
loadingName: 'pauseAtLayer',
|
||||
icon: mdiLayersPlus,
|
||||
status: () => this.displayPauseAtLayerButton,
|
||||
disabled: () => ['paused', 'printing'].includes(this.printer_state),
|
||||
click: this.btnPauseAtLayer,
|
||||
},
|
||||
]
|
||||
}
|
||||
|
||||
get multiFunctionMenuButtonsFiltered() {
|
||||
return this.multiFunctionMenuButtons.filter((button) => button.status())
|
||||
}
|
||||
|
||||
get multiFunctionButton() {
|
||||
if (!['paused', 'printing'].includes(this.printer_state)) return false
|
||||
|
||||
return this.multiFunctionMenuButtonsFiltered.length > 1
|
||||
}
|
||||
|
||||
get macros() {
|
||||
return this.$store.getters['printer/getMacros'] ?? []
|
||||
}
|
||||
|
||||
get existsSetPauseAtLayer() {
|
||||
return this.macros.findIndex((macro: PrinterStateMacro) => macro.name === 'SET_PAUSE_AT_LAYER') !== -1
|
||||
}
|
||||
|
||||
get existsSetPauseNextLayer() {
|
||||
return this.macros.findIndex((macro: PrinterStateMacro) => macro.name === 'SET_PAUSE_NEXT_LAYER') !== -1
|
||||
}
|
||||
|
||||
get displayPauseAtLayerButton() {
|
||||
return this.layer_count !== null && (this.existsSetPauseAtLayer || this.existsSetPauseNextLayer)
|
||||
}
|
||||
|
||||
mounted() {
|
||||
if (this.current_filename !== '') this.activeTab = 'status'
|
||||
}
|
||||
@@ -269,6 +364,10 @@ export default class StatusPanel extends Mixins(BaseMixin) {
|
||||
this.boolShowObjects = true
|
||||
}
|
||||
|
||||
btnPauseAtLayer() {
|
||||
this.boolShowPauseAtLayer = true
|
||||
}
|
||||
|
||||
btnCancelJob() {
|
||||
this.$socket.emit('printer.print.cancel', {}, { loading: 'statusPrintCancel' })
|
||||
}
|
||||
|
||||
@@ -303,7 +303,9 @@ export default class TemperaturePanel extends Mixins(BaseMixin, ControlMixin) {
|
||||
}
|
||||
|
||||
get temperatureObjects() {
|
||||
return this.$store.getters['printer/getTemperatureObjects'] ?? []
|
||||
const sensors = this.$store.getters['printer/getTemperatureObjects'] ?? []
|
||||
|
||||
return sensors.filter((sensor: PrinterStateTemperatureObject) => !sensor.name.startsWith('_'))
|
||||
}
|
||||
|
||||
preheat(preset: GuiPresetsStatePreset): void {
|
||||
|
||||
@@ -32,6 +32,15 @@
|
||||
dense
|
||||
style="max-width: 300px"></v-text-field>
|
||||
<v-spacer></v-spacer>
|
||||
<v-btn
|
||||
v-if="selectedFiles.length"
|
||||
:title="$t('Timelapse.Download')"
|
||||
color="primary"
|
||||
class="px-2 minwidth-0 ml-3"
|
||||
:loading="loadings.includes('timelapseDownloadZip')"
|
||||
@click="downloadSelectedFiles">
|
||||
<v-icon>{{ mdiCloudDownload }}</v-icon>
|
||||
</v-btn>
|
||||
<v-btn
|
||||
v-if="selectedFiles.length"
|
||||
:title="$t('Timelapse.Delete')"
|
||||
@@ -692,6 +701,46 @@ export default class TimelapseFilesPanel extends Mixins(BaseMixin) {
|
||||
window.open(href)
|
||||
}
|
||||
|
||||
async downloadSelectedFiles() {
|
||||
let items: string[] = []
|
||||
|
||||
const addElementToItems = async (absolutPath: string, directory: FileStateFile[]) => {
|
||||
for (const file of directory) {
|
||||
const filePath = `${absolutPath}/${file.filename}`
|
||||
|
||||
if (file.isDirectory && file.childrens) {
|
||||
await addElementToItems(filePath, file.childrens)
|
||||
|
||||
continue
|
||||
}
|
||||
|
||||
items.push(filePath)
|
||||
|
||||
if (file.filename.endsWith('.mp4')) {
|
||||
const indexLastPoint = file.filename.lastIndexOf('.')
|
||||
const filenameWithoutExtension = file.filename.slice(0, indexLastPoint)
|
||||
const filenamePng = `${filenameWithoutExtension}.jpg`
|
||||
|
||||
if (this.files.indexOf((file: FileStateFile) => file.filename === filenamePng) !== -1) {
|
||||
items.push(`${absolutPath}/${filenamePng}`)
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
await addElementToItems(this.currentPath, this.selectedFiles)
|
||||
const date = new Date()
|
||||
const timestamp = `${date.getFullYear()}${date.getMonth()}${date.getDay()}-${date.getHours()}${date.getMinutes()}${date.getSeconds()}`
|
||||
|
||||
this.$socket.emit(
|
||||
'server.files.zip',
|
||||
{ items, dest: `timelapse/timelapse-${timestamp}.zip` },
|
||||
{ action: 'files/downloadZip', loading: 'timelapseDownloadZip' }
|
||||
)
|
||||
|
||||
this.selectedFiles = []
|
||||
}
|
||||
|
||||
renameFile(item: FileStateFile) {
|
||||
const posLastPoint = item.filename.lastIndexOf('.')
|
||||
this.dialogRenameFile.newName = item.filename.slice(0, posLastPoint)
|
||||
|
||||
@@ -18,16 +18,19 @@
|
||||
<v-col>
|
||||
<vue-load-image>
|
||||
<img
|
||||
ref="timelapsePreview"
|
||||
slot="image"
|
||||
:src="frameUrl"
|
||||
:alt="$t('Timelapse.Preview')"
|
||||
class="w-100"
|
||||
:style="webcamStyle" />
|
||||
<v-progress-circular
|
||||
slot="preloader"
|
||||
indeterminate
|
||||
color="primary"></v-progress-circular>
|
||||
<v-icon slot="error">{{ mdiFile }}</v-icon>
|
||||
:style="webcamStyle"
|
||||
@load="calcRatio" />
|
||||
<div slot="preloader">
|
||||
<v-progress-circular indeterminate color="primary"></v-progress-circular>
|
||||
</div>
|
||||
<div slot="error">
|
||||
<v-icon>{{ mdiFile }}</v-icon>
|
||||
</div>
|
||||
</vue-load-image>
|
||||
</v-col>
|
||||
</v-row>
|
||||
@@ -39,22 +42,24 @@
|
||||
align-self="center">
|
||||
<v-card-text :class="framesCount ? 'pt-0' : ''">
|
||||
<template v-if="framesCount > 0">
|
||||
<settings-row :title="$t('Timelapse.Frames')">
|
||||
<settings-row :title="$t('Timelapse.Frames').toString()">
|
||||
{{ framesCount }}
|
||||
</settings-row>
|
||||
<v-divider class="my-2"></v-divider>
|
||||
<settings-row :title="$t('Timelapse.EstimatedLength')" :dynamic-slot-width="true">
|
||||
<settings-row
|
||||
:title="$t('Timelapse.EstimatedLength').toString()"
|
||||
:dynamic-slot-width="true">
|
||||
{{ estimatedVideoLength }}
|
||||
</settings-row>
|
||||
</template>
|
||||
<template v-if="['printing', 'paused'].includes(printer_state)">
|
||||
<v-divider class="my-2"></v-divider>
|
||||
<settings-row :title="$t('Timelapse.Enabled')" :dynamic-slot-width="true">
|
||||
<settings-row :title="$t('Timelapse.Enabled').toString()" :dynamic-slot-width="true">
|
||||
<v-switch v-model="enabled" hide-details class="mt-0"></v-switch>
|
||||
</settings-row>
|
||||
<template v-if="enabled">
|
||||
<v-divider v-if="framesCount > 0" class="my-2"></v-divider>
|
||||
<settings-row :title="$t('Timelapse.Autorender')" :dynamic-slot-width="true">
|
||||
<settings-row :title="$t('Timelapse.Autorender').toString()" :dynamic-slot-width="true">
|
||||
<v-switch v-model="autorender" hide-details class="mt-0"></v-switch>
|
||||
</settings-row>
|
||||
</template>
|
||||
@@ -91,7 +96,7 @@
|
||||
</v-card>
|
||||
<v-dialog v-model="boolDialogRendersettings" :max-width="700" :max-height="500">
|
||||
<panel
|
||||
:title="$t('Timelapse.RenderSettings')"
|
||||
:title="$t('Timelapse.RenderSettings').toString()"
|
||||
:icon="mdiTextBoxSearchOutline"
|
||||
card-class="timelapse-rendersettings-dialog"
|
||||
:margin-bottom="false">
|
||||
@@ -109,8 +114,7 @@
|
||||
:items="framerateTypeOptions"
|
||||
outlined
|
||||
dense
|
||||
hide-details
|
||||
attach></v-select>
|
||||
hide-details></v-select>
|
||||
</v-col>
|
||||
<v-col class="col-4">
|
||||
<template v-if="variable_fps">
|
||||
@@ -197,16 +201,22 @@ import { Component, Mixins } from 'vue-property-decorator'
|
||||
import BaseMixin from '@/components/mixins/base'
|
||||
import SettingsRow from '@/components/settings/SettingsRow.vue'
|
||||
import Panel from '@/components/ui/Panel.vue'
|
||||
import { mdiFile, mdiInformation, mdiTextBoxSearchOutline } from '@mdi/js'
|
||||
import { mdiFile, mdiInformation, mdiTextBoxSearchOutline, mdiCloseThick } from '@mdi/js'
|
||||
@Component({
|
||||
components: { Panel, SettingsRow },
|
||||
})
|
||||
export default class TimelapseStatusPanel extends Mixins(BaseMixin) {
|
||||
mdiInformation = mdiInformation
|
||||
mdiFile = mdiFile
|
||||
mdiCloseThick = mdiCloseThick
|
||||
mdiTextBoxSearchOutline = mdiTextBoxSearchOutline
|
||||
|
||||
private boolDialogRendersettings = false
|
||||
private scale = 1
|
||||
|
||||
declare $refs: {
|
||||
timelapsePreview: HTMLImageElement
|
||||
}
|
||||
|
||||
get frameUrl() {
|
||||
const frame = this.$store.state.server.timelapse?.lastFrame?.file ?? null
|
||||
@@ -308,12 +318,12 @@ export default class TimelapseStatusPanel extends Mixins(BaseMixin) {
|
||||
}
|
||||
|
||||
get estimatedVideoLength() {
|
||||
let seconds = 0
|
||||
let seconds = Math.round((this.framesCount + this.duplicatelastframe) / this.output_framerate)
|
||||
|
||||
if (this.variable_fps) {
|
||||
seconds = Math.round((this.framesCount + this.duplicatelastframe) / this.variableTargetFps)
|
||||
if (seconds < this.targetlength) seconds = this.targetlength
|
||||
} else seconds = Math.round((this.framesCount + this.duplicatelastframe) / this.output_framerate)
|
||||
}
|
||||
|
||||
return seconds > 60
|
||||
? Math.floor(seconds / 60) + 'm ' + (seconds - Math.floor(seconds / 60) * 60) + 's'
|
||||
@@ -341,14 +351,14 @@ export default class TimelapseStatusPanel extends Mixins(BaseMixin) {
|
||||
}
|
||||
|
||||
get webcamStyle() {
|
||||
if (this.camSettings === undefined) return ''
|
||||
let transforms = []
|
||||
const scale = [0, 180].includes(this.camSettings.rotate) ? 1 : this.scale
|
||||
this.camSettings?.flipX ? transforms.push(`scaleX(-${scale})`) : transforms.push(`scaleX(${scale})`)
|
||||
this.camSettings?.flipY ? transforms.push(`scaleY(-${scale})`) : transforms.push(`scaleY(${scale})`)
|
||||
if (this.camSettings.rotate !== 0) transforms.push(`rotate(${this.camSettings.rotate}deg)`)
|
||||
if (transforms.length) return { transform: transforms.join(' ') }
|
||||
|
||||
let transforms = ''
|
||||
if ('flipX' in this.camSettings && this.camSettings.flipX) transforms += ' scaleX(-1)'
|
||||
if ('flipX' in this.camSettings && this.camSettings.flipY) transforms += ' scaleY(-1)'
|
||||
if (transforms.trimLeft().length) return { transform: transforms.trimLeft() }
|
||||
|
||||
return ''
|
||||
return {}
|
||||
}
|
||||
|
||||
startRender() {
|
||||
@@ -360,5 +370,14 @@ export default class TimelapseStatusPanel extends Mixins(BaseMixin) {
|
||||
saveFrames() {
|
||||
this.$socket.emit('machine.timelapse.saveframes', {}, { loading: 'timelapse_saveframes' })
|
||||
}
|
||||
|
||||
calcRatio() {
|
||||
if (this.$refs.timelapsePreview) {
|
||||
this.scale = this.$refs.timelapsePreview.naturalHeight / this.$refs.timelapsePreview.naturalWidth
|
||||
if (this.scale > 1) {
|
||||
this.scale = this.$refs.timelapsePreview.naturalWidth / this.$refs.timelapsePreview.naturalHeight
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
</script>
|
||||
@@ -1,114 +1,7 @@
|
||||
<style lang="scss" scoped>
|
||||
svg {
|
||||
max-height: 350px;
|
||||
min-height: 275px;
|
||||
user-select: none;
|
||||
filter: drop-shadow(0px 10px 10px rgba(0, 0, 0, 0.3));
|
||||
}
|
||||
|
||||
svg a {
|
||||
stroke: hsl(0, 0%, 10%);
|
||||
stroke-width: 0.3px;
|
||||
}
|
||||
|
||||
svg a.step {
|
||||
transition: fill 750ms ease-out;
|
||||
}
|
||||
|
||||
svg a.step:hover {
|
||||
fill: hsl(215, 0%, 50%) !important;
|
||||
transition: fill 100ms ease-in;
|
||||
}
|
||||
|
||||
svg a.step:active {
|
||||
fill: hsl(215, 0%, 70%) !important;
|
||||
}
|
||||
|
||||
svg a.step.inner {
|
||||
fill: #666;
|
||||
}
|
||||
svg a.step.inner-mid {
|
||||
fill: #555;
|
||||
}
|
||||
svg a.step.outer-mid {
|
||||
fill: #444;
|
||||
}
|
||||
svg a.step.outer {
|
||||
fill: #333;
|
||||
}
|
||||
|
||||
svg g#stepsZ,
|
||||
svg g#stepsXY {
|
||||
pointer-events: none;
|
||||
user-select: none;
|
||||
font-family: 'Roboto-Regular', 'Roboto', sans-serif;
|
||||
font-size: 3px;
|
||||
fill: white;
|
||||
}
|
||||
|
||||
svg a#tilt_adjust text {
|
||||
font-family: 'Roboto-Regular', 'Roboto', sans-serif;
|
||||
font-size: 3px;
|
||||
display: none;
|
||||
}
|
||||
|
||||
svg g#home_buttons text {
|
||||
font-family: 'Roboto-Regular', 'Roboto', sans-serif;
|
||||
font-size: 5px;
|
||||
fill: black;
|
||||
}
|
||||
|
||||
svg g.home_button,
|
||||
svg a#home_all_center {
|
||||
fill: var(--color-warning);
|
||||
transition: opacity 250ms;
|
||||
}
|
||||
|
||||
svg a#tilt_adjust,
|
||||
svg a#stepper_off {
|
||||
transition: opacity 250ms;
|
||||
}
|
||||
|
||||
svg a#tilt_adjust.warning,
|
||||
svg a#stepper_off.warning {
|
||||
fill: var(--color-warning);
|
||||
}
|
||||
|
||||
svg a#tilt_adjust.primary,
|
||||
svg a#stepper_off.primary {
|
||||
fill: var(--color-primary);
|
||||
}
|
||||
|
||||
svg g.home_button.homed,
|
||||
svg a#home_all_center.homed {
|
||||
fill: var(--color-primary);
|
||||
}
|
||||
|
||||
svg g.home_button:hover,
|
||||
svg a#home_all_center:hover,
|
||||
svg a#tilt_adjust:hover,
|
||||
svg a#stepper_off:hover {
|
||||
opacity: 0.8;
|
||||
}
|
||||
|
||||
svg a#tilt_adjust text,
|
||||
svg a#tilt_adjust #tilt_icon,
|
||||
svg a#stepper_off #stepper_off_icon,
|
||||
svg g#home_buttons .home-icon {
|
||||
pointer-events: none;
|
||||
user-select: none;
|
||||
}
|
||||
|
||||
svg a#tilt_adjust #tilt_icon,
|
||||
svg a#stepper_off #stepper_off_icon {
|
||||
fill: #000;
|
||||
}
|
||||
</style>
|
||||
|
||||
<template>
|
||||
<div>
|
||||
<v-row>
|
||||
<v-col class="pa-0">
|
||||
<v-col class="pa-0 mt-1">
|
||||
<svg
|
||||
width="100%"
|
||||
height="100%"
|
||||
@@ -120,13 +13,13 @@ svg a#stepper_off #stepper_off_icon {
|
||||
<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)">
|
||||
<!-- HOME X BUTTON -->
|
||||
<a @click="doHomeX">
|
||||
<a :class="xHomeClass" @click="doHomeX">
|
||||
<g
|
||||
id="home_x"
|
||||
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' : '')"
|
||||
class="home_button"
|
||||
transform="matrix(0.68689,0.68689,-0.68689,0.68689,3.87132,0.962447)">
|
||||
<path :d="pathHomeButtonTop" />
|
||||
</g>
|
||||
@@ -135,20 +28,20 @@ svg a#stepper_off #stepper_off_icon {
|
||||
</g>
|
||||
<g
|
||||
id="Icon"
|
||||
class="home-icon"
|
||||
class="home_icon"
|
||||
transform="matrix(0.147059,0,0,0.147059,2.10662,2.08254)">
|
||||
<path :d="homeIcon" style="fill-rule: nonzero" />
|
||||
</g>
|
||||
</g>
|
||||
</a>
|
||||
<!-- HOME Y BUTTON -->
|
||||
<a @click="doHomeY">
|
||||
<a :class="yHomeClass" @click="doHomeY">
|
||||
<g
|
||||
id="home_y"
|
||||
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' : '')"
|
||||
class="home_button"
|
||||
transform="matrix(0.68689,0.68689,-0.68689,0.68689,3.87132,0.962447)">
|
||||
<path :d="pathHomeButtonTop" />
|
||||
</g>
|
||||
@@ -157,20 +50,20 @@ svg a#stepper_off #stepper_off_icon {
|
||||
</g>
|
||||
<g
|
||||
id="icon"
|
||||
class="home-icon"
|
||||
class="home_icon"
|
||||
transform="matrix(0.147059,0,0,0.147059,2.10662,2.08254)">
|
||||
<path :d="homeIcon" style="fill-rule: nonzero" />
|
||||
</g>
|
||||
</g>
|
||||
</a>
|
||||
<!-- HOME Z BUTTON -->
|
||||
<a @click="doHomeZ">
|
||||
<a :class="zHomeClass" @click="doHomeZ">
|
||||
<g
|
||||
id="home_z"
|
||||
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' : '')"
|
||||
class="home_button"
|
||||
transform="matrix(0.68689,0.68689,-0.68689,0.68689,3.87132,0.962447)">
|
||||
<path :d="pathHomeButtonBottom" />
|
||||
</g>
|
||||
@@ -179,20 +72,20 @@ svg a#stepper_off #stepper_off_icon {
|
||||
</g>
|
||||
<g
|
||||
id="icon1"
|
||||
class="home-icon"
|
||||
class="home_icon"
|
||||
transform="matrix(0.147059,0,0,0.147059,2.10662,2.08254)">
|
||||
<path :d="homeIcon" style="fill-rule: nonzero" />
|
||||
</g>
|
||||
</g>
|
||||
</a>
|
||||
<!-- HOME XY BUTTON -->
|
||||
<a v-if="enableXYHoming" @click="doHomeXY">
|
||||
<a v-if="enableXYHoming" :class="xyHomeClass" @click="doHomeXY">
|
||||
<g
|
||||
id="home_xy"
|
||||
transform="matrix(-0.707107,-0.707107,0.707107,-0.707107,4.05689,63.3555)">
|
||||
<g
|
||||
id="home_button_xy"
|
||||
:class="'home_button' + (homedAxes.includes('xy') ? ' homed' : '')"
|
||||
class="home_button"
|
||||
transform="matrix(0.68689,0.68689,-0.68689,0.68689,3.87132,0.962447)">
|
||||
<path :d="pathHomeButtonBottom" />
|
||||
</g>
|
||||
@@ -201,35 +94,34 @@ svg a#stepper_off #stepper_off_icon {
|
||||
</g>
|
||||
<g
|
||||
id="icon2"
|
||||
class="home-icon"
|
||||
class="home_icon"
|
||||
transform="matrix(0.147059,0,0,0.147059,2.10662,2.08254)">
|
||||
<path :d="homeIcon" style="fill-rule: nonzero" />
|
||||
</g>
|
||||
</g>
|
||||
</a>
|
||||
<!-- HOME ALL BUTTON -->
|
||||
<a v-if="!enableXYHoming" @click="doHome">
|
||||
<a v-else :class="xyzHomeClass" @click="doHome">
|
||||
<g
|
||||
id="home_all"
|
||||
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' : '')"
|
||||
class="home_button"
|
||||
transform="matrix(0.68689,0.68689,-0.68689,0.68689,3.87132,0.962447)">
|
||||
<path :d="pathHomeButtonBottom" />
|
||||
</g>
|
||||
<g
|
||||
id="icon3"
|
||||
class="home-icon"
|
||||
class="home_icon"
|
||||
transform="matrix(0.29377,0,0,0.29377,0.346087,1.64241)">
|
||||
<path :d="homeIcon" style="fill-rule: nonzero" />
|
||||
</g>
|
||||
</g>
|
||||
</a>
|
||||
<a v-if="enableXYHoming" @click="doHome">
|
||||
<g
|
||||
id="home_all_center"
|
||||
:class="'home_button' + (homedAxes.includes('xyz') ? ' homed' : '')">
|
||||
<!-- HOME ALL BUTTON IN THE CENTER -->
|
||||
<a v-if="enableXYHoming" :class="xyzHomeClass" @click="doHome">
|
||||
<g id="home_all_center" class="home_button">
|
||||
<circle id="home_button_all_center" cx="31" cy="31" r="5" />
|
||||
</g>
|
||||
<g id="icon4" class="home-icon" transform="scale(0.3) translate(91.25,91.25)">
|
||||
@@ -241,7 +133,10 @@ svg a#stepper_off #stepper_off_icon {
|
||||
<g id="step_buttons" transform="matrix(0.804902,0,0,1,0.0430241,0)">
|
||||
<!-- Z STEPS BUTTONS -->
|
||||
<g id="Z" transform="matrix(1.24239,0,0,1,-0.0534526,0)">
|
||||
<g id="Bottom" transform="matrix(-1,-1.52149e-16,9.85721e-17,-1,114.34,62)">
|
||||
<g
|
||||
id="Bottom"
|
||||
:class="zStepClass"
|
||||
transform="matrix(-1,-1.52149e-16,9.85721e-17,-1,114.34,62)">
|
||||
<a
|
||||
class="step inner"
|
||||
@click="
|
||||
@@ -290,7 +185,7 @@ svg a#stepper_off #stepper_off_icon {
|
||||
</g>
|
||||
</a>
|
||||
</g>
|
||||
<g id="Top">
|
||||
<g id="Top" :class="zStepClass">
|
||||
<a
|
||||
class="step inner"
|
||||
@click="
|
||||
@@ -343,7 +238,7 @@ svg a#stepper_off #stepper_off_icon {
|
||||
</g>
|
||||
</g>
|
||||
<!-- Z STEP BUTTON TEXT -->
|
||||
<g id="stepsZ" transform="matrix(1,0,0,1,40,0)">
|
||||
<g id="stepsZ" :class="zStepClass" transform="matrix(1,0,0,1,40,0)">
|
||||
<g transform="matrix(1,0,0,1,0.483899,4.07983)">
|
||||
<text x="30.7px" y="19.056px" text-anchor="middle">
|
||||
{{ stepsZ.length >= 0 ? stepsZ[0] : '--' }}
|
||||
@@ -367,7 +262,7 @@ svg a#stepper_off #stepper_off_icon {
|
||||
</g>
|
||||
<!-- XY STEP BUTTONS -->
|
||||
<g id="XY">
|
||||
<g id="Right">
|
||||
<g id="Right" :class="xStepClass">
|
||||
<a
|
||||
class="step inner"
|
||||
@click="
|
||||
@@ -417,7 +312,10 @@ svg a#stepper_off #stepper_off_icon {
|
||||
</g>
|
||||
</a>
|
||||
</g>
|
||||
<g id="Left" transform="matrix(-1,-1.22465e-16,1.22465e-16,-1,61.9767,61.9767)">
|
||||
<g
|
||||
id="Left"
|
||||
:class="xStepClass"
|
||||
transform="matrix(-1,-1.22465e-16,1.22465e-16,-1,61.9767,61.9767)">
|
||||
<a
|
||||
class="step inner"
|
||||
@click="
|
||||
@@ -467,7 +365,10 @@ svg a#stepper_off #stepper_off_icon {
|
||||
</g>
|
||||
</a>
|
||||
</g>
|
||||
<g id="Bottom1" transform="matrix(6.12323e-17,1,-1,6.12323e-17,61.9767,-1.77705e-14)">
|
||||
<g
|
||||
id="Bottom1"
|
||||
:class="yStepClass"
|
||||
transform="matrix(6.12323e-17,1,-1,6.12323e-17,61.9767,-1.77705e-14)">
|
||||
<a
|
||||
class="step inner"
|
||||
@click="
|
||||
@@ -517,7 +418,10 @@ svg a#stepper_off #stepper_off_icon {
|
||||
</g>
|
||||
</a>
|
||||
</g>
|
||||
<g id="Top1" transform="matrix(6.12323e-17,-1,1,6.12323e-17,7.10543e-15,61.9767)">
|
||||
<g
|
||||
id="Top1"
|
||||
:class="yStepClass"
|
||||
transform="matrix(6.12323e-17,-1,1,6.12323e-17,7.10543e-15,61.9767)">
|
||||
<a
|
||||
class="step inner"
|
||||
@click="
|
||||
@@ -569,7 +473,7 @@ svg a#stepper_off #stepper_off_icon {
|
||||
</g>
|
||||
</g>
|
||||
<!-- XY STEP BUTTON TEXT -->
|
||||
<g id="stepsXY">
|
||||
<g id="stepsXY" :class="stepTextClass">
|
||||
<g transform="matrix(1,0,0,1,0.483899,4.07983)">
|
||||
<text x="30.5px" y="19.056px" text-anchor="middle">
|
||||
{{ stepsXY.length >= 0 ? stepsXY[0] : '--' }}
|
||||
@@ -617,7 +521,7 @@ svg a#stepper_off #stepper_off_icon {
|
||||
<path :d="zTiltIcon2" />
|
||||
</g>
|
||||
</a>
|
||||
<a v-else id="stepper_off" :class="homedAxes !== '' ? 'primary' : 'warning'" @click="doSend('M84')">
|
||||
<a v-else id="stepper_off" :class="motorsOffClass" @click="doSend('M84')">
|
||||
<circle id="stepper_off_button" cx="70.92" cy="31" r="5" />
|
||||
<g id="stepper_off_icon" transform="scale(0.3) translate(224,91)">
|
||||
<path :d="engineOffIcon" />
|
||||
@@ -710,10 +614,89 @@ export default class CircleControl extends Mixins(BaseMixin, ControlMixin) {
|
||||
return Array.from(new Set([...(steps ?? [])])).sort((a, b) => a - b)
|
||||
}
|
||||
|
||||
get isPrinting() {
|
||||
return ['printing'].includes(this.printer_state)
|
||||
}
|
||||
|
||||
get stepTextClass() {
|
||||
if (!this.homedAxes.includes('xy') || this.isPrinting) return ['disabled']
|
||||
|
||||
return []
|
||||
}
|
||||
|
||||
get xStepClass() {
|
||||
if (!this.homedAxes.includes('x') || this.isPrinting) return ['disabled']
|
||||
|
||||
return []
|
||||
}
|
||||
|
||||
get yStepClass() {
|
||||
if (!this.homedAxes.includes('y') || this.isPrinting) return ['disabled']
|
||||
|
||||
return []
|
||||
}
|
||||
|
||||
get zStepClass() {
|
||||
if (!this.homedAxes.includes('z') || this.isPrinting) return ['disabled']
|
||||
|
||||
return []
|
||||
}
|
||||
|
||||
get xHomeClass() {
|
||||
let classes = []
|
||||
if (this.homedAxes.includes('x')) classes.push('homed')
|
||||
if (this.isPrinting) classes.push('disabled')
|
||||
|
||||
return classes
|
||||
}
|
||||
|
||||
get yHomeClass() {
|
||||
let classes = []
|
||||
if (this.homedAxes.includes('y')) classes.push('homed')
|
||||
if (this.isPrinting) classes.push('disabled')
|
||||
|
||||
return classes
|
||||
}
|
||||
|
||||
get xyHomeClass() {
|
||||
let classes = []
|
||||
if (this.homedAxes.includes('xy')) classes.push('homed')
|
||||
if (this.isPrinting) classes.push('disabled')
|
||||
|
||||
return classes
|
||||
}
|
||||
|
||||
get xyzHomeClass() {
|
||||
let classes = []
|
||||
if (this.homedAxes.includes('xyz')) classes.push('homed')
|
||||
if (this.isPrinting) classes.push('disabled')
|
||||
|
||||
return classes
|
||||
}
|
||||
|
||||
get zHomeClass() {
|
||||
let classes = []
|
||||
if (this.homedAxes.includes('z')) classes.push('homed')
|
||||
if (this.isPrinting) classes.push('disabled')
|
||||
|
||||
return classes
|
||||
}
|
||||
|
||||
get colorSpecialButton() {
|
||||
if (this.existsQGL) return this.colorQuadGantryLevel
|
||||
else if (this.existsZtilt) return this.colorZTilt
|
||||
else return 'warning'
|
||||
let classes = []
|
||||
if (this.isPrinting) classes.push('disabled')
|
||||
if (this.existsQGL) classes.push(this.colorQuadGantryLevel)
|
||||
else if (this.existsZtilt) classes.push(this.colorZTilt)
|
||||
|
||||
return classes
|
||||
}
|
||||
|
||||
get motorsOffClass() {
|
||||
let classes = []
|
||||
classes.push(this.homedAxes !== '' ? 'primary' : 'warning')
|
||||
if (this.isPrinting) classes.push('disabled')
|
||||
|
||||
return classes
|
||||
}
|
||||
|
||||
clickSpecialButton() {
|
||||
@@ -722,3 +705,128 @@ export default class CircleControl extends Mixins(BaseMixin, ControlMixin) {
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
||||
<style lang="scss" scoped>
|
||||
svg {
|
||||
max-height: 350px;
|
||||
min-height: 275px;
|
||||
user-select: none;
|
||||
filter: drop-shadow(0px 10px 10px rgba(0, 0, 0, 0.3));
|
||||
}
|
||||
|
||||
svg a {
|
||||
stroke: hsl(0, 0%, 10%);
|
||||
stroke-width: 0.3px;
|
||||
}
|
||||
|
||||
svg a.step {
|
||||
transition: fill 750ms ease-out;
|
||||
}
|
||||
|
||||
svg a.step:hover {
|
||||
fill: hsl(215, 0%, 50%) !important;
|
||||
transition: fill 100ms ease-in;
|
||||
}
|
||||
|
||||
svg a.step:active {
|
||||
fill: hsl(215, 0%, 70%) !important;
|
||||
}
|
||||
|
||||
svg a.step.inner {
|
||||
fill: #666;
|
||||
}
|
||||
svg a.step.inner-mid {
|
||||
fill: #555;
|
||||
}
|
||||
svg a.step.outer-mid {
|
||||
fill: #444;
|
||||
}
|
||||
svg a.step.outer {
|
||||
fill: #333;
|
||||
}
|
||||
|
||||
svg .disabled a.step {
|
||||
pointer-events: none;
|
||||
}
|
||||
|
||||
svg g#stepsZ,
|
||||
svg g#stepsXY {
|
||||
pointer-events: none;
|
||||
user-select: none;
|
||||
font-family: 'Roboto-Regular', 'Roboto', sans-serif;
|
||||
font-size: 3px;
|
||||
fill: white;
|
||||
}
|
||||
|
||||
svg a#tilt_adjust text {
|
||||
font-family: 'Roboto-Regular', 'Roboto', sans-serif;
|
||||
font-size: 3px;
|
||||
display: none;
|
||||
}
|
||||
|
||||
svg g#home_buttons text {
|
||||
font-family: 'Roboto-Regular', 'Roboto', sans-serif;
|
||||
font-size: 5px;
|
||||
fill: black;
|
||||
}
|
||||
|
||||
svg g.home_button,
|
||||
svg a#home_all_center {
|
||||
fill: var(--color-warning);
|
||||
transition: opacity 250ms;
|
||||
}
|
||||
|
||||
svg a.disabled {
|
||||
pointer-events: none;
|
||||
}
|
||||
|
||||
svg a.disabled .home_button path,
|
||||
svg a.disabled circle {
|
||||
fill: rgb(92, 92, 92);
|
||||
}
|
||||
|
||||
svg g#stepsXY.disabled text,
|
||||
svg g#stepsZ.disabled text {
|
||||
fill: rgba(255, 255, 255, 0.3);
|
||||
}
|
||||
|
||||
svg a#tilt_adjust,
|
||||
svg a#stepper_off {
|
||||
transition: opacity 250ms;
|
||||
}
|
||||
|
||||
svg a#tilt_adjust.warning,
|
||||
svg a#stepper_off.warning {
|
||||
fill: var(--color-warning);
|
||||
}
|
||||
|
||||
svg a#tilt_adjust.primary,
|
||||
svg a#stepper_off.primary {
|
||||
fill: var(--color-primary);
|
||||
}
|
||||
|
||||
svg .homed g.home_button,
|
||||
svg .homed a#home_all_center {
|
||||
fill: var(--color-primary);
|
||||
}
|
||||
|
||||
svg g.home_button:hover,
|
||||
svg a#home_all_center:hover,
|
||||
svg a#tilt_adjust:hover,
|
||||
svg a#stepper_off:hover {
|
||||
opacity: 0.8;
|
||||
}
|
||||
|
||||
svg a#tilt_adjust text,
|
||||
svg a#tilt_adjust #tilt_icon,
|
||||
svg a#stepper_off #stepper_off_icon,
|
||||
svg g#home_buttons .home_icon {
|
||||
pointer-events: none;
|
||||
user-select: none;
|
||||
}
|
||||
|
||||
svg a#tilt_adjust #tilt_icon,
|
||||
svg a#stepper_off #stepper_off_icon {
|
||||
fill: #000;
|
||||
}
|
||||
</style>
|
||||
@@ -6,7 +6,8 @@
|
||||
:icon="mdiWebcam"
|
||||
:title="$t('Panels.WebcamPanel.Headline')"
|
||||
:collapsible="$route.fullPath !== '/cam'"
|
||||
card-class="webcam-panel">
|
||||
card-class="webcam-panel"
|
||||
:margin-bottom="currentPage !== 'page'">
|
||||
<template v-if="webcams.length > 1" #buttons>
|
||||
<v-menu :offset-y="true" title="Webcam">
|
||||
<template #activator="{ on, attrs }">
|
||||
@@ -42,19 +43,25 @@
|
||||
<v-row>
|
||||
<v-col class="pb-0" style="position: relative">
|
||||
<template v-if="currentCam.service === 'grid'">
|
||||
<webcam-grid :webcams="webcams"></webcam-grid>
|
||||
<webcam-grid :webcams="webcams" />
|
||||
</template>
|
||||
<template v-else-if="currentCam.service === 'mjpegstreamer'">
|
||||
<webcam-mjpegstreamer :cam-settings="currentCam"></webcam-mjpegstreamer>
|
||||
<webcam-mjpegstreamer :cam-settings="currentCam" />
|
||||
</template>
|
||||
<template v-else-if="currentCam.service === 'mjpegstreamer-adaptive'">
|
||||
<webcam-mjpegstreamer-adaptive :cam-settings="currentCam"></webcam-mjpegstreamer-adaptive>
|
||||
<webcam-mjpegstreamer-adaptive :cam-settings="currentCam" />
|
||||
</template>
|
||||
<template v-else-if="currentCam.service === 'uv4l-mjpeg'">
|
||||
<webcam-uv4l-mjpeg :cam-settings="currentCam"></webcam-uv4l-mjpeg>
|
||||
<webcam-uv4l-mjpeg :cam-settings="currentCam" />
|
||||
</template>
|
||||
<template v-else-if="currentCam.service === 'ipstream'">
|
||||
<webcam-ipstreamer :cam-settings="currentCam"></webcam-ipstreamer>
|
||||
<webcam-ipstreamer :cam-settings="currentCam" />
|
||||
</template>
|
||||
<template v-else-if="currentCam.service === 'hlsstream'">
|
||||
<webcam-hlsstreamer :cam-settings="currentCam" />
|
||||
</template>
|
||||
<template v-else-if="currentCam.service === 'webrtc-camerastreamer'">
|
||||
<webcam-webrtc-camerastreamer :cam-settings="currentCam" />
|
||||
</template>
|
||||
<template v-else>
|
||||
<p class="text-center py-3 font-italic">{{ $t('Panels.WebcamPanel.UnknownWebcamService') }}</p>
|
||||
@@ -71,8 +78,10 @@
|
||||
<script lang="ts">
|
||||
import Mjpegstreamer from '@/components/webcams/Mjpegstreamer.vue'
|
||||
import MjpegstreamerAdaptive from '@/components/webcams/MjpegstreamerAdaptive.vue'
|
||||
import Hlsstreamer from '@/components/webcams/Hlsstreamer.vue'
|
||||
import Ipstreamer from '@/components/webcams/Ipstreamer.vue'
|
||||
import Uv4lMjpeg from '@/components/webcams/Uv4lMjpeg.vue'
|
||||
import WebrtcCameraStreamer from '@/components/webcams/WebrtcCameraStreamer.vue'
|
||||
import WebcamGrid from '@/components/webcams/WebcamGrid.vue'
|
||||
import Component from 'vue-class-component'
|
||||
import { Mixins, Prop } from 'vue-property-decorator'
|
||||
@@ -88,7 +97,9 @@ import WebcamMixin from '@/components/mixins/webcam'
|
||||
'webcam-mjpegstreamer': Mjpegstreamer,
|
||||
'webcam-mjpegstreamer-adaptive': MjpegstreamerAdaptive,
|
||||
'webcam-ipstreamer': Ipstreamer,
|
||||
'webcam-hlsstreamer': Hlsstreamer,
|
||||
'webcam-uv4l-mjpeg': Uv4lMjpeg,
|
||||
'webcam-webrtc-camerastreamer': WebrtcCameraStreamer,
|
||||
'webcam-grid': WebcamGrid,
|
||||
},
|
||||
})
|
||||
|
||||
@@ -0,0 +1,40 @@
|
||||
<template>
|
||||
<v-card flat>
|
||||
<v-card-text>
|
||||
<v-row>
|
||||
<v-col class="col-12 col-md-6">
|
||||
<settings-dashboard-sortable viewport-name="desktop" :column="1" />
|
||||
</v-col>
|
||||
<v-col class="col-12 col-md-6">
|
||||
<settings-dashboard-sortable viewport-name="desktop" :column="2" />
|
||||
</v-col>
|
||||
</v-row>
|
||||
<v-row>
|
||||
<v-col class="text-center">
|
||||
<v-btn color="error" @click="resetLayout">{{ $t('Settings.DashboardTab.ResetLayout') }}</v-btn>
|
||||
</v-col>
|
||||
</v-row>
|
||||
</v-card-text>
|
||||
</v-card>
|
||||
</template>
|
||||
|
||||
<script lang="ts">
|
||||
import Component from 'vue-class-component'
|
||||
import { Mixins } from 'vue-property-decorator'
|
||||
import DashboardMixin from '@/components/mixins/dashboard'
|
||||
import SettingsDashboardSortable from '@/components/settings/Dashboard/Sortable.vue'
|
||||
|
||||
@Component({
|
||||
components: {
|
||||
SettingsDashboardSortable,
|
||||
},
|
||||
})
|
||||
export default class SettingsDashboardTabDesktop extends Mixins(DashboardMixin) {
|
||||
resetLayout() {
|
||||
this.$store.dispatch('gui/resetLayout', 'desktopLayout1')
|
||||
this.$store.dispatch('gui/resetLayout', 'desktopLayout2')
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
||||
<style scoped></style>
|
||||
@@ -0,0 +1,36 @@
|
||||
<template>
|
||||
<v-card flat>
|
||||
<v-card-text>
|
||||
<v-row>
|
||||
<v-col>
|
||||
<settings-dashboard-sortable viewport-name="mobile" :column="0" />
|
||||
</v-col>
|
||||
</v-row>
|
||||
<v-row>
|
||||
<v-col class="text-center">
|
||||
<v-btn color="error" @click="resetLayout">{{ $t('Settings.DashboardTab.ResetLayout') }}</v-btn>
|
||||
</v-col>
|
||||
</v-row>
|
||||
</v-card-text>
|
||||
</v-card>
|
||||
</template>
|
||||
|
||||
<script lang="ts">
|
||||
import Component from 'vue-class-component'
|
||||
import { Mixins } from 'vue-property-decorator'
|
||||
import DashboardMixin from '@/components/mixins/dashboard'
|
||||
import SettingsDashboardSortable from '@/components/settings/Dashboard/Sortable.vue'
|
||||
|
||||
@Component({
|
||||
components: {
|
||||
SettingsDashboardSortable,
|
||||
},
|
||||
})
|
||||
export default class SettingsDashboardTabMobile extends Mixins(DashboardMixin) {
|
||||
resetLayout() {
|
||||
this.$store.dispatch('gui/resetLayout', 'mobileLayout')
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
||||
<style scoped></style>
|
||||
@@ -0,0 +1,100 @@
|
||||
<template>
|
||||
<v-card class="mx-auto fill-height" max-width="300" tile>
|
||||
<v-list class="fill-height" dense>
|
||||
<v-list-item v-if="column < 2">
|
||||
<v-row>
|
||||
<v-col class="col-auto pr-0 pl-8">
|
||||
<v-icon>{{ mdiInformation }}</v-icon>
|
||||
</v-col>
|
||||
<v-col class="pr-0 text-truncate">
|
||||
{{ $t('Panels.StatusPanel.Headline') }}
|
||||
</v-col>
|
||||
<v-col class="col-auto pl-0">
|
||||
<v-icon color="grey lighten-1">{{ mdiLock }}</v-icon>
|
||||
</v-col>
|
||||
</v-row>
|
||||
</v-list-item>
|
||||
<draggable
|
||||
v-model="layout"
|
||||
handle=".handle"
|
||||
class="v-list-item-group fill-height"
|
||||
ghost-class="ghost"
|
||||
:group="groupname">
|
||||
<transition-group>
|
||||
<settings-dashboard-sortable-item
|
||||
v-for="element in layout"
|
||||
:key="`item-${element.name}`"
|
||||
:name="element.name"
|
||||
:visible="element.visible"
|
||||
@change-visible="changeVisible" />
|
||||
</transition-group>
|
||||
</draggable>
|
||||
</v-list>
|
||||
</v-card>
|
||||
</template>
|
||||
|
||||
<script lang="ts">
|
||||
import Component from 'vue-class-component'
|
||||
import { Mixins, Prop } from 'vue-property-decorator'
|
||||
import draggable from 'vuedraggable'
|
||||
import { mdiInformation, mdiLock } from '@mdi/js'
|
||||
import DashboardMixin from '@/components/mixins/dashboard'
|
||||
import SettingsDashboardSortableItem from '@/components/settings/Dashboard/SortableItem.vue'
|
||||
|
||||
@Component({
|
||||
components: { SettingsDashboardSortableItem, draggable },
|
||||
})
|
||||
export default class SettingsDashboardSortable extends Mixins(DashboardMixin) {
|
||||
/**
|
||||
* Icons
|
||||
*/
|
||||
mdiInformation = mdiInformation
|
||||
mdiLock = mdiLock
|
||||
|
||||
@Prop({ type: String, required: true }) declare readonly viewportName: string
|
||||
@Prop({ type: Number, required: false, default: 1 }) declare readonly column: number
|
||||
|
||||
get layoutname() {
|
||||
if (this.column) return `${this.viewportName}Layout${this.column}`
|
||||
|
||||
return `${this.viewportName}Layout`
|
||||
}
|
||||
|
||||
get groupname() {
|
||||
return `${this.viewportName}Viewport`
|
||||
}
|
||||
|
||||
get layout() {
|
||||
return this.$store.getters['gui/getPanels'](this.viewportName, this.column)
|
||||
}
|
||||
|
||||
set layout(newVal) {
|
||||
newVal = newVal.filter((element: any) => element !== undefined)
|
||||
|
||||
this.$store.dispatch('gui/saveSetting', { name: `dashboard.${this.layoutname}`, value: newVal })
|
||||
}
|
||||
|
||||
changeVisible(name: string, newVal: boolean) {
|
||||
const index = this.layout.findIndex((element: any) => element.name === name)
|
||||
if (index !== -1) {
|
||||
this.layout[index].visible = newVal
|
||||
this.$store.dispatch('gui/saveSetting', {
|
||||
name: `dashboard.${this.layoutname}`,
|
||||
value: this.layout,
|
||||
})
|
||||
}
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
||||
<style scoped>
|
||||
/deep/ .ghost {
|
||||
opacity: 0.5;
|
||||
background: #c8ebfb;
|
||||
}
|
||||
|
||||
.v-list-item-group > span {
|
||||
display: block;
|
||||
height: 100%;
|
||||
}
|
||||
</style>
|
||||
@@ -0,0 +1,67 @@
|
||||
<template>
|
||||
<v-list-item>
|
||||
<v-row>
|
||||
<v-col class="col-auto px-0">
|
||||
<v-icon class="handle pr-2">{{ mdiDragVertical }}</v-icon>
|
||||
<v-icon>{{ icon }}</v-icon>
|
||||
</v-col>
|
||||
<v-col class="pr-0 text-truncate">
|
||||
{{ panelname }}
|
||||
</v-col>
|
||||
<v-col class="col-auto pl-2">
|
||||
<v-icon
|
||||
:color="checkboxColor"
|
||||
@click.stop="$emit('change-visible', name, !visible)"
|
||||
v-html="checkboxIcon" />
|
||||
</v-col>
|
||||
</v-row>
|
||||
</v-list-item>
|
||||
</template>
|
||||
|
||||
<script lang="ts">
|
||||
import Component from 'vue-class-component'
|
||||
import { Mixins, Prop } from 'vue-property-decorator'
|
||||
import draggable from 'vuedraggable'
|
||||
import { mdiCheckboxBlankOutline, mdiCheckboxMarked, mdiDragVertical, mdiInformation } from '@mdi/js'
|
||||
import DashboardMixin from '@/components/mixins/dashboard'
|
||||
|
||||
@Component({
|
||||
components: { draggable },
|
||||
})
|
||||
export default class SettingsDashboardSortableItem extends Mixins(DashboardMixin) {
|
||||
/**
|
||||
* Icons
|
||||
*/
|
||||
mdiInformation = mdiInformation
|
||||
mdiDragVertical = mdiDragVertical
|
||||
|
||||
@Prop({ type: String, required: true }) declare readonly name: string
|
||||
@Prop({ type: Boolean, required: true }) declare readonly visible: boolean
|
||||
|
||||
get panelname() {
|
||||
return this.getPanelName(this.name)
|
||||
}
|
||||
|
||||
get icon() {
|
||||
return this.convertPanelnameToIcon(this.name)
|
||||
}
|
||||
|
||||
get checkboxColor() {
|
||||
if (this.visible) return 'primary'
|
||||
|
||||
return 'grey lighten-1'
|
||||
}
|
||||
|
||||
get checkboxIcon() {
|
||||
if (this.visible) return mdiCheckboxMarked
|
||||
|
||||
return mdiCheckboxBlankOutline
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
||||
<style scoped>
|
||||
.handle {
|
||||
cursor: move;
|
||||
}
|
||||
</style>
|
||||
@@ -0,0 +1,39 @@
|
||||
<template>
|
||||
<v-card flat>
|
||||
<v-card-text>
|
||||
<v-row>
|
||||
<v-col class="col-12 col-md-6">
|
||||
<settings-dashboard-sortable viewport-name="tablet" :column="1" />
|
||||
</v-col>
|
||||
<v-col class="col-12 col-md-6">
|
||||
<settings-dashboard-sortable viewport-name="tablet" :column="2" />
|
||||
</v-col>
|
||||
</v-row>
|
||||
<v-row>
|
||||
<v-col class="text-center">
|
||||
<v-btn color="error" @click="resetLayout">{{ $t('Settings.DashboardTab.ResetLayout') }}</v-btn>
|
||||
</v-col>
|
||||
</v-row>
|
||||
</v-card-text>
|
||||
</v-card>
|
||||
</template>
|
||||
|
||||
<script lang="ts">
|
||||
import Component from 'vue-class-component'
|
||||
import { Mixins } from 'vue-property-decorator'
|
||||
import DashboardMixin from '@/components/mixins/dashboard'
|
||||
import SettingsDashboardSortable from '@/components/settings/Dashboard/Sortable.vue'
|
||||
@Component({
|
||||
components: {
|
||||
SettingsDashboardSortable,
|
||||
},
|
||||
})
|
||||
export default class SettingsDashboardTabTablet extends Mixins(DashboardMixin) {
|
||||
resetLayout() {
|
||||
this.$store.dispatch('gui/resetLayout', 'tabletLayout1')
|
||||
this.$store.dispatch('gui/resetLayout', 'tabletLayout2')
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
||||
<style scoped></style>
|
||||
@@ -0,0 +1,43 @@
|
||||
<template>
|
||||
<v-card flat>
|
||||
<v-card-text>
|
||||
<v-row>
|
||||
<v-col class="col-12 col-md-4">
|
||||
<settings-dashboard-sortable viewport-name="widescreen" :column="1" />
|
||||
</v-col>
|
||||
<v-col class="col-12 col-md-4">
|
||||
<settings-dashboard-sortable viewport-name="widescreen" :column="2" />
|
||||
</v-col>
|
||||
<v-col class="col-12 col-md-4">
|
||||
<settings-dashboard-sortable viewport-name="widescreen" :column="3" />
|
||||
</v-col>
|
||||
</v-row>
|
||||
<v-row>
|
||||
<v-col class="text-center">
|
||||
<v-btn color="error" @click="resetLayout">{{ $t('Settings.DashboardTab.ResetLayout') }}</v-btn>
|
||||
</v-col>
|
||||
</v-row>
|
||||
</v-card-text>
|
||||
</v-card>
|
||||
</template>
|
||||
|
||||
<script lang="ts">
|
||||
import Component from 'vue-class-component'
|
||||
import { Mixins } from 'vue-property-decorator'
|
||||
import DashboardMixin from '@/components/mixins/dashboard'
|
||||
import SettingsDashboardSortable from '@/components/settings/Dashboard/Sortable.vue'
|
||||
@Component({
|
||||
components: {
|
||||
SettingsDashboardSortable,
|
||||
},
|
||||
})
|
||||
export default class SettingsDashboardTabWidescreen extends Mixins(DashboardMixin) {
|
||||
resetLayout() {
|
||||
this.$store.dispatch('gui/resetLayout', 'widescreenLayout1')
|
||||
this.$store.dispatch('gui/resetLayout', 'widescreenLayout2')
|
||||
this.$store.dispatch('gui/resetLayout', 'widescreenLayout3')
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
||||
<style scoped></style>
|
||||
@@ -1,4 +1,8 @@
|
||||
<style scoped></style>
|
||||
<style scoped>
|
||||
.dashboard-rows-container /deep/ .v-list-item-group {
|
||||
min-height: 80px;
|
||||
}
|
||||
</style>
|
||||
|
||||
<template>
|
||||
<v-card flat>
|
||||
@@ -33,7 +37,7 @@
|
||||
</v-col>
|
||||
</v-row>
|
||||
<v-row>
|
||||
<v-col>
|
||||
<v-col class="dashboard-rows-container">
|
||||
<component :is="currentTab"></component>
|
||||
</v-col>
|
||||
</v-row>
|
||||
@@ -45,16 +49,14 @@
|
||||
import Component from 'vue-class-component'
|
||||
import { Mixins } from 'vue-property-decorator'
|
||||
import BaseMixin from '@/components/mixins/base'
|
||||
import draggable from 'vuedraggable'
|
||||
import SettingsDashboardTabMobile from '@/components/settings/SettingsDashboardTabMobile.vue'
|
||||
import SettingsDashboardTabTablet from '@/components/settings/SettingsDashboardTabTablet.vue'
|
||||
import SettingsDashboardTabDesktop from '@/components/settings/SettingsDashboardTabDesktop.vue'
|
||||
import SettingsDashboardTabWidescreen from '@/components/settings/SettingsDashboardTabWidescreen.vue'
|
||||
import SettingsDashboardTabMobile from '@/components/settings/Dashboard/Mobile.vue'
|
||||
import SettingsDashboardTabTablet from '@/components/settings/Dashboard/Tablet.vue'
|
||||
import SettingsDashboardTabDesktop from '@/components/settings/Dashboard/Desktop.vue'
|
||||
import SettingsDashboardTabWidescreen from '@/components/settings/Dashboard/Widescreen.vue'
|
||||
import { mdiCellphone, mdiMonitorScreenshot, mdiMonitorDashboard, mdiTablet } from '@mdi/js'
|
||||
|
||||
@Component({
|
||||
components: {
|
||||
draggable,
|
||||
SettingsDashboardTabMobile,
|
||||
SettingsDashboardTabTablet,
|
||||
SettingsDashboardTabDesktop,
|
||||
|
||||
@@ -1,192 +0,0 @@
|
||||
<template>
|
||||
<v-card flat>
|
||||
<v-card-text>
|
||||
<v-row>
|
||||
<v-col class="col-12 col-md-6">
|
||||
<v-card class="mx-auto" max-width="300" tile>
|
||||
<v-list dense>
|
||||
<v-list-item>
|
||||
<v-row>
|
||||
<v-col class="col-auto pr-0 pl-8">
|
||||
<v-icon>{{ mdiInformation }}</v-icon>
|
||||
</v-col>
|
||||
<v-col class="pr-0 text-truncate">
|
||||
{{ $t('Panels.StatusPanel.Headline') }}
|
||||
</v-col>
|
||||
<v-col class="col-auto pl-0">
|
||||
<v-icon color="grey lighten-1">{{ mdiLock }}</v-icon>
|
||||
</v-col>
|
||||
</v-row>
|
||||
</v-list-item>
|
||||
<draggable
|
||||
v-model="desktopLayout1"
|
||||
handle=".handle"
|
||||
class="v-list-item-group"
|
||||
ghost-class="ghost"
|
||||
group="desktopViewport">
|
||||
<template v-for="element in desktopLayout1">
|
||||
<v-list-item :key="'item-desktop-' + element.name">
|
||||
<v-row class="d-flex align-center">
|
||||
<v-col class="col-auto px-0">
|
||||
<v-icon class="handle pr-2">{{ mdiDragVertical }}</v-icon>
|
||||
<v-icon v-text="convertPanelnameToIcon(element.name)"></v-icon>
|
||||
</v-col>
|
||||
<v-col class="pr-0 text-truncate">
|
||||
{{ getPanelName(element.name) }}
|
||||
</v-col>
|
||||
<v-col class="col-auto pl-2">
|
||||
<v-icon
|
||||
v-if="!element.visible"
|
||||
color="grey lighten-1"
|
||||
@click.stop="changeState1(element.name, true)">
|
||||
{{ mdiCheckboxBlankOutline }}
|
||||
</v-icon>
|
||||
<v-icon
|
||||
v-else
|
||||
color="primary"
|
||||
@click.stop="changeState1(element.name, false)">
|
||||
{{ mdiCheckboxMarked }}
|
||||
</v-icon>
|
||||
</v-col>
|
||||
</v-row>
|
||||
</v-list-item>
|
||||
</template>
|
||||
</draggable>
|
||||
</v-list>
|
||||
</v-card>
|
||||
</v-col>
|
||||
<v-col class="col-12 col-md-6">
|
||||
<v-card class="mx-auto" max-width="300" tile>
|
||||
<v-list dense>
|
||||
<draggable
|
||||
v-model="desktopLayout2"
|
||||
handle=".handle"
|
||||
class="v-list-item-group"
|
||||
ghost-class="ghost"
|
||||
group="desktopViewport">
|
||||
<template v-for="element in desktopLayout2">
|
||||
<v-list-item :key="'item-desktop-' + element.name">
|
||||
<v-row class="d-flex align-center">
|
||||
<v-col class="col-auto px-0">
|
||||
<v-icon class="handle pr-2">{{ mdiDragVertical }}</v-icon>
|
||||
<v-icon v-text="convertPanelnameToIcon(element.name)"></v-icon>
|
||||
</v-col>
|
||||
<v-col class="pr-0 text-truncate">
|
||||
{{ getPanelName(element.name) }}
|
||||
</v-col>
|
||||
<v-col class="col-auto pl-2">
|
||||
<v-icon
|
||||
v-if="!element.visible"
|
||||
color="grey lighten-1"
|
||||
@click.stop="changeState2(element.name, true)">
|
||||
{{ mdiCheckboxBlankOutline }}
|
||||
</v-icon>
|
||||
<v-icon
|
||||
v-else
|
||||
color="primary"
|
||||
@click.stop="changeState2(element.name, false)">
|
||||
{{ mdiCheckboxMarked }}
|
||||
</v-icon>
|
||||
</v-col>
|
||||
</v-row>
|
||||
</v-list-item>
|
||||
</template>
|
||||
</draggable>
|
||||
</v-list>
|
||||
</v-card>
|
||||
</v-col>
|
||||
</v-row>
|
||||
<v-row>
|
||||
<v-col class="text-center">
|
||||
<v-btn color="error" @click="resetLayout">{{ $t('Settings.DashboardTab.ResetLayout') }}</v-btn>
|
||||
</v-col>
|
||||
</v-row>
|
||||
</v-card-text>
|
||||
</v-card>
|
||||
</template>
|
||||
|
||||
<script lang="ts">
|
||||
import Component from 'vue-class-component'
|
||||
import { Mixins } from 'vue-property-decorator'
|
||||
import draggable from 'vuedraggable'
|
||||
import { convertPanelnameToIcon } from '@/plugins/helpers'
|
||||
import DashboardMixin from '@/components/mixins/dashboard'
|
||||
import { mdiInformation, mdiCheckboxMarked, mdiCheckboxBlankOutline, mdiLock, mdiDragVertical } from '@mdi/js'
|
||||
|
||||
@Component({
|
||||
components: {
|
||||
draggable,
|
||||
},
|
||||
})
|
||||
export default class SettingsDashboardTabDesktop extends Mixins(DashboardMixin) {
|
||||
/**
|
||||
* Icons
|
||||
*/
|
||||
mdiLock = mdiLock
|
||||
mdiInformation = mdiInformation
|
||||
mdiDragVertical = mdiDragVertical
|
||||
mdiCheckboxMarked = mdiCheckboxMarked
|
||||
mdiCheckboxBlankOutline = mdiCheckboxBlankOutline
|
||||
|
||||
convertPanelnameToIcon = convertPanelnameToIcon
|
||||
|
||||
get desktopLayout1() {
|
||||
let panels = this.$store.getters['gui/getPanels']('desktopLayout1')
|
||||
panels = panels.concat(this.missingPanelsDesktop)
|
||||
panels = panels.filter((element: any) => this.allPossiblePanels.includes(element.name))
|
||||
|
||||
return panels
|
||||
}
|
||||
|
||||
set desktopLayout1(newVal) {
|
||||
newVal = newVal.filter((element: any) => element !== undefined)
|
||||
|
||||
this.$store.dispatch('gui/saveSetting', { name: 'dashboard.desktopLayout1', value: newVal })
|
||||
}
|
||||
|
||||
get desktopLayout2() {
|
||||
let panels = this.$store.getters['gui/getPanels']('desktopLayout2')
|
||||
panels = panels.filter((element: any) => this.allPossiblePanels.includes(element.name))
|
||||
|
||||
return panels
|
||||
}
|
||||
|
||||
set desktopLayout2(newVal) {
|
||||
newVal = newVal.filter((element: any) => element !== undefined)
|
||||
|
||||
this.$store.dispatch('gui/saveSetting', { name: 'dashboard.desktopLayout2', value: newVal })
|
||||
}
|
||||
|
||||
changeState1(name: string, newVal: boolean) {
|
||||
const index = this.desktopLayout1.findIndex((element: any) => element.name === name)
|
||||
if (index !== -1) {
|
||||
this.desktopLayout1[index].visible = newVal
|
||||
this.$store.dispatch('gui/saveSetting', { name: 'dashboard.desktopLayout1', value: this.desktopLayout1 })
|
||||
}
|
||||
}
|
||||
|
||||
changeState2(name: string, newVal: boolean) {
|
||||
const index = this.desktopLayout2.findIndex((element: any) => element.name === name)
|
||||
if (index !== -1) {
|
||||
this.desktopLayout2[index].visible = newVal
|
||||
this.$store.dispatch('gui/saveSetting', { name: 'dashboard.desktopLayout2', value: this.desktopLayout2 })
|
||||
}
|
||||
}
|
||||
|
||||
resetLayout() {
|
||||
this.$store.dispatch('gui/resetLayout', 'desktopLayout1')
|
||||
this.$store.dispatch('gui/resetLayout', 'desktopLayout2')
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
||||
<style scoped>
|
||||
.ghost {
|
||||
opacity: 0.5;
|
||||
background: #c8ebfb;
|
||||
}
|
||||
|
||||
.handle {
|
||||
cursor: move;
|
||||
}
|
||||
</style>
|
||||
@@ -1,129 +0,0 @@
|
||||
<template>
|
||||
<v-card flat>
|
||||
<v-card-text>
|
||||
<v-row>
|
||||
<v-col>
|
||||
<v-card class="mx-auto" max-width="300" tile>
|
||||
<v-list dense>
|
||||
<v-list-item>
|
||||
<v-row>
|
||||
<v-col class="col-auto pr-0 pl-8">
|
||||
<v-icon>{{ mdiInformation }}</v-icon>
|
||||
</v-col>
|
||||
<v-col class="pr-0 text-truncate">
|
||||
{{ $t('Panels.StatusPanel.Headline') }}
|
||||
</v-col>
|
||||
<v-col class="col-auto pl-0">
|
||||
<v-icon color="grey lighten-1">{{ mdiLock }}</v-icon>
|
||||
</v-col>
|
||||
</v-row>
|
||||
</v-list-item>
|
||||
<draggable
|
||||
v-model="mobileLayout"
|
||||
handle=".handle"
|
||||
class="v-list-item-group"
|
||||
ghost-class="ghost"
|
||||
group="mobileViewport">
|
||||
<template v-for="element in mobileLayout">
|
||||
<v-list-item :key="'item-mobile-' + element.name">
|
||||
<v-row class="d-flex align-center">
|
||||
<v-col class="col-auto px-0">
|
||||
<v-icon class="handle pr-2">{{ mdiDragVertical }}</v-icon>
|
||||
<v-icon v-text="convertPanelnameToIcon(element.name)"></v-icon>
|
||||
</v-col>
|
||||
<v-col class="pr-0 text-truncate">
|
||||
{{ getPanelName(element.name) }}
|
||||
</v-col>
|
||||
<v-col class="col-auto pl-2">
|
||||
<v-icon
|
||||
v-if="!element.visible"
|
||||
color="grey lighten-1"
|
||||
@click.stop="changeState(element.name, true)">
|
||||
{{ mdiCheckboxBlankOutline }}
|
||||
</v-icon>
|
||||
<v-icon
|
||||
v-else
|
||||
color="primary"
|
||||
@click.stop="changeState(element.name, false)">
|
||||
{{ mdiCheckboxMarked }}
|
||||
</v-icon>
|
||||
</v-col>
|
||||
</v-row>
|
||||
</v-list-item>
|
||||
</template>
|
||||
</draggable>
|
||||
</v-list>
|
||||
</v-card>
|
||||
</v-col>
|
||||
</v-row>
|
||||
<v-row>
|
||||
<v-col class="text-center">
|
||||
<v-btn color="error" @click="resetLayout">{{ $t('Settings.DashboardTab.ResetLayout') }}</v-btn>
|
||||
</v-col>
|
||||
</v-row>
|
||||
</v-card-text>
|
||||
</v-card>
|
||||
</template>
|
||||
|
||||
<script lang="ts">
|
||||
import Component from 'vue-class-component'
|
||||
import { Mixins } from 'vue-property-decorator'
|
||||
import DashboardMixin from '@/components/mixins/dashboard'
|
||||
import draggable from 'vuedraggable'
|
||||
import { convertPanelnameToIcon } from '@/plugins/helpers'
|
||||
import { mdiDragVertical, mdiCheckboxBlankOutline, mdiCheckboxMarked, mdiInformation, mdiLock } from '@mdi/js'
|
||||
@Component({
|
||||
components: {
|
||||
draggable,
|
||||
},
|
||||
})
|
||||
export default class SettingsDashboardTabMobile extends Mixins(DashboardMixin) {
|
||||
/**
|
||||
* Icons
|
||||
*/
|
||||
mdiLock = mdiLock
|
||||
mdiInformation = mdiInformation
|
||||
mdiDragVertical = mdiDragVertical
|
||||
mdiCheckboxMarked = mdiCheckboxMarked
|
||||
mdiCheckboxBlankOutline = mdiCheckboxBlankOutline
|
||||
|
||||
convertPanelnameToIcon = convertPanelnameToIcon
|
||||
|
||||
get mobileLayout() {
|
||||
let panels = this.$store.getters['gui/getPanels']('mobileLayout')
|
||||
panels = panels.concat(this.missingPanelsMobile)
|
||||
panels = panels.filter((element: any) => this.allPossiblePanels.includes(element.name))
|
||||
|
||||
return panels
|
||||
}
|
||||
|
||||
set mobileLayout(newVal) {
|
||||
newVal = newVal.filter((element: any) => element !== undefined)
|
||||
|
||||
this.$store.dispatch('gui/saveSetting', { name: 'dashboard.mobileLayout', value: newVal })
|
||||
}
|
||||
|
||||
changeState(name: string, newVal: boolean) {
|
||||
const index = this.mobileLayout.findIndex((element: any) => element.name === name)
|
||||
if (index !== -1) {
|
||||
this.mobileLayout[index].visible = newVal
|
||||
this.$store.dispatch('gui/saveSetting', { name: 'dashboard.mobileLayout', value: this.mobileLayout })
|
||||
}
|
||||
}
|
||||
|
||||
resetLayout() {
|
||||
this.$store.dispatch('gui/resetLayout', 'mobileLayout')
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
||||
<style scoped>
|
||||
.ghost {
|
||||
opacity: 0.5;
|
||||
background: #c8ebfb;
|
||||
}
|
||||
|
||||
.handle {
|
||||
cursor: move;
|
||||
}
|
||||
</style>
|
||||
@@ -1,191 +0,0 @@
|
||||
<template>
|
||||
<v-card flat>
|
||||
<v-card-text>
|
||||
<v-row>
|
||||
<v-col class="col-12 col-md-6">
|
||||
<v-card class="mx-auto" max-width="300" tile>
|
||||
<v-list dense>
|
||||
<v-list-item>
|
||||
<v-row>
|
||||
<v-col class="col-auto pr-0 pl-8">
|
||||
<v-icon>{{ mdiInformation }}</v-icon>
|
||||
</v-col>
|
||||
<v-col class="pr-0 text-truncate">
|
||||
{{ $t('Panels.StatusPanel.Headline') }}
|
||||
</v-col>
|
||||
<v-col class="col-auto pl-0">
|
||||
<v-icon color="grey lighten-1">{{ mdiLock }}</v-icon>
|
||||
</v-col>
|
||||
</v-row>
|
||||
</v-list-item>
|
||||
<draggable
|
||||
v-model="tabletLayout1"
|
||||
handle=".handle"
|
||||
class="v-list-item-group"
|
||||
ghost-class="ghost"
|
||||
group="tabletViewport">
|
||||
<template v-for="element in tabletLayout1">
|
||||
<v-list-item :key="'item-tablet-' + element.name">
|
||||
<v-row class="d-flex align-center">
|
||||
<v-col class="col-auto px-0">
|
||||
<v-icon class="handle pr-2">{{ mdiDragVertical }}</v-icon>
|
||||
<v-icon v-text="convertPanelnameToIcon(element.name)"></v-icon>
|
||||
</v-col>
|
||||
<v-col class="pr-0 text-truncate">
|
||||
{{ getPanelName(element.name) }}
|
||||
</v-col>
|
||||
<v-col class="col-auto pl-2">
|
||||
<v-icon
|
||||
v-if="!element.visible"
|
||||
color="grey lighten-1"
|
||||
@click.stop="changeState1(element.name, true)">
|
||||
{{ mdiCheckboxBlankOutline }}
|
||||
</v-icon>
|
||||
<v-icon
|
||||
v-else
|
||||
color="primary"
|
||||
@click.stop="changeState1(element.name, false)">
|
||||
{{ mdiCheckboxMarked }}
|
||||
</v-icon>
|
||||
</v-col>
|
||||
</v-row>
|
||||
</v-list-item>
|
||||
</template>
|
||||
</draggable>
|
||||
</v-list>
|
||||
</v-card>
|
||||
</v-col>
|
||||
<v-col class="col-12 col-md-6">
|
||||
<v-card class="mx-auto" max-width="300" tile>
|
||||
<v-list dense>
|
||||
<draggable
|
||||
v-model="tabletLayout2"
|
||||
handle=".handle"
|
||||
class="v-list-item-group"
|
||||
ghost-class="ghost"
|
||||
group="tabletViewport">
|
||||
<template v-for="element in tabletLayout2">
|
||||
<v-list-item :key="'item-tablet-' + element.name">
|
||||
<v-row class="d-flex align-center">
|
||||
<v-col class="col-auto px-0">
|
||||
<v-icon class="handle pr-2">{{ mdiDragVertical }}</v-icon>
|
||||
<v-icon v-text="convertPanelnameToIcon(element.name)"></v-icon>
|
||||
</v-col>
|
||||
<v-col class="pr-0 text-truncate">
|
||||
{{ getPanelName(element.name) }}
|
||||
</v-col>
|
||||
<v-col class="col-auto pl-2">
|
||||
<v-icon
|
||||
v-if="!element.visible"
|
||||
color="grey lighten-1"
|
||||
@click.stop="changeState2(element.name, true)">
|
||||
{{ mdiCheckboxBlankOutline }}
|
||||
</v-icon>
|
||||
<v-icon
|
||||
v-else
|
||||
color="primary"
|
||||
@click.stop="changeState2(element.name, false)">
|
||||
{{ mdiCheckboxMarked }}
|
||||
</v-icon>
|
||||
</v-col>
|
||||
</v-row>
|
||||
</v-list-item>
|
||||
</template>
|
||||
</draggable>
|
||||
</v-list>
|
||||
</v-card>
|
||||
</v-col>
|
||||
</v-row>
|
||||
<v-row>
|
||||
<v-col class="text-center">
|
||||
<v-btn color="error" @click="resetLayout">{{ $t('Settings.DashboardTab.ResetLayout') }}</v-btn>
|
||||
</v-col>
|
||||
</v-row>
|
||||
</v-card-text>
|
||||
</v-card>
|
||||
</template>
|
||||
|
||||
<script lang="ts">
|
||||
import Component from 'vue-class-component'
|
||||
import { Mixins } from 'vue-property-decorator'
|
||||
import DashboardMixin from '@/components/mixins/dashboard'
|
||||
import draggable from 'vuedraggable'
|
||||
import { convertPanelnameToIcon } from '@/plugins/helpers'
|
||||
import { mdiLock, mdiInformation, mdiDragVertical, mdiCheckboxMarked, mdiCheckboxBlankOutline } from '@mdi/js'
|
||||
@Component({
|
||||
components: {
|
||||
draggable,
|
||||
},
|
||||
})
|
||||
export default class SettingsDashboardTabTablet extends Mixins(DashboardMixin) {
|
||||
/**
|
||||
* Icons
|
||||
*/
|
||||
mdiLock = mdiLock
|
||||
mdiInformation = mdiInformation
|
||||
mdiDragVertical = mdiDragVertical
|
||||
mdiCheckboxMarked = mdiCheckboxMarked
|
||||
mdiCheckboxBlankOutline = mdiCheckboxBlankOutline
|
||||
|
||||
convertPanelnameToIcon = convertPanelnameToIcon
|
||||
|
||||
get tabletLayout1() {
|
||||
let panels = this.$store.getters['gui/getPanels']('tabletLayout1')
|
||||
panels = panels.concat(this.missingPanelsTablet)
|
||||
panels = panels.filter((element: any) => this.allPossiblePanels.includes(element.name))
|
||||
|
||||
return panels
|
||||
}
|
||||
|
||||
set tabletLayout1(newVal) {
|
||||
newVal = newVal.filter((element: any) => element !== undefined)
|
||||
|
||||
this.$store.dispatch('gui/saveSetting', { name: 'dashboard.tabletLayout1', value: newVal })
|
||||
}
|
||||
|
||||
get tabletLayout2() {
|
||||
let panels = this.$store.getters['gui/getPanels']('tabletLayout2')
|
||||
panels = panels.filter((element: any) => this.allPossiblePanels.includes(element.name))
|
||||
|
||||
return panels
|
||||
}
|
||||
|
||||
set tabletLayout2(newVal) {
|
||||
newVal = newVal.filter((element: any) => element !== undefined)
|
||||
|
||||
this.$store.dispatch('gui/saveSetting', { name: 'dashboard.tabletLayout2', value: newVal })
|
||||
}
|
||||
|
||||
changeState1(name: string, newVal: boolean) {
|
||||
const index = this.tabletLayout1.findIndex((element: any) => element.name === name)
|
||||
if (index !== -1) {
|
||||
this.tabletLayout1[index].visible = newVal
|
||||
this.$store.dispatch('gui/saveSetting', { name: 'dashboard.tabletLayout1', value: this.tabletLayout1 })
|
||||
}
|
||||
}
|
||||
|
||||
changeState2(name: string, newVal: boolean) {
|
||||
const index = this.tabletLayout2.findIndex((element: any) => element.name === name)
|
||||
if (index !== -1) {
|
||||
this.tabletLayout2[index].visible = newVal
|
||||
this.$store.dispatch('gui/saveSetting', { name: 'dashboard.tabletLayout2', value: this.tabletLayout2 })
|
||||
}
|
||||
}
|
||||
|
||||
resetLayout() {
|
||||
this.$store.dispatch('gui/resetLayout', 'tabletLayout1')
|
||||
this.$store.dispatch('gui/resetLayout', 'tabletLayout2')
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
||||
<style scoped>
|
||||
.ghost {
|
||||
opacity: 0.5;
|
||||
background: #c8ebfb;
|
||||
}
|
||||
|
||||
.handle {
|
||||
cursor: move;
|
||||
}
|
||||
</style>
|
||||
@@ -1,262 +0,0 @@
|
||||
<template>
|
||||
<v-card flat>
|
||||
<v-card-text>
|
||||
<v-row>
|
||||
<v-col class="col-12 col-md-4">
|
||||
<v-card class="mx-auto" max-width="300" tile>
|
||||
<v-list dense>
|
||||
<v-list-item>
|
||||
<v-row>
|
||||
<v-col class="col-auto pr-0 pl-8">
|
||||
<v-icon>{{ mdiInformation }}</v-icon>
|
||||
</v-col>
|
||||
<v-col class="pr-0 text-truncate">
|
||||
{{ $t('Panels.StatusPanel.Headline') }}
|
||||
</v-col>
|
||||
<v-col class="col-auto pl-0">
|
||||
<v-icon color="grey lighten-1">{{ mdiLock }}</v-icon>
|
||||
</v-col>
|
||||
</v-row>
|
||||
</v-list-item>
|
||||
<draggable
|
||||
v-model="widescreenLayout1"
|
||||
handle=".handle"
|
||||
class="v-list-item-group"
|
||||
ghost-class="ghost"
|
||||
group="widescreenViewport">
|
||||
<template v-for="element in widescreenLayout1">
|
||||
<v-list-item :key="'item-widescreen-' + element.name">
|
||||
<v-row>
|
||||
<v-col class="col-auto px-0">
|
||||
<v-icon class="handle pr-2">{{ mdiDragVertical }}</v-icon>
|
||||
<v-icon v-text="convertPanelnameToIcon(element.name)"></v-icon>
|
||||
</v-col>
|
||||
<v-col class="pr-0 text-truncate">
|
||||
{{ getPanelName(element.name) }}
|
||||
</v-col>
|
||||
<v-col class="col-auto pl-2">
|
||||
<v-icon
|
||||
v-if="!element.visible"
|
||||
color="grey lighten-1"
|
||||
@click.stop="changeState1(element.name, true)">
|
||||
{{ mdiCheckboxBlankOutline }}
|
||||
</v-icon>
|
||||
<v-icon
|
||||
v-else
|
||||
color="primary"
|
||||
@click.stop="changeState1(element.name, false)">
|
||||
{{ mdiCheckboxMarked }}
|
||||
</v-icon>
|
||||
</v-col>
|
||||
</v-row>
|
||||
</v-list-item>
|
||||
</template>
|
||||
</draggable>
|
||||
</v-list>
|
||||
</v-card>
|
||||
</v-col>
|
||||
<v-col class="col-12 col-md-4">
|
||||
<v-card class="mx-auto" max-width="300" tile>
|
||||
<v-list dense>
|
||||
<draggable
|
||||
v-model="widescreenLayout2"
|
||||
handle=".handle"
|
||||
class="v-list-item-group"
|
||||
ghost-class="ghost"
|
||||
group="widescreenViewport">
|
||||
<template v-for="element in widescreenLayout2">
|
||||
<v-list-item :key="'item-widescreen-' + element.name">
|
||||
<v-row>
|
||||
<v-col class="col-auto px-0">
|
||||
<v-icon class="handle pr-2">{{ mdiDragVertical }}</v-icon>
|
||||
<v-icon v-text="convertPanelnameToIcon(element.name)"></v-icon>
|
||||
</v-col>
|
||||
<v-col class="pr-0 text-truncate">
|
||||
{{ getPanelName(element.name) }}
|
||||
</v-col>
|
||||
<v-col class="col-auto pl-2">
|
||||
<v-icon
|
||||
v-if="!element.visible"
|
||||
color="grey lighten-1"
|
||||
@click.stop="changeState2(element.name, true)">
|
||||
{{ mdiCheckboxBlankOutline }}
|
||||
</v-icon>
|
||||
<v-icon
|
||||
v-else
|
||||
color="primary"
|
||||
@click.stop="changeState2(element.name, false)">
|
||||
{{ mdiCheckboxMarked }}
|
||||
</v-icon>
|
||||
</v-col>
|
||||
</v-row>
|
||||
</v-list-item>
|
||||
</template>
|
||||
</draggable>
|
||||
</v-list>
|
||||
</v-card>
|
||||
</v-col>
|
||||
<v-col class="col-12 col-md-4">
|
||||
<v-card class="mx-auto" max-width="300" tile>
|
||||
<v-list dense>
|
||||
<draggable
|
||||
v-model="widescreenLayout3"
|
||||
handle=".handle"
|
||||
class="v-list-item-group"
|
||||
ghost-class="ghost"
|
||||
group="widescreenViewport">
|
||||
<template v-for="element in widescreenLayout3">
|
||||
<v-list-item :key="'item-widescreen-' + element.name">
|
||||
<v-row class="d-flex align-center">
|
||||
<v-col class="col-auto px-0">
|
||||
<v-icon class="handle pr-2">{{ mdiDragVertical }}</v-icon>
|
||||
<v-icon v-text="convertPanelnameToIcon(element.name)"></v-icon>
|
||||
</v-col>
|
||||
<v-col class="pr-0 text-truncate">
|
||||
{{ getPanelName(element.name) }}
|
||||
</v-col>
|
||||
<v-col class="col-auto pl-2">
|
||||
<v-icon
|
||||
v-if="!element.visible"
|
||||
color="grey lighten-1"
|
||||
@click.stop="changeState3(element.name, true)">
|
||||
{{ mdiCheckboxBlankOutline }}
|
||||
</v-icon>
|
||||
<v-icon
|
||||
v-else
|
||||
color="primary"
|
||||
@click.stop="changeState3(element.name, false)">
|
||||
{{ mdiCheckboxMarked }}
|
||||
</v-icon>
|
||||
</v-col>
|
||||
</v-row>
|
||||
</v-list-item>
|
||||
</template>
|
||||
</draggable>
|
||||
</v-list>
|
||||
</v-card>
|
||||
</v-col>
|
||||
</v-row>
|
||||
<v-row>
|
||||
<v-col class="text-center">
|
||||
<v-btn color="error" @click="resetLayout">{{ $t('Settings.DashboardTab.ResetLayout') }}</v-btn>
|
||||
</v-col>
|
||||
</v-row>
|
||||
</v-card-text>
|
||||
</v-card>
|
||||
</template>
|
||||
|
||||
<script lang="ts">
|
||||
import Component from 'vue-class-component'
|
||||
import { Mixins } from 'vue-property-decorator'
|
||||
import draggable from 'vuedraggable'
|
||||
import { convertPanelnameToIcon } from '@/plugins/helpers'
|
||||
import DashboardMixin from '@/components/mixins/dashboard'
|
||||
import { mdiDragVertical, mdiCheckboxBlankOutline, mdiCheckboxMarked, mdiInformation, mdiLock } from '@mdi/js'
|
||||
@Component({
|
||||
components: {
|
||||
draggable,
|
||||
},
|
||||
})
|
||||
export default class SettingsDashboardTabWidescreen extends Mixins(DashboardMixin) {
|
||||
/**
|
||||
* Icons
|
||||
*/
|
||||
mdiLock = mdiLock
|
||||
mdiInformation = mdiInformation
|
||||
mdiDragVertical = mdiDragVertical
|
||||
mdiCheckboxMarked = mdiCheckboxMarked
|
||||
mdiCheckboxBlankOutline = mdiCheckboxBlankOutline
|
||||
|
||||
convertPanelnameToIcon = convertPanelnameToIcon
|
||||
|
||||
get widescreenLayout1() {
|
||||
let panels = this.$store.getters['gui/getPanels']('widescreenLayout1')
|
||||
panels = panels.concat(this.missingPanelsWidescreen)
|
||||
panels = panels.filter((element: any) => this.allPossiblePanels.includes(element.name))
|
||||
|
||||
return panels
|
||||
}
|
||||
|
||||
set widescreenLayout1(newVal) {
|
||||
newVal = newVal.filter((element: any) => element !== undefined)
|
||||
|
||||
this.$store.dispatch('gui/saveSetting', { name: 'dashboard.widescreenLayout1', value: newVal })
|
||||
}
|
||||
|
||||
get widescreenLayout2() {
|
||||
let panels = this.$store.getters['gui/getPanels']('widescreenLayout2')
|
||||
panels = panels.filter((element: any) => this.allPossiblePanels.includes(element.name))
|
||||
|
||||
return panels
|
||||
}
|
||||
|
||||
set widescreenLayout2(newVal) {
|
||||
newVal = newVal.filter((element: any) => element !== undefined)
|
||||
|
||||
this.$store.dispatch('gui/saveSetting', { name: 'dashboard.widescreenLayout2', value: newVal })
|
||||
}
|
||||
|
||||
get widescreenLayout3() {
|
||||
let panels = this.$store.getters['gui/getPanels']('widescreenLayout3')
|
||||
panels = panels.filter((element: any) => this.allPossiblePanels.includes(element.name))
|
||||
|
||||
return panels
|
||||
}
|
||||
|
||||
set widescreenLayout3(newVal) {
|
||||
newVal = newVal.filter((element: any) => element !== undefined)
|
||||
|
||||
this.$store.dispatch('gui/saveSetting', { name: 'dashboard.widescreenLayout3', value: newVal })
|
||||
}
|
||||
|
||||
changeState1(name: string, newVal: boolean) {
|
||||
const index = this.widescreenLayout1.findIndex((element: any) => element.name === name)
|
||||
if (index !== -1) {
|
||||
this.widescreenLayout1[index].visible = newVal
|
||||
this.$store.dispatch('gui/saveSetting', {
|
||||
name: 'dashboard.widescreenLayout1',
|
||||
value: this.widescreenLayout1,
|
||||
})
|
||||
}
|
||||
}
|
||||
|
||||
changeState2(name: string, newVal: boolean) {
|
||||
const index = this.widescreenLayout2.findIndex((element: any) => element.name === name)
|
||||
if (index !== -1) {
|
||||
this.widescreenLayout2[index].visible = newVal
|
||||
this.$store.dispatch('gui/saveSetting', {
|
||||
name: 'dashboard.widescreenLayout2',
|
||||
value: this.widescreenLayout2,
|
||||
})
|
||||
}
|
||||
}
|
||||
|
||||
changeState3(name: string, newVal: boolean) {
|
||||
const index = this.widescreenLayout3.findIndex((element: any) => element.name === name)
|
||||
if (index !== -1) {
|
||||
this.widescreenLayout3[index].visible = newVal
|
||||
this.$store.dispatch('gui/saveSetting', {
|
||||
name: 'dashboard.widescreenLayout3',
|
||||
value: this.widescreenLayout3,
|
||||
})
|
||||
}
|
||||
}
|
||||
|
||||
resetLayout() {
|
||||
this.$store.dispatch('gui/resetLayout', 'widescreenLayout1')
|
||||
this.$store.dispatch('gui/resetLayout', 'widescreenLayout2')
|
||||
this.$store.dispatch('gui/resetLayout', 'widescreenLayout3')
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
||||
<style scoped>
|
||||
.ghost {
|
||||
opacity: 0.5;
|
||||
background: #c8ebfb;
|
||||
}
|
||||
|
||||
.handle {
|
||||
cursor: move;
|
||||
}
|
||||
</style>
|
||||
@@ -4,57 +4,55 @@
|
||||
<v-card-text>
|
||||
<h3 class="text-h5 mb-3">{{ $t('Settings.TimelapseTab.General') }}</h3>
|
||||
<settings-row
|
||||
:title="$t('Settings.TimelapseTab.Enabled')"
|
||||
:sub-title="$t('Settings.TimelapseTab.EnabledDescription')"
|
||||
:title="$t('Settings.TimelapseTab.Enabled').toString()"
|
||||
:sub-title="$t('Settings.TimelapseTab.EnabledDescription').toString()"
|
||||
:dynamic-slot-width="true">
|
||||
<v-switch
|
||||
v-model="enabled"
|
||||
hide-details
|
||||
class="mt-0"
|
||||
:disabled="blockedsettings.includes('enabled')"></v-switch>
|
||||
:disabled="blockedsettings.includes('enabled')" />
|
||||
</settings-row>
|
||||
<v-divider class="my-2"></v-divider>
|
||||
<v-divider class="my-2" />
|
||||
<settings-row
|
||||
:title="$t('Settings.TimelapseTab.Autorender')"
|
||||
:sub-title="$t('Settings.TimelapseTab.AutorenderDescription')"
|
||||
:title="$t('Settings.TimelapseTab.Autorender').toString()"
|
||||
:sub-title="$t('Settings.TimelapseTab.AutorenderDescription').toString()"
|
||||
:dynamic-slot-width="true">
|
||||
<v-switch
|
||||
v-model="autorender"
|
||||
hide-details
|
||||
class="mt-0"
|
||||
:disabled="blockedsettings.includes('autorender')"></v-switch>
|
||||
:disabled="blockedsettings.includes('autorender')" />
|
||||
</settings-row>
|
||||
<v-divider class="my-2"></v-divider>
|
||||
<v-divider class="my-2" />
|
||||
<settings-row
|
||||
:title="$t('Settings.TimelapseTab.Camera')"
|
||||
:sub-title="$t('Settings.TimelapseTab.CameraDescription')">
|
||||
:title="$t('Settings.TimelapseTab.Camera').toString()"
|
||||
:sub-title="$t('Settings.TimelapseTab.CameraDescription').toString()">
|
||||
<v-select
|
||||
v-model="camera"
|
||||
:items="cameraOptions"
|
||||
hide-details
|
||||
outlined
|
||||
dense
|
||||
:disabled="blockedsettings.includes('camera') || blockedsettings.includes('snapshoturl')"
|
||||
attach></v-select>
|
||||
:disabled="blockedsettings.includes('camera') || blockedsettings.includes('snapshoturl')" />
|
||||
</settings-row>
|
||||
<v-divider class="my-2"></v-divider>
|
||||
<v-divider class="my-2" />
|
||||
<settings-row
|
||||
:title="$t('Settings.TimelapseTab.Mode')"
|
||||
:sub-title="$t('Settings.TimelapseTab.ModeDescription')">
|
||||
:title="$t('Settings.TimelapseTab.Mode').toString()"
|
||||
:sub-title="$t('Settings.TimelapseTab.ModeDescription').toString()">
|
||||
<v-select
|
||||
v-model="mode"
|
||||
:items="modeOptions"
|
||||
hide-details
|
||||
outlined
|
||||
dense
|
||||
:disabled="blockedsettings.includes('modeOptions')"
|
||||
attach></v-select>
|
||||
:disabled="blockedsettings.includes('modeOptions')" />
|
||||
</settings-row>
|
||||
<template v-if="mode === 'hyperlapse'">
|
||||
<v-divider class="my-2"></v-divider>
|
||||
<v-divider class="my-2" />
|
||||
<settings-row
|
||||
:title="$t('Settings.TimelapseTab.HyperlapseCycle')"
|
||||
:sub-title="$t('Settings.TimelapseTab.HyperlapseCycleDescription')">
|
||||
:title="$t('Settings.TimelapseTab.HyperlapseCycle').toString()"
|
||||
:sub-title="$t('Settings.TimelapseTab.HyperlapseCycleDescription').toString()">
|
||||
<v-text-field
|
||||
v-model="hyperlapseCycle"
|
||||
type="number"
|
||||
@@ -63,35 +61,35 @@
|
||||
outlined
|
||||
dense
|
||||
:disabled="blockedsettings.includes('hyperlapseCycle')"
|
||||
hide-spin-buttons></v-text-field>
|
||||
hide-spin-buttons />
|
||||
</settings-row>
|
||||
</template>
|
||||
<v-divider class="my-2"></v-divider>
|
||||
<v-divider class="my-2" />
|
||||
<settings-row
|
||||
:title="$t('Settings.TimelapseTab.PreviewImage')"
|
||||
:sub-title="$t('Settings.TimelapseTab.PreviewImageDescription')"
|
||||
:title="$t('Settings.TimelapseTab.PreviewImage').toString()"
|
||||
:sub-title="$t('Settings.TimelapseTab.PreviewImageDescription').toString()"
|
||||
:dynamic-slot-width="true">
|
||||
<v-switch
|
||||
v-model="previewimage"
|
||||
hide-details
|
||||
class="mt-0"
|
||||
:disabled="blockedsettings.includes('previewimage')"></v-switch>
|
||||
:disabled="blockedsettings.includes('previewimage')" />
|
||||
</settings-row>
|
||||
<v-divider class="my-2"></v-divider>
|
||||
<v-divider class="my-2" />
|
||||
<settings-row
|
||||
:title="$t('Settings.TimelapseTab.SaveFrames')"
|
||||
:sub-title="$t('Settings.TimelapseTab.SaveFramesDescription')"
|
||||
:title="$t('Settings.TimelapseTab.SaveFrames').toString()"
|
||||
:sub-title="$t('Settings.TimelapseTab.SaveFramesDescription').toString()"
|
||||
:dynamic-slot-width="true">
|
||||
<v-switch
|
||||
v-model="saveframes"
|
||||
hide-details
|
||||
class="mt-0"
|
||||
:disabled="blockedsettings.includes('saveframes')"></v-switch>
|
||||
:disabled="blockedsettings.includes('saveframes')" />
|
||||
</settings-row>
|
||||
<v-divider class="my-2"></v-divider>
|
||||
<v-divider class="my-2" />
|
||||
<settings-row
|
||||
:title="$t('Settings.TimelapseTab.StreamDelayCompensation')"
|
||||
:sub-title="$t('Settings.TimelapseTab.StreamDelayCompensationDescription')">
|
||||
:title="$t('Settings.TimelapseTab.StreamDelayCompensation').toString()"
|
||||
:sub-title="$t('Settings.TimelapseTab.StreamDelayCompensationDescription').toString()">
|
||||
<v-text-field
|
||||
v-model="stream_delay_compensation"
|
||||
type="number"
|
||||
@@ -100,50 +98,49 @@
|
||||
hide-details="auto"
|
||||
outlined
|
||||
dense
|
||||
:disabled="blockedsettings.includes('stream_delay_compensation')"></v-text-field>
|
||||
:disabled="blockedsettings.includes('stream_delay_compensation')" />
|
||||
</settings-row>
|
||||
<v-divider class="my-2"></v-divider>
|
||||
<v-divider class="my-2" />
|
||||
<settings-row
|
||||
:title="$t('Settings.TimelapseTab.GcodeVerbose')"
|
||||
:sub-title="$t('Settings.TimelapseTab.GcodeVerboseDescription')"
|
||||
:title="$t('Settings.TimelapseTab.GcodeVerbose').toString()"
|
||||
:sub-title="$t('Settings.TimelapseTab.GcodeVerboseDescription').toString()"
|
||||
:dynamic-slot-width="true">
|
||||
<v-switch
|
||||
v-model="gcode_verbose"
|
||||
hide-details
|
||||
class="mt-0"
|
||||
:disabled="blockedsettings.includes('gcode_verbose')"></v-switch>
|
||||
:disabled="blockedsettings.includes('gcode_verbose')" />
|
||||
</settings-row>
|
||||
<v-divider class="my-2"></v-divider>
|
||||
<v-divider class="my-2" />
|
||||
<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')"
|
||||
:title="$t('Settings.TimelapseTab.Parkhead').toString()"
|
||||
:sub-title="$t('Settings.TimelapseTab.ParkheadDescription').toString()"
|
||||
:dynamic-slot-width="true">
|
||||
<v-switch
|
||||
v-model="parkhead"
|
||||
hide-details
|
||||
class="mt-0"
|
||||
:disabled="blockedsettings.includes('parkhead')"></v-switch>
|
||||
:disabled="blockedsettings.includes('parkhead')" />
|
||||
</settings-row>
|
||||
<template v-if="parkhead">
|
||||
<v-divider class="my-2"></v-divider>
|
||||
<v-divider class="my-2" />
|
||||
<settings-row
|
||||
:title="$t('Settings.TimelapseTab.Parkpos')"
|
||||
:sub-title="$t('Settings.TimelapseTab.ParkposDescription')">
|
||||
:title="$t('Settings.TimelapseTab.Parkpos').toString()"
|
||||
:sub-title="$t('Settings.TimelapseTab.ParkposDescription').toString()">
|
||||
<v-select
|
||||
v-model="parkpos"
|
||||
:items="parkposOptions"
|
||||
hide-details
|
||||
outlined
|
||||
dense
|
||||
:disabled="blockedsettings.includes('parkposOptions')"
|
||||
attach></v-select>
|
||||
:disabled="blockedsettings.includes('parkposOptions')" />
|
||||
</settings-row>
|
||||
<template v-if="parkpos === 'custom'">
|
||||
<v-divider class="my-2"></v-divider>
|
||||
<template v-if="['x_only', 'custom'].includes(parkpos)">
|
||||
<v-divider class="my-2" />
|
||||
<settings-row
|
||||
:title="$t('Settings.TimelapseTab.PosX')"
|
||||
:sub-title="$t('Settings.TimelapseTab.PosXDescription')">
|
||||
:title="$t('Settings.TimelapseTab.PosX').toString()"
|
||||
:sub-title="$t('Settings.TimelapseTab.PosXDescription').toString()">
|
||||
<v-text-field
|
||||
v-model="park_custom_pos_x"
|
||||
type="number"
|
||||
@@ -152,12 +149,14 @@
|
||||
outlined
|
||||
dense
|
||||
:disabled="blockedsettings.includes('park_custom_pos_x')"
|
||||
hide-spin-buttons></v-text-field>
|
||||
hide-spin-buttons />
|
||||
</settings-row>
|
||||
<v-divider class="my-2"></v-divider>
|
||||
</template>
|
||||
<template v-if="['y_only', 'custom'].includes(parkpos)">
|
||||
<v-divider class="my-2" />
|
||||
<settings-row
|
||||
:title="$t('Settings.TimelapseTab.PosY')"
|
||||
:sub-title="$t('Settings.TimelapseTab.PosYDescription')">
|
||||
:title="$t('Settings.TimelapseTab.PosY').toString()"
|
||||
:sub-title="$t('Settings.TimelapseTab.PosYDescription').toString()">
|
||||
<v-text-field
|
||||
v-model="park_custom_pos_y"
|
||||
type="number"
|
||||
@@ -166,12 +165,14 @@
|
||||
outlined
|
||||
dense
|
||||
:disabled="blockedsettings.includes('park_custom_pos_y')"
|
||||
hide-spin-buttons></v-text-field>
|
||||
hide-spin-buttons />
|
||||
</settings-row>
|
||||
<v-divider class="my-2"></v-divider>
|
||||
</template>
|
||||
<template v-if="['x_only', 'y_only', 'custom'].includes(parkpos)">
|
||||
<v-divider class="my-2" />
|
||||
<settings-row
|
||||
:title="$t('Settings.TimelapseTab.PosDZ')"
|
||||
:sub-title="$t('Settings.TimelapseTab.PosDZDescription')">
|
||||
:title="$t('Settings.TimelapseTab.PosDZ').toString()"
|
||||
:sub-title="$t('Settings.TimelapseTab.PosDZDescription').toString()">
|
||||
<v-text-field
|
||||
v-model="park_custom_pos_dz"
|
||||
type="number"
|
||||
@@ -180,13 +181,13 @@
|
||||
outlined
|
||||
dense
|
||||
:disabled="blockedsettings.includes('park_custom_pos_dz')"
|
||||
hide-spin-buttons></v-text-field>
|
||||
hide-spin-buttons />
|
||||
</settings-row>
|
||||
</template>
|
||||
<v-divider class="my-2"></v-divider>
|
||||
<v-divider class="my-2" />
|
||||
<settings-row
|
||||
:title="$t('Settings.TimelapseTab.TravelSpeed')"
|
||||
:sub-title="$t('Settings.TimelapseTab.TravelSpeedDescription')">
|
||||
:title="$t('Settings.TimelapseTab.TravelSpeed').toString()"
|
||||
:sub-title="$t('Settings.TimelapseTab.TravelSpeedDescription').toString()">
|
||||
<v-text-field
|
||||
v-model="park_travel_speed"
|
||||
type="number"
|
||||
@@ -195,24 +196,24 @@
|
||||
outlined
|
||||
dense
|
||||
:disabled="blockedsettings.includes('park_travel_speed')"
|
||||
hide-spin-buttons></v-text-field>
|
||||
hide-spin-buttons />
|
||||
</settings-row>
|
||||
<v-divider class="my-2"></v-divider>
|
||||
<v-divider class="my-2" />
|
||||
<settings-row
|
||||
:title="$t('Settings.TimelapseTab.FwRetract')"
|
||||
:sub-title="$t('Settings.TimelapseTab.FwRetractDescription')"
|
||||
:title="$t('Settings.TimelapseTab.FwRetract').toString()"
|
||||
:sub-title="$t('Settings.TimelapseTab.FwRetractDescription').toString()"
|
||||
:dynamic-slot-width="true">
|
||||
<v-switch
|
||||
v-model="fw_retract"
|
||||
hide-details
|
||||
class="mt-0"
|
||||
:disabled="blockedsettings.includes('fw_retract')"></v-switch>
|
||||
:disabled="blockedsettings.includes('fw_retract')" />
|
||||
</settings-row>
|
||||
<template v-if="!fw_retract">
|
||||
<v-divider class="my-2"></v-divider>
|
||||
<v-divider class="my-2" />
|
||||
<settings-row
|
||||
:title="$t('Settings.TimelapseTab.RetractSpeed')"
|
||||
:sub-title="$t('Settings.TimelapseTab.RetractSpeedDescription')">
|
||||
:title="$t('Settings.TimelapseTab.RetractSpeed').toString()"
|
||||
:sub-title="$t('Settings.TimelapseTab.RetractSpeedDescription').toString()">
|
||||
<v-text-field
|
||||
v-model="park_retract_speed"
|
||||
type="number"
|
||||
@@ -221,12 +222,12 @@
|
||||
outlined
|
||||
dense
|
||||
:disabled="blockedsettings.includes('park_retract_speed')"
|
||||
hide-spin-buttons></v-text-field>
|
||||
hide-spin-buttons />
|
||||
</settings-row>
|
||||
<v-divider class="my-2"></v-divider>
|
||||
<v-divider class="my-2" />
|
||||
<settings-row
|
||||
:title="$t('Settings.TimelapseTab.RetractDistance')"
|
||||
:sub-title="$t('Settings.TimelapseTab.RetractDistanceDescription')">
|
||||
:title="$t('Settings.TimelapseTab.RetractDistance').toString()"
|
||||
:sub-title="$t('Settings.TimelapseTab.RetractDistanceDescription').toString()">
|
||||
<v-text-field
|
||||
v-model="park_retract_distance"
|
||||
type="number"
|
||||
@@ -237,10 +238,10 @@
|
||||
:disabled="blockedsettings.includes('park_retract_distance')"
|
||||
hide-spin-buttons></v-text-field>
|
||||
</settings-row>
|
||||
<v-divider class="my-2"></v-divider>
|
||||
<v-divider class="my-2" />
|
||||
<settings-row
|
||||
:title="$t('Settings.TimelapseTab.UnretractSpeed')"
|
||||
:sub-title="$t('Settings.TimelapseTab.UnretractSpeedDescription')">
|
||||
:title="$t('Settings.TimelapseTab.UnretractSpeed').toString()"
|
||||
:sub-title="$t('Settings.TimelapseTab.UnretractSpeedDescription').toString()">
|
||||
<v-text-field
|
||||
v-model="park_extrude_speed"
|
||||
type="number"
|
||||
@@ -249,12 +250,12 @@
|
||||
outlined
|
||||
dense
|
||||
:disabled="blockedsettings.includes('park_extrude_speed')"
|
||||
hide-spin-buttons></v-text-field>
|
||||
hide-spin-buttons />
|
||||
</settings-row>
|
||||
<v-divider class="my-2"></v-divider>
|
||||
<v-divider class="my-2" />
|
||||
<settings-row
|
||||
:title="$t('Settings.TimelapseTab.UnretractDistance')"
|
||||
:sub-title="$t('Settings.TimelapseTab.UnretractDistanceDescription')">
|
||||
:title="$t('Settings.TimelapseTab.UnretractDistance').toString()"
|
||||
:sub-title="$t('Settings.TimelapseTab.UnretractDistanceDescription').toString()">
|
||||
<v-text-field
|
||||
v-model="park_extrude_distance"
|
||||
type="number"
|
||||
@@ -263,13 +264,13 @@
|
||||
outlined
|
||||
dense
|
||||
:disabled="blockedsettings.includes('park_extrude_distance')"
|
||||
hide-spin-buttons></v-text-field>
|
||||
hide-spin-buttons />
|
||||
</settings-row>
|
||||
</template>
|
||||
<v-divider class="my-2"></v-divider>
|
||||
<v-divider class="my-2" />
|
||||
<settings-row
|
||||
:title="$t('Settings.TimelapseTab.ParkTime')"
|
||||
:sub-title="$t('Settings.TimelapseTab.ParkTimeDescription')">
|
||||
:title="$t('Settings.TimelapseTab.ParkTime').toString()"
|
||||
:sub-title="$t('Settings.TimelapseTab.ParkTimeDescription').toString()">
|
||||
<v-text-field
|
||||
v-model="park_time"
|
||||
type="number"
|
||||
@@ -278,26 +279,26 @@
|
||||
step="0.1"
|
||||
outlined
|
||||
dense
|
||||
:disabled="blockedsettings.includes('park_time')"></v-text-field>
|
||||
:disabled="blockedsettings.includes('park_time')" />
|
||||
</settings-row>
|
||||
</template>
|
||||
<v-divider class="my-2"></v-divider>
|
||||
<v-divider class="my-2" />
|
||||
<h3 class="text-h5 mt-6 mb-3">{{ $t('Settings.TimelapseTab.RenderingOptions') }}</h3>
|
||||
<settings-row
|
||||
:title="$t('Settings.TimelapseTab.VariableFps')"
|
||||
:sub-title="$t('Settings.TimelapseTab.VariableFpsDescription')"
|
||||
:title="$t('Settings.TimelapseTab.VariableFps').toString()"
|
||||
:sub-title="$t('Settings.TimelapseTab.VariableFpsDescription').toString()"
|
||||
:dynamic-slot-width="true">
|
||||
<v-switch
|
||||
v-model="variable_fps"
|
||||
hide-details
|
||||
class="mt-0"
|
||||
:disabled="blockedsettings.includes('variable_fps')"></v-switch>
|
||||
:disabled="blockedsettings.includes('variable_fps')" />
|
||||
</settings-row>
|
||||
<template v-if="variable_fps">
|
||||
<v-divider class="my-2"></v-divider>
|
||||
<v-divider class="my-2" />
|
||||
<settings-row
|
||||
:title="$t('Settings.TimelapseTab.Targetlength')"
|
||||
:sub-title="$t('Settings.TimelapseTab.TargetlengthDescription')">
|
||||
:title="$t('Settings.TimelapseTab.Targetlength').toString()"
|
||||
:sub-title="$t('Settings.TimelapseTab.TargetlengthDescription').toString()">
|
||||
<v-text-field
|
||||
v-model="targetlength"
|
||||
type="number"
|
||||
@@ -308,10 +309,10 @@
|
||||
:disabled="blockedsettings.includes('targetlength')"
|
||||
hide-spin-buttons></v-text-field>
|
||||
</settings-row>
|
||||
<v-divider class="my-2"></v-divider>
|
||||
<v-divider class="my-2" />
|
||||
<settings-row
|
||||
:title="$t('Settings.TimelapseTab.VariableFpsMin')"
|
||||
:sub-title="$t('Settings.TimelapseTab.VariableFpsMinDescription')">
|
||||
:title="$t('Settings.TimelapseTab.VariableFpsMin').toString()"
|
||||
:sub-title="$t('Settings.TimelapseTab.VariableFpsMinDescription').toString()">
|
||||
<v-text-field
|
||||
v-model="variable_fps_min"
|
||||
type="number"
|
||||
@@ -320,12 +321,12 @@
|
||||
outlined
|
||||
dense
|
||||
:disabled="blockedsettings.includes('variable_fps_min')"
|
||||
hide-spin-buttons></v-text-field>
|
||||
hide-spin-buttons />
|
||||
</settings-row>
|
||||
<v-divider class="my-2"></v-divider>
|
||||
<v-divider class="my-2" />
|
||||
<settings-row
|
||||
:title="$t('Settings.TimelapseTab.VariableFpsMax')"
|
||||
:sub-title="$t('Settings.TimelapseTab.VariableFpsMaxDescription')">
|
||||
:title="$t('Settings.TimelapseTab.VariableFpsMax').toString()"
|
||||
:sub-title="$t('Settings.TimelapseTab.VariableFpsMaxDescription').toString()">
|
||||
<v-text-field
|
||||
v-model="variable_fps_max"
|
||||
type="number"
|
||||
@@ -334,14 +335,14 @@
|
||||
outlined
|
||||
dense
|
||||
:disabled="blockedsettings.includes('variable_fps_max')"
|
||||
hide-spin-buttons></v-text-field>
|
||||
hide-spin-buttons />
|
||||
</settings-row>
|
||||
</template>
|
||||
<template v-else>
|
||||
<v-divider class="my-2"></v-divider>
|
||||
<v-divider class="my-2" />
|
||||
<settings-row
|
||||
:title="$t('Settings.TimelapseTab.OutputFramerate')"
|
||||
:sub-title="$t('Settings.TimelapseTab.OutputFramerateDescription')">
|
||||
:title="$t('Settings.TimelapseTab.OutputFramerate').toString()"
|
||||
:sub-title="$t('Settings.TimelapseTab.OutputFramerateDescription').toString()">
|
||||
<v-text-field
|
||||
v-model="output_framerate"
|
||||
type="number"
|
||||
@@ -350,13 +351,13 @@
|
||||
outlined
|
||||
dense
|
||||
:disabled="blockedsettings.includes('output_framerate')"
|
||||
hide-spin-buttons></v-text-field>
|
||||
hide-spin-buttons />
|
||||
</settings-row>
|
||||
</template>
|
||||
<v-divider class="my-2"></v-divider>
|
||||
<v-divider class="my-2" />
|
||||
<settings-row
|
||||
:title="$t('Settings.TimelapseTab.duplicatelastframe')"
|
||||
:sub-title="$t('Settings.TimelapseTab.duplicatelastframeDescription')">
|
||||
:title="$t('Settings.TimelapseTab.duplicatelastframe').toString()"
|
||||
:sub-title="$t('Settings.TimelapseTab.duplicatelastframeDescription').toString()">
|
||||
<v-text-field
|
||||
v-model="duplicatelastframe"
|
||||
type="number"
|
||||
@@ -364,12 +365,12 @@
|
||||
outlined
|
||||
dense
|
||||
:disabled="blockedsettings.includes('duplicatelastframe')"
|
||||
hide-spin-buttons></v-text-field>
|
||||
hide-spin-buttons />
|
||||
</settings-row>
|
||||
<v-divider class="my-2"></v-divider>
|
||||
<v-divider class="my-2" />
|
||||
<settings-row
|
||||
:title="$t('Settings.TimelapseTab.ConstantRateFactor')"
|
||||
:sub-title="$t('Settings.TimelapseTab.ConstantRateFactorDescription')">
|
||||
:title="$t('Settings.TimelapseTab.ConstantRateFactor').toString()"
|
||||
:sub-title="$t('Settings.TimelapseTab.ConstantRateFactorDescription').toString()">
|
||||
<v-text-field
|
||||
v-model="constant_rate_factor"
|
||||
type="number"
|
||||
@@ -377,43 +378,43 @@
|
||||
outlined
|
||||
dense
|
||||
:disabled="blockedsettings.includes('constant_rate_factor')"
|
||||
hide-spin-buttons></v-text-field>
|
||||
hide-spin-buttons />
|
||||
</settings-row>
|
||||
<v-divider class="my-2"></v-divider>
|
||||
<v-divider class="my-2" />
|
||||
<settings-row
|
||||
:title="$t('Settings.TimelapseTab.Pixelformat')"
|
||||
:sub-title="$t('Settings.TimelapseTab.PixelformatDescription')">
|
||||
:title="$t('Settings.TimelapseTab.Pixelformat').toString()"
|
||||
:sub-title="$t('Settings.TimelapseTab.PixelformatDescription').toString()">
|
||||
<v-text-field
|
||||
v-model="pixelformat"
|
||||
type="text"
|
||||
hide-details="auto"
|
||||
outlined
|
||||
dense
|
||||
:disabled="blockedsettings.includes('pixelformat')"></v-text-field>
|
||||
:disabled="blockedsettings.includes('pixelformat')" />
|
||||
</settings-row>
|
||||
<v-divider class="my-2"></v-divider>
|
||||
<v-divider class="my-2" />
|
||||
<settings-row
|
||||
:title="$t('Settings.TimelapseTab.TimeFormatCode')"
|
||||
:sub-title="$t('Settings.TimelapseTab.TimeFormatCodeDescription')">
|
||||
:title="$t('Settings.TimelapseTab.TimeFormatCode').toString()"
|
||||
:sub-title="$t('Settings.TimelapseTab.TimeFormatCodeDescription').toString()">
|
||||
<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')" />
|
||||
</settings-row>
|
||||
<v-divider class="my-2"></v-divider>
|
||||
<v-divider class="my-2" />
|
||||
<settings-row
|
||||
:title="$t('Settings.TimelapseTab.Extraoutputparams')"
|
||||
:sub-title="$t('Settings.TimelapseTab.ExtraoutputparamsDescription')">
|
||||
:title="$t('Settings.TimelapseTab.Extraoutputparams').toString()"
|
||||
:sub-title="$t('Settings.TimelapseTab.ExtraoutputparamsDescription').toString()">
|
||||
<v-text-field
|
||||
v-model="extraoutputparams"
|
||||
type="text"
|
||||
hide-details="auto"
|
||||
outlined
|
||||
dense
|
||||
:disabled="blockedsettings.includes('extraoutputparams')"></v-text-field>
|
||||
:disabled="blockedsettings.includes('extraoutputparams')" />
|
||||
</settings-row>
|
||||
</v-card-text>
|
||||
</v-card>
|
||||
@@ -463,6 +464,14 @@ export default class SettingsTimelapseTab extends Mixins(BaseMixin) {
|
||||
text: 'back_right',
|
||||
value: 'back_right',
|
||||
},
|
||||
{
|
||||
text: 'x_only',
|
||||
value: 'x_only',
|
||||
},
|
||||
{
|
||||
text: 'y_only',
|
||||
value: 'y_only',
|
||||
},
|
||||
{
|
||||
text: 'custom',
|
||||
value: 'custom',
|
||||
|
||||
@@ -54,7 +54,7 @@
|
||||
color="primary"
|
||||
href="https://docs.mainsail.xyz/quicktips/thumbnails"
|
||||
target="_blank">
|
||||
{{ $t('Settings.UiSettingsTab.Guide') }}
|
||||
{{ $t('Settings.UiSettingsTab.Guide').toString() }}
|
||||
</v-btn>
|
||||
</settings-row>
|
||||
<v-divider class="my-2"></v-divider>
|
||||
@@ -130,7 +130,6 @@
|
||||
class="mt-0"
|
||||
hide-details
|
||||
outlined
|
||||
attach
|
||||
dense></v-select>
|
||||
</settings-row>
|
||||
<v-divider class="my-2"></v-divider>
|
||||
@@ -140,6 +139,33 @@
|
||||
:dynamic-slot-width="true">
|
||||
<v-switch v-model="boolHideUploadAndPrintButton" hide-details class="mt-0"></v-switch>
|
||||
</settings-row>
|
||||
<v-divider class="my-2"></v-divider>
|
||||
<settings-row
|
||||
:title="$t('Settings.UiSettingsTab.PowerDeviceName').toString()"
|
||||
:sub-title="$t('Settings.UiSettingsTab.PowerDeviceNameDescription').toString()"
|
||||
:dynamic-slot-width="true">
|
||||
<v-select
|
||||
v-model="powerDeviceName"
|
||||
:items="powerDeviceOptions"
|
||||
class="mt-0"
|
||||
hide-details
|
||||
outlined
|
||||
dense />
|
||||
</settings-row>
|
||||
<v-divider class="my-2"></v-divider>
|
||||
<settings-row
|
||||
:title="$t('Settings.UiSettingsTab.HideSaveConfigButtonForBedMesh').toString()"
|
||||
:sub-title="$t('Settings.UiSettingsTab.HideSaveConfigButtonForBedMeshDescription').toString()"
|
||||
:dynamic-slot-width="true">
|
||||
<v-switch v-model="hideSaveConfigForBedMash" hide-details class="mt-0" />
|
||||
</settings-row>
|
||||
<v-divider class="my-2"></v-divider>
|
||||
<settings-row
|
||||
:title="$t('Settings.UiSettingsTab.DisableFanAnimation').toString()"
|
||||
:sub-title="$t('Settings.UiSettingsTab.DisableFanAnimationDescription').toString()"
|
||||
:dynamic-slot-width="true">
|
||||
<v-switch v-model="disableFanAnimation" hide-details class="mt-0" />
|
||||
</settings-row>
|
||||
</v-card-text>
|
||||
</v-card>
|
||||
</div>
|
||||
@@ -153,6 +179,7 @@ import SettingsRow from '@/components/settings/SettingsRow.vue'
|
||||
import { defaultLogoColor, defaultPrimaryColor } from '@/store/variables'
|
||||
import { Debounce } from 'vue-debounce-decorator'
|
||||
import { mdiRestart, mdiTimerOutline } from '@mdi/js'
|
||||
import { ServerPowerStateDevice } from '@/store/server/power/types'
|
||||
|
||||
@Component({
|
||||
components: { SettingsRow },
|
||||
@@ -271,6 +298,56 @@ export default class SettingsUiSettingsTab extends Mixins(BaseMixin) {
|
||||
this.$store.dispatch('gui/saveSetting', { name: 'uiSettings.boolHideUploadAndPrintButton', value: newVal })
|
||||
}
|
||||
|
||||
get powerDevices() {
|
||||
return this.$store.getters['server/power/getDevices'] ?? []
|
||||
}
|
||||
|
||||
get autoPowerDevice() {
|
||||
const autoIndex = this.powerDevices.findIndex((device: ServerPowerStateDevice) => device.device === 'printer')
|
||||
if (autoIndex === -1) return '--'
|
||||
|
||||
return this.powerDevices[autoIndex].device
|
||||
}
|
||||
|
||||
get powerDeviceName() {
|
||||
return this.$store.state.gui.uiSettings.powerDeviceName ?? null
|
||||
}
|
||||
|
||||
set powerDeviceName(newVal) {
|
||||
this.$store.dispatch('gui/saveSetting', { name: 'uiSettings.powerDeviceName', value: newVal })
|
||||
}
|
||||
|
||||
get powerDeviceOptions() {
|
||||
const items: { text: string; value: string | null }[] = [
|
||||
{ text: `Auto (${this.autoPowerDevice})`, value: null },
|
||||
]
|
||||
|
||||
this.powerDevices.forEach((device: ServerPowerStateDevice) => {
|
||||
items.push({
|
||||
text: `${device.device} (${device.type})`,
|
||||
value: device.device.toString(),
|
||||
})
|
||||
})
|
||||
|
||||
return items
|
||||
}
|
||||
|
||||
get hideSaveConfigForBedMash() {
|
||||
return this.$store.state.gui.uiSettings.hideSaveConfigForBedMash ?? false
|
||||
}
|
||||
|
||||
set hideSaveConfigForBedMash(newVal) {
|
||||
this.$store.dispatch('gui/saveSetting', { name: 'uiSettings.hideSaveConfigForBedMash', value: newVal })
|
||||
}
|
||||
|
||||
get disableFanAnimation() {
|
||||
return this.$store.state.gui.uiSettings.hideSaveConfigForBedMash ?? false
|
||||
}
|
||||
|
||||
set disableFanAnimation(newVal) {
|
||||
this.$store.dispatch('gui/saveSetting', { name: 'uiSettings.disableFanAnimation', value: newVal })
|
||||
}
|
||||
|
||||
clearColorObject(color: any): string {
|
||||
if (typeof color === 'object' && 'hex' in color) color = color.hex
|
||||
if (color.length > 7) color = color.substr(0, 7)
|
||||
|
||||
@@ -176,16 +176,22 @@
|
||||
</v-col>
|
||||
<v-col class="col-12 col-sm-6 text-center" align-self="center">
|
||||
<template v-if="form.service === 'mjpegstreamer'">
|
||||
<webcam-mjpegstreamer :cam-settings="form"></webcam-mjpegstreamer>
|
||||
<webcam-mjpegstreamer :cam-settings="form" />
|
||||
</template>
|
||||
<template v-else-if="form.service === 'mjpegstreamer-adaptive'">
|
||||
<webcam-mjpegstreamer-adaptive :cam-settings="form"></webcam-mjpegstreamer-adaptive>
|
||||
<webcam-mjpegstreamer-adaptive :cam-settings="form" />
|
||||
</template>
|
||||
<template v-else-if="form.service === 'uv4l-mjpeg'">
|
||||
<webcam-uv4l-mjpeg :cam-settings="form"></webcam-uv4l-mjpeg>
|
||||
<webcam-uv4l-mjpeg :cam-settings="form" />
|
||||
</template>
|
||||
<template v-else-if="form.service === 'ipstream'">
|
||||
<webcam-ipstreamer :cam-settings="form"></webcam-ipstreamer>
|
||||
<webcam-ipstreamer :cam-settings="form" />
|
||||
</template>
|
||||
<template v-else-if="form.service === 'hlsstream'">
|
||||
<webcam-hlsstreamer :cam-settings="form" />
|
||||
</template>
|
||||
<template v-else-if="form.service === 'webrtc-camerastreamer'">
|
||||
<webcam-webrtc-camerastreamer :cam-settings="form" />
|
||||
</template>
|
||||
<template v-else>
|
||||
<p class="text-center py-3 font-italic">
|
||||
@@ -220,10 +226,12 @@ import { GuiWebcamStateWebcam } from '@/store/gui/webcams/types'
|
||||
import Mjpegstreamer from '@/components/webcams/Mjpegstreamer.vue'
|
||||
import MjpegstreamerAdaptive from '@/components/webcams/MjpegstreamerAdaptive.vue'
|
||||
import Uv4lMjpeg from '@/components/webcams/Uv4lMjpeg.vue'
|
||||
import WebrtcCameraStreamer from '@/components/webcams/WebrtcCameraStreamer.vue'
|
||||
import Ipstreamer from '@/components/webcams/Ipstreamer.vue'
|
||||
import { mdiMenuDown, mdiDelete, mdiPencil, mdiWebcam } from '@mdi/js'
|
||||
import WebcamMixin from '@/components/mixins/webcam'
|
||||
import { FileStateFile } from '@/store/files/types'
|
||||
import Hlsstreamer from '../webcams/Hlsstreamer.vue'
|
||||
|
||||
interface webcamForm {
|
||||
bool: boolean
|
||||
@@ -247,6 +255,8 @@ interface webcamForm {
|
||||
'webcam-mjpegstreamer-adaptive': MjpegstreamerAdaptive,
|
||||
'webcam-uv4l-mjpeg': Uv4lMjpeg,
|
||||
'webcam-ipstreamer': Ipstreamer,
|
||||
'webcam-webrtc-camerastreamer': WebrtcCameraStreamer,
|
||||
'webcam-hlsstreamer': Hlsstreamer,
|
||||
},
|
||||
})
|
||||
export default class SettingsWebcamsTab extends Mixins(BaseMixin, WebcamMixin) {
|
||||
@@ -310,20 +320,11 @@ export default class SettingsWebcamsTab extends Mixins(BaseMixin, WebcamMixin) {
|
||||
{ value: 'mjpegstreamer-adaptive', text: this.$t('Settings.WebcamsTab.MjpegstreamerAdaptive') },
|
||||
{ value: 'uv4l-mjpeg', text: this.$t('Settings.WebcamsTab.Uv4lMjpeg') },
|
||||
{ value: 'ipstream', text: this.$t('Settings.WebcamsTab.Ipstream') },
|
||||
{ value: 'webrtc-camerastreamer', text: this.$t('Settings.WebcamsTab.WebrtcCameraStreamer') },
|
||||
{ value: 'hlsstream', text: this.$t('Settings.WebcamsTab.Hlsstream') },
|
||||
]
|
||||
}
|
||||
|
||||
get webcamStyle() {
|
||||
let transforms = ''
|
||||
if (this.form.flipX) transforms += ' scaleX(-1)'
|
||||
if (this.form.flipY) transforms += ' scaleY(-1)'
|
||||
if (transforms.trimLeft().length) {
|
||||
return { transform: transforms.trimLeft() }
|
||||
}
|
||||
|
||||
return ''
|
||||
}
|
||||
|
||||
get configfiles() {
|
||||
return this.$store.getters['files/getDirectory']('config')?.childrens ?? []
|
||||
}
|
||||
|
||||
@@ -0,0 +1,115 @@
|
||||
<template>
|
||||
<div class="d-flex justify-center">
|
||||
<video
|
||||
ref="video"
|
||||
v-observe-visibility="visibilityChanged"
|
||||
autoplay
|
||||
muted
|
||||
:style="webcamStyle"
|
||||
class="webcamImage" />
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<script lang="ts">
|
||||
import { Component, Mixins, Prop } from 'vue-property-decorator'
|
||||
import BaseMixin from '@/components/mixins/base'
|
||||
import Hls from 'hls.js'
|
||||
|
||||
@Component
|
||||
export default class Hlsstreamer extends Mixins(BaseMixin) {
|
||||
private aspectRatio: null | number = null
|
||||
private isVisible = true
|
||||
private hls: Hls | null = null
|
||||
|
||||
@Prop({ required: true })
|
||||
camSettings: any
|
||||
|
||||
@Prop()
|
||||
printerUrl: string | undefined
|
||||
|
||||
declare $refs: {
|
||||
video: HTMLVideoElement
|
||||
}
|
||||
|
||||
get url() {
|
||||
if (!this.isVisible) return ''
|
||||
|
||||
return this.camSettings.urlStream || ''
|
||||
}
|
||||
|
||||
get webcamStyle() {
|
||||
const output = {
|
||||
transform: 'none',
|
||||
aspectRatio: 16 / 9,
|
||||
maxHeight: window.innerHeight - 155 + 'px',
|
||||
maxWidth: 'auto',
|
||||
}
|
||||
|
||||
let transforms = ''
|
||||
if ('flipX' in this.camSettings && this.camSettings.flipX) transforms += ' scaleX(-1)'
|
||||
if ('flipX' in this.camSettings && this.camSettings.flipY) transforms += ' scaleY(-1)'
|
||||
if (transforms.trimStart().length) return { transform: transforms.trimStart() }
|
||||
|
||||
if (this.aspectRatio) {
|
||||
output.aspectRatio = this.aspectRatio
|
||||
output.maxWidth = (window.innerHeight - 155) * this.aspectRatio + 'px'
|
||||
}
|
||||
|
||||
return output
|
||||
}
|
||||
|
||||
visibilityChanged(isVisible: boolean) {
|
||||
this.isVisible = isVisible
|
||||
}
|
||||
|
||||
mounted() {
|
||||
this.play()
|
||||
|
||||
const video = this.$refs.video
|
||||
video.onplaying = () => {
|
||||
this.aspectRatio = video.videoWidth / video.videoHeight
|
||||
}
|
||||
}
|
||||
|
||||
updated() {
|
||||
this.play()
|
||||
}
|
||||
|
||||
play() {
|
||||
const video = this.$refs.video
|
||||
|
||||
if (Hls.isSupported()) {
|
||||
this.hls?.destroy()
|
||||
|
||||
this.hls = new Hls({
|
||||
enableWorker: true,
|
||||
lowLatencyMode: true,
|
||||
maxLiveSyncPlaybackRate: 2,
|
||||
liveSyncDuration: 0.5,
|
||||
liveMaxLatencyDuration: 2,
|
||||
backBufferLength: 5,
|
||||
})
|
||||
this.hls.loadSource(this.url)
|
||||
this.hls.attachMedia(video)
|
||||
this.hls.on(Hls.Events.MANIFEST_PARSED, () => {
|
||||
video.play()
|
||||
})
|
||||
} else if (video.canPlayType('application/vnd.apple.mpegurl')) {
|
||||
fetch(this.url).then(() => {
|
||||
video.src = this.url
|
||||
video.play()
|
||||
})
|
||||
}
|
||||
}
|
||||
|
||||
beforeUnmount() {
|
||||
this.hls?.destroy()
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
||||
<style scoped>
|
||||
.webcamImage {
|
||||
width: 100%;
|
||||
}
|
||||
</style>
|
||||
@@ -1,22 +1,5 @@
|
||||
<style scoped>
|
||||
.webcamImage {
|
||||
width: 100%;
|
||||
background: lightgray;
|
||||
}
|
||||
|
||||
.webcamFpsOutput {
|
||||
display: inline-block;
|
||||
position: absolute;
|
||||
bottom: 6px;
|
||||
right: 0;
|
||||
background: rgba(0, 0, 0, 0.8);
|
||||
padding: 3px 10px;
|
||||
border-top-left-radius: 5px;
|
||||
}
|
||||
</style>
|
||||
|
||||
<template>
|
||||
<div style="position: relative">
|
||||
<div style="position: relative" class="d-flex justify-center">
|
||||
<img
|
||||
ref="image"
|
||||
v-observe-visibility="viewportVisibilityChanged"
|
||||
@@ -40,8 +23,10 @@ export default class Mjpegstreamer extends Mixins(BaseMixin) {
|
||||
private currentFPS = 0
|
||||
private streamState = false
|
||||
private aspectRatio: null | number = null
|
||||
private timerFPS: number | null = null
|
||||
private timerRestart: number | null = null
|
||||
// eslint-disable-next-line no-undef
|
||||
private timerFPS: NodeJS.Timeout | null = null
|
||||
// eslint-disable-next-line no-undef
|
||||
private timerRestart: NodeJS.Timeout | null = null
|
||||
private stream: ReadableStream | null = null
|
||||
private controller: AbortController | null = null
|
||||
private isVisibleViewport = false
|
||||
@@ -63,8 +48,6 @@ export default class Mjpegstreamer extends Mixins(BaseMixin) {
|
||||
get url() {
|
||||
const baseUrl = this.camSettings.urlStream
|
||||
let url = new URL(baseUrl, this.printerUrl === undefined ? this.hostUrl.toString() : this.printerUrl)
|
||||
url.port = this.hostPort.toString()
|
||||
|
||||
if (baseUrl.startsWith('http') || baseUrl.startsWith('://')) url = new URL(baseUrl)
|
||||
|
||||
return decodeURIComponent(url.toString())
|
||||
@@ -74,6 +57,8 @@ export default class Mjpegstreamer extends Mixins(BaseMixin) {
|
||||
const output = {
|
||||
transform: 'none',
|
||||
aspectRatio: 16 / 9,
|
||||
maxHeight: window.innerHeight - 155 + 'px',
|
||||
maxWidth: 'auto',
|
||||
}
|
||||
|
||||
let transforms = ''
|
||||
@@ -81,7 +66,10 @@ export default class Mjpegstreamer extends Mixins(BaseMixin) {
|
||||
if ('flipX' in this.camSettings && this.camSettings.flipY) transforms += ' scaleY(-1)'
|
||||
if (transforms.trimStart().length) output.transform = transforms.trimStart()
|
||||
|
||||
if (this.aspectRatio) output.aspectRatio = this.aspectRatio
|
||||
if (this.aspectRatio) {
|
||||
output.aspectRatio = this.aspectRatio
|
||||
output.maxWidth = (window.innerHeight - 155) * this.aspectRatio + 'px'
|
||||
}
|
||||
|
||||
return output
|
||||
}
|
||||
@@ -254,3 +242,20 @@ export default class Mjpegstreamer extends Mixins(BaseMixin) {
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
||||
<style scoped>
|
||||
.webcamImage {
|
||||
width: 100%;
|
||||
background: lightgray;
|
||||
}
|
||||
|
||||
.webcamFpsOutput {
|
||||
display: inline-block;
|
||||
position: absolute;
|
||||
bottom: 0;
|
||||
right: 0;
|
||||
background: rgba(0, 0, 0, 0.8);
|
||||
padding: 3px 10px;
|
||||
border-top-left-radius: 5px;
|
||||
}
|
||||
</style>
|
||||
@@ -1,21 +1,5 @@
|
||||
<style scoped>
|
||||
.webcamImage {
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
.webcamFpsOutput {
|
||||
display: inline-block;
|
||||
position: absolute;
|
||||
bottom: 6px;
|
||||
right: 0;
|
||||
background: rgba(0, 0, 0, 0.8);
|
||||
padding: 3px 10px;
|
||||
border-top-left-radius: 5px;
|
||||
}
|
||||
</style>
|
||||
|
||||
<template>
|
||||
<div style="position: relative">
|
||||
<div style="position: relative" class="d-flex justify-center">
|
||||
<div v-if="!isLoaded" class="text-center py-5">
|
||||
<v-progress-circular indeterminate color="primary"></v-progress-circular>
|
||||
</div>
|
||||
@@ -44,7 +28,8 @@ export default class MjpegstreamerAdaptive extends Mixins(BaseMixin) {
|
||||
private isVisibleDocument = true
|
||||
private isVisibleViewport = false
|
||||
private isLoaded = true
|
||||
private timer: number | undefined = undefined
|
||||
// eslint-disable-next-line no-undef
|
||||
private timer: NodeJS.Timeout | undefined = undefined
|
||||
|
||||
private request_start_time = performance.now()
|
||||
private start_time = performance.now()
|
||||
@@ -67,6 +52,8 @@ export default class MjpegstreamerAdaptive extends Mixins(BaseMixin) {
|
||||
const output = {
|
||||
transform: 'none',
|
||||
aspectRatio: 16 / 9,
|
||||
maxHeight: window.innerHeight - 155 + 'px',
|
||||
maxWidth: 'auto',
|
||||
}
|
||||
|
||||
let transforms = ''
|
||||
@@ -75,7 +62,10 @@ export default class MjpegstreamerAdaptive extends Mixins(BaseMixin) {
|
||||
if ((this.camSettings.rotate ?? 0) === 180) transforms += ' rotate(180deg)'
|
||||
if (transforms.trimStart().length) output.transform = transforms.trimStart()
|
||||
|
||||
if (this.aspectRatio) output.aspectRatio = this.aspectRatio
|
||||
if (this.aspectRatio) {
|
||||
output.aspectRatio = this.aspectRatio
|
||||
output.maxWidth = (window.innerHeight - 155) * this.aspectRatio + 'px'
|
||||
}
|
||||
|
||||
return output
|
||||
}
|
||||
@@ -99,8 +89,6 @@ export default class MjpegstreamerAdaptive extends Mixins(BaseMixin) {
|
||||
const baseUrl = this.camSettings.urlSnapshot
|
||||
|
||||
let url = new URL(baseUrl, this.printerUrl === undefined ? this.hostUrl.toString() : this.printerUrl)
|
||||
url.port = this.hostPort.toString()
|
||||
|
||||
if (baseUrl.startsWith('http') || baseUrl.startsWith('://')) url = new URL(baseUrl)
|
||||
|
||||
url.searchParams.append('bypassCache', this.refresh.toString())
|
||||
@@ -116,10 +104,10 @@ export default class MjpegstreamerAdaptive extends Mixins(BaseMixin) {
|
||||
canvas.width = canvas.clientWidth
|
||||
if (this.rotate) {
|
||||
if (this.aspectRatio === null) this.aspectRatio = frame.height / frame.width
|
||||
canvas.height = canvas.clientWidth / (frame.height / frame.width)
|
||||
canvas.height = canvas.clientWidth / this.aspectRatio
|
||||
} else {
|
||||
if (this.aspectRatio === null) this.aspectRatio = frame.width / frame.height
|
||||
canvas.height = canvas.clientWidth * (frame.width / frame.height)
|
||||
canvas.height = canvas.clientWidth * this.aspectRatio
|
||||
}
|
||||
|
||||
if (this.rotate) {
|
||||
@@ -225,3 +213,19 @@ export default class MjpegstreamerAdaptive extends Mixins(BaseMixin) {
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
||||
<style scoped>
|
||||
.webcamImage {
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
.webcamFpsOutput {
|
||||
display: inline-block;
|
||||
position: absolute;
|
||||
bottom: 0;
|
||||
right: 0;
|
||||
background: rgba(0, 0, 0, 0.8);
|
||||
padding: 3px 10px;
|
||||
border-top-left-radius: 5px;
|
||||
}
|
||||
</style>
|
||||
@@ -1,17 +1,12 @@
|
||||
<style scoped>
|
||||
.webcamImage {
|
||||
width: 100%;
|
||||
background: lightgray;
|
||||
}
|
||||
</style>
|
||||
|
||||
<template>
|
||||
<img
|
||||
ref="webcamUv4lMjpegImage"
|
||||
v-observe-visibility="viewportVisibilityChanged"
|
||||
:style="webcamStyle"
|
||||
class="webcamImage"
|
||||
@load="onload" />
|
||||
<div class="d-flex justify-center">
|
||||
<img
|
||||
ref="webcamUv4lMjpegImage"
|
||||
v-observe-visibility="viewportVisibilityChanged"
|
||||
:style="webcamStyle"
|
||||
class="webcamImage"
|
||||
@load="onload" />
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<script lang="ts">
|
||||
@@ -27,7 +22,7 @@ export default class Uv4lMjpeg extends Mixins(BaseMixin) {
|
||||
private isVisibleDocument = true
|
||||
|
||||
@Prop({ required: true }) declare readonly camSettings: GuiWebcamStateWebcam
|
||||
@Prop({ default: null }) declare readonly printerUrl: string | null
|
||||
@Prop() declare printerUrl: string | undefined
|
||||
|
||||
declare $refs: {
|
||||
webcamUv4lMjpegImage: HTMLImageElement
|
||||
@@ -36,8 +31,6 @@ export default class Uv4lMjpeg extends Mixins(BaseMixin) {
|
||||
get url() {
|
||||
const baseUrl = this.camSettings.urlStream
|
||||
let url = new URL(baseUrl, this.printerUrl === undefined ? this.hostUrl.toString() : this.printerUrl)
|
||||
url.port = this.hostPort.toString()
|
||||
|
||||
if (baseUrl.startsWith('http') || baseUrl.startsWith('://')) url = new URL(baseUrl)
|
||||
|
||||
return decodeURIComponent(url.toString())
|
||||
@@ -47,6 +40,8 @@ export default class Uv4lMjpeg extends Mixins(BaseMixin) {
|
||||
const output = {
|
||||
transform: 'none',
|
||||
aspectRatio: 16 / 9,
|
||||
maxHeight: window.innerHeight - 155 + 'px',
|
||||
maxWidth: 'auto',
|
||||
}
|
||||
|
||||
let transforms = ''
|
||||
@@ -54,7 +49,10 @@ export default class Uv4lMjpeg extends Mixins(BaseMixin) {
|
||||
if ('flipX' in this.camSettings && this.camSettings.flipY) transforms += ' scaleY(-1)'
|
||||
if (transforms.trimStart().length) output.transform = transforms.trimStart()
|
||||
|
||||
if (this.aspectRatio) output.aspectRatio = this.aspectRatio
|
||||
if (this.aspectRatio) {
|
||||
output.aspectRatio = this.aspectRatio
|
||||
output.maxWidth = (window.innerHeight - 155) * this.aspectRatio + 'px'
|
||||
}
|
||||
|
||||
return output
|
||||
}
|
||||
@@ -118,3 +116,10 @@ export default class Uv4lMjpeg extends Mixins(BaseMixin) {
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
||||
<style scoped>
|
||||
.webcamImage {
|
||||
width: 100%;
|
||||
background: lightgray;
|
||||
}
|
||||
</style>
|
||||
@@ -5,16 +5,22 @@
|
||||
<v-row dense>
|
||||
<v-col v-for="webcam in webcams" :key="webcam.id" cols="6">
|
||||
<template v-if="webcam.service === 'mjpegstreamer'">
|
||||
<webcam-mjpegstreamer :cam-settings="webcam"></webcam-mjpegstreamer>
|
||||
<webcam-mjpegstreamer :cam-settings="webcam" />
|
||||
</template>
|
||||
<template v-else-if="webcam.service === 'mjpegstreamer-adaptive'">
|
||||
<webcam-mjpegstreamer-adaptive :cam-settings="webcam"></webcam-mjpegstreamer-adaptive>
|
||||
<webcam-mjpegstreamer-adaptive :cam-settings="webcam" />
|
||||
</template>
|
||||
<template v-else-if="webcam.service === 'uv4l-mjpeg'">
|
||||
<webcam-uv4l-mjpeg :cam-settings="webcam"></webcam-uv4l-mjpeg>
|
||||
<webcam-uv4l-mjpeg :cam-settings="webcam" />
|
||||
</template>
|
||||
<template v-else-if="webcam.service === 'ipstream'">
|
||||
<webcam-ipstreamer :cam-settings="webcam"></webcam-ipstreamer>
|
||||
<webcam-ipstreamer :cam-settings="webcam" />
|
||||
</template>
|
||||
<template v-else-if="webcam.service === 'hlsstream'">
|
||||
<webcam-hlsstreamer :cam-settings="webcam" />
|
||||
</template>
|
||||
<template v-else-if="webcam.service === 'webrtc-camerastreamer'">
|
||||
<webcam-webrtc-camerastreamer :cam-settings="webcam" />
|
||||
</template>
|
||||
<template v-else>
|
||||
<p class="text-center py-3 font-italic">{{ $t('Panels.WebcamPanel.UnknownWebcamService') }}</p>
|
||||
@@ -31,6 +37,8 @@ import Mjpegstreamer from '@/components/webcams/Mjpegstreamer.vue'
|
||||
import MjpegstreamerAdaptive from '@/components/webcams/MjpegstreamerAdaptive.vue'
|
||||
import Uv4lMjpeg from '@/components/webcams/Uv4lMjpeg.vue'
|
||||
import Ipstreamer from '@/components/webcams/Ipstreamer.vue'
|
||||
import Hlsstreamer from '@/components/webcams/Hlsstreamer.vue'
|
||||
import WebrtcCameraStreamer from '@/components/webcams/WebrtcCameraStreamer.vue'
|
||||
import { GuiWebcamStateWebcam } from '@/store/gui/webcams/types'
|
||||
|
||||
@Component({
|
||||
@@ -39,6 +47,8 @@ import { GuiWebcamStateWebcam } from '@/store/gui/webcams/types'
|
||||
'webcam-mjpegstreamer-adaptive': MjpegstreamerAdaptive,
|
||||
'webcam-uv4l-mjpeg': Uv4lMjpeg,
|
||||
'webcam-ipstreamer': Ipstreamer,
|
||||
'webcam-hlsstreamer': Hlsstreamer,
|
||||
'webcam-webrtc-camerastreamer': WebrtcCameraStreamer,
|
||||
},
|
||||
})
|
||||
export default class WebcamGrid extends Mixins(BaseMixin) {
|
||||
|
||||
@@ -0,0 +1,187 @@
|
||||
<template>
|
||||
<div>
|
||||
<video
|
||||
v-show="status === 'connected'"
|
||||
ref="stream"
|
||||
class="webcamStream"
|
||||
:style="webcamStyle"
|
||||
autoplay
|
||||
muted
|
||||
playsinline />
|
||||
<v-row v-if="status !== 'connected'">
|
||||
<v-col class="_webcam_webrtc_output text-center d-flex flex-column justify-center align-center">
|
||||
<v-progress-circular v-if="status === 'connecting'" indeterminate color="primary" class="mb-3" />
|
||||
<span class="mt-3">{{ status }}</span>
|
||||
</v-col>
|
||||
</v-row>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<script lang="ts">
|
||||
import { Component, Mixins, Prop, Ref, Watch } from 'vue-property-decorator'
|
||||
import BaseMixin from '@/components/mixins/base'
|
||||
|
||||
@Component
|
||||
export default class WebrtcCameraStreamer extends Mixins(BaseMixin) {
|
||||
private pc: RTCPeerConnection | null = null
|
||||
private useStun = false
|
||||
private remote_pc_id: string | null = null
|
||||
private aspectRatio: null | number = null
|
||||
private status: string = 'connecting'
|
||||
|
||||
@Prop({ required: true })
|
||||
camSettings: any
|
||||
|
||||
@Prop({ default: null }) declare readonly printerUrl: string | null
|
||||
|
||||
@Ref() declare stream: HTMLVideoElement
|
||||
|
||||
get url() {
|
||||
const baseUrl = this.camSettings.urlStream
|
||||
let url = new URL(baseUrl, this.printerUrl === null ? this.hostUrl.toString() : this.printerUrl)
|
||||
url.port = this.hostPort.toString()
|
||||
|
||||
if (baseUrl.startsWith('http') || baseUrl.startsWith('://')) url = new URL(baseUrl)
|
||||
|
||||
return decodeURIComponent(url.toString())
|
||||
}
|
||||
|
||||
get webcamStyle() {
|
||||
const output = {
|
||||
transform: 'none',
|
||||
aspectRatio: 16 / 9,
|
||||
}
|
||||
|
||||
let transforms = ''
|
||||
if ('flipX' in this.camSettings && this.camSettings.flipX) transforms += ' scaleX(-1)'
|
||||
if ('flipX' in this.camSettings && this.camSettings.flipY) transforms += ' scaleY(-1)'
|
||||
if (transforms.trimStart().length) output.transform = transforms.trimStart()
|
||||
|
||||
if (this.aspectRatio) output.aspectRatio = this.aspectRatio
|
||||
|
||||
return output
|
||||
}
|
||||
|
||||
get streamConfig() {
|
||||
let config: any = {
|
||||
sdpSemantics: 'unified-plan',
|
||||
}
|
||||
|
||||
if (this.useStun) {
|
||||
config.iceServers = [{ urls: ['stun:stun.l.google.com:19302'] }]
|
||||
}
|
||||
|
||||
return config
|
||||
}
|
||||
|
||||
startStream() {
|
||||
const isFirefox = navigator.userAgent.toLowerCase().indexOf('firefox') > -1
|
||||
|
||||
this.pc = new RTCPeerConnection(this.streamConfig)
|
||||
this.pc.addTransceiver('video', { direction: 'recvonly' })
|
||||
|
||||
this.pc.addEventListener(
|
||||
'track',
|
||||
(evt) => {
|
||||
if (evt.track.kind == 'video' && this.$refs.stream) {
|
||||
// @ts-ignore
|
||||
this.$refs.stream.srcObject = evt.streams[0]
|
||||
}
|
||||
},
|
||||
false
|
||||
)
|
||||
|
||||
this.pc.addEventListener('connectionstatechange', () => {
|
||||
this.status = (this.pc?.connectionState ?? '').toString()
|
||||
|
||||
if (['failed', 'disconnected'].includes(this.status)) {
|
||||
setTimeout(async () => {
|
||||
await this.pc?.close()
|
||||
this.startStream()
|
||||
}, 500)
|
||||
}
|
||||
})
|
||||
|
||||
fetch(this.url, {
|
||||
body: JSON.stringify({
|
||||
type: 'request',
|
||||
//res: params.res
|
||||
}),
|
||||
headers: {
|
||||
'Content-Type': 'application/json',
|
||||
},
|
||||
method: 'POST',
|
||||
})
|
||||
.then((response) => response.json())
|
||||
.then((answer) => {
|
||||
this.remote_pc_id = answer.id
|
||||
return this.pc?.setRemoteDescription(answer)
|
||||
})
|
||||
.then(() => this.pc?.createAnswer())
|
||||
.then((answer) => this.pc?.setLocalDescription(answer))
|
||||
.then(() => {
|
||||
// wait for ICE gathering to complete
|
||||
return new Promise((resolve) => {
|
||||
const checkState = () => {
|
||||
if (this.pc?.iceGatheringState === 'complete') {
|
||||
this.pc?.removeEventListener('icegatheringstatechange', checkState)
|
||||
resolve(true)
|
||||
}
|
||||
}
|
||||
|
||||
if (this.pc?.iceGatheringState === 'complete') resolve(true)
|
||||
else this.pc?.addEventListener('icegatheringstatechange', checkState)
|
||||
})
|
||||
})
|
||||
.then(() => {
|
||||
const offer = this.pc?.localDescription
|
||||
return fetch(this.url, {
|
||||
body: JSON.stringify({
|
||||
type: offer?.type,
|
||||
id: this.remote_pc_id,
|
||||
sdp: offer?.sdp,
|
||||
}),
|
||||
headers: {
|
||||
'Content-Type': 'application/json',
|
||||
},
|
||||
method: 'POST',
|
||||
})
|
||||
})
|
||||
.then((response: any) => {
|
||||
if (isFirefox) this.status = 'connected'
|
||||
return response.json()
|
||||
})
|
||||
.catch(function (e) {
|
||||
window.console.error(e)
|
||||
})
|
||||
}
|
||||
|
||||
mounted() {
|
||||
this.startStream()
|
||||
}
|
||||
|
||||
beforeDestroy() {
|
||||
this.pc?.close()
|
||||
}
|
||||
|
||||
@Watch('url')
|
||||
async changedUrl() {
|
||||
await this.pc?.close()
|
||||
this.startStream()
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
||||
<style scoped>
|
||||
.webcamStream {
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
._webcam_webrtc_output {
|
||||
aspect-ratio: calc(3 / 2);
|
||||
}
|
||||
|
||||
video {
|
||||
width: 100%;
|
||||
}
|
||||
</style>
|
||||
+112
-9
@@ -107,6 +107,17 @@
|
||||
"UpdatingDone": "Opdatering af {software} udført!"
|
||||
}
|
||||
},
|
||||
"BedScrews": {
|
||||
"Abort": "Afbryd",
|
||||
"Accept": "Acceptér",
|
||||
"Adjusted": "Justeret",
|
||||
"Description": "Klik på <b>Justeret</b> hvis skruen blev justeret. Klik på <b>Acceptér</b> for at fortsætte uden justering.",
|
||||
"Headline": "Bed skruer",
|
||||
"ScrewAccepted": "Skrue accepteret",
|
||||
"ScrewIndex": "Skrue Index",
|
||||
"ScrewName": "Skrue Navn",
|
||||
"ScrewOutput": "{current} af {max}"
|
||||
},
|
||||
"ConnectionDialog": {
|
||||
"CannotConnectTo": "Kan ikke forbinde med Moonraker ({host}).",
|
||||
"CheckMoonrakerLog": "Hvis denne besked vises flere gange, kig da i logfilen her:",
|
||||
@@ -153,11 +164,13 @@
|
||||
"Yes": "Ja"
|
||||
},
|
||||
"Files": {
|
||||
"AddBatchToQueue": "tilføj batch til kø",
|
||||
"AddToQueue": "Tilføj til kø",
|
||||
"AllFiles": "Alle",
|
||||
"BedTemp": "Bed temperatur",
|
||||
"Cancel": "Annuller",
|
||||
"ChamberTemp": "Indelukke temperatur",
|
||||
"Count": "Tæl",
|
||||
"Create": "Opret",
|
||||
"CreateNewDirectory": "Ny mappe",
|
||||
"CurrentPath": "Du er her",
|
||||
@@ -178,8 +191,11 @@
|
||||
"Filesize": "Filstørrelse",
|
||||
"Free": "Ledig",
|
||||
"FreeDisk": "Ledig plads",
|
||||
"GCodeFiles": "G-Code Filer",
|
||||
"GCodeFiles": "G-Kode Filer",
|
||||
"GcodesRootDirectoryDoesntExists": "Ingen mappe med g-koder fundet. Tjek at opsætning af \"path\" under [virtual_sdcard] sektionen i printer.cfg er korrekt.",
|
||||
"HiddenFiles": "Skjulte filer",
|
||||
"InvalidNameAlreadyExists": "Navnet eksisterer allerede, vælg venligst et andet navn.",
|
||||
"InvalidNameEmpty": "Feltet må ikke være tomt!",
|
||||
"LastEndTime": "Sidste slut tid",
|
||||
"LastFilamentUsed": "Sidste filament forbrug",
|
||||
"LastModified": "Sidst ændret",
|
||||
@@ -239,7 +255,9 @@
|
||||
"Tracking": "Sporing",
|
||||
"Transparency": "Transparens",
|
||||
"Ultra": "Ultra",
|
||||
"VoxelMode": "Voxel Mode (ASMBL)"
|
||||
"VoxelMode": "Voxel Mode (ASMBL)",
|
||||
"ShowGCode": "Vis G-kode",
|
||||
"CNCMode": "CNC Mode"
|
||||
},
|
||||
"Heightmap": {
|
||||
"Abort": "Afbryd",
|
||||
@@ -252,8 +270,8 @@
|
||||
"Max": "Maks",
|
||||
"Min": "Min",
|
||||
"Name": "Navn",
|
||||
"Size": "Størrelse",
|
||||
"Variance": "Variation"
|
||||
"Range": "Variation",
|
||||
"Size": "Størrelse"
|
||||
},
|
||||
"DeleteBedMeshProfile": "Slet Bed Mesh profil",
|
||||
"DoYouReallyWantToDelete": "Vil du slette \"{name}\"?",
|
||||
@@ -289,6 +307,7 @@
|
||||
"AvgPrinttime": "Gns. printtid",
|
||||
"Cancel": "Annuller",
|
||||
"CreateNote": "Gem note",
|
||||
"Chart": "Skema",
|
||||
"Delete": "Slet",
|
||||
"DeleteSelectedQuestion": "Er du sikker på du vil slette alle {count} valgte jobs?",
|
||||
"Details": "Detaljer",
|
||||
@@ -337,8 +356,10 @@
|
||||
"in_progress": "Igangværende",
|
||||
"klippy_disconnect": "Klippy afbrudt",
|
||||
"klippy_shutdown": "Klippy lukket ned",
|
||||
"Others": "Andre",
|
||||
"server_exit": "Server exit"
|
||||
},
|
||||
"Table": "Tabel",
|
||||
"TitleExportHistory": "Export History",
|
||||
"TitleRefreshHistory": "Opdater historik",
|
||||
"TitleSettings": "Indstillinger",
|
||||
@@ -350,7 +371,12 @@
|
||||
},
|
||||
"JobQueue": {
|
||||
"AllJobs": "Alle Jobs",
|
||||
"ChangeCount": "Ændre antal",
|
||||
"Cancel": "Annuller",
|
||||
"Count": "Tæl",
|
||||
"Empty": "Tom",
|
||||
"InvalidCountEmpty": "Input må ikke være tom!",
|
||||
"InvalidCountGreaterZero": "Input skal være over 0!",
|
||||
"JobQueue": "Jobkø",
|
||||
"Jobs": "Jobs",
|
||||
"Pause": "Pause",
|
||||
@@ -362,6 +388,7 @@
|
||||
"AllFiles": "Alle",
|
||||
"Cancel": "Annuller",
|
||||
"ConfigFiles": "Konfigurationsfiler",
|
||||
"ConfigRootDirectoryDoesntExists": "Ingen konfiguration fundet. Tjek venligst opsætningen af \"config_path\" under [file_manager] sektionen af Moonraker konfigurationen.",
|
||||
"Create": "Ny",
|
||||
"CreateDirectory": "Ny mappe",
|
||||
"CreateFile": "Ny Fil",
|
||||
@@ -401,7 +428,13 @@
|
||||
"TRIGGERED": "Aktiveret"
|
||||
},
|
||||
"LogfilesPanel": {
|
||||
"Logfiles": "Logfiler"
|
||||
"Accept": "Acceptér",
|
||||
"Cancel": "Annuller",
|
||||
"Logfiles": "Logfiler",
|
||||
"Rollover": "Nulstil log-filer",
|
||||
"RolloverDescription": "Vælg hvilke log-filer der skal nulstilles",
|
||||
"RolloverToastSuccessful": "Filen: \"{name}\" blev nulstillet.",
|
||||
"RolloverToastFailed": "Nulstillings fejl-log for \"{name}\": {message}"
|
||||
},
|
||||
"SystemPanel": {
|
||||
"Constants": "Konstanter",
|
||||
@@ -452,6 +485,12 @@
|
||||
"UpToDate": "up-to-date"
|
||||
}
|
||||
},
|
||||
"ManualProbe": {
|
||||
"Abort": "Afbryd",
|
||||
"Accept": "Acceptér",
|
||||
"Advanced": "Avanceret",
|
||||
"Headline": "Manuel Probing"
|
||||
},
|
||||
"Panels": {
|
||||
"ExtruderControlPanel": {
|
||||
"Allowed": "Tilladt",
|
||||
@@ -485,10 +524,14 @@
|
||||
"WebcamOff": "Sluk"
|
||||
},
|
||||
"KlippyStatePanel": {
|
||||
"CheckKlippyAndUdsAddress": "Tjek at Klipper-servicen kører, samt at klippy_uds_address er korrekt konfigureret i moonraker.conf.",
|
||||
"FirmwareRestart": "Genstart alt",
|
||||
"KlipperCheck": "Check at Klipper service kører og at en UDS (Unix Domain Socket) er konfigureret.",
|
||||
"MoonrakerCannotConnect": "Moonraker kan ikke forbinde til Klipper!",
|
||||
"Restart": "Genstart"
|
||||
"PowerOn": "Tænd",
|
||||
"PrinterSwitchedOff": "Printeren er slukket",
|
||||
"PrinterSwitchedOffDescription": "Printeren er slukket og Klipper kan ikke forbinde til den. Tryk på nedenstående knap for at tænde printeren",
|
||||
"Restart": "Genstart",
|
||||
"ServiceReports": "{service} rapporter"
|
||||
},
|
||||
"MachineSettingsPanel": {
|
||||
"Headline": "Printer indstillinger",
|
||||
@@ -518,6 +561,12 @@
|
||||
},
|
||||
"MiscellaneousPanel": {
|
||||
"Headline": "Diverse",
|
||||
"Light": {
|
||||
"Blue": "blå",
|
||||
"Green": "grøn",
|
||||
"Red": "rød",
|
||||
"White": "hvid"
|
||||
},
|
||||
"RunoutSensor": {
|
||||
"Detected": "Fundet",
|
||||
"Disabled": "Deaktiveret",
|
||||
@@ -555,6 +604,18 @@
|
||||
"Layer": "Lag",
|
||||
"Max": "maks",
|
||||
"ObjectHeight": "Objekt Højde",
|
||||
"PauseAtLayer": {
|
||||
"Abort": "Afbryd",
|
||||
"Accept": "Acceptér",
|
||||
"AtLayer": "ved lag",
|
||||
"Call": "Kør",
|
||||
"DescriptionPauseAtLayerActive": "Denne funktion er allerede aktiv og vil køre \"{call}\" ved lag: {layer}. Hvis du kører kommandoen igen overskrives disse indstillinger.",
|
||||
"DescriptionPauseNextLayerActive": "Denne funktion er allerede aktiv og vil køre \"{call}\" ved næste lag.",
|
||||
"Layer": "Lag",
|
||||
"NextLayer": "Næste lag",
|
||||
"PauseAtLayer": "Pause ved lag",
|
||||
"Type": "Type"
|
||||
},
|
||||
"PausePrint": "Pause print",
|
||||
"Print": "Reel printtid",
|
||||
"PrintTime": "Print Tid",
|
||||
@@ -748,6 +809,8 @@
|
||||
"ShowAxes": "Vis akser"
|
||||
},
|
||||
"GeneralTab": {
|
||||
"12hours": "12-timers ({time})",
|
||||
"24hours": "24-timers ({time})",
|
||||
"Backup": "Backup",
|
||||
"BackupDialog": "Vælg de sektioner du ønsker at lave backup af:",
|
||||
"CalcEstimateTime": "Beregn estimeret printtid",
|
||||
@@ -763,6 +826,7 @@
|
||||
"Slicer": "Slicer (M73)"
|
||||
},
|
||||
"CannotReadJson": "Kan ikke læse backup-fil",
|
||||
"DateFormat": "Datoformat",
|
||||
"DbConsoleHistory": "Terminal Historik",
|
||||
"DbHistoryJobs": "Jobhistorik",
|
||||
"DbHistoryTotals": "Totalhistorik",
|
||||
@@ -782,7 +846,8 @@
|
||||
"PrinterName": "Printernavn",
|
||||
"Reset": "Nulstil",
|
||||
"Restore": "Gendan",
|
||||
"RestoreDialog": "Vælg de sektioner du ønsker at gendanne fra backup:"
|
||||
"RestoreDialog": "Vælg de sektioner du ønsker at gendanne fra backup:",
|
||||
"TimeFormat": "Tidsformat"
|
||||
},
|
||||
"InterfaceSettings": "Interfaceindstillinger",
|
||||
"MacrosTab": {
|
||||
@@ -821,6 +886,29 @@
|
||||
"UnknownGroup": "Ukendt gruppe",
|
||||
"Warning": "Advarsel"
|
||||
},
|
||||
"MiscellaneousTab": {
|
||||
"AddGroup": "Tilføj gruppe",
|
||||
"AddPreset": "Tilføj forudindstilling",
|
||||
"Color": "Farve",
|
||||
"CreateGroup": "Tilføj gruppe",
|
||||
"CreatePreset": "Tilføj forudindstilling",
|
||||
"End": "Slut",
|
||||
"EndDescription": "Sidste LED i denne gruppe.",
|
||||
"Groups": "Grupper",
|
||||
"GroupSubTitle": "Start: {start}, Slut: {end}",
|
||||
"LightGroups": "{name} - Grupper",
|
||||
"LightPresets": "{name} - Forudindstillinger",
|
||||
"Miscellaneous": "Diverse",
|
||||
"Name": "Navn",
|
||||
"NoDevicesFound": "Ingen enheder fundet",
|
||||
"NoGroupFound": "Ingen gruppe fundet",
|
||||
"NoPresetFound": "Ingen forudindstilling fundet",
|
||||
"Presets": "Forudindstillinger",
|
||||
"Start": "Første",
|
||||
"StartDescription": "Første LED i denne gruppe.",
|
||||
"UnableToLoadLight": "Kunne ikke indlæse LED",
|
||||
"UnableToLoadPreset": "Kunne ikke indlæse forudindstilling"
|
||||
},
|
||||
"PresetsTab": {
|
||||
"AddPreset": "Tilføj forudindstilling",
|
||||
"Cooldown": "Nedkøling",
|
||||
@@ -848,6 +936,7 @@
|
||||
"UpdatePrinter": "Opdater printer",
|
||||
"UseConfigJson": "InstanceDB = JSON fundet. Brug venligst config.json til at ændre på printerlisten."
|
||||
},
|
||||
"Store": "Gem",
|
||||
"TimelapseTab": {
|
||||
"Autorender": "Autorendering",
|
||||
"AutorenderDescription": "Hvis aktiv, vil Timelapse video automatisk blive renderet efter afsluttet print.",
|
||||
@@ -926,9 +1015,11 @@
|
||||
"ConfirmOnPowerDeviceChangeDescription": "Vis bekræftelse ved ændringer på Enhedens strømtilstand",
|
||||
"DisplayCANCEL_PRINT": "Vis Afbryd print",
|
||||
"DisplayCANCEL_PRINTDescription": "Viser Afbryd print knappen konstant - ingen tofaktor godkendelse nødvendig.",
|
||||
"GcodeThumbnails": "Gcode forhåndsvisninger",
|
||||
"GcodeThumbnails": "G-Kode forhåndsvisninger",
|
||||
"GcodeThumbnailsDescription": "Klik på knappen for mere information.",
|
||||
"Guide": "Guide",
|
||||
"HideSaveConfigButtonForBedMesh": "Skjul GEM KONFIGURATION knap for ændringer i højdekort",
|
||||
"HideSaveConfigButtonForBedMeshDescription": "Skjul GEM KONFIGURATION, hvis det kun er ændringer i højdekort der venter på at blive gemt i Klipper.",
|
||||
"LockSliders": "Lås sliders på touch-enheder",
|
||||
"LockSlidersDelay": "Forsinkelse på låsning af sliders",
|
||||
"LockSlidersDelayDescription": "Sliders vil låse efter det angivne tidsrum (sek). Hvis sat til 0 eller efterladt tomt, vil Sliders kun låse ved opdatering/genindlæsning af siden.",
|
||||
@@ -938,13 +1029,17 @@
|
||||
"NavigationStyleDescription": "Skift navigationens udseende",
|
||||
"NavigationStyleIconsAndText": "Ikoner + Tekst",
|
||||
"NavigationStyleIconsOnly": "Kun ikoner",
|
||||
"PowerDeviceName": "Printer strømenhed",
|
||||
"PowerDeviceNameDescription": "Vælg hvilken strømenhed i Moonraker der styrer printerens strøm.",
|
||||
"Primary": "Primær",
|
||||
"ShowWebcamInNavigation": "Vis Webcam i navigation",
|
||||
"UiSettings": "UI-indstillinger"
|
||||
},
|
||||
"Update": "Opdater",
|
||||
"WebcamsTab": {
|
||||
"AddWebcam": "Tilføj webcam",
|
||||
"CreateWebcam": "Nyt Webcam",
|
||||
"EditCrowsnestConf": "Redigér crowsnest.conf",
|
||||
"EditWebcam": "Rediger Webcam",
|
||||
"FlipWebcam": "Vend webcam-billedet:",
|
||||
"Horizontally": "horisontalt",
|
||||
@@ -957,6 +1052,7 @@
|
||||
"IconNozzle": "Dyse",
|
||||
"IconPrinter": "Printer",
|
||||
"Ipstream": "IP Kamera",
|
||||
"Hlsstream": "HLS Stream",
|
||||
"Mjpegstreamer": "MJPEG-Streamer",
|
||||
"MjpegstreamerAdaptive": "Adaptiv MJPEG-Streamer (eksperimental)",
|
||||
"Name": "Navn",
|
||||
@@ -974,6 +1070,12 @@
|
||||
"Webcams": "Webcams"
|
||||
}
|
||||
},
|
||||
"ScrewsTiltAdjust": {
|
||||
"Accept": "Acceptér",
|
||||
"Base": "Udgangspunkt",
|
||||
"ErrorText": "Noget gik galt under målingsprocessen",
|
||||
"Headline": "Bed-skrue justering"
|
||||
},
|
||||
"Timelapse": {
|
||||
"AllFiles": "Alle",
|
||||
"Autorender": "Autorendering",
|
||||
@@ -984,6 +1086,7 @@
|
||||
"Delete": "Slet",
|
||||
"DeleteDirectory": "Slet mappe",
|
||||
"DeleteDirectoryQuestion": "Vil du slette mappen \"{name}\" og alt dens indhold?",
|
||||
"DeleteSelectedQuestion": "Er du sikker på du vil slette alle {count} valgte filer?",
|
||||
"Download": "Download",
|
||||
"DuplicateLastframe": "Dupliker sidste frame",
|
||||
"Empty": "Ingen færdige Timelapse filer fundet.",
|
||||
|
||||
+59
-9
@@ -52,6 +52,7 @@
|
||||
"Complete": "Fertiggestellt - {filename}",
|
||||
"Error": "FEHLER",
|
||||
"Pause": "Druck pausiert",
|
||||
"PrinterOff": "Drucker AUS",
|
||||
"Printing": "{percent}% Drucken - {filename}",
|
||||
"PrintingETA": "{percent}% Drucken - ETA: {eta} - {filename}"
|
||||
},
|
||||
@@ -109,8 +110,8 @@
|
||||
},
|
||||
"BedScrews": {
|
||||
"Abort": "abbrechen",
|
||||
"Adjusted": "angepasst",
|
||||
"Accept": "bestätigen",
|
||||
"Adjusted": "angepasst",
|
||||
"Description": "Klick auf <b>ANGEPASST</b> wenn die aktuelle Schraube eingestellt wurde. Klick auf <b>BESTÄTIGEN</b> um fortzufahren ohne Anpassung.",
|
||||
"Headline": "Bettschrauben",
|
||||
"ScrewAccepted": "bestätigte Schrauben",
|
||||
@@ -164,11 +165,13 @@
|
||||
"Yes": "Ja"
|
||||
},
|
||||
"Files": {
|
||||
"AddBatchToQueue": "Stapel zur Auftragswarteschlange hinzufügen",
|
||||
"AddToQueue": "Zur Auftragswarteschlange hinzufügen",
|
||||
"AllFiles": "Alle",
|
||||
"BedTemp": "Bett Temp.",
|
||||
"Cancel": "Abbrechen",
|
||||
"ChamberTemp": "Kammer Temp.",
|
||||
"Count": "Anzahl",
|
||||
"Create": "Erstellen",
|
||||
"CreateNewDirectory": "Ordner erstellen",
|
||||
"CurrentPath": "Aktueller Pfad",
|
||||
@@ -253,7 +256,9 @@
|
||||
"Tracking": "Tracking",
|
||||
"Transparency": "Transparenz",
|
||||
"Ultra": "Ultra",
|
||||
"VoxelMode": "Voxel Modus (ASMBL)"
|
||||
"VoxelMode": "Voxel Modus (ASMBL)",
|
||||
"ShowGCode": "Zeige G-Code",
|
||||
"CNCMode": "CNC Modus"
|
||||
},
|
||||
"Heightmap": {
|
||||
"Abort": "abbruch",
|
||||
@@ -266,8 +271,8 @@
|
||||
"Max": "Max",
|
||||
"Min": "Min",
|
||||
"Name": "Name",
|
||||
"Size": "Größe",
|
||||
"Variance": "Varianz"
|
||||
"Range": "Spannweite",
|
||||
"Size": "Größe"
|
||||
},
|
||||
"DeleteBedMeshProfile": "Lösche Bed Mesh",
|
||||
"DoYouReallyWantToDelete": "Möchtest du das Profil \"{name}\" wirklich löschen?",
|
||||
@@ -302,6 +307,7 @@
|
||||
"AllJobs": "Alle",
|
||||
"AvgPrinttime": "Druckzeit - Ø",
|
||||
"Cancel": "abbrechen",
|
||||
"Chart": "Diagramm",
|
||||
"CreateNote": "Notiz anlegen",
|
||||
"Delete": "Löschen",
|
||||
"DeleteSelectedQuestion": "Sollen wirklich {count} ausgewählte Jobs gelöscht werden?",
|
||||
@@ -354,6 +360,7 @@
|
||||
"Others": "Sonstige",
|
||||
"server_exit": "Server-Exit"
|
||||
},
|
||||
"Table": "Tabelle",
|
||||
"TitleExportHistory": "Historie exportieren",
|
||||
"TitleRefreshHistory": "Historie aktualisieren",
|
||||
"TitleSettings": "Einstellungen",
|
||||
@@ -365,7 +372,12 @@
|
||||
},
|
||||
"JobQueue": {
|
||||
"AllJobs": "Alle Aufträge",
|
||||
"ChangeCount": "Anzahl ändern",
|
||||
"Cancel": "abbrechen",
|
||||
"Count": "Anzahl",
|
||||
"Empty": "Leer",
|
||||
"InvalidCountEmpty": "Die Eingabe darf nicht leer sein!",
|
||||
"InvalidCountGreaterZero": "Die Eingabe muss größer als 0 sein!",
|
||||
"JobQueue": "Auftragswarteschlange",
|
||||
"Jobs": "Aufträge",
|
||||
"Pause": "Pause",
|
||||
@@ -417,7 +429,13 @@
|
||||
"TRIGGERED": "AUSGELÖST"
|
||||
},
|
||||
"LogfilesPanel": {
|
||||
"Logfiles": "Logdateien"
|
||||
"Accept": "akzeptieren",
|
||||
"Cancel": "abbrechen",
|
||||
"Logfiles": "Logdateien",
|
||||
"Rollover": "Logdatei zurücksetzen",
|
||||
"RolloverDescription": "Wähle Logs zum zurücksetzen:",
|
||||
"RolloverToastSuccessful": "Logdatei für \"{name}\" wurde erfolgreich zurückgesetzt.",
|
||||
"RolloverToastFailed": "Logdatei reset \"{name}\": {message}"
|
||||
},
|
||||
"SystemPanel": {
|
||||
"Constants": "Konstanten",
|
||||
@@ -507,9 +525,12 @@
|
||||
"WebcamOff": "Aus"
|
||||
},
|
||||
"KlippyStatePanel": {
|
||||
"CheckKlippyAndUdsAddress": "Bitte überprüfen, ob der Klipper-Dienst läuft und klippy_uds_address in der moonraker.conf korrekt konfiguriert ist.",
|
||||
"FirmwareRestart": "Firmware Neustart",
|
||||
"KlipperCheck": "Bitte überprüfen Sie, ob der Klipper-Dienst läuft und ein UDS (Unix Domain Socket) konfiguriert ist.",
|
||||
"MoonrakerCannotConnect": "Moonraker kann keine Verbindung zu Klipper herstellen!",
|
||||
"PowerOn": "Drucker einschalten",
|
||||
"PrinterSwitchedOff": "Drucker ist ausgeschaltet",
|
||||
"PrinterSwitchedOffDescription": "Der Drucker ist ausgeschaltet und es kann keine Verbindung zu Klipper hergestellt werden. Um den Drucker einzuschalten, auf die Schaltfläche unten klicken:",
|
||||
"Restart": "Neustart",
|
||||
"ServiceReports": "{service} meldet"
|
||||
},
|
||||
@@ -584,6 +605,18 @@
|
||||
"Layer": "Schicht",
|
||||
"Max": "max",
|
||||
"ObjectHeight": "Objekthöhe",
|
||||
"PauseAtLayer": {
|
||||
"Abort": "abbrechen",
|
||||
"Accept": "akzeptieren",
|
||||
"AtLayer": "bei Schicht",
|
||||
"Call": "Ausführen",
|
||||
"DescriptionPauseAtLayerActive": "Diese Funktion ist bereits aktiv und wird \"{call}\" bei Schicht {layer} ausführen. Wenn der Befehl nochmal ausgeführt wird, werden die Einstellungen überschreiben.",
|
||||
"DescriptionPauseNextLayerActive": "Diese Funktion ist bereits aktiv und bei der nächsten Schicht wird \"{call}\" ausgeführt.",
|
||||
"Layer": "Schicht",
|
||||
"NextLayer": "nächste Schicht",
|
||||
"PauseAtLayer": "Pause bei Schicht",
|
||||
"Type": "Art"
|
||||
},
|
||||
"PausePrint": "Druck pausieren",
|
||||
"Print": "Druck",
|
||||
"PrintTime": "Druckzeit",
|
||||
@@ -777,6 +810,8 @@
|
||||
"ShowAxes": "Zeige Achsen an"
|
||||
},
|
||||
"GeneralTab": {
|
||||
"12hours": "12-Stunden ({time})",
|
||||
"24hours": "24-Stunden ({time})",
|
||||
"Backup": "Datensicherung",
|
||||
"BackupDialog": "Bitte wähle alle Abschnitte aus, die du sichern möchtest:",
|
||||
"CalcEstimateTime": "Berechnung der geschätzten Zeit",
|
||||
@@ -792,6 +827,7 @@
|
||||
"Slicer": "Slicer (M73)"
|
||||
},
|
||||
"CannotReadJson": "Sicherungsdatei kann nicht gelesen/analysiert werden.",
|
||||
"DateFormat": "Datumsformat",
|
||||
"DbConsoleHistory": "Verlauf der Konsole",
|
||||
"DbHistoryJobs": "Historie Druckvorgänge",
|
||||
"DbHistoryTotals": "Historie Gesamtzähler",
|
||||
@@ -811,7 +847,8 @@
|
||||
"PrinterName": "Druckername",
|
||||
"Reset": "zurücksetzen",
|
||||
"Restore": "Wiederherstellung",
|
||||
"RestoreDialog": "Bitte wähle alle Abschnitte aus, die du wiederherstellen möchtest:"
|
||||
"RestoreDialog": "Bitte wähle alle Abschnitte aus, die du wiederherstellen möchtest:",
|
||||
"TimeFormat": "Zeitformat"
|
||||
},
|
||||
"InterfaceSettings": "Interface Einstellungen",
|
||||
"MacrosTab": {
|
||||
@@ -868,7 +905,6 @@
|
||||
"NoGroupFound": "Keine Gruppe gefunden",
|
||||
"NoPresetFound": "Keine Voreinstellungen gefunden",
|
||||
"Presets": "Voreinstellungen",
|
||||
"PresetSubTitle": "R: {red}, G: {green}, B: {blue}, W: {white}",
|
||||
"Start": "Start",
|
||||
"StartDescription": "Erste LED von dieser Gruppe.",
|
||||
"UnableToLoadLight": "Licht konnte nicht geladen werden",
|
||||
@@ -978,11 +1014,15 @@
|
||||
"ConfirmOnEmergencyStopDescription": "Zeige vor einem Notstop einen Bestätigungsdialog.",
|
||||
"ConfirmOnPowerDeviceChange": "Bestätigung für Änderung der Stromversorgung von Geräten",
|
||||
"ConfirmOnPowerDeviceChangeDescription": "Zeige vor Änderung der Stromversorgung von Geräten einen Bestätigungsdialog.",
|
||||
"DisableFanAnimation": "Lüfteranimation deaktivieren",
|
||||
"DisableFanAnimationDescription": "Dies kann die Last im Browser senken.",
|
||||
"DisplayCANCEL_PRINT": "Zeige CANCEL_PRINT an",
|
||||
"DisplayCANCEL_PRINTDescription": "Zeigt die CANCEL_PRINT Schaltfläche dauerhaft an - keine weitere Bestätigung erforderlich.",
|
||||
"GcodeThumbnails": "G-Code Vorschaubilder",
|
||||
"GcodeThumbnailsDescription": "Klicke auf die Schaltfläche um zum Leitfaden zu gelangen.",
|
||||
"Guide": "Leitfaden",
|
||||
"HideSaveConfigButtonForBedMesh": "SAVE_CONFIG Schaltfläche ausblenden bei bed_mesh Änderungen",
|
||||
"HideSaveConfigButtonForBedMeshDescription": "SAVE_CONFIG nicht anzeigen, wenn nur das Speichern eines bed_mesh in Klipper aussteht.",
|
||||
"LockSliders": "Sperre Schieberegler auf Touchscreen Geräten",
|
||||
"LockSlidersDelay": "Verzögerung der Sperre für Schieberegler",
|
||||
"LockSlidersDelayDescription": "Schieberegler werden nach einer bestimmten Verzögerung gesperrt. Wenn 0 oder leer, dann sperren Schieberegler nur nach wechseln/neuladen der Seite.",
|
||||
@@ -992,6 +1032,8 @@
|
||||
"NavigationStyleDescription": "Erscheinungsbild der Navigation ändern",
|
||||
"NavigationStyleIconsAndText": "Icons + Text",
|
||||
"NavigationStyleIconsOnly": "Nur Icons",
|
||||
"PowerDeviceName": "Stromversorgung für Drucker",
|
||||
"PowerDeviceNameDescription": "Wähle aus, welches Moonraker Power-Device zum Einschalten des Druckers verwendet werden soll.",
|
||||
"Primary": "Primärfarbe",
|
||||
"ShowWebcamInNavigation": "Zeige Webcam in der Navigation",
|
||||
"UiSettings": "UI-Einstellungen"
|
||||
@@ -1003,6 +1045,7 @@
|
||||
"EditCrowsnestConf": "crowsnest.conf bearbeiten",
|
||||
"EditWebcam": "Webcam bearbeiten",
|
||||
"FlipWebcam": "Webcam-Bild spiegeln:",
|
||||
"Hlsstream": "HLS-Stream",
|
||||
"Horizontally": "horizontal",
|
||||
"IconBed": "Bett",
|
||||
"IconCam": "Kamera",
|
||||
@@ -1027,9 +1070,16 @@
|
||||
"UrlStream": "Stream URL",
|
||||
"Uv4lMjpeg": "UV4L-MJPEG",
|
||||
"Vertically": "vertikal",
|
||||
"Webcams": "Webcams"
|
||||
"Webcams": "Webcams",
|
||||
"WebrtcCameraStreamer": "WebRTC (camera-streamer)"
|
||||
}
|
||||
},
|
||||
"ScrewsTiltAdjust": {
|
||||
"Accept": "akzeptieren",
|
||||
"Base": "Basis",
|
||||
"ErrorText": "Ein Fehler ist beim Abtasten aufgetreten.",
|
||||
"Headline": "Neigungsverstellung"
|
||||
},
|
||||
"Timelapse": {
|
||||
"AllFiles": "Alle",
|
||||
"Autorender": "Autorender",
|
||||
|
||||
+54
-8
@@ -52,6 +52,7 @@
|
||||
"Complete": "Complete - {filename}",
|
||||
"Error": "ERROR",
|
||||
"Pause": "Pause Print",
|
||||
"PrinterOff": "Printer OFF",
|
||||
"Printing": "{percent}% Printing - {filename}",
|
||||
"PrintingETA": "{percent}% Printing - ETA: {eta} - {filename}"
|
||||
},
|
||||
@@ -109,8 +110,8 @@
|
||||
},
|
||||
"BedScrews": {
|
||||
"Abort": "abort",
|
||||
"Adjusted": "adjusted",
|
||||
"Accept": "accept",
|
||||
"Adjusted": "adjusted",
|
||||
"Description": "Click on <b>ADJUSTED</b> if the current screw was adjusted. Click on <b>ACCEPT</b> to continue without adjustment.",
|
||||
"Headline": "Bed Screws",
|
||||
"ScrewAccepted": "Screws accepted",
|
||||
@@ -164,11 +165,13 @@
|
||||
"Yes": "Yes"
|
||||
},
|
||||
"Files": {
|
||||
"AddBatchToQueue": "Add batch to Queue",
|
||||
"AddToQueue": "Add to Queue",
|
||||
"AllFiles": "All",
|
||||
"BedTemp": "Bed Temp.",
|
||||
"Cancel": "Cancel",
|
||||
"ChamberTemp": "Chamber Temp.",
|
||||
"Count": "Count",
|
||||
"Create": "Create",
|
||||
"CreateNewDirectory": "Create new Directory",
|
||||
"CurrentPath": "Current path",
|
||||
@@ -253,7 +256,9 @@
|
||||
"Tracking": "Tracking",
|
||||
"Transparency": "Transparency",
|
||||
"Ultra": "Ultra",
|
||||
"VoxelMode": "Voxel Mode (ASMBL)"
|
||||
"VoxelMode": "Voxel Mode (ASMBL)",
|
||||
"ShowGCode": "Show G-Code",
|
||||
"CNCMode": "CNC Mode"
|
||||
},
|
||||
"Heightmap": {
|
||||
"Abort": "abort",
|
||||
@@ -266,8 +271,8 @@
|
||||
"Max": "Max",
|
||||
"Min": "Min",
|
||||
"Name": "Name",
|
||||
"Size": "Size",
|
||||
"Variance": "Variance"
|
||||
"Range": "Range",
|
||||
"Size": "Size"
|
||||
},
|
||||
"DeleteBedMeshProfile": "Delete Bed Mesh Profile",
|
||||
"DoYouReallyWantToDelete": "Do you really want to delete the profile \"{name}\"?",
|
||||
@@ -303,6 +308,7 @@
|
||||
"AvgPrinttime": "Print Time - Ø",
|
||||
"Cancel": "Cancel",
|
||||
"CreateNote": "Create Note",
|
||||
"Chart": "Chart",
|
||||
"Delete": "Delete",
|
||||
"DeleteSelectedQuestion": "Do you really want to delete {count} selected jobs?",
|
||||
"Details": "Details",
|
||||
@@ -354,6 +360,7 @@
|
||||
"Others": "Others",
|
||||
"server_exit": "Server exit"
|
||||
},
|
||||
"Table": "Table",
|
||||
"TitleExportHistory": "Export History",
|
||||
"TitleRefreshHistory": "Refresh History",
|
||||
"TitleSettings": "Settings",
|
||||
@@ -365,7 +372,12 @@
|
||||
},
|
||||
"JobQueue": {
|
||||
"AllJobs": "All Jobs",
|
||||
"ChangeCount": "Change count",
|
||||
"Cancel": "Cancel",
|
||||
"Count": "Count",
|
||||
"Empty": "Empty",
|
||||
"InvalidCountEmpty": "Input must not be empty!",
|
||||
"InvalidCountGreaterZero": "Input must be greater than 0!",
|
||||
"JobQueue": "Job Queue",
|
||||
"Jobs": "Jobs",
|
||||
"Pause": "Pause",
|
||||
@@ -417,7 +429,13 @@
|
||||
"TRIGGERED": "TRIGGERED"
|
||||
},
|
||||
"LogfilesPanel": {
|
||||
"Logfiles": "Log Files"
|
||||
"Accept": "accept",
|
||||
"Cancel": "cancel",
|
||||
"Logfiles": "Log Files",
|
||||
"Rollover": "Rollover Logs",
|
||||
"RolloverDescription": "Please select which logs should be reset:",
|
||||
"RolloverToastSuccessful": "Log for \"{name}\" was successfully reset.",
|
||||
"RolloverToastFailed": "Rollover log for \"{name}\": {message}"
|
||||
},
|
||||
"SystemPanel": {
|
||||
"Constants": "Constants",
|
||||
@@ -507,9 +525,12 @@
|
||||
"WebcamOff": "Off"
|
||||
},
|
||||
"KlippyStatePanel": {
|
||||
"CheckKlippyAndUdsAddress": "Please check if the Klipper service is running and klippy_uds_address is correctly configured in the moonraker.conf.",
|
||||
"FirmwareRestart": "Firmware Restart",
|
||||
"KlipperCheck": "Please check if the Klipper service is running.",
|
||||
"MoonrakerCannotConnect": "Moonraker can't connect to Klipper!",
|
||||
"PowerOn": "Power on",
|
||||
"PrinterSwitchedOff": "Printer is powered off",
|
||||
"PrinterSwitchedOffDescription": "The printer is currently powered off and Klipper cannot connect. To power on the printer, click the button below:",
|
||||
"Restart": "Restart",
|
||||
"ServiceReports": "{service} reports"
|
||||
},
|
||||
@@ -584,6 +605,18 @@
|
||||
"Layer": "Layer",
|
||||
"Max": "max",
|
||||
"ObjectHeight": "Object Height",
|
||||
"PauseAtLayer": {
|
||||
"Abort": "abort",
|
||||
"Accept": "accept",
|
||||
"AtLayer": "at Layer",
|
||||
"Call": "Call",
|
||||
"DescriptionPauseAtLayerActive": "This function is already active and will call \"{call}\" at layer {layer}. If you call the command again, these settings will be overwritten.",
|
||||
"DescriptionPauseNextLayerActive": "This function is already active and will call \"{call}\" at the next layer.",
|
||||
"Layer": "Layer",
|
||||
"NextLayer": "next Layer",
|
||||
"PauseAtLayer": "Pause at Layer",
|
||||
"Type": "Type"
|
||||
},
|
||||
"PausePrint": "Pause print",
|
||||
"Print": "Print",
|
||||
"PrintTime": "Print Time",
|
||||
@@ -872,7 +905,6 @@
|
||||
"NoGroupFound": "No group found",
|
||||
"NoPresetFound": "No preset found",
|
||||
"Presets": "Presets",
|
||||
"PresetSubTitle": "R: {red}, G: {green}, B: {blue}, W: {white}",
|
||||
"Start": "Start",
|
||||
"StartDescription": "First LED of this group.",
|
||||
"UnableToLoadLight": "Unable to load light",
|
||||
@@ -982,11 +1014,15 @@
|
||||
"ConfirmOnEmergencyStopDescription": "Show a confirmation dialog on Emergency Stop",
|
||||
"ConfirmOnPowerDeviceChange": "Require confirm on Device Power changes",
|
||||
"ConfirmOnPowerDeviceChangeDescription": "Show a confirmation dialog on Device Power changes",
|
||||
"DisableFanAnimation": "Disable fan animation",
|
||||
"DisableFanAnimationDescription": "This can reduce some load in your Browser.",
|
||||
"DisplayCANCEL_PRINT": "Display CANCEL_PRINT",
|
||||
"DisplayCANCEL_PRINTDescription": "Shows the CANCEL_PRINT button permanently - no second layer confirmation needed.",
|
||||
"GcodeThumbnails": "G-Code thumbnails",
|
||||
"GcodeThumbnailsDescription": "Click on the button to get to the instructions.",
|
||||
"Guide": "Guide",
|
||||
"HideSaveConfigButtonForBedMesh": "Hide SAVE_CONFIG button for bed_mesh changes",
|
||||
"HideSaveConfigButtonForBedMeshDescription": "Hide SAVE_CONFIG, if only bed_mesh changes are pending to be saved in Klipper.",
|
||||
"LockSliders": "Lock sliders on touchscreen devices",
|
||||
"LockSlidersDelay": "Slider lock delay",
|
||||
"LockSlidersDelayDescription": "Sliders will lock after a given delay. If set to 0 or left blank, sliders will only lock on page change/reload.",
|
||||
@@ -996,6 +1032,8 @@
|
||||
"NavigationStyleDescription": "Change navigation appearance",
|
||||
"NavigationStyleIconsAndText": "Icons + Text",
|
||||
"NavigationStyleIconsOnly": "Icons only",
|
||||
"PowerDeviceName": "Printer power device",
|
||||
"PowerDeviceNameDescription": "Select which Moonraker power device should be used to power on the printer.",
|
||||
"Primary": "Primary",
|
||||
"ShowWebcamInNavigation": "Show Webcam in navigation",
|
||||
"UiSettings": "UI-Settings"
|
||||
@@ -1017,6 +1055,7 @@
|
||||
"IconNozzle": "Nozzle",
|
||||
"IconPrinter": "Printer",
|
||||
"Ipstream": "IP Camera",
|
||||
"Hlsstream": "HLS Stream",
|
||||
"Mjpegstreamer": "MJPEG-Streamer",
|
||||
"MjpegstreamerAdaptive": "Adaptive MJPEG-Streamer (experimental)",
|
||||
"Name": "Name",
|
||||
@@ -1031,9 +1070,16 @@
|
||||
"UrlStream": "URL Stream",
|
||||
"Uv4lMjpeg": "UV4L-MJPEG",
|
||||
"Vertically": "vertically",
|
||||
"Webcams": "Webcams"
|
||||
"Webcams": "Webcams",
|
||||
"WebrtcCameraStreamer": "WebRTC (camera-streamer)"
|
||||
}
|
||||
},
|
||||
"ScrewsTiltAdjust": {
|
||||
"Accept": "accept",
|
||||
"Base": "Base",
|
||||
"ErrorText": "Something went wrong during the probing process.",
|
||||
"Headline": "Screws tilt adjust"
|
||||
},
|
||||
"Timelapse": {
|
||||
"AllFiles": "All",
|
||||
"Autorender": "Auto-render",
|
||||
|
||||
+112
-14
@@ -1,5 +1,5 @@
|
||||
{
|
||||
"_last_update": "12.09.2022",
|
||||
"_last_update": "28.02.2023",
|
||||
"App": {
|
||||
"Notifications": {
|
||||
"DependencyDescription": "La version actuelle de {name} ne supporte pas toutes les fonctionalités de Mainsail. Mettez {name} a jour vers la version {neededVersion}.",
|
||||
@@ -212,7 +212,11 @@
|
||||
"Total": "Total",
|
||||
"UploadNewGcode": "Charger nouveau G-Code",
|
||||
"Used": "Utilisé",
|
||||
"View3D": "Vue 3D"
|
||||
"View3D": "Vue 3D",
|
||||
"AddBatchToQueue": "Ajouter à la queue d'impression",
|
||||
"Count": "Nombre",
|
||||
"InvalidNameAlreadyExists": "Ce nom existe déjà, merci d'en choisir un autre.",
|
||||
"InvalidNameEmpty": "L'entrée ne peut pas être vide !"
|
||||
},
|
||||
"FullscreenUpload": {
|
||||
"CannotUploadFile": "Impossible de télécharger le fichier !",
|
||||
@@ -241,7 +245,9 @@
|
||||
"Tracking": "Suivi",
|
||||
"Transparency": "Transparence",
|
||||
"Ultra": "Ultra",
|
||||
"VoxelMode": "Mode Voxel (ASMBL)"
|
||||
"VoxelMode": "Mode Voxel (ASMBL)",
|
||||
"CNCMode": "Mode CNC",
|
||||
"ShowGCode": "Afficher le G-Code"
|
||||
},
|
||||
"Heightmap": {
|
||||
"Abort": "Annuler",
|
||||
@@ -255,7 +261,7 @@
|
||||
"Min": "Min",
|
||||
"Name": "Nom",
|
||||
"Size": "Taille",
|
||||
"Variance": "Variance"
|
||||
"Range": "Gamme"
|
||||
},
|
||||
"DeleteBedMeshProfile": "Effacer maillage",
|
||||
"DoYouReallyWantToDelete": "Voulez-vous effacer le maillage \"{name}\" ?",
|
||||
@@ -349,7 +355,9 @@
|
||||
"TotalFilamentUsed": "Total filament utilisé",
|
||||
"TotalJobs": "Nombre travaux",
|
||||
"TotalPrinttime": "Total temps d'impression",
|
||||
"TotalTime": "Durée totale"
|
||||
"TotalTime": "Durée totale",
|
||||
"Chart": "Graphique",
|
||||
"Table": "Table"
|
||||
},
|
||||
"JobQueue": {
|
||||
"AllJobs": "Tous",
|
||||
@@ -358,7 +366,12 @@
|
||||
"Jobs": "Travaux",
|
||||
"Pause": "Pause",
|
||||
"RemoveFromQueue": "Enlever de la queue des travaux",
|
||||
"Start": "Impression"
|
||||
"Start": "Impression",
|
||||
"Cancel": "Annuler",
|
||||
"ChangeCount": "Nombre de changements",
|
||||
"Count": "Nombre",
|
||||
"InvalidCountEmpty": "L'entrée ne peut pas être vide !",
|
||||
"InvalidCountGreaterZero": "L'entrée doit être plus grande que 0 !"
|
||||
},
|
||||
"Machine": {
|
||||
"ConfigFilesPanel": {
|
||||
@@ -405,7 +418,13 @@
|
||||
"TRIGGERED": "actif"
|
||||
},
|
||||
"LogfilesPanel": {
|
||||
"Logfiles": "Fichiers log"
|
||||
"Logfiles": "Fichiers log",
|
||||
"Accept": "accepter",
|
||||
"Cancel": "annuler",
|
||||
"Rollover": "Logs glissants",
|
||||
"RolloverDescription": "Selectionnez le log qui doit être effacé",
|
||||
"RolloverToastSuccessful": "Le log \"{name}\" a été effacé",
|
||||
"RolloverToastFailed": "Message du log \"{name}\": {message}"
|
||||
},
|
||||
"SystemPanel": {
|
||||
"Constants": "Constantes",
|
||||
@@ -490,9 +509,13 @@
|
||||
},
|
||||
"KlippyStatePanel": {
|
||||
"FirmwareRestart": "Redémarrage Firmware",
|
||||
"KlipperCheck": "Contrôlez que le sevice Klipper est actif et qu'un UDS (Unix Domain Socket) est configuré",
|
||||
"MoonrakerCannotConnect": "Moonraker n'arrive pas à se connecter à Klipper",
|
||||
"Restart": "Redémarrage"
|
||||
"Restart": "Redémarrage",
|
||||
"CheckKlippyAndUdsAddress": "Controlez que le service Klipper est en marche et que klippy_uds_address est configuré correctement dans moonraker.conf.",
|
||||
"PowerOn": "Mise en marche",
|
||||
"PrinterSwitchedOff": "L'imprimante est hors tension",
|
||||
"PrinterSwitchedOffDescription": "L'imprimante est actuellement hors tension et Klipper ne peut se connecter. Pour mettre l'imprimante sous tension cliquez sur le bouton ci-dessous:",
|
||||
"ServiceReports": "rapport de {service}"
|
||||
},
|
||||
"MachineSettingsPanel": {
|
||||
"Headline": "Réglages machine",
|
||||
@@ -526,6 +549,12 @@
|
||||
"Detected": "détecté",
|
||||
"Disabled": "inactif",
|
||||
"Empty": "vide"
|
||||
},
|
||||
"Light": {
|
||||
"Blue": "bleu",
|
||||
"Green": "vert",
|
||||
"Red": "rouge",
|
||||
"White": "blanc"
|
||||
}
|
||||
},
|
||||
"PowerControlPanel": {
|
||||
@@ -569,7 +598,19 @@
|
||||
"Speed": "Vitesse",
|
||||
"Status": "Status",
|
||||
"Total": "Total",
|
||||
"Unknown": "Inconnu"
|
||||
"Unknown": "Inconnu",
|
||||
"PauseAtLayer": {
|
||||
"Abort": "annuler",
|
||||
"Accept": "accepter",
|
||||
"AtLayer": "à la couche",
|
||||
"Call": "Call",
|
||||
"DescriptionPauseAtLayerActive": "Cette fonction est déjà active et va appeler \"{call}\" à la couche {layer}. Si vous appelez la commande encore une fois, ce réglage sera remplacé.",
|
||||
"DescriptionPauseNextLayerActive": "Cette fonction est déjà active et va appeler \"{call}\" à la couche {layer}.",
|
||||
"Layer": "Couche",
|
||||
"NextLayer": "prochaine couche",
|
||||
"PauseAtLayer": "Pause à la couche",
|
||||
"Type": "type "
|
||||
}
|
||||
},
|
||||
"TemperaturePanel": {
|
||||
"AutoscaleChart": "Echelle automatique",
|
||||
@@ -786,7 +827,11 @@
|
||||
"PrinterName": "Nom de l'imprimante",
|
||||
"Reset": "réinitalisation",
|
||||
"Restore": "Restauration",
|
||||
"RestoreDialog": "Choisissez les sections que vous désirez restaurer:"
|
||||
"RestoreDialog": "Choisissez les sections que vous désirez restaurer:",
|
||||
"12hours": "12-heures ({time})",
|
||||
"24hours": "24-heures ({time})",
|
||||
"DateFormat": "Format de la date",
|
||||
"TimeFormat": "Format de l'heure"
|
||||
},
|
||||
"InterfaceSettings": "Réglages interface",
|
||||
"MacrosTab": {
|
||||
@@ -944,7 +989,11 @@
|
||||
"NavigationStyleIconsOnly": "Seulement Icônes",
|
||||
"Primary": "Couleur primaire",
|
||||
"ShowWebcamInNavigation": "Affiche CAMÉRA dans le menu de navigation",
|
||||
"UiSettings": "Interface"
|
||||
"UiSettings": "Interface",
|
||||
"HideSaveConfigButtonForBedMesh": "Cacher le bouton SAVE_CONFIG lors de changements de maillage",
|
||||
"HideSaveConfigButtonForBedMeshDescription": "Cache le bouton SAVE_CONFIG si seulement des changements de maillages sont en attente de sauvegarde vers Klipper",
|
||||
"PowerDeviceName": "Nom de l'appareil de puissance",
|
||||
"PowerDeviceNameDescription": "Choisissez quel appreil de puissance Moonraker doit utiliser pour l'alimentation de l'imprimante"
|
||||
},
|
||||
"WebcamsTab": {
|
||||
"AddWebcam": "Nouvelle caméra",
|
||||
@@ -962,6 +1011,7 @@
|
||||
"IconNozzle": "Buse",
|
||||
"IconPrinter": "Imprimante",
|
||||
"Ipstream": "Caméra IP",
|
||||
"Hlsstream": "Flux HLS",
|
||||
"Mjpegstreamer": "Flux-MJPEG",
|
||||
"MjpegstreamerAdaptive": "Flux-MJPEG Adaptatif (expérimental)",
|
||||
"Name": "Nom",
|
||||
@@ -977,7 +1027,32 @@
|
||||
"Uv4lMjpeg": "UV4L-MJPEG",
|
||||
"Vertically": "vertical",
|
||||
"Webcams": "Caméras"
|
||||
}
|
||||
},
|
||||
"MiscellaneousTab": {
|
||||
"AddGroup": "ajouter le groupe",
|
||||
"AddPreset": "ajouter le réglage",
|
||||
"Color": "Couleur",
|
||||
"CreateGroup": "Nouveau groupe",
|
||||
"CreatePreset": "Nouveau réglage",
|
||||
"End": "Fin",
|
||||
"EndDescription": "Dernière LED de ce groupe",
|
||||
"GroupSubTitle": "Début: {start}, Fin: {end}",
|
||||
"Groups": "Groupes",
|
||||
"LightGroups": "{name} - Groupes",
|
||||
"LightPresets": "{name} - Réglages",
|
||||
"Miscellaneous": "Divers",
|
||||
"Name": "Nom",
|
||||
"NoDevicesFound": "Pas trouvé d'appareil",
|
||||
"NoGroupFound": "Pas trouvé de groupe",
|
||||
"NoPresetFound": "Pas trouvé de réglage",
|
||||
"Presets": "Réglages",
|
||||
"Start": "Début",
|
||||
"StartDescription": "Première LED de ce groupe",
|
||||
"UnableToLoadLight": "Impossible de charger la lumière",
|
||||
"UnableToLoadPreset": "Impossible de charger le réglage"
|
||||
},
|
||||
"Store": "magasin",
|
||||
"Update": "mise à jour"
|
||||
},
|
||||
"Timelapse": {
|
||||
"AllFiles": "Tous",
|
||||
@@ -1030,5 +1105,28 @@
|
||||
"Variable": "Variable",
|
||||
"Video": "Vidéo"
|
||||
},
|
||||
"title": "Français"
|
||||
"title": "Français",
|
||||
"BedScrews": {
|
||||
"Abort": "annuler",
|
||||
"Accept": "accepter",
|
||||
"Adjusted": "ajusté",
|
||||
"Description": "Cliquez sur <b>ADJUSTED</b> si la vis courante a été ajustée. Cliquez sur <b>ACCEPT</b> pour continuer sans ajustement.",
|
||||
"Headline": "Vis du plateau",
|
||||
"ScrewAccepted": "Vis acceptée",
|
||||
"ScrewIndex": "Index de la vis",
|
||||
"ScrewName": "Nom de la vis",
|
||||
"ScrewOutput": "{current} de {max}"
|
||||
},
|
||||
"ManualProbe": {
|
||||
"Abort": "annuler",
|
||||
"Accept": "accepter",
|
||||
"Advanced": "avancé",
|
||||
"Headline": "Mesure manuelle"
|
||||
},
|
||||
"ScrewsTiltAdjust": {
|
||||
"Accept": "accepter",
|
||||
"Base": "Base",
|
||||
"ErrorText": "Quelque chose s'est mal passé durant le processus de mesure",
|
||||
"Headline": "Ajustement de niveau par vis"
|
||||
}
|
||||
}
|
||||
+52
-8
@@ -52,6 +52,7 @@
|
||||
"Complete": "完了 - {filename}",
|
||||
"Error": "エラー!",
|
||||
"Pause": "一時停止",
|
||||
"PrinterOff": "プリンター オフ",
|
||||
"Printing": "{percent}% 印刷中 - {filename}",
|
||||
"PrintingETA": "{percent}% 印刷中 - 完了時刻: {eta} - {filename}"
|
||||
},
|
||||
@@ -109,8 +110,8 @@
|
||||
},
|
||||
"BedScrews": {
|
||||
"Abort": "中止",
|
||||
"Adjusted": "調整済み",
|
||||
"Accept": "確認",
|
||||
"Adjusted": "調整済み",
|
||||
"Description": "現在のスクリューの調整が済んだら<b>調整済み</b>をクリックしてください。<b>確認</b>をクリックすると調整せずに先に進みます。",
|
||||
"Headline": "ベッドスクリュー",
|
||||
"ScrewAccepted": "スクリュー確認済み",
|
||||
@@ -164,11 +165,13 @@
|
||||
"Yes": "はい"
|
||||
},
|
||||
"Files": {
|
||||
"AddBatchToQueue": "ジョブキューにバッチを追加",
|
||||
"AddToQueue": "ジョブキューに追加",
|
||||
"AllFiles": "すべてのファイル",
|
||||
"BedTemp": "ベッド温度",
|
||||
"Cancel": "取り消し",
|
||||
"ChamberTemp": "チャンバー温度",
|
||||
"Count": "回数",
|
||||
"Create": "作成",
|
||||
"CreateNewDirectory": "新規ディレクトリの作成",
|
||||
"CurrentPath": "現在のパス",
|
||||
@@ -253,7 +256,9 @@
|
||||
"Tracking": "トラッキング",
|
||||
"Transparency": "透明",
|
||||
"Ultra": "ウルトラ",
|
||||
"VoxelMode": "ボクセルモード (ASMBL)"
|
||||
"VoxelMode": "ボクセルモード (ASMBL)",
|
||||
"ShowGCode": "Gコードを表示",
|
||||
"CNCMode": "CNCモード"
|
||||
},
|
||||
"Heightmap": {
|
||||
"Abort": "中止",
|
||||
@@ -266,8 +271,8 @@
|
||||
"Max": "最大",
|
||||
"Min": "最小",
|
||||
"Name": "名前",
|
||||
"Size": "サイズ",
|
||||
"Variance": "変動"
|
||||
"Range": "範囲",
|
||||
"Size": "サイズ"
|
||||
},
|
||||
"DeleteBedMeshProfile": "ベッドメッシュのプロファイルを削除",
|
||||
"DoYouReallyWantToDelete": "プロファイル \"{name}\"を削除します。よろしいですか?",
|
||||
@@ -303,6 +308,7 @@
|
||||
"AvgPrinttime": "平均印刷時間",
|
||||
"Cancel": "取り消し",
|
||||
"CreateNote": "メモ作成",
|
||||
"Chart": "チャート",
|
||||
"Delete": "削除",
|
||||
"DeleteSelectedQuestion": "選択された {count}個のジョブを削除します。よろしいですか?",
|
||||
"Details": "詳細",
|
||||
@@ -354,6 +360,7 @@
|
||||
"Others": "その他",
|
||||
"server_exit": "サーバー終了"
|
||||
},
|
||||
"Table": "テーブル",
|
||||
"TitleExportHistory": "履歴をエクスポート",
|
||||
"TitleRefreshHistory": "履歴を更新",
|
||||
"TitleSettings": "設定",
|
||||
@@ -365,7 +372,12 @@
|
||||
},
|
||||
"JobQueue": {
|
||||
"AllJobs": "全ジョブ",
|
||||
"ChangeCount": "回数変更",
|
||||
"Cancel": "取り消し",
|
||||
"Count": "回数",
|
||||
"Empty": "空",
|
||||
"InvalidCountEmpty": "回数は空であってはなりません!",
|
||||
"InvalidCountGreaterZero": "回数は0以上でなければなりません!",
|
||||
"JobQueue": "ジョブキュー",
|
||||
"Jobs": "ジョブ",
|
||||
"Pause": "一時停止",
|
||||
@@ -417,7 +429,13 @@
|
||||
"TRIGGERED": "トリガー"
|
||||
},
|
||||
"LogfilesPanel": {
|
||||
"Logfiles": "ログファイル"
|
||||
"Accept": "確認",
|
||||
"Cancel": "取り消し",
|
||||
"Logfiles": "ログファイル",
|
||||
"Rollover": "ログファイルのロールオーバー",
|
||||
"RolloverDescription": "リセットするログを選んでください:",
|
||||
"RolloverToastSuccessful": "\"{name}\"ログファイルのリセットに成功しました。",
|
||||
"RolloverToastFailed": "\"{name}\"ログファイルのロールオーバー: {message}"
|
||||
},
|
||||
"SystemPanel": {
|
||||
"Constants": "定数",
|
||||
@@ -507,9 +525,12 @@
|
||||
"WebcamOff": "オフ"
|
||||
},
|
||||
"KlippyStatePanel": {
|
||||
"CheckKlippyAndUdsAddress": "Klipperサービスが稼働しているか、moonraker.confにklippy_uds_addressが正しく設定されているかを確認してください。",
|
||||
"FirmwareRestart": "ファームウェア再始動",
|
||||
"KlipperCheck": "Klipperサービスが動いていて、UDS (Unix Domain Socket)が設定されているかどうか確認してください。",
|
||||
"MoonrakerCannotConnect": "MoonrakerはKlipperに接続できません!",
|
||||
"PowerOn": "電源オン",
|
||||
"PrinterSwitchedOff": "プリンターの電源はオフになっています",
|
||||
"PrinterSwitchedOffDescription": "現在、プリンターの電源がオフになっており、Klipperは接続することができません。プリンターの電源を入れるには、下のボタンをクリックしてください。:",
|
||||
"Restart": "再始動",
|
||||
"ServiceReports": "{service} レポート"
|
||||
},
|
||||
@@ -584,6 +605,18 @@
|
||||
"Layer": "層",
|
||||
"Max": "最大",
|
||||
"ObjectHeight": "印刷物の高さ",
|
||||
"PauseAtLayer": {
|
||||
"Abort": "中断",
|
||||
"Accept": "確認",
|
||||
"AtLayer": "層で",
|
||||
"Call": "呼び出し",
|
||||
"DescriptionPauseAtLayerActive": "この機能は既に有効になっており、{layer}層目で\"{call}\"が呼び出されます。再度コマンドを呼び出すと、この設定は上書きされます。",
|
||||
"DescriptionPauseNextLayerActive": "この機能は既に有効になっており、次の層で\"{call}\"が呼び出されます。",
|
||||
"Layer": "層",
|
||||
"NextLayer": "次の層",
|
||||
"PauseAtLayer": "層で一時停止",
|
||||
"Type": "タイプ"
|
||||
},
|
||||
"PausePrint": "印刷一時停止",
|
||||
"Print": "印刷",
|
||||
"PrintTime": "印刷時間",
|
||||
@@ -872,7 +905,6 @@
|
||||
"NoGroupFound": "グループが見つかりませんでした。",
|
||||
"NoPresetFound": "プリセットが見つかりませんでした。",
|
||||
"Presets": "プリセット",
|
||||
"PresetSubTitle": "赤: {red}, 緑: {green}, 青: {blue}, 白: {white}",
|
||||
"Start": "開始",
|
||||
"StartDescription": "このグループ最初のLEDです。",
|
||||
"UnableToLoadLight": "照明を読み込めませんでした。",
|
||||
@@ -987,6 +1019,8 @@
|
||||
"GcodeThumbnails": "Gコードのサムネイル",
|
||||
"GcodeThumbnailsDescription": "ボタンをクリックすると、説明書に移動します。",
|
||||
"Guide": "ガイド",
|
||||
"HideSaveConfigButtonForBedMesh": "ベッドメッシュ変更時の設定保存ボタンを表示しない",
|
||||
"HideSaveConfigButtonForBedMeshDescription": "ベッドメッシュの変更のみが保存の保留をされている時に、設定保存ボタンを表示しない。",
|
||||
"LockSliders": "タッチスクリーンデバイスのスライダーをロックする",
|
||||
"LockSlidersDelay": "スライダーロックの遅延時間",
|
||||
"LockSlidersDelayDescription": "スライダーは一定時間後にロックされます。 0か空白のままに設定すると、スライダーはページの変更か再読み込み時のみロックされるようになります。",
|
||||
@@ -996,6 +1030,8 @@
|
||||
"NavigationStyleDescription": "ナビゲーションの外観を変更",
|
||||
"NavigationStyleIconsAndText": "アイコン + テキスト",
|
||||
"NavigationStyleIconsOnly": "アイコンのみ",
|
||||
"PowerDeviceName": "プリンター電源機器",
|
||||
"PowerDeviceNameDescription": "プリンターの電源投入に使用するMoonrakerの電源デバイスを選択します。",
|
||||
"Primary": "一次",
|
||||
"ShowWebcamInNavigation": "ナビゲーションにカメラを表示",
|
||||
"UiSettings": "UI設定"
|
||||
@@ -1017,6 +1053,7 @@
|
||||
"IconNozzle": "ノズル",
|
||||
"IconPrinter": "プリンター",
|
||||
"Ipstream": "IPカメラ",
|
||||
"Hlsstream": "HLS Stream",
|
||||
"Mjpegstreamer": "MJPEG-Streamer",
|
||||
"MjpegstreamerAdaptive": "Adaptive MJPEG-Streamer (試験的)",
|
||||
"Name": "名前",
|
||||
@@ -1031,9 +1068,16 @@
|
||||
"UrlStream": "URL ストリーム",
|
||||
"Uv4lMjpeg": "UV4L-MJPEG",
|
||||
"Vertically": "垂直方向",
|
||||
"Webcams": "カメラ"
|
||||
"Webcams": "カメラ",
|
||||
"WebrtcCameraStreamer": "WebRTC (camera-streamer)"
|
||||
}
|
||||
},
|
||||
"ScrewsTiltAdjust": {
|
||||
"Accept": "確認",
|
||||
"Base": "ベース",
|
||||
"ErrorText": "プロービング過程で、問題が生じました。",
|
||||
"Headline": "スクリュー傾斜調整"
|
||||
},
|
||||
"Timelapse": {
|
||||
"AllFiles": "すべてのファイル",
|
||||
"Autorender": "自動レンダリング",
|
||||
|
||||
+134
-35
@@ -59,9 +59,9 @@
|
||||
"CannotUploadTheFile": "Kan het bestand niet uploaden!",
|
||||
"EmergencyStop": "Noodstop",
|
||||
"SAVE_CONFIG": "CONFIG OPSLAAN",
|
||||
"Uploading": "Uploaden",
|
||||
"UploadOfFileSuccessful": "Upload van {file} succesvol!",
|
||||
"UploadPrint": "Upload & Print"
|
||||
"UploadPrint": "Upload & Print",
|
||||
"Uploading": "Uploaden"
|
||||
},
|
||||
"TopCornerMenu": {
|
||||
"Cancel": "Annuleer",
|
||||
@@ -107,6 +107,17 @@
|
||||
"UpdatingDone": "Updaten van {software} voltooid!"
|
||||
}
|
||||
},
|
||||
"BedScrews": {
|
||||
"Abort": "annuleer",
|
||||
"Accept": "accepteer",
|
||||
"Adjusted": "aangepast",
|
||||
"Description": "Klik op <b>AANGEPAST</b> indien de huidige schroef aagepast is. Klik op <b>ACCEPTEER</b> om door te gaan zonder aanpassing.",
|
||||
"Headline": "Bed Schroeven",
|
||||
"ScrewAccepted": "Schroeven geaccepteerd",
|
||||
"ScrewIndex": "Schroef Index",
|
||||
"ScrewName": "Schroef Naam",
|
||||
"ScrewOutput": "{current} van {max}"
|
||||
},
|
||||
"ConnectionDialog": {
|
||||
"CannotConnectTo": "Kan niet verbinden met Moonraker ({host}).",
|
||||
"CheckMoonrakerLog": "Als deze melding vaker getoond wordt, kijk in de logs op:",
|
||||
@@ -153,11 +164,13 @@
|
||||
"Yes": "Ja"
|
||||
},
|
||||
"Files": {
|
||||
"AddBatchToQueue": "Voeg batch toe aan wachtrij",
|
||||
"AddToQueue": "Voeg aan wachtrij toe",
|
||||
"AllFiles": "Alle",
|
||||
"BedTemp": "Bed Temp.",
|
||||
"Cancel": "Annuleer",
|
||||
"ChamberTemp": "Kamer Temp.",
|
||||
"Count": "Aantal",
|
||||
"Create": "Creëer",
|
||||
"CreateNewDirectory": "Creëer nieuwe Map",
|
||||
"CurrentPath": "Huidige pad",
|
||||
@@ -181,6 +194,8 @@
|
||||
"GCodeFiles": "G-Code Bestanden",
|
||||
"GcodesRootDirectoryDoesntExists": "Geen G-Code directory gevonden. Controleer de optie \"path\" in de [virtual_sdcard] sectie van de Klipper configuratie.",
|
||||
"HiddenFiles": "Verborgen bestanden",
|
||||
"InvalidNameAlreadyExists": "Naam bestaat al, kies een andere naam.",
|
||||
"InvalidNameEmpty": "Naam mag niet leeg zijn!",
|
||||
"LastEndTime": "Laatste eindtijd",
|
||||
"LastFilamentUsed": "Laatst gebruikte filament",
|
||||
"LastModified": "Laatst bewerkt",
|
||||
@@ -193,9 +208,9 @@
|
||||
"NozzleDiameter": "Nozzle Diameter",
|
||||
"ObjectHeight": "Objecthoogte",
|
||||
"Preheat": "Voorverwarmen",
|
||||
"PrintedFiles": "Geprinte bestanden",
|
||||
"PrintStart": "Start print",
|
||||
"PrintTime": "Printtijd",
|
||||
"PrintedFiles": "Geprinte bestanden",
|
||||
"RefreshCurrentDirectory": "Ververs huidige map",
|
||||
"Rename": "Hernoem",
|
||||
"RenameDirectory": "Hernoem map",
|
||||
@@ -218,6 +233,7 @@
|
||||
"DropFilesToUploadFiles": "Sleep bestand hier om te uploaden."
|
||||
},
|
||||
"GCodeViewer": {
|
||||
"CNCMode": "CNC Modus",
|
||||
"ClearLoadedFile": "Leeg",
|
||||
"ColorMode": "Kleur modus",
|
||||
"Downloading": "Downloaden",
|
||||
@@ -230,8 +246,9 @@
|
||||
"Max": "Max",
|
||||
"Medium": "Medium",
|
||||
"ReloadRequired": "Herladen nodig",
|
||||
"Rendering": "Renderen",
|
||||
"RenderQuality": "Render kwaliteit",
|
||||
"Rendering": "Renderen",
|
||||
"ShowGCode": "Toon G-Code",
|
||||
"ShowObjectSelection": "Toon object selectie",
|
||||
"ShowToolhead": "Toon Toolhead",
|
||||
"ShowTravelMoves": "Toon bewegingen",
|
||||
@@ -253,8 +270,8 @@
|
||||
"Max": "Max",
|
||||
"Min": "Min",
|
||||
"Name": "Naam",
|
||||
"Size": "Grootte",
|
||||
"Variance": "Variatie"
|
||||
"Range": "Bereik",
|
||||
"Size": "Grootte"
|
||||
},
|
||||
"DeleteBedMeshProfile": "Verwijder Bed Mesh Profiel",
|
||||
"DoYouReallyWantToDelete": "Weet je zeker dat je het profiel \"{name}\" wil verwijderen?",
|
||||
@@ -289,6 +306,7 @@
|
||||
"AllJobs": "Alle",
|
||||
"AvgPrinttime": "Gemiddelde printtijd",
|
||||
"Cancel": "Annuleer",
|
||||
"Chart": "Grafiek",
|
||||
"CreateNote": "Creëer notitie",
|
||||
"Delete": "Verwijder",
|
||||
"DeleteSelectedQuestion": "Weet je zeker dat je {count} geselecteerde jobs wil verwijderen?",
|
||||
@@ -332,15 +350,16 @@
|
||||
"Statistics": "Statistieken",
|
||||
"Status": "Status",
|
||||
"StatusValues": {
|
||||
"Others": "Overige",
|
||||
"cancelled": "Geannuleerd",
|
||||
"completed": "Voltooid",
|
||||
"error": "Fout",
|
||||
"in_progress": "Bezig",
|
||||
"klippy_disconnect": "Klippy verbinding verbroken",
|
||||
"klippy_shutdown": "Klippy afgesloten",
|
||||
"Others": "Overige",
|
||||
"server_exit": "Server exit"
|
||||
},
|
||||
"Table": "Tabel",
|
||||
"TitleExportHistory": "Export geschiedenis",
|
||||
"TitleRefreshHistory": "Ververs geschiedenis",
|
||||
"TitleSettings": "Instellingen",
|
||||
@@ -352,7 +371,12 @@
|
||||
},
|
||||
"JobQueue": {
|
||||
"AllJobs": "Alle jobs",
|
||||
"Cancel": "Annuleer",
|
||||
"ChangeCount": "Verander aantal",
|
||||
"Count": "Aantal",
|
||||
"Empty": "Leeg",
|
||||
"InvalidCountEmpty": "Invoer mag niet leeg zijn!",
|
||||
"InvalidCountGreaterZero": "Invoer moet groter dan 0 zijn!",
|
||||
"JobQueue": "Job wachtrij",
|
||||
"Jobs": "Jobs",
|
||||
"Pause": "Pauze",
|
||||
@@ -400,11 +424,17 @@
|
||||
"Endstop": "Endstop",
|
||||
"EndstopInfo": "Druk op de sync-knop rechtsoner om de huidige endstop status te laden.",
|
||||
"Endstops": "Endstops",
|
||||
"open": "OPEN",
|
||||
"TRIGGERED": "GETRIGGERED"
|
||||
"TRIGGERED": "GETRIGGERED",
|
||||
"open": "OPEN"
|
||||
},
|
||||
"LogfilesPanel": {
|
||||
"Logfiles": "Logbestanden"
|
||||
"Accept": "accepteer",
|
||||
"Cancel": "annuleer",
|
||||
"Logfiles": "Logbestanden",
|
||||
"Rollover": "Roteer logs",
|
||||
"RolloverDescription": "Selecteer welke logs moeten roteren:",
|
||||
"RolloverToastFailed": "Roteren van log voor \"{name}\": {message}",
|
||||
"RolloverToastSuccessful": "Log voor \"{name}\" was succesvol geroteerd."
|
||||
},
|
||||
"SystemPanel": {
|
||||
"Constants": "Constanten",
|
||||
@@ -448,13 +478,19 @@
|
||||
"PackagesCanBeUpgraded": "pakketten kunnen worden geüpgraded",
|
||||
"System": "Systeem",
|
||||
"Unknown": "onbekend",
|
||||
"UpToDate": "up-to-date",
|
||||
"Update": "update",
|
||||
"UpdateAll": "Update alle componenten",
|
||||
"UpdateManager": "Update Manager",
|
||||
"Upgrade": "upgrade",
|
||||
"UpToDate": "up-to-date"
|
||||
"Upgrade": "upgrade"
|
||||
}
|
||||
},
|
||||
"ManualProbe": {
|
||||
"Abort": "annuleer",
|
||||
"Accept": "accepteer",
|
||||
"Advanced": "Geavanceerd",
|
||||
"Headline": "Handmatige Probe"
|
||||
},
|
||||
"Panels": {
|
||||
"ExtruderControlPanel": {
|
||||
"Allowed": "Toegestaan",
|
||||
@@ -488,10 +524,14 @@
|
||||
"WebcamOff": "Uit"
|
||||
},
|
||||
"KlippyStatePanel": {
|
||||
"CheckKlippyAndUdsAddress": "Controleer of de Klipper service draait en klippy_uds_address correct is geconfigureerd in moonraker.conf.",
|
||||
"FirmwareRestart": "Firmware Herstart",
|
||||
"KlipperCheck": "Controleer of de Klipper service draait en een UDS (Unix Domain Socket) geconfigureerd is.",
|
||||
"MoonrakerCannotConnect": "Moonraker kan niet met Klipper verbinden!",
|
||||
"Restart": "Herstart"
|
||||
"PowerOn": "Printer inschakelen",
|
||||
"PrinterSwitchedOff": "Printer is uitgeschakeld",
|
||||
"PrinterSwitchedOffDescription": "De printer is uitgeschakeld en Klipper kan niet verbinden. Om de printer in te schakelen, klik op de onderstaande knop:",
|
||||
"Restart": "Herstart",
|
||||
"ServiceReports": "{service} rapportages"
|
||||
},
|
||||
"MachineSettingsPanel": {
|
||||
"Headline": "Machine instellingen",
|
||||
@@ -506,6 +546,12 @@
|
||||
"Headline": "Macros",
|
||||
"Send": "verstuur"
|
||||
},
|
||||
"MinSettingsPanel": {
|
||||
"IncludeMainsailCfg": "Zorg dat je mainsail.cfg in je printer.cfg geïnclude hebt.",
|
||||
"IsNotDefinedInConfig": "is niet gedefinieerd in de config.",
|
||||
"MissingConfiguration": "Ontbrekende configuratie",
|
||||
"MoreInformation": "meer informatie"
|
||||
},
|
||||
"MiniconsolePanel": {
|
||||
"Headline": "Console",
|
||||
"HideTemperatures": "Verberg temperaturen",
|
||||
@@ -513,14 +559,14 @@
|
||||
"SendCode": "Verzend code...",
|
||||
"SetupConsole": "Console Instellingen"
|
||||
},
|
||||
"MinSettingsPanel": {
|
||||
"IncludeMainsailCfg": "Zorg dat je mainsail.cfg in je printer.cfg geïnclude hebt.",
|
||||
"IsNotDefinedInConfig": "is niet gedefinieerd in de config.",
|
||||
"MissingConfiguration": "Ontbrekende configuratie",
|
||||
"MoreInformation": "meer informatie"
|
||||
},
|
||||
"MiscellaneousPanel": {
|
||||
"Headline": "Overige",
|
||||
"Light": {
|
||||
"Blue": "blauw",
|
||||
"Green": "groen",
|
||||
"Red": "rood",
|
||||
"White": "wit"
|
||||
},
|
||||
"RunoutSensor": {
|
||||
"Detected": "gedetecteerd",
|
||||
"Disabled": "uitgeschakeld",
|
||||
@@ -537,16 +583,16 @@
|
||||
"CancelPrint": "Annuleer print",
|
||||
"ClearPrintStats": "Wis print statistieken",
|
||||
"Difference": "Verschil",
|
||||
"ETA": "ETA",
|
||||
"EmptyGcodes": "Geen G-Code beschikbaar.",
|
||||
"EmptyJobqueue": "Er zijn geen bestanden in de wachtrij.",
|
||||
"Estimate": "Schatting",
|
||||
"ETA": "ETA",
|
||||
"ExcludeObject": {
|
||||
"Cancel": "annuleer",
|
||||
"Excluded": "Uitgesloten",
|
||||
"ExcludeObject": "Object uitsluiten",
|
||||
"ExcludeObjectHeadline": "Object uitsluiten",
|
||||
"ExcludeObjectText": "Weet je zeker dat je \"{name}\" wil uitsluiten?"
|
||||
"ExcludeObjectText": "Weet je zeker dat je \"{name}\" wil uitsluiten?",
|
||||
"Excluded": "Uitgesloten"
|
||||
},
|
||||
"Filament": "Filament",
|
||||
"File": "Bestand",
|
||||
@@ -558,6 +604,18 @@
|
||||
"Layer": "Laag",
|
||||
"Max": "max",
|
||||
"ObjectHeight": "Objecthoogte",
|
||||
"PauseAtLayer": {
|
||||
"Abort": "annuleer",
|
||||
"Accept": "accepteer",
|
||||
"AtLayer": "op Laag",
|
||||
"Call": "Uitvoeren",
|
||||
"DescriptionPauseAtLayerActive": "Deze functie is al actief en zal \"{call}\" uitvoeren op laag {layer}. Wanneer het commando nogmaals wordt uitgevoerd, worden deze instellingen overschreven.",
|
||||
"DescriptionPauseNextLayerActive": "Deze functie is al actief en voert \"{call}\" uit bij de volgende laag.",
|
||||
"Layer": "Laag",
|
||||
"NextLayer": "volgende Laag",
|
||||
"PauseAtLayer": "Pauzeer op Laag",
|
||||
"Type": "Type"
|
||||
},
|
||||
"PausePrint": "Pauzeer print",
|
||||
"Print": "Print",
|
||||
"PrintTime": "Printtijd",
|
||||
@@ -592,13 +650,13 @@
|
||||
"ShowNameInList": "Toon {name} in de lijst",
|
||||
"State": "Status",
|
||||
"Target": "Doel",
|
||||
"TemperaturesInChart": "Temperatuur [°C]",
|
||||
"TempTooHigh": "Temperatuur te hoog voor {name}! (max: {max})",
|
||||
"TempTooLow": "Temperatuur te laag voor {name}! (min: {min})"
|
||||
"TempTooLow": "Temperatuur te laag voor {name}! (min: {min})",
|
||||
"TemperaturesInChart": "Temperatuur [°C]"
|
||||
},
|
||||
"ToolheadControlPanel": {
|
||||
"Absolute": "absoluut",
|
||||
"ALL": "ALLES",
|
||||
"Absolute": "absoluut",
|
||||
"Headline": "Toolhead",
|
||||
"PleaseConfigureSteps": "Configureer steps",
|
||||
"Position": "Positie",
|
||||
@@ -648,6 +706,12 @@
|
||||
"Timelapse": "Timelapse",
|
||||
"Webcam": "Webcam"
|
||||
},
|
||||
"ScrewsTiltAdjust": {
|
||||
"Accept": "accepteer",
|
||||
"Base": "basis",
|
||||
"ErrorText": "Iets ging fout bij het proben.",
|
||||
"Headline": "Schroef kantel-aanpassing"
|
||||
},
|
||||
"SelectPrinterDialog": {
|
||||
"AddPrinter": "Voeg printer toe",
|
||||
"AddPrintersToJson": "Voeg de printers toe aan de config.json",
|
||||
@@ -751,6 +815,8 @@
|
||||
"ShowAxes": "Toon Assen"
|
||||
},
|
||||
"GeneralTab": {
|
||||
"12hours": "12-uurs ({time})",
|
||||
"24hours": "24-uurs ({time})",
|
||||
"Backup": "Backup",
|
||||
"BackupDialog": "Selecteer alle secties waarvan je een backup wilt maken:",
|
||||
"CalcEstimateTime": "Bereken geschatte tijd",
|
||||
@@ -766,6 +832,7 @@
|
||||
"Slicer": "Slicer (M73)"
|
||||
},
|
||||
"CannotReadJson": "Kan het backup bestand niet lezen/verwerken. ",
|
||||
"DateFormat": "Datumformaat",
|
||||
"DbConsoleHistory": "Console Geschiedenis",
|
||||
"DbHistoryJobs": "Geschiedenis Jobs",
|
||||
"DbHistoryTotals": "Geschiedenis Totalen",
|
||||
@@ -785,7 +852,8 @@
|
||||
"PrinterName": "Printer naam",
|
||||
"Reset": "reset",
|
||||
"Restore": "Herstellen",
|
||||
"RestoreDialog": "Kies alle secties die je wil herstellen:"
|
||||
"RestoreDialog": "Kies alle secties die je wil herstellen:",
|
||||
"TimeFormat": "Tijdformaat"
|
||||
},
|
||||
"InterfaceSettings": "Interface Instellingen",
|
||||
"MacrosTab": {
|
||||
@@ -797,8 +865,8 @@
|
||||
"CountMacros": "geen Macros toegevoegd | {count} Macro | {count} Macros",
|
||||
"Custom": "custom",
|
||||
"CustomColor": "Custom Kleur",
|
||||
"DeletedMacro": "Verwijderde macro",
|
||||
"DeleteMacroFromGroup": "Verwijder macro uit groep.",
|
||||
"DeletedMacro": "Verwijderde macro",
|
||||
"EditGroup": "Bewerk groep",
|
||||
"Error": "fout",
|
||||
"Expert": "Expert",
|
||||
@@ -808,10 +876,10 @@
|
||||
"Macrogroups": "Groepen",
|
||||
"Macros": "Macros",
|
||||
"Management": "Beheer",
|
||||
"NOMacros": "geen macros gevonden...",
|
||||
"Name": "Naam",
|
||||
"NoAvailableMacros": "Geen macros beschikbaar.",
|
||||
"NoGroups": "Geen groepen gevonden...",
|
||||
"NOMacros": "geen macros gevonden...",
|
||||
"NoMacrosInGroup": "Geen macros in deze groep.",
|
||||
"Primary": "primair",
|
||||
"Secondary": "secundair",
|
||||
@@ -824,6 +892,29 @@
|
||||
"UnknownGroup": "Onbekende Groep",
|
||||
"Warning": "waarschuwing"
|
||||
},
|
||||
"MiscellaneousTab": {
|
||||
"AddGroup": "voeg groep toe",
|
||||
"AddPreset": "voeg preset toe",
|
||||
"Color": "Kleur",
|
||||
"CreateGroup": "Maak groep aan",
|
||||
"CreatePreset": "Maak preset aan",
|
||||
"End": "Einde",
|
||||
"EndDescription": "Laatste LED van deze groep.",
|
||||
"GroupSubTitle": "Start: {start}, Einde: {end}",
|
||||
"Groups": "Groepen",
|
||||
"LightGroups": "{name} - Groepen",
|
||||
"LightPresets": "{name} - Presets",
|
||||
"Miscellaneous": "Overige",
|
||||
"Name": "Naam",
|
||||
"NoDevicesFound": "Geen apparaten gevonden",
|
||||
"NoGroupFound": "Geen groep gevonden",
|
||||
"NoPresetFound": "Geen presets gevonden",
|
||||
"Presets": "Presets",
|
||||
"Start": "Start",
|
||||
"StartDescription": "Eerste LED van deze groep.",
|
||||
"UnableToLoadLight": "Niet gelukt het licht te laden",
|
||||
"UnableToLoadPreset": "Niet gelukt de preset te laden"
|
||||
},
|
||||
"PresetsTab": {
|
||||
"AddPreset": "voeg preset toe",
|
||||
"Cooldown": "Afkoelen",
|
||||
@@ -851,6 +942,7 @@
|
||||
"UpdatePrinter": "Update Printer",
|
||||
"UseConfigJson": "InstanceDB = JSON gedetecteerd. Gebruik de config.json om de printerlijst aan te passen."
|
||||
},
|
||||
"Store": "opslaan",
|
||||
"TimelapseTab": {
|
||||
"Autorender": "Autorender",
|
||||
"AutorenderDescription": "Wanneer ingeschakeld, zal de timelapse video automatisch renderen aan het eind van de print",
|
||||
@@ -858,8 +950,6 @@
|
||||
"CameraDescription": "Selecteer welke camera gebruikt wordt",
|
||||
"ConstantRateFactor": "Constant Rate Factor",
|
||||
"ConstantRateFactorDescription": "Dit bepaalt de kwaliteit vs bestandsgrootte van de gerenderde video. De CRF schaal is van 0-51 waar 0 zonder verlies is, 23 de standaard en 51 de slechts mogelijke kwaliteit. Een lagere waarde geeft over het algemeen betere kwaliteit en een gangbare waarde is 17-28. Zie 17 of 18 als praktisch zonder kwaliteitsverlies.",
|
||||
"duplicatelastframe": "duplicatelastframe",
|
||||
"duplicatelastframeDescription": "Herhaal het laatste frame aan het eind van de video",
|
||||
"Enabled": "Ingeschakeld",
|
||||
"EnabledDescription": "Indien uitgeschakeld, worden gcode macros genegeerd en autorender overgeslagen.",
|
||||
"Extraoutputparams": "Extraoutputparams",
|
||||
@@ -875,12 +965,12 @@
|
||||
"ModeDescription": "Kies tussen Layermacro en Hyperlapse (tijd gebaseerde) modus",
|
||||
"OutputFramerate": "Uitvoer Framerate",
|
||||
"OutputFramerateDescription": "Definieert de framerate van de video. Note: dit wordt genegeerd wanneer variable_fps is ingeschakeld",
|
||||
"ParkTime": "Parkeerduur",
|
||||
"ParkTimeDescription": "Voeg extra tijd toe bij het parkeren.",
|
||||
"Parkhead": "Parkhead",
|
||||
"ParkheadDescription": "Indien ingeschakeld, wordt de printkop geparkeerd voor een foto te nemen.",
|
||||
"Parkpos": "Parkeer postitie",
|
||||
"ParkposDescription": "Selecteer de parkeer positie",
|
||||
"ParkTime": "Parkeerduur",
|
||||
"ParkTimeDescription": "Voeg extra tijd toe bij het parkeren.",
|
||||
"Pixelformat": "Pixelformat",
|
||||
"PixelformatDescription": "Definieer het pixelformaat van de video",
|
||||
"PosDZ": "Positie Z",
|
||||
@@ -914,9 +1004,11 @@
|
||||
"VariableFps": "Variabele FPS",
|
||||
"VariableFpsDescription": "Indien ingeschakeld, wordt de framerate van de video berekend op basis van de beoogde lengte",
|
||||
"VariableFpsMax": "Variabele FPS max",
|
||||
"VariableFpsMaxDescription": "",
|
||||
"VariableFpsMaxDescription": "Maximale waarde voor variabele FPS",
|
||||
"VariableFpsMin": "Variabele FPS max",
|
||||
"VariableFpsMinDescription": ""
|
||||
"VariableFpsMinDescription": "Minimale waarde voor variabele FPS",
|
||||
"duplicatelastframe": "duplicatelastframe",
|
||||
"duplicatelastframeDescription": "Herhaal het laatste frame aan het eind van de video"
|
||||
},
|
||||
"UiSettingsTab": {
|
||||
"BoolBigThumbnail": "Grote thumbnail",
|
||||
@@ -932,6 +1024,8 @@
|
||||
"GcodeThumbnails": "Gcode thumbnails",
|
||||
"GcodeThumbnailsDescription": "Klik op de knop om naar de instructies te gaan.",
|
||||
"Guide": "Richtlijnen",
|
||||
"HideSaveConfigButtonForBedMesh": "Verberg SAVE_CONFIG knop voor bed_mesh aanpassingen",
|
||||
"HideSaveConfigButtonForBedMeshDescription": "Verberg SAVE_CONFIG,wanneer alleen bed_mesh aanpassingen opgeslagen hoeven te worden in Klipper.",
|
||||
"LockSliders": "Zet de sliders op slot op touchscreen apparaten",
|
||||
"LockSlidersDelay": "Slot vertraging",
|
||||
"LockSlidersDelayDescription": "Na de ingestelde vertraging gaan de sliders op slot. Wanneer ze op 0 worden ingesteld of leeg worden gelaten, gaan ze alleen op slot bij verversen van de pagina.",
|
||||
@@ -941,16 +1035,20 @@
|
||||
"NavigationStyleDescription": "Pas de navigatiestijl aan",
|
||||
"NavigationStyleIconsAndText": "Iconen + Tekst",
|
||||
"NavigationStyleIconsOnly": "Alleen iconen",
|
||||
"PowerDeviceName": "Printer power apparaat",
|
||||
"PowerDeviceNameDescription": "Selecteer welk Moonraker power apparaat gebruikt moet worden om de printer te schakelen.",
|
||||
"Primary": "Primair",
|
||||
"ShowWebcamInNavigation": "Toon Webcam in de navigatie",
|
||||
"UiSettings": "UI Instellingen"
|
||||
},
|
||||
"Update": "updaten",
|
||||
"WebcamsTab": {
|
||||
"AddWebcam": "voeg webcam toe",
|
||||
"CreateWebcam": "Nieuwe Webcam",
|
||||
"EditCrowsnestConf": "Bewerk crowsnest.conf",
|
||||
"EditWebcam": "Bewerk Webcam",
|
||||
"FlipWebcam": "Flip webcam beeld:",
|
||||
"Hlsstream": "HLS Stream",
|
||||
"Horizontally": "horizontaal",
|
||||
"IconBed": "Bed",
|
||||
"IconCam": "Camera",
|
||||
@@ -1029,5 +1127,6 @@
|
||||
"Variable": "Variable",
|
||||
"Video": "Video"
|
||||
},
|
||||
"_last_update": "2023-02-21",
|
||||
"title": "Nederlands"
|
||||
}
|
||||
+62
-6
@@ -107,6 +107,17 @@
|
||||
"UpdatingDone": "{software} güncellemesi tamamlandı!"
|
||||
}
|
||||
},
|
||||
"BedScrews": {
|
||||
"Abort": "iptal et",
|
||||
"Accept": "kabul et",
|
||||
"Adjusted": "ayarlanmış",
|
||||
"Description": "Mevcut vida ayarlandıysa <b>ADJUSTED</b> seçeneğine tıklayın. Ayarlama yapmadan devam etmek için <b>ACCEPT</b>'i tıklayın.",
|
||||
"Headline": "Tabla Vidaları",
|
||||
"ScrewAccepted": "Vidalar kabul edildi",
|
||||
"ScrewIndex": "Vida Endeksi",
|
||||
"ScrewName": "Vida İsmi",
|
||||
"ScrewOutput": "{current} / {max}"
|
||||
},
|
||||
"ConnectionDialog": {
|
||||
"CannotConnectTo": "Moonraker'a ({host}) bağlanılamıyor.",
|
||||
"CheckMoonrakerLog": "Bu mesaj tekrar tekrar görünüyorsa, lütfen şu adreste bulunan günlük dosyasına bakın:",
|
||||
@@ -144,7 +155,7 @@
|
||||
"UnsavedChanges": "Kaydedilmemiş Değişiklikler",
|
||||
"UnsavedChangesMessage": "{filename} dosyasında yaptığınız değişiklikleri kaydetmek istiyor musunuz??",
|
||||
"UnsavedChangesSubMessage": "Kaydetmezseniz değişiklikleriniz kaybolacak. Bu mesajı editör ayarlarından devre dışı bırakabilirsiniz.",
|
||||
"Uploading": "Karşya Yükleniyor"
|
||||
"Uploading": "Karşıya Yükleniyor"
|
||||
},
|
||||
"EmergencyStopDialog": {
|
||||
"AreYouSure": "Emin Misiniz?",
|
||||
@@ -181,6 +192,8 @@
|
||||
"GCodeFiles": "G-Kod Dosyaları",
|
||||
"GcodesRootDirectoryDoesntExists": "G-Kod dizini bulunamadı. Lütfen Klipper yapılandırmasının [virtual_sdcard] bölümündeki \"path\" seçeneğini işaretleyin.",
|
||||
"HiddenFiles": "Gizli Dosyalar",
|
||||
"InvalidNameAlreadyExists": "İsim zaten var, lütfen başka bir isim seçin.",
|
||||
"InvalidNameEmpty": "Giriş boş olmamalıdır!",
|
||||
"LastEndTime": "Son Bitiş Zamanı",
|
||||
"LastFilamentUsed": "Son Filament Kullanımı",
|
||||
"LastModified": "Son Düzenleme",
|
||||
@@ -253,8 +266,8 @@
|
||||
"Max": "Max",
|
||||
"Min": "Min",
|
||||
"Name": "İsim",
|
||||
"Size": "Boyut",
|
||||
"Variance": "Varyans"
|
||||
"Range": "Menzil",
|
||||
"Size": "Boyut"
|
||||
},
|
||||
"DeleteBedMeshProfile": "Tabla Örgü Profilini Sil",
|
||||
"DoYouReallyWantToDelete": "\"{name}\" profilini gerçekten silmek istiyor musunuz?",
|
||||
@@ -338,6 +351,7 @@
|
||||
"in_progress": "Devam etmekte",
|
||||
"klippy_disconnect": "Klippy bağlantıyı kes",
|
||||
"klippy_shutdown": "Klippy kapat",
|
||||
"Others": "Diğerleri",
|
||||
"server_exit": "Sunucu çıkışı"
|
||||
},
|
||||
"TitleExportHistory": "İhracat Geçmişi",
|
||||
@@ -454,6 +468,12 @@
|
||||
"UpToDate": "güncel"
|
||||
}
|
||||
},
|
||||
"ManualProbe": {
|
||||
"Abort": "iptal et",
|
||||
"Accept": "kabul et",
|
||||
"Advanced": "Gelişmiş",
|
||||
"Headline": "Manuel Prob"
|
||||
},
|
||||
"Panels": {
|
||||
"ExtruderControlPanel": {
|
||||
"Allowed": "İzin Verilmiş",
|
||||
@@ -490,7 +510,8 @@
|
||||
"FirmwareRestart": "Firmware Yeniden Başlatma",
|
||||
"KlipperCheck": "Lütfen Klipper hizmetinin çalışıp çalışmadığını ve bir UDS'nin (Unix Etki Alanı Soketi) yapılandırılıp yapılandırılmadığını kontrol edin.",
|
||||
"MoonrakerCannotConnect": "Moonraker Klipper'a bağlanamıyor!",
|
||||
"Restart": "Yeniden Başlat"
|
||||
"Restart": "Yeniden Başlat",
|
||||
"ServiceReports": "{service} raporları"
|
||||
},
|
||||
"MachineSettingsPanel": {
|
||||
"Headline": "Makine",
|
||||
@@ -520,6 +541,12 @@
|
||||
},
|
||||
"MiscellaneousPanel": {
|
||||
"Headline": "Çeşitli",
|
||||
"Light": {
|
||||
"Blue": "mavi",
|
||||
"Green": "yeşil",
|
||||
"Red": "kırmızı",
|
||||
"White": "beyaz"
|
||||
},
|
||||
"RunoutSensor": {
|
||||
"Detected": "algılandı",
|
||||
"Disabled": "hizmet dışı kalmış",
|
||||
@@ -750,6 +777,8 @@
|
||||
"ShowAxes": "Eksenleri Göster"
|
||||
},
|
||||
"GeneralTab": {
|
||||
"12hours": "12 saat ({time})",
|
||||
"24hours": "24 saat ({time})",
|
||||
"Backup": "Yedek",
|
||||
"BackupDialog": "Lütfen yedek oluşturmak istediğiniz tüm bölümleri seçin:",
|
||||
"CalcEstimateTime": "Tahmini zaman hesaplaması",
|
||||
@@ -765,6 +794,7 @@
|
||||
"Slicer": "Dilimleyici (M73)"
|
||||
},
|
||||
"CannotReadJson": "Yedekleme dosyası okunamıyor/ayrıştırılamıyor.",
|
||||
"DateFormat": "Tarih formatı",
|
||||
"DbConsoleHistory": "Konsol Geçmişi",
|
||||
"DbHistoryJobs": "Geçmiş İşler",
|
||||
"DbHistoryTotals": "Geçmiş Toplamları",
|
||||
@@ -784,7 +814,8 @@
|
||||
"PrinterName": "Yazıcı İsmi",
|
||||
"Reset": "sıfırla",
|
||||
"Restore": "Eski haline getir",
|
||||
"RestoreDialog": "Lütfen geri yüklemek istediğiniz tüm bölümleri seçin:"
|
||||
"RestoreDialog": "Lütfen geri yüklemek istediğiniz tüm bölümleri seçin:",
|
||||
"TimeFormat": "Tarih formatı"
|
||||
},
|
||||
"InterfaceSettings": "Arayüz Ayarları",
|
||||
"MacrosTab": {
|
||||
@@ -823,6 +854,29 @@
|
||||
"UnknownGroup": "Bilinmeyen Grup",
|
||||
"Warning": "uyarı"
|
||||
},
|
||||
"MiscellaneousTab": {
|
||||
"AddGroup": "grup ekle",
|
||||
"AddPreset": "ön ayar ekle",
|
||||
"Color": "Renk",
|
||||
"CreateGroup": "Grup oluştur",
|
||||
"CreatePreset": "Hazır ayar oluştur",
|
||||
"End": "Son",
|
||||
"EndDescription": "Bu grubun son LED'i.",
|
||||
"Groups": "Gruplar",
|
||||
"GroupSubTitle": "Başlangıç: {start}, Bitiş: {end}",
|
||||
"LightGroups": "{name} - Gruplar",
|
||||
"LightPresets": "{name} - Ön Ayarlar",
|
||||
"Miscellaneous": "Çeşitli",
|
||||
"Name": "İsim",
|
||||
"NoDevicesFound": "Hiçbir cihaz bulunamadı",
|
||||
"NoGroupFound": "Grup bulunamadı",
|
||||
"NoPresetFound": "Ön ayar bulunamadı",
|
||||
"Presets": "Ön Ayarlar",
|
||||
"Start": "Başlat",
|
||||
"StartDescription": "Bu grubun ilk LED'i.",
|
||||
"UnableToLoadLight": "Işık yüklenemiyor",
|
||||
"UnableToLoadPreset": "Ön ayar yüklenemiyor"
|
||||
},
|
||||
"PresetsTab": {
|
||||
"AddPreset": "ön ayar ekle",
|
||||
"Cooldown": "Soğutma",
|
||||
@@ -850,6 +904,7 @@
|
||||
"UpdatePrinter": "Yazıcıyı Güncelle",
|
||||
"UseConfigJson": "InstanceDB = JSON algılandı. Yazıcı listesini değiştirmek için lütfen config.json'u kullanın."
|
||||
},
|
||||
"Store": "dükkan",
|
||||
"TimelapseTab": {
|
||||
"Autorender": "Otomatik Oluşturma",
|
||||
"AutorenderDescription": "Etkinleştirilirse, timelapse, baskının sonunda otomatik olarak oluşturulacaktır.",
|
||||
@@ -944,6 +999,7 @@
|
||||
"ShowWebcamInNavigation": "Web kamerasını navigasyonda göster",
|
||||
"UiSettings": "Arayüz-Ayarları"
|
||||
},
|
||||
"Update": "güncelleme",
|
||||
"WebcamsTab": {
|
||||
"AddWebcam": "web kamerası ekle",
|
||||
"CreateWebcam": "Web Kamerası Oluştur",
|
||||
@@ -951,7 +1007,7 @@
|
||||
"EditWebcam": "Web Kamerası Düzenle",
|
||||
"FlipWebcam": "Web kamerasını çevirin:",
|
||||
"Horizontally": "yatay olarak",
|
||||
"IconBed": "Yatak",
|
||||
"IconBed": "Tabla",
|
||||
"IconCam": "Kamera",
|
||||
"IconDoor": "Kapı",
|
||||
"IconFilament": "Filament",
|
||||
|
||||
+156
-57
@@ -1,7 +1,7 @@
|
||||
{
|
||||
"App": {
|
||||
"Notifications": {
|
||||
"DependencyDescription": "当前版本的{name}并不支持Mainsail的全部特性。{name}需要至少更新到{neededVersion}版本。",
|
||||
"DependencyDescription": "当前版本的{name}并不支持Mainsail的全部功能。{name}需要至少更新到{neededVersion}版本。",
|
||||
"DependencyName": "依赖:{name}",
|
||||
"DismissAll": "全部忽略",
|
||||
"KlipperWarnings": {
|
||||
@@ -13,7 +13,7 @@
|
||||
},
|
||||
"MoonrakerWarnings": {
|
||||
"MoonrakerComponent": "Moonraker: {component}",
|
||||
"MoonrakerFailedComponentDescription": "加载moonraker组件'{component}'时检测到错误。请检查日志文件并解决问题。",
|
||||
"MoonrakerFailedComponentDescription": "加载moonraker组件'{component}'时检测到错误。请检查日志文件并修复此问题。",
|
||||
"MoonrakerWarning": "Moonraker警告",
|
||||
"UnparsedConfigOption": "在[{section}]标签中检测到无法解析的配置'{option}: {value}'。这可能是一个不再可用的选项,也可能是组件加载失败的结果。在将来,这将导致启动错误。",
|
||||
"UnparsedConfigSection": "检测到无法解析的标签[{section}]。这可能是一个不再可用的标签,也可能是组件加载失败的结果。在将来,这将导致启动错误。"
|
||||
@@ -69,9 +69,9 @@
|
||||
"Description": {
|
||||
"HostReboot": "重启上位机会导致当前打印失败!",
|
||||
"HostShutdown": "关闭上位机会导致当前打印失败!",
|
||||
"KlipperFirmwareRestart": "重置Klipper主控会导致当前打印失败!",
|
||||
"KlipperRestart": "重启klipper会导致当前打印失败!",
|
||||
"KlipperStop": "停止klipper会导致当前打印失败!",
|
||||
"KlipperFirmwareRestart": "重启Klipper固件会导致当前打印失败!",
|
||||
"KlipperRestart": "重启Klipper会导致当前打印失败!",
|
||||
"KlipperStop": "停止Klipper会导致当前打印失败!",
|
||||
"ServiceRestart": "重启此服务可能会导致当前打印失败!",
|
||||
"ServiceStart": "启动此服务可能会导致当前打印失败!",
|
||||
"ServiceStop": "停止此服务可能会导致当前打印失败!"
|
||||
@@ -79,7 +79,7 @@
|
||||
"Title": {
|
||||
"HostReboot": "重启上位机",
|
||||
"HostShutdown": "关闭上位机",
|
||||
"KlipperFirmwareRestart": "重启Klipper并重置主控",
|
||||
"KlipperFirmwareRestart": "重启Klipper固件",
|
||||
"KlipperRestart": "重启Klipper",
|
||||
"ServiceRestart": "重启服务",
|
||||
"ServiceStart": "启动服务",
|
||||
@@ -88,7 +88,7 @@
|
||||
},
|
||||
"HostControl": "上位机控制",
|
||||
"KlipperControl": "Klipper控制",
|
||||
"KlipperFirmwareRestart": "重启Klipper并重置主控",
|
||||
"KlipperFirmwareRestart": "重启Klipper固件",
|
||||
"KlipperRestart": "重启Klipper",
|
||||
"PowerDevices": "电源设备",
|
||||
"Reboot": "重启",
|
||||
@@ -107,20 +107,31 @@
|
||||
"UpdatingDone": "{software}更新完成!"
|
||||
}
|
||||
},
|
||||
"BedScrews": {
|
||||
"Abort": "取消",
|
||||
"Accept": "接受",
|
||||
"Adjusted": "已调整",
|
||||
"Description": "如果当前螺丝已调整,请点击<b>已调整</b>。未调整下继续请点击<b>认可</b>。",
|
||||
"Headline": "热床调平螺丝",
|
||||
"ScrewAccepted": "已认可的调平螺丝",
|
||||
"ScrewIndex": "螺丝索引",
|
||||
"ScrewName": "螺丝名称",
|
||||
"ScrewOutput": "当前{current}/总共{max}"
|
||||
},
|
||||
"ConnectionDialog": {
|
||||
"CannotConnectTo": "Moonraker ({host})连接失败。",
|
||||
"CheckMoonrakerLog": "如果此消息重复显示, 请从此处查看日志文件:",
|
||||
"Connecting": "连接到{host}",
|
||||
"CannotConnectTo": "无法连接Moonraker ({host})。",
|
||||
"CheckMoonrakerLog": "如果此消息重复显示,请从此处查看日志文件:",
|
||||
"Connecting": "连接{host}",
|
||||
"Failed": "连接失败",
|
||||
"Initializing": "正在初始化",
|
||||
"TryAgain": "重试"
|
||||
},
|
||||
"Console": {
|
||||
"CommandList": "命令列表",
|
||||
"Empty": "空",
|
||||
"Empty": "没有内容",
|
||||
"HideTemperatures": "隐藏温度变化消息",
|
||||
"HideTimelapse": "隐藏延时摄影消息",
|
||||
"SendCode": "发送代码...",
|
||||
"SendCode": "输入需要执行的命令...",
|
||||
"SetupConsole": "设置控制台"
|
||||
},
|
||||
"Dialogs": {
|
||||
@@ -128,7 +139,7 @@
|
||||
"Cancel": "取消",
|
||||
"DoYouWantToStartFilename": "是否开始打印{filename}?",
|
||||
"Headline": "开始任务",
|
||||
"Print": "开始打印",
|
||||
"Print": "打印",
|
||||
"Timelapse": "延时摄影"
|
||||
}
|
||||
},
|
||||
@@ -153,11 +164,13 @@
|
||||
"Yes": "确定"
|
||||
},
|
||||
"Files": {
|
||||
"AddBatchToQueue": "批量添加到队列",
|
||||
"AddToQueue": "添加到队列",
|
||||
"AllFiles": "所有文件",
|
||||
"BedTemp": "热床温度",
|
||||
"Cancel": "取消",
|
||||
"ChamberTemp": "仓室温度",
|
||||
"Count": "计数",
|
||||
"Create": "新建",
|
||||
"CreateNewDirectory": "新建文件夹",
|
||||
"CurrentPath": "当前路径",
|
||||
@@ -167,7 +180,7 @@
|
||||
"DeleteSelectedQuestion": "你确定要删除选中的{count}个文件?",
|
||||
"Download": "下载",
|
||||
"EditFile": "编辑文件",
|
||||
"Empty": "空",
|
||||
"Empty": "没有文件",
|
||||
"ExtruderTemp": "挤出机温度",
|
||||
"Filament": "耗材",
|
||||
"FilamentName": "耗材名称",
|
||||
@@ -191,7 +204,7 @@
|
||||
"LastTotalDuration": "上次打印总耗时",
|
||||
"LayerHeight": "层高",
|
||||
"Name": "名称",
|
||||
"NewDirectory": "新建文件夹",
|
||||
"NewDirectory": "新文件夹",
|
||||
"NozzleDiameter": "喷嘴直径",
|
||||
"ObjectHeight": "物体高度",
|
||||
"Preheat": "预热",
|
||||
@@ -222,7 +235,7 @@
|
||||
"GCodeViewer": {
|
||||
"ClearLoadedFile": "清除",
|
||||
"ColorMode": "颜色模式",
|
||||
"Downloading": "下载中",
|
||||
"Downloading": "正在下载",
|
||||
"ForceLineRendering": "强制线渲染",
|
||||
"HDRendering": "高清渲染(圆形拉伸)",
|
||||
"High": "高",
|
||||
@@ -232,17 +245,19 @@
|
||||
"Max": "最大",
|
||||
"Medium": "中",
|
||||
"ReloadRequired": "需要重新加载",
|
||||
"Rendering": "渲染中",
|
||||
"Rendering": "正在渲染",
|
||||
"RenderQuality": "渲染质量",
|
||||
"ShowObjectSelection": "显示可选对象",
|
||||
"ShowToolhead": "显示打印头",
|
||||
"ShowTravelMoves": "显示移动路径",
|
||||
"SpecularLighting": "镜面光泽",
|
||||
"Title": "G-Code预览",
|
||||
"Tracking": "追踪",
|
||||
"Tracking": "正在追踪",
|
||||
"Transparency": "透明度",
|
||||
"Ultra": "极致",
|
||||
"VoxelMode": "体素模式(ASMBL)"
|
||||
"VoxelMode": "体素模式(ASMBL)",
|
||||
"ShowGCode": "显示G-Code",
|
||||
"CNCMode": "CNC模式"
|
||||
},
|
||||
"Heightmap": {
|
||||
"Abort": "取消",
|
||||
@@ -255,8 +270,8 @@
|
||||
"Max": "最高点",
|
||||
"Min": "最低点",
|
||||
"Name": "名称",
|
||||
"Size": "尺寸",
|
||||
"Variance": "方差"
|
||||
"Range": "范围",
|
||||
"Size": "尺寸"
|
||||
},
|
||||
"DeleteBedMeshProfile": "删除预设床网",
|
||||
"DoYouReallyWantToDelete": "你确定要删除预设\"{name}\"?",
|
||||
@@ -266,7 +281,7 @@
|
||||
"InvalidNameAlreadyExists": "预设名称已经存在,请换一个名称。",
|
||||
"InvalidNameEmpty": "输入值不能为空!",
|
||||
"InvalidNameReserved": "预设 'default' 已保留,请选择其他预设名称。",
|
||||
"Later": "Later",
|
||||
"Later": "以后",
|
||||
"Mesh": "床网",
|
||||
"Name": "名称",
|
||||
"NoBedMeshHasBeenLoadedYet": "没有加载床网。",
|
||||
@@ -292,11 +307,12 @@
|
||||
"AvgPrinttime": "平均打印时间",
|
||||
"Cancel": "取消",
|
||||
"CreateNote": "新建便条",
|
||||
"Chart": "图表",
|
||||
"Delete": "删除",
|
||||
"DeleteSelectedQuestion": "你是否要删除已选中的{count}个任务?",
|
||||
"Details": "详情",
|
||||
"EditNote": "编辑便条",
|
||||
"Empty": "空",
|
||||
"Empty": "没有内容",
|
||||
"EndTime": "结束时间",
|
||||
"EstimatedFilament": "预估耗材用量",
|
||||
"EstimatedFilamentWeight": "预估耗材重量",
|
||||
@@ -309,8 +325,8 @@
|
||||
"FirstLayerBedTemp": "首层热床温度",
|
||||
"FirstLayerExtTemp": "首层仓内温度",
|
||||
"FirstLayerHeight": "首层高度",
|
||||
"HistoryFilamentUsage": "耗材",
|
||||
"HistoryPrinttimeAVG": "打印",
|
||||
"HistoryFilamentUsage": "耗材用量",
|
||||
"HistoryPrinttimeAVG": "打印时间",
|
||||
"JobDetails": "任务详情",
|
||||
"Jobs": "每页显示任务数",
|
||||
"LastModified": "上次修改",
|
||||
@@ -337,12 +353,13 @@
|
||||
"cancelled": "取消",
|
||||
"completed": "完成",
|
||||
"error": "错误",
|
||||
"in_progress": "进程中",
|
||||
"in_progress": "打印中",
|
||||
"klippy_disconnect": "Klippy失去连接",
|
||||
"klippy_shutdown": "Klippy已关闭",
|
||||
"Others": "其他",
|
||||
"server_exit": "服务器退出"
|
||||
},
|
||||
"Table": "表格",
|
||||
"TitleExportHistory": "导出历史记录",
|
||||
"TitleRefreshHistory": "刷新历史记录",
|
||||
"TitleSettings": "设置",
|
||||
@@ -354,7 +371,12 @@
|
||||
},
|
||||
"JobQueue": {
|
||||
"AllJobs": "全部任务",
|
||||
"Empty": "空",
|
||||
"ChangeCount": "变更计数",
|
||||
"Cancel": "取消",
|
||||
"Count": "计数",
|
||||
"Empty": "没有任务",
|
||||
"InvalidCountEmpty": "输入值不能为空!",
|
||||
"InvalidCountGreaterZero": "输入值必须大于0!",
|
||||
"JobQueue": "任务队列",
|
||||
"Jobs": "每页显示任务数",
|
||||
"Pause": "暂停",
|
||||
@@ -377,7 +399,7 @@
|
||||
"DeleteSelectedQuestion": "删除已选中的{count}个项目?",
|
||||
"Download": "下载",
|
||||
"EditFile": "编辑文件",
|
||||
"Empty": "空",
|
||||
"Empty": "没有文件",
|
||||
"Files": "每页显示文件数",
|
||||
"Filesize": "文件大小",
|
||||
"Free": "未使用",
|
||||
@@ -399,14 +421,20 @@
|
||||
"Used": "已使用"
|
||||
},
|
||||
"EndstopPanel": {
|
||||
"Endstop": "限位开关",
|
||||
"EndstopInfo": "点击右侧同步按钮获取限位开关状态",
|
||||
"Endstop": "限位",
|
||||
"EndstopInfo": "点击右侧同步按钮刷新限位状态",
|
||||
"Endstops": "限位",
|
||||
"open": "未触发",
|
||||
"TRIGGERED": "已触发"
|
||||
},
|
||||
"LogfilesPanel": {
|
||||
"Logfiles": "日志文件"
|
||||
"Accept": "接受",
|
||||
"Cancel": "取消",
|
||||
"Logfiles": "日志文件",
|
||||
"Rollover": "清理日志",
|
||||
"RolloverDescription": "请选择需要重置的日志:",
|
||||
"RolloverToastSuccessful": "日志\"{name}\"已经重置。",
|
||||
"RolloverToastFailed": "清理日志\"{name}\": {message}"
|
||||
},
|
||||
"SystemPanel": {
|
||||
"Constants": "常量",
|
||||
@@ -419,7 +447,7 @@
|
||||
"SystemLoad": "系统负载",
|
||||
"Values": {
|
||||
"Awake": "唤醒:{awake}",
|
||||
"Bandwidth": "带宽:{bandwidth}/s",
|
||||
"Bandwidth": "带宽值:{bandwidth}/s",
|
||||
"Distro": "发行版:{name} {version_id}",
|
||||
"Frequency": "频率:{frequency}",
|
||||
"Load": "负载:{load}",
|
||||
@@ -457,6 +485,12 @@
|
||||
"UpToDate": "已经更新到最新"
|
||||
}
|
||||
},
|
||||
"ManualProbe": {
|
||||
"Abort": "取消",
|
||||
"Accept": "接受",
|
||||
"Advanced": "高级",
|
||||
"Headline": "手动Probe"
|
||||
},
|
||||
"Panels": {
|
||||
"ExtruderControlPanel": {
|
||||
"Allowed": "允许",
|
||||
@@ -490,10 +524,14 @@
|
||||
"WebcamOff": "关闭"
|
||||
},
|
||||
"KlippyStatePanel": {
|
||||
"FirmwareRestart": "重启Klipper并重置主控",
|
||||
"KlipperCheck": "请检查Klipper服务是否运行并且已经设置UDS(Unix Domain Socket)。",
|
||||
"CheckKlippyAndUdsAddress": "请检查Klipper服务是否启动并且moonraker.conf已经添加了klippy_uds_address配置。",
|
||||
"FirmwareRestart": "重启Klipper固件",
|
||||
"MoonrakerCannotConnect": "Moonraker无法连接到Klipper !",
|
||||
"Restart": "重启Klipper"
|
||||
"PowerOn": "开启电源",
|
||||
"PrinterSwitchedOff": "打印机电源已关闭",
|
||||
"PrinterSwitchedOffDescription": "打印机电源已关闭,Klipper无法连接。点击下方按钮开启打印机电源:",
|
||||
"Restart": "重启Klipper",
|
||||
"ServiceReports": "{service} 报告"
|
||||
},
|
||||
"MachineSettingsPanel": {
|
||||
"Headline": "机器设置",
|
||||
@@ -523,10 +561,16 @@
|
||||
},
|
||||
"MiscellaneousPanel": {
|
||||
"Headline": "其他设置",
|
||||
"Light": {
|
||||
"Blue": "蓝",
|
||||
"Green": "绿",
|
||||
"Red": "红",
|
||||
"White": "白"
|
||||
},
|
||||
"RunoutSensor": {
|
||||
"Detected": "检测到",
|
||||
"Disabled": "已关闭",
|
||||
"Empty": "空"
|
||||
"Empty": "无"
|
||||
}
|
||||
},
|
||||
"PowerControlPanel": {
|
||||
@@ -538,10 +582,10 @@
|
||||
"StatusPanel": {
|
||||
"CancelPrint": "取消打印",
|
||||
"ClearPrintStats": "清除打印统计数据",
|
||||
"Difference": "不同",
|
||||
"Difference": "差异",
|
||||
"EmptyGcodes": "没有G-Code文件",
|
||||
"EmptyJobqueue": "当前任务队列中没有文件。",
|
||||
"Estimate": "估算时间",
|
||||
"Estimate": "估算剩余",
|
||||
"ETA": "预估完成",
|
||||
"ExcludeObject": {
|
||||
"Cancel": "取消",
|
||||
@@ -557,17 +601,29 @@
|
||||
"Headline": "状态",
|
||||
"Jobqueue": "任务队列({count})",
|
||||
"JobqueueMoreFiles": "没有任务 | 一个任务 | {count}个任务",
|
||||
"Layer": "层",
|
||||
"Layer": "打印层",
|
||||
"Max": "最高",
|
||||
"ObjectHeight": "物体高度",
|
||||
"PauseAtLayer": {
|
||||
"Abort": "取消",
|
||||
"Accept": "接受",
|
||||
"AtLayer": "所在层",
|
||||
"Call": "调用",
|
||||
"DescriptionPauseAtLayerActive": "此功能已激活,会在层{layer}时调用\"{call}\"。如果重复调用命令,此设置将会被覆盖。",
|
||||
"DescriptionPauseNextLayerActive": "此功能已激活,将在下一层调用\"{call}\"。",
|
||||
"Layer": "层",
|
||||
"NextLayer": "下一层",
|
||||
"PauseAtLayer": "在某层暂停",
|
||||
"Type": "类型"
|
||||
},
|
||||
"PausePrint": "暂停打印",
|
||||
"Print": "打印",
|
||||
"PrintTime": "打印耗时",
|
||||
"ReprintJob": "再次打印",
|
||||
"Requested": "请求",
|
||||
"ResumePrint": "恢复打印",
|
||||
"Slicer": "切片时间",
|
||||
"Speed": "速度",
|
||||
"Slicer": "切片剩余",
|
||||
"Speed": "打印速度",
|
||||
"Status": "状态",
|
||||
"Total": "已用时间",
|
||||
"Unknown": "未知"
|
||||
@@ -604,7 +660,7 @@
|
||||
"Headline": "打印头",
|
||||
"PleaseConfigureSteps": "请配置步骤",
|
||||
"Position": "位置",
|
||||
"QGL": "四轴调平(QGL)",
|
||||
"QGL": "QGL",
|
||||
"Relative": "相对坐标",
|
||||
"SettingsInterfaceControl": "设置 > 界面 > 控制",
|
||||
"SpeedFactor": "速度倍数",
|
||||
@@ -753,21 +809,24 @@
|
||||
"ShowAxes": "显示轴"
|
||||
},
|
||||
"GeneralTab": {
|
||||
"12hours": "12-小时 ({time})",
|
||||
"24hours": "24-小时 ({time})",
|
||||
"Backup": "备份",
|
||||
"BackupDialog": "请选择你想要备份的内容:",
|
||||
"CalcEstimateTime": "估算时间计算",
|
||||
"CalcEstimateTime": "估算剩余时间",
|
||||
"CalcEstimateTimeDescription": "如果选择了多项,将会计算平均值",
|
||||
"CalcEtaTime": "预计完成时间计算",
|
||||
"CalcEtaTime": "估算计完成时间",
|
||||
"CalcEtaTimeDescription": "如果选择了多项,将会计算平均值",
|
||||
"CalcPrintProgress": "打印进度估算",
|
||||
"CalcPrintProgress": "估算打印进度",
|
||||
"CalcPrintProgressDescription": "计算打印进度的方法。",
|
||||
"CalcPrintProgressItems": {
|
||||
"Filament": "耗材",
|
||||
"FileAbsolute": "文件位置(绝对)",
|
||||
"FileRelative": "文件位置(相对)",
|
||||
"Filament": "耗材用量",
|
||||
"FileAbsolute": "Gcode文件位置(绝对)",
|
||||
"FileRelative": "Gcode文件位置(相对)",
|
||||
"Slicer": "切片软件 (M73)"
|
||||
},
|
||||
"CannotReadJson": "无法读取/解析备份文件。",
|
||||
"DateFormat": "日期格式",
|
||||
"DbConsoleHistory": "控制台历史记录",
|
||||
"DbHistoryJobs": "历史任务",
|
||||
"DbHistoryTotals": "历史统计",
|
||||
@@ -775,19 +834,20 @@
|
||||
"DbView": "视图设置",
|
||||
"DbWebcams": "摄像头",
|
||||
"EstimateValues": {
|
||||
"Filament": "耗材",
|
||||
"File": "文件",
|
||||
"Filament": "耗材用量",
|
||||
"File": "Gcode文件",
|
||||
"Slicer": "切片软件"
|
||||
},
|
||||
"FactoryDialog": "请选择想要恢复到默认值的项:",
|
||||
"FactoryReset": "恢复默认设置",
|
||||
"General": "通用",
|
||||
"Language": "语言",
|
||||
"Language": "界面语言",
|
||||
"MoonrakerDb": "Moonraker数据库",
|
||||
"PrinterName": "打印机名称",
|
||||
"Reset": "重启",
|
||||
"Restore": "恢复",
|
||||
"RestoreDialog": "请选择你想要恢复的项:"
|
||||
"RestoreDialog": "请选择你想要恢复的项:",
|
||||
"TimeFormat": "时间格式"
|
||||
},
|
||||
"InterfaceSettings": "Mainsail设置",
|
||||
"MacrosTab": {
|
||||
@@ -816,7 +876,7 @@
|
||||
"NOMacros": "没有发现宏...",
|
||||
"NoMacrosInGroup": "此分组内没有可用宏。",
|
||||
"Primary": "优先",
|
||||
"Secondary": "其次",
|
||||
"Secondary": "次要",
|
||||
"ShowInStatePaused": "如果打印机暂停,显示/隐藏此分组。",
|
||||
"ShowInStatePrinting": "如果打印机正在工作,显示/隐藏此分组。",
|
||||
"ShowInStateStandby": "如果打印机待机,显示/隐藏此分组。",
|
||||
@@ -826,6 +886,29 @@
|
||||
"UnknownGroup": "未知分组",
|
||||
"Warning": "警告"
|
||||
},
|
||||
"MiscellaneousTab": {
|
||||
"AddGroup": "添加分组",
|
||||
"AddPreset": "添加预设",
|
||||
"Color": "颜色",
|
||||
"CreateGroup": "新建分组",
|
||||
"CreatePreset": "新建预设",
|
||||
"End": "结束",
|
||||
"EndDescription": "分组中最后的LED",
|
||||
"Groups": "分组",
|
||||
"GroupSubTitle": "开始:{start},结束:{end}",
|
||||
"LightGroups": "{name} - 分组",
|
||||
"LightPresets": "{name} - 预设",
|
||||
"Miscellaneous": "其他设置",
|
||||
"Name": "名称",
|
||||
"NoDevicesFound": "未找到设备",
|
||||
"NoGroupFound": "未找到分组",
|
||||
"NoPresetFound": "未找到预设",
|
||||
"Presets": "预设",
|
||||
"Start": "开始",
|
||||
"StartDescription": "分组中第一个LED",
|
||||
"UnableToLoadLight": "无法加载灯",
|
||||
"UnableToLoadPreset": "无法加载预设"
|
||||
},
|
||||
"PresetsTab": {
|
||||
"AddPreset": "添加预设",
|
||||
"Cooldown": "冷却",
|
||||
@@ -851,8 +934,9 @@
|
||||
"Port": "Moonraker服务端口",
|
||||
"RemotePrinters": "打印机",
|
||||
"UpdatePrinter": "更新打印机",
|
||||
"UseConfigJson": "InstanceDB = JSON detected. 请使用 config.json 来修改打印机列表。"
|
||||
"UseConfigJson": "检测到InstanceDB = JSON。请使用 config.json 来修改打印机列表。"
|
||||
},
|
||||
"Store": "存储",
|
||||
"TimelapseTab": {
|
||||
"Autorender": "自动渲染",
|
||||
"AutorenderDescription": "如果开启将在打印结束后自动渲染延时摄影的视频",
|
||||
@@ -927,13 +1011,15 @@
|
||||
"BoolHideUploadAndPrintButtonDescription": "在顶栏显示或者隐藏\"上传并打印\"按钮",
|
||||
"ConfirmOnEmergencyStop": "紧急停止需要确认",
|
||||
"ConfirmOnEmergencyStopDescription": "在按下\"紧急停止\"时显示确认对话框",
|
||||
"ConfirmOnPowerDeviceChange": "设备电源变化时需要确认",
|
||||
"ConfirmOnPowerDeviceChangeDescription": "在设备电源变化时显示确认对话框",
|
||||
"ConfirmOnPowerDeviceChange": "控制设备电源时需要确认",
|
||||
"ConfirmOnPowerDeviceChangeDescription": "控制设备电源时显示确认对话框",
|
||||
"DisplayCANCEL_PRINT": "显示\"取消打印\"按钮",
|
||||
"DisplayCANCEL_PRINTDescription": "始终显示\"取消打印\"按钮",
|
||||
"GcodeThumbnails": "G-Code缩略图",
|
||||
"GcodeThumbnailsDescription": "单击\"指南\"按钮查看说明",
|
||||
"Guide": "指南",
|
||||
"HideSaveConfigButtonForBedMesh": "仅bed_mesh更改时隐藏\"保存配置\"按钮",
|
||||
"HideSaveConfigButtonForBedMeshDescription": "如果只有bed_mesh更改需要保存到Klipper时,隐藏\"保存配置\"按钮。",
|
||||
"LockSliders": "在触摸屏设备上锁定滑动条",
|
||||
"LockSlidersDelay": "滑动条锁定延迟时间",
|
||||
"LockSlidersDelayDescription": "滑动条将在给定延迟时间后锁定。如果设置为0或留空,滑动条将仅在页面更改/重新加载后锁定",
|
||||
@@ -943,15 +1029,20 @@
|
||||
"NavigationStyleDescription": "更改导航栏外观",
|
||||
"NavigationStyleIconsAndText": "图标+文字",
|
||||
"NavigationStyleIconsOnly": "仅图标",
|
||||
"PowerDeviceName": "打印机电源设备",
|
||||
"PowerDeviceNameDescription": "请选择可以控制打印机供电的Moonraker电源设备。",
|
||||
"Primary": "高亮颜色",
|
||||
"ShowWebcamInNavigation": "在导航栏中显示摄像头",
|
||||
"UiSettings": "UI设置"
|
||||
},
|
||||
"Update": "更新",
|
||||
"WebcamsTab": {
|
||||
"AddWebcam": "添加摄像头",
|
||||
"CreateWebcam": "添加摄像头",
|
||||
"EditCrowsnestConf": "编辑 crowsnest.conf",
|
||||
"EditWebcam": "编辑摄像头",
|
||||
"FlipWebcam": "翻转摄像头图像:",
|
||||
"Horizontally": "水平",
|
||||
"IconBed": "热床",
|
||||
"IconCam": "摄像头",
|
||||
"IconDoor": "门",
|
||||
@@ -961,6 +1052,7 @@
|
||||
"IconNozzle": "喷嘴",
|
||||
"IconPrinter": "打印机",
|
||||
"Ipstream": "IP摄像头",
|
||||
"Hlsstream": "HLS视频流",
|
||||
"Mjpegstreamer": "MJPEG视频流",
|
||||
"MjpegstreamerAdaptive": "自适应MJPEG视频流(试验性)",
|
||||
"Name": "名称",
|
||||
@@ -974,9 +1066,16 @@
|
||||
"UrlSnapshot": "快照地址(URL)",
|
||||
"UrlStream": "视频流地址(URL)",
|
||||
"Uv4lMjpeg": "UV4L-MJPEG",
|
||||
"Vertically": "垂直",
|
||||
"Webcams": "摄像头"
|
||||
}
|
||||
},
|
||||
"ScrewsTiltAdjust": {
|
||||
"Accept": "接受",
|
||||
"Base": "底座",
|
||||
"ErrorText": "探测过程中出现了问题。",
|
||||
"Headline": "螺丝倾斜调整"
|
||||
},
|
||||
"Timelapse": {
|
||||
"AllFiles": "全部文件",
|
||||
"Autorender": "自动渲染",
|
||||
@@ -990,7 +1089,7 @@
|
||||
"DeleteSelectedQuestion": "你确定要删除选中的{count}个文件吗?",
|
||||
"Download": "下载",
|
||||
"DuplicateLastframe": "重复最后一帧",
|
||||
"Empty": "没有发现已完成的延时摄影文件",
|
||||
"Empty": "没有已完成的延时摄影文件",
|
||||
"Enabled": "开启",
|
||||
"EstimatedLength": "预计时长",
|
||||
"Files": "每页显示文件数",
|
||||
|
||||
+8
-79
@@ -95,7 +95,6 @@ import StatusPanel from '@/components/panels/StatusPanel.vue'
|
||||
import ToolheadControlPanel from '@/components/panels/ToolheadControlPanel.vue'
|
||||
import TemperaturePanel from '@/components/panels/TemperaturePanel.vue'
|
||||
import WebcamPanel from '@/components/panels/WebcamPanel.vue'
|
||||
import kebabCase from 'lodash.kebabcase'
|
||||
|
||||
@Component({
|
||||
components: {
|
||||
@@ -114,106 +113,36 @@ import kebabCase from 'lodash.kebabcase'
|
||||
},
|
||||
})
|
||||
export default class PageDashboard extends Mixins(DashboardMixin) {
|
||||
get allComponents() {
|
||||
let output: string[] = []
|
||||
const components = Object.keys(this.$options.components ?? {})
|
||||
|
||||
components?.forEach((component) => {
|
||||
if (component.endsWith('Panel')) output.push(kebabCase(component))
|
||||
})
|
||||
|
||||
// remove toolhead panel, if kinematics === none
|
||||
if (this.printerKinematics === 'none') {
|
||||
output = output.filter((name) => name !== 'toolhead-control-panel')
|
||||
}
|
||||
|
||||
// remove extruder panel, if printerExtruderCount < 1
|
||||
if (this.printerExtruderCount < 1) {
|
||||
output = output.filter((name) => name !== 'extruder-control-panel')
|
||||
}
|
||||
|
||||
// remove temperature panel, if heaters & sensors < 1
|
||||
if (this.printerAvailableHeatersCount + this.printerTemperatureSensorsCount < 1) {
|
||||
output = output.filter((name) => name !== 'temperature-panel')
|
||||
}
|
||||
|
||||
return output
|
||||
}
|
||||
|
||||
get mobileLayout() {
|
||||
let panels = this.$store.getters['gui/getPanels']('mobileLayout')
|
||||
panels = panels.concat(this.missingPanelsMobile)
|
||||
panels = panels.filter(
|
||||
(element: any) => element.visible && this.allComponents.includes(this.extractPanelName(element.name))
|
||||
)
|
||||
|
||||
return panels
|
||||
return this.$store.getters['gui/getPanels']('mobile', 0, true)
|
||||
}
|
||||
|
||||
get tabletLayout1() {
|
||||
let panels = this.$store.getters['gui/getPanels']('tabletLayout1')
|
||||
panels = panels.concat(this.missingPanelsTablet)
|
||||
panels = panels.filter(
|
||||
(element: any) => element.visible && this.allComponents.includes(this.extractPanelName(element.name))
|
||||
)
|
||||
|
||||
return panels
|
||||
return this.$store.getters['gui/getPanels']('tablet', 1, true)
|
||||
}
|
||||
|
||||
get tabletLayout2() {
|
||||
let panels = this.$store.getters['gui/getPanels']('tabletLayout2')
|
||||
panels = panels.filter(
|
||||
(element: any) => element.visible && this.allComponents.includes(this.extractPanelName(element.name))
|
||||
)
|
||||
|
||||
return panels
|
||||
return this.$store.getters['gui/getPanels']('tablet', 2, true)
|
||||
}
|
||||
|
||||
get desktopLayout1() {
|
||||
let panels = this.$store.getters['gui/getPanels']('desktopLayout1')
|
||||
panels = panels.concat(this.missingPanelsDesktop)
|
||||
panels = panels.filter(
|
||||
(element: any) => element.visible && this.allComponents.includes(this.extractPanelName(element.name))
|
||||
)
|
||||
|
||||
return panels
|
||||
return this.$store.getters['gui/getPanels']('desktop', 1, true)
|
||||
}
|
||||
|
||||
get desktopLayout2() {
|
||||
let panels = this.$store.getters['gui/getPanels']('desktopLayout2')
|
||||
panels = panels.filter(
|
||||
(element: any) => element.visible && this.allComponents.includes(this.extractPanelName(element.name))
|
||||
)
|
||||
|
||||
return panels
|
||||
return this.$store.getters['gui/getPanels']('desktop', 2, true)
|
||||
}
|
||||
|
||||
get widescreenLayout1() {
|
||||
let panels = this.$store.getters['gui/getPanels']('widescreenLayout1')
|
||||
panels = panels.concat(this.missingPanelsWidescreen)
|
||||
panels = panels.filter(
|
||||
(element: any) => element.visible && this.allComponents.includes(this.extractPanelName(element.name))
|
||||
)
|
||||
|
||||
return panels
|
||||
return this.$store.getters['gui/getPanels']('widescreen', 1, true)
|
||||
}
|
||||
|
||||
get widescreenLayout2() {
|
||||
let panels = this.$store.getters['gui/getPanels']('widescreenLayout2')
|
||||
panels = panels.filter(
|
||||
(element: any) => element.visible && this.allComponents.includes(this.extractPanelName(element.name))
|
||||
)
|
||||
|
||||
return panels
|
||||
return this.$store.getters['gui/getPanels']('widescreen', 2, true)
|
||||
}
|
||||
|
||||
get widescreenLayout3() {
|
||||
let panels = this.$store.getters['gui/getPanels']('widescreenLayout3')
|
||||
panels = panels.filter(
|
||||
(element: any) => element.visible && this.allComponents.includes(this.extractPanelName(element.name))
|
||||
)
|
||||
|
||||
return panels
|
||||
return this.$store.getters['gui/getPanels']('widescreen', 3, true)
|
||||
}
|
||||
|
||||
extractPanelName(name: string) {
|
||||
|
||||
+14
-15
@@ -96,7 +96,7 @@
|
||||
<v-col
|
||||
class="col-12 col-sm-auto pt-0 pb-0 pl-lg-6 d-flex justify-center justify-sm-start">
|
||||
<v-switch
|
||||
v-model="scaleVisualMap"
|
||||
v-model="scaleGradient"
|
||||
:label="$t('Heightmap.ScaleGradient')"
|
||||
class="mt-0 ml-5"></v-switch>
|
||||
</v-col>
|
||||
@@ -129,7 +129,7 @@
|
||||
<v-row>
|
||||
<v-col>
|
||||
<v-slider
|
||||
v-model="heightmapScale"
|
||||
v-model="scaleZMax"
|
||||
:label="$t('Heightmap.ScaleZMax')"
|
||||
:min="heightmapRangeLimit[0]"
|
||||
:max="heightmapRangeLimit[1]"
|
||||
@@ -186,7 +186,7 @@
|
||||
</v-row>
|
||||
<v-divider class="my-3"></v-divider>
|
||||
<v-row class="px-3">
|
||||
<v-col>{{ $t('Heightmap.CurrentMesh.Variance') }}</v-col>
|
||||
<v-col>{{ $t('Heightmap.CurrentMesh.Range') }}</v-col>
|
||||
<v-col class="text-right">{{ currentProfile.variance.toFixed(3) }} mm</v-col>
|
||||
</v-row>
|
||||
</v-card-text>
|
||||
@@ -478,7 +478,6 @@ export default class PageHeightmap extends Mixins(BaseMixin, ControlMixin) {
|
||||
(value: string) => !this.existsProfileName(value) || this.$t('Heightmap.InvalidNameAlreadyExists'),
|
||||
]
|
||||
|
||||
private heightmapScale = 0.5
|
||||
private probedOpacity = 1
|
||||
private meshOpacity = 1
|
||||
private flatOpacity = 0.5
|
||||
@@ -564,8 +563,8 @@ export default class PageHeightmap extends Mixins(BaseMixin, ControlMixin) {
|
||||
},
|
||||
zAxis3D: {
|
||||
type: 'value',
|
||||
min: this.heightmapScale * -1,
|
||||
max: this.heightmapScale,
|
||||
min: this.scaleZMax * -1,
|
||||
max: this.scaleZMax,
|
||||
nameTextStyle: {
|
||||
color: this.colorAxisName,
|
||||
},
|
||||
@@ -671,20 +670,20 @@ export default class PageHeightmap extends Mixins(BaseMixin, ControlMixin) {
|
||||
this.$store.dispatch('gui/saveSetting', { name: 'view.heightmap.wireframe', value: newVal })
|
||||
}
|
||||
|
||||
get scale(): boolean {
|
||||
return this.$store.state.gui.view.heightmap.scale ?? true
|
||||
get scaleGradient(): boolean {
|
||||
return this.$store.state.gui.view.heightmap.scaleGradient ?? false
|
||||
}
|
||||
|
||||
set scale(newVal) {
|
||||
this.$store.dispatch('gui/saveSetting', { name: 'view.heightmap.scale', value: newVal })
|
||||
set scaleGradient(newVal) {
|
||||
this.$store.dispatch('gui/saveSetting', { name: 'view.heightmap.scaleGradient', value: newVal })
|
||||
}
|
||||
|
||||
get scaleVisualMap(): boolean {
|
||||
return this.$store.state.gui.view.heightmap.scaleVisualMap ?? false
|
||||
get scaleZMax(): number {
|
||||
return this.$store.state.gui.view.heightmap.scaleZMax ?? 0.5
|
||||
}
|
||||
|
||||
set scaleVisualMap(newVal) {
|
||||
this.$store.dispatch('gui/saveSetting', { name: 'view.heightmap.scaleVisualMap', value: newVal })
|
||||
set scaleZMax(newVal) {
|
||||
this.$store.dispatch('gui/saveSetting', { name: 'view.heightmap.scaleZMax', value: newVal })
|
||||
}
|
||||
|
||||
get rangeX(): number[] {
|
||||
@@ -911,7 +910,7 @@ export default class PageHeightmap extends Mixins(BaseMixin, ControlMixin) {
|
||||
}
|
||||
|
||||
get visualMapRange(): number[] {
|
||||
if (!this.scaleVisualMap) return [-0.1, 0.1]
|
||||
if (!this.scaleGradient) return [-0.1, 0.1]
|
||||
|
||||
return this.heightmapLimit
|
||||
}
|
||||
|
||||
@@ -14,7 +14,6 @@ const mainsailEditor = EditorView.theme(
|
||||
color: '#d4d4d4',
|
||||
backgroundColor: ui.background,
|
||||
},
|
||||
|
||||
'.cm-activeLine.cm-line': {
|
||||
caretColor: '#d4d4d4 !important',
|
||||
},
|
||||
@@ -37,6 +36,76 @@ const mainsailEditor = EditorView.theme(
|
||||
'.cm-selectionMatch': {
|
||||
backgroundColor: '#add6ff26',
|
||||
},
|
||||
|
||||
'.cm-button': {
|
||||
'font-family': 'Roboto,sans-serif',
|
||||
'font-weight': '500',
|
||||
'font-size': '.675rem',
|
||||
'letter-spacing': '0.0892857143em',
|
||||
'vertical-align': 'middle',
|
||||
padding: '0.3em 1em',
|
||||
'border-radius': '4px',
|
||||
'border-width': '0',
|
||||
color: 'var(--color-primary)',
|
||||
'background-color': 'var(--v-secondary-darken2)',
|
||||
'background-image': 'none!important',
|
||||
'text-transform': 'uppercase',
|
||||
'text-indent': '0.0892857143em',
|
||||
'text-aling': 'left',
|
||||
},
|
||||
|
||||
'.cm-textfield:focus': {
|
||||
'border-color': 'var(--color-primary)!important',
|
||||
},
|
||||
|
||||
'.cm-textfield:focus-visible': {
|
||||
'border-color': 'var(--color-primary)!important',
|
||||
},
|
||||
|
||||
'.cm-textfield::placeholder': {
|
||||
'text-transform': 'uppercase',
|
||||
},
|
||||
'.cm-panel.cm-search label': {
|
||||
'font-weight': '500',
|
||||
'font-family': 'Roboto,sans-serif',
|
||||
'letter-spacing': '0.0892857143em',
|
||||
'text-transform': 'uppercase',
|
||||
'font-size': '12px',
|
||||
'white-space': 'pre',
|
||||
color: 'var(--v-primary-base)',
|
||||
},
|
||||
|
||||
'.cm-panel.cm-search [name=close]': {
|
||||
'font-family': 'Roboto,sans-serif',
|
||||
'text-transform': 'uppercase',
|
||||
'font-size': '200%',
|
||||
'white-space': 'pre',
|
||||
color: 'var(--color-primary)',
|
||||
'padding-right': '5px',
|
||||
'padding-top': '5px',
|
||||
},
|
||||
|
||||
'.cm-button:hover': {
|
||||
'background-color': 'var(--v-secondary-lighten1)',
|
||||
'background-image': 'none!important',
|
||||
'transition-duration': '0.5s',
|
||||
'transition-timing-function': 'cubic-bezier(1.2,0,.2,1)',
|
||||
},
|
||||
|
||||
'.cm-textfield': {
|
||||
'font-family': 'Roboto,sans-serif',
|
||||
'vertical-align': 'middle',
|
||||
'font-size': '.675rem',
|
||||
border: '1px solid silver',
|
||||
backgroundColor: ui.background,
|
||||
padding: '.3em .1em',
|
||||
'padding-left': '0.6em',
|
||||
'border-radius': '0.2em',
|
||||
},
|
||||
|
||||
'.cm-panels': {
|
||||
'background-color': 'var(--v-toolbar-base)',
|
||||
},
|
||||
},
|
||||
{ dark: true }
|
||||
)
|
||||
|
||||
@@ -1,17 +1,5 @@
|
||||
import { FileStateFile } from '@/store/files/types'
|
||||
import { PrinterStateMacroParams } from '@/store/printer/types'
|
||||
import {
|
||||
mdiArrowCollapseVertical,
|
||||
mdiCodeTags,
|
||||
mdiConsoleLine,
|
||||
mdiDipSwitch,
|
||||
mdiEngine,
|
||||
mdiGamepad,
|
||||
mdiInformation,
|
||||
mdiPrinter3dNozzle,
|
||||
mdiThermometerLines,
|
||||
mdiWebcam,
|
||||
} from '@mdi/js'
|
||||
import Vue from 'vue'
|
||||
|
||||
export const setDataDeep = (currentState: any, payload: any) => {
|
||||
@@ -64,34 +52,6 @@ export const capitalize = (str: string): string => {
|
||||
return str.charAt(0).toUpperCase() + str.slice(1)
|
||||
}
|
||||
|
||||
export const convertPanelnameToIcon = (name: string): string => {
|
||||
if (name.startsWith('macrogroup_')) return mdiCodeTags
|
||||
|
||||
switch (name) {
|
||||
case 'webcam':
|
||||
return mdiWebcam
|
||||
case 'zoffset':
|
||||
return mdiArrowCollapseVertical
|
||||
case 'toolhead-control':
|
||||
return mdiGamepad
|
||||
case 'macros':
|
||||
return mdiCodeTags
|
||||
case 'miscellaneous':
|
||||
return mdiDipSwitch
|
||||
case 'temperature':
|
||||
return mdiThermometerLines
|
||||
case 'miniconsole':
|
||||
return mdiConsoleLine
|
||||
case 'machine-settings':
|
||||
return mdiEngine
|
||||
case 'extruder-control':
|
||||
return mdiPrinter3dNozzle
|
||||
|
||||
default:
|
||||
return mdiInformation
|
||||
}
|
||||
}
|
||||
|
||||
export const camelize = (str: string): string => {
|
||||
return str
|
||||
.replace(/_/g, ' ')
|
||||
|
||||
@@ -32,7 +32,6 @@ export const actions: ActionTree<RootState, RootState> = {
|
||||
importConfigJson({ commit }, payload: ConfigJson) {
|
||||
type RootStateInstancesDbType = 'moonraker' | 'browser' | 'json'
|
||||
let instancesDB: RootStateInstancesDbType = payload.instancesDB ?? 'moonraker'
|
||||
if (document.location.hostname === 'my.mainsail.xyz') instancesDB = 'browser'
|
||||
if (import.meta.env.VUE_APP_INSTANCES_DB)
|
||||
instancesDB = import.meta.env.VUE_APP_INSTANCES_DB as RootStateInstancesDbType
|
||||
|
||||
|
||||
+40
-56
@@ -12,6 +12,36 @@ export const actions: ActionTree<EditorState, RootState> = {
|
||||
commit('reset')
|
||||
},
|
||||
|
||||
downloadProgress({ state, commit }, payload: { progressEvent: any; direction: string; filesize: number | null }) {
|
||||
let speedOutput: string = state.loaderProgress.speed
|
||||
let lastTimestamp = state.loaderProgress.lastTimestamp
|
||||
let lastLoaded = state.loaderProgress.lastLoaded
|
||||
|
||||
const diffTime = payload.progressEvent.timeStamp - state.loaderProgress.lastTimestamp
|
||||
if (diffTime > 500) {
|
||||
const diffData = payload.progressEvent.loaded - lastLoaded
|
||||
let speed = diffData / diffTime
|
||||
const unit = ['kB', 'MB', 'GB']
|
||||
let unitSelect = 0
|
||||
while (speed > 1024) {
|
||||
speed /= 1024.0
|
||||
unitSelect = Math.min(2, unitSelect + 1)
|
||||
}
|
||||
speedOutput = speed.toFixed(2) + unit[unitSelect]
|
||||
lastTimestamp = payload.progressEvent.timeStamp
|
||||
lastLoaded = payload.progressEvent.loaded
|
||||
}
|
||||
|
||||
commit('updateLoader', {
|
||||
direction: payload.direction,
|
||||
speed: speedOutput,
|
||||
loaded: payload.progressEvent.loaded,
|
||||
total: payload.filesize ?? payload.progressEvent.total,
|
||||
lastLoaded,
|
||||
lastTimestamp,
|
||||
})
|
||||
},
|
||||
|
||||
openFile({ state, dispatch, commit, rootGetters }, payload) {
|
||||
const fullFilepathArray = []
|
||||
fullFilepathArray.push(payload.root)
|
||||
@@ -37,36 +67,12 @@ export const actions: ActionTree<EditorState, RootState> = {
|
||||
axios
|
||||
.get(url, {
|
||||
cancelToken: source.token,
|
||||
onDownloadProgress: (progressEvent) => {
|
||||
const total = progressEvent.total > 0 ? progressEvent.total : payload.size ?? 0
|
||||
|
||||
let speedOutput: string = state.loaderProgress.speed
|
||||
let lastTimestamp = state.loaderProgress.lastTimestamp
|
||||
let lastLoaded = state.loaderProgress.lastLoaded
|
||||
const diffTime = progressEvent.timeStamp - state.loaderProgress.lastTimestamp
|
||||
if (diffTime > 500) {
|
||||
const diffData = progressEvent.loaded - lastLoaded
|
||||
let speed = diffData / diffTime
|
||||
const unit = ['kB', 'MB', 'GB']
|
||||
let unitSelect = 0
|
||||
while (speed > 1024) {
|
||||
speed /= 1024.0
|
||||
unitSelect = Math.min(2, unitSelect + 1)
|
||||
}
|
||||
speedOutput = speed.toFixed(2) + unit[unitSelect]
|
||||
lastTimestamp = progressEvent.timeStamp
|
||||
lastLoaded = progressEvent.loaded
|
||||
}
|
||||
|
||||
this.commit('editor/updateLoader', {
|
||||
onDownloadProgress: (progressEvent) =>
|
||||
dispatch('downloadProgress', {
|
||||
progressEvent,
|
||||
direction: 'downloading',
|
||||
speed: speedOutput,
|
||||
loaded: progressEvent.loaded,
|
||||
total,
|
||||
lastLoaded,
|
||||
lastTimestamp,
|
||||
})
|
||||
},
|
||||
filesize: payload.size,
|
||||
}),
|
||||
responseType: 'blob',
|
||||
})
|
||||
.then((res) => res.data.text())
|
||||
@@ -106,34 +112,12 @@ export const actions: ActionTree<EditorState, RootState> = {
|
||||
axios
|
||||
.post(url, formData, {
|
||||
cancelToken: source.token,
|
||||
onUploadProgress: (progressEvent) => {
|
||||
let speedOutput: string = state.loaderProgress.speed
|
||||
let lastTimestamp = state.loaderProgress.lastTimestamp
|
||||
let lastLoaded = state.loaderProgress.lastLoaded
|
||||
const diffTime = progressEvent.timeStamp - state.loaderProgress.lastTimestamp
|
||||
if (diffTime > 500) {
|
||||
const diffData = progressEvent.loaded - lastLoaded
|
||||
let speed = diffData / diffTime
|
||||
const unit = ['kB', 'MB', 'GB']
|
||||
let unitSelect = 0
|
||||
while (speed > 1024) {
|
||||
speed /= 1024.0
|
||||
unitSelect = Math.min(2, unitSelect + 1)
|
||||
}
|
||||
speedOutput = speed.toFixed(2) + unit[unitSelect]
|
||||
lastTimestamp = progressEvent.timeStamp
|
||||
lastLoaded = progressEvent.loaded
|
||||
}
|
||||
|
||||
this.commit('editor/updateLoader', {
|
||||
onUploadProgress: (progressEvent) =>
|
||||
dispatch('downloadProgress', {
|
||||
progressEvent,
|
||||
direction: 'uploading',
|
||||
speed: speedOutput,
|
||||
loaded: progressEvent.loaded,
|
||||
total: progressEvent.total,
|
||||
lastLoaded: lastLoaded,
|
||||
lastTimestamp: lastTimestamp,
|
||||
})
|
||||
},
|
||||
filesize: null,
|
||||
}),
|
||||
})
|
||||
.then((response) => {
|
||||
return response.data
|
||||
|
||||
+46
-22
@@ -9,7 +9,7 @@ import {
|
||||
} from '@/store/files/types'
|
||||
import { RootState } from '@/store/types'
|
||||
import i18n from '@/plugins/i18n'
|
||||
import { validGcodeExtensions } from '@/store/variables'
|
||||
import { hiddenDirectories, validGcodeExtensions } from '@/store/variables'
|
||||
import axios from 'axios'
|
||||
|
||||
export const actions: ActionTree<FileState, RootState> = {
|
||||
@@ -67,28 +67,30 @@ export const actions: ActionTree<FileState, RootState> = {
|
||||
}
|
||||
|
||||
if (payload.dirs?.length) {
|
||||
payload.dirs.forEach((dir: ApiGetDirectoryReturnDir) => {
|
||||
if (
|
||||
directory?.childrens?.findIndex(
|
||||
(element: FileStateFile) => element.isDirectory && element.filename === dir.dirname
|
||||
) === -1
|
||||
) {
|
||||
commit('setCreateDir', {
|
||||
item: {
|
||||
path: path.length ? path + '/' + dir.dirname : dir.dirname,
|
||||
root: root,
|
||||
permissions: dir.permissions,
|
||||
modified: dir.modified * 1000,
|
||||
},
|
||||
})
|
||||
payload.dirs
|
||||
.filter((dir) => !hiddenDirectories.includes(dir.dirname))
|
||||
.forEach((dir: ApiGetDirectoryReturnDir) => {
|
||||
if (
|
||||
directory?.childrens?.findIndex(
|
||||
(element: FileStateFile) => element.isDirectory && element.filename === dir.dirname
|
||||
) === -1
|
||||
) {
|
||||
commit('setCreateDir', {
|
||||
item: {
|
||||
path: path.length ? path + '/' + dir.dirname : dir.dirname,
|
||||
root: root,
|
||||
permissions: dir.permissions,
|
||||
modified: dir.modified * 1000,
|
||||
},
|
||||
})
|
||||
|
||||
Vue.$socket.emit(
|
||||
'server.files.get_directory',
|
||||
{ path: payload.requestParams.path + '/' + dir.dirname },
|
||||
{ action: 'files/getDirectory' }
|
||||
)
|
||||
}
|
||||
})
|
||||
Vue.$socket.emit(
|
||||
'server.files.get_directory',
|
||||
{ path: payload.requestParams.path + '/' + dir.dirname },
|
||||
{ action: 'files/getDirectory' }
|
||||
)
|
||||
}
|
||||
})
|
||||
}
|
||||
|
||||
if (payload.files?.length) {
|
||||
@@ -332,4 +334,26 @@ export const actions: ActionTree<FileState, RootState> = {
|
||||
uploadSetMaxNumber({ commit }, payload) {
|
||||
commit('uploadSetMaxNumber', payload)
|
||||
},
|
||||
|
||||
downloadZip({ rootGetters }, payload) {
|
||||
const apiUrl = rootGetters['socket/getUrl']
|
||||
const url = `${apiUrl}/server/files/${payload.destination.root}/${encodeURI(payload.destination.path)}`
|
||||
window.open(url)
|
||||
},
|
||||
|
||||
rolloverLog(_, payload) {
|
||||
payload.rolled_over.forEach((name: string) => {
|
||||
Vue.$toast.success(<string>i18n.t('Machine.LogfilesPanel.RolloverToastSuccessful', { name }))
|
||||
})
|
||||
|
||||
Object.keys(payload.failed).forEach((name: string) => {
|
||||
const message = payload.failed[name]
|
||||
|
||||
Vue.$toast.error(<string>i18n.t('Machine.LogfilesPanel.RolloverToastFailed', { name, message }))
|
||||
})
|
||||
|
||||
setTimeout(() => {
|
||||
Vue.$socket.emit('server.files.get_directory', { path: 'logs' }, { action: 'files/getDirectory' })
|
||||
}, 500)
|
||||
},
|
||||
}
|
||||
+29
-23
@@ -11,35 +11,41 @@ export const getters: GetterTree<RootState, any> = {
|
||||
},
|
||||
|
||||
getTitle: (state, getters) => {
|
||||
if (state.socket?.isConnected && state.printer) {
|
||||
let printer_state = state.printer?.print_stats?.state ?? ''
|
||||
if (!state.socket?.isConnected) return 'Mainsail'
|
||||
if (state.server?.klippy_state !== 'ready') return i18n.t('App.Titles.Error')
|
||||
|
||||
if (state.printer['gcode_macro TIMELAPSE_TAKE_FRAME']?.is_paused && printer_state === 'paused')
|
||||
printer_state = 'printing'
|
||||
// get printer_state
|
||||
let printer_state = state.printer?.print_stats?.state ?? ''
|
||||
// skip pause, if timelapse is active
|
||||
if (state.printer && state.printer['gcode_macro TIMELAPSE_TAKE_FRAME']?.is_paused && printer_state === 'paused')
|
||||
printer_state = 'printing'
|
||||
|
||||
if (state.server?.klippy_state !== 'ready') return i18n.t('App.Titles.Error')
|
||||
else if (printer_state === 'paused') return i18n.t('App.Titles.Pause')
|
||||
else if (printer_state === 'printing') {
|
||||
const eta = getters['printer/getEstimatedTimeETAFormat']
|
||||
// return pause title
|
||||
if (printer_state === 'paused') return i18n.t('App.Titles.Pause')
|
||||
|
||||
if (eta !== '--')
|
||||
return i18n.t('App.Titles.PrintingETA', {
|
||||
percent: (getters['printer/getPrintPercent'] * 100).toFixed(0),
|
||||
filename: state.printer.print_stats?.filename,
|
||||
eta,
|
||||
})
|
||||
else
|
||||
return i18n.t('App.Titles.Printing', {
|
||||
percent: (getters['printer/getPrintPercent'] * 100).toFixed(0),
|
||||
filename: state.printer.print_stats?.filename,
|
||||
})
|
||||
} else if (state.printer?.print_stats?.state === 'complete')
|
||||
return i18n.t('App.Titles.Complete', { filename: state.printer.print_stats.filename })
|
||||
// return complete title
|
||||
if (state.printer?.print_stats?.state === 'complete')
|
||||
return i18n.t('App.Titles.Complete', { filename: state.printer.print_stats.filename })
|
||||
|
||||
return state.gui?.general.printername ?? state.printer?.hostname ?? 'Mainsail'
|
||||
// return printing title
|
||||
if (printer_state === 'printing') {
|
||||
const eta = getters['printer/getEstimatedTimeETAFormat']
|
||||
const percent = (getters['printer/getPrintPercent'] * 100).toFixed(0)
|
||||
|
||||
if (eta !== '--')
|
||||
return i18n.t('App.Titles.PrintingETA', {
|
||||
percent: percent,
|
||||
filename: state.printer?.print_stats?.filename,
|
||||
eta,
|
||||
})
|
||||
|
||||
return i18n.t('App.Titles.Printing', {
|
||||
percent: percent,
|
||||
filename: state.printer?.print_stats?.filename,
|
||||
})
|
||||
}
|
||||
|
||||
return 'Mainsail'
|
||||
return state.gui?.general.printername ?? state.printer?.hostname ?? 'Mainsail'
|
||||
},
|
||||
|
||||
getDependencies: (state) => {
|
||||
|
||||
+99
-20
@@ -1,6 +1,7 @@
|
||||
import { GetterTree } from 'vuex'
|
||||
import { GuiState } from '@/store/gui/types'
|
||||
import { GuiMacrosStateMacrogroup } from '@/store/gui/macros/types'
|
||||
import { allDashboardPanels } from '@/store/variables'
|
||||
|
||||
// eslint-disable-next-line
|
||||
export const getters: GetterTree<GuiState, any> = {
|
||||
@@ -33,31 +34,109 @@ export const getters: GetterTree<GuiState, any> = {
|
||||
return true
|
||||
},
|
||||
|
||||
getPanels: (state, getters, rootState) => (viewport: string) => {
|
||||
// @ts-ignore
|
||||
let panels = state.dashboard[viewport]?.filter((element: any) => element !== null) ?? []
|
||||
getAllPossiblePanels: (state, getters, rootState, rootGetters) => {
|
||||
let allPanels = [...allDashboardPanels]
|
||||
|
||||
if (rootState.gui.macros.mode === 'simple')
|
||||
panels = panels.filter((element: any) => !element.name.startsWith('macrogroup_'))
|
||||
else {
|
||||
panels = panels.filter((element: any) => element.name !== 'macros')
|
||||
// remove macros panel and add macrogroups panels if macroMode === expert
|
||||
if (state.macros?.mode === 'expert') {
|
||||
const macrogroups = getters['macros/getAllMacrogroups']
|
||||
if (macrogroups.length) {
|
||||
panels = panels.filter((element: any) => {
|
||||
if (!element.name.startsWith('macrogroup_')) return true
|
||||
|
||||
const macrogroupId = element.name.slice(11)
|
||||
return (
|
||||
macrogroups.findIndex(
|
||||
(macrogroup: GuiMacrosStateMacrogroup) => macrogroup.id === macrogroupId
|
||||
) !== -1
|
||||
)
|
||||
})
|
||||
}
|
||||
macrogroups.forEach((group: GuiMacrosStateMacrogroup) => {
|
||||
allPanels.push('macrogroup_' + group.id)
|
||||
})
|
||||
|
||||
allPanels = allPanels.filter((name) => name !== 'macros')
|
||||
}
|
||||
|
||||
if (getters['webcams/getWebcams'].length === 0) {
|
||||
panels = panels.filter((element: any) => element.name !== 'webcam')
|
||||
// remove toolhead & machine-settings panel, if kinematics === none
|
||||
const printerKinematics = rootGetters['printer/getKinematics']
|
||||
if (printerKinematics === 'none') {
|
||||
allPanels = allPanels.filter((name) => !['toolhead-control', 'machine-settings'].includes(name))
|
||||
}
|
||||
|
||||
// remove extruder panel, if printerExtruderCount < 1
|
||||
const printerExtruders = rootGetters['printer/getExtruders']
|
||||
if (printerExtruders.length < 1) {
|
||||
allPanels = allPanels.filter((name) => name !== 'extruder-control')
|
||||
}
|
||||
|
||||
// remove temperature panel, if heaters & sensors < 1
|
||||
const printerAvailableHeaters = rootGetters['printer/getAvailableHeaters']
|
||||
const printerTemperatureSensorKeys = rootGetters['printer/getTemperatureSensorKeys']
|
||||
if (printerAvailableHeaters.length + printerTemperatureSensorKeys.length < 1) {
|
||||
allPanels = allPanels.filter((name) => name !== 'temperature')
|
||||
}
|
||||
|
||||
// remove webcam panel, if no webcam exists
|
||||
const webcams = getters['webcams/getWebcams']
|
||||
if (webcams.length === 0) {
|
||||
allPanels = allPanels.filter((name) => name !== 'webcam')
|
||||
}
|
||||
|
||||
return allPanels
|
||||
},
|
||||
|
||||
getPanels:
|
||||
(state, getters, rootState) =>
|
||||
(viewport: string, column: number, onlyVisible: boolean = false) => {
|
||||
const layoutName = column ? `${viewport}Layout${column}` : `${viewport}Layout`
|
||||
// @ts-ignore
|
||||
let panels = state.dashboard[layoutName]?.filter((element: any) => element !== null) ?? []
|
||||
const allPossiblePanels = getters['getAllPossiblePanels']
|
||||
|
||||
if (column < 2) {
|
||||
const allViewportPanels = getters['getAllPanelsFromViewport'](viewport)
|
||||
const missingPanels: any[] = []
|
||||
|
||||
allPossiblePanels.forEach((panelname: string) => {
|
||||
if (!allViewportPanels.find((panel: any) => panel.name === panelname))
|
||||
missingPanels.push({
|
||||
name: panelname,
|
||||
visible: true,
|
||||
})
|
||||
})
|
||||
panels = panels.concat(missingPanels)
|
||||
}
|
||||
|
||||
if (onlyVisible) {
|
||||
panels = panels.filter((element: any) => element.visible)
|
||||
}
|
||||
|
||||
if (rootState.gui.macros.mode === 'simple')
|
||||
panels = panels.filter((element: any) => !element.name.startsWith('macrogroup_'))
|
||||
else {
|
||||
panels = panels.filter((element: any) => element.name !== 'macros')
|
||||
const macrogroups = getters['macros/getAllMacrogroups']
|
||||
if (macrogroups.length) {
|
||||
panels = panels.filter((element: any) => {
|
||||
if (!element.name.startsWith('macrogroup_')) return true
|
||||
|
||||
const macrogroupId = element.name.slice(11)
|
||||
return (
|
||||
macrogroups.findIndex(
|
||||
(macrogroup: GuiMacrosStateMacrogroup) => macrogroup.id === macrogroupId
|
||||
) !== -1
|
||||
)
|
||||
})
|
||||
}
|
||||
}
|
||||
|
||||
return panels.filter((element: any) => allPossiblePanels.includes(element.name))
|
||||
},
|
||||
|
||||
getAllPanelsFromViewport: (state) => (viewport: string) => {
|
||||
let panels: any = []
|
||||
|
||||
if (`${viewport}Layout` in state.dashboard) {
|
||||
// @ts-ignore
|
||||
panels = panels.concat(state.dashboard[`${viewport}Layout`])
|
||||
}
|
||||
|
||||
let nr = 1
|
||||
while (`${viewport}Layout${nr}` in state.dashboard) {
|
||||
// @ts-ignore
|
||||
panels = panels.concat(state.dashboard[`${viewport}Layout${nr}`])
|
||||
nr++
|
||||
}
|
||||
|
||||
return panels
|
||||
|
||||
@@ -138,6 +138,8 @@ export const getDefaultState = (): GuiState => {
|
||||
axis_minimum: null,
|
||||
axis_maximum: null,
|
||||
},
|
||||
showGCodePanel: false,
|
||||
cncMode: false,
|
||||
},
|
||||
uiSettings: {
|
||||
logo: defaultLogoColor,
|
||||
@@ -152,6 +154,9 @@ export const getDefaultState = (): GuiState => {
|
||||
boolHideUploadAndPrintButton: false,
|
||||
boolWebcamNavi: false,
|
||||
navigationStyle: 'iconsAndText',
|
||||
powerDeviceName: null,
|
||||
hideSaveConfigForBedMash: false,
|
||||
disableFanAnimation: false,
|
||||
},
|
||||
view: {
|
||||
blockFileUpload: false,
|
||||
@@ -194,11 +199,12 @@ export const getDefaultState = (): GuiState => {
|
||||
mesh: false,
|
||||
flat: false,
|
||||
wireframe: true,
|
||||
scale: 0.5,
|
||||
scaleVisualMap: false,
|
||||
scaleGradient: false,
|
||||
scaleZMax: 0.5,
|
||||
},
|
||||
history: {
|
||||
countPerPage: 10,
|
||||
toggleChartCol2: 'chart',
|
||||
toggleChartCol3: 'filament_usage',
|
||||
hidePrintStatus: [],
|
||||
hideColums: [
|
||||
|
||||
@@ -86,6 +86,8 @@ export interface GuiState {
|
||||
axis_minimum: number[] | null
|
||||
axis_maximum: number[] | null
|
||||
}
|
||||
showGCodePanel: boolean
|
||||
cncMode: boolean
|
||||
}
|
||||
macros?: GuiMacrosState
|
||||
notifications?: GuiNotificationState
|
||||
@@ -104,6 +106,9 @@ export interface GuiState {
|
||||
boolHideUploadAndPrintButton: boolean
|
||||
boolWebcamNavi: boolean
|
||||
navigationStyle: 'iconsAndText' | 'iconsOnly'
|
||||
powerDeviceName: string | null
|
||||
hideSaveConfigForBedMash: boolean
|
||||
disableFanAnimation: boolean
|
||||
}
|
||||
view: {
|
||||
blockFileUpload: boolean
|
||||
@@ -133,11 +138,12 @@ export interface GuiState {
|
||||
mesh: boolean
|
||||
flat: boolean
|
||||
wireframe: boolean
|
||||
scale: number
|
||||
scaleVisualMap: boolean
|
||||
scaleGradient: boolean
|
||||
scaleZMax: number
|
||||
}
|
||||
history: {
|
||||
countPerPage: number
|
||||
toggleChartCol2: 'chart' | 'table'
|
||||
toggleChartCol3: string
|
||||
hidePrintStatus: string[]
|
||||
hideColums: string[]
|
||||
|
||||
@@ -63,6 +63,11 @@ export const actions: ActionTree<PrinterState, RootState> = {
|
||||
},
|
||||
|
||||
getInitData({ dispatch }, payload) {
|
||||
if ('screws_tilt_adjust' in payload.status) {
|
||||
payload.status.screws_tilt_adjust.error = false
|
||||
payload.status.screws_tilt_adjust.results = {}
|
||||
}
|
||||
|
||||
dispatch('getData', payload)
|
||||
|
||||
Vue.$socket.emit('server.temperature_store', {}, { action: 'printer/tempHistory/init' })
|
||||
@@ -143,4 +148,8 @@ export const actions: ActionTree<PrinterState, RootState> = {
|
||||
Vue.$socket.emit('printer.gcode.script', { script: payload }, { loading: 'sendGcode' })
|
||||
}
|
||||
},
|
||||
|
||||
clearScrewsTiltAdjust({ commit }) {
|
||||
commit('clearScrewsTiltAdjust')
|
||||
},
|
||||
}
|
||||
@@ -100,15 +100,13 @@ export const getters: GetterTree<PrinterState, RootState> = {
|
||||
},
|
||||
|
||||
getPrintMaxLayers: (state) => {
|
||||
if (state.print_stats?.info?.total_layer !== null) {
|
||||
return state.print_stats.info.total_layer
|
||||
} else if (state.current_file?.layer_count) {
|
||||
return state.current_file.layer_count
|
||||
} else if (
|
||||
'current_file' in state &&
|
||||
'first_layer_height' in state.current_file &&
|
||||
'layer_height' in state.current_file &&
|
||||
'object_height' in state.current_file
|
||||
if ((state.print_stats?.info?.total_layer ?? null) !== null) return state.print_stats.info.total_layer
|
||||
if (state.current_file?.layer_count) return state.current_file.layer_count
|
||||
|
||||
if (
|
||||
state.current_file?.first_layer_height !== undefined &&
|
||||
state.current_file?.layer_height !== undefined &&
|
||||
state.current_file?.object_height !== undefined
|
||||
) {
|
||||
const max = Math.ceil(
|
||||
(state.current_file.object_height - state.current_file.first_layer_height) /
|
||||
@@ -122,12 +120,12 @@ export const getters: GetterTree<PrinterState, RootState> = {
|
||||
},
|
||||
|
||||
getPrintCurrentLayer: (state, getters) => {
|
||||
if (state.print_stats?.info?.current_layer !== null) {
|
||||
return state.print_stats.info.current_layer
|
||||
} else if (
|
||||
if ((state.print_stats?.info?.current_layer ?? null) !== null) return state.print_stats.info.current_layer
|
||||
|
||||
if (
|
||||
state.print_stats?.print_duration > 0 &&
|
||||
'first_layer_height' in state.current_file &&
|
||||
'layer_height' in state.current_file
|
||||
state.current_file?.first_layer_height !== undefined &&
|
||||
state.current_file?.layer_height !== undefined
|
||||
) {
|
||||
const gcodePositionZ = state.gcode_move?.gcode_position[2] ?? 0
|
||||
const current_layer = Math.ceil(
|
||||
@@ -156,7 +154,7 @@ export const getters: GetterTree<PrinterState, RootState> = {
|
||||
type,
|
||||
state: { ...value },
|
||||
config: state.configfile?.config[key] ?? {},
|
||||
settings: state.configfile?.settings[key] ?? {},
|
||||
settings: state.configfile?.settings[key.toLowerCase()] ?? {},
|
||||
})
|
||||
}
|
||||
}
|
||||
@@ -266,7 +264,7 @@ export const getters: GetterTree<PrinterState, RootState> = {
|
||||
temperature: Math.round(value.temperature * 10) / 10,
|
||||
additionalSensors: getters.getAdditionalSensors(nameSplit[1]),
|
||||
speed: Math.round((value.speed ?? 0) * 100),
|
||||
avgSpeed: Math.round(getters['tempHistory/getAvgSpeed'](name) ?? 0),
|
||||
avgSpeed: Math.round(getters['tempHistory/getAvgSpeed'](nameSplit[1]) ?? 0),
|
||||
rpm: value.rpm !== null ? Math.round(value.rpm) : null,
|
||||
presets: rootGetters['gui/presets/getPresetsFromHeater']({ name: key }),
|
||||
chartColor: getters['tempHistory/getDatasetColor'](nameSplit[1]),
|
||||
@@ -280,79 +278,87 @@ export const getters: GetterTree<PrinterState, RootState> = {
|
||||
return caseInsensitiveSort(fans, 'name')
|
||||
},
|
||||
|
||||
getTemperatureSensorKeys: (state) => {
|
||||
return Object.keys(state).filter((name) => name.startsWith('temperature_sensor ') && !name.startsWith('_'))
|
||||
},
|
||||
|
||||
getTemperatureSensors: (state, getters, rootState, rootGetters) => {
|
||||
const sensors: PrinterStateTemperatureSensor[] = []
|
||||
|
||||
for (const [key, value] of Object.entries(state)) {
|
||||
const tempSensors = getters['getTemperatureSensorKeys']
|
||||
tempSensors.forEach((key: string) => {
|
||||
const nameSplit = key.split(' ')
|
||||
const values = { ...state[key] }
|
||||
let icon = mdiThermometer
|
||||
const min_temp = state.configfile?.settings[key]?.min_temp ?? 0
|
||||
const max_temp = state.configfile?.settings[key]?.max_temp ?? 210
|
||||
const split = (max_temp - min_temp) / 3
|
||||
|
||||
if (nameSplit[0] === 'temperature_sensor' && !nameSplit[1].startsWith('_')) {
|
||||
let icon = mdiThermometer
|
||||
const min_temp = state.configfile?.settings[key]?.min_temp ?? 0
|
||||
const max_temp = state.configfile?.settings[key]?.max_temp ?? 210
|
||||
const split = (max_temp - min_temp) / 3
|
||||
if (values.temperature <= min_temp + split) icon = mdiThermometerLow
|
||||
if (values.temperature >= max_temp - split) icon = mdiThermometerHigh
|
||||
|
||||
if (value.temperature <= min_temp + split) icon = mdiThermometerLow
|
||||
if (value.temperature >= max_temp - split) icon = mdiThermometerHigh
|
||||
sensors.push({
|
||||
name: nameSplit[1],
|
||||
temperature: Math.round(values.temperature * 10) / 10,
|
||||
additionalSensors: getters.getAdditionalSensors(nameSplit[1]),
|
||||
icon: icon,
|
||||
min_temp: min_temp,
|
||||
max_temp: max_temp,
|
||||
measured_min_temp: Math.round(values.measured_min_temp * 10) / 10,
|
||||
measured_max_temp: Math.round(values.measured_max_temp * 10) / 10,
|
||||
chartColor: getters['tempHistory/getDatasetColor'](nameSplit[1]),
|
||||
chartSeries: getters['tempHistory/getSerieNames'](nameSplit[1]),
|
||||
})
|
||||
})
|
||||
|
||||
sensors.push({
|
||||
name: nameSplit[1],
|
||||
temperature: Math.round(value.temperature * 10) / 10,
|
||||
additionalSensors: getters.getAdditionalSensors(nameSplit[1]),
|
||||
icon: icon,
|
||||
min_temp: min_temp,
|
||||
max_temp: max_temp,
|
||||
measured_min_temp: Math.round(value.measured_min_temp * 10) / 10,
|
||||
measured_max_temp: Math.round(value.measured_max_temp * 10) / 10,
|
||||
chartColor: getters['tempHistory/getDatasetColor'](nameSplit[1]),
|
||||
chartSeries: getters['tempHistory/getSerieNames'](nameSplit[1]),
|
||||
})
|
||||
} else if (key === 'z_thermal_adjust') {
|
||||
let icon = mdiThermometer
|
||||
const min_temp = state.configfile?.settings[key]?.min_temp ?? 0
|
||||
const max_temp = state.configfile?.settings[key]?.max_temp ?? 210
|
||||
const split = (max_temp - min_temp) / 3
|
||||
if ('z_thermal_adjust' in state) {
|
||||
const key = 'z_thermal_adjust'
|
||||
const values = state[key]
|
||||
let icon = mdiThermometer
|
||||
const min_temp = state.configfile?.settings[key]?.min_temp ?? 0
|
||||
const max_temp = state.configfile?.settings[key]?.max_temp ?? 210
|
||||
const split = (max_temp - min_temp) / 3
|
||||
|
||||
if (value.temperature <= min_temp + split) icon = mdiThermometerLow
|
||||
if (value.temperature >= max_temp - split) icon = mdiThermometerHigh
|
||||
if (values.temperature <= min_temp + split) icon = mdiThermometerLow
|
||||
if (values.temperature >= max_temp - split) icon = mdiThermometerHigh
|
||||
|
||||
const additionalSensorBool = rootGetters['gui/getDatasetAdditionalSensorValue']({
|
||||
name: key,
|
||||
sensor: 'z_adjust',
|
||||
})
|
||||
const additionalSensorBool = rootGetters['gui/getDatasetAdditionalSensorValue']({
|
||||
name: key,
|
||||
sensor: 'z_adjust',
|
||||
})
|
||||
|
||||
const additionalSensor: PrinterStateAdditionalSensor = {
|
||||
bool: additionalSensorBool,
|
||||
name: 'z_adjust',
|
||||
unit: 'μm',
|
||||
value: Math.round(value.current_z_adjust * 1000),
|
||||
}
|
||||
|
||||
if (Math.abs(value.current_z_adjust) >= 0.1) {
|
||||
additionalSensor.value = Math.round(value.current_z_adjust * 1000) / 1000
|
||||
additionalSensor.unit = 'mm'
|
||||
}
|
||||
|
||||
sensors.push({
|
||||
name: key,
|
||||
temperature: Math.round(value.temperature * 10) / 10,
|
||||
additionalSensors: [additionalSensor],
|
||||
icon,
|
||||
min_temp: min_temp,
|
||||
max_temp: max_temp,
|
||||
measured_min_temp: Math.round(value.measured_min_temp * 10) / 10,
|
||||
measured_max_temp: Math.round(value.measured_max_temp * 10) / 10,
|
||||
chartColor: getters['tempHistory/getDatasetColor'](key),
|
||||
chartSeries: getters['tempHistory/getSerieNames'](key),
|
||||
})
|
||||
const additionalSensor: PrinterStateAdditionalSensor = {
|
||||
bool: additionalSensorBool,
|
||||
name: 'z_adjust',
|
||||
unit: 'μm',
|
||||
value: Math.round(values.current_z_adjust * 1000),
|
||||
}
|
||||
|
||||
if (Math.abs(values.current_z_adjust) >= 0.1) {
|
||||
additionalSensor.value = Math.round(values.current_z_adjust * 1000) / 1000
|
||||
additionalSensor.unit = 'mm'
|
||||
}
|
||||
|
||||
sensors.push({
|
||||
name: key,
|
||||
temperature: Math.round(values.temperature * 10) / 10,
|
||||
additionalSensors: [additionalSensor],
|
||||
icon,
|
||||
min_temp: min_temp,
|
||||
max_temp: max_temp,
|
||||
measured_min_temp: Math.round(values.measured_min_temp * 10) / 10,
|
||||
measured_max_temp: Math.round(values.measured_max_temp * 10) / 10,
|
||||
chartColor: getters['tempHistory/getDatasetColor'](key),
|
||||
chartSeries: getters['tempHistory/getSerieNames'](key),
|
||||
})
|
||||
}
|
||||
|
||||
return caseInsensitiveSort(sensors, 'name')
|
||||
},
|
||||
|
||||
getTemperatureObjects: (state, getters) => {
|
||||
getTemperatureObjects: (state, getters, rootState) => {
|
||||
const objects: PrinterStateTemperatureObject[] = []
|
||||
const disableFanAnimation = rootState.gui?.uiSettings.disableFanAnimation ?? false
|
||||
|
||||
const heaters = getters['getHeaters']
|
||||
if (heaters.length) {
|
||||
@@ -397,7 +403,7 @@ export const getters: GetterTree<PrinterState, RootState> = {
|
||||
fan.target > 0
|
||||
? `${fan.chartColor}${opacityHeaterActive}`
|
||||
: `${fan.chartColor}${opacityHeaterInactive}`,
|
||||
iconClass: fan.speed ? ' icon-rotate' : '',
|
||||
iconClass: !disableFanAnimation && fan.speed ? ' icon-rotate' : '',
|
||||
state: fan.target > 0 && fan.speed > 0 ? fan.speed + '%' : fan.target > 0 ? 'standby' : 'off',
|
||||
avgState: fan.avgSpeed + '%',
|
||||
temperature: fan.temperature,
|
||||
@@ -1092,6 +1098,7 @@ export const getters: GetterTree<PrinterState, RootState> = {
|
||||
tools.push({
|
||||
name: macro.name,
|
||||
active: macro.variables.active ?? false,
|
||||
color: macro.variables.color ?? macro.variables.colour ?? null,
|
||||
})
|
||||
)
|
||||
|
||||
|
||||
@@ -58,4 +58,9 @@ export const mutations: MutationTree<PrinterState> = {
|
||||
Object.assign(state.configfile.config['bed_mesh ' + payload.name], { deleted: true })
|
||||
}
|
||||
},
|
||||
|
||||
clearScrewsTiltAdjust(state) {
|
||||
Vue.set(state.screws_tilt_adjust, 'error', false)
|
||||
Vue.set(state.screws_tilt_adjust, 'results', [])
|
||||
},
|
||||
}
|
||||
@@ -252,6 +252,7 @@ export interface PrinterStateExtruderStepper {
|
||||
export interface PrinterStateToolchangeMacro {
|
||||
name: string
|
||||
active: boolean
|
||||
color: string
|
||||
}
|
||||
|
||||
export interface PrinterGetterObject {
|
||||
|
||||
@@ -153,9 +153,12 @@ export const getters: GetterTree<ServerState, any> = {
|
||||
|
||||
Object.keys(state.network_stats).forEach((interfaceName: string) => {
|
||||
if (interfaceName !== 'lo') {
|
||||
if (state.system_info?.network && interfaceName in state.system_info.network) {
|
||||
if (interfaceName in (state.system_info?.network ?? {}) || interfaceName.startsWith('can')) {
|
||||
interfaces[interfaceName] = { ...state.network_stats[interfaceName] }
|
||||
interfaces[interfaceName].details = { ...state.system_info.network[interfaceName] }
|
||||
|
||||
if (state.system_info?.network && interfaceName in (state.system_info?.network ?? {})) {
|
||||
interfaces[interfaceName].details = { ...state.system_info.network[interfaceName] }
|
||||
}
|
||||
}
|
||||
}
|
||||
})
|
||||
|
||||
@@ -66,9 +66,8 @@ export const getters: GetterTree<ServerHistoryState, any> = {
|
||||
: 0
|
||||
},
|
||||
|
||||
getAllPrintStatusArray(state, getters, rootState) {
|
||||
getAllPrintStatusArrayAll(state, getters, rootState) {
|
||||
const output: ServerHistoryStateAllPrintStatusEntry[] = []
|
||||
const totalCount = state.jobs.length
|
||||
|
||||
state.jobs.forEach((current) => {
|
||||
const index = output.findIndex((element) => element.name === current.status)
|
||||
@@ -113,6 +112,13 @@ export const getters: GetterTree<ServerHistoryState, any> = {
|
||||
}
|
||||
})
|
||||
|
||||
return output
|
||||
},
|
||||
|
||||
getAllPrintStatusArray(state, getters) {
|
||||
const output: ServerHistoryStateAllPrintStatusEntry[] = [...getters.getAllPrintStatusArrayAll]
|
||||
const totalCount = state.jobs.length
|
||||
|
||||
const otherLimit = totalCount * 0.05
|
||||
const others = output.filter((entry) => entry.value < otherLimit)
|
||||
if (others.length > 1) {
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
import Vue from 'vue'
|
||||
import { ActionTree } from 'vuex'
|
||||
import { RootState } from '@/store/types'
|
||||
import { ServerJobQueueState } from '@/store/server/jobQueue/types'
|
||||
import { ServerJobQueueState, ServerJobQueueStateJob } from '@/store/server/jobQueue/types'
|
||||
|
||||
export const actions: ActionTree<ServerJobQueueState, RootState> = {
|
||||
reset({ commit }) {
|
||||
@@ -28,6 +28,31 @@ export const actions: ActionTree<ServerJobQueueState, RootState> = {
|
||||
Vue.$socket.emit('server.job_queue.post_job', { filenames: filenames })
|
||||
},
|
||||
|
||||
changeCount({ getters }, payload: { job_id: string; count: number }) {
|
||||
const filenames: string[] = []
|
||||
const jobs = getters['getJobs']
|
||||
|
||||
jobs.forEach((job: ServerJobQueueStateJob) => {
|
||||
if (job.job_id === payload.job_id) {
|
||||
for (let i = 0; i < payload.count; i++) {
|
||||
filenames.push(job.filename)
|
||||
}
|
||||
|
||||
return
|
||||
}
|
||||
|
||||
const count = (job.combinedIds?.length ?? 0) + 1
|
||||
for (let i = 0; i < count; i++) {
|
||||
filenames.push(job.filename)
|
||||
}
|
||||
})
|
||||
|
||||
Vue.$socket.emit('server.job_queue.post_job', {
|
||||
filenames,
|
||||
reset: true,
|
||||
})
|
||||
},
|
||||
|
||||
deleteFromQueue(_, job_ids: string[]) {
|
||||
Vue.$socket.emit('server.job_queue.delete_job', { job_ids })
|
||||
},
|
||||
|
||||
@@ -10,10 +10,17 @@ export const getters: GetterTree<ServerJobQueueState, any> = {
|
||||
|
||||
state.queued_jobs.forEach((queuedJob) => {
|
||||
const job = { ...queuedJob }
|
||||
|
||||
if (jobs.length && jobs[jobs.length - 1].filename === job.filename) {
|
||||
jobs[jobs.length - 1].combinedIds?.push(job.job_id)
|
||||
return
|
||||
}
|
||||
|
||||
const file = rootGetters['files/getFile']('gcodes/' + job.filename)
|
||||
if (!file?.metadataPulled)
|
||||
Vue.$socket.emit('server.files.metadata', { filename: job.filename }, { action: 'files/getMetadata' })
|
||||
job['metadata'] = file
|
||||
job.metadata = file
|
||||
job.combinedIds = []
|
||||
|
||||
jobs.push(job)
|
||||
})
|
||||
@@ -21,6 +28,10 @@ export const getters: GetterTree<ServerJobQueueState, any> = {
|
||||
return jobs
|
||||
},
|
||||
|
||||
getJobsCount: (state) => {
|
||||
return state.queued_jobs.length
|
||||
},
|
||||
|
||||
getSmallThumbnail: (state, getters, rootState, rootGetters) => (item: ServerJobQueueStateJob) => {
|
||||
if (item?.metadata?.thumbnails?.length) {
|
||||
const thumbnail = item?.metadata?.thumbnails.find(
|
||||
|
||||
@@ -10,4 +10,5 @@ export interface ServerJobQueueStateJob {
|
||||
time_in_queue: number
|
||||
metadata?: any
|
||||
isFirst?: boolean
|
||||
combinedIds?: string[]
|
||||
}
|
||||
+12
-2
@@ -1,8 +1,8 @@
|
||||
export const defaultLogoColor = '#D41216'
|
||||
export const defaultPrimaryColor = '#2196f3'
|
||||
|
||||
export const minKlipperVersion = 'v0.10.0-271'
|
||||
export const minMoonrakerVersion = 'v0.7.1-486'
|
||||
export const minKlipperVersion = 'v0.11.0-97'
|
||||
export const minMoonrakerVersion = 'v0.7.1-797'
|
||||
|
||||
export const colorArray = ['#F44336', '#8e379d', '#03DAC5', '#3F51B5', '#ffde03', '#009688', '#E91E63']
|
||||
|
||||
@@ -107,8 +107,18 @@ export const timelapseConsoleFilters = [
|
||||
*/
|
||||
export const hiddenRootDirectories = ['gcodes', 'timelapse', 'timelapse_frames']
|
||||
|
||||
/*
|
||||
* Hide directories
|
||||
*/
|
||||
export const hiddenDirectories = ['.git']
|
||||
|
||||
/*
|
||||
* List of available Klipper config reference translations
|
||||
* https://www.klipper3d.org/Config_Reference.html
|
||||
*/
|
||||
export const availableKlipperConfigReferenceTranslations = ['it', 'hu', 'zh']
|
||||
|
||||
/*
|
||||
* List of all rollover logfiles
|
||||
*/
|
||||
export const rolloverLogfiles = ['klipper', 'moonraker']
|
||||
Reference in new issue
Block a user