Compare commits
62
Commits
v2.3.0-beta1
...
v2.4.0
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
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 | ||
|
|
1e9120e709 | ||
|
|
4e8b6de72a | ||
|
|
c37ea7f0ed | ||
|
|
f22d4d09c8 | ||
|
|
4a450fc563 | ||
|
|
eb4c5678ba | ||
|
|
6b6ca698e6 | ||
|
|
1e62b5bce5 | ||
|
|
8a000e38a4 | ||
|
|
5029f4d9d5 | ||
|
|
94338ba5d4 | ||
|
|
04159fc49c | ||
|
|
a30a001290 | ||
|
|
4c7ec84420 | ||
|
|
87a98543eb | ||
|
|
ae68b490ac | ||
|
|
359b20e75d | ||
|
|
ebf74860f4 |
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'
|
||||
@@ -6,7 +6,7 @@ on:
|
||||
issue_comment:
|
||||
types: [created]
|
||||
schedule:
|
||||
- cron: '*/5 * * * *'
|
||||
- cron: '30 1 * * *'
|
||||
|
||||
permissions:
|
||||
issues: write
|
||||
|
||||
@@ -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
|
||||
@@ -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>_
|
||||
|
||||
|
||||
@@ -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-beta1",
|
||||
"version": "2.4.0",
|
||||
"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"
|
||||
}
|
||||
}
|
||||
@@ -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')
|
||||
}
|
||||
|
||||
@@ -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
|
||||
@@ -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
|
||||
}
|
||||
|
||||
@@ -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-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,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}`
|
||||
}
|
||||
}
|
||||
@@ -3,8 +3,6 @@ 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'
|
||||
|
||||
@Component
|
||||
export default class DashboardMixin extends BaseMixin {
|
||||
|
||||
@@ -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>
|
||||
@@ -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">
|
||||
@@ -261,5 +257,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() {
|
||||
|
||||
@@ -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,10 @@ 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)
|
||||
url.port = this.hostPort.toString()
|
||||
|
||||
if (baseUrl.startsWith('http') || baseUrl.startsWith('://')) url = new URL(baseUrl)
|
||||
|
||||
return decodeURIComponent(url.toString())
|
||||
}
|
||||
|
||||
@@ -97,7 +97,11 @@ 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)
|
||||
url.port = this.hostPort.toString()
|
||||
|
||||
if (baseUrl.startsWith('http') || baseUrl.startsWith('://')) url = new URL(baseUrl)
|
||||
|
||||
url.searchParams.append('bypassCache', this.refresh.toString())
|
||||
|
||||
|
||||
@@ -35,7 +35,10 @@ 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)
|
||||
url.port = this.hostPort.toString()
|
||||
|
||||
if (baseUrl.startsWith('http') || baseUrl.startsWith('://')) url = new URL(baseUrl)
|
||||
|
||||
return decodeURIComponent(url.toString())
|
||||
}
|
||||
|
||||
+3
-6
@@ -288,7 +288,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?",
|
||||
@@ -488,7 +487,6 @@
|
||||
"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"
|
||||
},
|
||||
@@ -599,8 +597,6 @@
|
||||
"Absolute": "absolut",
|
||||
"ALL": "Alle",
|
||||
"Headline": "Kontrolpanel",
|
||||
"Invalid": "Ugyldig",
|
||||
"OutOfRange": "Uden for grænse!",
|
||||
"PleaseConfigureSteps": "Konfigurer steps",
|
||||
"Position": "Position",
|
||||
"QGL": "QGL",
|
||||
@@ -950,8 +946,8 @@
|
||||
"AddWebcam": "Tilføj webcam",
|
||||
"CreateWebcam": "Nyt Webcam",
|
||||
"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 +970,7 @@
|
||||
"UrlSnapshot": "URL Snapshot",
|
||||
"UrlStream": "URL Stream",
|
||||
"Uv4lMjpeg": "UV4L-MJPEG",
|
||||
"Vertically": "vertikalt",
|
||||
"Webcams": "Webcams"
|
||||
}
|
||||
},
|
||||
|
||||
+56
-7
@@ -107,6 +107,17 @@
|
||||
"UpdatingDone": "Aktualisierung {software} abgeschlossen!"
|
||||
}
|
||||
},
|
||||
"BedScrews": {
|
||||
"Abort": "abbrechen",
|
||||
"Adjusted": "angepasst",
|
||||
"Accept": "bestätigen",
|
||||
"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",
|
||||
@@ -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"
|
||||
}
|
||||
},
|
||||
|
||||
+62
-9
@@ -107,6 +107,17 @@
|
||||
"UpdatingDone": "Updating {software} done!"
|
||||
}
|
||||
},
|
||||
"BedScrews": {
|
||||
"Abort": "abort",
|
||||
"Adjusted": "adjusted",
|
||||
"Accept": "accept",
|
||||
"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",
|
||||
@@ -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"
|
||||
}
|
||||
},
|
||||
|
||||
+72
-16
@@ -107,6 +107,17 @@
|
||||
"UpdatingDone": "{software}完了!"
|
||||
}
|
||||
},
|
||||
"BedScrews": {
|
||||
"Abort": "中止",
|
||||
"Adjusted": "調整済み",
|
||||
"Accept": "確認",
|
||||
"Description": "現在のスクリューの調整が済んだら<b>調整済み</b>をクリックしてください。<b>確認</b>をクリックすると調整せずに先に進みます。",
|
||||
"Headline": "ベッドスクリュー",
|
||||
"ScrewAccepted": "スクリュー確認済み",
|
||||
"ScrewIndex": "スクリュー番号",
|
||||
"ScrewName": "スクリュー名",
|
||||
"ScrewOutput": "{current}/{max}"
|
||||
},
|
||||
"ConnectionDialog": {
|
||||
"CannotConnectTo": "Moonraker({host})に接続できません",
|
||||
"CheckMoonrakerLog": "このメッセージが繰り返し表示される場合は、以下のログファイルを参照してください。:",
|
||||
@@ -126,7 +137,7 @@
|
||||
"Dialogs": {
|
||||
"StartPrint": {
|
||||
"Cancel": "取り消し",
|
||||
"DoYouWantToStartFilename": "{filename}の印刷を開始しますか?",
|
||||
"DoYouWantToStartFilename": "{filename}の印刷を開始しますか?",
|
||||
"Headline": "ジョブ開始",
|
||||
"Print": "印刷",
|
||||
"Timelapse": "タイムラプス"
|
||||
@@ -142,7 +153,7 @@
|
||||
"SaveRestart": "保存して再始動",
|
||||
"SuccessfullySaved": "{filename}が保存されました",
|
||||
"UnsavedChanges": "未保存の変更",
|
||||
"UnsavedChangesMessage": "変更を{filename}に保存しますか?",
|
||||
"UnsavedChangesMessage": "変更を{filename}に保存しますか?",
|
||||
"UnsavedChangesSubMessage": "この変更を保存しなければ、この変更は失われます。エディター設定にてこのメッセージを無効にすることができます。",
|
||||
"Uploading": "アップロード中"
|
||||
},
|
||||
@@ -181,6 +192,8 @@
|
||||
"GCodeFiles": "Gコードファイル",
|
||||
"GcodesRootDirectoryDoesntExists": "Gコードディレクトリが見つかりませんでした。Klipperの設定[virtual_sdcard]セクションの\"path\"オプションを確認してください。",
|
||||
"HiddenFiles": "隠し属性ファイル",
|
||||
"InvalidNameAlreadyExists": "名前は既に存在します。他の名前をつけてください。",
|
||||
"InvalidNameEmpty": "名前の入力は空であってはなりません!",
|
||||
"LastEndTime": "直近の終了時刻",
|
||||
"LastFilamentUsed": "直近の使用量",
|
||||
"LastModified": "最終更新",
|
||||
@@ -257,7 +270,7 @@
|
||||
"Variance": "変動"
|
||||
},
|
||||
"DeleteBedMeshProfile": "ベッドメッシュのプロファイルを削除",
|
||||
"DoYouReallyWantToDelete": "プロファイル \"{name}\"を削除します。よろしいですか?",
|
||||
"DoYouReallyWantToDelete": "プロファイル \"{name}\"を削除します。よろしいですか?",
|
||||
"ErrorKlipperNotReady": "Klipperは準備できていません。高低マップは無効になりました。",
|
||||
"Flat": "平面",
|
||||
"Heightmap": "高低マップ",
|
||||
@@ -289,10 +302,9 @@
|
||||
"AllJobs": "全ジョブ",
|
||||
"AvgPrinttime": "平均印刷時間",
|
||||
"Cancel": "取り消し",
|
||||
"ChamberTemp": "チャンバー温度",
|
||||
"CreateNote": "メモ作成",
|
||||
"Delete": "削除",
|
||||
"DeleteSelectedQuestion": "選択された {count}個のジョブを削除します。よろしいですか?",
|
||||
"DeleteSelectedQuestion": "選択された {count}個のジョブを削除します。よろしいですか?",
|
||||
"Details": "詳細",
|
||||
"EditNote": "ノート編集",
|
||||
"Empty": "空",
|
||||
@@ -339,6 +351,7 @@
|
||||
"in_progress": "進行中",
|
||||
"klippy_disconnect": "Klippy切断",
|
||||
"klippy_shutdown": "Klippyシャットダウン",
|
||||
"Others": "その他",
|
||||
"server_exit": "サーバー終了"
|
||||
},
|
||||
"TitleExportHistory": "履歴をエクスポート",
|
||||
@@ -372,7 +385,7 @@
|
||||
"Delete": "削除",
|
||||
"DeleteDirectory": "ディレクトリ削除",
|
||||
"DeleteDirectoryQuestion": "ディレクトリ\"{name}\"と中に含まれるすべてのファイルが削除されます。よろしいですか?",
|
||||
"DeleteSelectedQuestion": "選択した {count}個を削除しますか?",
|
||||
"DeleteSelectedQuestion": "選択した {count}個を削除しますか?",
|
||||
"Download": "ダウンロード",
|
||||
"EditFile": "ファイル編集",
|
||||
"Empty": "空",
|
||||
@@ -455,6 +468,12 @@
|
||||
"UpToDate": "最新の状態"
|
||||
}
|
||||
},
|
||||
"ManualProbe": {
|
||||
"Abort": "中止",
|
||||
"Accept": "確認",
|
||||
"Advanced": "アドバンスド",
|
||||
"Headline": "手動プローブ"
|
||||
},
|
||||
"Panels": {
|
||||
"ExtruderControlPanel": {
|
||||
"Allowed": "許可",
|
||||
@@ -490,9 +509,9 @@
|
||||
"KlippyStatePanel": {
|
||||
"FirmwareRestart": "ファームウェア再始動",
|
||||
"KlipperCheck": "Klipperサービスが動いていて、UDS (Unix Domain Socket)が設定されているかどうか確認してください。",
|
||||
"KlippyState": "Klippy-State",
|
||||
"MoonrakerCannotConnect": "MoonrakerはKlipperに接続できません!",
|
||||
"Restart": "再始動"
|
||||
"Restart": "再始動",
|
||||
"ServiceReports": "{service} レポート"
|
||||
},
|
||||
"MachineSettingsPanel": {
|
||||
"Headline": "機器設定",
|
||||
@@ -522,6 +541,12 @@
|
||||
},
|
||||
"MiscellaneousPanel": {
|
||||
"Headline": "その他",
|
||||
"Light": {
|
||||
"Blue": "青",
|
||||
"Green": "緑",
|
||||
"Red": "赤",
|
||||
"White": "白"
|
||||
},
|
||||
"RunoutSensor": {
|
||||
"Detected": "検出",
|
||||
"Disabled": "無効",
|
||||
@@ -547,7 +572,7 @@
|
||||
"Excluded": "除外",
|
||||
"ExcludeObject": "オブジェクト除外",
|
||||
"ExcludeObjectHeadline": "オブジェクト除外",
|
||||
"ExcludeObjectText": "\"{name}\"を除外します。よろしいですか?"
|
||||
"ExcludeObjectText": "\"{name}\"を除外します。よろしいですか?"
|
||||
},
|
||||
"Filament": "フィラメント",
|
||||
"File": "ファイル",
|
||||
@@ -601,8 +626,6 @@
|
||||
"Absolute": "絶対",
|
||||
"ALL": "すべて",
|
||||
"Headline": "ツールヘッド",
|
||||
"Invalid": "無効",
|
||||
"OutOfRange": "範囲外です!",
|
||||
"PleaseConfigureSteps": "ステップを設定をしてください",
|
||||
"Position": "位置",
|
||||
"QGL": "QGL",
|
||||
@@ -633,7 +656,7 @@
|
||||
}
|
||||
},
|
||||
"PowerDeviceChangeDialog": {
|
||||
"AreYouSure": "よろしいですか?",
|
||||
"AreYouSure": "よろしいですか?",
|
||||
"No": "いいえ",
|
||||
"TurnDeviceOff": "{device}オフ",
|
||||
"TurnDeviceOn": "{device}オン",
|
||||
@@ -669,7 +692,7 @@
|
||||
"SelectPrinter": "プリンター選択",
|
||||
"TryAgain": "再試行",
|
||||
"UpdatePrinter": "プリンター更新",
|
||||
"YouCanFindMore": "You can find more details at"
|
||||
"YouCanFindMore": "詳細はこちらでご覧になれます"
|
||||
},
|
||||
"Settings": {
|
||||
"Cancel": "取り消し",
|
||||
@@ -754,6 +777,8 @@
|
||||
"ShowAxes": "軸表示"
|
||||
},
|
||||
"GeneralTab": {
|
||||
"12hours": "12時間表示 ({time})",
|
||||
"24hours": "24時間表示 ({time})",
|
||||
"Backup": "バックアップ",
|
||||
"BackupDialog": "バックアップを作成したい項目をすべて選んでください:",
|
||||
"CalcEstimateTime": "推定時間の計算",
|
||||
@@ -769,6 +794,7 @@
|
||||
"Slicer": "スライサー(M73)"
|
||||
},
|
||||
"CannotReadJson": "バックアップファイルの読み込み/解析ができません。",
|
||||
"DateFormat": "日付フォーマット",
|
||||
"DbConsoleHistory": "コンソール履歴",
|
||||
"DbHistoryJobs": "ジョブ履歴",
|
||||
"DbHistoryTotals": "履歴総計",
|
||||
@@ -788,7 +814,8 @@
|
||||
"PrinterName": "プリンター名",
|
||||
"Reset": "初期化",
|
||||
"Restore": "復元",
|
||||
"RestoreDialog": "バックアップから復元したい項目をすべて選んでください:"
|
||||
"RestoreDialog": "バックアップから復元したい項目をすべて選んでください:",
|
||||
"TimeFormat": "時間フォーマット"
|
||||
},
|
||||
"InterfaceSettings": "インターフェース設定",
|
||||
"MacrosTab": {
|
||||
@@ -827,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": "クールダウン",
|
||||
@@ -854,6 +905,7 @@
|
||||
"UpdatePrinter": "プリンター更新",
|
||||
"UseConfigJson": "InstanceDB = JSONが検出されました。プリンターリストはconfig.jsonで変更してください。"
|
||||
},
|
||||
"Store": "保存",
|
||||
"TimelapseTab": {
|
||||
"Autorender": "自動レンダリング",
|
||||
"AutorenderDescription": "有効にすると、タイムラプスビデオは印刷終了すると自動的にレンダリングされます。",
|
||||
@@ -948,12 +1000,14 @@
|
||||
"ShowWebcamInNavigation": "ナビゲーションにカメラを表示",
|
||||
"UiSettings": "UI設定"
|
||||
},
|
||||
"Update": "更新",
|
||||
"WebcamsTab": {
|
||||
"AddWebcam": "カメラ追加",
|
||||
"CreateWebcam": "カメラ作成",
|
||||
"EditCrowsnestConf": "crowsnest.confを編集",
|
||||
"EditWebcam": "カメラ編集",
|
||||
"FlipHorizontally": "カメラ画像を水平反転",
|
||||
"FlipVertically": "カメラ画像を垂直反転",
|
||||
"FlipWebcam": "カメラ画像の反転:",
|
||||
"Horizontally": "水平方向",
|
||||
"IconBed": "ベッド",
|
||||
"IconCam": "カメラ",
|
||||
"IconDoor": "ドア",
|
||||
@@ -976,6 +1030,7 @@
|
||||
"UrlSnapshot": "URL スナップショット",
|
||||
"UrlStream": "URL ストリーム",
|
||||
"Uv4lMjpeg": "UV4L-MJPEG",
|
||||
"Vertically": "垂直方向",
|
||||
"Webcams": "カメラ"
|
||||
}
|
||||
},
|
||||
@@ -989,6 +1044,7 @@
|
||||
"Delete": "削除",
|
||||
"DeleteDirectory": "ディレクトリの削除",
|
||||
"DeleteDirectoryQuestion": "ディレクトリ\"{name}\"と中に含まれるすべてのファイルが削除されます。よろしいですか?",
|
||||
"DeleteSelectedQuestion": "選択された{count}個のファイルが削除されます。よろしいですか?",
|
||||
"Download": "ダウンロード",
|
||||
"DuplicateLastframe": "最終フレームの複製",
|
||||
"Empty": "完成したタイムラプスは見つかりませんでした。",
|
||||
|
||||
@@ -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": "도어",
|
||||
+33
-77
@@ -21,6 +21,7 @@
|
||||
"Never": "nooit",
|
||||
"NextReboot": "volgende reboot",
|
||||
"NoNotification": "Geen notificaties beschikbaar",
|
||||
"Notifications": "Notificaties",
|
||||
"Remind": "Herinnering:"
|
||||
},
|
||||
"NumberInput": {
|
||||
@@ -111,6 +112,7 @@
|
||||
"CheckMoonrakerLog": "Als deze melding vaker getoond wordt, kijk in de logs op:",
|
||||
"Connecting": "Verbinden met {host}",
|
||||
"Failed": "Verbinding mislukt",
|
||||
"Initializing": "Initialiseren",
|
||||
"TryAgain": "probeer nogmaals"
|
||||
},
|
||||
"Console": {
|
||||
@@ -131,13 +133,11 @@
|
||||
}
|
||||
},
|
||||
"Editor": {
|
||||
"Cancel": "Annuleer",
|
||||
"ConfigReference": "Config Referentie",
|
||||
"DontSave": "Sla niet op",
|
||||
"Downloading": "Downloaden",
|
||||
"FailedSave": "{filename} kon niet worden geupload!",
|
||||
"FileReadOnly": "alleen-lezen",
|
||||
"Minimap": "Toon minimap",
|
||||
"SaveClose": "Bewaar & sluiten",
|
||||
"SaveRestart": "Bewaar & herstart",
|
||||
"SuccessfullySaved": "{filename} succesvol opgeslagen.",
|
||||
@@ -155,7 +155,9 @@
|
||||
"Files": {
|
||||
"AddToQueue": "Voeg aan wachtrij toe",
|
||||
"AllFiles": "Alle",
|
||||
"BedTemp": "Bed Temp.",
|
||||
"Cancel": "Annuleer",
|
||||
"ChamberTemp": "Kamer Temp.",
|
||||
"Create": "Creëer",
|
||||
"CreateNewDirectory": "Creëer nieuwe Map",
|
||||
"CurrentPath": "Huidige pad",
|
||||
@@ -164,9 +166,9 @@
|
||||
"DeleteDirectoryQuestion": "Weet je zeker dat je de \"{name}\" map wil verwijderen met alle inhoud?",
|
||||
"DeleteSelectedQuestion": "Weet je zeker dat je {count} geselecteerde bestanden wil verwijderen?",
|
||||
"Download": "Download",
|
||||
"Downloading": "Downloaden",
|
||||
"EditFile": "Bewerk bestand",
|
||||
"Empty": "Leeg",
|
||||
"ExtruderTemp": "Extruder Temp.",
|
||||
"Filament": "Filament",
|
||||
"FilamentName": "Filamentnaam",
|
||||
"FilamentType": "Filament Type",
|
||||
@@ -177,6 +179,7 @@
|
||||
"Free": "Vrij",
|
||||
"FreeDisk": "Vrije schijfruimte",
|
||||
"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",
|
||||
"LastEndTime": "Laatste eindtijd",
|
||||
"LastFilamentUsed": "Laatst gebruikte filament",
|
||||
@@ -206,7 +209,6 @@
|
||||
"SuccessfullyRenamed": "{filename} succesvol hernoemd.",
|
||||
"SuccessfullyUploaded": "Upload van {filename} succesvol!",
|
||||
"Total": "Totaal",
|
||||
"Uploading": "Uploaden",
|
||||
"UploadNewGcode": "Upload nieuwe G-Code",
|
||||
"Used": "Gebruikt",
|
||||
"View3D": "Bekijk in 3D"
|
||||
@@ -259,6 +261,9 @@
|
||||
"ErrorKlipperNotReady": "Klipper nog niet klaar . Hoogtekaart uitgeschakeld.",
|
||||
"Flat": "Vlak",
|
||||
"Heightmap": "Hoogtekaart",
|
||||
"InvalidNameAlreadyExists": "Profielnaam bestaat al, kies een andere profielnaam.",
|
||||
"InvalidNameEmpty": "Veld mag niet leeg zijn!",
|
||||
"InvalidNameReserved": "Profiel 'default' is gereserveerd, kies een andere profielnaam.",
|
||||
"Later": "Later",
|
||||
"Mesh": "Mesh",
|
||||
"Name": "Naam",
|
||||
@@ -333,6 +338,7 @@
|
||||
"in_progress": "Bezig",
|
||||
"klippy_disconnect": "Klippy verbinding verbroken",
|
||||
"klippy_shutdown": "Klippy afgesloten",
|
||||
"Others": "Overige",
|
||||
"server_exit": "Server exit"
|
||||
},
|
||||
"TitleExportHistory": "Export geschiedenis",
|
||||
@@ -358,6 +364,7 @@
|
||||
"AllFiles": "Alle",
|
||||
"Cancel": "Annuleer",
|
||||
"ConfigFiles": "Config bestanden",
|
||||
"ConfigRootDirectoryDoesntExists": "Geen configuratie directory gevonden. Controleer de optie \"config_path\" in de [file_manager] sectie van de Moonraker configuratie.",
|
||||
"Create": "Maak",
|
||||
"CreateDirectory": "Maak map",
|
||||
"CreateFile": "Maak bestand",
|
||||
@@ -449,22 +456,6 @@
|
||||
}
|
||||
},
|
||||
"Panels": {
|
||||
"ControlPanel": {
|
||||
"ALL": "Alle",
|
||||
"AlternateControls": "Alternatieve bediening",
|
||||
"Headline": "Bediening",
|
||||
"InvertX": "Inverteer X",
|
||||
"InvertY": "Inverteer Y",
|
||||
"InvertZ": "Inverteer Z",
|
||||
"PleaseConfigureSteps": "Configureer steps aub",
|
||||
"QGL": "QGL",
|
||||
"SettingsInterfaceControl": "Instellingen > Interface > Bediening",
|
||||
"SetupControls": "Bewerk Bediening",
|
||||
"X": "X",
|
||||
"Y": "Y",
|
||||
"Z": "Z",
|
||||
"ZTilt": "Z Tilt"
|
||||
},
|
||||
"ExtruderControlPanel": {
|
||||
"Allowed": "Toegestaan",
|
||||
"EstimatedExtrusion": "Geschatte extrusie:",
|
||||
@@ -484,7 +475,6 @@
|
||||
"PressureAdvanceSettings": {
|
||||
"Advance": "Advance",
|
||||
"Extruder": "Extruder",
|
||||
"PressureAdvance": "Pressure Advance",
|
||||
"SmoothTime": "Smooth Time"
|
||||
},
|
||||
"Requested": "Aangevraagd",
|
||||
@@ -500,8 +490,6 @@
|
||||
"KlippyStatePanel": {
|
||||
"FirmwareRestart": "Firmware Herstart",
|
||||
"KlipperCheck": "Controleer of de Klipper service draait en een UDS (Unix Domain Socket) geconfigureerd is.",
|
||||
"KlippyInfo": "Moonraker kan niet verbinden met Klippy!\nControleer of de Klipper Service draait en een UDS (Unix Domain Socket) is geconfigureerd.",
|
||||
"KlippyState": "Klippy-Status",
|
||||
"MoonrakerCannotConnect": "Moonraker kan niet met Klipper verbinden!",
|
||||
"Restart": "Herstart"
|
||||
},
|
||||
@@ -509,7 +497,6 @@
|
||||
"Headline": "Machine instellingen",
|
||||
"MotionSettings": {
|
||||
"Acceleration": "Acceleratie",
|
||||
"Deceleration": "Vertraging",
|
||||
"MaxAccelToDecel": "Max Accel. naar Decel.",
|
||||
"SquareCornerVelocity": "Hoeksnelheid (SCV)",
|
||||
"Velocity": "Snelheid"
|
||||
@@ -520,13 +507,9 @@
|
||||
"Send": "verstuur"
|
||||
},
|
||||
"MiniconsolePanel": {
|
||||
"Console": "Console",
|
||||
"CustomFilters": "Eigen filters",
|
||||
"Empty": "Leeg",
|
||||
"Headline": "Console",
|
||||
"HideTemperatures": "Verberg temperaturen",
|
||||
"HideTimelapse": "Verberg Timelapse",
|
||||
"Send": "Verzend",
|
||||
"SendCode": "Verzend code...",
|
||||
"SetupConsole": "Console Instellingen"
|
||||
},
|
||||
@@ -537,28 +520,12 @@
|
||||
"MoreInformation": "meer informatie"
|
||||
},
|
||||
"MiscellaneousPanel": {
|
||||
"ExtrusionFactor": "Extrusie factor",
|
||||
"Headline": "Overige",
|
||||
"Miscellaneous": "Overige",
|
||||
"PrintSettings": "Printinstellingen",
|
||||
"RunoutSensor": {
|
||||
"Detected": "gedetecteerd",
|
||||
"Disabled": "uitgeschakeld",
|
||||
"Empty": "Leeg"
|
||||
},
|
||||
"SpeedFactor": "Snelheid factor"
|
||||
},
|
||||
"MoonrakerFailedComponentsPanel": {
|
||||
"DownloadLog": "Download Log",
|
||||
"FollowingPluginHasAnError": "De volgende plugin heeft een fout:",
|
||||
"MoonrakerErrorInfo": "Er is een fout was gedetecteerd bij het laden van de moonraker componenten. Controleer de logfile los de fout op.",
|
||||
"MoonrakerFailedComponents": "Fouten in Moonraker Componenten"
|
||||
},
|
||||
"MoonrakerStatePanel": {
|
||||
"DownloadLog": "Download Log",
|
||||
"FollowingPluginHasAnError": "De volgende plugin heeft een fout:",
|
||||
"MoonrakerErrorInfo": "Een fout was ontdekt bij het laden van de Moonraker componenten. Controleer de logfile en fix het probleem.",
|
||||
"MoonrakerWarnings": "Moonraker Waarschuwingen"
|
||||
}
|
||||
},
|
||||
"PowerControlPanel": {
|
||||
"Error": "Fout",
|
||||
@@ -606,7 +573,6 @@
|
||||
"TemperaturePanel": {
|
||||
"AutoscaleChart": "Schaal automatisch",
|
||||
"Avg": "Gemiddeld",
|
||||
"Color": "Kleur",
|
||||
"Cooldown": "Afkoelen",
|
||||
"Current": "Huidige",
|
||||
"Dataset": {
|
||||
@@ -616,51 +582,30 @@
|
||||
"Temperature": "huidige temperatuur"
|
||||
},
|
||||
"Headline": "Temperaturen",
|
||||
"InList": "in lijst",
|
||||
"Max": "max",
|
||||
"Min": "min",
|
||||
"Name": "Naam",
|
||||
"Presets": "Presets",
|
||||
"SetupTemperatures": "Stel Temperaturen in",
|
||||
"Show": "Toon",
|
||||
"ShowChart": "Toon Grafiek",
|
||||
"ShowCurrentTemperatureInChart": "Toon huidige temperatuur in de grafiek",
|
||||
"ShowNameInChart": "Toon {name} in de grafiek",
|
||||
"ShowNameInList": "Toon {name} in de lijst",
|
||||
"ShowPWMPowerInChart": "Toon PWM-kracht in de grafiek",
|
||||
"ShowTargetTemperatureInChart": "Toon doeltemperatuur in de grafiek",
|
||||
"State": "Status",
|
||||
"Target": "Doel",
|
||||
"Temperatures": "Temperaturen",
|
||||
"TemperaturesInChart": "Temperatuur [°C]",
|
||||
"TempTooHigh": "Temperatuur te hoog voor {name}! (max: {max})",
|
||||
"TempTooLow": "Temperatuur te laag voor {name}! (min: {min})",
|
||||
"UNKNOWN": "ONBEKEND"
|
||||
"TempTooLow": "Temperatuur te laag voor {name}! (min: {min})"
|
||||
},
|
||||
"ToolheadControlPanel": {
|
||||
"Absolute": "absoluut",
|
||||
"ALL": "ALLES",
|
||||
"Controls": "Bediening",
|
||||
"Headline": "Toolhead",
|
||||
"Home": "Home",
|
||||
"HotendTooCold": "Hotend temp. lager dan",
|
||||
"Invalid": "Ongeldig",
|
||||
"InvertX": "Inverteer X",
|
||||
"InvertY": "Inverteer Y",
|
||||
"InvertZ": "Inverteer Z",
|
||||
"Macros": "Macros",
|
||||
"MotorsOff": "Motoren uit",
|
||||
"OutOfRange": "Buiten bereik",
|
||||
"PleaseConfigureSteps": "Configureer steps",
|
||||
"Position": "Positie",
|
||||
"QGL": "QGL",
|
||||
"Relative": "relatief",
|
||||
"SettingsInterfaceControl": "Instllingen > Interface > Bediening",
|
||||
"SetupControls": "Bewerk Bediening",
|
||||
"SpeedFactor": "Snelheid factor",
|
||||
"XOffset": "X-Offset",
|
||||
"YOffset": "Y-Offset",
|
||||
"ZOffset": "Z-Offset",
|
||||
"ZTilt": "Z Tilt"
|
||||
},
|
||||
"WebcamPanel": {
|
||||
@@ -668,13 +613,10 @@
|
||||
"FPS": "FPS",
|
||||
"Headline": "Webcam",
|
||||
"NoWebcam": "Geen webcam beschikbaar. Voeg een webcam toe onder \"Interface Settings\" -> \"Webcams\".",
|
||||
"UnknownWebcamService": "Onbekende Webcam Service",
|
||||
"UrlNotAvailable": "URL niet beschikbaar",
|
||||
"Webcam": "Webcam"
|
||||
"UnknownWebcamService": "Onbekende Webcam Service"
|
||||
},
|
||||
"ZoffsetPanel": {
|
||||
"Clear": "Wissen",
|
||||
"CurrentOffset": "Huidige offset",
|
||||
"Headline": "Z offset",
|
||||
"Later": "Later",
|
||||
"Ok": "Ok",
|
||||
@@ -684,8 +626,7 @@
|
||||
"SaveInfoDescriptionPrint": "De nieuwe z-offset is berekend en geregistreerd. Klik na het printen op \"SAVE CONFIG\" om de nieuwe z-offset op te slaan in je printer.cf en Klipper te herstarten.",
|
||||
"SaveInfoHeadline": "Informatie",
|
||||
"ToEndstop": "naar Endstop",
|
||||
"ToProbe": "naar Probe",
|
||||
"ZBabyStepping": "Z Baby Stepping"
|
||||
"ToProbe": "naar Probe"
|
||||
}
|
||||
},
|
||||
"PowerDeviceChangeDialog": {
|
||||
@@ -709,6 +650,7 @@
|
||||
},
|
||||
"SelectPrinterDialog": {
|
||||
"AddPrinter": "Voeg printer toe",
|
||||
"AddPrintersToJson": "Voeg de printers toe aan de config.json",
|
||||
"CannotConnectTo": "Kan niet verbinden met {host}.",
|
||||
"ChangePrinter": "Wijzig printer",
|
||||
"Connecting": "Verbinden met {host}",
|
||||
@@ -805,6 +747,7 @@
|
||||
"GridColor": "Rasterkleur",
|
||||
"MaxFeed": "Max Doorvoer",
|
||||
"MinFeed": "Min Doorvoer",
|
||||
"ProgressColor": "Voortgangskleur",
|
||||
"ShowAxes": "Toon Assen"
|
||||
},
|
||||
"GeneralTab": {
|
||||
@@ -814,6 +757,14 @@
|
||||
"CalcEstimateTimeDescription": "Als meerdere geselecteerd zijn, wordt het gemiddelde berekend",
|
||||
"CalcEtaTime": "ETA berekening",
|
||||
"CalcEtaTimeDescription": "Als meerdere geselecteerd zijn, wordt het gemiddelde berekend",
|
||||
"CalcPrintProgress": "Printvoortgang berekening",
|
||||
"CalcPrintProgressDescription": "Methode om de voortgang van de print te berekenen.",
|
||||
"CalcPrintProgressItems": {
|
||||
"Filament": "Filament",
|
||||
"FileAbsolute": "Bestandslocatie (absoluut)",
|
||||
"FileRelative": "Bestandslocatie (relatief)",
|
||||
"Slicer": "Slicer (M73)"
|
||||
},
|
||||
"CannotReadJson": "Kan het backup bestand niet lezen/verwerken. ",
|
||||
"DbConsoleHistory": "Console Geschiedenis",
|
||||
"DbHistoryJobs": "Geschiedenis Jobs",
|
||||
@@ -897,7 +848,8 @@
|
||||
"Hostname": "Hostname",
|
||||
"Port": "Poort",
|
||||
"RemotePrinters": "Printers op afstand",
|
||||
"UpdatePrinter": "Update Printer"
|
||||
"UpdatePrinter": "Update Printer",
|
||||
"UseConfigJson": "InstanceDB = JSON gedetecteerd. Gebruik de config.json om de printerlijst aan te passen."
|
||||
},
|
||||
"TimelapseTab": {
|
||||
"Autorender": "Autorender",
|
||||
@@ -996,9 +948,10 @@
|
||||
"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",
|
||||
@@ -1013,6 +966,7 @@
|
||||
"Name": "Naam",
|
||||
"NameAlreadyExists": "Naam bestaat al",
|
||||
"Required": "verplicht",
|
||||
"Rotate": "Roteer",
|
||||
"SaveWebcam": "Sla Webcam op",
|
||||
"Service": "Dienst",
|
||||
"TargetFPS": "Doel FPS",
|
||||
@@ -1020,6 +974,7 @@
|
||||
"UrlSnapshot": "URL Snapshot",
|
||||
"UrlStream": "URL Stream",
|
||||
"Uv4lMjpeg": "UV4L-MJPEG",
|
||||
"Vertically": "verticaal",
|
||||
"Webcams": "Webcams"
|
||||
}
|
||||
},
|
||||
@@ -1033,6 +988,7 @@
|
||||
"Delete": "Verwijder",
|
||||
"DeleteDirectory": "Verwijder map",
|
||||
"DeleteDirectoryQuestion": "Weet je zeker dat je de \"{name}\" map wil verwijderen met alle inhoud?",
|
||||
"DeleteSelectedQuestion": "Weet je zeker dat je {count} geselecteerde bestanden wil verwijderen?",
|
||||
"Download": "Download",
|
||||
"DuplicateLastframe": "Herhaal laatste frame",
|
||||
"Empty": "Geen voltooide timelapse gevonden.",
|
||||
|
||||
+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"
|
||||
}
|
||||
},
|
||||
+3
-6
@@ -289,7 +289,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?",
|
||||
@@ -490,7 +489,6 @@
|
||||
"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"
|
||||
},
|
||||
@@ -601,8 +599,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",
|
||||
@@ -953,8 +949,8 @@
|
||||
"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",
|
||||
"FlipWebcam": "Web kamerasını çevirin:",
|
||||
"Horizontally": "yatay olarak",
|
||||
"IconBed": "Yatak",
|
||||
"IconCam": "Kamera",
|
||||
"IconDoor": "Kapı",
|
||||
@@ -977,6 +973,7 @@
|
||||
"UrlSnapshot": "URL Anlık Görüntüsü",
|
||||
"UrlStream": "URL Akışı",
|
||||
"Uv4lMjpeg": "UV4L-MJPEG",
|
||||
"Vertically": "dikey olarak",
|
||||
"Webcams": "Web kameraları"
|
||||
}
|
||||
},
|
||||
|
||||
+1033
File diff suppressed because it is too large.
Load diff
+32
-11
@@ -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": {
|
||||
@@ -111,6 +112,7 @@
|
||||
"CheckMoonrakerLog": "如果此消息重复显示, 请从此处查看日志文件:",
|
||||
"Connecting": "连接到{host}",
|
||||
"Failed": "连接失败",
|
||||
"Initializing": "正在初始化",
|
||||
"TryAgain": "重试"
|
||||
},
|
||||
"Console": {
|
||||
@@ -153,17 +155,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 +179,10 @@
|
||||
"Free": "未使用",
|
||||
"FreeDisk": "剩余磁盘空间",
|
||||
"GCodeFiles": "G-Code文件",
|
||||
"GcodesRootDirectoryDoesntExists": "未找到G-Code文件夹。请检查Klipper配置[virtual_sdcard]标签中的\"path\"项是否正确填写。",
|
||||
"HiddenFiles": "显示隐藏文件",
|
||||
"InvalidNameAlreadyExists": "名字已经存在,请换一个名字。",
|
||||
"InvalidNameEmpty": "输入值不能为空!",
|
||||
"LastEndTime": "上次打印结束时间",
|
||||
"LastFilamentUsed": "上次耗材使用量",
|
||||
"LastModified": "最后修改时间",
|
||||
@@ -255,6 +263,9 @@
|
||||
"ErrorKlipperNotReady": "Klipper未准备好。高度图已关闭。",
|
||||
"Flat": "平面",
|
||||
"Heightmap": "高度图",
|
||||
"InvalidNameAlreadyExists": "预设名称已经存在,请换一个名称。",
|
||||
"InvalidNameEmpty": "输入值不能为空!",
|
||||
"InvalidNameReserved": "预设 'default' 已保留,请选择其他预设名称。",
|
||||
"Later": "Later",
|
||||
"Mesh": "床网",
|
||||
"Name": "名称",
|
||||
@@ -329,6 +340,7 @@
|
||||
"in_progress": "进程中",
|
||||
"klippy_disconnect": "Klippy失去连接",
|
||||
"klippy_shutdown": "Klippy已关闭",
|
||||
"Others": "其他",
|
||||
"server_exit": "服务器退出"
|
||||
},
|
||||
"TitleExportHistory": "导出历史记录",
|
||||
@@ -354,6 +366,7 @@
|
||||
"AllFiles": "全部",
|
||||
"Cancel": "取消",
|
||||
"ConfigFiles": "配置文件",
|
||||
"ConfigRootDirectoryDoesntExists": "未找到配置文件夹。请检查Moonraker配置[file_manager]标签中的\"config_path\"项是否正确填写。",
|
||||
"Create": "新建",
|
||||
"CreateDirectory": "新建文件夹",
|
||||
"CreateFile": "新建文件",
|
||||
@@ -479,7 +492,6 @@
|
||||
"KlippyStatePanel": {
|
||||
"FirmwareRestart": "重启Klipper并重置主控",
|
||||
"KlipperCheck": "请检查Klipper服务是否运行并且已经设置UDS(Unix Domain Socket)。",
|
||||
"KlippyState": "Klippy状态",
|
||||
"MoonrakerCannotConnect": "Moonraker无法连接到Klipper !",
|
||||
"Restart": "重启Klipper"
|
||||
},
|
||||
@@ -590,8 +602,6 @@
|
||||
"Absolute": "绝对坐标",
|
||||
"ALL": "全部",
|
||||
"Headline": "打印头",
|
||||
"Invalid": "无效",
|
||||
"OutOfRange": "超出范围!",
|
||||
"PleaseConfigureSteps": "请配置步骤",
|
||||
"Position": "位置",
|
||||
"QGL": "四轴调平(QGL)",
|
||||
@@ -604,7 +614,7 @@
|
||||
"All": "全部",
|
||||
"FPS": "帧率",
|
||||
"Headline": "摄像头",
|
||||
"NoWebcam": "没有可用的摄像头。在 \"Mainsail设置\" -> \"摄像头\" 添加新的摄像头。",
|
||||
"NoWebcam": "没有可用的摄像头。在\"Mainsail设置\" -> \"摄像头\"添加新的摄像头。",
|
||||
"UnknownWebcamService": "未知摄像头服务"
|
||||
},
|
||||
"ZoffsetPanel": {
|
||||
@@ -642,6 +652,7 @@
|
||||
},
|
||||
"SelectPrinterDialog": {
|
||||
"AddPrinter": "添加打印机",
|
||||
"AddPrintersToJson": "请将打印机添加到 config.json 。",
|
||||
"CannotConnectTo": "无法连接到{host} 。",
|
||||
"ChangePrinter": "更换打印机",
|
||||
"Connecting": "正在连接到{host}",
|
||||
@@ -743,11 +754,19 @@
|
||||
},
|
||||
"GeneralTab": {
|
||||
"Backup": "备份",
|
||||
"BackupDialog": "请选择你想要备份的内容:",
|
||||
"BackupDialog": "请选择你想要备份的内容:",
|
||||
"CalcEstimateTime": "估算时间计算",
|
||||
"CalcEstimateTimeDescription": "如果选择了多项,将会计算平均值",
|
||||
"CalcEtaTime": "预计完成时间计算",
|
||||
"CalcEtaTimeDescription": "如果选择了多项,将会计算平均值",
|
||||
"CalcPrintProgress": "打印进度估算",
|
||||
"CalcPrintProgressDescription": "计算打印进度的方法。",
|
||||
"CalcPrintProgressItems": {
|
||||
"Filament": "耗材",
|
||||
"FileAbsolute": "文件位置(绝对)",
|
||||
"FileRelative": "文件位置(相对)",
|
||||
"Slicer": "切片软件 (M73)"
|
||||
},
|
||||
"CannotReadJson": "无法读取/解析备份文件。",
|
||||
"DbConsoleHistory": "控制台历史记录",
|
||||
"DbHistoryJobs": "历史任务",
|
||||
@@ -831,7 +850,8 @@
|
||||
"Hostname": "主机名称/IP地址",
|
||||
"Port": "Moonraker服务端口",
|
||||
"RemotePrinters": "打印机",
|
||||
"UpdatePrinter": "更新打印机"
|
||||
"UpdatePrinter": "更新打印机",
|
||||
"UseConfigJson": "InstanceDB = JSON detected. 请使用 config.json 来修改打印机列表。"
|
||||
},
|
||||
"TimelapseTab": {
|
||||
"Autorender": "自动渲染",
|
||||
@@ -930,9 +950,8 @@
|
||||
"WebcamsTab": {
|
||||
"AddWebcam": "添加摄像头",
|
||||
"CreateWebcam": "添加摄像头",
|
||||
"EditCrowsnestConf": "编辑 crowsnest.conf",
|
||||
"EditWebcam": "编辑摄像头",
|
||||
"FlipHorizontally": "水平翻转摄像头",
|
||||
"FlipVertically": "垂直翻转摄像头",
|
||||
"IconBed": "热床",
|
||||
"IconCam": "摄像头",
|
||||
"IconDoor": "门",
|
||||
@@ -947,6 +966,7 @@
|
||||
"Name": "名称",
|
||||
"NameAlreadyExists": "名称已经存在",
|
||||
"Required": "需要填写名称",
|
||||
"Rotate": "旋转",
|
||||
"SaveWebcam": "保存摄像头",
|
||||
"Service": "服务",
|
||||
"TargetFPS": "目标FPS",
|
||||
@@ -967,6 +987,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!')
|
||||
})
|
||||
|
||||
|
||||
@@ -866,7 +866,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]
|
||||
}
|
||||
|
||||
@@ -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')
|
||||
|
||||
@@ -8,7 +8,6 @@ import {
|
||||
mdiEngine,
|
||||
mdiGamepad,
|
||||
mdiInformation,
|
||||
mdiPrinter3d,
|
||||
mdiPrinter3dNozzle,
|
||||
mdiThermometerLines,
|
||||
mdiWebcam,
|
||||
@@ -135,12 +134,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,7 +29,7 @@ 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'
|
||||
|
||||
@@ -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)
|
||||
|
||||
@@ -8,7 +8,6 @@ import {
|
||||
import { GetterTree } from 'vuex'
|
||||
import { FileState, FileStateFile, FileStateGcodefile } from '@/store/files/types'
|
||||
import { ServerHistoryStateJob } from '@/store/server/history/types'
|
||||
import { ServerJobQueueStateJob } from '@/store/server/jobQueue/types'
|
||||
|
||||
// eslint-disable-next-line
|
||||
export const getters: GetterTree<FileState, any> = {
|
||||
|
||||
+4
-13
@@ -20,24 +20,15 @@ export const getters: GetterTree<RootState, any> = {
|
||||
if (state.server?.klippy_state !== 'ready') return i18n.t('App.Titles.Error')
|
||||
else if (printer_state === 'paused') return i18n.t('App.Titles.Pause')
|
||||
else if (printer_state === 'printing') {
|
||||
const eta = getters['printer/getEstimatedTimeETA']
|
||||
|
||||
if (eta) {
|
||||
const date = new Date(eta)
|
||||
const h = date.getHours() >= 10 ? date.getHours() : '0' + date.getHours()
|
||||
const m = date.getMinutes() >= 10 ? date.getMinutes() : '0' + date.getMinutes()
|
||||
const diff = eta - new Date().getTime()
|
||||
const eta = getters['printer/getEstimatedTimeETAFormat']
|
||||
|
||||
if (eta !== '--')
|
||||
return i18n.t('App.Titles.PrintingETA', {
|
||||
percent: (getters['printer/getPrintPercent'] * 100).toFixed(0),
|
||||
filename: state.printer.print_stats?.filename,
|
||||
eta:
|
||||
h +
|
||||
':' +
|
||||
m +
|
||||
(diff > 60 * 60 * 24 * 1000 ? '+' + (diff / (60 * 60 * 24 * 1000)).toFixed() : ''),
|
||||
eta,
|
||||
})
|
||||
} else
|
||||
else
|
||||
return i18n.t('App.Titles.Printing', {
|
||||
percent: (getters['printer/getPrintPercent'] * 100).toFixed(0),
|
||||
filename: state.printer.print_stats?.filename,
|
||||
|
||||
@@ -239,7 +239,7 @@ export const actions: ActionTree<GuiState, RootState> = {
|
||||
})
|
||||
},
|
||||
|
||||
async resetMoonrakerDB({ commit, dispatch, rootGetters }, payload) {
|
||||
async resetMoonrakerDB({ rootGetters }, payload) {
|
||||
const baseUrl = rootGetters['socket/getUrl'] + '/server/database/item'
|
||||
|
||||
const urlDefault =
|
||||
@@ -306,7 +306,7 @@ export const actions: ActionTree<GuiState, RootState> = {
|
||||
window.location.reload()
|
||||
},
|
||||
|
||||
async backupMoonrakerDB({ commit, dispatch, rootGetters }, payload) {
|
||||
async backupMoonrakerDB({ rootGetters }, payload) {
|
||||
const backup: any = {}
|
||||
|
||||
const responseMainsail = await fetch(rootGetters['socket/getUrl'] + '/server/database/item?namespace=mainsail')
|
||||
|
||||
@@ -37,7 +37,7 @@ export const getters: GetterTree<GuiConsoleState, any> = {
|
||||
return output
|
||||
},
|
||||
|
||||
getConsoleClearedSince: (state, getters, rootState) => {
|
||||
getConsoleClearedSince: (state) => {
|
||||
return state.cleared_since
|
||||
},
|
||||
}
|
||||
@@ -69,4 +69,17 @@ export const getters: GetterTree<GuiState, any> = {
|
||||
|
||||
return 'm84'
|
||||
},
|
||||
|
||||
getHours12Format: (state) => {
|
||||
const setting = state.general.timeFormat
|
||||
if (setting === '12hours') return true
|
||||
if (setting === null) {
|
||||
const browserLocale =
|
||||
navigator.languages && navigator.languages.length ? navigator.languages[0] : navigator.language
|
||||
|
||||
if (browserLocale === 'en_us') return true
|
||||
}
|
||||
|
||||
return false
|
||||
},
|
||||
}
|
||||
@@ -9,6 +9,7 @@ import { defaultLogoColor, defaultPrimaryColor } from '@/store/variables'
|
||||
import { console } from '@/store/gui/console'
|
||||
import { gcodehistory } from '@/store/gui/gcodehistory'
|
||||
import { macros } from '@/store/gui/macros'
|
||||
import { miscellaneous } from '@/store/gui/miscellaneous'
|
||||
import { presets } from '@/store/gui/presets'
|
||||
import { remoteprinters } from '@/store/gui/remoteprinters'
|
||||
import { webcams } from '@/store/gui/webcams'
|
||||
@@ -19,6 +20,8 @@ export const getDefaultState = (): GuiState => {
|
||||
general: {
|
||||
printername: '',
|
||||
language: 'en',
|
||||
dateFormat: null,
|
||||
timeFormat: null,
|
||||
calcPrintProgress: 'file-relative',
|
||||
calcEstimateTime: ['file', 'filament'],
|
||||
calcEtaTime: ['file', 'filament', 'slicer'],
|
||||
@@ -253,6 +256,7 @@ export const gui: Module<GuiState, any> = {
|
||||
console,
|
||||
gcodehistory,
|
||||
macros,
|
||||
miscellaneous,
|
||||
notifications,
|
||||
presets,
|
||||
remoteprinters,
|
||||
|
||||
@@ -28,7 +28,7 @@ export const actions: ActionTree<GuiMacrosState, RootState> = {
|
||||
})
|
||||
},
|
||||
|
||||
async groupStore({ commit, dispatch, state }, payload) {
|
||||
async groupStore({ commit, dispatch }, payload) {
|
||||
const id = uuidv4()
|
||||
|
||||
await commit('groupStore', { id, values: payload.values })
|
||||
@@ -37,7 +37,7 @@ export const actions: ActionTree<GuiMacrosState, RootState> = {
|
||||
return id
|
||||
},
|
||||
|
||||
groupUpdate({ commit, dispatch, state }, payload) {
|
||||
groupUpdate({ commit, dispatch }, payload) {
|
||||
commit('groupUpdate', payload)
|
||||
dispatch('groupUpload', payload.id)
|
||||
},
|
||||
|
||||
@@ -0,0 +1,133 @@
|
||||
import { ActionTree } from 'vuex'
|
||||
import { RootState } from '@/store/types'
|
||||
import { v4 as uuidv4 } from 'uuid'
|
||||
import Vue from 'vue'
|
||||
import {
|
||||
GuiMiscellaneousState,
|
||||
GuiMiscellaneousStateEntryLightgroup,
|
||||
GuiMiscellaneousStateEntryPreset,
|
||||
} from '@/store/gui/miscellaneous/types'
|
||||
|
||||
export const actions: ActionTree<GuiMiscellaneousState, RootState> = {
|
||||
reset({ commit }) {
|
||||
commit('reset')
|
||||
},
|
||||
|
||||
upload({ state }, id) {
|
||||
Vue.$socket.emit('server.database.post_item', {
|
||||
namespace: 'mainsail',
|
||||
key: 'miscellaneous.entries.' + id,
|
||||
value: state.entries[id],
|
||||
})
|
||||
},
|
||||
|
||||
async store({ commit, dispatch }, payload: payloadStore) {
|
||||
const id = uuidv4()
|
||||
|
||||
await commit('store', { id, values: payload })
|
||||
await dispatch('upload', id)
|
||||
|
||||
return id
|
||||
},
|
||||
|
||||
async storeLightgroup({ commit, dispatch, getters }, payload: payloadStoreLightgroup) {
|
||||
let entryId = getters['getId'](payload.entry)
|
||||
if (entryId === null) entryId = await dispatch('store', payload.entry)
|
||||
|
||||
const lightgroupId = uuidv4()
|
||||
await commit('updateLightgroup', { entryId, lightgroupId, values: payload.lightgroup })
|
||||
|
||||
await dispatch('upload', entryId)
|
||||
|
||||
return lightgroupId
|
||||
},
|
||||
|
||||
async updateLightgroup({ commit, dispatch, getters }, payload: payloadStoreLightgroup) {
|
||||
const entryId = getters['getId'](payload.entry)
|
||||
if (entryId === null) return
|
||||
|
||||
await commit('updateLightgroup', { entryId, lightgroupId: payload.lightgroup.id, values: payload.lightgroup })
|
||||
|
||||
await dispatch('upload', entryId)
|
||||
|
||||
return payload.lightgroup.id
|
||||
},
|
||||
|
||||
async deleteLightgroup({ commit, dispatch, getters }, payload: payloadDeleteLightgroup) {
|
||||
const entryId = getters['getId'](payload.entry)
|
||||
if (entryId === null) return
|
||||
|
||||
await commit('destroyLightgroup', { entryId, lightgroupId: payload.lightgroupId })
|
||||
|
||||
await dispatch('upload', entryId)
|
||||
},
|
||||
|
||||
async storePreset({ commit, dispatch, getters }, payload: payloadStorePreset) {
|
||||
let entryId = getters['getId'](payload.entry)
|
||||
if (entryId === null) entryId = await dispatch('store', payload.entry)
|
||||
|
||||
const presetId = uuidv4()
|
||||
await commit('updatePreset', { entryId, presetId, values: payload.preset })
|
||||
|
||||
await dispatch('upload', entryId)
|
||||
|
||||
return presetId
|
||||
},
|
||||
|
||||
async updatePreset({ commit, dispatch, getters }, payload: payloadStorePreset) {
|
||||
const entryId = getters['getId'](payload.entry)
|
||||
if (entryId === null) return
|
||||
|
||||
await commit('updatePreset', { entryId, presetId: payload.preset.id, values: payload.preset })
|
||||
|
||||
await dispatch('upload', entryId)
|
||||
|
||||
return payload.preset.id
|
||||
},
|
||||
|
||||
async deletePreset({ commit, dispatch, getters }, payload: payloadDeletePreset) {
|
||||
const entryId = getters['getId'](payload.entry)
|
||||
if (entryId === null) return
|
||||
|
||||
await commit('destroyPreset', { entryId, presetId: payload.presetId })
|
||||
|
||||
await dispatch('upload', entryId)
|
||||
},
|
||||
}
|
||||
|
||||
interface payloadStore {
|
||||
type: string
|
||||
name: string
|
||||
}
|
||||
|
||||
interface payloadStoreLightgroup {
|
||||
entry: {
|
||||
type: string
|
||||
name: string
|
||||
}
|
||||
lightgroup: GuiMiscellaneousStateEntryLightgroup
|
||||
}
|
||||
|
||||
interface payloadDeleteLightgroup {
|
||||
entry: {
|
||||
type: string
|
||||
name: string
|
||||
}
|
||||
lightgroupId: string
|
||||
}
|
||||
|
||||
interface payloadStorePreset {
|
||||
entry: {
|
||||
type: string
|
||||
name: string
|
||||
}
|
||||
preset: GuiMiscellaneousStateEntryPreset
|
||||
}
|
||||
|
||||
interface payloadDeletePreset {
|
||||
entry: {
|
||||
type: string
|
||||
name: string
|
||||
}
|
||||
presetId: string
|
||||
}
|
||||
@@ -0,0 +1,75 @@
|
||||
import { GetterTree } from 'vuex'
|
||||
import {
|
||||
GuiMiscellaneousState,
|
||||
GuiMiscellaneousStateEntry,
|
||||
GuiMiscellaneousStateEntryLightgroup,
|
||||
GuiMiscellaneousStateEntryPreset,
|
||||
} from '@/store/gui/miscellaneous/types'
|
||||
import { caseInsensitiveSort } from '@/plugins/helpers'
|
||||
|
||||
// eslint-disable-next-line
|
||||
export const getters: GetterTree<GuiMiscellaneousState, any> = {
|
||||
getEntries: (state) => {
|
||||
const output: GuiMiscellaneousStateEntry[] = []
|
||||
|
||||
Object.entries(state.entries).forEach(([key, values]) => {
|
||||
output.push({
|
||||
id: key,
|
||||
name: values.name,
|
||||
type: values.type,
|
||||
lightgroups: { ...values.lightgroups },
|
||||
presets: { ...values.presets },
|
||||
})
|
||||
})
|
||||
|
||||
return output
|
||||
},
|
||||
|
||||
getEntry: (state, getters) => (payload: { type: string; name: string }) => {
|
||||
return getters.getEntries.find(
|
||||
(entry: GuiMiscellaneousStateEntry) => entry.name === payload.name && entry.type === payload.type
|
||||
) as GuiMiscellaneousStateEntry
|
||||
},
|
||||
|
||||
getId: (state, getters) => (payload: { type: string; name: string }) => {
|
||||
return getters.getEntry(payload)?.id ?? null
|
||||
},
|
||||
|
||||
getEntryLightgroups: (state, getters) => (payload: { type: string; name: string }) => {
|
||||
const entry = getters.getEntry(payload) as GuiMiscellaneousStateEntry | null
|
||||
|
||||
if (!entry) return []
|
||||
|
||||
const groups: GuiMiscellaneousStateEntryLightgroup[] = []
|
||||
Object.entries(entry.lightgroups).forEach(([key, lightgroup]) => {
|
||||
groups.push({
|
||||
name: lightgroup.name,
|
||||
start: lightgroup.start,
|
||||
end: lightgroup.end,
|
||||
id: key,
|
||||
})
|
||||
})
|
||||
|
||||
return caseInsensitiveSort(groups, 'name')
|
||||
},
|
||||
|
||||
getEntryPresets: (state, getters) => (payload: { type: string; name: string }) => {
|
||||
const entry = getters.getEntry(payload) as GuiMiscellaneousStateEntry | null
|
||||
|
||||
if (!entry) return []
|
||||
|
||||
const presets: GuiMiscellaneousStateEntryPreset[] = []
|
||||
Object.entries(entry.presets).forEach(([key, preset]) => {
|
||||
presets.push({
|
||||
name: preset.name,
|
||||
red: preset.red,
|
||||
green: preset.green,
|
||||
blue: preset.blue,
|
||||
white: preset.white,
|
||||
id: key,
|
||||
})
|
||||
})
|
||||
|
||||
return caseInsensitiveSort(presets, 'name')
|
||||
},
|
||||
}
|
||||
@@ -0,0 +1,23 @@
|
||||
import { Module } from 'vuex'
|
||||
import { actions } from '@/store/gui/miscellaneous/actions'
|
||||
import { mutations } from '@/store/gui/miscellaneous/mutations'
|
||||
import { getters } from '@/store/gui/miscellaneous/getters'
|
||||
import { GuiMiscellaneousState } from '@/store/gui/miscellaneous/types'
|
||||
|
||||
export const getDefaultState = (): GuiMiscellaneousState => {
|
||||
return {
|
||||
entries: {},
|
||||
}
|
||||
}
|
||||
|
||||
// initial state
|
||||
const state = getDefaultState()
|
||||
|
||||
// eslint-disable-next-line
|
||||
export const miscellaneous: Module<GuiMiscellaneousState, any> = {
|
||||
namespaced: true,
|
||||
state,
|
||||
getters,
|
||||
actions,
|
||||
mutations,
|
||||
}
|
||||
@@ -0,0 +1,92 @@
|
||||
import { getDefaultState } from './index'
|
||||
import { MutationTree } from 'vuex'
|
||||
import Vue from 'vue'
|
||||
import {
|
||||
GuiMiscellaneousState,
|
||||
GuiMiscellaneousStateEntry,
|
||||
GuiMiscellaneousStateEntryLightgroup,
|
||||
GuiMiscellaneousStateEntryPreset,
|
||||
} from '@/store/gui/miscellaneous/types'
|
||||
|
||||
export const mutations: MutationTree<GuiMiscellaneousState> = {
|
||||
reset(state) {
|
||||
Object.assign(state, getDefaultState())
|
||||
},
|
||||
|
||||
store(state, payload: payloadStore) {
|
||||
const values: GuiMiscellaneousStateEntry = {
|
||||
name: payload.values.name,
|
||||
type: payload.values.type,
|
||||
lightgroups: {},
|
||||
presets: {},
|
||||
}
|
||||
|
||||
Vue.set(state.entries, payload.id, values)
|
||||
},
|
||||
|
||||
updateLightgroup(state, payload: payloadUpdateLightgroup) {
|
||||
const lightgroup: GuiMiscellaneousStateEntryLightgroup = {
|
||||
name: payload.values.name,
|
||||
start: parseInt(payload.values.start.toString()),
|
||||
end: parseInt(payload.values.end.toString()),
|
||||
}
|
||||
|
||||
Vue.set(state.entries[payload.entryId].lightgroups, payload.lightgroupId, lightgroup)
|
||||
},
|
||||
|
||||
destroyLightgroup(state, payload: payloadDestroyLightgroup) {
|
||||
const entries = { ...state.entries }
|
||||
delete entries[payload.entryId].lightgroups[payload.lightgroupId]
|
||||
|
||||
Vue.set(state, 'entries', entries)
|
||||
},
|
||||
|
||||
updatePreset(state, payload: payloadUpdatePreset) {
|
||||
const preset: GuiMiscellaneousStateEntryPreset = {
|
||||
name: payload.values.name,
|
||||
red: payload.values.red,
|
||||
green: payload.values.green,
|
||||
blue: payload.values.blue,
|
||||
white: payload.values.white,
|
||||
}
|
||||
|
||||
Vue.set(state.entries[payload.entryId].presets, payload.presetId, preset)
|
||||
},
|
||||
|
||||
destroyPreset(state, payload: payloadDestroyPreset) {
|
||||
const entries = { ...state.entries }
|
||||
delete entries[payload.entryId].presets[payload.presetId]
|
||||
|
||||
Vue.set(state, 'entries', entries)
|
||||
},
|
||||
}
|
||||
|
||||
interface payloadStore {
|
||||
id: string
|
||||
values: {
|
||||
type: string
|
||||
name: string
|
||||
}
|
||||
}
|
||||
|
||||
interface payloadUpdateLightgroup {
|
||||
entryId: string
|
||||
lightgroupId: string
|
||||
values: GuiMiscellaneousStateEntryLightgroup
|
||||
}
|
||||
|
||||
interface payloadDestroyLightgroup {
|
||||
entryId: string
|
||||
lightgroupId: string
|
||||
}
|
||||
|
||||
interface payloadUpdatePreset {
|
||||
entryId: string
|
||||
presetId: string
|
||||
values: GuiMiscellaneousStateEntryPreset
|
||||
}
|
||||
|
||||
interface payloadDestroyPreset {
|
||||
entryId: string
|
||||
presetId: string
|
||||
}
|
||||
@@ -0,0 +1,33 @@
|
||||
export interface GuiMiscellaneousState {
|
||||
entries: {
|
||||
[key: string]: GuiMiscellaneousStateEntry
|
||||
}
|
||||
}
|
||||
|
||||
export interface GuiMiscellaneousStateEntry {
|
||||
id?: string
|
||||
type: string
|
||||
name: string
|
||||
lightgroups: {
|
||||
[key: string]: GuiMiscellaneousStateEntryLightgroup
|
||||
}
|
||||
presets: {
|
||||
[key: string]: GuiMiscellaneousStateEntryPreset
|
||||
}
|
||||
}
|
||||
|
||||
export interface GuiMiscellaneousStateEntryLightgroup {
|
||||
id?: string
|
||||
name: string
|
||||
start: number
|
||||
end: number
|
||||
}
|
||||
|
||||
export interface GuiMiscellaneousStateEntryPreset {
|
||||
id?: string
|
||||
name: string
|
||||
red: number | null
|
||||
blue: number | null
|
||||
green: number | null
|
||||
white: number | null
|
||||
}
|
||||
@@ -3,7 +3,6 @@ import { GuiNotificationState, GuiNotificationStateDismissEntry, GuiNotification
|
||||
import { ServerAnnouncementsStateEntry } from '@/store/server/announcements/types'
|
||||
import i18n from '@/plugins/i18n.js'
|
||||
import { RootStateDependency } from '@/store/types'
|
||||
import { camelize } from '@/plugins/helpers'
|
||||
import { sha256 } from 'js-sha256'
|
||||
import { PrinterStateKlipperConfigWarning } from '@/store/printer/types'
|
||||
|
||||
|
||||
@@ -15,7 +15,7 @@ export const actions: ActionTree<GuiRemoteprintersState, RootState> = {
|
||||
|
||||
initFromLocalstorage({ dispatch, rootState }) {
|
||||
let value = rootState.configInstances ?? []
|
||||
if (rootState.instancesDB === 'moonraker') value = JSON.parse(localStorage.getItem('printers') ?? '{}')
|
||||
if (rootState.instancesDB === 'browser') value = JSON.parse(localStorage.getItem('printers') ?? '{}')
|
||||
if (Array.isArray(value)) {
|
||||
const printers: any = {}
|
||||
|
||||
@@ -28,7 +28,7 @@ export const actions: ActionTree<GuiRemoteprintersState, RootState> = {
|
||||
}
|
||||
},
|
||||
|
||||
async initStore({ commit, dispatch, state }, payload) {
|
||||
async initStore({ commit, dispatch }, payload) {
|
||||
dispatch('reset')
|
||||
Object.keys(payload).forEach((printerId: string) => {
|
||||
const printer = payload[printerId]
|
||||
@@ -74,7 +74,7 @@ export const actions: ActionTree<GuiRemoteprintersState, RootState> = {
|
||||
}
|
||||
},
|
||||
|
||||
store({ commit, dispatch, state }, payload) {
|
||||
store({ commit, dispatch }, payload) {
|
||||
const id = uuidv4()
|
||||
|
||||
commit('store', { id, values: payload.values })
|
||||
@@ -91,7 +91,7 @@ export const actions: ActionTree<GuiRemoteprintersState, RootState> = {
|
||||
dispatch('upload', id)
|
||||
},
|
||||
|
||||
update({ commit, dispatch, state }, payload) {
|
||||
update({ commit, dispatch }, payload) {
|
||||
commit('update', payload)
|
||||
dispatch('farm/updatePrinter', payload, { root: true })
|
||||
|
||||
|
||||
@@ -10,6 +10,8 @@ export interface GuiState {
|
||||
general: {
|
||||
printername: string
|
||||
language: string
|
||||
dateFormat: string | null
|
||||
timeFormat: string | null
|
||||
calcPrintProgress: 'file-relative' | 'file-absolute' | 'slicer' | 'filament'
|
||||
calcEstimateTime: string[] // file, filament are possible values
|
||||
calcEtaTime: string[] // file, filament, slicer are possible values
|
||||
|
||||
+1
-1
@@ -3,7 +3,7 @@ import Vuex from 'vuex'
|
||||
import { actions } from '@/store/actions'
|
||||
import { mutations } from '@/store/mutations'
|
||||
import { getters } from '@/store/getters'
|
||||
import { ConfigJsonInstance, RootState } from './types'
|
||||
import { RootState } from './types'
|
||||
|
||||
// load modules
|
||||
import { socket } from '@/store/socket'
|
||||
|
||||
+241
-40
@@ -20,6 +20,9 @@ import {
|
||||
PrinterStateTemperatureObject,
|
||||
PrinterStateTemperatureSensor,
|
||||
PrinterStateToolchangeMacro,
|
||||
PrinterStateAdditionalSensor,
|
||||
PrinterGetterObject,
|
||||
PrinterStateLight,
|
||||
} from '@/store/printer/types'
|
||||
import { caseInsensitiveSort, formatFrequency, getMacroParams } from '@/plugins/helpers'
|
||||
import { RootState } from '@/store/types'
|
||||
@@ -96,6 +99,71 @@ export const getters: GetterTree<PrinterState, RootState> = {
|
||||
return state.virtual_sdcard?.progress ?? 0
|
||||
},
|
||||
|
||||
getPrintMaxLayers: (state) => {
|
||||
if (state.print_stats?.info?.total_layer !== null) {
|
||||
return state.print_stats.info.total_layer
|
||||
} else if (state.current_file?.layer_count) {
|
||||
return state.current_file.layer_count
|
||||
} else if (
|
||||
'current_file' in state &&
|
||||
'first_layer_height' in state.current_file &&
|
||||
'layer_height' in state.current_file &&
|
||||
'object_height' in state.current_file
|
||||
) {
|
||||
const max = Math.ceil(
|
||||
(state.current_file.object_height - state.current_file.first_layer_height) /
|
||||
state.current_file.layer_height +
|
||||
1
|
||||
)
|
||||
return max > 0 ? max : 0
|
||||
}
|
||||
|
||||
return 0
|
||||
},
|
||||
|
||||
getPrintCurrentLayer: (state, getters) => {
|
||||
if (state.print_stats?.info?.current_layer !== null) {
|
||||
return state.print_stats.info.current_layer
|
||||
} else if (
|
||||
state.print_stats?.print_duration > 0 &&
|
||||
'first_layer_height' in state.current_file &&
|
||||
'layer_height' in state.current_file
|
||||
) {
|
||||
const gcodePositionZ = state.gcode_move?.gcode_position[2] ?? 0
|
||||
const current_layer = Math.ceil(
|
||||
(gcodePositionZ - state.current_file.first_layer_height) / state.current_file.layer_height + 1
|
||||
)
|
||||
|
||||
if (current_layer > getters.getPrintMaxLayers) return getters.getPrintMaxLayers
|
||||
if (current_layer > 0) return current_layer
|
||||
}
|
||||
|
||||
return 0
|
||||
},
|
||||
|
||||
getPrinterObjects: (state) => (supportedObjects: string[]) => {
|
||||
const outputObjects: PrinterGetterObject[] = []
|
||||
|
||||
for (const [key, value] of Object.entries(state)) {
|
||||
let type = key.substring(0, key.indexOf(' ')).trimEnd()
|
||||
let name = key.substring(key.indexOf(' ') + 1).trimStart()
|
||||
|
||||
if (key.indexOf(' ') === -1) type = name = key
|
||||
|
||||
if (supportedObjects.includes(type)) {
|
||||
outputObjects.push({
|
||||
name,
|
||||
type,
|
||||
state: { ...value },
|
||||
config: state.configfile?.config[key] ?? {},
|
||||
settings: state.configfile?.settings[key] ?? {},
|
||||
})
|
||||
}
|
||||
}
|
||||
|
||||
return outputObjects
|
||||
},
|
||||
|
||||
getMacros: (state) => {
|
||||
const array: PrinterStateMacro[] = []
|
||||
const config = state.configfile?.config ?? {}
|
||||
@@ -167,7 +235,7 @@ export const getters: GetterTree<PrinterState, RootState> = {
|
||||
iconColor: color,
|
||||
target: Math.round(value.target * 10) / 10,
|
||||
temperature: Math.round(value.temperature * 10) / 10,
|
||||
additionSensors: getters.getAdditionSensors(nameSplit[1]),
|
||||
additionalSensors: getters.getAdditionalSensors(nameSplit[1]),
|
||||
power: Math.round((value.power ?? 0) * 100),
|
||||
avgPower: Math.round(getters['tempHistory/getAvgPower'](name) ?? 0),
|
||||
presets: rootGetters['gui/presets/getPresetsFromHeater']({ name: key }),
|
||||
@@ -196,7 +264,7 @@ export const getters: GetterTree<PrinterState, RootState> = {
|
||||
icon: mdiFan,
|
||||
target: Math.round(value.target * 10) / 10,
|
||||
temperature: Math.round(value.temperature * 10) / 10,
|
||||
additionSensors: getters.getAdditionSensors(nameSplit[1]),
|
||||
additionalSensors: getters.getAdditionalSensors(nameSplit[1]),
|
||||
speed: Math.round((value.speed ?? 0) * 100),
|
||||
avgSpeed: Math.round(getters['tempHistory/getAvgSpeed'](name) ?? 0),
|
||||
rpm: value.rpm !== null ? Math.round(value.rpm) : null,
|
||||
@@ -212,7 +280,7 @@ export const getters: GetterTree<PrinterState, RootState> = {
|
||||
return caseInsensitiveSort(fans, 'name')
|
||||
},
|
||||
|
||||
getTemperatureSensors: (state, getters) => {
|
||||
getTemperatureSensors: (state, getters, rootState, rootGetters) => {
|
||||
const sensors: PrinterStateTemperatureSensor[] = []
|
||||
|
||||
for (const [key, value] of Object.entries(state)) {
|
||||
@@ -230,7 +298,7 @@ export const getters: GetterTree<PrinterState, RootState> = {
|
||||
sensors.push({
|
||||
name: nameSplit[1],
|
||||
temperature: Math.round(value.temperature * 10) / 10,
|
||||
additionSensors: getters.getAdditionSensors(nameSplit[1]),
|
||||
additionalSensors: getters.getAdditionalSensors(nameSplit[1]),
|
||||
icon: icon,
|
||||
min_temp: min_temp,
|
||||
max_temp: max_temp,
|
||||
@@ -239,6 +307,44 @@ export const getters: GetterTree<PrinterState, RootState> = {
|
||||
chartColor: getters['tempHistory/getDatasetColor'](nameSplit[1]),
|
||||
chartSeries: getters['tempHistory/getSerieNames'](nameSplit[1]),
|
||||
})
|
||||
} else if (key === 'z_thermal_adjust') {
|
||||
let icon = mdiThermometer
|
||||
const min_temp = state.configfile?.settings[key]?.min_temp ?? 0
|
||||
const max_temp = state.configfile?.settings[key]?.max_temp ?? 210
|
||||
const split = (max_temp - min_temp) / 3
|
||||
|
||||
if (value.temperature <= min_temp + split) icon = mdiThermometerLow
|
||||
if (value.temperature >= max_temp - split) icon = mdiThermometerHigh
|
||||
|
||||
const additionalSensorBool = rootGetters['gui/getDatasetAdditionalSensorValue']({
|
||||
name: key,
|
||||
sensor: 'z_adjust',
|
||||
})
|
||||
|
||||
const additionalSensor: PrinterStateAdditionalSensor = {
|
||||
bool: additionalSensorBool,
|
||||
name: 'z_adjust',
|
||||
unit: 'μm',
|
||||
value: Math.round(value.current_z_adjust * 1000),
|
||||
}
|
||||
|
||||
if (Math.abs(value.current_z_adjust) >= 0.1) {
|
||||
additionalSensor.value = Math.round(value.current_z_adjust * 1000) / 1000
|
||||
additionalSensor.unit = 'mm'
|
||||
}
|
||||
|
||||
sensors.push({
|
||||
name: key,
|
||||
temperature: Math.round(value.temperature * 10) / 10,
|
||||
additionalSensors: [additionalSensor],
|
||||
icon,
|
||||
min_temp: min_temp,
|
||||
max_temp: max_temp,
|
||||
measured_min_temp: Math.round(value.measured_min_temp * 10) / 10,
|
||||
measured_max_temp: Math.round(value.measured_max_temp * 10) / 10,
|
||||
chartColor: getters['tempHistory/getDatasetColor'](key),
|
||||
chartSeries: getters['tempHistory/getSerieNames'](key),
|
||||
})
|
||||
}
|
||||
}
|
||||
|
||||
@@ -263,7 +369,7 @@ export const getters: GetterTree<PrinterState, RootState> = {
|
||||
state: heater.target > 0 ? heater.power + '%' : 'off',
|
||||
avgState: heater.avgPower + '%',
|
||||
temperature: heater.temperature,
|
||||
additionSensors: heater.additionSensors,
|
||||
additionalSensors: heater.additionalSensors,
|
||||
target: heater.target,
|
||||
presets: heater.presets,
|
||||
min_temp: heater.min_temp,
|
||||
@@ -295,7 +401,7 @@ export const getters: GetterTree<PrinterState, RootState> = {
|
||||
state: fan.target > 0 && fan.speed > 0 ? fan.speed + '%' : fan.target > 0 ? 'standby' : 'off',
|
||||
avgState: fan.avgSpeed + '%',
|
||||
temperature: fan.temperature,
|
||||
additionSensors: fan.additionSensors,
|
||||
additionalSensors: fan.additionalSensors,
|
||||
target: fan.target,
|
||||
presets: fan.presets,
|
||||
min_temp: fan.min_temp,
|
||||
@@ -324,7 +430,7 @@ export const getters: GetterTree<PrinterState, RootState> = {
|
||||
state: null,
|
||||
avgState: '',
|
||||
temperature: sensor.temperature,
|
||||
additionSensors: sensor.additionSensors,
|
||||
additionalSensors: sensor.additionalSensors,
|
||||
target: null,
|
||||
presets: [],
|
||||
min_temp: sensor.min_temp,
|
||||
@@ -348,26 +454,21 @@ export const getters: GetterTree<PrinterState, RootState> = {
|
||||
return 'fan' in state ? state.fan.speed : 0
|
||||
},
|
||||
|
||||
getFans: (state) => {
|
||||
getFans: (state, getters) => {
|
||||
const fans: PrinterStateFan[] = []
|
||||
const supportedFans = ['temperature_fan', 'controller_fan', 'heater_fan', 'fan_generic', 'fan']
|
||||
const objects = getters.getPrinterObjects(supportedFans)
|
||||
|
||||
const controllableFans = ['fan_generic', 'fan']
|
||||
|
||||
for (const [key, value] of Object.entries(state)) {
|
||||
const nameSplit = key.split(' ')
|
||||
|
||||
if (supportedFans.includes(nameSplit[0])) {
|
||||
const name = nameSplit.length > 1 ? nameSplit[1] : nameSplit[0]
|
||||
|
||||
fans.push({
|
||||
name: name,
|
||||
type: nameSplit[0],
|
||||
speed: 'speed' in value ? value.speed : 0,
|
||||
controllable: controllableFans.includes(nameSplit[0]),
|
||||
})
|
||||
}
|
||||
}
|
||||
objects.foreach((object: PrinterGetterObject) => {
|
||||
fans.push({
|
||||
name: object.name,
|
||||
type: object.type,
|
||||
speed: object.state.speed ?? 0,
|
||||
controllable: controllableFans.includes(object.type),
|
||||
})
|
||||
})
|
||||
|
||||
return fans.sort((a, b) => {
|
||||
if (a.controllable < b.controllable) return 1
|
||||
@@ -383,6 +484,86 @@ export const getters: GetterTree<PrinterState, RootState> = {
|
||||
})
|
||||
},
|
||||
|
||||
getLights: (state, getters) => {
|
||||
const lights: PrinterStateLight[] = []
|
||||
const supportedObjects = ['dotstar', 'led', 'neopixel', 'pca9533', 'pca9632']
|
||||
const objects = getters.getPrinterObjects(supportedObjects)
|
||||
|
||||
objects
|
||||
.filter((object: PrinterGetterObject) => {
|
||||
return !object.name.startsWith('_')
|
||||
})
|
||||
.forEach((object: PrinterGetterObject) => {
|
||||
let colorOrder = 'RGB'
|
||||
let singleChannelTarget = null
|
||||
const colorData = object.state.color_data ?? []
|
||||
|
||||
if ('color_order' in object.settings) colorOrder = object.settings.color_order[0] ?? ''
|
||||
|
||||
if (object.type === 'led') {
|
||||
colorOrder = ''
|
||||
if ('red_pin' in object.config) colorOrder += 'R'
|
||||
if ('green_pin' in object.config) colorOrder += 'G'
|
||||
if ('blue_pin' in object.config) colorOrder += 'B'
|
||||
if ('white_pin' in object.config) colorOrder += 'W'
|
||||
}
|
||||
|
||||
let initialRed = object.settings.initial_red ?? null
|
||||
if (!('initial_red' in object.config)) initialRed = null
|
||||
|
||||
let initialGreen = object.settings.initial_green ?? null
|
||||
if (!('initial_green' in object.config)) initialGreen = null
|
||||
|
||||
let initialBlue = object.settings.initial_blue ?? null
|
||||
if (!('initial_blue' in object.config)) initialBlue = null
|
||||
|
||||
let initialWhite = object.settings.initial_white ?? null
|
||||
if (!('initial_white' in object.config)) initialWhite = null
|
||||
|
||||
if (object.type === 'led' && colorOrder.length === 1) {
|
||||
const firstColorData = colorData[0] ?? []
|
||||
|
||||
switch (colorOrder) {
|
||||
case 'R':
|
||||
singleChannelTarget = firstColorData[0] ?? 0
|
||||
break
|
||||
case 'G':
|
||||
singleChannelTarget = firstColorData[1] ?? 0
|
||||
break
|
||||
case 'B':
|
||||
singleChannelTarget = firstColorData[2] ?? 0
|
||||
break
|
||||
case 'W':
|
||||
singleChannelTarget = firstColorData[3] ?? 0
|
||||
break
|
||||
}
|
||||
}
|
||||
|
||||
lights.push({
|
||||
name: object.name,
|
||||
type: object.type as PrinterStateLight['type'],
|
||||
chainCount: object.settings.chain_count ?? 1,
|
||||
colorOrder,
|
||||
initialRed,
|
||||
initialGreen,
|
||||
initialBlue,
|
||||
initialWhite,
|
||||
colorData,
|
||||
singleChannelTarget,
|
||||
})
|
||||
})
|
||||
|
||||
return lights.sort((a, b) => {
|
||||
const nameA = a.name.toUpperCase()
|
||||
const nameB = b.name.toUpperCase()
|
||||
|
||||
if (nameA < nameB) return -1
|
||||
if (nameA > nameB) return 1
|
||||
|
||||
return 0
|
||||
})
|
||||
},
|
||||
|
||||
getMiscellaneous: (state) => {
|
||||
const output: PrinterStateMiscellaneous[] = []
|
||||
const supportedObjects = ['controller_fan', 'heater_fan', 'fan_generic', 'fan', 'output_pin']
|
||||
@@ -459,35 +640,31 @@ export const getters: GetterTree<PrinterState, RootState> = {
|
||||
})
|
||||
},
|
||||
|
||||
getAdditionSensors: (state, getters, rootState, rootGetters) => (name: string) => {
|
||||
let additionValues = {}
|
||||
getAdditionalSensors: (state, getters, rootState, rootGetters) => (name: string) => {
|
||||
const additionValues: PrinterStateAdditionalSensor[] = []
|
||||
|
||||
additionalSensors.forEach((sensorName) => {
|
||||
if (sensorName + ' ' + name in state) {
|
||||
Object.keys(state[sensorName + ' ' + name]).forEach((key) => {
|
||||
if (key !== 'temperature') {
|
||||
// eslint-disable-next-line
|
||||
const tmp: any = {}
|
||||
tmp[key] = {}
|
||||
tmp[key]['value'] = state[sensorName + ' ' + name][key].toFixed(1)
|
||||
tmp[key]['bool'] = rootGetters['gui/getDatasetAdditionalSensorValue']({
|
||||
const bool = rootGetters['gui/getDatasetAdditionalSensorValue']({
|
||||
name: name,
|
||||
sensor: key,
|
||||
})
|
||||
|
||||
switch (key) {
|
||||
case 'pressure':
|
||||
tmp[key]['unit'] = 'hPa'
|
||||
break
|
||||
let unit = ''
|
||||
if (key === 'pressure') unit = 'hPa'
|
||||
if (key === 'humidity') unit = '%'
|
||||
|
||||
case 'humidity':
|
||||
tmp[key]['unit'] = '%'
|
||||
break
|
||||
|
||||
default:
|
||||
tmp[key]['unit'] = ''
|
||||
// eslint-disable-next-line
|
||||
const tmp: PrinterStateAdditionalSensor = {
|
||||
name: key,
|
||||
value: state[sensorName + ' ' + name][key].toFixed(1),
|
||||
bool,
|
||||
unit,
|
||||
}
|
||||
|
||||
additionValues = Object.assign(additionValues, tmp)
|
||||
additionValues.push(tmp)
|
||||
}
|
||||
})
|
||||
}
|
||||
@@ -881,6 +1058,30 @@ export const getters: GetterTree<PrinterState, RootState> = {
|
||||
return 0
|
||||
},
|
||||
|
||||
getEstimatedTimeETAFormat: (state, getters, rootState, rootGetters) => {
|
||||
const hours12Format = rootGetters['gui/getHours12Format'] ?? false
|
||||
const eta = getters['getEstimatedTimeETA']
|
||||
if (eta === 0) return '--'
|
||||
|
||||
const date = new Date(eta)
|
||||
let am = true
|
||||
let h: string | number = date.getHours()
|
||||
if (hours12Format && h > 12) {
|
||||
am = false
|
||||
h -= 12
|
||||
}
|
||||
if (h < 10) h = '0' + h
|
||||
|
||||
const m = date.getMinutes() >= 10 ? date.getMinutes() : '0' + date.getMinutes()
|
||||
|
||||
const diff = eta - new Date().getTime()
|
||||
let output = h + ':' + m
|
||||
if (hours12Format) output += ` ${am ? 'AM' : 'PM'}`
|
||||
if (diff > 60 * 60 * 24 * 1000) output += `+${Math.trunc(diff / (60 * 60 * 24 * 1000))}`
|
||||
|
||||
return output
|
||||
},
|
||||
|
||||
getToolchangeMacros: (state, getters) => {
|
||||
const macros = getters['getMacros']
|
||||
const tools: PrinterStateToolchangeMacro[] = []
|
||||
|
||||
@@ -31,7 +31,7 @@ export interface PrinterStateHeater {
|
||||
iconColor: string
|
||||
target: number
|
||||
temperature: number
|
||||
additionSensors: PrinterStateAdditionSensor[]
|
||||
additionalSensors: PrinterStateAdditionalSensor[]
|
||||
power: number
|
||||
avgPower: number
|
||||
chartColor: string
|
||||
@@ -46,7 +46,7 @@ export interface PrinterStateTemperatureFan {
|
||||
icon: string
|
||||
target: number
|
||||
temperature: number
|
||||
additionSensors: PrinterStateAdditionSensor[]
|
||||
additionalSensors: PrinterStateAdditionalSensor[]
|
||||
speed: number
|
||||
avgSpeed: number
|
||||
rpm: number | null
|
||||
@@ -60,7 +60,7 @@ export interface PrinterStateTemperatureFan {
|
||||
export interface PrinterStateTemperatureSensor {
|
||||
name: string
|
||||
temperature: number
|
||||
additionSensors: PrinterStateAdditionSensor[]
|
||||
additionalSensors: PrinterStateAdditionalSensor[]
|
||||
icon: string
|
||||
min_temp: number
|
||||
max_temp: number
|
||||
@@ -79,7 +79,7 @@ export interface PrinterStateTemperatureObject {
|
||||
state: string | null
|
||||
avgState: string
|
||||
temperature: number
|
||||
additionSensors: PrinterStateAdditionSensor[]
|
||||
additionalSensors: PrinterStateAdditionalSensor[]
|
||||
target: number | null
|
||||
presets: number[]
|
||||
min_temp: number
|
||||
@@ -94,7 +94,7 @@ export interface PrinterStateTemperatureObject {
|
||||
chartSeries: string[]
|
||||
}
|
||||
|
||||
export interface PrinterStateAdditionSensor {
|
||||
export interface PrinterStateAdditionalSensor {
|
||||
bool: boolean
|
||||
name: string
|
||||
unit: string
|
||||
@@ -108,6 +108,32 @@ export interface PrinterStateFan {
|
||||
controllable: boolean
|
||||
}
|
||||
|
||||
export interface PrinterStateLight {
|
||||
name: string
|
||||
type: 'led' | 'neopixel' | 'dotstar' | 'pca9533' | 'pca9632'
|
||||
colorOrder: string
|
||||
chainCount: number
|
||||
initialRed: number | null
|
||||
initialGreen: number | null
|
||||
initialBlue: number | null
|
||||
initialWhite: number | null
|
||||
colorData: number[][]
|
||||
singleChannelTarget: number | null
|
||||
}
|
||||
|
||||
export interface PrinterStateLight {
|
||||
name: string
|
||||
type: 'led' | 'neopixel' | 'dotstar' | 'pca9533' | 'pca9632'
|
||||
colorOrder: string
|
||||
chainCount: number
|
||||
initialRed: number | null
|
||||
initialGreen: number | null
|
||||
initialBlue: number | null
|
||||
initialWhite: number | null
|
||||
colorData: number[][]
|
||||
singleChannelTarget: number | null
|
||||
}
|
||||
|
||||
export interface PrinterStateMiscellaneous {
|
||||
name: string
|
||||
type: string
|
||||
@@ -227,3 +253,17 @@ export interface PrinterStateToolchangeMacro {
|
||||
name: string
|
||||
active: boolean
|
||||
}
|
||||
|
||||
export interface PrinterGetterObject {
|
||||
name: string
|
||||
type: string
|
||||
state: {
|
||||
[key: string]: any
|
||||
}
|
||||
config: {
|
||||
[key: string]: string
|
||||
}
|
||||
settings: {
|
||||
[key: string]: any
|
||||
}
|
||||
}
|
||||
@@ -54,7 +54,7 @@ export const actions: ActionTree<ServerState, RootState> = {
|
||||
dispatch('socket/removeInitModule', 'server/identify', { root: true })
|
||||
},
|
||||
|
||||
checkDatabases({ dispatch, commit, rootState }, payload) {
|
||||
checkDatabases({ dispatch, commit }, payload) {
|
||||
if (payload.namespaces?.includes('mainsail')) {
|
||||
dispatch('socket/addInitModule', 'gui/init', { root: true })
|
||||
dispatch('gui/init', null, { root: true })
|
||||
@@ -159,7 +159,7 @@ export const actions: ActionTree<ServerState, RootState> = {
|
||||
commit('setKlippyConnectedTimer', null)
|
||||
},
|
||||
|
||||
checkKlippyConnected({ commit, dispatch, state }, payload) {
|
||||
checkKlippyConnected({ commit, dispatch }, payload) {
|
||||
if (!payload.klippy_connected) {
|
||||
dispatch('startKlippyConnectedInterval')
|
||||
|
||||
@@ -187,7 +187,7 @@ export const actions: ActionTree<ServerState, RootState> = {
|
||||
commit('setKlippyStateTimer', null)
|
||||
},
|
||||
|
||||
checkKlippyState({ commit, dispatch, state }, payload: { state: string; state_message: string | null }) {
|
||||
checkKlippyState({ commit, dispatch }, payload: { state: string; state_message: string | null }) {
|
||||
commit('setKlippyState', payload.state)
|
||||
commit('setKlippyMessage', payload.state_message)
|
||||
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
import { GetterTree } from 'vuex'
|
||||
import { ServerState, ServerStateNetworkInterface } from '@/store/server/types'
|
||||
import { formatConsoleMessage, formatFilesize, formatTime } from '@/plugins/helpers'
|
||||
import { formatConsoleMessage, formatFilesize } from '@/plugins/helpers'
|
||||
|
||||
// eslint-disable-next-line
|
||||
export const getters: GetterTree<ServerState, any> = {
|
||||
@@ -22,7 +22,6 @@ export const getters: GetterTree<ServerState, any> = {
|
||||
|
||||
events.unshift({
|
||||
date: date,
|
||||
formatTime: formatTime(date),
|
||||
message: message,
|
||||
formatMessage: formatConsoleMessage(message),
|
||||
type: 'response',
|
||||
@@ -44,6 +43,7 @@ export const getters: GetterTree<ServerState, any> = {
|
||||
interface HostStats {
|
||||
cpuName: string | null
|
||||
cpuDesc: string | null
|
||||
bits: string | null
|
||||
version: string | null
|
||||
pythonVersion: string | null
|
||||
os: string | null
|
||||
@@ -119,6 +119,7 @@ export const getters: GetterTree<ServerState, any> = {
|
||||
output = {
|
||||
cpuName: state.system_info?.cpu_info?.processor ?? null,
|
||||
cpuDesc: state.system_info?.cpu_info?.cpu_desc ?? null,
|
||||
bits: state.system_info?.cpu_info?.bits ?? null,
|
||||
version,
|
||||
pythonVersion,
|
||||
os: state.system_info?.distribution?.name ?? null,
|
||||
|
||||
@@ -47,7 +47,7 @@ export const actions: ActionTree<ServerHistoryState, RootState> = {
|
||||
else dispatch('socket/removeInitModule', 'server/history/init', { root: true })
|
||||
},
|
||||
|
||||
async initHistoryNotes({ commit, dispatch, state }, payload) {
|
||||
async initHistoryNotes({ commit, dispatch }, payload) {
|
||||
const job_ids = Object.keys(payload.value)
|
||||
|
||||
for (const job_id of job_ids) {
|
||||
|
||||
Loaded 100 of 108 files, more files were not shown because too many files have changed in this diff.
Show more
Reference in new issue
Block a user