Compare commits

...
24 Commits
Author SHA1 Message Date
Stefan Dej 1e62b5bce5 Merge branch 'main/develop' into main/master 2022-06-21 22:23:29 +02:00
Stefan Dej 6661e031fb chore: push version number to v2.2.1
Signed-off-by: Stefan Dej <meteyou@gmail.com>
2022-06-21 22:23:02 +02:00
Stefan Dej 8a000e38a4 Merge branch 'main/develop' into main/master
# Conflicts:
#	src/locales/ko-kr.json
#	src/locales/zh.json
2022-06-21 22:20:06 +02:00
Frank Tackitt 229a6759cf locale(en): fix typos in English localization (#924) 2022-06-21 22:01:15 +02:00
Stefan Dej dfc91df681 fix: editor safe & restart with multi instances (#925) 2022-06-21 21:41:29 +02:00
ZISQOandStefan Dej 38d2c883b1 locale(ko-kr): update Korean localization (#914)
Co-authored-by: Stefan Dej <meteyou@gmail.com>
2022-06-19 12:21:30 +02:00
Stefan Dej b5c92cbcab fix: fix typo in adding new heaters/temperature_fans to chart dataset (#918)
Signed-off-by: Stefan Dej <meteyou@gmail.com>
2022-06-19 12:20:23 +02:00
Samuel-0-0 642d5a0cb5 locale(zh): update Chinese localization (#906) 2022-06-19 12:05:39 +02:00
Stefan Dej a9669ad809 locale: fix Editor placeholder for download/upload snackbar (#919)
* locale: fix Editor placeholder for download/upload snackbar

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

* locale: remove unused keys

Signed-off-by: Stefan Dej <meteyou@gmail.com>
2022-06-18 09:36:14 +02:00
Stefan Dej 753f050795 chore: add workflow to check locale files in pull requests (#917) 2022-06-17 21:44:28 +02:00
Stefan Dej 443b7f9dc8 locale: fix locale keys (#916) 2022-06-17 21:33:00 +02:00
Stefan Dej 8438c0a86b locale(en): remove unused keys in EN locale (#913) 2022-06-16 21:46:05 +02:00
Stefan Dej 308518a25c chore: add workflow to close issues with 'User Input' labels after 7 days (#912)
Signed-off-by: Stefan Dej <meteyou@gmail.com>
2022-06-16 17:09:27 +02:00
th33xitus de911d21fc chore(bug_report.yml): extend issue template (#911) 2022-06-16 15:16:28 +02:00
Stefan Dej 911387755f fix: display status tab on dashboard as default while printing (#907) 2022-06-15 22:26:29 +02:00
Stefan Dej 8367f01bce fix: macro buttons with single char attribute (#903) 2022-06-15 07:55:47 +02:00
21ad4c16e7 locale(ko-kr): update Korean localization (#894)
Co-authored-by: th33xitus <th33xitus@googlemail.com>
Co-authored-by: Stefan Dej <meteyou@gmail.com>
2022-06-12 22:36:35 +02:00
ZISQO 6b18300b5d locale(ko-kr): fix Korean localization (#890)
* fix Korean localization
* Update ko-kr.json
* locale(ko-kr): prettier format locale file
2022-06-12 22:36:31 +02:00
Samuel-0-0 1c84e6ec6d locale(zh): update Chinese localization (#896) 2022-06-12 22:34:37 +02:00
Emperor 0d4c0149b4 locale(ru): Update ru.json (#889) 2022-06-12 22:34:32 +02:00
5029f4d9d5 locale(ko-kr): update Korean localization (#894)
Co-authored-by: th33xitus <th33xitus@googlemail.com>
Co-authored-by: Stefan Dej <meteyou@gmail.com>
2022-06-12 22:25:00 +02:00
Samuel-0-0 94338ba5d4 locale(zh): update Chinese localization (#896) 2022-06-12 22:24:41 +02:00
Emperor 04159fc49c locale(ru): Update ru.json (#889) 2022-06-12 12:28:05 +02:00
ZISQO a30a001290 locale(ko-kr): fix Korean localization (#890)
* fix Korean localization
* Update ko-kr.json
* locale(ko-kr): prettier format locale file
2022-06-12 12:27:31 +02:00
36 changed files with 1370 additions and 1089 deletions

No files matched your search

+8
View File
@@ -17,6 +17,14 @@ body:
[Discord](https://discord.gg/mainsail)
---
- type: input
id: version
attributes:
label: 'Mainsail Version:'
description: Mainsail version where the issue occurs
placeholder: <your current mainsail version>
validations:
required: true
- type: dropdown
id: browser
attributes:
+57
View File
@@ -0,0 +1,57 @@
name: Check Translations
on:
pull_request_target:
types: [synchronize, opened]
paths:
- 'src/locales/**'
jobs:
check_translations:
runs-on: ubuntu-latest
steps:
- name: Install jq
run: sudo apt install -y jq
- name: Fetch repo
uses: actions/checkout@v3
with:
fetch-depth: 0
ref: ${{ github.event.pull_request.head.sha }}
- name: Install node
uses: actions/setup-node@v3
with:
node-version: 16
- name: Install dependencies
run: npm ci
- name: Get changed files
id: changed-files
uses: tj-actions/changed-files@v23
with:
sha: ${{ github.event.pull_request.head.sha }}
files: 'src/locales/*.json'
- name: Run i18n-extract on changed locale files
id: i18n-extract
env:
OUTPUT: ''
run: |
mkdir ./i18n-extract
for file in ${{ steps.changed-files.outputs.all_changed_files }}; do
npm run i18n-extract -- --languageFiles=src/locales/${file##*/} --output=i18n-extract/${file##*/}
MISSING=$(cat i18n-extract/${file##*/} | jq '.missingKeys | length')
UNUSED=$(cat i18n-extract/${file##*/} | jq '.unusedKeys | length')
echo "::set-output name=$file::|${file##*/}|${MISSING}|${UNUSED}|"
done
- name: Comment PR
uses: thollander/actions-comment-pull-request@v1
with:
message: |
Language file analysis report:
|File|Missing Keys|Unused Keys|
|:---|---:|---:|
${{join(steps.i18n-extract.outputs.*, '
')}}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
+19
View File
@@ -0,0 +1,19 @@
name: No Response
# Both `issue_comment` and `scheduled` event types are required for this Action
# to work properly.
on:
issue_comment:
types: [created]
schedule:
- cron: '5 * * * *'
jobs:
noResponse:
runs-on: ubuntu-latest
steps:
- uses: lee-dohm/no-response@v0.5.0
with:
token: ${{ github.token }}
daysUntilClose: 7
responseRequiredLabel: ❔ User Input
+84 -85
View File
@@ -1,12 +1,12 @@
{
"name": "mainsail",
"version": "2.2.0",
"version": "2.2.1",
"lockfileVersion": 2,
"requires": true,
"packages": {
"": {
"name": "mainsail",
"version": "2.2.0-beta3",
"version": "2.2.1",
"dependencies": {
"@codemirror/basic-setup": "^0.19.0",
"@codemirror/highlight": "^0.19.6",
@@ -75,7 +75,7 @@
"vite-plugin-pwa": "^0.11.13",
"vite-plugin-vue2": "^1.9.3",
"vue-debounce-decorator": "^1.0.1",
"vue-i18n-extract": "^1.2.3",
"vue-i18n-extract": "^2.0.7",
"vue-router": "^3.5.2",
"vue-template-compiler": "^2.6.14",
"workbox-core": "^6.4.2"
@@ -3753,6 +3753,15 @@
"url": "https://github.com/sponsors/sindresorhus"
}
},
"node_modules/cac": {
"version": "6.7.12",
"resolved": "https://registry.npmjs.org/cac/-/cac-6.7.12.tgz",
"integrity": "sha512-rM7E2ygtMkJqD9c7WnFU6fruFcN3xe4FM5yUmgxhZzIKJk4uHl9U/fhwdajGFQbQuv43FAUo1Fe8gX/oIKDeSA==",
"dev": true,
"engines": {
"node": ">=8"
}
},
"node_modules/cachedir": {
"version": "2.3.0",
"resolved": "https://registry.npmjs.org/cachedir/-/cachedir-2.3.0.tgz",
@@ -5426,19 +5435,6 @@
"node": "^12.22.0 || ^14.17.0 || >=16.0.0"
}
},
"node_modules/esprima": {
"version": "4.0.1",
"resolved": "https://registry.npmjs.org/esprima/-/esprima-4.0.1.tgz",
"integrity": "sha512-eGuFFw7Upda+g4p+QHvnW0RyTX/SVeJBDM/gCtMARO0cLuT2HcEKnTPvhjV6aGeqrCB/sbNop0Kszm0jsaWU4A==",
"dev": true,
"bin": {
"esparse": "bin/esparse.js",
"esvalidate": "bin/esvalidate.js"
},
"engines": {
"node": ">=4"
}
},
"node_modules/esquery": {
"version": "1.4.0",
"resolved": "https://registry.npmjs.org/esquery/-/esquery-1.4.0.tgz",
@@ -7949,12 +7945,6 @@
"integrity": "sha512-9NykojV5Uih4lgo5So5dtw+f0JgJX30KCNI8gwhz2J9A15wD0Ml6tjHKwf6fTSa6fAdVBdZeNOs9eJ71qCk8vA==",
"dev": true
},
"node_modules/sprintf-js": {
"version": "1.0.3",
"resolved": "https://registry.npmjs.org/sprintf-js/-/sprintf-js-1.0.3.tgz",
"integrity": "sha1-BOaSb2YolTVPPdAVIDYzuFcpfiw=",
"dev": true
},
"node_modules/sshpk": {
"version": "1.17.0",
"resolved": "https://registry.npmjs.org/sshpk/-/sshpk-1.17.0.tgz",
@@ -8938,50 +8928,59 @@
"integrity": "sha512-SX35iJHL5PJ4Gfh0Mo/q0shyHiI2V6Zkh51c+k8E9O1RKv5BQyYrCxRzpvPrsIOJEnLaeiovet3dsUB0e/kDzw=="
},
"node_modules/vue-i18n-extract": {
"version": "1.2.3",
"resolved": "https://registry.npmjs.org/vue-i18n-extract/-/vue-i18n-extract-1.2.3.tgz",
"integrity": "sha512-ZLtF6wp732KHKawHx5ZSmjyydkli9g26z0NfGLP89DkiGx4nKFYZ2oIH35HtImdhcfq1zqkeSwxs7kRzarLoVw==",
"version": "2.0.7",
"resolved": "https://registry.npmjs.org/vue-i18n-extract/-/vue-i18n-extract-2.0.7.tgz",
"integrity": "sha512-i1NW5R58S720iQ1BEk+6ILo3hT6UA8mtYNNolSH4rt9345qvXdvA6GHy2+jHozdDAKHwlu9VvS/+vIMKs1UYQw==",
"dev": true,
"dependencies": {
"commander": "^6.1.0",
"cac": "^6.7.12",
"dot-object": "^2.1.4",
"glob": "^7.1.6",
"glob": "^8.0.1",
"is-valid-glob": "^1.0.0",
"js-yaml": "^3.14.0"
"js-yaml": "^4.1.0"
},
"bin": {
"vue-i18n-extract": "bin/vue-i18n-extract.js"
}
},
"node_modules/vue-i18n-extract/node_modules/argparse": {
"version": "1.0.10",
"resolved": "https://registry.npmjs.org/argparse/-/argparse-1.0.10.tgz",
"integrity": "sha512-o5Roy6tNG4SL/FOkCAN6RzjiakZS25RLYFrcMttJqbdd8BWrnA+fGz57iN5Pb06pvBGvl5gQ0B48dJlslXvoTg==",
"node_modules/vue-i18n-extract/node_modules/brace-expansion": {
"version": "2.0.1",
"resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-2.0.1.tgz",
"integrity": "sha512-XnAIvQ8eM+kC6aULx6wuQiwVsnzsi9d3WxzV3FpWTGA19F621kwdbsAcFKXgKUHZWsy+mY6iL1sHTxWEFCytDA==",
"dev": true,
"dependencies": {
"sprintf-js": "~1.0.2"
"balanced-match": "^1.0.0"
}
},
"node_modules/vue-i18n-extract/node_modules/commander": {
"version": "6.2.1",
"resolved": "https://registry.npmjs.org/commander/-/commander-6.2.1.tgz",
"integrity": "sha512-U7VdrJFnJgo4xjrHpTzu0yrHPGImdsmD95ZlgYSEajAn2JKzDhDTPG9kBTefmObL2w/ngeZnilk+OV9CG3d7UA==",
"dev": true,
"engines": {
"node": ">= 6"
}
},
"node_modules/vue-i18n-extract/node_modules/js-yaml": {
"version": "3.14.1",
"resolved": "https://registry.npmjs.org/js-yaml/-/js-yaml-3.14.1.tgz",
"integrity": "sha512-okMH7OXXJ7YrN9Ok3/SXrnu4iX9yOk+25nqX4imS2npuvTYDmo/QEZoqwZkYaIDk3jVvBOTOIEgEhaLOynBS9g==",
"node_modules/vue-i18n-extract/node_modules/glob": {
"version": "8.0.3",
"resolved": "https://registry.npmjs.org/glob/-/glob-8.0.3.tgz",
"integrity": "sha512-ull455NHSHI/Y1FqGaaYFaLGkNMMJbavMrEGFXG/PGrg6y7sutWHUHrz6gy6WEBH6akM1M414dWKCNs+IhKdiQ==",
"dev": true,
"dependencies": {
"argparse": "^1.0.7",
"esprima": "^4.0.0"
"fs.realpath": "^1.0.0",
"inflight": "^1.0.4",
"inherits": "2",
"minimatch": "^5.0.1",
"once": "^1.3.0"
},
"bin": {
"js-yaml": "bin/js-yaml.js"
"engines": {
"node": ">=12"
},
"funding": {
"url": "https://github.com/sponsors/isaacs"
}
},
"node_modules/vue-i18n-extract/node_modules/minimatch": {
"version": "5.1.0",
"resolved": "https://registry.npmjs.org/minimatch/-/minimatch-5.1.0.tgz",
"integrity": "sha512-9TPBGGak4nHfGZsPBohm9AWg6NoT7QTCehS3BIJABslyZbzxfV78QM2Y6+i741OPZIafFAaiiEMh5OyIrJPgtg==",
"dev": true,
"dependencies": {
"brace-expansion": "^2.0.1"
},
"engines": {
"node": ">=10"
}
},
"node_modules/vue-load-image": {
@@ -12229,6 +12228,12 @@
"integrity": "sha512-lGzLKcioL90C7wMczpkY0n/oART3MbBa8R9OFGE1rJxoVI86u4WAGfEk8Wjv10eKSyTHVGkSo3bvBylCEtk7LA==",
"dev": true
},
"cac": {
"version": "6.7.12",
"resolved": "https://registry.npmjs.org/cac/-/cac-6.7.12.tgz",
"integrity": "sha512-rM7E2ygtMkJqD9c7WnFU6fruFcN3xe4FM5yUmgxhZzIKJk4uHl9U/fhwdajGFQbQuv43FAUo1Fe8gX/oIKDeSA==",
"dev": true
},
"cachedir": {
"version": "2.3.0",
"resolved": "https://registry.npmjs.org/cachedir/-/cachedir-2.3.0.tgz",
@@ -13389,12 +13394,6 @@
"eslint-visitor-keys": "^3.3.0"
}
},
"esprima": {
"version": "4.0.1",
"resolved": "https://registry.npmjs.org/esprima/-/esprima-4.0.1.tgz",
"integrity": "sha512-eGuFFw7Upda+g4p+QHvnW0RyTX/SVeJBDM/gCtMARO0cLuT2HcEKnTPvhjV6aGeqrCB/sbNop0Kszm0jsaWU4A==",
"dev": true
},
"esquery": {
"version": "1.4.0",
"resolved": "https://registry.npmjs.org/esquery/-/esquery-1.4.0.tgz",
@@ -15230,12 +15229,6 @@
"integrity": "sha512-9NykojV5Uih4lgo5So5dtw+f0JgJX30KCNI8gwhz2J9A15wD0Ml6tjHKwf6fTSa6fAdVBdZeNOs9eJ71qCk8vA==",
"dev": true
},
"sprintf-js": {
"version": "1.0.3",
"resolved": "https://registry.npmjs.org/sprintf-js/-/sprintf-js-1.0.3.tgz",
"integrity": "sha1-BOaSb2YolTVPPdAVIDYzuFcpfiw=",
"dev": true
},
"sshpk": {
"version": "1.17.0",
"resolved": "https://registry.npmjs.org/sshpk/-/sshpk-1.17.0.tgz",
@@ -15939,41 +15932,47 @@
"integrity": "sha512-SX35iJHL5PJ4Gfh0Mo/q0shyHiI2V6Zkh51c+k8E9O1RKv5BQyYrCxRzpvPrsIOJEnLaeiovet3dsUB0e/kDzw=="
},
"vue-i18n-extract": {
"version": "1.2.3",
"resolved": "https://registry.npmjs.org/vue-i18n-extract/-/vue-i18n-extract-1.2.3.tgz",
"integrity": "sha512-ZLtF6wp732KHKawHx5ZSmjyydkli9g26z0NfGLP89DkiGx4nKFYZ2oIH35HtImdhcfq1zqkeSwxs7kRzarLoVw==",
"version": "2.0.7",
"resolved": "https://registry.npmjs.org/vue-i18n-extract/-/vue-i18n-extract-2.0.7.tgz",
"integrity": "sha512-i1NW5R58S720iQ1BEk+6ILo3hT6UA8mtYNNolSH4rt9345qvXdvA6GHy2+jHozdDAKHwlu9VvS/+vIMKs1UYQw==",
"dev": true,
"requires": {
"commander": "^6.1.0",
"cac": "^6.7.12",
"dot-object": "^2.1.4",
"glob": "^7.1.6",
"glob": "^8.0.1",
"is-valid-glob": "^1.0.0",
"js-yaml": "^3.14.0"
"js-yaml": "^4.1.0"
},
"dependencies": {
"argparse": {
"version": "1.0.10",
"resolved": "https://registry.npmjs.org/argparse/-/argparse-1.0.10.tgz",
"integrity": "sha512-o5Roy6tNG4SL/FOkCAN6RzjiakZS25RLYFrcMttJqbdd8BWrnA+fGz57iN5Pb06pvBGvl5gQ0B48dJlslXvoTg==",
"brace-expansion": {
"version": "2.0.1",
"resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-2.0.1.tgz",
"integrity": "sha512-XnAIvQ8eM+kC6aULx6wuQiwVsnzsi9d3WxzV3FpWTGA19F621kwdbsAcFKXgKUHZWsy+mY6iL1sHTxWEFCytDA==",
"dev": true,
"requires": {
"sprintf-js": "~1.0.2"
"balanced-match": "^1.0.0"
}
},
"commander": {
"version": "6.2.1",
"resolved": "https://registry.npmjs.org/commander/-/commander-6.2.1.tgz",
"integrity": "sha512-U7VdrJFnJgo4xjrHpTzu0yrHPGImdsmD95ZlgYSEajAn2JKzDhDTPG9kBTefmObL2w/ngeZnilk+OV9CG3d7UA==",
"dev": true
},
"js-yaml": {
"version": "3.14.1",
"resolved": "https://registry.npmjs.org/js-yaml/-/js-yaml-3.14.1.tgz",
"integrity": "sha512-okMH7OXXJ7YrN9Ok3/SXrnu4iX9yOk+25nqX4imS2npuvTYDmo/QEZoqwZkYaIDk3jVvBOTOIEgEhaLOynBS9g==",
"glob": {
"version": "8.0.3",
"resolved": "https://registry.npmjs.org/glob/-/glob-8.0.3.tgz",
"integrity": "sha512-ull455NHSHI/Y1FqGaaYFaLGkNMMJbavMrEGFXG/PGrg6y7sutWHUHrz6gy6WEBH6akM1M414dWKCNs+IhKdiQ==",
"dev": true,
"requires": {
"argparse": "^1.0.7",
"esprima": "^4.0.0"
"fs.realpath": "^1.0.0",
"inflight": "^1.0.4",
"inherits": "2",
"minimatch": "^5.0.1",
"once": "^1.3.0"
}
},
"minimatch": {
"version": "5.1.0",
"resolved": "https://registry.npmjs.org/minimatch/-/minimatch-5.1.0.tgz",
"integrity": "sha512-9TPBGGak4nHfGZsPBohm9AWg6NoT7QTCehS3BIJABslyZbzxfV78QM2Y6+i741OPZIafFAaiiEMh5OyIrJPgtg==",
"dev": true,
"requires": {
"brace-expansion": "^2.0.1"
}
}
}
+2 -2
View File
@@ -1,6 +1,6 @@
{
"name": "mainsail",
"version": "2.2.0",
"version": "2.2.1",
"private": true,
"decription": "a klipper web interface",
"author": {
@@ -89,7 +89,7 @@
"vite-plugin-pwa": "^0.11.13",
"vite-plugin-vue2": "^1.9.3",
"vue-debounce-decorator": "^1.0.1",
"vue-i18n-extract": "^1.2.3",
"vue-i18n-extract": "^2.0.7",
"vue-router": "^3.5.2",
"vue-template-compiler": "^2.6.14",
"workbox-core": "^6.4.2"
+2 -1
View File
@@ -31,4 +31,5 @@ $t('App.TopCornerMenu.ConfirmationDialog.Description.ServiceStart')
$t('App.TopCornerMenu.ConfirmationDialog.Description.ServiceRestart')
$t('App.TopCornerMenu.ConfirmationDialog.Description.ServiceStop')
$t('App.TopCornerMenu.ConfirmationDialog.Description.HostReboot')
$t('App.TopCornerMenu.ConfirmationDialog.Description.HostShutdown')
$t('App.TopCornerMenu.ConfirmationDialog.Description.HostShutdown')
$t('Editor.Uploading')
+13 -8
View File
@@ -112,7 +112,7 @@
<v-btn text color="primary" @click="save">
{{ $t('Editor.SaveClose') }}
</v-btn>
<template v-if="restartServiceName != null">
<template v-if="restartServiceNameExists">
<v-btn text color="primary" @click="save(restartServiceName)">
{{ $t('Editor.SaveRestart') }}
</v-btn>
@@ -126,7 +126,7 @@
<script lang="ts">
import { Component, Mixins, Watch } from 'vue-property-decorator'
import BaseMixin from '@/components/mixins/base'
import { formatFilesize, windowBeforeUnloadFunction } from '@/plugins/helpers'
import { capitalize, formatFilesize, windowBeforeUnloadFunction } from '@/plugins/helpers'
import Panel from '@/components/ui/Panel.vue'
import CodemirrorAsync from '@/components/inputs/CodemirrorAsync'
import {
@@ -228,13 +228,10 @@ export default class TheEditor extends Mixins(BaseMixin) {
}
get snackbarHeadline() {
let directionUppercase = this.$t('Files.Downloading')
if (this.loaderProgress.direction) {
directionUppercase =
this.loaderProgress.direction?.charAt(0).toUpperCase() + this.loaderProgress.direction?.slice(1)
}
let directionUppercase = this.$t('Editor.Downloading')
if (this.loaderProgress.direction) directionUppercase = capitalize(this.loaderProgress.direction)
return this.$t('Editor.' + directionUppercase)
return this.$t(`Editor.${directionUppercase}`)
}
get availableServices() {
@@ -249,15 +246,23 @@ export default class TheEditor extends Mixins(BaseMixin) {
return this.filenameWithoutExtension
if (this.filename.startsWith('webcam') && ['conf', 'txt'].includes(this.fileExtension)) return 'webcamd'
if (this.filename.startsWith('mooncord') && this.fileExtension === 'json') return 'mooncord'
if (this.filename === 'moonraker.conf') return this.moonrakerRestartInstance ?? 'moonraker'
if (this.fileExtension === 'cfg') return 'klipper'
return null
}
get restartServiceNameExists() {
if (this.restartServiceName) return true
return this.availableServices.includes(this.restartServiceName)
}
get moonrakerRestartInstance() {
return this.$store.state.gui.editor.moonrakerRestartInstance
}
get confirmUnsavedChanges() {
return this.$store.state.gui.editor.confirmUnsavedChanges ?? false
}
+1 -1
View File
@@ -1,7 +1,7 @@
<template>
<v-snackbar v-if="show" :timeout="-1" :value="true" fixed right bottom dark>
<span v-if="maxNumber > 1" class="mr-1">({{ currentNumber }}/{{ maxNumber }})</span>
<strong>{{ $t('Files.Uploading') + ' ' + filename }}</strong>
<strong>{{ $t('Editor.Uploading') + ' ' + filename }}</strong>
<br />
{{ percent }} % @ {{ speed }}/s
<br />
+6 -3
View File
@@ -94,6 +94,10 @@ export default class MacroButton extends Mixins(BaseMixin) {
return this.$store.getters['printer/getMacro'](this.macro.name)
}
get isGcodeStyle() {
return this.macro.name.match(/[G|M]\d{1,3}/gm)
}
@Watch('klipperMacro')
klipperMacroChange() {
this.refreshParams()
@@ -103,7 +107,7 @@ export default class MacroButton extends Mixins(BaseMixin) {
this.paramArray.splice(0, this.paramArray.length)
this.params = {}
if (this.klipperMacro.params !== null) {
if (this.klipperMacro?.params !== null) {
Object.keys(this.klipperMacro.params).forEach((name: string) => {
if (!name.startsWith('_')) {
this.paramArray.push(name)
@@ -130,8 +134,7 @@ export default class MacroButton extends Mixins(BaseMixin) {
this.paramArray.forEach((paramname: string) => {
if (this.params[paramname].value !== null && this.params[paramname].value !== '') {
let tmp: string = paramname
if (paramname.length === 1) tmp += this.params[paramname].value
else tmp += '=' + this.params[paramname].value
tmp += this.isGcodeStyle ? this.params[paramname].value : `=${this.params[paramname].value}`
params.push(tmp)
}
+2 -2
View File
@@ -133,9 +133,9 @@ export default class DashboardMixin extends BaseMixin {
subStrings.forEach((subStr) => {
panelName += capitalize(subStr)
})
return this.$t('Panels.' + panelName + 'Panel.Headline')
return this.$t(`Panels.${panelName}Panel.Headline`)
}
return this.$t('Panels.' + capitalize(name) + 'Panel.Headline')
return this.$t(`Panels.${capitalize(name)}Panel.Headline`)
}
}
+5 -1
View File
@@ -4,4 +4,8 @@ $t('History.StatusValues.error')
$t('History.StatusValues.in_progress')
$t('History.StatusValues.klippy_disconnect')
$t('History.StatusValues.klippy_shutdown')
$t('History.StatusValues.server_exit')
$t('History.StatusValues.server_exit')
$t('Panels.TemperaturePanel.Dataset.Power')
$t('Panels.TemperaturePanel.Dataset.Speed')
$t('Panels.TemperaturePanel.Dataset.Target')
$t('Panels.TemperaturePanel.Dataset.Temperature')
@@ -557,7 +557,9 @@ export default class UpdatePanel extends Mixins(BaseMixin) {
output +=
local_version +
' > ' +
this.$tc('Machine.UpdatePanel.CommitsAvailabe', commits_behind.length, { count: commits_behind.length })
this.$tc('Machine.UpdatePanel.CommitsAvailable', commits_behind.length, {
count: commits_behind.length,
})
else if ('full_version_string' in object && object.full_version_string !== '?')
output += object.full_version_string
else output += local_version
+1 -1
View File
@@ -43,7 +43,7 @@ export default class MacrogroupPanel extends Mixins(BaseMixin) {
}
get allMacros() {
return this.$store.getters['printer/getAllMacros'] ?? []
return this.$store.getters['printer/getMacros'] ?? []
}
get macros() {
+8 -1
View File
@@ -26,14 +26,21 @@ import BaseMixin from '../mixins/base'
import Panel from '@/components/ui/Panel.vue'
import MacroButton from '@/components/inputs/MacroButton.vue'
import { mdiCodeTags } from '@mdi/js'
import { PrinterStateMacro } from '@/store/printer/types'
@Component({
components: { MacroButton, Panel },
})
export default class MacrosPanel extends Mixins(BaseMixin) {
mdiCodeTags = mdiCodeTags
get hiddenMacros() {
return (this.$store.state.gui?.macros?.hiddenMacros ?? []).map((name: string) => name.toLowerCase())
}
get macros() {
return this.$store.getters['printer/getMacros']
const macros = this.$store.getters['printer/getMacros']
return macros.filter((macro: PrinterStateMacro) => !this.hiddenMacros.includes(macro.name.toLowerCase()))
}
}
</script>
+4
View File
@@ -239,6 +239,10 @@ export default class StatusPanel extends Mixins(BaseMixin) {
return this.$store.state.printer.print_stats?.message ?? ''
}
mounted() {
if (this.current_filename !== '') this.activeTab = 'status'
}
@Watch('current_filename')
current_filenameChanged(newVal: string) {
if (newVal === '') this.activeTab = 'files'
+4 -10
View File
@@ -203,11 +203,7 @@
v-model="editHeater['bool' + dataset.charAt(0).toUpperCase() + dataset.slice(1)]"
:label="
$t('Panels.TemperaturePanel.ShowNameInChart', {
name: $t(
'Panels.TemperaturePanel.Dataset.' +
dataset.charAt(0).toUpperCase() +
dataset.slice(1)
),
name: $t(`Panels.TemperaturePanel.Dataset.${capitalize(dataset)}`),
})
"
hide-details
@@ -244,7 +240,7 @@
<script lang="ts">
import Component from 'vue-class-component'
import { Mixins } from 'vue-property-decorator'
import { convertName } from '@/plugins/helpers'
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'
@@ -254,14 +250,12 @@ import TempChart from '@/components/charts/TempChart.vue'
import TemperatureInput from '@/components/inputs/TemperatureInput.vue'
import Panel from '@/components/ui/Panel.vue'
import Responsive from '@/components/ui/Responsive.vue'
import { datasetTypes } from '@/store/variables'
import { mdiCloseThick, mdiCog, mdiFan, mdiSnowflake, mdiFire, mdiMenuDown, mdiThermometerLines } from '@mdi/js'
import { mdiCloseThick, mdiCog, mdiSnowflake, mdiFire, mdiMenuDown, mdiThermometerLines } from '@mdi/js'
@Component({
components: { Panel, TempChart, TemperatureInput, Responsive },
})
export default class TemperaturePanel extends Mixins(BaseMixin, ControlMixin) {
mdiFan = mdiFan
mdiSnowflake = mdiSnowflake
mdiCloseThick = mdiCloseThick
mdiCog = mdiCog
@@ -270,7 +264,7 @@ export default class TemperaturePanel extends Mixins(BaseMixin, ControlMixin) {
mdiThermometerLines = mdiThermometerLines
convertName = convertName
datasetTypes = datasetTypes
capitalize = capitalize
private editHeater: any = {
bool: false,
@@ -381,7 +381,7 @@ export default class SettingsMacrosTabExpert extends Mixins(BaseMixin) {
}
get allMacros() {
return this.$store.getters['printer/getAllMacros'] ?? []
return this.$store.getters['printer/getMacros'] ?? []
}
get availableMacros() {
@@ -32,7 +32,7 @@ import SettingsRow from '@/components/settings/SettingsRow.vue'
})
export default class SettingsMacrosTabSimple extends Mixins(BaseMixin) {
get macros() {
return this.$store.getters['printer/getAllMacros'] ?? []
return this.$store.getters['printer/getMacros'] ?? []
}
get hiddenMacros() {
+1 -1
View File
@@ -384,7 +384,7 @@
"UpdatePanel": {
"CheckForUpdates": "Tjek for opdateringer",
"Commits": "Forpligtelse",
"CommitsAvailabe": "Ingen commits tilgængelige | {count} commits tilgængelige | {count} commits tilgængelige",
"CommitsAvailable": "Ingen commits tilgængelige | {count} commits tilgængelige | {count} commits tilgængelige",
"CommitsOnDate": " Forpligtelse af {date}",
"CommittedDaysAgo": "Forpligtelse delt for {days} dage siden",
"CommittedHoursAgo": "Forpligtelse delt for {hours} timer siden",
+1 -1
View File
@@ -431,7 +431,7 @@
"UpdatePanel": {
"CheckForUpdates": "auf aktualisierungen prüfen",
"Commits": "Commits",
"CommitsAvailabe": "keine Einreichung verfügbar | {count} Einreichung verfügbar | {count} Einreichungen verfügbar",
"CommitsAvailable": "keine Einreichung verfügbar | {count} Einreichung verfügbar | {count} Einreichungen verfügbar",
"CommitsOnDate": "Engereicht am {date}",
"CommittedDaysAgo": "eingereicht vor {days} Tagen",
"CommittedHoursAgo": "eingereicht vor {hours} Stunden",
+27 -59
View File
@@ -13,7 +13,7 @@
},
"MoonrakerWarnings": {
"MoonrakerComponent": "Moonraker: {component}",
"MoonrakerFailedComponentDescription": "An error was detected while loading the moonraker component '{component}'. Please check the logfile and fix the issue.",
"MoonrakerFailedComponentDescription": "An error was detected while loading the moonraker component '{component}'. Please check the log file and fix the issue.",
"MoonrakerWarning": "Moonraker warning",
"UnparsedConfigOption": "Unparsed config option '{option}: {value}' detected in section [{section}]. This may be an option no longer available or could be the result of a module that failed to load. In the future this will result in a startup error.",
"UnparsedConfigSection": "Unparsed config section [{section}] detected. This may be the result of a component that failed to load. In the future this will result in a startup error."
@@ -131,20 +131,18 @@
}
},
"Editor": {
"Cancel": "Cancel",
"ConfigReference": "Config Reference",
"DontSave": "Don't save",
"Downloading": "Downloading",
"Uploading": "Uploading",
"FailedSave": "{filename} could not be uploaded!",
"FileReadOnly": "read-only",
"Minimap": "Show minimap",
"SaveClose": "Save & close",
"SaveRestart": "Save & Restart",
"SuccessfullySaved": "{filename} successfully saved.",
"UnsavedChanges": "Unsaved Changes",
"UnsavedChangesMessage": "Do you want to save your changes made to {filename}?",
"UnsavedChangesSubMessage": "Your changes will be lost if you don't save them. You can disable this message in the editor settings.",
"Uploading": "Uploading"
"UnsavedChangesSubMessage": "Your changes will be lost if you don't save them. You can disable this message in the editor settings."
},
"EmergencyStopDialog": {
"AreYouSure": "Are you sure?",
@@ -164,7 +162,6 @@
"DeleteDirectoryQuestion": "Do you really want to delete the \"{name}\" directory with all its contents?",
"DeleteSelectedQuestion": "Do you really want to delete {count} selected files?",
"Download": "Download",
"Downloading": "Downloading",
"EditFile": "Edit File",
"Empty": "Empty",
"Filament": "Filament",
@@ -173,7 +170,7 @@
"FilamentUsage": "Filament Usage",
"FilamentWeight": "Filament Weight",
"Files": "Files",
"Filesize": "Filesize",
"Filesize": "File size",
"Free": "Free",
"FreeDisk": "Free disk",
"GCodeFiles": "G-Code Files",
@@ -206,7 +203,6 @@
"SuccessfullyRenamed": "Successfully renamed {filename}.",
"SuccessfullyUploaded": "Upload of {filename} successful!",
"Total": "Total",
"Uploading": "Uploading",
"UploadNewGcode": "Upload new G-Code",
"Used": "Used",
"View3D": "View 3D"
@@ -282,7 +278,7 @@
"History": {
"AddNote": "Add note",
"AllJobs": "All",
"AvgPrinttime": "Printtime - Ø",
"AvgPrinttime": "Print Time - Ø",
"Cancel": "Cancel",
"CreateNote": "Create Note",
"Delete": "Delete",
@@ -308,19 +304,19 @@
"Jobs": "Jobs",
"LastModified": "Last Modified",
"LayerHeight": "Layer Height",
"LongestPrinttime": "Longest Printtime",
"LongestPrinttime": "Longest Print Time",
"Note": "Note",
"ObjectHeight": "Object Height",
"PrintDuration": "Print Time",
"PrintHistory": "Print History",
"PrintTime": "Print Time",
"PrinttimeAvg": "Printtime - Ø",
"PrinttimeAvg": "Print Time - Ø",
"Reprint": "Reprint",
"Save": "save",
"Search": "search",
"SelectedFilamentUsed": "Selected Filament Used",
"SelectedJobs": "Selected Jobs",
"SelectedPrinttime": "Selected Printtime",
"SelectedPrinttime": "Selected Print Time",
"Slicer": "Slicer",
"SlicerVersion": "Slicer Version",
"StartTime": "Start Time",
@@ -341,7 +337,7 @@
"TotalDuration": "Total Time",
"TotalFilamentUsed": "Total Filament Used",
"TotalJobs": "Total Jobs",
"TotalPrinttime": "Total Printtime",
"TotalPrinttime": "Total Print Time",
"TotalTime": "Total Time"
},
"JobQueue": {
@@ -397,7 +393,7 @@
"TRIGGERED": "TRIGGERED"
},
"LogfilesPanel": {
"Logfiles": "Logfiles"
"Logfiles": "Log Files"
},
"SystemPanel": {
"Constants": "Constants",
@@ -427,7 +423,7 @@
"UpdatePanel": {
"CheckForUpdates": "Check for updates",
"Commits": "Commits",
"CommitsAvailabe": "no commits available | {count} commit available | {count} commits available",
"CommitsAvailable": "no commits available | {count} commit available | {count} commits available",
"CommitsOnDate": "Commits on {date}",
"CommittedDaysAgo": "committed {days} days ago",
"CommittedHoursAgo": "committed {hours} hours ago",
@@ -449,22 +445,6 @@
}
},
"Panels": {
"ControlPanel": {
"ALL": "ALL",
"AlternateControls": "Alternate controls",
"Headline": "Controls",
"InvertX": "Invert X",
"InvertY": "Invert Y",
"InvertZ": "Invert Z",
"PleaseConfigureSteps": "Please configure steps",
"QGL": "QGL",
"SettingsInterfaceControl": "Settings > Interface > Control",
"SetupControls": "Setup Controls",
"X": "X",
"Y": "Y",
"Z": "Z",
"ZTilt": "Z Tilt"
},
"ExtruderControlPanel": {
"Allowed": "Allowed",
"EstimatedExtrusion": "Estimated Extrusion:",
@@ -511,7 +491,6 @@
"PressureAdvanceSettings": {
"Advance": "Pressure Advance",
"Extruder": "Extruder",
"PressureAdvance": "Pressure Advance",
"SmoothTime": "Smooth Time"
}
},
@@ -564,7 +543,7 @@
"Files": "Files",
"EmptyGcodes": "No G-Code available.",
"EmptyJobqueue": "There is currently no file in the job queue.",
"Jobqueue": "Jobqueue ({count})",
"Jobqueue": "Job Queue ({count})",
"JobqueueMoreFiles": "no more jobs | one more job | {count} more jobs",
"PrintTime": "Print Time",
"Flow": "Flow",
@@ -586,7 +565,6 @@
"TemperaturePanel": {
"AutoscaleChart": "Autoscale Chart",
"Avg": "Avg",
"Color": "Color",
"Cooldown": "Cooldown",
"Current": "Current",
"Dataset": {
@@ -615,21 +593,13 @@
"ALL": "ALL",
"Headline": "Toolhead",
"Invalid": "Invalid",
"InvertX": "Invert X",
"InvertY": "Invert Y",
"InvertZ": "Invert Z",
"MotorsOff": "Motors Off",
"OutOfRange": "Out of range!",
"PleaseConfigureSteps": "Please configure steps",
"Position": "Position",
"QGL": "QGL",
"Relative": "relative",
"SettingsInterfaceControl": "Settings > Interface > Control",
"SetupControls": "Setup Controls",
"SpeedFactor": "Speed factor",
"XOffset": "X-Offset",
"YOffset": "Y-Offset",
"ZOffset": "Z-Offset",
"ZTilt": "Z-Tilt"
},
"WebcamPanel": {
@@ -637,12 +607,10 @@
"FPS": "FPS",
"Headline": "Webcam",
"NoWebcam": "No webcam available. Add a webcam under \"Interface Settings\" -> \"Webcams\".",
"UnknownWebcamService": "Unknown Webcam Service",
"UrlNotAvailable": "URL not available"
"UnknownWebcamService": "Unknown Webcam Service"
},
"ZoffsetPanel": {
"Clear": "Clear",
"CurrentOffset": "current offset",
"Headline": "Z-Offset",
"Later": "Later",
"Ok": "OK",
@@ -729,7 +697,7 @@
"InvertZMovement": "Invert Z axis movement direction",
"IsDefault": " (default)",
"MaximumValues": "Maximum values: {maximum}",
"MaximumValuesVisibility": "Maximum of {maximum} values is recommended for best visibilty",
"MaximumValuesVisibility": "Maximum of {maximum} values is recommended for best visibility",
"MinimumValues": "Minimum values: {minimum}",
"MotorsOff": "Motors off{isDefault}",
"MoveDistancesEInMm": "Extrusion amount presets (in mm)",
@@ -873,13 +841,13 @@
"Camera": "Camera",
"CameraDescription": "Select which camera should be used",
"ConstantRateFactor": "Constant Rate Factor",
"ConstantRateFactorDescription": "This configure quality vs filesize of the rendered video. The range of the CRF scale is 0–51, where 0 is lossless, 23 is the default and 51 is worst quality possible. A lower value generally leads to higher quality and a subjectively sane range is 17–28. Consider 17 or 18 to be visually lossless.",
"duplicatelastframe": "duplicatelastframe",
"ConstantRateFactorDescription": "This configure quality vs file size of the rendered video. The range of the CRF scale is 0–51, where 0 is lossless, 23 is the default and 51 is worst quality possible. A lower value generally leads to higher quality and a subjectively sane range is 17–28. Consider 17 or 18 to be visually lossless.",
"duplicatelastframe": "Duplicate Last Frame",
"duplicatelastframeDescription": "Duplicates the last frame on the end of the video",
"Enabled": "Enabled",
"EnabledDescription": "If disabled, G-Code macros are ignored and autorender is skipped.",
"Extraoutputparams": "Extraoutputparams",
"ExtraoutputparamsDescription": "Defines extra output parameters to FFMPEG. Note: Specifing anything here will disable the rotation setting",
"EnabledDescription": "If disabled, G-Code macros are ignored and auto-render is skipped.",
"Extraoutputparams": "Extra Output Params",
"ExtraoutputparamsDescription": "Defines extra output parameters to FFMPEG. Note: Specifying anything here will disable the rotation setting",
"FwRetract": "FW Retract",
"FwRetractDescription": "Use firmware retraction in the timelapse macro",
"GcodeVerbose": "Verbose G-Code",
@@ -888,7 +856,7 @@
"HyperlapseCycle": "Hyperlapse Cycle Time",
"HyperlapseCycleDescription": "A snapshot will be taken any X seconds",
"Mode": "Mode",
"ModeDescription": "Select between Layermacro and Hyperlapse (timebased) mode",
"ModeDescription": "Select between Layer macro and Hyperlapse (time-based) mode",
"OutputFramerate": "Output Framerate",
"OutputFramerateDescription": "Defines the framerate of the video. Note: this will be ignored if variable_fps is enabled",
"Parkhead": "Park Toolhead",
@@ -897,14 +865,14 @@
"ParkposDescription": "Select the parking position",
"ParkTime": "Park Time",
"ParkTimeDescription": "Add additional idle time when parking.",
"Pixelformat": "Pixelformat",
"PixelformatDescription": "Defines the pixelformat of the output video",
"Pixelformat": "Pixel format",
"PixelformatDescription": "Defines the pixel format of the output video",
"PosDZ": "Position Z",
"PosDZDescription": "Park postion Z (relative)",
"PosDZDescription": "Park position Z (relative)",
"PosX": "Position X",
"PosXDescription": "Park postion X (absolute)",
"PosXDescription": "Park position X (absolute)",
"PosY": "Position Y",
"PosYDescription": "Park postion Y (absolute)",
"PosYDescription": "Park position Y (absolute)",
"PreviewImage": "Preview Image",
"PreviewImageDescription": "Save a preview image with the same name as the video",
"RenderingOptions": "Rendering Options",
@@ -938,7 +906,7 @@
"BoolBigThumbnail": "Large thumbnail",
"BoolBigThumbnailDescription": "Display a large thumbnail in the status panel during a print.",
"BoolHideUploadAndPrintButton": "Hide Upload and Print Button",
"BoolHideUploadAndPrintButtonDescription": "Show or hide the \"Upload and Print\" button in the topbar.",
"BoolHideUploadAndPrintButtonDescription": "Show or hide the \"Upload and Print\" button in the top bar.",
"ConfirmOnEmergencyStop": "Require confirm on Emergency Stop",
"ConfirmOnEmergencyStopDescription": "Show a confirmation dialog on Emergency Stop",
"ConfirmOnPowerDeviceChange": "Require confirm on Device Power changes",
@@ -993,7 +961,7 @@
},
"Timelapse": {
"AllFiles": "All",
"Autorender": "Autorender",
"Autorender": "Auto-render",
"Cancel": "Cancel",
"Create": "Create",
"CreateNewDirectory": "create directory",
+1 -1
View File
@@ -414,7 +414,7 @@
"UpdatePanel": {
"CheckForUpdates": "Verificar actualizaciones",
"Commits": "Actualizaciones",
"CommitsAvailabe": "Sin actualizaciones disponibles | {count} actualización disponible | {count} actualizaciones disponibles",
"CommitsAvailable": "Sin actualizaciones disponibles | {count} actualización disponible | {count} actualizaciones disponibles",
"CommitsOnDate": "Generado el {date}",
"CommittedDaysAgo": "Generado hace {days} día/s",
"CommittedHoursAgo": "Generado hace {hours} horas",
+2 -2
View File
@@ -1,5 +1,5 @@
{
"_last_update:": "26.05.2022",
"_last_update": "26.05.2022",
"App": {
"Notifications": {
"KlipperWarnings": {
@@ -415,7 +415,7 @@
"UpdatePanel": {
"CheckForUpdates": "Contrôle de disponibilité de mises à jour",
"Commits": "publié",
"CommitsAvailabe": "pas de mise à jour disponible | {count} mise à jour disponible | {count} mises à jour disponibles",
"CommitsAvailable": "pas de mise à jour disponible | {count} mise à jour disponible | {count} mises à jour disponibles",
"CommitsOnDate": "Publié le {date}",
"CommittedDaysAgo": "Publié il y a {days} jours",
"CommittedHoursAgo": "Publié il y a {hours} heures",
+1 -1
View File
@@ -340,7 +340,7 @@
"UpdatePanel": {
"CheckForUpdates": "Frissítések keresése",
"Commits": "Véglegesítés",
"CommitsAvailabe": "nincs elérhető véglegesítés | {count} véglegesítés elérhető | {count} véglegesítés elérhető",
"CommitsAvailable": "nincs elérhető véglegesítés | {count} véglegesítés elérhető | {count} véglegesítés elérhető",
"CommitsOnDate": "véglegesítés ekkor:{date}",
"CommittedDaysAgo": "véglegesítve {days} nappal ezelőtt",
"CommittedHoursAgo": "véglegesítve {hours} órával ezelőtt",
+1 -1
View File
@@ -340,7 +340,7 @@
"UpdatePanel": {
"CheckForUpdates": "Verifica aggiornamenti",
"Commits": "Commits",
"CommitsAvailabe": "no commits available | {count} commit available | {count} commits available",
"CommitsAvailable": "no commits available | {count} commit available | {count} commits available",
"CommitsOnDate": "Commits on {date}",
"CommittedDaysAgo": "committed {days} days ago",
"CommittedHoursAgo": "committed {hours} hours ago",
+1 -1
View File
@@ -427,7 +427,7 @@
"UpdatePanel": {
"CheckForUpdates": "アップデートを確認",
"Commits": "コミット",
"CommitsAvailabe": "有効なコミットなし | {count}個のコミット有効 | {count}個のコミット有効",
"CommitsAvailable": "有効なコミットなし | {count}個のコミット有効 | {count}個のコミット有効",
"CommitsOnDate": "{date}のコミット",
"CommittedDaysAgo": "{days}日前にコミット",
"CommittedHoursAgo": "{hours}時間前にコミット",
+329 -358
View File
File diff suppressed because it is too large. Load diff
+1 -1
View File
@@ -427,7 +427,7 @@
"UpdatePanel": {
"CheckForUpdates": "Controleer op updates",
"Commits": "Commits",
"CommitsAvailabe": "geen commits beschikbaar | {count} commit beschikbaar | {count} commits beschikbaar",
"CommitsAvailable": "geen commits beschikbaar | {count} commit beschikbaar | {count} commits beschikbaar",
"CommitsOnDate": "Gecommit op {date}",
"CommittedDaysAgo": "{days} dagen geleden gecommit",
"CommittedHoursAgo": "{days} uur geleden gecommit",
+1 -1
View File
@@ -427,7 +427,7 @@
"UpdatePanel": {
"CheckForUpdates": "Sprawdź , czy są dostępne aktualizacje",
"Commits": "Wydane",
"CommitsAvailabe": "Brak nowych wydań | {count} dostępnych wydań| {count} dostępnych wydań",
"CommitsAvailable": "Brak nowych wydań | {count} dostępnych wydań| {count} dostępnych wydań",
"CommitsOnDate": "Wydano {date}",
"CommittedDaysAgo": "Wydano {days} dni temu",
"CommittedHoursAgo": "Wydano {hours} godzin temu",
+175 -21
View File
@@ -3,7 +3,24 @@
"Notifications": {
"KlipperWarnings": {
"DeprecatedOption": "Опция '{option}' в разделе '{section}' устарела и будет удалена в будущем выпуске.",
"DeprecatedValue": "Значение '{value}' в опции '{option}' в секции '{section}' устарело и будет удалено в будущем релизе."
"DeprecatedValue": "Значение '{value}' в опции '{option}' в секции '{section}' устарело и будет удалено в будущем релизе.",
"KlipperWarning": "Предупреждение о клиппере",
"DeprecatedValueHeadline": "Устаревшее значение клиппера",
"DeprecatedOptionHeadline": "Устаревшая опция клиппера"
},
"Remind": "Напомнить:",
"NextReboot": "следующая перезагрузка",
"Never": "никогда",
"DismissAll": "Отказаться от всех",
"NoNotification": "Уведомление отсутствует",
"DependencyName": "Зависимость: {name}",
"DependencyDescription": "Текущая версия {name} не поддерживает все возможности Mainsail. Обновите {name} по крайней мере до {neededVersion}.",
"MoonrakerWarnings": {
"MoonrakerComponent": "Moonraker: {component}",
"MoonrakerWarning": "Предупреждение Moonraker",
"UnparsedConfigOption": "Обнаружена неразобранная опция конфигурации '{option}: {value}' обнаружена в секции [{section}]. Это может быть опция, которая больше недоступна, или результат неудачной загрузки модуля. В будущем это приведет к ошибке при запуске.",
"UnparsedConfigSection": "Обнаружен неразобранный раздел конфигурации [{section}]. Это может быть результатом неудачной загрузки компонента. В будущем это приведет к ошибке при запуске.",
"MoonrakerFailedComponentDescription": "Обнаружена ошибка при загрузке компонента moonraker '{component}'. Пожалуйста, проверьте лог-файл и устраните проблему."
}
},
"Printers": "Принтер",
@@ -82,6 +99,11 @@
"RecoveringDone": "Восстановление проделанной работы",
"Updating": "Обновление",
"UpdatingDone": "Обновление выполнено"
},
"NumberInput": {
"GreaterOrEqualError": "Должно быть больше или равно {min}!",
"MustBeBetweenError": "Должно быть между {min} и {max}!",
"NoEmptyAllowedError": "Вход не должен быть пустым!"
}
},
"ConnectionDialog": {
@@ -172,7 +194,13 @@
"Uploading": "Загрузить",
"UploadNewGcode": "Загрузить новый Gcode",
"Used": "Использует: ",
"View3D": "3D просмотр"
"View3D": "3D просмотр",
"DeleteSelectedQuestion": "Вы действительно хотите удалить {count} выбранных файлов?",
"LastEndTime": "Последнее время окончания",
"LastFilamentUsed": "Последний использованный материал",
"LastPrintDuration": "Продолжительность последней печати",
"LastStartTime": "Время последнего запуска",
"LastTotalDuration": "Последняя общая продолжительность"
},
"GCodeViewer": {
"ClearLoadedFile": "Удалить",
@@ -230,7 +258,13 @@
"TitleCalibrate": " новая постельная сетка",
"TitleClear": "Ясная сетка",
"TitleHomeAll": "Дома все",
"Wireframe": "Каркас"
"Wireframe": "Каркас",
"Later": "Позже",
"Ok": "ХОРОШО",
"RemoveSaveDescription": "Профиль bed_mesh был зарегистрирован как удаленный. Нажмите на SAVE_CONFIG, чтобы удалить его из файла printer.cfg, и перезапустите Klipper.",
"SAVE_CONFIG": "СОХРАНИТЬ_КОНФИГ",
"ScaleGradient": "Градиент шкалы",
"ScaleZMax": "Масштаб z-макс."
},
"History": {
"AllJobs": "весь",
@@ -275,7 +309,27 @@
"TotalFilamentUsed": "Общая используемая нить",
"TotalJobs": "Всего отпечатков",
"TotalPrinttime": "Общее время печати",
"TotalTime": "Общее время"
"TotalTime": "Общее время",
"AddNote": "Добавить заметку",
"Cancel": "Отмена",
"CreateNote": "Создать заметку",
"DeleteSelectedQuestion": "Вы действительно хотите удалить {count} выбранных заданий?",
"EditNote": "Примечание редакции",
"Note": "Примечание",
"Save": "сохранить",
"SelectedFilamentUsed": "Выбранный используемый материал",
"SelectedJobs": "Избранные вакансии",
"SelectedPrinttime": "Выбранное время печати",
"TitleExportHistory": "История экспорта",
"StatusValues": {
"cancelled": "Отменено",
"completed": "Завершено",
"error": "Ошибка",
"in_progress": "В процессе выполнения",
"klippy_disconnect": "Клипповое разъединение",
"klippy_shutdown": "Клиппи отключение",
"server_exit": "Выход сервера"
}
},
"JobQueue": {
"AllJobs": "Все заказы",
@@ -283,7 +337,8 @@
"JobQueue": "Очередь на работу",
"Jobs": "Заказы",
"Pause": "Pause",
"Start": "Начало"
"Start": "Начало",
"RemoveFromQueue": "Удалить из очереди"
},
"Machine": {
"ConfigFilesPanel": {
@@ -317,7 +372,9 @@
"Total": "Всего",
"UploadFile": "Загрузить файл",
"Uploading": "Загрузка",
"Used": "Используется"
"Used": "Используется",
"DeleteSelectedQuestion": "Удалить {count} выбранных элементов?",
"Root": "Корень"
},
"EndstopPanel": {
"Endstop": "Концевой упор",
@@ -335,12 +392,29 @@
"LastStats": "Последняя статистика",
"Load": "Нагрузка",
"Memory": "Память",
"SystemLoad": "Нагрузки на систему"
"SystemLoad": "Нагрузки на систему",
"Cpu": "CPU",
"NoMoreInfos": "Больше никакой информации",
"Values": {
"Awake": "Проснуться: {awake}",
"Bandwidth": "Пропускная способность: {bandwidth}/s",
"Distro": "Дистрибутив: {name} {version_id}",
"Frequency": "Freq: {frequency}",
"Load": "Загрузка: {load}",
"Memory": "Память: {memory}",
"Os": "Операционная система: {os}",
"Received": "Получено: {received}",
"Temp": "Температура: {temp}°C",
"TempMax": "макс: {темп}°C",
"TempMin": "мин: {temp}°C",
"Transmitted": "Передано: {transmitted}",
"Version": "Версия: {version}"
}
},
"UpdatePanel": {
"CheckForUpdates": "Проверьте наличие обновлений",
"Commits": "Обязательства",
"CommitsAvailabe": "нет доступных коммитов | {count} доступных коммитов | {count} доступных коммитов",
"CommitsAvailable": "нет доступных коммитов | {count} доступных коммитов | {count} доступных коммитов",
"CommitsOnDate": "Отправлено {date}",
"CommittedDaysAgo": "Отправлено {days} назад",
"CommittedHoursAgo": "Отправлено {hours} назад",
@@ -365,7 +439,17 @@
"ExtruderControlPanel": {
"Extrude": "Экструдировать",
"ExtrusionFactor": "Коэффициент экструзии",
"Retract": "Въехать"
"Retract": "Въехать",
"Allowed": "Разрешено",
"EstimatedExtrusion": "Предполагаемая экструзия:",
"ExtruderTempTooLow": "Температура экструдера. <",
"ExtrusionFeedrate": "Скорость подачи экструзии",
"FilamentLength": "Длина нити",
"Headline": "Экструдер",
"LoadFilament": "Нагрузочная нить",
"Requested": "Запрошено",
"TooLargeExtrusion": "Экструзия слишком велика!",
"UnloadFilament": "Выгрузить нить"
},
"FarmPrinterPanel": {
"ReconnectToPrinter": "Подключите",
@@ -483,7 +567,14 @@
"Slicer": "Slicer",
"Speed": "Скорость",
"Total": "Всего",
"Unknown": "Неизвестный"
"Unknown": "Неизвестный",
"EmptyGcodes": "G-код отсутствует.",
"EmptyJobqueue": "There is currently no file in the job queue.",
"Files": "Файлы",
"Jobqueue": "Jobqueue ({count})",
"JobqueueMoreFiles": "нет больше рабочих мест | одно рабочее место | {count} больше рабочих мест",
"PrintTime": "Время печати",
"Status": "Статус"
},
"TemperaturePanel": {
"AutoscaleChart": "Автомасштабируемая диаграмма",
@@ -535,7 +626,14 @@
"SettingsInterfaceControl": "Настройки > интерфейс > управление",
"SetupControls": "Установить контроль",
"SpeedFactor": "Коэффициент скорости",
"ZTilt": "Z Tilt"
"ZTilt": "Z Наклон",
"Headline": "Головка инструмента",
"Invalid": "Неверный",
"MotorsOff": "Двигатели выключены",
"OutOfRange": "Вне зоны доступа!",
"XOffset": "X-смещение",
"YOffset": "Y-смещение",
"ZOffset": "Z-смещение"
},
"WebcamPanel": {
"All": "Все",
@@ -543,7 +641,8 @@
"Headline": "Веб-камера",
"UnknownWebcamService": "Неизвестная веб-камера",
"UrlNotAvailable": "URL недоступен",
"Webcam": "Веб-камера"
"Webcam": "Веб-камера",
"NoWebcam": "Нет доступной веб-камеры. Добавьте веб-камеру в разделе \"Настройки интерфейса\" -> \"Веб-камеры\"."
},
"ZoffsetPanel": {
"CurrentOffset": "Текущее смещение",
@@ -556,7 +655,24 @@
"SaveInfoDescriptionPrint": "Новое смещение по Z было рассчитано и зарегистрировано. После печати нажмите на \"SAVE CONFIG\" в верхней панели, чтобы сохранить его в файле printer.cfg, и перезапустите Klipper.",
"SaveInfoHeadline": "Информация",
"ToEndstop": "до конечной остановки",
"ToProbe": "к зонду"
"ToProbe": "к зонду",
"Clear": "Очистить"
},
"ControlPanel": {
"ALL": "ВСЕ",
"AlternateControls": "Альтернативные средства управления",
"Headline": "Управление",
"InvertX": "Инвертировать X",
"InvertY": "Инвертировать Y",
"InvertZ": "Инвертировать Z",
"PleaseConfigureSteps": "Пожалуйста, настройте шаги",
"QGL": "QGL",
"SettingsInterfaceControl": "Настройки > Интерфейс > Управление",
"SetupControls": "Элементы управления настройками",
"X": "X",
"Y": "Y",
"Z": "Z",
"ZTilt": "Z Наклон"
}
},
"PowerDeviceChangeDialog": {
@@ -593,7 +709,9 @@
"SelectPrinter": "Выберите принтер",
"TryAgain": "повторите попытку",
"UpdatePrinter": "Обновление принтера",
"YouCanFindMore": "Более подробную информацию вы можете найти на сайте"
"YouCanFindMore": "Более подробную информацию вы можете найти на сайте",
"HostnameIp": "Имя хоста/IP",
"Port": "Порт"
},
"Settings": {
"Cancel": "Отмена",
@@ -615,7 +733,8 @@
"Name": "Имя",
"Regex": "Regex",
"StoreButton": "Фильтр магазина",
"UpdateButton": "Обновление фильтра"
"UpdateButton": "Обновление фильтра",
"Filters": "Фильтры"
},
"ControlTab": {
"Bars": "Бар",
@@ -636,7 +755,15 @@
"SpeedXY": "Скорость XY",
"SpeedZ": "Скорость Z",
"Style": "Стиль",
"ValueGreaterThan": "Значение должно быть больше, чем {value}"
"ValueGreaterThan": "Значение должно быть больше, чем {value}",
"EnableXYHoming": "Включение комбинированного наведения по осям X и Y",
"EstimatedExtrusionInfo": "Показать примерную информацию об экструзии",
"EstimatedExtrusionInfoDescription": "Показать / скрыть информацию о предполагаемых экструзиях на основе количества экструзии и скорости подачи",
"IsDefault": " (по умолчанию)",
"QuadGantryLevel": "Quad Gantry Level{isDefault}",
"ZOffsetIncrements": "Приращения Z-смещения (в мм)",
"ZTiltAdjust": "Z-Tilt Adjust{isDefault}",
"MotorsOff": "Двигатели выключены {isDefault}"
},
"DashboardTab": {
"Dashboard": "Приборная панель",
@@ -652,7 +779,11 @@
"ConfirmUnsavedChangesDescription": "Если включено, то для сохранения/отмены несохраненных изменений требуется подтверждение. Если отключено, изменения отбрасываются в фоновом режиме.",
"Editor": "Редактор",
"UseEscToClose": "Нажмите ESC, чтобы закрыть редактор",
"UseEscToCloseDescription": "Позволяет закрыть редактор с помощью ESC."
"UseEscToCloseDescription": "Позволяет закрыть редактор с помощью ESC.",
"KlipperRestartMethod": "Метод перезапуска клиппера",
"KlipperRestartMethodDescription": "Выберите, какой метод перезапуска будет использоваться при 'Save & Restart' при редактировании файлов конфигурации Klipper.",
"MoonrakerRestartInstance": "Инстанция перезапуска Moonraker",
"MoonrakerRestartInstanceDescription": "Выберите, какая служба Moonraker будет перезапускаться при 'Save & Restart' при редактировании файлов конфигурации Moonraker."
},
"GCodeViewerTab": {
"BackgroundColor": "Цвет фона",
@@ -661,7 +792,8 @@
"GridColor": "Цвет сетки",
"MaxFeed": "Максимальная подача",
"MinFeed": "Мин. подача",
"ShowAxes": "Показать оси"
"ShowAxes": "Показать оси",
"ProgressColor": "Цвет прогресса"
},
"GeneralTab": {
"Backup": "Резервная копия",
@@ -685,7 +817,12 @@
"PrinterName": "Имя принтера",
"Reset": "сброс",
"Restore": "Восстановить",
"RestoreDialog": "Пожалуйста, выберите все разделы, которые вы хотите восстановить:"
"RestoreDialog": "Пожалуйста, выберите все разделы, которые вы хотите восстановить:",
"EstimateValues": {
"Filament": "Филамент",
"File": "Файл",
"Slicer": "Ломтерезка"
}
},
"InterfaceSettings": "Настройки интерфейса",
"MacrosTab": {
@@ -736,7 +873,11 @@
"PresetInfo": "Вы должны задать минимальную целевую температуру или пользовательский gcode.",
"StoreButton": "Сохранить предустановку",
"UpdateButton": "Обновление предустановки",
"UpdateCooldown": "Обновить время ожидания"
"UpdateCooldown": "Обновить время ожидания",
"ErrorInvalidValue": "Недопустимое значение",
"ErrorNameNotUnique": "Имя уже существует",
"ErrorNameRequired": "Требуемое имя",
"PresetNamePlaceholder": "Имя предустановки (обязательно)"
},
"RemotePrintersTab": {
"AddPrinter": "Добавить принтер",
@@ -920,5 +1061,18 @@
"Variable": "Переменная",
"Video": "Видео"
},
"title": "Pусский"
"title": "Pусский",
"FullscreenUpload": {
"CannotUploadFile": "Невозможно загрузить файл!",
"DropFilesToUploadFiles": "Сбрасывайте файлы для загрузки"
},
"Dialogs": {
"StartPrint": {
"Headline": "Начать работу",
"Cancel": "Cancel",
"DoYouWantToStartFilename": "Вы хотите начать {имя файла}?",
"Print": "вывести",
"Timelapse": "Таймлапс"
}
}
}
+1 -1
View File
@@ -406,7 +406,7 @@
"UpdatePanel": {
"CheckForUpdates": "Sök efter uppdateringar",
"Commits": "Commits",
"CommitsAvailabe": "inga commits tillgängliga | {count} commit tillgänglig | {count} commits tillgängliga",
"CommitsAvailable": "inga commits tillgängliga | {count} commit tillgänglig | {count} commits tillgängliga",
"CommitsOnDate": "Commits den {date}",
"CommittedDaysAgo": "committed för {days} dagar sedan",
"CommittedHoursAgo": "committed för {hours} timmar sedan",
+558 -440
View File
File diff suppressed because it is too large. Load diff
+25 -62
View File
@@ -55,38 +55,40 @@ export const getters: GetterTree<PrinterState, RootState> = {
return state.virtual_sdcard?.progress ?? 0
},
getMacros: (state, getters, rootState) => {
getMacros: (state) => {
const array: PrinterStateMacro[] = []
const hiddenMacros: string[] = []
const config = state.configfile?.config ?? {}
const settings = state.configfile?.settings ?? null
rootState.gui?.macros?.hiddenMacros.forEach((item: string, index: number) => {
hiddenMacros[index] = item.toLowerCase()
})
Object.keys(config)
.filter((prop) => prop.toLowerCase().startsWith('gcode_macro'))
.forEach((prop) => {
const name = prop.replace('gcode_macro ', '')
if (name.startsWith('_')) return
if (state.configfile?.config) {
Object.keys(state.configfile?.config).forEach((prop) => {
if (
prop.startsWith('gcode_macro') &&
!prop.startsWith('gcode_macro _') &&
!('rename_existing' in state.configfile.config[prop]) &&
!(hiddenMacros.indexOf(prop.replace('gcode_macro ', '').toLowerCase()) > -1)
) {
const variables = state[prop] ?? {}
const propLower = prop.toLowerCase()
const propSettings = settings[propLower]
if ('rename_existing' in propSettings) return
array.push({
name: prop.replace('gcode_macro ', ''),
description: state.configfile.config[prop].description ?? null,
prop: state.configfile.config[prop],
params: getMacroParams(state.configfile.config[prop]),
variables,
})
}
const variables = state[prop] ?? {}
array.push({
name,
description: settings[propLower].description ?? null,
prop: propSettings,
params: getMacroParams(propSettings),
variables,
})
})
}
return caseInsensitiveSort(array, 'name')
},
getMacro: (state, getters) => (name: string) => {
const nameLower = name.toLowerCase()
return getters['getMacros'].find((macro: PrinterStateMacro) => macro.name.toLowerCase() === nameLower)
},
getHeaters: (state, getters, rootState, rootGetters) => {
const heaters: PrinterStateHeater[] = []
const colorOff = 'grey darken-2'
@@ -461,45 +463,6 @@ export const getters: GetterTree<PrinterState, RootState> = {
return state.heaters?.available_sensors ?? []
},
getAllMacros: (state) => {
const array: PrinterStateMacro[] = []
Object.keys(state.configfile?.config ?? {}).forEach((prop) => {
if (
prop.startsWith('gcode_macro') &&
!prop.startsWith('gcode_macro _') &&
!Object.hasOwnProperty.call(state.configfile.config[prop], 'rename_existing')
) {
const variables = state[prop] ?? {}
array.push({
name: prop.replace('gcode_macro ', ''),
description: state.configfile.config[prop].description ?? null,
prop: state.configfile.config[prop],
params: getMacroParams(state.configfile.config[prop]),
variables,
})
}
})
return caseInsensitiveSort(array, 'name')
},
getMacro: (state) => (name: string) => {
if ('gcode_macro ' + name in state.configfile.config) {
const config = state.configfile.config['gcode_macro ' + name]
return {
name,
description: config.description ?? null,
prop: config,
params: getMacroParams(config),
}
}
return null
},
getFilamentSensors: (state) => {
const sensorObjectNames = ['filament_switch_sensor', 'filament_motion_sensor']
const sensors: PrinterStateFilamentSensors[] = []
+6 -5
View File
@@ -26,6 +26,7 @@ export const actions: ActionTree<PrinterTempHistoryState, RootState> = {
dispatch('reset')
const now = new Date()
const allHeaters = rootGetters['printer/getAvailableHeaters'] ?? []
const allSensors = rootGetters['printer/getAvailableSensors'] ?? []
const maxHistory = rootGetters['printer/tempHistory/getTemperatureStoreSize']
@@ -62,18 +63,18 @@ export const actions: ActionTree<PrinterTempHistoryState, RootState> = {
const addValues: {
temperatures: number[]
targets?: number[]
power?: number[]
speed?: number[]
powers?: number[]
speeds?: number[]
} = {
temperatures: Array(maxHistory).fill(0),
}
if (['heater_bed', 'heater_generic'].includes(sensorType) || sensorType.startsWith('extruder')) {
if (allHeaters.includes(key)) {
addValues.targets = Array(maxHistory).fill(0)
addValues.power = Array(maxHistory).fill(0)
addValues.powers = Array(maxHistory).fill(0)
} else if (['temperature_fan'].includes(sensorType)) {
addValues.targets = Array(maxHistory).fill(0)
addValues.speed = Array(maxHistory).fill(0)
addValues.speeds = Array(maxHistory).fill(0)
}
importData[key] = { ...addValues }
+12 -8
View File
@@ -20,16 +20,20 @@ export const getters: GetterTree<PrinterTempHistoryState, RootState> = {
getSerieNames: (state) => (name: string) => {
const output: string[] = []
const seriesKeys = state.series
.map((serie: PrinterTempHistoryStateSerie) => serie.name)
.filter((serieName) => serieName.startsWith(name))
if (state.series.findIndex((serie: PrinterTempHistoryStateSerie) => serie.name === name) !== -1) {
output.push('temperature')
}
seriesKeys.forEach((seriesKey) => {
if (seriesKey === name) {
output.push('temperature')
return
}
state.series
.filter((serie: PrinterTempHistoryStateSerie) => serie.name.startsWith(name + '-'))
.forEach((serie) => {
output.push(serie.name.substr(name.length + 1))
})
if (seriesKey.startsWith(name + '-')) {
output.push(seriesKey.slice(name.length + 1))
}
})
return output
},
+6 -7
View File
@@ -1,9 +1,8 @@
module.exports = {
vueFilesPath: './src/**/{*.?(js|ts|vue),.i18nignore}',
languageFilesPath: './src/locales/*.json',
options: {
output: false,
add: false,
dynamic: true,
},
vueFiles: './src/**/{*.?(js|ts|vue),.i18nignore}',
languageFiles: './src/locales/*.json',
exclude: ['_last_update'],
output: false,
add: false,
ci: false,
}