Compare commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
7966270ea7 | ||
|
|
f5aee3e20d | ||
|
|
8fc275086a | ||
|
|
2752cfc975 | ||
|
|
6ce0f4f074 | ||
|
|
5abf417303 | ||
|
|
5b55727485 | ||
|
|
4a41430f40 | ||
|
|
8682dd7855 | ||
|
|
cff7b32f02 | ||
|
|
8a34656e82 | ||
|
|
30efd6496e | ||
|
|
2b4b881c55 | ||
|
|
7468f882c1 | ||
|
|
f9556e27b3 | ||
|
|
630d67efc5 | ||
|
|
a85ec9d0d7 | ||
|
|
b94840736f | ||
|
|
9c3c56bd56 | ||
|
|
23cc6b18e5 | ||
|
|
d4f1bf209d | ||
|
|
8481408029 | ||
|
|
d578c2a107 | ||
|
|
080a713f4c | ||
|
|
140d796f51 | ||
|
|
23da8818c3 | ||
|
|
34e3e69e5e | ||
|
|
ea274c6d4a | ||
|
|
a08f9ac9a5 | ||
|
|
8bbd5bdb0f | ||
|
|
74816c5c21 | ||
|
|
40e8f9cd63 | ||
|
|
4d7ffbe090 | ||
|
|
ec53b974fd | ||
|
|
a3316eb23b | ||
|
|
e6505fe55a | ||
|
|
6484a41eca | ||
|
|
0e86652d1c | ||
|
|
bb710794d2 | ||
|
|
f701dfbcf8 | ||
|
|
301e8386b8 | ||
|
|
ab777d5e04 | ||
|
|
c598d6260d | ||
|
|
370d7d4142 | ||
|
|
faf09f24f9 | ||
|
|
dd262f74b0 | ||
|
|
ad8d8efb6a | ||
|
|
df83c9d8cc | ||
|
|
6b68be1121 | ||
|
|
8a199a00b6 | ||
|
|
c18a9594e6 | ||
|
|
85ea45fbe9 | ||
|
|
44f4079dac | ||
|
|
ec1b32eaaf | ||
|
|
531b75fffd | ||
|
|
7301ae986a | ||
|
|
0f01a8f994 | ||
|
|
7ad25e3851 | ||
|
|
6a7f2f56a4 | ||
|
|
47feaef671 | ||
|
|
0e4d104d20 | ||
|
|
9665fb9a38 | ||
|
|
b0cdbb48f3 | ||
|
|
52d0ea4ec5 | ||
|
|
c42f09acc9 | ||
|
|
1a6969eeea | ||
|
|
a3a71c8f15 | ||
|
|
3e49847fc3 | ||
|
|
6703721593 | ||
|
|
f3c42954f1 | ||
|
|
1bbbc0c0a8 | ||
|
|
2f868b537d | ||
|
|
c1a50180d0 | ||
|
|
3743023514 | ||
|
|
a798d8973c | ||
|
|
328530a6a3 | ||
|
|
43dc843eca | ||
|
|
92438bf8a7 | ||
|
|
e0e90bcdaf | ||
|
|
6a2a1baaab | ||
|
|
2a924bcd27 | ||
|
|
cec3a9fe33 | ||
|
|
b3ce868dec | ||
|
|
c904b7ba71 | ||
|
|
a8bf9e9559 | ||
|
|
3b5d7f146b | ||
|
|
6b9b69501a | ||
|
|
57a53b5ac3 | ||
|
|
c65527ddf2 | ||
|
|
22ccab831b | ||
|
|
0f94e80135 | ||
|
|
d29ce0a4f0 | ||
|
|
8782c89d71 | ||
|
|
b6fe84f19d | ||
|
|
051b89662b | ||
|
|
e7eb94faa1 | ||
|
|
2b7bf2a3f4 | ||
|
|
9c4fb547b5 | ||
|
|
727fc722af | ||
|
|
1a32147d68 | ||
|
|
380f3c1b6d | ||
|
|
7ac6a723b4 | ||
|
|
712d68136b | ||
|
|
034ff81e49 | ||
|
|
c2ecc845ca | ||
|
|
e21439d061 | ||
|
|
41fa1d98ca |
No files matched your search
@@ -0,0 +1,51 @@
|
||||
<!--
|
||||
For Work In Progress Pull Requests, please use the Draft PR feature,
|
||||
see https://github.blog/2019-02-14-introducing-draft-pull-requests/ for further details.
|
||||
|
||||
For a timely review/response, please avoid force-pushing additional
|
||||
commits if your PR already received reviews or comments.
|
||||
|
||||
We use squash-merge to merge PRs, so the commit history is clean, but we use the PR title as the commit message.
|
||||
So we recommend you to use the PR title with conventional commits type prefixes. We use the following prefixes for the PR title:
|
||||
- feat: A new feature
|
||||
- fix: A bug fix
|
||||
- docs: Documentation only changes
|
||||
- style: Changes that do not affect the meaning of the code (white-space, formatting, etc)
|
||||
- refactor: A code change that neither fixes a bug nor adds a feature
|
||||
- perf: A code change that improves performance
|
||||
- test: Adding missing tests or correcting existing tests
|
||||
- chore: Changes to the build process or auxiliary tools and libraries such as documentation generation
|
||||
- locale: Changes to the translations
|
||||
|
||||
You can found more information about Conventional Commits here: https://www.conventionalcommits.org/en/v1.0.0/.
|
||||
|
||||
Before submitting a Pull Request, please ensure you've done the following:
|
||||
- 📖 Read the Mainsail Contributing Guidelines: https://github.com/mainsail-crew/mainsail/blob/HEAD/CONTRIBUTING.md#-submitting-a-pull-request-pr.
|
||||
- 📖 Read the Mainsail Code of Conduct: https://github.com/mainsail-crew/mainsail/blob/HEAD/.github/CODE_OF_CONDUCT.md.
|
||||
- 👷♀️ Create small PRs. In most cases, this will be possible.
|
||||
- ✅ Provide tests for your changes.
|
||||
- 📝 Use descriptive commit messages.
|
||||
- 📗 Update any related documentation and include any relevant screenshots.
|
||||
-->
|
||||
|
||||
## Description
|
||||
|
||||
<!--
|
||||
Please do not leave this blank
|
||||
This PR [adds/removes/fixes/replaces] the [feature/bug/etc].
|
||||
-->
|
||||
|
||||
## Related Tickets & Documents
|
||||
|
||||
<!--
|
||||
Please use this format link issue numbers: Fixes #123
|
||||
https://docs.github.com/en/free-pro-team@latest/github/managing-your-work-on-github/linking-a-pull-request-to-an-issue#linking-a-pull-request-to-an-issue-using-a-keyword
|
||||
-->
|
||||
|
||||
## Mobile & Desktop Screenshots/Recordings
|
||||
|
||||
<!-- Visual changes require screenshots -->
|
||||
|
||||
## [optional] Are there any post-deployment tasks we need to perform?
|
||||
|
||||
<!-- note: PRs with deleted sections will be marked invalid -->
|
||||
@@ -49,7 +49,7 @@ jobs:
|
||||
- name: Build and push Docker image
|
||||
uses: docker/build-push-action@v2
|
||||
with:
|
||||
platforms: linux/amd64,linux/arm64,linux/arm/v7
|
||||
platforms: linux/amd64,linux/arm64,linux/arm/v7,linux/arm/v6
|
||||
push: ${{ github.event_name != 'pull_request' }}
|
||||
tags: ${{ steps.meta.outputs.tags }}
|
||||
labels: ${{ steps.meta.outputs.labels }}
|
||||
@@ -101,12 +101,13 @@ jobs:
|
||||
run: cp ./remote/* ./dist/
|
||||
|
||||
- name: Upload to remote server
|
||||
uses: SamKirkland/FTP-Deploy-Action@4.3.3
|
||||
uses: SamKirkland/FTP-Deploy-Action@v4.3.4
|
||||
with:
|
||||
server: ${{ secrets.REMOTEHOST }}
|
||||
username: ${{ secrets.REMOTEUSER }}
|
||||
password: ${{ secrets.REMOTEPASSWORD }}
|
||||
dangerous-clean-slate: true
|
||||
exclude: .htaccess
|
||||
local-dir: ./dist/
|
||||
|
||||
update-changelog:
|
||||
|
||||
@@ -10,9 +10,11 @@ temp
|
||||
.versions
|
||||
.changelog
|
||||
.idea
|
||||
.vscode
|
||||
package-lock.json
|
||||
*.local
|
||||
.env
|
||||
.vscode
|
||||
|
||||
cypress/screenshots/
|
||||
cypress/videos/
|
||||
|
||||
+825
-214
File diff suppressed because it is too large.
Load diff
+1
-1
@@ -52,7 +52,7 @@ Before you work on a PR and submit it, please pay attention to the following gui
|
||||
1. Search the [pull requests](https://github.com/mainsail-crew/mainsail/pulls) for an open or closed PR related to your submission.
|
||||
- You don't want to duplicate existing efforts or work on something unlikely to be merged into the project.
|
||||
2. Do not submit PRs against the `master` branch. PRs need to be submitted against the `develop` branch.
|
||||
3. Follow our [Code Standards](https://docs.mainsail.xyz/development/code-standards)
|
||||
3. Follow our [Code Standards](https://docs.mainsail.xyz/overview/developement/code-standards)
|
||||
4. If there is an issue describing the problem you're fixing or a discussion of a feature you are implementing, make sure to link it in the PRs body.
|
||||
|
||||
- You can also add `fix #<id>` or `fixes #<id>` in the PR body where `<id>` is the issue id.
|
||||
|
||||
@@ -100,6 +100,19 @@ every day. To motivate him (☕🍺😜) there are several ways to support him:
|
||||
[](https://www.patreon.com/meteyou)
|
||||
[](https://ko-fi.com/mainsail)
|
||||
|
||||
## Contributing
|
||||
|
||||
Contributions to Mainsail are always welcome!
|
||||
|
||||
- 📥 Pull requests and 🌟 Stars are always welcome.
|
||||
- Read our [contributing guidelines](CONTRIBUTING.md) to get started,
|
||||
or find us on [Discord](https://discord.gg/mainsail), we will take the time to guide you.
|
||||
|
||||
Looking for a first issue to tackle?
|
||||
|
||||
- We tag issues with [](https://github.com/mainsail-crew/mainsail/issues?q=is%3Aopen+is%3Aissue+label%3A%22good+first+issue%22) when we think they are well suited for people who are new to the codebase or OSS in general.
|
||||
- [Talk to us](https://discord.gg/mainsail), we'll find something that suits your skills and learning interest.
|
||||
|
||||
## Credit, sources and inspiration
|
||||
|
||||
- [Kevin O'Connor](https://github.com/KevinOConnor) for the awesome 3D printer firmware [Klipper](https://github.com/KevinOConnor/klipper)
|
||||
|
||||
Generated
+638
-267
File diff suppressed because it is too large.
Load diff
+10
-4
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "mainsail",
|
||||
"version": "2.4.1",
|
||||
"version": "2.6.0",
|
||||
"private": true,
|
||||
"decription": "a klipper web interface",
|
||||
"author": {
|
||||
@@ -33,14 +33,17 @@
|
||||
"@codemirror/view": "^6.0.3",
|
||||
"@jaames/iro": "^5.5.2",
|
||||
"@lezer/highlight": "^1.0.0",
|
||||
"@sindarius/gcodeviewer": "^3.1.4",
|
||||
"@sindarius/gcodeviewer": "^3.2.2",
|
||||
"@types/node": "^18.0.0",
|
||||
"@types/overlayscrollbars": "^1.12.1",
|
||||
"@uiw/codemirror-theme-vscode": "^4.19.11",
|
||||
"axios": "^0.27.0",
|
||||
"codemirror": "^6.0.1",
|
||||
"core-js": "^3.16.0",
|
||||
"echarts": "^5.2.2",
|
||||
"echarts-gl": "^2.0.8",
|
||||
"hls.js": "^1.3.3",
|
||||
"jmuxer": "^2.0.5",
|
||||
"js-sha256": "^0.9.0",
|
||||
"lodash.kebabcase": "^4.1.1",
|
||||
"lodash.throttle": "^4.1.1",
|
||||
@@ -49,6 +52,7 @@
|
||||
"regenerator-runtime": "^0.13.9",
|
||||
"resize-observer-polyfill": "^1.5.1",
|
||||
"semver": "^7.3.5",
|
||||
"typed_janus_js": "^1.0.14",
|
||||
"uuid": "^9.0.0",
|
||||
"vue": "^2.7.10",
|
||||
"vue-class-component": "^7.2.6",
|
||||
@@ -67,6 +71,8 @@
|
||||
"devDependencies": {
|
||||
"@intlify/vite-plugin-vue-i18n": "^2.5.0",
|
||||
"@mdi/js": "^7.0.0",
|
||||
"@types/file-saver": "^2.0.5",
|
||||
"@types/jmuxer": "^2.0.3",
|
||||
"@types/lodash.kebabcase": "^4.1.6",
|
||||
"@types/lodash.throttle": "^4.1.6",
|
||||
"@types/semver": "^7.3.8",
|
||||
@@ -84,8 +90,8 @@
|
||||
"sass": "~1.32",
|
||||
"start-server-and-test": "^1.14.0",
|
||||
"typescript": "^4.5.5",
|
||||
"unplugin-vue-components": "^0.22.0",
|
||||
"vite": "^3.0.0",
|
||||
"unplugin-vue-components": "^0.22.12",
|
||||
"vite": "^3.2.7",
|
||||
"vite-plugin-checker": "^0.5.0",
|
||||
"vite-plugin-package-version": "^1.0.2",
|
||||
"vite-plugin-pwa": "^0.13.0",
|
||||
|
||||
+25
-13
@@ -34,13 +34,15 @@
|
||||
<router-view></router-view>
|
||||
</v-container>
|
||||
</v-main>
|
||||
<the-update-dialog></the-update-dialog>
|
||||
<the-editor></the-editor>
|
||||
<the-timelapse-rendering-snackbar></the-timelapse-rendering-snackbar>
|
||||
<the-fullscreen-upload></the-fullscreen-upload>
|
||||
<the-upload-snackbar></the-upload-snackbar>
|
||||
<the-service-worker />
|
||||
<the-update-dialog />
|
||||
<the-editor />
|
||||
<the-timelapse-rendering-snackbar />
|
||||
<the-fullscreen-upload />
|
||||
<the-upload-snackbar />
|
||||
<the-manual-probe-dialog />
|
||||
<the-bed-screws-dialog />
|
||||
<the-screws-tilt-adjust-dialog />
|
||||
</template>
|
||||
<the-select-printer-dialog v-else-if="instancesDB !== 'moonraker'"></the-select-printer-dialog>
|
||||
<the-connecting-dialog v-else></the-connecting-dialog>
|
||||
@@ -63,6 +65,9 @@ import TheFullscreenUpload from '@/components/TheFullscreenUpload.vue'
|
||||
import TheUploadSnackbar from '@/components/TheUploadSnackbar.vue'
|
||||
import TheManualProbeDialog from '@/components/dialogs/TheManualProbeDialog.vue'
|
||||
import TheBedScrewsDialog from '@/components/dialogs/TheBedScrewsDialog.vue'
|
||||
import TheScrewsTiltAdjustDialog from '@/components/dialogs/TheScrewsTiltAdjustDialog.vue'
|
||||
|
||||
Component.registerHooks(['metaInfo'])
|
||||
|
||||
@Component({
|
||||
components: {
|
||||
@@ -77,15 +82,21 @@ import TheBedScrewsDialog from '@/components/dialogs/TheBedScrewsDialog.vue'
|
||||
TheUploadSnackbar,
|
||||
TheManualProbeDialog,
|
||||
TheBedScrewsDialog,
|
||||
},
|
||||
metaInfo() {
|
||||
const title = this.$store.getters['getTitle']
|
||||
return {
|
||||
titleTemplate: () => title,
|
||||
}
|
||||
TheScrewsTiltAdjustDialog,
|
||||
},
|
||||
})
|
||||
export default class App extends Mixins(BaseMixin) {
|
||||
public metaInfo(): any {
|
||||
let title = this.$store.getters['getTitle']
|
||||
|
||||
if (this.isPrinterPowerOff) title = this.$t('App.Titles.PrinterOff')
|
||||
|
||||
return {
|
||||
title,
|
||||
titleTemplate: '%s',
|
||||
}
|
||||
}
|
||||
|
||||
get title(): string {
|
||||
return this.$store.getters['getTitle']
|
||||
}
|
||||
@@ -184,8 +195,9 @@ export default class App extends Mixins(BaseMixin) {
|
||||
|
||||
@Watch('current_file')
|
||||
current_fileChanged(newVal: string): void {
|
||||
if (newVal !== '')
|
||||
this.$socket.emit('server.files.metadata', { filename: newVal }, { action: 'files/getMetadataCurrentFile' })
|
||||
if (newVal === '') return
|
||||
|
||||
this.$socket.emit('server.files.metadata', { filename: newVal }, { action: 'files/getMetadataCurrentFile' })
|
||||
}
|
||||
|
||||
@Watch('primaryColor')
|
||||
|
||||
@@ -0,0 +1,60 @@
|
||||
<template>
|
||||
<v-dialog v-model="showDialog" persistent max-width="400" class="mx-0">
|
||||
<panel
|
||||
:title="$t('App.TheServiceWorker.TitleNeedUpdate')"
|
||||
card-class="service-worker-dialog"
|
||||
:margin-bottom="false">
|
||||
<v-card-text>
|
||||
<p>{{ $t('App.TheServiceWorker.DescriptionNeedUpdate') }}</p>
|
||||
</v-card-text>
|
||||
<v-card-actions>
|
||||
<v-spacer />
|
||||
<v-btn text color="primary" @click="update">{{ $t('App.TheServiceWorker.Update') }}</v-btn>
|
||||
</v-card-actions>
|
||||
</panel>
|
||||
</v-dialog>
|
||||
</template>
|
||||
<script lang="ts">
|
||||
import Component from 'vue-class-component'
|
||||
import { Mixins } from 'vue-property-decorator'
|
||||
import BaseMixin from '@/components/mixins/base'
|
||||
|
||||
@Component
|
||||
export default class TheServiceWorker extends Mixins(BaseMixin) {
|
||||
showDialog = false
|
||||
updateSW: ((reloadPage?: boolean | undefined) => Promise<void>) | null = null
|
||||
|
||||
onOfflineReady() {
|
||||
window.console.info('PWA is offline ready')
|
||||
}
|
||||
|
||||
onNeedRefresh() {
|
||||
window.console.warn('PWA needs to refresh')
|
||||
this.showDialog = true
|
||||
}
|
||||
|
||||
onRegistered() {
|
||||
window.console.debug('PWA is registered')
|
||||
}
|
||||
|
||||
onRegisterError(error: any) {
|
||||
window.console.error('PWA registration error:', error)
|
||||
}
|
||||
|
||||
update() {
|
||||
this.updateSW?.(true)
|
||||
this.showDialog = false
|
||||
}
|
||||
|
||||
async mounted() {
|
||||
const { registerSW } = await import('virtual:pwa-register')
|
||||
this.updateSW = registerSW({
|
||||
immediate: true,
|
||||
onOfflineReady: this.onOfflineReady,
|
||||
onNeedRefresh: this.onNeedRefresh,
|
||||
onRegistered: this.onRegistered,
|
||||
onRegisterError: this.onRegisterError,
|
||||
})
|
||||
}
|
||||
}
|
||||
</script>
|
||||
@@ -55,7 +55,7 @@
|
||||
ref="settingsScroll"
|
||||
:class="'settings-tabs ' + (isMobile ? '' : 'height500')"
|
||||
:options="{ overflowBehavior: { x: 'hidden' } }">
|
||||
<component :is="'settings-' + activeTab + '-tab'" @scrollToTop="scrollToTop"></component>
|
||||
<component :is="'settings-' + activeTab + '-tab'" @scrollToTop="scrollToTop" />
|
||||
</overlay-scrollbars>
|
||||
</v-col>
|
||||
</v-row>
|
||||
@@ -80,6 +80,7 @@ import SettingsDashboardTab from '@/components/settings/SettingsDashboardTab.vue
|
||||
import SettingsGCodeViewerTab from '@/components/settings/SettingsGCodeViewerTab.vue'
|
||||
import SettingsEditorTab from '@/components/settings/SettingsEditorTab.vue'
|
||||
import SettingsTimelapseTab from '@/components/settings/SettingsTimelapseTab.vue'
|
||||
import SettingsNavigationTab from '@/components/settings/SettingsNavigationTab.vue'
|
||||
|
||||
import Panel from '@/components/ui/Panel.vue'
|
||||
import {
|
||||
@@ -98,6 +99,7 @@ import {
|
||||
mdiVideo3d,
|
||||
mdiWebcam,
|
||||
mdiDipSwitch,
|
||||
mdiMenu,
|
||||
} from '@mdi/js'
|
||||
import SettingsMiscellaneousTab from '@/components/settings/SettingsMiscellaneousTab.vue'
|
||||
@Component({
|
||||
@@ -116,6 +118,7 @@ import SettingsMiscellaneousTab from '@/components/settings/SettingsMiscellaneou
|
||||
SettingsEditorTab,
|
||||
SettingsTimelapseTab,
|
||||
SettingsMiscellaneousTab,
|
||||
SettingsNavigationTab,
|
||||
},
|
||||
})
|
||||
export default class TheSettingsMenu extends Mixins(BaseMixin) {
|
||||
@@ -194,6 +197,11 @@ export default class TheSettingsMenu extends Mixins(BaseMixin) {
|
||||
name: 'miscellaneous',
|
||||
title: this.$t('Settings.MiscellaneousTab.Miscellaneous'),
|
||||
},
|
||||
{
|
||||
icon: mdiMenu,
|
||||
name: 'navigation',
|
||||
title: this.$t('Settings.NavigationTab.Navigation'),
|
||||
},
|
||||
]
|
||||
|
||||
if (this.moonrakerComponents.includes('timelapse')) {
|
||||
|
||||
+44
-150
@@ -1,46 +1,3 @@
|
||||
<style>
|
||||
.nav-logo {
|
||||
height: 32px;
|
||||
}
|
||||
|
||||
.small-list-item {
|
||||
height: var(--sidebar-menu-item-height);
|
||||
}
|
||||
|
||||
.no-text-decoration {
|
||||
text-decoration: none;
|
||||
background-color: transparent;
|
||||
}
|
||||
|
||||
.no-background:before {
|
||||
background-color: rgba(255, 255, 255, 0) !important;
|
||||
}
|
||||
|
||||
.no-border {
|
||||
border: 0 !important;
|
||||
}
|
||||
</style>
|
||||
<style scoped>
|
||||
.active-nav-item {
|
||||
border-right: 4px solid var(--v-primary-base);
|
||||
}
|
||||
|
||||
.menu-item-icon {
|
||||
opacity: 0.85;
|
||||
}
|
||||
|
||||
.menu-item-title {
|
||||
line-height: 30px;
|
||||
font-size: 14px;
|
||||
font-weight: 600;
|
||||
text-transform: uppercase;
|
||||
opacity: 0.85;
|
||||
}
|
||||
|
||||
.nav-scrollbar {
|
||||
height: 100%;
|
||||
}
|
||||
</style>
|
||||
<template>
|
||||
<v-navigation-drawer
|
||||
:key="navigationStyle"
|
||||
@@ -59,78 +16,27 @@
|
||||
v-if="isMobile"
|
||||
router
|
||||
to="/"
|
||||
:class="
|
||||
'sidebar-logo no-text-decoration no-background no-border ' +
|
||||
(navigationStyle === 'iconsOnly' ? 'pa-0 justify-center' : '')
|
||||
"
|
||||
:class="mobileLogoClass"
|
||||
:style="'height: ' + topbarHeight + 'px'"
|
||||
:ripple="false">
|
||||
<template v-if="sidebarLogo">
|
||||
<img :src="sidebarLogo" :style="logoCssVars" class="nav-logo" alt="Logo" />
|
||||
</template>
|
||||
<template v-else>
|
||||
<mainsail-logo
|
||||
:color="logoColor"
|
||||
:style="logoCssVars"
|
||||
class="nav-logo"
|
||||
:ripple="false"></mainsail-logo>
|
||||
<mainsail-logo :color="logoColor" :style="logoCssVars" class="nav-logo" :ripple="false" />
|
||||
</template>
|
||||
<template v-if="navigationStyle !== 'iconsOnly'">
|
||||
<span class="text-h6 font-weight-regular text-truncate">{{ printerName }}</span>
|
||||
</template>
|
||||
</v-list-item>
|
||||
<template v-if="countPrinters">
|
||||
<v-tooltip right :open-delay="500" :disabled="navigationStyle !== 'iconsOnly'">
|
||||
<template #activator="{ on, attrs }">
|
||||
<v-list-item
|
||||
router
|
||||
to="/allPrinters"
|
||||
class="small-list-item mt-1"
|
||||
v-bind="attrs"
|
||||
v-on="on">
|
||||
<v-list-item-icon class="my-3 mr-3 menu-item-icon">
|
||||
<v-icon>{{ mdiViewDashboardOutline }}</v-icon>
|
||||
</v-list-item-icon>
|
||||
<v-list-item-content>
|
||||
<v-list-item-title tile class="menu-item-title">
|
||||
{{ $t('App.Printers') }}
|
||||
</v-list-item-title>
|
||||
</v-list-item-content>
|
||||
</v-list-item>
|
||||
</template>
|
||||
<span>{{ $t('App.Printers') }}</span>
|
||||
</v-tooltip>
|
||||
<v-divider class="my-1"></v-divider>
|
||||
</template>
|
||||
<div v-for="(category, index) in naviPoints" :key="index">
|
||||
<v-tooltip right :open-delay="500" :disabled="navigationStyle !== 'iconsOnly'">
|
||||
<template #activator="{ on, attrs }">
|
||||
<v-list-item
|
||||
router
|
||||
:to="category.path"
|
||||
class="small-list-item"
|
||||
v-bind="attrs"
|
||||
v-on="on">
|
||||
<v-list-item-icon class="my-3 mr-3 menu-item-icon">
|
||||
<v-icon>{{ category.icon }}</v-icon>
|
||||
</v-list-item-icon>
|
||||
<v-list-item-content>
|
||||
<v-list-item-title tile class="menu-item-title">
|
||||
{{ $t(`Router.${category.title}`) }}
|
||||
</v-list-item-title>
|
||||
</v-list-item-content>
|
||||
</v-list-item>
|
||||
</template>
|
||||
<span>{{ $t(`Router.${category.title}`) }}</span>
|
||||
</v-tooltip>
|
||||
</div>
|
||||
<sidebar-item v-for="(category, index) in visibleNaviPoints" :key="index" :item="category" />
|
||||
</v-list-item-group>
|
||||
</v-list>
|
||||
</overlay-scrollbars>
|
||||
<template #append>
|
||||
<v-list-item class="small-list-item mb-2">
|
||||
<v-list-item-icon class="menu-item-icon">
|
||||
<about-dialog></about-dialog>
|
||||
<about-dialog />
|
||||
</v-list-item-icon>
|
||||
</v-list-item>
|
||||
</template>
|
||||
@@ -139,32 +45,27 @@
|
||||
|
||||
<script lang="ts">
|
||||
import Component from 'vue-class-component'
|
||||
import routes, { AppRoute } from '@/routes'
|
||||
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 AboutDialog from '@/components/dialogs/AboutDialog.vue'
|
||||
import { navigationWidth, topbarHeight } from '@/store/variables'
|
||||
import MainsailLogo from '@/components/ui/MainsailLogo.vue'
|
||||
import { mdiViewDashboardOutline } from '@mdi/js'
|
||||
import SidebarItem from '@/components/ui/SidebarItem.vue'
|
||||
import NavigationMixin from '@/components/mixins/navigation'
|
||||
|
||||
@Component({
|
||||
components: {
|
||||
SidebarItem,
|
||||
TheSelectPrinterDialog,
|
||||
AboutDialog,
|
||||
MainsailLogo,
|
||||
},
|
||||
})
|
||||
export default class TheSidebar extends Mixins(BaseMixin) {
|
||||
export default class TheSidebar extends Mixins(NavigationMixin, BaseMixin) {
|
||||
navigationWidth = navigationWidth
|
||||
topbarHeight = topbarHeight
|
||||
|
||||
/**
|
||||
* Icons
|
||||
*/
|
||||
mdiViewDashboardOutline = mdiViewDashboardOutline
|
||||
|
||||
get naviDrawer(): boolean {
|
||||
return this.$store.state.naviDrawer
|
||||
}
|
||||
@@ -181,45 +82,12 @@ export default class TheSidebar extends Mixins(BaseMixin) {
|
||||
return this.$store.getters['files/getSidebarBackground']
|
||||
}
|
||||
|
||||
get naviPoints(): AppRoute[] {
|
||||
return routes.filter((element) => {
|
||||
return element.showInNavi && this.showInNavi(element)
|
||||
})
|
||||
}
|
||||
|
||||
get klippy_state(): string {
|
||||
return this.$store.state.server.klippy_state
|
||||
}
|
||||
|
||||
get boolNaviWebcam(): boolean {
|
||||
return this.$store.state.gui.uiSettings.boolWebcamNavi
|
||||
}
|
||||
|
||||
get moonrakerComponents(): string[] {
|
||||
return this.$store.state.server.components
|
||||
}
|
||||
|
||||
get registeredDirectories(): string[] {
|
||||
return this.$store.state.server.registered_directories
|
||||
}
|
||||
|
||||
get klipperConfigfileSettings(): PrinterStateKlipperConfig[] {
|
||||
return this.$store.state.printer.configfile?.settings ?? {}
|
||||
}
|
||||
|
||||
get currentPage(): string {
|
||||
return this.$route.fullPath
|
||||
}
|
||||
|
||||
get countPrinters() {
|
||||
return this.$store.getters['farm/countPrinters']
|
||||
}
|
||||
|
||||
get boolNaviTemp(): boolean {
|
||||
if (!this.isMobile && this.$vuetify.breakpoint.mdAndDown) {
|
||||
return true
|
||||
}
|
||||
return false
|
||||
return !this.isMobile && this.$vuetify.breakpoint.mdAndDown
|
||||
}
|
||||
|
||||
get sidebarCssVars(): any {
|
||||
@@ -255,16 +123,15 @@ export default class TheSidebar extends Mixins(BaseMixin) {
|
||||
return {}
|
||||
}
|
||||
|
||||
showInNavi(route: AppRoute): boolean {
|
||||
if (['shutdown', 'error', 'disconnected'].includes(this.klippy_state) && !route.alwaysShow) return false
|
||||
else if (route.title === 'Webcam' && !this.boolNaviWebcam) return false
|
||||
else if (route.moonrakerComponent && !this.moonrakerComponents.includes(route.moonrakerComponent)) return false
|
||||
else if (route.registeredDirectory && !this.registeredDirectories.includes(route.registeredDirectory))
|
||||
return false
|
||||
else if (route.klipperComponent && !(route.klipperComponent in this.klipperConfigfileSettings)) return false
|
||||
else if (route.klipperIsConnected && !this.klippyIsConnected) return false
|
||||
get mobileLogoClass() {
|
||||
const output = ['sidebar-logo', 'no-text-decoration', 'no-background', 'no-border']
|
||||
|
||||
return true
|
||||
if (this.navigationStyle === 'iconsOnly') {
|
||||
output.push('pa-0')
|
||||
output.push('justify-center')
|
||||
}
|
||||
|
||||
return output
|
||||
}
|
||||
|
||||
mounted() {
|
||||
@@ -272,3 +139,30 @@ export default class TheSidebar extends Mixins(BaseMixin) {
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
||||
<style scoped>
|
||||
.no-text-decoration {
|
||||
text-decoration: none;
|
||||
background-color: transparent;
|
||||
}
|
||||
|
||||
.no-background:before {
|
||||
background-color: rgba(255, 255, 255, 0) !important;
|
||||
}
|
||||
|
||||
.no-border {
|
||||
border: 0 !important;
|
||||
}
|
||||
|
||||
.nav-logo {
|
||||
height: 32px;
|
||||
}
|
||||
|
||||
.menu-item-icon {
|
||||
opacity: 0.85;
|
||||
}
|
||||
|
||||
.nav-scrollbar {
|
||||
height: 100%;
|
||||
}
|
||||
</style>
|
||||
@@ -30,7 +30,7 @@
|
||||
style="display: none"
|
||||
@change="uploadAndStart" />
|
||||
<v-btn
|
||||
v-if="klippyIsConnected && saveConfigPending"
|
||||
v-if="showSaveConfigButton"
|
||||
tile
|
||||
:icon="$vuetify.breakpoint.smAndDown"
|
||||
:text="$vuetify.breakpoint.mdAndUp"
|
||||
@@ -196,6 +196,20 @@ export default class TheTopbar extends Mixins(BaseMixin) {
|
||||
return this.$store.state.printer.configfile?.save_config_pending ?? false
|
||||
}
|
||||
|
||||
get hideSaveConfigForBedMash() {
|
||||
return this.$store.state.gui.uiSettings.hideSaveConfigForBedMash ?? false
|
||||
}
|
||||
|
||||
get showSaveConfigButton() {
|
||||
if (!this.klipperReadyForGui) return false
|
||||
if (!this.hideSaveConfigForBedMash) return this.saveConfigPending
|
||||
|
||||
let pendingKeys = Object.keys(this.$store.state.printer.configfile?.save_config_pending_items ?? {})
|
||||
pendingKeys = pendingKeys.filter((key: string) => !key.startsWith('bed_mesh '))
|
||||
|
||||
return pendingKeys.length > 0
|
||||
}
|
||||
|
||||
get printerName(): string {
|
||||
if (this.$store.state.gui.general.printername.length) return this.$store.state.gui.general.printername
|
||||
|
||||
|
||||
+2
-2
@@ -5,7 +5,7 @@
|
||||
:option="chartOptions"
|
||||
:autoresize="true"
|
||||
:init-options="{ renderer: 'svg' }"
|
||||
style="height: 250px; width: 100%"></e-chart>
|
||||
style="height: 200px; width: 100%"></e-chart>
|
||||
</template>
|
||||
|
||||
<script lang="ts">
|
||||
@@ -19,7 +19,7 @@ import { ServerHistoryStateAllPrintStatusEntry } from '@/store/server/history/ty
|
||||
@Component({
|
||||
components: {},
|
||||
})
|
||||
export default class HistoryAllPrintStatus extends Mixins(BaseMixin) {
|
||||
export default class HistoryAllPrintStatusChart extends Mixins(BaseMixin) {
|
||||
declare $refs: {
|
||||
historyAllPrintStatus: any
|
||||
}
|
||||
@@ -0,0 +1,47 @@
|
||||
<template>
|
||||
<v-simple-table>
|
||||
<tbody>
|
||||
<tr v-for="status in printStatusArray" :key="status.name">
|
||||
<td>{{ status.displayName }}</td>
|
||||
<td class="text-right">{{ status.value }}</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</v-simple-table>
|
||||
</template>
|
||||
|
||||
<script lang="ts">
|
||||
import Component from 'vue-class-component'
|
||||
import { Mixins } from 'vue-property-decorator'
|
||||
import BaseMixin from '@/components/mixins/base'
|
||||
import { ServerHistoryStateAllPrintStatusEntry } from '@/store/server/history/types'
|
||||
|
||||
@Component({
|
||||
components: {},
|
||||
})
|
||||
export default class HistoryAllPrintStatusTable extends Mixins(BaseMixin) {
|
||||
get selectedJobs() {
|
||||
return this.$store.state.gui.view.history.selectedJobs ?? []
|
||||
}
|
||||
|
||||
get allPrintStatusArray() {
|
||||
return this.$store.getters['server/history/getAllPrintStatusArrayAll']
|
||||
}
|
||||
|
||||
get selectedPrintStatusArray() {
|
||||
return this.$store.getters['server/history/getSelectedPrintStatusArray']
|
||||
}
|
||||
|
||||
get printStatusArray() {
|
||||
const output: ServerHistoryStateAllPrintStatusEntry[] = []
|
||||
const orgArray = this.selectedJobs.length ? this.selectedPrintStatusArray : this.allPrintStatusArray
|
||||
|
||||
orgArray.forEach((status: ServerHistoryStateAllPrintStatusEntry) => {
|
||||
const tmp = { ...status }
|
||||
tmp.name = status.displayName
|
||||
output.push(tmp)
|
||||
})
|
||||
|
||||
return output
|
||||
}
|
||||
}
|
||||
</script>
|
||||
@@ -5,7 +5,8 @@
|
||||
:option="chartOptions"
|
||||
:init-options="{ renderer: 'svg' }"
|
||||
:autoresize="true"
|
||||
style="height: 250px; width: 100%"></e-chart>
|
||||
:style="tempchartStyle"
|
||||
class="tempchart" />
|
||||
</template>
|
||||
|
||||
<script lang="ts">
|
||||
@@ -230,6 +231,16 @@ export default class TempChart extends Mixins(BaseMixin) {
|
||||
return this.hours12Format ? '{hh}:{mm}' : '{HH}:{mm}'
|
||||
}
|
||||
|
||||
get tempchartHeight() {
|
||||
return this.$store.state.gui.uiSettings.tempchartHeight ?? 250
|
||||
}
|
||||
|
||||
get tempchartStyle() {
|
||||
return {
|
||||
height: this.tempchartHeight + 'px',
|
||||
}
|
||||
}
|
||||
|
||||
mounted() {
|
||||
this.initChart()
|
||||
this.chartOptions.xAxis.axisLabel.formatter = this.timeFormat
|
||||
@@ -396,3 +407,9 @@ export default class TempChart extends Mixins(BaseMixin) {
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
||||
<style scoped>
|
||||
.tempchart {
|
||||
width: 100%;
|
||||
}
|
||||
</style>
|
||||
@@ -83,11 +83,17 @@ export default class TheBedScrewsDialog extends Mixins(BaseMixin, ControlMixin)
|
||||
mdiCloseThick = mdiCloseThick
|
||||
|
||||
get showDialog() {
|
||||
if (!this.boolBedScrewsDialog) return false
|
||||
|
||||
const is_active = this.$store.state.printer.bed_screws?.is_active ?? false
|
||||
|
||||
return is_active && this.homedAxes.includes('xyz')
|
||||
}
|
||||
|
||||
get boolBedScrewsDialog() {
|
||||
return this.$store.state.gui.uiSettings.boolBedScrewsDialog ?? true
|
||||
}
|
||||
|
||||
get config() {
|
||||
return this.$store.state.printer.configfile?.settings?.bed_screws ?? {}
|
||||
}
|
||||
|
||||
@@ -120,9 +120,15 @@ export default class TheManualProbeDialog extends Mixins(BaseMixin) {
|
||||
mdiCloseThick = mdiCloseThick
|
||||
|
||||
get showDialog() {
|
||||
if (!this.boolManualProbeDialog) return false
|
||||
|
||||
return this.$store.state.printer.manual_probe?.is_active ?? false
|
||||
}
|
||||
|
||||
get boolManualProbeDialog() {
|
||||
return this.$store.state.gui.uiSettings.boolManualProbeDialog ?? true
|
||||
}
|
||||
|
||||
get offsetsZ() {
|
||||
const offsets = [1, 0.1, 0.05, 0.01, 0.005]
|
||||
|
||||
|
||||
@@ -0,0 +1,92 @@
|
||||
<template>
|
||||
<v-dialog :value="showDialog" width="400" persistent :fullscreen="isMobile">
|
||||
<panel
|
||||
:title="$t('ScrewsTiltAdjust.Headline')"
|
||||
:icon="mdiArrowCollapseDown"
|
||||
card-class="manual_probe-dialog"
|
||||
:margin-bottom="false"
|
||||
style="overflow: hidden"
|
||||
:height="isMobile ? 0 : 548">
|
||||
<template #buttons>
|
||||
<v-btn icon tile @click="clearScrewsTiltAdjust">
|
||||
<v-icon>{{ mdiCloseThick }}</v-icon>
|
||||
</v-btn>
|
||||
</template>
|
||||
<v-card-text v-if="error">
|
||||
<v-row>
|
||||
<v-col>
|
||||
<v-alert border="left" text type="error">{{ $t('ScrewsTiltAdjust.ErrorText') }}</v-alert>
|
||||
</v-col>
|
||||
</v-row>
|
||||
</v-card-text>
|
||||
<v-card-text v-if="Object.keys(results).length">
|
||||
<template v-for="(result, name, index) of results">
|
||||
<v-divider v-if="index" :key="`result-divider-${name}`" class="my-1" />
|
||||
<the-screws-tilt-adjust-dialog-entry
|
||||
:key="`result-${name}-${name}`"
|
||||
:name="name.toString()"
|
||||
:result="result" />
|
||||
</template>
|
||||
</v-card-text>
|
||||
<v-card-actions>
|
||||
<v-spacer />
|
||||
<v-btn text @click="retryScrewsTiltAdjust">
|
||||
{{ $t('ScrewsTiltAdjust.Retry') }}
|
||||
</v-btn>
|
||||
<v-btn color="primary" text @click="clearScrewsTiltAdjust">
|
||||
{{ $t('ScrewsTiltAdjust.Accept') }}
|
||||
</v-btn>
|
||||
</v-card-actions>
|
||||
</panel>
|
||||
</v-dialog>
|
||||
</template>
|
||||
|
||||
<script lang="ts">
|
||||
import { Component, Mixins } from 'vue-property-decorator'
|
||||
import BaseMixin from '@/components/mixins/base'
|
||||
import Panel from '@/components/ui/Panel.vue'
|
||||
import Responsive from '@/components/ui/Responsive.vue'
|
||||
import SettingsRow from '@/components/settings/SettingsRow.vue'
|
||||
import { mdiArrowCollapseDown, mdiCloseThick } from '@mdi/js'
|
||||
import ControlMixin from '@/components/mixins/control'
|
||||
import TheScrewsTiltAdjustDialogEntry from '@/components/dialogs/TheScrewsTiltAdjustDialogEntry.vue'
|
||||
@Component({
|
||||
components: { TheScrewsTiltAdjustDialogEntry, Panel, Responsive, SettingsRow },
|
||||
})
|
||||
export default class TheScrewsTiltAdjustDialog extends Mixins(BaseMixin, ControlMixin) {
|
||||
mdiArrowCollapseDown = mdiArrowCollapseDown
|
||||
mdiCloseThick = mdiCloseThick
|
||||
|
||||
get state() {
|
||||
return this.$store.state.printer.screws_tilt_adjust ?? {}
|
||||
}
|
||||
|
||||
get error() {
|
||||
return this.$store.state.printer.screws_tilt_adjust?.error ?? false
|
||||
}
|
||||
|
||||
get results() {
|
||||
return this.$store.state.printer.screws_tilt_adjust?.results ?? {}
|
||||
}
|
||||
|
||||
get showDialog() {
|
||||
if (!this.boolScrewsTiltAdjustDialog) return false
|
||||
|
||||
return this.error || Object.keys(this.results).length
|
||||
}
|
||||
|
||||
get boolScrewsTiltAdjustDialog() {
|
||||
return this.$store.state.gui.uiSettings.boolScrewsTiltAdjustDialog ?? true
|
||||
}
|
||||
|
||||
clearScrewsTiltAdjust() {
|
||||
this.$store.dispatch('printer/clearScrewsTiltAdjust')
|
||||
}
|
||||
|
||||
async retryScrewsTiltAdjust() {
|
||||
await this.$store.dispatch('printer/clearScrewsTiltAdjust')
|
||||
|
||||
this.doSend('SCREWS_TILT_CALCULATE')
|
||||
}
|
||||
}
|
||||
</script>
|
||||
@@ -0,0 +1,65 @@
|
||||
<template>
|
||||
<settings-row :title="outputName" :sub-title="subTitle">
|
||||
<v-chip v-if="!(is_base ?? false)" label small>
|
||||
<v-icon v-if="sign === 'CCW'" small left>{{ mdiRotateLeft }}</v-icon>
|
||||
<v-icon v-if="sign === 'CW'" small left>{{ mdiRotateRight }}</v-icon>
|
||||
{{ adjust }}
|
||||
</v-chip>
|
||||
<v-chip v-else label small>{{ $t('ScrewsTiltAdjust.Base') }}</v-chip>
|
||||
</settings-row>
|
||||
</template>
|
||||
<script lang="ts">
|
||||
import { Component, Mixins, Prop } from 'vue-property-decorator'
|
||||
import BaseMixin from '@/components/mixins/base'
|
||||
import Panel from '@/components/ui/Panel.vue'
|
||||
import Responsive from '@/components/ui/Responsive.vue'
|
||||
import SettingsRow from '@/components/settings/SettingsRow.vue'
|
||||
import { mdiRotateLeft, mdiRotateRight, mdiCloseThick } from '@mdi/js'
|
||||
import ControlMixin from '@/components/mixins/control'
|
||||
interface ScrewsTiltAdjustResult {
|
||||
z: number
|
||||
sign?: string
|
||||
adjust?: string
|
||||
is_base: boolean
|
||||
}
|
||||
@Component({
|
||||
components: { Panel, Responsive, SettingsRow },
|
||||
})
|
||||
export default class TheScrewsTiltAdjustDialogEntry extends Mixins(BaseMixin, ControlMixin) {
|
||||
mdiRotateLeft = mdiRotateLeft
|
||||
mdiCloseThick = mdiCloseThick
|
||||
mdiRotateRight = mdiRotateRight
|
||||
@Prop({ required: true }) declare readonly name: string
|
||||
@Prop({ required: true }) declare readonly result: ScrewsTiltAdjustResult
|
||||
get settings() {
|
||||
return this.$store.state.printer.configfile?.settings?.screws_tilt_adjust ?? {}
|
||||
}
|
||||
get outputName() {
|
||||
return this.settings[this.name + '_name'] ?? 'Unknown'
|
||||
}
|
||||
get coordinates() {
|
||||
return this.settings[this.name] ?? [0, 0]
|
||||
}
|
||||
get x() {
|
||||
return this.coordinates[0] ?? 0
|
||||
}
|
||||
get y() {
|
||||
return this.coordinates[1] ?? 0
|
||||
}
|
||||
get z() {
|
||||
return this.result.z.toFixed(3)
|
||||
}
|
||||
get subTitle() {
|
||||
return `(X: ${this.x}, Y: ${this.y}, Z: ${this.z})`
|
||||
}
|
||||
get sign() {
|
||||
return this.result.sign ?? ''
|
||||
}
|
||||
get adjust() {
|
||||
return this.result.adjust ?? '00:00'
|
||||
}
|
||||
get is_base() {
|
||||
return this.result.is_base ?? false
|
||||
}
|
||||
}
|
||||
</script>
|
||||
@@ -0,0 +1,82 @@
|
||||
<template>
|
||||
<div ref="view" class="codeview" @mouseup="mouseUp" @keydown="keyPress"></div>
|
||||
</template>
|
||||
|
||||
<script lang="ts">
|
||||
import { Component, PropSync, Prop, Vue, Watch } from 'vue-property-decorator'
|
||||
import { EditorView, basicSetup } from 'codemirror'
|
||||
import { EditorState } from '@codemirror/state'
|
||||
|
||||
@Component({})
|
||||
export default class CodeStream extends Vue {
|
||||
@PropSync('currentline') currentLineNumber!: number
|
||||
@Prop({ type: String, default: '' }) declare document: string
|
||||
@Prop({ type: Boolean, default: false }) declare isSimulating: boolean
|
||||
@Prop({ type: Boolean, default: false }) declare shown: boolean
|
||||
|
||||
view: EditorView | undefined = undefined
|
||||
|
||||
private mounted() {
|
||||
this.view = new EditorView({
|
||||
doc: this.document,
|
||||
extensions: [basicSetup, EditorState.readOnly.of(true)],
|
||||
parent: this.$refs['view'] as HTMLElement,
|
||||
})
|
||||
}
|
||||
|
||||
mouseUp() {
|
||||
if (this.view) {
|
||||
let line = this.view.state.doc.lineAt(this.view.state.selection.ranges[0].from)
|
||||
this.$emit('update:currentline', line.to)
|
||||
this.view.contentDOM.blur()
|
||||
this.$emit('got-focus')
|
||||
}
|
||||
}
|
||||
|
||||
keyPress() {
|
||||
if (this.view) {
|
||||
let line = this.view.state.doc.lineAt(this.view.state.selection.ranges[0].from)
|
||||
this.$emit('update:currentline', line.to)
|
||||
this.$emit('got-focus')
|
||||
}
|
||||
}
|
||||
|
||||
@Watch('document')
|
||||
documentUpdated() {
|
||||
if (this.view && this.shown) {
|
||||
this.view.dispatch({
|
||||
changes: {
|
||||
from: 0,
|
||||
to: this.view.state.doc.length,
|
||||
insert: this.document,
|
||||
},
|
||||
})
|
||||
}
|
||||
}
|
||||
|
||||
@Watch('currentLineNumber')
|
||||
currentlineUpdated(to: number) {
|
||||
if (this.view && this.shown) {
|
||||
let line = this.view.state.doc.lineAt(to)
|
||||
this.view.dispatch({
|
||||
selection: {
|
||||
anchor: line.from,
|
||||
head: line.from,
|
||||
},
|
||||
scrollIntoView: true,
|
||||
})
|
||||
}
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
||||
<style scoped>
|
||||
/deep/ .cm-activeLine {
|
||||
background-color: #333 !important;
|
||||
}
|
||||
|
||||
.codeview {
|
||||
height: 100%;
|
||||
overflow: auto;
|
||||
}
|
||||
</style>
|
||||
@@ -19,9 +19,19 @@
|
||||
</template>
|
||||
<v-card-text>
|
||||
<v-row :class="showScrubber ? 'withScrubber' : ''">
|
||||
<v-col>
|
||||
<v-col :cols="showGCode ? 8 : 12">
|
||||
<div ref="viewerCanvasContainer"></div>
|
||||
</v-col>
|
||||
<v-col v-show="showGCode" cols="4">
|
||||
<div class="viewer">
|
||||
<CodeStream
|
||||
ref="gcodestream"
|
||||
:shown="showGCode"
|
||||
:currentline.sync="scrubPosition"
|
||||
:document="fileData"
|
||||
:is-simulating="!printerIsPrinting" />
|
||||
</div>
|
||||
</v-col>
|
||||
</v-row>
|
||||
<v-row v-show="showScrubber" class="scrubber">
|
||||
<v-col class="pt-0">
|
||||
@@ -123,6 +133,14 @@
|
||||
hide-details
|
||||
:label="$t('GCodeViewer.ShowTravelMoves')"></v-checkbox>
|
||||
</v-list-item>
|
||||
<v-list-item class="minHeight36">
|
||||
<v-checkbox
|
||||
v-model="showGCode"
|
||||
class="mt-0"
|
||||
hide-details
|
||||
:label="$t('GCodeViewer.ShowGCode')"></v-checkbox>
|
||||
</v-list-item>
|
||||
|
||||
<v-list-item
|
||||
v-if="loadedFile === sdCardFilePath && printing_objects.length"
|
||||
class="minHeight36">
|
||||
@@ -168,6 +186,13 @@
|
||||
hide-details
|
||||
:label="$t('GCodeViewer.SpecularLighting')"></v-checkbox>
|
||||
</v-list-item>
|
||||
<v-list-item class="minHeight36">
|
||||
<v-checkbox
|
||||
v-model="cncMode"
|
||||
class="mt-0"
|
||||
hide-details
|
||||
:label="$t('GCodeViewer.CNCMode')"></v-checkbox>
|
||||
</v-list-item>
|
||||
</v-list>
|
||||
</v-menu>
|
||||
</v-col>
|
||||
@@ -255,6 +280,7 @@ import GCodeViewer from '@sindarius/gcodeviewer'
|
||||
import axios from 'axios'
|
||||
import { formatFilesize } from '@/plugins/helpers'
|
||||
import Panel from '@/components/ui/Panel.vue'
|
||||
import CodeStream from '@/components/gcodeviewer/CodeStream.vue'
|
||||
import {
|
||||
mdiCameraRetake,
|
||||
mdiCog,
|
||||
@@ -286,7 +312,7 @@ interface downloadSnackbar {
|
||||
|
||||
let viewer: any = null
|
||||
@Component({
|
||||
components: { Panel },
|
||||
components: { Panel, CodeStream },
|
||||
})
|
||||
export default class Viewer extends Mixins(BaseMixin) {
|
||||
/**
|
||||
@@ -342,6 +368,8 @@ export default class Viewer extends Mixins(BaseMixin) {
|
||||
name: '',
|
||||
}
|
||||
|
||||
private fileData: string = ''
|
||||
|
||||
@Prop({ type: String, default: '', required: false }) declare filename: string
|
||||
@Ref('fileInput') declare fileInput: HTMLInputElement
|
||||
@Ref('viewerCanvasContainer') declare viewerCanvasContainer: HTMLElement
|
||||
@@ -366,6 +394,9 @@ export default class Viewer extends Mixins(BaseMixin) {
|
||||
await this.init()
|
||||
|
||||
if (this.loadedFile !== null) this.scrubFileSize = viewer.fileSize
|
||||
if (viewer) {
|
||||
this.fileData = viewer.fileData
|
||||
}
|
||||
}
|
||||
|
||||
beforeDestroy() {
|
||||
@@ -405,10 +436,23 @@ export default class Viewer extends Mixins(BaseMixin) {
|
||||
return this.$store.state.printer.print_stats?.filename ?? ''
|
||||
}
|
||||
|
||||
get currentPosition() {
|
||||
get livePosition() {
|
||||
return this.$store.state.printer.motion_report?.live_position ?? [0, 0, 0, 0]
|
||||
}
|
||||
|
||||
get gcodeOffset() {
|
||||
return this.$store.state.printer?.gcode_move?.homing_origin ?? [0, 0, 0]
|
||||
}
|
||||
|
||||
get currentPosition() {
|
||||
return [
|
||||
this.livePosition[0] - this.gcodeOffset[0],
|
||||
this.livePosition[1] - this.gcodeOffset[1],
|
||||
this.livePosition[2] - this.gcodeOffset[2],
|
||||
this.livePosition[3],
|
||||
]
|
||||
}
|
||||
|
||||
get showTrackingButton() {
|
||||
return this.printerIsPrinting && this.sdCardFilePath === this.loadedFile
|
||||
}
|
||||
@@ -484,13 +528,14 @@ export default class Viewer extends Mixins(BaseMixin) {
|
||||
}
|
||||
|
||||
viewer.gcodeProcessor.useHighQualityExtrusion(this.hdRendering)
|
||||
viewer.gcodeProcessor.updateForceWireMode(this.forceLineRendering)
|
||||
viewer.gcodeProcessor.updateForceWireMode(this.forceLineRendering || this.cncMode)
|
||||
viewer.gcodeProcessor.setAlpha(this.transparency)
|
||||
viewer.gcodeProcessor.setVoxelMode(this.voxelMode)
|
||||
viewer.gcodeProcessor.voxelWidth = this.voxelWidth
|
||||
viewer.gcodeProcessor.voxelHeight = this.voxelHeight
|
||||
viewer.gcodeProcessor.useSpecularColor(this.specularLighting)
|
||||
viewer.gcodeProcessor.setLiveTracking(false)
|
||||
viewer.gcodeProcessor.g1AsExtrusion = this.cncMode
|
||||
viewer.buildObjects.objectCallback = this.objectCallback
|
||||
|
||||
this.loadToolColors(this.extruderColors)
|
||||
@@ -574,6 +619,7 @@ export default class Viewer extends Mixins(BaseMixin) {
|
||||
this.fileSize = blob.length
|
||||
// Do something with result
|
||||
await viewer.processFile(blob)
|
||||
this.fileData = viewer.fileData
|
||||
}
|
||||
this.finishLoad()
|
||||
})
|
||||
@@ -621,6 +667,7 @@ export default class Viewer extends Mixins(BaseMixin) {
|
||||
|
||||
viewer.updateRenderQuality(this.renderQuality.value)
|
||||
await viewer.processFile(text)
|
||||
this.fileData = viewer.fileData
|
||||
this.loadingPercent = 100
|
||||
this.finishLoad()
|
||||
this.scrubFileSize = viewer.fileSize
|
||||
@@ -652,6 +699,7 @@ export default class Viewer extends Mixins(BaseMixin) {
|
||||
this.loading = true
|
||||
this.loadingPercent = 0
|
||||
await viewer.reload()
|
||||
this.fileData = viewer.fileData
|
||||
this.loadingPercent = 100
|
||||
this.finishLoad()
|
||||
}
|
||||
@@ -694,6 +742,7 @@ export default class Viewer extends Mixins(BaseMixin) {
|
||||
const offset = 350
|
||||
if (newVal > 0 && this.printerIsPrinting && this.tracking && newVal > offset) {
|
||||
viewer.gcodeProcessor.updateFilePosition(newVal - offset)
|
||||
this.scrubPosition = newVal - offset
|
||||
} else {
|
||||
viewer.gcodeProcessor.updateFilePosition(viewer.fileSize)
|
||||
}
|
||||
@@ -739,6 +788,18 @@ export default class Viewer extends Mixins(BaseMixin) {
|
||||
this.$store.dispatch('gui/saveSetting', { name: 'gcodeViewer.showTravelMoves', value: newVal })
|
||||
}
|
||||
|
||||
get showGCode(): boolean {
|
||||
return this.$store.state.gui.gcodeViewer.showGCode ?? false
|
||||
}
|
||||
|
||||
set showGCode(newVal: boolean) {
|
||||
this.$store.dispatch('gui/saveSetting', { name: 'gcodeViewer.showGCode', value: newVal })
|
||||
if (newVal && viewer) {
|
||||
this.fileData = viewer.fileData
|
||||
}
|
||||
this.handleResize()
|
||||
}
|
||||
|
||||
@Watch('showTravelMoves')
|
||||
showTravelMovesChanged(newVal: boolean) {
|
||||
viewer?.toggleTravels(newVal)
|
||||
@@ -784,7 +845,7 @@ export default class Viewer extends Mixins(BaseMixin) {
|
||||
@Watch('forceLineRendering')
|
||||
async forceLineRenderingChanged(newVal: boolean) {
|
||||
if (viewer) {
|
||||
viewer.gcodeProcessor.updateForceWireMode(newVal)
|
||||
viewer.gcodeProcessor.updateForceWireMode(newVal || this.cncMode)
|
||||
await this.reloadViewer()
|
||||
}
|
||||
}
|
||||
@@ -855,6 +916,17 @@ export default class Viewer extends Mixins(BaseMixin) {
|
||||
}
|
||||
}
|
||||
|
||||
get cncMode() {
|
||||
return this.$store.state.gui.gcodeViewer.cncMode
|
||||
}
|
||||
|
||||
set cncMode(newVal) {
|
||||
this.$store.dispatch('gui/saveSetting', { name: 'gcodeViewer.cncMode', value: newVal })
|
||||
viewer.gcodeProcessor.g1AsExtrusion = newVal
|
||||
viewer.gcodeProcessor.updateForceWireMode(this.forceLineRendering || newVal)
|
||||
this.reloadViewer()
|
||||
}
|
||||
|
||||
get extruderColors() {
|
||||
return this.$store.state.gui.gcodeViewer?.extruderColors ?? false
|
||||
}
|
||||
@@ -1044,6 +1116,7 @@ export default class Viewer extends Mixins(BaseMixin) {
|
||||
this.scrubInterval = setInterval(() => {
|
||||
this.scrubPosition += 100 * this.scrubSpeed
|
||||
viewer.gcodeProcessor.updateFilePosition(this.scrubPosition)
|
||||
viewer.simulateToolPosition()
|
||||
if (this.tracking || this.scrubPosition >= this.scrubFileSize) {
|
||||
this.scrubPlaying = false
|
||||
}
|
||||
@@ -1062,7 +1135,10 @@ export default class Viewer extends Mixins(BaseMixin) {
|
||||
@Debounce(200)
|
||||
@Watch('scrubPosition')
|
||||
updateScrubPosition(to: number): void {
|
||||
if (!this.tracking) viewer.gcodeProcessor.updateFilePosition(to)
|
||||
if (!this.tracking) {
|
||||
viewer.gcodeProcessor.updateFilePosition(to)
|
||||
viewer.simulateToolPosition()
|
||||
}
|
||||
}
|
||||
|
||||
fastForward(): void {
|
||||
|
||||
@@ -12,13 +12,14 @@ import BaseMixin from '../mixins/base'
|
||||
import { basicSetup } from 'codemirror'
|
||||
import { EditorView, keymap } from '@codemirror/view'
|
||||
import { EditorState } from '@codemirror/state'
|
||||
import { mainsailTheme } from '@/plugins/codemirrorTheme'
|
||||
import { vscodeDark } from '@uiw/codemirror-theme-vscode'
|
||||
import { StreamLanguage } from '@codemirror/language'
|
||||
import { klipper_config } from '@/plugins/StreamParserKlipperConfig'
|
||||
import { gcode } from '@/plugins/StreamParserGcode'
|
||||
import { indentWithTab } from '@codemirror/commands'
|
||||
import { json } from '@codemirror/lang-json'
|
||||
import { css } from '@codemirror/lang-css'
|
||||
import { indentUnit } from '@codemirror/language'
|
||||
|
||||
@Component
|
||||
export default class Codemirror extends Mixins(BaseMixin) {
|
||||
@@ -81,8 +82,10 @@ export default class Codemirror extends Mixins(BaseMixin) {
|
||||
|
||||
get cmExtensions() {
|
||||
const extensions = [
|
||||
EditorView.theme({}, { dark: true }),
|
||||
basicSetup,
|
||||
mainsailTheme,
|
||||
vscodeDark,
|
||||
indentUnit.of(' '.repeat(this.tabSize)),
|
||||
keymap.of([indentWithTab]),
|
||||
EditorView.updateListener.of((update) => {
|
||||
this.content = update.state?.doc.toString()
|
||||
@@ -103,5 +106,9 @@ export default class Codemirror extends Mixins(BaseMixin) {
|
||||
visibilityChanged(isVisible: boolean) {
|
||||
if (isVisible) this.cminstance?.focus()
|
||||
}
|
||||
|
||||
get tabSize() {
|
||||
return this.$store.state.gui.editor.tabSize || 2
|
||||
}
|
||||
}
|
||||
</script>
|
||||
@@ -76,7 +76,7 @@
|
||||
</template>
|
||||
|
||||
<template #append>
|
||||
<v-icon :disabled="isLocked || sliderValue >= max" @click="increment">{{ mdiPlus }}</v-icon>
|
||||
<v-icon :disabled="isLocked || sliderValue >= 1" @click="increment">{{ mdiPlus }}</v-icon>
|
||||
</template>
|
||||
</v-slider>
|
||||
</v-card-text>
|
||||
@@ -278,9 +278,13 @@ export default class MiscellaneousSlider extends Mixins(BaseMixin) {
|
||||
return errors
|
||||
}
|
||||
|
||||
get disableFanAnimation() {
|
||||
return this.$store.state.gui.uiSettings.disableFanAnimation ?? false
|
||||
}
|
||||
|
||||
get fanClasses() {
|
||||
const output = ['mr-2']
|
||||
if (this.value >= this.off_below && this.value > 0) output.push('icon-rotate')
|
||||
if (!this.disableFanAnimation && this.value >= this.off_below && this.value > 0) output.push('icon-rotate')
|
||||
|
||||
return output
|
||||
}
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
import Vue from 'vue'
|
||||
import Component from 'vue-class-component'
|
||||
import { DateTimeFormatOptions } from 'vue-i18n'
|
||||
import { ServerPowerStateDevice } from '@/store/server/power/types'
|
||||
|
||||
@Component
|
||||
export default class BaseMixin extends Vue {
|
||||
@@ -33,6 +34,8 @@ export default class BaseMixin extends Vue {
|
||||
}
|
||||
|
||||
get klipperState(): string {
|
||||
if (!this.klippyIsConnected) return 'disconnected'
|
||||
|
||||
return this.$store.state.server.klippy_state ?? ''
|
||||
}
|
||||
|
||||
@@ -44,6 +47,31 @@ export default class BaseMixin extends Vue {
|
||||
return this.klipperReadyForGui && ['printing', 'paused'].includes(this.printer_state)
|
||||
}
|
||||
|
||||
get printerPowerDevice(): string {
|
||||
let deviceName = this.$store.state.gui.uiSettings.powerDeviceName ?? null
|
||||
if (deviceName === null) deviceName = 'printer'
|
||||
|
||||
return deviceName
|
||||
}
|
||||
|
||||
get isPrinterPowerOff() {
|
||||
const devices = this.$store.getters['server/power/getDevices'] ?? []
|
||||
if (devices.length === 0) return false
|
||||
|
||||
const deviceIndex = devices.findIndex(
|
||||
(device: ServerPowerStateDevice) => device.device === this.printerPowerDevice
|
||||
)
|
||||
// stop if device is not found
|
||||
if (deviceIndex === -1) return false
|
||||
|
||||
const device = devices[deviceIndex]
|
||||
// Printer is on, if device status is "on" or "error"
|
||||
if (device.status !== 'off') return false
|
||||
|
||||
// if klippy is not connected (service shutdown) and device.status === off
|
||||
return !this.klippyIsConnected
|
||||
}
|
||||
|
||||
get loadings(): string[] {
|
||||
return this.$store.state.socket.loadings ?? []
|
||||
}
|
||||
|
||||
@@ -0,0 +1,173 @@
|
||||
import Component from 'vue-class-component'
|
||||
import routes, { AppRoute } from '@/routes'
|
||||
import { Mixins, Watch } from 'vue-property-decorator'
|
||||
import { mdiLinkVariant, mdiViewDashboardOutline } from '@mdi/js'
|
||||
import BaseMixin from '@/components/mixins/base'
|
||||
import { PrinterStateKlipperConfig } from '@/store/printer/types'
|
||||
import { GuiNavigationStateEntry } from '@/store/gui/navigation/types'
|
||||
|
||||
export interface NaviPoint {
|
||||
type: 'link' | 'route'
|
||||
title: string
|
||||
to?: string
|
||||
href?: string
|
||||
target?: string
|
||||
icon: string
|
||||
position: number
|
||||
visible: boolean
|
||||
}
|
||||
|
||||
@Component
|
||||
export default class NavigationMixin extends Mixins(BaseMixin) {
|
||||
private customNaviLinks: NaviPoint[] = []
|
||||
|
||||
get countPrinters() {
|
||||
return this.$store.getters['farm/countPrinters']
|
||||
}
|
||||
|
||||
get routesNaviPoints(): NaviPoint[] {
|
||||
const points: NaviPoint[] = []
|
||||
|
||||
if (this.countPrinters) {
|
||||
points.push({
|
||||
title: this.$t('App.Printers'),
|
||||
icon: mdiViewDashboardOutline,
|
||||
to: '/allPrinters',
|
||||
position: 0,
|
||||
visible: true,
|
||||
} as NaviPoint)
|
||||
}
|
||||
|
||||
routes
|
||||
.filter((element) => {
|
||||
return element.showInNavi && this.showInNavi(element)
|
||||
})
|
||||
.forEach((element) => {
|
||||
const [position, visible] = this.getUiSettings({
|
||||
type: 'route',
|
||||
title: element.title ?? 'unknown',
|
||||
visible: true,
|
||||
position: element.position ?? 999,
|
||||
})
|
||||
|
||||
points.push({
|
||||
type: 'route',
|
||||
title: this.$t(`Router.${element.title}`),
|
||||
icon: element.icon,
|
||||
to: element.path,
|
||||
position,
|
||||
visible,
|
||||
} as NaviPoint)
|
||||
})
|
||||
|
||||
if (this.customNaviLinks.length) {
|
||||
this.customNaviLinks.forEach((element) => {
|
||||
const [position, visible] = this.getUiSettings({
|
||||
type: 'link',
|
||||
title: element.title ?? 'unknown',
|
||||
visible: element.visible ?? true,
|
||||
position: element.position ?? 999,
|
||||
})
|
||||
|
||||
points.push({
|
||||
type: 'link',
|
||||
title: element.title,
|
||||
icon: element.icon,
|
||||
href: element.href,
|
||||
target: element.target,
|
||||
position,
|
||||
visible,
|
||||
})
|
||||
})
|
||||
}
|
||||
|
||||
return points
|
||||
}
|
||||
|
||||
get naviPoints(): NaviPoint[] {
|
||||
return this.routesNaviPoints.sort((a, b) => a.position - b.position)
|
||||
}
|
||||
|
||||
get visibleNaviPoints(): NaviPoint[] {
|
||||
return this.naviPoints.filter((entry) => entry.visible)
|
||||
}
|
||||
|
||||
get uiSettings(): GuiNavigationStateEntry[] {
|
||||
return this.$store.state.gui.navigation.entries
|
||||
}
|
||||
|
||||
get klippy_state(): string {
|
||||
return this.$store.state.server.klippy_state
|
||||
}
|
||||
|
||||
get boolNaviWebcam(): boolean {
|
||||
return this.$store.state.gui.uiSettings.boolWebcamNavi
|
||||
}
|
||||
|
||||
get moonrakerComponents(): string[] {
|
||||
return this.$store.state.server.components
|
||||
}
|
||||
|
||||
get registeredDirectories(): string[] {
|
||||
return this.$store.state.server.registered_directories
|
||||
}
|
||||
|
||||
get klipperConfigfileSettings(): PrinterStateKlipperConfig[] {
|
||||
return this.$store.state.printer.configfile?.settings ?? {}
|
||||
}
|
||||
|
||||
get sidebarNaviFile(): string {
|
||||
return this.$store.getters['files/getCustomNaviPoints']
|
||||
}
|
||||
|
||||
get webcamCount(): number {
|
||||
return this.$store.getters['gui/webcams/getWebcams'].length
|
||||
}
|
||||
|
||||
@Watch('sidebarNaviFile', { immediate: true })
|
||||
async sidebarNaviFileChanged(newVal: string) {
|
||||
this.customNaviLinks = []
|
||||
|
||||
// stop if no file is set
|
||||
if (!newVal) return
|
||||
|
||||
const content = await fetch(newVal)
|
||||
.then((res) => res.json())
|
||||
.catch((err) => {
|
||||
window.console.error('Unable to parse .theme/navi.json.')
|
||||
throw err
|
||||
})
|
||||
|
||||
content.forEach((item: NaviPoint) => {
|
||||
this.customNaviLinks.push({
|
||||
title: item.title ?? 'Unknown',
|
||||
icon: item.icon ?? mdiLinkVariant,
|
||||
href: item.href ?? '#',
|
||||
target: item.target ?? undefined,
|
||||
position: item.position ?? 999,
|
||||
} as NaviPoint)
|
||||
})
|
||||
}
|
||||
|
||||
showInNavi(route: AppRoute): boolean {
|
||||
if (['shutdown', 'error', 'disconnected'].includes(this.klippy_state) && !route.alwaysShow) return false
|
||||
else if (route.title === 'Webcam' && this.webcamCount === 0) return false
|
||||
else if (route.moonrakerComponent && !this.moonrakerComponents.includes(route.moonrakerComponent)) return false
|
||||
else if (route.registeredDirectory && !this.registeredDirectories.includes(route.registeredDirectory))
|
||||
return false
|
||||
else if (route.klipperComponent && !(route.klipperComponent in this.klipperConfigfileSettings)) return false
|
||||
else if (route.klipperIsConnected && !this.klippyIsConnected) return false
|
||||
|
||||
return true
|
||||
}
|
||||
|
||||
getUiSettings(entry: GuiNavigationStateEntry): [number, boolean] {
|
||||
const index = this.uiSettings.findIndex((point) => {
|
||||
return point.title === entry.title && point.type === entry.type
|
||||
})
|
||||
|
||||
if (index === -1) return [entry.position, entry.visible]
|
||||
|
||||
return [this.uiSettings[index].position, this.uiSettings[index].visible]
|
||||
}
|
||||
}
|
||||
@@ -63,6 +63,7 @@
|
||||
:key="tool.name"
|
||||
:class="tool.active ? 'primary--text' : {}"
|
||||
:disabled="isPrinting"
|
||||
:style="{ 'background-color': '#' + tool.color }"
|
||||
dense
|
||||
class="flex-grow-1 px-0"
|
||||
@click="doSend(tool.name)">
|
||||
@@ -85,7 +86,7 @@
|
||||
attribute-name="S"></tool-slider>
|
||||
</v-container>
|
||||
<!-- PRESSURE ADVANCE SETTINGS -->
|
||||
<template v-if="!extruderSteppers.length > 0">
|
||||
<template v-if="!(extruderSteppers.length > 0)">
|
||||
<v-divider></v-divider>
|
||||
<pressure-advance-settings></pressure-advance-settings>
|
||||
</template>
|
||||
@@ -361,11 +362,11 @@ export default class ExtruderControlPanel extends Mixins(BaseMixin, ControlMixin
|
||||
}
|
||||
|
||||
get loadFilamentMacro() {
|
||||
return this.macros.find((macro: PrinterStateMacro) => macro.name === 'LOAD_FILAMENT')
|
||||
return this.macros.find((macro: PrinterStateMacro) => macro.name.toUpperCase() === 'LOAD_FILAMENT')
|
||||
}
|
||||
|
||||
get unloadFilamentMacro() {
|
||||
return this.macros.find((macro: PrinterStateMacro) => macro.name === 'UNLOAD_FILAMENT')
|
||||
return this.macros.find((macro: PrinterStateMacro) => macro.name.toUpperCase() === 'UNLOAD_FILAMENT')
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
@@ -26,7 +26,7 @@
|
||||
</v-list-item-content>
|
||||
</v-list-item>
|
||||
<v-list-item
|
||||
v-for="webcam of supportedPrinterWebcams"
|
||||
v-for="webcam of printer_webcams"
|
||||
:key="webcam.index"
|
||||
link
|
||||
@click="currentCamId = webcam.id">
|
||||
@@ -34,7 +34,7 @@
|
||||
<v-icon small class="mt-1">{{ convertWebcamIcon(webcam.icon) }}</v-icon>
|
||||
</v-list-item-icon>
|
||||
<v-list-item-content>
|
||||
<v-list-item-title v-text="webcam.name"></v-list-item-title>
|
||||
<v-list-item-title v-text="webcam.name" />
|
||||
</v-list-item-content>
|
||||
</v-list-item>
|
||||
</v-list>
|
||||
@@ -52,21 +52,7 @@
|
||||
'service' in currentWebcam
|
||||
"
|
||||
class="webcamContainer">
|
||||
<webcam-mjpegstreamer
|
||||
v-if="currentWebcam.service === 'mjpegstreamer'"
|
||||
:cam-settings="currentWebcam"
|
||||
:printer-url="printerUrl"
|
||||
:show-fps="false"></webcam-mjpegstreamer>
|
||||
<webcam-mjpegstreamer-adaptive
|
||||
v-else-if="currentWebcam.service === 'mjpegstreamer-adaptive'"
|
||||
:cam-settings="currentWebcam"
|
||||
:printer-url="printerUrl"
|
||||
:show-fps="false"></webcam-mjpegstreamer-adaptive>
|
||||
<webcam-uv4l-mjpeg
|
||||
v-else-if="currentWebcam.service === 'uv4l-mjpeg'"
|
||||
:cam-settings="currentWebcam"
|
||||
:printer-url="printerUrl"
|
||||
:show-fps="false"></webcam-uv4l-mjpeg>
|
||||
<webcam-wrapper :webcam="currentWebcam" :show-fps="false" />
|
||||
</div>
|
||||
<v-card-title
|
||||
class="white--text py-2"
|
||||
@@ -130,22 +116,17 @@
|
||||
import { Component, Mixins, Prop, Ref, Vue } from 'vue-property-decorator'
|
||||
import BaseMixin from '@/components/mixins/base'
|
||||
import { FarmPrinterState } from '@/store/farm/printer/types'
|
||||
import Mjpegstreamer from '@/components/webcams/Mjpegstreamer.vue'
|
||||
import MjpegstreamerAdaptive from '@/components/webcams/MjpegstreamerAdaptive.vue'
|
||||
import Uv4lMjpeg from '@/components/webcams/Uv4lMjpeg.vue'
|
||||
import MainsailLogo from '@/components/ui/MainsailLogo.vue'
|
||||
import Panel from '@/components/ui/Panel.vue'
|
||||
import { mdiPrinter3d, mdiWebcam, mdiMenuDown, mdiWebcamOff, mdiFileOutline } from '@mdi/js'
|
||||
import { Debounce } from 'vue-debounce-decorator'
|
||||
import { GuiWebcamStateWebcam } from '@/store/gui/webcams/types'
|
||||
import WebcamMixin from '@/components/mixins/webcam'
|
||||
import WebcamWrapper from '@/components/webcams/WebcamWrapper.vue'
|
||||
|
||||
@Component({
|
||||
components: {
|
||||
Panel,
|
||||
'webcam-mjpegstreamer': Mjpegstreamer,
|
||||
'webcam-mjpegstreamer-adaptive': MjpegstreamerAdaptive,
|
||||
'webcam-uv4l-mjpeg': Uv4lMjpeg,
|
||||
'webcam-wrapper': WebcamWrapper,
|
||||
'mainsail-logo': MainsailLogo,
|
||||
},
|
||||
})
|
||||
@@ -218,19 +199,13 @@ export default class FarmPrinterPanel extends Mixins(BaseMixin, WebcamMixin) {
|
||||
}
|
||||
|
||||
get showWebcamSwitch() {
|
||||
return this.printer.socket.isConnected && this.supportedPrinterWebcams.length > 0
|
||||
return this.printer.socket.isConnected && this.printer_webcams.length > 0
|
||||
}
|
||||
|
||||
get printer_webcams() {
|
||||
return this.$store.getters['farm/' + this.printer._namespace + '/getPrinterWebcams']
|
||||
}
|
||||
|
||||
get supportedPrinterWebcams() {
|
||||
return this.printer_webcams.filter((webcam: GuiWebcamStateWebcam) =>
|
||||
['mjpegstreamer', 'mjpegstreamer-adaptive', 'uv4l-mjpeg'].includes(webcam.service)
|
||||
)
|
||||
}
|
||||
|
||||
get currentWebcam() {
|
||||
const currentCam = this.printer_webcams.find((webcam: any) => webcam.id === this.currentCamId)
|
||||
if (currentCam) return currentCam
|
||||
|
||||
@@ -18,6 +18,15 @@
|
||||
dense
|
||||
style="max-width: 300px"></v-text-field>
|
||||
<v-spacer></v-spacer>
|
||||
<v-btn
|
||||
v-if="selectedFiles.length"
|
||||
:title="$t('Files.Download')"
|
||||
color="primary"
|
||||
class="px-2 minwidth-0 ml-3"
|
||||
:loading="loadings.includes('gcodeDownloadZip')"
|
||||
@click="downloadSelectedFiles">
|
||||
<v-icon>{{ mdiCloudDownload }}</v-icon>
|
||||
</v-btn>
|
||||
<v-btn
|
||||
v-if="selectedFiles.length"
|
||||
:title="$t('Files.Delete')"
|
||||
@@ -315,6 +324,13 @@
|
||||
<v-icon class="mr-1">{{ mdiPlaylistPlus }}</v-icon>
|
||||
{{ $t('Files.AddToQueue') }}
|
||||
</v-list-item>
|
||||
<v-list-item
|
||||
v-if="!contextMenu.item.isDirectory && moonrakerComponents.includes('job_queue')"
|
||||
:disabled="!isGcodeFile(contextMenu.item)"
|
||||
@click="openAddBatchToQueueDialog(contextMenu.item)">
|
||||
<v-icon class="mr-1">{{ mdiPlaylistPlus }}</v-icon>
|
||||
{{ $t('Files.AddBatchToQueue') }}
|
||||
</v-list-item>
|
||||
<v-list-item
|
||||
v-if="contextMenu.item.preheat_gcode !== null"
|
||||
:disabled="['error', 'printing', 'paused'].includes(printer_state)"
|
||||
@@ -329,6 +345,13 @@
|
||||
<v-icon class="mr-1">{{ mdiVideo3d }}</v-icon>
|
||||
{{ $t('Files.View3D') }}
|
||||
</v-list-item>
|
||||
<v-list-item
|
||||
v-if="!contextMenu.item.isDirectory"
|
||||
:disabled="!isGcodeFile(contextMenu.item)"
|
||||
@click="scanMeta(contextMenu.item)">
|
||||
<v-icon class="mr-1">{{ mdiMagnify }}</v-icon>
|
||||
{{ $t('Files.ScanMeta') }}
|
||||
</v-list-item>
|
||||
<v-list-item v-if="!contextMenu.item.isDirectory" @click="downloadFile">
|
||||
<v-icon class="mr-1">{{ mdiCloudDownload }}</v-icon>
|
||||
{{ $t('Files.Download') }}
|
||||
@@ -345,6 +368,10 @@
|
||||
<v-icon class="mr-1">{{ mdiRenameBox }}</v-icon>
|
||||
{{ $t('Files.Rename') }}
|
||||
</v-list-item>
|
||||
<v-list-item v-if="!contextMenu.item.isDirectory" @click="duplicateFile(contextMenu.item)">
|
||||
<v-icon class="mr-1">{{ mdiContentCopy }}</v-icon>
|
||||
{{ $t('Files.Duplicate') }}
|
||||
</v-list-item>
|
||||
<v-list-item v-if="!contextMenu.item.isDirectory" class="red--text" @click="removeFile">
|
||||
<v-icon class="mr-1" color="error">{{ mdiDelete }}</v-icon>
|
||||
{{ $t('Files.Delete') }}
|
||||
@@ -375,7 +402,7 @@
|
||||
:label="$t('Files.Name')"
|
||||
required
|
||||
:rules="nameInputRules"
|
||||
@update:error="isInvalidName = !isInvalidName"
|
||||
@update:error="(bool) => (isInvalidName = bool)"
|
||||
@keypress.enter="createDirectoryAction"></v-text-field>
|
||||
</v-card-text>
|
||||
<v-card-actions>
|
||||
@@ -404,7 +431,7 @@
|
||||
:label="$t('Files.Name').toString()"
|
||||
required
|
||||
:rules="nameInputRules"
|
||||
@update:error="isInvalidName = !isInvalidName"
|
||||
@update:error="(bool) => (isInvalidName = bool)"
|
||||
@keyup.enter="renameFileAction"></v-text-field>
|
||||
</v-card-text>
|
||||
<v-card-actions>
|
||||
@@ -416,6 +443,35 @@
|
||||
</v-card-actions>
|
||||
</panel>
|
||||
</v-dialog>
|
||||
<v-dialog v-model="dialogDuplicateFile.show" :max-width="400">
|
||||
<panel
|
||||
:title="$t('Files.DuplicateFile').toString()"
|
||||
card-class="gcode-files-duplicate-file-dialog"
|
||||
:margin-bottom="false">
|
||||
<template #buttons>
|
||||
<v-btn icon tile @click="dialogDuplicateFile.show = false">
|
||||
<v-icon>{{ mdiCloseThick }}</v-icon>
|
||||
</v-btn>
|
||||
</template>
|
||||
<v-card-text>
|
||||
<v-text-field
|
||||
ref="inputFieldDuplicateFile"
|
||||
v-model="dialogDuplicateFile.newName"
|
||||
:label="$t('Files.Name').toString()"
|
||||
required
|
||||
:rules="nameInputRules"
|
||||
@update:error="(bool) => (isInvalidName = bool)"
|
||||
@keyup.enter="duplicateFileAction"></v-text-field>
|
||||
</v-card-text>
|
||||
<v-card-actions>
|
||||
<v-spacer></v-spacer>
|
||||
<v-btn color="" text @click="dialogDuplicateFile.show = false">{{ $t('Files.Cancel') }}</v-btn>
|
||||
<v-btn :disabled="isInvalidName" color="primary" text @click="duplicateFileAction">
|
||||
{{ $t('Files.Duplicate') }}
|
||||
</v-btn>
|
||||
</v-card-actions>
|
||||
</panel>
|
||||
</v-dialog>
|
||||
<v-dialog v-model="dialogRenameDirectory.show" max-width="400">
|
||||
<panel
|
||||
:title="$t('Files.RenameDirectory').toString()"
|
||||
@@ -433,7 +489,7 @@
|
||||
:label="$t('Files.Name')"
|
||||
required
|
||||
:rules="nameInputRules"
|
||||
@update:error="isInvalidName = !isInvalidName"
|
||||
@update:error="(bool) => (isInvalidName = bool)"
|
||||
@keyup.enter="renameDirectoryAction"></v-text-field>
|
||||
</v-card-text>
|
||||
<v-card-actions>
|
||||
@@ -487,6 +543,53 @@
|
||||
</v-card-actions>
|
||||
</panel>
|
||||
</v-dialog>
|
||||
<v-dialog v-model="dialogAddBatchToQueue.show" max-width="400">
|
||||
<panel
|
||||
:title="$t('Files.AddToQueue').toString()"
|
||||
card-class="gcode-files-add-to-queue-dialog"
|
||||
:icon="mdiPlaylistPlus"
|
||||
:margin-bottom="false">
|
||||
<template #buttons>
|
||||
<v-btn icon tile @click="dialogAddBatchToQueue.show = false">
|
||||
<v-icon>{{ mdiCloseThick }}</v-icon>
|
||||
</v-btn>
|
||||
</template>
|
||||
|
||||
<v-card-text>
|
||||
<v-text-field
|
||||
ref="inputFieldAddToQueueCount"
|
||||
v-model="dialogAddBatchToQueue.count"
|
||||
:label="$t('Files.Count')"
|
||||
required
|
||||
hide-spin-buttons
|
||||
type="number"
|
||||
:rules="countInputRules"
|
||||
@keyup.enter="addBatchToQueueAction">
|
||||
<template #append-outer>
|
||||
<div class="_spin_button_group">
|
||||
<v-btn class="mt-n3" icon plain small @click="dialogAddBatchToQueue.count++">
|
||||
<v-icon>{{ mdiChevronUp }}</v-icon>
|
||||
</v-btn>
|
||||
<v-btn
|
||||
:disabled="dialogAddBatchToQueue.count <= 1"
|
||||
class="mb-n3"
|
||||
icon
|
||||
plain
|
||||
small
|
||||
@click="dialogAddBatchToQueue.count--">
|
||||
<v-icon>{{ mdiChevronDown }}</v-icon>
|
||||
</v-btn>
|
||||
</div>
|
||||
</template>
|
||||
</v-text-field>
|
||||
</v-card-text>
|
||||
<v-card-actions>
|
||||
<v-spacer></v-spacer>
|
||||
<v-btn color="" text @click="dialogAddBatchToQueue.show = false">{{ $t('Files.Cancel') }}</v-btn>
|
||||
<v-btn color="primary" text @click="addBatchToQueueAction">{{ $t('Files.AddToQueue') }}</v-btn>
|
||||
</v-card-actions>
|
||||
</panel>
|
||||
</v-dialog>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
@@ -500,6 +603,8 @@ import Panel from '@/components/ui/Panel.vue'
|
||||
import SettingsRow from '@/components/settings/SettingsRow.vue'
|
||||
import draggable from 'vuedraggable'
|
||||
import {
|
||||
mdiChevronDown,
|
||||
mdiChevronUp,
|
||||
mdiDragVertical,
|
||||
mdiCheckboxBlankOutline,
|
||||
mdiCheckboxMarked,
|
||||
@@ -521,6 +626,7 @@ import {
|
||||
mdiUpload,
|
||||
mdiVideo3d,
|
||||
mdiFileDocumentEditOutline,
|
||||
mdiContentCopy,
|
||||
} from '@mdi/js'
|
||||
import StartPrintDialog from '@/components/dialogs/StartPrintDialog.vue'
|
||||
import ControlMixin from '@/components/mixins/control'
|
||||
@@ -543,6 +649,12 @@ interface dialogPrintFile {
|
||||
item: FileStateGcodefile
|
||||
}
|
||||
|
||||
interface dialogAddBatchToQueue {
|
||||
show: boolean
|
||||
count: number
|
||||
item: FileStateGcodefile
|
||||
}
|
||||
|
||||
interface dialogRenameObject {
|
||||
show: boolean
|
||||
newName: string
|
||||
@@ -563,6 +675,9 @@ interface tableColumnSetting {
|
||||
components: { StartPrintDialog, Panel, SettingsRow, draggable },
|
||||
})
|
||||
export default class GcodefilesPanel extends Mixins(BaseMixin, ControlMixin) {
|
||||
mdiChevronDown = mdiChevronDown
|
||||
mdiChevronUp = mdiChevronUp
|
||||
mdiContentCopy = mdiContentCopy
|
||||
mdiFile = mdiFile
|
||||
mdiFileDocumentMultipleOutline = mdiFileDocumentMultipleOutline
|
||||
mdiMagnify = mdiMagnify
|
||||
@@ -592,6 +707,7 @@ export default class GcodefilesPanel extends Mixins(BaseMixin, ControlMixin) {
|
||||
declare $refs: {
|
||||
fileUpload: HTMLInputElement
|
||||
inputFieldRenameFile: HTMLInputElement
|
||||
inputFieldDuplicateFile: HTMLInputElement
|
||||
inputFieldCreateDirectory: HTMLInputElement
|
||||
inputFieldRenameDirectory: HTMLInputElement
|
||||
}
|
||||
@@ -637,12 +753,24 @@ export default class GcodefilesPanel extends Mixins(BaseMixin, ControlMixin) {
|
||||
item: { ...this.contextMenu.item },
|
||||
}
|
||||
|
||||
private dialogAddBatchToQueue: dialogAddBatchToQueue = {
|
||||
show: false,
|
||||
count: 1,
|
||||
item: { ...this.contextMenu.item },
|
||||
}
|
||||
|
||||
private dialogRenameFile: dialogRenameObject = {
|
||||
show: false,
|
||||
newName: '',
|
||||
item: { ...this.contextMenu.item },
|
||||
}
|
||||
|
||||
private dialogDuplicateFile: dialogRenameObject = {
|
||||
show: false,
|
||||
newName: '',
|
||||
item: { ...this.contextMenu.item },
|
||||
}
|
||||
|
||||
private dialogRenameDirectory: dialogRenameObject = {
|
||||
show: false,
|
||||
newName: '',
|
||||
@@ -662,9 +790,13 @@ export default class GcodefilesPanel extends Mixins(BaseMixin, ControlMixin) {
|
||||
(value: string) => !!value || this.$t('Files.InvalidNameEmpty'),
|
||||
(value: string) => !this.existsFilename(value) || this.$t('Files.InvalidNameAlreadyExists'),
|
||||
]
|
||||
private countInputRules = [
|
||||
(value: string) => !!value || this.$t('JobQueue.InvalidCountEmpty'),
|
||||
(value: string) => parseInt(value) > 0 || this.$t('JobQueue.InvalidCountGreaterZero'),
|
||||
]
|
||||
|
||||
existsFilename(name: string) {
|
||||
return this.files.findIndex((file) => file.filename === name) >= 0
|
||||
return this.files.findIndex((file: FileStateFile) => file.filename === name) >= 0
|
||||
}
|
||||
|
||||
get gcodeInputFileAccept() {
|
||||
@@ -1088,11 +1220,31 @@ export default class GcodefilesPanel extends Mixins(BaseMixin, ControlMixin) {
|
||||
this.currentPath = this.currentPath.slice(0, this.currentPath.lastIndexOf('/'))
|
||||
}
|
||||
|
||||
addToQueue(item: FileStateGcodefile | FileStateFile) {
|
||||
async addToQueue(item: FileStateGcodefile) {
|
||||
let filename = [this.currentPath, item.filename].join('/')
|
||||
if (filename.startsWith('/')) filename = filename.slice(1)
|
||||
|
||||
this.$store.dispatch('server/jobQueue/addToQueue', [filename])
|
||||
await this.$store.dispatch('server/jobQueue/addToQueue', [filename])
|
||||
}
|
||||
|
||||
openAddBatchToQueueDialog(item: FileStateGcodefile) {
|
||||
this.dialogAddBatchToQueue.show = true
|
||||
this.dialogAddBatchToQueue.count = 1
|
||||
this.dialogAddBatchToQueue.item = item
|
||||
}
|
||||
|
||||
async addBatchToQueueAction() {
|
||||
let filename = [this.currentPath, this.dialogAddBatchToQueue.item.filename].join('/')
|
||||
if (filename.startsWith('/')) filename = filename.slice(1)
|
||||
|
||||
const array: string[] = []
|
||||
for (let i = 0; i < this.dialogAddBatchToQueue.count; i++) {
|
||||
array.push(filename)
|
||||
}
|
||||
|
||||
await this.$store.dispatch('server/jobQueue/addToQueue', array)
|
||||
|
||||
this.dialogAddBatchToQueue.show = false
|
||||
}
|
||||
|
||||
changeMetadataVisible(name: string, value: boolean) {
|
||||
@@ -1129,6 +1281,36 @@ export default class GcodefilesPanel extends Mixins(BaseMixin, ControlMixin) {
|
||||
window.open(href)
|
||||
}
|
||||
|
||||
async downloadSelectedFiles() {
|
||||
let items: string[] = []
|
||||
|
||||
const addElementToItems = async (absolutPath: string, directory: FileStateFile[]) => {
|
||||
for (const file of directory) {
|
||||
const filePath = `${absolutPath}/${file.filename}`
|
||||
|
||||
if (file.isDirectory && file.childrens) {
|
||||
await addElementToItems(filePath, file.childrens)
|
||||
|
||||
continue
|
||||
}
|
||||
|
||||
items.push(filePath)
|
||||
}
|
||||
}
|
||||
|
||||
await addElementToItems('gcodes/' + this.currentPath, this.selectedFiles)
|
||||
const date = new Date()
|
||||
const timestamp = `${date.getFullYear()}${date.getMonth()}${date.getDay()}-${date.getHours()}${date.getMinutes()}${date.getSeconds()}`
|
||||
|
||||
this.$socket.emit(
|
||||
'server.files.zip',
|
||||
{ items, dest: `config/gcodes-${timestamp}.zip` },
|
||||
{ action: 'files/downloadZip', loading: 'gcodeDownloadZip' }
|
||||
)
|
||||
|
||||
this.selectedFiles = []
|
||||
}
|
||||
|
||||
renameFile(item: FileStateGcodefile) {
|
||||
this.dialogRenameFile.item = item
|
||||
this.dialogRenameFile.newName = item.filename
|
||||
@@ -1151,6 +1333,24 @@ export default class GcodefilesPanel extends Mixins(BaseMixin, ControlMixin) {
|
||||
)
|
||||
}
|
||||
|
||||
duplicateFile(item: FileStateGcodefile) {
|
||||
this.dialogDuplicateFile.item = item
|
||||
this.dialogDuplicateFile.newName = item.filename
|
||||
this.dialogDuplicateFile.show = true
|
||||
|
||||
setTimeout(() => {
|
||||
this.$refs.inputFieldDuplicateFile?.focus()
|
||||
}, 200)
|
||||
}
|
||||
|
||||
duplicateFileAction() {
|
||||
this.dialogDuplicateFile.show = false
|
||||
this.$socket.emit('server.files.copy', {
|
||||
source: 'gcodes' + this.currentPath + '/' + this.dialogDuplicateFile.item.filename,
|
||||
dest: 'gcodes' + this.currentPath + '/' + this.dialogDuplicateFile.newName,
|
||||
})
|
||||
}
|
||||
|
||||
renameDirectory(item: FileStateGcodefile) {
|
||||
this.dialogRenameDirectory.item = item
|
||||
this.dialogRenameDirectory.newName = item.filename
|
||||
@@ -1243,6 +1443,12 @@ export default class GcodefilesPanel extends Mixins(BaseMixin, ControlMixin) {
|
||||
this.$router.push({ path: '/viewer', query: { filename: 'gcodes' + this.currentPath + '/' + item.filename } })
|
||||
}
|
||||
|
||||
scanMeta(item: FileStateFile) {
|
||||
this.$store.dispatch('files/scanMetadata', {
|
||||
filename: 'gcodes' + this.currentPath + '/' + item.filename,
|
||||
})
|
||||
}
|
||||
|
||||
deleteSelectedFiles() {
|
||||
this.selectedFiles.forEach((item: FileStateGcodefile) => {
|
||||
if (item.isDirectory) {
|
||||
@@ -1297,6 +1503,15 @@ export default class GcodefilesPanel extends Mixins(BaseMixin, ControlMixin) {
|
||||
}
|
||||
</script>
|
||||
|
||||
<style scoped>
|
||||
._spin_button_group {
|
||||
width: 24px;
|
||||
margin-top: -6px;
|
||||
margin-left: -6px;
|
||||
margin-bottom: -6px;
|
||||
}
|
||||
</style>
|
||||
|
||||
<style>
|
||||
/*noinspection CssUnusedSymbol*/
|
||||
.files-table .v-data-table-header__icon {
|
||||
|
||||
@@ -12,7 +12,7 @@
|
||||
<div>
|
||||
<panel
|
||||
:icon="mdiFileDocumentMultipleOutline"
|
||||
:title="$t('History.PrintHistory')"
|
||||
:title="$t('History.PrintHistory').toString()"
|
||||
card-class="history-list-panel">
|
||||
<v-card-text>
|
||||
<v-row>
|
||||
@@ -246,7 +246,7 @@
|
||||
persistent
|
||||
@keydown.esc="detailsDialog.boolShow = false">
|
||||
<panel
|
||||
:title="$t('History.JobDetails')"
|
||||
:title="$t('History.JobDetails').toString()"
|
||||
:icon="mdiUpdate"
|
||||
card-class="history-detail-dialog"
|
||||
:margin-bottom="false">
|
||||
@@ -273,7 +273,7 @@
|
||||
<v-row>
|
||||
<v-col>{{ $t('History.LastModified') }}</v-col>
|
||||
<v-col class="text-right">
|
||||
{{ formatDateTime(detailsDialog.item.metadata.modified) }}
|
||||
{{ formatDateTime(detailsDialog.item.metadata.modified * 1000) }}
|
||||
</v-col>
|
||||
</v-row>
|
||||
</template>
|
||||
@@ -291,13 +291,15 @@
|
||||
<v-divider class="my-3"></v-divider>
|
||||
<v-row>
|
||||
<v-col>{{ $t('History.StartTime') }}</v-col>
|
||||
<v-col class="text-right">{{ formatDateTime(detailsDialog.item.start_time) }}</v-col>
|
||||
<v-col class="text-right">{{ formatDateTime(detailsDialog.item.start_time * 1000) }}</v-col>
|
||||
</v-row>
|
||||
<template v-if="'end_time' in detailsDialog.item && detailsDialog.item.end_time > 0">
|
||||
<v-divider class="my-3"></v-divider>
|
||||
<v-row>
|
||||
<v-col>{{ $t('History.EndTime') }}</v-col>
|
||||
<v-col class="text-right">{{ formatDateTime(detailsDialog.item.end_time) }}</v-col>
|
||||
<v-col class="text-right">
|
||||
{{ formatDateTime(detailsDialog.item.end_time * 1000) }}
|
||||
</v-col>
|
||||
</v-row>
|
||||
</template>
|
||||
<template
|
||||
@@ -429,7 +431,10 @@
|
||||
</panel>
|
||||
</v-dialog>
|
||||
<v-dialog v-model="deleteSelectedDialog" max-width="400">
|
||||
<panel :title="$t('History.Delete')" card-class="history-delete-selected-dialog" :margin-bottom="false">
|
||||
<panel
|
||||
:title="$t('History.Delete').toString()"
|
||||
card-class="history-delete-selected-dialog"
|
||||
:margin-bottom="false">
|
||||
<template #buttons>
|
||||
<v-btn icon tile @click="deleteSelectedDialog = false">
|
||||
<v-icon>{{ mdiCloseThick }}</v-icon>
|
||||
|
||||
@@ -57,11 +57,23 @@
|
||||
</v-simple-table>
|
||||
</v-col>
|
||||
<v-col class="col-12 col-sm-6 col-md-4">
|
||||
<history-all-print-status></history-all-print-status>
|
||||
<history-all-print-status-chart
|
||||
v-if="togglePrintStatus === 'chart'"></history-all-print-status-chart>
|
||||
<history-all-print-status-table v-else></history-all-print-status-table>
|
||||
<div class="text-center mb-3">
|
||||
<v-btn-toggle v-model="togglePrintStatus" small mandatory>
|
||||
<v-btn small value="chart">
|
||||
{{ $t('History.Chart') }}
|
||||
</v-btn>
|
||||
<v-btn small value="table">
|
||||
{{ $t('History.Table') }}
|
||||
</v-btn>
|
||||
</v-btn-toggle>
|
||||
</div>
|
||||
</v-col>
|
||||
<v-col class="col-12 col-sm-12 col-md-4">
|
||||
<history-filament-usage v-if="toggleChart === 'filament_usage'"></history-filament-usage>
|
||||
<history-printtime-avg v-if="toggleChart === 'printtime_avg'"></history-printtime-avg>
|
||||
<history-printtime-avg v-else-if="toggleChart === 'printtime_avg'"></history-printtime-avg>
|
||||
<div class="text-center mt-3">
|
||||
<v-btn-toggle v-model="toggleChart" small mandatory>
|
||||
<v-btn small value="filament_usage">
|
||||
@@ -84,11 +96,11 @@ import BaseMixin from '@/components/mixins/base'
|
||||
import Panel from '@/components/ui/Panel.vue'
|
||||
import HistoryFilamentUsage from '@/components/charts/HistoryFilamentUsage.vue'
|
||||
import HistoryPrinttimeAvg from '@/components/charts/HistoryPrinttimeAvg.vue'
|
||||
import HistoryAllPrintStatus from '@/components/charts/HistoryAllPrintStatus.vue'
|
||||
import HistoryAllPrintStatusChart from '@/components/charts/HistoryAllPrintStatusChart.vue'
|
||||
import { ServerHistoryStateJob } from '@/store/server/history/types'
|
||||
import { mdiChartAreaspline } from '@mdi/js'
|
||||
@Component({
|
||||
components: { Panel, HistoryFilamentUsage, HistoryPrinttimeAvg, HistoryAllPrintStatus },
|
||||
components: { Panel, HistoryFilamentUsage, HistoryPrinttimeAvg, HistoryAllPrintStatusChart },
|
||||
})
|
||||
export default class HistoryStatisticsPanel extends Mixins(BaseMixin) {
|
||||
mdiChartAreaspline = mdiChartAreaspline
|
||||
@@ -177,6 +189,14 @@ export default class HistoryStatisticsPanel extends Mixins(BaseMixin) {
|
||||
this.$store.dispatch('gui/saveSetting', { name: 'view.history.toggleChartCol3', value: newVal })
|
||||
}
|
||||
|
||||
get togglePrintStatus() {
|
||||
return this.$store.state.gui.view.history.toggleChartCol2
|
||||
}
|
||||
|
||||
set togglePrintStatus(newVal) {
|
||||
this.$store.dispatch('gui/saveSetting', { name: 'view.history.toggleChartCol2', value: newVal })
|
||||
}
|
||||
|
||||
formatPrintTime(totalSeconds: number) {
|
||||
if (totalSeconds) {
|
||||
let output = ''
|
||||
|
||||
@@ -1,6 +1,10 @@
|
||||
<template>
|
||||
<div>
|
||||
<panel ref="jobqueuePanel" :icon="mdiTrayFull" :title="$t('JobQueue.JobQueue')" card-class="jobqueue-panel">
|
||||
<panel
|
||||
ref="jobqueuePanel"
|
||||
:icon="mdiTrayFull"
|
||||
:title="$t('JobQueue.JobQueue').toString()"
|
||||
card-class="jobqueue-panel">
|
||||
<template #buttons>
|
||||
<v-btn
|
||||
v-if="queueState === 'paused'"
|
||||
@@ -48,98 +52,29 @@
|
||||
</template>
|
||||
|
||||
<template #item="{ item }">
|
||||
<tr
|
||||
:key="item.job_id"
|
||||
v-longpress:600="(e) => showContextMenu(e, item)"
|
||||
class="file-list-cursor user-select-none"
|
||||
@contextmenu="showContextMenu($event, item)">
|
||||
<td class="pr-0 text-center" style="width: 32px">
|
||||
<template v-if="getSmallThumbnail(item) && getBigThumbnail(item)">
|
||||
<v-tooltip
|
||||
v-if="!item.isDirectory && getSmallThumbnail(item) && getBigThumbnail(item)"
|
||||
top
|
||||
content-class="tooltip__content-opacity1">
|
||||
<template #activator="{ on, attrs }">
|
||||
<vue-load-image>
|
||||
<img
|
||||
slot="image"
|
||||
:src="getSmallThumbnail(item)"
|
||||
width="32"
|
||||
height="32"
|
||||
v-bind="attrs"
|
||||
v-on="on" />
|
||||
<v-progress-circular
|
||||
slot="preloader"
|
||||
indeterminate
|
||||
color="primary"></v-progress-circular>
|
||||
<v-icon slot="error">{{ mdiFile }}</v-icon>
|
||||
</vue-load-image>
|
||||
</template>
|
||||
<span><img :src="getBigThumbnail(item)" width="250" /></span>
|
||||
</v-tooltip>
|
||||
</template>
|
||||
<template v-else-if="getSmallThumbnail(item)">
|
||||
<vue-load-image>
|
||||
<img slot="image" :src="getSmallThumbnail(item)" width="32" height="32" />
|
||||
<v-progress-circular
|
||||
slot="preloader"
|
||||
indeterminate
|
||||
color="primary"></v-progress-circular>
|
||||
<v-icon slot="error">{{ mdiFile }}</v-icon>
|
||||
</vue-load-image>
|
||||
</template>
|
||||
<template v-else>
|
||||
<v-icon>{{ mdiFile }}</v-icon>
|
||||
</template>
|
||||
</td>
|
||||
<td class=" ">
|
||||
<div class="d-block text-truncate" :style="styleContentTdWidth">{{ item.filename }}</div>
|
||||
<small v-if="existMetadata(item)">{{ getDescription(item) }}</small>
|
||||
</td>
|
||||
</tr>
|
||||
<jobqueue-entry :key="item.job_id" :item="item" :content-td-width="contentTdWidth" />
|
||||
</template>
|
||||
</v-data-table>
|
||||
<resize-observer @notify="handleResize" />
|
||||
</panel>
|
||||
<v-menu v-model="contextMenu.shown" :position-x="contextMenu.x" :position-y="contextMenu.y" absolute offset-y>
|
||||
<v-list>
|
||||
<v-list-item @click="deleteJob(contextMenu.item)">
|
||||
<v-icon class="mr-1">{{ mdiPlaylistRemove }}</v-icon>
|
||||
{{ $t('JobQueue.RemoveFromQueue') }}
|
||||
</v-list-item>
|
||||
</v-list>
|
||||
</v-menu>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<script lang="ts">
|
||||
import { Component, Mixins } from 'vue-property-decorator'
|
||||
import BaseMixin from '@/components/mixins/base'
|
||||
import { ServerHistoryStateJob } from '@/store/server/history/types'
|
||||
import { formatFilesize, formatPrintTime } from '@/plugins/helpers'
|
||||
import Panel from '@/components/ui/Panel.vue'
|
||||
import { ServerJobQueueStateJob } from '@/store/server/jobQueue/types'
|
||||
import { mdiPlay, mdiPause, mdiFile, mdiPlaylistRemove, mdiTrayFull } from '@mdi/js'
|
||||
import { mdiPlay, mdiPause, mdiTrayFull } from '@mdi/js'
|
||||
import JobqueueEntry from '@/components/panels/Status/JobqueueEntry.vue'
|
||||
@Component({
|
||||
components: { Panel },
|
||||
components: { JobqueueEntry, Panel },
|
||||
})
|
||||
export default class JobqueuePanel extends Mixins(BaseMixin) {
|
||||
mdiPlay = mdiPlay
|
||||
mdiPause = mdiPause
|
||||
mdiFile = mdiFile
|
||||
mdiPlaylistRemove = mdiPlaylistRemove
|
||||
mdiTrayFull = mdiTrayFull
|
||||
|
||||
formatFilesize = formatFilesize
|
||||
|
||||
private contentTdWidth = 100
|
||||
private contextMenu = {
|
||||
shown: false,
|
||||
touchTimer: undefined,
|
||||
x: 0,
|
||||
y: 0,
|
||||
item: {},
|
||||
}
|
||||
|
||||
declare $refs: {
|
||||
jobqueuePanel: any
|
||||
@@ -161,27 +96,6 @@ export default class JobqueuePanel extends Mixins(BaseMixin) {
|
||||
this.$store.dispatch('gui/saveSetting', { name: 'view.jobqueue.countPerPage', value: newVal })
|
||||
}
|
||||
|
||||
get styleContentTdWidth() {
|
||||
return `width: ${this.contentTdWidth}px;`
|
||||
}
|
||||
|
||||
showContextMenu(e: any, item: ServerHistoryStateJob) {
|
||||
if (!this.contextMenu.shown) {
|
||||
e?.preventDefault()
|
||||
this.contextMenu.shown = true
|
||||
this.contextMenu.x = e?.clientX || e?.pageX || window.screenX / 2
|
||||
this.contextMenu.y = e?.clientY || e?.pageY || window.screenY / 2
|
||||
this.contextMenu.item = item
|
||||
this.$nextTick(() => {
|
||||
this.contextMenu.shown = true
|
||||
})
|
||||
}
|
||||
}
|
||||
|
||||
deleteJob(item: ServerJobQueueStateJob) {
|
||||
this.$store.dispatch('server/jobQueue/deleteFromQueue', [item.job_id])
|
||||
}
|
||||
|
||||
startJobqueue() {
|
||||
this.$store.dispatch('server/jobQueue/start')
|
||||
}
|
||||
@@ -190,35 +104,6 @@ export default class JobqueuePanel extends Mixins(BaseMixin) {
|
||||
this.$store.dispatch('server/jobQueue/pause')
|
||||
}
|
||||
|
||||
getSmallThumbnail(item: ServerJobQueueStateJob) {
|
||||
return this.$store.getters['server/jobQueue/getSmallThumbnail'](item)
|
||||
}
|
||||
|
||||
getBigThumbnail(item: ServerJobQueueStateJob) {
|
||||
return this.$store.getters['server/jobQueue/getBigThumbnail'](item)
|
||||
}
|
||||
|
||||
getDescription(item: ServerJobQueueStateJob) {
|
||||
let output = ''
|
||||
|
||||
output += this.$t('Files.Filament') + ': '
|
||||
if (item.metadata?.filament_total || item.metadata.filament_weight_total) {
|
||||
if (item.metadata?.filament_total) output += item.metadata.filament_total.toFixed() + ' mm'
|
||||
if (item.metadata?.filament_total && item.metadata.filament_weight_total) output += ' / '
|
||||
if (item.metadata?.filament_weight_total) output += item.metadata.filament_weight_total.toFixed(2) + ' g'
|
||||
} else output += '--'
|
||||
|
||||
output += ', ' + this.$t('Files.PrintTime') + ': '
|
||||
if (item.metadata?.estimated_time) output += formatPrintTime(item.metadata.estimated_time)
|
||||
else output += '--'
|
||||
|
||||
return output
|
||||
}
|
||||
|
||||
existMetadata(item: ServerJobQueueStateJob) {
|
||||
return item?.metadata?.metadataPulled
|
||||
}
|
||||
|
||||
mounted() {
|
||||
this.calcContentTdWidth()
|
||||
}
|
||||
@@ -235,7 +120,7 @@ export default class JobqueuePanel extends Mixins(BaseMixin) {
|
||||
}
|
||||
</script>
|
||||
|
||||
<style>
|
||||
<style scoped>
|
||||
.jobqueue-panel {
|
||||
position: relative;
|
||||
}
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
<template>
|
||||
<div v-if="klipperState !== 'ready' && socketIsConnected">
|
||||
<v-container v-if="klippyIsConnected" class="pa-0 pb-6">
|
||||
<v-alert :color="messageType.color" dense text border="left" class="mb-0">
|
||||
<template v-if="klippyIsConnected">
|
||||
<v-alert :color="messageType.color" dense text border="left" class="mb-0 mb-6">
|
||||
<!-- KLIPPER MESSAGE TITLE -->
|
||||
<p class="font-weight-medium d-flex align-center">
|
||||
<v-icon :color="messageType.color" class="pr-2">{{ messageType.icon }}</v-icon>
|
||||
@@ -68,10 +68,28 @@
|
||||
<v-progress-circular indeterminate :color="messageType.color"></v-progress-circular>
|
||||
</v-card-text>
|
||||
</v-alert>
|
||||
</v-container>
|
||||
</template>
|
||||
<!-- Power OFF panel -->
|
||||
<template v-else-if="isPrinterPowerOff">
|
||||
<v-alert dense text border="left" class="mb-6">
|
||||
<p class="font-weight-medium d-flex align-center">
|
||||
<v-icon class="pr-2">{{ messageType.icon }}</v-icon>
|
||||
{{ $t('Panels.KlippyStatePanel.PrinterSwitchedOff') }}
|
||||
</p>
|
||||
<p>{{ $t('Panels.KlippyStatePanel.PrinterSwitchedOffDescription') }}</p>
|
||||
<v-row>
|
||||
<v-col class="text-center">
|
||||
<v-btn small outlined text :class="`${messageType.color}--text my-1`" @click="powerOn">
|
||||
<v-icon class="mr-sm-2">{{ mdiPower }}</v-icon>
|
||||
{{ $t('Panels.KlippyStatePanel.PowerOn') }}
|
||||
</v-btn>
|
||||
</v-col>
|
||||
</v-row>
|
||||
</v-alert>
|
||||
</template>
|
||||
<!-- DISCONNECTED INFOGRAPHIC -->
|
||||
<v-container v-if="klipperState === 'disconnected'" class="pa-0">
|
||||
<v-alert dense text border="left">
|
||||
<template v-else-if="klipperState === 'disconnected'">
|
||||
<v-alert dense text border="left" class="mb-6">
|
||||
<p class="font-weight-medium d-flex align-center">
|
||||
<v-icon class="pr-2">{{ messageType.icon }}</v-icon>
|
||||
{{ $t('Panels.KlippyStatePanel.ServiceReports', { service: 'Moonraker' }) }}:
|
||||
@@ -79,9 +97,9 @@
|
||||
</p>
|
||||
<connection-status :moonraker="true" :klipper="false"></connection-status>
|
||||
<p class="mt-2 mb-0 text-center">{{ $t('Panels.KlippyStatePanel.MoonrakerCannotConnect') }}</p>
|
||||
<p class="mb-0 text-center">{{ $t('Panels.KlippyStatePanel.KlipperCheck') }}</p>
|
||||
<p class="mb-0 text-center">{{ $t('Panels.KlippyStatePanel.CheckKlippyAndUdsAddress') }}</p>
|
||||
</v-alert>
|
||||
</v-container>
|
||||
</template>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
@@ -99,6 +117,7 @@ import {
|
||||
mdiRocketLaunch,
|
||||
mdiConnection,
|
||||
mdiPrinter3d,
|
||||
mdiPower,
|
||||
} from '@mdi/js'
|
||||
|
||||
@Component({
|
||||
@@ -108,6 +127,7 @@ export default class KlippyStatePanel extends Mixins(BaseMixin) {
|
||||
mdiPrinter3d = mdiPrinter3d
|
||||
mdiRestart = mdiRestart
|
||||
mdiDownload = mdiDownload
|
||||
mdiPower = mdiPower
|
||||
|
||||
get klippy_message() {
|
||||
return this.$store.state.server.klippy_message ?? null
|
||||
@@ -144,5 +164,16 @@ export default class KlippyStatePanel extends Mixins(BaseMixin) {
|
||||
|
||||
window.open(href)
|
||||
}
|
||||
|
||||
powerOn() {
|
||||
this.$socket.emit(
|
||||
'machine.device_power.post_device',
|
||||
{
|
||||
device: this.printerPowerDevice,
|
||||
action: 'on',
|
||||
},
|
||||
{ action: 'server/power/responseToggle' }
|
||||
)
|
||||
}
|
||||
}
|
||||
</script>
|
||||
@@ -203,6 +203,10 @@
|
||||
<v-icon class="mr-1">{{ mdiRenameBox }}</v-icon>
|
||||
{{ $t('Machine.ConfigFilesPanel.Rename') }}
|
||||
</v-list-item>
|
||||
<v-list-item v-if="!contextMenu.item.isDirectory" @click="duplicateFile(contextMenu.item)">
|
||||
<v-icon class="mr-1">{{ mdiContentCopy }}</v-icon>
|
||||
{{ $t('Machine.ConfigFilesPanel.Duplicate') }}
|
||||
</v-list-item>
|
||||
<v-list-item
|
||||
v-if="contextMenu.item.isDirectory && contextMenu.item.permissions.includes('w')"
|
||||
@click="renameDirectory(contextMenu.item)">
|
||||
@@ -278,7 +282,7 @@
|
||||
:label="$t('Machine.ConfigFilesPanel.Name')"
|
||||
required
|
||||
:rules="nameInputRules"
|
||||
@update:error="isInvalidName = !isInvalidName"
|
||||
@update:error="(bool) => (isInvalidName = bool)"
|
||||
@keyup.enter="createFileAction"></v-text-field>
|
||||
</v-card-text>
|
||||
<v-card-actions>
|
||||
@@ -309,7 +313,7 @@
|
||||
:label="$t('Machine.ConfigFilesPanel.Name')"
|
||||
required
|
||||
:rules="nameInputRules"
|
||||
@update:error="isInvalidName = !isInvalidName"
|
||||
@update:error="(bool) => (isInvalidName = bool)"
|
||||
@keyup.enter="renameFileAction"></v-text-field>
|
||||
</v-card-text>
|
||||
<v-card-actions>
|
||||
@@ -323,6 +327,37 @@
|
||||
</v-card-actions>
|
||||
</panel>
|
||||
</v-dialog>
|
||||
<v-dialog v-model="dialogDuplicateFile.show" max-width="400">
|
||||
<panel
|
||||
:title="$t('Machine.ConfigFilesPanel.DuplicateFile').toString()"
|
||||
card-class="maschine-configfiles-duplicate-file-dialog"
|
||||
:margin-bottom="false">
|
||||
<template #buttons>
|
||||
<v-btn icon tile @click="dialogDuplicateFile.show = false">
|
||||
<v-icon>{{ mdiCloseThick }}</v-icon>
|
||||
</v-btn>
|
||||
</template>
|
||||
<v-card-text>
|
||||
<v-text-field
|
||||
ref="inputDialoDuplicateFileName"
|
||||
v-model="dialogDuplicateFile.newName"
|
||||
:label="$t('Machine.ConfigFilesPanel.Name')"
|
||||
required
|
||||
:rules="nameInputRules"
|
||||
@update:error="(bool) => (isInvalidName = bool)"
|
||||
@keyup.enter="duplicateFileAction" />
|
||||
</v-card-text>
|
||||
<v-card-actions>
|
||||
<v-spacer />
|
||||
<v-btn color="" text @click="dialogDuplicateFile.show = false">
|
||||
{{ $t('Machine.ConfigFilesPanel.Cancel') }}
|
||||
</v-btn>
|
||||
<v-btn :disabled="isInvalidName" color="primary" text @click="duplicateFileAction">
|
||||
{{ $t('Machine.ConfigFilesPanel.Duplicate') }}
|
||||
</v-btn>
|
||||
</v-card-actions>
|
||||
</panel>
|
||||
</v-dialog>
|
||||
<v-dialog v-model="dialogCreateDirectory.show" max-width="400">
|
||||
<panel
|
||||
:title="$t('Machine.ConfigFilesPanel.CreateDirectory').toString()"
|
||||
@@ -340,7 +375,7 @@
|
||||
:label="$t('Machine.ConfigFilesPanel.Name')"
|
||||
required
|
||||
:rules="nameInputRules"
|
||||
@update:error="isInvalidName = !isInvalidName"
|
||||
@update:error="(bool) => (isInvalidName = bool)"
|
||||
@keyup.enter="createDirectoryAction"></v-text-field>
|
||||
</v-card-text>
|
||||
<v-card-actions>
|
||||
@@ -371,7 +406,7 @@
|
||||
:label="$t('Machine.ConfigFilesPanel.Name')"
|
||||
required
|
||||
:rules="nameInputRules"
|
||||
@update:error="isInvalidName = !isInvalidName"
|
||||
@update:error="(bool) => (isInvalidName = bool)"
|
||||
@keyup.enter="renameDirectoryAction"></v-text-field>
|
||||
</v-card-text>
|
||||
<v-card-actions>
|
||||
@@ -484,6 +519,7 @@ import {
|
||||
mdiDelete,
|
||||
mdiCloseThick,
|
||||
mdiLockOutline,
|
||||
mdiContentCopy,
|
||||
} from '@mdi/js'
|
||||
|
||||
interface contextMenu {
|
||||
@@ -550,6 +586,7 @@ export default class ConfigFilesPanel extends Mixins(BaseMixin) {
|
||||
mdiDelete = mdiDelete
|
||||
mdiCloseThick = mdiCloseThick
|
||||
mdiLockOutline = mdiLockOutline
|
||||
mdiContentCopy = mdiContentCopy
|
||||
|
||||
sortFiles = sortFiles
|
||||
formatFilesize = formatFilesize
|
||||
@@ -558,6 +595,7 @@ export default class ConfigFilesPanel extends Mixins(BaseMixin) {
|
||||
fileUpload: HTMLInputElement
|
||||
inputDialogCreateFileName: HTMLInputElement
|
||||
inputDialogRenameFileName: HTMLInputElement
|
||||
inputDialogDuplicateFileName: HTMLInputElement
|
||||
inputDialogCreateDirectoryName: HTMLInputElement
|
||||
inputDialogRenameDirectoryName: HTMLInputElement
|
||||
}
|
||||
@@ -598,6 +636,16 @@ export default class ConfigFilesPanel extends Mixins(BaseMixin) {
|
||||
modified: new Date(),
|
||||
},
|
||||
}
|
||||
private dialogDuplicateFile: dialogRenameObject = {
|
||||
show: false,
|
||||
newName: '',
|
||||
item: {
|
||||
isDirectory: false,
|
||||
filename: '',
|
||||
permissions: '',
|
||||
modified: new Date(),
|
||||
},
|
||||
}
|
||||
private dialogCreateDirectory = {
|
||||
show: false,
|
||||
name: '',
|
||||
@@ -666,6 +714,17 @@ export default class ConfigFilesPanel extends Mixins(BaseMixin) {
|
||||
|
||||
get toolbarButtons() {
|
||||
return [
|
||||
{
|
||||
text: this.$t('Machine.ConfigFilesPanel.Download'),
|
||||
color: 'primary',
|
||||
icon: mdiCloudDownload,
|
||||
loadingName: 'configDownloadZip',
|
||||
onlyWriteable: false,
|
||||
condition: this.selectedFiles.length > 0,
|
||||
click: () => {
|
||||
this.downloadSelectedFiles()
|
||||
},
|
||||
},
|
||||
{
|
||||
text: this.$t('Machine.ConfigFilesPanel.Delete'),
|
||||
color: 'error',
|
||||
@@ -702,7 +761,7 @@ export default class ConfigFilesPanel extends Mixins(BaseMixin) {
|
||||
loadingName: null,
|
||||
onlyWriteable: true,
|
||||
condition: true,
|
||||
click: this.createDirecotry,
|
||||
click: this.createDirectory,
|
||||
},
|
||||
{
|
||||
text: this.$t('Machine.ConfigFilesPanel.RefreshDirectory'),
|
||||
@@ -853,6 +912,8 @@ export default class ConfigFilesPanel extends Mixins(BaseMixin) {
|
||||
}
|
||||
|
||||
set currentPath(newVal) {
|
||||
this.selectedFiles = []
|
||||
|
||||
this.$store.dispatch('gui/saveSettingWithoutUpload', { name: 'view.configfiles.currentPath', value: newVal })
|
||||
}
|
||||
|
||||
@@ -931,7 +992,43 @@ export default class ConfigFilesPanel extends Mixins(BaseMixin) {
|
||||
window.open(href)
|
||||
}
|
||||
|
||||
createDirecotry() {
|
||||
async downloadSelectedFiles() {
|
||||
let items: string[] = []
|
||||
|
||||
const addElementToItems = async (absolutPath: string, directory: FileStateFile[]) => {
|
||||
for (const file of directory) {
|
||||
const filePath = `${absolutPath}/${file.filename}`
|
||||
|
||||
if (file.isDirectory && file.childrens) {
|
||||
await addElementToItems(filePath, file.childrens)
|
||||
|
||||
continue
|
||||
}
|
||||
|
||||
items.push(filePath)
|
||||
}
|
||||
}
|
||||
|
||||
await addElementToItems(this.absolutePath, this.selectedFiles)
|
||||
|
||||
const date = new Date()
|
||||
const month = (date.getMonth() + 1).toString().padStart(2, '0')
|
||||
const day = date.getDay().toString().padStart(2, '0')
|
||||
const hours = date.getHours().toString().padStart(2, '0')
|
||||
const minutes = date.getMinutes().toString().padStart(2, '0')
|
||||
const seconds = date.getSeconds().toString().padStart(2, '0')
|
||||
const timestamp = `${date.getFullYear()}${month}${day}-${hours}${minutes}${seconds}`
|
||||
|
||||
this.$socket.emit(
|
||||
'server.files.zip',
|
||||
{ items, dest: `config/${this.root}-${timestamp}.zip` },
|
||||
{ action: 'files/downloadZip', loading: 'configDownloadZip' }
|
||||
)
|
||||
|
||||
this.selectedFiles = []
|
||||
}
|
||||
|
||||
createDirectory() {
|
||||
this.dialogCreateDirectory.name = ''
|
||||
this.dialogCreateDirectory.show = true
|
||||
|
||||
@@ -1043,6 +1140,24 @@ export default class ConfigFilesPanel extends Mixins(BaseMixin) {
|
||||
)
|
||||
}
|
||||
|
||||
duplicateFile(item: FileStateFile) {
|
||||
this.dialogDuplicateFile.item = item
|
||||
this.dialogDuplicateFile.newName = item.filename
|
||||
this.dialogDuplicateFile.show = true
|
||||
|
||||
setTimeout(() => {
|
||||
this.$refs.inputDialogDuplicateFileName?.focus()
|
||||
}, 200)
|
||||
}
|
||||
|
||||
duplicateFileAction() {
|
||||
this.dialogDuplicateFile.show = false
|
||||
this.$socket.emit('server.files.copy', {
|
||||
source: (this.absolutePath + '/' + this.dialogDuplicateFile.item.filename).slice(1),
|
||||
dest: (this.absolutePath + '/' + this.dialogDuplicateFile.newName).slice(1),
|
||||
})
|
||||
}
|
||||
|
||||
removeFile() {
|
||||
this.$socket.emit(
|
||||
'server.files.delete_file',
|
||||
|
||||
@@ -1,11 +1,30 @@
|
||||
<template>
|
||||
<panel
|
||||
:title="$t('Machine.LogfilesPanel.Logfiles').toString()"
|
||||
:icon="mdiFileDocumentEdit"
|
||||
card-class="machine-logfiles-panel"
|
||||
:collapsible="true">
|
||||
<v-card-text :class="'text-center text-lg-left py-0'">
|
||||
<v-container pb-0 px-0>
|
||||
<div>
|
||||
<panel
|
||||
:title="$t('Machine.LogfilesPanel.Logfiles').toString()"
|
||||
:icon="mdiFileDocumentEdit"
|
||||
card-class="machine-logfiles-panel"
|
||||
:collapsible="true">
|
||||
<template #buttons>
|
||||
<v-tooltip top>
|
||||
<template #activator="{ on, attrs }">
|
||||
<v-btn
|
||||
icon
|
||||
tile
|
||||
color="primary"
|
||||
:ripple="true"
|
||||
:loading="loadings.includes('loadingBtnRolloverLogs')"
|
||||
:disabled="['printing', 'paused'].includes(printer_state)"
|
||||
v-bind="attrs"
|
||||
v-on="on"
|
||||
@click="showRolloverDialog = true">
|
||||
<v-icon>{{ mdiFileSyncOutline }}</v-icon>
|
||||
</v-btn>
|
||||
</template>
|
||||
<span>{{ $t('Machine.LogfilesPanel.Rollover') }}</span>
|
||||
</v-tooltip>
|
||||
</template>
|
||||
<v-card-text :class="'text-center text-lg-left'">
|
||||
<v-row>
|
||||
<v-col :class="'col-12' + (klipperState !== 'ready' ? 'col-md-6' : 'col-md-12') + ''">
|
||||
<v-btn
|
||||
@@ -53,23 +72,74 @@
|
||||
</v-btn>
|
||||
</v-col>
|
||||
</v-row>
|
||||
</v-container>
|
||||
</v-card-text>
|
||||
</panel>
|
||||
</v-card-text>
|
||||
</panel>
|
||||
<v-dialog :value="showRolloverDialog" persistent width="400" :fullscreen="isMobile">
|
||||
<panel
|
||||
:title="$t('Machine.LogfilesPanel.Rollover').toString()"
|
||||
card-class="machine_rollover_logfiles-dialog"
|
||||
:icon="mdiFileSyncOutline"
|
||||
:margin-bottom="false">
|
||||
<template #buttons>
|
||||
<v-btn icon tile @click="showRolloverDialog = false">
|
||||
<v-icon>{{ mdiCloseThick }}</v-icon>
|
||||
</v-btn>
|
||||
</template>
|
||||
<v-card-text>
|
||||
<v-row>
|
||||
<v-col>
|
||||
<p class="mb-0">{{ $t('Machine.LogfilesPanel.RolloverDescription') }}</p>
|
||||
</v-col>
|
||||
</v-row>
|
||||
<v-row class="mt-0">
|
||||
<v-col>
|
||||
<v-checkbox
|
||||
v-for="log in rolloverLogfiles"
|
||||
:key="log"
|
||||
v-model="selectedRolloverLogs"
|
||||
:label="capitalize(log)"
|
||||
:value="log"
|
||||
hide-details
|
||||
class="mt-0" />
|
||||
</v-col>
|
||||
</v-row>
|
||||
</v-card-text>
|
||||
<v-card-actions>
|
||||
<v-spacer />
|
||||
<v-btn text @click="showRolloverDialog = false">
|
||||
{{ $t('Machine.LogfilesPanel.Cancel') }}
|
||||
</v-btn>
|
||||
<v-btn color="primary" text @click="btnRolloverLogs">
|
||||
{{ $t('Machine.LogfilesPanel.Accept') }}
|
||||
</v-btn>
|
||||
</v-card-actions>
|
||||
</panel>
|
||||
</v-dialog>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<script lang="ts">
|
||||
import { Component, Mixins } from 'vue-property-decorator'
|
||||
import { Component, Mixins, Watch } from 'vue-property-decorator'
|
||||
import BaseMixin from '../../mixins/base'
|
||||
import Panel from '@/components/ui/Panel.vue'
|
||||
import { FileStateFile } from '@/store/files/types'
|
||||
import { mdiDownload, mdiFileDocumentEdit } from '@mdi/js'
|
||||
import { mdiDownload, mdiFileDocumentEdit, mdiCloseThick, mdiFileSyncOutline } from '@mdi/js'
|
||||
import { rolloverLogfiles } from '@/store/variables'
|
||||
import { capitalize } from '@/plugins/helpers'
|
||||
@Component({
|
||||
components: { Panel },
|
||||
})
|
||||
export default class LogfilesPanel extends Mixins(BaseMixin) {
|
||||
mdiFileDocumentEdit = mdiFileDocumentEdit
|
||||
mdiDownload = mdiDownload
|
||||
mdiCloseThick = mdiCloseThick
|
||||
mdiFileSyncOutline = mdiFileSyncOutline
|
||||
|
||||
rolloverLogfiles = rolloverLogfiles
|
||||
capitalize = capitalize
|
||||
|
||||
private showRolloverDialog = false
|
||||
private selectedRolloverLogs: string[] = []
|
||||
|
||||
get logfiles() {
|
||||
return this.$store.getters['files/getDirectory']('logs')?.childrens ?? []
|
||||
@@ -85,6 +155,10 @@ export default class LogfilesPanel extends Mixins(BaseMixin) {
|
||||
return sonarLog?.size > 0
|
||||
}
|
||||
|
||||
get loadingRolloverLogs() {
|
||||
return this.loadings.filter((log) => log.startsWith('rolloverLog_')).length > 0
|
||||
}
|
||||
|
||||
downloadLog(event: any) {
|
||||
event.preventDefault()
|
||||
let href = ''
|
||||
@@ -93,5 +167,24 @@ export default class LogfilesPanel extends Mixins(BaseMixin) {
|
||||
|
||||
window.open(href)
|
||||
}
|
||||
|
||||
btnRolloverLogs() {
|
||||
if (this.selectedRolloverLogs.length === 0) return
|
||||
|
||||
this.selectedRolloverLogs.forEach((name) => {
|
||||
this.$socket.emit(
|
||||
'server.logs.rollover',
|
||||
{ application: name },
|
||||
{ loading: 'rolloverLog_' + name, action: 'files/rolloverLog' }
|
||||
)
|
||||
})
|
||||
|
||||
this.selectedRolloverLogs = []
|
||||
}
|
||||
|
||||
@Watch('loadingRolloverLogs')
|
||||
loadingRolloverLogsChanged(newVal: boolean) {
|
||||
if (newVal) this.showRolloverDialog = false
|
||||
}
|
||||
}
|
||||
</script>
|
||||
@@ -30,7 +30,7 @@
|
||||
<v-divider class="mb-2"></v-divider>
|
||||
</template>
|
||||
<v-card-actions class="justify-center pb-3">
|
||||
<v-btn small href="https://docs.mainsail.xyz/configuration" target="_blank">
|
||||
<v-btn small href="https://docs.mainsail.xyz/setup/configuration" target="_blank">
|
||||
<v-icon small class="mr-1">{{ mdiInformation }}</v-icon>
|
||||
{{ $t('Panels.MinSettingsPanel.MoreInformation') }}
|
||||
</v-btn>
|
||||
|
||||
@@ -81,7 +81,7 @@ svg {
|
||||
stroke-width="1" />
|
||||
</g>
|
||||
|
||||
<g v-for="(object, index) in printing_objects" :key="index">
|
||||
<g v-for="(object, index) in printing_objects_with_polygons" :key="index">
|
||||
<polygon
|
||||
:points="object.polygon.map((point) => convertX(point[0]) + ',' + convertY(point[1])).join(' ')"
|
||||
style="cursor: pointer"
|
||||
@@ -124,6 +124,10 @@ export default class StatusPanelObjectsDialogMap extends Mixins(BaseMixin) {
|
||||
return this.$store.state.printer.exclude_object?.objects ?? []
|
||||
}
|
||||
|
||||
get printing_objects_with_polygons() {
|
||||
return this.printing_objects.filter((eobject: any) => 'polygon' in eobject)
|
||||
}
|
||||
|
||||
get current_object() {
|
||||
return this.$store.state.printer.exclude_object?.current_object ?? null
|
||||
}
|
||||
@@ -144,20 +148,32 @@ export default class StatusPanelObjectsDialogMap extends Mixins(BaseMixin) {
|
||||
)
|
||||
}
|
||||
|
||||
get toolhead() {
|
||||
return this.$store.state.printer.toolhead ?? {}
|
||||
}
|
||||
|
||||
get axis_minimum() {
|
||||
return this.toolhead.axis_minimum ?? []
|
||||
}
|
||||
|
||||
get axis_maximum() {
|
||||
return this.toolhead.axis_maximum ?? []
|
||||
}
|
||||
|
||||
get stepperXmin() {
|
||||
return this.$store.state.printer.configfile?.settings?.stepper_x?.position_min ?? 0
|
||||
return this.axis_minimum[0] ?? 0
|
||||
}
|
||||
|
||||
get stepperXmax() {
|
||||
return this.$store.state.printer.configfile?.settings?.stepper_x?.position_max ?? 0
|
||||
return this.axis_maximum[0] ?? 200
|
||||
}
|
||||
|
||||
get stepperYmin() {
|
||||
return this.$store.state.printer.configfile?.settings?.stepper_y?.position_min ?? 200
|
||||
return this.axis_minimum[1] ?? 0
|
||||
}
|
||||
|
||||
get stepperYmax() {
|
||||
return this.$store.state.printer.configfile?.settings?.stepper_y?.position_max ?? 200
|
||||
return this.axis_maximum[1] ?? 200
|
||||
}
|
||||
|
||||
get absoluteX() {
|
||||
|
||||
@@ -83,6 +83,12 @@
|
||||
<v-icon class="mr-1">{{ mdiPlaylistPlus }}</v-icon>
|
||||
{{ $t('Files.AddToQueue') }}
|
||||
</v-list-item>
|
||||
<v-list-item
|
||||
v-if="moonrakerComponents.includes('job_queue')"
|
||||
@click="openAddBatchToQueueDialog(contextMenu.item)">
|
||||
<v-icon class="mr-1">{{ mdiPlaylistPlus }}</v-icon>
|
||||
{{ $t('Files.AddBatchToQueue') }}
|
||||
</v-list-item>
|
||||
<v-list-item
|
||||
v-if="contextMenu.item.preheat_gcode !== null"
|
||||
:disabled="['error', 'printing', 'paused'].includes(printer_state)"
|
||||
@@ -137,6 +143,53 @@
|
||||
</v-card-actions>
|
||||
</panel>
|
||||
</v-dialog>
|
||||
<v-dialog v-model="dialogAddBatchToQueue.show" max-width="400">
|
||||
<panel
|
||||
:title="$t('Files.AddToQueue').toString()"
|
||||
card-class="gcode-files-add-to-queue-dialog"
|
||||
:icon="mdiPlaylistPlus"
|
||||
:margin-bottom="false">
|
||||
<template #buttons>
|
||||
<v-btn icon tile @click="dialogAddBatchToQueue.show = false">
|
||||
<v-icon>{{ mdiCloseThick }}</v-icon>
|
||||
</v-btn>
|
||||
</template>
|
||||
|
||||
<v-card-text>
|
||||
<v-text-field
|
||||
ref="inputFieldAddToQueueCount"
|
||||
v-model="dialogAddBatchToQueue.count"
|
||||
:label="$t('Files.Count')"
|
||||
required
|
||||
hide-spin-buttons
|
||||
type="number"
|
||||
:rules="countInputRules"
|
||||
@keyup.enter="addBatchToQueueAction">
|
||||
<template #append-outer>
|
||||
<div class="_spin_button_group">
|
||||
<v-btn class="mt-n3" icon plain small @click="dialogAddBatchToQueue.count++">
|
||||
<v-icon>{{ mdiChevronUp }}</v-icon>
|
||||
</v-btn>
|
||||
<v-btn
|
||||
:disabled="dialogAddBatchToQueue.count <= 1"
|
||||
class="mb-n3"
|
||||
icon
|
||||
plain
|
||||
small
|
||||
@click="dialogAddBatchToQueue.count--">
|
||||
<v-icon>{{ mdiChevronDown }}</v-icon>
|
||||
</v-btn>
|
||||
</div>
|
||||
</template>
|
||||
</v-text-field>
|
||||
</v-card-text>
|
||||
<v-card-actions>
|
||||
<v-spacer></v-spacer>
|
||||
<v-btn color="" text @click="dialogAddBatchToQueue.show = false">{{ $t('Files.Cancel') }}</v-btn>
|
||||
<v-btn color="primary" text @click="addBatchToQueueAction">{{ $t('Files.AddToQueue') }}</v-btn>
|
||||
</v-card-actions>
|
||||
</panel>
|
||||
</v-dialog>
|
||||
</v-card>
|
||||
</template>
|
||||
|
||||
@@ -148,6 +201,8 @@ import ControlMixin from '@/components/mixins/control'
|
||||
import { FileStateGcodefile } from '@/store/files/types'
|
||||
import StartPrintDialog from '@/components/dialogs/StartPrintDialog.vue'
|
||||
import {
|
||||
mdiChevronDown,
|
||||
mdiChevronUp,
|
||||
mdiFile,
|
||||
mdiPlay,
|
||||
mdiPlaylistPlus,
|
||||
@@ -166,12 +221,20 @@ interface dialogRenameObject {
|
||||
item: FileStateGcodefile
|
||||
}
|
||||
|
||||
interface dialogAddBatchToQueue {
|
||||
show: boolean
|
||||
count: number
|
||||
item: FileStateGcodefile
|
||||
}
|
||||
|
||||
@Component({
|
||||
components: {
|
||||
StartPrintDialog,
|
||||
},
|
||||
})
|
||||
export default class StatusPanelGcodefiles extends Mixins(BaseMixin, ControlMixin) {
|
||||
mdiChevronDown = mdiChevronDown
|
||||
mdiChevronUp = mdiChevronUp
|
||||
mdiFile = mdiFile
|
||||
mdiPlay = mdiPlay
|
||||
mdiPlaylistPlus = mdiPlaylistPlus
|
||||
@@ -199,6 +262,7 @@ export default class StatusPanelGcodefiles extends Mixins(BaseMixin, ControlMixi
|
||||
last_status: null,
|
||||
last_start_time: null,
|
||||
last_total_duration: null,
|
||||
preheat_gcode: null,
|
||||
}
|
||||
private currentPath = ''
|
||||
private contentTdWidth = 100
|
||||
@@ -222,6 +286,17 @@ export default class StatusPanelGcodefiles extends Mixins(BaseMixin, ControlMixi
|
||||
item: { ...this.dialogFile },
|
||||
}
|
||||
|
||||
private dialogAddBatchToQueue: dialogAddBatchToQueue = {
|
||||
show: false,
|
||||
count: 1,
|
||||
item: { ...this.contextMenu.item },
|
||||
}
|
||||
|
||||
private countInputRules = [
|
||||
(value: string) => !!value || this.$t('JobQueue.InvalidCountEmpty'),
|
||||
(value: string) => parseInt(value) > 0 || this.$t('JobQueue.InvalidCountGreaterZero'),
|
||||
]
|
||||
|
||||
get gcodeFiles() {
|
||||
let gcodes = this.$store.getters['files/getAllGcodes'] ?? []
|
||||
gcodes = gcodes
|
||||
@@ -343,6 +418,26 @@ export default class StatusPanelGcodefiles extends Mixins(BaseMixin, ControlMixi
|
||||
this.$store.dispatch('server/jobQueue/addToQueue', [item.filename])
|
||||
}
|
||||
|
||||
openAddBatchToQueueDialog(item: FileStateGcodefile) {
|
||||
this.dialogAddBatchToQueue.show = true
|
||||
this.dialogAddBatchToQueue.count = 1
|
||||
this.dialogAddBatchToQueue.item = item
|
||||
}
|
||||
|
||||
async addBatchToQueueAction() {
|
||||
let filename = [this.currentPath, this.dialogAddBatchToQueue.item.filename].join('/')
|
||||
if (filename.startsWith('/')) filename = filename.slice(1)
|
||||
|
||||
const array: string[] = []
|
||||
for (let i = 0; i < this.dialogAddBatchToQueue.count; i++) {
|
||||
array.push(filename)
|
||||
}
|
||||
|
||||
await this.$store.dispatch('server/jobQueue/addToQueue', array)
|
||||
|
||||
this.dialogAddBatchToQueue.show = false
|
||||
}
|
||||
|
||||
view3D(item: FileStateGcodefile) {
|
||||
this.$router.push({ path: '/viewer', query: { filename: 'gcodes/' + item.filename } })
|
||||
}
|
||||
@@ -419,8 +514,15 @@ export default class StatusPanelGcodefiles extends Mixins(BaseMixin, ControlMixi
|
||||
}
|
||||
</script>
|
||||
|
||||
<style lang="scss" scoped>
|
||||
<style scoped>
|
||||
.filesGcodeCard {
|
||||
position: relative;
|
||||
}
|
||||
|
||||
._spin_button_group {
|
||||
width: 24px;
|
||||
margin-top: -6px;
|
||||
margin-left: -6px;
|
||||
margin-bottom: -6px;
|
||||
}
|
||||
</style>
|
||||
@@ -5,77 +5,27 @@
|
||||
hide-default-footer
|
||||
class="dashboard-jobqueue-table"
|
||||
sort-by="time_added"
|
||||
mobile-breakpoint="0"
|
||||
@current-items="setFirst">
|
||||
mobile-breakpoint="0">
|
||||
<template #no-data>
|
||||
<div class="text-center">{{ $t('Panels.StatusPanel.EmptyJobqueue') }}</div>
|
||||
</template>
|
||||
|
||||
<template #item="{ item }">
|
||||
<tr
|
||||
<template #item="{ item, index }">
|
||||
<jobqueue-entry
|
||||
:key="item.job_id"
|
||||
v-longpress:600="(e) => showContextMenu(e, item)"
|
||||
class="cursor-pointer"
|
||||
@contextmenu="showContextMenu($event, item)">
|
||||
<td class="pr-0 text-center" style="width: 32px">
|
||||
<template v-if="getSmallThumbnail(item) && getBigThumbnail(item)">
|
||||
<v-tooltip
|
||||
v-if="!item.isDirectory && getSmallThumbnail(item) && getBigThumbnail(item)"
|
||||
top
|
||||
content-class="tooltip__content-opacity1">
|
||||
<template #activator="{ on, attrs }">
|
||||
<vue-load-image>
|
||||
<img
|
||||
slot="image"
|
||||
:src="getSmallThumbnail(item)"
|
||||
width="32"
|
||||
height="32"
|
||||
v-bind="attrs"
|
||||
v-on="on" />
|
||||
<v-progress-circular
|
||||
slot="preloader"
|
||||
indeterminate
|
||||
color="primary"></v-progress-circular>
|
||||
<v-icon slot="error">{{ mdiFile }}</v-icon>
|
||||
</vue-load-image>
|
||||
</template>
|
||||
<span><img :src="getBigThumbnail(item)" width="250" /></span>
|
||||
</v-tooltip>
|
||||
</template>
|
||||
<template v-else-if="getSmallThumbnail(item)">
|
||||
<vue-load-image>
|
||||
<img slot="image" :src="getSmallThumbnail(item)" width="32" height="32" />
|
||||
<v-progress-circular
|
||||
slot="preloader"
|
||||
indeterminate
|
||||
color="primary"></v-progress-circular>
|
||||
<v-icon slot="error">{{ mdiFile }}</v-icon>
|
||||
</vue-load-image>
|
||||
</template>
|
||||
<template v-else>
|
||||
<v-icon>{{ mdiFile }}</v-icon>
|
||||
</template>
|
||||
</td>
|
||||
<td class="pr-2">
|
||||
<template v-if="item.isFirst && !printerIsPrinting">
|
||||
<v-btn icon color="success" class="float-right minwidth-0 mt-1" @click="startJobqueue">
|
||||
<v-icon>{{ mdiPlay }}</v-icon>
|
||||
</v-btn>
|
||||
</template>
|
||||
<div class="d-block text-truncate" :style="styleContentTdWidth">{{ item.filename }}</div>
|
||||
<small v-if="existMetadata(item)">{{ getDescription(item) }}</small>
|
||||
</td>
|
||||
</tr>
|
||||
:item="item"
|
||||
:is-first="index === 0"
|
||||
:content-td-width="contentTdWidth" />
|
||||
</template>
|
||||
<template v-if="jobs.length > jobsTable.length" #body.append>
|
||||
<template v-if="jobsRest.length" #body.append>
|
||||
<tr>
|
||||
<td class="pr-0 text-center" style="width: 32px">
|
||||
<v-icon>{{ mdiFileMultiple }}</v-icon>
|
||||
</td>
|
||||
<td class="pr-2">
|
||||
{{
|
||||
$tc('Panels.StatusPanel.JobqueueMoreFiles', jobs.length - jobsTable.length, {
|
||||
count: jobs.length - jobsTable.length,
|
||||
$tc('Panels.StatusPanel.JobqueueMoreFiles', restJobsLength, {
|
||||
count: restJobsLength,
|
||||
})
|
||||
}}
|
||||
<br />
|
||||
@@ -85,14 +35,6 @@
|
||||
</template>
|
||||
</v-data-table>
|
||||
<resize-observer @notify="handleResize" />
|
||||
<v-menu v-model="contextMenu.shown" :position-x="contextMenu.x" :position-y="contextMenu.y" absolute offset-y>
|
||||
<v-list>
|
||||
<v-list-item @click="removeFromJobqueue(contextMenu.item)">
|
||||
<v-icon class="mr-1">{{ mdiPlaylistRemove }}</v-icon>
|
||||
{{ $t('JobQueue.RemoveFromQueue') }}
|
||||
</v-list-item>
|
||||
</v-list>
|
||||
</v-menu>
|
||||
</v-card>
|
||||
</template>
|
||||
|
||||
@@ -101,24 +43,15 @@ import Component from 'vue-class-component'
|
||||
import { Mixins } from 'vue-property-decorator'
|
||||
import BaseMixin from '@/components/mixins/base'
|
||||
import { ServerJobQueueStateJob } from '@/store/server/jobQueue/types'
|
||||
import { mdiFile, mdiPlay, mdiFileMultiple, mdiPlaylistRemove } from '@mdi/js'
|
||||
import { mdiFileMultiple } from '@mdi/js'
|
||||
import JobqueueEntry from '@/components/panels/Status/JobqueueEntry.vue'
|
||||
@Component({
|
||||
components: {},
|
||||
components: { JobqueueEntry },
|
||||
})
|
||||
export default class StatusPanelJobqueue extends Mixins(BaseMixin) {
|
||||
mdiFile = mdiFile
|
||||
mdiPlay = mdiPlay
|
||||
mdiFileMultiple = mdiFileMultiple
|
||||
mdiPlaylistRemove = mdiPlaylistRemove
|
||||
|
||||
private contentTdWidth = 100
|
||||
private contextMenu = {
|
||||
shown: false,
|
||||
touchTimer: undefined,
|
||||
x: 0,
|
||||
y: 0,
|
||||
item: {},
|
||||
}
|
||||
|
||||
declare $refs: {
|
||||
filesJobqueue: any
|
||||
@@ -136,15 +69,27 @@ export default class StatusPanelJobqueue extends Mixins(BaseMixin) {
|
||||
return this.jobs.slice(5)
|
||||
}
|
||||
|
||||
get restJobsLength() {
|
||||
let count = 0
|
||||
|
||||
this.jobsRest.forEach((item: ServerJobQueueStateJob) => {
|
||||
count += (item.combinedIds?.length ?? 0) + 1
|
||||
})
|
||||
|
||||
return count
|
||||
}
|
||||
|
||||
get descriptionRestJobs() {
|
||||
let filamentLength = 0
|
||||
let filamentWeight = 0
|
||||
let printTime = 0
|
||||
|
||||
this.jobsRest.forEach((item: ServerJobQueueStateJob) => {
|
||||
if (item.metadata?.filament_total) filamentLength += item.metadata?.filament_total
|
||||
if (item.metadata?.filament_weight_total) filamentWeight += item.metadata?.filament_weight_total
|
||||
if (item.metadata?.estimated_time) printTime = item.metadata.estimated_time
|
||||
const count = (item.combinedIds?.length ?? 0) + 1
|
||||
|
||||
if (item.metadata?.filament_total) filamentLength += item.metadata?.filament_total * count
|
||||
if (item.metadata?.filament_weight_total) filamentWeight += item.metadata?.filament_weight_total * count
|
||||
if (item.metadata?.estimated_time) printTime = item.metadata.estimated_time * count
|
||||
})
|
||||
|
||||
let output = ''
|
||||
@@ -163,49 +108,6 @@ export default class StatusPanelJobqueue extends Mixins(BaseMixin) {
|
||||
return output
|
||||
}
|
||||
|
||||
get styleContentTdWidth() {
|
||||
return `width: ${this.contentTdWidth}px;`
|
||||
}
|
||||
|
||||
getSmallThumbnail(item: ServerJobQueueStateJob) {
|
||||
return this.$store.getters['server/jobQueue/getSmallThumbnail'](item)
|
||||
}
|
||||
|
||||
getBigThumbnail(item: ServerJobQueueStateJob) {
|
||||
return this.$store.getters['server/jobQueue/getBigThumbnail'](item)
|
||||
}
|
||||
|
||||
getDescription(item: ServerJobQueueStateJob) {
|
||||
let output = ''
|
||||
|
||||
output += this.$t('Panels.StatusPanel.Filament') + ': '
|
||||
if (item.metadata?.filament_total || item.metadata.filament_weight_total) {
|
||||
if (item.metadata?.filament_total) output += item.metadata.filament_total.toFixed() + ' mm'
|
||||
if (item.metadata?.filament_total && item.metadata.filament_weight_total) output += ' / '
|
||||
if (item.metadata?.filament_weight_total) output += item.metadata.filament_weight_total.toFixed(2) + ' g'
|
||||
} else output += '--'
|
||||
|
||||
output += ', ' + this.$t('Panels.StatusPanel.PrintTime') + ': '
|
||||
if (item.metadata?.estimated_time) output += this.formatPrintTime(item.metadata.estimated_time)
|
||||
else output += '--'
|
||||
|
||||
return output
|
||||
}
|
||||
|
||||
existMetadata(item: ServerJobQueueStateJob) {
|
||||
return item?.metadata?.metadataPulled
|
||||
}
|
||||
|
||||
setFirst(currItems: ServerJobQueueStateJob[]) {
|
||||
// first check that actually exists values
|
||||
if (currItems.length) {
|
||||
// toggle all to false
|
||||
currItems.forEach((x: ServerJobQueueStateJob) => (x.isFirst = false))
|
||||
// just set first to true
|
||||
currItems[0].isFirst = true
|
||||
}
|
||||
}
|
||||
|
||||
formatPrintTime(totalSeconds: number) {
|
||||
if (totalSeconds) {
|
||||
let output = ''
|
||||
@@ -232,27 +134,10 @@ export default class StatusPanelJobqueue extends Mixins(BaseMixin) {
|
||||
return '--'
|
||||
}
|
||||
|
||||
showContextMenu(e: any, item: ServerJobQueueStateJob) {
|
||||
if (!this.contextMenu.shown) {
|
||||
e?.preventDefault()
|
||||
this.contextMenu.shown = true
|
||||
this.contextMenu.x = e?.clientX || e?.pageX || window.screenX / 2
|
||||
this.contextMenu.y = e?.clientY || e?.pageY || window.screenY / 2
|
||||
this.contextMenu.item = item
|
||||
this.$nextTick(() => {
|
||||
this.contextMenu.shown = true
|
||||
})
|
||||
}
|
||||
}
|
||||
|
||||
startJobqueue() {
|
||||
this.$store.dispatch('server/jobQueue/start')
|
||||
}
|
||||
|
||||
removeFromJobqueue(item: ServerJobQueueStateJob) {
|
||||
this.$store.dispatch('server/jobQueue/deleteFromQueue', [item.job_id])
|
||||
}
|
||||
|
||||
mounted() {
|
||||
setTimeout(() => {
|
||||
this.calcContentTdWidth()
|
||||
|
||||
@@ -0,0 +1,271 @@
|
||||
<template>
|
||||
<tr
|
||||
v-longpress:600="(e) => showContextMenu(e, item)"
|
||||
class="cursor-pointer"
|
||||
@contextmenu="showContextMenu($event, item)">
|
||||
<td class="pr-0 text-center" style="width: 32px">
|
||||
<template v-if="smallThumbnail && bigThumbnail">
|
||||
<v-tooltip v-if="smallThumbnail && bigThumbnail" top content-class="tooltip__content-opacity1">
|
||||
<template #activator="{ on, attrs }">
|
||||
<vue-load-image>
|
||||
<img slot="image" :src="smallThumbnail" width="32" height="32" v-bind="attrs" v-on="on" />
|
||||
<div slot="preloader">
|
||||
<v-progress-circular indeterminate color="primary" />
|
||||
</div>
|
||||
<div slot="error">
|
||||
<v-icon>{{ mdiFile }}</v-icon>
|
||||
</div>
|
||||
</vue-load-image>
|
||||
</template>
|
||||
<span><img :src="bigThumbnail" width="250" /></span>
|
||||
</v-tooltip>
|
||||
</template>
|
||||
<template v-else-if="smallThumbnail">
|
||||
<vue-load-image>
|
||||
<img slot="image" :src="smallThumbnail" width="32" height="32" />
|
||||
<div slot="preloader">
|
||||
<v-progress-circular indeterminate color="primary" />
|
||||
</div>
|
||||
<div slot="error">
|
||||
<v-icon>{{ mdiFile }}</v-icon>
|
||||
</div>
|
||||
</vue-load-image>
|
||||
</template>
|
||||
<template v-else>
|
||||
<v-icon>{{ mdiFile }}</v-icon>
|
||||
</template>
|
||||
</td>
|
||||
<td class="pr-2">
|
||||
<template v-if="isFirst && !printerIsPrinting">
|
||||
<v-btn icon color="success" class="float-right minwidth-0 mt-1" @click="startJobqueue">
|
||||
<v-icon>{{ mdiPlay }}</v-icon>
|
||||
</v-btn>
|
||||
</template>
|
||||
<div class="d-block text-truncate" :style="styleContentTdWidth">
|
||||
<strong v-if="item.combinedIds.length">{{ item.combinedIds.length + 1 }}x</strong>
|
||||
{{ item.filename }}
|
||||
</div>
|
||||
<small v-if="item?.metadata?.metadataPulled">{{ description }}</small>
|
||||
</td>
|
||||
<v-menu v-model="contextMenu.shown" :position-x="contextMenu.x" :position-y="contextMenu.y" absolute offset-y>
|
||||
<v-list>
|
||||
<v-list-item @click="openChangeCountDialog(contextMenu.item)">
|
||||
<v-icon class="mr-1">{{ mdiCounter }}</v-icon>
|
||||
{{ $t('JobQueue.ChangeCount') }}
|
||||
</v-list-item>
|
||||
<v-list-item @click="removeFromJobqueue(contextMenu.item)">
|
||||
<v-icon class="mr-1">{{ mdiPlaylistRemove }}</v-icon>
|
||||
{{ $t('JobQueue.RemoveFromQueue') }}
|
||||
</v-list-item>
|
||||
</v-list>
|
||||
</v-menu>
|
||||
<v-dialog v-model="dialogChangeCount.show" max-width="400">
|
||||
<panel
|
||||
:title="$t('JobQueue.ChangeCount').toString()"
|
||||
:icon="mdiCounter"
|
||||
card-class="jobqueue-change-count-dialog"
|
||||
:margin-bottom="false">
|
||||
<template #buttons>
|
||||
<v-btn icon tile @click="dialogChangeCount.show = false">
|
||||
<v-icon>{{ mdiCloseThick }}</v-icon>
|
||||
</v-btn>
|
||||
</template>
|
||||
|
||||
<v-card-text>
|
||||
<v-text-field
|
||||
ref="inputFieldAddToQueueCount"
|
||||
v-model="dialogChangeCount.count"
|
||||
:label="$t('JobQueue.Count')"
|
||||
required
|
||||
:rules="countInputRules"
|
||||
hide-spin-buttons
|
||||
type="number"
|
||||
@keyup.enter="changeCountAction">
|
||||
<template #append-outer>
|
||||
<div class="_spin_button_group">
|
||||
<v-btn class="mt-n3" icon plain small @click="dialogChangeCount.count++">
|
||||
<v-icon>{{ mdiChevronUp }}</v-icon>
|
||||
</v-btn>
|
||||
<v-btn
|
||||
:disabled="dialogChangeCount.count <= 1"
|
||||
class="mb-n3"
|
||||
icon
|
||||
plain
|
||||
small
|
||||
@click="dialogChangeCount.count--">
|
||||
<v-icon>{{ mdiChevronDown }}</v-icon>
|
||||
</v-btn>
|
||||
</div>
|
||||
</template>
|
||||
</v-text-field>
|
||||
</v-card-text>
|
||||
<v-card-actions>
|
||||
<v-spacer />
|
||||
<v-btn color="" text @click="dialogChangeCount.show = false">{{ $t('JobQueue.Cancel') }}</v-btn>
|
||||
<v-btn color="primary" text @click="changeCountAction">{{ $t('JobQueue.ChangeCount') }}</v-btn>
|
||||
</v-card-actions>
|
||||
</panel>
|
||||
</v-dialog>
|
||||
</tr>
|
||||
</template>
|
||||
|
||||
<script lang="ts">
|
||||
import Component from 'vue-class-component'
|
||||
import { Mixins, Prop } from 'vue-property-decorator'
|
||||
import BaseMixin from '@/components/mixins/base'
|
||||
import { ServerJobQueueStateJob } from '@/store/server/jobQueue/types'
|
||||
import { mdiChevronDown, mdiChevronUp, mdiCloseThick, mdiCounter, mdiFile, mdiPlay, mdiPlaylistRemove } from '@mdi/js'
|
||||
import NumberInput from '@/components/inputs/NumberInput.vue'
|
||||
@Component({
|
||||
components: { NumberInput },
|
||||
})
|
||||
export default class StatusPanelJobqueueEntry extends Mixins(BaseMixin) {
|
||||
mdiChevronDown = mdiChevronDown
|
||||
mdiChevronUp = mdiChevronUp
|
||||
mdiCloseThick = mdiCloseThick
|
||||
mdiCounter = mdiCounter
|
||||
mdiFile = mdiFile
|
||||
mdiPlay = mdiPlay
|
||||
mdiPlaylistRemove = mdiPlaylistRemove
|
||||
|
||||
@Prop({ type: Object, required: true }) declare item: ServerJobQueueStateJob
|
||||
@Prop({ type: Number, required: true }) declare contentTdWidth: number
|
||||
@Prop({ type: Boolean, default: false }) declare isFirst: boolean
|
||||
private contextMenu: {
|
||||
shown: boolean
|
||||
x: number
|
||||
y: number
|
||||
item: ServerJobQueueStateJob | any
|
||||
} = {
|
||||
shown: false,
|
||||
x: 0,
|
||||
y: 0,
|
||||
item: {},
|
||||
}
|
||||
|
||||
private dialogChangeCount: {
|
||||
show: boolean
|
||||
count: number
|
||||
item: ServerJobQueueStateJob | any
|
||||
} = {
|
||||
show: false,
|
||||
count: 1,
|
||||
item: {},
|
||||
}
|
||||
|
||||
private countInputRules = [
|
||||
(value: string) => !!value || this.$t('JobQueue.InvalidCountEmpty'),
|
||||
(value: string) => parseInt(value) > 0 || this.$t('JobQueue.InvalidCountGreaterZero'),
|
||||
]
|
||||
|
||||
declare $refs: {
|
||||
filesJobqueue: any
|
||||
}
|
||||
|
||||
get styleContentTdWidth() {
|
||||
return `width: ${this.contentTdWidth}px;`
|
||||
}
|
||||
|
||||
get smallThumbnail() {
|
||||
return this.$store.getters['server/jobQueue/getSmallThumbnail'](this.item)
|
||||
}
|
||||
|
||||
get bigThumbnail() {
|
||||
return this.$store.getters['server/jobQueue/getBigThumbnail'](this.item)
|
||||
}
|
||||
|
||||
get description() {
|
||||
let output = ''
|
||||
|
||||
output += this.$t('Panels.StatusPanel.Filament') + ': '
|
||||
if (this.item.metadata?.filament_total || this.item.metadata.filament_weight_total) {
|
||||
if (this.item.metadata?.filament_total) output += this.item.metadata.filament_total.toFixed() + ' mm'
|
||||
if (this.item.metadata?.filament_total && this.item.metadata.filament_weight_total) output += ' / '
|
||||
if (this.item.metadata?.filament_weight_total)
|
||||
output += this.item.metadata.filament_weight_total.toFixed(2) + ' g'
|
||||
} else output += '--'
|
||||
|
||||
output += ', ' + this.$t('Panels.StatusPanel.PrintTime') + ': '
|
||||
if (this.item.metadata?.estimated_time) output += this.formatPrintTime(this.item.metadata.estimated_time)
|
||||
else output += '--'
|
||||
|
||||
return output
|
||||
}
|
||||
|
||||
formatPrintTime(totalSeconds: number) {
|
||||
if (totalSeconds) {
|
||||
let output = ''
|
||||
|
||||
const days = Math.floor(totalSeconds / (3600 * 24))
|
||||
if (days) {
|
||||
totalSeconds %= 3600 * 24
|
||||
output += days + 'd'
|
||||
}
|
||||
|
||||
const hours = Math.floor(totalSeconds / 3600)
|
||||
totalSeconds %= 3600
|
||||
if (hours) output += ' ' + hours + 'h'
|
||||
|
||||
const minutes = Math.floor(totalSeconds / 60)
|
||||
if (minutes) output += ' ' + minutes + 'm'
|
||||
|
||||
const seconds = totalSeconds % 60
|
||||
if (seconds) output += ' ' + seconds.toFixed(0) + 's'
|
||||
|
||||
return output
|
||||
}
|
||||
|
||||
return '--'
|
||||
}
|
||||
|
||||
showContextMenu(e: any, item: ServerJobQueueStateJob) {
|
||||
if (!this.contextMenu.shown) {
|
||||
e?.preventDefault()
|
||||
this.contextMenu.shown = true
|
||||
this.contextMenu.x = e?.clientX || e?.pageX || window.screenX / 2
|
||||
this.contextMenu.y = e?.clientY || e?.pageY || window.screenY / 2
|
||||
this.contextMenu.item = item
|
||||
this.$nextTick(() => {
|
||||
this.contextMenu.shown = true
|
||||
})
|
||||
}
|
||||
}
|
||||
|
||||
startJobqueue() {
|
||||
this.$store.dispatch('server/jobQueue/start')
|
||||
}
|
||||
|
||||
removeFromJobqueue(item: ServerJobQueueStateJob) {
|
||||
const ids = [...(item.combinedIds ?? [])]
|
||||
ids.push(item.job_id)
|
||||
|
||||
this.$store.dispatch('server/jobQueue/deleteFromQueue', ids)
|
||||
}
|
||||
|
||||
openChangeCountDialog(item: ServerJobQueueStateJob) {
|
||||
this.dialogChangeCount.show = true
|
||||
this.dialogChangeCount.count = (item.combinedIds?.length ?? 0) + 1
|
||||
this.dialogChangeCount.item = item
|
||||
}
|
||||
|
||||
changeCountAction() {
|
||||
this.$store.dispatch('server/jobQueue/changeCount', {
|
||||
job_id: this.dialogChangeCount.item.job_id,
|
||||
count: this.dialogChangeCount.count,
|
||||
})
|
||||
this.dialogChangeCount.show = false
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
||||
<style lang="scss" scoped>
|
||||
.filesJobqueue {
|
||||
position: relative;
|
||||
}
|
||||
._spin_button_group {
|
||||
width: 24px;
|
||||
margin-top: -6px;
|
||||
margin-left: -6px;
|
||||
margin-bottom: -6px;
|
||||
}
|
||||
</style>
|
||||
@@ -0,0 +1,225 @@
|
||||
<style lang="scss" scoped></style>
|
||||
|
||||
<template>
|
||||
<div>
|
||||
<v-dialog v-model="showDialog" width="400" persistent :fullscreen="isMobile">
|
||||
<panel
|
||||
:title="$t('Panels.StatusPanel.PauseAtLayer.PauseAtLayer').toString()"
|
||||
:icon="mdiLayersPlus"
|
||||
card-class="pause-at-layer-dialog"
|
||||
:margin-bottom="false">
|
||||
<template #buttons>
|
||||
<v-btn icon tile @click="hideDialog">
|
||||
<v-icon>{{ mdiCloseThick }}</v-icon>
|
||||
</v-btn>
|
||||
</template>
|
||||
<v-card-text>
|
||||
<v-row v-if="type === 'atLayer' && macroSettingsPauseAtLayerEnable">
|
||||
<v-col>
|
||||
<v-alert text type="warning" border="left">
|
||||
{{
|
||||
$t('Panels.StatusPanel.PauseAtLayer.DescriptionPauseAtLayerActive', {
|
||||
layer: macroSettingsPauseAtLayerLayer,
|
||||
call: macroSettingsPauseAtLayerCall,
|
||||
})
|
||||
}}
|
||||
</v-alert>
|
||||
</v-col>
|
||||
</v-row>
|
||||
<v-row v-if="type === 'nextLayer' && macroSettingsPauseNextLayerEnable">
|
||||
<v-col>
|
||||
<v-alert text type="warning" border="left">
|
||||
{{
|
||||
$t('Panels.StatusPanel.PauseAtLayer.DescriptionPauseNextLayerActive', {
|
||||
call: macroSettingsPauseAtLayerCall,
|
||||
})
|
||||
}}
|
||||
</v-alert>
|
||||
</v-col>
|
||||
</v-row>
|
||||
<v-row>
|
||||
<v-col>
|
||||
<v-select
|
||||
v-model="type"
|
||||
:items="itemsFiltered"
|
||||
:label="$t('Panels.StatusPanel.PauseAtLayer.Type')"
|
||||
outlined
|
||||
hide-details />
|
||||
</v-col>
|
||||
<v-col v-if="type === 'atLayer'">
|
||||
<v-text-field
|
||||
v-model="layer"
|
||||
:label="$t('Panels.StatusPanel.PauseAtLayer.Layer')"
|
||||
outlined
|
||||
hide-details />
|
||||
</v-col>
|
||||
</v-row>
|
||||
<v-row class="mt-0">
|
||||
<v-col>
|
||||
<v-select
|
||||
v-model="call"
|
||||
:items="itemsCall"
|
||||
:label="$t('Panels.StatusPanel.PauseAtLayer.Call')"
|
||||
outlined
|
||||
hide-details />
|
||||
</v-col>
|
||||
</v-row>
|
||||
</v-card-text>
|
||||
<v-card-actions>
|
||||
<v-spacer />
|
||||
<v-btn text @click="hideDialog">{{ $t('Panels.StatusPanel.PauseAtLayer.Abort') }}</v-btn>
|
||||
<v-btn color="primary" text @click="sendCommand">
|
||||
{{ $t('Panels.StatusPanel.PauseAtLayer.Accept') }}
|
||||
</v-btn>
|
||||
</v-card-actions>
|
||||
</panel>
|
||||
</v-dialog>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<script lang="ts">
|
||||
import Component from 'vue-class-component'
|
||||
import { Mixins, Prop, Watch } from 'vue-property-decorator'
|
||||
import BaseMixin from '@/components/mixins/base'
|
||||
import StatusPanelExcludeObjectDialogMap from '@/components/panels/Status/ExcludeObjectDialogMap.vue'
|
||||
import StatusPanelExcludeObjectDialogList from '@/components/panels/Status/ExcludeObjectDialogList.vue'
|
||||
import Panel from '@/components/ui/Panel.vue'
|
||||
import { mdiCloseThick, mdiLayersPlus } from '@mdi/js'
|
||||
import { PrinterStateMacro } from '@/store/printer/types'
|
||||
@Component({
|
||||
components: { Panel, StatusPanelExcludeObjectDialogList, StatusPanelExcludeObjectDialogMap },
|
||||
})
|
||||
export default class StatusPanelPauseAtLayerDialog extends Mixins(BaseMixin) {
|
||||
mdiLayersPlus = mdiLayersPlus
|
||||
mdiCloseThick = mdiCloseThick
|
||||
|
||||
@Prop({ required: true }) declare readonly showDialog: boolean
|
||||
|
||||
private type: 'nextLayer' | 'atLayer' = 'atLayer'
|
||||
private layer: number = 0
|
||||
private call: 'PAUSE' | 'M600' = 'PAUSE'
|
||||
|
||||
hideDialog() {
|
||||
this.$emit('update:showDialog', false)
|
||||
}
|
||||
|
||||
get items() {
|
||||
return [
|
||||
{
|
||||
text: this.$t('Panels.StatusPanel.PauseAtLayer.AtLayer'),
|
||||
value: 'atLayer',
|
||||
status: this.existsSetPauseAtLayer,
|
||||
},
|
||||
{
|
||||
text: this.$t('Panels.StatusPanel.PauseAtLayer.NextLayer'),
|
||||
value: 'nextLayer',
|
||||
status: this.existsSetPauseNextLayer,
|
||||
},
|
||||
]
|
||||
}
|
||||
|
||||
get itemsFiltered() {
|
||||
return this.items.filter((entry) => entry.status)
|
||||
}
|
||||
|
||||
get itemsCall() {
|
||||
return [
|
||||
{
|
||||
text: 'PAUSE',
|
||||
value: 'PAUSE',
|
||||
},
|
||||
{
|
||||
text: 'M600',
|
||||
value: 'M600',
|
||||
},
|
||||
]
|
||||
}
|
||||
|
||||
get current_layer() {
|
||||
return this.$store.state.printer.print_stats?.info?.current_layer ?? 0
|
||||
}
|
||||
|
||||
get total_layer() {
|
||||
return this.$store.state.printer.print_stats?.info?.total_layer ?? 0
|
||||
}
|
||||
|
||||
get macros() {
|
||||
return this.$store.getters['printer/getMacros'] ?? []
|
||||
}
|
||||
|
||||
get existsSetPauseAtLayer() {
|
||||
return this.macros.findIndex((macro: PrinterStateMacro) => macro.name === 'SET_PAUSE_AT_LAYER') !== -1
|
||||
}
|
||||
|
||||
get existsSetPauseNextLayer() {
|
||||
return this.macros.findIndex((macro: PrinterStateMacro) => macro.name === 'SET_PAUSE_NEXT_LAYER') !== -1
|
||||
}
|
||||
|
||||
get macroSetPrintStatsInfo() {
|
||||
return this.$store.state.printer['gcode_macro SET_PRINT_STATS_INFO'] ?? {}
|
||||
}
|
||||
|
||||
get macroSettingsPauseAtLayer() {
|
||||
return this.macroSetPrintStatsInfo.pause_at_layer ?? {}
|
||||
}
|
||||
|
||||
get macroSettingsPauseAtLayerEnable() {
|
||||
return this.macroSettingsPauseAtLayer.enable ?? false
|
||||
}
|
||||
|
||||
get macroSettingsPauseAtLayerCall() {
|
||||
return this.macroSettingsPauseAtLayer.call ?? 'PAUSE'
|
||||
}
|
||||
|
||||
get macroSettingsPauseAtLayerLayer() {
|
||||
return this.macroSettingsPauseAtLayer.layer ?? 0
|
||||
}
|
||||
|
||||
get macroSettingsPauseNextLayer() {
|
||||
return this.macroSetPrintStatsInfo.pause_next_layer ?? {}
|
||||
}
|
||||
|
||||
get macroSettingsPauseNextLayerEnable() {
|
||||
return this.macroSettingsPauseNextLayer.enable ?? false
|
||||
}
|
||||
|
||||
get macroSettingsPauseNextLayerCall() {
|
||||
return this.macroSettingsPauseNextLayer.call ?? 'PAUSE'
|
||||
}
|
||||
|
||||
sendCommand() {
|
||||
if (this.type === 'atLayer') {
|
||||
this.doSend(`SET_PAUSE_AT_LAYER ENABLE=1 LAYER=${this.layer} MACRO=${this.call}`)
|
||||
this.hideDialog()
|
||||
return
|
||||
}
|
||||
|
||||
this.doSend(`SET_PAUSE_NEXT_LAYER ENABLE=1 MACRO=${this.call}`)
|
||||
this.hideDialog()
|
||||
}
|
||||
|
||||
doSend(gcode: string) {
|
||||
this.$store.dispatch('server/addEvent', { message: gcode, type: 'command' })
|
||||
this.$socket.emit('printer.gcode.script', { script: gcode })
|
||||
}
|
||||
|
||||
@Watch('showDialog')
|
||||
showDialogChanged(newVal: boolean) {
|
||||
if (newVal) {
|
||||
this.layer = this.current_layer + 1
|
||||
this.type = 'atLayer'
|
||||
|
||||
if (!this.existsSetPauseAtLayer) this.type = 'nextLayer'
|
||||
}
|
||||
}
|
||||
|
||||
@Watch('type')
|
||||
typeChanged(newVal: string) {
|
||||
if (newVal === 'atLayer') {
|
||||
this.call = this.macroSettingsPauseAtLayerCall
|
||||
} else if (newVal === 'nextLayer') {
|
||||
this.call = this.macroSettingsPauseNextLayerCall
|
||||
}
|
||||
}
|
||||
}
|
||||
</script>
|
||||
@@ -239,12 +239,15 @@ export default class StatusPanelPrintstatusPrinting extends Mixins(BaseMixin) {
|
||||
}
|
||||
|
||||
formatDuration(seconds: number) {
|
||||
let h = Math.floor(seconds / 3600)
|
||||
seconds %= 3600
|
||||
let m = ('0' + Math.floor(seconds / 60)).slice(-2)
|
||||
let s = ('0' + (seconds % 60).toFixed(0)).slice(-2)
|
||||
let prefix = seconds < 0 ? '-' : ''
|
||||
let absSeconds = Math.abs(seconds)
|
||||
|
||||
return h + ':' + m + ':' + s
|
||||
let h = Math.floor(absSeconds / 3600)
|
||||
absSeconds %= 3600
|
||||
let m = ('0' + Math.floor(absSeconds / 60)).slice(-2)
|
||||
let s = ('0' + (absSeconds % 60).toFixed(0)).slice(-2)
|
||||
|
||||
return prefix + h + ':' + m + ':' + s
|
||||
}
|
||||
}
|
||||
</script>
|
||||
@@ -34,18 +34,49 @@
|
||||
<span>{{ button.text }}</span>
|
||||
</v-tooltip>
|
||||
</v-btn>
|
||||
<v-menu v-if="multiFunctionButton" left offset-y :close-on-content-click="false" class="pa-0">
|
||||
<template #activator="{ on, attrs }">
|
||||
<v-btn icon tile v-bind="attrs" v-on="on">
|
||||
<v-icon>{{ mdiDotsVertical }}</v-icon>
|
||||
</v-btn>
|
||||
</template>
|
||||
<v-list dense>
|
||||
<v-list-item
|
||||
v-for="(entry, index) in multiFunctionMenuButtonsFiltered"
|
||||
:key="'multiFunction_' + index">
|
||||
<v-btn small style="width: 100%" @click="entry.click()">
|
||||
<v-icon left small>{{ entry.icon }}</v-icon>
|
||||
{{ entry.text }}
|
||||
</v-btn>
|
||||
</v-list-item>
|
||||
</v-list>
|
||||
</v-menu>
|
||||
</template>
|
||||
<status-panel-printstatus-thumbnail></status-panel-printstatus-thumbnail>
|
||||
<status-panel-exclude-object
|
||||
:show-dialog.sync="boolShowObjects"
|
||||
@update:showDialog="updateShowDialog"></status-panel-exclude-object>
|
||||
<template v-if="display_message || print_stats_message">
|
||||
<status-panel-pause-at-layer-dialog :show-dialog.sync="boolShowPauseAtLayer" />
|
||||
<template v-if="print_stats_message">
|
||||
<v-container>
|
||||
<v-row>
|
||||
<v-col class="py-2">
|
||||
<span class="subtitle-2 d-block px-0 text--disabled">
|
||||
<v-icon class="mr-2" color="warning" small>{{ mdiAlertOutline }}</v-icon>
|
||||
{{ print_stats_message }}
|
||||
</span>
|
||||
</v-col>
|
||||
</v-row>
|
||||
</v-container>
|
||||
<v-divider class="mt-0 mb-0"></v-divider>
|
||||
</template>
|
||||
<template v-if="display_message">
|
||||
<v-container>
|
||||
<v-row>
|
||||
<v-col class="py-2">
|
||||
<span class="subtitle-2 d-block px-0 text--disabled">
|
||||
<v-icon class="mr-2" small>{{ mdiMessageProcessingOutline }}</v-icon>
|
||||
{{ print_stats_message ? print_stats_message : display_message }}
|
||||
{{ display_message }}
|
||||
</span>
|
||||
</v-col>
|
||||
<v-col class="col-auto py-2">
|
||||
@@ -65,13 +96,13 @@
|
||||
<v-divider class="my-0"></v-divider>
|
||||
<v-tabs-items v-model="activeTab" class="_border-radius">
|
||||
<v-tab-item v-if="current_filename" value="status">
|
||||
<status-panel-printstatus></status-panel-printstatus>
|
||||
<status-panel-printstatus />
|
||||
</v-tab-item>
|
||||
<v-tab-item value="files">
|
||||
<status-panel-gcodefiles></status-panel-gcodefiles>
|
||||
<status-panel-gcodefiles />
|
||||
</v-tab-item>
|
||||
<v-tab-item value="jobqueue">
|
||||
<status-panel-jobqueue></status-panel-jobqueue>
|
||||
<status-panel-jobqueue />
|
||||
</v-tab-item>
|
||||
</v-tabs-items>
|
||||
</panel>
|
||||
@@ -89,8 +120,10 @@ import StatusPanelGcodefiles from '@/components/panels/Status/Gcodefiles.vue'
|
||||
import StatusPanelJobqueue from '@/components/panels/Status/Jobqueue.vue'
|
||||
import StatusPanelExcludeObject from '@/components/panels/Status/ExcludeObject.vue'
|
||||
import StatusPanelPrintstatusThumbnail from '@/components/panels/Status/PrintstatusThumbnail.vue'
|
||||
import StatusPanelPauseAtLayerDialog from '@/components/panels/Status/PauseAtLayerDialog.vue'
|
||||
import Panel from '@/components/ui/Panel.vue'
|
||||
import {
|
||||
mdiAlertOutline,
|
||||
mdiBroom,
|
||||
mdiInformation,
|
||||
mdiPause,
|
||||
@@ -100,7 +133,10 @@ import {
|
||||
mdiStop,
|
||||
mdiMessageProcessingOutline,
|
||||
mdiCloseCircle,
|
||||
mdiLayersPlus,
|
||||
mdiDotsVertical,
|
||||
} from '@mdi/js'
|
||||
import { PrinterStateMacro } from '@/store/printer/types'
|
||||
|
||||
@Component({
|
||||
components: {
|
||||
@@ -112,14 +148,18 @@ import {
|
||||
StatusPanelJobqueue,
|
||||
StatusPanelPrintstatus,
|
||||
StatusPanelPrintstatusThumbnail,
|
||||
StatusPanelPauseAtLayerDialog,
|
||||
},
|
||||
})
|
||||
export default class StatusPanel extends Mixins(BaseMixin) {
|
||||
mdiInformation = mdiInformation
|
||||
mdiMessageProcessingOutline = mdiMessageProcessingOutline
|
||||
mdiCloseCircle = mdiCloseCircle
|
||||
mdiDotsVertical = mdiDotsVertical
|
||||
mdiAlertOutline = mdiAlertOutline
|
||||
|
||||
private boolShowObjects = false
|
||||
private boolShowPauseAtLayer = false
|
||||
|
||||
declare $refs: {
|
||||
bigThumbnail: any
|
||||
@@ -133,7 +173,7 @@ export default class StatusPanel extends Mixins(BaseMixin) {
|
||||
}
|
||||
|
||||
get jobsCount() {
|
||||
return this.jobs?.length ?? 0
|
||||
return this.$store.getters['server/jobQueue/getJobsCount'] ?? 0
|
||||
}
|
||||
|
||||
get current_filename() {
|
||||
@@ -173,7 +213,7 @@ export default class StatusPanel extends Mixins(BaseMixin) {
|
||||
color: 'warning',
|
||||
icon: mdiPause,
|
||||
loadingName: 'statusPrintPause',
|
||||
status: ['printing'],
|
||||
status: () => ['printing'].includes(this.printer_state),
|
||||
click: this.btnPauseJob,
|
||||
},
|
||||
{
|
||||
@@ -181,7 +221,7 @@ export default class StatusPanel extends Mixins(BaseMixin) {
|
||||
color: 'success',
|
||||
icon: mdiPlay,
|
||||
loadingName: 'statusPrintResume',
|
||||
status: ['paused'],
|
||||
status: () => ['paused'].includes(this.printer_state),
|
||||
click: this.btnResumeJob,
|
||||
},
|
||||
{
|
||||
@@ -189,23 +229,44 @@ export default class StatusPanel extends Mixins(BaseMixin) {
|
||||
color: 'error',
|
||||
icon: mdiStop,
|
||||
loadingName: 'statusPrintCancel',
|
||||
status: this.$store.state.gui.uiSettings.displayCancelPrint ? ['paused', 'printing'] : ['paused'],
|
||||
status: () => {
|
||||
if (this.$store.state.gui.uiSettings.displayCancelPrint)
|
||||
return ['paused', 'printing'].includes(this.printer_state)
|
||||
|
||||
return ['paused'].includes(this.printer_state)
|
||||
},
|
||||
click: this.btnCancelJob,
|
||||
},
|
||||
{
|
||||
text: this.$t('Panels.StatusPanel.ExcludeObject.ExcludeObject'),
|
||||
color: 'warning',
|
||||
icon: mdiSelectionRemove,
|
||||
loadingName: '',
|
||||
status: this.printing_objects.length ? ['paused', 'printing'] : [],
|
||||
loadingName: 'excludeObjectButton',
|
||||
status: () => {
|
||||
if (this.multiFunctionButton || this.printing_objects.length < 2) return false
|
||||
|
||||
return ['paused', 'printing'].includes(this.printer_state)
|
||||
},
|
||||
click: this.btnExcludeObject,
|
||||
},
|
||||
{
|
||||
text: this.$t('Panels.StatusPanel.PauseAtLayer.PauseAtLayer'),
|
||||
color: 'warning',
|
||||
icon: mdiLayersPlus,
|
||||
loadingName: 'pauseAtLayer',
|
||||
status: () => {
|
||||
if (this.multiFunctionButton || this.layer_count === null) return false
|
||||
|
||||
return ['paused', 'printing'].includes(this.printer_state)
|
||||
},
|
||||
click: this.btnPauseAtLayer,
|
||||
},
|
||||
{
|
||||
text: this.$t('Panels.StatusPanel.ClearPrintStats'),
|
||||
color: 'primary',
|
||||
icon: mdiBroom,
|
||||
loadingName: 'statusPrintClear',
|
||||
status: ['error', 'complete', 'cancelled'],
|
||||
status: () => ['error', 'complete', 'cancelled'].includes(this.printer_state),
|
||||
click: this.btnClearJob,
|
||||
},
|
||||
{
|
||||
@@ -213,16 +274,14 @@ export default class StatusPanel extends Mixins(BaseMixin) {
|
||||
color: 'primary',
|
||||
icon: mdiPrinter,
|
||||
loadingName: 'statusPrintReprint',
|
||||
status: ['error', 'complete', 'cancelled'],
|
||||
status: () => ['error', 'complete', 'cancelled'].includes(this.printer_state),
|
||||
click: this.btnReprintJob,
|
||||
},
|
||||
]
|
||||
}
|
||||
|
||||
get filteredToolbarButtons() {
|
||||
return this.toolbarButtons.filter((button) => {
|
||||
return button.status.includes(this.printer_state)
|
||||
})
|
||||
return this.toolbarButtons.filter((button) => button.status())
|
||||
}
|
||||
|
||||
get printing_objects() {
|
||||
@@ -230,11 +289,62 @@ export default class StatusPanel extends Mixins(BaseMixin) {
|
||||
}
|
||||
|
||||
get display_message() {
|
||||
return this.$store.state.printer.display_status?.message ?? ''
|
||||
return this.$store.state.printer.display_status?.message ?? null
|
||||
}
|
||||
|
||||
get print_stats_message() {
|
||||
return this.$store.state.printer.print_stats?.message ?? ''
|
||||
return this.$store.state.printer.print_stats?.message ?? null
|
||||
}
|
||||
|
||||
get layer_count() {
|
||||
return this.$store.state.printer.print_stats?.info?.total_layer ?? null
|
||||
}
|
||||
|
||||
get multiFunctionMenuButtons() {
|
||||
return [
|
||||
{
|
||||
text: this.$t('Panels.StatusPanel.ExcludeObject.ExcludeObject'),
|
||||
loadingName: 'excludeObjectButton',
|
||||
icon: mdiSelectionRemove,
|
||||
status: () => this.printing_objects.length > 1,
|
||||
disabled: () => ['paused', 'printing'].includes(this.printer_state),
|
||||
click: this.btnExcludeObject,
|
||||
},
|
||||
{
|
||||
text: this.$t('Panels.StatusPanel.PauseAtLayer.PauseAtLayer') + ' - ' + this.displayPauseAtLayerButton,
|
||||
loadingName: 'pauseAtLayer',
|
||||
icon: mdiLayersPlus,
|
||||
status: () => this.displayPauseAtLayerButton,
|
||||
disabled: () => ['paused', 'printing'].includes(this.printer_state),
|
||||
click: this.btnPauseAtLayer,
|
||||
},
|
||||
]
|
||||
}
|
||||
|
||||
get multiFunctionMenuButtonsFiltered() {
|
||||
return this.multiFunctionMenuButtons.filter((button) => button.status())
|
||||
}
|
||||
|
||||
get multiFunctionButton() {
|
||||
if (!['paused', 'printing'].includes(this.printer_state)) return false
|
||||
|
||||
return this.multiFunctionMenuButtonsFiltered.length > 1
|
||||
}
|
||||
|
||||
get macros() {
|
||||
return this.$store.getters['printer/getMacros'] ?? []
|
||||
}
|
||||
|
||||
get existsSetPauseAtLayer() {
|
||||
return this.macros.findIndex((macro: PrinterStateMacro) => macro.name === 'SET_PAUSE_AT_LAYER') !== -1
|
||||
}
|
||||
|
||||
get existsSetPauseNextLayer() {
|
||||
return this.macros.findIndex((macro: PrinterStateMacro) => macro.name === 'SET_PAUSE_NEXT_LAYER') !== -1
|
||||
}
|
||||
|
||||
get displayPauseAtLayerButton() {
|
||||
return this.layer_count !== null && (this.existsSetPauseAtLayer || this.existsSetPauseNextLayer)
|
||||
}
|
||||
|
||||
mounted() {
|
||||
@@ -269,6 +379,10 @@ export default class StatusPanel extends Mixins(BaseMixin) {
|
||||
this.boolShowObjects = true
|
||||
}
|
||||
|
||||
btnPauseAtLayer() {
|
||||
this.boolShowPauseAtLayer = true
|
||||
}
|
||||
|
||||
btnCancelJob() {
|
||||
this.$socket.emit('printer.print.cancel', {}, { loading: 'statusPrintCancel' })
|
||||
}
|
||||
|
||||
@@ -303,7 +303,9 @@ export default class TemperaturePanel extends Mixins(BaseMixin, ControlMixin) {
|
||||
}
|
||||
|
||||
get temperatureObjects() {
|
||||
return this.$store.getters['printer/getTemperatureObjects'] ?? []
|
||||
const sensors = this.$store.getters['printer/getTemperatureObjects'] ?? []
|
||||
|
||||
return sensors.filter((sensor: PrinterStateTemperatureObject) => !sensor.name.startsWith('_'))
|
||||
}
|
||||
|
||||
preheat(preset: GuiPresetsStatePreset): void {
|
||||
|
||||
@@ -32,6 +32,15 @@
|
||||
dense
|
||||
style="max-width: 300px"></v-text-field>
|
||||
<v-spacer></v-spacer>
|
||||
<v-btn
|
||||
v-if="selectedFiles.length"
|
||||
:title="$t('Timelapse.Download')"
|
||||
color="primary"
|
||||
class="px-2 minwidth-0 ml-3"
|
||||
:loading="loadings.includes('timelapseDownloadZip')"
|
||||
@click="downloadSelectedFiles">
|
||||
<v-icon>{{ mdiCloudDownload }}</v-icon>
|
||||
</v-btn>
|
||||
<v-btn
|
||||
v-if="selectedFiles.length"
|
||||
:title="$t('Timelapse.Delete')"
|
||||
@@ -238,7 +247,7 @@
|
||||
:label="$t('Timelapse.Name')"
|
||||
required
|
||||
:rules="nameInputRules"
|
||||
@update:error="isInvalidName = !isInvalidName"
|
||||
@update:error="(bool) => (isInvalidName = bool)"
|
||||
@keypress.enter="renameFileAction"></v-text-field>
|
||||
</v-card-text>
|
||||
<v-card-actions>
|
||||
@@ -267,7 +276,7 @@
|
||||
:label="$t('Timelapse.Name')"
|
||||
required
|
||||
:rules="nameInputRules"
|
||||
@update:error="isInvalidName = !isInvalidName"
|
||||
@update:error="(bool) => (isInvalidName = bool)"
|
||||
@keypress.enter="createDirectoryAction"></v-text-field>
|
||||
</v-card-text>
|
||||
<v-card-actions>
|
||||
@@ -298,7 +307,7 @@
|
||||
:label="$t('Timelapse.Name')"
|
||||
required
|
||||
:rules="nameInputRules"
|
||||
@update:error="isInvalidName = !isInvalidName"
|
||||
@update:error="(bool) => (isInvalidName = bool)"
|
||||
@keyup.enter="renameDirectoryAction"></v-text-field>
|
||||
</v-card-text>
|
||||
<v-card-actions>
|
||||
@@ -692,6 +701,46 @@ export default class TimelapseFilesPanel extends Mixins(BaseMixin) {
|
||||
window.open(href)
|
||||
}
|
||||
|
||||
async downloadSelectedFiles() {
|
||||
let items: string[] = []
|
||||
|
||||
const addElementToItems = async (absolutPath: string, directory: FileStateFile[]) => {
|
||||
for (const file of directory) {
|
||||
const filePath = `${absolutPath}/${file.filename}`
|
||||
|
||||
if (file.isDirectory && file.childrens) {
|
||||
await addElementToItems(filePath, file.childrens)
|
||||
|
||||
continue
|
||||
}
|
||||
|
||||
items.push(filePath)
|
||||
|
||||
if (file.filename.endsWith('.mp4')) {
|
||||
const indexLastPoint = file.filename.lastIndexOf('.')
|
||||
const filenameWithoutExtension = file.filename.slice(0, indexLastPoint)
|
||||
const filenamePng = `${filenameWithoutExtension}.jpg`
|
||||
|
||||
if (this.files.indexOf((file: FileStateFile) => file.filename === filenamePng) !== -1) {
|
||||
items.push(`${absolutPath}/${filenamePng}`)
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
await addElementToItems(this.currentPath, this.selectedFiles)
|
||||
const date = new Date()
|
||||
const timestamp = `${date.getFullYear()}${date.getMonth()}${date.getDay()}-${date.getHours()}${date.getMinutes()}${date.getSeconds()}`
|
||||
|
||||
this.$socket.emit(
|
||||
'server.files.zip',
|
||||
{ items, dest: `timelapse/timelapse-${timestamp}.zip` },
|
||||
{ action: 'files/downloadZip', loading: 'timelapseDownloadZip' }
|
||||
)
|
||||
|
||||
this.selectedFiles = []
|
||||
}
|
||||
|
||||
renameFile(item: FileStateFile) {
|
||||
const posLastPoint = item.filename.lastIndexOf('.')
|
||||
this.dialogRenameFile.newName = item.filename.slice(0, posLastPoint)
|
||||
|
||||
@@ -18,16 +18,19 @@
|
||||
<v-col>
|
||||
<vue-load-image>
|
||||
<img
|
||||
ref="timelapsePreview"
|
||||
slot="image"
|
||||
:src="frameUrl"
|
||||
:alt="$t('Timelapse.Preview')"
|
||||
class="w-100"
|
||||
:style="webcamStyle" />
|
||||
<v-progress-circular
|
||||
slot="preloader"
|
||||
indeterminate
|
||||
color="primary"></v-progress-circular>
|
||||
<v-icon slot="error">{{ mdiFile }}</v-icon>
|
||||
:style="webcamStyle"
|
||||
@load="calcRatio" />
|
||||
<div slot="preloader">
|
||||
<v-progress-circular indeterminate color="primary"></v-progress-circular>
|
||||
</div>
|
||||
<div slot="error">
|
||||
<v-icon>{{ mdiFile }}</v-icon>
|
||||
</div>
|
||||
</vue-load-image>
|
||||
</v-col>
|
||||
</v-row>
|
||||
@@ -39,22 +42,24 @@
|
||||
align-self="center">
|
||||
<v-card-text :class="framesCount ? 'pt-0' : ''">
|
||||
<template v-if="framesCount > 0">
|
||||
<settings-row :title="$t('Timelapse.Frames')">
|
||||
<settings-row :title="$t('Timelapse.Frames').toString()">
|
||||
{{ framesCount }}
|
||||
</settings-row>
|
||||
<v-divider class="my-2"></v-divider>
|
||||
<settings-row :title="$t('Timelapse.EstimatedLength')" :dynamic-slot-width="true">
|
||||
<settings-row
|
||||
:title="$t('Timelapse.EstimatedLength').toString()"
|
||||
:dynamic-slot-width="true">
|
||||
{{ estimatedVideoLength }}
|
||||
</settings-row>
|
||||
</template>
|
||||
<template v-if="['printing', 'paused'].includes(printer_state)">
|
||||
<v-divider class="my-2"></v-divider>
|
||||
<settings-row :title="$t('Timelapse.Enabled')" :dynamic-slot-width="true">
|
||||
<settings-row :title="$t('Timelapse.Enabled').toString()" :dynamic-slot-width="true">
|
||||
<v-switch v-model="enabled" hide-details class="mt-0"></v-switch>
|
||||
</settings-row>
|
||||
<template v-if="enabled">
|
||||
<v-divider v-if="framesCount > 0" class="my-2"></v-divider>
|
||||
<settings-row :title="$t('Timelapse.Autorender')" :dynamic-slot-width="true">
|
||||
<settings-row :title="$t('Timelapse.Autorender').toString()" :dynamic-slot-width="true">
|
||||
<v-switch v-model="autorender" hide-details class="mt-0"></v-switch>
|
||||
</settings-row>
|
||||
</template>
|
||||
@@ -91,7 +96,7 @@
|
||||
</v-card>
|
||||
<v-dialog v-model="boolDialogRendersettings" :max-width="700" :max-height="500">
|
||||
<panel
|
||||
:title="$t('Timelapse.RenderSettings')"
|
||||
:title="$t('Timelapse.RenderSettings').toString()"
|
||||
:icon="mdiTextBoxSearchOutline"
|
||||
card-class="timelapse-rendersettings-dialog"
|
||||
:margin-bottom="false">
|
||||
@@ -109,8 +114,7 @@
|
||||
:items="framerateTypeOptions"
|
||||
outlined
|
||||
dense
|
||||
hide-details
|
||||
attach></v-select>
|
||||
hide-details></v-select>
|
||||
</v-col>
|
||||
<v-col class="col-4">
|
||||
<template v-if="variable_fps">
|
||||
@@ -197,16 +201,22 @@ import { Component, Mixins } from 'vue-property-decorator'
|
||||
import BaseMixin from '@/components/mixins/base'
|
||||
import SettingsRow from '@/components/settings/SettingsRow.vue'
|
||||
import Panel from '@/components/ui/Panel.vue'
|
||||
import { mdiFile, mdiInformation, mdiTextBoxSearchOutline } from '@mdi/js'
|
||||
import { mdiFile, mdiInformation, mdiTextBoxSearchOutline, mdiCloseThick } from '@mdi/js'
|
||||
@Component({
|
||||
components: { Panel, SettingsRow },
|
||||
})
|
||||
export default class TimelapseStatusPanel extends Mixins(BaseMixin) {
|
||||
mdiInformation = mdiInformation
|
||||
mdiFile = mdiFile
|
||||
mdiCloseThick = mdiCloseThick
|
||||
mdiTextBoxSearchOutline = mdiTextBoxSearchOutline
|
||||
|
||||
private boolDialogRendersettings = false
|
||||
private scale = 1
|
||||
|
||||
declare $refs: {
|
||||
timelapsePreview: HTMLImageElement
|
||||
}
|
||||
|
||||
get frameUrl() {
|
||||
const frame = this.$store.state.server.timelapse?.lastFrame?.file ?? null
|
||||
@@ -308,12 +318,12 @@ export default class TimelapseStatusPanel extends Mixins(BaseMixin) {
|
||||
}
|
||||
|
||||
get estimatedVideoLength() {
|
||||
let seconds = 0
|
||||
let seconds = Math.round((this.framesCount + this.duplicatelastframe) / this.output_framerate)
|
||||
|
||||
if (this.variable_fps) {
|
||||
seconds = Math.round((this.framesCount + this.duplicatelastframe) / this.variableTargetFps)
|
||||
if (seconds < this.targetlength) seconds = this.targetlength
|
||||
} else seconds = Math.round((this.framesCount + this.duplicatelastframe) / this.output_framerate)
|
||||
}
|
||||
|
||||
return seconds > 60
|
||||
? Math.floor(seconds / 60) + 'm ' + (seconds - Math.floor(seconds / 60) * 60) + 's'
|
||||
@@ -341,14 +351,14 @@ export default class TimelapseStatusPanel extends Mixins(BaseMixin) {
|
||||
}
|
||||
|
||||
get webcamStyle() {
|
||||
if (this.camSettings === undefined) return ''
|
||||
let transforms = []
|
||||
const scale = [0, 180].includes(this.camSettings.rotate) ? 1 : this.scale
|
||||
this.camSettings?.flipX ? transforms.push(`scaleX(-${scale})`) : transforms.push(`scaleX(${scale})`)
|
||||
this.camSettings?.flipY ? transforms.push(`scaleY(-${scale})`) : transforms.push(`scaleY(${scale})`)
|
||||
if (this.camSettings.rotate !== 0) transforms.push(`rotate(${this.camSettings.rotate}deg)`)
|
||||
if (transforms.length) return { transform: transforms.join(' ') }
|
||||
|
||||
let transforms = ''
|
||||
if ('flipX' in this.camSettings && this.camSettings.flipX) transforms += ' scaleX(-1)'
|
||||
if ('flipX' in this.camSettings && this.camSettings.flipY) transforms += ' scaleY(-1)'
|
||||
if (transforms.trimLeft().length) return { transform: transforms.trimLeft() }
|
||||
|
||||
return ''
|
||||
return {}
|
||||
}
|
||||
|
||||
startRender() {
|
||||
@@ -360,5 +370,14 @@ export default class TimelapseStatusPanel extends Mixins(BaseMixin) {
|
||||
saveFrames() {
|
||||
this.$socket.emit('machine.timelapse.saveframes', {}, { loading: 'timelapse_saveframes' })
|
||||
}
|
||||
|
||||
calcRatio() {
|
||||
if (this.$refs.timelapsePreview) {
|
||||
this.scale = this.$refs.timelapsePreview.naturalHeight / this.$refs.timelapsePreview.naturalWidth
|
||||
if (this.scale > 1) {
|
||||
this.scale = this.$refs.timelapsePreview.naturalWidth / this.$refs.timelapsePreview.naturalHeight
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
</script>
|
||||
@@ -6,7 +6,8 @@
|
||||
:icon="mdiWebcam"
|
||||
:title="$t('Panels.WebcamPanel.Headline')"
|
||||
:collapsible="$route.fullPath !== '/cam'"
|
||||
card-class="webcam-panel">
|
||||
card-class="webcam-panel"
|
||||
:margin-bottom="currentPage !== 'page'">
|
||||
<template v-if="webcams.length > 1" #buttons>
|
||||
<v-menu :offset-y="true" title="Webcam">
|
||||
<template #activator="{ on, attrs }">
|
||||
@@ -41,24 +42,7 @@
|
||||
<v-card-text v-if="webcams.length" class="px-0 py-0 content d-inline-block">
|
||||
<v-row>
|
||||
<v-col class="pb-0" style="position: relative">
|
||||
<template v-if="currentCam.service === 'grid'">
|
||||
<webcam-grid :webcams="webcams"></webcam-grid>
|
||||
</template>
|
||||
<template v-else-if="currentCam.service === 'mjpegstreamer'">
|
||||
<webcam-mjpegstreamer :cam-settings="currentCam"></webcam-mjpegstreamer>
|
||||
</template>
|
||||
<template v-else-if="currentCam.service === 'mjpegstreamer-adaptive'">
|
||||
<webcam-mjpegstreamer-adaptive :cam-settings="currentCam"></webcam-mjpegstreamer-adaptive>
|
||||
</template>
|
||||
<template v-else-if="currentCam.service === 'uv4l-mjpeg'">
|
||||
<webcam-uv4l-mjpeg :cam-settings="currentCam"></webcam-uv4l-mjpeg>
|
||||
</template>
|
||||
<template v-else-if="currentCam.service === 'ipstream'">
|
||||
<webcam-ipstreamer :cam-settings="currentCam"></webcam-ipstreamer>
|
||||
</template>
|
||||
<template v-else>
|
||||
<p class="text-center py-3 font-italic">{{ $t('Panels.WebcamPanel.UnknownWebcamService') }}</p>
|
||||
</template>
|
||||
<webcam-wrapper :webcam="currentCam" />
|
||||
</v-col>
|
||||
</v-row>
|
||||
</v-card-text>
|
||||
@@ -69,11 +53,6 @@
|
||||
</template>
|
||||
|
||||
<script lang="ts">
|
||||
import Mjpegstreamer from '@/components/webcams/Mjpegstreamer.vue'
|
||||
import MjpegstreamerAdaptive from '@/components/webcams/MjpegstreamerAdaptive.vue'
|
||||
import Ipstreamer from '@/components/webcams/Ipstreamer.vue'
|
||||
import Uv4lMjpeg from '@/components/webcams/Uv4lMjpeg.vue'
|
||||
import WebcamGrid from '@/components/webcams/WebcamGrid.vue'
|
||||
import Component from 'vue-class-component'
|
||||
import { Mixins, Prop } from 'vue-property-decorator'
|
||||
import BaseMixin from '../mixins/base'
|
||||
@@ -85,11 +64,6 @@ import WebcamMixin from '@/components/mixins/webcam'
|
||||
@Component({
|
||||
components: {
|
||||
Panel,
|
||||
'webcam-mjpegstreamer': Mjpegstreamer,
|
||||
'webcam-mjpegstreamer-adaptive': MjpegstreamerAdaptive,
|
||||
'webcam-ipstreamer': Ipstreamer,
|
||||
'webcam-uv4l-mjpeg': Uv4lMjpeg,
|
||||
'webcam-grid': WebcamGrid,
|
||||
},
|
||||
})
|
||||
export default class WebcamPanel extends Mixins(BaseMixin, WebcamMixin) {
|
||||
|
||||
@@ -15,6 +15,15 @@
|
||||
:dynamic-slot-width="true">
|
||||
<v-switch v-model="confirmUnsavedChanges" hide-details class="mt-0"></v-switch>
|
||||
</settings-row>
|
||||
|
||||
<v-divider class="my-2"></v-divider>
|
||||
<settings-row
|
||||
:title="$t('Settings.EditorTab.TabSize')"
|
||||
:sub-title="$t('Settings.EditorTab.TabSizeDescription')"
|
||||
:dynamic-slot-width="true">
|
||||
<v-select v-model="tabSize" :items="tabSizes" hide-details outlined dense attached></v-select>
|
||||
</settings-row>
|
||||
|
||||
<v-divider class="my-2"></v-divider>
|
||||
<settings-row
|
||||
:title="$t('Settings.EditorTab.KlipperRestartMethod')"
|
||||
@@ -67,6 +76,14 @@ export default class SettingsEditorTab extends Mixins(BaseMixin) {
|
||||
},
|
||||
]
|
||||
|
||||
get tabSizes() {
|
||||
const spaces = [2, 4, 6, 8]
|
||||
return spaces.map((space) => ({
|
||||
text: this.$t('Settings.EditorTab.Spaces', { count: space }),
|
||||
value: space,
|
||||
}))
|
||||
}
|
||||
|
||||
get escToClose() {
|
||||
return this.$store.state.gui.editor.escToClose
|
||||
}
|
||||
@@ -83,6 +100,14 @@ export default class SettingsEditorTab extends Mixins(BaseMixin) {
|
||||
this.$store.dispatch('gui/saveSetting', { name: 'editor.confirmUnsavedChanges', value: newVal })
|
||||
}
|
||||
|
||||
get tabSize() {
|
||||
return this.$store.state.gui.editor.tabSize || 2
|
||||
}
|
||||
|
||||
set tabSize(newVal) {
|
||||
this.$store.dispatch('gui/saveSetting', { name: 'editor.tabSize', value: newVal })
|
||||
}
|
||||
|
||||
get klipperRestartMethod() {
|
||||
return this.$store.state.gui.editor.klipperRestartMethod
|
||||
}
|
||||
|
||||
@@ -0,0 +1,53 @@
|
||||
<template>
|
||||
<div>
|
||||
<v-card-text>
|
||||
<h3 class="text-h5 mb-3">{{ $t('Settings.NavigationTab.Navigation') }}</h3>
|
||||
<draggable v-model="sortableNaviPoints" handle=".handle" ghost-class="ghost" group="navigation-points">
|
||||
<settings-navigation-tab-item
|
||||
v-for="(naviPoint, index) in sortableNaviPoints"
|
||||
:key="index"
|
||||
class="dragable-item my-2 mx-0"
|
||||
:navi-point="naviPoint" />
|
||||
</draggable>
|
||||
</v-card-text>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<script lang="ts">
|
||||
import { Component, Mixins } from 'vue-property-decorator'
|
||||
import BaseMixin from '@/components/mixins/base'
|
||||
import NavigationMixin, { NaviPoint } from '@/components/mixins/navigation'
|
||||
import SettingsRow from '@/components/settings/SettingsRow.vue'
|
||||
import draggable from 'vuedraggable'
|
||||
import SettingsNavigationTabItem from '@/components/settings/SettingsNavigationTabItem.vue'
|
||||
|
||||
@Component({
|
||||
components: { SettingsNavigationTabItem, SettingsRow, draggable },
|
||||
})
|
||||
export default class SettingsNavigationTab extends Mixins(NavigationMixin, BaseMixin) {
|
||||
get sortableNaviPoints() {
|
||||
return this.naviPoints.filter((naviPoint) => naviPoint.position > 0)
|
||||
}
|
||||
|
||||
set sortableNaviPoints(newVal: NaviPoint[]) {
|
||||
// update store with new positions
|
||||
newVal.forEach((naviPoint, index) => {
|
||||
this.$store.dispatch('gui/navigation/updatePos', {
|
||||
type: naviPoint.type,
|
||||
title: naviPoint.title,
|
||||
visible: naviPoint.visible,
|
||||
position: index + 1,
|
||||
})
|
||||
})
|
||||
|
||||
// upload to moonraker db
|
||||
this.$store.dispatch('gui/navigation/upload')
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
||||
<style scoped>
|
||||
.dragable-item {
|
||||
background-color: #282828;
|
||||
}
|
||||
</style>
|
||||
@@ -0,0 +1,62 @@
|
||||
<template>
|
||||
<v-row 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 :title="title" :sub-title="subtitle" :dynamic-slot-width="true">
|
||||
<v-icon :color="checkboxColor" @click="changeVisibility" v-html="checkboxIcon" />
|
||||
</settings-row>
|
||||
</v-col>
|
||||
</v-row>
|
||||
</template>
|
||||
|
||||
<script lang="ts">
|
||||
import { Component, Mixins, Prop } from 'vue-property-decorator'
|
||||
import BaseMixin from '@/components/mixins/base'
|
||||
import NavigationMixin, { NaviPoint } from '@/components/mixins/navigation'
|
||||
import SettingsRow from '@/components/settings/SettingsRow.vue'
|
||||
import draggable from 'vuedraggable'
|
||||
import { mdiDragVertical, mdiCheckboxMarked, mdiCheckboxBlankOutline } from '@mdi/js'
|
||||
|
||||
@Component({
|
||||
components: { SettingsRow, draggable },
|
||||
})
|
||||
export default class SettingsNavigationTab extends Mixins(NavigationMixin, BaseMixin) {
|
||||
mdiDragVertical = mdiDragVertical
|
||||
|
||||
@Prop({ type: Object, required: true }) naviPoint!: NaviPoint
|
||||
|
||||
get title() {
|
||||
return this.naviPoint.title
|
||||
}
|
||||
|
||||
get subtitle() {
|
||||
if (this.naviPoint.type === 'link') return `URL: ${this.naviPoint.href ?? 'Unknown'}`
|
||||
|
||||
return undefined
|
||||
}
|
||||
|
||||
get checkboxColor() {
|
||||
if (this.naviPoint.visible) return 'primary'
|
||||
|
||||
return 'grey lighten-1'
|
||||
}
|
||||
|
||||
get checkboxIcon() {
|
||||
if (this.naviPoint.visible) return mdiCheckboxMarked
|
||||
|
||||
return mdiCheckboxBlankOutline
|
||||
}
|
||||
|
||||
changeVisibility() {
|
||||
this.$store.dispatch('gui/navigation/changeVisibility', this.naviPoint)
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
||||
<style scoped>
|
||||
.dragable-item {
|
||||
background-color: #282828;
|
||||
}
|
||||
</style>
|
||||
@@ -4,57 +4,55 @@
|
||||
<v-card-text>
|
||||
<h3 class="text-h5 mb-3">{{ $t('Settings.TimelapseTab.General') }}</h3>
|
||||
<settings-row
|
||||
:title="$t('Settings.TimelapseTab.Enabled')"
|
||||
:sub-title="$t('Settings.TimelapseTab.EnabledDescription')"
|
||||
:title="$t('Settings.TimelapseTab.Enabled').toString()"
|
||||
:sub-title="$t('Settings.TimelapseTab.EnabledDescription').toString()"
|
||||
:dynamic-slot-width="true">
|
||||
<v-switch
|
||||
v-model="enabled"
|
||||
hide-details
|
||||
class="mt-0"
|
||||
:disabled="blockedsettings.includes('enabled')"></v-switch>
|
||||
:disabled="blockedsettings.includes('enabled')" />
|
||||
</settings-row>
|
||||
<v-divider class="my-2"></v-divider>
|
||||
<v-divider class="my-2" />
|
||||
<settings-row
|
||||
:title="$t('Settings.TimelapseTab.Autorender')"
|
||||
:sub-title="$t('Settings.TimelapseTab.AutorenderDescription')"
|
||||
:title="$t('Settings.TimelapseTab.Autorender').toString()"
|
||||
:sub-title="$t('Settings.TimelapseTab.AutorenderDescription').toString()"
|
||||
:dynamic-slot-width="true">
|
||||
<v-switch
|
||||
v-model="autorender"
|
||||
hide-details
|
||||
class="mt-0"
|
||||
:disabled="blockedsettings.includes('autorender')"></v-switch>
|
||||
:disabled="blockedsettings.includes('autorender')" />
|
||||
</settings-row>
|
||||
<v-divider class="my-2"></v-divider>
|
||||
<v-divider class="my-2" />
|
||||
<settings-row
|
||||
:title="$t('Settings.TimelapseTab.Camera')"
|
||||
:sub-title="$t('Settings.TimelapseTab.CameraDescription')">
|
||||
:title="$t('Settings.TimelapseTab.Camera').toString()"
|
||||
:sub-title="$t('Settings.TimelapseTab.CameraDescription').toString()">
|
||||
<v-select
|
||||
v-model="camera"
|
||||
:items="cameraOptions"
|
||||
hide-details
|
||||
outlined
|
||||
dense
|
||||
:disabled="blockedsettings.includes('camera') || blockedsettings.includes('snapshoturl')"
|
||||
attach></v-select>
|
||||
:disabled="blockedsettings.includes('camera') || blockedsettings.includes('snapshoturl')" />
|
||||
</settings-row>
|
||||
<v-divider class="my-2"></v-divider>
|
||||
<v-divider class="my-2" />
|
||||
<settings-row
|
||||
:title="$t('Settings.TimelapseTab.Mode')"
|
||||
:sub-title="$t('Settings.TimelapseTab.ModeDescription')">
|
||||
:title="$t('Settings.TimelapseTab.Mode').toString()"
|
||||
:sub-title="$t('Settings.TimelapseTab.ModeDescription').toString()">
|
||||
<v-select
|
||||
v-model="mode"
|
||||
:items="modeOptions"
|
||||
hide-details
|
||||
outlined
|
||||
dense
|
||||
:disabled="blockedsettings.includes('modeOptions')"
|
||||
attach></v-select>
|
||||
:disabled="blockedsettings.includes('modeOptions')" />
|
||||
</settings-row>
|
||||
<template v-if="mode === 'hyperlapse'">
|
||||
<v-divider class="my-2"></v-divider>
|
||||
<v-divider class="my-2" />
|
||||
<settings-row
|
||||
:title="$t('Settings.TimelapseTab.HyperlapseCycle')"
|
||||
:sub-title="$t('Settings.TimelapseTab.HyperlapseCycleDescription')">
|
||||
:title="$t('Settings.TimelapseTab.HyperlapseCycle').toString()"
|
||||
:sub-title="$t('Settings.TimelapseTab.HyperlapseCycleDescription').toString()">
|
||||
<v-text-field
|
||||
v-model="hyperlapseCycle"
|
||||
type="number"
|
||||
@@ -63,35 +61,35 @@
|
||||
outlined
|
||||
dense
|
||||
:disabled="blockedsettings.includes('hyperlapseCycle')"
|
||||
hide-spin-buttons></v-text-field>
|
||||
hide-spin-buttons />
|
||||
</settings-row>
|
||||
</template>
|
||||
<v-divider class="my-2"></v-divider>
|
||||
<v-divider class="my-2" />
|
||||
<settings-row
|
||||
:title="$t('Settings.TimelapseTab.PreviewImage')"
|
||||
:sub-title="$t('Settings.TimelapseTab.PreviewImageDescription')"
|
||||
:title="$t('Settings.TimelapseTab.PreviewImage').toString()"
|
||||
:sub-title="$t('Settings.TimelapseTab.PreviewImageDescription').toString()"
|
||||
:dynamic-slot-width="true">
|
||||
<v-switch
|
||||
v-model="previewimage"
|
||||
hide-details
|
||||
class="mt-0"
|
||||
:disabled="blockedsettings.includes('previewimage')"></v-switch>
|
||||
:disabled="blockedsettings.includes('previewimage')" />
|
||||
</settings-row>
|
||||
<v-divider class="my-2"></v-divider>
|
||||
<v-divider class="my-2" />
|
||||
<settings-row
|
||||
:title="$t('Settings.TimelapseTab.SaveFrames')"
|
||||
:sub-title="$t('Settings.TimelapseTab.SaveFramesDescription')"
|
||||
:title="$t('Settings.TimelapseTab.SaveFrames').toString()"
|
||||
:sub-title="$t('Settings.TimelapseTab.SaveFramesDescription').toString()"
|
||||
:dynamic-slot-width="true">
|
||||
<v-switch
|
||||
v-model="saveframes"
|
||||
hide-details
|
||||
class="mt-0"
|
||||
:disabled="blockedsettings.includes('saveframes')"></v-switch>
|
||||
:disabled="blockedsettings.includes('saveframes')" />
|
||||
</settings-row>
|
||||
<v-divider class="my-2"></v-divider>
|
||||
<v-divider class="my-2" />
|
||||
<settings-row
|
||||
:title="$t('Settings.TimelapseTab.StreamDelayCompensation')"
|
||||
:sub-title="$t('Settings.TimelapseTab.StreamDelayCompensationDescription')">
|
||||
:title="$t('Settings.TimelapseTab.StreamDelayCompensation').toString()"
|
||||
:sub-title="$t('Settings.TimelapseTab.StreamDelayCompensationDescription').toString()">
|
||||
<v-text-field
|
||||
v-model="stream_delay_compensation"
|
||||
type="number"
|
||||
@@ -100,50 +98,49 @@
|
||||
hide-details="auto"
|
||||
outlined
|
||||
dense
|
||||
:disabled="blockedsettings.includes('stream_delay_compensation')"></v-text-field>
|
||||
:disabled="blockedsettings.includes('stream_delay_compensation')" />
|
||||
</settings-row>
|
||||
<v-divider class="my-2"></v-divider>
|
||||
<v-divider class="my-2" />
|
||||
<settings-row
|
||||
:title="$t('Settings.TimelapseTab.GcodeVerbose')"
|
||||
:sub-title="$t('Settings.TimelapseTab.GcodeVerboseDescription')"
|
||||
:title="$t('Settings.TimelapseTab.GcodeVerbose').toString()"
|
||||
:sub-title="$t('Settings.TimelapseTab.GcodeVerboseDescription').toString()"
|
||||
:dynamic-slot-width="true">
|
||||
<v-switch
|
||||
v-model="gcode_verbose"
|
||||
hide-details
|
||||
class="mt-0"
|
||||
:disabled="blockedsettings.includes('gcode_verbose')"></v-switch>
|
||||
:disabled="blockedsettings.includes('gcode_verbose')" />
|
||||
</settings-row>
|
||||
<v-divider class="my-2"></v-divider>
|
||||
<v-divider class="my-2" />
|
||||
<h3 class="text-h5 mt-6 mb-3">{{ $t('Settings.TimelapseTab.Parkhead') }}</h3>
|
||||
<settings-row
|
||||
:title="$t('Settings.TimelapseTab.Parkhead')"
|
||||
:sub-title="$t('Settings.TimelapseTab.ParkheadDescription')"
|
||||
:title="$t('Settings.TimelapseTab.Parkhead').toString()"
|
||||
:sub-title="$t('Settings.TimelapseTab.ParkheadDescription').toString()"
|
||||
:dynamic-slot-width="true">
|
||||
<v-switch
|
||||
v-model="parkhead"
|
||||
hide-details
|
||||
class="mt-0"
|
||||
:disabled="blockedsettings.includes('parkhead')"></v-switch>
|
||||
:disabled="blockedsettings.includes('parkhead')" />
|
||||
</settings-row>
|
||||
<template v-if="parkhead">
|
||||
<v-divider class="my-2"></v-divider>
|
||||
<v-divider class="my-2" />
|
||||
<settings-row
|
||||
:title="$t('Settings.TimelapseTab.Parkpos')"
|
||||
:sub-title="$t('Settings.TimelapseTab.ParkposDescription')">
|
||||
:title="$t('Settings.TimelapseTab.Parkpos').toString()"
|
||||
:sub-title="$t('Settings.TimelapseTab.ParkposDescription').toString()">
|
||||
<v-select
|
||||
v-model="parkpos"
|
||||
:items="parkposOptions"
|
||||
hide-details
|
||||
outlined
|
||||
dense
|
||||
:disabled="blockedsettings.includes('parkposOptions')"
|
||||
attach></v-select>
|
||||
:disabled="blockedsettings.includes('parkposOptions')" />
|
||||
</settings-row>
|
||||
<template v-if="parkpos === 'custom'">
|
||||
<v-divider class="my-2"></v-divider>
|
||||
<template v-if="['x_only', 'custom'].includes(parkpos)">
|
||||
<v-divider class="my-2" />
|
||||
<settings-row
|
||||
:title="$t('Settings.TimelapseTab.PosX')"
|
||||
:sub-title="$t('Settings.TimelapseTab.PosXDescription')">
|
||||
:title="$t('Settings.TimelapseTab.PosX').toString()"
|
||||
:sub-title="$t('Settings.TimelapseTab.PosXDescription').toString()">
|
||||
<v-text-field
|
||||
v-model="park_custom_pos_x"
|
||||
type="number"
|
||||
@@ -152,12 +149,14 @@
|
||||
outlined
|
||||
dense
|
||||
:disabled="blockedsettings.includes('park_custom_pos_x')"
|
||||
hide-spin-buttons></v-text-field>
|
||||
hide-spin-buttons />
|
||||
</settings-row>
|
||||
<v-divider class="my-2"></v-divider>
|
||||
</template>
|
||||
<template v-if="['y_only', 'custom'].includes(parkpos)">
|
||||
<v-divider class="my-2" />
|
||||
<settings-row
|
||||
:title="$t('Settings.TimelapseTab.PosY')"
|
||||
:sub-title="$t('Settings.TimelapseTab.PosYDescription')">
|
||||
:title="$t('Settings.TimelapseTab.PosY').toString()"
|
||||
:sub-title="$t('Settings.TimelapseTab.PosYDescription').toString()">
|
||||
<v-text-field
|
||||
v-model="park_custom_pos_y"
|
||||
type="number"
|
||||
@@ -166,12 +165,14 @@
|
||||
outlined
|
||||
dense
|
||||
:disabled="blockedsettings.includes('park_custom_pos_y')"
|
||||
hide-spin-buttons></v-text-field>
|
||||
hide-spin-buttons />
|
||||
</settings-row>
|
||||
<v-divider class="my-2"></v-divider>
|
||||
</template>
|
||||
<template v-if="['x_only', 'y_only', 'custom'].includes(parkpos)">
|
||||
<v-divider class="my-2" />
|
||||
<settings-row
|
||||
:title="$t('Settings.TimelapseTab.PosDZ')"
|
||||
:sub-title="$t('Settings.TimelapseTab.PosDZDescription')">
|
||||
:title="$t('Settings.TimelapseTab.PosDZ').toString()"
|
||||
:sub-title="$t('Settings.TimelapseTab.PosDZDescription').toString()">
|
||||
<v-text-field
|
||||
v-model="park_custom_pos_dz"
|
||||
type="number"
|
||||
@@ -180,13 +181,13 @@
|
||||
outlined
|
||||
dense
|
||||
:disabled="blockedsettings.includes('park_custom_pos_dz')"
|
||||
hide-spin-buttons></v-text-field>
|
||||
hide-spin-buttons />
|
||||
</settings-row>
|
||||
</template>
|
||||
<v-divider class="my-2"></v-divider>
|
||||
<v-divider class="my-2" />
|
||||
<settings-row
|
||||
:title="$t('Settings.TimelapseTab.TravelSpeed')"
|
||||
:sub-title="$t('Settings.TimelapseTab.TravelSpeedDescription')">
|
||||
:title="$t('Settings.TimelapseTab.TravelSpeed').toString()"
|
||||
:sub-title="$t('Settings.TimelapseTab.TravelSpeedDescription').toString()">
|
||||
<v-text-field
|
||||
v-model="park_travel_speed"
|
||||
type="number"
|
||||
@@ -195,24 +196,24 @@
|
||||
outlined
|
||||
dense
|
||||
:disabled="blockedsettings.includes('park_travel_speed')"
|
||||
hide-spin-buttons></v-text-field>
|
||||
hide-spin-buttons />
|
||||
</settings-row>
|
||||
<v-divider class="my-2"></v-divider>
|
||||
<v-divider class="my-2" />
|
||||
<settings-row
|
||||
:title="$t('Settings.TimelapseTab.FwRetract')"
|
||||
:sub-title="$t('Settings.TimelapseTab.FwRetractDescription')"
|
||||
:title="$t('Settings.TimelapseTab.FwRetract').toString()"
|
||||
:sub-title="$t('Settings.TimelapseTab.FwRetractDescription').toString()"
|
||||
:dynamic-slot-width="true">
|
||||
<v-switch
|
||||
v-model="fw_retract"
|
||||
hide-details
|
||||
class="mt-0"
|
||||
:disabled="blockedsettings.includes('fw_retract')"></v-switch>
|
||||
:disabled="blockedsettings.includes('fw_retract')" />
|
||||
</settings-row>
|
||||
<template v-if="!fw_retract">
|
||||
<v-divider class="my-2"></v-divider>
|
||||
<v-divider class="my-2" />
|
||||
<settings-row
|
||||
:title="$t('Settings.TimelapseTab.RetractSpeed')"
|
||||
:sub-title="$t('Settings.TimelapseTab.RetractSpeedDescription')">
|
||||
:title="$t('Settings.TimelapseTab.RetractSpeed').toString()"
|
||||
:sub-title="$t('Settings.TimelapseTab.RetractSpeedDescription').toString()">
|
||||
<v-text-field
|
||||
v-model="park_retract_speed"
|
||||
type="number"
|
||||
@@ -221,12 +222,12 @@
|
||||
outlined
|
||||
dense
|
||||
:disabled="blockedsettings.includes('park_retract_speed')"
|
||||
hide-spin-buttons></v-text-field>
|
||||
hide-spin-buttons />
|
||||
</settings-row>
|
||||
<v-divider class="my-2"></v-divider>
|
||||
<v-divider class="my-2" />
|
||||
<settings-row
|
||||
:title="$t('Settings.TimelapseTab.RetractDistance')"
|
||||
:sub-title="$t('Settings.TimelapseTab.RetractDistanceDescription')">
|
||||
:title="$t('Settings.TimelapseTab.RetractDistance').toString()"
|
||||
:sub-title="$t('Settings.TimelapseTab.RetractDistanceDescription').toString()">
|
||||
<v-text-field
|
||||
v-model="park_retract_distance"
|
||||
type="number"
|
||||
@@ -237,10 +238,10 @@
|
||||
:disabled="blockedsettings.includes('park_retract_distance')"
|
||||
hide-spin-buttons></v-text-field>
|
||||
</settings-row>
|
||||
<v-divider class="my-2"></v-divider>
|
||||
<v-divider class="my-2" />
|
||||
<settings-row
|
||||
:title="$t('Settings.TimelapseTab.UnretractSpeed')"
|
||||
:sub-title="$t('Settings.TimelapseTab.UnretractSpeedDescription')">
|
||||
:title="$t('Settings.TimelapseTab.UnretractSpeed').toString()"
|
||||
:sub-title="$t('Settings.TimelapseTab.UnretractSpeedDescription').toString()">
|
||||
<v-text-field
|
||||
v-model="park_extrude_speed"
|
||||
type="number"
|
||||
@@ -249,12 +250,12 @@
|
||||
outlined
|
||||
dense
|
||||
:disabled="blockedsettings.includes('park_extrude_speed')"
|
||||
hide-spin-buttons></v-text-field>
|
||||
hide-spin-buttons />
|
||||
</settings-row>
|
||||
<v-divider class="my-2"></v-divider>
|
||||
<v-divider class="my-2" />
|
||||
<settings-row
|
||||
:title="$t('Settings.TimelapseTab.UnretractDistance')"
|
||||
:sub-title="$t('Settings.TimelapseTab.UnretractDistanceDescription')">
|
||||
:title="$t('Settings.TimelapseTab.UnretractDistance').toString()"
|
||||
:sub-title="$t('Settings.TimelapseTab.UnretractDistanceDescription').toString()">
|
||||
<v-text-field
|
||||
v-model="park_extrude_distance"
|
||||
type="number"
|
||||
@@ -263,13 +264,13 @@
|
||||
outlined
|
||||
dense
|
||||
:disabled="blockedsettings.includes('park_extrude_distance')"
|
||||
hide-spin-buttons></v-text-field>
|
||||
hide-spin-buttons />
|
||||
</settings-row>
|
||||
</template>
|
||||
<v-divider class="my-2"></v-divider>
|
||||
<v-divider class="my-2" />
|
||||
<settings-row
|
||||
:title="$t('Settings.TimelapseTab.ParkTime')"
|
||||
:sub-title="$t('Settings.TimelapseTab.ParkTimeDescription')">
|
||||
:title="$t('Settings.TimelapseTab.ParkTime').toString()"
|
||||
:sub-title="$t('Settings.TimelapseTab.ParkTimeDescription').toString()">
|
||||
<v-text-field
|
||||
v-model="park_time"
|
||||
type="number"
|
||||
@@ -278,26 +279,26 @@
|
||||
step="0.1"
|
||||
outlined
|
||||
dense
|
||||
:disabled="blockedsettings.includes('park_time')"></v-text-field>
|
||||
:disabled="blockedsettings.includes('park_time')" />
|
||||
</settings-row>
|
||||
</template>
|
||||
<v-divider class="my-2"></v-divider>
|
||||
<v-divider class="my-2" />
|
||||
<h3 class="text-h5 mt-6 mb-3">{{ $t('Settings.TimelapseTab.RenderingOptions') }}</h3>
|
||||
<settings-row
|
||||
:title="$t('Settings.TimelapseTab.VariableFps')"
|
||||
:sub-title="$t('Settings.TimelapseTab.VariableFpsDescription')"
|
||||
:title="$t('Settings.TimelapseTab.VariableFps').toString()"
|
||||
:sub-title="$t('Settings.TimelapseTab.VariableFpsDescription').toString()"
|
||||
:dynamic-slot-width="true">
|
||||
<v-switch
|
||||
v-model="variable_fps"
|
||||
hide-details
|
||||
class="mt-0"
|
||||
:disabled="blockedsettings.includes('variable_fps')"></v-switch>
|
||||
:disabled="blockedsettings.includes('variable_fps')" />
|
||||
</settings-row>
|
||||
<template v-if="variable_fps">
|
||||
<v-divider class="my-2"></v-divider>
|
||||
<v-divider class="my-2" />
|
||||
<settings-row
|
||||
:title="$t('Settings.TimelapseTab.Targetlength')"
|
||||
:sub-title="$t('Settings.TimelapseTab.TargetlengthDescription')">
|
||||
:title="$t('Settings.TimelapseTab.Targetlength').toString()"
|
||||
:sub-title="$t('Settings.TimelapseTab.TargetlengthDescription').toString()">
|
||||
<v-text-field
|
||||
v-model="targetlength"
|
||||
type="number"
|
||||
@@ -308,10 +309,10 @@
|
||||
:disabled="blockedsettings.includes('targetlength')"
|
||||
hide-spin-buttons></v-text-field>
|
||||
</settings-row>
|
||||
<v-divider class="my-2"></v-divider>
|
||||
<v-divider class="my-2" />
|
||||
<settings-row
|
||||
:title="$t('Settings.TimelapseTab.VariableFpsMin')"
|
||||
:sub-title="$t('Settings.TimelapseTab.VariableFpsMinDescription')">
|
||||
:title="$t('Settings.TimelapseTab.VariableFpsMin').toString()"
|
||||
:sub-title="$t('Settings.TimelapseTab.VariableFpsMinDescription').toString()">
|
||||
<v-text-field
|
||||
v-model="variable_fps_min"
|
||||
type="number"
|
||||
@@ -320,12 +321,12 @@
|
||||
outlined
|
||||
dense
|
||||
:disabled="blockedsettings.includes('variable_fps_min')"
|
||||
hide-spin-buttons></v-text-field>
|
||||
hide-spin-buttons />
|
||||
</settings-row>
|
||||
<v-divider class="my-2"></v-divider>
|
||||
<v-divider class="my-2" />
|
||||
<settings-row
|
||||
:title="$t('Settings.TimelapseTab.VariableFpsMax')"
|
||||
:sub-title="$t('Settings.TimelapseTab.VariableFpsMaxDescription')">
|
||||
:title="$t('Settings.TimelapseTab.VariableFpsMax').toString()"
|
||||
:sub-title="$t('Settings.TimelapseTab.VariableFpsMaxDescription').toString()">
|
||||
<v-text-field
|
||||
v-model="variable_fps_max"
|
||||
type="number"
|
||||
@@ -334,14 +335,14 @@
|
||||
outlined
|
||||
dense
|
||||
:disabled="blockedsettings.includes('variable_fps_max')"
|
||||
hide-spin-buttons></v-text-field>
|
||||
hide-spin-buttons />
|
||||
</settings-row>
|
||||
</template>
|
||||
<template v-else>
|
||||
<v-divider class="my-2"></v-divider>
|
||||
<v-divider class="my-2" />
|
||||
<settings-row
|
||||
:title="$t('Settings.TimelapseTab.OutputFramerate')"
|
||||
:sub-title="$t('Settings.TimelapseTab.OutputFramerateDescription')">
|
||||
:title="$t('Settings.TimelapseTab.OutputFramerate').toString()"
|
||||
:sub-title="$t('Settings.TimelapseTab.OutputFramerateDescription').toString()">
|
||||
<v-text-field
|
||||
v-model="output_framerate"
|
||||
type="number"
|
||||
@@ -350,13 +351,13 @@
|
||||
outlined
|
||||
dense
|
||||
:disabled="blockedsettings.includes('output_framerate')"
|
||||
hide-spin-buttons></v-text-field>
|
||||
hide-spin-buttons />
|
||||
</settings-row>
|
||||
</template>
|
||||
<v-divider class="my-2"></v-divider>
|
||||
<v-divider class="my-2" />
|
||||
<settings-row
|
||||
:title="$t('Settings.TimelapseTab.duplicatelastframe')"
|
||||
:sub-title="$t('Settings.TimelapseTab.duplicatelastframeDescription')">
|
||||
:title="$t('Settings.TimelapseTab.duplicatelastframe').toString()"
|
||||
:sub-title="$t('Settings.TimelapseTab.duplicatelastframeDescription').toString()">
|
||||
<v-text-field
|
||||
v-model="duplicatelastframe"
|
||||
type="number"
|
||||
@@ -364,12 +365,12 @@
|
||||
outlined
|
||||
dense
|
||||
:disabled="blockedsettings.includes('duplicatelastframe')"
|
||||
hide-spin-buttons></v-text-field>
|
||||
hide-spin-buttons />
|
||||
</settings-row>
|
||||
<v-divider class="my-2"></v-divider>
|
||||
<v-divider class="my-2" />
|
||||
<settings-row
|
||||
:title="$t('Settings.TimelapseTab.ConstantRateFactor')"
|
||||
:sub-title="$t('Settings.TimelapseTab.ConstantRateFactorDescription')">
|
||||
:title="$t('Settings.TimelapseTab.ConstantRateFactor').toString()"
|
||||
:sub-title="$t('Settings.TimelapseTab.ConstantRateFactorDescription').toString()">
|
||||
<v-text-field
|
||||
v-model="constant_rate_factor"
|
||||
type="number"
|
||||
@@ -377,43 +378,43 @@
|
||||
outlined
|
||||
dense
|
||||
:disabled="blockedsettings.includes('constant_rate_factor')"
|
||||
hide-spin-buttons></v-text-field>
|
||||
hide-spin-buttons />
|
||||
</settings-row>
|
||||
<v-divider class="my-2"></v-divider>
|
||||
<v-divider class="my-2" />
|
||||
<settings-row
|
||||
:title="$t('Settings.TimelapseTab.Pixelformat')"
|
||||
:sub-title="$t('Settings.TimelapseTab.PixelformatDescription')">
|
||||
:title="$t('Settings.TimelapseTab.Pixelformat').toString()"
|
||||
:sub-title="$t('Settings.TimelapseTab.PixelformatDescription').toString()">
|
||||
<v-text-field
|
||||
v-model="pixelformat"
|
||||
type="text"
|
||||
hide-details="auto"
|
||||
outlined
|
||||
dense
|
||||
:disabled="blockedsettings.includes('pixelformat')"></v-text-field>
|
||||
:disabled="blockedsettings.includes('pixelformat')" />
|
||||
</settings-row>
|
||||
<v-divider class="my-2"></v-divider>
|
||||
<v-divider class="my-2" />
|
||||
<settings-row
|
||||
:title="$t('Settings.TimelapseTab.TimeFormatCode')"
|
||||
:sub-title="$t('Settings.TimelapseTab.TimeFormatCodeDescription')">
|
||||
:title="$t('Settings.TimelapseTab.TimeFormatCode').toString()"
|
||||
:sub-title="$t('Settings.TimelapseTab.TimeFormatCodeDescription').toString()">
|
||||
<v-text-field
|
||||
v-model="time_format_code"
|
||||
type="text"
|
||||
hide-details="auto"
|
||||
outlined
|
||||
dense
|
||||
:disabled="blockedsettings.includes('time_format_code')"></v-text-field>
|
||||
:disabled="blockedsettings.includes('time_format_code')" />
|
||||
</settings-row>
|
||||
<v-divider class="my-2"></v-divider>
|
||||
<v-divider class="my-2" />
|
||||
<settings-row
|
||||
:title="$t('Settings.TimelapseTab.Extraoutputparams')"
|
||||
:sub-title="$t('Settings.TimelapseTab.ExtraoutputparamsDescription')">
|
||||
:title="$t('Settings.TimelapseTab.Extraoutputparams').toString()"
|
||||
:sub-title="$t('Settings.TimelapseTab.ExtraoutputparamsDescription').toString()">
|
||||
<v-text-field
|
||||
v-model="extraoutputparams"
|
||||
type="text"
|
||||
hide-details="auto"
|
||||
outlined
|
||||
dense
|
||||
:disabled="blockedsettings.includes('extraoutputparams')"></v-text-field>
|
||||
:disabled="blockedsettings.includes('extraoutputparams')" />
|
||||
</settings-row>
|
||||
</v-card-text>
|
||||
</v-card>
|
||||
@@ -463,6 +464,14 @@ export default class SettingsTimelapseTab extends Mixins(BaseMixin) {
|
||||
text: 'back_right',
|
||||
value: 'back_right',
|
||||
},
|
||||
{
|
||||
text: 'x_only',
|
||||
value: 'x_only',
|
||||
},
|
||||
{
|
||||
text: 'y_only',
|
||||
value: 'y_only',
|
||||
},
|
||||
{
|
||||
text: 'custom',
|
||||
value: 'custom',
|
||||
|
||||
@@ -13,7 +13,7 @@
|
||||
</v-btn>
|
||||
<v-menu bottom left offset-y :close-on-content-click="false">
|
||||
<template #activator="{ on, attrs }">
|
||||
<v-btn v-bind="attrs" :color="logoColor" class="minwidth-0 px-5" small v-on="on"></v-btn>
|
||||
<v-btn v-bind="attrs" :color="logoColor" class="minwidth-0 px-5" small v-on="on" />
|
||||
</template>
|
||||
<v-color-picker
|
||||
:value="logoColor"
|
||||
@@ -22,7 +22,7 @@
|
||||
@update:color="updateLogoColor"></v-color-picker>
|
||||
</v-menu>
|
||||
</settings-row>
|
||||
<v-divider class="my-2"></v-divider>
|
||||
<v-divider class="my-2" />
|
||||
<settings-row :title="$t('Settings.UiSettingsTab.Primary').toString()">
|
||||
<v-btn
|
||||
v-if="primaryColor.toLowerCase() !== defaultPrimaryColor.toLowerCase()"
|
||||
@@ -34,16 +34,16 @@
|
||||
</v-btn>
|
||||
<v-menu bottom left offset-y :close-on-content-click="false">
|
||||
<template #activator="{ on, attrs }">
|
||||
<v-btn v-bind="attrs" :color="primaryColor" class="minwidth-0 px-5" small v-on="on"></v-btn>
|
||||
<v-btn v-bind="attrs" :color="primaryColor" class="minwidth-0 px-5" small v-on="on" />
|
||||
</template>
|
||||
<v-color-picker
|
||||
:value="primaryColor"
|
||||
hide-mode-switch
|
||||
mode="rgba"
|
||||
@update:color="updatePrimaryColor"></v-color-picker>
|
||||
@update:color="updatePrimaryColor" />
|
||||
</v-menu>
|
||||
</settings-row>
|
||||
<v-divider class="my-2"></v-divider>
|
||||
<v-divider class="my-2" />
|
||||
<settings-row
|
||||
:title="$t('Settings.UiSettingsTab.GcodeThumbnails').toString()"
|
||||
:sub-title="$t('Settings.UiSettingsTab.GcodeThumbnailsDescription').toString()"
|
||||
@@ -52,37 +52,33 @@
|
||||
outlined
|
||||
small
|
||||
color="primary"
|
||||
href="https://docs.mainsail.xyz/quicktips/thumbnails"
|
||||
href="https://docs.mainsail.xyz/overview/features/thumbnails"
|
||||
target="_blank">
|
||||
{{ $t('Settings.UiSettingsTab.Guide') }}
|
||||
{{ $t('Settings.UiSettingsTab.Guide').toString() }}
|
||||
</v-btn>
|
||||
</settings-row>
|
||||
<v-divider class="my-2"></v-divider>
|
||||
<v-divider class="my-2" />
|
||||
<settings-row
|
||||
:title="$t('Settings.UiSettingsTab.BoolBigThumbnail').toString()"
|
||||
:sub-title="$t('Settings.UiSettingsTab.BoolBigThumbnailDescription').toString()"
|
||||
:dynamic-slot-width="true">
|
||||
<v-switch v-model="boolBigThumbnail" hide-details class="mt-0"></v-switch>
|
||||
<v-switch v-model="boolBigThumbnail" hide-details class="mt-0" />
|
||||
</settings-row>
|
||||
<v-divider class="my-2"></v-divider>
|
||||
<settings-row :title="$t('Settings.UiSettingsTab.ShowWebcamInNavigation').toString()">
|
||||
<v-switch v-model="boolWebcamInNavigation" hide-details class="mt-0"></v-switch>
|
||||
</settings-row>
|
||||
<v-divider class="my-2"></v-divider>
|
||||
<v-divider class="my-2" />
|
||||
<settings-row
|
||||
:title="$t('Settings.UiSettingsTab.DisplayCANCEL_PRINT').toString()"
|
||||
:sub-title="$t('Settings.UiSettingsTab.DisplayCANCEL_PRINTDescription').toString()"
|
||||
:dynamic-slot-width="true">
|
||||
<v-switch v-model="displayCancelPrint" hide-details class="mt-0"></v-switch>
|
||||
</settings-row>
|
||||
<v-divider class="my-2"></v-divider>
|
||||
<v-divider class="my-2" />
|
||||
<settings-row
|
||||
:title="$t('Settings.UiSettingsTab.LockSliders').toString()"
|
||||
:sub-title="$t('Settings.UiSettingsTab.LockSlidersDescription').toString()"
|
||||
:dynamic-slot-width="true">
|
||||
<v-switch v-model="lockSliders" hide-details class="mt-0"></v-switch>
|
||||
<v-switch v-model="lockSliders" hide-details class="mt-0" />
|
||||
</settings-row>
|
||||
<v-divider class="my-2"></v-divider>
|
||||
<v-divider class="my-2" />
|
||||
<v-expand-transition>
|
||||
<settings-row
|
||||
v-show="lockSliders"
|
||||
@@ -103,24 +99,24 @@
|
||||
hide-details
|
||||
outlined
|
||||
dense
|
||||
hide-spin-buttons></v-text-field>
|
||||
hide-spin-buttons />
|
||||
</settings-row>
|
||||
</v-expand-transition>
|
||||
<v-divider v-show="lockSliders" class="my-2"></v-divider>
|
||||
<v-divider v-show="lockSliders" class="my-2" />
|
||||
<settings-row
|
||||
:title="$t('Settings.UiSettingsTab.ConfirmOnEmergencyStop').toString()"
|
||||
:sub-title="$t('Settings.UiSettingsTab.ConfirmOnEmergencyStopDescription').toString()"
|
||||
:dynamic-slot-width="true">
|
||||
<v-switch v-model="confirmOnEmergencyStop" hide-details class="mt-0"></v-switch>
|
||||
<v-switch v-model="confirmOnEmergencyStop" hide-details class="mt-0" />
|
||||
</settings-row>
|
||||
<v-divider class="my-2"></v-divider>
|
||||
<v-divider class="my-2" />
|
||||
<settings-row
|
||||
:title="$t('Settings.UiSettingsTab.ConfirmOnPowerDeviceChange').toString()"
|
||||
:sub-title="$t('Settings.UiSettingsTab.ConfirmOnPowerDeviceChangeDescription').toString()"
|
||||
:dynamic-slot-width="true">
|
||||
<v-switch v-model="confirmOnPowerDeviceChange" hide-details class="mt-0"></v-switch>
|
||||
<v-switch v-model="confirmOnPowerDeviceChange" hide-details class="mt-0" />
|
||||
</settings-row>
|
||||
<v-divider class="my-2"></v-divider>
|
||||
<v-divider class="my-2" />
|
||||
<settings-row
|
||||
:title="$t('Settings.UiSettingsTab.NavigationStyle').toString()"
|
||||
:sub-title="$t('Settings.UiSettingsTab.NavigationStyleDescription').toString()">
|
||||
@@ -130,15 +126,74 @@
|
||||
class="mt-0"
|
||||
hide-details
|
||||
outlined
|
||||
attach
|
||||
dense></v-select>
|
||||
dense />
|
||||
</settings-row>
|
||||
<v-divider class="my-2"></v-divider>
|
||||
<v-divider class="my-2" />
|
||||
<settings-row
|
||||
:title="$t('Settings.UiSettingsTab.BoolHideUploadAndPrintButton').toString()"
|
||||
:sub-title="$t('Settings.UiSettingsTab.BoolHideUploadAndPrintButtonDescription').toString()"
|
||||
:dynamic-slot-width="true">
|
||||
<v-switch v-model="boolHideUploadAndPrintButton" hide-details class="mt-0"></v-switch>
|
||||
<v-switch v-model="boolHideUploadAndPrintButton" hide-details class="mt-0" />
|
||||
</settings-row>
|
||||
<v-divider class="my-2"></v-divider>
|
||||
<settings-row
|
||||
:title="$t('Settings.UiSettingsTab.PowerDeviceName').toString()"
|
||||
:sub-title="$t('Settings.UiSettingsTab.PowerDeviceNameDescription').toString()"
|
||||
:dynamic-slot-width="true">
|
||||
<v-select
|
||||
v-model="powerDeviceName"
|
||||
:items="powerDeviceOptions"
|
||||
class="mt-0"
|
||||
hide-details
|
||||
outlined
|
||||
dense />
|
||||
</settings-row>
|
||||
<v-divider class="my-2" />
|
||||
<settings-row
|
||||
:title="$t('Settings.UiSettingsTab.HideSaveConfigButtonForBedMesh').toString()"
|
||||
:sub-title="$t('Settings.UiSettingsTab.HideSaveConfigButtonForBedMeshDescription').toString()"
|
||||
:dynamic-slot-width="true">
|
||||
<v-switch v-model="hideSaveConfigForBedMash" hide-details class="mt-0" />
|
||||
</settings-row>
|
||||
<v-divider class="my-2" />
|
||||
<settings-row
|
||||
:title="$t('Settings.UiSettingsTab.DisableFanAnimation').toString()"
|
||||
:sub-title="$t('Settings.UiSettingsTab.DisableFanAnimationDescription').toString()"
|
||||
:dynamic-slot-width="true">
|
||||
<v-switch v-model="disableFanAnimation" hide-details class="mt-0" />
|
||||
</settings-row>
|
||||
<v-divider class="my-2" />
|
||||
<settings-row
|
||||
:title="$t('Settings.UiSettingsTab.ManualProbeDialog').toString()"
|
||||
:sub-title="$t('Settings.UiSettingsTab.ManualProbeDialogDescription').toString()"
|
||||
:dynamic-slot-width="true">
|
||||
<v-switch v-model="boolManualProbeDialog" hide-details class="mt-0" />
|
||||
</settings-row>
|
||||
<v-divider class="my-2" />
|
||||
<settings-row
|
||||
:title="$t('Settings.UiSettingsTab.BedScrewsDialog').toString()"
|
||||
:sub-title="$t('Settings.UiSettingsTab.BedScrewsDialogDescription').toString()"
|
||||
:dynamic-slot-width="true">
|
||||
<v-switch v-model="boolBedScrewsDialog" hide-details class="mt-0" />
|
||||
</settings-row>
|
||||
<v-divider class="my-2" />
|
||||
<settings-row
|
||||
:title="$t('Settings.UiSettingsTab.ScrewsTiltAdjustDialog').toString()"
|
||||
:sub-title="$t('Settings.UiSettingsTab.ScrewsTiltAdjustDialogDescription').toString()"
|
||||
:dynamic-slot-width="true">
|
||||
<v-switch v-model="boolScrewsTiltAdjustDialog" hide-details class="mt-0" />
|
||||
</settings-row>
|
||||
<v-divider class="my-2" />
|
||||
<settings-row
|
||||
:title="$t('Settings.UiSettingsTab.TempchartHeight').toString()"
|
||||
:sub-title="$t('Settings.UiSettingsTab.TempchartHeightDescription').toString()">
|
||||
<v-slider
|
||||
v-model.lazy="tempchartHeight"
|
||||
hide-details
|
||||
:min="100"
|
||||
:max="500"
|
||||
:step="1"
|
||||
:label="tempchartHeight + 'px'" />
|
||||
</settings-row>
|
||||
</v-card-text>
|
||||
</v-card>
|
||||
@@ -153,6 +208,7 @@ import SettingsRow from '@/components/settings/SettingsRow.vue'
|
||||
import { defaultLogoColor, defaultPrimaryColor } from '@/store/variables'
|
||||
import { Debounce } from 'vue-debounce-decorator'
|
||||
import { mdiRestart, mdiTimerOutline } from '@mdi/js'
|
||||
import { ServerPowerStateDevice } from '@/store/server/power/types'
|
||||
|
||||
@Component({
|
||||
components: { SettingsRow },
|
||||
@@ -188,14 +244,6 @@ export default class SettingsUiSettingsTab extends Mixins(BaseMixin) {
|
||||
this.$store.dispatch('gui/saveSetting', { name: 'uiSettings.boolBigThumbnail', value: newVal })
|
||||
}
|
||||
|
||||
get boolWebcamInNavigation() {
|
||||
return this.$store.state.gui.uiSettings.boolWebcamNavi ?? false
|
||||
}
|
||||
|
||||
set boolWebcamInNavigation(newVal) {
|
||||
this.$store.dispatch('gui/saveSetting', { name: 'uiSettings.boolWebcamNavi', value: newVal })
|
||||
}
|
||||
|
||||
get displayCancelPrint() {
|
||||
return this.$store.state.gui.uiSettings.displayCancelPrint
|
||||
}
|
||||
@@ -271,6 +319,88 @@ export default class SettingsUiSettingsTab extends Mixins(BaseMixin) {
|
||||
this.$store.dispatch('gui/saveSetting', { name: 'uiSettings.boolHideUploadAndPrintButton', value: newVal })
|
||||
}
|
||||
|
||||
get powerDevices() {
|
||||
return this.$store.getters['server/power/getDevices'] ?? []
|
||||
}
|
||||
|
||||
get autoPowerDevice() {
|
||||
const autoIndex = this.powerDevices.findIndex((device: ServerPowerStateDevice) => device.device === 'printer')
|
||||
if (autoIndex === -1) return '--'
|
||||
|
||||
return this.powerDevices[autoIndex].device
|
||||
}
|
||||
|
||||
get powerDeviceName() {
|
||||
return this.$store.state.gui.uiSettings.powerDeviceName ?? null
|
||||
}
|
||||
|
||||
set powerDeviceName(newVal) {
|
||||
this.$store.dispatch('gui/saveSetting', { name: 'uiSettings.powerDeviceName', value: newVal })
|
||||
}
|
||||
|
||||
get powerDeviceOptions() {
|
||||
const items: { text: string; value: string | null }[] = [
|
||||
{ text: `Auto (${this.autoPowerDevice})`, value: null },
|
||||
]
|
||||
|
||||
this.powerDevices.forEach((device: ServerPowerStateDevice) => {
|
||||
items.push({
|
||||
text: `${device.device} (${device.type})`,
|
||||
value: device.device.toString(),
|
||||
})
|
||||
})
|
||||
|
||||
return items
|
||||
}
|
||||
|
||||
get hideSaveConfigForBedMash() {
|
||||
return this.$store.state.gui.uiSettings.hideSaveConfigForBedMash ?? false
|
||||
}
|
||||
|
||||
set hideSaveConfigForBedMash(newVal) {
|
||||
this.$store.dispatch('gui/saveSetting', { name: 'uiSettings.hideSaveConfigForBedMash', value: newVal })
|
||||
}
|
||||
|
||||
get disableFanAnimation() {
|
||||
return this.$store.state.gui.uiSettings.disableFanAnimation ?? false
|
||||
}
|
||||
|
||||
set disableFanAnimation(newVal) {
|
||||
this.$store.dispatch('gui/saveSetting', { name: 'uiSettings.disableFanAnimation', value: newVal })
|
||||
}
|
||||
|
||||
get boolManualProbeDialog() {
|
||||
return this.$store.state.gui.uiSettings.boolManualProbeDialog ?? true
|
||||
}
|
||||
|
||||
set boolManualProbeDialog(newVal) {
|
||||
this.$store.dispatch('gui/saveSetting', { name: 'uiSettings.boolManualProbeDialog', value: newVal })
|
||||
}
|
||||
|
||||
get boolBedScrewsDialog() {
|
||||
return this.$store.state.gui.uiSettings.boolBedScrewsDialog ?? true
|
||||
}
|
||||
|
||||
set boolBedScrewsDialog(newVal) {
|
||||
this.$store.dispatch('gui/saveSetting', { name: 'uiSettings.boolBedScrewsDialog', value: newVal })
|
||||
}
|
||||
|
||||
get boolScrewsTiltAdjustDialog() {
|
||||
return this.$store.state.gui.uiSettings.boolScrewsTiltAdjustDialog ?? true
|
||||
}
|
||||
|
||||
set boolScrewsTiltAdjustDialog(newVal) {
|
||||
this.$store.dispatch('gui/saveSetting', { name: 'uiSettings.boolScrewsTiltAdjustDialog', value: newVal })
|
||||
}
|
||||
|
||||
get tempchartHeight() {
|
||||
return this.$store.state.gui.uiSettings.tempchartHeight ?? 250
|
||||
}
|
||||
|
||||
set tempchartHeight(newVal) {
|
||||
this.$store.dispatch('gui/saveSetting', { name: 'uiSettings.tempchartHeight', value: newVal })
|
||||
}
|
||||
|
||||
clearColorObject(color: any): string {
|
||||
if (typeof color === 'object' && 'hex' in color) color = color.hex
|
||||
if (color.length > 7) color = color.substr(0, 7)
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
<v-card-text>
|
||||
<h3 class="text-h5 mb-3">{{ $t('Settings.WebcamsTab.Webcams') }}</h3>
|
||||
<div v-for="webcam in webcams" :key="webcam.id">
|
||||
<v-divider class="my-2"></v-divider>
|
||||
<v-divider class="my-2" />
|
||||
<settings-row
|
||||
:title="webcam.name"
|
||||
:icon="convertWebcamIcon(webcam.icon)"
|
||||
@@ -18,7 +18,7 @@
|
||||
outlined
|
||||
class="ml-3 minwidth-0 px-2"
|
||||
color="error"
|
||||
@click="deleteWebcam(webcam.id)">
|
||||
@click="deleteWebcam(webcam.id ?? '')">
|
||||
<v-icon small>{{ mdiDelete }}</v-icon>
|
||||
</v-btn>
|
||||
</settings-row>
|
||||
@@ -28,7 +28,7 @@
|
||||
<v-btn v-if="existCrowsnestConf" text color="primary" @click="openCrowsnestConf">
|
||||
{{ $t('Settings.WebcamsTab.EditCrowsnestConf') }}
|
||||
</v-btn>
|
||||
<v-spacer></v-spacer>
|
||||
<v-spacer />
|
||||
<v-btn text color="primary" @click="createWebcam">{{ $t('Settings.WebcamsTab.AddWebcam') }}</v-btn>
|
||||
</v-card-actions>
|
||||
</v-card>
|
||||
@@ -77,7 +77,7 @@
|
||||
</v-icon>
|
||||
</v-list-item-icon>
|
||||
<v-list-item-content>
|
||||
<v-list-item-title v-text="icon.text"></v-list-item-title>
|
||||
<v-list-item-title v-text="icon.text" />
|
||||
</v-list-item-content>
|
||||
</v-list-item>
|
||||
</v-list>
|
||||
@@ -90,7 +90,7 @@
|
||||
outlined
|
||||
:rules="[rules.required, rules.unique]"
|
||||
class="_webcam-settings-name-field"
|
||||
dense></v-text-field>
|
||||
dense />
|
||||
</v-col>
|
||||
</v-row>
|
||||
<v-row>
|
||||
@@ -101,9 +101,7 @@
|
||||
hide-details="auto"
|
||||
outlined
|
||||
dense
|
||||
:rules="
|
||||
form.service !== 'mjpegstreamer-adaptive' ? [rules.required] : []
|
||||
"></v-text-field>
|
||||
:rules="form.service !== 'mjpegstreamer-adaptive' ? [rules.required] : []" />
|
||||
</v-col>
|
||||
</v-row>
|
||||
<v-row>
|
||||
@@ -114,9 +112,7 @@
|
||||
hide-details="auto"
|
||||
outlined
|
||||
dense
|
||||
:rules="
|
||||
form.service === 'mjpegstreamer-adaptive' ? [rules.required] : []
|
||||
"></v-text-field>
|
||||
:rules="form.service === 'mjpegstreamer-adaptive' ? [rules.required] : []" />
|
||||
</v-col>
|
||||
</v-row>
|
||||
<v-row>
|
||||
@@ -128,17 +124,17 @@
|
||||
outlined
|
||||
dense
|
||||
:label="$t('Settings.WebcamsTab.Service')"
|
||||
attach></v-select>
|
||||
attach />
|
||||
</v-col>
|
||||
</v-row>
|
||||
<v-row v-if="form.service === 'mjpegstreamer-adaptive'">
|
||||
<v-row v-if="form.service === 'mjpegstreamer-adaptive' || form.service === 'jmuxer-stream'">
|
||||
<v-col class="py-2 col-6">
|
||||
<v-text-field
|
||||
v-model="form.targetFps"
|
||||
outlined
|
||||
dense
|
||||
hide-details
|
||||
:label="$t('Settings.WebcamsTab.TargetFPS')"></v-text-field>
|
||||
:label="$t('Settings.WebcamsTab.TargetFPS')" />
|
||||
</v-col>
|
||||
<v-col class="py-2 col-6">
|
||||
<v-select
|
||||
@@ -147,7 +143,7 @@
|
||||
outlined
|
||||
dense
|
||||
hide-details
|
||||
:label="$t('Settings.WebcamsTab.Rotate')"></v-select>
|
||||
:label="$t('Settings.WebcamsTab.Rotate')" />
|
||||
</v-col>
|
||||
</v-row>
|
||||
<v-row>
|
||||
@@ -163,35 +159,19 @@
|
||||
v-model="form.flipX"
|
||||
class="mt-1"
|
||||
hide-details
|
||||
:label="$t('Settings.WebcamsTab.Horizontally')"></v-checkbox>
|
||||
:label="$t('Settings.WebcamsTab.Horizontally')" />
|
||||
</v-col>
|
||||
<v-col class="py-0">
|
||||
<v-checkbox
|
||||
v-model="form.flipY"
|
||||
class="mt-1"
|
||||
hide-details
|
||||
:label="$t('Settings.WebcamsTab.Vertically')"></v-checkbox>
|
||||
:label="$t('Settings.WebcamsTab.Vertically')" />
|
||||
</v-col>
|
||||
</v-row>
|
||||
</v-col>
|
||||
<v-col class="col-12 col-sm-6 text-center" align-self="center">
|
||||
<template v-if="form.service === 'mjpegstreamer'">
|
||||
<webcam-mjpegstreamer :cam-settings="form"></webcam-mjpegstreamer>
|
||||
</template>
|
||||
<template v-else-if="form.service === 'mjpegstreamer-adaptive'">
|
||||
<webcam-mjpegstreamer-adaptive :cam-settings="form"></webcam-mjpegstreamer-adaptive>
|
||||
</template>
|
||||
<template v-else-if="form.service === 'uv4l-mjpeg'">
|
||||
<webcam-uv4l-mjpeg :cam-settings="form"></webcam-uv4l-mjpeg>
|
||||
</template>
|
||||
<template v-else-if="form.service === 'ipstream'">
|
||||
<webcam-ipstreamer :cam-settings="form"></webcam-ipstreamer>
|
||||
</template>
|
||||
<template v-else>
|
||||
<p class="text-center py-3 font-italic">
|
||||
{{ $t('Panels.WebcamPanel.UnknownWebcamService') }}
|
||||
</p>
|
||||
</template>
|
||||
<webcam-wrapper :webcam="form" />
|
||||
</v-col>
|
||||
</v-row>
|
||||
</v-card-text>
|
||||
@@ -217,10 +197,6 @@ import { Component, Mixins } from 'vue-property-decorator'
|
||||
import BaseMixin from '../mixins/base'
|
||||
import SettingsRow from '@/components/settings/SettingsRow.vue'
|
||||
import { GuiWebcamStateWebcam } from '@/store/gui/webcams/types'
|
||||
import Mjpegstreamer from '@/components/webcams/Mjpegstreamer.vue'
|
||||
import MjpegstreamerAdaptive from '@/components/webcams/MjpegstreamerAdaptive.vue'
|
||||
import Uv4lMjpeg from '@/components/webcams/Uv4lMjpeg.vue'
|
||||
import Ipstreamer from '@/components/webcams/Ipstreamer.vue'
|
||||
import { mdiMenuDown, mdiDelete, mdiPencil, mdiWebcam } from '@mdi/js'
|
||||
import WebcamMixin from '@/components/mixins/webcam'
|
||||
import { FileStateFile } from '@/store/files/types'
|
||||
@@ -243,10 +219,6 @@ interface webcamForm {
|
||||
@Component({
|
||||
components: {
|
||||
SettingsRow,
|
||||
'webcam-mjpegstreamer': Mjpegstreamer,
|
||||
'webcam-mjpegstreamer-adaptive': MjpegstreamerAdaptive,
|
||||
'webcam-uv4l-mjpeg': Uv4lMjpeg,
|
||||
'webcam-ipstreamer': Ipstreamer,
|
||||
},
|
||||
})
|
||||
export default class SettingsWebcamsTab extends Mixins(BaseMixin, WebcamMixin) {
|
||||
@@ -310,20 +282,14 @@ export default class SettingsWebcamsTab extends Mixins(BaseMixin, WebcamMixin) {
|
||||
{ value: 'mjpegstreamer-adaptive', text: this.$t('Settings.WebcamsTab.MjpegstreamerAdaptive') },
|
||||
{ value: 'uv4l-mjpeg', text: this.$t('Settings.WebcamsTab.Uv4lMjpeg') },
|
||||
{ value: 'ipstream', text: this.$t('Settings.WebcamsTab.Ipstream') },
|
||||
{ value: 'webrtc-camerastreamer', text: this.$t('Settings.WebcamsTab.WebrtcCameraStreamer') },
|
||||
{ value: 'webrtc-mediamtx', text: this.$t('Settings.WebcamsTab.WebrtcMediaMTX') },
|
||||
{ value: 'hlsstream', text: this.$t('Settings.WebcamsTab.Hlsstream') },
|
||||
{ value: 'jmuxer-stream', text: this.$t('Settings.WebcamsTab.JMuxerStream') },
|
||||
{ value: 'webrtc-janus', text: this.$t('Settings.WebcamsTab.WebrtcJanus') },
|
||||
]
|
||||
}
|
||||
|
||||
get webcamStyle() {
|
||||
let transforms = ''
|
||||
if (this.form.flipX) transforms += ' scaleX(-1)'
|
||||
if (this.form.flipY) transforms += ' scaleY(-1)'
|
||||
if (transforms.trimLeft().length) {
|
||||
return { transform: transforms.trimLeft() }
|
||||
}
|
||||
|
||||
return ''
|
||||
}
|
||||
|
||||
get configfiles() {
|
||||
return this.$store.getters['files/getDirectory']('config')?.childrens ?? []
|
||||
}
|
||||
|
||||
+43
-43
@@ -1,37 +1,3 @@
|
||||
<style lang="scss" scoped>
|
||||
.expanded header.v-toolbar {
|
||||
border-bottom-left-radius: 4px;
|
||||
border-bottom-right-radius: 4px;
|
||||
}
|
||||
|
||||
.btn-collapsible > * {
|
||||
will-change: transform;
|
||||
transition: transform 500ms;
|
||||
}
|
||||
.icon-rotate-90 {
|
||||
transform: rotate(90deg);
|
||||
}
|
||||
</style>
|
||||
|
||||
<style lang="scss">
|
||||
.v-card.panel .v-toolbar__content {
|
||||
padding-right: 0;
|
||||
}
|
||||
.v-card.panel .v-toolbar__content .subheading {
|
||||
user-select: none;
|
||||
}
|
||||
.panel-toolbar {
|
||||
overflow-y: hidden;
|
||||
}
|
||||
.panel-toolbar .v-btn {
|
||||
height: 100% !important;
|
||||
max-height: none;
|
||||
}
|
||||
.panel-toolbar .v-btn.v-btn--icon {
|
||||
width: var(--panel-toolbar-icon-btn-width) !important;
|
||||
}
|
||||
</style>
|
||||
|
||||
<template>
|
||||
<v-card
|
||||
:class="'panel ' + cardClass + ' ' + (marginBottom ? 'mb-3 mb-md-6' : '') + ' ' + (!expand ? 'expanded' : '')"
|
||||
@@ -43,17 +9,17 @@
|
||||
:class="getToolbarClass"
|
||||
:height="panelToolbarHeight"
|
||||
class="panel-toolbar">
|
||||
<slot name="buttons-left"></slot>
|
||||
<slot name="buttons-left" />
|
||||
<v-toolbar-title class="d-flex align-center">
|
||||
<slot v-if="hasIconSlot" name="icon"></slot>
|
||||
<slot v-if="hasIconSlot" name="icon" />
|
||||
<v-icon v-if="icon !== null && !hasIconSlot" left>{{ icon }}</v-icon>
|
||||
<span v-if="title" class="subheading">{{ title }}</span>
|
||||
</v-toolbar-title>
|
||||
<slot name="buttons-title"></slot>
|
||||
<v-spacer></v-spacer>
|
||||
<slot name="buttons-title" />
|
||||
<v-spacer />
|
||||
<v-toolbar-items v-show="hasButtonsSlot || collapsible">
|
||||
<div v-if="expand || !hideButtonsOnCollapse" class="d-flex align-center">
|
||||
<slot name="buttons"></slot>
|
||||
<slot name="buttons" />
|
||||
</div>
|
||||
<v-btn v-if="collapsible" icon class="btn-collapsible" :ripple="true" @click="expand = !expand">
|
||||
<v-icon :class="expand ? '' : 'icon-rotate-90'">{{ mdiChevronDown }}</v-icon>
|
||||
@@ -62,7 +28,7 @@
|
||||
</v-toolbar>
|
||||
<v-expand-transition>
|
||||
<div v-show="expand || !collapsible">
|
||||
<slot></slot>
|
||||
<slot />
|
||||
</div>
|
||||
</v-expand-transition>
|
||||
</v-card>
|
||||
@@ -73,16 +39,16 @@ import Component from 'vue-class-component'
|
||||
import { Mixins, Prop } from 'vue-property-decorator'
|
||||
import BaseMixin from '@/components/mixins/base'
|
||||
import { panelToolbarHeight } from '@/store/variables'
|
||||
import { mdiChevronDown, mdiChevronUp } from '@mdi/js'
|
||||
import { mdiChevronDown } from '@mdi/js'
|
||||
import { TranslateResult } from 'vue-i18n'
|
||||
|
||||
@Component
|
||||
export default class Panel extends Mixins(BaseMixin) {
|
||||
mdiChevronUp = mdiChevronUp
|
||||
mdiChevronDown = mdiChevronDown
|
||||
panelToolbarHeight = panelToolbarHeight
|
||||
|
||||
@Prop({ default: null }) declare readonly icon: string | null
|
||||
@Prop({ required: true, default: '' }) declare readonly title: string
|
||||
@Prop({ required: true, default: '' }) declare readonly title: string | TranslateResult
|
||||
@Prop({ default: false }) declare readonly collapsible: boolean
|
||||
@Prop({ required: true }) declare readonly cardClass: string
|
||||
@Prop({ default: '' }) declare readonly toolbarColor: string
|
||||
@@ -116,3 +82,37 @@ export default class Panel extends Mixins(BaseMixin) {
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
||||
<style lang="scss" scoped>
|
||||
.expanded header.v-toolbar {
|
||||
border-bottom-left-radius: 4px;
|
||||
border-bottom-right-radius: 4px;
|
||||
}
|
||||
|
||||
.btn-collapsible > * {
|
||||
will-change: transform;
|
||||
transition: transform 500ms;
|
||||
}
|
||||
.icon-rotate-90 {
|
||||
transform: rotate(90deg);
|
||||
}
|
||||
</style>
|
||||
|
||||
<style lang="scss">
|
||||
.v-card.panel .v-toolbar__content {
|
||||
padding-right: 0;
|
||||
}
|
||||
.v-card.panel .v-toolbar__content .subheading {
|
||||
user-select: none;
|
||||
}
|
||||
.panel-toolbar {
|
||||
overflow-y: hidden;
|
||||
}
|
||||
.panel-toolbar .v-btn {
|
||||
height: 100% !important;
|
||||
max-height: none;
|
||||
}
|
||||
.panel-toolbar .v-btn.v-btn--icon {
|
||||
width: var(--panel-toolbar-icon-btn-width) !important;
|
||||
}
|
||||
</style>
|
||||
@@ -0,0 +1,89 @@
|
||||
<template>
|
||||
<div>
|
||||
<v-tooltip right :open-delay="500" :disabled="navigationStyle !== 'iconsOnly'">
|
||||
<template #activator="{ on, attrs }">
|
||||
<v-list-item
|
||||
router
|
||||
:to="to"
|
||||
:href="href"
|
||||
:target="target"
|
||||
class="small-list-item"
|
||||
v-bind="attrs"
|
||||
v-on="on">
|
||||
<v-list-item-icon class="my-3 mr-3 menu-item-icon">
|
||||
<v-icon>{{ icon }}</v-icon>
|
||||
</v-list-item-icon>
|
||||
<v-list-item-content>
|
||||
<v-list-item-title tile class="menu-item-title">
|
||||
{{ title }}
|
||||
</v-list-item-title>
|
||||
</v-list-item-content>
|
||||
</v-list-item>
|
||||
</template>
|
||||
<span>{{ title }}</span>
|
||||
</v-tooltip>
|
||||
<v-divider v-if="borderBottom" class="my-1" />
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<script lang="ts">
|
||||
import Component from 'vue-class-component'
|
||||
import { Mixins, Prop } from 'vue-property-decorator'
|
||||
import BaseMixin from '@/components/mixins/base'
|
||||
import { NaviPoint } from '@/components/mixins/navigation'
|
||||
|
||||
@Component
|
||||
export default class SidebarItem extends Mixins(BaseMixin) {
|
||||
@Prop({ type: Object, required: true }) item!: NaviPoint
|
||||
|
||||
get navigationStyle() {
|
||||
return this.$store.state.gui.uiSettings.navigationStyle
|
||||
}
|
||||
|
||||
get icon() {
|
||||
return this.item.icon
|
||||
}
|
||||
|
||||
get title() {
|
||||
return this.item.title
|
||||
}
|
||||
|
||||
get to() {
|
||||
return this.item.to ?? undefined
|
||||
}
|
||||
|
||||
get href() {
|
||||
return this.item.href ?? undefined
|
||||
}
|
||||
|
||||
get target() {
|
||||
return this.item.target ?? undefined
|
||||
}
|
||||
|
||||
get borderBottom() {
|
||||
return this.item.to === '/allPrinters'
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
||||
<style scoped>
|
||||
.small-list-item {
|
||||
height: var(--sidebar-menu-item-height);
|
||||
}
|
||||
|
||||
.active-nav-item {
|
||||
border-right: 4px solid var(--v-primary-base);
|
||||
}
|
||||
|
||||
.menu-item-icon {
|
||||
opacity: 0.85;
|
||||
}
|
||||
|
||||
.menu-item-title {
|
||||
line-height: 30px;
|
||||
font-size: 14px;
|
||||
font-weight: 600;
|
||||
text-transform: uppercase;
|
||||
opacity: 0.85;
|
||||
}
|
||||
</style>
|
||||
@@ -0,0 +1,115 @@
|
||||
<template>
|
||||
<div class="d-flex justify-center">
|
||||
<video
|
||||
ref="video"
|
||||
v-observe-visibility="visibilityChanged"
|
||||
autoplay
|
||||
muted
|
||||
:style="webcamStyle"
|
||||
class="webcamImage" />
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<script lang="ts">
|
||||
import { Component, Mixins, Prop } from 'vue-property-decorator'
|
||||
import BaseMixin from '@/components/mixins/base'
|
||||
import Hls from 'hls.js'
|
||||
|
||||
@Component
|
||||
export default class Hlsstreamer extends Mixins(BaseMixin) {
|
||||
private aspectRatio: null | number = null
|
||||
private isVisible = true
|
||||
private hls: Hls | null = null
|
||||
|
||||
@Prop({ required: true })
|
||||
camSettings: any
|
||||
|
||||
@Prop()
|
||||
printerUrl: string | undefined
|
||||
|
||||
declare $refs: {
|
||||
video: HTMLVideoElement
|
||||
}
|
||||
|
||||
get url() {
|
||||
if (!this.isVisible) return ''
|
||||
|
||||
return this.camSettings.urlStream || ''
|
||||
}
|
||||
|
||||
get webcamStyle() {
|
||||
const output = {
|
||||
transform: 'none',
|
||||
aspectRatio: 16 / 9,
|
||||
maxHeight: window.innerHeight - 155 + 'px',
|
||||
maxWidth: 'auto',
|
||||
}
|
||||
|
||||
let transforms = ''
|
||||
if ('flipX' in this.camSettings && this.camSettings.flipX) transforms += ' scaleX(-1)'
|
||||
if ('flipX' in this.camSettings && this.camSettings.flipY) transforms += ' scaleY(-1)'
|
||||
if (transforms.trimStart().length) return { transform: transforms.trimStart() }
|
||||
|
||||
if (this.aspectRatio) {
|
||||
output.aspectRatio = this.aspectRatio
|
||||
output.maxWidth = (window.innerHeight - 155) * this.aspectRatio + 'px'
|
||||
}
|
||||
|
||||
return output
|
||||
}
|
||||
|
||||
visibilityChanged(isVisible: boolean) {
|
||||
this.isVisible = isVisible
|
||||
}
|
||||
|
||||
mounted() {
|
||||
this.play()
|
||||
|
||||
const video = this.$refs.video
|
||||
video.onplaying = () => {
|
||||
this.aspectRatio = video.videoWidth / video.videoHeight
|
||||
}
|
||||
}
|
||||
|
||||
updated() {
|
||||
this.play()
|
||||
}
|
||||
|
||||
play() {
|
||||
const video = this.$refs.video
|
||||
|
||||
if (Hls.isSupported()) {
|
||||
this.hls?.destroy()
|
||||
|
||||
this.hls = new Hls({
|
||||
enableWorker: true,
|
||||
lowLatencyMode: true,
|
||||
maxLiveSyncPlaybackRate: 2,
|
||||
liveSyncDuration: 0.5,
|
||||
liveMaxLatencyDuration: 2,
|
||||
backBufferLength: 5,
|
||||
})
|
||||
this.hls.loadSource(this.url)
|
||||
this.hls.attachMedia(video)
|
||||
this.hls.on(Hls.Events.MANIFEST_PARSED, () => {
|
||||
video.play()
|
||||
})
|
||||
} else if (video.canPlayType('application/vnd.apple.mpegurl')) {
|
||||
fetch(this.url).then(() => {
|
||||
video.src = this.url
|
||||
video.play()
|
||||
})
|
||||
}
|
||||
}
|
||||
|
||||
beforeUnmount() {
|
||||
this.hls?.destroy()
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
||||
<style scoped>
|
||||
.webcamImage {
|
||||
width: 100%;
|
||||
}
|
||||
</style>
|
||||
@@ -0,0 +1,114 @@
|
||||
<template>
|
||||
<div>
|
||||
<video ref="video" autoplay :style="webcamStyle" class="webcamImage" />
|
||||
<v-row v-if="status !== 'connected'">
|
||||
<v-col class="_webcam_jmuxer_output text-center d-flex flex-column justify-center align-center">
|
||||
<v-progress-circular v-if="status === 'connecting'" indeterminate color="primary" class="mb-3" />
|
||||
<span class="mt-3">{{ status }}</span>
|
||||
</v-col>
|
||||
</v-row>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<script lang="ts">
|
||||
import JMuxer from 'jmuxer'
|
||||
import { Component, Mixins, Prop, Watch } from 'vue-property-decorator'
|
||||
import BaseMixin from '@/components/mixins/base'
|
||||
|
||||
@Component
|
||||
export default class JMuxerStreamer extends Mixins(BaseMixin) {
|
||||
private jmuxer: JMuxer | null = null
|
||||
private status: string = 'connecting'
|
||||
|
||||
@Prop({ required: true })
|
||||
camSettings: any
|
||||
|
||||
@Prop()
|
||||
printerUrl: string | undefined
|
||||
|
||||
declare $refs: {
|
||||
video: HTMLVideoElement
|
||||
}
|
||||
|
||||
get url() {
|
||||
return this.camSettings.urlStream || ''
|
||||
}
|
||||
|
||||
get webcamStyle() {
|
||||
let transforms = ''
|
||||
if ('flipX' in this.camSettings && this.camSettings.flipX) transforms += ' scaleX(-1)'
|
||||
if ('flipX' in this.camSettings && this.camSettings.flipY) transforms += ' scaleY(-1)'
|
||||
if (transforms.trimStart().length) return { transform: transforms.trimStart() }
|
||||
|
||||
return ''
|
||||
}
|
||||
|
||||
mounted() {
|
||||
this.play()
|
||||
}
|
||||
|
||||
play() {
|
||||
this.status = 'connecting'
|
||||
this.jmuxer?.destroy()
|
||||
|
||||
// Only websocket streams supported
|
||||
if (!this.url.startsWith('ws://') && !this.url.startsWith('wss://')) {
|
||||
console.error('jmuxer error: only websocket streams supported (ws://.. or wss://..)')
|
||||
this.status = 'error'
|
||||
return
|
||||
}
|
||||
|
||||
const video = this.$refs.video
|
||||
const targetFps = this.camSettings.targetFps || 10
|
||||
|
||||
this.jmuxer = new JMuxer({
|
||||
node: video,
|
||||
mode: 'video',
|
||||
flushingTime: 0,
|
||||
fps: targetFps,
|
||||
// debug: true,
|
||||
onReady: (data: any) => {
|
||||
this.status = 'connected'
|
||||
console.log('jmuxer ready:', data)
|
||||
},
|
||||
onError: (data: any) => {
|
||||
this.status = 'error'
|
||||
console.log('jmuxer error:', data)
|
||||
},
|
||||
})
|
||||
|
||||
const ws = new WebSocket(this.url)
|
||||
ws.binaryType = 'arraybuffer'
|
||||
ws.addEventListener('message', (event) => {
|
||||
this.jmuxer?.feed({
|
||||
video: new Uint8Array(event.data),
|
||||
})
|
||||
})
|
||||
|
||||
ws.addEventListener('error', (event) => {
|
||||
this.status = 'error'
|
||||
console.log('jmuxer ws error:', event)
|
||||
})
|
||||
}
|
||||
|
||||
beforeUnmount() {
|
||||
this.jmuxer?.destroy()
|
||||
}
|
||||
|
||||
@Watch('camSettings', { deep: true })
|
||||
onCamSettingsChanged() {
|
||||
// restart stream, when camSettings change
|
||||
this.play()
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
||||
<style scoped>
|
||||
.webcamImage {
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
._webcam_jmuxer_output {
|
||||
aspect-ratio: calc(3 / 2);
|
||||
}
|
||||
</style>
|
||||
@@ -0,0 +1,152 @@
|
||||
<template>
|
||||
<div>
|
||||
<video
|
||||
v-show="status === 'started'"
|
||||
ref="stream"
|
||||
class="webcamStream"
|
||||
:style="webcamStyle"
|
||||
autoplay
|
||||
muted
|
||||
playsinline
|
||||
@playing="updateAspectRatio" />
|
||||
<v-row v-if="status !== 'started'">
|
||||
<v-col class="_webcam_webrtc_output text-center d-flex flex-column justify-center align-center">
|
||||
<v-progress-circular v-if="status === 'connecting'" indeterminate color="primary" class="mb-3" />
|
||||
<span class="mt-3">{{ status }}</span>
|
||||
</v-col>
|
||||
</v-row>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<script lang="ts">
|
||||
import { Component, Mixins, Prop, Ref, Watch } from 'vue-property-decorator'
|
||||
import { JanusJs, JanusSession, JanusStreamingPlugin } from 'typed_janus_js'
|
||||
import BaseMixin from '@/components/mixins/base'
|
||||
import { ConstructorOptions } from 'typed_janus_js/src/interfaces/janus'
|
||||
|
||||
@Component
|
||||
export default class JanusStreamer extends Mixins(BaseMixin) {
|
||||
private janusClient: JanusJs | null = null
|
||||
private session: JanusSession | null = null
|
||||
private handle: JanusStreamingPlugin | null = null
|
||||
private useStun = false
|
||||
private aspectRatio: null | number = null
|
||||
private status: string = 'connecting'
|
||||
|
||||
@Prop({ required: true })
|
||||
camSettings: any
|
||||
|
||||
@Prop({ default: null }) declare readonly printerUrl: string | null
|
||||
|
||||
@Ref() declare stream: HTMLVideoElement
|
||||
|
||||
get url() {
|
||||
const baseUrl = this.camSettings.urlStream
|
||||
let url = new URL(baseUrl, this.printerUrl === null ? this.hostUrl.toString() : this.printerUrl)
|
||||
url.port = '8188'
|
||||
url.protocol = this.printerUrl?.startsWith('https') ? 'wss' : 'ws'
|
||||
|
||||
if (baseUrl.startsWith('ws') || baseUrl.startsWith('http')) {
|
||||
url = new URL(baseUrl)
|
||||
const pathnameParts = url.pathname.split('/')
|
||||
url.pathname = pathnameParts.slice(0, pathnameParts.length - 1).join('/')
|
||||
}
|
||||
|
||||
return url
|
||||
}
|
||||
|
||||
get streamId() {
|
||||
const pathnameParts = new URL(this.camSettings.urlStream).pathname.split('/')
|
||||
return pathnameParts[pathnameParts.length - 1]
|
||||
}
|
||||
|
||||
get webcamStyle() {
|
||||
const output = {
|
||||
transform: 'none',
|
||||
aspectRatio: 16 / 9,
|
||||
}
|
||||
|
||||
let transforms = ''
|
||||
if ('flipX' in this.camSettings && this.camSettings.flipX) transforms += ' scaleX(-1)'
|
||||
if ('flipX' in this.camSettings && this.camSettings.flipY) transforms += ' scaleY(-1)'
|
||||
if (transforms.trimStart().length) output.transform = transforms.trimStart()
|
||||
|
||||
if (this.aspectRatio) output.aspectRatio = this.aspectRatio
|
||||
|
||||
return output
|
||||
}
|
||||
|
||||
get streamConfig() {
|
||||
let config: ConstructorOptions = {
|
||||
server: this.url.toString(),
|
||||
}
|
||||
|
||||
if (this.useStun) {
|
||||
config.iceServers = [{ urls: ['stun:stun.l.google.com:19302'] }]
|
||||
}
|
||||
|
||||
return config
|
||||
}
|
||||
|
||||
async startStream() {
|
||||
this.janusClient = new JanusJs(this.streamConfig)
|
||||
await this.janusClient.init({ debug: false })
|
||||
this.session = await this.janusClient.createSession()
|
||||
this.handle = await this.session.attach<JanusStreamingPlugin>(JanusStreamingPlugin, {})
|
||||
this.handle?.onMessage.subscribe(async ({ message, jsep }) => {
|
||||
if (message?.result?.status) {
|
||||
this.status = message.result.status
|
||||
}
|
||||
if (jsep) {
|
||||
const answer = await this.handle?.createAnswer({ jsep })
|
||||
this.handle?.send({ message: { request: 'start' }, jsep: answer })
|
||||
}
|
||||
})
|
||||
const remoteStream = new MediaStream()
|
||||
JanusJs.attachMediaStream(this.stream as HTMLMediaElement, remoteStream)
|
||||
this.handle?.onRemoteTrack.subscribe(({ on, track }) => {
|
||||
if (on) remoteStream.addTrack(track)
|
||||
else remoteStream.removeTrack(track)
|
||||
})
|
||||
this.handle.onIceState.subscribe((value) => {
|
||||
console.log(`ICE state changed to ${value}`)
|
||||
})
|
||||
this.handle.onError.subscribe((value) => {
|
||||
this.status = `errored: ${JSON.stringify(value)}`
|
||||
})
|
||||
await this.handle.send({ message: { request: 'watch', id: parseInt(this.streamId!) } })
|
||||
}
|
||||
|
||||
mounted() {
|
||||
this.startStream()
|
||||
}
|
||||
|
||||
updateAspectRatio() {
|
||||
this.aspectRatio = this.stream.videoWidth / this.stream.videoHeight
|
||||
}
|
||||
|
||||
beforeDestroy() {
|
||||
this.session?.destroy({})
|
||||
}
|
||||
|
||||
@Watch('url')
|
||||
async changedUrl() {
|
||||
await this.session?.destroy({})
|
||||
this.startStream()
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
||||
<style scoped>
|
||||
.webcamStream {
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
._webcam_webrtc_output {
|
||||
aspect-ratio: calc(3 / 2);
|
||||
}
|
||||
|
||||
video {
|
||||
width: 100%;
|
||||
}
|
||||
</style>
|
||||
@@ -1,22 +1,5 @@
|
||||
<style scoped>
|
||||
.webcamImage {
|
||||
width: 100%;
|
||||
background: lightgray;
|
||||
}
|
||||
|
||||
.webcamFpsOutput {
|
||||
display: inline-block;
|
||||
position: absolute;
|
||||
bottom: 6px;
|
||||
right: 0;
|
||||
background: rgba(0, 0, 0, 0.8);
|
||||
padding: 3px 10px;
|
||||
border-top-left-radius: 5px;
|
||||
}
|
||||
</style>
|
||||
|
||||
<template>
|
||||
<div style="position: relative">
|
||||
<div style="position: relative" class="d-flex justify-center">
|
||||
<img
|
||||
ref="image"
|
||||
v-observe-visibility="viewportVisibilityChanged"
|
||||
@@ -40,8 +23,10 @@ export default class Mjpegstreamer extends Mixins(BaseMixin) {
|
||||
private currentFPS = 0
|
||||
private streamState = false
|
||||
private aspectRatio: null | number = null
|
||||
private timerFPS: number | null = null
|
||||
private timerRestart: number | null = null
|
||||
// eslint-disable-next-line no-undef
|
||||
private timerFPS: NodeJS.Timeout | null = null
|
||||
// eslint-disable-next-line no-undef
|
||||
private timerRestart: NodeJS.Timeout | null = null
|
||||
private stream: ReadableStream | null = null
|
||||
private controller: AbortController | null = null
|
||||
private isVisibleViewport = false
|
||||
@@ -72,6 +57,8 @@ export default class Mjpegstreamer extends Mixins(BaseMixin) {
|
||||
const output = {
|
||||
transform: 'none',
|
||||
aspectRatio: 16 / 9,
|
||||
maxHeight: window.innerHeight - 155 + 'px',
|
||||
maxWidth: 'auto',
|
||||
}
|
||||
|
||||
let transforms = ''
|
||||
@@ -79,7 +66,10 @@ export default class Mjpegstreamer extends Mixins(BaseMixin) {
|
||||
if ('flipX' in this.camSettings && this.camSettings.flipY) transforms += ' scaleY(-1)'
|
||||
if (transforms.trimStart().length) output.transform = transforms.trimStart()
|
||||
|
||||
if (this.aspectRatio) output.aspectRatio = this.aspectRatio
|
||||
if (this.aspectRatio) {
|
||||
output.aspectRatio = this.aspectRatio
|
||||
output.maxWidth = (window.innerHeight - 155) * this.aspectRatio + 'px'
|
||||
}
|
||||
|
||||
return output
|
||||
}
|
||||
@@ -252,3 +242,20 @@ export default class Mjpegstreamer extends Mixins(BaseMixin) {
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
||||
<style scoped>
|
||||
.webcamImage {
|
||||
width: 100%;
|
||||
background: lightgray;
|
||||
}
|
||||
|
||||
.webcamFpsOutput {
|
||||
display: inline-block;
|
||||
position: absolute;
|
||||
bottom: 0;
|
||||
right: 0;
|
||||
background: rgba(0, 0, 0, 0.8);
|
||||
padding: 3px 10px;
|
||||
border-top-left-radius: 5px;
|
||||
}
|
||||
</style>
|
||||
@@ -1,21 +1,5 @@
|
||||
<style scoped>
|
||||
.webcamImage {
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
.webcamFpsOutput {
|
||||
display: inline-block;
|
||||
position: absolute;
|
||||
bottom: 6px;
|
||||
right: 0;
|
||||
background: rgba(0, 0, 0, 0.8);
|
||||
padding: 3px 10px;
|
||||
border-top-left-radius: 5px;
|
||||
}
|
||||
</style>
|
||||
|
||||
<template>
|
||||
<div style="position: relative">
|
||||
<div style="position: relative" class="d-flex justify-center">
|
||||
<div v-if="!isLoaded" class="text-center py-5">
|
||||
<v-progress-circular indeterminate color="primary"></v-progress-circular>
|
||||
</div>
|
||||
@@ -44,7 +28,8 @@ export default class MjpegstreamerAdaptive extends Mixins(BaseMixin) {
|
||||
private isVisibleDocument = true
|
||||
private isVisibleViewport = false
|
||||
private isLoaded = true
|
||||
private timer: number | undefined = undefined
|
||||
// eslint-disable-next-line no-undef
|
||||
private timer: NodeJS.Timeout | undefined = undefined
|
||||
|
||||
private request_start_time = performance.now()
|
||||
private start_time = performance.now()
|
||||
@@ -67,6 +52,8 @@ export default class MjpegstreamerAdaptive extends Mixins(BaseMixin) {
|
||||
const output = {
|
||||
transform: 'none',
|
||||
aspectRatio: 16 / 9,
|
||||
maxHeight: window.innerHeight - 155 + 'px',
|
||||
maxWidth: 'auto',
|
||||
}
|
||||
|
||||
let transforms = ''
|
||||
@@ -75,7 +62,10 @@ export default class MjpegstreamerAdaptive extends Mixins(BaseMixin) {
|
||||
if ((this.camSettings.rotate ?? 0) === 180) transforms += ' rotate(180deg)'
|
||||
if (transforms.trimStart().length) output.transform = transforms.trimStart()
|
||||
|
||||
if (this.aspectRatio) output.aspectRatio = this.aspectRatio
|
||||
if (this.aspectRatio) {
|
||||
output.aspectRatio = this.aspectRatio
|
||||
output.maxWidth = (window.innerHeight - 155) * this.aspectRatio + 'px'
|
||||
}
|
||||
|
||||
return output
|
||||
}
|
||||
@@ -114,10 +104,10 @@ export default class MjpegstreamerAdaptive extends Mixins(BaseMixin) {
|
||||
canvas.width = canvas.clientWidth
|
||||
if (this.rotate) {
|
||||
if (this.aspectRatio === null) this.aspectRatio = frame.height / frame.width
|
||||
canvas.height = canvas.clientWidth / (frame.height / frame.width)
|
||||
canvas.height = canvas.clientWidth / this.aspectRatio
|
||||
} else {
|
||||
if (this.aspectRatio === null) this.aspectRatio = frame.width / frame.height
|
||||
canvas.height = canvas.clientWidth * (frame.width / frame.height)
|
||||
canvas.height = canvas.clientWidth * this.aspectRatio
|
||||
}
|
||||
|
||||
if (this.rotate) {
|
||||
@@ -223,3 +213,19 @@ export default class MjpegstreamerAdaptive extends Mixins(BaseMixin) {
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
||||
<style scoped>
|
||||
.webcamImage {
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
.webcamFpsOutput {
|
||||
display: inline-block;
|
||||
position: absolute;
|
||||
bottom: 0;
|
||||
right: 0;
|
||||
background: rgba(0, 0, 0, 0.8);
|
||||
padding: 3px 10px;
|
||||
border-top-left-radius: 5px;
|
||||
}
|
||||
</style>
|
||||
@@ -1,17 +1,12 @@
|
||||
<style scoped>
|
||||
.webcamImage {
|
||||
width: 100%;
|
||||
background: lightgray;
|
||||
}
|
||||
</style>
|
||||
|
||||
<template>
|
||||
<img
|
||||
ref="webcamUv4lMjpegImage"
|
||||
v-observe-visibility="viewportVisibilityChanged"
|
||||
:style="webcamStyle"
|
||||
class="webcamImage"
|
||||
@load="onload" />
|
||||
<div class="d-flex justify-center">
|
||||
<img
|
||||
ref="webcamUv4lMjpegImage"
|
||||
v-observe-visibility="viewportVisibilityChanged"
|
||||
:style="webcamStyle"
|
||||
class="webcamImage"
|
||||
@load="onload" />
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<script lang="ts">
|
||||
@@ -45,6 +40,8 @@ export default class Uv4lMjpeg extends Mixins(BaseMixin) {
|
||||
const output = {
|
||||
transform: 'none',
|
||||
aspectRatio: 16 / 9,
|
||||
maxHeight: window.innerHeight - 155 + 'px',
|
||||
maxWidth: 'auto',
|
||||
}
|
||||
|
||||
let transforms = ''
|
||||
@@ -52,7 +49,10 @@ export default class Uv4lMjpeg extends Mixins(BaseMixin) {
|
||||
if ('flipX' in this.camSettings && this.camSettings.flipY) transforms += ' scaleY(-1)'
|
||||
if (transforms.trimStart().length) output.transform = transforms.trimStart()
|
||||
|
||||
if (this.aspectRatio) output.aspectRatio = this.aspectRatio
|
||||
if (this.aspectRatio) {
|
||||
output.aspectRatio = this.aspectRatio
|
||||
output.maxWidth = (window.innerHeight - 155) * this.aspectRatio + 'px'
|
||||
}
|
||||
|
||||
return output
|
||||
}
|
||||
@@ -116,3 +116,10 @@ export default class Uv4lMjpeg extends Mixins(BaseMixin) {
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
||||
<style scoped>
|
||||
.webcamImage {
|
||||
width: 100%;
|
||||
background: lightgray;
|
||||
}
|
||||
</style>
|
||||
@@ -1,47 +0,0 @@
|
||||
<style></style>
|
||||
|
||||
<template>
|
||||
<v-container v-if="webcams" fluid class="pb-4">
|
||||
<v-row dense>
|
||||
<v-col v-for="webcam in webcams" :key="webcam.id" cols="6">
|
||||
<template v-if="webcam.service === 'mjpegstreamer'">
|
||||
<webcam-mjpegstreamer :cam-settings="webcam"></webcam-mjpegstreamer>
|
||||
</template>
|
||||
<template v-else-if="webcam.service === 'mjpegstreamer-adaptive'">
|
||||
<webcam-mjpegstreamer-adaptive :cam-settings="webcam"></webcam-mjpegstreamer-adaptive>
|
||||
</template>
|
||||
<template v-else-if="webcam.service === 'uv4l-mjpeg'">
|
||||
<webcam-uv4l-mjpeg :cam-settings="webcam"></webcam-uv4l-mjpeg>
|
||||
</template>
|
||||
<template v-else-if="webcam.service === 'ipstream'">
|
||||
<webcam-ipstreamer :cam-settings="webcam"></webcam-ipstreamer>
|
||||
</template>
|
||||
<template v-else>
|
||||
<p class="text-center py-3 font-italic">{{ $t('Panels.WebcamPanel.UnknownWebcamService') }}</p>
|
||||
</template>
|
||||
</v-col>
|
||||
</v-row>
|
||||
</v-container>
|
||||
</template>
|
||||
|
||||
<script lang="ts">
|
||||
import { Component, Mixins, Prop } from 'vue-property-decorator'
|
||||
import BaseMixin from '@/components/mixins/base'
|
||||
import Mjpegstreamer from '@/components/webcams/Mjpegstreamer.vue'
|
||||
import MjpegstreamerAdaptive from '@/components/webcams/MjpegstreamerAdaptive.vue'
|
||||
import Uv4lMjpeg from '@/components/webcams/Uv4lMjpeg.vue'
|
||||
import Ipstreamer from '@/components/webcams/Ipstreamer.vue'
|
||||
import { GuiWebcamStateWebcam } from '@/store/gui/webcams/types'
|
||||
|
||||
@Component({
|
||||
components: {
|
||||
'webcam-mjpegstreamer': Mjpegstreamer,
|
||||
'webcam-mjpegstreamer-adaptive': MjpegstreamerAdaptive,
|
||||
'webcam-uv4l-mjpeg': Uv4lMjpeg,
|
||||
'webcam-ipstreamer': Ipstreamer,
|
||||
},
|
||||
})
|
||||
export default class WebcamGrid extends Mixins(BaseMixin) {
|
||||
@Prop() declare readonly webcams: GuiWebcamStateWebcam[]
|
||||
}
|
||||
</script>
|
||||
@@ -0,0 +1,40 @@
|
||||
<template>
|
||||
<div>
|
||||
<template v-if="webcam.service === 'grid'">
|
||||
<v-container v-if="webcams" fluid class="pb-4">
|
||||
<v-row dense>
|
||||
<v-col v-for="gridWebcam in webcams" :key="gridWebcam.id" cols="6">
|
||||
<webcam-wrapper-item :webcam="gridWebcam" :show-fps="showFps" />
|
||||
</v-col>
|
||||
</v-row>
|
||||
</v-container>
|
||||
</template>
|
||||
<template v-else>
|
||||
<webcam-wrapper-item :webcam="webcam" :show-fps="showFps" />
|
||||
</template>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<script lang="ts">
|
||||
import Component from 'vue-class-component'
|
||||
import { Mixins, Prop } from 'vue-property-decorator'
|
||||
import BaseMixin from '@/components/mixins/base'
|
||||
import { GuiWebcamStateWebcam } from '@/store/gui/webcams/types'
|
||||
import WebcamWrapperItem from '@/components/webcams/WebcamWrapperItem.vue'
|
||||
|
||||
@Component({
|
||||
components: {
|
||||
WebcamWrapperItem,
|
||||
},
|
||||
})
|
||||
export default class WebcamWrapper extends Mixins(BaseMixin) {
|
||||
@Prop({ type: Object, required: true }) webcam!: GuiWebcamStateWebcam
|
||||
@Prop({ type: Boolean, default: true }) showFps!: Boolean
|
||||
|
||||
get webcams(): GuiWebcamStateWebcam[] {
|
||||
return this.$store.getters['gui/webcams/getWebcams']
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
||||
<style scoped></style>
|
||||
@@ -0,0 +1,65 @@
|
||||
<template>
|
||||
<div>
|
||||
<template v-if="service === 'mjpegstreamer'">
|
||||
<mjpegstreamer :cam-settings="webcam" :show-fps="showFps" />
|
||||
</template>
|
||||
<template v-else-if="service === 'mjpegstreamer-adaptive'">
|
||||
<mjpegstreamer-adaptive :cam-settings="webcam" :show-fps="showFps" />
|
||||
</template>
|
||||
<template v-else-if="service === 'uv4l-mjpeg'">
|
||||
<uv4l-mjpeg :cam-settings="webcam" />
|
||||
</template>
|
||||
<template v-else-if="service === 'ipstream'">
|
||||
<ipstreamer :cam-settings="webcam" />
|
||||
</template>
|
||||
<template v-else-if="service === 'hlsstream'">
|
||||
<hlsstreamer :cam-settings="webcam" />
|
||||
</template>
|
||||
<template v-else-if="service === 'jmuxer-stream'">
|
||||
<j-muxer-stream :cam-settings="webcam" />
|
||||
</template>
|
||||
<template v-else-if="service === 'webrtc-camerastreamer'">
|
||||
<webrtc-camera-streamer :cam-settings="webcam" />
|
||||
</template>
|
||||
<template v-else-if="service === 'webrtc-janus'">
|
||||
<janus-streamer :cam-settings="webcam" />
|
||||
</template>
|
||||
<template v-else-if="service === 'webrtc-mediamtx'">
|
||||
<webrtc-media-m-t-x :cam-settings="webcam" />
|
||||
</template>
|
||||
<template v-else>
|
||||
<p class="text-center py-3 font-italic">{{ $t('Panels.WebcamPanel.UnknownWebcamService') }}</p>
|
||||
</template>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<script lang="ts">
|
||||
import Component from 'vue-class-component'
|
||||
import { Mixins, Prop } from 'vue-property-decorator'
|
||||
import BaseMixin from '@/components/mixins/base'
|
||||
import { GuiWebcamStateWebcam } from '@/store/gui/webcams/types'
|
||||
|
||||
@Component({
|
||||
components: {
|
||||
Hlsstreamer: () => import('@/components/webcams/Hlsstreamer.vue'),
|
||||
Ipstreamer: () => import('@/components/webcams/Ipstreamer.vue'),
|
||||
JanusStreamer: () => import('@/components/webcams/JanusStreamer.vue'),
|
||||
JMuxerStream: () => import('@/components/webcams/JMuxerStream.vue'),
|
||||
Mjpegstreamer: () => import('@/components/webcams/Mjpegstreamer.vue'),
|
||||
MjpegstreamerAdaptive: () => import('@/components/webcams/MjpegstreamerAdaptive.vue'),
|
||||
Uv4lMjpeg: () => import('@/components/webcams/Uv4lMjpeg.vue'),
|
||||
WebrtcCameraStreamer: () => import('@/components/webcams/WebrtcCameraStreamer.vue'),
|
||||
WebrtcMediaMTX: () => import('@/components/webcams/WebrtcMediaMTX.vue'),
|
||||
},
|
||||
})
|
||||
export default class WebcamWrapperItem extends Mixins(BaseMixin) {
|
||||
@Prop({ type: Object, required: true }) webcam!: GuiWebcamStateWebcam
|
||||
@Prop({ type: Boolean, default: true }) showFps!: Boolean
|
||||
|
||||
get service() {
|
||||
return this.webcam?.service ?? 'unknown'
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
||||
<style scoped></style>
|
||||
@@ -0,0 +1,185 @@
|
||||
<template>
|
||||
<div>
|
||||
<video
|
||||
v-show="status === 'connected'"
|
||||
ref="stream"
|
||||
class="webcamStream"
|
||||
:style="webcamStyle"
|
||||
autoplay
|
||||
muted
|
||||
playsinline />
|
||||
<v-row v-if="status !== 'connected'">
|
||||
<v-col class="_webcam_webrtc_output text-center d-flex flex-column justify-center align-center">
|
||||
<v-progress-circular v-if="status === 'connecting'" indeterminate color="primary" class="mb-3" />
|
||||
<span class="mt-3">{{ status }}</span>
|
||||
</v-col>
|
||||
</v-row>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<script lang="ts">
|
||||
import { Component, Mixins, Prop, Ref, Watch } from 'vue-property-decorator'
|
||||
import BaseMixin from '@/components/mixins/base'
|
||||
|
||||
@Component
|
||||
export default class WebrtcCameraStreamer extends Mixins(BaseMixin) {
|
||||
private pc: RTCPeerConnection | null = null
|
||||
private useStun = false
|
||||
private remote_pc_id: string | null = null
|
||||
private aspectRatio: null | number = null
|
||||
private status: string = 'connecting'
|
||||
|
||||
@Prop({ required: true })
|
||||
camSettings: any
|
||||
|
||||
@Prop({ default: null }) declare readonly printerUrl: string | null
|
||||
|
||||
@Ref() declare stream: HTMLVideoElement
|
||||
|
||||
get url() {
|
||||
const baseUrl = this.camSettings.urlStream
|
||||
let url = new URL(baseUrl, this.printerUrl === null ? this.hostUrl.toString() : this.printerUrl)
|
||||
url.port = this.hostPort.toString()
|
||||
|
||||
if (baseUrl.startsWith('http') || baseUrl.startsWith('://')) url = new URL(baseUrl)
|
||||
|
||||
return decodeURIComponent(url.toString())
|
||||
}
|
||||
|
||||
get webcamStyle() {
|
||||
const output = {
|
||||
transform: 'none',
|
||||
aspectRatio: 16 / 9,
|
||||
}
|
||||
|
||||
let transforms = ''
|
||||
if ('flipX' in this.camSettings && this.camSettings.flipX) transforms += ' scaleX(-1)'
|
||||
if ('flipX' in this.camSettings && this.camSettings.flipY) transforms += ' scaleY(-1)'
|
||||
if (transforms.trimStart().length) output.transform = transforms.trimStart()
|
||||
|
||||
if (this.aspectRatio) output.aspectRatio = this.aspectRatio
|
||||
|
||||
return output
|
||||
}
|
||||
|
||||
startStream() {
|
||||
const isFirefox = navigator.userAgent.toLowerCase().indexOf('firefox') > -1
|
||||
const requestIceServers = this.useStun ? [{ urls: ['stun:stun.l.google.com:19302'] }] : null
|
||||
|
||||
// This WebRTC signaling pattern is designed for camera-streamer, a common webcam server the supports WebRTC.
|
||||
fetch(this.url, {
|
||||
body: JSON.stringify({
|
||||
type: 'request',
|
||||
iceServers: requestIceServers,
|
||||
}),
|
||||
headers: {
|
||||
'Content-Type': 'application/json',
|
||||
},
|
||||
method: 'POST',
|
||||
})
|
||||
.then((response) => response.json())
|
||||
.then((answer) => {
|
||||
let peerConnectionConfig: any = {
|
||||
sdpSemantics: 'unified-plan',
|
||||
}
|
||||
// It's important to set any ICE servers returned, which could include servers we requested or servers
|
||||
// setup by the server. But note that older versions of camera-streamer won't return this property.
|
||||
if (answer.iceServers) {
|
||||
peerConnectionConfig.iceServers = answer.iceServers
|
||||
}
|
||||
this.pc = new RTCPeerConnection(peerConnectionConfig)
|
||||
this.pc.addTransceiver('video', { direction: 'recvonly' })
|
||||
this.pc.addEventListener(
|
||||
'track',
|
||||
(evt) => {
|
||||
if (evt.track.kind == 'video' && this.$refs.stream) {
|
||||
// @ts-ignore
|
||||
this.$refs.stream.srcObject = evt.streams[0]
|
||||
}
|
||||
},
|
||||
false
|
||||
)
|
||||
this.pc.addEventListener('connectionstatechange', () => {
|
||||
this.status = (this.pc?.connectionState ?? '').toString()
|
||||
if (['failed', 'disconnected'].includes(this.status)) {
|
||||
setTimeout(async () => {
|
||||
await this.pc?.close()
|
||||
this.startStream()
|
||||
}, 500)
|
||||
}
|
||||
})
|
||||
this.pc.addEventListener('icecandidate', (e) => {
|
||||
if (e.candidate) {
|
||||
return fetch(this.url, {
|
||||
body: JSON.stringify({
|
||||
type: 'remote_candidate',
|
||||
id: this.remote_pc_id,
|
||||
candidates: [e.candidate],
|
||||
}),
|
||||
headers: {
|
||||
'Content-Type': 'application/json',
|
||||
},
|
||||
method: 'POST',
|
||||
}).catch(function (error) {
|
||||
window.console.error(error)
|
||||
})
|
||||
}
|
||||
})
|
||||
|
||||
this.remote_pc_id = answer.id
|
||||
return this.pc?.setRemoteDescription(answer)
|
||||
})
|
||||
.then(() => this.pc?.createAnswer())
|
||||
.then((answer) => this.pc?.setLocalDescription(answer))
|
||||
.then(() => {
|
||||
const offer = this.pc?.localDescription
|
||||
return fetch(this.url, {
|
||||
body: JSON.stringify({
|
||||
type: offer?.type,
|
||||
id: this.remote_pc_id,
|
||||
sdp: offer?.sdp,
|
||||
}),
|
||||
headers: {
|
||||
'Content-Type': 'application/json',
|
||||
},
|
||||
method: 'POST',
|
||||
})
|
||||
})
|
||||
.then((response: any) => {
|
||||
if (isFirefox) this.status = 'connected'
|
||||
return response.json()
|
||||
})
|
||||
.catch(function (e) {
|
||||
window.console.error(e)
|
||||
})
|
||||
}
|
||||
|
||||
mounted() {
|
||||
this.startStream()
|
||||
}
|
||||
|
||||
beforeDestroy() {
|
||||
this.pc?.close()
|
||||
}
|
||||
|
||||
@Watch('url')
|
||||
async changedUrl() {
|
||||
await this.pc?.close()
|
||||
this.startStream()
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
||||
<style scoped>
|
||||
.webcamStream {
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
._webcam_webrtc_output {
|
||||
aspect-ratio: calc(3 / 2);
|
||||
}
|
||||
|
||||
video {
|
||||
width: 100%;
|
||||
}
|
||||
</style>
|
||||
@@ -0,0 +1,237 @@
|
||||
<template>
|
||||
<div>
|
||||
<video
|
||||
v-show="status === 'connected'"
|
||||
ref="video"
|
||||
:style="webcamStyle"
|
||||
class="webcamImage"
|
||||
autoplay
|
||||
playsinline
|
||||
muted />
|
||||
<v-row v-if="status !== 'connected'">
|
||||
<v-col class="_webcam_webrtc_output text-center d-flex flex-column justify-center align-center">
|
||||
<v-progress-circular v-if="status === 'connecting'" indeterminate color="primary" class="mb-3" />
|
||||
<span class="mt-3">{{ status }}</span>
|
||||
</v-col>
|
||||
</v-row>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<script lang="ts">
|
||||
import { Component, Mixins, Prop, Ref, Watch } from 'vue-property-decorator'
|
||||
import BaseMixin from '@/components/mixins/base'
|
||||
|
||||
@Component
|
||||
export default class WebrtcRTSPSimpleServer extends Mixins(BaseMixin) {
|
||||
@Prop({ required: true }) camSettings: any
|
||||
|
||||
@Ref()
|
||||
declare video: HTMLVideoElement
|
||||
|
||||
// webrtc player vars
|
||||
private terminated: boolean = false
|
||||
private ws: WebSocket | null = null
|
||||
private pc: RTCPeerConnection | null = null
|
||||
private restartTimeoutTimer: any = null
|
||||
private status: string = 'connecting'
|
||||
|
||||
// stop the video and close the streams if the component is going to be destroyed so we don't leave hanging streams
|
||||
beforeDestroy() {
|
||||
this.terminate()
|
||||
|
||||
// clear any potentially open restart timeout
|
||||
if (this.restartTimeoutTimer) {
|
||||
clearTimeout(this.restartTimeoutTimer)
|
||||
}
|
||||
}
|
||||
|
||||
get webcamStyle() {
|
||||
let transforms = ''
|
||||
if ('flipX' in this.camSettings && this.camSettings.flipX) transforms += ' scaleX(-1)'
|
||||
if ('flipX' in this.camSettings && this.camSettings.flipY) transforms += ' scaleY(-1)'
|
||||
if (transforms.trimStart().length) return { transform: transforms.trimStart() }
|
||||
|
||||
return ''
|
||||
}
|
||||
|
||||
get url() {
|
||||
if (this.camSettings.urlStream.startsWith('http')) {
|
||||
return this.camSettings.urlStream.replace('http', 'ws') + 'ws'
|
||||
}
|
||||
|
||||
return this.camSettings.urlStream
|
||||
}
|
||||
|
||||
// stop and restart the video if the url changes
|
||||
@Watch('url')
|
||||
changedUrl() {
|
||||
this.terminate()
|
||||
this.start()
|
||||
}
|
||||
|
||||
get expanded(): boolean {
|
||||
return this.$store.getters['gui/getPanelExpand']('webcam-panel', this.viewport) ?? false
|
||||
}
|
||||
|
||||
// start or stop the video when the expand state changes
|
||||
@Watch('expanded', { immediate: true })
|
||||
expandChanged(newExpanded: boolean): void {
|
||||
if (!newExpanded) {
|
||||
this.terminate()
|
||||
return
|
||||
}
|
||||
|
||||
this.start()
|
||||
}
|
||||
|
||||
// webrtc player methods
|
||||
// adapated from sample player in https://github.com/mrlt8/docker-wyze-bridge
|
||||
start() {
|
||||
// unterminate we're starting again.
|
||||
this.terminated = false
|
||||
|
||||
// clear any potentially open restart timeout
|
||||
if (this.restartTimeoutTimer) {
|
||||
clearTimeout(this.restartTimeoutTimer)
|
||||
this.restartTimeoutTimer = null
|
||||
}
|
||||
|
||||
window.console.log('[webcam-rtspsimpleserver] web socket connecting')
|
||||
|
||||
// test if the url is valid
|
||||
try {
|
||||
const url = new URL(this.url)
|
||||
|
||||
// break if url protocol is not ws
|
||||
if (!url.protocol.startsWith('ws')) {
|
||||
console.log('[webcam-rtspsimpleserver] invalid URL (no ws protocol)')
|
||||
return
|
||||
}
|
||||
} catch (err) {
|
||||
console.log('[webcam-rtspsimpleserver] invalid URL')
|
||||
return
|
||||
}
|
||||
|
||||
// open websocket connection
|
||||
this.ws = new WebSocket(this.url)
|
||||
|
||||
this.ws.onerror = (event) => {
|
||||
window.console.log('[webcam-rtspsimpleserver] websocket error', event)
|
||||
this.ws?.close()
|
||||
this.ws = null
|
||||
}
|
||||
|
||||
this.ws.onclose = (event) => {
|
||||
console.log('[webcam-rtspsimpleserver] websocket closed', event)
|
||||
this.ws = null
|
||||
this.scheduleRestart()
|
||||
}
|
||||
|
||||
this.ws.onmessage = (msg: MessageEvent) => this.webRtcOnIceServers(msg)
|
||||
}
|
||||
|
||||
terminate() {
|
||||
this.terminated = true
|
||||
|
||||
try {
|
||||
this.video.pause()
|
||||
} catch (err) {
|
||||
// ignore -- make sure we close down the sockets anyway
|
||||
}
|
||||
|
||||
this.ws?.close()
|
||||
this.pc?.close()
|
||||
}
|
||||
|
||||
webRtcOnIceServers(msg: MessageEvent) {
|
||||
if (this.ws === null) return
|
||||
|
||||
const iceServers = JSON.parse(msg.data)
|
||||
this.pc = new RTCPeerConnection({
|
||||
iceServers,
|
||||
})
|
||||
|
||||
this.ws.onmessage = (msg: MessageEvent) => this.webRtcOnRemoteDescription(msg)
|
||||
this.pc.onicecandidate = (evt: RTCPeerConnectionIceEvent) => this.webRtcOnIceCandidate(evt)
|
||||
|
||||
this.pc.oniceconnectionstatechange = () => {
|
||||
if (this.pc === null) return
|
||||
|
||||
window.console.log('[webcam-rtspsimpleserver] peer connection state:', this.pc.iceConnectionState)
|
||||
|
||||
this.status = (this.pc?.iceConnectionState ?? '').toString()
|
||||
|
||||
if (['failed', 'disconnected'].includes(this.status)) {
|
||||
this.scheduleRestart()
|
||||
}
|
||||
}
|
||||
|
||||
this.pc.ontrack = (evt: RTCTrackEvent) => {
|
||||
window.console.log('[webcam-rtspsimpleserver] new track ' + evt.track.kind)
|
||||
this.video.srcObject = evt.streams[0]
|
||||
}
|
||||
|
||||
const direction = 'sendrecv'
|
||||
this.pc.addTransceiver('video', { direction })
|
||||
this.pc.addTransceiver('audio', { direction })
|
||||
|
||||
this.pc.createOffer().then((desc: any) => {
|
||||
if (this.pc === null || this.ws === null) return
|
||||
|
||||
this.pc.setLocalDescription(desc)
|
||||
|
||||
window.console.log('[webcam-rtspsimpleserver] sending offer')
|
||||
this.ws.send(JSON.stringify(desc))
|
||||
})
|
||||
}
|
||||
|
||||
webRtcOnRemoteDescription(msg: any) {
|
||||
if (this.pc === null || this.ws === null) return
|
||||
|
||||
this.pc.setRemoteDescription(new RTCSessionDescription(JSON.parse(msg.data)))
|
||||
this.ws.onmessage = (msg: any) => this.webRtcOnRemoteCandidate(msg)
|
||||
}
|
||||
|
||||
webRtcOnIceCandidate(evt: RTCPeerConnectionIceEvent) {
|
||||
if (this.ws === null) return
|
||||
|
||||
if (evt.candidate?.candidate !== '') {
|
||||
this.ws.send(JSON.stringify(evt.candidate))
|
||||
}
|
||||
}
|
||||
|
||||
webRtcOnRemoteCandidate(msg: any) {
|
||||
if (this.pc === null) return
|
||||
|
||||
this.pc.addIceCandidate(JSON.parse(msg.data))
|
||||
}
|
||||
|
||||
scheduleRestart() {
|
||||
this.ws?.close()
|
||||
this.ws = null
|
||||
|
||||
this.pc?.close()
|
||||
this.pc = null
|
||||
|
||||
if (this.terminated) return
|
||||
|
||||
this.restartTimeoutTimer = setTimeout(() => {
|
||||
this.start()
|
||||
}, 2000)
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
||||
<style scoped>
|
||||
.webcamImage {
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
._webcam_webrtc_output {
|
||||
aspect-ratio: calc(3 / 2);
|
||||
}
|
||||
|
||||
video {
|
||||
width: 100%;
|
||||
}
|
||||
</style>
|
||||
+1135
File diff suppressed because it is too large.
Load diff
+49
-5
@@ -164,11 +164,13 @@
|
||||
"Yes": "Ja"
|
||||
},
|
||||
"Files": {
|
||||
"AddBatchToQueue": "tilføj batch til kø",
|
||||
"AddToQueue": "Tilføj til kø",
|
||||
"AllFiles": "Alle",
|
||||
"BedTemp": "Bed temperatur",
|
||||
"Cancel": "Annuller",
|
||||
"ChamberTemp": "Indelukke temperatur",
|
||||
"Count": "Tæl",
|
||||
"Create": "Opret",
|
||||
"CreateNewDirectory": "Ny mappe",
|
||||
"CurrentPath": "Du er her",
|
||||
@@ -189,7 +191,7 @@
|
||||
"Filesize": "Filstørrelse",
|
||||
"Free": "Ledig",
|
||||
"FreeDisk": "Ledig plads",
|
||||
"GCodeFiles": "G-Code Filer",
|
||||
"GCodeFiles": "G-Kode Filer",
|
||||
"GcodesRootDirectoryDoesntExists": "Ingen mappe med g-koder fundet. Tjek at opsætning af \"path\" under [virtual_sdcard] sektionen i printer.cfg er korrekt.",
|
||||
"HiddenFiles": "Skjulte filer",
|
||||
"InvalidNameAlreadyExists": "Navnet eksisterer allerede, vælg venligst et andet navn.",
|
||||
@@ -253,7 +255,9 @@
|
||||
"Tracking": "Sporing",
|
||||
"Transparency": "Transparens",
|
||||
"Ultra": "Ultra",
|
||||
"VoxelMode": "Voxel Mode (ASMBL)"
|
||||
"VoxelMode": "Voxel Mode (ASMBL)",
|
||||
"ShowGCode": "Vis G-kode",
|
||||
"CNCMode": "CNC Mode"
|
||||
},
|
||||
"Heightmap": {
|
||||
"Abort": "Afbryd",
|
||||
@@ -303,6 +307,7 @@
|
||||
"AvgPrinttime": "Gns. printtid",
|
||||
"Cancel": "Annuller",
|
||||
"CreateNote": "Gem note",
|
||||
"Chart": "Skema",
|
||||
"Delete": "Slet",
|
||||
"DeleteSelectedQuestion": "Er du sikker på du vil slette alle {count} valgte jobs?",
|
||||
"Details": "Detaljer",
|
||||
@@ -354,6 +359,7 @@
|
||||
"Others": "Andre",
|
||||
"server_exit": "Server exit"
|
||||
},
|
||||
"Table": "Tabel",
|
||||
"TitleExportHistory": "Export History",
|
||||
"TitleRefreshHistory": "Opdater historik",
|
||||
"TitleSettings": "Indstillinger",
|
||||
@@ -365,7 +371,12 @@
|
||||
},
|
||||
"JobQueue": {
|
||||
"AllJobs": "Alle Jobs",
|
||||
"ChangeCount": "Ændre antal",
|
||||
"Cancel": "Annuller",
|
||||
"Count": "Tæl",
|
||||
"Empty": "Tom",
|
||||
"InvalidCountEmpty": "Input må ikke være tom!",
|
||||
"InvalidCountGreaterZero": "Input skal være over 0!",
|
||||
"JobQueue": "Jobkø",
|
||||
"Jobs": "Jobs",
|
||||
"Pause": "Pause",
|
||||
@@ -417,7 +428,13 @@
|
||||
"TRIGGERED": "Aktiveret"
|
||||
},
|
||||
"LogfilesPanel": {
|
||||
"Logfiles": "Logfiler"
|
||||
"Accept": "Acceptér",
|
||||
"Cancel": "Annuller",
|
||||
"Logfiles": "Logfiler",
|
||||
"Rollover": "Nulstil log-filer",
|
||||
"RolloverDescription": "Vælg hvilke log-filer der skal nulstilles",
|
||||
"RolloverToastSuccessful": "Filen: \"{name}\" blev nulstillet.",
|
||||
"RolloverToastFailed": "Nulstillings fejl-log for \"{name}\": {message}"
|
||||
},
|
||||
"SystemPanel": {
|
||||
"Constants": "Konstanter",
|
||||
@@ -507,9 +524,12 @@
|
||||
"WebcamOff": "Sluk"
|
||||
},
|
||||
"KlippyStatePanel": {
|
||||
"CheckKlippyAndUdsAddress": "Tjek at Klipper-servicen kører, samt at klippy_uds_address er korrekt konfigureret i moonraker.conf.",
|
||||
"FirmwareRestart": "Genstart alt",
|
||||
"KlipperCheck": "Check at Klipper service kører og at en UDS (Unix Domain Socket) er konfigureret.",
|
||||
"MoonrakerCannotConnect": "Moonraker kan ikke forbinde til Klipper!",
|
||||
"PowerOn": "Tænd",
|
||||
"PrinterSwitchedOff": "Printeren er slukket",
|
||||
"PrinterSwitchedOffDescription": "Printeren er slukket og Klipper kan ikke forbinde til den. Tryk på nedenstående knap for at tænde printeren",
|
||||
"Restart": "Genstart",
|
||||
"ServiceReports": "{service} rapporter"
|
||||
},
|
||||
@@ -584,6 +604,18 @@
|
||||
"Layer": "Lag",
|
||||
"Max": "maks",
|
||||
"ObjectHeight": "Objekt Højde",
|
||||
"PauseAtLayer": {
|
||||
"Abort": "Afbryd",
|
||||
"Accept": "Acceptér",
|
||||
"AtLayer": "ved lag",
|
||||
"Call": "Kør",
|
||||
"DescriptionPauseAtLayerActive": "Denne funktion er allerede aktiv og vil køre \"{call}\" ved lag: {layer}. Hvis du kører kommandoen igen overskrives disse indstillinger.",
|
||||
"DescriptionPauseNextLayerActive": "Denne funktion er allerede aktiv og vil køre \"{call}\" ved næste lag.",
|
||||
"Layer": "Lag",
|
||||
"NextLayer": "Næste lag",
|
||||
"PauseAtLayer": "Pause ved lag",
|
||||
"Type": "Type"
|
||||
},
|
||||
"PausePrint": "Pause print",
|
||||
"Print": "Reel printtid",
|
||||
"PrintTime": "Print Tid",
|
||||
@@ -983,9 +1015,11 @@
|
||||
"ConfirmOnPowerDeviceChangeDescription": "Vis bekræftelse ved ændringer på Enhedens strømtilstand",
|
||||
"DisplayCANCEL_PRINT": "Vis Afbryd print",
|
||||
"DisplayCANCEL_PRINTDescription": "Viser Afbryd print knappen konstant - ingen tofaktor godkendelse nødvendig.",
|
||||
"GcodeThumbnails": "Gcode forhåndsvisninger",
|
||||
"GcodeThumbnails": "G-Kode forhåndsvisninger",
|
||||
"GcodeThumbnailsDescription": "Klik på knappen for mere information.",
|
||||
"Guide": "Guide",
|
||||
"HideSaveConfigButtonForBedMesh": "Skjul GEM KONFIGURATION knap for ændringer i højdekort",
|
||||
"HideSaveConfigButtonForBedMeshDescription": "Skjul GEM KONFIGURATION, hvis det kun er ændringer i højdekort der venter på at blive gemt i Klipper.",
|
||||
"LockSliders": "Lås sliders på touch-enheder",
|
||||
"LockSlidersDelay": "Forsinkelse på låsning af sliders",
|
||||
"LockSlidersDelayDescription": "Sliders vil låse efter det angivne tidsrum (sek). Hvis sat til 0 eller efterladt tomt, vil Sliders kun låse ved opdatering/genindlæsning af siden.",
|
||||
@@ -995,6 +1029,8 @@
|
||||
"NavigationStyleDescription": "Skift navigationens udseende",
|
||||
"NavigationStyleIconsAndText": "Ikoner + Tekst",
|
||||
"NavigationStyleIconsOnly": "Kun ikoner",
|
||||
"PowerDeviceName": "Printer strømenhed",
|
||||
"PowerDeviceNameDescription": "Vælg hvilken strømenhed i Moonraker der styrer printerens strøm.",
|
||||
"Primary": "Primær",
|
||||
"ShowWebcamInNavigation": "Vis Webcam i navigation",
|
||||
"UiSettings": "UI-indstillinger"
|
||||
@@ -1016,8 +1052,10 @@
|
||||
"IconNozzle": "Dyse",
|
||||
"IconPrinter": "Printer",
|
||||
"Ipstream": "IP Kamera",
|
||||
"Hlsstream": "HLS Stream",
|
||||
"Mjpegstreamer": "MJPEG-Streamer",
|
||||
"MjpegstreamerAdaptive": "Adaptiv MJPEG-Streamer (eksperimental)",
|
||||
"JMuxerStream": "Rå h264 stream (jmuxer)",
|
||||
"Name": "Navn",
|
||||
"NameAlreadyExists": "Navnet bruges allerede",
|
||||
"Required": "Krævet",
|
||||
@@ -1033,6 +1071,12 @@
|
||||
"Webcams": "Webcams"
|
||||
}
|
||||
},
|
||||
"ScrewsTiltAdjust": {
|
||||
"Accept": "Acceptér",
|
||||
"Base": "Udgangspunkt",
|
||||
"ErrorText": "Noget gik galt under målingsprocessen",
|
||||
"Headline": "Bed-skrue justering"
|
||||
},
|
||||
"Timelapse": {
|
||||
"AllFiles": "Alle",
|
||||
"Autorender": "Autorendering",
|
||||
|
||||
+88
-9
@@ -3,7 +3,7 @@
|
||||
"Notifications": {
|
||||
"DependencyDescription": "Die momentane {name} Version unterstützt nicht alle Funktionen von Mainsail. Aktualisiere {name} mindestens auf Version {neededVersion}.",
|
||||
"DependencyName": "Abhängigkeit: {name}",
|
||||
"DismissAll": "Dismiss all",
|
||||
"DismissAll": "Alles verwerfen",
|
||||
"KlipperWarnings": {
|
||||
"DeprecatedOption": "Option '{option}' im Abschnitt '{section}' ist veraltet und wird in einem zukünftigen Release entfernt.",
|
||||
"DeprecatedOptionHeadline": "Veralterte Klipper Option",
|
||||
@@ -30,6 +30,11 @@
|
||||
"NoEmptyAllowedError": "Feld darf nicht leer sein!"
|
||||
},
|
||||
"Printers": "Drucker",
|
||||
"TheServiceWorker": {
|
||||
"DescriptionNeedUpdate": "Der lokale Cache ist veraltet und muss aktualisiert werden. Bitte klicke auf den Button unten, um den Cache zu aktualisieren.",
|
||||
"TitleNeedUpdate": "PWA benötigt ein Update",
|
||||
"Update": "aktualisieren"
|
||||
},
|
||||
"ThrottledStates": {
|
||||
"DescriptionCurrentlyThrottled": "rPi ARM-Kern(e) sind derzeit gedrosselt.",
|
||||
"DescriptionFrequencyCapped": "rPi ARM max Frequenz ist derzeit auf 1,2 GHz begrenzt.",
|
||||
@@ -52,6 +57,7 @@
|
||||
"Complete": "Fertiggestellt - {filename}",
|
||||
"Error": "FEHLER",
|
||||
"Pause": "Druck pausiert",
|
||||
"PrinterOff": "Drucker AUS",
|
||||
"Printing": "{percent}% Drucken - {filename}",
|
||||
"PrintingETA": "{percent}% Drucken - ETA: {eta} - {filename}"
|
||||
},
|
||||
@@ -164,11 +170,13 @@
|
||||
"Yes": "Ja"
|
||||
},
|
||||
"Files": {
|
||||
"AddBatchToQueue": "Stapel zur Auftragswarteschlange hinzufügen",
|
||||
"AddToQueue": "Zur Auftragswarteschlange hinzufügen",
|
||||
"AllFiles": "Alle",
|
||||
"BedTemp": "Bett Temp.",
|
||||
"Cancel": "Abbrechen",
|
||||
"ChamberTemp": "Kammer Temp.",
|
||||
"Count": "Anzahl",
|
||||
"Create": "Erstellen",
|
||||
"CreateNewDirectory": "Ordner erstellen",
|
||||
"CurrentPath": "Aktueller Pfad",
|
||||
@@ -177,6 +185,8 @@
|
||||
"DeleteDirectoryQuestion": "Willst du wirklich das Verzeichnis \"{name}\" mit seinem gesamten Inhalt löschen?",
|
||||
"DeleteSelectedQuestion": "Sollen wirklich {count} ausgewählte Dateien gelöscht werden?",
|
||||
"Download": "Herunterladen",
|
||||
"Duplicate": "duplizieren",
|
||||
"DuplicateFile": "Datei duplizieren",
|
||||
"EditFile": "Datei bearbeiten",
|
||||
"Empty": "Leer",
|
||||
"ExtruderTemp": "Extruder Temp.",
|
||||
@@ -213,6 +223,8 @@
|
||||
"Rename": "Umbenennen",
|
||||
"RenameDirectory": "Verzeichnis umbenennen",
|
||||
"RenameFile": "Datei umbenennen",
|
||||
"ScanMeta": "Metadaten scannen",
|
||||
"ScanMetaSuccess": "Metadaten von {filename} wurden erfolgreich gescannt.",
|
||||
"Search": "Suchen",
|
||||
"SetupCurrentList": "Einstellungen",
|
||||
"Slicer": "Slicer",
|
||||
@@ -253,7 +265,9 @@
|
||||
"Tracking": "Tracking",
|
||||
"Transparency": "Transparenz",
|
||||
"Ultra": "Ultra",
|
||||
"VoxelMode": "Voxel Modus (ASMBL)"
|
||||
"VoxelMode": "Voxel Modus (ASMBL)",
|
||||
"ShowGCode": "Zeige G-Code",
|
||||
"CNCMode": "CNC Modus"
|
||||
},
|
||||
"Heightmap": {
|
||||
"Abort": "abbruch",
|
||||
@@ -275,6 +289,7 @@
|
||||
"Flat": "Flach",
|
||||
"Heightmap": "Heightmap",
|
||||
"InvalidNameAlreadyExists": "Das Profil existiert bereits, bitte wähle einen anderen Profilnamen.",
|
||||
"InvalidNameAscii": "Name ist ungültig. Nur ASCII Zeichen sind erlaubt.",
|
||||
"InvalidNameEmpty": "Feld darf nicht leer sein!",
|
||||
"InvalidNameReserved": "Das Profil 'default' ist reserviert, bitte wähle einen anderen Profilnamen.",
|
||||
"Later": "später",
|
||||
@@ -302,6 +317,7 @@
|
||||
"AllJobs": "Alle",
|
||||
"AvgPrinttime": "Druckzeit - Ø",
|
||||
"Cancel": "abbrechen",
|
||||
"Chart": "Diagramm",
|
||||
"CreateNote": "Notiz anlegen",
|
||||
"Delete": "Löschen",
|
||||
"DeleteSelectedQuestion": "Sollen wirklich {count} ausgewählte Jobs gelöscht werden?",
|
||||
@@ -354,6 +370,7 @@
|
||||
"Others": "Sonstige",
|
||||
"server_exit": "Server-Exit"
|
||||
},
|
||||
"Table": "Tabelle",
|
||||
"TitleExportHistory": "Historie exportieren",
|
||||
"TitleRefreshHistory": "Historie aktualisieren",
|
||||
"TitleSettings": "Einstellungen",
|
||||
@@ -365,7 +382,12 @@
|
||||
},
|
||||
"JobQueue": {
|
||||
"AllJobs": "Alle Aufträge",
|
||||
"ChangeCount": "Anzahl ändern",
|
||||
"Cancel": "abbrechen",
|
||||
"Count": "Anzahl",
|
||||
"Empty": "Leer",
|
||||
"InvalidCountEmpty": "Die Eingabe darf nicht leer sein!",
|
||||
"InvalidCountGreaterZero": "Die Eingabe muss größer als 0 sein!",
|
||||
"JobQueue": "Auftragswarteschlange",
|
||||
"Jobs": "Aufträge",
|
||||
"Pause": "Pause",
|
||||
@@ -387,6 +409,8 @@
|
||||
"DeleteDirectoryQuestion": "Verzeichnis \"{name}\" und den gesamten Inhalt löschen?",
|
||||
"DeleteSelectedQuestion": "{count} ausgewählte Elemente löschen?",
|
||||
"Download": "Herunterladen",
|
||||
"Duplicate": "duplizieren",
|
||||
"DuplicateFile": "Datei duplizieren",
|
||||
"EditFile": "Bearbeite Datei",
|
||||
"Empty": "Leer",
|
||||
"Files": "Dateien",
|
||||
@@ -417,7 +441,13 @@
|
||||
"TRIGGERED": "AUSGELÖST"
|
||||
},
|
||||
"LogfilesPanel": {
|
||||
"Logfiles": "Logdateien"
|
||||
"Accept": "akzeptieren",
|
||||
"Cancel": "abbrechen",
|
||||
"Logfiles": "Logdateien",
|
||||
"Rollover": "Logdatei zurücksetzen",
|
||||
"RolloverDescription": "Wähle Logs zum zurücksetzen:",
|
||||
"RolloverToastSuccessful": "Logdatei für \"{name}\" wurde erfolgreich zurückgesetzt.",
|
||||
"RolloverToastFailed": "Logdatei reset \"{name}\": {message}"
|
||||
},
|
||||
"SystemPanel": {
|
||||
"Constants": "Konstanten",
|
||||
@@ -507,9 +537,12 @@
|
||||
"WebcamOff": "Aus"
|
||||
},
|
||||
"KlippyStatePanel": {
|
||||
"CheckKlippyAndUdsAddress": "Bitte überprüfen, ob der Klipper-Dienst läuft und klippy_uds_address in der moonraker.conf korrekt konfiguriert ist.",
|
||||
"FirmwareRestart": "Firmware Neustart",
|
||||
"KlipperCheck": "Bitte überprüfen Sie, ob der Klipper-Dienst läuft und ein UDS (Unix Domain Socket) konfiguriert ist.",
|
||||
"MoonrakerCannotConnect": "Moonraker kann keine Verbindung zu Klipper herstellen!",
|
||||
"PowerOn": "Drucker einschalten",
|
||||
"PrinterSwitchedOff": "Drucker ist ausgeschaltet",
|
||||
"PrinterSwitchedOffDescription": "Der Drucker ist ausgeschaltet und es kann keine Verbindung zu Klipper hergestellt werden. Um den Drucker einzuschalten, auf die Schaltfläche unten klicken:",
|
||||
"Restart": "Neustart",
|
||||
"ServiceReports": "{service} meldet"
|
||||
},
|
||||
@@ -584,6 +617,18 @@
|
||||
"Layer": "Schicht",
|
||||
"Max": "max",
|
||||
"ObjectHeight": "Objekthöhe",
|
||||
"PauseAtLayer": {
|
||||
"Abort": "abbrechen",
|
||||
"Accept": "akzeptieren",
|
||||
"AtLayer": "bei Schicht",
|
||||
"Call": "Ausführen",
|
||||
"DescriptionPauseAtLayerActive": "Diese Funktion ist bereits aktiv und wird \"{call}\" bei Schicht {layer} ausführen. Wenn der Befehl nochmal ausgeführt wird, werden die Einstellungen überschreiben.",
|
||||
"DescriptionPauseNextLayerActive": "Diese Funktion ist bereits aktiv und bei der nächsten Schicht wird \"{call}\" ausgeführt.",
|
||||
"Layer": "Schicht",
|
||||
"NextLayer": "nächste Schicht",
|
||||
"PauseAtLayer": "Pause bei Schicht",
|
||||
"Type": "Art"
|
||||
},
|
||||
"PausePrint": "Druck pausieren",
|
||||
"Print": "Druck",
|
||||
"PrintTime": "Druckzeit",
|
||||
@@ -764,7 +809,10 @@
|
||||
"MoonrakerRestartInstance": "Moonraker Neustartinstanz",
|
||||
"MoonrakerRestartInstanceDescription": "Wähle aus, welche Moonrakerinstanz neu gestartet werden soll wenn 'Speichern & Neustarten' im Editor geklickt wird.",
|
||||
"UseEscToClose": "ESC drücken um Editor zu schließen",
|
||||
"UseEscToCloseDescription": "Erlaubt es den Editor mit ESC zu schließen."
|
||||
"UseEscToCloseDescription": "Erlaubt es den Editor mit ESC zu schließen.",
|
||||
"TabSize": "TAB Größe",
|
||||
"TabSizeDescription": "Legt fest, um wie viele Leerzeichen für TAB eingerückt werden sollen",
|
||||
"Spaces": "Leerzeichen: {count}"
|
||||
},
|
||||
"GCodeViewerTab": {
|
||||
"BackgroundColor": "Hintergrundfarbe",
|
||||
@@ -777,6 +825,8 @@
|
||||
"ShowAxes": "Zeige Achsen an"
|
||||
},
|
||||
"GeneralTab": {
|
||||
"12hours": "12-Stunden ({time})",
|
||||
"24hours": "24-Stunden ({time})",
|
||||
"Backup": "Datensicherung",
|
||||
"BackupDialog": "Bitte wähle alle Abschnitte aus, die du sichern möchtest:",
|
||||
"CalcEstimateTime": "Berechnung der geschätzten Zeit",
|
||||
@@ -792,6 +842,7 @@
|
||||
"Slicer": "Slicer (M73)"
|
||||
},
|
||||
"CannotReadJson": "Sicherungsdatei kann nicht gelesen/analysiert werden.",
|
||||
"DateFormat": "Datumsformat",
|
||||
"DbConsoleHistory": "Verlauf der Konsole",
|
||||
"DbHistoryJobs": "Historie Druckvorgänge",
|
||||
"DbHistoryTotals": "Historie Gesamtzähler",
|
||||
@@ -811,7 +862,8 @@
|
||||
"PrinterName": "Druckername",
|
||||
"Reset": "zurücksetzen",
|
||||
"Restore": "Wiederherstellung",
|
||||
"RestoreDialog": "Bitte wähle alle Abschnitte aus, die du wiederherstellen möchtest:"
|
||||
"RestoreDialog": "Bitte wähle alle Abschnitte aus, die du wiederherstellen möchtest:",
|
||||
"TimeFormat": "Zeitformat"
|
||||
},
|
||||
"InterfaceSettings": "Interface Einstellungen",
|
||||
"MacrosTab": {
|
||||
@@ -868,12 +920,14 @@
|
||||
"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"
|
||||
},
|
||||
"NavigationTab": {
|
||||
"Navigation": "Navigation"
|
||||
},
|
||||
"PresetsTab": {
|
||||
"AddPreset": "Preset hinzufügen",
|
||||
"Cooldown": "Abkühlen",
|
||||
@@ -970,6 +1024,8 @@
|
||||
"VariableFpsMinDescription": ""
|
||||
},
|
||||
"UiSettingsTab": {
|
||||
"BedScrewsDialog": "Hilfsfenster für Bettschraubenjustierung",
|
||||
"BedScrewsDialogDescription": "Zeige ein Hilfsfenster für die Bettschraubenjustierung an.",
|
||||
"BoolBigThumbnail": "Große Vorschaubilder",
|
||||
"BoolBigThumbnailDescription": "Zeige ein großes Thumbnail in der Status-Anzeige während eines Drucks.",
|
||||
"BoolHideUploadAndPrintButton": "\"Hochladen & Drucken\" Schaltfläche ausblenden",
|
||||
@@ -978,22 +1034,33 @@
|
||||
"ConfirmOnEmergencyStopDescription": "Zeige vor einem Notstop einen Bestätigungsdialog.",
|
||||
"ConfirmOnPowerDeviceChange": "Bestätigung für Änderung der Stromversorgung von Geräten",
|
||||
"ConfirmOnPowerDeviceChangeDescription": "Zeige vor Änderung der Stromversorgung von Geräten einen Bestätigungsdialog.",
|
||||
"DisableFanAnimation": "Lüfteranimation deaktivieren",
|
||||
"DisableFanAnimationDescription": "Dies kann die Last im Browser senken.",
|
||||
"DisplayCANCEL_PRINT": "Zeige CANCEL_PRINT an",
|
||||
"DisplayCANCEL_PRINTDescription": "Zeigt die CANCEL_PRINT Schaltfläche dauerhaft an - keine weitere Bestätigung erforderlich.",
|
||||
"GcodeThumbnails": "G-Code Vorschaubilder",
|
||||
"GcodeThumbnailsDescription": "Klicke auf die Schaltfläche um zum Leitfaden zu gelangen.",
|
||||
"Guide": "Leitfaden",
|
||||
"HideSaveConfigButtonForBedMesh": "SAVE_CONFIG Schaltfläche ausblenden bei bed_mesh Änderungen",
|
||||
"HideSaveConfigButtonForBedMeshDescription": "SAVE_CONFIG nicht anzeigen, wenn nur das Speichern eines bed_mesh in Klipper aussteht.",
|
||||
"LockSliders": "Sperre Schieberegler auf Touchscreen Geräten",
|
||||
"LockSlidersDelay": "Verzögerung der Sperre für Schieberegler",
|
||||
"LockSlidersDelayDescription": "Schieberegler werden nach einer bestimmten Verzögerung gesperrt. Wenn 0 oder leer, dann sperren Schieberegler nur nach wechseln/neuladen der Seite.",
|
||||
"LockSlidersDescription": "Schieberegler müssen zuerst entsperrt werden bevor Änderungen erlaubt werden.",
|
||||
"Logo": "Logo",
|
||||
"ManualProbeDialog": "Hilfsfenster für manuelle Messung",
|
||||
"ManualProbeDialogDescription": "Zeige ein Hilfsfenster für PROBE_CALIBRATE oder Z_ENDSTOP_CALIBRATE an.",
|
||||
"NavigationStyle": "Stil der Navigation",
|
||||
"NavigationStyleDescription": "Erscheinungsbild der Navigation ändern",
|
||||
"NavigationStyleIconsAndText": "Icons + Text",
|
||||
"NavigationStyleIconsOnly": "Nur Icons",
|
||||
"PowerDeviceName": "Stromversorgung für Drucker",
|
||||
"PowerDeviceNameDescription": "Wähle aus, welches Moonraker Power-Device zum Einschalten des Druckers verwendet werden soll.",
|
||||
"Primary": "Primärfarbe",
|
||||
"ShowWebcamInNavigation": "Zeige Webcam in der Navigation",
|
||||
"ScrewsTiltAdjustDialog": "Hilfsfenster für Schrauben Neigunganpassung",
|
||||
"ScrewsTiltAdjustDialogDescription": "Zeige ein Hilfsfenster für SCREWS_TILT_CALCULATE an.",
|
||||
"TempchartHeight": "Temperatur-Chart Höhe",
|
||||
"TempchartHeightDescription": "Verändert die Höhe vom Temperatur-Chart auf dem Dashboard.",
|
||||
"UiSettings": "UI-Einstellungen"
|
||||
},
|
||||
"Update": "speichern",
|
||||
@@ -1003,6 +1070,7 @@
|
||||
"EditCrowsnestConf": "crowsnest.conf bearbeiten",
|
||||
"EditWebcam": "Webcam bearbeiten",
|
||||
"FlipWebcam": "Webcam-Bild spiegeln:",
|
||||
"Hlsstream": "HLS-Stream",
|
||||
"Horizontally": "horizontal",
|
||||
"IconBed": "Bett",
|
||||
"IconCam": "Kamera",
|
||||
@@ -1015,6 +1083,7 @@
|
||||
"Ipstream": "IP Kamera",
|
||||
"Mjpegstreamer": "MJPEG-Streamer",
|
||||
"MjpegstreamerAdaptive": "Adaptive MJPEG-Streamer (experimental)",
|
||||
"JMuxerStream": "Roher h264 stream (jmuxer)",
|
||||
"Name": "Name",
|
||||
"NameAlreadyExists": "Name existiert bereits",
|
||||
"Required": "benötigt",
|
||||
@@ -1027,9 +1096,19 @@
|
||||
"UrlStream": "Stream URL",
|
||||
"Uv4lMjpeg": "UV4L-MJPEG",
|
||||
"Vertically": "vertikal",
|
||||
"Webcams": "Webcams"
|
||||
"Webcams": "Webcams",
|
||||
"WebrtcCameraStreamer": "WebRTC (camera-streamer)",
|
||||
"WebrtcJanus": "WebRTC (janus-gateway)",
|
||||
"WebrtcMediaMTX": "WebRTC (MediaMTX / rtsp-simple-server)"
|
||||
}
|
||||
},
|
||||
"ScrewsTiltAdjust": {
|
||||
"Accept": "akzeptieren",
|
||||
"Base": "Basis",
|
||||
"ErrorText": "Ein Fehler ist beim Abtasten aufgetreten.",
|
||||
"Headline": "Neigungsverstellung",
|
||||
"Retry": "wiederholen"
|
||||
},
|
||||
"Timelapse": {
|
||||
"AllFiles": "Alle",
|
||||
"Autorender": "Autorender",
|
||||
|
||||
+82
-7
@@ -30,6 +30,11 @@
|
||||
"NoEmptyAllowedError": "Input must not be empty!"
|
||||
},
|
||||
"Printers": "Printers",
|
||||
"TheServiceWorker": {
|
||||
"DescriptionNeedUpdate": "The local cache is outdated and needs to be updated. Please click on the button below to update the cache.",
|
||||
"TitleNeedUpdate": "PWA needs update",
|
||||
"Update": "update"
|
||||
},
|
||||
"ThrottledStates": {
|
||||
"DescriptionCurrentlyThrottled": "rPi ARM core(s) are currently throttled down.",
|
||||
"DescriptionFrequencyCapped": "rPi ARM max frequency is currently limited to 1.2 GHz.",
|
||||
@@ -52,6 +57,7 @@
|
||||
"Complete": "Complete - {filename}",
|
||||
"Error": "ERROR",
|
||||
"Pause": "Pause Print",
|
||||
"PrinterOff": "Printer OFF",
|
||||
"Printing": "{percent}% Printing - {filename}",
|
||||
"PrintingETA": "{percent}% Printing - ETA: {eta} - {filename}"
|
||||
},
|
||||
@@ -164,11 +170,13 @@
|
||||
"Yes": "Yes"
|
||||
},
|
||||
"Files": {
|
||||
"AddBatchToQueue": "Add batch to Queue",
|
||||
"AddToQueue": "Add to Queue",
|
||||
"AllFiles": "All",
|
||||
"BedTemp": "Bed Temp.",
|
||||
"Cancel": "Cancel",
|
||||
"ChamberTemp": "Chamber Temp.",
|
||||
"Count": "Count",
|
||||
"Create": "Create",
|
||||
"CreateNewDirectory": "Create new Directory",
|
||||
"CurrentPath": "Current path",
|
||||
@@ -177,6 +185,8 @@
|
||||
"DeleteDirectoryQuestion": "Do you really want to delete the \"{name}\" directory with all its contents?",
|
||||
"DeleteSelectedQuestion": "Do you really want to delete {count} selected files?",
|
||||
"Download": "Download",
|
||||
"Duplicate": "Duplicate",
|
||||
"DuplicateFile": "Duplicate File",
|
||||
"EditFile": "Edit File",
|
||||
"Empty": "Empty",
|
||||
"ExtruderTemp": "Extruder Temp.",
|
||||
@@ -213,6 +223,8 @@
|
||||
"Rename": "Rename",
|
||||
"RenameDirectory": "Rename Directory",
|
||||
"RenameFile": "Rename File",
|
||||
"ScanMeta": "Scan Metadata",
|
||||
"ScanMetaSuccess": "Successfully scanned metadata from: {filename}.",
|
||||
"Search": "Search",
|
||||
"SetupCurrentList": "Setup current list",
|
||||
"Slicer": "Slicer",
|
||||
@@ -253,7 +265,9 @@
|
||||
"Tracking": "Tracking",
|
||||
"Transparency": "Transparency",
|
||||
"Ultra": "Ultra",
|
||||
"VoxelMode": "Voxel Mode (ASMBL)"
|
||||
"VoxelMode": "Voxel Mode (ASMBL)",
|
||||
"ShowGCode": "Show G-Code",
|
||||
"CNCMode": "CNC Mode"
|
||||
},
|
||||
"Heightmap": {
|
||||
"Abort": "abort",
|
||||
@@ -275,6 +289,7 @@
|
||||
"Flat": "Flat",
|
||||
"Heightmap": "Heightmap",
|
||||
"InvalidNameAlreadyExists": "Profile name already exists, please choose another profile name.",
|
||||
"InvalidNameAscii": "Name is invalid. Only ascii character are allowed.",
|
||||
"InvalidNameEmpty": "Input must not be empty!",
|
||||
"InvalidNameReserved": "Profile 'default' is reserved, please choose another profile name.",
|
||||
"Later": "Later",
|
||||
@@ -303,6 +318,7 @@
|
||||
"AvgPrinttime": "Print Time - Ø",
|
||||
"Cancel": "Cancel",
|
||||
"CreateNote": "Create Note",
|
||||
"Chart": "Chart",
|
||||
"Delete": "Delete",
|
||||
"DeleteSelectedQuestion": "Do you really want to delete {count} selected jobs?",
|
||||
"Details": "Details",
|
||||
@@ -354,6 +370,7 @@
|
||||
"Others": "Others",
|
||||
"server_exit": "Server exit"
|
||||
},
|
||||
"Table": "Table",
|
||||
"TitleExportHistory": "Export History",
|
||||
"TitleRefreshHistory": "Refresh History",
|
||||
"TitleSettings": "Settings",
|
||||
@@ -365,7 +382,12 @@
|
||||
},
|
||||
"JobQueue": {
|
||||
"AllJobs": "All Jobs",
|
||||
"ChangeCount": "Change count",
|
||||
"Cancel": "Cancel",
|
||||
"Count": "Count",
|
||||
"Empty": "Empty",
|
||||
"InvalidCountEmpty": "Input must not be empty!",
|
||||
"InvalidCountGreaterZero": "Input must be greater than 0!",
|
||||
"JobQueue": "Job Queue",
|
||||
"Jobs": "Jobs",
|
||||
"Pause": "Pause",
|
||||
@@ -387,6 +409,8 @@
|
||||
"DeleteDirectoryQuestion": "Delete directory \"{name}\" and all its contents?",
|
||||
"DeleteSelectedQuestion": "Delete {count} selected elements?",
|
||||
"Download": "Download",
|
||||
"Duplicate": "Duplicate",
|
||||
"DuplicateFile": "Duplicate File",
|
||||
"EditFile": "Edit file",
|
||||
"Empty": "Empty",
|
||||
"Files": "Files",
|
||||
@@ -417,7 +441,13 @@
|
||||
"TRIGGERED": "TRIGGERED"
|
||||
},
|
||||
"LogfilesPanel": {
|
||||
"Logfiles": "Log Files"
|
||||
"Accept": "accept",
|
||||
"Cancel": "cancel",
|
||||
"Logfiles": "Log Files",
|
||||
"Rollover": "Rollover Logs",
|
||||
"RolloverDescription": "Please select which logs should be reset:",
|
||||
"RolloverToastSuccessful": "Log for \"{name}\" was successfully reset.",
|
||||
"RolloverToastFailed": "Rollover log for \"{name}\": {message}"
|
||||
},
|
||||
"SystemPanel": {
|
||||
"Constants": "Constants",
|
||||
@@ -507,9 +537,12 @@
|
||||
"WebcamOff": "Off"
|
||||
},
|
||||
"KlippyStatePanel": {
|
||||
"CheckKlippyAndUdsAddress": "Please check if the Klipper service is running and klippy_uds_address is correctly configured in the moonraker.conf.",
|
||||
"FirmwareRestart": "Firmware Restart",
|
||||
"KlipperCheck": "Please check if the Klipper service is running.",
|
||||
"MoonrakerCannotConnect": "Moonraker can't connect to Klipper!",
|
||||
"PowerOn": "Power on",
|
||||
"PrinterSwitchedOff": "Printer is powered off",
|
||||
"PrinterSwitchedOffDescription": "The printer is currently powered off and Klipper cannot connect. To power on the printer, click the button below:",
|
||||
"Restart": "Restart",
|
||||
"ServiceReports": "{service} reports"
|
||||
},
|
||||
@@ -584,6 +617,18 @@
|
||||
"Layer": "Layer",
|
||||
"Max": "max",
|
||||
"ObjectHeight": "Object Height",
|
||||
"PauseAtLayer": {
|
||||
"Abort": "abort",
|
||||
"Accept": "accept",
|
||||
"AtLayer": "at Layer",
|
||||
"Call": "Call",
|
||||
"DescriptionPauseAtLayerActive": "This function is already active and will call \"{call}\" at layer {layer}. If you call the command again, these settings will be overwritten.",
|
||||
"DescriptionPauseNextLayerActive": "This function is already active and will call \"{call}\" at the next layer.",
|
||||
"Layer": "Layer",
|
||||
"NextLayer": "next Layer",
|
||||
"PauseAtLayer": "Pause at Layer",
|
||||
"Type": "Type"
|
||||
},
|
||||
"PausePrint": "Pause print",
|
||||
"Print": "Print",
|
||||
"PrintTime": "Print Time",
|
||||
@@ -764,7 +809,10 @@
|
||||
"MoonrakerRestartInstance": "Moonraker restart instance",
|
||||
"MoonrakerRestartInstanceDescription": "Select which Moonraker service will restart on 'Save & Restart' when editing Moonraker config files.",
|
||||
"UseEscToClose": "Use ESC to close editor",
|
||||
"UseEscToCloseDescription": "Allows the ESC key to close the editor"
|
||||
"UseEscToCloseDescription": "Allows the ESC key to close the editor",
|
||||
"TabSize": "TAB Size",
|
||||
"TabSizeDescription": "Adjusts how many spaces should be indented for TAB",
|
||||
"Spaces": "Spaces: {count}"
|
||||
},
|
||||
"GCodeViewerTab": {
|
||||
"BackgroundColor": "Background Color",
|
||||
@@ -872,12 +920,14 @@
|
||||
"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"
|
||||
},
|
||||
"NavigationTab": {
|
||||
"Navigation": "Navigation"
|
||||
},
|
||||
"PresetsTab": {
|
||||
"AddPreset": "add preset",
|
||||
"Cooldown": "Cooldown",
|
||||
@@ -974,6 +1024,8 @@
|
||||
"VariableFpsMinDescription": ""
|
||||
},
|
||||
"UiSettingsTab": {
|
||||
"BedScrewsDialog": "Bed Screws Dialog",
|
||||
"BedScrewsDialogDescription": "Display helper dialog for BED_SCREWS_ADJUST.",
|
||||
"BoolBigThumbnail": "Large thumbnail",
|
||||
"BoolBigThumbnailDescription": "Display a large thumbnail in the status panel during a print.",
|
||||
"BoolHideUploadAndPrintButton": "Hide Upload and Print Button",
|
||||
@@ -982,22 +1034,33 @@
|
||||
"ConfirmOnEmergencyStopDescription": "Show a confirmation dialog on Emergency Stop",
|
||||
"ConfirmOnPowerDeviceChange": "Require confirm on Device Power changes",
|
||||
"ConfirmOnPowerDeviceChangeDescription": "Show a confirmation dialog on Device Power changes",
|
||||
"DisableFanAnimation": "Disable fan animation",
|
||||
"DisableFanAnimationDescription": "This can reduce some load in your Browser.",
|
||||
"DisplayCANCEL_PRINT": "Display CANCEL_PRINT",
|
||||
"DisplayCANCEL_PRINTDescription": "Shows the CANCEL_PRINT button permanently - no second layer confirmation needed.",
|
||||
"GcodeThumbnails": "G-Code thumbnails",
|
||||
"GcodeThumbnailsDescription": "Click on the button to get to the instructions.",
|
||||
"Guide": "Guide",
|
||||
"HideSaveConfigButtonForBedMesh": "Hide SAVE_CONFIG button for bed_mesh changes",
|
||||
"HideSaveConfigButtonForBedMeshDescription": "Hide SAVE_CONFIG, if only bed_mesh changes are pending to be saved in Klipper.",
|
||||
"LockSliders": "Lock sliders on touchscreen devices",
|
||||
"LockSlidersDelay": "Slider lock delay",
|
||||
"LockSlidersDelayDescription": "Sliders will lock after a given delay. If set to 0 or left blank, sliders will only lock on page change/reload.",
|
||||
"LockSlidersDescription": "Sliders on touchscreens need to be unlocked before changes are allowed.",
|
||||
"Logo": "Logo",
|
||||
"ManualProbeDialog": "Manual Probe Helper Dialog",
|
||||
"ManualProbeDialogDescription": "Display helper dialog for PROBE_CALIBRATE or Z_ENDSTOP_CALIBRATE.",
|
||||
"NavigationStyle": "Navigation style",
|
||||
"NavigationStyleDescription": "Change navigation appearance",
|
||||
"NavigationStyleIconsAndText": "Icons + Text",
|
||||
"NavigationStyleIconsOnly": "Icons only",
|
||||
"PowerDeviceName": "Printer power device",
|
||||
"PowerDeviceNameDescription": "Select which Moonraker power device should be used to power on the printer.",
|
||||
"Primary": "Primary",
|
||||
"ShowWebcamInNavigation": "Show Webcam in navigation",
|
||||
"ScrewsTiltAdjustDialog": "Screws Tilt Adjust Dialog",
|
||||
"ScrewsTiltAdjustDialogDescription": "Display helper dialog for SCREWS_TILT_CALCULATE.",
|
||||
"TempchartHeight": "Height Temperature Chart",
|
||||
"TempchartHeightDescription": "Modify the height of the temperature chart on the Dashboard.",
|
||||
"UiSettings": "UI-Settings"
|
||||
},
|
||||
"Update": "update",
|
||||
@@ -1017,8 +1080,11 @@
|
||||
"IconNozzle": "Nozzle",
|
||||
"IconPrinter": "Printer",
|
||||
"Ipstream": "IP Camera",
|
||||
"Hlsstream": "HLS Stream",
|
||||
"WebrtcJanus": "WebRTC (janus-gateway)",
|
||||
"Mjpegstreamer": "MJPEG-Streamer",
|
||||
"MjpegstreamerAdaptive": "Adaptive MJPEG-Streamer (experimental)",
|
||||
"JMuxerStream": "Raw h264 stream (jmuxer)",
|
||||
"Name": "Name",
|
||||
"NameAlreadyExists": "Name already exists",
|
||||
"Required": "required",
|
||||
@@ -1031,9 +1097,18 @@
|
||||
"UrlStream": "URL Stream",
|
||||
"Uv4lMjpeg": "UV4L-MJPEG",
|
||||
"Vertically": "vertically",
|
||||
"Webcams": "Webcams"
|
||||
"Webcams": "Webcams",
|
||||
"WebrtcCameraStreamer": "WebRTC (camera-streamer)",
|
||||
"WebrtcMediaMTX": "WebRTC (MediaMTX / rtsp-simple-server)"
|
||||
}
|
||||
},
|
||||
"ScrewsTiltAdjust": {
|
||||
"Accept": "accept",
|
||||
"Base": "Base",
|
||||
"ErrorText": "Something went wrong during the probing process.",
|
||||
"Headline": "Screws tilt adjust",
|
||||
"Retry": "retry"
|
||||
},
|
||||
"Timelapse": {
|
||||
"AllFiles": "All",
|
||||
"Autorender": "Auto-render",
|
||||
|
||||
+112
-14
@@ -1,5 +1,5 @@
|
||||
{
|
||||
"_last_update": "12.09.2022",
|
||||
"_last_update": "28.02.2023",
|
||||
"App": {
|
||||
"Notifications": {
|
||||
"DependencyDescription": "La version actuelle de {name} ne supporte pas toutes les fonctionalités de Mainsail. Mettez {name} a jour vers la version {neededVersion}.",
|
||||
@@ -212,7 +212,11 @@
|
||||
"Total": "Total",
|
||||
"UploadNewGcode": "Charger nouveau G-Code",
|
||||
"Used": "Utilisé",
|
||||
"View3D": "Vue 3D"
|
||||
"View3D": "Vue 3D",
|
||||
"AddBatchToQueue": "Ajouter à la queue d'impression",
|
||||
"Count": "Nombre",
|
||||
"InvalidNameAlreadyExists": "Ce nom existe déjà, merci d'en choisir un autre.",
|
||||
"InvalidNameEmpty": "L'entrée ne peut pas être vide !"
|
||||
},
|
||||
"FullscreenUpload": {
|
||||
"CannotUploadFile": "Impossible de télécharger le fichier !",
|
||||
@@ -241,7 +245,9 @@
|
||||
"Tracking": "Suivi",
|
||||
"Transparency": "Transparence",
|
||||
"Ultra": "Ultra",
|
||||
"VoxelMode": "Mode Voxel (ASMBL)"
|
||||
"VoxelMode": "Mode Voxel (ASMBL)",
|
||||
"CNCMode": "Mode CNC",
|
||||
"ShowGCode": "Afficher le G-Code"
|
||||
},
|
||||
"Heightmap": {
|
||||
"Abort": "Annuler",
|
||||
@@ -255,7 +261,7 @@
|
||||
"Min": "Min",
|
||||
"Name": "Nom",
|
||||
"Size": "Taille",
|
||||
"Variance": "Variance"
|
||||
"Range": "Gamme"
|
||||
},
|
||||
"DeleteBedMeshProfile": "Effacer maillage",
|
||||
"DoYouReallyWantToDelete": "Voulez-vous effacer le maillage \"{name}\" ?",
|
||||
@@ -349,7 +355,9 @@
|
||||
"TotalFilamentUsed": "Total filament utilisé",
|
||||
"TotalJobs": "Nombre travaux",
|
||||
"TotalPrinttime": "Total temps d'impression",
|
||||
"TotalTime": "Durée totale"
|
||||
"TotalTime": "Durée totale",
|
||||
"Chart": "Graphique",
|
||||
"Table": "Table"
|
||||
},
|
||||
"JobQueue": {
|
||||
"AllJobs": "Tous",
|
||||
@@ -358,7 +366,12 @@
|
||||
"Jobs": "Travaux",
|
||||
"Pause": "Pause",
|
||||
"RemoveFromQueue": "Enlever de la queue des travaux",
|
||||
"Start": "Impression"
|
||||
"Start": "Impression",
|
||||
"Cancel": "Annuler",
|
||||
"ChangeCount": "Nombre de changements",
|
||||
"Count": "Nombre",
|
||||
"InvalidCountEmpty": "L'entrée ne peut pas être vide !",
|
||||
"InvalidCountGreaterZero": "L'entrée doit être plus grande que 0 !"
|
||||
},
|
||||
"Machine": {
|
||||
"ConfigFilesPanel": {
|
||||
@@ -405,7 +418,13 @@
|
||||
"TRIGGERED": "actif"
|
||||
},
|
||||
"LogfilesPanel": {
|
||||
"Logfiles": "Fichiers log"
|
||||
"Logfiles": "Fichiers log",
|
||||
"Accept": "accepter",
|
||||
"Cancel": "annuler",
|
||||
"Rollover": "Logs glissants",
|
||||
"RolloverDescription": "Selectionnez le log qui doit être effacé",
|
||||
"RolloverToastSuccessful": "Le log \"{name}\" a été effacé",
|
||||
"RolloverToastFailed": "Message du log \"{name}\": {message}"
|
||||
},
|
||||
"SystemPanel": {
|
||||
"Constants": "Constantes",
|
||||
@@ -490,9 +509,13 @@
|
||||
},
|
||||
"KlippyStatePanel": {
|
||||
"FirmwareRestart": "Redémarrage Firmware",
|
||||
"KlipperCheck": "Contrôlez que le sevice Klipper est actif et qu'un UDS (Unix Domain Socket) est configuré",
|
||||
"MoonrakerCannotConnect": "Moonraker n'arrive pas à se connecter à Klipper",
|
||||
"Restart": "Redémarrage"
|
||||
"Restart": "Redémarrage",
|
||||
"CheckKlippyAndUdsAddress": "Controlez que le service Klipper est en marche et que klippy_uds_address est configuré correctement dans moonraker.conf.",
|
||||
"PowerOn": "Mise en marche",
|
||||
"PrinterSwitchedOff": "L'imprimante est hors tension",
|
||||
"PrinterSwitchedOffDescription": "L'imprimante est actuellement hors tension et Klipper ne peut se connecter. Pour mettre l'imprimante sous tension cliquez sur le bouton ci-dessous:",
|
||||
"ServiceReports": "rapport de {service}"
|
||||
},
|
||||
"MachineSettingsPanel": {
|
||||
"Headline": "Réglages machine",
|
||||
@@ -526,6 +549,12 @@
|
||||
"Detected": "détecté",
|
||||
"Disabled": "inactif",
|
||||
"Empty": "vide"
|
||||
},
|
||||
"Light": {
|
||||
"Blue": "bleu",
|
||||
"Green": "vert",
|
||||
"Red": "rouge",
|
||||
"White": "blanc"
|
||||
}
|
||||
},
|
||||
"PowerControlPanel": {
|
||||
@@ -569,7 +598,19 @@
|
||||
"Speed": "Vitesse",
|
||||
"Status": "Status",
|
||||
"Total": "Total",
|
||||
"Unknown": "Inconnu"
|
||||
"Unknown": "Inconnu",
|
||||
"PauseAtLayer": {
|
||||
"Abort": "annuler",
|
||||
"Accept": "accepter",
|
||||
"AtLayer": "à la couche",
|
||||
"Call": "Call",
|
||||
"DescriptionPauseAtLayerActive": "Cette fonction est déjà active et va appeler \"{call}\" à la couche {layer}. Si vous appelez la commande encore une fois, ce réglage sera remplacé.",
|
||||
"DescriptionPauseNextLayerActive": "Cette fonction est déjà active et va appeler \"{call}\" à la couche {layer}.",
|
||||
"Layer": "Couche",
|
||||
"NextLayer": "prochaine couche",
|
||||
"PauseAtLayer": "Pause à la couche",
|
||||
"Type": "type "
|
||||
}
|
||||
},
|
||||
"TemperaturePanel": {
|
||||
"AutoscaleChart": "Echelle automatique",
|
||||
@@ -786,7 +827,11 @@
|
||||
"PrinterName": "Nom de l'imprimante",
|
||||
"Reset": "réinitalisation",
|
||||
"Restore": "Restauration",
|
||||
"RestoreDialog": "Choisissez les sections que vous désirez restaurer:"
|
||||
"RestoreDialog": "Choisissez les sections que vous désirez restaurer:",
|
||||
"12hours": "12-heures ({time})",
|
||||
"24hours": "24-heures ({time})",
|
||||
"DateFormat": "Format de la date",
|
||||
"TimeFormat": "Format de l'heure"
|
||||
},
|
||||
"InterfaceSettings": "Réglages interface",
|
||||
"MacrosTab": {
|
||||
@@ -944,7 +989,11 @@
|
||||
"NavigationStyleIconsOnly": "Seulement Icônes",
|
||||
"Primary": "Couleur primaire",
|
||||
"ShowWebcamInNavigation": "Affiche CAMÉRA dans le menu de navigation",
|
||||
"UiSettings": "Interface"
|
||||
"UiSettings": "Interface",
|
||||
"HideSaveConfigButtonForBedMesh": "Cacher le bouton SAVE_CONFIG lors de changements de maillage",
|
||||
"HideSaveConfigButtonForBedMeshDescription": "Cache le bouton SAVE_CONFIG si seulement des changements de maillages sont en attente de sauvegarde vers Klipper",
|
||||
"PowerDeviceName": "Nom de l'appareil de puissance",
|
||||
"PowerDeviceNameDescription": "Choisissez quel appreil de puissance Moonraker doit utiliser pour l'alimentation de l'imprimante"
|
||||
},
|
||||
"WebcamsTab": {
|
||||
"AddWebcam": "Nouvelle caméra",
|
||||
@@ -962,6 +1011,7 @@
|
||||
"IconNozzle": "Buse",
|
||||
"IconPrinter": "Imprimante",
|
||||
"Ipstream": "Caméra IP",
|
||||
"Hlsstream": "Flux HLS",
|
||||
"Mjpegstreamer": "Flux-MJPEG",
|
||||
"MjpegstreamerAdaptive": "Flux-MJPEG Adaptatif (expérimental)",
|
||||
"Name": "Nom",
|
||||
@@ -977,7 +1027,32 @@
|
||||
"Uv4lMjpeg": "UV4L-MJPEG",
|
||||
"Vertically": "vertical",
|
||||
"Webcams": "Caméras"
|
||||
}
|
||||
},
|
||||
"MiscellaneousTab": {
|
||||
"AddGroup": "ajouter le groupe",
|
||||
"AddPreset": "ajouter le réglage",
|
||||
"Color": "Couleur",
|
||||
"CreateGroup": "Nouveau groupe",
|
||||
"CreatePreset": "Nouveau réglage",
|
||||
"End": "Fin",
|
||||
"EndDescription": "Dernière LED de ce groupe",
|
||||
"GroupSubTitle": "Début: {start}, Fin: {end}",
|
||||
"Groups": "Groupes",
|
||||
"LightGroups": "{name} - Groupes",
|
||||
"LightPresets": "{name} - Réglages",
|
||||
"Miscellaneous": "Divers",
|
||||
"Name": "Nom",
|
||||
"NoDevicesFound": "Pas trouvé d'appareil",
|
||||
"NoGroupFound": "Pas trouvé de groupe",
|
||||
"NoPresetFound": "Pas trouvé de réglage",
|
||||
"Presets": "Réglages",
|
||||
"Start": "Début",
|
||||
"StartDescription": "Première LED de ce groupe",
|
||||
"UnableToLoadLight": "Impossible de charger la lumière",
|
||||
"UnableToLoadPreset": "Impossible de charger le réglage"
|
||||
},
|
||||
"Store": "magasin",
|
||||
"Update": "mise à jour"
|
||||
},
|
||||
"Timelapse": {
|
||||
"AllFiles": "Tous",
|
||||
@@ -1030,5 +1105,28 @@
|
||||
"Variable": "Variable",
|
||||
"Video": "Vidéo"
|
||||
},
|
||||
"title": "Français"
|
||||
"title": "Français",
|
||||
"BedScrews": {
|
||||
"Abort": "annuler",
|
||||
"Accept": "accepter",
|
||||
"Adjusted": "ajusté",
|
||||
"Description": "Cliquez sur <b>ADJUSTED</b> si la vis courante a été ajustée. Cliquez sur <b>ACCEPT</b> pour continuer sans ajustement.",
|
||||
"Headline": "Vis du plateau",
|
||||
"ScrewAccepted": "Vis acceptée",
|
||||
"ScrewIndex": "Index de la vis",
|
||||
"ScrewName": "Nom de la vis",
|
||||
"ScrewOutput": "{current} de {max}"
|
||||
},
|
||||
"ManualProbe": {
|
||||
"Abort": "annuler",
|
||||
"Accept": "accepter",
|
||||
"Advanced": "avancé",
|
||||
"Headline": "Mesure manuelle"
|
||||
},
|
||||
"ScrewsTiltAdjust": {
|
||||
"Accept": "accepter",
|
||||
"Base": "Base",
|
||||
"ErrorText": "Quelque chose s'est mal passé durant le processus de mesure",
|
||||
"Headline": "Ajustement de niveau par vis"
|
||||
}
|
||||
}
|
||||
+4
-1
@@ -725,7 +725,10 @@
|
||||
"MoonrakerRestartInstance": "Moonraker példány Újraindítása",
|
||||
"MoonrakerRestartInstanceDescription": "Válaszd ki melyik Moonraker szolgáltatást indítsuk újra a 'Ment és Újraindít' esetén, amikor a Moonraker konfig fájlait szerkeszted.",
|
||||
"UseEscToClose": "Kilépéshez nyomd meg az ESC gombot",
|
||||
"UseEscToCloseDescription": "Az ESC gomb megnyomása bezárja a szerkesztőt"
|
||||
"UseEscToCloseDescription": "Az ESC gomb megnyomása bezárja a szerkesztőt",
|
||||
"TabSize": "TAB Méret",
|
||||
"TabSizeDescription": "Beállítja, hogy hány szóközzel legyen behúzva a TAB-oknál",
|
||||
"Spaces": "Szóközök: {count}"
|
||||
},
|
||||
"GCodeViewerTab": {
|
||||
"BackgroundColor": "Háttérszín",
|
||||
|
||||
+51
-7
@@ -52,6 +52,7 @@
|
||||
"Complete": "完了 - {filename}",
|
||||
"Error": "エラー!",
|
||||
"Pause": "一時停止",
|
||||
"PrinterOff": "プリンター オフ",
|
||||
"Printing": "{percent}% 印刷中 - {filename}",
|
||||
"PrintingETA": "{percent}% 印刷中 - 完了時刻: {eta} - {filename}"
|
||||
},
|
||||
@@ -164,11 +165,13 @@
|
||||
"Yes": "はい"
|
||||
},
|
||||
"Files": {
|
||||
"AddBatchToQueue": "ジョブキューにバッチを追加",
|
||||
"AddToQueue": "ジョブキューに追加",
|
||||
"AllFiles": "すべてのファイル",
|
||||
"BedTemp": "ベッド温度",
|
||||
"Cancel": "取り消し",
|
||||
"ChamberTemp": "チャンバー温度",
|
||||
"Count": "回数",
|
||||
"Create": "作成",
|
||||
"CreateNewDirectory": "新規ディレクトリの作成",
|
||||
"CurrentPath": "現在のパス",
|
||||
@@ -253,7 +256,9 @@
|
||||
"Tracking": "トラッキング",
|
||||
"Transparency": "透明",
|
||||
"Ultra": "ウルトラ",
|
||||
"VoxelMode": "ボクセルモード (ASMBL)"
|
||||
"VoxelMode": "ボクセルモード (ASMBL)",
|
||||
"ShowGCode": "Gコードを表示",
|
||||
"CNCMode": "CNCモード"
|
||||
},
|
||||
"Heightmap": {
|
||||
"Abort": "中止",
|
||||
@@ -266,8 +271,8 @@
|
||||
"Max": "最大",
|
||||
"Min": "最小",
|
||||
"Name": "名前",
|
||||
"Size": "サイズ",
|
||||
"Variance": "変動"
|
||||
"Range": "範囲",
|
||||
"Size": "サイズ"
|
||||
},
|
||||
"DeleteBedMeshProfile": "ベッドメッシュのプロファイルを削除",
|
||||
"DoYouReallyWantToDelete": "プロファイル \"{name}\"を削除します。よろしいですか?",
|
||||
@@ -303,6 +308,7 @@
|
||||
"AvgPrinttime": "平均印刷時間",
|
||||
"Cancel": "取り消し",
|
||||
"CreateNote": "メモ作成",
|
||||
"Chart": "チャート",
|
||||
"Delete": "削除",
|
||||
"DeleteSelectedQuestion": "選択された {count}個のジョブを削除します。よろしいですか?",
|
||||
"Details": "詳細",
|
||||
@@ -354,6 +360,7 @@
|
||||
"Others": "その他",
|
||||
"server_exit": "サーバー終了"
|
||||
},
|
||||
"Table": "テーブル",
|
||||
"TitleExportHistory": "履歴をエクスポート",
|
||||
"TitleRefreshHistory": "履歴を更新",
|
||||
"TitleSettings": "設定",
|
||||
@@ -365,7 +372,12 @@
|
||||
},
|
||||
"JobQueue": {
|
||||
"AllJobs": "全ジョブ",
|
||||
"ChangeCount": "回数変更",
|
||||
"Cancel": "取り消し",
|
||||
"Count": "回数",
|
||||
"Empty": "空",
|
||||
"InvalidCountEmpty": "回数は空であってはなりません!",
|
||||
"InvalidCountGreaterZero": "回数は0以上でなければなりません!",
|
||||
"JobQueue": "ジョブキュー",
|
||||
"Jobs": "ジョブ",
|
||||
"Pause": "一時停止",
|
||||
@@ -417,7 +429,13 @@
|
||||
"TRIGGERED": "トリガー"
|
||||
},
|
||||
"LogfilesPanel": {
|
||||
"Logfiles": "ログファイル"
|
||||
"Accept": "確認",
|
||||
"Cancel": "取り消し",
|
||||
"Logfiles": "ログファイル",
|
||||
"Rollover": "ログファイルのロールオーバー",
|
||||
"RolloverDescription": "リセットするログを選んでください:",
|
||||
"RolloverToastSuccessful": "\"{name}\"ログファイルのリセットに成功しました。",
|
||||
"RolloverToastFailed": "\"{name}\"ログファイルのロールオーバー: {message}"
|
||||
},
|
||||
"SystemPanel": {
|
||||
"Constants": "定数",
|
||||
@@ -507,9 +525,12 @@
|
||||
"WebcamOff": "オフ"
|
||||
},
|
||||
"KlippyStatePanel": {
|
||||
"CheckKlippyAndUdsAddress": "Klipperサービスが稼働しているか、moonraker.confにklippy_uds_addressが正しく設定されているかを確認してください。",
|
||||
"FirmwareRestart": "ファームウェア再始動",
|
||||
"KlipperCheck": "Klipperサービスが動いていて、UDS (Unix Domain Socket)が設定されているかどうか確認してください。",
|
||||
"MoonrakerCannotConnect": "MoonrakerはKlipperに接続できません!",
|
||||
"PowerOn": "電源オン",
|
||||
"PrinterSwitchedOff": "プリンターの電源はオフになっています",
|
||||
"PrinterSwitchedOffDescription": "現在、プリンターの電源がオフになっており、Klipperは接続することができません。プリンターの電源を入れるには、下のボタンをクリックしてください。:",
|
||||
"Restart": "再始動",
|
||||
"ServiceReports": "{service} レポート"
|
||||
},
|
||||
@@ -584,6 +605,18 @@
|
||||
"Layer": "層",
|
||||
"Max": "最大",
|
||||
"ObjectHeight": "印刷物の高さ",
|
||||
"PauseAtLayer": {
|
||||
"Abort": "中断",
|
||||
"Accept": "確認",
|
||||
"AtLayer": "層で",
|
||||
"Call": "呼び出し",
|
||||
"DescriptionPauseAtLayerActive": "この機能は既に有効になっており、{layer}層目で\"{call}\"が呼び出されます。再度コマンドを呼び出すと、この設定は上書きされます。",
|
||||
"DescriptionPauseNextLayerActive": "この機能は既に有効になっており、次の層で\"{call}\"が呼び出されます。",
|
||||
"Layer": "層",
|
||||
"NextLayer": "次の層",
|
||||
"PauseAtLayer": "層で一時停止",
|
||||
"Type": "タイプ"
|
||||
},
|
||||
"PausePrint": "印刷一時停止",
|
||||
"Print": "印刷",
|
||||
"PrintTime": "印刷時間",
|
||||
@@ -872,7 +905,6 @@
|
||||
"NoGroupFound": "グループが見つかりませんでした。",
|
||||
"NoPresetFound": "プリセットが見つかりませんでした。",
|
||||
"Presets": "プリセット",
|
||||
"PresetSubTitle": "赤: {red}, 緑: {green}, 青: {blue}, 白: {white}",
|
||||
"Start": "開始",
|
||||
"StartDescription": "このグループ最初のLEDです。",
|
||||
"UnableToLoadLight": "照明を読み込めませんでした。",
|
||||
@@ -987,6 +1019,8 @@
|
||||
"GcodeThumbnails": "Gコードのサムネイル",
|
||||
"GcodeThumbnailsDescription": "ボタンをクリックすると、説明書に移動します。",
|
||||
"Guide": "ガイド",
|
||||
"HideSaveConfigButtonForBedMesh": "ベッドメッシュ変更時の設定保存ボタンを表示しない",
|
||||
"HideSaveConfigButtonForBedMeshDescription": "ベッドメッシュの変更のみが保存の保留をされている時に、設定保存ボタンを表示しない。",
|
||||
"LockSliders": "タッチスクリーンデバイスのスライダーをロックする",
|
||||
"LockSlidersDelay": "スライダーロックの遅延時間",
|
||||
"LockSlidersDelayDescription": "スライダーは一定時間後にロックされます。 0か空白のままに設定すると、スライダーはページの変更か再読み込み時のみロックされるようになります。",
|
||||
@@ -996,6 +1030,8 @@
|
||||
"NavigationStyleDescription": "ナビゲーションの外観を変更",
|
||||
"NavigationStyleIconsAndText": "アイコン + テキスト",
|
||||
"NavigationStyleIconsOnly": "アイコンのみ",
|
||||
"PowerDeviceName": "プリンター電源機器",
|
||||
"PowerDeviceNameDescription": "プリンターの電源投入に使用するMoonrakerの電源デバイスを選択します。",
|
||||
"Primary": "一次",
|
||||
"ShowWebcamInNavigation": "ナビゲーションにカメラを表示",
|
||||
"UiSettings": "UI設定"
|
||||
@@ -1017,6 +1053,7 @@
|
||||
"IconNozzle": "ノズル",
|
||||
"IconPrinter": "プリンター",
|
||||
"Ipstream": "IPカメラ",
|
||||
"Hlsstream": "HLS Stream",
|
||||
"Mjpegstreamer": "MJPEG-Streamer",
|
||||
"MjpegstreamerAdaptive": "Adaptive MJPEG-Streamer (試験的)",
|
||||
"Name": "名前",
|
||||
@@ -1031,9 +1068,16 @@
|
||||
"UrlStream": "URL ストリーム",
|
||||
"Uv4lMjpeg": "UV4L-MJPEG",
|
||||
"Vertically": "垂直方向",
|
||||
"Webcams": "カメラ"
|
||||
"Webcams": "カメラ",
|
||||
"WebrtcCameraStreamer": "WebRTC (camera-streamer)"
|
||||
}
|
||||
},
|
||||
"ScrewsTiltAdjust": {
|
||||
"Accept": "確認",
|
||||
"Base": "ベース",
|
||||
"ErrorText": "プロービング過程で、問題が生じました。",
|
||||
"Headline": "スクリュー傾斜調整"
|
||||
},
|
||||
"Timelapse": {
|
||||
"AllFiles": "すべてのファイル",
|
||||
"Autorender": "自動レンダリング",
|
||||
|
||||
+186
-57
@@ -1,5 +1,4 @@
|
||||
{
|
||||
"_last_update": "12.06.2022",
|
||||
"App": {
|
||||
"Notifications": {
|
||||
"DependencyDescription": "{neededVersion} 버전 이상으로 업데이트 해야 정상 사용이 가능합니다",
|
||||
@@ -13,15 +12,16 @@
|
||||
"KlipperWarning": "클리퍼 : 주의"
|
||||
},
|
||||
"MoonrakerWarnings": {
|
||||
"MoonrakerComponent": "문래커: {component}",
|
||||
"MoonrakerFailedComponentDescription": "문래커 구성 요소인 '{component}'을(를) 로드하는 동안 오류가 발생했습니다 로 파일을 확인해 문제를 해결해 주세요",
|
||||
"MoonrakerWarning": "문래커 : 주의",
|
||||
"MoonrakerComponent": "문레이커: {component}",
|
||||
"MoonrakerFailedComponentDescription": "문레이커 구성 요소인 '{component}'을(를) 로드하는 동안 오류가 발생했습니다 로 파일을 확인해 문제를 해결해 주세요",
|
||||
"MoonrakerWarning": "문레이커 : 주의",
|
||||
"UnparsedConfigOption": "[{section}]에서 사용할 수 없는 구성 옵션인 '{option}:{value}'이(가) 존재하며 이는 더 이상 사용할 수 없는 옵션 또는 모듈 로딩을 할 수 없는 경우이며 이제부터 시작 오류가 발생할 수 있습니다",
|
||||
"UnparsedConfigSection": "[{section}]에서 사용할 수 없는 구성이 존재하며 이는 더 이상 사용할 수 없는 옵션 또는 모듈 로딩을 할 수 없는 경우이며 이제부터 시작 오류가 발생할 수 있습니다"
|
||||
},
|
||||
"Never": "안함",
|
||||
"NextReboot": "다음 재부팅",
|
||||
"NoNotification": "표시할 알림 없음",
|
||||
"Notifications": "알림",
|
||||
"Remind": "재확인:"
|
||||
},
|
||||
"NumberInput": {
|
||||
@@ -31,7 +31,7 @@
|
||||
},
|
||||
"Printers": "원격 프린터",
|
||||
"ThrottledStates": {
|
||||
"DescriptionCurrentlyThrottled": "RPi 코어가 성능 제한중입니다.",
|
||||
"DescriptionCurrentlyThrottled": "RPi 코어가 성능 제한중입니다",
|
||||
"DescriptionFrequencyCapped": "RPi 코어 클럭은 1.2Ghz로 제한됩니다",
|
||||
"DescriptionPreviouslyFrequencyCapped": " RPi 코어 클럭이 1.2 GHz로 제한됐었습니다",
|
||||
"DescriptionPreviouslyTemperatureLimited": "RPi 코어가 60도를 초과했었습니다",
|
||||
@@ -52,6 +52,7 @@
|
||||
"Complete": "{filename} - 출력 완료",
|
||||
"Error": "오류",
|
||||
"Pause": "일시정지",
|
||||
"PrinterOff": "프린터 끄기",
|
||||
"Printing": "{filename} 파일, 현재 {percent}% 출력 중..",
|
||||
"PrintingETA": "{filename} 파일 현재 {percent}% 프린트 중, 완료 예정 시간 : {eta}"
|
||||
},
|
||||
@@ -61,20 +62,20 @@
|
||||
"SAVE_CONFIG": "설정 저장",
|
||||
"Uploading": "업로드 중..",
|
||||
"UploadOfFileSuccessful": "{file} 업로드 완료!",
|
||||
"UploadPrint": "업로드 & 프린트"
|
||||
"UploadPrint": "업로드 & 출력"
|
||||
},
|
||||
"TopCornerMenu": {
|
||||
"Cancel": "취소",
|
||||
"ConfirmationDialog": {
|
||||
"Description": {
|
||||
"HostReboot": "호스트를 재부팅하면 현재 출력은 강제 정지됩니다!",
|
||||
"HostShutdown": "호스트를 종료하면 현재 출력은 강제 정지됩니다!",
|
||||
"KlipperFirmwareRestart": "클리퍼 펌웨어를 재시작하면 현재 출력은 강제 정지됩니다!",
|
||||
"KlipperRestart": "클리퍼 서비스를 재시작하면 현재 출력은 강제 정지됩니다!",
|
||||
"KlipperStop": "클리퍼 서비스를 정지 시키면 현재 출력은 강제 정지됩니다!",
|
||||
"ServiceRestart": "이 서비스를 재시작하면 현재 출력은 강제 정지됩니다",
|
||||
"ServiceStart": "이 서비스를 시작하면 현재 출력은 강제 정지됩니다!",
|
||||
"ServiceStop": "이 서비스를 중단시키면 현재 출력은 강제 정지됩니다!"
|
||||
"HostReboot": "호스트를 재부팅하면 현재 출력은 취소됩니다!",
|
||||
"HostShutdown": "호스트를 종료하면 현재 출력은 취소됩니다!",
|
||||
"KlipperFirmwareRestart": "클리퍼 펌웨어를 재시작하면 현재 출력은 취소됩니다!",
|
||||
"KlipperRestart": "클리퍼 서비스를 재시작하면 현재 출력은 취소됩니다!",
|
||||
"KlipperStop": "클리퍼 서비스를 정지 시키면 현재 출력은 취소됩니다!",
|
||||
"ServiceRestart": "이 서비스를 재시작하면 현재 출력은 취소됩니다",
|
||||
"ServiceStart": "이 서비스를 시작하면 현재 출력은 취소됩니다!",
|
||||
"ServiceStop": "이 서비스를 중단시키면 현재 출력은 취소됩니다!"
|
||||
},
|
||||
"Title": {
|
||||
"HostReboot": "호스트 재부팅",
|
||||
@@ -107,11 +108,23 @@
|
||||
"UpdatingDone": "{software} 업데이트 완료!"
|
||||
}
|
||||
},
|
||||
"BedScrews": {
|
||||
"Abort": "취소",
|
||||
"Accept": "확인",
|
||||
"Adjusted": "교정 완료",
|
||||
"Description": "베드 레벨 교정이 끝났다면 <b>교정 완료</b>를 클릭하고, 교정없이 진행하려면 <b>확인</b>을 클릭해 주세요",
|
||||
"Headline": "베드 스크류 교정",
|
||||
"ScrewAccepted": "스크류 확인",
|
||||
"ScrewIndex": "스크류 색인",
|
||||
"ScrewName": "스크류 이름",
|
||||
"ScrewOutput": " {max} 중 {current} "
|
||||
},
|
||||
"ConnectionDialog": {
|
||||
"CannotConnectTo": "{host}로 문래커 접속이 불가합니다",
|
||||
"CannotConnectTo": "{host}로 문레이커 접속이 불가합니다",
|
||||
"CheckMoonrakerLog": "이 메세지가 계속 나타날 경우 해당 경로의 로그 파일을 점검해 주세요",
|
||||
"Connecting": "{host}로 접속 중..",
|
||||
"Failed": "접속 실패",
|
||||
"Initializing": "초기화 중..",
|
||||
"TryAgain": "재접속 시도"
|
||||
},
|
||||
"Console": {
|
||||
@@ -141,7 +154,7 @@
|
||||
"SaveRestart": "저장 후 재시작",
|
||||
"SuccessfullySaved": "{filename}, 저장 완료!",
|
||||
"UnsavedChanges": "저장되지 않은 변경사항",
|
||||
"UnsavedChangesMessage": "{filename}의 수장 내용을 저장하시겠습니까?",
|
||||
"UnsavedChangesMessage": "{filename}의 수정 내용을 저장 하시겠습니까?",
|
||||
"UnsavedChangesSubMessage": "저장하지 않으면 변경 사항이 적용되지 않습니다 (에디터 설정에서 이 메세지를 비활성화 시킬 수 있습니다)",
|
||||
"Uploading": "업로드 중.."
|
||||
},
|
||||
@@ -152,9 +165,13 @@
|
||||
"Yes": "네"
|
||||
},
|
||||
"Files": {
|
||||
"AddBatchToQueue": "작업 대기열에 연속 작업 추가",
|
||||
"AddToQueue": "작업 대기열에 추가",
|
||||
"AllFiles": "모든 파일",
|
||||
"BedTemp": "베드 온도",
|
||||
"Cancel": "취소",
|
||||
"ChamberTemp": "챔버 온도",
|
||||
"Count": "카운트",
|
||||
"Create": "신규 생성",
|
||||
"CreateNewDirectory": "신규 디렉토리 만들기",
|
||||
"CurrentPath": "현재 경로",
|
||||
@@ -165,6 +182,7 @@
|
||||
"Download": "다운로드",
|
||||
"EditFile": "파일 내용 수정",
|
||||
"Empty": "비어있음",
|
||||
"ExtruderTemp": "노즐 온도",
|
||||
"Filament": "필라멘트",
|
||||
"FilamentName": "필라 이름",
|
||||
"FilamentType": "필라 유형",
|
||||
@@ -175,7 +193,10 @@
|
||||
"Free": "여유 용량",
|
||||
"FreeDisk": "사용 가능 디스크 공간",
|
||||
"GCodeFiles": "G-Code 파일",
|
||||
"GcodesRootDirectoryDoesntExists": "G-Code 디렉토리가 지정되지 않았습니다 Printer.cfg 파일의 [virtual_sdcard] 섹션을 추가해 G-Code 경로를 지정해 주세요 (ex. ~/printer_data/gcode/)",
|
||||
"HiddenFiles": "숨김 파일",
|
||||
"InvalidNameAlreadyExists": "이미 존재하는 이름입니다 다른 이름으로 지정해 주세요",
|
||||
"InvalidNameEmpty": "입력란을 비울 수 없습니다",
|
||||
"LastEndTime": "최근 종료 시간",
|
||||
"LastFilamentUsed": "최근 사용량",
|
||||
"LastModified": "최종 수정",
|
||||
@@ -214,6 +235,7 @@
|
||||
},
|
||||
"GCodeViewer": {
|
||||
"ClearLoadedFile": "초기화",
|
||||
"CNCMode": "CNC 모드",
|
||||
"ColorMode": "컬러 모드",
|
||||
"Downloading": "정보 다운로딩 중..",
|
||||
"ForceLineRendering": "Force line 랜더링",
|
||||
@@ -227,6 +249,7 @@
|
||||
"ReloadRequired": "다시 로드해야 합니다",
|
||||
"Rendering": "랜더링 중..",
|
||||
"RenderQuality": "랜더링 품질",
|
||||
"ShowGCode": "G-Code 보기",
|
||||
"ShowObjectSelection": "선택 도형 표시",
|
||||
"ShowToolhead": "툴 헤드 표시",
|
||||
"ShowTravelMoves": "이동 표시",
|
||||
@@ -248,24 +271,28 @@
|
||||
"Max": "최대",
|
||||
"Min": "최소",
|
||||
"Name": "이름",
|
||||
"Size": "메쉬 기준",
|
||||
"Variance": "변화폭"
|
||||
"Range": "범위",
|
||||
"Size": "메쉬 기준"
|
||||
},
|
||||
"DeleteBedMeshProfile": "베드 메쉬 프로파일 삭제",
|
||||
"DoYouReallyWantToDelete": "\"{name}\"? 프로파일을 정말 삭제하시겠습니까?",
|
||||
"ErrorKlipperNotReady": "클리퍼가 준비 상태가 아니므로 하이트맵은 비활성화 됩니다",
|
||||
"Flat": "수평면 기준",
|
||||
"Heightmap": "하이트맵",
|
||||
"ErrorKlipperNotReady": "클리퍼가 구동 상태가 아니므로 이 기능은 비활성화 됩니다",
|
||||
"Flat": "Probe_Calibrate 기준",
|
||||
"Heightmap": "베드레벨",
|
||||
"InvalidNameAlreadyExists": "프로파일 이름이 이미 존재합니다 다른 이름으로 지정해 주세요",
|
||||
"InvalidNameAscii": "아스키 문자열로 입력해 주세요",
|
||||
"InvalidNameEmpty": "입력란을 비울 수 없습니다",
|
||||
"InvalidNameReserved": "'default' 프로파일로 지정된 상태입니다 다른 프로파일 이름으로 지정해 주세요",
|
||||
"Later": "다음에..",
|
||||
"Mesh": "로드된 메쉬 기준",
|
||||
"Mesh": "메쉬 기준",
|
||||
"Name": "이름",
|
||||
"NoBedMeshHasBeenLoadedYet": "불러온 베드 메쉬 정보가 없습니다",
|
||||
"NoProfile": "프로파일이 존재하지 않습니다",
|
||||
"Ok": "네",
|
||||
"Probed": "프로브 측정 기준",
|
||||
"Probed": "측정 기준",
|
||||
"Profiles": "프로파일",
|
||||
"Remove": "삭제",
|
||||
"RemoveSaveDescription": "bed_mesh 프로파일이 삭제된 상태로 등록됐습니다 SAVE_CONFIG 콘솔에서 실행하거나 우측 상단 '설정 저장'을 클릭해 printer.cfg에서 제거하고 클리퍼를 다시 시작합니다",
|
||||
"RemoveSaveDescription": "베드 메시 프로파일이 삭제된 상태로 등록됐습니다 SAVE_CONFIG 콘솔에서 실행하거나 우측 상단 '설정 저장'을 클릭해 printer.cfg에서 제거하고 클리퍼를 다시 시작합니다",
|
||||
"Rename": "이름 변경",
|
||||
"RenameBedMeshProfile": "베드 메시 프로파일 이름 변경",
|
||||
"SAVE_CONFIG": "설정 저장",
|
||||
@@ -274,13 +301,14 @@
|
||||
"TitleCalibrate": "베드 메시 교정 시작",
|
||||
"TitleClear": "베드 메시 초기화",
|
||||
"TitleHomeAll": "전체 축 호밍",
|
||||
"Wireframe": "와이어프레임"
|
||||
"Wireframe": "와이어 프레임"
|
||||
},
|
||||
"History": {
|
||||
"AddNote": "노트 추가",
|
||||
"AllJobs": "전체",
|
||||
"AvgPrinttime": "평균 출력 시간",
|
||||
"Cancel": "취소",
|
||||
"Chart": "차트",
|
||||
"CreateNote": "노트 생성",
|
||||
"Delete": "삭제",
|
||||
"DeleteSelectedQuestion": "{count}개의 선택된 작업을 삭제하시겠습니까?",
|
||||
@@ -330,8 +358,10 @@
|
||||
"in_progress": "출력 중",
|
||||
"klippy_disconnect": "클리피 연결 해제",
|
||||
"klippy_shutdown": "클리피 종료",
|
||||
"Others": "기타",
|
||||
"server_exit": "서버 종료"
|
||||
},
|
||||
"Table": "테이블",
|
||||
"TitleExportHistory": "기록 내보내기",
|
||||
"TitleRefreshHistory": "기록 새로 고침",
|
||||
"TitleSettings": "설정",
|
||||
@@ -343,7 +373,12 @@
|
||||
},
|
||||
"JobQueue": {
|
||||
"AllJobs": "전체 작업",
|
||||
"Cancel": "취소",
|
||||
"ChangeCount": "카운트 변경",
|
||||
"Count": "카운트",
|
||||
"Empty": "비어있음",
|
||||
"InvalidCountEmpty": "입력란을 비워둘 수 없습니다",
|
||||
"InvalidCountGreaterZero": "0보다 큰 값으로 입력해야 합니다",
|
||||
"JobQueue": "작업 대기열",
|
||||
"Jobs": "작업",
|
||||
"Pause": "일시정지",
|
||||
@@ -355,6 +390,7 @@
|
||||
"AllFiles": "전체",
|
||||
"Cancel": "취소",
|
||||
"ConfigFiles": "설정 파일",
|
||||
"ConfigRootDirectoryDoesntExists": "설정 경로가 존재하지 않습니다 문레이커 설정의 [file_manager] 섹션에서 \"config_path\" 옵션을 수정해 주세요",
|
||||
"Create": "생성",
|
||||
"CreateDirectory": "신규 디렉토리 생성",
|
||||
"CreateFile": "신규 파일 생성",
|
||||
@@ -394,11 +430,17 @@
|
||||
"TRIGGERED": "눌림"
|
||||
},
|
||||
"LogfilesPanel": {
|
||||
"Logfiles": "로그 기록"
|
||||
"Accept": "확인",
|
||||
"Cancel": "취소",
|
||||
"Logfiles": "로그 기록",
|
||||
"Rollover": "로그 기록 관리",
|
||||
"RolloverDescription": "초기화 시킬 로그 파일을 선택해 주세요:",
|
||||
"RolloverToastFailed": "로그 기록 \"{name}\": {message}",
|
||||
"RolloverToastSuccessful": "\"{name}\" 로그 기록의 초기화를 완료 했습니다"
|
||||
},
|
||||
"SystemPanel": {
|
||||
"Constants": "세부 정보",
|
||||
"Cpu": "CPU",
|
||||
"Cpu": "CPU/APU",
|
||||
"HostDetails": "호스트 세부 정보",
|
||||
"LastStats": "마지막 통계",
|
||||
"Load": "부하",
|
||||
@@ -406,7 +448,7 @@
|
||||
"NoMoreInfos": "추가 정보 없음",
|
||||
"SystemLoad": "시스템 부하",
|
||||
"Values": {
|
||||
"Awake": "유휴: {awake}",
|
||||
"Awake": "작동: {awake}",
|
||||
"Bandwidth": "대역폭: {bandwidth}/s",
|
||||
"Distro": "배포버전: {name} {version_id}",
|
||||
"Frequency": "클럭: {frequency}",
|
||||
@@ -431,13 +473,13 @@
|
||||
"CommittedOnDate": "{date}에 커밋됨",
|
||||
"CommittedYesterday": "어제 커밋됨",
|
||||
"Detached": "분리됨",
|
||||
"Dirty": "변경 검사(dirty)",
|
||||
"Dirty": "임의변경(Dirty)",
|
||||
"ERROR": "오류",
|
||||
"Invalid": "무효",
|
||||
"OSPackages": "OS-패키지",
|
||||
"PackagesCanBeUpgraded": "업그레이드 가능한 패키지",
|
||||
"System": "시스템",
|
||||
"Unknown": "알수 없는",
|
||||
"Unknown": "알수 없는 버전",
|
||||
"Update": "업데이트",
|
||||
"UpdateAll": "모든 항목 업데이트",
|
||||
"UpdateManager": "업데이트 관리자",
|
||||
@@ -445,12 +487,18 @@
|
||||
"UpToDate": "최신 상태 유지중.."
|
||||
}
|
||||
},
|
||||
"ManualProbe": {
|
||||
"Abort": "취소",
|
||||
"Accept": "확인",
|
||||
"Advanced": "확장",
|
||||
"Headline": "수동 레벨 측정"
|
||||
},
|
||||
"Panels": {
|
||||
"ExtruderControlPanel": {
|
||||
"Allowed": "허용 됨",
|
||||
"EstimatedExtrusion": "예상 압출량 :",
|
||||
"Extrude": "필라 압출",
|
||||
"ExtruderTempTooLow": "핫 엔드 온도가 낮습니다",
|
||||
"ExtruderTempTooLow": "핫엔드 온도가 낮습니다",
|
||||
"ExtrusionFactor": "압출 속도 비율",
|
||||
"ExtrusionFeedrate": "압출 속도",
|
||||
"FilamentLength": "필라멘트 길이",
|
||||
@@ -478,10 +526,14 @@
|
||||
"WebcamOff": "웹캠 끔"
|
||||
},
|
||||
"KlippyStatePanel": {
|
||||
"CheckKlippyAndUdsAddress": "Klipper 서비스 실행 상태와 klippy_uds_address 설정이 moonraker.conf 파일에 제대로 추가되었는지 확인해 주세요",
|
||||
"FirmwareRestart": "펌웨어 재시작",
|
||||
"KlipperCheck": "Klipper 서비스가 실행 중이고 UDS(Unix Domain Socket)의 구성 확인 또는 클리퍼 재시작을 눌러 주세요",
|
||||
"MoonrakerCannotConnect": "문래커가 클리퍼로 접속할 수 없습니다!",
|
||||
"Restart": "재시작"
|
||||
"PowerOn": "전원 켜기",
|
||||
"PrinterSwitchedOff": "프린터 전원 꺼짐",
|
||||
"PrinterSwitchedOffDescription": "프린터가 현재 꺼져 있어 Klipper를 연결할 수 없습니다 프린터 전원을 켜려면 아래 버튼을 클릭해 주세요",
|
||||
"Restart": "재시작",
|
||||
"ServiceReports": "{service} 보고"
|
||||
},
|
||||
"MachineSettingsPanel": {
|
||||
"Headline": "프린터 속도 설정",
|
||||
@@ -497,20 +549,26 @@
|
||||
"Send": "보내기"
|
||||
},
|
||||
"MiniconsolePanel": {
|
||||
"Headline": "콘솔",
|
||||
"Headline": "콘솔 명령",
|
||||
"HideTemperatures": "온도 숨김",
|
||||
"HideTimelapse": "타임랩스 숨김",
|
||||
"SendCode": "제어 명령 입력 후 엔터를 눌러 주세요..",
|
||||
"SetupConsole": "콘솔 설정"
|
||||
"SetupConsole": "콘솔 명령 설정"
|
||||
},
|
||||
"MinSettingsPanel": {
|
||||
"IncludeMainsailCfg": "printer.cfg안에 mainsail.cfg를 포함시켜야 합니다",
|
||||
"IsNotDefinedInConfig": "설정에 정의되지 않았습니다",
|
||||
"MissingConfiguration": "설정 값이 누락 되었습니다",
|
||||
"MoreInformation": "정보 더 보기"
|
||||
"MoreInformation": "정보 더보기"
|
||||
},
|
||||
"MiscellaneousPanel": {
|
||||
"Headline": "기타 - 쿨링팬 & 조명 제어",
|
||||
"Headline": "기타 (쿨링 팬, 조명 제어)",
|
||||
"Light": {
|
||||
"Blue": "파랑",
|
||||
"Green": "녹색",
|
||||
"Red": "적색",
|
||||
"White": "백색"
|
||||
},
|
||||
"RunoutSensor": {
|
||||
"Detected": "필라멘트 있음",
|
||||
"Disabled": "비활성화됨",
|
||||
@@ -519,22 +577,22 @@
|
||||
},
|
||||
"PowerControlPanel": {
|
||||
"Error": "오류",
|
||||
"Off": "끔",
|
||||
"On": "켬",
|
||||
"Off": "끄기",
|
||||
"On": "켜기",
|
||||
"PowerControl": "전원 제어"
|
||||
},
|
||||
"StatusPanel": {
|
||||
"CancelPrint": "취소",
|
||||
"ClearPrintStats": "통계 초기화",
|
||||
"Difference": "차이",
|
||||
"EmptyGcodes": "사용 가능한 G-code가 없습니다",
|
||||
"EmptyGcodes": "출력 가능한 G-code 파일이 없습니다",
|
||||
"EmptyJobqueue": "작업 대기열에 파일이 존재하지 않습니다",
|
||||
"Estimate": "예상시간(실시간)",
|
||||
"ETA": "예상 완료 시간",
|
||||
"Estimate": "실시간",
|
||||
"ETA": "완료예정",
|
||||
"ExcludeObject": {
|
||||
"Cancel": "취소",
|
||||
"Excluded": "본 출력에서 제외됨",
|
||||
"ExcludeObject": "출력에서 제외",
|
||||
"ExcludeObject": "출력 제외 대상",
|
||||
"ExcludeObjectHeadline": "출력 제외 대상 선택",
|
||||
"ExcludeObjectText": "\"{name}\"을(를) 제외 하시겠습니까??"
|
||||
},
|
||||
@@ -548,20 +606,32 @@
|
||||
"Layer": "레이어",
|
||||
"Max": "최대",
|
||||
"ObjectHeight": "출력 높이",
|
||||
"PauseAtLayer": {
|
||||
"Abort": "취소",
|
||||
"Accept": "확인",
|
||||
"AtLayer": "레이어에서",
|
||||
"Call": "호출",
|
||||
"DescriptionPauseAtLayerActive": "이미 기능 활성화 된 상태이므로 레이어 {layer}에서 \"{call}\"을(를) 호출합니다 명령을 다시 호출하면 이 설정을 덮어씁니다",
|
||||
"DescriptionPauseNextLayerActive": "이미 기능 활성화 된 상태이므로 다음 레이어에서 \"{call}\"을(를) 호출합니다",
|
||||
"Layer": "레이어",
|
||||
"NextLayer": "다음 레이어",
|
||||
"PauseAtLayer": "일시 정지할 레이어",
|
||||
"Type": "유형"
|
||||
},
|
||||
"PausePrint": "일시 정지",
|
||||
"Print": "출력",
|
||||
"PrintTime": "시간",
|
||||
"ReprintJob": "다시 출력",
|
||||
"Requested": "요청됨",
|
||||
"ResumePrint": "작업 재개",
|
||||
"Slicer": "예상시간(슬라이서)",
|
||||
"Slicer": "슬라이서",
|
||||
"Speed": "출력 속도",
|
||||
"Status": "출력 상태",
|
||||
"Total": "전체",
|
||||
"Unknown": "알 수 없음"
|
||||
},
|
||||
"TemperaturePanel": {
|
||||
"AutoscaleChart": "오토 스케일링 그래프",
|
||||
"AutoscaleChart": "자동 변환 그래프",
|
||||
"Avg": "평균",
|
||||
"Cooldown": "작동 정지",
|
||||
"Current": "현재 온도",
|
||||
@@ -596,7 +666,7 @@
|
||||
"Relative": "상대 좌표",
|
||||
"SettingsInterfaceControl": "설정 > 인터페이스 > 컨트롤",
|
||||
"SpeedFactor": "속도 비율 설정",
|
||||
"ZTilt": "Z-틸트"
|
||||
"ZTilt": "Z틸트"
|
||||
},
|
||||
"WebcamPanel": {
|
||||
"All": "전체",
|
||||
@@ -627,19 +697,26 @@
|
||||
"Yes": "네"
|
||||
},
|
||||
"Router": {
|
||||
"Console": "콘솔",
|
||||
"Console": "콘솔 명령",
|
||||
"Dashboard": "대시보드",
|
||||
"G-Code Files": "G-Code 파일",
|
||||
"G-Code Viewer": "G-Code 뷰어",
|
||||
"Heightmap": "하이트 맵",
|
||||
"Heightmap": "베드 레벨 맵",
|
||||
"History": "작업 내역",
|
||||
"Machine": "머신 설정",
|
||||
"Machine": "프린터 설정",
|
||||
"Printers": "원격 프린터",
|
||||
"Timelapse": "타임랩스",
|
||||
"Webcam": "웹캠"
|
||||
},
|
||||
"ScrewsTiltAdjust": {
|
||||
"Accept": "확인",
|
||||
"Base": "베이스",
|
||||
"ErrorText": "계측 중 문제가 발생했습니다",
|
||||
"Headline": "베드 스크류 틸트 교정"
|
||||
},
|
||||
"SelectPrinterDialog": {
|
||||
"AddPrinter": "프린터 정보 추가",
|
||||
"AddPrintersToJson": "프린터를 config.json 파일에 추가해 주세요",
|
||||
"CannotConnectTo": "{host}의 호스트 연결 불가",
|
||||
"ChangePrinter": "관리 프린터 변경",
|
||||
"Connecting": "{host} 호스트로 접속 중..",
|
||||
@@ -740,13 +817,24 @@
|
||||
"ShowAxes": "축(Axis) 보기"
|
||||
},
|
||||
"GeneralTab": {
|
||||
"12hours": "12-시간 ({time})",
|
||||
"24hours": "24-시간 ({time})",
|
||||
"Backup": "백업",
|
||||
"BackupDialog": "백업을 생성할 모든 섹션을 산택해 주세요:",
|
||||
"CalcEstimateTime": "완료 예상 시간 계산",
|
||||
"CalcEstimateTimeDescription": "복수 옵션을 선택할 경우 평균으로 계산해 표시합니다",
|
||||
"CalcEtaTime": "예상 완료 시각 계산",
|
||||
"CalcEtaTimeDescription": "복수 옵션을 선택할 경우 평균으로 계산해 표시합니다",
|
||||
"CalcPrintProgress": "출력 진행율 계산",
|
||||
"CalcPrintProgressDescription": "출력 진핼율 계산 방법",
|
||||
"CalcPrintProgressItems": {
|
||||
"Filament": "필라멘트",
|
||||
"FileAbsolute": "파일 위치 (절대 값)",
|
||||
"FileRelative": "파일 위치 (상대 값)",
|
||||
"Slicer": "슬라이서 (M73)"
|
||||
},
|
||||
"CannotReadJson": "백업 파일을 읽거나 구문 해석을 할 수 없습니다",
|
||||
"DateFormat": "데이터 유형",
|
||||
"DbConsoleHistory": "콘솔 기록",
|
||||
"DbHistoryJobs": "작업 기록",
|
||||
"DbHistoryTotals": "전체 기록",
|
||||
@@ -766,7 +854,8 @@
|
||||
"PrinterName": "프린터 표시 이름",
|
||||
"Reset": "재설정",
|
||||
"Restore": "복원하기",
|
||||
"RestoreDialog": "복원하고자 하는 모든 섹션을 선택해 주세요:"
|
||||
"RestoreDialog": "복원하고자 하는 모든 섹션을 선택해 주세요:",
|
||||
"TimeFormat": "시간 유형"
|
||||
},
|
||||
"InterfaceSettings": "인터페이스 설정",
|
||||
"MacrosTab": {
|
||||
@@ -781,7 +870,7 @@
|
||||
"DeletedMacro": "매크로 삭제",
|
||||
"DeleteMacroFromGroup": "그룹에 속한 매크로 삭제",
|
||||
"EditGroup": "그룹 수정",
|
||||
"Error": "Error",
|
||||
"Error": "오류",
|
||||
"Expert": "사용자 정의",
|
||||
"General": "일반",
|
||||
"Group": "그룹",
|
||||
@@ -794,16 +883,39 @@
|
||||
"NoGroups": "그룹을 찾을 수 없습니다..",
|
||||
"NOMacros": "그룹을 찾을 수 없습니다..",
|
||||
"NoMacrosInGroup": "이 그룹엔 매크로가 없습니다",
|
||||
"Primary": "Primary",
|
||||
"Secondary": "Secondary",
|
||||
"Primary": "1차색상",
|
||||
"Secondary": "2차색상",
|
||||
"ShowInStatePaused": "일시정지 중 표시/숨김",
|
||||
"ShowInStatePrinting": "출력 중 표시/숨김",
|
||||
"ShowInStateStandby": "대기 중 표시/숨김",
|
||||
"Simple": "기본 값",
|
||||
"Status": "매크로 표시 상태 설정",
|
||||
"Success": "Success",
|
||||
"Success": "성공",
|
||||
"UnknownGroup": "알 수 없는 그룹",
|
||||
"Warning": "Warning"
|
||||
"Warning": "경고"
|
||||
},
|
||||
"MiscellaneousTab": {
|
||||
"AddGroup": "그룹 추가",
|
||||
"AddPreset": "프리셋 추가",
|
||||
"Color": "색상",
|
||||
"CreateGroup": "그룹 생성",
|
||||
"CreatePreset": "프리셋 생성",
|
||||
"End": "끝 번호",
|
||||
"EndDescription": "LED의 마지막 열 번호를 지정합니다",
|
||||
"Groups": "그룹",
|
||||
"GroupSubTitle": "시작: {start}, 끝: {end}",
|
||||
"LightGroups": "{name} - 그룹",
|
||||
"LightPresets": "{name} - 프리셋",
|
||||
"Miscellaneous": "기타",
|
||||
"Name": "이름",
|
||||
"NoDevicesFound": "장치가 없습니다",
|
||||
"NoGroupFound": "그룹이 없습니다",
|
||||
"NoPresetFound": "프리셋이 없습니다",
|
||||
"Presets": "프리셋",
|
||||
"Start": "시작 번호",
|
||||
"StartDescription": "LED의 시작 열 번호를 지정합니다",
|
||||
"UnableToLoadLight": "라이트를 로드할 수 없습니다",
|
||||
"UnableToLoadPreset": "프리셋을 로드할 수 없습니다"
|
||||
},
|
||||
"PresetsTab": {
|
||||
"AddPreset": "프리셋 추가",
|
||||
@@ -829,8 +941,10 @@
|
||||
"Hostname": "호스트 이름 [공인 IP 주소 입력]",
|
||||
"Port": "접속 포트 [외부 접속 포트 입력]",
|
||||
"RemotePrinters": "원격 프린터",
|
||||
"UpdatePrinter": "적용"
|
||||
"UpdatePrinter": "적용",
|
||||
"UseConfigJson": "InstanceDB = JSON을 감지했습니다 config.json을 확인해 프린터 목록을 수정해 주세요"
|
||||
},
|
||||
"Store": "복원",
|
||||
"TimelapseTab": {
|
||||
"Autorender": "자동 렌더",
|
||||
"AutorenderDescription": "활성화 시킬 경우 타임랩스 비디오가 인쇄 마지막 단계에서 자동으로 렌더링됩니다",
|
||||
@@ -907,11 +1021,15 @@
|
||||
"ConfirmOnEmergencyStopDescription": "비상 정지 버튼 클릭할 경우 안내 창을 열어 승인 이후 작동하도록 합니다",
|
||||
"ConfirmOnPowerDeviceChange": "장치 전원 끄고 켤 때 확인 창 열기",
|
||||
"ConfirmOnPowerDeviceChangeDescription": "장치 전원을 변경할 경우 안내 창을 열어 사용자의 확인 후 작동토록 합니다",
|
||||
"DisableFanAnimation": "에니메이션 비활성화",
|
||||
"DisableFanAnimationDescription": "에니메이션을 비활성화 시키면 브라우저 로딩 속도를 개선할 수 있습니다",
|
||||
"DisplayCANCEL_PRINT": "출력 취소 표시",
|
||||
"DisplayCANCEL_PRINTDescription": "상태 창에서 출력 정지 아이콘을 표시하며 비활성화 시킬 경우, 일시 정지 후 출력 정지 아이콘이 표시됩니다",
|
||||
"GcodeThumbnails": "G-Code 썸네일",
|
||||
"GcodeThumbnailsDescription": "Gcode 썸네일을 클릭하면 파일 편집기로 곧바로 전환합니다",
|
||||
"Guide": "추가 설명",
|
||||
"HideSaveConfigButtonForBedMesh": "베드 메시 완료 후 SAVE_CONFIG 버튼 숨김",
|
||||
"HideSaveConfigButtonForBedMeshDescription": "베드 메시 교정 변경 사항이 생겼어도 SAVE_CONFIG를 숨깁니다 만약 변경된 베드 메시를 저장하려면 콘솔 명령 창에서 SAVE_CONFIG 명령을 실행하면 됩니다",
|
||||
"LockSliders": "터치스크린 장치의 슬라이더 기능 잠금",
|
||||
"LockSlidersDelay": "슬라이더 잠금 지연",
|
||||
"LockSlidersDelayDescription": "슬라이더는 설정한 시간 이후 잠기며 0으로 설정하거나 공백으로 두면 페이지 변경 또는 새로 고침 후에만 잠깁니다",
|
||||
@@ -921,14 +1039,21 @@
|
||||
"NavigationStyleDescription": "좌측 메뉴 표시 스타일을 변경합니다",
|
||||
"NavigationStyleIconsAndText": "아이콘 + 텍스트",
|
||||
"NavigationStyleIconsOnly": "아이콘",
|
||||
"PowerDeviceName": "프린터 전원장치",
|
||||
"PowerDeviceNameDescription": "프린터 전원을 켜는 데 사용할 문레이커 전원 장치를 선택합니다",
|
||||
"Primary": "아이콘 컬러",
|
||||
"ShowWebcamInNavigation": "좌측 메뉴 바에 웹캠 메뉴 추가",
|
||||
"UiSettings": "UI 설정"
|
||||
},
|
||||
"Update": "업데이트",
|
||||
"WebcamsTab": {
|
||||
"AddWebcam": "웹캠 추가",
|
||||
"CreateWebcam": "웹캠 장치 정보 입력",
|
||||
"EditCrowsnestConf": "crosnest.conf 설정 수정",
|
||||
"EditWebcam": "웹캠 장치 정보 수정",
|
||||
"FlipWebcam": "웹캠 이미지 반전:",
|
||||
"Hlsstream": "HLS 스트림",
|
||||
"Horizontally": "가로 반전",
|
||||
"IconBed": "베드",
|
||||
"IconCam": "캠",
|
||||
"IconDoor": "도어",
|
||||
@@ -943,6 +1068,7 @@
|
||||
"Name": "이름",
|
||||
"NameAlreadyExists": "이미 이름이 존재합니다",
|
||||
"Required": "필요합니다",
|
||||
"Rotate": "회전",
|
||||
"SaveWebcam": "확인",
|
||||
"Service": "서비스",
|
||||
"TargetFPS": "타겟 FPS",
|
||||
@@ -950,7 +1076,9 @@
|
||||
"UrlSnapshot": "URL 스냅샷(외부 스트림시 :9999등의 포트 추가)",
|
||||
"UrlStream": "URL 스트림 (외부 스트림시 :9999등의 포트 추가)",
|
||||
"Uv4lMjpeg": "UV4L-MJPEG",
|
||||
"Webcams": "웹캠"
|
||||
"Vertically": "세로 반전",
|
||||
"Webcams": "웹캠",
|
||||
"WebrtcCameraStreamer": "WebRTC (camera-streamer)"
|
||||
}
|
||||
},
|
||||
"Timelapse": {
|
||||
@@ -963,6 +1091,7 @@
|
||||
"Delete": "삭제",
|
||||
"DeleteDirectory": "디렉토리 삭제",
|
||||
"DeleteDirectoryQuestion": "\"{name}\" 디렉토리와 하위 모든 내용을 삭제 하시겠습니까?",
|
||||
"DeleteSelectedQuestion": "{count}개의 파일을 정말로 삭제하시겠습니까?",
|
||||
"Download": "다운로드",
|
||||
"DuplicateLastframe": "마지막 프레임 복제",
|
||||
"Empty": "완성된 타입랩스가 없습니다",
|
||||
|
||||
+76
-32
@@ -59,9 +59,9 @@
|
||||
"CannotUploadTheFile": "Kan het bestand niet uploaden!",
|
||||
"EmergencyStop": "Noodstop",
|
||||
"SAVE_CONFIG": "CONFIG OPSLAAN",
|
||||
"Uploading": "Uploaden",
|
||||
"UploadOfFileSuccessful": "Upload van {file} succesvol!",
|
||||
"UploadPrint": "Upload & Print"
|
||||
"UploadPrint": "Upload & Print",
|
||||
"Uploading": "Uploaden"
|
||||
},
|
||||
"TopCornerMenu": {
|
||||
"Cancel": "Annuleer",
|
||||
@@ -164,11 +164,13 @@
|
||||
"Yes": "Ja"
|
||||
},
|
||||
"Files": {
|
||||
"AddBatchToQueue": "Voeg batch toe aan wachtrij",
|
||||
"AddToQueue": "Voeg aan wachtrij toe",
|
||||
"AllFiles": "Alle",
|
||||
"BedTemp": "Bed Temp.",
|
||||
"Cancel": "Annuleer",
|
||||
"ChamberTemp": "Kamer Temp.",
|
||||
"Count": "Aantal",
|
||||
"Create": "Creëer",
|
||||
"CreateNewDirectory": "Creëer nieuwe Map",
|
||||
"CurrentPath": "Huidige pad",
|
||||
@@ -206,9 +208,9 @@
|
||||
"NozzleDiameter": "Nozzle Diameter",
|
||||
"ObjectHeight": "Objecthoogte",
|
||||
"Preheat": "Voorverwarmen",
|
||||
"PrintedFiles": "Geprinte bestanden",
|
||||
"PrintStart": "Start print",
|
||||
"PrintTime": "Printtijd",
|
||||
"PrintedFiles": "Geprinte bestanden",
|
||||
"RefreshCurrentDirectory": "Ververs huidige map",
|
||||
"Rename": "Hernoem",
|
||||
"RenameDirectory": "Hernoem map",
|
||||
@@ -231,6 +233,7 @@
|
||||
"DropFilesToUploadFiles": "Sleep bestand hier om te uploaden."
|
||||
},
|
||||
"GCodeViewer": {
|
||||
"CNCMode": "CNC Modus",
|
||||
"ClearLoadedFile": "Leeg",
|
||||
"ColorMode": "Kleur modus",
|
||||
"Downloading": "Downloaden",
|
||||
@@ -243,8 +246,9 @@
|
||||
"Max": "Max",
|
||||
"Medium": "Medium",
|
||||
"ReloadRequired": "Herladen nodig",
|
||||
"Rendering": "Renderen",
|
||||
"RenderQuality": "Render kwaliteit",
|
||||
"Rendering": "Renderen",
|
||||
"ShowGCode": "Toon G-Code",
|
||||
"ShowObjectSelection": "Toon object selectie",
|
||||
"ShowToolhead": "Toon Toolhead",
|
||||
"ShowTravelMoves": "Toon bewegingen",
|
||||
@@ -302,6 +306,7 @@
|
||||
"AllJobs": "Alle",
|
||||
"AvgPrinttime": "Gemiddelde printtijd",
|
||||
"Cancel": "Annuleer",
|
||||
"Chart": "Grafiek",
|
||||
"CreateNote": "Creëer notitie",
|
||||
"Delete": "Verwijder",
|
||||
"DeleteSelectedQuestion": "Weet je zeker dat je {count} geselecteerde jobs wil verwijderen?",
|
||||
@@ -345,15 +350,16 @@
|
||||
"Statistics": "Statistieken",
|
||||
"Status": "Status",
|
||||
"StatusValues": {
|
||||
"Others": "Overige",
|
||||
"cancelled": "Geannuleerd",
|
||||
"completed": "Voltooid",
|
||||
"error": "Fout",
|
||||
"in_progress": "Bezig",
|
||||
"klippy_disconnect": "Klippy verbinding verbroken",
|
||||
"klippy_shutdown": "Klippy afgesloten",
|
||||
"Others": "Overige",
|
||||
"server_exit": "Server exit"
|
||||
},
|
||||
"Table": "Tabel",
|
||||
"TitleExportHistory": "Export geschiedenis",
|
||||
"TitleRefreshHistory": "Ververs geschiedenis",
|
||||
"TitleSettings": "Instellingen",
|
||||
@@ -365,7 +371,12 @@
|
||||
},
|
||||
"JobQueue": {
|
||||
"AllJobs": "Alle jobs",
|
||||
"Cancel": "Annuleer",
|
||||
"ChangeCount": "Verander aantal",
|
||||
"Count": "Aantal",
|
||||
"Empty": "Leeg",
|
||||
"InvalidCountEmpty": "Invoer mag niet leeg zijn!",
|
||||
"InvalidCountGreaterZero": "Invoer moet groter dan 0 zijn!",
|
||||
"JobQueue": "Job wachtrij",
|
||||
"Jobs": "Jobs",
|
||||
"Pause": "Pauze",
|
||||
@@ -413,11 +424,17 @@
|
||||
"Endstop": "Endstop",
|
||||
"EndstopInfo": "Druk op de sync-knop rechtsoner om de huidige endstop status te laden.",
|
||||
"Endstops": "Endstops",
|
||||
"open": "OPEN",
|
||||
"TRIGGERED": "GETRIGGERED"
|
||||
"TRIGGERED": "GETRIGGERED",
|
||||
"open": "OPEN"
|
||||
},
|
||||
"LogfilesPanel": {
|
||||
"Logfiles": "Logbestanden"
|
||||
"Accept": "accepteer",
|
||||
"Cancel": "annuleer",
|
||||
"Logfiles": "Logbestanden",
|
||||
"Rollover": "Roteer logs",
|
||||
"RolloverDescription": "Selecteer welke logs moeten roteren:",
|
||||
"RolloverToastFailed": "Roteren van log voor \"{name}\": {message}",
|
||||
"RolloverToastSuccessful": "Log voor \"{name}\" was succesvol geroteerd."
|
||||
},
|
||||
"SystemPanel": {
|
||||
"Constants": "Constanten",
|
||||
@@ -461,11 +478,11 @@
|
||||
"PackagesCanBeUpgraded": "pakketten kunnen worden geüpgraded",
|
||||
"System": "Systeem",
|
||||
"Unknown": "onbekend",
|
||||
"UpToDate": "up-to-date",
|
||||
"Update": "update",
|
||||
"UpdateAll": "Update alle componenten",
|
||||
"UpdateManager": "Update Manager",
|
||||
"Upgrade": "upgrade",
|
||||
"UpToDate": "up-to-date"
|
||||
"Upgrade": "upgrade"
|
||||
}
|
||||
},
|
||||
"ManualProbe": {
|
||||
@@ -507,9 +524,12 @@
|
||||
"WebcamOff": "Uit"
|
||||
},
|
||||
"KlippyStatePanel": {
|
||||
"CheckKlippyAndUdsAddress": "Controleer of de Klipper service draait en klippy_uds_address correct is geconfigureerd in moonraker.conf.",
|
||||
"FirmwareRestart": "Firmware Herstart",
|
||||
"KlipperCheck": "Controleer of de Klipper service draait en een UDS (Unix Domain Socket) geconfigureerd is.",
|
||||
"MoonrakerCannotConnect": "Moonraker kan niet met Klipper verbinden!",
|
||||
"PowerOn": "Printer inschakelen",
|
||||
"PrinterSwitchedOff": "Printer is uitgeschakeld",
|
||||
"PrinterSwitchedOffDescription": "De printer is uitgeschakeld en Klipper kan niet verbinden. Om de printer in te schakelen, klik op de onderstaande knop:",
|
||||
"Restart": "Herstart",
|
||||
"ServiceReports": "{service} rapportages"
|
||||
},
|
||||
@@ -526,6 +546,12 @@
|
||||
"Headline": "Macros",
|
||||
"Send": "verstuur"
|
||||
},
|
||||
"MinSettingsPanel": {
|
||||
"IncludeMainsailCfg": "Zorg dat je mainsail.cfg in je printer.cfg geïnclude hebt.",
|
||||
"IsNotDefinedInConfig": "is niet gedefinieerd in de config.",
|
||||
"MissingConfiguration": "Ontbrekende configuratie",
|
||||
"MoreInformation": "meer informatie"
|
||||
},
|
||||
"MiniconsolePanel": {
|
||||
"Headline": "Console",
|
||||
"HideTemperatures": "Verberg temperaturen",
|
||||
@@ -533,12 +559,6 @@
|
||||
"SendCode": "Verzend code...",
|
||||
"SetupConsole": "Console Instellingen"
|
||||
},
|
||||
"MinSettingsPanel": {
|
||||
"IncludeMainsailCfg": "Zorg dat je mainsail.cfg in je printer.cfg geïnclude hebt.",
|
||||
"IsNotDefinedInConfig": "is niet gedefinieerd in de config.",
|
||||
"MissingConfiguration": "Ontbrekende configuratie",
|
||||
"MoreInformation": "meer informatie"
|
||||
},
|
||||
"MiscellaneousPanel": {
|
||||
"Headline": "Overige",
|
||||
"Light": {
|
||||
@@ -563,16 +583,16 @@
|
||||
"CancelPrint": "Annuleer print",
|
||||
"ClearPrintStats": "Wis print statistieken",
|
||||
"Difference": "Verschil",
|
||||
"ETA": "ETA",
|
||||
"EmptyGcodes": "Geen G-Code beschikbaar.",
|
||||
"EmptyJobqueue": "Er zijn geen bestanden in de wachtrij.",
|
||||
"Estimate": "Schatting",
|
||||
"ETA": "ETA",
|
||||
"ExcludeObject": {
|
||||
"Cancel": "annuleer",
|
||||
"Excluded": "Uitgesloten",
|
||||
"ExcludeObject": "Object uitsluiten",
|
||||
"ExcludeObjectHeadline": "Object uitsluiten",
|
||||
"ExcludeObjectText": "Weet je zeker dat je \"{name}\" wil uitsluiten?"
|
||||
"ExcludeObjectText": "Weet je zeker dat je \"{name}\" wil uitsluiten?",
|
||||
"Excluded": "Uitgesloten"
|
||||
},
|
||||
"Filament": "Filament",
|
||||
"File": "Bestand",
|
||||
@@ -584,6 +604,18 @@
|
||||
"Layer": "Laag",
|
||||
"Max": "max",
|
||||
"ObjectHeight": "Objecthoogte",
|
||||
"PauseAtLayer": {
|
||||
"Abort": "annuleer",
|
||||
"Accept": "accepteer",
|
||||
"AtLayer": "op Laag",
|
||||
"Call": "Uitvoeren",
|
||||
"DescriptionPauseAtLayerActive": "Deze functie is al actief en zal \"{call}\" uitvoeren op laag {layer}. Wanneer het commando nogmaals wordt uitgevoerd, worden deze instellingen overschreven.",
|
||||
"DescriptionPauseNextLayerActive": "Deze functie is al actief en voert \"{call}\" uit bij de volgende laag.",
|
||||
"Layer": "Laag",
|
||||
"NextLayer": "volgende Laag",
|
||||
"PauseAtLayer": "Pauzeer op Laag",
|
||||
"Type": "Type"
|
||||
},
|
||||
"PausePrint": "Pauzeer print",
|
||||
"Print": "Print",
|
||||
"PrintTime": "Printtijd",
|
||||
@@ -618,13 +650,13 @@
|
||||
"ShowNameInList": "Toon {name} in de lijst",
|
||||
"State": "Status",
|
||||
"Target": "Doel",
|
||||
"TemperaturesInChart": "Temperatuur [°C]",
|
||||
"TempTooHigh": "Temperatuur te hoog voor {name}! (max: {max})",
|
||||
"TempTooLow": "Temperatuur te laag voor {name}! (min: {min})"
|
||||
"TempTooLow": "Temperatuur te laag voor {name}! (min: {min})",
|
||||
"TemperaturesInChart": "Temperatuur [°C]"
|
||||
},
|
||||
"ToolheadControlPanel": {
|
||||
"Absolute": "absoluut",
|
||||
"ALL": "ALLES",
|
||||
"Absolute": "absoluut",
|
||||
"Headline": "Toolhead",
|
||||
"PleaseConfigureSteps": "Configureer steps",
|
||||
"Position": "Positie",
|
||||
@@ -674,6 +706,12 @@
|
||||
"Timelapse": "Timelapse",
|
||||
"Webcam": "Webcam"
|
||||
},
|
||||
"ScrewsTiltAdjust": {
|
||||
"Accept": "accepteer",
|
||||
"Base": "basis",
|
||||
"ErrorText": "Iets ging fout bij het proben.",
|
||||
"Headline": "Schroef kantel-aanpassing"
|
||||
},
|
||||
"SelectPrinterDialog": {
|
||||
"AddPrinter": "Voeg printer toe",
|
||||
"AddPrintersToJson": "Voeg de printers toe aan de config.json",
|
||||
@@ -827,8 +865,8 @@
|
||||
"CountMacros": "geen Macros toegevoegd | {count} Macro | {count} Macros",
|
||||
"Custom": "custom",
|
||||
"CustomColor": "Custom Kleur",
|
||||
"DeletedMacro": "Verwijderde macro",
|
||||
"DeleteMacroFromGroup": "Verwijder macro uit groep.",
|
||||
"DeletedMacro": "Verwijderde macro",
|
||||
"EditGroup": "Bewerk groep",
|
||||
"Error": "fout",
|
||||
"Expert": "Expert",
|
||||
@@ -838,10 +876,10 @@
|
||||
"Macrogroups": "Groepen",
|
||||
"Macros": "Macros",
|
||||
"Management": "Beheer",
|
||||
"NOMacros": "geen macros gevonden...",
|
||||
"Name": "Naam",
|
||||
"NoAvailableMacros": "Geen macros beschikbaar.",
|
||||
"NoGroups": "Geen groepen gevonden...",
|
||||
"NOMacros": "geen macros gevonden...",
|
||||
"NoMacrosInGroup": "Geen macros in deze groep.",
|
||||
"Primary": "primair",
|
||||
"Secondary": "secundair",
|
||||
@@ -862,8 +900,8 @@
|
||||
"CreatePreset": "Maak preset aan",
|
||||
"End": "Einde",
|
||||
"EndDescription": "Laatste LED van deze groep.",
|
||||
"Groups": "Groepen",
|
||||
"GroupSubTitle": "Start: {start}, Einde: {end}",
|
||||
"Groups": "Groepen",
|
||||
"LightGroups": "{name} - Groepen",
|
||||
"LightPresets": "{name} - Presets",
|
||||
"Miscellaneous": "Overige",
|
||||
@@ -912,8 +950,6 @@
|
||||
"CameraDescription": "Selecteer welke camera gebruikt wordt",
|
||||
"ConstantRateFactor": "Constant Rate Factor",
|
||||
"ConstantRateFactorDescription": "Dit bepaalt de kwaliteit vs bestandsgrootte van de gerenderde video. De CRF schaal is van 0-51 waar 0 zonder verlies is, 23 de standaard en 51 de slechts mogelijke kwaliteit. Een lagere waarde geeft over het algemeen betere kwaliteit en een gangbare waarde is 17-28. Zie 17 of 18 als praktisch zonder kwaliteitsverlies.",
|
||||
"duplicatelastframe": "duplicatelastframe",
|
||||
"duplicatelastframeDescription": "Herhaal het laatste frame aan het eind van de video",
|
||||
"Enabled": "Ingeschakeld",
|
||||
"EnabledDescription": "Indien uitgeschakeld, worden gcode macros genegeerd en autorender overgeslagen.",
|
||||
"Extraoutputparams": "Extraoutputparams",
|
||||
@@ -929,12 +965,12 @@
|
||||
"ModeDescription": "Kies tussen Layermacro en Hyperlapse (tijd gebaseerde) modus",
|
||||
"OutputFramerate": "Uitvoer Framerate",
|
||||
"OutputFramerateDescription": "Definieert de framerate van de video. Note: dit wordt genegeerd wanneer variable_fps is ingeschakeld",
|
||||
"ParkTime": "Parkeerduur",
|
||||
"ParkTimeDescription": "Voeg extra tijd toe bij het parkeren.",
|
||||
"Parkhead": "Parkhead",
|
||||
"ParkheadDescription": "Indien ingeschakeld, wordt de printkop geparkeerd voor een foto te nemen.",
|
||||
"Parkpos": "Parkeer postitie",
|
||||
"ParkposDescription": "Selecteer de parkeer positie",
|
||||
"ParkTime": "Parkeerduur",
|
||||
"ParkTimeDescription": "Voeg extra tijd toe bij het parkeren.",
|
||||
"Pixelformat": "Pixelformat",
|
||||
"PixelformatDescription": "Definieer het pixelformaat van de video",
|
||||
"PosDZ": "Positie Z",
|
||||
@@ -968,9 +1004,11 @@
|
||||
"VariableFps": "Variabele FPS",
|
||||
"VariableFpsDescription": "Indien ingeschakeld, wordt de framerate van de video berekend op basis van de beoogde lengte",
|
||||
"VariableFpsMax": "Variabele FPS max",
|
||||
"VariableFpsMaxDescription": "",
|
||||
"VariableFpsMaxDescription": "Maximale waarde voor variabele FPS",
|
||||
"VariableFpsMin": "Variabele FPS max",
|
||||
"VariableFpsMinDescription": ""
|
||||
"VariableFpsMinDescription": "Minimale waarde voor variabele FPS",
|
||||
"duplicatelastframe": "duplicatelastframe",
|
||||
"duplicatelastframeDescription": "Herhaal het laatste frame aan het eind van de video"
|
||||
},
|
||||
"UiSettingsTab": {
|
||||
"BoolBigThumbnail": "Grote thumbnail",
|
||||
@@ -986,6 +1024,8 @@
|
||||
"GcodeThumbnails": "Gcode thumbnails",
|
||||
"GcodeThumbnailsDescription": "Klik op de knop om naar de instructies te gaan.",
|
||||
"Guide": "Richtlijnen",
|
||||
"HideSaveConfigButtonForBedMesh": "Verberg SAVE_CONFIG knop voor bed_mesh aanpassingen",
|
||||
"HideSaveConfigButtonForBedMeshDescription": "Verberg SAVE_CONFIG,wanneer alleen bed_mesh aanpassingen opgeslagen hoeven te worden in Klipper.",
|
||||
"LockSliders": "Zet de sliders op slot op touchscreen apparaten",
|
||||
"LockSlidersDelay": "Slot vertraging",
|
||||
"LockSlidersDelayDescription": "Na de ingestelde vertraging gaan de sliders op slot. Wanneer ze op 0 worden ingesteld of leeg worden gelaten, gaan ze alleen op slot bij verversen van de pagina.",
|
||||
@@ -995,6 +1035,8 @@
|
||||
"NavigationStyleDescription": "Pas de navigatiestijl aan",
|
||||
"NavigationStyleIconsAndText": "Iconen + Tekst",
|
||||
"NavigationStyleIconsOnly": "Alleen iconen",
|
||||
"PowerDeviceName": "Printer power apparaat",
|
||||
"PowerDeviceNameDescription": "Selecteer welk Moonraker power apparaat gebruikt moet worden om de printer te schakelen.",
|
||||
"Primary": "Primair",
|
||||
"ShowWebcamInNavigation": "Toon Webcam in de navigatie",
|
||||
"UiSettings": "UI Instellingen"
|
||||
@@ -1006,6 +1048,7 @@
|
||||
"EditCrowsnestConf": "Bewerk crowsnest.conf",
|
||||
"EditWebcam": "Bewerk Webcam",
|
||||
"FlipWebcam": "Flip webcam beeld:",
|
||||
"Hlsstream": "HLS Stream",
|
||||
"Horizontally": "horizontaal",
|
||||
"IconBed": "Bed",
|
||||
"IconCam": "Camera",
|
||||
@@ -1084,5 +1127,6 @@
|
||||
"Variable": "Variable",
|
||||
"Video": "Video"
|
||||
},
|
||||
"_last_update": "2023-02-21",
|
||||
"title": "Nederlands"
|
||||
}
|
||||
+242
-94
@@ -2,7 +2,7 @@
|
||||
"App": {
|
||||
"Notifications": {
|
||||
"DependencyDescription": "Aktualna {name} wersja nie wspiera wszystkich funkcji Mainsail. Zaktualizuj {name} conajmniej do wersji {neededVersion}.",
|
||||
"DependencyName": "Dependency: {name}",
|
||||
"DependencyName": "Zależność: {name}",
|
||||
"DismissAll": "Odrzuć wszystko",
|
||||
"KlipperWarnings": {
|
||||
"DeprecatedOption": "Opcja '{option}' w sekcji '{section}' jest przestarzała i zostanie usunięta w przyszłych wydaniach.",
|
||||
@@ -16,12 +16,13 @@
|
||||
"MoonrakerFailedComponentDescription": "Został wykryty błąd podczas ładowania '{component}'. Proszę sprawdzić rejestr plików i naprawić błąd.",
|
||||
"MoonrakerWarning": "Ostrzeżenie Moonraker'a",
|
||||
"UnparsedConfigOption": "Błędna wartość '{option}: {value}' w sekcji [{section}]. Ustawienie, które zostało użyte, może nie być już dłużej możliwe lub stało się to wskutek modułu który się nie wczytał. W przyszłości może wystąpić problem podczas startu.",
|
||||
"UnparsedConfigSection": "Błędna wartość w sekcji [{section}] została wykryta. Może być to skutek elementu, który się nie wczytał. W przyszłości może wystąpić problem podczas startu. "
|
||||
"UnparsedConfigSection": "Błędna wartość w sekcji [{section}] została wykryta. Może być to skutek elementu, który się nie wczytał. W przyszłości może wystąpić problem podczas startu."
|
||||
},
|
||||
"Never": "nigdy",
|
||||
"NextReboot": "przy następnym uruchomieniu",
|
||||
"NoNotification": "Brak powiadomień",
|
||||
"Remind": "Przypomnij:"
|
||||
"Remind": "Przypomnij:",
|
||||
"Notifications": "Powiadomienia"
|
||||
},
|
||||
"NumberInput": {
|
||||
"GreaterOrEqualError": "Musi być większa lub równa {min}!",
|
||||
@@ -52,7 +53,8 @@
|
||||
"Error": "BŁĄD",
|
||||
"Pause": "Pauza",
|
||||
"Printing": "{percent}% Drukowanie - {filename}",
|
||||
"PrintingETA": "{percent}% Drukowanie - ETA: {eta} - {filename}"
|
||||
"PrintingETA": "{percent}% Drukowanie - Koniec: {eta} - {filename}",
|
||||
"PrinterOff": "Drukarka WYŁ."
|
||||
},
|
||||
"TopBar": {
|
||||
"CannotUploadTheFile": "Błąd wgrywania pliku!",
|
||||
@@ -108,17 +110,18 @@
|
||||
},
|
||||
"ConnectionDialog": {
|
||||
"CannotConnectTo": "Połączenie ({host}) z Moonrakerem nieudane.",
|
||||
"CheckMoonrakerLog": "Jeżeli ta wiadomość się powtarza , sprawdź plik:",
|
||||
"CheckMoonrakerLog": "Jeżeli ta wiadomość się powtarza, sprawdź plik:",
|
||||
"Connecting": "Łączenie z {host}",
|
||||
"Failed": "Połączenie nieudane",
|
||||
"TryAgain": "Spróbuj ponownie"
|
||||
"TryAgain": "Spróbuj ponownie",
|
||||
"Initializing": "Inicjowanie"
|
||||
},
|
||||
"Console": {
|
||||
"CommandList": "Lista komend",
|
||||
"Empty": "Puste",
|
||||
"HideTemperatures": "Ukryj temperatury",
|
||||
"HideTimelapse": "Ukryj timelapse",
|
||||
"SendCode": "Wgrywanie pliku...",
|
||||
"SendCode": "Wyślij polecenie...",
|
||||
"SetupConsole": "Konsola ustawień"
|
||||
},
|
||||
"Dialogs": {
|
||||
@@ -141,7 +144,7 @@
|
||||
"SuccessfullySaved": "{filename} pomyślnie zapisano.",
|
||||
"UnsavedChanges": "Niezapisane zmiany",
|
||||
"UnsavedChangesMessage": "Chcesz zapisać zmiany w {filename}?",
|
||||
"UnsavedChangesSubMessage": "Niezapisane zmiany zostaną utracone. Możesz wyłączyć to okno dialogowe w ustawieniach edytora",
|
||||
"UnsavedChangesSubMessage": "Niezapisane zmiany zostaną utracone. Możesz wyłączyć to okno dialogowe w ustawieniach edytora.",
|
||||
"Uploading": "Wgrywanie"
|
||||
},
|
||||
"EmergencyStopDialog": {
|
||||
@@ -205,7 +208,19 @@
|
||||
"Total": "Łącznie",
|
||||
"UploadNewGcode": "Wgraj nowy G-Code",
|
||||
"Used": "Użyte",
|
||||
"View3D": "Zobacz w 3D"
|
||||
"View3D": "Zobacz w 3D",
|
||||
"AddBatchToQueue": "Dodaj serię do kolejki",
|
||||
"GcodesRootDirectoryDoesntExists": "Nie znaleziono katalogu G-Code. Sprawdź opcję \"path\" w sekcji [virtual_sdcard] konfiguracji Klippera.",
|
||||
"ScanMeta": "Skanuj metadane",
|
||||
"BedTemp": "Temp. łóżka",
|
||||
"ChamberTemp": "Temp. komory",
|
||||
"Count": "Ilość",
|
||||
"DuplicateFile": "Powielony plik",
|
||||
"InvalidNameAlreadyExists": "Nazwa już istnieje, wybierz inną.",
|
||||
"InvalidNameEmpty": "Pole wejściowe nie może być puste!",
|
||||
"ExtruderTemp": "Temp. ekstrudera",
|
||||
"Duplicate": "Duplikat",
|
||||
"ScanMetaSuccess": "Pomyślnie przeskanowano metadane z: {filename}."
|
||||
},
|
||||
"FullscreenUpload": {
|
||||
"CannotUploadFile": "Błąd wgrywania pliku!",
|
||||
@@ -234,7 +249,9 @@
|
||||
"Tracking": "Śledzenie",
|
||||
"Transparency": "Transparentność",
|
||||
"Ultra": "Ultra",
|
||||
"VoxelMode": "Tryb wokseli (ASMBL)"
|
||||
"VoxelMode": "Tryb wokseli (ASMBL)",
|
||||
"ShowGCode": "Pokaż kod G",
|
||||
"CNCMode": "Tryb CNC"
|
||||
},
|
||||
"Heightmap": {
|
||||
"Abort": "Anuluj",
|
||||
@@ -248,11 +265,11 @@
|
||||
"Min": "Minimalna",
|
||||
"Name": "Nazwa",
|
||||
"Size": "Rozmiar",
|
||||
"Variance": "Różnica"
|
||||
"Range": "Rozpiętość"
|
||||
},
|
||||
"DeleteBedMeshProfile": "Usuń siatkę stołu",
|
||||
"DoYouReallyWantToDelete": "Czy na pewno chcesz usunąć profil \"{name}\"?",
|
||||
"ErrorKlipperNotReady": "Klipper nie jest gotowy. Mapa stołu wyłączona",
|
||||
"ErrorKlipperNotReady": "Klipper nie jest gotowy. Mapa stołu wyłączona.",
|
||||
"Flat": "Stół",
|
||||
"Heightmap": "Mapa stołu",
|
||||
"Later": "Później",
|
||||
@@ -271,9 +288,13 @@
|
||||
"ScaleGradient": "Skaluj gradient",
|
||||
"ScaleZMax": "Skaluj maks. poz. osi Z.",
|
||||
"TitleCalibrate": "Kalibracja nowej siatki",
|
||||
"TitleClear": "Wyczyść siatkę stołu.",
|
||||
"TitleClear": "Wyczyść siatkę stołu",
|
||||
"TitleHomeAll": "Pozycja zerowa wszystkich osi",
|
||||
"Wireframe": "Szkielet"
|
||||
"Wireframe": "Szkielet",
|
||||
"InvalidNameAlreadyExists": "Nazwa profilu już istnieje, wybierz inną nazwę profilu.",
|
||||
"InvalidNameAscii": "Nazwa jest nieprawidłowa. Dozwolone są tylko znaki ASCII.",
|
||||
"InvalidNameEmpty": "Pole wejściowe nie może być puste!",
|
||||
"InvalidNameReserved": "Profil \"default\" jest zarezerwowany, wybierz inną nazwę profilu."
|
||||
},
|
||||
"History": {
|
||||
"AddNote": "Dodaj notatkę",
|
||||
@@ -295,8 +316,8 @@
|
||||
"FilamentUsed": "Zużycie filamentu",
|
||||
"Filename": "Nazwa pliku",
|
||||
"Filesize": "Rozmiar pliku",
|
||||
"FirstLayerBedTemp": "Temperatura stołu na 1 warstwie",
|
||||
"FirstLayerExtTemp": "Temperatura ekstrudera na 1 warstwie",
|
||||
"FirstLayerBedTemp": "Temp. stołu 1 warstwy",
|
||||
"FirstLayerExtTemp": "Temp. dyszy 1 warstwy",
|
||||
"FirstLayerHeight": "Wysokość pierwszej warstwy",
|
||||
"HistoryFilamentUsage": "Łączne zużycie filamentu",
|
||||
"HistoryPrinttimeAVG": "Wydruki",
|
||||
@@ -329,7 +350,8 @@
|
||||
"in_progress": "W trakcie",
|
||||
"klippy_disconnect": "Klipper został rozłączony",
|
||||
"klippy_shutdown": "Zamykanie Klippera",
|
||||
"server_exit": "Wyjście z serwera"
|
||||
"server_exit": "Wyjście z serwera",
|
||||
"Others": "Pozostałe"
|
||||
},
|
||||
"TitleExportHistory": "Eksportuj historię",
|
||||
"TitleRefreshHistory": "Odśwież historię",
|
||||
@@ -338,7 +360,9 @@
|
||||
"TotalFilamentUsed": "Łączne zużycie filamentu",
|
||||
"TotalJobs": "Ilość wszystkich wydruków",
|
||||
"TotalPrinttime": "Łączny czas drukowania",
|
||||
"TotalTime": "Całkowity czas druku"
|
||||
"TotalTime": "Całkowity czas druku",
|
||||
"Chart": "Wykres",
|
||||
"Table": "Tabela"
|
||||
},
|
||||
"JobQueue": {
|
||||
"AllJobs": "Wszystkie wydruki",
|
||||
@@ -347,7 +371,12 @@
|
||||
"Jobs": "Wydruki",
|
||||
"Pause": "Pauza",
|
||||
"RemoveFromQueue": "Usuń z kolejki",
|
||||
"Start": "Start"
|
||||
"Start": "Start",
|
||||
"InvalidCountEmpty": "Pole wejściowe nie może być puste!",
|
||||
"ChangeCount": "Zmień ilość",
|
||||
"Cancel": "Anuluj",
|
||||
"Count": "Ilość",
|
||||
"InvalidCountGreaterZero": "Wprowadzona wartość musi być większa niż 0!"
|
||||
},
|
||||
"Machine": {
|
||||
"ConfigFilesPanel": {
|
||||
@@ -383,7 +412,10 @@
|
||||
"Total": "Łączne",
|
||||
"UploadFile": "Wgraj plik",
|
||||
"Uploading": "Wysyłanie",
|
||||
"Used": "Używane"
|
||||
"Used": "Używane",
|
||||
"ConfigRootDirectoryDoesntExists": "Nie znaleziono katalogu konfiguracyjnego. Sprawdź opcję \"config_path\" w sekcji [file_manager] konfiguracji Moonrakera.",
|
||||
"Duplicate": "Duplikat",
|
||||
"DuplicateFile": "Powielony plik"
|
||||
},
|
||||
"EndstopPanel": {
|
||||
"Endstop": "Krańcówka",
|
||||
@@ -393,7 +425,13 @@
|
||||
"TRIGGERED": "URUCHOMIONA"
|
||||
},
|
||||
"LogfilesPanel": {
|
||||
"Logfiles": "Pliki logów"
|
||||
"Logfiles": "Pliki logów",
|
||||
"Accept": "Akceptuj",
|
||||
"RolloverDescription": "Wybierz, które logi mają zostać zresetowane:",
|
||||
"Cancel": "Anuluj",
|
||||
"Rollover": "Zresetuj logi",
|
||||
"RolloverToastFailed": "Nie udało się zresetować logu dla \"{name}\": {message}",
|
||||
"RolloverToastSuccessful": "Log dla \"{name}\" został pomyślnie zresetowany."
|
||||
},
|
||||
"SystemPanel": {
|
||||
"Constants": "Stałe",
|
||||
@@ -403,7 +441,7 @@
|
||||
"Load": "Obciążenie",
|
||||
"Memory": "Pamięć",
|
||||
"NoMoreInfos": "Brak informacji",
|
||||
"SystemLoad": "Obciążenie Systemu ",
|
||||
"SystemLoad": "Obciążenie systemu",
|
||||
"Values": {
|
||||
"Awake": "Wzbudzony: {awake}",
|
||||
"Bandwidth": "Pasmo: {bandwidth}/s",
|
||||
@@ -421,7 +459,7 @@
|
||||
}
|
||||
},
|
||||
"UpdatePanel": {
|
||||
"CheckForUpdates": "Sprawdź , czy są dostępne aktualizacje",
|
||||
"CheckForUpdates": "Sprawdź dostępność aktualizacji",
|
||||
"Commits": "Wydane",
|
||||
"CommitsAvailable": "Brak nowych wydań | {count} dostępnych wydań| {count} dostępnych wydań",
|
||||
"CommitsOnDate": "Wydano {date}",
|
||||
@@ -450,7 +488,7 @@
|
||||
"EstimatedExtrusion": "Przewidywana ekstruzja:",
|
||||
"Extrude": "Wysuń",
|
||||
"ExtruderTempTooLow": "Temp. hotendu <",
|
||||
"ExtrusionFactor": "Parametr hotendu",
|
||||
"ExtrusionFactor": "Współczynnik ekstruzji",
|
||||
"ExtrusionFeedrate": "Prędkość wysuwania",
|
||||
"FilamentLength": "Długość filamentu",
|
||||
"FirmwareRetractionSettings": {
|
||||
@@ -462,7 +500,7 @@
|
||||
"Headline": "Hotend",
|
||||
"LoadFilament": "Załadowywanie filamentu",
|
||||
"PressureAdvanceSettings": {
|
||||
"Advance": "Wzrost nacisku",
|
||||
"Advance": "Pressure Advance",
|
||||
"Extruder": "Ekstruder",
|
||||
"SmoothTime": "Czas wygładzania"
|
||||
},
|
||||
@@ -478,15 +516,19 @@
|
||||
},
|
||||
"KlippyStatePanel": {
|
||||
"FirmwareRestart": "Ponowne uruchomienie oprogramowania",
|
||||
"KlipperCheck": "Sprawdź , czy Klipper jest uruchomiony oraz czy UDS (Unix Domain Socket) został skonfigurowany poprawnie.",
|
||||
"MoonrakerCannotConnect": "Moonraker nie może połączyć się z Klipperem!",
|
||||
"Restart": "Ponowne uruchomienie"
|
||||
"Restart": "Ponowne uruchomienie",
|
||||
"CheckKlippyAndUdsAddress": "Sprawdź, czy usługa Klipper jest uruchomiona i czy \"klippy_uds_address\" jest poprawnie skonfigurowany w pliku moonraker.conf.",
|
||||
"PrinterSwitchedOffDescription": "Drukarka jest obecnie wyłączona i Klipper nie może się z nią połączyć. Aby włączyć drukarkę, kliknij poniższy przycisk:",
|
||||
"PrinterSwitchedOff": "Drukarka jest wyłączona",
|
||||
"PowerOn": "Włączone",
|
||||
"ServiceReports": "Raporty {service}"
|
||||
},
|
||||
"MachineSettingsPanel": {
|
||||
"Headline": "Ustawienia drukarki",
|
||||
"MotionSettings": {
|
||||
"Acceleration": "Przyspieszenie",
|
||||
"MaxAccelToDecel": "Maks. przysp. do startu zmniejszania prędkości.",
|
||||
"MaxAccelToDecel": "Maks. przysp. do hamowania",
|
||||
"SquareCornerVelocity": "Prędkość na rogu kwadratu",
|
||||
"Velocity": "Prędkość"
|
||||
}
|
||||
@@ -499,11 +541,11 @@
|
||||
"Headline": "Konsola",
|
||||
"HideTemperatures": "Ukryj temperatury",
|
||||
"HideTimelapse": "Ukryj timelapse",
|
||||
"SendCode": "Wpisz kod...",
|
||||
"SendCode": "Wyślij polecenie...",
|
||||
"SetupConsole": "Konfiguracja konsoli"
|
||||
},
|
||||
"MinSettingsPanel": {
|
||||
"IncludeMainsailCfg": "Upewnij się , że printer.cfg zawiera mainsail.cfg.",
|
||||
"IncludeMainsailCfg": "Upewnij się, że printer.cfg zawiera mainsail.cfg.",
|
||||
"IsNotDefinedInConfig": "nie jest określone w konfiguracji.",
|
||||
"MissingConfiguration": "Brakująca konfiguracja",
|
||||
"MoreInformation": "Więcej informacji"
|
||||
@@ -514,6 +556,12 @@
|
||||
"Detected": "wykryto",
|
||||
"Disabled": "wyłączone",
|
||||
"Empty": "Puste"
|
||||
},
|
||||
"Light": {
|
||||
"Blue": "niebieski",
|
||||
"Green": "zielony",
|
||||
"Red": "czerwony",
|
||||
"White": "biały"
|
||||
}
|
||||
},
|
||||
"PowerControlPanel": {
|
||||
@@ -528,8 +576,8 @@
|
||||
"Difference": "Różnica",
|
||||
"EmptyGcodes": "Brak dostępnego G-Code.",
|
||||
"EmptyJobqueue": "Aktualnie nie ma żadnego pliku w kolejce wydruków.",
|
||||
"Estimate": "Szacowana",
|
||||
"ETA": "ETA",
|
||||
"Estimate": "Pozostało",
|
||||
"ETA": "Koniec",
|
||||
"ExcludeObject": {
|
||||
"Cancel": "Anuluj",
|
||||
"Excluded": "Wyklucz",
|
||||
@@ -548,7 +596,7 @@
|
||||
"Max": "Maks.",
|
||||
"ObjectHeight": "Wysokość obiektu",
|
||||
"PausePrint": "Pauza wydruku",
|
||||
"Print": "Drukuj",
|
||||
"Print": "Druk",
|
||||
"PrintTime": "Czas wydruku",
|
||||
"ReprintJob": "Ponownie wydrukuj",
|
||||
"Requested": "Wymagane",
|
||||
@@ -557,11 +605,23 @@
|
||||
"Speed": "Prędkość",
|
||||
"Status": "Status",
|
||||
"Total": "Całkowicie",
|
||||
"Unknown": "Nieznany"
|
||||
"Unknown": "Nieznany",
|
||||
"PauseAtLayer": {
|
||||
"Abort": "przerwij",
|
||||
"DescriptionPauseAtLayerActive": "Funkcja jest już aktywna i spowoduje wywołanie \"{call}\" na warstwie \"{layer}\". Jeśli ponownie wywołasz to polecenie, te ustawienia zostaną nadpisane.",
|
||||
"Accept": "Akceptuj",
|
||||
"AtLayer": "na warstwie",
|
||||
"Call": "Wywołaj",
|
||||
"DescriptionPauseNextLayerActive": "Ta funkcja jest już aktywna i spowoduje wywołanie \"{call}\" na następnej warstwie.",
|
||||
"Layer": "Warstwa",
|
||||
"NextLayer": "Następna warstwa",
|
||||
"PauseAtLayer": "Pauza na warstwie",
|
||||
"Type": "Typ"
|
||||
}
|
||||
},
|
||||
"TemperaturePanel": {
|
||||
"AutoscaleChart": "Autoskaluj wykres",
|
||||
"Avg": "Śred.",
|
||||
"Avg": "Średnia",
|
||||
"Cooldown": "Chłodzenie",
|
||||
"Current": "Aktualna",
|
||||
"Dataset": {
|
||||
@@ -599,7 +659,7 @@
|
||||
},
|
||||
"WebcamPanel": {
|
||||
"All": "Wszystkie",
|
||||
"FPS": "Kl/S",
|
||||
"FPS": "kl./s",
|
||||
"Headline": "Kamera internetowa",
|
||||
"NoWebcam": "Brak dostępnej kamery. Dodaj kamerę w \"Ustawienia Interfejsu\" -> \"Kamera Internetowa\".",
|
||||
"UnknownWebcamService": "Nieznana usługa kamery"
|
||||
@@ -612,7 +672,7 @@
|
||||
"Save": "Zapisz",
|
||||
"SaveConfig": "ZAPISZ KONFIGURACJĘ",
|
||||
"SaveInfoDescription": "Nowe przesunięcie osi z zostało przeliczone i zarejestrowane. Kliknij na \"ZAPISZ KONFIGURACJĘ\" aby zapisać nowe przesunięcie w drukarka.cfg i uruchom ponownie Klippera.",
|
||||
"SaveInfoDescriptionPrint": "Nowe przesunięcie osi z zostało przeliczone i zarejestrowane. Po wydrukowaniu , kliknij na \"ZAPISZ KONFIGURACJĘ\" aby zapisać nowe przesunięcie w drukarka.cfg i uruchom ponownie Klippera.",
|
||||
"SaveInfoDescriptionPrint": "Nowe przesunięcie Z zostało obliczone i zarejestrowane. Po wydrukowaniu kliknij \"ZAPISZ KONFIGURACJĘ\" na górnym pasku, aby zapisać ją w pliku printer.cfg i zrestartować Klipper.",
|
||||
"SaveInfoHeadline": "Informacja",
|
||||
"ToEndstop": "Do krańcówki",
|
||||
"ToProbe": "Do sondy"
|
||||
@@ -650,24 +710,25 @@
|
||||
"HostnameRequired": "Hostname jest wymagany",
|
||||
"Port": "Port",
|
||||
"PortRequired": "Port jest wymagany",
|
||||
"RememberToAdd": "Pamiętaj , aby dodać {cors} w moonraker.conf wewnątrz 'cors_domains'.",
|
||||
"RememberToAdd": "Pamiętaj, aby dodać '{cors}' w sekcji 'cors_domains' pliku moonraker.conf.",
|
||||
"SelectPrinter": "Wybierz drukarkę",
|
||||
"TryAgain": "Spróbuj ponownie",
|
||||
"UpdatePrinter": "Zaktualizuj drukarkę",
|
||||
"YouCanFindMore": "Możesz znaleźć więcej szczegółów w"
|
||||
"YouCanFindMore": "Możesz znaleźć więcej szczegółów w",
|
||||
"AddPrintersToJson": "Proszę dodać drukarki do pliku config.json."
|
||||
},
|
||||
"Settings": {
|
||||
"Cancel": "Anuluj",
|
||||
"Close": "Zamknij",
|
||||
"ConsoleTab": {
|
||||
"AddFilter": "Dodaj filtr",
|
||||
"Console": "Personalizacja",
|
||||
"Console": "Konsola",
|
||||
"CreateHeadline": "Stwórz filtr",
|
||||
"Direction": "Kierunek",
|
||||
"DirectionShell": "Ostatni wpis na dole",
|
||||
"DirectionTable": "Ostatni wpis u góry",
|
||||
"EditHeadline": "Edytuj filtr",
|
||||
"EntryStyle": "Styl Zapisu",
|
||||
"EntryStyle": "Styl zapisu",
|
||||
"EntryStyleCompact": "Kompaktowy",
|
||||
"EntryStyleDefault": "Domyślny",
|
||||
"Filters": "Filtry",
|
||||
@@ -687,7 +748,7 @@
|
||||
"EnableXYHoming": "Włącz łączną pozycję zerową dla osi X i Y",
|
||||
"EstimatedExtrusionInfo": "Pokazuj przewidywaną długość wytłaczania filamentu",
|
||||
"EstimatedExtrusionInfoDescription": "Pokazuj / Ukryj info dla wytłaczania bazującą na ilości i feedrate",
|
||||
"InvertXMovement": "Odwróć ruch osi X ",
|
||||
"InvertXMovement": "Odwróć ruch osi X",
|
||||
"InvertYMovement": "Odwróć ruch osi Y",
|
||||
"InvertZMovement": "Odwróć ruch osi Z",
|
||||
"IsDefault": " (default)",
|
||||
@@ -706,7 +767,7 @@
|
||||
"Style": "Styl",
|
||||
"ValueGreaterThan": "Wartość musi być większa niż {value}",
|
||||
"ZOffsetIncrements": "Wzrost offsetu osi Z (w mm)",
|
||||
"ZTiltAdjust": "Z-Tilt Adjust{isDefault}"
|
||||
"ZTiltAdjust": "Dostosuj Z-Tilt {isDefault}"
|
||||
},
|
||||
"DashboardTab": {
|
||||
"Dashboard": "Sterowanie",
|
||||
@@ -719,32 +780,35 @@
|
||||
"Edit": "Edytuj",
|
||||
"EditorTab": {
|
||||
"ConfirmUnsavedChanges": "Potwierdź aby zapisać lub anulować niezapisane zmiany",
|
||||
"ConfirmUnsavedChangesDescription": "Jeżeli włączone , edytor wymaga potwierdzenia zapisania zmian lub anulowania. Jeżeli wyłączone , edytor nie wymaga potwierdzenia.",
|
||||
"ConfirmUnsavedChangesDescription": "Jeżeli włączone, edytor wymaga potwierdzenia zapisania zmian lub anulowania. Jeżeli wyłączone, edytor nie wymaga potwierdzenia.",
|
||||
"Editor": "Edytor",
|
||||
"KlipperRestartMethod": "Metoda restartu Klippera",
|
||||
"KlipperRestartMethodDescription": "Wybierz która metoda ponownego uruchomienia ma być używana podczas 'Zapisz i Uruchom ponownie' podczas edytowania plików konfiguracyjnych Klippera.",
|
||||
"MoonrakerRestartInstance": "Ponowne uruchomienie instancji Moonrakera",
|
||||
"MoonrakerRestartInstanceDescription": "Wybierz która metoda ponownego uruchomienia ma być używana podczas 'Zapisz i Uruchom ponownie' podczas edytowania plików konfiguracyjnych Moonrakera.",
|
||||
"UseEscToClose": "Naciśnij ESC aby wyjść z Edytora",
|
||||
"UseEscToCloseDescription": "Pozwala aby móc zamknąć edytor za pomocą ESC"
|
||||
"UseEscToCloseDescription": "Pozwala aby móc zamknąć edytor za pomocą ESC",
|
||||
"TabSize": "Rozmiar tabulacji",
|
||||
"TabSizeDescription": "Ustawia, ile spacji powinno być używanych do wcięcia przy użyciu tabulacji (TAB)",
|
||||
"Spaces": "Spacje: {count}"
|
||||
},
|
||||
"GCodeViewerTab": {
|
||||
"BackgroundColor": "Kolory tła",
|
||||
"ExtruderColor": "Kolory Ekstrudera",
|
||||
"BackgroundColor": "Kolor tła",
|
||||
"ExtruderColor": "Kolor ekstrudera",
|
||||
"GCodeViewer": "3D G-Code",
|
||||
"GridColor": "Kolory siatki",
|
||||
"GridColor": "Kolor siatki",
|
||||
"MaxFeed": "Maksymalna prędkość feedrate",
|
||||
"MinFeed": "Minimalna prędkość feedrate",
|
||||
"ProgressColor": "Kolor Postępu",
|
||||
"ProgressColor": "Kolor postępu",
|
||||
"ShowAxes": "Pokazuj osie"
|
||||
},
|
||||
"GeneralTab": {
|
||||
"Backup": "Kopia zapasowa",
|
||||
"BackupDialog": "Proszę wybrać wszystkie sekcje z których ma zostać utworzona kopia zapasowa:",
|
||||
"CalcEstimateTime": "Szacowany czas ukończenia",
|
||||
"CalcEstimateTimeDescription": "Jeżeli wiele jest zaznaczonych , średnia zostanie wyliczona.",
|
||||
"CalcEtaTime": "Kalkulacja ETA",
|
||||
"CalcEtaTimeDescription": "Jeżeli wiele jest zaznaczonych , średnia zostanie wyliczona.",
|
||||
"CalcEstimateTimeDescription": "Jeśli zaznaczono wiele, zostanie obliczona średnia",
|
||||
"CalcEtaTime": "Obliczanie godziny ukończenia",
|
||||
"CalcEtaTimeDescription": "Po wybraniu kilku opcji zostanie obliczona średnia.",
|
||||
"CannotReadJson": "Brak możliwości przeczytania/przeanalizowania pliku kopii zapasowej.",
|
||||
"DbConsoleHistory": "Historia Konsoli",
|
||||
"DbHistoryJobs": "Historia wydruków",
|
||||
@@ -761,11 +825,23 @@
|
||||
"FactoryReset": "Ustawienia fabryczne",
|
||||
"General": "Ogólny",
|
||||
"Language": "Język",
|
||||
"MoonrakerDb": "Moonraker DB",
|
||||
"MoonrakerDb": "Baza danych Moonraker",
|
||||
"PrinterName": "Nazwa drukarki",
|
||||
"Reset": "reset",
|
||||
"Restore": "Przywróć",
|
||||
"RestoreDialog": "Proszę wybrać wszystkie sekcje do przywrócenia:"
|
||||
"RestoreDialog": "Proszę wybrać wszystkie sekcje do przywrócenia:",
|
||||
"TimeFormat": "Format czasu",
|
||||
"12hours": "12-godzinny ({time})",
|
||||
"24hours": "24-godzinny ({time})",
|
||||
"CalcPrintProgress": "Obliczanie postępu drukowania",
|
||||
"CalcPrintProgressDescription": "Metoda obliczania postępu drukowania.",
|
||||
"CalcPrintProgressItems": {
|
||||
"Filament": "Filament",
|
||||
"FileAbsolute": "Pozycja pliku (absolutna)",
|
||||
"FileRelative": "Pozycja pliku (względna)",
|
||||
"Slicer": "Slicer (M73)"
|
||||
},
|
||||
"DateFormat": "Format daty"
|
||||
},
|
||||
"InterfaceSettings": "Ustawienia interfejsu",
|
||||
"MacrosTab": {
|
||||
@@ -776,8 +852,8 @@
|
||||
"Color": "Kolor",
|
||||
"CountMacros": "Brak nowych makr| {count} x Makr | {count} x Makr",
|
||||
"Custom": "Personalizacja",
|
||||
"CustomColor": "Własny Kolor",
|
||||
"DeletedMacro": "Usunięto makro.",
|
||||
"CustomColor": "Kolor niestandardowy",
|
||||
"DeletedMacro": "Usunięto makro",
|
||||
"DeleteMacroFromGroup": "Usuń makro z grupy.",
|
||||
"EditGroup": "Edytuj grupę",
|
||||
"Error": "Błąd",
|
||||
@@ -801,7 +877,7 @@
|
||||
"Simple": "Proste",
|
||||
"Status": "Status",
|
||||
"Success": "Sukces",
|
||||
"UnknownGroup": "Nieznana grupa.",
|
||||
"UnknownGroup": "Nieznana grupa",
|
||||
"Warning": "Ostrzeżenie"
|
||||
},
|
||||
"PresetsTab": {
|
||||
@@ -815,8 +891,8 @@
|
||||
"ErrorNameNotUnique": "Nazwa już istnieje",
|
||||
"ErrorNameRequired": "Nazwa jest wymagana",
|
||||
"Name": "Nazwa",
|
||||
"PreheatPresets": "Szybkie ustaw.",
|
||||
"PresetInfo": "Musisz co najmniej podać temperaturę , albo dodać G-Code.",
|
||||
"PreheatPresets": "Nastawy",
|
||||
"PresetInfo": "Należy ustawić przynajmniej temperaturę docelową lub niestandardowy kod G.",
|
||||
"PresetNamePlaceholder": "Nazwa nastawy (wymagane)",
|
||||
"StoreButton": "Zapisz",
|
||||
"UpdateButton": "Zaktualizuj",
|
||||
@@ -828,40 +904,41 @@
|
||||
"Hostname": "Nazwa hosta",
|
||||
"Port": "Port",
|
||||
"RemotePrinters": "Drukarki",
|
||||
"UpdatePrinter": "Aktualizuj drukarkę"
|
||||
"UpdatePrinter": "Aktualizuj drukarkę",
|
||||
"UseConfigJson": "Wykryto bazę danych JSON. Aby zmodyfikować listę drukarek, proszę skorzystać z pliku config.json."
|
||||
},
|
||||
"TimelapseTab": {
|
||||
"Autorender": "Autorenderowanie",
|
||||
"AutorenderDescription": "Jeżeli włączone, timelaps będzie automatycznie renderowany na końcu druku.",
|
||||
"AutorenderDescription": "Jeśli opcja ta jest włączona, timelapse będzie automatycznie renderowany na końcu druku.",
|
||||
"Camera": "Kamera",
|
||||
"CameraDescription": "Wybierz , jaka kamera powinna być używana",
|
||||
"CameraDescription": "Wybierz kamerę, która ma być używana",
|
||||
"ConstantRateFactor": "Stała kompensacja rozmiaru",
|
||||
"ConstantRateFactorDescription": "To ustawienie konfiguruje jakość vs rozmiar wyrenderowanego filmu. Skala CRF jest od 0-51 , gdzie 0 jest bez utraty jakości , 23 jest domyślne , a 51 jest najgorsze jakościowo. Generalnie im mniejsza liczba tym mniej utraty jakości. 17 - 18 jest praktycznie bez żadnych utrat.",
|
||||
"ConstantRateFactorDescription": "Konfiguruje jakość w stosunku do rozmiaru pliku renderowanego wideo. Zakres skali CRF wynosi 0-51, gdzie 0 oznacza bezstratną jakość, 23 to wartość domyślna, a 51 to najgorsza możliwa jakość. Niższa wartość generalnie prowadzi do wyższej jakości, a subiektywnie rozsądny zakres to 17-28. Wartość 17 lub 18 należy uznać za wizualnie bezstratną.",
|
||||
"duplicatelastframe": "Duplikuj ostatnią klatkę na koniec filmu",
|
||||
"duplicatelastframeDescription": "",
|
||||
"duplicatelastframeDescription": "Powiela ostatnią klatkę na końcu filmu",
|
||||
"Enabled": "Włączone",
|
||||
"EnabledDescription": "Jeżeli wyłączone, makra G-Code są ignorowane i autorenderowanie jest pomijane",
|
||||
"EnabledDescription": "Jeżeli wyłączone, makra G-Code są ignorowane i automatyczne generowanie wideo jest pomijane.",
|
||||
"Extraoutputparams": "Dodatkowe parametry wyjściowe",
|
||||
"ExtraoutputparamsDescription": "Definiuje dodatkowe parametry do FFMPEG. UWAGA: Dodawanie czegokolwiek w tym miejscu wyłącza możliwość rotacji obrazu.",
|
||||
"FwRetract": "Retrakcja FW",
|
||||
"FwRetractDescription": "Używaj retrakcji firmware'owej w makro timelapse.",
|
||||
"GcodeVerbose": "Wgrywanie informacji z G-Code do konsoli",
|
||||
"GcodeVerboseDescription": "Jeżeli włączone , makra G-Code będzie wysyłał informacje do konsoli.",
|
||||
"GcodeVerboseDescription": "Jeżeli włączone, makra G-Code będą wypisywały informacje w konsoli.",
|
||||
"General": "Ogólne",
|
||||
"HyperlapseCycle": "Czas cyklu Hyperlapse",
|
||||
"HyperlapseCycleDescription": "Klatka zostanie uchwycona co każde X sekund",
|
||||
"Mode": "Tryb",
|
||||
"ModeDescription": "Wybierz pomiędzy makro warstwy a Hiperlapsem.",
|
||||
"OutputFramerate": "Stała liczba Kl/S",
|
||||
"OutputFramerateDescription": "Definiuje kl/s w timelapse. UWAGA: jeżeli opcja zmiennych kl/s jest włączona , to ustawienie zostanie pominięte",
|
||||
"ModeDescription": "Wybierz pomiędzy makrami warstw a trybem Hyperlapse (opartym na czasie).",
|
||||
"OutputFramerate": "Wyjściowa liczba kl./s",
|
||||
"OutputFramerateDescription": "Określa liczbę klatek na sekundę wideo. Uwaga: ta opcja zostanie zignorowana, jeśli włączona jest opcja variable_fps.",
|
||||
"Parkhead": "Parkuj głowicę",
|
||||
"ParkheadDescription": "Jeżeli włączone , głowica będzie parkowana przed uchwyceniem klatki.",
|
||||
"ParkheadDescription": "Jeżeli włączone, głowica będzie parkowana przed uchwyceniem klatki.",
|
||||
"Parkpos": "Pozycja parkowania",
|
||||
"ParkposDescription": "Wybierz pozycję , gdzie głowica ma być parkowana",
|
||||
"ParkposDescription": "Wybierz pozycję parkowania",
|
||||
"ParkTime": "Czas podczas parkowania",
|
||||
"ParkTimeDescription": "Dodaj dodatkowy czas bezczynny podczas parkowania.",
|
||||
"Pixelformat": "Jakość",
|
||||
"PixelformatDescription": "Definiuje ile pikseli jest w obrazie.",
|
||||
"PixelformatDescription": "Określa format pikseli dla wyjściowego wideo.",
|
||||
"PosDZ": "Pozycja Z",
|
||||
"PosDZDescription": "Parkowanie na osi Z (względne wartości)",
|
||||
"PosX": "Pozycja X",
|
||||
@@ -875,37 +952,37 @@
|
||||
"RetractDistanceDescription": "Długość filamentu którą ekstruder będzie wytłaczać.",
|
||||
"RetractSpeed": "Prędkość wycofywania",
|
||||
"RetractSpeedDescription": "Prędkość którą ekstruder będzie wytłaczał filament.",
|
||||
"SaveFrames": "Zapisz ramki.",
|
||||
"SaveFramesDescription": "Zapisz klatki do pliku ZIP dla zewnętrznego renderowania.",
|
||||
"SaveFrames": "Zapisz klatki",
|
||||
"SaveFramesDescription": "Zapisz klatki do pliku zip w celu zewnętrznego renderowania.",
|
||||
"StreamDelayCompensation": "Kompensacja utraty jakości",
|
||||
"StreamDelayCompensationDescription": "Ulepszenie jakości timelapse",
|
||||
"Targetlength": "Docelowa długość",
|
||||
"TargetlengthDescription": "Docelowa długość timelapse , podczas włączenia opcji Zmienne Kl/S",
|
||||
"TargetlengthDescription": "Docelowa długość, gdy włączona jest opcja Zmienna liczba klatek na sekundę",
|
||||
"TimeFormatCode": "Format Czasu",
|
||||
"TimeFormatCodeDescription": "Ustawienie definiuje jaki format czasu powinien być zakodowany w pliku wyjściowym",
|
||||
"Timelapse": "Timelapse",
|
||||
"TravelSpeed": "Prędkość podróży",
|
||||
"TravelSpeedDescription": "Prędkość podróży podczas parkowania i wznawiania.",
|
||||
"UnretractDistance": "Długość wycofywania",
|
||||
"UnretractDistanceDescription": "Długość filamentu wycofywanego , którą będzie używał ekstruder po wytłoczeniu filamentu.",
|
||||
"UnretractDistanceDescription": "Długość filamentu, którą ekstruder wycofuje po retrakcji.",
|
||||
"UnretractSpeed": "Prędkość wycofywania",
|
||||
"UnretractSpeedDescription": "Prędkość jaką ekstruder będzie wycofywał filament.",
|
||||
"VariableFps": "Zmienne Kl/S",
|
||||
"VariableFpsDescription": "Jeżeli włączone , Kl/S będą obliczane na podstawie docelowej długości timelapse.",
|
||||
"VariableFpsMax": "Maks Kl/S",
|
||||
"VariableFpsMaxDescription": "Ustawienie odpowiadające za maksymalną liczbę Kl/S w timelapse",
|
||||
"VariableFpsMin": "Min. Zmienne Kl/S",
|
||||
"VariableFpsMinDescription": "Ustawienie odpowiadające za minimalną liczbę Kl/S w timelapse"
|
||||
"VariableFps": "Zmienne kl./s",
|
||||
"VariableFpsDescription": "Jeśli włączone, częstotliwość klatek wyjściowego wideo będzie obliczana na podstawie docelowej długości.",
|
||||
"VariableFpsMax": "Maks. zmiennych kl./s",
|
||||
"VariableFpsMaxDescription": "Maksymalnie dozwolona zmienna liczba klatek na sekundę.",
|
||||
"VariableFpsMin": "Min. zmiennych kl./s",
|
||||
"VariableFpsMinDescription": "Minimalnie dozwolona zmienna liczba klatek na sekundę."
|
||||
},
|
||||
"UiSettingsTab": {
|
||||
"BoolBigThumbnail": "Duża miniaturka",
|
||||
"BoolBigThumbnailDescription": "Pokazuj dużą miniaturkę podczas wydruku.",
|
||||
"BoolHideUploadAndPrintButton": "Pokazuj przycisk Wyślij i Drukuj",
|
||||
"BoolHideUploadAndPrintButtonDescription": "Pokazuj lub ukryj przycisk \"Wyślij i Drukuj\" na górnym pasku.",
|
||||
"BoolHideUploadAndPrintButton": "Ukryj przycisk \"Wgraj i drukuj\"",
|
||||
"BoolHideUploadAndPrintButtonDescription": "Pokazuj lub ukrywaj przycisk \"Prześlij i drukuj\" na górnym pasku.",
|
||||
"ConfirmOnEmergencyStop": "Potwierdzenie Nagłego Zatrzymania",
|
||||
"ConfirmOnEmergencyStopDescription": "Pokazuj dialog potwierdzenia po naciśnięciu Nagłego Zatrzymania",
|
||||
"ConfirmOnPowerDeviceChange": "Potwierdzenie dla zmiany zasilania urządzenia",
|
||||
"ConfirmOnPowerDeviceChangeDescription": "Pokazuj dialog potwierdzenia po naciśnięciu zmiany zasilania.",
|
||||
"ConfirmOnPowerDeviceChangeDescription": "Wyświetlaj okno dialogowe potwierdzenia przy zmianach zasilania urządzenia.",
|
||||
"DisplayCANCEL_PRINT": "Pokazuj przycisk ANULUJ_WYDRUK",
|
||||
"DisplayCANCEL_PRINTDescription": "Pokazuje przycisk ANULUJ_WYDRUK permamentnie - brak potrzeby drugiej warstwy.",
|
||||
"GcodeThumbnails": "Pokazuj miniaturki",
|
||||
@@ -913,7 +990,7 @@
|
||||
"Guide": "Przewodnik",
|
||||
"LockSliders": "Zablokuj suwaki na ekranie dotykowym",
|
||||
"LockSlidersDelay": "Opóźnienie blokady suwaków",
|
||||
"LockSlidersDelayDescription": "Suwaki zablokują się po zadanym czasie blokady (dotykowe ekrany). Jeżeli ustawione na 0 lub puste , suwaki zablokują się jedynie po zmianie strony lub przeładowaniu.",
|
||||
"LockSlidersDelayDescription": "Suwaki zostaną zablokowane po określonym opóźnieniu. Jeśli ustawione na 0 lub pozostawione puste, suwaki będą blokowane tylko podczas zmiany/odświeżenia strony.",
|
||||
"LockSlidersDescription": "Suwaki na ekranie dotykowym muszą zostać odblokowane przed wprowadzeniem zmian.",
|
||||
"Logo": "Logo",
|
||||
"NavigationStyle": "Styl paska nawigacyjnego",
|
||||
@@ -921,8 +998,21 @@
|
||||
"NavigationStyleIconsAndText": "Ikony + Tekst",
|
||||
"NavigationStyleIconsOnly": "Tylko ikony",
|
||||
"Primary": "Podstawowe",
|
||||
"ShowWebcamInNavigation": "Pokazuj kamerki internetowe",
|
||||
"UiSettings": "Ustawienia interfejsu"
|
||||
"UiSettings": "Ustawienia interfejsu",
|
||||
"DisableFanAnimation": "Wyłącz animację wentylatora",
|
||||
"DisableFanAnimationDescription": "To może zmniejszyć obciążenie przeglądarki.",
|
||||
"HideSaveConfigButtonForBedMeshDescription": "Ukryj przycisk \"Zapisz konfigurację\", jeśli oczekują jedynie zmiany w siatce stołu do zapisania w Klipperze.",
|
||||
"ScrewsTiltAdjustDialogDescription": "Wyświetl pomocnicze okno dialogowe do obliczania nachylenia śrubami (SCREWS_TILT_CALCULATE).",
|
||||
"BedScrewsDialog": "Okno śrub stołu",
|
||||
"BedScrewsDialogDescription": "Wyświetl pomocnicze okno dialogowe dla BED_SCREWS_ADJUST.",
|
||||
"HideSaveConfigButtonForBedMesh": "Ukryj przycisk \"Zapisz konfigurację\" dla zmian w siatce stołu",
|
||||
"ManualProbeDialog": "Okno dialogowe pomocnika ręcznego sondowania",
|
||||
"ManualProbeDialogDescription": "Wyświetl pomocnicze okno dialogowe dla sondowania ręcznego (PROBE_CALIBRATE) lub kalibracji krańcówki Z (Z_ENDSTOP_CALIBRATE).",
|
||||
"PowerDeviceNameDescription": "Wybierz, które urządzenie zasilające Moonraker powinno być używane do włączania drukarki.",
|
||||
"ScrewsTiltAdjustDialog": "Okno dialogowe regulacji nachylenia śrubami",
|
||||
"TempchartHeight": "Wykres temperatury - wysokość",
|
||||
"TempchartHeightDescription": "Modyfikuj wysokość wykresu temperatury w panelu sterowania.",
|
||||
"PowerDeviceName": "Urządzenie zasilające drukarkę"
|
||||
},
|
||||
"WebcamsTab": {
|
||||
"AddWebcam": "Dodaj kamerę",
|
||||
@@ -946,14 +1036,48 @@
|
||||
"Required": "Wymagane",
|
||||
"SaveWebcam": "Zapisz kamerę",
|
||||
"Service": "Usługi",
|
||||
"TargetFPS": "Docelowo Kl/S",
|
||||
"TargetFPS": "Docelowe kl./s",
|
||||
"UpdateWebcam": "Zaktualizuj kamerę",
|
||||
"UrlSnapshot": "Migawka URL",
|
||||
"UrlStream": "Transmisja po URL",
|
||||
"Uv4lMjpeg": "UV4L-MJPEG",
|
||||
"Vertically": "pionowo",
|
||||
"Webcams": "Kamery"
|
||||
}
|
||||
"Webcams": "Kamery",
|
||||
"WebrtcJanus": "WebRTC (brama janus)",
|
||||
"EditCrowsnestConf": "Edytuj crowsnest.conf",
|
||||
"Hlsstream": "Strumień HLS",
|
||||
"JMuxerStream": "Nieskompresowany strumień h264 (jmuxer)",
|
||||
"Rotate": "Obróć",
|
||||
"WebrtcCameraStreamer": "WebRTC (camera-streamer)"
|
||||
},
|
||||
"MiscellaneousTab": {
|
||||
"AddGroup": "dodaj grupę",
|
||||
"EndDescription": "Ostatnia dioda LED tej grupy.",
|
||||
"NoPresetFound": "Nie znaleziono nastawy",
|
||||
"AddPreset": "Dodaj nastawę",
|
||||
"Color": "Kolor",
|
||||
"CreateGroup": "Utwórz grupę",
|
||||
"CreatePreset": "Utwórz nastawę",
|
||||
"End": "Koniec",
|
||||
"Groups": "Grupy",
|
||||
"GroupSubTitle": "Początek: {start}, Koniec: {end}",
|
||||
"LightGroups": "{name} - Grupy świateł",
|
||||
"LightPresets": "{name} - Nastawy",
|
||||
"Miscellaneous": "Różne",
|
||||
"Name": "Nazwa",
|
||||
"NoDevicesFound": "Nie znaleziono urządzeń",
|
||||
"NoGroupFound": "Nie znaleziono grupy",
|
||||
"Presets": "Nastawy",
|
||||
"Start": "Początek",
|
||||
"StartDescription": "Pierwsza dioda LED tej grupy.",
|
||||
"UnableToLoadLight": "Nie można wczytać światła",
|
||||
"UnableToLoadPreset": "Nie można wczytać nastawy"
|
||||
},
|
||||
"Update": "aktualizuj",
|
||||
"NavigationTab": {
|
||||
"Navigation": "Nawigacja"
|
||||
},
|
||||
"Store": "zachowaj"
|
||||
},
|
||||
"Timelapse": {
|
||||
"AllFiles": "Wszystkie",
|
||||
@@ -994,7 +1118,7 @@
|
||||
"Search": "Wyszukaj",
|
||||
"StartRender": "Zacznij renderowanie",
|
||||
"Status": "Status",
|
||||
"TargetFps": "Docelowo klatek na sek.",
|
||||
"TargetFps": "Docelowe kl./s",
|
||||
"Targetlength": "Docelowa długość",
|
||||
"TimelapseFiles": "Pliki timelapse",
|
||||
"TimelapseRendering": "Renderowanie timelapse",
|
||||
@@ -1003,7 +1127,31 @@
|
||||
"Type": "Typ",
|
||||
"Used": "Używane",
|
||||
"Variable": "Zmienne",
|
||||
"Video": "Filmy"
|
||||
"Video": "Filmy",
|
||||
"DeleteSelectedQuestion": "Czy na pewno chcesz usunąć {count} wybranych plików?"
|
||||
},
|
||||
"title": "Polski"
|
||||
"title": "Polski",
|
||||
"BedScrews": {
|
||||
"Abort": "przerwij",
|
||||
"Accept": "Akceptuj",
|
||||
"Description": "Kliknij <b>WYREGULOWANO</b>, jeśli bieżąca śruba została wyregulowana. Kliknij <b>AKCEPTUJ</b>, aby kontynuować bez regulacji.",
|
||||
"Adjusted": "wyregulowano",
|
||||
"Headline": "Śruby łóżka",
|
||||
"ScrewAccepted": "Śruby zaakceptowane",
|
||||
"ScrewIndex": "Indeks śrub",
|
||||
"ScrewName": "Nazwa śruby",
|
||||
"ScrewOutput": "{current} z {max}"
|
||||
},
|
||||
"ManualProbe": {
|
||||
"Accept": "Akceptuj",
|
||||
"Abort": "przerwij",
|
||||
"Advanced": "Zaawansowane",
|
||||
"Headline": "Ręczne sondowanie"
|
||||
},
|
||||
"ScrewsTiltAdjust": {
|
||||
"ErrorText": "Wystąpił problem podczas procesu sondowania.",
|
||||
"Accept": "Akceptuj",
|
||||
"Base": "Podstawa",
|
||||
"Headline": "Regulacja nachylenia śrubami"
|
||||
}
|
||||
}
|
||||
+1157
File diff suppressed because it is too large.
Load diff
+806
-658
File diff suppressed because it is too large.
Load diff
+123
-54
@@ -1,7 +1,7 @@
|
||||
{
|
||||
"App": {
|
||||
"Notifications": {
|
||||
"DependencyDescription": "当前版本的{name}并不支持Mainsail的全部特性。{name}需要至少更新到{neededVersion}版本。",
|
||||
"DependencyDescription": "当前版本的{name}并不支持Mainsail的全部功能。{name}需要至少更新到{neededVersion}版本。",
|
||||
"DependencyName": "依赖:{name}",
|
||||
"DismissAll": "全部忽略",
|
||||
"KlipperWarnings": {
|
||||
@@ -52,6 +52,7 @@
|
||||
"Complete": "已完成 - {filename}",
|
||||
"Error": "错误",
|
||||
"Pause": "暂停打印",
|
||||
"PrinterOff": "关闭打印机",
|
||||
"Printing": "已打印 {percent}% - {filename}",
|
||||
"PrintingETA": "已打印 {percent}% - 预估: {eta} - {filename}"
|
||||
},
|
||||
@@ -69,9 +70,9 @@
|
||||
"Description": {
|
||||
"HostReboot": "重启上位机会导致当前打印失败!",
|
||||
"HostShutdown": "关闭上位机会导致当前打印失败!",
|
||||
"KlipperFirmwareRestart": "重置Klipper主控会导致当前打印失败!",
|
||||
"KlipperRestart": "重启klipper会导致当前打印失败!",
|
||||
"KlipperStop": "停止klipper会导致当前打印失败!",
|
||||
"KlipperFirmwareRestart": "重启Klipper固件会导致当前打印失败!",
|
||||
"KlipperRestart": "重启Klipper会导致当前打印失败!",
|
||||
"KlipperStop": "停止Klipper会导致当前打印失败!",
|
||||
"ServiceRestart": "重启此服务可能会导致当前打印失败!",
|
||||
"ServiceStart": "启动此服务可能会导致当前打印失败!",
|
||||
"ServiceStop": "停止此服务可能会导致当前打印失败!"
|
||||
@@ -79,7 +80,7 @@
|
||||
"Title": {
|
||||
"HostReboot": "重启上位机",
|
||||
"HostShutdown": "关闭上位机",
|
||||
"KlipperFirmwareRestart": "重启Klipper并重置主控",
|
||||
"KlipperFirmwareRestart": "重启Klipper固件",
|
||||
"KlipperRestart": "重启Klipper",
|
||||
"ServiceRestart": "重启服务",
|
||||
"ServiceStart": "启动服务",
|
||||
@@ -88,7 +89,7 @@
|
||||
},
|
||||
"HostControl": "上位机控制",
|
||||
"KlipperControl": "Klipper控制",
|
||||
"KlipperFirmwareRestart": "重启Klipper并重置主控",
|
||||
"KlipperFirmwareRestart": "重启Klipper固件",
|
||||
"KlipperRestart": "重启Klipper",
|
||||
"PowerDevices": "电源设备",
|
||||
"Reboot": "重启",
|
||||
@@ -112,8 +113,8 @@
|
||||
"Accept": "接受",
|
||||
"Adjusted": "已调整",
|
||||
"Description": "如果当前螺丝已调整,请点击<b>已调整</b>。未调整下继续请点击<b>认可</b>。",
|
||||
"Headline": "热床螺丝",
|
||||
"ScrewAccepted": "已认可的螺丝",
|
||||
"Headline": "热床调平螺丝",
|
||||
"ScrewAccepted": "已认可的调平螺丝",
|
||||
"ScrewIndex": "螺丝索引",
|
||||
"ScrewName": "螺丝名称",
|
||||
"ScrewOutput": "当前{current}/总共{max}"
|
||||
@@ -128,10 +129,10 @@
|
||||
},
|
||||
"Console": {
|
||||
"CommandList": "命令列表",
|
||||
"Empty": "空",
|
||||
"Empty": "没有内容",
|
||||
"HideTemperatures": "隐藏温度变化消息",
|
||||
"HideTimelapse": "隐藏延时摄影消息",
|
||||
"SendCode": "发送代码...",
|
||||
"SendCode": "输入需要执行的命令...",
|
||||
"SetupConsole": "设置控制台"
|
||||
},
|
||||
"Dialogs": {
|
||||
@@ -164,11 +165,13 @@
|
||||
"Yes": "确定"
|
||||
},
|
||||
"Files": {
|
||||
"AddBatchToQueue": "批量添加到队列",
|
||||
"AddToQueue": "添加到队列",
|
||||
"AllFiles": "所有文件",
|
||||
"BedTemp": "热床温度",
|
||||
"Cancel": "取消",
|
||||
"ChamberTemp": "仓室温度",
|
||||
"Count": "计数",
|
||||
"Create": "新建",
|
||||
"CreateNewDirectory": "新建文件夹",
|
||||
"CurrentPath": "当前路径",
|
||||
@@ -177,8 +180,10 @@
|
||||
"DeleteDirectoryQuestion": "你确定要删除\"{name}\"和里面的所有内容吗?",
|
||||
"DeleteSelectedQuestion": "你确定要删除选中的{count}个文件?",
|
||||
"Download": "下载",
|
||||
"Duplicate": "复制",
|
||||
"DuplicateFile": "复制文件",
|
||||
"EditFile": "编辑文件",
|
||||
"Empty": "空",
|
||||
"Empty": "没有文件",
|
||||
"ExtruderTemp": "挤出机温度",
|
||||
"Filament": "耗材",
|
||||
"FilamentName": "耗材名称",
|
||||
@@ -213,6 +218,8 @@
|
||||
"Rename": "重命名",
|
||||
"RenameDirectory": "重命名文件夹",
|
||||
"RenameFile": "重命名文件",
|
||||
"ScanMeta": "扫描元数据",
|
||||
"ScanMetaSuccess": "已成功扫描来自:{filename} 的元数据。",
|
||||
"Search": "搜索",
|
||||
"SetupCurrentList": "设置当前列表",
|
||||
"Slicer": "切片软件",
|
||||
@@ -253,7 +260,9 @@
|
||||
"Tracking": "正在追踪",
|
||||
"Transparency": "透明度",
|
||||
"Ultra": "极致",
|
||||
"VoxelMode": "体素模式(ASMBL)"
|
||||
"VoxelMode": "体素模式(ASMBL)",
|
||||
"ShowGCode": "显示G-Code",
|
||||
"CNCMode": "CNC模式"
|
||||
},
|
||||
"Heightmap": {
|
||||
"Abort": "取消",
|
||||
@@ -266,8 +275,8 @@
|
||||
"Max": "最高点",
|
||||
"Min": "最低点",
|
||||
"Name": "名称",
|
||||
"Size": "尺寸",
|
||||
"Variance": "方差"
|
||||
"Range": "范围",
|
||||
"Size": "尺寸"
|
||||
},
|
||||
"DeleteBedMeshProfile": "删除预设床网",
|
||||
"DoYouReallyWantToDelete": "你确定要删除预设\"{name}\"?",
|
||||
@@ -275,6 +284,7 @@
|
||||
"Flat": "平面",
|
||||
"Heightmap": "高度图",
|
||||
"InvalidNameAlreadyExists": "预设名称已经存在,请换一个名称。",
|
||||
"InvalidNameAscii": "错误的名称,请删除所有非ascii字符后重试。",
|
||||
"InvalidNameEmpty": "输入值不能为空!",
|
||||
"InvalidNameReserved": "预设 'default' 已保留,请选择其他预设名称。",
|
||||
"Later": "以后",
|
||||
@@ -303,11 +313,12 @@
|
||||
"AvgPrinttime": "平均打印时间",
|
||||
"Cancel": "取消",
|
||||
"CreateNote": "新建便条",
|
||||
"Chart": "图表",
|
||||
"Delete": "删除",
|
||||
"DeleteSelectedQuestion": "你是否要删除已选中的{count}个任务?",
|
||||
"Details": "详情",
|
||||
"EditNote": "编辑便条",
|
||||
"Empty": "空",
|
||||
"Empty": "没有内容",
|
||||
"EndTime": "结束时间",
|
||||
"EstimatedFilament": "预估耗材用量",
|
||||
"EstimatedFilamentWeight": "预估耗材重量",
|
||||
@@ -320,8 +331,8 @@
|
||||
"FirstLayerBedTemp": "首层热床温度",
|
||||
"FirstLayerExtTemp": "首层仓内温度",
|
||||
"FirstLayerHeight": "首层高度",
|
||||
"HistoryFilamentUsage": "耗材",
|
||||
"HistoryPrinttimeAVG": "打印",
|
||||
"HistoryFilamentUsage": "耗材用量",
|
||||
"HistoryPrinttimeAVG": "打印时间",
|
||||
"JobDetails": "任务详情",
|
||||
"Jobs": "每页显示任务数",
|
||||
"LastModified": "上次修改",
|
||||
@@ -348,12 +359,13 @@
|
||||
"cancelled": "取消",
|
||||
"completed": "完成",
|
||||
"error": "错误",
|
||||
"in_progress": "进程中",
|
||||
"in_progress": "打印中",
|
||||
"klippy_disconnect": "Klippy失去连接",
|
||||
"klippy_shutdown": "Klippy已关闭",
|
||||
"Others": "其他",
|
||||
"server_exit": "服务器退出"
|
||||
},
|
||||
"Table": "表格",
|
||||
"TitleExportHistory": "导出历史记录",
|
||||
"TitleRefreshHistory": "刷新历史记录",
|
||||
"TitleSettings": "设置",
|
||||
@@ -365,7 +377,12 @@
|
||||
},
|
||||
"JobQueue": {
|
||||
"AllJobs": "全部任务",
|
||||
"Empty": "空",
|
||||
"ChangeCount": "变更计数",
|
||||
"Cancel": "取消",
|
||||
"Count": "计数",
|
||||
"Empty": "没有任务",
|
||||
"InvalidCountEmpty": "输入值不能为空!",
|
||||
"InvalidCountGreaterZero": "输入值必须大于0!",
|
||||
"JobQueue": "任务队列",
|
||||
"Jobs": "每页显示任务数",
|
||||
"Pause": "暂停",
|
||||
@@ -387,8 +404,10 @@
|
||||
"DeleteDirectoryQuestion": "你确定删除\"{name}\"文件夹和里面的所有内容吗?",
|
||||
"DeleteSelectedQuestion": "删除已选中的{count}个项目?",
|
||||
"Download": "下载",
|
||||
"Duplicate": "复制",
|
||||
"DuplicateFile": "复制文件",
|
||||
"EditFile": "编辑文件",
|
||||
"Empty": "空",
|
||||
"Empty": "没有文件",
|
||||
"Files": "每页显示文件数",
|
||||
"Filesize": "文件大小",
|
||||
"Free": "未使用",
|
||||
@@ -410,14 +429,20 @@
|
||||
"Used": "已使用"
|
||||
},
|
||||
"EndstopPanel": {
|
||||
"Endstop": "限位开关",
|
||||
"EndstopInfo": "点击右侧同步按钮获取限位开关状态",
|
||||
"Endstop": "限位",
|
||||
"EndstopInfo": "点击右侧同步按钮刷新限位状态",
|
||||
"Endstops": "限位",
|
||||
"open": "未触发",
|
||||
"TRIGGERED": "已触发"
|
||||
},
|
||||
"LogfilesPanel": {
|
||||
"Logfiles": "日志文件"
|
||||
"Accept": "接受",
|
||||
"Cancel": "取消",
|
||||
"Logfiles": "日志文件",
|
||||
"Rollover": "清理日志",
|
||||
"RolloverDescription": "请选择需要重置的日志:",
|
||||
"RolloverToastSuccessful": "日志\"{name}\"已经重置。",
|
||||
"RolloverToastFailed": "清理日志\"{name}\": {message}"
|
||||
},
|
||||
"SystemPanel": {
|
||||
"Constants": "常量",
|
||||
@@ -430,7 +455,7 @@
|
||||
"SystemLoad": "系统负载",
|
||||
"Values": {
|
||||
"Awake": "唤醒:{awake}",
|
||||
"Bandwidth": "带宽:{bandwidth}/s",
|
||||
"Bandwidth": "带宽值:{bandwidth}/s",
|
||||
"Distro": "发行版:{name} {version_id}",
|
||||
"Frequency": "频率:{frequency}",
|
||||
"Load": "负载:{load}",
|
||||
@@ -507,9 +532,12 @@
|
||||
"WebcamOff": "关闭"
|
||||
},
|
||||
"KlippyStatePanel": {
|
||||
"FirmwareRestart": "重启Klipper并重置主控",
|
||||
"KlipperCheck": "请检查Klipper服务是否运行。",
|
||||
"CheckKlippyAndUdsAddress": "请检查Klipper服务是否启动并且moonraker.conf已经添加了klippy_uds_address配置。",
|
||||
"FirmwareRestart": "重启Klipper固件",
|
||||
"MoonrakerCannotConnect": "Moonraker无法连接到Klipper !",
|
||||
"PowerOn": "开启电源",
|
||||
"PrinterSwitchedOff": "打印机电源已关闭",
|
||||
"PrinterSwitchedOffDescription": "打印机电源已关闭,Klipper无法连接。点击下方按钮开启打印机电源:",
|
||||
"Restart": "重启Klipper",
|
||||
"ServiceReports": "{service} 报告"
|
||||
},
|
||||
@@ -550,7 +578,7 @@
|
||||
"RunoutSensor": {
|
||||
"Detected": "检测到",
|
||||
"Disabled": "已关闭",
|
||||
"Empty": "空"
|
||||
"Empty": "无"
|
||||
}
|
||||
},
|
||||
"PowerControlPanel": {
|
||||
@@ -562,10 +590,10 @@
|
||||
"StatusPanel": {
|
||||
"CancelPrint": "取消打印",
|
||||
"ClearPrintStats": "清除打印统计数据",
|
||||
"Difference": "不同",
|
||||
"Difference": "差异",
|
||||
"EmptyGcodes": "没有G-Code文件",
|
||||
"EmptyJobqueue": "当前任务队列中没有文件。",
|
||||
"Estimate": "估算时间",
|
||||
"Estimate": "估算剩余",
|
||||
"ETA": "预估完成",
|
||||
"ExcludeObject": {
|
||||
"Cancel": "取消",
|
||||
@@ -581,17 +609,29 @@
|
||||
"Headline": "状态",
|
||||
"Jobqueue": "任务队列({count})",
|
||||
"JobqueueMoreFiles": "没有任务 | 一个任务 | {count}个任务",
|
||||
"Layer": "层",
|
||||
"Layer": "打印层",
|
||||
"Max": "最高",
|
||||
"ObjectHeight": "物体高度",
|
||||
"PauseAtLayer": {
|
||||
"Abort": "取消",
|
||||
"Accept": "接受",
|
||||
"AtLayer": "所在层",
|
||||
"Call": "调用",
|
||||
"DescriptionPauseAtLayerActive": "此功能已激活,会在层{layer}时调用\"{call}\"。如果重复调用命令,此设置将会被覆盖。",
|
||||
"DescriptionPauseNextLayerActive": "此功能已激活,将在下一层调用\"{call}\"。",
|
||||
"Layer": "层",
|
||||
"NextLayer": "下一层",
|
||||
"PauseAtLayer": "在某层暂停",
|
||||
"Type": "类型"
|
||||
},
|
||||
"PausePrint": "暂停打印",
|
||||
"Print": "打印",
|
||||
"PrintTime": "打印耗时",
|
||||
"ReprintJob": "再次打印",
|
||||
"Requested": "请求",
|
||||
"ResumePrint": "恢复打印",
|
||||
"Slicer": "切片时间",
|
||||
"Speed": "速度",
|
||||
"Slicer": "切片剩余",
|
||||
"Speed": "打印速度",
|
||||
"Status": "状态",
|
||||
"Total": "已用时间",
|
||||
"Unknown": "未知"
|
||||
@@ -628,7 +668,7 @@
|
||||
"Headline": "打印头",
|
||||
"PleaseConfigureSteps": "请配置步骤",
|
||||
"Position": "位置",
|
||||
"QGL": "四轴调平(QGL)",
|
||||
"QGL": "QGL",
|
||||
"Relative": "相对坐标",
|
||||
"SettingsInterfaceControl": "设置 > 界面 > 控制",
|
||||
"SpeedFactor": "速度倍数",
|
||||
@@ -639,12 +679,12 @@
|
||||
"FPS": "帧率",
|
||||
"Headline": "摄像头",
|
||||
"NoWebcam": "没有可用的摄像头。在\"Mainsail设置\" -> \"摄像头\"添加新的摄像头。",
|
||||
"UnknownWebcamService": "未知摄像头服务"
|
||||
"UnknownWebcamService": "未知的摄像头服务"
|
||||
},
|
||||
"ZoffsetPanel": {
|
||||
"Clear": "清除",
|
||||
"Headline": "Z轴偏移",
|
||||
"Later": "最后的",
|
||||
"Later": "稍候再说",
|
||||
"Ok": "好的",
|
||||
"Save": "保存",
|
||||
"SaveConfig": "保存配置",
|
||||
@@ -678,7 +718,7 @@
|
||||
"AddPrinter": "添加打印机",
|
||||
"AddPrintersToJson": "请将打印机添加到 config.json 。",
|
||||
"CannotConnectTo": "无法连接到{host} 。",
|
||||
"ChangePrinter": "更换打印机",
|
||||
"ChangePrinter": "切换打印机",
|
||||
"Connecting": "正在连接到{host}",
|
||||
"ConnectionFailed": "连接失败",
|
||||
"EditPrinter": "编辑打印机",
|
||||
@@ -751,7 +791,7 @@
|
||||
"Desktop": "桌面设备",
|
||||
"Mobile": "移动设备",
|
||||
"ResetLayout": "恢复默认设置",
|
||||
"Tablet": "掌上设备",
|
||||
"Tablet": "平板设备",
|
||||
"Widescreen": "宽屏设备"
|
||||
},
|
||||
"Edit": "编辑",
|
||||
@@ -764,7 +804,10 @@
|
||||
"MoonrakerRestartInstance": "重启Moonraker实例",
|
||||
"MoonrakerRestartInstanceDescription": "编辑完Moonraker配置文件并按下\"保存并重启\"按钮后,重启哪个Moonraker服务。",
|
||||
"UseEscToClose": "使用ESC关闭编辑器",
|
||||
"UseEscToCloseDescription": "允许使用ESC键关闭编辑器"
|
||||
"UseEscToCloseDescription": "允许使用ESC键关闭编辑器",
|
||||
"TabSize": "TAB长度",
|
||||
"TabSizeDescription": "按下TAB键时,填充空格的数量",
|
||||
"Spaces": "{count}个空格"
|
||||
},
|
||||
"GCodeViewerTab": {
|
||||
"BackgroundColor": "背景颜色",
|
||||
@@ -781,16 +824,16 @@
|
||||
"24hours": "24-小时 ({time})",
|
||||
"Backup": "备份",
|
||||
"BackupDialog": "请选择你想要备份的内容:",
|
||||
"CalcEstimateTime": "估算时间计算",
|
||||
"CalcEstimateTime": "估算剩余时间",
|
||||
"CalcEstimateTimeDescription": "如果选择了多项,将会计算平均值",
|
||||
"CalcEtaTime": "预计完成时间计算",
|
||||
"CalcEtaTime": "估算计完成时间",
|
||||
"CalcEtaTimeDescription": "如果选择了多项,将会计算平均值",
|
||||
"CalcPrintProgress": "打印进度估算",
|
||||
"CalcPrintProgress": "估算打印进度",
|
||||
"CalcPrintProgressDescription": "计算打印进度的方法。",
|
||||
"CalcPrintProgressItems": {
|
||||
"Filament": "耗材",
|
||||
"FileAbsolute": "文件位置(绝对)",
|
||||
"FileRelative": "文件位置(相对)",
|
||||
"Filament": "耗材用量",
|
||||
"FileAbsolute": "Gcode文件位置(绝对)",
|
||||
"FileRelative": "Gcode文件位置(相对)",
|
||||
"Slicer": "切片软件 (M73)"
|
||||
},
|
||||
"CannotReadJson": "无法读取/解析备份文件。",
|
||||
@@ -802,14 +845,14 @@
|
||||
"DbView": "视图设置",
|
||||
"DbWebcams": "摄像头",
|
||||
"EstimateValues": {
|
||||
"Filament": "耗材",
|
||||
"File": "文件",
|
||||
"Filament": "耗材用量",
|
||||
"File": "Gcode文件",
|
||||
"Slicer": "切片软件"
|
||||
},
|
||||
"FactoryDialog": "请选择想要恢复到默认值的项:",
|
||||
"FactoryReset": "恢复默认设置",
|
||||
"General": "通用",
|
||||
"Language": "语言",
|
||||
"Language": "界面语言",
|
||||
"MoonrakerDb": "Moonraker数据库",
|
||||
"PrinterName": "打印机名称",
|
||||
"Reset": "重启",
|
||||
@@ -844,7 +887,7 @@
|
||||
"NOMacros": "没有发现宏...",
|
||||
"NoMacrosInGroup": "此分组内没有可用宏。",
|
||||
"Primary": "优先",
|
||||
"Secondary": "其次",
|
||||
"Secondary": "次要",
|
||||
"ShowInStatePaused": "如果打印机暂停,显示/隐藏此分组。",
|
||||
"ShowInStatePrinting": "如果打印机正在工作,显示/隐藏此分组。",
|
||||
"ShowInStateStandby": "如果打印机待机,显示/隐藏此分组。",
|
||||
@@ -866,7 +909,7 @@
|
||||
"GroupSubTitle": "开始:{start},结束:{end}",
|
||||
"LightGroups": "{name} - 分组",
|
||||
"LightPresets": "{name} - 预设",
|
||||
"Miscellaneous": "杂项",
|
||||
"Miscellaneous": "其他设置",
|
||||
"Name": "名称",
|
||||
"NoDevicesFound": "未找到设备",
|
||||
"NoGroupFound": "未找到分组",
|
||||
@@ -877,6 +920,9 @@
|
||||
"UnableToLoadLight": "无法加载灯",
|
||||
"UnableToLoadPreset": "无法加载预设"
|
||||
},
|
||||
"NavigationTab": {
|
||||
"Navigation": "导航"
|
||||
},
|
||||
"PresetsTab": {
|
||||
"AddPreset": "添加预设",
|
||||
"Cooldown": "冷却",
|
||||
@@ -973,30 +1019,43 @@
|
||||
"VariableFpsMinDescription": ""
|
||||
},
|
||||
"UiSettingsTab": {
|
||||
"BedScrewsDialog": "底板螺丝对话框",
|
||||
"BedScrewsDialogDescription": "显示 BED_SCREWS_ADJUST 的辅助程序对话框。",
|
||||
"BoolBigThumbnail": "大缩略图",
|
||||
"BoolBigThumbnailDescription": "打印时在状态框中显示大缩略图",
|
||||
"BoolHideUploadAndPrintButton": "隐藏\"上传并打印\"按钮",
|
||||
"BoolHideUploadAndPrintButtonDescription": "在顶栏显示或者隐藏\"上传并打印\"按钮",
|
||||
"ConfirmOnEmergencyStop": "紧急停止需要确认",
|
||||
"ConfirmOnEmergencyStopDescription": "在按下\"紧急停止\"时显示确认对话框",
|
||||
"ConfirmOnPowerDeviceChange": "设备电源变化时需要确认",
|
||||
"ConfirmOnPowerDeviceChangeDescription": "在设备电源变化时显示确认对话框",
|
||||
"ConfirmOnPowerDeviceChange": "控制设备电源时需要确认",
|
||||
"ConfirmOnPowerDeviceChangeDescription": "控制设备电源时显示确认对话框",
|
||||
"DisableFanAnimation": "关闭风扇动画",
|
||||
"DisableFanAnimationDescription": "这会一定程度减少浏览器的资源消耗",
|
||||
"DisplayCANCEL_PRINT": "显示\"取消打印\"按钮",
|
||||
"DisplayCANCEL_PRINTDescription": "始终显示\"取消打印\"按钮",
|
||||
"GcodeThumbnails": "G-Code缩略图",
|
||||
"GcodeThumbnailsDescription": "单击\"指南\"按钮查看说明",
|
||||
"Guide": "指南",
|
||||
"HideSaveConfigButtonForBedMesh": "仅bed_mesh更改时隐藏\"保存配置\"按钮",
|
||||
"HideSaveConfigButtonForBedMeshDescription": "如果只有bed_mesh更改需要保存到Klipper时,隐藏\"保存配置\"按钮。",
|
||||
"LockSliders": "在触摸屏设备上锁定滑动条",
|
||||
"LockSlidersDelay": "滑动条锁定延迟时间",
|
||||
"LockSlidersDelayDescription": "滑动条将在给定延迟时间后锁定。如果设置为0或留空,滑动条将仅在页面更改/重新加载后锁定",
|
||||
"LockSlidersDescription": "在允许更改之前需要解锁触摸屏上的滑动条",
|
||||
"Logo": "Logo颜色",
|
||||
"ManualProbeDialog": "手动探针助手对话框",
|
||||
"ManualProbeDialogDescription": "显示 PROBE_CALIBRATE 或 Z_ENDSTOP_CALIBRATE 的辅助程序对话框。",
|
||||
"NavigationStyle": "导航栏样式",
|
||||
"NavigationStyleDescription": "更改导航栏外观",
|
||||
"NavigationStyleIconsAndText": "图标+文字",
|
||||
"NavigationStyleIconsOnly": "仅图标",
|
||||
"PowerDeviceName": "打印机电源设备",
|
||||
"PowerDeviceNameDescription": "请选择可以控制打印机供电的Moonraker电源设备。",
|
||||
"Primary": "高亮颜色",
|
||||
"ShowWebcamInNavigation": "在导航栏中显示摄像头",
|
||||
"ScrewsTiltAdjustDialog": "螺丝倾斜调整对话框",
|
||||
"ScrewsTiltAdjustDialogDescription": "显示 SCREWS_TILT_CALCULATE 的辅助程序对话框。",
|
||||
"TempchartHeight": "温度图表高度",
|
||||
"TempchartHeightDescription": "修改Dashboard上温度图表的高度。",
|
||||
"UiSettings": "UI设置"
|
||||
},
|
||||
"Update": "更新",
|
||||
@@ -1016,8 +1075,11 @@
|
||||
"IconNozzle": "喷嘴",
|
||||
"IconPrinter": "打印机",
|
||||
"Ipstream": "IP摄像头",
|
||||
"Hlsstream": "HLS视频流",
|
||||
"WebrtcJanus": "WebRTC (janus-gateway)",
|
||||
"Mjpegstreamer": "MJPEG视频流",
|
||||
"MjpegstreamerAdaptive": "自适应MJPEG视频流(试验性)",
|
||||
"JMuxerStream": "裸h264视频流 (jmuxer)",
|
||||
"Name": "名称",
|
||||
"NameAlreadyExists": "名称已经存在",
|
||||
"Required": "需要填写名称",
|
||||
@@ -1030,9 +1092,16 @@
|
||||
"UrlStream": "视频流地址(URL)",
|
||||
"Uv4lMjpeg": "UV4L-MJPEG",
|
||||
"Vertically": "垂直",
|
||||
"Webcams": "摄像头"
|
||||
"Webcams": "摄像头",
|
||||
"WebrtcCameraStreamer": "WebRTC (摄像头视频流)"
|
||||
}
|
||||
},
|
||||
"ScrewsTiltAdjust": {
|
||||
"Accept": "接受",
|
||||
"Base": "底座",
|
||||
"ErrorText": "探测过程中出现了问题。",
|
||||
"Headline": "螺丝倾斜调整"
|
||||
},
|
||||
"Timelapse": {
|
||||
"AllFiles": "全部文件",
|
||||
"Autorender": "自动渲染",
|
||||
@@ -1046,7 +1115,7 @@
|
||||
"DeleteSelectedQuestion": "你确定要删除选中的{count}个文件吗?",
|
||||
"Download": "下载",
|
||||
"DuplicateLastframe": "重复最后一帧",
|
||||
"Empty": "没有发现已完成的延时摄影文件",
|
||||
"Empty": "没有已完成的延时摄影文件",
|
||||
"Enabled": "开启",
|
||||
"EstimatedLength": "预计时长",
|
||||
"Files": "每页显示文件数",
|
||||
|
||||
+466
-167
File diff suppressed because it is too large.
Load diff
@@ -9,12 +9,6 @@ import i18n from '@/plugins/i18n'
|
||||
import store from '@/store'
|
||||
import router from '@/plugins/router'
|
||||
import { WebSocketPlugin } from '@/plugins/webSocketClient'
|
||||
import { registerSW } from 'virtual:pwa-register'
|
||||
|
||||
// noinspection JSUnusedGlobalSymbols
|
||||
registerSW({
|
||||
onOfflineReady() {},
|
||||
})
|
||||
|
||||
Vue.config.productionTip = false
|
||||
|
||||
|
||||
+52
-4
@@ -291,8 +291,12 @@
|
||||
:label="$t('Heightmap.Name')"
|
||||
required
|
||||
:rules="renameInputRules"
|
||||
@update:error="isInvalidName = !isInvalidName"
|
||||
@keyup.enter="renameProfile"></v-text-field>
|
||||
@update:error="
|
||||
(bool) => {
|
||||
isInvalidName = bool
|
||||
}
|
||||
"
|
||||
@keyup.enter="renameProfile" />
|
||||
</v-card-text>
|
||||
<v-card-actions>
|
||||
<v-spacer></v-spacer>
|
||||
@@ -323,13 +327,21 @@
|
||||
ref="inputFieldCalibrateBedMeshName"
|
||||
v-model="calibrateDialog.name"
|
||||
:label="$t('Heightmap.Name')"
|
||||
:rules="createInputRules"
|
||||
required
|
||||
@keyup.enter="calibrateMesh"></v-text-field>
|
||||
@update:error="
|
||||
(bool) => {
|
||||
calibrateDialog.isInvalidName = bool
|
||||
}
|
||||
"
|
||||
@keyup.enter="calibrateMesh" />
|
||||
</v-card-text>
|
||||
<v-card-actions>
|
||||
<v-spacer></v-spacer>
|
||||
<v-btn text @click="calibrateDialog.boolShow = false">{{ $t('Heightmap.Abort') }}</v-btn>
|
||||
<v-btn color="primary" text @click="calibrateMesh">{{ $t('Heightmap.Calibrate') }}</v-btn>
|
||||
<v-btn :disabled="calibrateDialog.isInvalidName" color="primary" text @click="calibrateMesh">
|
||||
{{ $t('Heightmap.Calibrate') }}
|
||||
</v-btn>
|
||||
</v-card-actions>
|
||||
</panel>
|
||||
</v-dialog>
|
||||
@@ -465,17 +477,26 @@ export default class PageHeightmap extends Mixins(BaseMixin, ControlMixin) {
|
||||
private calibrateDialog: {
|
||||
boolShow: boolean
|
||||
name: string
|
||||
isInvalidName: boolean
|
||||
} = {
|
||||
boolShow: false,
|
||||
name: 'default',
|
||||
isInvalidName: false,
|
||||
}
|
||||
private newName = ''
|
||||
private oldName = ''
|
||||
private isInvalidName = true
|
||||
private createInputRules = [
|
||||
(value: string) => !!value || this.$t('Heightmap.InvalidNameEmpty'),
|
||||
// eslint-disable-next-line no-control-regex
|
||||
(value: string) => value === value.replace(/[^\x00-\x7F]/g, '') || this.$t('Heightmap.InvalidNameAscii'),
|
||||
]
|
||||
private renameInputRules = [
|
||||
(value: string) => !!value || this.$t('Heightmap.InvalidNameEmpty'),
|
||||
(value: string) => value !== 'default' || this.$t('Heightmap.InvalidNameReserved'),
|
||||
(value: string) => !this.existsProfileName(value) || this.$t('Heightmap.InvalidNameAlreadyExists'),
|
||||
// eslint-disable-next-line no-control-regex
|
||||
(value: string) => value === value.replace(/[^\x00-\x7F]/g, '') || this.$t('Heightmap.InvalidNameAscii'),
|
||||
]
|
||||
|
||||
private probedOpacity = 1
|
||||
@@ -608,6 +629,8 @@ export default class PageHeightmap extends Mixins(BaseMixin, ControlMixin) {
|
||||
},
|
||||
},
|
||||
},
|
||||
boxWidth: 100 * this.scaleX,
|
||||
boxDepth: 100 * this.scaleY,
|
||||
},
|
||||
series: this.series,
|
||||
}
|
||||
@@ -678,6 +701,30 @@ export default class PageHeightmap extends Mixins(BaseMixin, ControlMixin) {
|
||||
this.$store.dispatch('gui/saveSetting', { name: 'view.heightmap.scaleGradient', value: newVal })
|
||||
}
|
||||
|
||||
get absRangeX(): number {
|
||||
return this.rangeX[1] - this.rangeX[0]
|
||||
}
|
||||
|
||||
get absRangeY(): number {
|
||||
return this.rangeY[1] - this.rangeY[0]
|
||||
}
|
||||
|
||||
get minRangeXY(): number {
|
||||
return Math.min(this.absRangeX, this.absRangeY)
|
||||
}
|
||||
|
||||
get scaleX(): number {
|
||||
if (this.minRangeXY === 0) return 1
|
||||
|
||||
return this.absRangeX / this.minRangeXY
|
||||
}
|
||||
|
||||
get scaleY(): number {
|
||||
if (this.minRangeXY === 0) return 1
|
||||
|
||||
return this.absRangeY / this.minRangeXY
|
||||
}
|
||||
|
||||
get scaleZMax(): number {
|
||||
return this.$store.state.gui.view.heightmap.scaleZMax ?? 0.5
|
||||
}
|
||||
@@ -1038,6 +1085,7 @@ export default class PageHeightmap extends Mixins(BaseMixin, ControlMixin) {
|
||||
this.newName = this.bed_mesh?.profile_name ?? ''
|
||||
this.oldName = this.bed_mesh.profile_name
|
||||
this.renameDialog = true
|
||||
this.isInvalidName = false
|
||||
|
||||
setTimeout(() => {
|
||||
this.$refs.inputDialogRenameHeightmapName?.focus()
|
||||
|
||||
@@ -9,11 +9,19 @@ export const gcode = {
|
||||
/* Klipper macro attributes */
|
||||
if (stream.pos > zeroPos && state.klipperMacro) {
|
||||
stream.eatSpace()
|
||||
if (stream.match(/^(".+"|true|false)/i)) {
|
||||
if (stream.match(/^{/)) {
|
||||
return 'tag'
|
||||
}
|
||||
// else if (stream.match(/^'|"/)) {
|
||||
else if (stream.match(/^"[^{]+"/) || stream.match(/^'[^{]+'/)) {
|
||||
return 'string'
|
||||
} else if (stream.match(/^\d+/)) return 'number'
|
||||
else if (stream.match(/^[A-Za-z\d_]+/)) return 'propertyName'
|
||||
else if (zeroPos === 0 && stream.match(/^{[^%]+}/)) return 'variable'
|
||||
} else if (stream.match(/^[-+]?[0-9]*\.?[0-9]+/)) {
|
||||
return 'number'
|
||||
} else if (stream.match(/^[A-Za-z\d_]+/)) {
|
||||
return 'propertyName'
|
||||
} else if (zeroPos === 0 && stream.match(/^{[^%]+}/)) {
|
||||
return 'variable'
|
||||
}
|
||||
}
|
||||
|
||||
/* comments */
|
||||
@@ -29,7 +37,7 @@ export const gcode = {
|
||||
return 'namespace'
|
||||
}
|
||||
|
||||
if (stream.string.substr(zeroPos).toLowerCase().startsWith('m117')) {
|
||||
if (stream.string.substring(zeroPos).toLowerCase().startsWith('m117')) {
|
||||
stream.skipToEnd()
|
||||
return 'string'
|
||||
}
|
||||
|
||||
@@ -1,144 +0,0 @@
|
||||
/*
|
||||
import {StringStream} from "@codemirror/language";
|
||||
let keywords = ["and", "as", "block", "endblock", "by", "cycle", "debug", "else", "elif",
|
||||
"extends", "filter", "endfilter", "firstof", "for",
|
||||
"endfor", "if", "endif", "ifchanged", "endifchanged",
|
||||
"ifequal", "endifequal", "ifnotequal",
|
||||
"endifnotequal", "in", "include", "load", "not", "now", "or",
|
||||
"parsed", "regroup", "reversed", "spaceless",
|
||||
"endspaceless", "ssi", "templatetag", "openblock",
|
||||
"closeblock", "openvariable", "closevariable",
|
||||
"openbrace", "closebrace", "opencomment",
|
||||
"closecomment", "widthratio", "url", "with", "endwith",
|
||||
"get_current_language", "trans", "endtrans", "noop", "blocktrans",
|
||||
"endblocktrans", "get_available_languages",
|
||||
"get_current_language_bidi", "plural"];
|
||||
const operator = /^[+\-*&%=<>!?|~^]/;
|
||||
const sign = /^[:[({]/;
|
||||
let atom = ["true", "false"];
|
||||
const number = /^(\d[+\-*!/])?\d+(\.\d+)?/;
|
||||
|
||||
keywords = new RegExp("((" + keywords.join(")|(") + "))\\b");
|
||||
atom = new RegExp("((" + atom.join(")|(") + "))\\b");
|
||||
|
||||
export const jinja2 = {
|
||||
token: function(stream: StringStream, state: StreamParserJinja2State): string {
|
||||
let ch: string | void = stream.peek();
|
||||
|
||||
//Comment
|
||||
if (state.incomment) {
|
||||
if(!stream.skipTo("#}")) {
|
||||
stream.skipToEnd();
|
||||
} else {
|
||||
stream.eatWhile(/[#}]/);
|
||||
state.incomment = false;
|
||||
}
|
||||
return "comment";
|
||||
//Tag
|
||||
} else if (state.intag) {
|
||||
//After operator
|
||||
if(state.operator) {
|
||||
state.operator = false;
|
||||
if(stream.match(atom)) {
|
||||
return "atom";
|
||||
}
|
||||
if(stream.match(number)) {
|
||||
return "number";
|
||||
}
|
||||
}
|
||||
//After sign
|
||||
if(state.sign) {
|
||||
state.sign = false;
|
||||
if(stream.match(atom)) {
|
||||
return "atom";
|
||||
}
|
||||
if(stream.match(number)) {
|
||||
return "number";
|
||||
}
|
||||
}
|
||||
|
||||
if(state.instring) {
|
||||
if(ch == state.instring) {
|
||||
state.instring = false;
|
||||
}
|
||||
stream.next();
|
||||
return "string";
|
||||
} else if(ch == "'" || ch == '"') {
|
||||
state.instring = ch;
|
||||
stream.next();
|
||||
return "string";
|
||||
} else if(stream.match(state.intag + "}") || stream.eat("-") && stream.match(state.intag + "}")) {
|
||||
state.intag = false;
|
||||
return "tag";
|
||||
} else if(stream.match(operator)) {
|
||||
state.operator = true;
|
||||
return "operator";
|
||||
} else if(stream.match(sign)) {
|
||||
state.sign = true;
|
||||
} else {
|
||||
if(stream.eat(" ") || stream.sol()) {
|
||||
if(stream.match(keywords)) {
|
||||
return "keyword";
|
||||
}
|
||||
if(stream.match(atom)) {
|
||||
return "atom";
|
||||
}
|
||||
if(stream.match(number)) {
|
||||
return "number";
|
||||
}
|
||||
if(stream.sol()) {
|
||||
stream.next();
|
||||
}
|
||||
} else {
|
||||
stream.next();
|
||||
}
|
||||
|
||||
}
|
||||
return "variable";
|
||||
} else if (stream.eat("{")) {
|
||||
if (stream.eat("#")) {
|
||||
state.incomment = true;
|
||||
if(!stream.skipTo("#}")) {
|
||||
stream.skipToEnd();
|
||||
} else {
|
||||
stream.eatWhile(/[#}]/);
|
||||
state.incomment = false;
|
||||
}
|
||||
return "comment";
|
||||
//Open tag
|
||||
// eslint-disable-next-line no-cond-assign
|
||||
} else if (ch = stream.eat(/[{%]/)) {
|
||||
//Cache close tag
|
||||
state.intag = ch;
|
||||
if(ch == "{") {
|
||||
state.intag = "}";
|
||||
}
|
||||
stream.eat("-");
|
||||
return "tag";
|
||||
}
|
||||
}
|
||||
stream.next();
|
||||
},
|
||||
startState: function(): StreamParserJinja2State {
|
||||
return {
|
||||
incomment: false,
|
||||
intag: false,
|
||||
operator: false,
|
||||
sign: false,
|
||||
instring: false
|
||||
};
|
||||
},
|
||||
languageData: {
|
||||
blockCommentStart: "{#",
|
||||
blockCommentEnd: "#}"
|
||||
}
|
||||
}
|
||||
|
||||
export interface StreamParserJinja2State {
|
||||
incomment: boolean,
|
||||
intag: string | boolean,
|
||||
operator: boolean,
|
||||
sign: boolean,
|
||||
instring: boolean | string,
|
||||
}
|
||||
*/
|
||||
@@ -3,6 +3,212 @@ import { gcode } from '@/plugins/StreamParserGcode'
|
||||
|
||||
export const klipper_config: StreamParser<any> = {
|
||||
token: function (stream: StringStream, state: StreamParserKlipperConfigState): string | null {
|
||||
/* see https://tedboy.github.io/jinja2/off_doc.templates.html */
|
||||
const operators = [
|
||||
'\\+',
|
||||
'-',
|
||||
'\\/\\/',
|
||||
'\\/',
|
||||
'%',
|
||||
'\\*\\*',
|
||||
'\\*',
|
||||
'\\(',
|
||||
'\\)',
|
||||
'==',
|
||||
'!=',
|
||||
'>=',
|
||||
'>',
|
||||
'<=',
|
||||
'<',
|
||||
'=',
|
||||
'\\|',
|
||||
'~',
|
||||
',',
|
||||
]
|
||||
const reOperator = new RegExp('^' + operators.join('|'))
|
||||
|
||||
const keywords = [
|
||||
'elif',
|
||||
'else',
|
||||
'endif',
|
||||
'if',
|
||||
'endfor',
|
||||
'for',
|
||||
'loop\\.index',
|
||||
'loop\\.revindex',
|
||||
'loop\\.first',
|
||||
'loop\\.last',
|
||||
'loop\\.length',
|
||||
'loop\\.cycle',
|
||||
'loop\\.depth',
|
||||
'and',
|
||||
'or',
|
||||
'not',
|
||||
'in',
|
||||
'is',
|
||||
'endmacro',
|
||||
'macro',
|
||||
'endcall',
|
||||
'call',
|
||||
'endfilter',
|
||||
'filter',
|
||||
'endset',
|
||||
'set',
|
||||
'extends',
|
||||
'block',
|
||||
'endblock',
|
||||
'include',
|
||||
'import',
|
||||
'do',
|
||||
]
|
||||
const filters = [
|
||||
'abs',
|
||||
'attr',
|
||||
'batch',
|
||||
'capitalize',
|
||||
'center',
|
||||
'default',
|
||||
'dictsort',
|
||||
'escape',
|
||||
'filesizeformat',
|
||||
'first',
|
||||
'float',
|
||||
'forceescape',
|
||||
'format',
|
||||
'groupby',
|
||||
'indent',
|
||||
'int',
|
||||
'join',
|
||||
'last',
|
||||
'length',
|
||||
'list',
|
||||
'lower',
|
||||
'map',
|
||||
'max',
|
||||
'min',
|
||||
'pprint',
|
||||
'random',
|
||||
'reject',
|
||||
'rejectattr',
|
||||
'replace',
|
||||
'reverse',
|
||||
'round',
|
||||
'tojson',
|
||||
'safe',
|
||||
'select',
|
||||
'selectattr',
|
||||
'slice',
|
||||
'sort',
|
||||
'string',
|
||||
'striptags',
|
||||
'sum',
|
||||
'title',
|
||||
'trim',
|
||||
'truncate',
|
||||
'unique',
|
||||
'upper',
|
||||
'urlencode',
|
||||
'urlize',
|
||||
'wordcount',
|
||||
'wordwrap',
|
||||
'xmlattr',
|
||||
]
|
||||
const tests = [
|
||||
'callable',
|
||||
'defined',
|
||||
'divisibleby',
|
||||
'equalto',
|
||||
'escaped',
|
||||
'even',
|
||||
'iterable',
|
||||
'lower',
|
||||
'mapping',
|
||||
'none',
|
||||
'number',
|
||||
'odd',
|
||||
'sameas',
|
||||
'sequence',
|
||||
'string',
|
||||
'undefined',
|
||||
'upper',
|
||||
]
|
||||
const globalFns = ['range', 'lipsum', 'dict', 'cycler', 'joiner']
|
||||
const cyclerMethods = ['\\.reset\\(\\)', '\\.next\\(\\)']
|
||||
const reKeyword = new RegExp('^' + keywords.join('\\s+|') + '|' + cyclerMethods.join('|') + '\\s+')
|
||||
const reUpdateOps = new RegExp(
|
||||
'^' + filters.join('|') + '|' + tests.join('|') + '|' + globalFns.join('|') + '\\s+'
|
||||
)
|
||||
|
||||
function jinja2Element(stream: StringStream): string {
|
||||
const pctMatch: any = stream.match(/^%}/)
|
||||
const braceMatch: any = stream.match(/^}/)
|
||||
function notJinja(): boolean {
|
||||
return state.klipperMacroJinjaBraceStack.length === 0 && state.klipperMacroJinjaPctStack.length === 0
|
||||
}
|
||||
|
||||
if (pctMatch || braceMatch) {
|
||||
if (pctMatch) {
|
||||
state.klipperMacroJinjaPctStack.pop()
|
||||
if (notJinja()) {
|
||||
state.klipperMacroJinja = false
|
||||
}
|
||||
} else {
|
||||
// brace match
|
||||
state.klipperMacroJinjaBraceStack.pop()
|
||||
if (notJinja()) {
|
||||
state.klipperMacroJinja = false
|
||||
}
|
||||
}
|
||||
stream.eatSpace()
|
||||
state.gcodeZeroPos = stream.pos
|
||||
return 'tag'
|
||||
}
|
||||
// https://www.metaltoad.com/blog/regex-quoted-string-escapable-quotes
|
||||
if (stream.match(/^((?<![\\])['"])((?:.(?!(?<![\\])\1))*.?)\1/)) {
|
||||
state.klipperMacroJinjaHighlightNext = true
|
||||
return 'string'
|
||||
}
|
||||
if (stream.eol() && stream.match(/^"/)) {
|
||||
state.klipperMacroJinjaHighlightNext = false
|
||||
return 'string'
|
||||
}
|
||||
if (state.klipperMacroJinjaHighlightNext) {
|
||||
if (stream.match(reKeyword)) {
|
||||
state.klipperMacroJinjaHighlightNext = false
|
||||
return 'keyword'
|
||||
}
|
||||
}
|
||||
if (state.klipperMacroJinjaHighlightNext) {
|
||||
if (stream.match(reUpdateOps)) {
|
||||
// check character after "updateOp" element -- might not be a "("
|
||||
if (['(', '}', ',', '|', ' '].includes(stream.peek() ?? '')) {
|
||||
state.klipperMacroJinjaHighlightNext = false
|
||||
return 'updateOperator'
|
||||
}
|
||||
}
|
||||
}
|
||||
if (stream.match(reOperator)) {
|
||||
state.klipperMacroJinjaHighlightNext = true
|
||||
return 'number'
|
||||
}
|
||||
if (stream.match(/^true\s|false\s/i)) {
|
||||
state.klipperMacroJinjaHighlightNext = false
|
||||
return 'atom'
|
||||
}
|
||||
if (stream.match(/^[-+]?[0-9]*\.?[0-9]+/)) {
|
||||
state.klipperMacroJinjaHighlightNext = false
|
||||
return 'number'
|
||||
}
|
||||
if (stream.eatSpace()) {
|
||||
state.klipperMacroJinjaHighlightNext = true
|
||||
return 'propertyName'
|
||||
}
|
||||
stream.next()
|
||||
|
||||
state.klipperMacroJinjaHighlightNext = false
|
||||
return 'propertyName'
|
||||
}
|
||||
|
||||
const ch = stream.peek()
|
||||
/* comments */
|
||||
if (
|
||||
@@ -50,57 +256,57 @@ export const klipper_config: StreamParser<any> = {
|
||||
stream.eatSpace()
|
||||
state.gcodeZeroPos = stream.pos
|
||||
}
|
||||
|
||||
if (state.klipperMacroJinja) {
|
||||
if (
|
||||
(state.klipperMacroJinjaPercent && stream.match(/^%}/)) ||
|
||||
(!state.klipperMacroJinjaPercent && stream.match(/^}/))
|
||||
) {
|
||||
state.klipperMacroJinja = false
|
||||
state.klipperMacroJinjaPercent = false
|
||||
stream.eatSpace()
|
||||
state.gcodeZeroPos = stream.pos
|
||||
return null
|
||||
}
|
||||
stream.next()
|
||||
return 'string'
|
||||
}
|
||||
|
||||
if (stream.match(/^\s*{[%{]?/)) {
|
||||
state.klipperMacroJinjaPercent = stream.string.includes('{%')
|
||||
if (stream.match(/^\s*{[%#]?/)) {
|
||||
state.klipperMacroJinja = true
|
||||
return null
|
||||
if (stream.string.includes('{%')) {
|
||||
state.klipperMacroJinjaPctStack.push('{%')
|
||||
} else {
|
||||
state.klipperMacroJinjaBraceStack.push('{')
|
||||
}
|
||||
return 'tag'
|
||||
}
|
||||
if (state.klipperMacroJinja) {
|
||||
return jinja2Element(stream)
|
||||
}
|
||||
return gcode.token(stream, state, state.gcodeZeroPos ?? 0)
|
||||
}
|
||||
} else {
|
||||
// stream.indentation > 0
|
||||
state.was = true
|
||||
if (state.gcode) {
|
||||
if (stream.sol()) {
|
||||
stream.eatSpace()
|
||||
state.gcodeZeroPos = stream.pos
|
||||
}
|
||||
if (state.klipperMacroJinja) {
|
||||
if (
|
||||
(state.klipperMacroJinjaPercent && stream.match(/^%}/)) ||
|
||||
(!state.klipperMacroJinjaPercent && stream.match(/^}/))
|
||||
) {
|
||||
state.klipperMacroJinja = false
|
||||
state.klipperMacroJinjaPercent = false
|
||||
stream.eatSpace()
|
||||
state.gcodeZeroPos = stream.pos
|
||||
return null
|
||||
}
|
||||
stream.next()
|
||||
return 'string'
|
||||
}
|
||||
|
||||
if (stream.match(/^\s*{[%{]?/)) {
|
||||
state.klipperMacroJinjaPercent = stream.string.includes('{%')
|
||||
if (stream.match(/^\s*{[%#]?/)) {
|
||||
state.klipperMacroJinja = true
|
||||
return null
|
||||
if (stream.string.includes('{%')) {
|
||||
state.klipperMacroJinjaPctStack.push('{%')
|
||||
} else {
|
||||
state.klipperMacroJinjaBraceStack.push('{')
|
||||
}
|
||||
return 'tag'
|
||||
}
|
||||
if (state.klipperMacroJinja) {
|
||||
return jinja2Element(stream)
|
||||
}
|
||||
return gcode.token(stream, state, state.gcodeZeroPos ?? stream.pos)
|
||||
} else if (state.variable) {
|
||||
if (stream.sol()) {
|
||||
stream.eatSpace()
|
||||
}
|
||||
if (stream.match(/^\s*{[%#]?/)) {
|
||||
state.klipperMacroJinja = true
|
||||
if (stream.string.includes('{%')) {
|
||||
state.klipperMacroJinjaPctStack.push('{%')
|
||||
} else {
|
||||
state.klipperMacroJinjaBraceStack.push('{')
|
||||
}
|
||||
return 'tag'
|
||||
}
|
||||
if (state.klipperMacroJinja) {
|
||||
return jinja2Element(stream)
|
||||
}
|
||||
} else if (state.pair) {
|
||||
stream.eatSpace()
|
||||
if (ch !== ',') {
|
||||
@@ -118,12 +324,15 @@ export const klipper_config: StreamParser<any> = {
|
||||
if (state.was && stream.indentation() === 0) {
|
||||
state.pair = false
|
||||
state.gcode = false
|
||||
state.variable = false
|
||||
state.was = false
|
||||
}
|
||||
|
||||
if (!state.pair && !state.gcode && stream.sol()) {
|
||||
if (!state.pair && !state.gcode && !state.variable && stream.sol()) {
|
||||
if (stream.match(/^(?:[A-Za-z]*_?gcode|enable):/)) {
|
||||
state.gcode = true
|
||||
} else if (stream.match(/^variable_[a-zA-Z]+:/)) {
|
||||
state.variable = true
|
||||
} else {
|
||||
stream.match(/^.+?:\s*/)
|
||||
state.pair = !stream.eol()
|
||||
@@ -132,6 +341,30 @@ export const klipper_config: StreamParser<any> = {
|
||||
return 'atom'
|
||||
}
|
||||
|
||||
if (state.variable) {
|
||||
if (stream.sol() || stream.eol()) {
|
||||
state.variable = false
|
||||
return null
|
||||
}
|
||||
if (stream.match(/^\s*{[%#]?/)) {
|
||||
state.klipperMacroJinja = true
|
||||
if (stream.string.includes('{%')) {
|
||||
state.klipperMacroJinjaPctStack.push('{%')
|
||||
} else {
|
||||
state.klipperMacroJinjaBraceStack.push('{')
|
||||
}
|
||||
return 'tag'
|
||||
} else {
|
||||
// no Jinja in variable
|
||||
state.pair = true
|
||||
// state.variable = false
|
||||
}
|
||||
if (state.klipperMacroJinja) {
|
||||
stream.eatSpace()
|
||||
return jinja2Element(stream)
|
||||
}
|
||||
}
|
||||
|
||||
if (state.pair) {
|
||||
if (ch === ':') {
|
||||
stream.next()
|
||||
@@ -143,7 +376,6 @@ export const klipper_config: StreamParser<any> = {
|
||||
state.pair = false
|
||||
return null
|
||||
}
|
||||
|
||||
if (stream.match(/^(-?\d*\.?(?:\d+)?(,|$|\s))+/)) {
|
||||
state.pair = false
|
||||
return 'number'
|
||||
@@ -163,10 +395,13 @@ export const klipper_config: StreamParser<any> = {
|
||||
pair: false,
|
||||
was: false,
|
||||
gcode: false,
|
||||
variable: false,
|
||||
klipperMacro: false,
|
||||
gcodeZeroPos: null,
|
||||
klipperMacroJinja: false,
|
||||
klipperMacroJinjaPercent: false,
|
||||
klipperMacroJinjaHighlightNext: false,
|
||||
klipperMacroJinjaBraceStack: [],
|
||||
klipperMacroJinjaPctStack: [],
|
||||
}
|
||||
},
|
||||
languageData: {
|
||||
@@ -179,8 +414,11 @@ interface StreamParserKlipperConfigState {
|
||||
pair: boolean
|
||||
was: boolean
|
||||
gcode: boolean
|
||||
variable: boolean
|
||||
gcodeZeroPos: number | null
|
||||
klipperMacro: boolean
|
||||
klipperMacroJinja: boolean
|
||||
klipperMacroJinjaPercent: boolean
|
||||
klipperMacroJinjaHighlightNext: boolean // Highlight next element if no space follows curent keyword
|
||||
klipperMacroJinjaBraceStack: string[] // Should these two stacks be combined for overhead / aesthetics?
|
||||
klipperMacroJinjaPctStack: string[]
|
||||
}
|
||||
@@ -1,140 +0,0 @@
|
||||
import { StringStream } from '@codemirror/language'
|
||||
|
||||
const cons = ['true', 'false', 'on', 'off', 'yes', 'no']
|
||||
const keywordRegex = new RegExp('\\b((' + cons.join(')|(') + '))$', 'i')
|
||||
|
||||
export const yaml = {
|
||||
token: function (stream: StringStream, state: StreamParserYamlState): string | null {
|
||||
const ch = stream.peek()
|
||||
const esc = state.escaped
|
||||
|
||||
state.escaped = false
|
||||
/* comments */
|
||||
if (ch == '#' && (stream.pos == 0 || /\s/.test(stream.string.charAt(stream.pos - 1)))) {
|
||||
stream.skipToEnd()
|
||||
return 'comment'
|
||||
}
|
||||
|
||||
if (stream.match(/^('([^']|\\.)*'?|"([^"]|\\.)*"?)/)) return 'string'
|
||||
|
||||
if (state.literal && stream.indentation() > state.keyCol) {
|
||||
stream.skipToEnd()
|
||||
return 'string'
|
||||
} else if (state.literal) {
|
||||
state.literal = false
|
||||
}
|
||||
if (stream.sol()) {
|
||||
state.keyCol = 0
|
||||
state.pair = false
|
||||
state.pairStart = false
|
||||
/* document start */
|
||||
if (stream.match('---')) {
|
||||
return 'def'
|
||||
}
|
||||
/* document end */
|
||||
if (stream.match('...')) {
|
||||
return 'def'
|
||||
}
|
||||
/* array list item */
|
||||
if (stream.match(/^\s*-\s+/)) {
|
||||
return 'meta'
|
||||
}
|
||||
}
|
||||
|
||||
if (stream.match(/^\[[a-zA-Z]\s/)) {
|
||||
window.console.log('keys', stream)
|
||||
return 'number'
|
||||
}
|
||||
|
||||
/* inline pairs/lists */
|
||||
if (stream.match(/^(\{|\}|\[|\])/)) {
|
||||
if (ch == '{') state.inlinePairs++
|
||||
else if (ch == '}') state.inlinePairs--
|
||||
else if (ch == '[') state.inlineList++
|
||||
else state.inlineList--
|
||||
return 'meta'
|
||||
}
|
||||
|
||||
/* list separator */
|
||||
if (state.inlineList > 0 && !esc && ch == ',') {
|
||||
stream.next()
|
||||
return 'meta'
|
||||
}
|
||||
/* pairs separator */
|
||||
if (state.inlinePairs > 0 && !esc && ch == ',') {
|
||||
state.keyCol = 0
|
||||
state.pair = false
|
||||
state.pairStart = false
|
||||
stream.next()
|
||||
return 'meta'
|
||||
}
|
||||
|
||||
/* start of value of a pair */
|
||||
if (state.pairStart) {
|
||||
/* block literals */
|
||||
if (stream.match(/^\s*(\||>)\s*/)) {
|
||||
state.literal = true
|
||||
return 'meta'
|
||||
}
|
||||
/* references */
|
||||
if (stream.match(/^\s*(&|\*)[a-z0-9._-]+\b/i)) {
|
||||
return 'variable'
|
||||
}
|
||||
/* numbers */
|
||||
if (state.inlinePairs == 0 && stream.match(/^\s*-?[0-9.,]+\s?$/)) {
|
||||
return 'number'
|
||||
}
|
||||
if (state.inlinePairs > 0 && stream.match(/^\s*-?[0-9.,]+\s?(?=(,|}))/)) {
|
||||
return 'number'
|
||||
}
|
||||
/* keywords */
|
||||
if (stream.match(keywordRegex)) {
|
||||
return 'keyword'
|
||||
}
|
||||
}
|
||||
|
||||
/* pairs (associative arrays) -> key */
|
||||
if (
|
||||
!state.pair &&
|
||||
stream.match(/^\s*(?:[,[\]{}&*!|>'"%@`][^\s'":]|[^,[\]{}#&*!|>'"%@`])[^#]*?(?=\s*:($|\s))/)
|
||||
) {
|
||||
state.pair = true
|
||||
state.keyCol = stream.indentation()
|
||||
return 'atom'
|
||||
}
|
||||
if (state.pair && stream.match(/^:\s*/)) {
|
||||
state.pairStart = true
|
||||
return 'meta'
|
||||
}
|
||||
|
||||
/* nothing found, continue */
|
||||
state.pairStart = false
|
||||
state.escaped = ch == '\\'
|
||||
stream.next()
|
||||
return null
|
||||
},
|
||||
startState: function (): StreamParserYamlState {
|
||||
return {
|
||||
pair: false,
|
||||
pairStart: false,
|
||||
keyCol: 0,
|
||||
inlinePairs: 0,
|
||||
inlineList: 0,
|
||||
literal: false,
|
||||
escaped: false,
|
||||
}
|
||||
},
|
||||
languageData: {
|
||||
commentTokens: { line: '#' },
|
||||
},
|
||||
}
|
||||
|
||||
interface StreamParserYamlState {
|
||||
pair: boolean
|
||||
pairStart: boolean
|
||||
keyCol: number
|
||||
inlinePairs: number
|
||||
inlineList: number
|
||||
literal: boolean
|
||||
escaped: boolean
|
||||
}
|
||||
@@ -1,131 +0,0 @@
|
||||
import { EditorView } from '@codemirror/view'
|
||||
import { Extension } from '@codemirror/state'
|
||||
import { tags as t } from '@lezer/highlight'
|
||||
import { HighlightStyle, syntaxHighlighting } from '@codemirror/language'
|
||||
|
||||
const ui = {
|
||||
background: '#1e1e1e',
|
||||
foreground: '#d4d4d4',
|
||||
}
|
||||
|
||||
const mainsailEditor = EditorView.theme(
|
||||
{
|
||||
'&': {
|
||||
color: '#d4d4d4',
|
||||
backgroundColor: ui.background,
|
||||
},
|
||||
'.cm-activeLine.cm-line': {
|
||||
caretColor: '#d4d4d4 !important',
|
||||
},
|
||||
|
||||
'.cm-gutters': {
|
||||
backgroundColor: ui.background,
|
||||
color: '#858585',
|
||||
border: 'none',
|
||||
},
|
||||
|
||||
'.cm-activeLine': {
|
||||
background: 'rgba(43,47,61,0.5)',
|
||||
},
|
||||
|
||||
'.cm-activeLineGutter': {
|
||||
color: '#c6c6c6',
|
||||
backgroundColor: 'rgba(33, 36, 49, 0.5)',
|
||||
},
|
||||
|
||||
'.cm-selectionMatch': {
|
||||
backgroundColor: '#add6ff26',
|
||||
},
|
||||
|
||||
'.cm-button': {
|
||||
'font-family': 'Roboto,sans-serif',
|
||||
'font-weight': '500',
|
||||
'font-size': '.675rem',
|
||||
'letter-spacing': '0.0892857143em',
|
||||
'vertical-align': 'middle',
|
||||
padding: '0.3em 1em',
|
||||
'border-radius': '4px',
|
||||
'border-width': '0',
|
||||
color: 'var(--color-primary)',
|
||||
'background-color': 'var(--v-secondary-darken2)',
|
||||
'background-image': 'none!important',
|
||||
'text-transform': 'uppercase',
|
||||
'text-indent': '0.0892857143em',
|
||||
'text-aling': 'left',
|
||||
},
|
||||
|
||||
'.cm-textfield:focus': {
|
||||
'border-color': 'var(--color-primary)!important',
|
||||
},
|
||||
|
||||
'.cm-textfield:focus-visible': {
|
||||
'border-color': 'var(--color-primary)!important',
|
||||
},
|
||||
|
||||
'.cm-textfield::placeholder': {
|
||||
'text-transform': 'uppercase',
|
||||
},
|
||||
'.cm-panel.cm-search label': {
|
||||
'font-weight': '500',
|
||||
'font-family': 'Roboto,sans-serif',
|
||||
'letter-spacing': '0.0892857143em',
|
||||
'text-transform': 'uppercase',
|
||||
'font-size': '12px',
|
||||
'white-space': 'pre',
|
||||
color: 'var(--v-primary-base)',
|
||||
},
|
||||
|
||||
'.cm-panel.cm-search [name=close]': {
|
||||
'font-family': 'Roboto,sans-serif',
|
||||
'text-transform': 'uppercase',
|
||||
'font-size': '200%',
|
||||
'white-space': 'pre',
|
||||
color: 'var(--color-primary)',
|
||||
'padding-right': '5px',
|
||||
'padding-top': '5px',
|
||||
},
|
||||
|
||||
'.cm-button:hover': {
|
||||
'background-color': 'var(--v-secondary-lighten1)',
|
||||
'background-image': 'none!important',
|
||||
'transition-duration': '0.5s',
|
||||
'transition-timing-function': 'cubic-bezier(1.2,0,.2,1)',
|
||||
},
|
||||
|
||||
'.cm-textfield': {
|
||||
'font-family': 'Roboto,sans-serif',
|
||||
'vertical-align': 'middle',
|
||||
'font-size': '.675rem',
|
||||
border: '1px solid silver',
|
||||
backgroundColor: ui.background,
|
||||
padding: '.3em .1em',
|
||||
'padding-left': '0.6em',
|
||||
'border-radius': '0.2em',
|
||||
},
|
||||
|
||||
'.cm-panels': {
|
||||
'background-color': 'var(--v-toolbar-base)',
|
||||
},
|
||||
},
|
||||
{ dark: true }
|
||||
)
|
||||
|
||||
const mainsailHighlightStyle = HighlightStyle.define([
|
||||
{ tag: t.number, color: '#b5cea8' },
|
||||
{ tag: [t.meta], color: '#d4d4d4' },
|
||||
{ tag: [t.comment], color: '#6a9955' },
|
||||
{ tag: t.atom, color: '#9cdcfe' },
|
||||
{ tag: t.string, color: '#4ec9b0' },
|
||||
{ tag: t.namespace, color: '#569cd6', fontWeight: 'bold' },
|
||||
{ tag: t.className, color: '#c586c0' },
|
||||
{ tag: t.name, color: '#e40', fontWeight: 'bold' },
|
||||
{ tag: t.propertyName, color: '#e56735' },
|
||||
])
|
||||
const fn0 = mainsailHighlightStyle.style
|
||||
// noinspection JSConstantReassignment
|
||||
// @ts-ignore
|
||||
mainsailHighlightStyle.style = (tags) => fn0(tags || [])
|
||||
|
||||
/// Extension to enable the Mox theme (both the editor theme and
|
||||
/// the highlight style).
|
||||
export const mainsailTheme: Extension = [mainsailEditor, syntaxHighlighting(mainsailHighlightStyle)]
|
||||
@@ -28,6 +28,7 @@ const routes: AppRoute[] = [
|
||||
component: Dashboard,
|
||||
alwaysShow: true,
|
||||
showInNavi: true,
|
||||
position: 10,
|
||||
},
|
||||
{
|
||||
title: 'Printers',
|
||||
@@ -43,6 +44,7 @@ const routes: AppRoute[] = [
|
||||
component: Webcam,
|
||||
alwaysShow: true,
|
||||
showInNavi: true,
|
||||
position: 20,
|
||||
},
|
||||
{
|
||||
title: 'Console',
|
||||
@@ -52,6 +54,7 @@ const routes: AppRoute[] = [
|
||||
alwaysShow: true,
|
||||
showInNavi: true,
|
||||
klipperIsConnected: true,
|
||||
position: 30,
|
||||
},
|
||||
{
|
||||
title: 'Heightmap',
|
||||
@@ -61,6 +64,7 @@ const routes: AppRoute[] = [
|
||||
alwaysShow: false,
|
||||
showInNavi: true,
|
||||
klipperComponent: 'bed_mesh',
|
||||
position: 40,
|
||||
},
|
||||
{
|
||||
title: 'G-Code Files',
|
||||
@@ -70,6 +74,7 @@ const routes: AppRoute[] = [
|
||||
alwaysShow: true,
|
||||
showInNavi: true,
|
||||
registeredDirectory: 'gcodes',
|
||||
position: 50,
|
||||
},
|
||||
{
|
||||
title: 'G-Code Viewer',
|
||||
@@ -78,6 +83,7 @@ const routes: AppRoute[] = [
|
||||
component: () => import('../pages/Viewer.vue'),
|
||||
alwaysShow: true,
|
||||
showInNavi: true,
|
||||
position: 60,
|
||||
},
|
||||
{
|
||||
title: 'History',
|
||||
@@ -87,6 +93,7 @@ const routes: AppRoute[] = [
|
||||
alwaysShow: true,
|
||||
showInNavi: true,
|
||||
moonrakerComponent: 'history',
|
||||
position: 70,
|
||||
},
|
||||
{
|
||||
title: 'Timelapse',
|
||||
@@ -96,6 +103,7 @@ const routes: AppRoute[] = [
|
||||
alwaysShow: true,
|
||||
showInNavi: true,
|
||||
moonrakerComponent: 'timelapse',
|
||||
position: 80,
|
||||
},
|
||||
{
|
||||
title: 'Machine',
|
||||
@@ -104,6 +112,7 @@ const routes: AppRoute[] = [
|
||||
component: Machine,
|
||||
alwaysShow: true,
|
||||
showInNavi: true,
|
||||
position: 90,
|
||||
},
|
||||
{
|
||||
title: null,
|
||||
@@ -130,4 +139,5 @@ export interface AppRoute {
|
||||
klipperComponent?: string
|
||||
klipperIsConnected?: boolean
|
||||
children?: AppRoute[]
|
||||
position?: number
|
||||
}
|
||||
+40
-56
@@ -12,6 +12,36 @@ export const actions: ActionTree<EditorState, RootState> = {
|
||||
commit('reset')
|
||||
},
|
||||
|
||||
downloadProgress({ state, commit }, payload: { progressEvent: any; direction: string; filesize: number | null }) {
|
||||
let speedOutput: string = state.loaderProgress.speed
|
||||
let lastTimestamp = state.loaderProgress.lastTimestamp
|
||||
let lastLoaded = state.loaderProgress.lastLoaded
|
||||
|
||||
const diffTime = payload.progressEvent.timeStamp - state.loaderProgress.lastTimestamp
|
||||
if (diffTime > 500) {
|
||||
const diffData = payload.progressEvent.loaded - lastLoaded
|
||||
let speed = diffData / diffTime
|
||||
const unit = ['kB', 'MB', 'GB']
|
||||
let unitSelect = 0
|
||||
while (speed > 1024) {
|
||||
speed /= 1024.0
|
||||
unitSelect = Math.min(2, unitSelect + 1)
|
||||
}
|
||||
speedOutput = speed.toFixed(2) + unit[unitSelect]
|
||||
lastTimestamp = payload.progressEvent.timeStamp
|
||||
lastLoaded = payload.progressEvent.loaded
|
||||
}
|
||||
|
||||
commit('updateLoader', {
|
||||
direction: payload.direction,
|
||||
speed: speedOutput,
|
||||
loaded: payload.progressEvent.loaded,
|
||||
total: payload.filesize ?? payload.progressEvent.total,
|
||||
lastLoaded,
|
||||
lastTimestamp,
|
||||
})
|
||||
},
|
||||
|
||||
openFile({ state, dispatch, commit, rootGetters }, payload) {
|
||||
const fullFilepathArray = []
|
||||
fullFilepathArray.push(payload.root)
|
||||
@@ -37,36 +67,12 @@ export const actions: ActionTree<EditorState, RootState> = {
|
||||
axios
|
||||
.get(url, {
|
||||
cancelToken: source.token,
|
||||
onDownloadProgress: (progressEvent) => {
|
||||
const total = progressEvent.total > 0 ? progressEvent.total : payload.size ?? 0
|
||||
|
||||
let speedOutput: string = state.loaderProgress.speed
|
||||
let lastTimestamp = state.loaderProgress.lastTimestamp
|
||||
let lastLoaded = state.loaderProgress.lastLoaded
|
||||
const diffTime = progressEvent.timeStamp - state.loaderProgress.lastTimestamp
|
||||
if (diffTime > 500) {
|
||||
const diffData = progressEvent.loaded - lastLoaded
|
||||
let speed = diffData / diffTime
|
||||
const unit = ['kB', 'MB', 'GB']
|
||||
let unitSelect = 0
|
||||
while (speed > 1024) {
|
||||
speed /= 1024.0
|
||||
unitSelect = Math.min(2, unitSelect + 1)
|
||||
}
|
||||
speedOutput = speed.toFixed(2) + unit[unitSelect]
|
||||
lastTimestamp = progressEvent.timeStamp
|
||||
lastLoaded = progressEvent.loaded
|
||||
}
|
||||
|
||||
this.commit('editor/updateLoader', {
|
||||
onDownloadProgress: (progressEvent) =>
|
||||
dispatch('downloadProgress', {
|
||||
progressEvent,
|
||||
direction: 'downloading',
|
||||
speed: speedOutput,
|
||||
loaded: progressEvent.loaded,
|
||||
total,
|
||||
lastLoaded,
|
||||
lastTimestamp,
|
||||
})
|
||||
},
|
||||
filesize: payload.size,
|
||||
}),
|
||||
responseType: 'blob',
|
||||
})
|
||||
.then((res) => res.data.text())
|
||||
@@ -106,34 +112,12 @@ export const actions: ActionTree<EditorState, RootState> = {
|
||||
axios
|
||||
.post(url, formData, {
|
||||
cancelToken: source.token,
|
||||
onUploadProgress: (progressEvent) => {
|
||||
let speedOutput: string = state.loaderProgress.speed
|
||||
let lastTimestamp = state.loaderProgress.lastTimestamp
|
||||
let lastLoaded = state.loaderProgress.lastLoaded
|
||||
const diffTime = progressEvent.timeStamp - state.loaderProgress.lastTimestamp
|
||||
if (diffTime > 500) {
|
||||
const diffData = progressEvent.loaded - lastLoaded
|
||||
let speed = diffData / diffTime
|
||||
const unit = ['kB', 'MB', 'GB']
|
||||
let unitSelect = 0
|
||||
while (speed > 1024) {
|
||||
speed /= 1024.0
|
||||
unitSelect = Math.min(2, unitSelect + 1)
|
||||
}
|
||||
speedOutput = speed.toFixed(2) + unit[unitSelect]
|
||||
lastTimestamp = progressEvent.timeStamp
|
||||
lastLoaded = progressEvent.loaded
|
||||
}
|
||||
|
||||
this.commit('editor/updateLoader', {
|
||||
onUploadProgress: (progressEvent) =>
|
||||
dispatch('downloadProgress', {
|
||||
progressEvent,
|
||||
direction: 'uploading',
|
||||
speed: speedOutput,
|
||||
loaded: progressEvent.loaded,
|
||||
total: progressEvent.total,
|
||||
lastLoaded: lastLoaded,
|
||||
lastTimestamp: lastTimestamp,
|
||||
})
|
||||
},
|
||||
filesize: null,
|
||||
}),
|
||||
})
|
||||
.then((response) => {
|
||||
return response.data
|
||||
|
||||
@@ -190,7 +190,7 @@ export const actions: ActionTree<FarmPrinterState, RootState> = {
|
||||
const data = 'status' in payload ? { ...payload.status } : { ...payload }
|
||||
commit('setData', data)
|
||||
|
||||
if ('print_stats' in data && 'filename' in data.print_stats) {
|
||||
if ((data.print_stats?.filename ?? '') !== '') {
|
||||
dispatch('sendObj', {
|
||||
method: 'server.files.metadata',
|
||||
params: { filename: data.print_stats?.filename },
|
||||
|
||||
+83
-34
@@ -9,7 +9,7 @@ import {
|
||||
} from '@/store/files/types'
|
||||
import { RootState } from '@/store/types'
|
||||
import i18n from '@/plugins/i18n'
|
||||
import { validGcodeExtensions } from '@/store/variables'
|
||||
import { hiddenDirectories, validGcodeExtensions } from '@/store/variables'
|
||||
import axios from 'axios'
|
||||
|
||||
export const actions: ActionTree<FileState, RootState> = {
|
||||
@@ -67,28 +67,30 @@ export const actions: ActionTree<FileState, RootState> = {
|
||||
}
|
||||
|
||||
if (payload.dirs?.length) {
|
||||
payload.dirs.forEach((dir: ApiGetDirectoryReturnDir) => {
|
||||
if (
|
||||
directory?.childrens?.findIndex(
|
||||
(element: FileStateFile) => element.isDirectory && element.filename === dir.dirname
|
||||
) === -1
|
||||
) {
|
||||
commit('setCreateDir', {
|
||||
item: {
|
||||
path: path.length ? path + '/' + dir.dirname : dir.dirname,
|
||||
root: root,
|
||||
permissions: dir.permissions,
|
||||
modified: dir.modified * 1000,
|
||||
},
|
||||
})
|
||||
payload.dirs
|
||||
.filter((dir) => !hiddenDirectories.includes(dir.dirname))
|
||||
.forEach((dir: ApiGetDirectoryReturnDir) => {
|
||||
if (
|
||||
directory?.childrens?.findIndex(
|
||||
(element: FileStateFile) => element.isDirectory && element.filename === dir.dirname
|
||||
) === -1
|
||||
) {
|
||||
commit('setCreateDir', {
|
||||
item: {
|
||||
path: path.length ? path + '/' + dir.dirname : dir.dirname,
|
||||
root: root,
|
||||
permissions: dir.permissions,
|
||||
modified: dir.modified * 1000,
|
||||
},
|
||||
})
|
||||
|
||||
Vue.$socket.emit(
|
||||
'server.files.get_directory',
|
||||
{ path: payload.requestParams.path + '/' + dir.dirname },
|
||||
{ action: 'files/getDirectory' }
|
||||
)
|
||||
}
|
||||
})
|
||||
Vue.$socket.emit(
|
||||
'server.files.get_directory',
|
||||
{ path: payload.requestParams.path + '/' + dir.dirname },
|
||||
{ action: 'files/getDirectory' }
|
||||
)
|
||||
}
|
||||
})
|
||||
}
|
||||
|
||||
if (payload.files?.length) {
|
||||
@@ -135,6 +137,28 @@ export const actions: ActionTree<FileState, RootState> = {
|
||||
}
|
||||
},
|
||||
|
||||
scanMetadata({ commit }, payload: { filename: string }) {
|
||||
const rootPath = payload.filename.slice(0, payload.filename.indexOf('/'))
|
||||
if (rootPath === 'gcodes') {
|
||||
const requestFilename = payload.filename.slice(7)
|
||||
commit('setMetadataRequested', { filename: requestFilename })
|
||||
Vue.$socket.emit(
|
||||
'server.files.metascan',
|
||||
{ filename: requestFilename },
|
||||
{ action: 'files/getScanMetadata' }
|
||||
)
|
||||
}
|
||||
},
|
||||
|
||||
getScanMetadata({ dispatch }, payload: { filename: string }) {
|
||||
if (payload !== undefined && payload.filename !== '') {
|
||||
dispatch('getMetadata', payload)
|
||||
|
||||
const filename = payload.filename
|
||||
Vue.$toast.success(i18n.t('Files.ScanMetaSuccess', { filename }).toString())
|
||||
}
|
||||
},
|
||||
|
||||
requestMetadata({ commit }, payload: { filename: string }) {
|
||||
const rootPath = payload.filename.slice(0, payload.filename.indexOf('/'))
|
||||
if (rootPath === 'gcodes') {
|
||||
@@ -167,18 +191,21 @@ export const actions: ActionTree<FileState, RootState> = {
|
||||
break
|
||||
|
||||
case 'move_file':
|
||||
if (payload.source_item?.path === 'printer_autosave.cfg' && payload.source_item?.root === 'config')
|
||||
// just create a new printer_autosave.cfg file instead of rename the printer.cfg
|
||||
if (payload.source_item?.path === 'printer_autosave.cfg' && payload.source_item?.root === 'config') {
|
||||
commit('setCreateFile', payload)
|
||||
else {
|
||||
await commit('setMoveFile', payload)
|
||||
if (
|
||||
payload.item.root === 'gcodes' &&
|
||||
validGcodeExtensions.includes(payload.item.path.slice(payload.item.path.lastIndexOf('.')))
|
||||
) {
|
||||
await dispatch('requestMetadata', {
|
||||
filename: 'gcodes/' + payload.item.path,
|
||||
})
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
// move all other files
|
||||
await commit('setMoveFile', payload)
|
||||
if (
|
||||
payload.item.root === 'gcodes' &&
|
||||
validGcodeExtensions.includes(payload.item.path.slice(payload.item.path.lastIndexOf('.')))
|
||||
) {
|
||||
await dispatch('requestMetadata', {
|
||||
filename: 'gcodes/' + payload.item.path,
|
||||
})
|
||||
}
|
||||
break
|
||||
|
||||
@@ -220,7 +247,7 @@ export const actions: ActionTree<FileState, RootState> = {
|
||||
const filename = payload.requestParams.dest
|
||||
.substr(payload.requestParams.dest.lastIndexOf('/'))
|
||||
.replace('/', '')
|
||||
const sourceDir = payload.requestParams.dest.substr(0, payload.requestParams.dest.lastIndexOf('/'))
|
||||
const sourceDir = payload.requestParams.source.substr(0, payload.requestParams.source.lastIndexOf('/'))
|
||||
const destDir = payload.requestParams.dest.substr(0, payload.requestParams.dest.lastIndexOf('/'))
|
||||
|
||||
if (sourceDir === destDir) Vue.$toast.success(<string>i18n.t('Files.SuccessfullyRenamed', { filename }))
|
||||
@@ -332,4 +359,26 @@ export const actions: ActionTree<FileState, RootState> = {
|
||||
uploadSetMaxNumber({ commit }, payload) {
|
||||
commit('uploadSetMaxNumber', payload)
|
||||
},
|
||||
|
||||
downloadZip({ rootGetters }, payload) {
|
||||
const apiUrl = rootGetters['socket/getUrl']
|
||||
const url = `${apiUrl}/server/files/${payload.destination.root}/${encodeURI(payload.destination.path)}`
|
||||
window.open(url)
|
||||
},
|
||||
|
||||
rolloverLog(_, payload) {
|
||||
payload.rolled_over.forEach((name: string) => {
|
||||
Vue.$toast.success(<string>i18n.t('Machine.LogfilesPanel.RolloverToastSuccessful', { name }))
|
||||
})
|
||||
|
||||
Object.keys(payload.failed).forEach((name: string) => {
|
||||
const message = payload.failed[name]
|
||||
|
||||
Vue.$toast.error(<string>i18n.t('Machine.LogfilesPanel.RolloverToastFailed', { name, message }))
|
||||
})
|
||||
|
||||
setTimeout(() => {
|
||||
Vue.$socket.emit('server.files.get_directory', { path: 'logs' }, { action: 'files/getDirectory' })
|
||||
}, 500)
|
||||
},
|
||||
}
|
||||
@@ -199,11 +199,14 @@ export const getters: GetterTree<FileState, any> = {
|
||||
|
||||
const file = directory?.childrens?.find(
|
||||
(element: FileStateFile) =>
|
||||
element.filename !== undefined &&
|
||||
element.filename.substr(0, element.filename.lastIndexOf('.')) === acceptName &&
|
||||
acceptExtensions.includes(element.filename.substr(element.filename.lastIndexOf('.') + 1))
|
||||
element.filename?.slice(0, element.filename?.lastIndexOf('.')) === acceptName &&
|
||||
acceptExtensions.includes(element.filename?.slice(element.filename?.lastIndexOf('.') + 1))
|
||||
)
|
||||
return file ? rootGetters['socket/getUrl'] + '/server/files/config/' + themeDir + '/' + file.filename : null
|
||||
if (!file) return null
|
||||
|
||||
return `${rootGetters['socket/getUrl']}/server/files/config/${themeDir}/${
|
||||
file.filename
|
||||
}?timestamp=${file.modified.getTime()}`
|
||||
},
|
||||
|
||||
getSidebarLogo: (state, getters) => {
|
||||
@@ -234,6 +237,13 @@ export const getters: GetterTree<FileState, any> = {
|
||||
return getters['getThemeFileUrl'](acceptName, acceptExtensions) ?? null
|
||||
},
|
||||
|
||||
getCustomNaviPoints: (state, getters) => {
|
||||
const acceptName = 'navi'
|
||||
const acceptExtensions = ['json']
|
||||
|
||||
return getters['getThemeFileUrl'](acceptName, acceptExtensions) ?? null
|
||||
},
|
||||
|
||||
getCustomFavicons: (state, getters) => {
|
||||
const acceptName16 = 'favicon-32x32'
|
||||
const acceptName32 = 'favicon-32x32'
|
||||
|
||||
@@ -91,7 +91,7 @@ export const mutations: MutationTree<FileState> = {
|
||||
parent[indexFile].metadataRequested = false
|
||||
parent[indexFile].metadataPulled = false
|
||||
|
||||
const extension = filename.substr(filename.lastIndexOf('.') + 1)
|
||||
const extension = filename.substring(filename.lastIndexOf('.') + 1)
|
||||
if (payload.item.root === 'gcodes' && extension === 'gcode') {
|
||||
Vue.$socket.emit(
|
||||
'server.files.metadata',
|
||||
@@ -109,8 +109,8 @@ export const mutations: MutationTree<FileState> = {
|
||||
|
||||
const lastSlashOld = payload.source_item.path.lastIndexOf('/')
|
||||
if (lastSlashOld !== -1) {
|
||||
filenameOld = payload.source_item.path.substr(lastSlashOld + 1)
|
||||
pathnameOld = payload.source_item.root + '/' + payload.source_item.path.substr(0, lastSlashOld + 1)
|
||||
filenameOld = payload.source_item.path.substring(lastSlashOld + 1)
|
||||
pathnameOld = payload.source_item.root + '/' + payload.source_item.path.substring(0, lastSlashOld)
|
||||
}
|
||||
|
||||
let filenameNew = payload.item.path
|
||||
@@ -118,31 +118,27 @@ export const mutations: MutationTree<FileState> = {
|
||||
|
||||
const lastSlashNew = payload.item.path.lastIndexOf('/')
|
||||
if (lastSlashNew !== -1) {
|
||||
filenameNew = payload.item.path.substr(lastSlashNew + 1)
|
||||
pathnameNew = payload.item.root + '/' + payload.item.path.substr(0, lastSlashNew + 1)
|
||||
filenameNew = payload.item.path.substring(lastSlashNew + 1)
|
||||
pathnameNew = payload.item.root + '/' + payload.item.path.substring(0, lastSlashNew)
|
||||
}
|
||||
|
||||
const pathOld = findDirectory(state.filetree, pathnameOld.split('/'))
|
||||
const indexFile = pathOld?.findIndex((element: FileStateFile) => element.filename === filenameOld)
|
||||
|
||||
if (indexFile && pathOld && pathOld[indexFile]) {
|
||||
const file = pathOld.splice(indexFile, 1)[0]
|
||||
file.filename = filenameNew
|
||||
// break if old file not found
|
||||
if (indexFile === undefined || indexFile === -1 || pathOld === null) return
|
||||
|
||||
//cleanup thumbnails and force reload
|
||||
if (
|
||||
pathnameOld !== pathnameNew &&
|
||||
'metadataPulled' in file &&
|
||||
file.metadataPulled &&
|
||||
'thumbnails' in file
|
||||
) {
|
||||
file.metadataPulled = false
|
||||
delete file.thumbnails
|
||||
}
|
||||
const file = pathOld.splice(indexFile, 1)[0]
|
||||
file.filename = filenameNew
|
||||
|
||||
const newPath = findDirectory(state.filetree, pathnameNew.split('/'))
|
||||
newPath?.push(file)
|
||||
//cleanup thumbnails and force reload
|
||||
if (pathnameOld !== pathnameNew && 'metadataPulled' in file && file.metadataPulled && 'thumbnails' in file) {
|
||||
file.metadataPulled = false
|
||||
delete file.thumbnails
|
||||
}
|
||||
|
||||
const newPath = findDirectory(state.filetree, pathnameNew.split('/'))
|
||||
newPath?.push(file)
|
||||
},
|
||||
|
||||
setModifyFile(state, payload) {
|
||||
|
||||
+48
-23
@@ -11,35 +11,60 @@ export const getters: GetterTree<RootState, any> = {
|
||||
},
|
||||
|
||||
getTitle: (state, getters) => {
|
||||
if (state.socket?.isConnected && state.printer) {
|
||||
let printer_state = state.printer?.print_stats?.state ?? ''
|
||||
if (!state.socket?.isConnected) return 'Mainsail'
|
||||
if (state.server?.klippy_state !== 'ready') return i18n.t('App.Titles.Error')
|
||||
|
||||
if (state.printer['gcode_macro TIMELAPSE_TAKE_FRAME']?.is_paused && printer_state === 'paused')
|
||||
printer_state = 'printing'
|
||||
// get printer_state
|
||||
let printer_state = state.printer?.print_stats?.state ?? ''
|
||||
// skip pause, if timelapse is active
|
||||
if (state.printer && state.printer['gcode_macro TIMELAPSE_TAKE_FRAME']?.is_paused && printer_state === 'paused')
|
||||
printer_state = 'printing'
|
||||
|
||||
if (state.server?.klippy_state !== 'ready') return i18n.t('App.Titles.Error')
|
||||
else if (printer_state === 'paused') return i18n.t('App.Titles.Pause')
|
||||
else if (printer_state === 'printing') {
|
||||
const eta = getters['printer/getEstimatedTimeETAFormat']
|
||||
// return pause title
|
||||
if (printer_state === 'paused') return i18n.t('App.Titles.Pause')
|
||||
|
||||
if (eta !== '--')
|
||||
return i18n.t('App.Titles.PrintingETA', {
|
||||
percent: (getters['printer/getPrintPercent'] * 100).toFixed(0),
|
||||
filename: state.printer.print_stats?.filename,
|
||||
eta,
|
||||
})
|
||||
else
|
||||
return i18n.t('App.Titles.Printing', {
|
||||
percent: (getters['printer/getPrintPercent'] * 100).toFixed(0),
|
||||
filename: state.printer.print_stats?.filename,
|
||||
})
|
||||
} else if (state.printer?.print_stats?.state === 'complete')
|
||||
return i18n.t('App.Titles.Complete', { filename: state.printer.print_stats.filename })
|
||||
// return complete title
|
||||
if (state.printer?.print_stats?.state === 'complete') {
|
||||
let output = i18n.t('App.Titles.Complete', {
|
||||
filename: state.printer.print_stats.filename,
|
||||
})
|
||||
|
||||
return state.gui?.general.printername ?? state.printer?.hostname ?? 'Mainsail'
|
||||
// add printer name to title if it exists
|
||||
if (state.gui?.general.printername) output += `- ${state.gui?.general.printername}`
|
||||
|
||||
return output
|
||||
}
|
||||
|
||||
return 'Mainsail'
|
||||
// return printing title
|
||||
if (printer_state === 'printing') {
|
||||
const eta = getters['printer/getEstimatedTimeETAFormat']
|
||||
const percent = (getters['printer/getPrintPercent'] * 100).toFixed(0)
|
||||
|
||||
if (eta !== '--') {
|
||||
let output = i18n.t('App.Titles.PrintingETA', {
|
||||
percent: percent,
|
||||
filename: state.printer?.print_stats?.filename,
|
||||
eta,
|
||||
})
|
||||
|
||||
// add printer name to title if it exists
|
||||
if (state.gui?.general.printername) output += `- ${state.gui?.general.printername}`
|
||||
|
||||
return output
|
||||
}
|
||||
|
||||
let output = i18n.t('App.Titles.Printing', {
|
||||
percent: percent,
|
||||
filename: state.printer?.print_stats?.filename,
|
||||
})
|
||||
|
||||
// add printer name to title if it exists
|
||||
if (state.gui?.general.printername) output += `- ${state.gui?.general.printername}`
|
||||
|
||||
return output
|
||||
}
|
||||
|
||||
return state.gui?.general.printername ?? state.printer?.hostname ?? 'Mainsail'
|
||||
},
|
||||
|
||||
getDependencies: (state) => {
|
||||
|
||||
@@ -48,10 +48,10 @@ export const getters: GetterTree<GuiState, any> = {
|
||||
allPanels = allPanels.filter((name) => name !== 'macros')
|
||||
}
|
||||
|
||||
// remove toolhead panel, if kinematics === none
|
||||
// remove toolhead & machine-settings panel, if kinematics === none
|
||||
const printerKinematics = rootGetters['printer/getKinematics']
|
||||
if (printerKinematics === 'none') {
|
||||
allPanels = allPanels.filter((name) => name !== 'toolhead-control')
|
||||
allPanels = allPanels.filter((name) => !['toolhead-control', 'machine-settings'].includes(name))
|
||||
}
|
||||
|
||||
// remove extruder panel, if printerExtruderCount < 1
|
||||
@@ -82,10 +82,10 @@ export const getters: GetterTree<GuiState, any> = {
|
||||
const layoutName = column ? `${viewport}Layout${column}` : `${viewport}Layout`
|
||||
// @ts-ignore
|
||||
let panels = state.dashboard[layoutName]?.filter((element: any) => element !== null) ?? []
|
||||
const allPossiblePanels = getters['getAllPossiblePanels']
|
||||
|
||||
if (column < 2) {
|
||||
const allViewportPanels = getters['getAllPanelsFromViewport'](viewport)
|
||||
const allPossiblePanels = getters['getAllPossiblePanels']
|
||||
const missingPanels: any[] = []
|
||||
|
||||
allPossiblePanels.forEach((panelname: string) => {
|
||||
@@ -121,11 +121,7 @@ export const getters: GetterTree<GuiState, any> = {
|
||||
}
|
||||
}
|
||||
|
||||
if (getters['webcams/getWebcams'].length === 0) {
|
||||
panels = panels.filter((element: any) => element.name !== 'webcam')
|
||||
}
|
||||
|
||||
return panels
|
||||
return panels.filter((element: any) => allPossiblePanels.includes(element.name))
|
||||
},
|
||||
|
||||
getAllPanelsFromViewport: (state) => (viewport: string) => {
|
||||
|
||||
+17
-2
@@ -10,10 +10,11 @@ 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 { navigation } from '@/store/gui/navigation'
|
||||
import { notifications } from '@/store/gui/notifications'
|
||||
import { presets } from '@/store/gui/presets'
|
||||
import { remoteprinters } from '@/store/gui/remoteprinters'
|
||||
import { webcams } from '@/store/gui/webcams'
|
||||
import { notifications } from '@/store/gui/notifications'
|
||||
|
||||
export const getDefaultState = (): GuiState => {
|
||||
return {
|
||||
@@ -110,6 +111,7 @@ export const getDefaultState = (): GuiState => {
|
||||
escToClose: true,
|
||||
confirmUnsavedChanges: true,
|
||||
klipperRestartMethod: 'FIRMWARE_RESTART',
|
||||
tabSize: 2,
|
||||
moonrakerRestartInstance: null,
|
||||
},
|
||||
gcodeViewer: {
|
||||
@@ -138,6 +140,11 @@ export const getDefaultState = (): GuiState => {
|
||||
axis_minimum: null,
|
||||
axis_maximum: null,
|
||||
},
|
||||
showGCodePanel: false,
|
||||
cncMode: false,
|
||||
},
|
||||
navigation: {
|
||||
entries: [],
|
||||
},
|
||||
uiSettings: {
|
||||
logo: defaultLogoColor,
|
||||
@@ -150,8 +157,14 @@ export const getDefaultState = (): GuiState => {
|
||||
boolBigThumbnail: true,
|
||||
boolWideNavDrawer: false,
|
||||
boolHideUploadAndPrintButton: false,
|
||||
boolWebcamNavi: false,
|
||||
navigationStyle: 'iconsAndText',
|
||||
powerDeviceName: null,
|
||||
hideSaveConfigForBedMash: false,
|
||||
disableFanAnimation: false,
|
||||
boolManualProbeDialog: true,
|
||||
boolBedScrewsDialog: true,
|
||||
boolScrewsTiltAdjustDialog: true,
|
||||
tempchartHeight: 250,
|
||||
},
|
||||
view: {
|
||||
blockFileUpload: false,
|
||||
@@ -199,6 +212,7 @@ export const getDefaultState = (): GuiState => {
|
||||
},
|
||||
history: {
|
||||
countPerPage: 10,
|
||||
toggleChartCol2: 'chart',
|
||||
toggleChartCol3: 'filament_usage',
|
||||
hidePrintStatus: [],
|
||||
hideColums: [
|
||||
@@ -257,6 +271,7 @@ export const gui: Module<GuiState, any> = {
|
||||
gcodehistory,
|
||||
macros,
|
||||
miscellaneous,
|
||||
navigation,
|
||||
notifications,
|
||||
presets,
|
||||
remoteprinters,
|
||||
|
||||
@@ -0,0 +1,27 @@
|
||||
import { ActionTree } from 'vuex'
|
||||
import { RootState } from '@/store/types'
|
||||
import Vue from 'vue'
|
||||
import { GuiNavigationState, GuiNavigationStateEntry } from '@/store/gui/navigation/types'
|
||||
|
||||
export const actions: ActionTree<GuiNavigationState, RootState> = {
|
||||
reset({ commit }) {
|
||||
commit('reset')
|
||||
},
|
||||
|
||||
upload({ state }) {
|
||||
Vue.$socket.emit('server.database.post_item', {
|
||||
namespace: 'mainsail',
|
||||
key: 'navigation.entries',
|
||||
value: state.entries,
|
||||
})
|
||||
},
|
||||
|
||||
updatePos({ commit }, payload: GuiNavigationStateEntry) {
|
||||
commit('updatePos', payload)
|
||||
},
|
||||
|
||||
changeVisibility({ commit, dispatch }, payload: GuiNavigationStateEntry) {
|
||||
commit('changeVisibility', payload)
|
||||
dispatch('upload')
|
||||
},
|
||||
}
|
||||
@@ -0,0 +1,5 @@
|
||||
import { GetterTree } from 'vuex'
|
||||
import { GuiNavigationState } from './types'
|
||||
|
||||
// eslint-disable-next-line
|
||||
export const getters: GetterTree<GuiNavigationState, any> = {}
|
||||
@@ -0,0 +1,23 @@
|
||||
import { Module } from 'vuex'
|
||||
import { actions } from '@/store/gui/navigation/actions'
|
||||
import { mutations } from '@/store/gui/navigation/mutations'
|
||||
import { getters } from '@/store/gui/navigation/getters'
|
||||
import { GuiNavigationState } from '@/store/gui/navigation/types'
|
||||
|
||||
export const getDefaultState = (): GuiNavigationState => {
|
||||
return {
|
||||
entries: [],
|
||||
}
|
||||
}
|
||||
|
||||
// initial state
|
||||
const state = getDefaultState()
|
||||
|
||||
// eslint-disable-next-line
|
||||
export const navigation: Module<GuiNavigationState, any> = {
|
||||
namespaced: true,
|
||||
state,
|
||||
getters,
|
||||
actions,
|
||||
mutations,
|
||||
}
|
||||
Loaded 100 of 113 files, more files were not shown because too many files have changed in this diff.
Show more
Reference in new issue
Block a user