Compare commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
655d2fd339 | ||
|
|
0735ed37a9 | ||
|
|
d96070f336 | ||
|
|
d259abb749 | ||
|
|
3e06c5fd66 | ||
|
|
288e5110f4 | ||
|
|
41ca5244cc | ||
|
|
3d4b5451ae | ||
|
|
dc17ff1158 | ||
|
|
de23cb6243 | ||
|
|
94d7f0dc16 | ||
|
|
45c52e3571 | ||
|
|
03640e239b | ||
|
|
4c24fa7284 | ||
|
|
12483ee63b | ||
|
|
bae712540e | ||
|
|
31664b5f38 | ||
|
|
ba5aea2b88 | ||
|
|
a6e38df012 | ||
|
|
bc0018dadc | ||
|
|
1a659d30d2 | ||
|
|
d0bf0bde11 | ||
|
|
d87fe4173d | ||
|
|
f8c66af48b | ||
|
|
da14c44873 | ||
|
|
20adf79e7c | ||
|
|
2aa181c7f5 | ||
|
|
c9ab0782bf | ||
|
|
6f8cfaa276 | ||
|
|
4760b9d9f1 | ||
|
|
d6015be734 | ||
|
|
837623e0a1 | ||
|
|
7c28027189 | ||
|
|
a88c9ba083 | ||
|
|
128baea88c | ||
|
|
cca17a8822 | ||
|
|
685665bd46 | ||
|
|
d1cfe7251d | ||
|
|
05dea0c78b | ||
|
|
d05efe26c4 | ||
|
|
835c5dacd2 | ||
|
|
57bb268ea0 | ||
|
|
d5cafaaa06 | ||
|
|
8cba020fb2 | ||
|
|
a305f243da | ||
|
|
666c942b18 | ||
|
|
f01f421c1c | ||
|
|
285b8b9b6f | ||
|
|
feadc73847 | ||
|
|
ceca6ce2f7 | ||
|
|
ff37c7de32 | ||
|
|
829e7a497d | ||
|
|
37c9fa8657 | ||
|
|
6a40e6047d | ||
|
|
78b9864d11 | ||
|
|
950dea1e08 | ||
|
|
27c57eef68 | ||
|
|
f65bc9f0b9 | ||
|
|
e150a4ef32 | ||
|
|
a70bd12c19 | ||
|
|
3ec2ee2793 | ||
|
|
e411175b7f | ||
|
|
3f67d1d4c5 | ||
|
|
12dd1c9e31 | ||
|
|
2b2057648d | ||
|
|
42f7851636 | ||
|
|
175a90aae5 |
No files matched your search
@@ -13,6 +13,7 @@
|
||||
"rules": {
|
||||
"vue/no-v-html": 0,
|
||||
"vue/component-tags-order": 0,
|
||||
"vue/no-v-text-v-html-on-component": 0,
|
||||
"vue/valid-v-slot": [
|
||||
"error",
|
||||
{
|
||||
|
||||
@@ -1,18 +0,0 @@
|
||||
name: Send LGTM reaction
|
||||
on:
|
||||
issue_comment:
|
||||
types: [created]
|
||||
pull_request_review:
|
||||
types: [submitted]
|
||||
jobs:
|
||||
build:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@1.0.0
|
||||
- uses: micnncim/action-lgtm-reaction@master
|
||||
env:
|
||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||
GIPHY_API_KEY: ${{ secrets.GIPHY_API_KEY }}
|
||||
with:
|
||||
trigger: '["^(?i)lgtm!*$"]'
|
||||
source: 'giphy'
|
||||
@@ -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
|
||||
@@ -19,7 +19,7 @@ jobs:
|
||||
- name: Install node
|
||||
uses: actions/setup-node@v3
|
||||
with:
|
||||
node-version: '16'
|
||||
node-version: 18
|
||||
|
||||
- name: Install dependencies
|
||||
run: npm ci
|
||||
@@ -28,6 +28,6 @@ jobs:
|
||||
run: npm run build
|
||||
|
||||
- name: Cypress run
|
||||
uses: cypress-io/github-action@v2
|
||||
uses: cypress-io/github-action@v4
|
||||
with:
|
||||
start: npm start
|
||||
start: npm run preview
|
||||
@@ -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
|
||||
@@ -14,5 +14,6 @@ package-lock.json
|
||||
*.local
|
||||
.env
|
||||
|
||||
cypress/screenshots/
|
||||
cypress/videos/
|
||||
components.d.ts
|
||||
+1
-1
@@ -74,7 +74,7 @@ Before you work on a PR and submit it, please pay attention to the following gui
|
||||
- Upon merging, we will squash all commits of the PR into a single commit for a clean history and release changelogs.
|
||||
7. Please sign off each commit and your PR. It must contain your real name and a current email address (see example in item 4).
|
||||
- The sign-off should follow this pattern: `Signed-off-by: My Name <myemail@example.org>`
|
||||
- The sign-off certifies that you agree with the [developer certificate of origin](https://github.com/mainsail-crew/mainsail/.github/DEVELOPER_CERTIFICATE_OF_ORIGIN.md).
|
||||
- The sign-off certifies that you agree with the [developer certificate of origin](https://github.com/mainsail-crew/mainsail/blob/develop/.github/DEVELOPER_CERTIFICATE_OF_ORIGIN.md).
|
||||
- If you provide a translation, a sign-off is not necessarily required.
|
||||
8. When opening a pull request, keep `Allow edits and access to secrets by maintainers` **enabled**.
|
||||
|
||||
|
||||
+1
-1
@@ -1,7 +1,7 @@
|
||||
#
|
||||
# Builder stage, builds the application in node
|
||||
#
|
||||
FROM --platform=$BUILDPLATFORM node:16-alpine as builder
|
||||
FROM --platform=$BUILDPLATFORM node:18-alpine as builder
|
||||
|
||||
RUN apk add zip
|
||||
|
||||
|
||||
@@ -73,7 +73,7 @@ You can find the latest release notes [here](https://github.com/mainsail-crew/ma
|
||||
- **Power Control:** _Control power devices such as relays, TP-Link and Tasmota devices, and more_
|
||||
- **Powerful Macro-Management:** _Manage your macros on a micro level_
|
||||
- **[Configurable Dashboard](https://docs.mainsail.xyz/features/dashboard-organisation):** _Create your own personal dashboard_
|
||||
- **[Theming Support](https://docs.mainsail.xyz/features/theming/):** _Customizable user interface including logos, backgrounds, and custom CSS_
|
||||
- **[Theming Support](https://docs.mainsail.xyz/features/theming):** _Customizable user interface including logos, backgrounds, and custom CSS_
|
||||
- **[Additional Sensors](https://docs.mainsail.xyz/quicktips/additional-sensors):** _Add extra sensors to the temperature graph_
|
||||
- **Exclude Objects:** _Exclude parts of your print <sup>(not officially supported by Klipper yet)</sup>_
|
||||
|
||||
@@ -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]*"
|
||||
@@ -0,0 +1,13 @@
|
||||
import { defineConfig } from 'cypress'
|
||||
|
||||
export default defineConfig({
|
||||
e2e: {
|
||||
// We've imported your old cypress plugins here.
|
||||
// You may want to clean this up later by importing these.
|
||||
setupNodeEvents(on, config) {
|
||||
// @ts-ignore
|
||||
return require('./cypress/plugins/index.js')(on, config)
|
||||
},
|
||||
baseUrl: 'http://localhost:4173',
|
||||
},
|
||||
})
|
||||
@@ -1,3 +0,0 @@
|
||||
{
|
||||
"baseUrl": "http://localhost:4173"
|
||||
}
|
||||
File renamed without changes.
File renamed without changes.
Generated
+4054
-3108
File diff suppressed because it is too large.
Load diff
+21
-19
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "mainsail",
|
||||
"version": "2.3.0",
|
||||
"version": "2.4.1",
|
||||
"private": true,
|
||||
"decription": "a klipper web interface",
|
||||
"author": {
|
||||
@@ -16,8 +16,9 @@
|
||||
"lint:fix": "npm run lint -- --fix",
|
||||
"build.zip": "cd ./dist && zip -r mainsail.zip ./ -x '**.DS_Store' ./ && cd ..",
|
||||
"i18n-extract": "vue-i18n-extract use-config",
|
||||
"start": "vite preview",
|
||||
"test": "npm run build && cypress run",
|
||||
"preview": "vite preview",
|
||||
"start": "vite build && vite preview",
|
||||
"test": "start-server-and-test preview http://127.0.0.1:4173/ 'cypress run'",
|
||||
"test:ui": "cypress open",
|
||||
"changelog": "git cliff v0.0.4..$(git describe --tags $(git rev-list --tags --max-count=1)) --output CHANGELOG.md"
|
||||
},
|
||||
@@ -30,11 +31,12 @@
|
||||
"@codemirror/search": "^6.0.0",
|
||||
"@codemirror/state": "^6.1.0",
|
||||
"@codemirror/view": "^6.0.3",
|
||||
"@jaames/iro": "^5.5.2",
|
||||
"@lezer/highlight": "^1.0.0",
|
||||
"@sindarius/gcodeviewer": "^3.1.3",
|
||||
"@types/node": "^16.11.22",
|
||||
"@sindarius/gcodeviewer": "^3.1.4",
|
||||
"@types/node": "^18.0.0",
|
||||
"@types/overlayscrollbars": "^1.12.1",
|
||||
"axios": "^0.26.0",
|
||||
"axios": "^0.27.0",
|
||||
"codemirror": "^6.0.1",
|
||||
"core-js": "^3.16.0",
|
||||
"echarts": "^5.2.2",
|
||||
@@ -47,8 +49,8 @@
|
||||
"regenerator-runtime": "^0.13.9",
|
||||
"resize-observer-polyfill": "^1.5.1",
|
||||
"semver": "^7.3.5",
|
||||
"uuid": "^8.3.2",
|
||||
"vue": "^2.6.14",
|
||||
"uuid": "^9.0.0",
|
||||
"vue": "^2.7.10",
|
||||
"vue-class-component": "^7.2.6",
|
||||
"vue-echarts": "^6.0.2",
|
||||
"vue-i18n": "^8.25.0",
|
||||
@@ -59,34 +61,34 @@
|
||||
"vue-resize": "^1.0.1",
|
||||
"vue-toast-notification": "^0.6.1",
|
||||
"vuedraggable": "^2.24.3",
|
||||
"vuetify": "^2.6.1",
|
||||
"vuetify": "^2.6.10",
|
||||
"vuex": "^3.6.2"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@intlify/vite-plugin-vue-i18n": "^2.5.0",
|
||||
"@mdi/js": "^6.5.95",
|
||||
"@mdi/js": "^7.0.0",
|
||||
"@types/lodash.kebabcase": "^4.1.6",
|
||||
"@types/lodash.throttle": "^4.1.6",
|
||||
"@types/semver": "^7.3.8",
|
||||
"@types/uuid": "^8.3.1",
|
||||
"@typescript-eslint/eslint-plugin": "^5.11.0",
|
||||
"@typescript-eslint/parser": "^5.11.0",
|
||||
"@vue/composition-api": "^1.4.6",
|
||||
"@vue/eslint-config-typescript": "^10.0.0",
|
||||
"@vue/eslint-config-typescript": "^11.0.0",
|
||||
"autoprefixer": "^10.4.2",
|
||||
"cypress": "^9.5.0",
|
||||
"cypress": "^10.0.0",
|
||||
"eslint": "^8.9.0",
|
||||
"eslint-config-prettier": "^8.3.0",
|
||||
"eslint-plugin-jsonc": "^2.2.1",
|
||||
"eslint-plugin-vue": "^8.4.1",
|
||||
"eslint-plugin-vue": "^9.0.0",
|
||||
"prettier": "^2.5.1",
|
||||
"sass": "~1.32",
|
||||
"start-server-and-test": "^1.14.0",
|
||||
"typescript": "^4.5.5",
|
||||
"unplugin-vue-components": "^0.18.0",
|
||||
"vite": "^2.9.15",
|
||||
"vite-plugin-checker": "^0.4.2",
|
||||
"unplugin-vue-components": "^0.22.0",
|
||||
"vite": "^3.0.0",
|
||||
"vite-plugin-checker": "^0.5.0",
|
||||
"vite-plugin-package-version": "^1.0.2",
|
||||
"vite-plugin-pwa": "^0.11.13",
|
||||
"vite-plugin-pwa": "^0.13.0",
|
||||
"vite-plugin-vue2": "^2.0.1",
|
||||
"vue-debounce-decorator": "^1.0.1",
|
||||
"vue-i18n-extract": "^2.0.7",
|
||||
@@ -110,6 +112,6 @@
|
||||
"last 2 edge major versions"
|
||||
],
|
||||
"engines": {
|
||||
"node": "^16"
|
||||
"node": "^16 || ^18"
|
||||
}
|
||||
}
|
||||
@@ -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": []
|
||||
}
|
||||
@@ -39,6 +39,8 @@
|
||||
<the-timelapse-rendering-snackbar></the-timelapse-rendering-snackbar>
|
||||
<the-fullscreen-upload></the-fullscreen-upload>
|
||||
<the-upload-snackbar></the-upload-snackbar>
|
||||
<the-manual-probe-dialog />
|
||||
<the-bed-screws-dialog />
|
||||
</template>
|
||||
<the-select-printer-dialog v-else-if="instancesDB !== 'moonraker'"></the-select-printer-dialog>
|
||||
<the-connecting-dialog v-else></the-connecting-dialog>
|
||||
@@ -59,6 +61,8 @@ import { panelToolbarHeight, topbarHeight, navigationItemHeight } from '@/store/
|
||||
import TheTimelapseRenderingSnackbar from '@/components/TheTimelapseRenderingSnackbar.vue'
|
||||
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'
|
||||
|
||||
@Component({
|
||||
components: {
|
||||
@@ -71,6 +75,8 @@ import TheUploadSnackbar from '@/components/TheUploadSnackbar.vue'
|
||||
TheSidebar,
|
||||
TheFullscreenUpload,
|
||||
TheUploadSnackbar,
|
||||
TheManualProbeDialog,
|
||||
TheBedScrewsDialog,
|
||||
},
|
||||
metaInfo() {
|
||||
const title = this.$store.getters['getTitle']
|
||||
|
||||
@@ -17,7 +17,7 @@
|
||||
v-if="restartServiceName === 'klipper'"
|
||||
text
|
||||
tile
|
||||
href="https://www.klipper3d.org/Config_Reference.html"
|
||||
:href="klipperConfigReference"
|
||||
target="_blank"
|
||||
class="d-none d-md-flex">
|
||||
<v-icon small class="mr-1">{{ mdiHelp }}</v-icon>
|
||||
@@ -124,6 +124,7 @@ import { Component, Mixins, Watch } from 'vue-property-decorator'
|
||||
import BaseMixin from '@/components/mixins/base'
|
||||
import { capitalize, formatFilesize, windowBeforeUnloadFunction } from '@/plugins/helpers'
|
||||
import Panel from '@/components/ui/Panel.vue'
|
||||
import { availableKlipperConfigReferenceTranslations } from '@/store/variables'
|
||||
import CodemirrorAsync from '@/components/inputs/CodemirrorAsync'
|
||||
import {
|
||||
mdiClose,
|
||||
@@ -275,6 +276,22 @@ export default class TheEditor extends Mixins(BaseMixin) {
|
||||
return `${title} ${this.changedOutput}`
|
||||
}
|
||||
|
||||
get currentLanguage() {
|
||||
return this.$store.state.gui.general.language
|
||||
}
|
||||
|
||||
get klipperConfigReference(): string {
|
||||
const currentLanguage = this.currentLanguage
|
||||
const translations = availableKlipperConfigReferenceTranslations
|
||||
let url = 'https://www.klipper3d.org/Config_Reference.html'
|
||||
|
||||
if (translations.includes(currentLanguage)) {
|
||||
url = `https://www.klipper3d.org/${currentLanguage}/Config_Reference.html`
|
||||
}
|
||||
|
||||
return url
|
||||
}
|
||||
|
||||
cancelDownload() {
|
||||
this.$store.dispatch('editor/cancelLoad')
|
||||
}
|
||||
@@ -316,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>
|
||||
@@ -97,7 +97,9 @@ import {
|
||||
mdiTune,
|
||||
mdiVideo3d,
|
||||
mdiWebcam,
|
||||
mdiDipSwitch,
|
||||
} from '@mdi/js'
|
||||
import SettingsMiscellaneousTab from '@/components/settings/SettingsMiscellaneousTab.vue'
|
||||
@Component({
|
||||
components: {
|
||||
Panel,
|
||||
@@ -113,6 +115,7 @@ import {
|
||||
SettingsGCodeViewerTab,
|
||||
SettingsEditorTab,
|
||||
SettingsTimelapseTab,
|
||||
SettingsMiscellaneousTab,
|
||||
},
|
||||
})
|
||||
export default class TheSettingsMenu extends Mixins(BaseMixin) {
|
||||
@@ -186,6 +189,11 @@ export default class TheSettingsMenu extends Mixins(BaseMixin) {
|
||||
name: 'editor',
|
||||
title: this.$t('Settings.EditorTab.Editor'),
|
||||
},
|
||||
{
|
||||
icon: mdiDipSwitch,
|
||||
name: 'miscellaneous',
|
||||
title: this.$t('Settings.MiscellaneousTab.Miscellaneous'),
|
||||
},
|
||||
]
|
||||
|
||||
if (this.moonrakerComponents.includes('timelapse')) {
|
||||
|
||||
@@ -130,7 +130,7 @@
|
||||
<template #append>
|
||||
<v-list-item class="small-list-item mb-2">
|
||||
<v-list-item-icon class="menu-item-icon">
|
||||
<about-modal></about-modal>
|
||||
<about-dialog></about-dialog>
|
||||
</v-list-item-icon>
|
||||
</v-list-item>
|
||||
</template>
|
||||
@@ -144,7 +144,7 @@ import { Mixins } from 'vue-property-decorator'
|
||||
import BaseMixin from '@/components/mixins/base'
|
||||
import { PrinterStateKlipperConfig } from '@/store/printer/types'
|
||||
import TheSelectPrinterDialog from '@/components/TheSelectPrinterDialog.vue'
|
||||
import AboutModal from '@/components/modals/AboutModal.vue'
|
||||
import AboutDialog from '@/components/dialogs/AboutDialog.vue'
|
||||
import { navigationWidth, topbarHeight } from '@/store/variables'
|
||||
import MainsailLogo from '@/components/ui/MainsailLogo.vue'
|
||||
import { mdiViewDashboardOutline } from '@mdi/js'
|
||||
@@ -152,7 +152,7 @@ import { mdiViewDashboardOutline } from '@mdi/js'
|
||||
@Component({
|
||||
components: {
|
||||
TheSelectPrinterDialog,
|
||||
AboutModal,
|
||||
AboutDialog,
|
||||
MainsailLogo,
|
||||
},
|
||||
})
|
||||
|
||||
@@ -26,7 +26,7 @@
|
||||
<input
|
||||
ref="fileUploadAndStart"
|
||||
type="file"
|
||||
:accept="validGcodeExtensions.join(', ')"
|
||||
:accept="gcodeInputFileAccept.join(', ')"
|
||||
style="display: none"
|
||||
@change="uploadAndStart" />
|
||||
<v-btn
|
||||
@@ -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
|
||||
@@ -174,6 +174,12 @@ export default class TheTopbar extends Mixins(BaseMixin) {
|
||||
fileUploadAndStart: HTMLFormElement
|
||||
}
|
||||
|
||||
get gcodeInputFileAccept() {
|
||||
if (this.isIOS) return []
|
||||
|
||||
return validGcodeExtensions
|
||||
}
|
||||
|
||||
get naviDrawer() {
|
||||
return this.$store.state.naviDrawer
|
||||
}
|
||||
@@ -182,10 +188,6 @@ export default class TheTopbar extends Mixins(BaseMixin) {
|
||||
this.$store.dispatch('setNaviDrawer', newVal)
|
||||
}
|
||||
|
||||
get validGcodeExtensions() {
|
||||
return validGcodeExtensions
|
||||
}
|
||||
|
||||
get currentPage() {
|
||||
return this.$route.fullPath
|
||||
}
|
||||
@@ -254,14 +256,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)
|
||||
@@ -327,6 +329,7 @@ export default class TheTopbar extends Mixins(BaseMixin) {
|
||||
</script>
|
||||
|
||||
<style>
|
||||
/*noinspection CssUnusedSymbol*/
|
||||
.topbar .v-toolbar__content {
|
||||
padding-top: 0 !important;
|
||||
padding-bottom: 0 !important;
|
||||
@@ -336,13 +339,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;
|
||||
|
||||
@@ -84,6 +84,7 @@ export default class TempChart extends Mixins(BaseMixin) {
|
||||
axisLabel: {
|
||||
color: 'rgba(255, 255, 255, 0.24)',
|
||||
margin: 10,
|
||||
formatter: this.timeFormat,
|
||||
},
|
||||
},
|
||||
yAxis: [
|
||||
@@ -225,8 +226,13 @@ export default class TempChart extends Mixins(BaseMixin) {
|
||||
return this.$store.getters['printer/tempHistory/getSelectedLegends']
|
||||
}
|
||||
|
||||
get timeFormat() {
|
||||
return this.hours12Format ? '{hh}:{mm}' : '{HH}:{mm}'
|
||||
}
|
||||
|
||||
mounted() {
|
||||
this.initChart()
|
||||
this.chartOptions.xAxis.axisLabel.formatter = this.timeFormat
|
||||
}
|
||||
|
||||
beforeDestroy() {
|
||||
@@ -383,5 +389,10 @@ export default class TempChart extends Mixins(BaseMixin) {
|
||||
boolDisplayPwmAxisChanged() {
|
||||
this.updateChartPwmAxis()
|
||||
}
|
||||
|
||||
@Watch('hours12Format')
|
||||
hours12FormatChanged() {
|
||||
this.chartOptions.xAxis.axisLabel.formatter = this.timeFormat
|
||||
}
|
||||
}
|
||||
</script>
|
||||
@@ -25,7 +25,7 @@
|
||||
|
||||
<template>
|
||||
<v-row :class="'ma-0 ' + entryStyle">
|
||||
<v-col class="col-auto pr-0 text--disabled console-time">{{ event.formatTime }}</v-col>
|
||||
<v-col class="col-auto pr-0 text--disabled console-time">{{ entryFormatTime }}</v-col>
|
||||
<v-col
|
||||
:class="colorConsoleMessage(event) + ' ' + 'console-message'"
|
||||
@click.capture="commandClick"
|
||||
@@ -35,12 +35,12 @@
|
||||
|
||||
<script lang="ts">
|
||||
import Component from 'vue-class-component'
|
||||
import Vue from 'vue'
|
||||
import { Prop } from 'vue-property-decorator'
|
||||
import { Mixins, Prop } from 'vue-property-decorator'
|
||||
import { ServerStateEvent } from '@/store/server/types'
|
||||
import BaseMixin from '@/components/mixins/base'
|
||||
|
||||
@Component
|
||||
export default class ConsoleTableEntry extends Vue {
|
||||
export default class ConsoleTableEntry extends Mixins(BaseMixin) {
|
||||
@Prop({ required: true })
|
||||
declare readonly event: ServerStateEvent
|
||||
|
||||
@@ -48,6 +48,10 @@ export default class ConsoleTableEntry extends Vue {
|
||||
return this.$store.state.gui.console.entryStyle ?? 'default'
|
||||
}
|
||||
|
||||
get entryFormatTime() {
|
||||
return this.formatTime(this.event.date.getTime(), true)
|
||||
}
|
||||
|
||||
colorConsoleMessage(item: ServerStateEvent): string {
|
||||
if (item.message.startsWith('!! ')) return 'error--text'
|
||||
|
||||
|
||||
@@ -0,0 +1,59 @@
|
||||
<template>
|
||||
<v-tooltip right color="panel">
|
||||
<template #activator="{ on, attrs }">
|
||||
<v-icon v-bind="attrs" v-on="on">
|
||||
{{ mdiHelpCircleOutline }}
|
||||
</v-icon>
|
||||
</template>
|
||||
<v-container class="version-container pa-0">
|
||||
<div><img height="12" src="/img/logo.svg" alt="mainsail-logo" /></div>
|
||||
<div>v{{ mainsailVersion }}</div>
|
||||
<div>
|
||||
<v-icon small class="moonraker-logo">{{ mdiMoonWaningCrescent }}</v-icon>
|
||||
</div>
|
||||
<div>{{ moonrakerVersion }}</div>
|
||||
<div><img height="12" src="/img/klipper.svg" class="klipper-logo" alt="klipper-logo" /></div>
|
||||
<div>{{ klipperVersion }}</div>
|
||||
</v-container>
|
||||
</v-tooltip>
|
||||
</template>
|
||||
|
||||
<script lang="ts">
|
||||
import BaseMixin from '../mixins/base'
|
||||
import { Mixins } from 'vue-property-decorator'
|
||||
import Component from 'vue-class-component'
|
||||
import { mdiCloseThick, mdiHelpCircleOutline, mdiMoonWaningCrescent } from '@mdi/js'
|
||||
|
||||
@Component({})
|
||||
export default class AboutDialog extends Mixins(BaseMixin) {
|
||||
mdiHelpCircleOutline = mdiHelpCircleOutline
|
||||
mdiCloseThick = mdiCloseThick
|
||||
mdiMoonWaningCrescent = mdiMoonWaningCrescent
|
||||
|
||||
get mainsailVersion(): string {
|
||||
return this.$store.state.packageVersion
|
||||
}
|
||||
|
||||
get klipperVersion(): string {
|
||||
return this.$store.state.printer?.software_version ?? ''
|
||||
}
|
||||
|
||||
get moonrakerVersion(): string {
|
||||
return this.$store.state.server?.moonraker_version ?? ''
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
||||
<style scoped>
|
||||
.klipper-logo {
|
||||
transform: rotate(90deg);
|
||||
}
|
||||
.moonraker-logo {
|
||||
transform: rotate(45deg);
|
||||
color: #ebc815;
|
||||
}
|
||||
.version-container {
|
||||
display: grid;
|
||||
grid-template-columns: 20px auto;
|
||||
}
|
||||
</style>
|
||||
@@ -0,0 +1,170 @@
|
||||
<template>
|
||||
<v-dialog :value="showDialog" width="400" persistent :fullscreen="isMobile">
|
||||
<panel
|
||||
:title="$t('BedScrews.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="sendAbort">
|
||||
<v-icon>{{ mdiCloseThick }}</v-icon>
|
||||
</v-btn>
|
||||
</template>
|
||||
<v-card-text>
|
||||
<v-row>
|
||||
<v-col>
|
||||
<v-text-field
|
||||
v-model="currentScrewName"
|
||||
:label="$t('BedScrews.ScrewName')"
|
||||
outlined
|
||||
dense
|
||||
clearable
|
||||
hide-details></v-text-field>
|
||||
</v-col>
|
||||
</v-row>
|
||||
<v-row>
|
||||
<v-col cols="6">
|
||||
<v-text-field
|
||||
v-model="currentScrewOutput"
|
||||
:label="$t('BedScrews.ScrewIndex')"
|
||||
outlined
|
||||
dense
|
||||
clearable
|
||||
hide-details></v-text-field>
|
||||
</v-col>
|
||||
<v-col cols="6">
|
||||
<v-text-field
|
||||
v-model="acceptedScrewOutput"
|
||||
:label="$t('BedScrews.ScrewAccepted')"
|
||||
outlined
|
||||
dense
|
||||
clearable
|
||||
hide-details></v-text-field>
|
||||
</v-col>
|
||||
</v-row>
|
||||
<v-row>
|
||||
<v-col>
|
||||
<p class="text-center mb-0" v-html="$t('BedScrews.Description')" />
|
||||
</v-col>
|
||||
</v-row>
|
||||
</v-card-text>
|
||||
<v-card-actions>
|
||||
<v-spacer></v-spacer>
|
||||
<v-btn text :loading="loadingAbort" @click="sendAbort">
|
||||
{{ $t('BedScrews.Abort') }}
|
||||
</v-btn>
|
||||
<v-btn color="primary" text :loading="loadingAdjusted" @click="sendAdjusted">
|
||||
{{ $t('BedScrews.Adjusted') }}
|
||||
</v-btn>
|
||||
<v-btn color="primary" text :loading="loadingAccept" @click="sendAccept">
|
||||
{{ $t('BedScrews.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 { mdiArrowCollapseDown, mdiInformation, mdiCloseThick } from '@mdi/js'
|
||||
import ControlMixin from '@/components/mixins/control'
|
||||
@Component({
|
||||
components: { Panel, Responsive },
|
||||
})
|
||||
export default class TheBedScrewsDialog extends Mixins(BaseMixin, ControlMixin) {
|
||||
mdiArrowCollapseDown = mdiArrowCollapseDown
|
||||
mdiInformation = mdiInformation
|
||||
mdiCloseThick = mdiCloseThick
|
||||
|
||||
get showDialog() {
|
||||
const is_active = this.$store.state.printer.bed_screws?.is_active ?? false
|
||||
|
||||
return is_active && this.homedAxes.includes('xyz')
|
||||
}
|
||||
|
||||
get config() {
|
||||
return this.$store.state.printer.configfile?.settings?.bed_screws ?? {}
|
||||
}
|
||||
|
||||
get bed_screws_state() {
|
||||
return this.$store.state.printer.bed_screws?.state
|
||||
}
|
||||
|
||||
get current_screw() {
|
||||
return this.$store.state.printer.bed_screws?.current_screw
|
||||
}
|
||||
|
||||
get accepted_screws() {
|
||||
return this.$store.state.printer.bed_screws?.accepted_screws
|
||||
}
|
||||
|
||||
get loadingAbort() {
|
||||
return this.loadings.includes('bedScrewsAbort')
|
||||
}
|
||||
|
||||
get loadingAccept() {
|
||||
return this.loadings.includes('bedScrewsAccept')
|
||||
}
|
||||
|
||||
get loadingAdjusted() {
|
||||
return this.loadings.includes('bedScrewsAdjusted')
|
||||
}
|
||||
|
||||
get screwNames() {
|
||||
const configKeys = Object.keys(this.config)
|
||||
const screwNameKeys = configKeys.filter((name: string) => name.startsWith('screw') && name.endsWith('_name'))
|
||||
|
||||
const output: string[] = []
|
||||
screwNameKeys?.forEach((fullName: string) => {
|
||||
const index = fullName.indexOf('_')
|
||||
const number = parseInt(fullName.slice(5, index))
|
||||
|
||||
output[number - 1] = this.config[`screw${number}_name`] ?? ''
|
||||
})
|
||||
|
||||
return output
|
||||
}
|
||||
|
||||
get countScrews() {
|
||||
return this.screwNames.length
|
||||
}
|
||||
|
||||
get currentScrewName() {
|
||||
return this.screwNames[this.current_screw] ?? 'UNKNOWN'
|
||||
}
|
||||
|
||||
get currentScrewOutput() {
|
||||
return this.$t('BedScrews.ScrewOutput', { current: this.current_screw, max: this.countScrews })
|
||||
}
|
||||
|
||||
get acceptedScrewOutput() {
|
||||
return this.$t('BedScrews.ScrewOutput', { current: this.accepted_screws, max: this.countScrews })
|
||||
}
|
||||
|
||||
sendAbort() {
|
||||
const gcode = `ABORT`
|
||||
this.$store.dispatch('server/addEvent', { message: gcode, type: 'command' })
|
||||
this.$socket.emit('printer.gcode.script', { script: gcode }, { loading: 'manualProbeAbort' })
|
||||
}
|
||||
|
||||
sendAccept() {
|
||||
const gcode = `ACCEPT`
|
||||
this.$store.dispatch('server/addEvent', { message: gcode, type: 'command' })
|
||||
this.$socket.emit('printer.gcode.script', { script: gcode }, { loading: 'manualProbeAccept' })
|
||||
}
|
||||
|
||||
sendAdjusted() {
|
||||
const gcode = `ADJUSTED`
|
||||
this.$store.dispatch('server/addEvent', { message: gcode, type: 'command' })
|
||||
this.$socket.emit('printer.gcode.script', { script: gcode }, { loading: 'manualProbeAccept' })
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
||||
<style lang="scss" scoped></style>
|
||||
@@ -0,0 +1,222 @@
|
||||
<template>
|
||||
<v-dialog :value="showDialog" width="400" persistent :fullscreen="isMobile">
|
||||
<panel
|
||||
:title="$t('ManualProbe.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="sendAbort">
|
||||
<v-icon>{{ mdiCloseThick }}</v-icon>
|
||||
</v-btn>
|
||||
</template>
|
||||
<v-container>
|
||||
<v-row>
|
||||
<v-col class="d-flex align-center justify-center">
|
||||
<span class="text-h5">{{ z_position_lower }}</span>
|
||||
<v-icon class="mx-2">{{ mdiChevronTripleRight }}</v-icon>
|
||||
<span class="text-h4">{{ z_position }}</span>
|
||||
<v-icon class="mx-2">{{ mdiChevronTripleLeft }}</v-icon>
|
||||
<span class="text-h5">{{ z_position_upper }}</span>
|
||||
</v-col>
|
||||
</v-row>
|
||||
<v-row>
|
||||
<v-col class="text-left">
|
||||
<v-btn class="" color="primary" @click="sendTestZ('--')">
|
||||
<v-icon small>{{ mdiMinusThick }}</v-icon>
|
||||
<v-icon small>{{ mdiMinusThick }}</v-icon>
|
||||
</v-btn>
|
||||
</v-col>
|
||||
<v-col class="text-left">
|
||||
<v-btn class="" color="primary" @click="sendTestZ('-')">
|
||||
<v-icon small>{{ mdiMinusThick }}</v-icon>
|
||||
</v-btn>
|
||||
</v-col>
|
||||
<v-col class="text-right">
|
||||
<v-btn class="" color="primary" @click="sendTestZ('+')">
|
||||
<v-icon small>{{ mdiPlusThick }}</v-icon>
|
||||
</v-btn>
|
||||
</v-col>
|
||||
<v-col class="text-right">
|
||||
<v-btn class="" color="primary" @click="sendTestZ('++')">
|
||||
<v-icon small>{{ mdiPlusThick }}</v-icon>
|
||||
<v-icon small>{{ mdiPlusThick }}</v-icon>
|
||||
</v-btn>
|
||||
</v-col>
|
||||
</v-row>
|
||||
</v-container>
|
||||
<sub-panel :title="$t('ManualProbe.Advanced')" sub-panel-class="manual-probe-dialog-advanced" class="mb-n2">
|
||||
<v-container>
|
||||
<v-item-group class="_btn-group">
|
||||
<v-btn
|
||||
v-for="(offset, index) in offsetsZ"
|
||||
:key="`offsetsUp-${index}`"
|
||||
small
|
||||
class="_btn-qs flex-grow-1 px-1"
|
||||
@click="sendTestZ(offset.toString())">
|
||||
<v-icon v-if="index === 0" left small class="mr-1 ml-n1">
|
||||
{{ mdiArrowExpandUp }}
|
||||
</v-icon>
|
||||
<span>+{{ offset }}</span>
|
||||
</v-btn>
|
||||
</v-item-group>
|
||||
<v-item-group class="_btn-group mt-6 mt-sm-3">
|
||||
<v-btn
|
||||
v-for="(offset, index) in offsetsZ"
|
||||
:key="`offsetsDown-${index}`"
|
||||
small
|
||||
class="_btn-qs flex-grow-1 px-1"
|
||||
@click="sendTestZ((offset * -1).toString())">
|
||||
<v-icon v-if="index === 0" left small class="mr-1 ml-n1">
|
||||
{{ mdiArrowCollapseDown }}
|
||||
</v-icon>
|
||||
<span>−{{ offset }}</span>
|
||||
</v-btn>
|
||||
</v-item-group>
|
||||
</v-container>
|
||||
</sub-panel>
|
||||
<v-card-actions>
|
||||
<v-spacer></v-spacer>
|
||||
<v-btn text :loading="loadingAbort" @click="sendAbort">
|
||||
{{ $t('ManualProbe.Abort') }}
|
||||
</v-btn>
|
||||
<v-btn color="primary" text :loading="loadingAccept" @click="sendAccept">
|
||||
{{ $t('ManualProbe.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 {
|
||||
mdiArrowCollapseDown,
|
||||
mdiArrowExpandUp,
|
||||
mdiInformation,
|
||||
mdiPlusThick,
|
||||
mdiMinusThick,
|
||||
mdiChevronTripleLeft,
|
||||
mdiChevronTripleRight,
|
||||
mdiCloseThick,
|
||||
} from '@mdi/js'
|
||||
@Component({
|
||||
components: { Panel, Responsive },
|
||||
})
|
||||
export default class TheManualProbeDialog extends Mixins(BaseMixin) {
|
||||
mdiArrowCollapseDown = mdiArrowCollapseDown
|
||||
mdiArrowExpandUp = mdiArrowExpandUp
|
||||
mdiInformation = mdiInformation
|
||||
mdiPlusThick = mdiPlusThick
|
||||
mdiMinusThick = mdiMinusThick
|
||||
mdiChevronTripleLeft = mdiChevronTripleLeft
|
||||
mdiChevronTripleRight = mdiChevronTripleRight
|
||||
mdiCloseThick = mdiCloseThick
|
||||
|
||||
get showDialog() {
|
||||
return this.$store.state.printer.manual_probe?.is_active ?? false
|
||||
}
|
||||
|
||||
get offsetsZ() {
|
||||
const offsets = [1, 0.1, 0.05, 0.01, 0.005]
|
||||
|
||||
return offsets.sort()
|
||||
}
|
||||
|
||||
get z_position() {
|
||||
return (this.$store.state.printer.manual_probe?.z_position ?? 0).toFixed(3)
|
||||
}
|
||||
|
||||
get z_position_lower() {
|
||||
const value = this.$store.state.printer.manual_probe?.z_position_lower ?? null
|
||||
if (value === null) return '??????'
|
||||
|
||||
return value.toFixed(3)
|
||||
}
|
||||
|
||||
get z_position_upper() {
|
||||
const value = this.$store.state.printer.manual_probe?.z_position_upper ?? null
|
||||
if (value === null) return '??????'
|
||||
|
||||
return value.toFixed(3)
|
||||
}
|
||||
|
||||
get loadingAbort() {
|
||||
return this.loadings.includes('manualProbeAbort')
|
||||
}
|
||||
|
||||
get loadingAccept() {
|
||||
return this.loadings.includes('manualProbeAccept')
|
||||
}
|
||||
|
||||
sendTestZ(offset: string) {
|
||||
const gcode = `TESTZ Z=${offset}`
|
||||
this.$store.dispatch('server/addEvent', { message: gcode, type: 'command' })
|
||||
this.$socket.emit('printer.gcode.script', { script: gcode })
|
||||
}
|
||||
|
||||
sendAbort() {
|
||||
const gcode = `ABORT`
|
||||
this.$store.dispatch('server/addEvent', { message: gcode, type: 'command' })
|
||||
this.$socket.emit('printer.gcode.script', { script: gcode }, { loading: 'manualProbeAbort' })
|
||||
}
|
||||
|
||||
sendAccept() {
|
||||
const gcode = `ACCEPT`
|
||||
this.$store.dispatch('server/addEvent', { message: gcode, type: 'command' })
|
||||
this.$socket.emit('printer.gcode.script', { script: gcode }, { loading: 'manualProbeAccept' })
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
||||
<style lang="scss" scoped>
|
||||
.v-btn-toggle {
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
._btn-group {
|
||||
border-radius: 4px;
|
||||
display: inline-flex;
|
||||
flex-wrap: nowrap;
|
||||
max-width: 100%;
|
||||
min-width: 100%;
|
||||
width: 100%;
|
||||
|
||||
.v-btn {
|
||||
border-radius: 0;
|
||||
border-color: rgba(255, 255, 255, 0.12) !important;
|
||||
border-style: solid;
|
||||
border-width: thin;
|
||||
box-shadow: none;
|
||||
height: 28px;
|
||||
opacity: 0.8;
|
||||
min-width: auto !important;
|
||||
}
|
||||
|
||||
.v-btn:first-child {
|
||||
border-top-left-radius: inherit;
|
||||
border-bottom-left-radius: inherit;
|
||||
}
|
||||
|
||||
.v-btn:last-child {
|
||||
border-top-right-radius: inherit;
|
||||
border-bottom-right-radius: inherit;
|
||||
}
|
||||
|
||||
.v-btn:not(:first-child) {
|
||||
border-left-width: 0;
|
||||
}
|
||||
}
|
||||
|
||||
._btn-qs {
|
||||
font-size: 0.8rem !important;
|
||||
font-weight: 400;
|
||||
max-height: 28px;
|
||||
}
|
||||
</style>
|
||||
@@ -95,7 +95,7 @@ export default class Codemirror extends Mixins(BaseMixin) {
|
||||
if (['cfg', 'conf'].includes(this.fileExtension)) extensions.push(StreamLanguage.define(klipper_config))
|
||||
else if (['gcode'].includes(this.fileExtension)) extensions.push(StreamLanguage.define(gcode))
|
||||
else if (['json'].includes(this.fileExtension)) extensions.push(json())
|
||||
else if (['css'].includes(this.fileExtension)) extensions.push(css())
|
||||
else if (['css', 'scss', 'sass'].includes(this.fileExtension)) extensions.push(css())
|
||||
|
||||
return extensions
|
||||
}
|
||||
|
||||
@@ -0,0 +1,63 @@
|
||||
<template>
|
||||
<div>
|
||||
<div ref="picker"></div>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<script lang="ts">
|
||||
import { Component, Mixins, Prop, Ref, Watch } from 'vue-property-decorator'
|
||||
import BaseMixin from '@/components/mixins/base'
|
||||
import iro from '@jaames/iro'
|
||||
import { IroColor } from '@irojs/iro-core'
|
||||
import { ColorPickerProps, IroColorPicker as IroCP } from '@jaames/iro/dist/ColorPicker.d'
|
||||
|
||||
@Component
|
||||
export default class ColorPicker extends Mixins(BaseMixin) {
|
||||
colorPicker: IroCP | null = null
|
||||
|
||||
@Ref('picker')
|
||||
readonly picker!: HTMLElement
|
||||
|
||||
@Prop({ type: [Object, String], default: '#ffffff' })
|
||||
readonly color!: IroColor
|
||||
|
||||
@Prop({ type: Object, default: () => ({}) })
|
||||
readonly options!: ColorPickerProps
|
||||
|
||||
@Watch('color', { deep: true })
|
||||
colorChanged(value: string) {
|
||||
if (this.colorPicker && this.colorPicker.color.rgbString !== value) {
|
||||
this.colorPicker.color.rgbString = value
|
||||
}
|
||||
}
|
||||
|
||||
get internalOptions(): ColorPickerProps {
|
||||
return {
|
||||
...this.options,
|
||||
color: this.color,
|
||||
borderWidth: 2,
|
||||
sliderSize: 16,
|
||||
}
|
||||
}
|
||||
|
||||
emitColorChange(color: IroColor) {
|
||||
this.$emit('change', color)
|
||||
this.$emit('update:color', color)
|
||||
}
|
||||
|
||||
onColorChange(color: IroColor) {
|
||||
this.emitColorChange(color)
|
||||
}
|
||||
|
||||
mounted() {
|
||||
this.colorPicker = iro.ColorPicker(this.picker, this.internalOptions)
|
||||
this.colorPicker.on('color:change', this.onColorChange)
|
||||
}
|
||||
|
||||
beforeDestroy() {
|
||||
this.colorPicker?.off('color:change', this.onColorChange)
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
||||
<style scoped></style>
|
||||
@@ -10,7 +10,7 @@
|
||||
{{ alias ? alias : macro.name.replace(/_/g, ' ') }}
|
||||
</v-btn>
|
||||
<template v-if="paramArray.length">
|
||||
<v-menu offset-y :close-on-content-click="false">
|
||||
<v-menu v-if="!isMobile" offset-y :close-on-content-click="false">
|
||||
<template #activator="{ on, attrs }">
|
||||
<v-btn
|
||||
:disabled="disabled"
|
||||
@@ -22,10 +22,10 @@
|
||||
<v-icon>{{ mdiMenuDown }}</v-icon>
|
||||
</v-btn>
|
||||
</template>
|
||||
<v-card max-width="200">
|
||||
<v-card :max-width="paramsOverlayWidth">
|
||||
<v-card-text class="py-2">
|
||||
<v-row v-for="(name, key) in paramArray" :key="'param_' + key" class="my-2">
|
||||
<v-col class="py-0">
|
||||
<v-row class="my-2">
|
||||
<v-col v-for="(name, key) in paramArray" :key="'param_' + key" :cols="paramCssCols">
|
||||
<v-text-field
|
||||
v-model="params[name].value"
|
||||
:label="name"
|
||||
@@ -49,6 +49,47 @@
|
||||
</v-card-text>
|
||||
</v-card>
|
||||
</v-menu>
|
||||
<template v-else>
|
||||
<v-btn
|
||||
:disabled="disabled"
|
||||
:color="color"
|
||||
class="minwidth-0 px-1 btnMacroMenu"
|
||||
small
|
||||
@click="paramsDialog = true">
|
||||
<v-icon>{{ mdiMenuDown }}</v-icon>
|
||||
</v-btn>
|
||||
<v-dialog v-model="paramsDialog">
|
||||
<panel :title="macro.name" :card-class="`macro-params-mobile-${macro.name}`" :margin-bottom="0">
|
||||
<template #buttons>
|
||||
<v-btn icon tile @click="paramsDialog = false">
|
||||
<v-icon>{{ mdiCloseThick }}</v-icon>
|
||||
</v-btn>
|
||||
</template>
|
||||
<v-card-text>
|
||||
<v-row>
|
||||
<v-col v-for="(name, key) in paramArray" :key="'param_mobile_' + key" :cols="6">
|
||||
<v-text-field
|
||||
v-model="params[name].value"
|
||||
:label="name"
|
||||
:placeholder="params[name].default"
|
||||
:persistent-placeholder="true"
|
||||
hide-details
|
||||
outlined
|
||||
dense
|
||||
clearable
|
||||
:clear-icon="mdiRefresh"
|
||||
@keyup.enter="sendWithParams"></v-text-field>
|
||||
</v-col>
|
||||
</v-row>
|
||||
</v-card-text>
|
||||
<v-card-actions class="px-4 pb-4">
|
||||
<v-btn color="primary" class="text-uppercase" block @click="sendWithParams">
|
||||
{{ $t('Panels.MacrosPanel.Send') }}
|
||||
</v-btn>
|
||||
</v-card-actions>
|
||||
</panel>
|
||||
</v-dialog>
|
||||
</template>
|
||||
</template>
|
||||
</v-item-group>
|
||||
</template>
|
||||
@@ -58,7 +99,8 @@ import Component from 'vue-class-component'
|
||||
import { Mixins, Prop, Watch } from 'vue-property-decorator'
|
||||
import BaseMixin from '@/components/mixins/base'
|
||||
import { GuiMacrosStateMacrogroupMacro } from '@/store/gui/macros/types'
|
||||
import { mdiMenuDown, mdiRefresh } from '@mdi/js'
|
||||
import { mdiCloseThick, mdiMenuDown, mdiRefresh } from '@mdi/js'
|
||||
import Panel from '@/components/ui/Panel.vue'
|
||||
|
||||
interface param {
|
||||
type: 'int' | 'double' | 'string' | null
|
||||
@@ -70,16 +112,20 @@ interface params {
|
||||
[key: string]: param
|
||||
}
|
||||
|
||||
@Component
|
||||
@Component({
|
||||
components: { Panel },
|
||||
})
|
||||
export default class MacroButton extends Mixins(BaseMixin) {
|
||||
/**
|
||||
* Icons
|
||||
*/
|
||||
mdiCloseThick = mdiCloseThick
|
||||
mdiMenuDown = mdiMenuDown
|
||||
mdiRefresh = mdiRefresh
|
||||
|
||||
private paramArray: string[] = []
|
||||
private params: params = {}
|
||||
private paramsDialog = false
|
||||
|
||||
@Prop({ required: true })
|
||||
declare readonly macro: GuiMacrosStateMacrogroupMacro
|
||||
@@ -101,6 +147,24 @@ export default class MacroButton extends Mixins(BaseMixin) {
|
||||
return this.macro.name.match(/[G|M]\d{1,3}/gm)
|
||||
}
|
||||
|
||||
get paramCols() {
|
||||
if (this.isMobile) return 1
|
||||
|
||||
const cols = Math.ceil(this.paramArray.length / 5)
|
||||
|
||||
if (cols > 4) return 4
|
||||
|
||||
return cols
|
||||
}
|
||||
|
||||
get paramCssCols() {
|
||||
return 12 / this.paramCols
|
||||
}
|
||||
|
||||
get paramsOverlayWidth() {
|
||||
return 200 * this.paramCols
|
||||
}
|
||||
|
||||
@Watch('klipperMacro')
|
||||
klipperMacroChange() {
|
||||
this.refreshParams()
|
||||
|
||||
@@ -0,0 +1,519 @@
|
||||
<template>
|
||||
<v-container :class="containerClass">
|
||||
<v-row>
|
||||
<v-col class="pb-3">
|
||||
<v-subheader class="_light-subheader">
|
||||
<v-icon v-if="(!root || groups.length === 0) && isOn" small left @click="off">
|
||||
{{ mdiLightbulbOnOutline }}
|
||||
</v-icon>
|
||||
<v-icon v-else-if="!root || groups.length === 0" small left @click="on">
|
||||
{{ mdiLightbulbOutline }}
|
||||
</v-icon>
|
||||
<span>{{ name }}</span>
|
||||
<v-spacer></v-spacer>
|
||||
<span
|
||||
v-if="!root || groups.length === 0"
|
||||
class="_currentState"
|
||||
:style="currentStateStyle"
|
||||
@click="boolDialog = true"></span>
|
||||
</v-subheader>
|
||||
</v-col>
|
||||
</v-row>
|
||||
<template v-if="root && groups.length">
|
||||
<miscellaneous-light v-for="group in groups" :key="group.id" :object="object" :group="group" />
|
||||
</template>
|
||||
<v-dialog v-model="boolDialog" persistent :width="400">
|
||||
<panel
|
||||
:title="name"
|
||||
:icon="mdiLightbulbOutline"
|
||||
card-class="temperature-edit-heater-dialog"
|
||||
:margin-bottom="false">
|
||||
<template #buttons>
|
||||
<v-btn icon tile @click="boolDialog = false">
|
||||
<v-icon>{{ mdiCloseThick }}</v-icon>
|
||||
</v-btn>
|
||||
</template>
|
||||
<v-card-text class="pt-6">
|
||||
<template v-if="presets.length">
|
||||
<v-row>
|
||||
<v-col class="light-presets-container pt-0 d-flex flex-wrap flex-row justify-center">
|
||||
<v-tooltip v-for="preset in presets" :key="preset.id" top>
|
||||
<template #activator="{ on, attrs }">
|
||||
<div
|
||||
:style="presetStyle(preset)"
|
||||
v-bind="attrs"
|
||||
v-on="on"
|
||||
@click="usePreset(preset)"></div>
|
||||
</template>
|
||||
<span>{{ preset.name }}</span>
|
||||
</v-tooltip>
|
||||
</v-col>
|
||||
</v-row>
|
||||
<v-divider class="my-3"></v-divider>
|
||||
</template>
|
||||
<v-row>
|
||||
<v-col class="text-center">
|
||||
<color-picker
|
||||
:color="colorRGB"
|
||||
:options="colorPickerOptions"
|
||||
@update:color="onColorRGBChanged" />
|
||||
<color-picker
|
||||
v-if="existWhite"
|
||||
:color="colorRGBW"
|
||||
:options="colorPickerWhiteOptions"
|
||||
class="mt-3"
|
||||
@update:color="onColorWhiteChanged" />
|
||||
</v-col>
|
||||
<v-col>
|
||||
<v-row v-if="existRed">
|
||||
<v-col>
|
||||
<number-input
|
||||
:label="$t('Panels.MiscellaneousPanel.Light.Red')"
|
||||
param="red"
|
||||
:target="redInt"
|
||||
:default-value="Math.round(object.initialRed * 255)"
|
||||
:min="0"
|
||||
:max="255"
|
||||
:dec="1"
|
||||
:step="1"
|
||||
:output-error-msg="true"
|
||||
:has-spinner="true"
|
||||
@submit="onColorInput" />
|
||||
</v-col>
|
||||
</v-row>
|
||||
<v-row v-if="existGreen">
|
||||
<v-col>
|
||||
<number-input
|
||||
:label="$t('Panels.MiscellaneousPanel.Light.Green')"
|
||||
param="green"
|
||||
:target="greenInt"
|
||||
:default-value="Math.round(object.initialGreen * 255)"
|
||||
:min="0"
|
||||
:max="255"
|
||||
:dec="1"
|
||||
:step="1"
|
||||
:has-spinner="true"
|
||||
@submit="onColorInput" />
|
||||
</v-col>
|
||||
</v-row>
|
||||
<v-row v-if="existBlue">
|
||||
<v-col>
|
||||
<number-input
|
||||
:label="$t('Panels.MiscellaneousPanel.Light.Blue')"
|
||||
param="blue"
|
||||
:target="blueInt"
|
||||
:default-value="Math.round(object.initialBlue * 255)"
|
||||
:min="0"
|
||||
:max="255"
|
||||
:dec="1"
|
||||
:step="1"
|
||||
:has-spinner="true"
|
||||
@submit="onColorInput" />
|
||||
</v-col>
|
||||
</v-row>
|
||||
<v-row v-if="existWhite">
|
||||
<v-col>
|
||||
<number-input
|
||||
:label="$t('Panels.MiscellaneousPanel.Light.White')"
|
||||
param="white"
|
||||
:target="whiteInt"
|
||||
:default-value="Math.round(object.initialWhite * 255)"
|
||||
:min="0"
|
||||
:max="255"
|
||||
:dec="1"
|
||||
:step="1"
|
||||
:has-spinner="true"
|
||||
@submit="onColorInput" />
|
||||
</v-col>
|
||||
</v-row>
|
||||
</v-col>
|
||||
</v-row>
|
||||
</v-card-text>
|
||||
</panel>
|
||||
</v-dialog>
|
||||
</v-container>
|
||||
</template>
|
||||
|
||||
<script lang="ts">
|
||||
import { convertName } from '@/plugins/helpers'
|
||||
import { Component, Mixins, Prop } from 'vue-property-decorator'
|
||||
import BaseMixin from '@/components/mixins/base'
|
||||
import { mdiCloseThick, mdiLightbulbOutline, mdiLightbulbOnOutline } from '@mdi/js'
|
||||
import { PrinterStateLight } from '@/store/printer/types'
|
||||
import ColorPicker from '@/components/inputs/ColorPicker.vue'
|
||||
import { ColorPickerProps } from '@jaames/iro/dist/ColorPicker.d'
|
||||
import { Debounce } from 'vue-debounce-decorator'
|
||||
import iro from '@jaames/iro'
|
||||
import { IroColor } from '@irojs/iro-core'
|
||||
import { GuiMiscellaneousStateEntryLightgroup, GuiMiscellaneousStateEntryPreset } from '@/store/gui/miscellaneous/types'
|
||||
|
||||
interface ColorData {
|
||||
red: number | null
|
||||
green: number | null
|
||||
blue: number | null
|
||||
white: number | null
|
||||
}
|
||||
|
||||
@Component({
|
||||
components: {
|
||||
ColorPicker,
|
||||
},
|
||||
})
|
||||
export default class MiscellaneousLight extends Mixins(BaseMixin) {
|
||||
mdiCloseThick = mdiCloseThick
|
||||
mdiLightbulbOutline = mdiLightbulbOutline
|
||||
mdiLightbulbOnOutline = mdiLightbulbOnOutline
|
||||
|
||||
@Prop({ type: Object, required: true })
|
||||
declare object: PrinterStateLight
|
||||
|
||||
@Prop({ type: Boolean, default: false }) readonly root!: boolean
|
||||
@Prop(Object) readonly group!: GuiMiscellaneousStateEntryLightgroup | undefined
|
||||
|
||||
private boolDialog = false
|
||||
private inputValue = 0
|
||||
|
||||
get name() {
|
||||
if (this.group) return convertName(this.group.name)
|
||||
|
||||
return convertName(this.object.name)
|
||||
}
|
||||
|
||||
get colorPickerOptions() {
|
||||
let options: ColorPickerProps = {
|
||||
width: 200,
|
||||
margin: 15,
|
||||
layout: [],
|
||||
}
|
||||
|
||||
if (this.existRed) {
|
||||
// @ts-ignore
|
||||
options?.layout.push({
|
||||
component: iro.ui.Slider,
|
||||
options: {
|
||||
sliderType: 'red',
|
||||
},
|
||||
})
|
||||
}
|
||||
|
||||
if (this.existGreen) {
|
||||
// @ts-ignore
|
||||
options?.layout.push({
|
||||
component: iro.ui.Slider,
|
||||
options: {
|
||||
sliderType: 'green',
|
||||
},
|
||||
})
|
||||
}
|
||||
|
||||
if (this.existBlue) {
|
||||
// @ts-ignore
|
||||
options?.layout.push({
|
||||
component: iro.ui.Slider,
|
||||
options: {
|
||||
sliderType: 'blue',
|
||||
},
|
||||
})
|
||||
}
|
||||
|
||||
if (this.existRed && this.existGreen && this.existBlue) {
|
||||
options.layout = [
|
||||
{
|
||||
component: iro.ui.Wheel,
|
||||
},
|
||||
{
|
||||
component: iro.ui.Slider,
|
||||
options: {
|
||||
sliderType: 'value',
|
||||
},
|
||||
},
|
||||
]
|
||||
}
|
||||
|
||||
return options
|
||||
}
|
||||
|
||||
get colorPickerWhiteOptions() {
|
||||
let options: ColorPickerProps = {
|
||||
width: 200,
|
||||
margin: 15,
|
||||
layout: [
|
||||
{
|
||||
component: iro.ui.Slider,
|
||||
options: {
|
||||
sliderType: 'alpha',
|
||||
},
|
||||
},
|
||||
],
|
||||
}
|
||||
|
||||
return options
|
||||
}
|
||||
|
||||
get optionsColors() {
|
||||
let output: string[] = []
|
||||
|
||||
this.presets.forEach((preset: GuiMiscellaneousStateEntryPreset) => {
|
||||
output.push(`rgb(${preset.red}%, ${preset.green}%, ${preset.blue}%)`)
|
||||
})
|
||||
|
||||
return output
|
||||
}
|
||||
|
||||
get current() {
|
||||
const color: ColorData = {
|
||||
red: 0,
|
||||
green: 0,
|
||||
blue: 0,
|
||||
white: null,
|
||||
}
|
||||
|
||||
if (this.existWhite) color.white = 0
|
||||
if (this.object.colorData.length === 0) return color
|
||||
|
||||
const firstColorData = this.object.colorData[(this.group?.start ?? 1) - 1]
|
||||
color.red = firstColorData[0] * 255
|
||||
color.green = firstColorData[1] * 255
|
||||
color.blue = firstColorData[2] * 255
|
||||
if (this.object.colorOrder.indexOf('W') !== -1) color.white = firstColorData[3] * 255
|
||||
|
||||
return color
|
||||
}
|
||||
|
||||
get isOn() {
|
||||
return (
|
||||
(this.current.red ?? 0) +
|
||||
(this.current?.green ?? 0) +
|
||||
(this.current.blue ?? 0) +
|
||||
(this.current.white ?? 0) >
|
||||
0
|
||||
)
|
||||
}
|
||||
|
||||
get existRed() {
|
||||
return this.object.colorOrder.indexOf('R') !== -1
|
||||
}
|
||||
|
||||
get existGreen() {
|
||||
return this.object.colorOrder.indexOf('G') !== -1
|
||||
}
|
||||
|
||||
get existBlue() {
|
||||
return this.object.colorOrder.indexOf('B') !== -1
|
||||
}
|
||||
|
||||
get existWhite() {
|
||||
return this.object.colorOrder.indexOf('W') !== -1
|
||||
}
|
||||
|
||||
get currentStateStyle() {
|
||||
let output = this.colorRGB
|
||||
|
||||
if (this.current.white !== null && this.current.red == 0 && this.current.green == 0 && this.current.blue == 0)
|
||||
output = `rgb(${this.current.white * 255}, ${this.current.white * 255}, ${this.current.white * 255})`
|
||||
|
||||
return {
|
||||
'background-color': output,
|
||||
}
|
||||
}
|
||||
|
||||
get colorRGB() {
|
||||
return `rgb(${Math.round(this.current.red ?? 0)}, ${Math.round(this.current.green ?? 0)}, ${Math.round(
|
||||
this.current.blue ?? 0
|
||||
)})`
|
||||
}
|
||||
|
||||
get colorRGBW() {
|
||||
return `rgba(255, 255, 255, ${(this.current.white ?? 0) / 255})`
|
||||
}
|
||||
|
||||
get redInt() {
|
||||
return Math.round(this.current.red ?? 0)
|
||||
}
|
||||
|
||||
get greenInt() {
|
||||
return Math.round(this.current.green ?? 0)
|
||||
}
|
||||
|
||||
get blueInt() {
|
||||
return Math.round(this.current.blue ?? 0)
|
||||
}
|
||||
|
||||
get whiteInt() {
|
||||
return Math.round(this.current.white ?? 0)
|
||||
}
|
||||
|
||||
get groups() {
|
||||
return (
|
||||
this.$store.getters['gui/miscellaneous/getEntryLightgroups']({
|
||||
type: this.object.type,
|
||||
name: this.object.name,
|
||||
}) ?? []
|
||||
)
|
||||
}
|
||||
|
||||
get presets() {
|
||||
return (
|
||||
this.$store.getters['gui/miscellaneous/getEntryPresets']({
|
||||
type: this.object.type,
|
||||
name: this.object.name,
|
||||
}) ?? []
|
||||
)
|
||||
}
|
||||
|
||||
get containerClass() {
|
||||
let output = ['px-0']
|
||||
|
||||
output.push(this.root ? 'py-2' : 'pt-2 pb-0')
|
||||
|
||||
return output
|
||||
}
|
||||
|
||||
colorChanged(color: ColorData) {
|
||||
if (
|
||||
Math.round(color.red ?? 0) === Math.round(this.current.red ?? 0) &&
|
||||
Math.round(color.green ?? 0) === Math.round(this.current.green ?? 0) &&
|
||||
Math.round(color.blue ?? 0) === Math.round(this.current.blue ?? 0) &&
|
||||
Math.round(color.white ?? 0) === Math.round(this.current.white ?? 0)
|
||||
)
|
||||
return
|
||||
|
||||
const red = Math.round(((color.red ?? 0) / 255) * 10000) / 10000
|
||||
const green = Math.round(((color.green ?? 0) / 255) * 10000) / 10000
|
||||
const blue = Math.round(((color.blue ?? 0) / 255) * 10000) / 10000
|
||||
const white = Math.round(((color.white ?? 0) / 255) * 10000) / 10000
|
||||
|
||||
let gcode = `SET_LED LED="${this.object.name}" RED=${red} GREEN=${green} BLUE=${blue}`
|
||||
if (this.existWhite) gcode += ` WHITE=${white}`
|
||||
gcode += ` SYNC=0`
|
||||
|
||||
if (this.group) {
|
||||
const tmp = gcode
|
||||
|
||||
for (let i = this.group.start; i <= this.group.end; i++) {
|
||||
if (i === this.group.start) {
|
||||
gcode += ` INDEX=${i}`
|
||||
continue
|
||||
}
|
||||
|
||||
gcode += `\n${tmp} INDEX=${i}`
|
||||
}
|
||||
}
|
||||
|
||||
gcode += ` TRANSMIT=1`
|
||||
|
||||
this.$store.dispatch('server/addEvent', {
|
||||
message: gcode,
|
||||
type: 'command',
|
||||
})
|
||||
this.$socket.emit('printer.gcode.script', { script: gcode })
|
||||
}
|
||||
|
||||
@Debounce({ time: 500 })
|
||||
onColorRGBChanged(payload: IroColor) {
|
||||
const color: ColorData = {
|
||||
red: payload.red,
|
||||
green: payload.green,
|
||||
blue: payload.blue,
|
||||
white: this.current.white,
|
||||
}
|
||||
|
||||
this.colorChanged(color)
|
||||
}
|
||||
|
||||
@Debounce({ time: 500 })
|
||||
onColorWhiteChanged(payload: IroColor) {
|
||||
const color: ColorData = {
|
||||
red: this.current.red,
|
||||
green: this.current.green,
|
||||
blue: this.current.blue,
|
||||
white: this.current.white,
|
||||
}
|
||||
|
||||
// @ts-ignore
|
||||
color.white = payload.alpha * 255
|
||||
|
||||
this.colorChanged(color)
|
||||
}
|
||||
|
||||
@Debounce({ time: 500 })
|
||||
onColorInput(payload: { name: string; value: number }) {
|
||||
const color: ColorData = {
|
||||
red: this.current.red,
|
||||
green: this.current.green,
|
||||
blue: this.current.blue,
|
||||
white: this.current.white,
|
||||
}
|
||||
|
||||
// @ts-ignore
|
||||
color[payload.name] = payload.value
|
||||
|
||||
this.colorChanged(color)
|
||||
}
|
||||
|
||||
off() {
|
||||
const color: ColorData = {
|
||||
red: 0,
|
||||
green: 0,
|
||||
blue: 0,
|
||||
white: 0,
|
||||
}
|
||||
|
||||
this.colorChanged(color)
|
||||
}
|
||||
|
||||
on() {
|
||||
const color: ColorData = {
|
||||
red: 255,
|
||||
green: 255,
|
||||
blue: 255,
|
||||
white: 255,
|
||||
}
|
||||
|
||||
this.colorChanged(color)
|
||||
}
|
||||
|
||||
presetStyle(preset: GuiMiscellaneousStateEntryPreset) {
|
||||
if ((preset?.red ?? 0) + (preset?.green ?? 0) + (preset?.blue ?? 0) === 0 && (preset?.white ?? 0) > 0) {
|
||||
return {
|
||||
backgroundColor: `rgb(${preset.white}%, ${preset.white}%, ${preset.white}%)`,
|
||||
}
|
||||
}
|
||||
|
||||
return {
|
||||
backgroundColor: `rgb(${preset.red}%, ${preset.green}%, ${preset.blue}%)`,
|
||||
}
|
||||
}
|
||||
|
||||
usePreset(preset: GuiMiscellaneousStateEntryPreset) {
|
||||
const color: ColorData = { ...preset }
|
||||
|
||||
this.colorChanged(color)
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
||||
<style scoped>
|
||||
._light-subheader {
|
||||
height: auto;
|
||||
}
|
||||
|
||||
._currentState {
|
||||
width: 15px;
|
||||
height: 15px;
|
||||
border-radius: 50%;
|
||||
border: 1px solid lightgray;
|
||||
cursor: pointer;
|
||||
}
|
||||
|
||||
.light-presets-container {
|
||||
gap: 6px;
|
||||
}
|
||||
|
||||
.light-presets-container > div {
|
||||
width: 28px;
|
||||
height: 28px;
|
||||
border-radius: 4px;
|
||||
cursor: pointer;
|
||||
}
|
||||
</style>
|
||||
@@ -3,7 +3,18 @@
|
||||
<v-row>
|
||||
<v-col :class="pwm ? 'pb-1' : 'pb-3'">
|
||||
<v-subheader class="_fan-slider-subheader">
|
||||
<v-icon v-if="type !== 'output_pin'" small :class="fanClasses">{{ mdiFan }}</v-icon>
|
||||
<v-icon
|
||||
v-if="type === 'led' && target > 0"
|
||||
class="mr-2"
|
||||
small
|
||||
:retain-focus-on-click="true"
|
||||
@click="ledOff">
|
||||
{{ mdiLightbulbOnOutline }}
|
||||
</v-icon>
|
||||
<v-icon v-else-if="type === 'led'" class="mr-2" small :retain-focus-on-click="true" @click="ledOn">
|
||||
{{ mdiLightbulbOutline }}
|
||||
</v-icon>
|
||||
<v-icon v-else-if="type !== 'output_pin'" small :class="fanClasses">{{ mdiFan }}</v-icon>
|
||||
<span>{{ convertName(name) }}</span>
|
||||
<v-spacer></v-spacer>
|
||||
<small v-if="rpm !== null" :class="rpmClasses">{{ Math.round(rpm ?? 0) }} RPM</small>
|
||||
@@ -87,6 +98,8 @@ import {
|
||||
mdiPlus,
|
||||
mdiToggleSwitch,
|
||||
mdiToggleSwitchOffOutline,
|
||||
mdiLightbulbOutline,
|
||||
mdiLightbulbOnOutline,
|
||||
} from '@mdi/js'
|
||||
|
||||
@Component
|
||||
@@ -98,6 +111,8 @@ export default class MiscellaneousSlider extends Mixins(BaseMixin) {
|
||||
mdiLockOpenVariantOutline = mdiLockOpenVariantOutline
|
||||
mdiMinus = mdiMinus
|
||||
mdiPlus = mdiPlus
|
||||
mdiLightbulbOutline = mdiLightbulbOutline
|
||||
mdiLightbulbOnOutline = mdiLightbulbOnOutline
|
||||
|
||||
convertName = convertName
|
||||
private declare timeout: ReturnType<typeof setTimeout>
|
||||
@@ -135,6 +150,9 @@ export default class MiscellaneousSlider extends Mixins(BaseMixin) {
|
||||
@Prop({ type: Number, default: 0 })
|
||||
declare off_below: number
|
||||
|
||||
@Prop({ type: String, default: '' })
|
||||
declare colorOrder: string
|
||||
|
||||
get value(): number {
|
||||
return Math.round((this.target / this.max) * 100) / 100
|
||||
}
|
||||
@@ -187,6 +205,8 @@ export default class MiscellaneousSlider extends Mixins(BaseMixin) {
|
||||
if (this.type === 'fan') gcode = `M106 S${newVal.toFixed(0)}`
|
||||
if (this.type === 'fan_generic') gcode = `SET_FAN_SPEED FAN=${this.name} SPEED=${newVal}`
|
||||
if (this.type === 'output_pin') gcode = `SET_PIN PIN=${this.name} VALUE=${newVal.toFixed(2)}`
|
||||
if (this.type === 'led')
|
||||
gcode = `SET_LED LED=${this.name} ${this.ledChannelName}=${newVal.toFixed(2)} SYNC=0 TRANSMIT=1`
|
||||
|
||||
if (gcode !== '') {
|
||||
this.$store.dispatch('server/addEvent', { message: gcode, type: 'command' })
|
||||
@@ -196,6 +216,14 @@ export default class MiscellaneousSlider extends Mixins(BaseMixin) {
|
||||
this.startLockTimer()
|
||||
}
|
||||
|
||||
ledOff() {
|
||||
this.sendCmd(0)
|
||||
}
|
||||
|
||||
ledOn() {
|
||||
this.sendCmd(1)
|
||||
}
|
||||
|
||||
switchOutputPin(): void {
|
||||
const newVal = this.value ? 0 : 1
|
||||
const gcode = `SET_PIN PIN=${this.name} VALUE=${(newVal * this.multi).toFixed(2)}`
|
||||
@@ -266,6 +294,14 @@ export default class MiscellaneousSlider extends Mixins(BaseMixin) {
|
||||
return output
|
||||
}
|
||||
|
||||
get ledChannelName() {
|
||||
if (this.colorOrder === 'R') return 'RED'
|
||||
if (this.colorOrder === 'G') return 'GREEN'
|
||||
if (this.colorOrder === 'B') return 'BLUE'
|
||||
|
||||
return 'WHITE'
|
||||
}
|
||||
|
||||
submitInput(): void {
|
||||
if (this.errors.length > 0) return
|
||||
|
||||
@@ -313,8 +349,8 @@ export default class MiscellaneousSlider extends Mixins(BaseMixin) {
|
||||
}
|
||||
|
||||
._slider-input {
|
||||
font-size: 0.875rem;
|
||||
max-width: 5.4rem;
|
||||
min-width: 4.2rem;
|
||||
max-width: 5rem;
|
||||
margin-left: 12px;
|
||||
}
|
||||
|
||||
|
||||
@@ -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,26 +1,3 @@
|
||||
<style scoped>
|
||||
._temp-input {
|
||||
font-size: 0.875rem;
|
||||
min-width: 4rem;
|
||||
max-width: 5rem;
|
||||
}
|
||||
|
||||
._temp-input >>> .v-input__slot {
|
||||
min-height: 1rem !important;
|
||||
padding-left: 8px !important;
|
||||
padding-right: 8px !important;
|
||||
}
|
||||
|
||||
._temp-input >>> .v-text-field__slot input {
|
||||
padding: 4px 0 4px;
|
||||
}
|
||||
|
||||
._preset {
|
||||
font-size: 0.8125rem;
|
||||
font-weight: 500;
|
||||
}
|
||||
</style>
|
||||
|
||||
<template>
|
||||
<div class="d-flex align-center">
|
||||
<form @submit.prevent="setTemps">
|
||||
@@ -57,11 +34,11 @@
|
||||
link
|
||||
style="min-height: 32px"
|
||||
@click="doSend(`${command} ${attributeName}=${name} TARGET=${preset.value}`)">
|
||||
<div class="d-flex align-center _preset">
|
||||
<v-icon v-if="preset.value === 0" else color="primary" small class="mr-1">
|
||||
<div class="_preset">
|
||||
<v-icon v-if="preset.value === 0" else color="primary" small class="_preset-icon">
|
||||
{{ mdiSnowflake }}
|
||||
</v-icon>
|
||||
<v-icon v-else small class="mr-1">{{ mdiFire }}</v-icon>
|
||||
<v-icon v-else small class="_preset-icon">{{ mdiFire }}</v-icon>
|
||||
<span style="padding-top: 2px">{{ preset.value }}°C</span>
|
||||
</div>
|
||||
</v-list-item>
|
||||
@@ -124,3 +101,30 @@ export default class TemperatureInput extends Mixins(BaseMixin, ControlMixin) {
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
||||
<style scoped>
|
||||
._temp-input {
|
||||
min-width: 4.2rem;
|
||||
max-width: 5rem;
|
||||
}
|
||||
|
||||
._temp-input >>> .v-input__slot {
|
||||
min-height: 1rem !important;
|
||||
padding-left: 8px !important;
|
||||
padding-right: 8px !important;
|
||||
}
|
||||
|
||||
._temp-input >>> .v-text-field__slot input {
|
||||
padding-top: 4px;
|
||||
padding-bottom: 4px;
|
||||
}
|
||||
|
||||
._preset {
|
||||
font-size: 0.875rem;
|
||||
}
|
||||
|
||||
._preset-icon {
|
||||
margin-top: -1px;
|
||||
margin-right: 4px;
|
||||
}
|
||||
</style>
|
||||
@@ -1,53 +1,3 @@
|
||||
<style scoped>
|
||||
._tool-slider-subheader {
|
||||
height: auto;
|
||||
}
|
||||
|
||||
._lock-button {
|
||||
margin-left: -6px;
|
||||
}
|
||||
|
||||
._error-msg {
|
||||
color: #ff5252;
|
||||
font-size: 12px;
|
||||
padding: 4px 16px 2px 0;
|
||||
}
|
||||
|
||||
.fade-enter-active {
|
||||
animation: slide-in 0.15s reverse;
|
||||
opacity: 1;
|
||||
}
|
||||
|
||||
.fade-leave-active {
|
||||
animation: slide-in 0.15s;
|
||||
opacity: 1;
|
||||
}
|
||||
|
||||
@keyframes slide-in {
|
||||
100% {
|
||||
transform: translateY(-5px);
|
||||
}
|
||||
}
|
||||
|
||||
._slider-input {
|
||||
font-size: 0.875rem;
|
||||
max-width: 5.4rem;
|
||||
margin-left: 12px;
|
||||
}
|
||||
|
||||
._slider-input >>> .v-input__slot {
|
||||
min-height: 1rem !important;
|
||||
}
|
||||
|
||||
._slider-input >>> .v-text-field__slot input {
|
||||
padding: 4px 0 4px;
|
||||
}
|
||||
|
||||
._slider-input >>> .v-input__append-inner {
|
||||
margin: auto -5px auto 0 !important;
|
||||
}
|
||||
</style>
|
||||
|
||||
<template>
|
||||
<v-row dense>
|
||||
<v-col class="pa-0">
|
||||
@@ -301,3 +251,54 @@ export default class ToolSlider extends Mixins(BaseMixin) {
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
||||
<style scoped>
|
||||
._tool-slider-subheader {
|
||||
height: auto;
|
||||
}
|
||||
|
||||
._lock-button {
|
||||
margin-left: -6px;
|
||||
}
|
||||
|
||||
._error-msg {
|
||||
color: #ff5252;
|
||||
font-size: 12px;
|
||||
padding: 4px 16px 2px 0;
|
||||
}
|
||||
|
||||
.fade-enter-active {
|
||||
animation: slide-in 0.15s reverse;
|
||||
opacity: 1;
|
||||
}
|
||||
|
||||
.fade-leave-active {
|
||||
animation: slide-in 0.15s;
|
||||
opacity: 1;
|
||||
}
|
||||
|
||||
@keyframes slide-in {
|
||||
100% {
|
||||
transform: translateY(-5px);
|
||||
}
|
||||
}
|
||||
|
||||
._slider-input {
|
||||
min-width: 4.2rem;
|
||||
max-width: 5rem;
|
||||
margin-left: 12px;
|
||||
}
|
||||
|
||||
._slider-input >>> .v-input__slot {
|
||||
min-height: 1rem !important;
|
||||
}
|
||||
|
||||
._slider-input >>> .v-text-field__slot input {
|
||||
padding-top: 4px;
|
||||
padding-bottom: 4px;
|
||||
}
|
||||
|
||||
._slider-input >>> .v-input__append-inner {
|
||||
margin: auto -5px auto 0 !important;
|
||||
}
|
||||
</style>
|
||||
@@ -1,5 +1,6 @@
|
||||
import Vue from 'vue'
|
||||
import Component from 'vue-class-component'
|
||||
import { DateTimeFormatOptions } from 'vue-i18n'
|
||||
|
||||
@Component
|
||||
export default class BaseMixin extends Vue {
|
||||
@@ -11,6 +12,10 @@ export default class BaseMixin extends Vue {
|
||||
return this.$store.getters['socket/getHostUrl']
|
||||
}
|
||||
|
||||
get hostPort(): boolean {
|
||||
return this.$store.state.socket.port ?? 80
|
||||
}
|
||||
|
||||
get instancesDB() {
|
||||
return this.$store.state.instancesDB ?? 'moonraker'
|
||||
}
|
||||
@@ -78,6 +83,14 @@ export default class BaseMixin extends Vue {
|
||||
return 'ontouchstart' in window || (navigator.maxTouchPoints > 0 && navigator.maxTouchPoints !== 256)
|
||||
}
|
||||
|
||||
get isIOS() {
|
||||
return !!(
|
||||
navigator.userAgent.match(/(iPad|iPhone|iPod)/) ||
|
||||
// @ts-ignore
|
||||
(navigator.platform === 'MacIntel' && typeof navigator.standalone !== 'undefined')
|
||||
)
|
||||
}
|
||||
|
||||
get moonrakerComponents() {
|
||||
return this.$store.state.server?.components ?? []
|
||||
}
|
||||
@@ -87,4 +100,96 @@ export default class BaseMixin extends Vue {
|
||||
|
||||
return roots.findIndex((root: string) => root === 'gcodes') >= 0
|
||||
}
|
||||
|
||||
get formatDateOptions(): DateTimeFormatOptions {
|
||||
const format = this.$store.state.gui.general.dateFormat
|
||||
|
||||
switch (format) {
|
||||
case '2-digits':
|
||||
return { day: '2-digit', month: '2-digit', year: 'numeric' }
|
||||
|
||||
case 'short':
|
||||
return { day: '2-digit', month: 'short', year: 'numeric' }
|
||||
|
||||
default:
|
||||
return { dateStyle: 'medium' }
|
||||
}
|
||||
}
|
||||
|
||||
get formatTimeOptions(): DateTimeFormatOptions {
|
||||
const format = this.$store.state.gui.general.timeFormat
|
||||
|
||||
switch (format) {
|
||||
case '24hours':
|
||||
return { hour: '2-digit', minute: '2-digit', hourCycle: 'h23' }
|
||||
|
||||
case '12hours':
|
||||
return { hour: '2-digit', minute: '2-digit', hourCycle: 'h12' }
|
||||
|
||||
default:
|
||||
return { timeStyle: 'short' }
|
||||
}
|
||||
}
|
||||
|
||||
get formatTimeWithSecondsOptions(): DateTimeFormatOptions {
|
||||
const format = this.$store.state.gui.general.timeFormat
|
||||
|
||||
switch (format) {
|
||||
case '24hours':
|
||||
return { hour: '2-digit', minute: '2-digit', second: '2-digit', hourCycle: 'h23' }
|
||||
|
||||
case '12hours':
|
||||
return { hour: '2-digit', minute: '2-digit', second: '2-digit', hourCycle: 'h12' }
|
||||
|
||||
default:
|
||||
return { timeStyle: 'short' }
|
||||
}
|
||||
}
|
||||
|
||||
get browserLocale() {
|
||||
return navigator.languages && navigator.languages.length ? navigator.languages[0] : navigator.language
|
||||
}
|
||||
|
||||
get hours12Format() {
|
||||
const setting = this.$store.state.gui.general.timeFormat
|
||||
if (setting === '12hours') return true
|
||||
if (setting === null && this.browserLocale === 'en_us') return true
|
||||
|
||||
return false
|
||||
}
|
||||
|
||||
formatDate(value: number | Date): string {
|
||||
let tmp = null
|
||||
|
||||
try {
|
||||
// @ts-ignore
|
||||
tmp = (typeof value.getMonth === 'function' ? value : new Date(value)) as Date
|
||||
} catch (_) {
|
||||
return 'UNKNOWN'
|
||||
}
|
||||
|
||||
return tmp.toLocaleDateString(this.browserLocale, this.formatDateOptions)
|
||||
}
|
||||
|
||||
formatTime(value: number | Date, boolSeconds = false): string {
|
||||
let tmp = null
|
||||
|
||||
try {
|
||||
// @ts-ignore
|
||||
tmp = (typeof value.getMonth === 'function' ? value : new Date(value)) as Date
|
||||
} catch (_) {
|
||||
return 'UNKNOWN'
|
||||
}
|
||||
|
||||
if (boolSeconds) return tmp.toLocaleTimeString(this.browserLocale, this.formatTimeWithSecondsOptions)
|
||||
|
||||
return tmp.toLocaleTimeString(this.browserLocale, this.formatTimeOptions)
|
||||
}
|
||||
|
||||
formatDateTime(value: number, boolSeconds = false): string {
|
||||
const date = this.formatDate(value)
|
||||
const time = this.formatTime(value, boolSeconds)
|
||||
|
||||
return `${date} ${time}`
|
||||
}
|
||||
}
|
||||
@@ -1,33 +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 kebabCase from 'lodash.kebabcase'
|
||||
import Vue from 'vue'
|
||||
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'] ?? []
|
||||
}
|
||||
@@ -36,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] ?? ''
|
||||
@@ -138,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
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -1,93 +0,0 @@
|
||||
<style scoped>
|
||||
.klipper-logo {
|
||||
transform: rotate(90deg);
|
||||
}
|
||||
.moonraker-logo {
|
||||
transform: rotate(45deg);
|
||||
color: #ebc815;
|
||||
}
|
||||
.version-container {
|
||||
display: grid;
|
||||
grid-template-columns: 20px auto;
|
||||
}
|
||||
</style>
|
||||
|
||||
<template>
|
||||
<v-dialog v-model="isOpen" transition="dialog-bottom-transition" max-width="600" scrollable>
|
||||
<template #activator="{ an }">
|
||||
<v-tooltip right color="panel">
|
||||
<template #activator="{ on, attrs }">
|
||||
<v-icon v-bind="attrs" v-on="an" @mouseenter="on.mouseenter" @mouseleave="on.mouseleave">
|
||||
{{ mdiHelpCircleOutline }}
|
||||
</v-icon>
|
||||
</template>
|
||||
<span class="dark version-container">
|
||||
<div><img height="12" src="/img/logo.svg" /></div>
|
||||
<div>v{{ mainsailVersion }}</div>
|
||||
<div>
|
||||
<v-icon small class="moonraker-logo">{{ mdiMoonWaningCrescent }}</v-icon>
|
||||
</div>
|
||||
<div>{{ moonrakerVersion }}</div>
|
||||
<div><img height="12" src="/img/klipper.svg" class="klipper-logo" /></div>
|
||||
<div>{{ klipperVersion }}</div>
|
||||
</span>
|
||||
</v-tooltip>
|
||||
</template>
|
||||
<template #default>
|
||||
<panel title="About" :margin-bottom="false">
|
||||
<template #buttons>
|
||||
<v-btn icon tile @click="isOpen = false">
|
||||
<v-icon>{{ mdiCloseThick }}</v-icon>
|
||||
</v-btn>
|
||||
</template>
|
||||
<v-card-text>
|
||||
<v-container fliud class="align-self-start">
|
||||
<v-row tag="logo">
|
||||
<v-col cols="auto">
|
||||
<v-img
|
||||
height="80"
|
||||
contain
|
||||
src="https://docs.mainsail.xyz/assets/img/logo-mainsail.png"></v-img>
|
||||
</v-col>
|
||||
</v-row>
|
||||
<v-row tag="data1" justify="center">
|
||||
<v-col class="pr-3 text-right">Version</v-col>
|
||||
<v-col>v2.1.0-alpha</v-col>
|
||||
</v-row>
|
||||
</v-container>
|
||||
</v-card-text>
|
||||
</panel>
|
||||
</template>
|
||||
</v-dialog>
|
||||
</template>
|
||||
|
||||
<script lang="ts">
|
||||
import BaseMixin from '../mixins/base'
|
||||
import { Mixins } from 'vue-property-decorator'
|
||||
import Component from 'vue-class-component'
|
||||
import Panel from '@/components/ui/Panel.vue'
|
||||
import { mdiCloseThick, mdiHelpCircleOutline, mdiMoonWaningCrescent } from '@mdi/js'
|
||||
|
||||
@Component({
|
||||
components: { Panel },
|
||||
})
|
||||
export default class AboutModal extends Mixins(BaseMixin) {
|
||||
mdiHelpCircleOutline = mdiHelpCircleOutline
|
||||
mdiCloseThick = mdiCloseThick
|
||||
mdiMoonWaningCrescent = mdiMoonWaningCrescent
|
||||
|
||||
private isOpen = false
|
||||
|
||||
get mainsailVersion(): string {
|
||||
return this.$store.state.packageVersion
|
||||
}
|
||||
|
||||
get klipperVersion(): string {
|
||||
return this.$store.state.printer?.software_version ?? ''
|
||||
}
|
||||
|
||||
get moonrakerVersion(): string {
|
||||
return this.$store.state.server?.moonraker_version ?? ''
|
||||
}
|
||||
}
|
||||
</script>
|
||||
@@ -461,7 +461,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 {
|
||||
|
||||
@@ -29,7 +29,7 @@
|
||||
<input
|
||||
ref="fileUpload"
|
||||
type="file"
|
||||
:accept="validGcodeExtensions.join(', ')"
|
||||
:accept="gcodeInputFileAccept.join(', ')"
|
||||
style="display: none"
|
||||
multiple
|
||||
@change="uploadFile" />
|
||||
@@ -374,12 +374,16 @@
|
||||
v-model="dialogCreateDirectory.name"
|
||||
:label="$t('Files.Name')"
|
||||
required
|
||||
:rules="nameInputRules"
|
||||
@update:error="isInvalidName = !isInvalidName"
|
||||
@keypress.enter="createDirectoryAction"></v-text-field>
|
||||
</v-card-text>
|
||||
<v-card-actions>
|
||||
<v-spacer></v-spacer>
|
||||
<v-btn color="" text @click="dialogCreateDirectory.show = false">{{ $t('Files.Cancel') }}</v-btn>
|
||||
<v-btn color="primary" text @click="createDirectoryAction">{{ $t('Files.Create') }}</v-btn>
|
||||
<v-btn :disabled="isInvalidName" color="primary" text @click="createDirectoryAction">
|
||||
{{ $t('Files.Create') }}
|
||||
</v-btn>
|
||||
</v-card-actions>
|
||||
</panel>
|
||||
</v-dialog>
|
||||
@@ -399,12 +403,16 @@
|
||||
v-model="dialogRenameFile.newName"
|
||||
:label="$t('Files.Name').toString()"
|
||||
required
|
||||
:rules="nameInputRules"
|
||||
@update:error="isInvalidName = !isInvalidName"
|
||||
@keyup.enter="renameFileAction"></v-text-field>
|
||||
</v-card-text>
|
||||
<v-card-actions>
|
||||
<v-spacer></v-spacer>
|
||||
<v-btn color="" text @click="dialogRenameFile.show = false">{{ $t('Files.Cancel') }}</v-btn>
|
||||
<v-btn color="primary" text @click="renameFileAction">{{ $t('Files.Rename') }}</v-btn>
|
||||
<v-btn :disabled="isInvalidName" color="primary" text @click="renameFileAction">
|
||||
{{ $t('Files.Rename') }}
|
||||
</v-btn>
|
||||
</v-card-actions>
|
||||
</panel>
|
||||
</v-dialog>
|
||||
@@ -424,12 +432,16 @@
|
||||
v-model="dialogRenameDirectory.newName"
|
||||
:label="$t('Files.Name')"
|
||||
required
|
||||
:rules="nameInputRules"
|
||||
@update:error="isInvalidName = !isInvalidName"
|
||||
@keyup.enter="renameDirectoryAction"></v-text-field>
|
||||
</v-card-text>
|
||||
<v-card-actions>
|
||||
<v-spacer></v-spacer>
|
||||
<v-btn color="" text @click="dialogRenameDirectory.show = false">{{ $t('Files.Cancel') }}</v-btn>
|
||||
<v-btn color="primary" text @click="renameDirectoryAction">{{ $t('Files.Rename') }}</v-btn>
|
||||
<v-btn :disabled="isInvalidName" color="primary" text @click="renameDirectoryAction">
|
||||
{{ $t('Files.Rename') }}
|
||||
</v-btn>
|
||||
</v-card-actions>
|
||||
</panel>
|
||||
</v-dialog>
|
||||
@@ -482,7 +494,7 @@
|
||||
import { Component, Mixins, Watch } from 'vue-property-decorator'
|
||||
import BaseMixin from '@/components/mixins/base'
|
||||
import { validGcodeExtensions } from '@/store/variables'
|
||||
import { formatDate, formatFilesize, formatPrintTime, sortFiles } from '@/plugins/helpers'
|
||||
import { formatFilesize, formatPrintTime, sortFiles } from '@/plugins/helpers'
|
||||
import { FileStateFile, FileStateGcodefile } from '@/store/files/types'
|
||||
import Panel from '@/components/ui/Panel.vue'
|
||||
import SettingsRow from '@/components/settings/SettingsRow.vue'
|
||||
@@ -573,8 +585,6 @@ export default class GcodefilesPanel extends Mixins(BaseMixin, ControlMixin) {
|
||||
mdiCheckboxMarked = mdiCheckboxMarked
|
||||
mdiDragVertical = mdiDragVertical
|
||||
|
||||
validGcodeExtensions = validGcodeExtensions
|
||||
formatDate = formatDate
|
||||
formatFilesize = formatFilesize
|
||||
formatPrintTime = formatPrintTime
|
||||
sortFiles = sortFiles
|
||||
@@ -647,6 +657,22 @@ export default class GcodefilesPanel extends Mixins(BaseMixin, ControlMixin) {
|
||||
|
||||
private deleteSelectedDialog = false
|
||||
|
||||
private isInvalidName = true
|
||||
private nameInputRules = [
|
||||
(value: string) => !!value || this.$t('Files.InvalidNameEmpty'),
|
||||
(value: string) => !this.existsFilename(value) || this.$t('Files.InvalidNameAlreadyExists'),
|
||||
]
|
||||
|
||||
existsFilename(name: string) {
|
||||
return this.files.findIndex((file) => file.filename === name) >= 0
|
||||
}
|
||||
|
||||
get gcodeInputFileAccept() {
|
||||
if (this.isIOS) return []
|
||||
|
||||
return validGcodeExtensions
|
||||
}
|
||||
|
||||
get currentPath() {
|
||||
const path = this.$store.state.gui.view.gcodefiles.currentPath
|
||||
if (path === 'gcodes') return ''
|
||||
@@ -1247,7 +1273,7 @@ export default class GcodefilesPanel extends Mixins(BaseMixin, ControlMixin) {
|
||||
return formatFilesize(value)
|
||||
|
||||
case 'date':
|
||||
return this.formatDate(value)
|
||||
return this.formatDateTime(value)
|
||||
|
||||
case 'time':
|
||||
return this.formatPrintTime(value)
|
||||
|
||||
@@ -272,7 +272,9 @@
|
||||
<v-divider class="my-3"></v-divider>
|
||||
<v-row>
|
||||
<v-col>{{ $t('History.LastModified') }}</v-col>
|
||||
<v-col class="text-right">{{ formatDate(detailsDialog.item.metadata.modified) }}</v-col>
|
||||
<v-col class="text-right">
|
||||
{{ formatDateTime(detailsDialog.item.metadata.modified) }}
|
||||
</v-col>
|
||||
</v-row>
|
||||
</template>
|
||||
<v-divider class="my-3"></v-divider>
|
||||
@@ -289,13 +291,13 @@
|
||||
<v-divider class="my-3"></v-divider>
|
||||
<v-row>
|
||||
<v-col>{{ $t('History.StartTime') }}</v-col>
|
||||
<v-col class="text-right">{{ formatDate(detailsDialog.item.start_time) }}</v-col>
|
||||
<v-col class="text-right">{{ formatDateTime(detailsDialog.item.start_time) }}</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">{{ formatDate(detailsDialog.item.end_time) }}</v-col>
|
||||
<v-col class="text-right">{{ formatDateTime(detailsDialog.item.end_time) }}</v-col>
|
||||
</v-row>
|
||||
</template>
|
||||
<template
|
||||
@@ -761,12 +763,6 @@ export default class HistoryListPanel extends Mixins(BaseMixin) {
|
||||
this.$socket.emit('server.history.list', { start: 0, limit: 50 }, { action: 'server/history/getHistory' })
|
||||
}
|
||||
|
||||
formatDate(date: number) {
|
||||
const tmp2 = new Date(date * 1000)
|
||||
|
||||
return tmp2.toLocaleString().replace(',', '')
|
||||
}
|
||||
|
||||
formatPrintTime(totalSeconds: number) {
|
||||
if (totalSeconds) {
|
||||
let output = ''
|
||||
@@ -1013,7 +1009,7 @@ export default class HistoryListPanel extends Mixins(BaseMixin) {
|
||||
if (!format) {
|
||||
switch (col.outputType) {
|
||||
case 'date':
|
||||
return this.formatDate(value)
|
||||
return this.formatDateTime(value * 1000)
|
||||
|
||||
case 'time':
|
||||
return value?.toFixed() ?? ''
|
||||
@@ -1038,7 +1034,7 @@ export default class HistoryListPanel extends Mixins(BaseMixin) {
|
||||
return formatFilesize(value)
|
||||
|
||||
case 'date':
|
||||
return this.formatDate(value)
|
||||
return this.formatDateTime(value * 1000)
|
||||
|
||||
case 'time':
|
||||
return this.formatPrintTime(value)
|
||||
|
||||
@@ -1,37 +1,88 @@
|
||||
<template>
|
||||
<panel
|
||||
v-if="klipperState !== 'ready' && socketIsConnected"
|
||||
:icon="mdiAlertCircle"
|
||||
:title="$t('Panels.KlippyStatePanel.KlippyState') + ': ' + klipperState"
|
||||
card-class="klippy-state-panel">
|
||||
<template v-if="klippyIsConnected">
|
||||
<v-card-text v-if="klippy_message !== null" class="py-1 mt-2">
|
||||
<pre style="white-space: pre-wrap">{{ klippy_message }}</pre>
|
||||
</v-card-text>
|
||||
<v-card-text v-else class="text-center py-3">
|
||||
<v-progress-circular indeterminate color="primary"></v-progress-circular>
|
||||
</v-card-text>
|
||||
<v-divider class="mt-2"></v-divider>
|
||||
<v-card-actions class="justify-start">
|
||||
<v-btn small class="ml-2 error--text" @click="restart">
|
||||
<v-icon class="mr-sm-2">{{ mdiRestart }}</v-icon>
|
||||
{{ $t('Panels.KlippyStatePanel.Restart') }}
|
||||
</v-btn>
|
||||
<v-btn small class="ml-4 error--text" @click="firmwareRestart">
|
||||
<v-icon class="mr-sm-2">{{ mdiRestart }}</v-icon>
|
||||
{{ $t('Panels.KlippyStatePanel.FirmwareRestart') }}
|
||||
</v-btn>
|
||||
</v-card-actions>
|
||||
</template>
|
||||
<template v-else>
|
||||
<v-card-text class="pt-5 pb-1">
|
||||
<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">
|
||||
<!-- KLIPPER MESSAGE TITLE -->
|
||||
<p class="font-weight-medium d-flex align-center">
|
||||
<v-icon :color="messageType.color" class="pr-2">{{ messageType.icon }}</v-icon>
|
||||
{{ $t('Panels.KlippyStatePanel.ServiceReports', { service: 'Klipper' }) }}:
|
||||
{{ klipperState.toUpperCase() }}
|
||||
</p>
|
||||
<!-- KLIPPER MESSAGE -->
|
||||
<div v-if="klippy_message !== null">
|
||||
<pre style="white-space: pre-wrap">{{ klippy_message.trim() }}</pre>
|
||||
<v-divider class="mt-2 pb-3"></v-divider>
|
||||
<v-row>
|
||||
<!-- RESTART BUTTONS -->
|
||||
<v-col>
|
||||
<v-btn
|
||||
small
|
||||
outlined
|
||||
text
|
||||
:class="`${messageType.color}--text my-1`"
|
||||
style="width: 100%"
|
||||
@click="restart">
|
||||
<v-icon class="mr-sm-2">{{ mdiRestart }}</v-icon>
|
||||
{{ $t('Panels.KlippyStatePanel.Restart') }}
|
||||
</v-btn>
|
||||
<v-btn
|
||||
small
|
||||
outlined
|
||||
text
|
||||
:class="`${messageType.color}--text my-1`"
|
||||
style="width: 100%"
|
||||
@click="firmwareRestart">
|
||||
<v-icon class="mr-sm-2">{{ mdiRestart }}</v-icon>
|
||||
{{ $t('Panels.KlippyStatePanel.FirmwareRestart') }}
|
||||
</v-btn>
|
||||
</v-col>
|
||||
<!-- LOG DOWNLOAD BUTTONS -->
|
||||
<v-col>
|
||||
<v-btn
|
||||
:href="apiUrl + '/server/files/klippy.log'"
|
||||
small
|
||||
outlined
|
||||
text
|
||||
:class="`${messageType.color}--text my-1`"
|
||||
style="width: 100%"
|
||||
@click="downloadLog">
|
||||
<v-icon class="mr-2">{{ mdiDownload }}</v-icon>
|
||||
Klipper Log
|
||||
</v-btn>
|
||||
<v-btn
|
||||
:href="apiUrl + '/server/files/moonraker.log'"
|
||||
small
|
||||
outlined
|
||||
text
|
||||
:class="`${messageType.color}--text my-1`"
|
||||
style="width: 100%"
|
||||
@click="downloadLog">
|
||||
<v-icon class="mr-2">{{ mdiDownload }}</v-icon>
|
||||
Moonraker Log
|
||||
</v-btn>
|
||||
</v-col>
|
||||
</v-row>
|
||||
</div>
|
||||
<!-- LOADER -->
|
||||
<v-card-text v-else class="text-center py-3">
|
||||
<v-progress-circular indeterminate :color="messageType.color"></v-progress-circular>
|
||||
</v-card-text>
|
||||
</v-alert>
|
||||
</v-container>
|
||||
<!-- DISCONNECTED INFOGRAPHIC -->
|
||||
<v-container v-if="klipperState === 'disconnected'" class="pa-0">
|
||||
<v-alert dense text border="left">
|
||||
<p class="font-weight-medium d-flex align-center">
|
||||
<v-icon class="pr-2">{{ messageType.icon }}</v-icon>
|
||||
{{ $t('Panels.KlippyStatePanel.ServiceReports', { service: 'Moonraker' }) }}:
|
||||
{{ klipperState.toUpperCase() }}
|
||||
</p>
|
||||
<connection-status :moonraker="true" :klipper="false"></connection-status>
|
||||
<p class="mt-2 mb-0 text-center">{{ $t('Panels.KlippyStatePanel.MoonrakerCannotConnect') }}</p>
|
||||
<v-divider class="my-2"></v-divider>
|
||||
<p class="mt-2">{{ $t('Panels.KlippyStatePanel.KlipperCheck') }}</p>
|
||||
</v-card-text>
|
||||
</template>
|
||||
</panel>
|
||||
<p class="mb-0 text-center">{{ $t('Panels.KlippyStatePanel.KlipperCheck') }}</p>
|
||||
</v-alert>
|
||||
</v-container>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<script lang="ts">
|
||||
@@ -40,21 +91,43 @@ import { Mixins } from 'vue-property-decorator'
|
||||
import BaseMixin from '../mixins/base'
|
||||
import ConnectionStatus from '../ui/ConnectionStatus.vue'
|
||||
import Panel from '@/components/ui/Panel.vue'
|
||||
import { mdiAlertCircle, mdiRestart } from '@mdi/js'
|
||||
import {
|
||||
mdiRestart,
|
||||
mdiDownload,
|
||||
mdiMessageOutline,
|
||||
mdiAlertOutline,
|
||||
mdiRocketLaunch,
|
||||
mdiConnection,
|
||||
mdiPrinter3d,
|
||||
} from '@mdi/js'
|
||||
|
||||
@Component({
|
||||
components: { Panel, ConnectionStatus },
|
||||
})
|
||||
export default class KlippyStatePanel extends Mixins(BaseMixin) {
|
||||
//private timer: number | null = null
|
||||
|
||||
mdiAlertCircle = mdiAlertCircle
|
||||
mdiPrinter3d = mdiPrinter3d
|
||||
mdiRestart = mdiRestart
|
||||
mdiDownload = mdiDownload
|
||||
|
||||
get klippy_message() {
|
||||
return this.$store.state.server.klippy_message ?? null
|
||||
}
|
||||
|
||||
get messageType(): { color: string; icon: string } {
|
||||
switch (this.klipperState) {
|
||||
case 'startup':
|
||||
return { color: 'info', icon: mdiRocketLaunch }
|
||||
case 'shutdown':
|
||||
return { color: 'warning', icon: mdiAlertOutline }
|
||||
case 'error':
|
||||
return { color: 'error', icon: mdiAlertOutline }
|
||||
case 'disconnected':
|
||||
return { color: '', icon: mdiConnection }
|
||||
default:
|
||||
return { color: '', icon: mdiMessageOutline }
|
||||
}
|
||||
}
|
||||
|
||||
restart() {
|
||||
this.$socket.emit('printer.restart', {}, { loading: 'restart' })
|
||||
}
|
||||
@@ -63,22 +136,13 @@ export default class KlippyStatePanel extends Mixins(BaseMixin) {
|
||||
this.$socket.emit('printer.firmware_restart', {}, { loading: 'firmwareRestart' })
|
||||
}
|
||||
|
||||
/*requestKlippyState() {
|
||||
this.$socket.emit('printer.info', {}, { action: 'printer/getInfo' })
|
||||
}
|
||||
downloadLog(event: any) {
|
||||
event.preventDefault()
|
||||
let href = ''
|
||||
if ('href' in event.target.attributes) href = event.target.attributes.href.value
|
||||
if ('href' in event.target.parentElement.attributes) href = event.target.parentElement.attributes.href.value
|
||||
|
||||
@Watch('klipperState')
|
||||
klipperStateChanged(newVal: string) {
|
||||
if (['ready', 'disconnected'].includes(newVal)) {
|
||||
if (this.timer) {
|
||||
clearInterval(this.timer)
|
||||
this.timer = null
|
||||
}
|
||||
} else if (this.timer === null) {
|
||||
this.timer = setInterval(() => {
|
||||
this.requestKlippyState()
|
||||
}, 2000)
|
||||
}
|
||||
}*/
|
||||
window.open(href)
|
||||
}
|
||||
}
|
||||
</script>
|
||||
@@ -162,7 +162,7 @@
|
||||
<td class="text-no-wrap text-right">
|
||||
{{ item.isDirectory ? '--' : formatFilesize(item.size) }}
|
||||
</td>
|
||||
<td class="text-right">{{ formatDate(item.modified) }}</td>
|
||||
<td class="text-right">{{ formatDateTime(item.modified) }}</td>
|
||||
</tr>
|
||||
</template>
|
||||
</v-data-table>
|
||||
@@ -277,6 +277,8 @@
|
||||
v-model="dialogCreateFile.name"
|
||||
:label="$t('Machine.ConfigFilesPanel.Name')"
|
||||
required
|
||||
:rules="nameInputRules"
|
||||
@update:error="isInvalidName = !isInvalidName"
|
||||
@keyup.enter="createFileAction"></v-text-field>
|
||||
</v-card-text>
|
||||
<v-card-actions>
|
||||
@@ -284,7 +286,7 @@
|
||||
<v-btn color="" text @click="dialogCreateFile.show = false">
|
||||
{{ $t('Machine.ConfigFilesPanel.Cancel') }}
|
||||
</v-btn>
|
||||
<v-btn color="primary" text @click="createFileAction">
|
||||
<v-btn :disabled="isInvalidName" color="primary" text @click="createFileAction">
|
||||
{{ $t('Machine.ConfigFilesPanel.Create') }}
|
||||
</v-btn>
|
||||
</v-card-actions>
|
||||
@@ -306,6 +308,8 @@
|
||||
v-model="dialogRenameFile.newName"
|
||||
:label="$t('Machine.ConfigFilesPanel.Name')"
|
||||
required
|
||||
:rules="nameInputRules"
|
||||
@update:error="isInvalidName = !isInvalidName"
|
||||
@keyup.enter="renameFileAction"></v-text-field>
|
||||
</v-card-text>
|
||||
<v-card-actions>
|
||||
@@ -313,7 +317,7 @@
|
||||
<v-btn color="" text @click="dialogRenameFile.show = false">
|
||||
{{ $t('Machine.ConfigFilesPanel.Cancel') }}
|
||||
</v-btn>
|
||||
<v-btn color="primary" text @click="renameFileAction">
|
||||
<v-btn :disabled="isInvalidName" color="primary" text @click="renameFileAction">
|
||||
{{ $t('Machine.ConfigFilesPanel.Rename') }}
|
||||
</v-btn>
|
||||
</v-card-actions>
|
||||
@@ -335,6 +339,8 @@
|
||||
v-model="dialogCreateDirectory.name"
|
||||
:label="$t('Machine.ConfigFilesPanel.Name')"
|
||||
required
|
||||
:rules="nameInputRules"
|
||||
@update:error="isInvalidName = !isInvalidName"
|
||||
@keyup.enter="createDirectoryAction"></v-text-field>
|
||||
</v-card-text>
|
||||
<v-card-actions>
|
||||
@@ -342,7 +348,7 @@
|
||||
<v-btn color="" text @click="dialogCreateDirectory.show = false">
|
||||
{{ $t('Machine.ConfigFilesPanel.Cancel') }}
|
||||
</v-btn>
|
||||
<v-btn color="primary" text @click="createDirectoryAction">
|
||||
<v-btn :disabled="isInvalidName" color="primary" text @click="createDirectoryAction">
|
||||
{{ $t('Machine.ConfigFilesPanel.Create') }}
|
||||
</v-btn>
|
||||
</v-card-actions>
|
||||
@@ -364,6 +370,8 @@
|
||||
v-model="dialogRenameDirectory.newName"
|
||||
:label="$t('Machine.ConfigFilesPanel.Name')"
|
||||
required
|
||||
:rules="nameInputRules"
|
||||
@update:error="isInvalidName = !isInvalidName"
|
||||
@keyup.enter="renameDirectoryAction"></v-text-field>
|
||||
</v-card-text>
|
||||
<v-card-actions>
|
||||
@@ -371,7 +379,7 @@
|
||||
<v-btn color="" text @click="dialogRenameDirectory.show = false">
|
||||
{{ $t('Machine.ConfigFilesPanel.Cancel') }}
|
||||
</v-btn>
|
||||
<v-btn color="primary" text @click="renameDirectoryAction">
|
||||
<v-btn :disabled="isInvalidName" color="primary" text @click="renameDirectoryAction">
|
||||
{{ $t('Machine.ConfigFilesPanel.Rename') }}
|
||||
</v-btn>
|
||||
</v-card-actions>
|
||||
@@ -454,7 +462,7 @@
|
||||
<script lang="ts">
|
||||
import { Component, Mixins } from 'vue-property-decorator'
|
||||
import BaseMixin from '@/components/mixins/base'
|
||||
import { formatDate, formatFilesize, sortFiles } from '@/plugins/helpers'
|
||||
import { formatFilesize, sortFiles } from '@/plugins/helpers'
|
||||
import { FileStateFile, FileStateGcodefile } from '@/store/files/types'
|
||||
import axios from 'axios'
|
||||
import Panel from '@/components/ui/Panel.vue'
|
||||
@@ -545,7 +553,6 @@ export default class ConfigFilesPanel extends Mixins(BaseMixin) {
|
||||
|
||||
sortFiles = sortFiles
|
||||
formatFilesize = formatFilesize
|
||||
formatDate = formatDate
|
||||
|
||||
declare $refs: {
|
||||
fileUpload: HTMLInputElement
|
||||
@@ -639,6 +646,16 @@ export default class ConfigFilesPanel extends Mixins(BaseMixin) {
|
||||
|
||||
private deleteSelectedDialog = false
|
||||
|
||||
private isInvalidName = true
|
||||
private nameInputRules = [
|
||||
(value: string) => !!value || this.$t('Files.InvalidNameEmpty'),
|
||||
(value: string) => !this.existsFilename(value) || this.$t('Files.InvalidNameAlreadyExists'),
|
||||
]
|
||||
|
||||
existsFilename(name: string) {
|
||||
return this.files.findIndex((file) => file.filename === name) >= 0
|
||||
}
|
||||
|
||||
get blockFileUpload() {
|
||||
return this.$store.state.gui.view.blockFileUpload ?? false
|
||||
}
|
||||
|
||||
@@ -9,16 +9,12 @@
|
||||
<v-row class="py-0 pr-4">
|
||||
<v-col class="pl-6">
|
||||
<strong style="cursor: pointer" @click="hostDetailsDialog = true">Host</strong>
|
||||
<template v-if="hostStats.cpuDesc">
|
||||
<v-tooltip top>
|
||||
<template #activator="{ on, attrs }">
|
||||
<small v-if="hostStats.cpuName" class="ml-2" v-bind="attrs" v-on="on">
|
||||
({{ hostStats.cpuName }})
|
||||
</small>
|
||||
</template>
|
||||
<span>{{ hostStats.cpuDesc }}</span>
|
||||
</v-tooltip>
|
||||
</template>
|
||||
<v-tooltip top>
|
||||
<template #activator="{ on, attrs }">
|
||||
<small v-if="hostStats.cpuName" class="ml-2" v-bind="attrs" v-on="on">({{ cpuName }})</small>
|
||||
</template>
|
||||
<span>{{ cpuDesc }}</span>
|
||||
</v-tooltip>
|
||||
<br />
|
||||
<div class="text-body-2">
|
||||
<div v-if="hostStats.version">
|
||||
@@ -90,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">
|
||||
{{
|
||||
@@ -261,5 +261,21 @@ export default class SystemPanelHost extends Mixins(BaseMixin) {
|
||||
|
||||
return null
|
||||
}
|
||||
|
||||
get cpuDesc() {
|
||||
let output = this.hostStats.cpuDesc
|
||||
|
||||
return output
|
||||
}
|
||||
|
||||
get cpuName() {
|
||||
let output = this.hostStats.cpuName
|
||||
|
||||
if (this.hostStats.bits) {
|
||||
output += `, ${this.hostStats.bits}`
|
||||
}
|
||||
|
||||
return output
|
||||
}
|
||||
}
|
||||
</script>
|
||||
@@ -2,7 +2,7 @@
|
||||
|
||||
<template>
|
||||
<panel
|
||||
v-if="klipperReadyForGui && (miscellaneous.length || filamentSensors.length)"
|
||||
v-if="showMiscellaneousPanel"
|
||||
:icon="mdiDipSwitch"
|
||||
:title="$t('Panels.MiscellaneousPanel.Headline')"
|
||||
:collapsible="true"
|
||||
@@ -20,8 +20,21 @@
|
||||
:max="object.max_power"
|
||||
:multi="parseInt(object.scale)"></miscellaneous-slider>
|
||||
</div>
|
||||
<div v-for="(sensor, index) of filamentSensors" :key="'sensor_' + index">
|
||||
<div v-for="(light, index) of lights" :key="'light_' + light.name">
|
||||
<v-divider v-if="index || miscellaneous.length"></v-divider>
|
||||
<miscellaneous-slider
|
||||
v-if="light.type === 'led' && light.colorOrder.length === 1"
|
||||
:name="light.name"
|
||||
type="led"
|
||||
:rpm="null"
|
||||
:controllable="true"
|
||||
:pwm="true"
|
||||
:target="light.singleChannelTarget"
|
||||
:color-order="light.colorOrder" />
|
||||
<miscellaneous-light v-else :object="light" :root="true" />
|
||||
</div>
|
||||
<div v-for="(sensor, index) of filamentSensors" :key="'sensor_' + index">
|
||||
<v-divider v-if="index || miscellaneous.length || lights.length"></v-divider>
|
||||
<filament-sensor
|
||||
:name="sensor.name"
|
||||
:enabled="sensor.enabled"
|
||||
@@ -34,21 +47,32 @@
|
||||
import { Component, Mixins } from 'vue-property-decorator'
|
||||
import BaseMixin from '@/components/mixins/base'
|
||||
import MiscellaneousSlider from '@/components/inputs/MiscellaneousSlider.vue'
|
||||
import MiscellaneousLight from '@/components/inputs/MiscellaneousLight.vue'
|
||||
import FilamentSensor from '@/components/inputs/FilamentSensor.vue'
|
||||
import Panel from '@/components/ui/Panel.vue'
|
||||
import { mdiDipSwitch } from '@mdi/js'
|
||||
@Component({
|
||||
components: { Panel, FilamentSensor, MiscellaneousSlider },
|
||||
components: { Panel, FilamentSensor, MiscellaneousSlider, MiscellaneousLight },
|
||||
})
|
||||
export default class MiscellaneousPanel extends Mixins(BaseMixin) {
|
||||
mdiDipSwitch = mdiDipSwitch
|
||||
|
||||
get filamentSensors() {
|
||||
return this.$store.getters['printer/getFilamentSensors'] ?? []
|
||||
}
|
||||
|
||||
get miscellaneous() {
|
||||
return this.$store.getters['printer/getMiscellaneous'] ?? []
|
||||
}
|
||||
|
||||
get filamentSensors() {
|
||||
return this.$store.getters['printer/getFilamentSensors'] ?? []
|
||||
get lights() {
|
||||
return this.$store.getters['printer/getLights'] ?? []
|
||||
}
|
||||
|
||||
get showMiscellaneousPanel() {
|
||||
return (
|
||||
this.klipperReadyForGui && (this.miscellaneous.length || this.filamentSensors.length || this.lights.length)
|
||||
)
|
||||
}
|
||||
}
|
||||
</script>
|
||||
@@ -81,16 +81,16 @@
|
||||
<strong>{{ $t('Panels.StatusPanel.Estimate') }}</strong>
|
||||
<br />
|
||||
<span class="text-no-wrap">
|
||||
{{ estimated_time_avg ? formatTime(estimated_time_avg) : '--' }}
|
||||
{{ estimated_time_avg ? formatDuration(estimated_time_avg) : '--' }}
|
||||
</span>
|
||||
</div>
|
||||
</template>
|
||||
<div class="text-right">
|
||||
{{ $t('Panels.StatusPanel.File') }}:
|
||||
{{ estimated_time_file ? formatTime(estimated_time_file) : '--' }}
|
||||
{{ estimated_time_file ? formatDuration(estimated_time_file) : '--' }}
|
||||
<br />
|
||||
{{ $t('Panels.StatusPanel.Filament') }}:
|
||||
{{ estimated_time_filament ? formatTime(estimated_time_filament) : '--' }}
|
||||
{{ estimated_time_filament ? formatDuration(estimated_time_filament) : '--' }}
|
||||
</div>
|
||||
</v-tooltip>
|
||||
</v-col>
|
||||
@@ -98,7 +98,7 @@
|
||||
<strong>{{ $t('Panels.StatusPanel.Slicer') }}</strong>
|
||||
<br />
|
||||
<span class="text-no-wrap">
|
||||
{{ estimated_time_slicer ? formatTime(estimated_time_slicer) : '--' }}
|
||||
{{ estimated_time_slicer ? formatDuration(estimated_time_slicer) : '--' }}
|
||||
</span>
|
||||
</v-col>
|
||||
<v-col class="col-3 pa-0">
|
||||
@@ -108,23 +108,23 @@
|
||||
<strong>{{ $t('Panels.StatusPanel.Total') }}</strong>
|
||||
<br />
|
||||
<span class="text-no-wrap">
|
||||
{{ print_time_total ? formatTime(print_time_total) : '--' }}
|
||||
{{ print_time_total ? formatDuration(print_time_total) : '--' }}
|
||||
</span>
|
||||
</div>
|
||||
</template>
|
||||
<div class="text-right">
|
||||
{{ $t('Panels.StatusPanel.Print') }}:
|
||||
{{ print_time ? formatTime(print_time) : '--' }}
|
||||
{{ print_time ? formatDuration(print_time) : '--' }}
|
||||
<br />
|
||||
{{ $t('Panels.StatusPanel.Difference') }}:
|
||||
{{ print_time && print_time_total ? formatTime(print_time_total - print_time) : '--' }}
|
||||
{{ print_time && print_time_total ? formatDuration(print_time_total - print_time) : '--' }}
|
||||
</div>
|
||||
</v-tooltip>
|
||||
</v-col>
|
||||
<v-col class="col-3 pa-0">
|
||||
<strong>{{ $t('Panels.StatusPanel.ETA') }}</strong>
|
||||
<br />
|
||||
<span class="text-no-wrap">{{ outputEta }}</span>
|
||||
<span class="text-no-wrap">{{ eta }}</span>
|
||||
</v-col>
|
||||
</v-row>
|
||||
</v-container>
|
||||
@@ -189,34 +189,11 @@ export default class StatusPanelPrintstatusPrinting extends Mixins(BaseMixin) {
|
||||
}
|
||||
|
||||
get max_layers() {
|
||||
if (
|
||||
'first_layer_height' in this.current_file &&
|
||||
'layer_height' in this.current_file &&
|
||||
'object_height' in this.current_file
|
||||
) {
|
||||
const max = Math.ceil(
|
||||
(this.current_file.object_height - this.current_file.first_layer_height) /
|
||||
this.current_file.layer_height +
|
||||
1
|
||||
)
|
||||
return max > 0 ? max : 0
|
||||
}
|
||||
|
||||
return 0
|
||||
return this.$store.getters['printer/getPrintMaxLayers'] ?? 0
|
||||
}
|
||||
|
||||
get current_layer() {
|
||||
if (this.print_time > 0 && 'first_layer_height' in this.current_file && 'layer_height' in this.current_file) {
|
||||
const gcodePositionZ = this.$store.state.printer.gcode_move?.gcode_position[2] ?? 0
|
||||
let current_layer = Math.ceil(
|
||||
(gcodePositionZ - this.current_file.first_layer_height) / this.current_file.layer_height + 1
|
||||
)
|
||||
current_layer = current_layer <= this.max_layers ? current_layer : this.max_layers
|
||||
|
||||
return current_layer > 0 ? current_layer : 0
|
||||
}
|
||||
|
||||
return 0
|
||||
return this.$store.getters['printer/getPrintCurrentLayer'] ?? 0
|
||||
}
|
||||
|
||||
get estimated_time_file() {
|
||||
@@ -236,11 +213,7 @@ export default class StatusPanelPrintstatusPrinting extends Mixins(BaseMixin) {
|
||||
}
|
||||
|
||||
get eta() {
|
||||
return this.$store.getters['printer/getEstimatedTimeETA']
|
||||
}
|
||||
|
||||
get outputEta() {
|
||||
return this.eta ? this.formatDateTime(this.eta) : '--'
|
||||
return this.$store.getters['printer/getEstimatedTimeETAFormat']
|
||||
}
|
||||
|
||||
get filament_diameter() {
|
||||
@@ -265,7 +238,7 @@ export default class StatusPanelPrintstatusPrinting extends Mixins(BaseMixin) {
|
||||
: this.filament_used.toFixed(2) + ' mm'
|
||||
}
|
||||
|
||||
formatTime(seconds: number) {
|
||||
formatDuration(seconds: number) {
|
||||
let h = Math.floor(seconds / 3600)
|
||||
seconds %= 3600
|
||||
let m = ('0' + Math.floor(seconds / 60)).slice(-2)
|
||||
@@ -273,14 +246,5 @@ export default class StatusPanelPrintstatusPrinting extends Mixins(BaseMixin) {
|
||||
|
||||
return h + ':' + m + ':' + s
|
||||
}
|
||||
|
||||
formatDateTime(msec: number) {
|
||||
const date = new Date(msec)
|
||||
const h = date.getHours() >= 10 ? date.getHours() : '0' + date.getHours()
|
||||
const m = date.getMinutes() >= 10 ? date.getMinutes() : '0' + date.getMinutes()
|
||||
|
||||
const diff = msec - new Date().getTime()
|
||||
return h + ':' + m + (diff > 60 * 60 * 24 * 1000 ? '+' + Math.round(diff / (60 * 60 * 24 * 1000)) : '')
|
||||
}
|
||||
}
|
||||
</script>
|
||||
@@ -1,5 +1,3 @@
|
||||
<style lang="scss" scoped></style>
|
||||
|
||||
<template>
|
||||
<div>
|
||||
<min-settings-panel></min-settings-panel>
|
||||
@@ -65,7 +63,7 @@
|
||||
<v-tab href="#jobqueue">{{ $t('Panels.StatusPanel.Jobqueue', { count: jobsCount }) }}</v-tab>
|
||||
</v-tabs>
|
||||
<v-divider class="my-0"></v-divider>
|
||||
<v-tabs-items v-model="activeTab">
|
||||
<v-tabs-items v-model="activeTab" class="_border-radius">
|
||||
<v-tab-item v-if="current_filename" value="status">
|
||||
<status-panel-printstatus></status-panel-printstatus>
|
||||
</v-tab-item>
|
||||
@@ -284,3 +282,10 @@ export default class StatusPanel extends Mixins(BaseMixin) {
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
||||
<style lang="scss" scoped>
|
||||
._border-radius {
|
||||
border-bottom-left-radius: inherit;
|
||||
border-bottom-right-radius: inherit;
|
||||
}
|
||||
</style>
|
||||
@@ -81,7 +81,7 @@
|
||||
<v-card-text class="pa-0">
|
||||
<responsive
|
||||
:breakpoints="{
|
||||
mobile: (el) => el.width <= 390,
|
||||
mobile: (el) => el.width <= 395,
|
||||
}">
|
||||
<template #default="{ el }">
|
||||
<v-simple-table class="temperature-panel-table">
|
||||
@@ -120,9 +120,9 @@
|
||||
<td v-if="!el.is.mobile" class="state">
|
||||
<v-tooltip v-if="object.state !== null" top>
|
||||
<template #activator="{ on, attrs }">
|
||||
<small v-bind="attrs" v-on="on">
|
||||
<div v-bind="attrs" v-on="on">
|
||||
{{ object.state }}
|
||||
</small>
|
||||
</div>
|
||||
</template>
|
||||
<span>{{ $t('Panels.TemperaturePanel.Avg') }}: {{ object.avgState }}</span>
|
||||
</v-tooltip>
|
||||
@@ -149,7 +149,7 @@
|
||||
{{ object.measured_min_temp }}°C
|
||||
</span>
|
||||
</v-tooltip>
|
||||
<div v-for="(values, key) of object.additionSensors" :key="key">
|
||||
<div v-for="(values, key) of object.additionalSensors" :key="key">
|
||||
<span v-if="values.bool" class="d-block">
|
||||
<small>{{ values.value }} {{ values.unit }}</small>
|
||||
</span>
|
||||
@@ -211,14 +211,14 @@
|
||||
@change="setVisible(dataset)"></v-checkbox>
|
||||
</v-col>
|
||||
</v-row>
|
||||
<v-row v-for="key in Object.keys(editHeater.additionSensors)" :key="key">
|
||||
<v-row v-for="additionalSensor in editHeater.additionalSensors" :key="additionalSensor.name">
|
||||
<v-col class="col-12 py-1">
|
||||
<v-checkbox
|
||||
v-model="editHeater.additionSensors[key]['bool']"
|
||||
:label="$t('Panels.TemperaturePanel.ShowNameInList', { name: key })"
|
||||
v-model="additionalSensor.bool"
|
||||
:label="$t('Panels.TemperaturePanel.ShowNameInList', { name: additionalSensor.name })"
|
||||
hide-details
|
||||
class="mt-0"
|
||||
@change="setVisibleAdditionalSensor(key)"></v-checkbox>
|
||||
@change="setVisibleAdditionalSensor(additionalSensor)"></v-checkbox>
|
||||
</v-col>
|
||||
</v-row>
|
||||
<v-row>
|
||||
@@ -243,7 +243,7 @@ import { Mixins } from 'vue-property-decorator'
|
||||
import { capitalize, convertName } from '@/plugins/helpers'
|
||||
import { Debounce } from 'vue-debounce-decorator'
|
||||
import { GuiPresetsStatePreset } from '@/store/gui/presets/types'
|
||||
import { PrinterStateTemperatureObject } from '@/store/printer/types'
|
||||
import { PrinterStateAdditionalSensor, PrinterStateTemperatureObject } from '@/store/printer/types'
|
||||
import BaseMixin from '@/components/mixins/base'
|
||||
import ControlMixin from '@/components/mixins/control'
|
||||
import TempChart from '@/components/charts/TempChart.vue'
|
||||
@@ -274,7 +274,7 @@ export default class TemperaturePanel extends Mixins(BaseMixin, ControlMixin) {
|
||||
boolTarget: false,
|
||||
boolPower: false,
|
||||
boolSpeed: false,
|
||||
additionSensors: {},
|
||||
additionalSensors: {},
|
||||
color: '',
|
||||
}
|
||||
|
||||
@@ -347,7 +347,7 @@ export default class TemperaturePanel extends Mixins(BaseMixin, ControlMixin) {
|
||||
this.editHeater.boolTarget = this.$store.getters['gui/getDatasetValue']({ name: object.name, type: 'target' })
|
||||
this.editHeater.boolPower = this.$store.getters['gui/getDatasetValue']({ name: object.name, type: 'power' })
|
||||
this.editHeater.boolSpeed = this.$store.getters['gui/getDatasetValue']({ name: object.name, type: 'speed' })
|
||||
this.editHeater.additionSensors = object.additionSensors
|
||||
this.editHeater.additionalSensors = object.additionalSensors
|
||||
|
||||
this.editHeater.bool = true
|
||||
}
|
||||
@@ -360,9 +360,9 @@ export default class TemperaturePanel extends Mixins(BaseMixin, ControlMixin) {
|
||||
this.$store.dispatch('gui/saveSetting', { name, value })
|
||||
}
|
||||
|
||||
setVisibleAdditionalSensor(sensor: string): void {
|
||||
const name = 'view.tempchart.datasetSettings.' + this.editHeater.name + '.additionalSensors.' + sensor
|
||||
this.$store.dispatch('gui/saveSetting', { name, value: this.editHeater.additionSensors[sensor].bool })
|
||||
setVisibleAdditionalSensor(sensor: PrinterStateAdditionalSensor): void {
|
||||
const name = 'view.tempchart.datasetSettings.' + this.editHeater.name + '.additionalSensors.' + sensor.name
|
||||
this.$store.dispatch('gui/saveSetting', { name, value: sensor.bool })
|
||||
}
|
||||
|
||||
@Debounce(500)
|
||||
|
||||
@@ -181,7 +181,7 @@
|
||||
{{ item.isDirectory ? '--' : formatFilesize(item.size) }}
|
||||
</td>
|
||||
<td v-if="headers.find((header) => header.value === 'modified').visible" class="text-right">
|
||||
{{ formatDate(item.modified) }}
|
||||
{{ formatDateTime(item.modified) }}
|
||||
</td>
|
||||
</tr>
|
||||
</template>
|
||||
@@ -237,12 +237,16 @@
|
||||
v-model="dialogRenameFile.newName"
|
||||
:label="$t('Timelapse.Name')"
|
||||
required
|
||||
:rules="nameInputRules"
|
||||
@update:error="isInvalidName = !isInvalidName"
|
||||
@keypress.enter="renameFileAction"></v-text-field>
|
||||
</v-card-text>
|
||||
<v-card-actions>
|
||||
<v-spacer></v-spacer>
|
||||
<v-btn color="" text @click="dialogRenameFile.show = false">{{ $t('Timelapse.Cancel') }}</v-btn>
|
||||
<v-btn color="primary" text @click="renameFileAction">{{ $t('Timelapse.Rename') }}</v-btn>
|
||||
<v-btn :disabled="isInvalidName" color="primary" text @click="renameFileAction">
|
||||
{{ $t('Timelapse.Rename') }}
|
||||
</v-btn>
|
||||
</v-card-actions>
|
||||
</panel>
|
||||
</v-dialog>
|
||||
@@ -261,8 +265,9 @@
|
||||
ref="inputFieldCreateDirectory"
|
||||
v-model="dialogCreateDirectory.name"
|
||||
:label="$t('Timelapse.Name')"
|
||||
:rules="input_rules"
|
||||
required
|
||||
:rules="nameInputRules"
|
||||
@update:error="isInvalidName = !isInvalidName"
|
||||
@keypress.enter="createDirectoryAction"></v-text-field>
|
||||
</v-card-text>
|
||||
<v-card-actions>
|
||||
@@ -270,7 +275,9 @@
|
||||
<v-btn color="" text @click="dialogCreateDirectory.show = false">
|
||||
{{ $t('Timelapse.Cancel') }}
|
||||
</v-btn>
|
||||
<v-btn color="primary" text @click="createDirectoryAction">{{ $t('Timelapse.Create') }}</v-btn>
|
||||
<v-btn :disabled="isInvalidName" color="primary" text @click="createDirectoryAction">
|
||||
{{ $t('Timelapse.Create') }}
|
||||
</v-btn>
|
||||
</v-card-actions>
|
||||
</panel>
|
||||
</v-dialog>
|
||||
@@ -290,6 +297,8 @@
|
||||
v-model="dialogRenameDirectory.newName"
|
||||
:label="$t('Timelapse.Name')"
|
||||
required
|
||||
:rules="nameInputRules"
|
||||
@update:error="isInvalidName = !isInvalidName"
|
||||
@keyup.enter="renameDirectoryAction"></v-text-field>
|
||||
</v-card-text>
|
||||
<v-card-actions>
|
||||
@@ -297,7 +306,9 @@
|
||||
<v-btn color="" text @click="dialogRenameDirectory.show = false">
|
||||
{{ $t('Timelapse.Cancel') }}
|
||||
</v-btn>
|
||||
<v-btn color="primary" text @click="renameDirectoryAction">{{ $t('Timelapse.Rename') }}</v-btn>
|
||||
<v-btn :disabled="isInvalidName" color="primary" text @click="renameDirectoryAction">
|
||||
{{ $t('Timelapse.Rename') }}
|
||||
</v-btn>
|
||||
</v-card-actions>
|
||||
</panel>
|
||||
</v-dialog>
|
||||
@@ -385,7 +396,7 @@
|
||||
<script lang="ts">
|
||||
import { Component, Mixins } from 'vue-property-decorator'
|
||||
import BaseMixin from '@/components/mixins/base'
|
||||
import { formatFilesize, formatDate, sortFiles } from '@/plugins/helpers'
|
||||
import { formatFilesize, sortFiles } from '@/plugins/helpers'
|
||||
import { FileStateFile, FileStateGcodefile } from '@/store/files/types'
|
||||
import Panel from '@/components/ui/Panel.vue'
|
||||
import {
|
||||
@@ -414,7 +425,6 @@ interface dialogRenameObject {
|
||||
components: { Panel },
|
||||
})
|
||||
export default class TimelapseFilesPanel extends Mixins(BaseMixin) {
|
||||
formatDate = formatDate
|
||||
formatFilesize = formatFilesize
|
||||
sortFiles = sortFiles
|
||||
|
||||
@@ -496,7 +506,15 @@ export default class TimelapseFilesPanel extends Mixins(BaseMixin) {
|
||||
|
||||
private deleteSelectedDialog = false
|
||||
|
||||
private input_rules = [(value: string) => value.indexOf(' ') === -1 || 'Name contains spaces!']
|
||||
private isInvalidName = true
|
||||
private nameInputRules = [
|
||||
(value: string) => !!value || this.$t('Files.InvalidNameEmpty'),
|
||||
(value: string) => !this.existsFilename(value) || this.$t('Files.InvalidNameAlreadyExists'),
|
||||
]
|
||||
|
||||
existsFilename(name: string) {
|
||||
return this.files.findIndex((file) => file.filename === name) >= 0
|
||||
}
|
||||
|
||||
get headers() {
|
||||
return [
|
||||
@@ -593,14 +611,15 @@ export default class TimelapseFilesPanel extends Mixins(BaseMixin) {
|
||||
}
|
||||
|
||||
createDirectoryAction() {
|
||||
if (this.dialogCreateDirectory.name.length && this.dialogCreateDirectory.name.indexOf(' ') === -1) {
|
||||
this.dialogCreateDirectory.show = false
|
||||
this.$socket.emit(
|
||||
'server.files.post_directory',
|
||||
{ path: this.currentPath + '/' + this.dialogCreateDirectory.name },
|
||||
{ action: 'files/getCreateDir' }
|
||||
)
|
||||
}
|
||||
this.dialogCreateDirectory.show = false
|
||||
|
||||
this.$socket.emit(
|
||||
'server.files.post_directory',
|
||||
{
|
||||
path: this.currentPath + '/' + this.dialogCreateDirectory.name,
|
||||
},
|
||||
{ action: 'files/getCreateDir' }
|
||||
)
|
||||
}
|
||||
|
||||
refreshFileList() {
|
||||
|
||||
@@ -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>
|
||||
@@ -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>
|
||||
@@ -16,6 +16,26 @@
|
||||
attach></v-select>
|
||||
</settings-row>
|
||||
<v-divider class="my-2"></v-divider>
|
||||
<settings-row :title="$t('Settings.GeneralTab.DateFormat').toString()">
|
||||
<v-select
|
||||
v-model="dateFormat"
|
||||
:items="dateFormatItems"
|
||||
hide-details
|
||||
outlined
|
||||
dense
|
||||
attach></v-select>
|
||||
</settings-row>
|
||||
<v-divider class="my-2"></v-divider>
|
||||
<settings-row :title="$t('Settings.GeneralTab.TimeFormat').toString()">
|
||||
<v-select
|
||||
v-model="timeFormat"
|
||||
:items="timeFormatItems"
|
||||
hide-details
|
||||
outlined
|
||||
dense
|
||||
attach></v-select>
|
||||
</settings-row>
|
||||
<v-divider class="my-2"></v-divider>
|
||||
<settings-row
|
||||
:title="$t('Settings.GeneralTab.CalcPrintProgress').toString()"
|
||||
:sub-title="$t('Settings.GeneralTab.CalcPrintProgressDescription').toString()">
|
||||
@@ -349,8 +369,8 @@ export default class SettingsGeneralTab extends Mixins(BaseMixin) {
|
||||
}
|
||||
|
||||
get availableLanguages() {
|
||||
const locales = import.meta.globEager('../../locales/*.json')
|
||||
const languages: any = []
|
||||
const locales = import.meta.glob('../../locales/*.json', { eager: true }) as { [key: string]: any }
|
||||
const languages: { text: string; value: string }[] = []
|
||||
|
||||
Object.keys(locales).map((file: string) => {
|
||||
const langKey = file.slice(file.lastIndexOf('.') - 2, file.lastIndexOf('.'))
|
||||
@@ -364,6 +384,62 @@ export default class SettingsGeneralTab extends Mixins(BaseMixin) {
|
||||
return languages
|
||||
}
|
||||
|
||||
get dateFormat() {
|
||||
return this.$store.state.gui.general.dateFormat
|
||||
}
|
||||
|
||||
set dateFormat(newVal) {
|
||||
this.$store.dispatch('gui/saveSetting', { name: 'general.dateFormat', value: newVal })
|
||||
}
|
||||
|
||||
get dateFormatItems() {
|
||||
const date = new Date()
|
||||
const userLocale =
|
||||
navigator.languages && navigator.languages.length ? navigator.languages[0] : navigator.language
|
||||
|
||||
return [
|
||||
{ value: null, text: `Browser (${date.toLocaleDateString(userLocale, { dateStyle: 'medium' })})` },
|
||||
{
|
||||
value: '2-digits',
|
||||
text: date.toLocaleDateString(userLocale, { day: '2-digit', month: '2-digit', year: 'numeric' }),
|
||||
},
|
||||
{
|
||||
value: 'short',
|
||||
text: date.toLocaleDateString(userLocale, { day: '2-digit', month: 'short', year: 'numeric' }),
|
||||
},
|
||||
]
|
||||
}
|
||||
|
||||
get timeFormat() {
|
||||
return this.$store.state.gui.general.timeFormat
|
||||
}
|
||||
|
||||
set timeFormat(newVal) {
|
||||
this.$store.dispatch('gui/saveSetting', { name: 'general.timeFormat', value: newVal })
|
||||
}
|
||||
|
||||
get timeFormatItems() {
|
||||
const date = new Date()
|
||||
const userLocale =
|
||||
navigator.languages && navigator.languages.length ? navigator.languages[0] : navigator.language
|
||||
|
||||
return [
|
||||
{ value: null, text: `Browser (${date.toLocaleTimeString(userLocale, { timeStyle: 'short' })})` },
|
||||
{
|
||||
value: '24hours',
|
||||
text: this.$t('Settings.GeneralTab.24hours', {
|
||||
time: date.toLocaleTimeString(userLocale, { hour: '2-digit', minute: '2-digit', hourCycle: 'h23' }),
|
||||
}).toString(),
|
||||
},
|
||||
{
|
||||
value: '12hours',
|
||||
text: this.$t('Settings.GeneralTab.12hours', {
|
||||
time: date.toLocaleTimeString(userLocale, { hour: '2-digit', minute: '2-digit', hourCycle: 'h12' }),
|
||||
}).toString(),
|
||||
},
|
||||
]
|
||||
}
|
||||
|
||||
get calcPrintProgressItems() {
|
||||
return [
|
||||
{ value: 'file-relative', text: this.$t('Settings.GeneralTab.CalcPrintProgressItems.FileRelative') },
|
||||
|
||||
@@ -141,120 +141,114 @@
|
||||
ghost-class="ghost"
|
||||
group="macros"
|
||||
@change="updateMacroOrder">
|
||||
<template v-for="(macro, index) in editGroupMacros">
|
||||
<div :key="macro.name">
|
||||
<v-row>
|
||||
<v-col class="col-auto pr-0 d-flex">
|
||||
<v-icon class="handle">{{ mdiDragVertical }}</v-icon>
|
||||
</v-col>
|
||||
<v-col>
|
||||
<settings-row
|
||||
:key="'groupMacro_macro_' + index"
|
||||
:title="macro.name"
|
||||
:sub-title="getMacroDescription(macro.name)"
|
||||
:dynamic-slot-width="true">
|
||||
<template v-if="existsMacro(macro.name)">
|
||||
<v-tooltip top>
|
||||
<template #activator="{ on, attrs }">
|
||||
<v-btn
|
||||
small
|
||||
outlined
|
||||
v-bind="attrs"
|
||||
class="ml-3 minwidth-0 px-2"
|
||||
:color="macro.color"
|
||||
v-on="on"
|
||||
@click="changeColorMacroFromGroup(macro)">
|
||||
<v-icon small left>{{ mdiPalette }}</v-icon>
|
||||
{{ macro.color }}
|
||||
</v-btn>
|
||||
</template>
|
||||
<span>{{ $t('Settings.MacrosTab.ChangeMacroColor') }}</span>
|
||||
</v-tooltip>
|
||||
<v-tooltip top>
|
||||
<template #activator="{ on, attrs }">
|
||||
<v-btn
|
||||
small
|
||||
outlined
|
||||
v-bind="attrs"
|
||||
class="ml-3 minwidth-0 px-2"
|
||||
:color="macro.showInStandby ? '' : 'secondary'"
|
||||
v-on="on"
|
||||
@click="
|
||||
updateMacroFromGroup(
|
||||
macro,
|
||||
'showInStandby',
|
||||
!macro.showInStandby
|
||||
)
|
||||
">
|
||||
<v-icon small>{{ mdiSleep }}</v-icon>
|
||||
</v-btn>
|
||||
</template>
|
||||
<span>{{ $t('Settings.MacrosTab.ShowInStateStandby') }}</span>
|
||||
</v-tooltip>
|
||||
<v-tooltip top>
|
||||
<template #activator="{ on, attrs }">
|
||||
<v-btn
|
||||
small
|
||||
outlined
|
||||
v-bind="attrs"
|
||||
class="ml-3 minwidth-0 px-2"
|
||||
:color="macro.showInPause ? '' : 'secondary'"
|
||||
v-on="on"
|
||||
@click="
|
||||
updateMacroFromGroup(
|
||||
macro,
|
||||
'showInPause',
|
||||
!macro.showInPause
|
||||
)
|
||||
">
|
||||
<v-icon small>{{ mdiPause }}</v-icon>
|
||||
</v-btn>
|
||||
</template>
|
||||
<span>{{ $t('Settings.MacrosTab.ShowInStatePaused') }}</span>
|
||||
</v-tooltip>
|
||||
<v-tooltip top>
|
||||
<template #activator="{ on, attrs }">
|
||||
<v-btn
|
||||
small
|
||||
outlined
|
||||
v-bind="attrs"
|
||||
class="ml-3 minwidth-0 px-2"
|
||||
:color="macro.showInPrinting ? '' : 'secondary'"
|
||||
v-on="on"
|
||||
@click="
|
||||
updateMacroFromGroup(
|
||||
macro,
|
||||
'showInPrinting',
|
||||
!macro.showInPrinting
|
||||
)
|
||||
">
|
||||
<v-icon small>{{ mdiPrinter3dNozzle }}</v-icon>
|
||||
</v-btn>
|
||||
</template>
|
||||
<span>{{ $t('Settings.MacrosTab.ShowInStatePrinting') }}</span>
|
||||
</v-tooltip>
|
||||
<v-row
|
||||
v-for="(macro, index) in editGroupMacros"
|
||||
:key="macro.name"
|
||||
class="dragable-item my-2 mx-0">
|
||||
<v-col class="col-auto pr-0 d-flex py-2">
|
||||
<v-icon class="handle">{{ mdiDragVertical }}</v-icon>
|
||||
</v-col>
|
||||
<v-col class="py-2">
|
||||
<settings-row
|
||||
:key="'groupMacro_macro_' + index"
|
||||
:title="macro.name"
|
||||
:sub-title="getMacroDescription(macro.name)"
|
||||
:dynamic-slot-width="true">
|
||||
<template v-if="existsMacro(macro.name)">
|
||||
<v-tooltip top>
|
||||
<template #activator="{ on, attrs }">
|
||||
<v-btn
|
||||
small
|
||||
outlined
|
||||
v-bind="attrs"
|
||||
class="ml-3 minwidth-0 px-2"
|
||||
:color="macro.color"
|
||||
v-on="on"
|
||||
@click="changeColorMacroFromGroup(macro)">
|
||||
<v-icon small left>{{ mdiPalette }}</v-icon>
|
||||
{{ macro.color }}
|
||||
</v-btn>
|
||||
</template>
|
||||
<v-tooltip top>
|
||||
<template #activator="{ on, attrs }">
|
||||
<v-btn
|
||||
small
|
||||
outlined
|
||||
v-bind="attrs"
|
||||
class="ml-3 minwidth-0 px-2"
|
||||
color="error"
|
||||
v-on="on"
|
||||
@click="removeMacroFromGroup(macro)">
|
||||
<v-icon small>{{ mdiDelete }}</v-icon>
|
||||
</v-btn>
|
||||
</template>
|
||||
<span>{{ $t('Settings.MacrosTab.DeleteMacroFromGroup') }}</span>
|
||||
</v-tooltip>
|
||||
</settings-row>
|
||||
</v-col>
|
||||
</v-row>
|
||||
<v-divider class="my-2"></v-divider>
|
||||
</div>
|
||||
</template>
|
||||
<span>{{ $t('Settings.MacrosTab.ChangeMacroColor') }}</span>
|
||||
</v-tooltip>
|
||||
<v-tooltip top>
|
||||
<template #activator="{ on, attrs }">
|
||||
<v-btn
|
||||
small
|
||||
outlined
|
||||
v-bind="attrs"
|
||||
class="ml-3 minwidth-0 px-2"
|
||||
:color="macro.showInStandby ? '' : 'secondary'"
|
||||
v-on="on"
|
||||
@click="
|
||||
updateMacroFromGroup(
|
||||
macro,
|
||||
'showInStandby',
|
||||
!macro.showInStandby
|
||||
)
|
||||
">
|
||||
<v-icon small>{{ mdiSleep }}</v-icon>
|
||||
</v-btn>
|
||||
</template>
|
||||
<span>{{ $t('Settings.MacrosTab.ShowInStateStandby') }}</span>
|
||||
</v-tooltip>
|
||||
<v-tooltip top>
|
||||
<template #activator="{ on, attrs }">
|
||||
<v-btn
|
||||
small
|
||||
outlined
|
||||
v-bind="attrs"
|
||||
class="ml-3 minwidth-0 px-2"
|
||||
:color="macro.showInPause ? '' : 'secondary'"
|
||||
v-on="on"
|
||||
@click="
|
||||
updateMacroFromGroup(macro, 'showInPause', !macro.showInPause)
|
||||
">
|
||||
<v-icon small>{{ mdiPause }}</v-icon>
|
||||
</v-btn>
|
||||
</template>
|
||||
<span>{{ $t('Settings.MacrosTab.ShowInStatePaused') }}</span>
|
||||
</v-tooltip>
|
||||
<v-tooltip top>
|
||||
<template #activator="{ on, attrs }">
|
||||
<v-btn
|
||||
small
|
||||
outlined
|
||||
v-bind="attrs"
|
||||
class="ml-3 minwidth-0 px-2"
|
||||
:color="macro.showInPrinting ? '' : 'secondary'"
|
||||
v-on="on"
|
||||
@click="
|
||||
updateMacroFromGroup(
|
||||
macro,
|
||||
'showInPrinting',
|
||||
!macro.showInPrinting
|
||||
)
|
||||
">
|
||||
<v-icon small>{{ mdiPrinter3dNozzle }}</v-icon>
|
||||
</v-btn>
|
||||
</template>
|
||||
<span>{{ $t('Settings.MacrosTab.ShowInStatePrinting') }}</span>
|
||||
</v-tooltip>
|
||||
</template>
|
||||
<v-tooltip top>
|
||||
<template #activator="{ on, attrs }">
|
||||
<v-btn
|
||||
small
|
||||
outlined
|
||||
v-bind="attrs"
|
||||
class="ml-3 minwidth-0 px-2"
|
||||
color="error"
|
||||
v-on="on"
|
||||
@click="removeMacroFromGroup(macro)">
|
||||
<v-icon small>{{ mdiDelete }}</v-icon>
|
||||
</v-btn>
|
||||
</template>
|
||||
<span>{{ $t('Settings.MacrosTab.DeleteMacroFromGroup') }}</span>
|
||||
</v-tooltip>
|
||||
</settings-row>
|
||||
</v-col>
|
||||
</v-row>
|
||||
</draggable>
|
||||
</template>
|
||||
<template v-else>
|
||||
@@ -553,3 +547,9 @@ export default class SettingsMacrosTabExpert extends Mixins(BaseMixin) {
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
||||
<style scoped>
|
||||
.dragable-item {
|
||||
background-color: #282828;
|
||||
}
|
||||
</style>
|
||||
@@ -0,0 +1,81 @@
|
||||
<template>
|
||||
<div>
|
||||
<settings-miscellaneous-tab-light-groups
|
||||
v-if="editLightGroupObject"
|
||||
:light="editLightGroupObject"
|
||||
@close="editLightGroupObject = null" />
|
||||
<settings-miscellaneous-tab-light-presets
|
||||
v-else-if="editLightPresetObject"
|
||||
:light="editLightPresetObject"
|
||||
@close="editLightPresetObject = null" />
|
||||
<v-card-text v-else>
|
||||
<h3 class="text-h5 mb-3">{{ $t('Settings.MiscellaneousTab.Miscellaneous') }}</h3>
|
||||
<template v-if="filteredLights.length">
|
||||
<div v-for="(light, index) in filteredLights" :key="index">
|
||||
<v-divider v-if="index" class="my-2"></v-divider>
|
||||
<settings-row :title="convertName(light.name)" :dynamic-slot-width="true">
|
||||
<v-btn
|
||||
v-if="light.chainCount > 1"
|
||||
small
|
||||
outlined
|
||||
class="ml-3"
|
||||
@click="editLightGroupObject = light">
|
||||
<v-icon left small>{{ mdiPencil }}</v-icon>
|
||||
{{ $t('Settings.MiscellaneousTab.Groups') }}
|
||||
</v-btn>
|
||||
<v-btn small outlined class="ml-3" @click="editLightPresetObject = light">
|
||||
<v-icon left small>{{ mdiPalette }}</v-icon>
|
||||
{{ $t('Settings.MiscellaneousTab.Presets') }}
|
||||
</v-btn>
|
||||
</settings-row>
|
||||
</div>
|
||||
</template>
|
||||
<template v-else>
|
||||
<v-row>
|
||||
<v-col>
|
||||
<p class="mb-0 text-center font-italic">{{ $t('Settings.MiscellaneousTab.NoDevicesFound') }}</p>
|
||||
</v-col>
|
||||
</v-row>
|
||||
</template>
|
||||
</v-card-text>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<script lang="ts">
|
||||
import { Component, Mixins } from 'vue-property-decorator'
|
||||
import BaseMixin from '../mixins/base'
|
||||
import SettingsRow from '@/components/settings/SettingsRow.vue'
|
||||
import { mdiDelete, mdiPalette, mdiPencil } from '@mdi/js'
|
||||
import { convertName } from '@/plugins/helpers'
|
||||
import SettingsMiscellaneousTabLightGroups from '@/components/settings/SettingsMiscellaneousTabLightGroups.vue'
|
||||
import SettingsMiscellaneousTabLightPresets from '@/components/settings/SettingsMiscellaneousTabLightPresets.vue'
|
||||
import { PrinterStateLight } from '@/store/printer/types'
|
||||
|
||||
@Component({
|
||||
components: {
|
||||
SettingsRow,
|
||||
SettingsMiscellaneousTabLightGroups,
|
||||
SettingsMiscellaneousTabLightPresets,
|
||||
},
|
||||
})
|
||||
export default class SettingsMiscellaneousTab extends Mixins(BaseMixin) {
|
||||
mdiDelete = mdiDelete
|
||||
mdiPalette = mdiPalette
|
||||
mdiPencil = mdiPencil
|
||||
|
||||
convertName = convertName
|
||||
|
||||
editLightGroupObject: PrinterStateLight | null = null
|
||||
editLightPresetObject: PrinterStateLight | null = null
|
||||
|
||||
get lights() {
|
||||
return this.$store.getters['printer/getLights'] ?? []
|
||||
}
|
||||
|
||||
get filteredLights() {
|
||||
return this.lights.filter((light: PrinterStateLight) => light.colorOrder.length > 1)
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
||||
<style lang="scss" scoped></style>
|
||||
@@ -0,0 +1,236 @@
|
||||
<template>
|
||||
<div>
|
||||
<template v-if="boolForm">
|
||||
<v-card-text>
|
||||
<h3 class="text-h5 mb-3">{{ $t('Settings.MiscellaneousTab.CreateGroup') }}</h3>
|
||||
<settings-row :title="$t('Settings.MiscellaneousTab.Name').toString()">
|
||||
<v-text-field
|
||||
v-model="form.name"
|
||||
hide-details="auto"
|
||||
:rules="[rules.required, rules.groupUnique]"
|
||||
dense
|
||||
outlined></v-text-field>
|
||||
</settings-row>
|
||||
<v-divider class="my-2"></v-divider>
|
||||
<settings-row
|
||||
:title="$t('Settings.MiscellaneousTab.Start').toString()"
|
||||
:sub-title="$t('Settings.MiscellaneousTab.StartDescription').toString()">
|
||||
<v-text-field
|
||||
v-model="form.start"
|
||||
hide-details="auto"
|
||||
type="number"
|
||||
step="1"
|
||||
:rules="[rules.minStart, rules.max]"
|
||||
dense
|
||||
outlined></v-text-field>
|
||||
</settings-row>
|
||||
<v-divider class="my-2"></v-divider>
|
||||
<settings-row
|
||||
:title="$t('Settings.MiscellaneousTab.End').toString()"
|
||||
:sub-title="$t('Settings.MiscellaneousTab.EndDescription').toString()">
|
||||
<v-text-field
|
||||
v-model="form.end"
|
||||
hide-details="auto"
|
||||
type="number"
|
||||
step="1"
|
||||
:rules="[rules.minEnd, rules.max]"
|
||||
dense
|
||||
outlined></v-text-field>
|
||||
</settings-row>
|
||||
</v-card-text>
|
||||
<v-card-actions class="d-flex justify-end">
|
||||
<v-btn text @click="closeForm">{{ $t('Settings.Cancel') }}</v-btn>
|
||||
<v-btn v-if="form.id !== null" text color="primary" @click="updateGroup">
|
||||
{{ $t('Settings.Update') }}
|
||||
</v-btn>
|
||||
<v-btn v-else text color="primary" @click="storeGroup">{{ $t('Settings.Store') }}</v-btn>
|
||||
</v-card-actions>
|
||||
</template>
|
||||
<template v-else>
|
||||
<v-card-text>
|
||||
<h3 class="text-h5 mb-3">{{ $t('Settings.MiscellaneousTab.LightGroups', { name: light.name }) }}</h3>
|
||||
<template v-if="light">
|
||||
<template v-if="groups.length">
|
||||
<div v-for="(group, index) in groups" :key="group.id">
|
||||
<v-divider v-if="index" class="my-2"></v-divider>
|
||||
<settings-row
|
||||
:title="group.name"
|
||||
:sub-title="
|
||||
$t('Settings.MiscellaneousTab.GroupSubTitle', {
|
||||
start: group.start,
|
||||
end: group.end,
|
||||
}).toString()
|
||||
"
|
||||
:dynamic-slot-width="true">
|
||||
<v-btn small outlined class="ml-3" @click="editGroup(group)">
|
||||
<v-icon left small>{{ mdiPencil }}</v-icon>
|
||||
{{ $t('Settings.Edit') }}
|
||||
</v-btn>
|
||||
<v-btn
|
||||
small
|
||||
outlined
|
||||
class="ml-3 minwidth-0 px-2"
|
||||
color="error"
|
||||
@click="deleteGroup(group.id)">
|
||||
<v-icon small>{{ mdiDelete }}</v-icon>
|
||||
</v-btn>
|
||||
</settings-row>
|
||||
</div>
|
||||
</template>
|
||||
<template v-else>
|
||||
<v-row>
|
||||
<v-col>
|
||||
<p class="mb-0 text-center font-italic">
|
||||
{{ $t('Settings.MiscellaneousTab.NoGroupFound') }}
|
||||
</p>
|
||||
</v-col>
|
||||
</v-row>
|
||||
</template>
|
||||
</template>
|
||||
<template v-else>
|
||||
<v-row>
|
||||
<v-col>
|
||||
<p class="mb-0 text-center font-italic">
|
||||
{{ $t('Settings.MiscellaneousTab.UnableToLoadLight') }}
|
||||
</p>
|
||||
</v-col>
|
||||
</v-row>
|
||||
</template>
|
||||
</v-card-text>
|
||||
<v-card-actions class="d-flex justify-end">
|
||||
<v-btn text @click="$emit('close')">{{ $t('Settings.Close') }}</v-btn>
|
||||
<v-btn text color="primary" @click="createGroup">
|
||||
{{ $t('Settings.MiscellaneousTab.AddGroup') }}
|
||||
</v-btn>
|
||||
</v-card-actions>
|
||||
</template>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<script lang="ts">
|
||||
import { Component, Mixins, Prop } from 'vue-property-decorator'
|
||||
import BaseMixin from '../mixins/base'
|
||||
import SettingsRow from '@/components/settings/SettingsRow.vue'
|
||||
import { mdiDelete, mdiPalette, mdiPencil } from '@mdi/js'
|
||||
import { caseInsensitiveSort, convertName } from '@/plugins/helpers'
|
||||
import { PrinterStateLight } from '@/store/printer/types'
|
||||
import { GuiMacrosStateMacrogroup } from '@/store/gui/macros/types'
|
||||
import { GuiMiscellaneousStateEntry, GuiMiscellaneousStateEntryLightgroup } from '@/store/gui/miscellaneous/types'
|
||||
|
||||
@Component({
|
||||
components: {
|
||||
SettingsRow,
|
||||
},
|
||||
})
|
||||
export default class SettingsMiscellaneousTabLightGroups extends Mixins(BaseMixin) {
|
||||
mdiDelete = mdiDelete
|
||||
mdiPalette = mdiPalette
|
||||
mdiPencil = mdiPencil
|
||||
|
||||
convertName = convertName
|
||||
|
||||
private boolForm = false
|
||||
|
||||
private form: {
|
||||
id: string | null
|
||||
name: string
|
||||
start: number
|
||||
end: number
|
||||
} = {
|
||||
id: null,
|
||||
name: '',
|
||||
start: 1,
|
||||
end: 1,
|
||||
}
|
||||
|
||||
private rules = {
|
||||
required: (value: string) => value !== '' || 'required',
|
||||
groupUnique: (value: string) => !this.existsGroupName(value) || 'Name already exists',
|
||||
minStart: (value: number) => value > 0 || 'smaller than 1',
|
||||
minEnd: (value: number) => value >= this.form.start || 'smaller than start value',
|
||||
max: (value: number) => value <= (this.light?.chainCount ?? 1) || 'higher than chain_count',
|
||||
}
|
||||
|
||||
@Prop({ type: Object, default: null })
|
||||
declare light: PrinterStateLight | null
|
||||
|
||||
get entry() {
|
||||
return this.$store.getters['gui/miscellaneous/getEntry']({
|
||||
type: this.light?.type,
|
||||
name: this.light?.name,
|
||||
}) as GuiMiscellaneousStateEntry | null
|
||||
}
|
||||
|
||||
get groups() {
|
||||
if (!this.entry) return []
|
||||
|
||||
const groups: GuiMiscellaneousStateEntryLightgroup[] = []
|
||||
Object.entries(this.entry.lightgroups).forEach(([key, lightgroup]) => {
|
||||
groups.push({
|
||||
name: lightgroup.name,
|
||||
start: lightgroup.start,
|
||||
end: lightgroup.end,
|
||||
id: key,
|
||||
})
|
||||
})
|
||||
window.console.log('getEntryLightgroups', groups)
|
||||
|
||||
return caseInsensitiveSort(groups, 'name')
|
||||
}
|
||||
|
||||
createGroup() {
|
||||
this.form.id = null
|
||||
this.form.name = ''
|
||||
this.form.start = 1
|
||||
this.form.end = this.light?.chainCount ?? 1
|
||||
this.boolForm = true
|
||||
}
|
||||
|
||||
editGroup(group: GuiMiscellaneousStateEntryLightgroup) {
|
||||
this.form.id = group.id ?? null
|
||||
this.form.name = group.name
|
||||
this.form.start = group.start
|
||||
this.form.end = group.end
|
||||
this.boolForm = true
|
||||
}
|
||||
|
||||
closeForm() {
|
||||
this.boolForm = false
|
||||
}
|
||||
|
||||
storeGroup() {
|
||||
this.$store.dispatch('gui/miscellaneous/storeLightgroup', {
|
||||
entry: this.light,
|
||||
lightgroup: this.form,
|
||||
})
|
||||
|
||||
this.boolForm = false
|
||||
}
|
||||
|
||||
updateGroup() {
|
||||
this.$store.dispatch('gui/miscellaneous/updateLightgroup', {
|
||||
entry: this.light,
|
||||
lightgroup: this.form,
|
||||
})
|
||||
|
||||
this.boolForm = false
|
||||
}
|
||||
|
||||
deleteGroup(groupId: string) {
|
||||
this.$store.dispatch('gui/miscellaneous/deleteLightgroup', {
|
||||
entry: this.light,
|
||||
lightgroupId: groupId,
|
||||
})
|
||||
}
|
||||
|
||||
existsGroupName(name: string) {
|
||||
return (
|
||||
this.groups.findIndex(
|
||||
(group: GuiMacrosStateMacrogroup) => group.name === name && group.id != this.form.id
|
||||
) >= 0
|
||||
)
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
||||
<style lang="scss" scoped></style>
|
||||
@@ -0,0 +1,467 @@
|
||||
<template>
|
||||
<div>
|
||||
<template v-if="boolForm">
|
||||
<v-card-text>
|
||||
<h3 class="text-h5 mb-3">{{ $t('Settings.MiscellaneousTab.CreatePreset') }}</h3>
|
||||
<settings-row :title="$t('Settings.MiscellaneousTab.Name').toString()">
|
||||
<v-text-field
|
||||
v-model="form.name"
|
||||
hide-details="auto"
|
||||
:rules="[rules.required, rules.presetUnique]"
|
||||
dense
|
||||
outlined></v-text-field>
|
||||
</settings-row>
|
||||
<v-divider class="my-2"></v-divider>
|
||||
<settings-row :title="$t('Settings.MiscellaneousTab.Color').toString()">
|
||||
<v-row>
|
||||
<v-col class="text-center">
|
||||
<color-picker
|
||||
:color="colorRGB"
|
||||
:options="colorPickerOptions"
|
||||
@update:color="onColorRGBChanged" />
|
||||
<color-picker
|
||||
v-if="existWhite"
|
||||
:color="colorRGBW"
|
||||
:options="colorPickerWhiteOptions"
|
||||
class="mt-3"
|
||||
@update:color="onColorWhiteChanged" />
|
||||
</v-col>
|
||||
<v-col>
|
||||
<v-row v-if="existRed">
|
||||
<v-col>
|
||||
<number-input
|
||||
:label="$t('Panels.MiscellaneousPanel.Light.Red')"
|
||||
param="red"
|
||||
:target="redInt"
|
||||
:min="0"
|
||||
:max="255"
|
||||
:dec="1"
|
||||
:step="1"
|
||||
:output-error-msg="true"
|
||||
:has-spinner="true"
|
||||
@submit="onColorInput" />
|
||||
</v-col>
|
||||
</v-row>
|
||||
<v-row v-if="existGreen">
|
||||
<v-col>
|
||||
<number-input
|
||||
:label="$t('Panels.MiscellaneousPanel.Light.Green')"
|
||||
param="green"
|
||||
:target="greenInt"
|
||||
:min="0"
|
||||
:max="255"
|
||||
:dec="1"
|
||||
:step="1"
|
||||
:has-spinner="true"
|
||||
@submit="onColorInput" />
|
||||
</v-col>
|
||||
</v-row>
|
||||
<v-row v-if="existBlue">
|
||||
<v-col>
|
||||
<number-input
|
||||
:label="$t('Panels.MiscellaneousPanel.Light.Blue')"
|
||||
param="blue"
|
||||
:target="blueInt"
|
||||
:min="0"
|
||||
:max="255"
|
||||
:dec="1"
|
||||
:step="1"
|
||||
:has-spinner="true"
|
||||
@submit="onColorInput" />
|
||||
</v-col>
|
||||
</v-row>
|
||||
<v-row v-if="existWhite">
|
||||
<v-col>
|
||||
<number-input
|
||||
:label="$t('Panels.MiscellaneousPanel.Light.White')"
|
||||
param="white"
|
||||
:target="whiteInt"
|
||||
:min="0"
|
||||
:max="255"
|
||||
:dec="1"
|
||||
:step="1"
|
||||
:has-spinner="true"
|
||||
@submit="onColorInput" />
|
||||
</v-col>
|
||||
</v-row>
|
||||
</v-col>
|
||||
</v-row>
|
||||
</settings-row>
|
||||
</v-card-text>
|
||||
<v-card-actions class="d-flex justify-end">
|
||||
<v-btn text @click="closeForm">{{ $t('Settings.Cancel') }}</v-btn>
|
||||
<v-btn v-if="form.id !== null" text color="primary" @click="updatePreset">
|
||||
{{ $t('Settings.Update') }}
|
||||
</v-btn>
|
||||
<v-btn v-else text color="primary" @click="storePreset">{{ $t('Settings.Store') }}</v-btn>
|
||||
</v-card-actions>
|
||||
</template>
|
||||
<template v-else>
|
||||
<v-card-text>
|
||||
<h3 class="text-h5 mb-3">{{ $t('Settings.MiscellaneousTab.LightPresets', { name: light.name }) }}</h3>
|
||||
<template v-if="light">
|
||||
<template v-if="presets.length">
|
||||
<div v-for="(preset, index) in presets" :key="preset.id">
|
||||
<v-divider v-if="index" class="my-2"></v-divider>
|
||||
<settings-row
|
||||
:title="preset.name"
|
||||
:sub-title="entryDescriptionText(preset)"
|
||||
:dynamic-slot-width="true">
|
||||
<v-btn small outlined class="ml-3" @click="editPreset(preset)">
|
||||
<v-icon left small>{{ mdiPencil }}</v-icon>
|
||||
{{ $t('Settings.Edit') }}
|
||||
</v-btn>
|
||||
<v-btn
|
||||
small
|
||||
outlined
|
||||
class="ml-3 minwidth-0 px-2"
|
||||
color="error"
|
||||
@click="deletePreset(preset.id)">
|
||||
<v-icon small>{{ mdiDelete }}</v-icon>
|
||||
</v-btn>
|
||||
</settings-row>
|
||||
</div>
|
||||
</template>
|
||||
<template v-else>
|
||||
<v-row>
|
||||
<v-col>
|
||||
<p class="mb-0 text-center font-italic">
|
||||
{{ $t('Settings.MiscellaneousTab.NoPresetFound') }}
|
||||
</p>
|
||||
</v-col>
|
||||
</v-row>
|
||||
</template>
|
||||
</template>
|
||||
<template v-else>
|
||||
<v-row>
|
||||
<v-col>
|
||||
<p class="mb-0 text-center font-italic">
|
||||
{{ $t('Settings.MiscellaneousTab.UnableToLoadPreset') }}
|
||||
</p>
|
||||
</v-col>
|
||||
</v-row>
|
||||
</template>
|
||||
</v-card-text>
|
||||
<v-card-actions class="d-flex justify-end">
|
||||
<v-btn text @click="$emit('close')">{{ $t('Settings.Close') }}</v-btn>
|
||||
<v-btn text color="primary" @click="createPreset">
|
||||
{{ $t('Settings.MiscellaneousTab.AddPreset') }}
|
||||
</v-btn>
|
||||
</v-card-actions>
|
||||
</template>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<script lang="ts">
|
||||
import { Component, Mixins, Prop } from 'vue-property-decorator'
|
||||
import BaseMixin from '../mixins/base'
|
||||
import SettingsRow from '@/components/settings/SettingsRow.vue'
|
||||
import { mdiDelete, mdiPencil } from '@mdi/js'
|
||||
import { caseInsensitiveSort, convertName } from '@/plugins/helpers'
|
||||
import { PrinterStateLight } from '@/store/printer/types'
|
||||
import { GuiMiscellaneousStateEntry, GuiMiscellaneousStateEntryPreset } from '@/store/gui/miscellaneous/types'
|
||||
import { ColorPickerProps } from '@jaames/iro/dist/ColorPicker.d'
|
||||
import iro from '@jaames/iro'
|
||||
import { Debounce } from 'vue-debounce-decorator'
|
||||
import { IroColor } from '@irojs/iro-core'
|
||||
|
||||
interface ColorData {
|
||||
red: number | null
|
||||
green: number | null
|
||||
blue: number | null
|
||||
white: number | null
|
||||
}
|
||||
|
||||
@Component({
|
||||
components: {
|
||||
SettingsRow,
|
||||
},
|
||||
})
|
||||
export default class SettingsMiscellaneousTabLightPresets extends Mixins(BaseMixin) {
|
||||
mdiDelete = mdiDelete
|
||||
mdiPencil = mdiPencil
|
||||
|
||||
convertName = convertName
|
||||
|
||||
private boolForm = false
|
||||
|
||||
private form: {
|
||||
id: string | null
|
||||
name: string
|
||||
red: number | null
|
||||
green: number | null
|
||||
blue: number | null
|
||||
white: number | null
|
||||
} = {
|
||||
id: null,
|
||||
name: '',
|
||||
red: null,
|
||||
green: null,
|
||||
blue: null,
|
||||
white: null,
|
||||
}
|
||||
|
||||
private rules = {
|
||||
required: (value: string) => value !== '' || 'required',
|
||||
presetUnique: (value: string) => !this.existsPresetName(value) || 'Name already exists',
|
||||
min: (value: number) => value >= 0 || 'Must be minimum 0',
|
||||
max: (value: number) => value <= 255 || 'Must be smaller then 256',
|
||||
}
|
||||
|
||||
@Prop({ type: Object, default: null })
|
||||
declare light: PrinterStateLight | null
|
||||
|
||||
get entry() {
|
||||
return this.$store.getters['gui/miscellaneous/getEntry']({
|
||||
type: this.light?.type,
|
||||
name: this.light?.name,
|
||||
}) as GuiMiscellaneousStateEntry | null
|
||||
}
|
||||
|
||||
get presets() {
|
||||
if (!this.entry) return []
|
||||
|
||||
const presets: GuiMiscellaneousStateEntryPreset[] = []
|
||||
Object.entries(this.entry.presets).forEach(([key, preset]) => {
|
||||
presets.push({
|
||||
...preset,
|
||||
id: key,
|
||||
})
|
||||
})
|
||||
window.console.log('getEntryPresets', presets)
|
||||
|
||||
return caseInsensitiveSort(presets, 'name')
|
||||
}
|
||||
|
||||
get existRed() {
|
||||
return this.light?.colorOrder.indexOf('R') !== -1
|
||||
}
|
||||
|
||||
get existGreen() {
|
||||
return this.light?.colorOrder.indexOf('G') !== -1
|
||||
}
|
||||
|
||||
get existBlue() {
|
||||
return this.light?.colorOrder.indexOf('B') !== -1
|
||||
}
|
||||
|
||||
get existWhite() {
|
||||
return this.light?.colorOrder.indexOf('W') !== -1
|
||||
}
|
||||
|
||||
get colorRGB() {
|
||||
return `rgb(${Math.round(this.form.red ?? 0)}, ${Math.round(this.form.green ?? 0)}, ${Math.round(
|
||||
this.form.blue ?? 0
|
||||
)})`
|
||||
}
|
||||
|
||||
get colorRGBW() {
|
||||
return `rgba(255, 255, 255, ${(this.form.white ?? 0) / 255})`
|
||||
}
|
||||
|
||||
get redInt() {
|
||||
return Math.round(this.form.red ?? 0)
|
||||
}
|
||||
|
||||
get greenInt() {
|
||||
return Math.round(this.form.green ?? 0)
|
||||
}
|
||||
|
||||
get blueInt() {
|
||||
return Math.round(this.form.blue ?? 0)
|
||||
}
|
||||
|
||||
get whiteInt() {
|
||||
return Math.round(this.form.white ?? 0)
|
||||
}
|
||||
|
||||
get colorPickerOptions() {
|
||||
let options: ColorPickerProps = {
|
||||
width: 200,
|
||||
margin: 15,
|
||||
layout: [],
|
||||
}
|
||||
|
||||
if (this.existRed) {
|
||||
// @ts-ignore
|
||||
options?.layout.push({
|
||||
component: iro.ui.Slider,
|
||||
options: {
|
||||
sliderType: 'red',
|
||||
},
|
||||
})
|
||||
}
|
||||
|
||||
if (this.existGreen) {
|
||||
// @ts-ignore
|
||||
options?.layout.push({
|
||||
component: iro.ui.Slider,
|
||||
options: {
|
||||
sliderType: 'green',
|
||||
},
|
||||
})
|
||||
}
|
||||
|
||||
if (this.existBlue) {
|
||||
// @ts-ignore
|
||||
options?.layout.push({
|
||||
component: iro.ui.Slider,
|
||||
options: {
|
||||
sliderType: 'blue',
|
||||
},
|
||||
})
|
||||
}
|
||||
|
||||
if (this.existRed && this.existGreen && this.existBlue) {
|
||||
options.layout = [
|
||||
{
|
||||
component: iro.ui.Wheel,
|
||||
},
|
||||
{
|
||||
component: iro.ui.Slider,
|
||||
options: {
|
||||
sliderType: 'value',
|
||||
},
|
||||
},
|
||||
]
|
||||
}
|
||||
|
||||
return options
|
||||
}
|
||||
|
||||
get colorPickerWhiteOptions() {
|
||||
let options: ColorPickerProps = {
|
||||
width: 200,
|
||||
margin: 15,
|
||||
layout: [
|
||||
{
|
||||
component: iro.ui.Slider,
|
||||
options: {
|
||||
sliderType: 'alpha',
|
||||
},
|
||||
},
|
||||
],
|
||||
}
|
||||
|
||||
return options
|
||||
}
|
||||
|
||||
entryDescriptionText(preset: GuiMiscellaneousStateEntryPreset) {
|
||||
let output: string[] = []
|
||||
|
||||
if (this.light?.colorOrder.includes('R')) output.push(`R: ${preset.red}`)
|
||||
if (this.light?.colorOrder.includes('G')) output.push(`G: ${preset.green}`)
|
||||
if (this.light?.colorOrder.includes('B')) output.push(`B: ${preset.blue}`)
|
||||
if (this.light?.colorOrder.includes('W')) output.push(`W: ${preset.white}`)
|
||||
|
||||
return output.join(', ')
|
||||
}
|
||||
|
||||
createPreset() {
|
||||
this.form.id = null
|
||||
this.form.name = ''
|
||||
this.form.red = this.light?.colorOrder.indexOf('R') != -1 ? 0 : null
|
||||
this.form.green = this.light?.colorOrder.indexOf('G') != -1 ? 0 : null
|
||||
this.form.blue = this.light?.colorOrder.indexOf('B') != -1 ? 0 : null
|
||||
this.form.white = this.light?.colorOrder.indexOf('W') != -1 ? 0 : null
|
||||
this.boolForm = true
|
||||
}
|
||||
|
||||
editPreset(preset: GuiMiscellaneousStateEntryPreset) {
|
||||
this.form.id = preset.id ?? null
|
||||
this.form.name = preset.name
|
||||
this.form.red = this.light?.colorOrder.indexOf('R') != -1 ? preset.red : null
|
||||
this.form.green = this.light?.colorOrder.indexOf('G') != -1 ? preset.green : null
|
||||
this.form.blue = this.light?.colorOrder.indexOf('B') != -1 ? preset.blue : null
|
||||
this.form.white = this.light?.colorOrder.indexOf('W') != -1 ? preset.white : null
|
||||
this.boolForm = true
|
||||
}
|
||||
|
||||
closeForm() {
|
||||
this.boolForm = false
|
||||
}
|
||||
|
||||
storePreset() {
|
||||
this.$store.dispatch('gui/miscellaneous/storePreset', {
|
||||
entry: this.light,
|
||||
preset: this.form,
|
||||
})
|
||||
|
||||
this.boolForm = false
|
||||
}
|
||||
|
||||
updatePreset() {
|
||||
this.$store.dispatch('gui/miscellaneous/updatePreset', {
|
||||
entry: this.light,
|
||||
preset: this.form,
|
||||
})
|
||||
|
||||
this.boolForm = false
|
||||
}
|
||||
|
||||
deletePreset(presetId: string) {
|
||||
this.$store.dispatch('gui/miscellaneous/deletePreset', {
|
||||
entry: this.light,
|
||||
presetId: presetId,
|
||||
})
|
||||
}
|
||||
|
||||
existsPresetName(name: string) {
|
||||
return (
|
||||
this.presets.findIndex(
|
||||
(group: GuiMiscellaneousStateEntryPreset) => group.name === name && group.id != this.form.id
|
||||
) >= 0
|
||||
)
|
||||
}
|
||||
|
||||
@Debounce({ time: 250 })
|
||||
onColorRGBChanged(payload: IroColor) {
|
||||
const color: ColorData = {
|
||||
red: payload.red,
|
||||
green: payload.green,
|
||||
blue: payload.blue,
|
||||
white: this.form.white,
|
||||
}
|
||||
|
||||
this.colorChanged(color)
|
||||
}
|
||||
|
||||
@Debounce({ time: 250 })
|
||||
onColorWhiteChanged(payload: IroColor) {
|
||||
const color: ColorData = {
|
||||
red: this.form.red,
|
||||
green: this.form.green,
|
||||
blue: this.form.blue,
|
||||
white: this.form.white,
|
||||
}
|
||||
|
||||
// @ts-ignore
|
||||
color.white = payload.alpha * 255
|
||||
|
||||
this.colorChanged(color)
|
||||
}
|
||||
|
||||
onColorInput(payload: { name: string; value: number }) {
|
||||
const color: ColorData = {
|
||||
red: this.form.red,
|
||||
green: this.form.green,
|
||||
blue: this.form.blue,
|
||||
white: this.form.white,
|
||||
}
|
||||
|
||||
// @ts-ignore
|
||||
color[payload.name] = payload.value
|
||||
|
||||
this.colorChanged(color)
|
||||
}
|
||||
|
||||
colorChanged(color: ColorData) {
|
||||
this.form.red = color.red
|
||||
this.form.green = color.green
|
||||
this.form.blue = color.blue
|
||||
this.form.white = color.white
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
||||
<style lang="scss" scoped></style>
|
||||
@@ -89,6 +89,7 @@
|
||||
hide-details="auto"
|
||||
outlined
|
||||
:rules="[rules.required, rules.unique]"
|
||||
class="_webcam-settings-name-field"
|
||||
dense></v-text-field>
|
||||
</v-col>
|
||||
</v-row>
|
||||
@@ -150,21 +151,26 @@
|
||||
</v-col>
|
||||
</v-row>
|
||||
<v-row>
|
||||
<v-col class="py-1">
|
||||
<v-checkbox
|
||||
v-model="form.flipX"
|
||||
hide-details
|
||||
class="mt-1"
|
||||
:label="$t('Settings.WebcamsTab.FlipHorizontally')"></v-checkbox>
|
||||
<v-col class="pt-1 pb-3">
|
||||
<div class="v-label v-label--active theme--dark text-subtitle-1">
|
||||
{{ $t('Settings.WebcamsTab.FlipWebcam') }}
|
||||
</div>
|
||||
</v-col>
|
||||
</v-row>
|
||||
<v-row>
|
||||
<v-col class="py-1">
|
||||
<v-row class="mt-0">
|
||||
<v-col class="py-0">
|
||||
<v-checkbox
|
||||
v-model="form.flipX"
|
||||
class="mt-1"
|
||||
hide-details
|
||||
:label="$t('Settings.WebcamsTab.Horizontally')"></v-checkbox>
|
||||
</v-col>
|
||||
<v-col class="py-0">
|
||||
<v-checkbox
|
||||
v-model="form.flipY"
|
||||
hide-details
|
||||
class="mt-1"
|
||||
:label="$t('Settings.WebcamsTab.FlipVertically')"></v-checkbox>
|
||||
hide-details
|
||||
:label="$t('Settings.WebcamsTab.Vertically')"></v-checkbox>
|
||||
</v-col>
|
||||
</v-row>
|
||||
</v-col>
|
||||
@@ -193,7 +199,7 @@
|
||||
<v-btn text @click="form.bool = false">
|
||||
{{ $t('Settings.Cancel') }}
|
||||
</v-btn>
|
||||
<v-btn color="primary" text type="submit">
|
||||
<v-btn color="primary" text type="submit" :disabled="!form.name">
|
||||
{{
|
||||
form.id === null
|
||||
? $t('Settings.WebcamsTab.SaveWebcam')
|
||||
@@ -448,4 +454,8 @@ export default class SettingsWebcamsTab extends Mixins(BaseMixin, WebcamMixin) {
|
||||
border: 2px solid var(--color-primary) !important;
|
||||
}
|
||||
}
|
||||
|
||||
._webcam-settings-name-field ::v-deep .v-text-field__details {
|
||||
margin-bottom: -12px !important;
|
||||
}
|
||||
</style>
|
||||
@@ -62,7 +62,8 @@ export default class Mjpegstreamer extends Mixins(BaseMixin) {
|
||||
|
||||
get url() {
|
||||
const baseUrl = this.camSettings.urlStream
|
||||
const url = new URL(baseUrl, this.printerUrl === undefined ? this.hostUrl.toString() : this.printerUrl)
|
||||
let url = new URL(baseUrl, this.printerUrl === undefined ? this.hostUrl.toString() : this.printerUrl)
|
||||
if (baseUrl.startsWith('http') || baseUrl.startsWith('://')) url = new URL(baseUrl)
|
||||
|
||||
return decodeURIComponent(url.toString())
|
||||
}
|
||||
|
||||
@@ -97,7 +97,9 @@ export default class MjpegstreamerAdaptive extends Mixins(BaseMixin) {
|
||||
|
||||
async setFrame() {
|
||||
const baseUrl = this.camSettings.urlSnapshot
|
||||
const url = new URL(baseUrl, this.printerUrl === undefined ? this.hostUrl.toString() : this.printerUrl)
|
||||
|
||||
let url = new URL(baseUrl, this.printerUrl === undefined ? this.hostUrl.toString() : this.printerUrl)
|
||||
if (baseUrl.startsWith('http') || baseUrl.startsWith('://')) url = new URL(baseUrl)
|
||||
|
||||
url.searchParams.append('bypassCache', this.refresh.toString())
|
||||
|
||||
|
||||
@@ -27,7 +27,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
|
||||
@@ -35,7 +35,8 @@ export default class Uv4lMjpeg extends Mixins(BaseMixin) {
|
||||
|
||||
get url() {
|
||||
const baseUrl = this.camSettings.urlStream
|
||||
const url = new URL(baseUrl, this.printerUrl === null ? this.hostUrl.toString() : this.printerUrl)
|
||||
let url = new URL(baseUrl, this.printerUrl === undefined ? this.hostUrl.toString() : this.printerUrl)
|
||||
if (baseUrl.startsWith('http') || baseUrl.startsWith('://')) url = new URL(baseUrl)
|
||||
|
||||
return decodeURIComponent(url.toString())
|
||||
}
|
||||
|
||||
+67
-10
@@ -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:",
|
||||
@@ -179,7 +190,10 @@
|
||||
"Free": "Ledig",
|
||||
"FreeDisk": "Ledig plads",
|
||||
"GCodeFiles": "G-Code 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",
|
||||
@@ -252,8 +266,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}\"?",
|
||||
@@ -288,7 +302,6 @@
|
||||
"AllJobs": "Alle job",
|
||||
"AvgPrinttime": "Gns. printtid",
|
||||
"Cancel": "Annuller",
|
||||
"ChamberTemp": "Indelukke temperatur",
|
||||
"CreateNote": "Gem note",
|
||||
"Delete": "Slet",
|
||||
"DeleteSelectedQuestion": "Er du sikker på du vil slette alle {count} valgte jobs?",
|
||||
@@ -338,6 +351,7 @@
|
||||
"in_progress": "Igangværende",
|
||||
"klippy_disconnect": "Klippy afbrudt",
|
||||
"klippy_shutdown": "Klippy lukket ned",
|
||||
"Others": "Andre",
|
||||
"server_exit": "Server exit"
|
||||
},
|
||||
"TitleExportHistory": "Export History",
|
||||
@@ -363,6 +377,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",
|
||||
@@ -453,6 +468,12 @@
|
||||
"UpToDate": "up-to-date"
|
||||
}
|
||||
},
|
||||
"ManualProbe": {
|
||||
"Abort": "Afbryd",
|
||||
"Accept": "Acceptér",
|
||||
"Advanced": "Avanceret",
|
||||
"Headline": "Manuel Probing"
|
||||
},
|
||||
"Panels": {
|
||||
"ExtruderControlPanel": {
|
||||
"Allowed": "Tilladt",
|
||||
@@ -488,9 +509,9 @@
|
||||
"KlippyStatePanel": {
|
||||
"FirmwareRestart": "Genstart alt",
|
||||
"KlipperCheck": "Check at Klipper service kører og at en UDS (Unix Domain Socket) er konfigureret.",
|
||||
"KlippyState": "Klippy-Status",
|
||||
"MoonrakerCannotConnect": "Moonraker kan ikke forbinde til Klipper!",
|
||||
"Restart": "Genstart"
|
||||
"Restart": "Genstart",
|
||||
"ServiceReports": "{service} rapporter"
|
||||
},
|
||||
"MachineSettingsPanel": {
|
||||
"Headline": "Printer indstillinger",
|
||||
@@ -520,6 +541,12 @@
|
||||
},
|
||||
"MiscellaneousPanel": {
|
||||
"Headline": "Diverse",
|
||||
"Light": {
|
||||
"Blue": "blå",
|
||||
"Green": "grøn",
|
||||
"Red": "rød",
|
||||
"White": "hvid"
|
||||
},
|
||||
"RunoutSensor": {
|
||||
"Detected": "Fundet",
|
||||
"Disabled": "Deaktiveret",
|
||||
@@ -599,8 +626,6 @@
|
||||
"Absolute": "absolut",
|
||||
"ALL": "Alle",
|
||||
"Headline": "Kontrolpanel",
|
||||
"Invalid": "Ugyldig",
|
||||
"OutOfRange": "Uden for grænse!",
|
||||
"PleaseConfigureSteps": "Konfigurer steps",
|
||||
"Position": "Position",
|
||||
"QGL": "QGL",
|
||||
@@ -752,6 +777,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",
|
||||
@@ -767,6 +794,7 @@
|
||||
"Slicer": "Slicer (M73)"
|
||||
},
|
||||
"CannotReadJson": "Kan ikke læse backup-fil",
|
||||
"DateFormat": "Datoformat",
|
||||
"DbConsoleHistory": "Terminal Historik",
|
||||
"DbHistoryJobs": "Jobhistorik",
|
||||
"DbHistoryTotals": "Totalhistorik",
|
||||
@@ -786,7 +814,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": {
|
||||
@@ -825,6 +854,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",
|
||||
@@ -852,6 +904,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.",
|
||||
@@ -946,12 +999,14 @@
|
||||
"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",
|
||||
"FlipHorizontally": "Vend webcam horisontalt",
|
||||
"FlipVertically": "Vend webcam vertikalt",
|
||||
"FlipWebcam": "Vend webcam-billedet:",
|
||||
"Horizontally": "horisontalt",
|
||||
"IconBed": "Bed",
|
||||
"IconCam": "Kamera",
|
||||
"IconDoor": "Dør",
|
||||
@@ -974,6 +1029,7 @@
|
||||
"UrlSnapshot": "URL Snapshot",
|
||||
"UrlStream": "URL Stream",
|
||||
"Uv4lMjpeg": "UV4L-MJPEG",
|
||||
"Vertically": "vertikalt",
|
||||
"Webcams": "Webcams"
|
||||
}
|
||||
},
|
||||
@@ -987,6 +1043,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.",
|
||||
|
||||
+58
-9
@@ -107,6 +107,17 @@
|
||||
"UpdatingDone": "Aktualisierung {software} abgeschlossen!"
|
||||
}
|
||||
},
|
||||
"BedScrews": {
|
||||
"Abort": "abbrechen",
|
||||
"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",
|
||||
"ScrewIndex": "Index der Schraube",
|
||||
"ScrewName": "Name der Schraube",
|
||||
"ScrewOutput": "{current} von {max}"
|
||||
},
|
||||
"ConnectionDialog": {
|
||||
"CannotConnectTo": "Kann keine Verbindung zu Moonraker ({host}) herstellen.",
|
||||
"CheckMoonrakerLog": "Wenn diese Meldung wiederholt erscheint, schaue bitte in die Logdatei unter:",
|
||||
@@ -181,6 +192,8 @@
|
||||
"GCodeFiles": "G-Code Dateien",
|
||||
"GcodesRootDirectoryDoesntExists": "Keinen G-Code Ordner gefunden. Bitte überprüfe die Option \"path\" im Abschnitt [virtual_sdcard] in der Klipper Konfiguration.",
|
||||
"HiddenFiles": "Versteckte Dateien",
|
||||
"InvalidNameAlreadyExists": "Name existiert bereits, bitte wähle einen anderen Namen.",
|
||||
"InvalidNameEmpty": "Feld darf nicht leer sein!",
|
||||
"LastEndTime": "Letzte Endzeit",
|
||||
"LastFilamentUsed": "Letzter Filamentverbrauch",
|
||||
"LastModified": "Zuletzt geändert",
|
||||
@@ -253,8 +266,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?",
|
||||
@@ -289,7 +302,6 @@
|
||||
"AllJobs": "Alle",
|
||||
"AvgPrinttime": "Druckzeit - Ø",
|
||||
"Cancel": "abbrechen",
|
||||
"ChamberTemp": "Kammer Temp.",
|
||||
"CreateNote": "Notiz anlegen",
|
||||
"Delete": "Löschen",
|
||||
"DeleteSelectedQuestion": "Sollen wirklich {count} ausgewählte Jobs gelöscht werden?",
|
||||
@@ -456,6 +468,12 @@
|
||||
"UpToDate": "aktuell"
|
||||
}
|
||||
},
|
||||
"ManualProbe": {
|
||||
"Abort": "abbrechen",
|
||||
"Accept": "akzeptieren",
|
||||
"Advanced": "Erweitert",
|
||||
"Headline": "Manuelle Messung"
|
||||
},
|
||||
"Panels": {
|
||||
"ExtruderControlPanel": {
|
||||
"Allowed": "Erlaubt",
|
||||
@@ -491,9 +509,9 @@
|
||||
"KlippyStatePanel": {
|
||||
"FirmwareRestart": "Firmware Neustart",
|
||||
"KlipperCheck": "Bitte überprüfen Sie, ob der Klipper-Dienst läuft und ein UDS (Unix Domain Socket) konfiguriert ist.",
|
||||
"KlippyState": "Klippy-Status",
|
||||
"MoonrakerCannotConnect": "Moonraker kann keine Verbindung zu Klipper herstellen!",
|
||||
"Restart": "Neustart"
|
||||
"Restart": "Neustart",
|
||||
"ServiceReports": "{service} meldet"
|
||||
},
|
||||
"MachineSettingsPanel": {
|
||||
"Headline": "Maschine",
|
||||
@@ -523,6 +541,12 @@
|
||||
},
|
||||
"MiscellaneousPanel": {
|
||||
"Headline": "Sonstiges",
|
||||
"Light": {
|
||||
"Blue": "blau",
|
||||
"Green": "grün",
|
||||
"Red": "rot",
|
||||
"White": "weiß"
|
||||
},
|
||||
"RunoutSensor": {
|
||||
"Detected": "erkannt",
|
||||
"Disabled": "deaktiviert",
|
||||
@@ -602,8 +626,6 @@
|
||||
"Absolute": "absolut",
|
||||
"ALL": "ALLE",
|
||||
"Headline": "Werkzeugkopf",
|
||||
"Invalid": "Ungültig",
|
||||
"OutOfRange": "Außerhalb der Maschinengrenze!",
|
||||
"PleaseConfigureSteps": "Bitte Schritte konfigurieren",
|
||||
"Position": "Position",
|
||||
"QGL": "QGL",
|
||||
@@ -828,6 +850,30 @@
|
||||
"UnknownGroup": "Unbekannte Gruppe",
|
||||
"Warning": "Warnung"
|
||||
},
|
||||
"MiscellaneousTab": {
|
||||
"AddGroup": "Gruppe hinzufügen",
|
||||
"AddPreset": "Voreinstellung hinzufügen",
|
||||
"Color": "Farbe",
|
||||
"CreateGroup": "Gruppe erstellen",
|
||||
"CreatePreset": "Voreinstellung erstellen",
|
||||
"End": "Ende",
|
||||
"EndDescription": "Letzte LED von dieser Gruppe.",
|
||||
"Groups": "Gruppen",
|
||||
"GroupSubTitle": "Start: {start}, Ende: {end}",
|
||||
"LightGroups": "{name} - Gruppen",
|
||||
"LightPresets": "{name} - Voreinstellungen",
|
||||
"Miscellaneous": "Sonstiges",
|
||||
"Name": "Name",
|
||||
"NoDevicesFound": "Keine Komponente gefunden",
|
||||
"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",
|
||||
"UnableToLoadPreset": "Voreinstellung konnte nicht geladen werden"
|
||||
},
|
||||
"PresetsTab": {
|
||||
"AddPreset": "Preset hinzufügen",
|
||||
"Cooldown": "Abkühlen",
|
||||
@@ -855,6 +901,7 @@
|
||||
"UpdatePrinter": "Drucker aktualisieren",
|
||||
"UseConfigJson": "InstanceDB = JSON erkannt. Bitte bearbeite die config.json um die Druckerliste zu modifizieren."
|
||||
},
|
||||
"Store": "anlegen",
|
||||
"TimelapseTab": {
|
||||
"Autorender": "Autorender",
|
||||
"AutorenderDescription": "Wenn diese Option aktiviert ist, wird das Zeitraffervideo am Ende des Druckvorgangs automatisch gerendert",
|
||||
@@ -949,13 +996,14 @@
|
||||
"ShowWebcamInNavigation": "Zeige Webcam in der Navigation",
|
||||
"UiSettings": "UI-Einstellungen"
|
||||
},
|
||||
"Update": "speichern",
|
||||
"WebcamsTab": {
|
||||
"AddWebcam": "Webcam hinzufügen",
|
||||
"CreateWebcam": "Erstelle Webcam",
|
||||
"EditCrowsnestConf": "crowsnest.conf bearbeiten",
|
||||
"EditWebcam": "Webcam bearbeiten",
|
||||
"FlipHorizontally": "Webcam waagerecht spiegeln",
|
||||
"FlipVertically": "Webcam vertikal spiegeln",
|
||||
"FlipWebcam": "Webcam-Bild spiegeln:",
|
||||
"Horizontally": "horizontal",
|
||||
"IconBed": "Bett",
|
||||
"IconCam": "Kamera",
|
||||
"IconDoor": "Tür",
|
||||
@@ -978,6 +1026,7 @@
|
||||
"UrlSnapshot": "Schnappschuss URL",
|
||||
"UrlStream": "Stream URL",
|
||||
"Uv4lMjpeg": "UV4L-MJPEG",
|
||||
"Vertically": "vertikal",
|
||||
"Webcams": "Webcams"
|
||||
}
|
||||
},
|
||||
|
||||
+64
-11
@@ -107,6 +107,17 @@
|
||||
"UpdatingDone": "Updating {software} done!"
|
||||
}
|
||||
},
|
||||
"BedScrews": {
|
||||
"Abort": "abort",
|
||||
"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",
|
||||
"ScrewIndex": "Screw Index",
|
||||
"ScrewName": "Screw Name",
|
||||
"ScrewOutput": "{current} of {max}"
|
||||
},
|
||||
"ConnectionDialog": {
|
||||
"CannotConnectTo": "Cannot connect to Moonraker ({host}).",
|
||||
"CheckMoonrakerLog": "If this message appears repeatedly, please have a look in the log file located at:",
|
||||
@@ -181,6 +192,8 @@
|
||||
"GCodeFiles": "G-Code Files",
|
||||
"GcodesRootDirectoryDoesntExists": "No G-Code directory found. Please check option \"path\" in the [virtual_sdcard] section of the Klipper configuration.",
|
||||
"HiddenFiles": "Hidden files",
|
||||
"InvalidNameAlreadyExists": "Name already exists, please choose another name.",
|
||||
"InvalidNameEmpty": "Input must not be empty!",
|
||||
"LastEndTime": "Last End Time",
|
||||
"LastFilamentUsed": "Last Filament Used",
|
||||
"LastModified": "Last modified",
|
||||
@@ -253,8 +266,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}\"?",
|
||||
@@ -289,7 +302,6 @@
|
||||
"AllJobs": "All",
|
||||
"AvgPrinttime": "Print Time - Ø",
|
||||
"Cancel": "Cancel",
|
||||
"ChamberTemp": "Chamber Temp.",
|
||||
"CreateNote": "Create Note",
|
||||
"Delete": "Delete",
|
||||
"DeleteSelectedQuestion": "Do you really want to delete {count} selected jobs?",
|
||||
@@ -456,6 +468,12 @@
|
||||
"UpToDate": "up-to-date"
|
||||
}
|
||||
},
|
||||
"ManualProbe": {
|
||||
"Abort": "abort",
|
||||
"Accept": "accept",
|
||||
"Advanced": "Advanced",
|
||||
"Headline": "Manual Probe"
|
||||
},
|
||||
"Panels": {
|
||||
"ExtruderControlPanel": {
|
||||
"Allowed": "Allowed",
|
||||
@@ -490,10 +508,10 @@
|
||||
},
|
||||
"KlippyStatePanel": {
|
||||
"FirmwareRestart": "Firmware Restart",
|
||||
"KlipperCheck": "Please check if the Klipper service is running and an UDS (Unix Domain Socket) is configured.",
|
||||
"KlippyState": "Klippy-State",
|
||||
"KlipperCheck": "Please check if the Klipper service is running.",
|
||||
"MoonrakerCannotConnect": "Moonraker can't connect to Klipper!",
|
||||
"Restart": "Restart"
|
||||
"Restart": "Restart",
|
||||
"ServiceReports": "{service} reports"
|
||||
},
|
||||
"MachineSettingsPanel": {
|
||||
"Headline": "Machine",
|
||||
@@ -523,6 +541,12 @@
|
||||
},
|
||||
"MiscellaneousPanel": {
|
||||
"Headline": "Miscellaneous",
|
||||
"Light": {
|
||||
"Blue": "blue",
|
||||
"Green": "green",
|
||||
"Red": "red",
|
||||
"White": "white"
|
||||
},
|
||||
"RunoutSensor": {
|
||||
"Detected": "detected",
|
||||
"Disabled": "disabled",
|
||||
@@ -602,8 +626,6 @@
|
||||
"Absolute": "absolute",
|
||||
"ALL": "ALL",
|
||||
"Headline": "Toolhead",
|
||||
"Invalid": "Invalid",
|
||||
"OutOfRange": "Out of range!",
|
||||
"PleaseConfigureSteps": "Please configure steps",
|
||||
"Position": "Position",
|
||||
"QGL": "QGL",
|
||||
@@ -755,6 +777,8 @@
|
||||
"ShowAxes": "Show Axes"
|
||||
},
|
||||
"GeneralTab": {
|
||||
"12hours": "12-hours ({time})",
|
||||
"24hours": "24-hours ({time})",
|
||||
"Backup": "Backup",
|
||||
"BackupDialog": "Please select all the sections you want to create a backup:",
|
||||
"CalcEstimateTime": "Estimate time calculation",
|
||||
@@ -770,6 +794,7 @@
|
||||
"Slicer": "Slicer (M73)"
|
||||
},
|
||||
"CannotReadJson": "Cannot read/parse backup file.",
|
||||
"DateFormat": "Date Format",
|
||||
"DbConsoleHistory": "Console History",
|
||||
"DbHistoryJobs": "History Jobs",
|
||||
"DbHistoryTotals": "History Totals",
|
||||
@@ -789,7 +814,8 @@
|
||||
"PrinterName": "Printer Name",
|
||||
"Reset": "reset",
|
||||
"Restore": "Restore",
|
||||
"RestoreDialog": "Please select all the sections you want to restore:"
|
||||
"RestoreDialog": "Please select all the sections you want to restore:",
|
||||
"TimeFormat": "Time Format"
|
||||
},
|
||||
"InterfaceSettings": "Interface Settings",
|
||||
"MacrosTab": {
|
||||
@@ -828,6 +854,30 @@
|
||||
"UnknownGroup": "Unknown Group",
|
||||
"Warning": "warning"
|
||||
},
|
||||
"MiscellaneousTab": {
|
||||
"AddGroup": "add group",
|
||||
"AddPreset": "add preset",
|
||||
"Color": "Color",
|
||||
"CreateGroup": "Create group",
|
||||
"CreatePreset": "Create preset",
|
||||
"End": "End",
|
||||
"EndDescription": "Last LED of this group.",
|
||||
"Groups": "Groups",
|
||||
"GroupSubTitle": "Start: {start}, End: {end}",
|
||||
"LightGroups": "{name} - Groups",
|
||||
"LightPresets": "{name} - Presets",
|
||||
"Miscellaneous": "Miscellaneous",
|
||||
"Name": "Name",
|
||||
"NoDevicesFound": "No devices found",
|
||||
"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",
|
||||
"UnableToLoadPreset": "Unable to load preset"
|
||||
},
|
||||
"PresetsTab": {
|
||||
"AddPreset": "add preset",
|
||||
"Cooldown": "Cooldown",
|
||||
@@ -855,6 +905,7 @@
|
||||
"UpdatePrinter": "Update Printer",
|
||||
"UseConfigJson": "InstanceDB = JSON detected. Please use the config.json to modify the printers list."
|
||||
},
|
||||
"Store": "store",
|
||||
"TimelapseTab": {
|
||||
"Autorender": "Autorender",
|
||||
"AutorenderDescription": "If enabled, the timelapse video will automatically render at the end of the print",
|
||||
@@ -949,13 +1000,14 @@
|
||||
"ShowWebcamInNavigation": "Show Webcam in navigation",
|
||||
"UiSettings": "UI-Settings"
|
||||
},
|
||||
"Update": "update",
|
||||
"WebcamsTab": {
|
||||
"AddWebcam": "add webcam",
|
||||
"CreateWebcam": "Create Webcam",
|
||||
"EditCrowsnestConf": "Edit crowsnest.conf",
|
||||
"EditWebcam": "Edit Webcam",
|
||||
"FlipHorizontally": "Flip webcam horizontally",
|
||||
"FlipVertically": "Flip webcam vertically",
|
||||
"FlipWebcam": "Flip webcam image:",
|
||||
"Horizontally": "horizontally",
|
||||
"IconBed": "Bed",
|
||||
"IconCam": "Cam",
|
||||
"IconDoor": "Door",
|
||||
@@ -978,6 +1030,7 @@
|
||||
"UrlSnapshot": "URL Snapshot",
|
||||
"UrlStream": "URL Stream",
|
||||
"Uv4lMjpeg": "UV4L-MJPEG",
|
||||
"Vertically": "vertically",
|
||||
"Webcams": "Webcams"
|
||||
}
|
||||
},
|
||||
|
||||
+5
-39
@@ -131,13 +131,11 @@
|
||||
}
|
||||
},
|
||||
"Editor": {
|
||||
"Cancel": "Cancelar",
|
||||
"ConfigReference": "Configuración de referencia",
|
||||
"DontSave": "No guardar",
|
||||
"Downloading": "Descargando",
|
||||
"FailedSave": "¡{filename} no pudo cargarse!",
|
||||
"FileReadOnly": "Sólo lectura",
|
||||
"Minimap": "Mostrar minimapa",
|
||||
"SaveClose": "Guardar y cerrar",
|
||||
"SaveRestart": "Guardar y reiniciar",
|
||||
"SuccessfullySaved": "{filename} guardado con éxito.",
|
||||
@@ -164,7 +162,6 @@
|
||||
"DeleteDirectoryQuestion": "¿Realmente quiere borrar la carpeta \"{name}\" con todo su contenido?",
|
||||
"DeleteSelectedQuestion": "¿Realmente desea eliminar {count} archivos seleccionados?",
|
||||
"Download": "Descargar",
|
||||
"Downloading": "Descargando",
|
||||
"EditFile": "Editar archivo",
|
||||
"Empty": "Vacío",
|
||||
"Filament": "Filamento",
|
||||
@@ -206,7 +203,6 @@
|
||||
"SuccessfullyRenamed": "{filename} renombrado con éxito.",
|
||||
"SuccessfullyUploaded": "{filename} subido con éxito!",
|
||||
"Total": "Total",
|
||||
"Uploading": "Cargando",
|
||||
"UploadNewGcode": "Cargar nuevo G-Code",
|
||||
"Used": "Usado",
|
||||
"View3D": "Vista 3D"
|
||||
@@ -449,22 +445,6 @@
|
||||
}
|
||||
},
|
||||
"Panels": {
|
||||
"ControlPanel": {
|
||||
"ALL": "Todos",
|
||||
"AlternateControls": "Alternar controles",
|
||||
"Headline": "Controles",
|
||||
"InvertX": "Invertir X",
|
||||
"InvertY": "Invertir Y",
|
||||
"InvertZ": "Invertir Z",
|
||||
"PleaseConfigureSteps": "Por favor configure los pasos",
|
||||
"QGL": "QGL",
|
||||
"SettingsInterfaceControl": "Ajustes > Interfaz > Control",
|
||||
"SetupControls": "Controles de configuración",
|
||||
"X": "X",
|
||||
"Y": "Y",
|
||||
"Z": "Z",
|
||||
"ZTilt": "Z Tilt"
|
||||
},
|
||||
"ExtruderControlPanel": {
|
||||
"Allowed": "Permitida",
|
||||
"EstimatedExtrusion": "Extrusion estimada",
|
||||
@@ -480,15 +460,14 @@
|
||||
"UnretractSpeed": "Velocidad de post-retracción"
|
||||
},
|
||||
"Headline": "Extrusor",
|
||||
"Retract": "Retraer",
|
||||
"LoadFilament": "Cargar filamento",
|
||||
"PressureAdvanceSettings": {
|
||||
"Advance": "Avance",
|
||||
"Extruder": "Extrusor",
|
||||
"PressureAdvance": "Avance de presión",
|
||||
"SmoothTime": "Tiempo de suavizado"
|
||||
},
|
||||
"Requested": "Solicitada",
|
||||
"Retract": "Retraer",
|
||||
"TooLargeExtrusion": "¡Extrusión muy grande!",
|
||||
"UnloadFilament": "Descargar Filamento"
|
||||
},
|
||||
@@ -500,7 +479,6 @@
|
||||
"KlippyStatePanel": {
|
||||
"FirmwareRestart": "Reiniciar Firmware",
|
||||
"KlipperCheck": "Verifique que el servicio Klipper está corriendo y que un UDS (Unix Domain Socket) esta configurado.",
|
||||
"KlippyState": "Estado de Klippy",
|
||||
"MoonrakerCannotConnect": "¡Moonraker no se pudo conectar a Klipper!",
|
||||
"Restart": "Reiniciar"
|
||||
},
|
||||
@@ -584,7 +562,6 @@
|
||||
"TemperaturePanel": {
|
||||
"AutoscaleChart": "Autoescalar gráfico",
|
||||
"Avg": "Promedio",
|
||||
"Color": "Color",
|
||||
"Cooldown": "Enfriar",
|
||||
"Current": "Actual",
|
||||
"Dataset": {
|
||||
@@ -612,22 +589,12 @@
|
||||
"Absolute": "absoluta",
|
||||
"ALL": "TODO",
|
||||
"Headline": "Toolhead",
|
||||
"Invalid": "Invalido",
|
||||
"InvertX": "Invertir X",
|
||||
"InvertY": "Invertir Y",
|
||||
"InvertZ": "Invertir Z",
|
||||
"MotorsOff": "Motores Apagados",
|
||||
"OutOfRange": "Fuera de rango!",
|
||||
"PleaseConfigureSteps": "Por favor configure los pasos",
|
||||
"Position": "Posición",
|
||||
"QGL": "QGL",
|
||||
"Relative": "relativa",
|
||||
"SettingsInterfaceControl": "Configuración > Interfaz > Control",
|
||||
"SetupControls": "Configurar controles",
|
||||
"SpeedFactor": "Factor de velocidad",
|
||||
"XOffset": "X-Offset",
|
||||
"YOffset": "Y-Offset",
|
||||
"ZOffset": "Z-Offset",
|
||||
"ZTilt": "Z Tilt"
|
||||
},
|
||||
"WebcamPanel": {
|
||||
@@ -635,12 +602,10 @@
|
||||
"FPS": "FPS",
|
||||
"Headline": "Cámara web",
|
||||
"NoWebcam": "No hay cámara web disponible. Agregue una cámara web en \"Configuración\" -> \"Cámaras web\".",
|
||||
"UnknownWebcamService": "Servicio de cámara web desconocido",
|
||||
"UrlNotAvailable": "URL no disponible"
|
||||
"UnknownWebcamService": "Servicio de cámara web desconocido"
|
||||
},
|
||||
"ZoffsetPanel": {
|
||||
"Clear": "Limpiar",
|
||||
"CurrentOffset": "Offset actual",
|
||||
"Headline": "Z-Offset",
|
||||
"Later": "Más tarde",
|
||||
"Ok": "OK",
|
||||
@@ -962,8 +927,8 @@
|
||||
"AddWebcam": "Agregar cámara web",
|
||||
"CreateWebcam": "Crear cámara web",
|
||||
"EditWebcam": "Editar cámara web",
|
||||
"FlipHorizontally": "Voltear horizontalmente",
|
||||
"FlipVertically": "Voltear verticalmente",
|
||||
"FlipWebcam": "Voltear la imagen de la cámara web:",
|
||||
"Horizontally": "horizontalmente",
|
||||
"IconBed": "Cama",
|
||||
"IconCam": "Cámara",
|
||||
"IconDoor": "Puerta",
|
||||
@@ -985,6 +950,7 @@
|
||||
"UrlSnapshot": "URL Snapshot",
|
||||
"UrlStream": "URL Stream",
|
||||
"Uv4lMjpeg": "UV4L-MJPEG",
|
||||
"Vertically": "verticalmente",
|
||||
"Webcams": "Cámaras web"
|
||||
}
|
||||
},
|
||||
|
||||
+42
-51
@@ -1,5 +1,5 @@
|
||||
{
|
||||
"_last_update": "26.05.2022",
|
||||
"_last_update": "12.09.2022",
|
||||
"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}.",
|
||||
@@ -22,6 +22,7 @@
|
||||
"Never": "jamais",
|
||||
"NextReboot": "prochain redémarrage",
|
||||
"NoNotification": "Pas de notification(s) disponible(s)",
|
||||
"Notifications": "Notifications",
|
||||
"Remind": "Rappel:"
|
||||
},
|
||||
"NumberInput": {
|
||||
@@ -112,6 +113,7 @@
|
||||
"CheckMoonrakerLog": "Si ce message apparait régulièrement, contrôlez le fichier log à l'adresse suivante:",
|
||||
"Connecting": "Connection avec {host}",
|
||||
"Failed": "Connection échouée",
|
||||
"Initializing": "Initialisation",
|
||||
"TryAgain": " répétez"
|
||||
},
|
||||
"Console": {
|
||||
@@ -132,13 +134,11 @@
|
||||
}
|
||||
},
|
||||
"Editor": {
|
||||
"Cancel": "Annuler",
|
||||
"ConfigReference": "Référence de configuration",
|
||||
"DontSave": "Ne pas sauvegarder",
|
||||
"Downloading": "Téléchargement",
|
||||
"FailedSave": "Le fichier {filename} n'a pas pu être téléchargé",
|
||||
"FileReadOnly": "lecture seule",
|
||||
"Minimap": "Afficher minimap",
|
||||
"SaveClose": "Sauvegarde et fermeture",
|
||||
"SaveRestart": "Sauvegarde et redémarrage",
|
||||
"SuccessfullySaved": "Le fichier {filename} a été sauvegardé",
|
||||
@@ -156,7 +156,9 @@
|
||||
"Files": {
|
||||
"AddToQueue": "Ajouter à la queue",
|
||||
"AllFiles": "Tous",
|
||||
"BedTemp": "Température plateau",
|
||||
"Cancel": "Annuler",
|
||||
"ChamberTemp": "Température chambre",
|
||||
"Create": "Créer",
|
||||
"CreateNewDirectory": "Nouveau dossier",
|
||||
"CurrentPath": "Dossier actuel",
|
||||
@@ -165,9 +167,9 @@
|
||||
"DeleteDirectoryQuestion": "Voulez vous vraiment effacer le dossier \"{name}\" et tout son contenu ?",
|
||||
"DeleteSelectedQuestion": "Désirez-vous supprimer {count} fichiers ?",
|
||||
"Download": "Téléchargement",
|
||||
"Downloading": "Téléchargement en cours",
|
||||
"EditFile": "Editer Fichier",
|
||||
"Empty": "vide",
|
||||
"ExtruderTemp": "Température extrudeur",
|
||||
"Filament": "Filament",
|
||||
"FilamentName": "Nom du filament",
|
||||
"FilamentType": "Type de filament",
|
||||
@@ -178,6 +180,7 @@
|
||||
"Free": "Libre",
|
||||
"FreeDisk": "Disque libre",
|
||||
"GCodeFiles": "Fichiers G-Code",
|
||||
"GcodesRootDirectoryDoesntExists": "Pas trouvé de dossier G-Code. Contrôlez l'option \"path\" dans la section [virtual_sdcard] de la configuration de Klipper.",
|
||||
"HiddenFiles": "Fichiers cachés",
|
||||
"LastEndTime": "Dernière heure de fin d'impression",
|
||||
"LastFilamentUsed": "Dernier filament utilisé",
|
||||
@@ -207,7 +210,6 @@
|
||||
"SuccessfullyRenamed": "Fichier {filename} renommé",
|
||||
"SuccessfullyUploaded": "Fichier {filename} mis à jour",
|
||||
"Total": "Total",
|
||||
"Uploading": "Chargement",
|
||||
"UploadNewGcode": "Charger nouveau G-Code",
|
||||
"Used": "Utilisé",
|
||||
"View3D": "Vue 3D"
|
||||
@@ -260,6 +262,9 @@
|
||||
"ErrorKlipperNotReady": "Klipper pas prêt, maillage désactivé",
|
||||
"Flat": "Plat",
|
||||
"Heightmap": "Maillage de hauteur",
|
||||
"InvalidNameAlreadyExists": "Ce profil existe déjà, choisissez-en un autre.",
|
||||
"InvalidNameEmpty": "L'entrée ne doit pas être vide !",
|
||||
"InvalidNameReserved": "Le nom de profil \"default\" est réservé, choisissez-en un autre.",
|
||||
"Later": "Plus tard",
|
||||
"Mesh": "Calculé",
|
||||
"Name": "Nom",
|
||||
@@ -320,20 +325,13 @@
|
||||
"Save": "sauvegarder",
|
||||
"Search": "Recherche",
|
||||
"SelectedFilamentUsed": "Filament sélectionné utilisé",
|
||||
"SelectedJobs": "Travaux sélectionnés",
|
||||
"SelectedPrinttime": "Temps d'impression sélectionnés",
|
||||
"Slicer": "Trancheur",
|
||||
"SlicerVersion": "Version trancheur",
|
||||
"StartTime": "Heure de début d'impression",
|
||||
"Statistics": "Statistiques",
|
||||
"Status": "Status",
|
||||
"TitleRefreshHistory": "Rafraîchir l'historique",
|
||||
"TitleSettings": "Réglages",
|
||||
"TotalDuration": "Durée totale",
|
||||
"TotalFilamentUsed": "Total filament utilisé",
|
||||
"TotalJobs": "Nombre travaux",
|
||||
"TotalPrinttime": "Total temps d'impression",
|
||||
"TotalTime": "Durée totale",
|
||||
"SelectedJobs": "Travaux sélectionnés",
|
||||
"SelectedPrinttime": "Temps d'impression sélectionnés",
|
||||
"StatusValues": {
|
||||
"cancelled": "Annulé",
|
||||
"completed": "Terminé",
|
||||
@@ -341,9 +339,17 @@
|
||||
"in_progress": "en cours",
|
||||
"klippy_disconnect": "Klippy déconnecté",
|
||||
"klippy_shutdown": "Klippy arrêté",
|
||||
"Others": "Autres",
|
||||
"server_exit": "Serveur quitté"
|
||||
},
|
||||
"TitleExportHistory": "Exporter l'historique"
|
||||
"TitleExportHistory": "Exporter l'historique",
|
||||
"TitleRefreshHistory": "Rafraîchir l'historique",
|
||||
"TitleSettings": "Réglages",
|
||||
"TotalDuration": "Durée totale",
|
||||
"TotalFilamentUsed": "Total filament utilisé",
|
||||
"TotalJobs": "Nombre travaux",
|
||||
"TotalPrinttime": "Total temps d'impression",
|
||||
"TotalTime": "Durée totale"
|
||||
},
|
||||
"JobQueue": {
|
||||
"AllJobs": "Tous",
|
||||
@@ -359,6 +365,7 @@
|
||||
"AllFiles": "Tous",
|
||||
"Cancel": "Annuler",
|
||||
"ConfigFiles": "Fichiers de configuration",
|
||||
"ConfigRootDirectoryDoesntExists": "Pas trouvé de dossier racine de configuration. Contr^lez l'option \"config_path\" dans la section [file_manager] de la configuration de Moonraker.",
|
||||
"Create": "Créer",
|
||||
"CreateDirectory": "Nouveau dossier",
|
||||
"CreateFile": "Nouveau fichier",
|
||||
@@ -450,22 +457,6 @@
|
||||
}
|
||||
},
|
||||
"Panels": {
|
||||
"ControlPanel": {
|
||||
"ALL": "Tous",
|
||||
"AlternateControls": "Contrôles alternatifs",
|
||||
"Headline": "Contrôles",
|
||||
"InvertX": "Inversion X",
|
||||
"InvertY": "Inversion Y",
|
||||
"InvertZ": "Inversion Z",
|
||||
"PleaseConfigureSteps": "Configurez les pas",
|
||||
"QGL": "QGL",
|
||||
"SettingsInterfaceControl": "Paramètres > Interface > Contrôles",
|
||||
"SetupControls": "Configuration des contrôles",
|
||||
"X": "X",
|
||||
"Y": "Y",
|
||||
"Z": "Z",
|
||||
"ZTilt": "Z Tilt"
|
||||
},
|
||||
"ExtruderControlPanel": {
|
||||
"Allowed": "Permis",
|
||||
"EstimatedExtrusion": "Estimation d'extrusion:",
|
||||
@@ -485,11 +476,10 @@
|
||||
"PressureAdvanceSettings": {
|
||||
"Advance": "avance",
|
||||
"Extruder": "extrudeur",
|
||||
"PressureAdvance": "pression en avance",
|
||||
"SmoothTime": "Temps de lissage"
|
||||
},
|
||||
"Retract": "Rétractation",
|
||||
"Requested": "Demandé",
|
||||
"Retract": "Rétractation",
|
||||
"TooLargeExtrusion": "Extrusion trop grande !",
|
||||
"UnloadFilament": "Déchargement du filament"
|
||||
},
|
||||
@@ -501,7 +491,6 @@
|
||||
"KlippyStatePanel": {
|
||||
"FirmwareRestart": "Redémarrage Firmware",
|
||||
"KlipperCheck": "Contrôlez que le sevice Klipper est actif et qu'un UDS (Unix Domain Socket) est configuré",
|
||||
"KlippyState": "Etat-Klippy",
|
||||
"MoonrakerCannotConnect": "Moonraker n'arrive pas à se connecter à Klipper",
|
||||
"Restart": "Redémarrage"
|
||||
},
|
||||
@@ -585,7 +574,6 @@
|
||||
"TemperaturePanel": {
|
||||
"AutoscaleChart": "Echelle automatique",
|
||||
"Avg": "Moyenne",
|
||||
"Color": "Couleur",
|
||||
"Cooldown": "Refroidissement",
|
||||
"Current": "En cours",
|
||||
"Dataset": {
|
||||
@@ -613,22 +601,12 @@
|
||||
"Absolute": "absolue",
|
||||
"ALL": "Tous",
|
||||
"Headline": "Tête d'impression",
|
||||
"Invalid": "Invalide",
|
||||
"InvertX": "Inversion X",
|
||||
"InvertY": "Inversion Y",
|
||||
"InvertZ": "Inversion Z",
|
||||
"MotorsOff": "Arrêt des moteurs",
|
||||
"OutOfRange": "Hors limites !",
|
||||
"PleaseConfigureSteps": "Configurez Pas",
|
||||
"Position": "Position",
|
||||
"QGL": "QGL",
|
||||
"Relative": "relative",
|
||||
"SettingsInterfaceControl": "Réglages > Interface > Contrôle",
|
||||
"SetupControls": "Réglages",
|
||||
"SpeedFactor": "Facteur de vitesse",
|
||||
"XOffset": "Offset-X",
|
||||
"YOffset": "Offset-Y",
|
||||
"ZOffset": "Offset-Z",
|
||||
"ZTilt": "Z Tilt"
|
||||
},
|
||||
"WebcamPanel": {
|
||||
@@ -636,12 +614,10 @@
|
||||
"FPS": "IPS",
|
||||
"Headline": "Caméra",
|
||||
"NoWebcam": "Pas de caméra disponible. Ajoutez une caméra dans \"Réglages interface\" > \"Caméras\"",
|
||||
"UnknownWebcamService": "Service Caméra inconnu",
|
||||
"UrlNotAvailable": "URL non disponible"
|
||||
"UnknownWebcamService": "Service Caméra inconnu"
|
||||
},
|
||||
"ZoffsetPanel": {
|
||||
"Clear": "Effacer",
|
||||
"CurrentOffset": "Offset actuel",
|
||||
"Headline": "Offset Z",
|
||||
"Later": "Plus tard",
|
||||
"Ok": "Ok",
|
||||
@@ -675,6 +651,7 @@
|
||||
},
|
||||
"SelectPrinterDialog": {
|
||||
"AddPrinter": "Nouvelle d'imprimante",
|
||||
"AddPrintersToJson": "Veuillez ajouter les imprimantes dans le fichier config.json.",
|
||||
"CannotConnectTo": "Connection vers {host} impossible",
|
||||
"ChangePrinter": "Changement d'imprimante",
|
||||
"Connecting": "Connection vers {host}",
|
||||
@@ -771,6 +748,7 @@
|
||||
"GridColor": "Couleur de la grille",
|
||||
"MaxFeed": "Débit maximum",
|
||||
"MinFeed": "Débit minimum",
|
||||
"ProgressColor": "Couleur d'avancement",
|
||||
"ShowAxes": "Affiche les axes"
|
||||
},
|
||||
"GeneralTab": {
|
||||
@@ -780,6 +758,14 @@
|
||||
"CalcEstimateTimeDescription": "En cas de séléction multiple, une moyenne est calculée",
|
||||
"CalcEtaTime": "Calcul du TEA",
|
||||
"CalcEtaTimeDescription": "En cas de séléction multiple, une moyenne est calculée",
|
||||
"CalcPrintProgress": "Calculation progression d'impression",
|
||||
"CalcPrintProgressDescription": "Méthode pour calculer la progression d'impression",
|
||||
"CalcPrintProgressItems": {
|
||||
"Filament": "Filament",
|
||||
"FileAbsolute": "Posiiton (absolue) dans le fichier",
|
||||
"FileRelative": "Posiiton (relative) dans le fichier",
|
||||
"Slicer": "Trancheur (M73)"
|
||||
},
|
||||
"CannotReadJson": "Lecture/interprétation du fichier de sauvegarde impossible.",
|
||||
"DbConsoleHistory": "Historique des commandes de console",
|
||||
"DbHistoryJobs": "Historique des travaux",
|
||||
@@ -863,7 +849,8 @@
|
||||
"Hostname": "Nom d'hôte",
|
||||
"Port": "Port",
|
||||
"RemotePrinters": "Imprimantes",
|
||||
"UpdatePrinter": "Mise à jour imprimante"
|
||||
"UpdatePrinter": "Mise à jour imprimante",
|
||||
"UseConfigJson": "InstanceDB = JSON trouvé dans la configuration. Utilisez le fichier config.json pour modifier la liste des imprimantes."
|
||||
},
|
||||
"TimelapseTab": {
|
||||
"Autorender": "Rendu automatique",
|
||||
@@ -962,9 +949,10 @@
|
||||
"WebcamsTab": {
|
||||
"AddWebcam": "Nouvelle caméra",
|
||||
"CreateWebcam": "Nouvelle caméra",
|
||||
"EditCrowsnestConf": "Edition de crowsnest.conf",
|
||||
"EditWebcam": "Editer caméra",
|
||||
"FlipHorizontally": "Miroir horizontal",
|
||||
"FlipVertically": "Miroir vertical",
|
||||
"FlipWebcam": "Miroir l'image de la webcam:",
|
||||
"Horizontally": "horizontal",
|
||||
"IconBed": "Plateau",
|
||||
"IconCam": "Caméra",
|
||||
"IconDoor": "Porte",
|
||||
@@ -979,6 +967,7 @@
|
||||
"Name": "Nom",
|
||||
"NameAlreadyExists": "Nom existe déjà",
|
||||
"Required": "requis",
|
||||
"Rotate": "Rotation",
|
||||
"SaveWebcam": "ajouter caméra",
|
||||
"Service": "Service",
|
||||
"TargetFPS": "IPS destination",
|
||||
@@ -986,6 +975,7 @@
|
||||
"UrlSnapshot": "URL des instantanés",
|
||||
"UrlStream": "URL du flux",
|
||||
"Uv4lMjpeg": "UV4L-MJPEG",
|
||||
"Vertically": "vertical",
|
||||
"Webcams": "Caméras"
|
||||
}
|
||||
},
|
||||
@@ -999,6 +989,7 @@
|
||||
"Delete": "Effacer",
|
||||
"DeleteDirectory": "Effacer dossier",
|
||||
"DeleteDirectoryQuestion": "Voulez-vous vraiment effacer le dossier \"{name}\" et tout son contenu ?",
|
||||
"DeleteSelectedQuestion": "Voulez-vous vraiment effacer les {count} fichiers sélectionnées ?",
|
||||
"Download": "Téléchargement",
|
||||
"DuplicateLastframe": "Multiplie la dernière image",
|
||||
"Empty": "Pas de fichier vidéo trouvé",
|
||||
|
||||
+4
-8
@@ -480,7 +480,6 @@
|
||||
"KlippyStatePanel": {
|
||||
"FirmwareRestart": "Firmware újraindítása",
|
||||
"KlipperCheck": "Kérjük, ellenőrizd, a Klipper szolgáltatás fut-e, konfigurálva van-e UDS (Unix Domain Socket).",
|
||||
"KlippyState": "Klippy-állapota",
|
||||
"MoonrakerCannotConnect": "A Moonraker nem tud csatlakozni a Klipperhez!",
|
||||
"Restart": "Újraindítás"
|
||||
},
|
||||
@@ -591,8 +590,6 @@
|
||||
"Absolute": "abszolút",
|
||||
"ALL": "MIND",
|
||||
"Headline": "Fúvókafej",
|
||||
"Invalid": "Érvénytelen",
|
||||
"OutOfRange": "Hatértéken túl!",
|
||||
"PleaseConfigureSteps": "Kérlek állítsd be a step értékét",
|
||||
"Position": "Pozíció",
|
||||
"QGL": "QGL",
|
||||
@@ -605,11 +602,9 @@
|
||||
"All": "Mind",
|
||||
"FPS": "FPS",
|
||||
"Headline": "Webkamera",
|
||||
"UnknownWebcamService": "Ismeretlen webkamera szolg.",
|
||||
"UrlNotAvailable": "Az URL nem elérhető"
|
||||
"UnknownWebcamService": "Ismeretlen webkamera szolg."
|
||||
},
|
||||
"ZoffsetPanel": {
|
||||
"CurrentOffset": "aktuális eltolás",
|
||||
"Headline": "Z-eltolás",
|
||||
"Later": "Később",
|
||||
"Ok": "OK",
|
||||
@@ -932,8 +927,8 @@
|
||||
"AddWebcam": "Webkamera hozzáadása",
|
||||
"CreateWebcam": "Webkamera létrehozása",
|
||||
"EditWebcam": "Webkamera szerkesztése",
|
||||
"FlipHorizontally": "Webkamera vízszintes tükrözése",
|
||||
"FlipVertically": "Webkamera függőleges tükrözése",
|
||||
"FlipWebcam": "Webkamera tükrözése:",
|
||||
"Horizontally": "vízszintes",
|
||||
"IconBed": "Asztal",
|
||||
"IconCam": "Kamera",
|
||||
"IconDoor": "Ajtó",
|
||||
@@ -955,6 +950,7 @@
|
||||
"UrlSnapshot": "Snapshot URL-je ",
|
||||
"UrlStream": "Stream URL-je ",
|
||||
"Uv4lMjpeg": "UV4L-MJPEG",
|
||||
"Vertically": "függőleges",
|
||||
"Webcams": "Webkamerák"
|
||||
}
|
||||
},
|
||||
|
||||
+4
-24
@@ -100,13 +100,11 @@
|
||||
"SetupConsole": "Impostazione Console"
|
||||
},
|
||||
"Editor": {
|
||||
"Cancel": "Cancella",
|
||||
"ConfigReference": "Configurazione di Riferimento",
|
||||
"DontSave": "Non salvare",
|
||||
"Downloading": "Scaricando",
|
||||
"FailedSave": " Impossibile caricare {filename} !",
|
||||
"FileReadOnly": "read-only",
|
||||
"Minimap": "Mostra minimappa",
|
||||
"SaveClose": "Salva e Chiudi",
|
||||
"SaveRestart": "Salva e Riavvia",
|
||||
"SuccessfullySaved": "{filename} salvato con successo.",
|
||||
@@ -132,7 +130,6 @@
|
||||
"DeleteDirectory": "Elimina Directory ",
|
||||
"DeleteDirectoryQuestion": "Vuoi davvero eliminare la directory \"{name}\" con tutto il suo contenuto?",
|
||||
"Download": "Scarica",
|
||||
"Downloading": "Scaricando",
|
||||
"EditFile": "Modifica file",
|
||||
"Empty": "Vuoto",
|
||||
"Filament": "Filamento",
|
||||
@@ -169,7 +166,6 @@
|
||||
"SuccessfullyRenamed": "Rinominato {filename} con successo.",
|
||||
"SuccessfullyUploaded": "Caricamento di {filename} riuscito!",
|
||||
"Total": "Totale",
|
||||
"Uploading": "Caricamento",
|
||||
"UploadNewGcode": "Carica nuovo Gcode",
|
||||
"Used": "Utilizzato",
|
||||
"View3D": "Vedi 3D"
|
||||
@@ -374,7 +370,6 @@
|
||||
"PressureAdvanceSettings": {
|
||||
"Advance": "Advance",
|
||||
"Extruder": "Estrusore",
|
||||
"PressureAdvance": "Pressure Advance",
|
||||
"SmoothTime": "Smooth Time"
|
||||
},
|
||||
"Retract": "Retrazione"
|
||||
@@ -387,7 +382,6 @@
|
||||
"KlippyStatePanel": {
|
||||
"FirmwareRestart": "Riavvio Firmware",
|
||||
"KlipperCheck": "Controlla se il servizio Klipper è in esecuzione e se è configurato un UDS (Unix Domain Socket).",
|
||||
"KlippyState": "Stato Klippy",
|
||||
"MoonrakerCannotConnect": "Moonraker non riesce a connettersi a Klipper!",
|
||||
"Restart": "Riavvia"
|
||||
},
|
||||
@@ -395,7 +389,6 @@
|
||||
"Headline": "Impostazioni Macchina",
|
||||
"MotionSettings": {
|
||||
"Acceleration": "Accelerazione",
|
||||
"Deceleration": "Decelerazione",
|
||||
"MaxAccelToDecel": "Max Accel. a Decel.",
|
||||
"SquareCornerVelocity": "Velocità Angolo Retto",
|
||||
"Velocity": "Velocità"
|
||||
@@ -426,13 +419,6 @@
|
||||
"Empty": "Vuoto"
|
||||
}
|
||||
},
|
||||
"MoonrakerFailedComponentsPanel": {},
|
||||
"MoonrakerStatePanel": {
|
||||
"DownloadLog": "Scarica il Registro",
|
||||
"FollowingPluginHasAnError": "Il seguente plugin ha un errore:",
|
||||
"MoonrakerErrorInfo": "È stato rilevato un errore durante il caricamento dei componenti di moonraker. Si prega di controllare il file di registro e risolvere il problema.",
|
||||
"MoonrakerWarnings": "Avvertenze di Moonraker"
|
||||
},
|
||||
"PowerControlPanel": {
|
||||
"Error": "Errore",
|
||||
"Off": "Spento",
|
||||
@@ -472,7 +458,6 @@
|
||||
"TemperaturePanel": {
|
||||
"AutoscaleChart": "Scala automaticamente il Grafico",
|
||||
"Avg": "Medio",
|
||||
"Color": "Colore",
|
||||
"Cooldown": "Raffreddamento",
|
||||
"Current": "Attuale",
|
||||
"Dataset": {
|
||||
@@ -499,15 +484,11 @@
|
||||
"ToolheadControlPanel": {
|
||||
"Absolute": "assoluto",
|
||||
"ALL": "TUTTI",
|
||||
"InvertX": "Inverti X",
|
||||
"InvertY": "Inverti Y",
|
||||
"InvertZ": "Inverti Z",
|
||||
"PleaseConfigureSteps": "Configura gli step",
|
||||
"Position": "Posizione",
|
||||
"QGL": "QGL",
|
||||
"Relative": "relativo",
|
||||
"SettingsInterfaceControl": "Impostazioni> Interfaccia> Controllo",
|
||||
"SetupControls": "Controlli Installazione",
|
||||
"SpeedFactor": "Fattore di velocità",
|
||||
"ZTilt": "Inclinazione Z"
|
||||
},
|
||||
@@ -515,11 +496,9 @@
|
||||
"All": "Tutto",
|
||||
"FPS": "FPS",
|
||||
"Headline": "Webcam",
|
||||
"UnknownWebcamService": "Servizio Webcam Sconosciuto",
|
||||
"UrlNotAvailable": "URL non disponibile"
|
||||
"UnknownWebcamService": "Servizio Webcam Sconosciuto"
|
||||
},
|
||||
"ZoffsetPanel": {
|
||||
"CurrentOffset": "offset corrente",
|
||||
"Headline": "Z-Offset",
|
||||
"Later": "Dopo",
|
||||
"Ok": "OK",
|
||||
@@ -815,8 +794,8 @@
|
||||
"AddWebcam": "aggiungi webcam",
|
||||
"CreateWebcam": "Crea Webcam",
|
||||
"EditWebcam": "Modifica Webcam",
|
||||
"FlipHorizontally": "Gira webcam orizzontalmente",
|
||||
"FlipVertically": "Gira webcam verticalmente",
|
||||
"FlipWebcam": "Specchio dell'immagine della webcam:",
|
||||
"Horizontally": "orizzontalmente",
|
||||
"IconBed": "Letto",
|
||||
"IconCam": "Cam",
|
||||
"IconDoor": "Porta",
|
||||
@@ -838,6 +817,7 @@
|
||||
"UrlSnapshot": "URL Snaphot",
|
||||
"UrlStream": "URL Stream",
|
||||
"Uv4lMjpeg": "UV4L-MJPEG",
|
||||
"Vertically": "verticalmente",
|
||||
"Webcams": "Webcam"
|
||||
}
|
||||
},
|
||||
|
||||
+62
-9
@@ -107,6 +107,17 @@
|
||||
"UpdatingDone": "{software}完了!"
|
||||
}
|
||||
},
|
||||
"BedScrews": {
|
||||
"Abort": "中止",
|
||||
"Accept": "確認",
|
||||
"Adjusted": "調整済み",
|
||||
"Description": "現在のスクリューの調整が済んだら<b>調整済み</b>をクリックしてください。<b>確認</b>をクリックすると調整せずに先に進みます。",
|
||||
"Headline": "ベッドスクリュー",
|
||||
"ScrewAccepted": "スクリュー確認済み",
|
||||
"ScrewIndex": "スクリュー番号",
|
||||
"ScrewName": "スクリュー名",
|
||||
"ScrewOutput": "{current}/{max}"
|
||||
},
|
||||
"ConnectionDialog": {
|
||||
"CannotConnectTo": "Moonraker({host})に接続できません",
|
||||
"CheckMoonrakerLog": "このメッセージが繰り返し表示される場合は、以下のログファイルを参照してください。:",
|
||||
@@ -181,6 +192,8 @@
|
||||
"GCodeFiles": "Gコードファイル",
|
||||
"GcodesRootDirectoryDoesntExists": "Gコードディレクトリが見つかりませんでした。Klipperの設定[virtual_sdcard]セクションの\"path\"オプションを確認してください。",
|
||||
"HiddenFiles": "隠し属性ファイル",
|
||||
"InvalidNameAlreadyExists": "名前は既に存在します。他の名前をつけてください。",
|
||||
"InvalidNameEmpty": "名前の入力は空であってはなりません!",
|
||||
"LastEndTime": "直近の終了時刻",
|
||||
"LastFilamentUsed": "直近の使用量",
|
||||
"LastModified": "最終更新",
|
||||
@@ -289,7 +302,6 @@
|
||||
"AllJobs": "全ジョブ",
|
||||
"AvgPrinttime": "平均印刷時間",
|
||||
"Cancel": "取り消し",
|
||||
"ChamberTemp": "チャンバー温度",
|
||||
"CreateNote": "メモ作成",
|
||||
"Delete": "削除",
|
||||
"DeleteSelectedQuestion": "選択された {count}個のジョブを削除します。よろしいですか?",
|
||||
@@ -456,6 +468,12 @@
|
||||
"UpToDate": "最新の状態"
|
||||
}
|
||||
},
|
||||
"ManualProbe": {
|
||||
"Abort": "中止",
|
||||
"Accept": "確認",
|
||||
"Advanced": "アドバンスド",
|
||||
"Headline": "手動プローブ"
|
||||
},
|
||||
"Panels": {
|
||||
"ExtruderControlPanel": {
|
||||
"Allowed": "許可",
|
||||
@@ -491,9 +509,9 @@
|
||||
"KlippyStatePanel": {
|
||||
"FirmwareRestart": "ファームウェア再始動",
|
||||
"KlipperCheck": "Klipperサービスが動いていて、UDS (Unix Domain Socket)が設定されているかどうか確認してください。",
|
||||
"KlippyState": "Klippy-State",
|
||||
"MoonrakerCannotConnect": "MoonrakerはKlipperに接続できません!",
|
||||
"Restart": "再始動"
|
||||
"Restart": "再始動",
|
||||
"ServiceReports": "{service} レポート"
|
||||
},
|
||||
"MachineSettingsPanel": {
|
||||
"Headline": "機器設定",
|
||||
@@ -523,6 +541,12 @@
|
||||
},
|
||||
"MiscellaneousPanel": {
|
||||
"Headline": "その他",
|
||||
"Light": {
|
||||
"Blue": "青",
|
||||
"Green": "緑",
|
||||
"Red": "赤",
|
||||
"White": "白"
|
||||
},
|
||||
"RunoutSensor": {
|
||||
"Detected": "検出",
|
||||
"Disabled": "無効",
|
||||
@@ -602,8 +626,6 @@
|
||||
"Absolute": "絶対",
|
||||
"ALL": "すべて",
|
||||
"Headline": "ツールヘッド",
|
||||
"Invalid": "無効",
|
||||
"OutOfRange": "範囲外です!",
|
||||
"PleaseConfigureSteps": "ステップを設定をしてください",
|
||||
"Position": "位置",
|
||||
"QGL": "QGL",
|
||||
@@ -670,7 +692,7 @@
|
||||
"SelectPrinter": "プリンター選択",
|
||||
"TryAgain": "再試行",
|
||||
"UpdatePrinter": "プリンター更新",
|
||||
"YouCanFindMore": "You can find more details at"
|
||||
"YouCanFindMore": "詳細はこちらでご覧になれます"
|
||||
},
|
||||
"Settings": {
|
||||
"Cancel": "取り消し",
|
||||
@@ -755,6 +777,8 @@
|
||||
"ShowAxes": "軸表示"
|
||||
},
|
||||
"GeneralTab": {
|
||||
"12hours": "12時間表示 ({time})",
|
||||
"24hours": "24時間表示 ({time})",
|
||||
"Backup": "バックアップ",
|
||||
"BackupDialog": "バックアップを作成したい項目をすべて選んでください:",
|
||||
"CalcEstimateTime": "推定時間の計算",
|
||||
@@ -770,6 +794,7 @@
|
||||
"Slicer": "スライサー(M73)"
|
||||
},
|
||||
"CannotReadJson": "バックアップファイルの読み込み/解析ができません。",
|
||||
"DateFormat": "日付フォーマット",
|
||||
"DbConsoleHistory": "コンソール履歴",
|
||||
"DbHistoryJobs": "ジョブ履歴",
|
||||
"DbHistoryTotals": "履歴総計",
|
||||
@@ -789,7 +814,8 @@
|
||||
"PrinterName": "プリンター名",
|
||||
"Reset": "初期化",
|
||||
"Restore": "復元",
|
||||
"RestoreDialog": "バックアップから復元したい項目をすべて選んでください:"
|
||||
"RestoreDialog": "バックアップから復元したい項目をすべて選んでください:",
|
||||
"TimeFormat": "時間フォーマット"
|
||||
},
|
||||
"InterfaceSettings": "インターフェース設定",
|
||||
"MacrosTab": {
|
||||
@@ -828,6 +854,30 @@
|
||||
"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": "プリセット",
|
||||
"PresetSubTitle": "赤: {red}, 緑: {green}, 青: {blue}, 白: {white}",
|
||||
"Start": "開始",
|
||||
"StartDescription": "このグループ最初のLEDです。",
|
||||
"UnableToLoadLight": "照明を読み込めませんでした。",
|
||||
"UnableToLoadPreset": "プリセットを読み込めませんでした。"
|
||||
},
|
||||
"PresetsTab": {
|
||||
"AddPreset": "プリセット追加",
|
||||
"Cooldown": "クールダウン",
|
||||
@@ -855,6 +905,7 @@
|
||||
"UpdatePrinter": "プリンター更新",
|
||||
"UseConfigJson": "InstanceDB = JSONが検出されました。プリンターリストはconfig.jsonで変更してください。"
|
||||
},
|
||||
"Store": "保存",
|
||||
"TimelapseTab": {
|
||||
"Autorender": "自動レンダリング",
|
||||
"AutorenderDescription": "有効にすると、タイムラプスビデオは印刷終了すると自動的にレンダリングされます。",
|
||||
@@ -949,13 +1000,14 @@
|
||||
"ShowWebcamInNavigation": "ナビゲーションにカメラを表示",
|
||||
"UiSettings": "UI設定"
|
||||
},
|
||||
"Update": "更新",
|
||||
"WebcamsTab": {
|
||||
"AddWebcam": "カメラ追加",
|
||||
"CreateWebcam": "カメラ作成",
|
||||
"EditCrowsnestConf": "crowsnest.confを編集",
|
||||
"EditWebcam": "カメラ編集",
|
||||
"FlipHorizontally": "カメラ画像を水平反転",
|
||||
"FlipVertically": "カメラ画像を垂直反転",
|
||||
"FlipWebcam": "カメラ画像の反転:",
|
||||
"Horizontally": "水平方向",
|
||||
"IconBed": "ベッド",
|
||||
"IconCam": "カメラ",
|
||||
"IconDoor": "ドア",
|
||||
@@ -978,6 +1030,7 @@
|
||||
"UrlSnapshot": "URL スナップショット",
|
||||
"UrlStream": "URL ストリーム",
|
||||
"Uv4lMjpeg": "UV4L-MJPEG",
|
||||
"Vertically": "垂直方向",
|
||||
"Webcams": "カメラ"
|
||||
}
|
||||
},
|
||||
|
||||
@@ -163,7 +163,6 @@
|
||||
"DeleteDirectoryQuestion": "\"{name}\" 디렉토리와 하위 모든 내용을 삭제하시겠습니까?",
|
||||
"DeleteSelectedQuestion": "선택된 {count}개의 파일을 삭제하시겠습니까?",
|
||||
"Download": "다운로드",
|
||||
"Downloading": "다운로드 중..",
|
||||
"EditFile": "파일 내용 수정",
|
||||
"Empty": "비어있음",
|
||||
"Filament": "필라멘트",
|
||||
@@ -205,7 +204,6 @@
|
||||
"SuccessfullyRenamed": "{filename} 이름 변경 완료",
|
||||
"SuccessfullyUploaded": "{filename} 업로드 완료",
|
||||
"Total": "전체 용량",
|
||||
"Uploading": "업로드 중..",
|
||||
"UploadNewGcode": "G-Code 파일 업로드",
|
||||
"Used": "사용량",
|
||||
"View3D": "3D Gcode 뷰어"
|
||||
@@ -465,9 +463,9 @@
|
||||
"Headline": "압출 제어",
|
||||
"LoadFilament": "필라멘트 압출",
|
||||
"PressureAdvanceSettings": {
|
||||
"Advance": "모서리 압출 제어 [Pressure Advance]",
|
||||
"Advance": "모서리 압출 제어 [PA]",
|
||||
"Extruder": "필라멘트 압출 제어",
|
||||
"SmoothTime": "반응 시간 [Smooth time]"
|
||||
"SmoothTime": "반응 시간 [ST]"
|
||||
},
|
||||
"Requested": "요청됨",
|
||||
"Retract": "필라 퇴출",
|
||||
@@ -482,7 +480,6 @@
|
||||
"KlippyStatePanel": {
|
||||
"FirmwareRestart": "펌웨어 재시작",
|
||||
"KlipperCheck": "Klipper 서비스가 실행 중이고 UDS(Unix Domain Socket)의 구성 확인 또는 클리퍼 재시작을 눌러 주세요",
|
||||
"KlippyState": "Klippy 상태",
|
||||
"MoonrakerCannotConnect": "문래커가 클리퍼로 접속할 수 없습니다!",
|
||||
"Restart": "재시작"
|
||||
},
|
||||
@@ -515,9 +512,9 @@
|
||||
"MiscellaneousPanel": {
|
||||
"Headline": "기타 - 쿨링팬 & 조명 제어",
|
||||
"RunoutSensor": {
|
||||
"Detected": "감지됨",
|
||||
"Detected": "필라멘트 있음",
|
||||
"Disabled": "비활성화됨",
|
||||
"Empty": "비어있음"
|
||||
"Empty": "필라멘트 없음"
|
||||
}
|
||||
},
|
||||
"PowerControlPanel": {
|
||||
@@ -541,7 +538,7 @@
|
||||
"ExcludeObjectHeadline": "출력 제외 대상 선택",
|
||||
"ExcludeObjectText": "\"{name}\"을(를) 제외 하시겠습니까??"
|
||||
},
|
||||
"Filament": "사용 길이",
|
||||
"Filament": "길이",
|
||||
"File": "파일",
|
||||
"Files": "파일",
|
||||
"Flow": "유량",
|
||||
@@ -553,7 +550,7 @@
|
||||
"ObjectHeight": "출력 높이",
|
||||
"PausePrint": "일시 정지",
|
||||
"Print": "출력",
|
||||
"PrintTime": "소요 시간",
|
||||
"PrintTime": "시간",
|
||||
"ReprintJob": "다시 출력",
|
||||
"Requested": "요청됨",
|
||||
"ResumePrint": "작업 재개",
|
||||
@@ -593,8 +590,6 @@
|
||||
"Absolute": "절대 좌표",
|
||||
"ALL": "전체",
|
||||
"Headline": "툴 헤드 제어",
|
||||
"Invalid": "무효",
|
||||
"OutOfRange": "범위 초과!",
|
||||
"PleaseConfigureSteps": "steps를 설정해 주세요",
|
||||
"Position": "좌표 유형",
|
||||
"QGL": "쿼드 갠트리 레벨",
|
||||
@@ -701,12 +696,12 @@
|
||||
"MaximumValuesVisibility": "가시성을 극대화하기 위해 {maximum}의 값을 최대 값으로 사용해 주세요",
|
||||
"MinimumValues": "최소 값: {minimum}",
|
||||
"MotorsOff": "모터 전원 끄기 {isDefault}",
|
||||
"MoveDistancesEInMm": "압출 속도 단위(mm)",
|
||||
"MoveDistancesEInMm": "압출 거리 단위(mm)",
|
||||
"MoveDistancesInMm": "이동 단위(mm)",
|
||||
"MoveDistancesXYInMm": " X & Y축 이동 단위(mm)",
|
||||
"MoveDistancesZInMm": "Z축 이동 단위(mm)",
|
||||
"QuadGantryLevel": "쿼드 갠트리 레벨 {isDefault}",
|
||||
"SpeedEInMms": "압출 거리 단위(mm)",
|
||||
"SpeedEInMms": "압출 속도 단위(mm)",
|
||||
"SpeedXY": "X & Y축 이동 속도",
|
||||
"SpeedZ": "Z축 이동 속도",
|
||||
"Style": "화면 표시 스타일",
|
||||
@@ -934,8 +929,6 @@
|
||||
"AddWebcam": "웹캠 추가",
|
||||
"CreateWebcam": "웹캠 장치 정보 입력",
|
||||
"EditWebcam": "웹캠 장치 정보 수정",
|
||||
"FlipHorizontally": "화면 수평 반전",
|
||||
"FlipVertically": "화면 수직 반전",
|
||||
"IconBed": "베드",
|
||||
"IconCam": "캠",
|
||||
"IconDoor": "도어",
|
||||
+90
-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",
|
||||
"Uploading": "Uploaden"
|
||||
"UploadPrint": "Upload & Print"
|
||||
},
|
||||
"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:",
|
||||
@@ -181,6 +192,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 +206,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",
|
||||
@@ -230,8 +243,8 @@
|
||||
"Max": "Max",
|
||||
"Medium": "Medium",
|
||||
"ReloadRequired": "Herladen nodig",
|
||||
"RenderQuality": "Render kwaliteit",
|
||||
"Rendering": "Renderen",
|
||||
"RenderQuality": "Render kwaliteit",
|
||||
"ShowObjectSelection": "Toon object selectie",
|
||||
"ShowToolhead": "Toon Toolhead",
|
||||
"ShowTravelMoves": "Toon bewegingen",
|
||||
@@ -253,8 +266,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?",
|
||||
@@ -332,13 +345,13 @@
|
||||
"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"
|
||||
},
|
||||
"TitleExportHistory": "Export geschiedenis",
|
||||
@@ -400,8 +413,8 @@
|
||||
"Endstop": "Endstop",
|
||||
"EndstopInfo": "Druk op de sync-knop rechtsoner om de huidige endstop status te laden.",
|
||||
"Endstops": "Endstops",
|
||||
"TRIGGERED": "GETRIGGERED",
|
||||
"open": "OPEN"
|
||||
"open": "OPEN",
|
||||
"TRIGGERED": "GETRIGGERED"
|
||||
},
|
||||
"LogfilesPanel": {
|
||||
"Logfiles": "Logbestanden"
|
||||
@@ -448,13 +461,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"
|
||||
"Upgrade": "upgrade",
|
||||
"UpToDate": "up-to-date"
|
||||
}
|
||||
},
|
||||
"ManualProbe": {
|
||||
"Abort": "annuleer",
|
||||
"Accept": "accepteer",
|
||||
"Advanced": "Geavanceerd",
|
||||
"Headline": "Handmatige Probe"
|
||||
},
|
||||
"Panels": {
|
||||
"ExtruderControlPanel": {
|
||||
"Allowed": "Toegestaan",
|
||||
@@ -490,9 +509,9 @@
|
||||
"KlippyStatePanel": {
|
||||
"FirmwareRestart": "Firmware Herstart",
|
||||
"KlipperCheck": "Controleer of de Klipper service draait en een UDS (Unix Domain Socket) geconfigureerd is.",
|
||||
"KlippyState": "Klippy-Status",
|
||||
"MoonrakerCannotConnect": "Moonraker kan niet met Klipper verbinden!",
|
||||
"Restart": "Herstart"
|
||||
"Restart": "Herstart",
|
||||
"ServiceReports": "{service} rapportages"
|
||||
},
|
||||
"MachineSettingsPanel": {
|
||||
"Headline": "Machine instellingen",
|
||||
@@ -507,12 +526,6 @@
|
||||
"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",
|
||||
@@ -520,8 +533,20 @@
|
||||
"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",
|
||||
@@ -538,16 +563,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?",
|
||||
"Excluded": "Uitgesloten"
|
||||
"ExcludeObjectText": "Weet je zeker dat je \"{name}\" wil uitsluiten?"
|
||||
},
|
||||
"Filament": "Filament",
|
||||
"File": "Bestand",
|
||||
@@ -593,13 +618,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})",
|
||||
"TemperaturesInChart": "Temperatuur [°C]"
|
||||
"TempTooLow": "Temperatuur te laag voor {name}! (min: {min})"
|
||||
},
|
||||
"ToolheadControlPanel": {
|
||||
"ALL": "ALLES",
|
||||
"Absolute": "absoluut",
|
||||
"ALL": "ALLES",
|
||||
"Headline": "Toolhead",
|
||||
"PleaseConfigureSteps": "Configureer steps",
|
||||
"Position": "Positie",
|
||||
@@ -752,6 +777,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",
|
||||
@@ -767,6 +794,7 @@
|
||||
"Slicer": "Slicer (M73)"
|
||||
},
|
||||
"CannotReadJson": "Kan het backup bestand niet lezen/verwerken. ",
|
||||
"DateFormat": "Datumformaat",
|
||||
"DbConsoleHistory": "Console Geschiedenis",
|
||||
"DbHistoryJobs": "Geschiedenis Jobs",
|
||||
"DbHistoryTotals": "Geschiedenis Totalen",
|
||||
@@ -786,7 +814,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": {
|
||||
@@ -798,8 +827,8 @@
|
||||
"CountMacros": "geen Macros toegevoegd | {count} Macro | {count} Macros",
|
||||
"Custom": "custom",
|
||||
"CustomColor": "Custom Kleur",
|
||||
"DeleteMacroFromGroup": "Verwijder macro uit groep.",
|
||||
"DeletedMacro": "Verwijderde macro",
|
||||
"DeleteMacroFromGroup": "Verwijder macro uit groep.",
|
||||
"EditGroup": "Bewerk groep",
|
||||
"Error": "fout",
|
||||
"Expert": "Expert",
|
||||
@@ -809,10 +838,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",
|
||||
@@ -825,6 +854,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.",
|
||||
"Groups": "Groepen",
|
||||
"GroupSubTitle": "Start: {start}, Einde: {end}",
|
||||
"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",
|
||||
@@ -852,6 +904,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",
|
||||
@@ -859,6 +912,8 @@
|
||||
"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",
|
||||
@@ -874,12 +929,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",
|
||||
@@ -915,9 +970,7 @@
|
||||
"VariableFpsMax": "Variabele FPS max",
|
||||
"VariableFpsMaxDescription": "",
|
||||
"VariableFpsMin": "Variabele FPS max",
|
||||
"VariableFpsMinDescription": "",
|
||||
"duplicatelastframe": "duplicatelastframe",
|
||||
"duplicatelastframeDescription": "Herhaal het laatste frame aan het eind van de video"
|
||||
"VariableFpsMinDescription": ""
|
||||
},
|
||||
"UiSettingsTab": {
|
||||
"BoolBigThumbnail": "Grote thumbnail",
|
||||
@@ -946,13 +999,14 @@
|
||||
"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",
|
||||
"FlipHorizontally": "Flip webcam horizontaal",
|
||||
"FlipVertically": "Flip webcam verticaal",
|
||||
"FlipWebcam": "Flip webcam beeld:",
|
||||
"Horizontally": "horizontaal",
|
||||
"IconBed": "Bed",
|
||||
"IconCam": "Camera",
|
||||
"IconDoor": "Deur",
|
||||
@@ -975,6 +1029,7 @@
|
||||
"UrlSnapshot": "URL Snapshot",
|
||||
"UrlStream": "URL Stream",
|
||||
"Uv4lMjpeg": "UV4L-MJPEG",
|
||||
"Vertically": "verticaal",
|
||||
"Webcams": "Webcams"
|
||||
}
|
||||
},
|
||||
|
||||
+4
-38
@@ -131,13 +131,11 @@
|
||||
}
|
||||
},
|
||||
"Editor": {
|
||||
"Cancel": "Anuluj",
|
||||
"ConfigReference": "Wzór konfiguracji",
|
||||
"DontSave": "Nie zapisuj",
|
||||
"Downloading": "Pobieranie",
|
||||
"FailedSave": "{filename} nie mógł zostać wgrany!",
|
||||
"FileReadOnly": "Tylko do odczytu",
|
||||
"Minimap": "Pokaż minimapę",
|
||||
"SaveClose": "Zapisz i zamknij",
|
||||
"SaveRestart": "Zapisz i uruchom ponownie",
|
||||
"SuccessfullySaved": "{filename} pomyślnie zapisano.",
|
||||
@@ -164,7 +162,6 @@
|
||||
"DeleteDirectoryQuestion": "Czy na pewno chcesz usunąć katalog \"{name}\" z całą jej zawartością?",
|
||||
"DeleteSelectedQuestion": "Czy na pewno chcesz usunąć {count} plików?",
|
||||
"Download": "Pobierz",
|
||||
"Downloading": "Pobieranie",
|
||||
"EditFile": "Edytuj plik",
|
||||
"Empty": "Puste",
|
||||
"Filament": "Filament",
|
||||
@@ -206,7 +203,6 @@
|
||||
"SuccessfullyRenamed": "Pomyślnie zmieniono nazwę {filename}.",
|
||||
"SuccessfullyUploaded": "Wgranie {filename} zakończono pomyślnie!",
|
||||
"Total": "Łącznie",
|
||||
"Uploading": "Wgrywanie",
|
||||
"UploadNewGcode": "Wgraj nowy G-Code",
|
||||
"Used": "Użyte",
|
||||
"View3D": "Zobacz w 3D"
|
||||
@@ -449,22 +445,6 @@
|
||||
}
|
||||
},
|
||||
"Panels": {
|
||||
"ControlPanel": {
|
||||
"ALL": "Wszystkie",
|
||||
"AlternateControls": "Alternatywne sterowanie",
|
||||
"Headline": "Sterowanie",
|
||||
"InvertX": "Odwróć oś X",
|
||||
"InvertY": "Odwróć oś Y",
|
||||
"InvertZ": "Odwróć oś Z",
|
||||
"PleaseConfigureSteps": "Proszę skonfigurować kroki",
|
||||
"QGL": "QGL",
|
||||
"SettingsInterfaceControl": "Ustawienia > Interfejs > Sterowanie",
|
||||
"SetupControls": "Setup sterowania",
|
||||
"X": "X",
|
||||
"Y": "Y",
|
||||
"Z": "Z",
|
||||
"ZTilt": "Nachylenie osi Z"
|
||||
},
|
||||
"ExtruderControlPanel": {
|
||||
"Allowed": "Zezwolone",
|
||||
"EstimatedExtrusion": "Przewidywana ekstruzja:",
|
||||
@@ -484,7 +464,6 @@
|
||||
"PressureAdvanceSettings": {
|
||||
"Advance": "Wzrost nacisku",
|
||||
"Extruder": "Ekstruder",
|
||||
"PressureAdvance": "Ustawienia nacisku",
|
||||
"SmoothTime": "Czas wygładzania"
|
||||
},
|
||||
"Requested": "Wymagane",
|
||||
@@ -500,7 +479,6 @@
|
||||
"KlippyStatePanel": {
|
||||
"FirmwareRestart": "Ponowne uruchomienie oprogramowania",
|
||||
"KlipperCheck": "Sprawdź , czy Klipper jest uruchomiony oraz czy UDS (Unix Domain Socket) został skonfigurowany poprawnie.",
|
||||
"KlippyState": "Status Klippera",
|
||||
"MoonrakerCannotConnect": "Moonraker nie może połączyć się z Klipperem!",
|
||||
"Restart": "Ponowne uruchomienie"
|
||||
},
|
||||
@@ -584,7 +562,6 @@
|
||||
"TemperaturePanel": {
|
||||
"AutoscaleChart": "Autoskaluj wykres",
|
||||
"Avg": "Śred.",
|
||||
"Color": "Kolor",
|
||||
"Cooldown": "Chłodzenie",
|
||||
"Current": "Aktualna",
|
||||
"Dataset": {
|
||||
@@ -612,22 +589,12 @@
|
||||
"Absolute": "Absolutna",
|
||||
"ALL": "WSZYSTKIE",
|
||||
"Headline": "Sterowanie drukarką",
|
||||
"Invalid": "Nieprawidłowe",
|
||||
"InvertX": "Odwróć oś X",
|
||||
"InvertY": "Odwróć oś Y",
|
||||
"InvertZ": "Odwróć oś Z",
|
||||
"MotorsOff": "Wyłączenie silników",
|
||||
"OutOfRange": "Poza zasięgiem!",
|
||||
"PleaseConfigureSteps": "Proszę skonfigurować kroki",
|
||||
"Position": "Pozycja",
|
||||
"QGL": "QGL",
|
||||
"Relative": "względna",
|
||||
"SettingsInterfaceControl": "Ustawienia > Interfejs > Konfiguracja",
|
||||
"SetupControls": "Konfiguracja sterowania",
|
||||
"SpeedFactor": "Wartość prędkości",
|
||||
"XOffset": "X-Offset",
|
||||
"YOffset": "Y-Offset",
|
||||
"ZOffset": "Z-Offset",
|
||||
"ZTilt": "Z-Tilt"
|
||||
},
|
||||
"WebcamPanel": {
|
||||
@@ -635,12 +602,10 @@
|
||||
"FPS": "Kl/S",
|
||||
"Headline": "Kamera internetowa",
|
||||
"NoWebcam": "Brak dostępnej kamery. Dodaj kamerę w \"Ustawienia Interfejsu\" -> \"Kamera Internetowa\".",
|
||||
"UnknownWebcamService": "Nieznana usługa kamery",
|
||||
"UrlNotAvailable": "URL niedostępny"
|
||||
"UnknownWebcamService": "Nieznana usługa kamery"
|
||||
},
|
||||
"ZoffsetPanel": {
|
||||
"Clear": "Wyczyść",
|
||||
"CurrentOffset": "Aktualne przesunięcie",
|
||||
"Headline": "Przesunięcie osi Z",
|
||||
"Later": "Później",
|
||||
"Ok": "Okej",
|
||||
@@ -963,8 +928,8 @@
|
||||
"AddWebcam": "Dodaj kamerę",
|
||||
"CreateWebcam": "Stwórz kamerę",
|
||||
"EditWebcam": "Edytuj kamerę",
|
||||
"FlipHorizontally": "Odwróć widok kamery w poziomie",
|
||||
"FlipVertically": "Odwróć widok kamery w pionie",
|
||||
"FlipWebcam": "Odwróć widok kamery:",
|
||||
"Horizontally": "poziomo",
|
||||
"IconBed": "Stół",
|
||||
"IconCam": "Kamera",
|
||||
"IconDoor": "Drzwi",
|
||||
@@ -986,6 +951,7 @@
|
||||
"UrlSnapshot": "Migawka URL",
|
||||
"UrlStream": "Transmisja po URL",
|
||||
"Uv4lMjpeg": "UV4L-MJPEG",
|
||||
"Vertically": "pionowo",
|
||||
"Webcams": "Kamery"
|
||||
}
|
||||
},
|
||||
|
||||
+17
-84
@@ -131,13 +131,11 @@
|
||||
}
|
||||
},
|
||||
"Editor": {
|
||||
"Cancel": "Отмена",
|
||||
"ConfigReference": "Справочник по конфигурации",
|
||||
"DontSave": "Не сохранять",
|
||||
"Downloading": "Загрузка",
|
||||
"FailedSave": "{filename} не удалось загрузить!",
|
||||
"FileReadOnly": "только для чтения",
|
||||
"Minimap": "Показать минимум",
|
||||
"SaveClose": "Сохранить и закрыть",
|
||||
"SaveRestart": "Сохранить и перезапустить",
|
||||
"SuccessfullySaved": "{filename} успешно сохранено.",
|
||||
@@ -164,7 +162,6 @@
|
||||
"DeleteDirectoryQuestion": "Вы действительно хотите удалить каталог \"{name}\" со всем его содержимым?",
|
||||
"DeleteSelectedQuestion": "Вы действительно хотите удалить {count} выбранных файлов?",
|
||||
"Download": "Скачать",
|
||||
"Downloading": "Загрузка",
|
||||
"EditFile": "Редактировать файл",
|
||||
"Empty": "Пустой",
|
||||
"Filament": "Филамент",
|
||||
@@ -206,7 +203,6 @@
|
||||
"SuccessfullyRenamed": "Успешное переименование {filename}.",
|
||||
"SuccessfullyUploaded": "Загрузка {filename} успешна!",
|
||||
"Total": "Всего: ",
|
||||
"Uploading": "Загрузить",
|
||||
"UploadNewGcode": "Загрузить новый Gcode",
|
||||
"Used": "Использует: ",
|
||||
"View3D": "3D просмотр"
|
||||
@@ -319,20 +315,13 @@
|
||||
"Save": "сохранить",
|
||||
"Search": "Поиск",
|
||||
"SelectedFilamentUsed": "Выбранный используемый материал",
|
||||
"SelectedJobs": "Избранные вакансии",
|
||||
"SelectedPrinttime": "Выбранное время печати",
|
||||
"Slicer": "Slicer",
|
||||
"SlicerVersion": "Slicer Версия",
|
||||
"StartTime": "Время начала",
|
||||
"Statistics": "Статистика",
|
||||
"Status": "Статус",
|
||||
"TitleRefreshHistory": "Обновить историю",
|
||||
"TitleSettings": "Настройки",
|
||||
"TotalDuration": "Общее время",
|
||||
"TotalFilamentUsed": "Общая используемая нить",
|
||||
"TotalJobs": "Всего отпечатков",
|
||||
"TotalPrinttime": "Общее время печати",
|
||||
"TotalTime": "Общее время",
|
||||
"SelectedJobs": "Избранные вакансии",
|
||||
"SelectedPrinttime": "Выбранное время печати",
|
||||
"StatusValues": {
|
||||
"cancelled": "Отменено",
|
||||
"completed": "Завершено",
|
||||
@@ -342,7 +331,14 @@
|
||||
"klippy_shutdown": "Клиппи отключение",
|
||||
"server_exit": "Выход сервера"
|
||||
},
|
||||
"TitleExportHistory": "История экспорта"
|
||||
"TitleExportHistory": "История экспорта",
|
||||
"TitleRefreshHistory": "Обновить историю",
|
||||
"TitleSettings": "Настройки",
|
||||
"TotalDuration": "Общее время",
|
||||
"TotalFilamentUsed": "Общая используемая нить",
|
||||
"TotalJobs": "Всего отпечатков",
|
||||
"TotalPrinttime": "Общее время печати",
|
||||
"TotalTime": "Общее время"
|
||||
},
|
||||
"JobQueue": {
|
||||
"AllJobs": "Все заказы",
|
||||
@@ -449,22 +445,6 @@
|
||||
}
|
||||
},
|
||||
"Panels": {
|
||||
"ControlPanel": {
|
||||
"ALL": "ВСЕ",
|
||||
"AlternateControls": "Альтернативные средства управления",
|
||||
"Headline": "Управление",
|
||||
"InvertX": "Инвертировать X",
|
||||
"InvertY": "Инвертировать Y",
|
||||
"InvertZ": "Инвертировать Z",
|
||||
"PleaseConfigureSteps": "Пожалуйста, настройте шаги",
|
||||
"QGL": "QGL",
|
||||
"SettingsInterfaceControl": "Настройки > Интерфейс > Управление",
|
||||
"SetupControls": "Элементы управления настройками",
|
||||
"X": "X",
|
||||
"Y": "Y",
|
||||
"Z": "Z",
|
||||
"ZTilt": "Z Наклон"
|
||||
},
|
||||
"ExtruderControlPanel": {
|
||||
"Allowed": "Разрешено",
|
||||
"EstimatedExtrusion": "Предполагаемая экструзия:",
|
||||
@@ -480,15 +460,14 @@
|
||||
"UnretractSpeed": "Скорость выдвижения"
|
||||
},
|
||||
"Headline": "Экструдер",
|
||||
"Retract": "Въехать",
|
||||
"LoadFilament": "Нагрузочная нить",
|
||||
"PressureAdvanceSettings": {
|
||||
"Advance": "Аванс",
|
||||
"Extruder": "Экструдер",
|
||||
"PressureAdvance": "Опережение давления",
|
||||
"SmoothTime": "Плавное время"
|
||||
},
|
||||
"Requested": "Запрошено",
|
||||
"Retract": "Въехать",
|
||||
"TooLargeExtrusion": "Экструзия слишком велика!",
|
||||
"UnloadFilament": "Выгрузить нить"
|
||||
},
|
||||
@@ -500,8 +479,6 @@
|
||||
"KlippyStatePanel": {
|
||||
"FirmwareRestart": "Перезапуск прошивки",
|
||||
"KlipperCheck": "Проверьте, запущена ли служба Klipper и настроен ли UDS (Unix Domain Socket).",
|
||||
"KlippyInfo": "Moonraker не может подключиться к Klippy!\nPlease и проверить, запущен ли сервис Klipper и настроен ли UDS (Unix Domain Socket).",
|
||||
"KlippyState": "Klippy-Статус",
|
||||
"MoonrakerCannotConnect": "Moonraker не может соединиться с Клиппером!",
|
||||
"Restart": "Перезапустить"
|
||||
},
|
||||
@@ -509,7 +486,6 @@
|
||||
"Headline": "Настройки машины",
|
||||
"MotionSettings": {
|
||||
"Acceleration": "Ускорение",
|
||||
"Deceleration": "Замедление",
|
||||
"MaxAccelToDecel": "Макс. ускорение - замедление.",
|
||||
"SquareCornerVelocity": "Угловая скорость",
|
||||
"Velocity": "Скорость"
|
||||
@@ -520,13 +496,9 @@
|
||||
"Send": "отправить"
|
||||
},
|
||||
"MiniconsolePanel": {
|
||||
"Console": "Консоль",
|
||||
"CustomFilters": "Пользовательские фильтры",
|
||||
"Empty": "Пустой",
|
||||
"Headline": "Консоль",
|
||||
"HideTemperatures": "Скрытые температуры",
|
||||
"HideTimelapse": "Скрыть таймлапс",
|
||||
"Send": "Отправить",
|
||||
"SendCode": "Отправьте код...",
|
||||
"SetupConsole": "Настройка консоли "
|
||||
},
|
||||
@@ -537,28 +509,12 @@
|
||||
"MoreInformation": "дополнительные сведения"
|
||||
},
|
||||
"MiscellaneousPanel": {
|
||||
"ExtrusionFactor": "коэффициент экструзии",
|
||||
"Headline": "Разное",
|
||||
"Miscellaneous": "Другое",
|
||||
"PrintSettings": "Настройки печати",
|
||||
"RunoutSensor": {
|
||||
"Detected": "обнаружено",
|
||||
"Disabled": "отключено",
|
||||
"Empty": "Пустой"
|
||||
},
|
||||
"SpeedFactor": "Коэффициент скорости"
|
||||
},
|
||||
"MoonrakerFailedComponentsPanel": {
|
||||
"DownloadLog": "Скачать протокол",
|
||||
"FollowingPluginHasAnError": "Следующий плагин имеет ошибку:",
|
||||
"MoonrakerErrorInfo": "Ошибка была обнаружена при загрузке компонентов Moonraker. Пожалуйста, проверьте лог-файл и устраните проблему.",
|
||||
"MoonrakerFailedComponents": "Фантастические компоненты для лунохода"
|
||||
},
|
||||
"MoonrakerStatePanel": {
|
||||
"DownloadLog": "Скачать журнал",
|
||||
"FollowingPluginHasAnError": "В следующем плагине возникла ошибка:",
|
||||
"MoonrakerErrorInfo": "При загрузке компонентов moonraker была обнаружена ошибка. Пожалуйста, проверьте лог-файл и устраните проблему.",
|
||||
"MoonrakerWarnings": "Предупреждения Moonraker"
|
||||
}
|
||||
},
|
||||
"PowerControlPanel": {
|
||||
"Error": "Ошибка",
|
||||
@@ -606,7 +562,6 @@
|
||||
"TemperaturePanel": {
|
||||
"AutoscaleChart": "Автомасштабируемая диаграмма",
|
||||
"Avg": "средний",
|
||||
"Color": "Цвет",
|
||||
"Cooldown": "Охлаждение",
|
||||
"Current": "Текущий",
|
||||
"Dataset": {
|
||||
@@ -616,50 +571,30 @@
|
||||
"Temperature": "текущая температура"
|
||||
},
|
||||
"Headline": "Температуры",
|
||||
"InList": "в списке",
|
||||
"Max": "макс.",
|
||||
"Min": "мини",
|
||||
"Name": "Имя",
|
||||
"Presets": "Предпочтения",
|
||||
"SetupTemperatures": "Заданные температуры",
|
||||
"Show": "показать",
|
||||
"ShowChart": "Показать диаграмму",
|
||||
"ShowCurrentTemperatureInChart": "Отображать текущую температуру на диаграмме",
|
||||
"ShowNameInChart": "Показать {name} на графике",
|
||||
"ShowNameInList": "Показать {name} в списке",
|
||||
"ShowPWMPowerInChart": "Отображение мощности ШИМ на диаграмме",
|
||||
"ShowTargetTemperatureInChart": "Индикация заданной температуры на диаграмме",
|
||||
"State": "Статус",
|
||||
"Target": "должен быть",
|
||||
"Temperatures": "Температуры",
|
||||
"TemperaturesInChart": "Температуры [°C]",
|
||||
"TempTooHigh": "Температура слишком высока для {name}! (max: {max})",
|
||||
"TempTooLow": "Температура слишком низкая для {name}! (min: {min})",
|
||||
"UNKNOWN": "ЗНАЕТЕ"
|
||||
"TempTooLow": "Температура слишком низкая для {name}! (min: {min})"
|
||||
},
|
||||
"ToolheadControlPanel": {
|
||||
"Absolute": "Абсолютно",
|
||||
"ALL": "ALL",
|
||||
"Controls": "Контроль",
|
||||
"Headline": "Головка инструмента",
|
||||
"Home": "Home",
|
||||
"Invalid": "Неверный",
|
||||
"InvertX": "X инвертировать",
|
||||
"InvertY": "Y инвертировать",
|
||||
"InvertZ": "Z инвертировать",
|
||||
"Macros": "Макрос",
|
||||
"MotorsOff": "Двигатели выключены",
|
||||
"OutOfRange": "Вне зоны доступа!",
|
||||
"PleaseConfigureSteps": "Пожалуйста, настройте расстояние вращения",
|
||||
"Position": "Позиция",
|
||||
"QGL": "QGL",
|
||||
"Relative": "Инкрементальный",
|
||||
"SettingsInterfaceControl": "Настройки > интерфейс > управление",
|
||||
"SetupControls": "Установить контроль",
|
||||
"SpeedFactor": "Коэффициент скорости",
|
||||
"XOffset": "X-смещение",
|
||||
"YOffset": "Y-смещение",
|
||||
"ZOffset": "Z-смещение",
|
||||
"ZTilt": "Z Наклон"
|
||||
},
|
||||
"WebcamPanel": {
|
||||
@@ -667,13 +602,10 @@
|
||||
"FPS": "FPS",
|
||||
"Headline": "Веб-камера",
|
||||
"NoWebcam": "Нет доступной веб-камеры. Добавьте веб-камеру в разделе \"Настройки интерфейса\" -> \"Веб-камеры\".",
|
||||
"UnknownWebcamService": "Неизвестная веб-камера",
|
||||
"UrlNotAvailable": "URL недоступен",
|
||||
"Webcam": "Веб-камера"
|
||||
"UnknownWebcamService": "Неизвестная веб-камера"
|
||||
},
|
||||
"ZoffsetPanel": {
|
||||
"Clear": "Очистить",
|
||||
"CurrentOffset": "Текущее смещение",
|
||||
"Headline": "Z-смещение",
|
||||
"Later": "Позже",
|
||||
"Ok": "OK",
|
||||
@@ -996,8 +928,8 @@
|
||||
"AddWebcam": "Добавить веб-камеру",
|
||||
"CreateWebcam": "Создать веб-камеру",
|
||||
"EditWebcam": "Редактирование веб-камеры",
|
||||
"FlipHorizontally": "Зеркальное отображение веб-камеры по горизонтали",
|
||||
"FlipVertically": "Зеркальная веб-камера в вертикальном положении",
|
||||
"FlipWebcam": "Зеркальное отображение веб-камеры:",
|
||||
"Horizontally": "горизонтально",
|
||||
"IconBed": "Кровать",
|
||||
"IconCam": "Камера",
|
||||
"IconDoor": "Дверь",
|
||||
@@ -1019,6 +951,7 @@
|
||||
"UrlSnapshot": "URL моментального снимка",
|
||||
"UrlStream": "URL потока",
|
||||
"Uv4lMjpeg": "UV4L-MJPEG",
|
||||
"Vertically": "вертикально",
|
||||
"Webcams": "Веб-камеры"
|
||||
}
|
||||
},
|
||||
|
||||
@@ -122,13 +122,11 @@
|
||||
"SetupConsole": "Installationskonsol"
|
||||
},
|
||||
"Editor": {
|
||||
"Cancel": "Avbryt",
|
||||
"ConfigReference": "Referens för konfiguration",
|
||||
"DontSave": "Spara inte",
|
||||
"Downloading": "Laddar ner",
|
||||
"FailedSave": "{filename} kunde inte laddas upp!",
|
||||
"FileReadOnly": "skrivskyddad",
|
||||
"Minimap": "Visa minikarta",
|
||||
"SaveClose": "Spara & stäng",
|
||||
"SaveRestart": "Spara & Starta om",
|
||||
"SuccessfullySaved": "{filename} sparades.",
|
||||
@@ -154,7 +152,6 @@
|
||||
"DeleteDirectory": "Radera katalog",
|
||||
"DeleteDirectoryQuestion": "Vill du verkligen ta bort katalogen \"{name}\" med allt dess innehåll?",
|
||||
"Download": "Ladda ner",
|
||||
"Downloading": "Laddar ner",
|
||||
"EditFile": "Redigera fil",
|
||||
"Empty": "Tom",
|
||||
"Filament": "Filament",
|
||||
@@ -191,7 +188,6 @@
|
||||
"SuccessfullyRenamed": "{filename} har bytt namn.",
|
||||
"SuccessfullyUploaded": "Uppladdningen av {filename} lyckades!",
|
||||
"Total": "Sammanlagt",
|
||||
"Uploading": "Laddar upp",
|
||||
"UploadNewGcode": "Ladda upp ny G-Code",
|
||||
"Used": "Använt",
|
||||
"View3D": "Visa 3D"
|
||||
@@ -428,41 +424,6 @@
|
||||
}
|
||||
},
|
||||
"Panels": {
|
||||
"ControlPanel": {
|
||||
"ALL": "ALLA",
|
||||
"AlternateControls": "Växla kontroller",
|
||||
"Extrude": "Extrudera",
|
||||
"FeedAmountIn": "Inmatningsmängd in",
|
||||
"FeedrateIn": "Matningshastighet in",
|
||||
"Headline": "Reglage",
|
||||
"HotendTooCold": "Hotend temp. lägre än",
|
||||
"InvertX": "Invertera X",
|
||||
"InvertY": "Invertera Y",
|
||||
"InvertZ": "Invertera Z",
|
||||
"PleaseConfigureSteps": "Vänligen konfigurera steg",
|
||||
"QGL": "QGL",
|
||||
"Retract": "Retract",
|
||||
"SettingsInterfaceControl": "Inställningar > Gränssnitt > Kontroll",
|
||||
"SetupControls": "Konfigurationskontroller",
|
||||
"X": "X",
|
||||
"Y": "Y",
|
||||
"Z": "Z",
|
||||
"ZTilt": "Z Lutning"
|
||||
},
|
||||
"ExtuderControlPanel": {
|
||||
"FirmwareRetractionSettings": {
|
||||
"RetractLength": "Längd för Retract",
|
||||
"RetractSpeed": "Hastighet för Retract",
|
||||
"UnretractExtraLength": "Unretract extra längd",
|
||||
"UnretractSpeed": "Unretract hastighet"
|
||||
},
|
||||
"PressureAdvanceSettings": {
|
||||
"Advance": "Advance",
|
||||
"Extruder": "Extruder",
|
||||
"PressureAdvance": "Pressure Advance",
|
||||
"SmoothTime": "Utjämningstid"
|
||||
}
|
||||
},
|
||||
"FarmPrinterPanel": {
|
||||
"ReconnectToPrinter": "Återanslut",
|
||||
"SwitchToPrinter": "Byt till skrivare",
|
||||
@@ -471,7 +432,6 @@
|
||||
"KlippyStatePanel": {
|
||||
"FirmwareRestart": "Omstart av Firmware",
|
||||
"KlipperCheck": "Kontrollera om Klipper-tjänsten körs och en UDS (Unix Domain Socket) är konfigurerad.",
|
||||
"KlippyState": "Klippy-läge",
|
||||
"MoonrakerCannotConnect": "Moonraker kan inte ansluta till Klipper!",
|
||||
"Restart": "Starta om"
|
||||
},
|
||||
@@ -515,13 +475,7 @@
|
||||
"On": "På",
|
||||
"PowerControl": "Strömstyrning"
|
||||
},
|
||||
"PrintsettingsPanel": {
|
||||
"ExtrusionFactor": "Extruderingsfaktor",
|
||||
"Headline": "Utskriftsinställningar",
|
||||
"SpeedFactor": "Hastighetsfaktor"
|
||||
},
|
||||
"StatusPanel": {
|
||||
"Absolute": "absolut",
|
||||
"CancelPrint": "Avbryt utskrift",
|
||||
"ClearPrintStats": "Rensa utskriftsstatistik",
|
||||
"Difference": "Differens",
|
||||
@@ -542,62 +496,27 @@
|
||||
"Max": "max",
|
||||
"ObjectHeight": "Objekts höjd",
|
||||
"PausePrint": "Pausa utskrift",
|
||||
"Position": "Position",
|
||||
"Print": "Skriv ut",
|
||||
"Relative": "relativ",
|
||||
"ReprintJob": "Skriv ut jobb på nytt",
|
||||
"Requested": "Begärt",
|
||||
"ResumePrint": "Fortsätt utskrift",
|
||||
"Slicer": "Slicer",
|
||||
"Speed": "Hastighet",
|
||||
"Total": "Totalt",
|
||||
"Unknown": "Okänd",
|
||||
"X": "X",
|
||||
"Y": "Y",
|
||||
"Z": "Z"
|
||||
},
|
||||
"ToolsPanel": {
|
||||
"AutoscaleChart": "Autoskala diagram",
|
||||
"Avg": "Genomsnittlig",
|
||||
"Color": "Färg",
|
||||
"Cooldown": "Nedkylning",
|
||||
"Current": "Nuvarande",
|
||||
"Dataset": {
|
||||
"Power": "PWM-effekt",
|
||||
"Speed": "PWM-hastighet",
|
||||
"Target": "måltemperatur",
|
||||
"Temperature": "aktuell temperatur"
|
||||
},
|
||||
"Headline": "Temperaturer",
|
||||
"Max": "max",
|
||||
"Min": "min",
|
||||
"Name": "Namn",
|
||||
"Presets": "Förinställningar",
|
||||
"SetupTemperatures": "Konfigurera temperaturer",
|
||||
"ShowChart": "Visa diagram",
|
||||
"ShowNameInChart": "Visa {name} i diagrammet",
|
||||
"ShowNameInList": "Visa {name} i listan",
|
||||
"State": "Läge",
|
||||
"Target": "Mål",
|
||||
"TemperaturesInChart": "Temperatur [°C]",
|
||||
"TempTooHigh": "För hög temperatur för {name}! (max: {max})",
|
||||
"TempTooLow": "För låg temperatur för {name}! (min: {min})"
|
||||
"Unknown": "Okänd"
|
||||
},
|
||||
"WebcamPanel": {
|
||||
"All": "Alla",
|
||||
"FPS": "FPS",
|
||||
"Headline": "Webbkamera",
|
||||
"NoWebcam": "Ingen webbkamera tillgänglig. Lägg till en webbkamera under \"Gränssnittsinställningar\" -> \"Webbkameror\".",
|
||||
"UnknownWebcamService": "Okänd webbkameratjänst",
|
||||
"UrlNotAvailable": "Webbadressen är inte tillgänglig"
|
||||
"UnknownWebcamService": "Okänd webbkameratjänst"
|
||||
},
|
||||
"ZoffsetPanel": {
|
||||
"CurrentOffset": "aktuell offset",
|
||||
"Headline": "Z-Offset",
|
||||
"Later": "Senare",
|
||||
"Ok": "OK",
|
||||
"Save": "Spara",
|
||||
"SAVE_CONFIG": "SAVE_CONFIG",
|
||||
"SaveInfoDescription": "Den nya z-offset har beräknats och registrerats. Klicka på SAVE_CONFIG för att lagra den nya z-offset i din printer.cfg och starta om Klipper.",
|
||||
"SaveInfoDescriptionPrint": "Den nya Z-offseten har beräknats och registrerats. Efter utskrift, klicka på SAVE_CONFIG i den övre raden för att lagra den i printer.cfg och starta om Klipper.",
|
||||
"SaveInfoHeadline": "Information",
|
||||
@@ -903,8 +822,8 @@
|
||||
"AddWebcam": "lägg till webbkamera",
|
||||
"CreateWebcam": "Skapa webbkamera",
|
||||
"EditWebcam": "Redigera webbkamera",
|
||||
"FlipHorizontally": "Vänd webbkameran horisontellt",
|
||||
"FlipVertically": "Vänd webbkameran vertikalt",
|
||||
"FlipWebcam": "Vänd webbkamerabilden",
|
||||
"Horizontally": "horisontellt",
|
||||
"IconBed": "Bädd",
|
||||
"IconCam": "Kamera",
|
||||
"IconDoor": "Dörr",
|
||||
@@ -926,6 +845,7 @@
|
||||
"UrlSnapshot": "Ögonblicksbild av webbadressen",
|
||||
"UrlStream": "Webbadressström",
|
||||
"Uv4lMjpeg": "UV4L-MJPEG",
|
||||
"Vertically": "vertikalt",
|
||||
"Webcams": "Webbkameror"
|
||||
}
|
||||
},
|
||||
+65
-12
@@ -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?",
|
||||
@@ -289,7 +302,6 @@
|
||||
"AllJobs": "Hepsi",
|
||||
"AvgPrinttime": "Baskı Süresi - Ø",
|
||||
"Cancel": "İptal Et",
|
||||
"ChamberTemp": "Bölme Sıcaklığı",
|
||||
"CreateNote": "Not Oluştur",
|
||||
"Delete": "Sil",
|
||||
"DeleteSelectedQuestion": "Seçilen {count} işi gerçekten silmek istiyor musunuz?",
|
||||
@@ -339,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",
|
||||
@@ -455,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,9 +509,9 @@
|
||||
"KlippyStatePanel": {
|
||||
"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.",
|
||||
"KlippyState": "Klippy-Durumu",
|
||||
"MoonrakerCannotConnect": "Moonraker Klipper'a bağlanamıyor!",
|
||||
"Restart": "Yeniden Başlat"
|
||||
"Restart": "Yeniden Başlat",
|
||||
"ServiceReports": "{service} raporları"
|
||||
},
|
||||
"MachineSettingsPanel": {
|
||||
"Headline": "Makine",
|
||||
@@ -522,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ış",
|
||||
@@ -601,8 +626,6 @@
|
||||
"Absolute": "mutlak",
|
||||
"ALL": "HEPSİ",
|
||||
"Headline": "Araç Başlığı",
|
||||
"Invalid": "Geçersiz",
|
||||
"OutOfRange": "Menzil dışında!",
|
||||
"PleaseConfigureSteps": "Lütfen adımları yapılandırın",
|
||||
"Position": "Pozisyon",
|
||||
"QGL": "QGL",
|
||||
@@ -754,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ı",
|
||||
@@ -769,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ı",
|
||||
@@ -788,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": {
|
||||
@@ -827,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",
|
||||
@@ -854,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.",
|
||||
@@ -948,14 +999,15 @@
|
||||
"ShowWebcamInNavigation": "Web kamerasını navigasyonda göster",
|
||||
"UiSettings": "Arayüz-Ayarları"
|
||||
},
|
||||
"Update": "güncelleme",
|
||||
"WebcamsTab": {
|
||||
"AddWebcam": "web kamerası ekle",
|
||||
"CreateWebcam": "Web Kamerası Oluştur",
|
||||
"EditCrowsnestConf": "crowsnest.conf'u düzenle",
|
||||
"EditWebcam": "Web Kamerası Düzenle",
|
||||
"FlipHorizontally": "Web kamerasını yatay olarak çevirin",
|
||||
"FlipVertically": "Web kamerasını dikey olarak çevirin",
|
||||
"IconBed": "Yatak",
|
||||
"FlipWebcam": "Web kamerasını çevirin:",
|
||||
"Horizontally": "yatay olarak",
|
||||
"IconBed": "Tabla",
|
||||
"IconCam": "Kamera",
|
||||
"IconDoor": "Kapı",
|
||||
"IconFilament": "Filament",
|
||||
@@ -977,6 +1029,7 @@
|
||||
"UrlSnapshot": "URL Anlık Görüntüsü",
|
||||
"UrlStream": "URL Akışı",
|
||||
"Uv4lMjpeg": "UV4L-MJPEG",
|
||||
"Vertically": "dikey olarak",
|
||||
"Webcams": "Web kameraları"
|
||||
}
|
||||
},
|
||||
|
||||
+77
-80
@@ -6,7 +6,7 @@
|
||||
"DismissAll": "Відкинути всі",
|
||||
"KlipperWarnings": {
|
||||
"DeprecatedOption": "Опція '{option}' у розділі '{section}' застаріла і буде видалена у майбутньому випуску.",
|
||||
"DeprecatedOptionHeadline": "ОЗастаріла опція кліппера",
|
||||
"DeprecatedOptionHeadline": "Застаріла опція кліппера",
|
||||
"DeprecatedValue": "Значення '{value}' опції '{option}' у секції '{section}' застаріла і буде видалена у майбутньому випуску.",
|
||||
"DeprecatedValueHeadline": "Застаріле значення Klipper",
|
||||
"KlipperWarning": "Попередження Klipper"
|
||||
@@ -20,7 +20,7 @@
|
||||
},
|
||||
"Never": "ніколи",
|
||||
"NextReboot": "наступне перезавантаження",
|
||||
"NoNotification": "Повідомлення немає",
|
||||
"NoNotification": "Нема Повідомлень",
|
||||
"Notifications": "Повідомлення",
|
||||
"Remind": "Нагадування:"
|
||||
},
|
||||
@@ -61,7 +61,7 @@
|
||||
"SAVE_CONFIG": "ЗБЕРЕЖЕННЯ КОНФІГУРАЦІЇ",
|
||||
"Uploading": "Завантаження",
|
||||
"UploadOfFileSuccessful": "Завантаження {file} успішно!",
|
||||
"UploadPrint": "Завантажити та Друкувати"
|
||||
"UploadPrint": "Завантажити та Друканутити"
|
||||
},
|
||||
"TopCornerMenu": {
|
||||
"Cancel": "Скасувати",
|
||||
@@ -87,13 +87,13 @@
|
||||
}
|
||||
},
|
||||
"HostControl": "Керування хостом",
|
||||
"KlipperControl": "Klipper КОНТРОЛЬ",
|
||||
"KlipperControl": "КОНТРОЛЬ Klipper",
|
||||
"KlipperFirmwareRestart": "Перезапуск прошивки",
|
||||
"KlipperRestart": "Перезавантажити",
|
||||
"PowerDevices": "Живлення Пристрою",
|
||||
"Reboot": "Перезавантажити",
|
||||
"Restart": "Перезапустити",
|
||||
"ServiceControl": "Контроль сервісів",
|
||||
"ServiceControl": "КОНТРОЛЬ Сервісів",
|
||||
"Shutdown": "Вимкнути",
|
||||
"Start": "Старт",
|
||||
"Stop": "Стоп"
|
||||
@@ -155,12 +155,12 @@
|
||||
"Files": {
|
||||
"AddToQueue": "Додати в чергу",
|
||||
"AllFiles": "ВСІ",
|
||||
"BedTemp": "Температура столу.",
|
||||
"BedTemp": "t° Столу.",
|
||||
"Cancel": "Скасувати",
|
||||
"ChamberTemp": "t Камери.",
|
||||
"ChamberTemp": "t° Камери.",
|
||||
"Create": "Створити",
|
||||
"CreateNewDirectory": "Створити нову теку",
|
||||
"CurrentPath": "Поточний шлях",
|
||||
"CurrentPath": "Директорія",
|
||||
"Delete": "Видалити",
|
||||
"DeleteDirectory": "Видалити теку",
|
||||
"DeleteDirectoryQuestion": "Ви дійсно хочете видалити \"{name}\" теку із усім її вмістом?",
|
||||
@@ -168,25 +168,25 @@
|
||||
"Download": "Завантажити",
|
||||
"EditFile": "Редагувати Файл",
|
||||
"Empty": "Порожньо",
|
||||
"ExtruderTemp": "Екструдер Темп.",
|
||||
"ExtruderTemp": "t° Екструдеру.",
|
||||
"Filament": "Пруток",
|
||||
"FilamentName": "Назва Прутка",
|
||||
"FilamentType": "Тип Прутка",
|
||||
"FilamentUsage": "Використано Прутка",
|
||||
"FilamentWeight": "Довжина Прутка",
|
||||
"FilamentWeight": "Вага Прутка",
|
||||
"Files": "Файл",
|
||||
"Filesize": "Розмір файлу",
|
||||
"Filesize": "Розмір",
|
||||
"Free": "Вільно",
|
||||
"FreeDisk": "вільний диск",
|
||||
"GCodeFiles": "Файли G-Code",
|
||||
"GcodesRootDirectoryDoesntExists": "Жодного каталогу G-коду не знайдено. Будь ласка, перевірте опцію \"path\" in the [virtual_sdcard] розділі конфігурації Klipper.",
|
||||
"HiddenFiles": "Приховані файли",
|
||||
"LastEndTime": "Час До Кінця",
|
||||
"LastFilamentUsed": "Останнфй використаний пруток",
|
||||
"LastModified": "Остання модифікація",
|
||||
"LastPrintDuration": "Остання Тривалість Друку",
|
||||
"LastStartTime": "Останній Час Початку",
|
||||
"LastTotalDuration": "Остання Загальна Тривалість",
|
||||
"LastEndTime": "Закінчено",
|
||||
"LastFilamentUsed": "Використано прутку",
|
||||
"LastModified": "Завантажено",
|
||||
"LastPrintDuration": "Тривалість Друку",
|
||||
"LastStartTime": "Час Початку",
|
||||
"LastTotalDuration": "Загальна Тривалість",
|
||||
"LayerHeight": "Висота шару",
|
||||
"Name": "Ім'я",
|
||||
"NewDirectory": "Нова Дерикторія",
|
||||
@@ -198,7 +198,7 @@
|
||||
"PrintTime": "Час Друку",
|
||||
"RefreshCurrentDirectory": "Оновити поточну дирикторію",
|
||||
"Rename": "Перейменувати",
|
||||
"RenameDirectory": "Перейменувати директорыю",
|
||||
"RenameDirectory": "Перейменувати директорію",
|
||||
"RenameFile": "Перейменувати Файл",
|
||||
"Search": "Пошук",
|
||||
"SetupCurrentList": "Поточний список налаштування",
|
||||
@@ -223,12 +223,12 @@
|
||||
"Downloading": "Завантаження",
|
||||
"ForceLineRendering": "Примусова лінійна Візуалізація",
|
||||
"HDRendering": "HD-Візуалізація (круглої екструзії)",
|
||||
"High": "Висота",
|
||||
"High": "Висока",
|
||||
"LoadCurrentFile": "Поточний файл",
|
||||
"LoadLocal": "Локальний файл",
|
||||
"Low": "Низько",
|
||||
"Max": "Максимум",
|
||||
"Medium": "Середній",
|
||||
"Medium": "Середньо",
|
||||
"ReloadRequired": "Потрібно перезавантаження",
|
||||
"Rendering": "Візуалізація",
|
||||
"RenderQuality": "Якість Візуалізації",
|
||||
@@ -289,7 +289,6 @@
|
||||
"AllJobs": "ВСІ",
|
||||
"AvgPrinttime": "Час Друку - Ø",
|
||||
"Cancel": "Скасувати",
|
||||
"ChamberTemp": "Темп. Камери",
|
||||
"CreateNote": "Створити Примітку",
|
||||
"Delete": "Видалити",
|
||||
"DeleteSelectedQuestion": "Ви дійсно хочете видалити {count} вибрану роботу?",
|
||||
@@ -303,8 +302,8 @@
|
||||
"FilamentCalc": "Калькулятор Прутка",
|
||||
"FilamentUsage": "Використаня Прутка",
|
||||
"FilamentUsed": "Використано Прутка",
|
||||
"Filename": "Ім'я Файлу",
|
||||
"Filesize": "Розмір Файлу",
|
||||
"Filename": "Ім'я",
|
||||
"Filesize": "Розмір",
|
||||
"FirstLayerBedTemp": "Темп. столу першого шару.",
|
||||
"FirstLayerExtTemp": "Темп. сопла першого шару",
|
||||
"FirstLayerHeight": "Висота першого шару",
|
||||
@@ -312,13 +311,13 @@
|
||||
"HistoryPrinttimeAVG": "Друк",
|
||||
"JobDetails": "Деталі Роботи",
|
||||
"Jobs": "Робота",
|
||||
"LastModified": "Останній Модифікований",
|
||||
"LastModified": "Дата Створення",
|
||||
"LayerHeight": "Висота Шару",
|
||||
"LongestPrinttime": "Найдовший Час Друку",
|
||||
"Note": "Примітка",
|
||||
"ObjectHeight": "Висота Об'єкта",
|
||||
"PrintDuration": "Час Друку",
|
||||
"PrintHistory": "Істоорія Роздруківок",
|
||||
"PrintHistory": "Історія Роздруківок",
|
||||
"PrintTime": "Час Друку",
|
||||
"PrinttimeAvg": "Час Друку - Ø",
|
||||
"Reprint": "Передрукувати",
|
||||
@@ -338,7 +337,7 @@
|
||||
"error": "Помилкові",
|
||||
"in_progress": "Триває",
|
||||
"klippy_disconnect": "Klippy відключився",
|
||||
"klippy_shutdown": "Klippy вимкнувся",
|
||||
"klippy_shutdown": "Помилка Кліпперу",
|
||||
"Others": "Інші",
|
||||
"server_exit": "Вихід сервера"
|
||||
},
|
||||
@@ -364,12 +363,12 @@
|
||||
"ConfigFilesPanel": {
|
||||
"AllFiles": "ВСІ",
|
||||
"Cancel": "Скасувати",
|
||||
"ConfigFiles": "Конфігурація Файлів",
|
||||
"ConfigFiles": "Конфігураційні файли",
|
||||
"ConfigRootDirectoryDoesntExists": "Не знайдено каталогу конфігурації. Будь ласка, перевірте опцію \"config_path\" у [file_manager] розділі конфігурації Moonraker.",
|
||||
"Create": "Створити",
|
||||
"CreateDirectory": "Створити Диркторію",
|
||||
"CreateFile": "Створити Файл",
|
||||
"CurrentPath": "Поточний шлях",
|
||||
"CurrentPath": "Директорія",
|
||||
"Delete": "Видалити",
|
||||
"DeleteDirectory": "Видалити директорію",
|
||||
"DeleteDirectoryQuestion": "Видалити директорію \"{name}\" і весь її вміст?",
|
||||
@@ -378,14 +377,14 @@
|
||||
"EditFile": "Редагувати файл",
|
||||
"Empty": "Порожньо",
|
||||
"Files": "Файл",
|
||||
"Filesize": "Розмір файлу",
|
||||
"Filesize": "Розмір",
|
||||
"Free": "Вільно",
|
||||
"FreeDisk": "Вільний диск",
|
||||
"FreeDisk": "Вільне Місце",
|
||||
"HiddenFiles": "Приховані файли",
|
||||
"HideBackupFiles": "Приховати резервні файли",
|
||||
"LastModified": "Остання модіфікація",
|
||||
"Name": "Ім'я",
|
||||
"RefreshDirectory": "Оновити Директорію",
|
||||
"RefreshDirectory": "Оновити",
|
||||
"Rename": "Перейменувати",
|
||||
"RenameDirectory": "Перейменувати Директорію",
|
||||
"RenameFile": "Перейменувати файл",
|
||||
@@ -405,27 +404,27 @@
|
||||
"TRIGGERED": "ЗАМКНЕНО"
|
||||
},
|
||||
"LogfilesPanel": {
|
||||
"Logfiles": "Файли журналів"
|
||||
"Logfiles": "Журнали"
|
||||
},
|
||||
"SystemPanel": {
|
||||
"Constants": "Константи",
|
||||
"Cpu": "ЦПУ",
|
||||
"Cpu": "ЦПК",
|
||||
"HostDetails": "Деталі хоста",
|
||||
"LastStats": "Остання статистика",
|
||||
"Load": "Навантаження",
|
||||
"Memory": "ОЗУ",
|
||||
"NoMoreInfos": "Більше немає Infos",
|
||||
"SystemLoad": "Навантаження на Систему",
|
||||
"SystemLoad": "Навантаження системи",
|
||||
"Values": {
|
||||
"Awake": "Прокинутися: {awake}",
|
||||
"Awake": "Пробудження: {awake}",
|
||||
"Bandwidth": "Пропускна здатність: {bandwidth}/s",
|
||||
"Distro": "Дистрибутив: {name} {version_id}",
|
||||
"Frequency": "Частота: {frequency}",
|
||||
"Load": "Навантаження: {load}",
|
||||
"Memory": "ОЗУ: {memory}",
|
||||
"Os": "Операційка: {os}",
|
||||
"Received": "Отриманий: {received}",
|
||||
"Temp": "ТЕМП: {temp}°C",
|
||||
"Received": "Отримано: {received}",
|
||||
"Temp": "t° проц.: {temp}°C",
|
||||
"TempMax": "макс: {temp}°C",
|
||||
"TempMin": "мін: {temp}°C",
|
||||
"Transmitted": "Передано: {transmitted}",
|
||||
@@ -433,7 +432,7 @@
|
||||
}
|
||||
},
|
||||
"UpdatePanel": {
|
||||
"CheckForUpdates": "Перевірте оновлення",
|
||||
"CheckForUpdates": "Перевірити оновлення",
|
||||
"Commits": "Коментар",
|
||||
"CommitsAvailable": "Немає коментарів | {count} доступний коментар | {count} Доступні",
|
||||
"CommitsOnDate": "Коментар від {date}",
|
||||
@@ -461,14 +460,14 @@
|
||||
"Allowed": "Допущений",
|
||||
"EstimatedExtrusion": "Розрахункова екструзія:",
|
||||
"Extrude": "Видавити",
|
||||
"ExtruderTempTooLow": "Екструдер Темп. <",
|
||||
"ExtrusionFactor": "Коефіцієнт екструзії",
|
||||
"ExtruderTempTooLow": " t° екструдера. <",
|
||||
"ExtrusionFactor": "Коефіцієнт ЕКСТРУЗІЇ",
|
||||
"ExtrusionFeedrate": "Екструзійна подача",
|
||||
"FilamentLength": "Довжина прутка",
|
||||
"FilamentLength": "Продавити на",
|
||||
"FirmwareRetractionSettings": {
|
||||
"RetractLength": "Довжина Ретракту",
|
||||
"RetractSpeed": "Швидкість Ретракту",
|
||||
"UnretractExtraLength": "Довжина деретракту",
|
||||
"UnretractExtraLength": "Довжина Деретракту",
|
||||
"UnretractSpeed": "Швидкість Деретракту"
|
||||
},
|
||||
"Headline": "Екструдер",
|
||||
@@ -491,7 +490,6 @@
|
||||
"KlippyStatePanel": {
|
||||
"FirmwareRestart": "Перезапуск Прошивки",
|
||||
"KlipperCheck": "Будь ласка, перевірте, чи працює служба Klipper та налаштована UDS (UNIX домен).",
|
||||
"KlippyState": "Klippy-Стан",
|
||||
"MoonrakerCannotConnect": "Moonraker не може підключитися до Klipper!",
|
||||
"Restart": "Перезапустити"
|
||||
},
|
||||
@@ -522,7 +520,7 @@
|
||||
"MoreInformation": "більше інформації"
|
||||
},
|
||||
"MiscellaneousPanel": {
|
||||
"Headline": "Різна",
|
||||
"Headline": "Різне",
|
||||
"RunoutSensor": {
|
||||
"Detected": "виявлено",
|
||||
"Disabled": "Не активно",
|
||||
@@ -576,7 +574,7 @@
|
||||
"AutoscaleChart": "Автоматичний графік",
|
||||
"Avg": "Avg",
|
||||
"Cooldown": "Охолодження",
|
||||
"Current": "Поточний",
|
||||
"Current": "Поточна t°",
|
||||
"Dataset": {
|
||||
"Power": "ШІМ-потужність",
|
||||
"Speed": "Швидкість ШІМ",
|
||||
@@ -593,23 +591,21 @@
|
||||
"ShowNameInChart": "Показувати {name} у графіку",
|
||||
"ShowNameInList": "Показувати {name} у списку",
|
||||
"State": "Стан",
|
||||
"Target": "Ціль",
|
||||
"Target": "Встановити",
|
||||
"TemperaturesInChart": "Температура [°C]",
|
||||
"TempTooHigh": "Температура занадто висока для{name}! (макс: {max})",
|
||||
"TempTooLow": "Температура занадто низька для {name}! (мін: {min})"
|
||||
},
|
||||
"ToolheadControlPanel": {
|
||||
"Absolute": "абсолютний",
|
||||
"Absolute": "абсолютні",
|
||||
"ALL": "ВСІ",
|
||||
"Headline": "Інструмент",
|
||||
"Invalid": "Недійсний",
|
||||
"OutOfRange": "Поза межами!",
|
||||
"PleaseConfigureSteps": "Будь ласка, налаштуйте кроки",
|
||||
"Position": "Положення",
|
||||
"QGL": "QGL",
|
||||
"Relative": "відносний",
|
||||
"Relative": "відносні",
|
||||
"SettingsInterfaceControl": "Налаштування > Інтерфейс > Контроль",
|
||||
"SpeedFactor": "Коефіцієнт швидкості",
|
||||
"SpeedFactor": "Коефіцієнт ШВИДКОСТІі",
|
||||
"ZTilt": "Z-Нахил"
|
||||
},
|
||||
"WebcamPanel": {
|
||||
@@ -642,9 +638,9 @@
|
||||
},
|
||||
"Router": {
|
||||
"Console": "Консоль",
|
||||
"Dashboard": "Панель приладів",
|
||||
"G-Code Files": "Файли G-Code",
|
||||
"G-Code Viewer": "Переглядач G-Code",
|
||||
"Dashboard": "Панель Керування",
|
||||
"G-Code Files": "Файли друку",
|
||||
"G-Code Viewer": "Візуалізація",
|
||||
"Heightmap": "Карта столу",
|
||||
"History": "Історія",
|
||||
"Machine": "Машина",
|
||||
@@ -725,7 +721,7 @@
|
||||
"ZTiltAdjust": "Налаштування Z-нахилу{isDefault}"
|
||||
},
|
||||
"DashboardTab": {
|
||||
"Dashboard": "Панель приладів",
|
||||
"Dashboard": "Панель керування",
|
||||
"Desktop": "Робочий стіл",
|
||||
"Mobile": "Мобільний",
|
||||
"ResetLayout": "Скидання макета",
|
||||
@@ -737,7 +733,7 @@
|
||||
"ConfirmUnsavedChanges": "Підказувати зберігати чи ніт не збережені зміни",
|
||||
"ConfirmUnsavedChangesDescription": "Якщо ввімкнено, редактор вимагає підтвердження, щоб зберегти, або відкинути внесені зміни. Якщо відключено, зміни не зберігаються.",
|
||||
"Editor": "Редактор",
|
||||
"KlipperRestartMethod": "Klipper метод перезапуску",
|
||||
"KlipperRestartMethod": "Метод перезапуску Klipper",
|
||||
"KlipperRestartMethodDescription": "Виберіть, який метод перезавантаження буде використовуватися на 'Зберегти та перезапустити' під час редагування файлів конфігурації Klipper..",
|
||||
"MoonrakerRestartInstance": "Інстанція перезапуску Moonraker",
|
||||
"MoonrakerRestartInstanceDescription": "Виберіть, яка послуга Moonraker перезапуститься на 'Зберегти та перезапустити' під час редагування файлів конфігурації Moonraker.",
|
||||
@@ -746,7 +742,7 @@
|
||||
},
|
||||
"GCodeViewerTab": {
|
||||
"BackgroundColor": "Колір фону",
|
||||
"ExtruderColor": "Кольор Екструдеру",
|
||||
"ExtruderColor": "Колір Екструдеру",
|
||||
"GCodeViewer": "Переглядач G-коду",
|
||||
"GridColor": "Колір сітки",
|
||||
"MaxFeed": "Максимальна швидкість подачі",
|
||||
@@ -758,9 +754,9 @@
|
||||
"Backup": "Резервна копія",
|
||||
"BackupDialog": "Виберіть усі розділи, які ви хочете створити резервну копію:",
|
||||
"CalcEstimateTime": "Оцінка розрахунку часу",
|
||||
"CalcEstimateTimeDescription": "Якщо вибрано кілька, середнє значення буде розраховано",
|
||||
"CalcEstimateTimeDescription": "Якщо вибрано кілька, буде розраховано середнє значення",
|
||||
"CalcEtaTime": "Розрахунок Очікуваного часу закінченя",
|
||||
"CalcEtaTimeDescription": "Якщо вибрано кілька, середнє значення буде розраховано",
|
||||
"CalcEtaTimeDescription": "Якщо вибрано кілька, буде розраховано середнє значення",
|
||||
"CalcPrintProgress": "Обчислення прогресу друку",
|
||||
"CalcPrintProgressDescription": "Метод обчислення прогресу друку.",
|
||||
"CalcPrintProgressItems": {
|
||||
@@ -830,10 +826,10 @@
|
||||
},
|
||||
"PresetsTab": {
|
||||
"AddPreset": "додати пресет",
|
||||
"Cooldown": "Згортання",
|
||||
"Cooldown": "ОХОЛОДЖЕННЯ Нагрівачів",
|
||||
"CreateHeadline": "Створити пресет",
|
||||
"CustomGCode": "Свій G-код",
|
||||
"EditCooldown": "Редагувати охолодження",
|
||||
"CustomGCode": "Свій Г-код",
|
||||
"EditCooldown": "Редагувати ОХОЛОДЖЕННЯ",
|
||||
"EditHeadline": "Редагувати пресет",
|
||||
"ErrorInvalidValue": "Недійсне значення",
|
||||
"ErrorNameNotUnique": "Ім'я вже існує",
|
||||
@@ -844,19 +840,19 @@
|
||||
"PresetNamePlaceholder": "Назва пресету (необхідно)",
|
||||
"StoreButton": "Збірка пресетів",
|
||||
"UpdateButton": "Оновити Пресет",
|
||||
"UpdateCooldown": "Оновити COOLDOWN"
|
||||
"UpdateCooldown": "Оновити ОХОЛОДЖЕННЯ"
|
||||
},
|
||||
"RemotePrintersTab": {
|
||||
"AddPrinter": "Додати принтер",
|
||||
"EditPrinter": "Редагувати принтер",
|
||||
"Hostname": "Ім'я хоста",
|
||||
"Hostname": "Ім'я хоста/ІР-адреса",
|
||||
"Port": "Порт",
|
||||
"RemotePrinters": "Принтери",
|
||||
"UpdatePrinter": "Оновити принтер",
|
||||
"UseConfigJson": "InstanceDB = JSON виявлений. Будь ласка, використовуйте config.json щоб змінити список принтерів."
|
||||
},
|
||||
"TimelapseTab": {
|
||||
"Autorender": "Ауторендер",
|
||||
"Autorender": "Автовізуалізація",
|
||||
"AutorenderDescription": "Якщо ввімкнено, відео Таймлапс автоматично відображатиметься в кінці друку",
|
||||
"Camera": "Камера",
|
||||
"CameraDescription": "Виберіть, яку камеру слід використовувати",
|
||||
@@ -874,8 +870,8 @@
|
||||
"GcodeVerboseDescription": "Якщо ввімкнено, макроси G-Code напишуть інформацію у консоль",
|
||||
"General": "Загальний",
|
||||
"HyperlapseCycle": "Час циклу Hyperlapse",
|
||||
"HyperlapseCycleDescription": "Знімок буде зроблений будь-яких X секунди",
|
||||
"Mode": "Режим",
|
||||
"HyperlapseCycleDescription": "Знімок буде зроблений кожні X секунди",
|
||||
"Mode": "Режим Таймлапсу",
|
||||
"ModeDescription": "Виберіть між режимом макросів та гіперлапсу (на основі часу)",
|
||||
"OutputFramerate": "Частота кадрів виводу",
|
||||
"OutputFramerateDescription": "Визначає частоту кадрів відео. Примітка. Це буде ігноровано, якщо ввімкнено Variable_FPS",
|
||||
@@ -926,12 +922,12 @@
|
||||
"BoolBigThumbnail": "Велика мініатюра",
|
||||
"BoolBigThumbnailDescription": "Відобразити велику мініатюру на панелі статусу під час друку.",
|
||||
"BoolHideUploadAndPrintButton": "Приховати кнопку завантаження та друк",
|
||||
"BoolHideUploadAndPrintButtonDescription": "Показати або приховати кнопку «Завантажити та друкувати» у верхній панелі.",
|
||||
"ConfirmOnEmergencyStop": "Вимагати підтвердження на аварійній зупинці",
|
||||
"ConfirmOnEmergencyStopDescription": "Показати діалогове вікно підтвердження про аварійну зупинку",
|
||||
"BoolHideUploadAndPrintButtonDescription": "Показати або приховати кнопку «Завантажити та друканути» у верхній панелі.",
|
||||
"ConfirmOnEmergencyStop": "Вимагати підтвердження на АВАРІЙНУ ЗУПИНКУ",
|
||||
"ConfirmOnEmergencyStopDescription": "Показати діалогове вікно підтвердження АВАРІЙНОЇ ЗУПИНКИ",
|
||||
"ConfirmOnPowerDeviceChange": "Вимагати підтвердження змін живлення пристрою",
|
||||
"ConfirmOnPowerDeviceChangeDescription": "Показати діалогове вікно підтвердження щодо змін живлення пристрою",
|
||||
"DisplayCANCEL_PRINT": "Відображення Скасування_Друку",
|
||||
"DisplayCANCEL_PRINT": "Відображати кнопку Скасування Друку",
|
||||
"DisplayCANCEL_PRINTDescription": "Показує кнопку CANCEL_PRINT постійно - не потрібно підтвердження другого рівня.",
|
||||
"GcodeThumbnails": "Ескіз G-Code",
|
||||
"GcodeThumbnailsDescription": "Клацніть на кнопку, щоб дістатися до інструкцій.",
|
||||
@@ -940,12 +936,12 @@
|
||||
"LockSlidersDelay": "Затримка блокування повзунка",
|
||||
"LockSlidersDelayDescription": "Слайдери заблокуються після заданої затримки. Якщо встановлено на 0 або залишився порожнім, повзунки лише заблокують зміну/перезавантаження сторінки.",
|
||||
"LockSlidersDescription": "Слайдери на сенсорному екрані потрібно розблокувати, перш ніж зміни будуть дозволені.",
|
||||
"Logo": "Логотип",
|
||||
"Logo": "Колір Логотипу",
|
||||
"NavigationStyle": "Стиль навігації",
|
||||
"NavigationStyleDescription": "Змінити зовнішній вигляд навігації",
|
||||
"NavigationStyleIconsAndText": "Піктограми + текст",
|
||||
"NavigationStyleIconsOnly": "Тільки іконки",
|
||||
"Primary": "Основний",
|
||||
"Primary": "Основний Колір",
|
||||
"ShowWebcamInNavigation": "Показати веб -камеру в навігації",
|
||||
"UiSettings": "Налаштування в інтерфейсі"
|
||||
},
|
||||
@@ -954,14 +950,14 @@
|
||||
"CreateWebcam": "Створити веб-камеру",
|
||||
"EditCrowsnestConf": "Редагувати crowsnest.conf",
|
||||
"EditWebcam": "Редагувати веб-камеру",
|
||||
"FlipHorizontally": "Переверніть веб-камеру горизонтально",
|
||||
"FlipVertically": "Переверніть веб-камеру вертикально",
|
||||
"FlipWebcam": "Повернути веб-камеру:",
|
||||
"Horizontally": "горизонтально",
|
||||
"IconBed": "Ліжко",
|
||||
"IconCam": "Cam",
|
||||
"IconDoor": "Двері",
|
||||
"IconFilament": "Пруток",
|
||||
"IconHot": "Гарячий",
|
||||
"IconMcu": "ЦПУ",
|
||||
"IconMcu": "ЦПК",
|
||||
"IconNozzle": "Сопло",
|
||||
"IconPrinter": "Прінтер",
|
||||
"Ipstream": "IP -камера",
|
||||
@@ -970,7 +966,7 @@
|
||||
"Name": "Ім'я",
|
||||
"NameAlreadyExists": "Ім'я вже існує",
|
||||
"Required": "необхідний",
|
||||
"Rotate": "Обертати",
|
||||
"Rotate": "Повернути",
|
||||
"SaveWebcam": "Зберегти веб-камеру",
|
||||
"Service": "Служба",
|
||||
"TargetFPS": "Цільовий FPS",
|
||||
@@ -978,6 +974,7 @@
|
||||
"UrlSnapshot": "URL-адреса Знімку",
|
||||
"UrlStream": "URL-адреса Потоку",
|
||||
"Uv4lMjpeg": "UV4L-MJPEG",
|
||||
"Vertically": "вертикально",
|
||||
"Webcams": "Веб-камери"
|
||||
}
|
||||
},
|
||||
@@ -987,7 +984,7 @@
|
||||
"Cancel": "Скасувати",
|
||||
"Create": "Створити",
|
||||
"CreateNewDirectory": "створити директорію",
|
||||
"CurrentPath": "Поточний шлях",
|
||||
"CurrentPath": "Директорія",
|
||||
"Delete": "Видалити",
|
||||
"DeleteDirectory": "Видалити директорію",
|
||||
"DeleteDirectoryQuestion": "Ви дійсно хочете видалити \"{name}\" директоріб із усім її вмістом?",
|
||||
@@ -998,13 +995,13 @@
|
||||
"Enabled": "Увімкнено",
|
||||
"EstimatedLength": "Орієнтовна довжина",
|
||||
"Files": "Файли",
|
||||
"Filesize": "Розмір файлу",
|
||||
"Filesize": "Розмір",
|
||||
"Fixed": "фіксований",
|
||||
"Framerate": "Частота кадрів",
|
||||
"Frames": "Кадри",
|
||||
"Free": "Вільно",
|
||||
"FreeDisk": "Вільний диск",
|
||||
"LastModified": "Останній модифікований",
|
||||
"LastModified": "Датат Створення",
|
||||
"MaxFramerate": "Макс. частота кадрів",
|
||||
"MinFramerate": "Мін. частота кадрів",
|
||||
"Name": "Ім'я",
|
||||
|
||||
+101
-24
@@ -13,7 +13,7 @@
|
||||
},
|
||||
"MoonrakerWarnings": {
|
||||
"MoonrakerComponent": "Moonraker: {component}",
|
||||
"MoonrakerFailedComponentDescription": "加载moonraker组件'{component}'时检测到错误。请检查日志文件并解决问题。",
|
||||
"MoonrakerFailedComponentDescription": "加载moonraker组件'{component}'时检测到错误。请检查日志文件并修复此问题。",
|
||||
"MoonrakerWarning": "Moonraker警告",
|
||||
"UnparsedConfigOption": "在[{section}]标签中检测到无法解析的配置'{option}: {value}'。这可能是一个不再可用的选项,也可能是组件加载失败的结果。在将来,这将导致启动错误。",
|
||||
"UnparsedConfigSection": "检测到无法解析的标签[{section}]。这可能是一个不再可用的标签,也可能是组件加载失败的结果。在将来,这将导致启动错误。"
|
||||
@@ -21,6 +21,7 @@
|
||||
"Never": "永不",
|
||||
"NextReboot": "下次重启",
|
||||
"NoNotification": "没有通知",
|
||||
"Notifications": "通知",
|
||||
"Remind": "提醒:"
|
||||
},
|
||||
"NumberInput": {
|
||||
@@ -28,7 +29,7 @@
|
||||
"MustBeBetweenError": "必须在{min}和{max}之间!",
|
||||
"NoEmptyAllowedError": "输入值不能为空!"
|
||||
},
|
||||
"Printers": "打印机组",
|
||||
"Printers": "打印机集群",
|
||||
"ThrottledStates": {
|
||||
"DescriptionCurrentlyThrottled": "树莓派ARM核心当前被限制。",
|
||||
"DescriptionFrequencyCapped": "树莓派ARM最高频率目前限制在1.2 GHz。",
|
||||
@@ -59,7 +60,7 @@
|
||||
"EmergencyStop": "紧急停止",
|
||||
"SAVE_CONFIG": "保存配置",
|
||||
"Uploading": "上传中",
|
||||
"UploadOfFileSuccessful": "{file}上传成功!",
|
||||
"UploadOfFileSuccessful": "{file} 上传成功!",
|
||||
"UploadPrint": "上传并打印"
|
||||
},
|
||||
"TopCornerMenu": {
|
||||
@@ -106,11 +107,23 @@
|
||||
"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": {
|
||||
@@ -126,7 +139,7 @@
|
||||
"Cancel": "取消",
|
||||
"DoYouWantToStartFilename": "是否开始打印{filename}?",
|
||||
"Headline": "开始任务",
|
||||
"Print": "开始打印",
|
||||
"Print": "打印",
|
||||
"Timelapse": "延时摄影"
|
||||
}
|
||||
},
|
||||
@@ -153,17 +166,20 @@
|
||||
"Files": {
|
||||
"AddToQueue": "添加到队列",
|
||||
"AllFiles": "所有文件",
|
||||
"BedTemp": "热床温度",
|
||||
"Cancel": "取消",
|
||||
"ChamberTemp": "仓室温度",
|
||||
"Create": "新建",
|
||||
"CreateNewDirectory": "新建文件夹",
|
||||
"CurrentPath": "当前路径",
|
||||
"Delete": "删除",
|
||||
"DeleteDirectory": "删除文件夹",
|
||||
"DeleteDirectoryQuestion": "你确定要删除\"{name}\"和里面的所有内容吗?",
|
||||
"DeleteSelectedQuestion": "你是否要删除选中的{count}个文件?",
|
||||
"DeleteSelectedQuestion": "你确定要删除选中的{count}个文件?",
|
||||
"Download": "下载",
|
||||
"EditFile": "编辑文件",
|
||||
"Empty": "空",
|
||||
"ExtruderTemp": "挤出机温度",
|
||||
"Filament": "耗材",
|
||||
"FilamentName": "耗材名称",
|
||||
"FilamentType": "耗材规格",
|
||||
@@ -174,7 +190,10 @@
|
||||
"Free": "未使用",
|
||||
"FreeDisk": "剩余磁盘空间",
|
||||
"GCodeFiles": "G-Code文件",
|
||||
"GcodesRootDirectoryDoesntExists": "未找到G-Code文件夹。请检查Klipper配置[virtual_sdcard]标签中的\"path\"项是否正确填写。",
|
||||
"HiddenFiles": "显示隐藏文件",
|
||||
"InvalidNameAlreadyExists": "名字已经存在,请换一个名字。",
|
||||
"InvalidNameEmpty": "输入值不能为空!",
|
||||
"LastEndTime": "上次打印结束时间",
|
||||
"LastFilamentUsed": "上次耗材使用量",
|
||||
"LastModified": "最后修改时间",
|
||||
@@ -183,7 +202,7 @@
|
||||
"LastTotalDuration": "上次打印总耗时",
|
||||
"LayerHeight": "层高",
|
||||
"Name": "名称",
|
||||
"NewDirectory": "新建文件夹",
|
||||
"NewDirectory": "新文件夹",
|
||||
"NozzleDiameter": "喷嘴直径",
|
||||
"ObjectHeight": "物体高度",
|
||||
"Preheat": "预热",
|
||||
@@ -214,7 +233,7 @@
|
||||
"GCodeViewer": {
|
||||
"ClearLoadedFile": "清除",
|
||||
"ColorMode": "颜色模式",
|
||||
"Downloading": "下载中",
|
||||
"Downloading": "正在下载",
|
||||
"ForceLineRendering": "强制线渲染",
|
||||
"HDRendering": "高清渲染(圆形拉伸)",
|
||||
"High": "高",
|
||||
@@ -224,14 +243,14 @@
|
||||
"Max": "最大",
|
||||
"Medium": "中",
|
||||
"ReloadRequired": "需要重新加载",
|
||||
"Rendering": "渲染中",
|
||||
"Rendering": "正在渲染",
|
||||
"RenderQuality": "渲染质量",
|
||||
"ShowObjectSelection": "显示可选对象",
|
||||
"ShowToolhead": "显示打印头",
|
||||
"ShowTravelMoves": "显示移动路径",
|
||||
"SpecularLighting": "镜面光泽",
|
||||
"Title": "G-Code预览",
|
||||
"Tracking": "追踪",
|
||||
"Tracking": "正在追踪",
|
||||
"Transparency": "透明度",
|
||||
"Ultra": "极致",
|
||||
"VoxelMode": "体素模式(ASMBL)"
|
||||
@@ -255,7 +274,10 @@
|
||||
"ErrorKlipperNotReady": "Klipper未准备好。高度图已关闭。",
|
||||
"Flat": "平面",
|
||||
"Heightmap": "高度图",
|
||||
"Later": "Later",
|
||||
"InvalidNameAlreadyExists": "预设名称已经存在,请换一个名称。",
|
||||
"InvalidNameEmpty": "输入值不能为空!",
|
||||
"InvalidNameReserved": "预设 'default' 已保留,请选择其他预设名称。",
|
||||
"Later": "以后",
|
||||
"Mesh": "床网",
|
||||
"Name": "名称",
|
||||
"NoBedMeshHasBeenLoadedYet": "没有加载床网。",
|
||||
@@ -329,6 +351,7 @@
|
||||
"in_progress": "进程中",
|
||||
"klippy_disconnect": "Klippy失去连接",
|
||||
"klippy_shutdown": "Klippy已关闭",
|
||||
"Others": "其他",
|
||||
"server_exit": "服务器退出"
|
||||
},
|
||||
"TitleExportHistory": "导出历史记录",
|
||||
@@ -354,6 +377,7 @@
|
||||
"AllFiles": "全部",
|
||||
"Cancel": "取消",
|
||||
"ConfigFiles": "配置文件",
|
||||
"ConfigRootDirectoryDoesntExists": "未找到配置文件夹。请检查Moonraker配置[file_manager]标签中的\"config_path\"项是否正确填写。",
|
||||
"Create": "新建",
|
||||
"CreateDirectory": "新建文件夹",
|
||||
"CreateFile": "新建文件",
|
||||
@@ -444,6 +468,12 @@
|
||||
"UpToDate": "已经更新到最新"
|
||||
}
|
||||
},
|
||||
"ManualProbe": {
|
||||
"Abort": "取消",
|
||||
"Accept": "接受",
|
||||
"Advanced": "高级",
|
||||
"Headline": "手动Probe"
|
||||
},
|
||||
"Panels": {
|
||||
"ExtruderControlPanel": {
|
||||
"Allowed": "允许",
|
||||
@@ -478,10 +508,10 @@
|
||||
},
|
||||
"KlippyStatePanel": {
|
||||
"FirmwareRestart": "重启Klipper并重置主控",
|
||||
"KlipperCheck": "请检查Klipper服务是否运行并且已经设置UDS(Unix Domain Socket)。",
|
||||
"KlippyState": "Klippy状态",
|
||||
"KlipperCheck": "请检查Klipper服务是否运行。",
|
||||
"MoonrakerCannotConnect": "Moonraker无法连接到Klipper !",
|
||||
"Restart": "重启Klipper"
|
||||
"Restart": "重启Klipper",
|
||||
"ServiceReports": "{service} 报告"
|
||||
},
|
||||
"MachineSettingsPanel": {
|
||||
"Headline": "机器设置",
|
||||
@@ -511,6 +541,12 @@
|
||||
},
|
||||
"MiscellaneousPanel": {
|
||||
"Headline": "其他设置",
|
||||
"Light": {
|
||||
"Blue": "蓝",
|
||||
"Green": "绿",
|
||||
"Red": "红",
|
||||
"White": "白"
|
||||
},
|
||||
"RunoutSensor": {
|
||||
"Detected": "检测到",
|
||||
"Disabled": "已关闭",
|
||||
@@ -590,8 +626,6 @@
|
||||
"Absolute": "绝对坐标",
|
||||
"ALL": "全部",
|
||||
"Headline": "打印头",
|
||||
"Invalid": "无效",
|
||||
"OutOfRange": "超出范围!",
|
||||
"PleaseConfigureSteps": "请配置步骤",
|
||||
"Position": "位置",
|
||||
"QGL": "四轴调平(QGL)",
|
||||
@@ -604,7 +638,7 @@
|
||||
"All": "全部",
|
||||
"FPS": "帧率",
|
||||
"Headline": "摄像头",
|
||||
"NoWebcam": "没有可用的摄像头。在 \"Mainsail设置\" -> \"摄像头\" 添加新的摄像头。",
|
||||
"NoWebcam": "没有可用的摄像头。在\"Mainsail设置\" -> \"摄像头\"添加新的摄像头。",
|
||||
"UnknownWebcamService": "未知摄像头服务"
|
||||
},
|
||||
"ZoffsetPanel": {
|
||||
@@ -642,6 +676,7 @@
|
||||
},
|
||||
"SelectPrinterDialog": {
|
||||
"AddPrinter": "添加打印机",
|
||||
"AddPrintersToJson": "请将打印机添加到 config.json 。",
|
||||
"CannotConnectTo": "无法连接到{host} 。",
|
||||
"ChangePrinter": "更换打印机",
|
||||
"Connecting": "正在连接到{host}",
|
||||
@@ -742,13 +777,24 @@
|
||||
"ShowAxes": "显示轴"
|
||||
},
|
||||
"GeneralTab": {
|
||||
"12hours": "12-小时 ({time})",
|
||||
"24hours": "24-小时 ({time})",
|
||||
"Backup": "备份",
|
||||
"BackupDialog": "请选择你想要备份的内容:",
|
||||
"BackupDialog": "请选择你想要备份的内容:",
|
||||
"CalcEstimateTime": "估算时间计算",
|
||||
"CalcEstimateTimeDescription": "如果选择了多项,将会计算平均值",
|
||||
"CalcEtaTime": "预计完成时间计算",
|
||||
"CalcEtaTimeDescription": "如果选择了多项,将会计算平均值",
|
||||
"CalcPrintProgress": "打印进度估算",
|
||||
"CalcPrintProgressDescription": "计算打印进度的方法。",
|
||||
"CalcPrintProgressItems": {
|
||||
"Filament": "耗材",
|
||||
"FileAbsolute": "文件位置(绝对)",
|
||||
"FileRelative": "文件位置(相对)",
|
||||
"Slicer": "切片软件 (M73)"
|
||||
},
|
||||
"CannotReadJson": "无法读取/解析备份文件。",
|
||||
"DateFormat": "日期格式",
|
||||
"DbConsoleHistory": "控制台历史记录",
|
||||
"DbHistoryJobs": "历史任务",
|
||||
"DbHistoryTotals": "历史统计",
|
||||
@@ -768,7 +814,8 @@
|
||||
"PrinterName": "打印机名称",
|
||||
"Reset": "重启",
|
||||
"Restore": "恢复",
|
||||
"RestoreDialog": "请选择你想要恢复的项:"
|
||||
"RestoreDialog": "请选择你想要恢复的项:",
|
||||
"TimeFormat": "时间格式"
|
||||
},
|
||||
"InterfaceSettings": "Mainsail设置",
|
||||
"MacrosTab": {
|
||||
@@ -807,6 +854,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": "冷却",
|
||||
@@ -831,8 +901,10 @@
|
||||
"Hostname": "主机名称/IP地址",
|
||||
"Port": "Moonraker服务端口",
|
||||
"RemotePrinters": "打印机",
|
||||
"UpdatePrinter": "更新打印机"
|
||||
"UpdatePrinter": "更新打印机",
|
||||
"UseConfigJson": "检测到InstanceDB = JSON。请使用 config.json 来修改打印机列表。"
|
||||
},
|
||||
"Store": "存储",
|
||||
"TimelapseTab": {
|
||||
"Autorender": "自动渲染",
|
||||
"AutorenderDescription": "如果开启将在打印结束后自动渲染延时摄影的视频",
|
||||
@@ -927,12 +999,14 @@
|
||||
"ShowWebcamInNavigation": "在导航栏中显示摄像头",
|
||||
"UiSettings": "UI设置"
|
||||
},
|
||||
"Update": "更新",
|
||||
"WebcamsTab": {
|
||||
"AddWebcam": "添加摄像头",
|
||||
"CreateWebcam": "添加摄像头",
|
||||
"EditCrowsnestConf": "编辑 crowsnest.conf",
|
||||
"EditWebcam": "编辑摄像头",
|
||||
"FlipHorizontally": "水平翻转摄像头",
|
||||
"FlipVertically": "垂直翻转摄像头",
|
||||
"FlipWebcam": "翻转摄像头图像:",
|
||||
"Horizontally": "水平",
|
||||
"IconBed": "热床",
|
||||
"IconCam": "摄像头",
|
||||
"IconDoor": "门",
|
||||
@@ -947,6 +1021,7 @@
|
||||
"Name": "名称",
|
||||
"NameAlreadyExists": "名称已经存在",
|
||||
"Required": "需要填写名称",
|
||||
"Rotate": "旋转",
|
||||
"SaveWebcam": "保存摄像头",
|
||||
"Service": "服务",
|
||||
"TargetFPS": "目标FPS",
|
||||
@@ -954,6 +1029,7 @@
|
||||
"UrlSnapshot": "快照地址(URL)",
|
||||
"UrlStream": "视频流地址(URL)",
|
||||
"Uv4lMjpeg": "UV4L-MJPEG",
|
||||
"Vertically": "垂直",
|
||||
"Webcams": "摄像头"
|
||||
}
|
||||
},
|
||||
@@ -967,6 +1043,7 @@
|
||||
"Delete": "删除",
|
||||
"DeleteDirectory": "删除文件夹",
|
||||
"DeleteDirectoryQuestion": "你确定要删除\"{name}\"文件夹和里面所有的文件吗?",
|
||||
"DeleteSelectedQuestion": "你确定要删除选中的{count}个文件吗?",
|
||||
"Download": "下载",
|
||||
"DuplicateLastframe": "重复最后一帧",
|
||||
"Empty": "没有发现已完成的延时摄影文件",
|
||||
|
||||
@@ -67,12 +67,10 @@
|
||||
"SetupConsole": "設定控制台"
|
||||
},
|
||||
"Editor": {
|
||||
"Cancel": "取消",
|
||||
"ConfigReference": "設定檔參考",
|
||||
"DontSave": "不儲存",
|
||||
"Downloading": "正在下載",
|
||||
"FailedSave": "{filename} 無法上傳!",
|
||||
"Minimap": "顯示小地圖",
|
||||
"SaveClose": "保存並關閉",
|
||||
"SaveRestart": "保存並重新啟動",
|
||||
"SuccessfullySaved": "{filename} 保存成功.",
|
||||
@@ -97,7 +95,6 @@
|
||||
"DeleteDirectory": "刪除目錄ˋ",
|
||||
"DeleteDirectoryQuestion": "您真的要刪除 \"{name}\" 目錄及其所有內容嗎?",
|
||||
"Download": "下載",
|
||||
"Downloading": "下載中",
|
||||
"EditFile": "編輯檔案",
|
||||
"Empty": "空的",
|
||||
"FilamentUsage": "耗材用量",
|
||||
@@ -130,7 +127,6 @@
|
||||
"SuccessfullyRenamed": "{filename} 重新命名成功.",
|
||||
"SuccessfullyUploaded": "{filename} 更新成功!",
|
||||
"Total": "總計",
|
||||
"Uploading": "上傳中",
|
||||
"UploadNewGcode": "上傳新 Gcode",
|
||||
"Used": "已使用",
|
||||
"View3D": "View 3D"
|
||||
@@ -326,7 +322,6 @@
|
||||
"PressureAdvanceSettings": {
|
||||
"Advance": "推進",
|
||||
"Extruder": "擠出機",
|
||||
"PressureAdvance": "壓力推進控制",
|
||||
"SmoothTime": "平滑時間"
|
||||
},
|
||||
"Retract": "回抽"
|
||||
@@ -339,7 +334,6 @@
|
||||
"KlippyStatePanel": {
|
||||
"FirmwareRestart": "韌體重新啟動",
|
||||
"KlipperCheck": "請檢查Klipper服務是否運行並且已經設定UDS(Unix Domain Socket)。",
|
||||
"KlippyState": "Klippy狀態: ",
|
||||
"MoonrakerCannotConnect": "Moonraker 不能連接 Klipper!",
|
||||
"Restart": "重新啟動"
|
||||
},
|
||||
@@ -376,12 +370,6 @@
|
||||
"Empty": "空的"
|
||||
}
|
||||
},
|
||||
"MoonrakerStatePanel": {
|
||||
"DownloadLog": "下載日誌",
|
||||
"FollowingPluginHasAnError": "下面的外掛程式有一個錯誤:",
|
||||
"MoonrakerErrorInfo": "載入moonraker時出現了一點問題. 請檢查日誌檔案並解決問題.",
|
||||
"MoonrakerWarnings": "Moonraker 警告"
|
||||
},
|
||||
"PowerControlPanel": {
|
||||
"Error": "錯誤",
|
||||
"Off": "關",
|
||||
@@ -421,7 +409,6 @@
|
||||
"TemperaturePanel": {
|
||||
"AutoscaleChart": "自動縮放圖表",
|
||||
"Avg": "平均",
|
||||
"Color": "顏色",
|
||||
"Cooldown": "冷卻",
|
||||
"Current": "目前",
|
||||
"Dataset": {
|
||||
@@ -446,15 +433,11 @@
|
||||
"ToolheadControlPanel": {
|
||||
"Absolute": "絕對",
|
||||
"ALL": "所有",
|
||||
"InvertX": "翻轉 X",
|
||||
"InvertY": "翻轉 Y",
|
||||
"InvertZ": "翻轉 Z",
|
||||
"PleaseConfigureSteps": "請設定步進",
|
||||
"Position": "位置",
|
||||
"QGL": "QGL",
|
||||
"Relative": "相對的",
|
||||
"SettingsInterfaceControl": "設定 > 界面 > 控制",
|
||||
"SetupControls": "設定控制",
|
||||
"SpeedFactor": "速度係數",
|
||||
"ZTilt": "Z 傾斜"
|
||||
},
|
||||
@@ -462,11 +445,9 @@
|
||||
"All": "全部",
|
||||
"FPS": "FPS",
|
||||
"Headline": "網路攝影機",
|
||||
"UnknownWebcamService": "未知網絡攝影機服務",
|
||||
"UrlNotAvailable": "地址無效"
|
||||
"UnknownWebcamService": "未知網絡攝影機服務"
|
||||
},
|
||||
"ZoffsetPanel": {
|
||||
"CurrentOffset": "目前偏移: ",
|
||||
"Headline": "Z-偏移",
|
||||
"Later": "最後的",
|
||||
"Ok": "好",
|
||||
@@ -749,8 +730,6 @@
|
||||
"AddWebcam": "新增攝影機",
|
||||
"CreateWebcam": "建立攝影機",
|
||||
"EditWebcam": "編輯攝影機",
|
||||
"FlipHorizontally": "水平翻轉網絡攝影機",
|
||||
"FlipVertically": "垂直翻轉網絡攝影機",
|
||||
"IconBed": "床",
|
||||
"IconCam": "攝影機",
|
||||
"IconDoor": "門",
|
||||
+2
-2
@@ -12,7 +12,7 @@ import { WebSocketPlugin } from '@/plugins/webSocketClient'
|
||||
import { registerSW } from 'virtual:pwa-register'
|
||||
|
||||
// noinspection JSUnusedGlobalSymbols
|
||||
const updateSW = registerSW({
|
||||
registerSW({
|
||||
onOfflineReady() {},
|
||||
})
|
||||
|
||||
@@ -84,7 +84,7 @@ const initLoad = async () => {
|
||||
await store.dispatch('importConfigJson', file)
|
||||
if ('defaultLocale' in file) i18n.locale = file.defaultLocale
|
||||
})
|
||||
.catch((_) => {
|
||||
.catch(() => {
|
||||
window.console.error('config.json not found or cannot be decoded!')
|
||||
})
|
||||
|
||||
|
||||
+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) {
|
||||
|
||||
+16
-16
@@ -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[] {
|
||||
@@ -866,7 +865,8 @@ export default class PageHeightmap extends Mixins(BaseMixin, ControlMixin) {
|
||||
if (config.probe_count && typeof config.probe_count === 'string') {
|
||||
probe_count = config.probe_count.split(',')
|
||||
} else if (config.probe_count) {
|
||||
probe_count = config.probe_count
|
||||
probe_count =
|
||||
config.probe_count.length < 2 ? [config.probe_count, config.probe_count] : config.probe_count
|
||||
} else if (config.round_probe_count) {
|
||||
probe_count = [config.round_probe_count, config.round_probe_count]
|
||||
}
|
||||
@@ -910,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
|
||||
}
|
||||
|
||||
@@ -10,7 +10,7 @@ import { PluginOption } from 'vite'
|
||||
export default function buildVersion(): PluginOption {
|
||||
return {
|
||||
name: 'build-version',
|
||||
writeBundle: (context, options) => {
|
||||
writeBundle: () => {
|
||||
setImmediate(async () => {
|
||||
const versionIdentifier = version.toString()
|
||||
const versionFile = await fs.promises.open(path.resolve(__dirname, '../../dist/.version'), 'w')
|
||||
|
||||
@@ -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,18 +1,5 @@
|
||||
import { FileStateFile } from '@/store/files/types'
|
||||
import { PrinterStateMacroParams } from '@/store/printer/types'
|
||||
import {
|
||||
mdiArrowCollapseVertical,
|
||||
mdiCodeTags,
|
||||
mdiConsoleLine,
|
||||
mdiDipSwitch,
|
||||
mdiEngine,
|
||||
mdiGamepad,
|
||||
mdiInformation,
|
||||
mdiPrinter3d,
|
||||
mdiPrinter3dNozzle,
|
||||
mdiThermometerLines,
|
||||
mdiWebcam,
|
||||
} from '@mdi/js'
|
||||
import Vue from 'vue'
|
||||
|
||||
export const setDataDeep = (currentState: any, payload: any) => {
|
||||
@@ -65,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, ' ')
|
||||
@@ -135,12 +94,6 @@ export const formatFilesize = (fileSizeInBytes: number): string => {
|
||||
return Math.max(fileSizeInBytes, 0.1).toFixed(1) + byteUnits[i]
|
||||
}
|
||||
|
||||
export const formatDate = (date: number): string => {
|
||||
const tmp2 = new Date(date)
|
||||
|
||||
return tmp2.toLocaleString().replace(',', '')
|
||||
}
|
||||
|
||||
export const formatFrequency = (frequency: number): string => {
|
||||
let i = -1
|
||||
const units = [' kHz', ' MHz', ' GHz']
|
||||
|
||||
@@ -7,7 +7,7 @@ export const actions: ActionTree<RootState, RootState> = {
|
||||
if (router.currentRoute.fullPath !== '/') router.push('/')
|
||||
},
|
||||
|
||||
changePrinter({ dispatch, getters, state }, payload) {
|
||||
changePrinter({ dispatch, getters }, payload) {
|
||||
dispatch('files/reset')
|
||||
dispatch('gui/reset')
|
||||
dispatch('printer/reset')
|
||||
@@ -29,10 +29,9 @@ export const actions: ActionTree<RootState, RootState> = {
|
||||
/**
|
||||
* This function will parse the config.json content and config mainsail
|
||||
*/
|
||||
importConfigJson({ commit, dispatch }, payload: ConfigJson) {
|
||||
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
|
||||
|
||||
|
||||
@@ -12,7 +12,7 @@ export const actions: ActionTree<EditorState, RootState> = {
|
||||
commit('reset')
|
||||
},
|
||||
|
||||
openFile({ state, dispatch, commit, rootGetters, rootState }, payload) {
|
||||
openFile({ state, dispatch, commit, rootGetters }, payload) {
|
||||
const fullFilepathArray = []
|
||||
fullFilepathArray.push(payload.root)
|
||||
let path = payload.path
|
||||
|
||||
@@ -38,7 +38,7 @@ export const farm: Module<FarmState, RootState> = {
|
||||
},
|
||||
},
|
||||
actions: {
|
||||
registerPrinter({ state, commit, dispatch }, payload) {
|
||||
registerPrinter({ commit, dispatch }, payload) {
|
||||
if (!this.hasModule(['farm', payload.id])) {
|
||||
this.registerModule(['farm', payload.id], printer)
|
||||
commit('farm/' + payload.id + '/setSocketData', { ...payload, _namespace: payload.id }, { root: true })
|
||||
|
||||
@@ -186,7 +186,7 @@ export const actions: ActionTree<FarmPrinterState, RootState> = {
|
||||
})
|
||||
},
|
||||
|
||||
getData({ commit, dispatch, state }, payload) {
|
||||
getData({ commit, dispatch }, payload) {
|
||||
const data = 'status' in payload ? { ...payload.status } : { ...payload }
|
||||
commit('setData', data)
|
||||
|
||||
|
||||
@@ -260,10 +260,7 @@ export const actions: ActionTree<FileState, RootState> = {
|
||||
}
|
||||
},
|
||||
|
||||
async uploadFile(
|
||||
{ dispatch, commit, rootGetters },
|
||||
payload: { file: File; path: string; root: 'gcodes' | 'config' }
|
||||
) {
|
||||
async uploadFile({ commit, rootGetters }, payload: { file: File; path: string; root: 'gcodes' | 'config' }) {
|
||||
const apiUrl = rootGetters['socket/getUrl']
|
||||
const formData = new FormData()
|
||||
formData.append('file', payload.file, payload.file.name)
|
||||
|
||||
Loaded 100 of 129 files, more files were not shown because too many files have changed in this diff.
Show more
Reference in new issue
Block a user