Compare commits
40
Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
ce09984983 | ||
|
|
9bcbfa48de | ||
|
|
43674bf2d5 | ||
|
|
2ebd3a8396 | ||
|
|
eaba28e24b | ||
|
|
51602fe69c | ||
|
|
ee6a603fae | ||
|
|
34f2eb3189 | ||
|
|
b6cfb0fd88 | ||
|
|
5d2400ccbe | ||
|
|
a75b133dea | ||
|
|
f1ab29e4e6 | ||
|
|
bc5731e0bf | ||
|
|
44309b37df | ||
|
|
fbead2efb1 | ||
|
|
b6c2901908 | ||
|
|
3f4eeadb6f | ||
|
|
678eda0e8c | ||
|
|
3784d8e9c0 | ||
|
|
ae1fa8736a | ||
|
|
30b0469ffd | ||
|
|
7ab6f32d3a | ||
|
|
f60811255f | ||
|
|
47dd6ad6d9 | ||
|
|
64f7c2bebd | ||
|
|
d4b1be9fcc | ||
|
|
1779cca828 | ||
|
|
46e8821821 | ||
|
|
470a00c288 | ||
|
|
ad52728131 | ||
|
|
5d94063973 | ||
|
|
0bcfc4b582 | ||
|
|
57aa96420c | ||
|
|
eef899c19e | ||
|
|
94c1f35f9c | ||
|
|
ed82856140 | ||
|
|
a581be6aec | ||
|
|
a2d90df97c | ||
|
|
6fa1c28bc4 | ||
|
|
86ab389b32 |
No files matched your search
@@ -28,7 +28,7 @@ This would define a macro called `PRINT_START` that can be called with an `EXTRU
|
||||
```yaml
|
||||
[gcode_macro PRINT_START]
|
||||
gcode:
|
||||
{% set EXTRUDER_TEMP = params.EXTRUDER|default(10)|int %}
|
||||
{% set EXTRUDER_TEMP = params.EXTRUDER|default(230)|int %}
|
||||
```
|
||||
{% endraw %}
|
||||
Take note of the following important aspects:
|
||||
|
||||
@@ -11,6 +11,18 @@ has_toc: false
|
||||
|
||||
# Deprecated Values
|
||||
|
||||
###### NTC 100K beta 3950
|
||||
## Removal of `NTC 100K beta 3950` sensor type.
|
||||
|
||||
The "NTC 100K beta 3950" temperature sensor is _deprecated_ and will be removed in the near future.
|
||||
|
||||
In order to solve the problem search in your config for `sensor_type: NTC 100K beta 3950` and replace it with `sensor_type: Generic 3950`.
|
||||
|
||||
Most users will find the "Generic 3950" temperature sensor more accurate. Anyway you can continue to use the older (typically less accurate) definition. Therefor define a custom thermistor with `temperature1: 25`, `resistance1: 100000`, and `beta: 3950`.
|
||||
|
||||
[Source](https://www.klipper3d.org/Config_Changes.html){:target="_blank"} Klipper Configuration Changes
|
||||
{: .info}
|
||||
|
||||
###### rpi_temperature
|
||||
## Removal of `rpi_temperature` sensor alias.
|
||||
|
||||
|
||||
Generated
+11
-11
@@ -1,12 +1,12 @@
|
||||
{
|
||||
"name": "mainsail",
|
||||
"version": "2.1.0-alpha",
|
||||
"version": "2.1.0-beta1",
|
||||
"lockfileVersion": 2,
|
||||
"requires": true,
|
||||
"packages": {
|
||||
"": {
|
||||
"name": "mainsail",
|
||||
"version": "2.1.0-alpha",
|
||||
"version": "2.1.0-beta1",
|
||||
"dependencies": {
|
||||
"@codemirror/basic-setup": "^0.19.0",
|
||||
"@codemirror/highlight": "^0.19.2",
|
||||
@@ -19,7 +19,7 @@
|
||||
"@codemirror/view": "^0.19.1",
|
||||
"@sindarius/gcodeviewer": "^2.1.13",
|
||||
"@types/overlayscrollbars": "^1.12.1",
|
||||
"axios": "^0.21.1",
|
||||
"axios": "^0.21.2",
|
||||
"core-js": "^3.16.0",
|
||||
"echarts": "^5.1.2",
|
||||
"echarts-for-vue": "^1.4.1",
|
||||
@@ -4431,11 +4431,11 @@
|
||||
"devOptional": true
|
||||
},
|
||||
"node_modules/axios": {
|
||||
"version": "0.21.1",
|
||||
"resolved": "https://registry.npmjs.org/axios/-/axios-0.21.1.tgz",
|
||||
"integrity": "sha512-dKQiRHxGD9PPRIUNIWvZhPTPpl1rf/OxTYKsqKUDjBwYylTvV7SjSHJb9ratfyzM6wCdLCOYLzs73qpg5c4iGA==",
|
||||
"version": "0.21.2",
|
||||
"resolved": "https://registry.npmjs.org/axios/-/axios-0.21.2.tgz",
|
||||
"integrity": "sha512-87otirqUw3e8CzHTMO+/9kh/FSgXt/eVDvipijwDtEuwbkySWZ9SBm6VEubmJ/kLKEoLQV/POhxXFb66bfekfg==",
|
||||
"dependencies": {
|
||||
"follow-redirects": "^1.10.0"
|
||||
"follow-redirects": "^1.14.0"
|
||||
}
|
||||
},
|
||||
"node_modules/babel-code-frame": {
|
||||
@@ -23870,11 +23870,11 @@
|
||||
"devOptional": true
|
||||
},
|
||||
"axios": {
|
||||
"version": "0.21.1",
|
||||
"resolved": "https://registry.npmjs.org/axios/-/axios-0.21.1.tgz",
|
||||
"integrity": "sha512-dKQiRHxGD9PPRIUNIWvZhPTPpl1rf/OxTYKsqKUDjBwYylTvV7SjSHJb9ratfyzM6wCdLCOYLzs73qpg5c4iGA==",
|
||||
"version": "0.21.2",
|
||||
"resolved": "https://registry.npmjs.org/axios/-/axios-0.21.2.tgz",
|
||||
"integrity": "sha512-87otirqUw3e8CzHTMO+/9kh/FSgXt/eVDvipijwDtEuwbkySWZ9SBm6VEubmJ/kLKEoLQV/POhxXFb66bfekfg==",
|
||||
"requires": {
|
||||
"follow-redirects": "^1.10.0"
|
||||
"follow-redirects": "^1.14.0"
|
||||
}
|
||||
},
|
||||
"babel-code-frame": {
|
||||
|
||||
+2
-2
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "mainsail",
|
||||
"version": "2.1.0-beta1",
|
||||
"version": "2.1.0-beta3",
|
||||
"private": true,
|
||||
"decription": "a klipper web interface",
|
||||
"author": {
|
||||
@@ -25,7 +25,7 @@
|
||||
"@codemirror/view": "^0.19.1",
|
||||
"@sindarius/gcodeviewer": "^2.1.13",
|
||||
"@types/overlayscrollbars": "^1.12.1",
|
||||
"axios": "^0.21.1",
|
||||
"axios": "^0.21.2",
|
||||
"core-js": "^3.16.0",
|
||||
"echarts": "^5.1.2",
|
||||
"echarts-for-vue": "^1.4.1",
|
||||
|
||||
+5
-2
@@ -275,14 +275,17 @@ export default class App extends Mixins(BaseMixin) {
|
||||
}
|
||||
|
||||
appHeight() {
|
||||
const doc = document.documentElement
|
||||
doc.style.setProperty('--app-height', window.innerHeight+'px')
|
||||
this.$nextTick(() => {
|
||||
const doc = document.documentElement
|
||||
doc.style.setProperty('--app-height', window.innerHeight+'px')
|
||||
})
|
||||
}
|
||||
|
||||
mounted(): void {
|
||||
this.drawFavicon(this.print_percent)
|
||||
this.appHeight()
|
||||
window.addEventListener('resize', this.appHeight)
|
||||
window.addEventListener('orientationchange', this.appHeight)
|
||||
}
|
||||
}
|
||||
</script>
|
||||
@@ -35,7 +35,7 @@
|
||||
</v-tabs>
|
||||
</overlay-scrollbars>
|
||||
</v-col>
|
||||
<v-col :class="isMobile ? '' : 'pl-0'" :style="isMobile ? '' : 'width: 700px;'">
|
||||
<v-col :class="isMobile ? '' : 'pl-0'" :style="isMobile ? '' : 'min-width: 500px;'">
|
||||
<overlay-scrollbars :class="'settings-tabs '+(isMobile ? '' : 'height500')" ref="settingsScroll" :options="{ overflowBehavior: { x: 'hidden' } }">
|
||||
<component :is="'settings-'+activeTab+'-tab'" @scrollToTop="scrollToTop"></component>
|
||||
</overlay-scrollbars>
|
||||
|
||||
@@ -50,8 +50,8 @@
|
||||
class="ml-3"
|
||||
v-show="reloadRequired"
|
||||
>
|
||||
<span v-show="$vuetify.breakpoint.smAndUp">{{$t("GCodeViewer.ReloadRequired")}}</span>
|
||||
<v-icon v-show="$vuetify.breakpoint.xs">mdi-reload-alert</v-icon>
|
||||
<span class="d-none d-sm-block">{{$t("GCodeViewer.ReloadRequired")}}</span>
|
||||
<v-icon class="d-sm-none">mdi-reload-alert</v-icon>
|
||||
</v-btn>
|
||||
<v-btn icon tile @click="resetCamera"><v-icon>mdi-camera-retake</v-icon></v-btn>
|
||||
</template>
|
||||
|
||||
@@ -0,0 +1,58 @@
|
||||
<template>
|
||||
<form v-on:submit.prevent="sendCmd">
|
||||
<v-text-field
|
||||
v-model="value"
|
||||
@click:append="resetLimit"
|
||||
:label="label"
|
||||
:suffix="unit"
|
||||
:append-icon="this.value !== this.defaultValue ? 'mdi-refresh' : ''"
|
||||
:error="this.value < 0"
|
||||
:step="step"
|
||||
type="number"
|
||||
min="0"
|
||||
hide-details
|
||||
outlined
|
||||
dense
|
||||
></v-text-field>
|
||||
</form>
|
||||
</template>
|
||||
|
||||
<script lang="ts">
|
||||
import Component from 'vue-class-component'
|
||||
import {Mixins, Prop, Watch} from 'vue-property-decorator'
|
||||
import BaseMixin from '@/components/mixins/base'
|
||||
|
||||
@Component
|
||||
export default class FirmwareRetractionSettingsInput extends Mixins(BaseMixin) {
|
||||
private value: any = 0
|
||||
|
||||
@Prop({ type: String, required: true }) readonly label!: string
|
||||
@Prop({ type: Number, required: false }) readonly step!: string
|
||||
@Prop({ type: Number, required: true, default: 0 }) readonly target!: number
|
||||
@Prop({ type: Number, required: true, default: 0 }) readonly defaultValue!: number
|
||||
@Prop({ type: String, required: true }) readonly attributeName!: string
|
||||
@Prop({ type: String, required: true }) readonly unit!: string
|
||||
|
||||
@Watch('target')
|
||||
targetChanged(newVal: number): void {
|
||||
this.value = newVal
|
||||
}
|
||||
|
||||
created(): void {
|
||||
this.value = this.target
|
||||
}
|
||||
|
||||
resetLimit() {
|
||||
this.value = this.defaultValue
|
||||
|
||||
this.sendCmd()
|
||||
}
|
||||
|
||||
sendCmd() {
|
||||
const gcode = 'SET_RETRACTION ' + this.attributeName + '=' + Math.max(0, this.value).toFixed(2)
|
||||
this.$store.dispatch('server/addEvent', {message: gcode, type: 'command'})
|
||||
this.$socket.emit('printer.gcode.script', {script: gcode})
|
||||
}
|
||||
|
||||
}
|
||||
</script>
|
||||
@@ -10,14 +10,14 @@
|
||||
<v-col :class="pwm ? 'pb-1' : 'pb-3'">
|
||||
<v-subheader class="_fan-slider-subheader">
|
||||
<v-btn
|
||||
v-if="canLock && lockSliders && this.isTouchDevice && controllable"
|
||||
@click="sliderIsLocked = !sliderIsLocked"
|
||||
v-if="lockSliders && this.isTouchDevice && pwm"
|
||||
@click="isLocked = !isLocked"
|
||||
plain
|
||||
small
|
||||
icon
|
||||
>
|
||||
<v-icon small :color="(sliderIsLocked ? 'red' : '')">
|
||||
{{ sliderIsLocked ? 'mdi-lock-outline' : 'mdi-lock-open-variant-outline' }}
|
||||
<v-icon small :color="(isLocked ? 'red' : '')">
|
||||
{{ isLocked ? 'mdi-lock-outline' : 'mdi-lock-open-variant-outline' }}
|
||||
</v-icon>
|
||||
</v-btn>
|
||||
<v-icon
|
||||
@@ -43,7 +43,7 @@
|
||||
<v-slider
|
||||
v-model="value"
|
||||
v-touch="{start: resetLockTimer}"
|
||||
:disabled="canLock && sliderIsLocked"
|
||||
:disabled="isLocked"
|
||||
:min="0.0"
|
||||
:max="1.0"
|
||||
:step="0.01"
|
||||
@@ -52,11 +52,11 @@
|
||||
hide-details
|
||||
>
|
||||
<template v-slot:prepend>
|
||||
<v-icon @click="decrement" :disabled="canLock && sliderIsLocked">mdi-minus</v-icon>
|
||||
<v-icon @click="decrement" :disabled="isLocked">mdi-minus</v-icon>
|
||||
</template>
|
||||
|
||||
<template v-slot:append>
|
||||
<v-icon @click="increment" :disabled="canLock && sliderIsLocked">mdi-plus</v-icon>
|
||||
<v-icon @click="increment" :disabled="isLocked">mdi-plus</v-icon>
|
||||
</template>
|
||||
</v-slider>
|
||||
</v-card-text>
|
||||
@@ -76,11 +76,10 @@ import {Debounce} from 'vue-debounce-decorator'
|
||||
export default class MiscellaneousSlider extends Mixins(BaseMixin) {
|
||||
convertName = convertName
|
||||
private timeout: number | undefined
|
||||
private isLocked = false
|
||||
private min = 0
|
||||
private value = 0
|
||||
|
||||
@Prop({ required: true }) readonly sliderName!: string
|
||||
@Prop({ type: Boolean, default: true, required: true }) readonly canLock!: string
|
||||
@Prop({ type: Number, required: true }) target!: number
|
||||
@Prop({ type: Number, default: 1 }) max!: number
|
||||
@Prop({ type: String, default: '' }) name!: string
|
||||
@@ -93,17 +92,13 @@ export default class MiscellaneousSlider extends Mixins(BaseMixin) {
|
||||
|
||||
@Watch('lockSliders', {immediate: true})
|
||||
lockSlidersChanged(){
|
||||
if(this.lockSliders && this.isTouchDevice){
|
||||
this.sliderIsLocked = true
|
||||
} else {
|
||||
this.sliderIsLocked = false
|
||||
}
|
||||
this.isLocked = this.lockSliders && this.isTouchDevice
|
||||
}
|
||||
|
||||
startLockTimer() {
|
||||
let t = this.lockSlidersDelay
|
||||
if (!this.isTouchDevice || !this.lockSliders || (t <= 0)) return
|
||||
this.timeout = setTimeout(() => this.sliderIsLocked = true, t * 1000)
|
||||
this.timeout = setTimeout(() => this.isLocked = true, t * 1000)
|
||||
}
|
||||
|
||||
resetLockTimer() {
|
||||
@@ -118,15 +113,6 @@ export default class MiscellaneousSlider extends Mixins(BaseMixin) {
|
||||
return this.$store.state.gui.general.lockSlidersDelay
|
||||
}
|
||||
|
||||
get sliderIsLocked() {
|
||||
return this.$store.getters['gui/getLockedSliders'](this.sliderName)
|
||||
}
|
||||
|
||||
set sliderIsLocked(newVal) {
|
||||
if (!this.controllable) return
|
||||
this.$store.dispatch('gui/saveSliderLockState', { name: this.sliderName, value: newVal })
|
||||
}
|
||||
|
||||
@Debounce(500)
|
||||
changeSlider() {
|
||||
this.sendCmd()
|
||||
|
||||
+3
-2
@@ -12,7 +12,8 @@
|
||||
outlined
|
||||
dense
|
||||
:append-icon="this.value !== this.defaultValue ? 'mdi-refresh' : ''"
|
||||
:error="this.value > this.defaultValue"
|
||||
:error="this.value <= 0"
|
||||
min="1"
|
||||
@click:append="resetLimit"
|
||||
hide-details
|
||||
></v-text-field>
|
||||
@@ -25,7 +26,7 @@ import {Mixins, Prop, Watch} from 'vue-property-decorator'
|
||||
import BaseMixin from '@/components/mixins/base'
|
||||
|
||||
@Component
|
||||
export default class MachineLimitsInput extends Mixins(BaseMixin) {
|
||||
export default class MotionSettingsInput extends Mixins(BaseMixin) {
|
||||
private value: any = 0
|
||||
|
||||
@Prop({ type: String, required: true }) readonly label!: string
|
||||
@@ -10,14 +10,14 @@
|
||||
<v-col class="pb-1 pt-3">
|
||||
<v-subheader class="_tool-slider-subheader">
|
||||
<v-btn
|
||||
v-if="canLock && lockSliders && isTouchDevice"
|
||||
@click="sliderIsLocked = !sliderIsLocked"
|
||||
v-if="lockSliders && isTouchDevice"
|
||||
@click="isLocked = !isLocked"
|
||||
plain
|
||||
small
|
||||
icon
|
||||
>
|
||||
<v-icon small :color="(sliderIsLocked ? 'red' : '')">
|
||||
{{ sliderIsLocked ? 'mdi-lock-outline' : 'mdi-lock-open-variant-outline' }}
|
||||
<v-icon small :color="(isLocked ? 'red' : '')">
|
||||
{{ isLocked ? 'mdi-lock-outline' : 'mdi-lock-open-variant-outline' }}
|
||||
</v-icon>
|
||||
</v-btn>
|
||||
<span>{{ label }}</span>
|
||||
@@ -26,7 +26,7 @@
|
||||
class="ml-2"
|
||||
x-small
|
||||
icon
|
||||
:disabled="canLock && sliderIsLocked"
|
||||
:disabled="isLocked"
|
||||
@click="resetSlider"
|
||||
>
|
||||
<v-icon>mdi-restart</v-icon>
|
||||
@@ -40,7 +40,7 @@
|
||||
<v-slider
|
||||
v-model="value"
|
||||
v-touch="{start: resetLockTimer}"
|
||||
:disabled="canLock && sliderIsLocked"
|
||||
:disabled="isLocked"
|
||||
:min="min"
|
||||
:max="processedMax"
|
||||
:color="colorBar"
|
||||
@@ -48,11 +48,11 @@
|
||||
hide-details>
|
||||
|
||||
<template v-slot:prepend>
|
||||
<v-icon @click="decrement" :disabled="canLock && sliderIsLocked">mdi-minus</v-icon>
|
||||
<v-icon @click="decrement" :disabled="isLocked">mdi-minus</v-icon>
|
||||
</template>
|
||||
|
||||
<template v-slot:append>
|
||||
<v-icon @click="increment" :disabled="canLock && sliderIsLocked">mdi-plus</v-icon>
|
||||
<v-icon @click="increment" :disabled="isLocked">mdi-plus</v-icon>
|
||||
</template>
|
||||
</v-slider>
|
||||
</v-card-text>
|
||||
@@ -70,13 +70,12 @@ import {Debounce} from 'vue-debounce-decorator'
|
||||
@Component
|
||||
export default class ToolSlider extends Mixins(BaseMixin) {
|
||||
private timeout: number | undefined
|
||||
private isLocked = false
|
||||
value = 0
|
||||
startValue = 0
|
||||
processedMax = 100
|
||||
dynamicStep = 50
|
||||
|
||||
@Prop({ required: true }) readonly sliderName!: string
|
||||
@Prop({ type: Boolean, default: true, required: true }) readonly canLock!: string
|
||||
@Prop({ type: Number, required: true }) readonly target!: number
|
||||
@Prop({ type: String, required: true }) readonly command!: string
|
||||
@Prop({ type: String, default: '' }) readonly attributeName!: string
|
||||
@@ -102,17 +101,13 @@ export default class ToolSlider extends Mixins(BaseMixin) {
|
||||
|
||||
@Watch('lockSliders', {immediate: true})
|
||||
lockSlidersChanged(){
|
||||
if(this.lockSliders && this.isTouchDevice){
|
||||
this.sliderIsLocked = true
|
||||
} else {
|
||||
this.sliderIsLocked = false
|
||||
}
|
||||
this.isLocked = this.lockSliders && this.isTouchDevice
|
||||
}
|
||||
|
||||
startLockTimer() {
|
||||
let t = this.lockSlidersDelay
|
||||
if (!this.isTouchDevice || !this.lockSliders || (t <= 0)) return
|
||||
this.timeout = setTimeout(() => this.sliderIsLocked = true, t * 1000)
|
||||
this.timeout = setTimeout(() => this.isLocked = true, t * 1000)
|
||||
}
|
||||
|
||||
resetLockTimer() {
|
||||
@@ -127,14 +122,6 @@ export default class ToolSlider extends Mixins(BaseMixin) {
|
||||
return this.$store.state.gui.general.lockSlidersDelay
|
||||
}
|
||||
|
||||
get sliderIsLocked() {
|
||||
return this.$store.getters['gui/getLockedSliders'](this.sliderName)
|
||||
}
|
||||
|
||||
set sliderIsLocked(newVal) {
|
||||
this.$store.dispatch('gui/saveSliderLockState', { name: this.sliderName, value: newVal })
|
||||
}
|
||||
|
||||
get colorBar() {
|
||||
return this.max < this.value ? 'warning' : 'primary'
|
||||
}
|
||||
|
||||
@@ -82,6 +82,13 @@ export default class DashboardMixin extends BaseMixin {
|
||||
return (group) ? group.name : 'Macrogroup'
|
||||
}
|
||||
|
||||
return this.$t('Panels.'+capitalize(name)+'Panel.Headline')
|
||||
if (name.includes('-')) {
|
||||
let panelName = ''
|
||||
const subStrings = name.split('-')
|
||||
subStrings.forEach((subStr) => {panelName += capitalize(subStr)})
|
||||
return this.$t('Panels.' + panelName + 'Panel.Headline')
|
||||
}
|
||||
|
||||
return this.$t('Panels.' + capitalize(name) + 'Panel.Headline')
|
||||
}
|
||||
}
|
||||
File diff suppressed because it is too large.
Load diff
@@ -0,0 +1,247 @@
|
||||
<template>
|
||||
<div>
|
||||
<panel
|
||||
icon="mdi-tray-full"
|
||||
:title="$t('JobQueue.JobQueue')"
|
||||
card-class="jobqueue-panel"
|
||||
>
|
||||
<template v-slot:buttons>
|
||||
<v-btn
|
||||
color="success"
|
||||
@click="resumeJobqueue"
|
||||
:loading="loadings.includes('resumeJobqueue')"
|
||||
icon
|
||||
tile
|
||||
v-if="queueState === 'paused'"
|
||||
>
|
||||
<v-tooltip top>
|
||||
<template v-slot:activator="{ on, attrs }">
|
||||
<v-icon v-bind="attrs" v-on="on">mdi-play</v-icon>
|
||||
</template>
|
||||
<span>{{ $t('JobQueue.Resume') }}</span>
|
||||
</v-tooltip>
|
||||
</v-btn>
|
||||
<v-btn
|
||||
color="warning"
|
||||
@click="pauseJobqueue"
|
||||
:loading="loadings.includes('pauseJobqueue')"
|
||||
icon
|
||||
tile
|
||||
v-if="['ready', 'loading'].includes(queueState)"
|
||||
>
|
||||
<v-tooltip top>
|
||||
<template v-slot:activator="{ on, attrs }">
|
||||
<v-icon v-bind="attrs" v-on="on">mdi-pause</v-icon>
|
||||
</template>
|
||||
<span>{{ $t('JobQueue.Pause') }}</span>
|
||||
</v-tooltip>
|
||||
</v-btn>
|
||||
</template>
|
||||
<v-data-table
|
||||
:items="jobs"
|
||||
class="jobqueue-table"
|
||||
sort-by="time_added"
|
||||
:items-per-page.sync="countPerPage"
|
||||
:footer-props="{
|
||||
itemsPerPageText: $t('JobQueue.Jobs'),
|
||||
itemsPerPageAllText: $t('JobQueue.AllJobs'),
|
||||
itemsPerPageOptions: [10,25,50,100,-1]
|
||||
}"
|
||||
mobile-breakpoint="0">
|
||||
|
||||
<template #no-data>
|
||||
<div class="text-center">{{ $t('JobQueue.Empty') }}</div>
|
||||
</template>
|
||||
|
||||
<template #item="{ index, item }">
|
||||
<tr
|
||||
:key="item.job_id"
|
||||
v-longpress:600="(e) => showContextMenu(e, item)"
|
||||
@contextmenu="showContextMenu($event, item)"
|
||||
class="file-list-cursor user-select-none"
|
||||
>
|
||||
<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 v-slot: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">mdi-file</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">mdi-file</v-icon>
|
||||
</vue-load-image>
|
||||
</template>
|
||||
<template v-else>
|
||||
<v-icon>mdi-file</v-icon>
|
||||
</template>
|
||||
</td>
|
||||
<td class=" ">
|
||||
{{ item.filename }}
|
||||
<template v-if="existMetadata(item)">
|
||||
<br />
|
||||
<small>{{ getDescription(item) }}</small>
|
||||
</template>
|
||||
</td>
|
||||
</tr>
|
||||
</template>
|
||||
</v-data-table>
|
||||
</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">mdi-delete</v-icon> {{ $t('JobQueue.Delete') }}
|
||||
</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 {thumbnailBigMin, thumbnailSmallMax, thumbnailSmallMin} from '@/store/variables'
|
||||
@Component({
|
||||
components: {Panel}
|
||||
})
|
||||
export default class JobqueuePanel extends Mixins(BaseMixin) {
|
||||
formatFilesize = formatFilesize
|
||||
|
||||
private contextMenu = {
|
||||
shown: false,
|
||||
touchTimer: undefined,
|
||||
x: 0,
|
||||
y: 0,
|
||||
item: {}
|
||||
}
|
||||
|
||||
get jobs() {
|
||||
return this.$store.getters['server/jobQueue/getJobs']
|
||||
}
|
||||
|
||||
get queueState() {
|
||||
return this.$store.state.server.jobQueue.queue_state ?? ''
|
||||
}
|
||||
|
||||
get countPerPage() {
|
||||
return this.$store.state.gui.jobqueue.countPerPage
|
||||
}
|
||||
|
||||
set countPerPage(newVal) {
|
||||
this.$store.dispatch('gui/saveSetting', { name: 'jobqueue.countPerPage', value: newVal })
|
||||
}
|
||||
|
||||
refreshHistory() {
|
||||
this.$socket.emit('server.history.list', { start: 0, limit: 50 }, { action: 'server/history/getHistory' })
|
||||
}
|
||||
|
||||
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: 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])
|
||||
}
|
||||
|
||||
resumeJobqueue() {
|
||||
this.$store.dispatch('server/jobQueue/resume')
|
||||
}
|
||||
|
||||
pauseJobqueue() {
|
||||
this.$store.dispatch('server/jobQueue/pause')
|
||||
}
|
||||
|
||||
getSmallThumbnail(item: ServerJobQueueStateJob) {
|
||||
if (item?.metadata?.thumbnails?.length) {
|
||||
const thumbnail = item?.metadata?.thumbnails.find((thumb: any) =>
|
||||
thumb.width >= thumbnailSmallMin && thumb.width <= thumbnailSmallMax &&
|
||||
thumb.height >= thumbnailSmallMin && thumb.height <= thumbnailSmallMax
|
||||
)
|
||||
const path = item.filename.lastIndexOf('/') !== -1 ? 'gcodes/'+item.filename.slice(0, item.filename.lastIndexOf('/')) : 'gcodes'
|
||||
|
||||
if (thumbnail && 'relative_path' in thumbnail) return this.apiUrl+'/server/files/'+path+'/'+encodeURI(thumbnail.relative_path)+'?timestamp='+item.metadata?.modified.getTime()
|
||||
}
|
||||
|
||||
return ''
|
||||
}
|
||||
|
||||
getBigThumbnail(item: ServerJobQueueStateJob) {
|
||||
if (item?.metadata?.thumbnails?.length) {
|
||||
const thumbnail = item?.metadata?.thumbnails.find((thumb: any) => thumb.width >= thumbnailBigMin)
|
||||
const path = item.filename.lastIndexOf('/') !== -1 ? 'gcodes/'+item.filename.slice(0, item.filename.lastIndexOf('/')) : 'gcodes'
|
||||
|
||||
if (thumbnail && 'relative_path' in thumbnail) return this.apiUrl+'/server/files/'+path+'/'+encodeURI(thumbnail.relative_path)+'?timestamp='+item.metadata?.modified.getTime()
|
||||
}
|
||||
|
||||
return ''
|
||||
}
|
||||
|
||||
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
|
||||
}
|
||||
}
|
||||
</script>
|
||||
@@ -19,7 +19,7 @@
|
||||
<v-row v-if="existProbe">
|
||||
<v-col class="py-1">
|
||||
<label class="mt-1 d-inline-block">Probe</label>
|
||||
<v-chip class="float-right" small :color="probe ? 'red' : 'green' " text-color="white">
|
||||
<v-chip small label class="float-right" :color="probe ? 'red' : 'green' " text-color="white">
|
||||
<template v-if="probe">
|
||||
{{ $t('Machine.EndstopPanel.TRIGGERED')}}
|
||||
</template>
|
||||
|
||||
@@ -1,91 +0,0 @@
|
||||
<template>
|
||||
<panel :title="$t('Machine.LimitsPanel.MachineLimits')" v-if="klipperReadyForGui" icon="mdi-speedometer" card-class="machine-machinelimits-panel" :collapsible="true">
|
||||
<v-card-text>
|
||||
<v-row>
|
||||
<v-col class="col-6">
|
||||
<machine-limits-input
|
||||
:label="$t('Machine.LimitsPanel.Velocity')"
|
||||
:target="current_velocity"
|
||||
:max="max_velocity"
|
||||
:default-value="max_velocity"
|
||||
unit="mm/s"
|
||||
attribute-name="VELOCITY"
|
||||
></machine-limits-input>
|
||||
</v-col>
|
||||
<v-col class="col-6">
|
||||
<machine-limits-input
|
||||
:label="$t('Machine.LimitsPanel.SquareCornerVelocity')"
|
||||
:target="current_square_corner_velocity"
|
||||
:max="max_square_corner_velocity"
|
||||
:default-value="max_square_corner_velocity"
|
||||
unit="mm/s"
|
||||
attribute-name="SQUARE_CORNER_VELOCITY"
|
||||
></machine-limits-input>
|
||||
</v-col>
|
||||
</v-row>
|
||||
<v-row>
|
||||
<v-col class="col-6">
|
||||
<machine-limits-input
|
||||
:label="$t('Machine.LimitsPanel.Acceleration')"
|
||||
:target="current_accel"
|
||||
:max="max_accel"
|
||||
:default-value="max_accel"
|
||||
unit="mm/s²"
|
||||
attribute-name="ACCEL"
|
||||
></machine-limits-input>
|
||||
</v-col>
|
||||
<v-col class="col-6">
|
||||
<machine-limits-input
|
||||
:label="$t('Machine.LimitsPanel.Deceleration')"
|
||||
:target="current_accel_to_decel"
|
||||
:max="max_accel_to_decel"
|
||||
:default-value="max_accel_to_decel"
|
||||
unit="mm/s²"
|
||||
attribute-name="ACCEL_TO_DECEL"
|
||||
></machine-limits-input>
|
||||
</v-col>
|
||||
</v-row>
|
||||
</v-card-text>
|
||||
</panel>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
|
||||
|
||||
import { Component, Mixins } from 'vue-property-decorator'
|
||||
import BaseMixin from '@/components/mixins/base.ts'
|
||||
import ToolSlider from '@/components/inputs/ToolSlider'
|
||||
import MachineLimitsInput from '@/components/inputs/MachineLimitsInput'
|
||||
import Panel from '@/components/ui/Panel'
|
||||
@Component({
|
||||
components: {Panel, MachineLimitsInput, ToolSlider}
|
||||
})
|
||||
export default class LimitsPanel extends Mixins(BaseMixin) {
|
||||
|
||||
get current_velocity() {
|
||||
return this.$store.state.printer?.toolhead?.max_velocity ?? 300
|
||||
}
|
||||
get current_accel() {
|
||||
return this.$store.state.printer?.toolhead?.max_accel ?? 3000
|
||||
}
|
||||
get current_accel_to_decel() {
|
||||
return this.$store.state.printer?.toolhead?.max_accel_to_decel ?? 1500
|
||||
}
|
||||
get current_square_corner_velocity() {
|
||||
return this.$store.state.printer?.toolhead?.square_corner_velocity ?? 8
|
||||
}
|
||||
|
||||
get max_velocity() {
|
||||
return this.$store.state.printer?.configfile?.settings?.printer?.max_velocity ?? 300
|
||||
}
|
||||
get max_accel() {
|
||||
return this.$store.state.printer?.configfile?.settings?.printer?.max_accel ?? 3000
|
||||
}
|
||||
get max_accel_to_decel() {
|
||||
return this.$store.state.printer?.configfile?.settings?.printer?.max_accel_to_decel ?? 1500
|
||||
}
|
||||
get max_square_corner_velocity() {
|
||||
return this.$store.state.printer?.configfile?.settings?.printer?.square_corner_velocity ?? 8
|
||||
}
|
||||
}
|
||||
</script>
|
||||
@@ -0,0 +1,91 @@
|
||||
<template>
|
||||
<v-card-text>
|
||||
<v-row>
|
||||
<v-col class="col-6">
|
||||
<firmware-retraction-settings-input
|
||||
:label="$t('Panels.MachineSettingsPanel.FirmwareRetractionSettings.RetractLength')"
|
||||
:target="current_retract_length"
|
||||
:default-value="config_retract_length"
|
||||
:step="0.01"
|
||||
unit="mm"
|
||||
attribute-name="RETRACT_LENGTH"
|
||||
></firmware-retraction-settings-input>
|
||||
</v-col>
|
||||
<v-col class="col-6">
|
||||
<firmware-retraction-settings-input
|
||||
:label="$t('Panels.MachineSettingsPanel.FirmwareRetractionSettings.RetractSpeed')"
|
||||
:target="current_retract_speed"
|
||||
:default-value="config_retract_speed"
|
||||
unit="mm/s"
|
||||
attribute-name="RETRACT_SPEED"
|
||||
></firmware-retraction-settings-input>
|
||||
</v-col>
|
||||
</v-row>
|
||||
<v-row>
|
||||
<v-col class="col-6">
|
||||
<firmware-retraction-settings-input
|
||||
:label="$t('Panels.MachineSettingsPanel.FirmwareRetractionSettings.UnretractExtraLength')"
|
||||
:target="current_unretract_extra_length"
|
||||
:default-value="config_unretract_extra_length"
|
||||
:step="0.01"
|
||||
unit="mm"
|
||||
attribute-name="UNRETRACT_EXTRA_LENGTH"
|
||||
></firmware-retraction-settings-input>
|
||||
</v-col>
|
||||
<v-col class="col-6">
|
||||
<firmware-retraction-settings-input
|
||||
:label="$t('Panels.MachineSettingsPanel.FirmwareRetractionSettings.UnretractSpeed')"
|
||||
:target="current_unretract_speed"
|
||||
:default-value="config_unretract_speed"
|
||||
unit="mm/s"
|
||||
attribute-name="UNRETRACT_SPEED"
|
||||
></firmware-retraction-settings-input>
|
||||
</v-col>
|
||||
</v-row>
|
||||
</v-card-text>
|
||||
</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 FirmwareRetractionSettingsInput from '@/components/inputs/FirmwareRetractionSettingsInput.vue'
|
||||
|
||||
@Component({
|
||||
components: {Panel, FirmwareRetractionSettingsInput}
|
||||
})
|
||||
export default class FirmwareRetractionSettings extends Mixins(BaseMixin) {
|
||||
|
||||
get current_retract_length() {
|
||||
return this.$store.state.printer?.firmware_retraction?.retract_length ?? 0
|
||||
}
|
||||
|
||||
get current_retract_speed() {
|
||||
return this.$store.state.printer?.firmware_retraction?.retract_speed ?? 20
|
||||
}
|
||||
|
||||
get current_unretract_extra_length() {
|
||||
return this.$store.state.printer?.firmware_retraction?.unretract_extra_length ?? 0
|
||||
}
|
||||
|
||||
get current_unretract_speed() {
|
||||
return this.$store.state.printer?.firmware_retraction?.unretract_speed ?? 10
|
||||
}
|
||||
|
||||
get config_retract_length() {
|
||||
return this.$store.state.printer?.configfile?.settings?.firmware_retraction?.retract_length ?? 0
|
||||
}
|
||||
|
||||
get config_retract_speed() {
|
||||
return this.$store.state.printer?.configfile?.settings?.firmware_retraction?.retract_speed ?? 20
|
||||
}
|
||||
|
||||
get config_unretract_extra_length() {
|
||||
return this.$store.state.printer?.configfile?.settings?.firmware_retraction?.unretract_extra_length ?? 0
|
||||
}
|
||||
|
||||
get config_unretract_speed() {
|
||||
return this.$store.state.printer?.configfile?.settings?.firmware_retraction?.unretract_speed ?? 10
|
||||
}
|
||||
}
|
||||
</script>
|
||||
@@ -0,0 +1,51 @@
|
||||
<template>
|
||||
<panel
|
||||
v-if="klipperReadyForGui"
|
||||
icon="mdi-engine"
|
||||
:title="$t('Panels.MachineSettingsPanel.Headline')"
|
||||
:collapsible="true"
|
||||
card-class="machine-settings-panel"
|
||||
>
|
||||
<motion-settings v-if="!existsFirmwareRetraction"></motion-settings>
|
||||
|
||||
<div v-if="existsFirmwareRetraction">
|
||||
<sub-panel
|
||||
:title="$t('Panels.MachineSettingsPanel.MotionSettings.Motion')"
|
||||
sub-panel-class="motion-settings-subpanel"
|
||||
>
|
||||
<motion-settings></motion-settings>
|
||||
</sub-panel>
|
||||
<sub-panel
|
||||
:title="$t('Panels.MachineSettingsPanel.FirmwareRetractionSettings.FirmwareRetraction')"
|
||||
sub-panel-class="firmware-retraction-settings-subpanel"
|
||||
>
|
||||
<firmware-retraction-settings></firmware-retraction-settings>
|
||||
</sub-panel>
|
||||
</div>
|
||||
</panel>
|
||||
</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 SubPanel from '@/components/ui/SubPanel.vue'
|
||||
import MotionSettings from '@/components/panels/MachineSettings/MotionSettings.vue'
|
||||
import FirmwareRetractionSettings from '@/components/panels/MachineSettings/FirmwareRetractionSettings.vue'
|
||||
|
||||
@Component({
|
||||
components: {
|
||||
Panel,
|
||||
SubPanel,
|
||||
MotionSettings,
|
||||
FirmwareRetractionSettings
|
||||
}
|
||||
})
|
||||
export default class MachineSettingsPanel extends Mixins(BaseMixin) {
|
||||
|
||||
get existsFirmwareRetraction() {
|
||||
return this.$store.state.printer.configfile?.settings?.firmware_retraction ?? false
|
||||
}
|
||||
|
||||
}
|
||||
</script>
|
||||
@@ -0,0 +1,93 @@
|
||||
<template>
|
||||
<v-card-text>
|
||||
<v-row>
|
||||
<v-col class="col-6">
|
||||
<motion-settings-input
|
||||
:label="$t('Panels.MachineSettingsPanel.MotionSettings.Velocity')"
|
||||
:target="current_velocity"
|
||||
:max="max_velocity"
|
||||
:default-value="max_velocity"
|
||||
unit="mm/s"
|
||||
attribute-name="VELOCITY"
|
||||
></motion-settings-input>
|
||||
</v-col>
|
||||
<v-col class="col-6">
|
||||
<motion-settings-input
|
||||
:label="$t('Panels.MachineSettingsPanel.MotionSettings.SquareCornerVelocity')"
|
||||
:target="current_square_corner_velocity"
|
||||
:max="max_square_corner_velocity"
|
||||
:default-value="max_square_corner_velocity"
|
||||
unit="mm/s"
|
||||
attribute-name="SQUARE_CORNER_VELOCITY"
|
||||
></motion-settings-input>
|
||||
</v-col>
|
||||
</v-row>
|
||||
<v-row>
|
||||
<v-col class="col-6">
|
||||
<motion-settings-input
|
||||
:label="$t('Panels.MachineSettingsPanel.MotionSettings.Acceleration')"
|
||||
:target="current_accel"
|
||||
:max="max_accel"
|
||||
:default-value="max_accel"
|
||||
unit="mm/s²"
|
||||
attribute-name="ACCEL"
|
||||
></motion-settings-input>
|
||||
</v-col>
|
||||
<v-col class="col-6">
|
||||
<motion-settings-input
|
||||
:label="$t('Panels.MachineSettingsPanel.MotionSettings.Deceleration')"
|
||||
:target="current_accel_to_decel"
|
||||
:max="max_accel_to_decel"
|
||||
:default-value="max_accel_to_decel"
|
||||
unit="mm/s²"
|
||||
attribute-name="ACCEL_TO_DECEL"
|
||||
></motion-settings-input>
|
||||
</v-col>
|
||||
</v-row>
|
||||
</v-card-text>
|
||||
</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 MotionSettingsInput from '@/components/inputs/MotionSettingsInput.vue'
|
||||
|
||||
@Component({
|
||||
components: {Panel, MotionSettingsInput}
|
||||
})
|
||||
export default class MotionSettings extends Mixins(BaseMixin) {
|
||||
|
||||
get current_velocity() {
|
||||
return this.$store.state.printer?.toolhead?.max_velocity ?? 300
|
||||
}
|
||||
|
||||
get current_accel() {
|
||||
return this.$store.state.printer?.toolhead?.max_accel ?? 3000
|
||||
}
|
||||
|
||||
get current_accel_to_decel() {
|
||||
return this.$store.state.printer?.toolhead?.max_accel_to_decel ?? 1500
|
||||
}
|
||||
|
||||
get current_square_corner_velocity() {
|
||||
return this.$store.state.printer?.toolhead?.square_corner_velocity ?? 8
|
||||
}
|
||||
|
||||
get max_velocity() {
|
||||
return this.$store.state.printer?.configfile?.settings?.printer?.max_velocity ?? 300
|
||||
}
|
||||
|
||||
get max_accel() {
|
||||
return this.$store.state.printer?.configfile?.settings?.printer?.max_accel ?? 3000
|
||||
}
|
||||
|
||||
get max_accel_to_decel() {
|
||||
return this.$store.state.printer?.configfile?.settings?.printer?.max_accel_to_decel ?? 1500
|
||||
}
|
||||
|
||||
get max_square_corner_velocity() {
|
||||
return this.$store.state.printer?.configfile?.settings?.printer?.square_corner_velocity ?? 8
|
||||
}
|
||||
}
|
||||
</script>
|
||||
@@ -13,7 +13,6 @@
|
||||
<div v-for="(object, index) of miscellaneous" v-bind:key="index">
|
||||
<v-divider v-if="index"></v-divider>
|
||||
<miscellaneous-slider
|
||||
:slider-name="object.name"
|
||||
:name="object.name"
|
||||
:type="object.type"
|
||||
:target="object.power"
|
||||
@@ -23,7 +22,6 @@
|
||||
:off_below="object.off_below"
|
||||
:max="object.max_power"
|
||||
:multi="parseInt(object.scale)"
|
||||
:can-lock="true"
|
||||
></miscellaneous-slider>
|
||||
</div>
|
||||
<div v-for="(sensor, index) of filamentSensors" v-bind:key="'sensor_'+index">
|
||||
|
||||
@@ -11,27 +11,23 @@
|
||||
card-class="printsettings-panel"
|
||||
>
|
||||
<tool-slider
|
||||
slider-name="speed-factor"
|
||||
:label="$t('Panels.PrintsettingsPanel.SpeedFactor')"
|
||||
:target="speed_factor"
|
||||
:max="200"
|
||||
:multi="100"
|
||||
:step="5"
|
||||
:dynamic-range="true"
|
||||
:can-lock="true"
|
||||
command="M220"
|
||||
attribute-name="S">
|
||||
</tool-slider>
|
||||
<template v-if="existsExtruder">
|
||||
<v-divider></v-divider>
|
||||
<tool-slider
|
||||
slider-name="extrusion-factor"
|
||||
:label="$t('Panels.PrintsettingsPanel.ExtrusionFactor')"
|
||||
:target="extrude_factor"
|
||||
:max="200"
|
||||
:multi="100"
|
||||
:step="1"
|
||||
:can-lock="true"
|
||||
command="M221"
|
||||
attribute-name="S">
|
||||
</tool-slider>
|
||||
|
||||
@@ -31,8 +31,8 @@
|
||||
style="max-width: 300px;"
|
||||
></v-text-field>
|
||||
<v-spacer></v-spacer>
|
||||
<v-btn v-if="this.directoryPermissions.includes('w')" @click="createDirectory" :title="$t('Timelapse.CreateNewDirectory')" color="grey darken-3" class="px-2 minwidth-0 ml-3"><v-icon>mdi-folder-plus</v-icon></v-btn>
|
||||
<v-btn @click="refreshFileList" :title="$t('Timelapse.RefreshCurrentDirectory')" color="grey darken-3" class="px-2 minwidth-0 ml-3"><v-icon>mdi-refresh</v-icon></v-btn>
|
||||
<v-btn v-if="this.directoryPermissions.includes('w')" @click="createDirectory" :title="$t('Timelapse.CreateNewDirectory')" class="px-2 minwidth-0 ml-3"><v-icon>mdi-folder-plus</v-icon></v-btn>
|
||||
<v-btn @click="refreshFileList" :title="$t('Timelapse.RefreshCurrentDirectory')" class="px-2 minwidth-0 ml-3"><v-icon>mdi-refresh</v-icon></v-btn>
|
||||
</v-col>
|
||||
</v-row>
|
||||
</v-card-text>
|
||||
|
||||
@@ -10,58 +10,64 @@
|
||||
<span class="subheading align-baseline"><v-icon left>mdi-information</v-icon>{{ $t("Timelapse.Status")}}</span>
|
||||
</v-toolbar-title>
|
||||
</v-toolbar>
|
||||
<v-card-text v-if="frameUrl" class="pb-0">
|
||||
<v-row>
|
||||
<v-col>
|
||||
<vue-load-image>
|
||||
<img slot="image" :src="frameUrl" :alt="$t('Timelapse.Preview')" class="w-100" />
|
||||
<v-progress-circular slot="preloader" indeterminate color="primary"></v-progress-circular>
|
||||
<v-icon slot="error">mdi-file</v-icon>
|
||||
</vue-load-image>
|
||||
</v-col>
|
||||
</v-row>
|
||||
</v-card-text>
|
||||
<v-card-text :class="framesCount ? 'pt-0' : ''">
|
||||
<v-row v-if="framesCount > 0">
|
||||
<v-col>
|
||||
<template v-if="framesCount > 0">
|
||||
<settings-row :title="$t('Timelapse.Frames')">
|
||||
{{ framesCount }}
|
||||
</settings-row>
|
||||
<v-divider class="my-2"></v-divider>
|
||||
<settings-row :title="$t('Timelapse.EstimatedLength')" :dynamicSlotWidth="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')" :dynamicSlotWidth="true">
|
||||
<v-switch v-model="enabled" hide-details class="mt-0"></v-switch>
|
||||
</settings-row>
|
||||
<template v-if="enabled">
|
||||
<v-divider class="my-2" v-if="framesCount > 0"></v-divider>
|
||||
<settings-row :title="$t('Timelapse.Autorender')" :dynamicSlotWidth="true">
|
||||
<v-switch v-model="autorender" hide-details class="mt-0"></v-switch>
|
||||
</settings-row>
|
||||
</template>
|
||||
</template>
|
||||
<template v-if="framesCount > 0 && ['complete', 'canceled'].includes(printer_state)">
|
||||
<v-divider class="mt-2 mb-4"></v-divider>
|
||||
<v-row>
|
||||
<v-col class="text-center">
|
||||
<v-btn text color="primary" :disabled="disableRenderButton" @click="boolDialogRendersettings = true">{{ $t('Timelapse.Render') }}</v-btn>
|
||||
<v-btn text color="primary" @click="saveFrames" :loading="loadings.includes('timelapse_saveframes')">{{ $t('Timelapse.SaveFrames') }}</v-btn>
|
||||
</v-col>
|
||||
</v-row>
|
||||
</template>
|
||||
</v-col>
|
||||
</v-row>
|
||||
<v-row v-else>
|
||||
<v-col>
|
||||
<p class="text-center my-0 font-italic">{{ $t('Timelapse.NoActiveTimelapse') }}</p>
|
||||
</v-col>
|
||||
</v-row>
|
||||
</v-card-text>
|
||||
<v-row no-gutters>
|
||||
<v-col class="col-12 col-sm-6 col-md-12 pb-3 pb-md-0 text--secondary">
|
||||
<v-card-text v-if="frameUrl" class="pb-0">
|
||||
<v-row>
|
||||
<v-col>
|
||||
<vue-load-image>
|
||||
<img 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">mdi-file</v-icon>
|
||||
</vue-load-image>
|
||||
</v-col>
|
||||
</v-row>
|
||||
</v-card-text>
|
||||
</v-col>
|
||||
<v-col class="col-12 col-sm-6 col-md-12 pt-3 pt-md-0 text--secondary" align-self="center">
|
||||
<v-card-text :class="framesCount ? 'pt-0' : ''">
|
||||
<v-row v-if="framesCount > 0">
|
||||
<v-col>
|
||||
<template v-if="framesCount > 0">
|
||||
<settings-row :title="$t('Timelapse.Frames')">
|
||||
{{ framesCount }}
|
||||
</settings-row>
|
||||
<v-divider class="my-2"></v-divider>
|
||||
<settings-row :title="$t('Timelapse.EstimatedLength')" :dynamicSlotWidth="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')" :dynamicSlotWidth="true">
|
||||
<v-switch v-model="enabled" hide-details class="mt-0"></v-switch>
|
||||
</settings-row>
|
||||
<template v-if="enabled">
|
||||
<v-divider class="my-2" v-if="framesCount > 0"></v-divider>
|
||||
<settings-row :title="$t('Timelapse.Autorender')" :dynamicSlotWidth="true">
|
||||
<v-switch v-model="autorender" hide-details class="mt-0"></v-switch>
|
||||
</settings-row>
|
||||
</template>
|
||||
</template>
|
||||
<template v-if="framesCount > 0 && !['printing', 'paused'].includes(printer_state)">
|
||||
<v-divider class="mt-2 mb-4"></v-divider>
|
||||
<v-row>
|
||||
<v-col class="text-center">
|
||||
<v-btn text color="primary" :disabled="disableRenderButton" @click="boolDialogRendersettings = true">{{ $t('Timelapse.Render') }}</v-btn>
|
||||
<v-btn text color="primary" @click="saveFrames" :loading="loadings.includes('timelapse_saveframes')">{{ $t('Timelapse.SaveFrames') }}</v-btn>
|
||||
</v-col>
|
||||
</v-row>
|
||||
</template>
|
||||
</v-col>
|
||||
</v-row>
|
||||
<v-row v-else>
|
||||
<v-col>
|
||||
<p class="text-center my-0 font-italic">{{ $t('Timelapse.NoActiveTimelapse') }}</p>
|
||||
</v-col>
|
||||
</v-row>
|
||||
</v-card-text>
|
||||
</v-col>
|
||||
</v-row>
|
||||
</v-card>
|
||||
<v-dialog v-model="boolDialogRendersettings" :max-width="700" :max-height="500" >
|
||||
<panel :title="$t('Timelapse.RenderSettings')" icon="mdi-text-box-search-outline" card-class="timelapse-rendersettings-dialog" :margin-bottom="false">
|
||||
@@ -288,6 +294,25 @@ export default class TimelapseStatusPanel extends Mixins(BaseMixin) {
|
||||
return ((this.$store.state.server.timelapse?.rendering.status ?? '') === 'running')
|
||||
}
|
||||
|
||||
get camId() {
|
||||
return this.$store.state.server.timelapse.settings.camera ?? ''
|
||||
}
|
||||
|
||||
get camSettings() {
|
||||
return this.$store.getters['gui/webcams/getWebcam'](this.camId)
|
||||
}
|
||||
|
||||
get webcamStyle() {
|
||||
if (this.camSettings === undefined) return ''
|
||||
|
||||
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 ''
|
||||
}
|
||||
|
||||
startRender() {
|
||||
this.boolDialogRendersettings = false
|
||||
|
||||
|
||||
@@ -42,8 +42,8 @@
|
||||
:disabled="['printing', 'paused'].includes(printer_state)"
|
||||
class="pa-1"
|
||||
>
|
||||
<span class="d-none ml-1 d-md-inline">{{ $t("Panels.ToolsPanel.Presets") }}</span>
|
||||
<v-icon v-show="$vuetify.breakpoint.smAndDown">mdi-fire</v-icon>
|
||||
<span class="d-none ml-1 d-md-block">{{ $t("Panels.ToolsPanel.Presets") }}</span>
|
||||
<v-icon class="d-md-none">mdi-fire</v-icon>
|
||||
<v-icon>mdi-menu-down</v-icon>
|
||||
</v-btn>
|
||||
</template>
|
||||
|
||||
@@ -15,7 +15,7 @@
|
||||
<template v-slot:activator="{ on, attrs }">
|
||||
<v-btn text tile v-bind="attrs" v-on="on">
|
||||
<v-icon small v-if="'icon' in currentCam" class="mr-2">{{ currentCam.icon }}</v-icon>
|
||||
<span v-show="$vuetify.breakpoint.mdAndUp">{{ 'name' in currentCam ? currentCam.name : "unknown" }}</span>
|
||||
<span class="d-none d-md-block">{{ 'name' in currentCam ? currentCam.name : "unknown" }}</span>
|
||||
<v-icon small>mdi-menu-down</v-icon>
|
||||
</v-btn>
|
||||
</template>
|
||||
|
||||
@@ -71,6 +71,13 @@
|
||||
hide-details
|
||||
class="mt-0"
|
||||
></v-checkbox>
|
||||
<v-checkbox
|
||||
v-model="dbCheckboxes.timelapse"
|
||||
:label="$t('Settings.GeneralTab.DbTimelapseSettings')"
|
||||
v-if="moonrakerDbNamespaces.includes('timelapse')"
|
||||
hide-details
|
||||
class="mt-0"
|
||||
></v-checkbox>
|
||||
<v-checkbox
|
||||
v-model="dbCheckboxes.history_jobs"
|
||||
:label="$t('Settings.GeneralTab.DbHistoryJobs')"
|
||||
@@ -122,6 +129,7 @@ export default class SettingsGeneralTab extends Mixins(BaseMixin) {
|
||||
mainsail_presets: false,
|
||||
mainsail_macrogroups: false,
|
||||
mainsail_remoteprinters: false,
|
||||
timelapse: false,
|
||||
history_jobs: false,
|
||||
history_totals: false,
|
||||
}
|
||||
|
||||
@@ -178,7 +178,7 @@
|
||||
</template>
|
||||
</v-card-text>
|
||||
<v-card-actions class="d-flex justify-end">
|
||||
<v-btn text @click="cancelEditMacrogroup">{{ $t('Settings.Cancel')}}</v-btn>
|
||||
<v-btn text @click="cancelEditMacrogroup">{{ $t('Settings.Close')}}</v-btn>
|
||||
</v-card-actions>
|
||||
</template>
|
||||
</div>
|
||||
|
||||
@@ -12,7 +12,7 @@
|
||||
</settings-row>
|
||||
<v-divider class="my-2"></v-divider>
|
||||
<settings-row :title="$t('Settings.TimelapseTab.Camera')" :sub-title="$t('Settings.TimelapseTab.CameraDescription')">
|
||||
<v-select v-model="camera" :items="cameraOptions" hide-details outlined dense :disabled="blockedsettings.includes('cameraOptions')"></v-select>
|
||||
<v-select v-model="camera" :items="cameraOptions" hide-details outlined dense :disabled="blockedsettings.includes('camera') || blockedsettings.includes('snapshoturl')"></v-select>
|
||||
</settings-row>
|
||||
<v-divider class="my-2"></v-divider>
|
||||
<settings-row :title="$t('Settings.TimelapseTab.Mode')" :sub-title="$t('Settings.TimelapseTab.ModeDescription')">
|
||||
@@ -106,10 +106,6 @@
|
||||
</settings-row>
|
||||
</template>
|
||||
<v-divider class="my-2"></v-divider>
|
||||
<settings-row :title="$t('Settings.TimelapseTab.Rotation')" :sub-title="$t('Settings.TimelapseTab.RotationDescription')">
|
||||
<v-text-field v-model="rotation" type="number" hide-details="auto" outlined dense :disabled="blockedsettings.includes('rotation')"></v-text-field>
|
||||
</settings-row>
|
||||
<v-divider class="my-2"></v-divider>
|
||||
<settings-row :title="$t('Settings.TimelapseTab.duplicatelastframe')" :sub-title="$t('Settings.TimelapseTab.duplicatelastframeDescription')">
|
||||
<v-text-field v-model="duplicatelastframe" type="number" hide-details="auto" outlined dense :disabled="blockedsettings.includes('duplicatelastframe')"></v-text-field>
|
||||
</settings-row>
|
||||
@@ -402,14 +398,6 @@ export default class SettingsTimelapseTab extends Mixins(BaseMixin) {
|
||||
this.$store.dispatch('server/timelapse/saveSetting', { variable_fps_max: newVal })
|
||||
}
|
||||
|
||||
get rotation() {
|
||||
return this.$store.state.server.timelapse.settings.rotation
|
||||
}
|
||||
|
||||
set rotation(newVal) {
|
||||
this.$store.dispatch('server/timelapse/saveSetting', { rotation: newVal })
|
||||
}
|
||||
|
||||
get duplicatelastframe() {
|
||||
return this.$store.state.server.timelapse.settings.duplicatelastframe
|
||||
}
|
||||
|
||||
@@ -20,7 +20,7 @@
|
||||
</v-card-actions>
|
||||
</v-card>
|
||||
<v-card flat v-else>
|
||||
<v-form v-model="form.valid" @submit.prevent="saveWebcam">
|
||||
<v-form v-model="form.valid" ref="webcamForm" @submit.prevent="saveWebcam">
|
||||
<v-card-title>
|
||||
{{ form.id === null ? $t("Settings.WebcamsTab.CreateWebcam") : $t("Settings.WebcamsTab.EditWebcam") }}
|
||||
</v-card-title>
|
||||
@@ -65,7 +65,7 @@
|
||||
v-model="form.urlStream"
|
||||
:label="$t('Settings.WebcamsTab.UrlStream')"
|
||||
hide-details="auto"
|
||||
:rules="[rules.required]"
|
||||
:rules="form.service !== 'mjpegstreamer-adaptive' ? [rules.required] : []"
|
||||
></v-text-field>
|
||||
</v-col>
|
||||
</v-row>
|
||||
@@ -75,7 +75,7 @@
|
||||
v-model="form.urlSnapshot"
|
||||
:label="$t('Settings.WebcamsTab.UrlSnapshot')"
|
||||
hide-details="auto"
|
||||
:rules="[rules.requiredMjpegAdaptive]"
|
||||
:rules="form.service === 'mjpegstreamer-adaptive' ? [rules.required] : []"
|
||||
></v-text-field>
|
||||
</v-col>
|
||||
</v-row>
|
||||
@@ -210,10 +210,13 @@ export default class SettingsWebcamsTab extends Mixins(BaseMixin) {
|
||||
|
||||
private rules = {
|
||||
required: (value: string) => value !== '' || this.$t('Settings.WebcamsTab.Required'),
|
||||
requiredMjpegAdaptive: (value: string) => (value !== '' && this.form.service === 'mjpegstreamer-adaptive') || this.$t('Settings.WebcamsTab.Required'),
|
||||
unique: (value: string) => !this.existsWebcamName(value) || this.$t('Settings.WebcamsTab.NameAlreadyExists'),
|
||||
}
|
||||
|
||||
$refs!: {
|
||||
webcamForm: any
|
||||
}
|
||||
|
||||
get webcams() {
|
||||
return this.$store.getters['gui/webcams/getWebcams'] ?? []
|
||||
}
|
||||
@@ -278,6 +281,10 @@ export default class SettingsWebcamsTab extends Mixins(BaseMixin) {
|
||||
|
||||
this.form.bool = true
|
||||
this.form.valid = false
|
||||
|
||||
this.$nextTick(() => {
|
||||
this.$refs.webcamForm?.validate()
|
||||
})
|
||||
}
|
||||
|
||||
saveWebcam() {
|
||||
|
||||
@@ -0,0 +1,56 @@
|
||||
<style lang="scss" scoped>
|
||||
.btn-collapsible i::before {
|
||||
transition: transform 500ms;
|
||||
}
|
||||
|
||||
.icon-rotate-180:before {
|
||||
transform: rotate(180deg);
|
||||
}
|
||||
</style>
|
||||
|
||||
<template>
|
||||
<div>
|
||||
<v-card-actions>
|
||||
<v-btn
|
||||
@click="expand = !expand"
|
||||
class="btn-collapsible"
|
||||
plain
|
||||
small
|
||||
>
|
||||
<v-icon small :class="(!expand ? 'icon-rotate-180' : '')">{{ expand ? iconExpanded : iconCollapsed }}</v-icon>
|
||||
<span class="pl-1">{{ title }}</span>
|
||||
</v-btn>
|
||||
<v-divider class="mx-1"></v-divider>
|
||||
</v-card-actions>
|
||||
<v-expand-transition>
|
||||
<div v-show="expand">
|
||||
<slot></slot>
|
||||
</div>
|
||||
</v-expand-transition>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<script lang="ts">
|
||||
|
||||
import Component from 'vue-class-component'
|
||||
import {Mixins, Prop} from 'vue-property-decorator'
|
||||
import BaseMixin from '@/components/mixins/base'
|
||||
|
||||
@Component
|
||||
|
||||
export default class Panel extends Mixins(BaseMixin) {
|
||||
|
||||
@Prop({ required: false, default: 'mdi-minus' }) readonly iconExpanded!: string | null
|
||||
@Prop({ required: false, default: 'mdi-plus' }) readonly iconCollapsed!: string | null
|
||||
@Prop({ required: true, default: '' }) readonly title!: string
|
||||
@Prop({ required: true }) readonly subPanelClass!: string
|
||||
|
||||
get expand() {
|
||||
return this.$store.getters['gui/getPanelExpand'](this.subPanelClass)
|
||||
}
|
||||
|
||||
set expand(newVal) {
|
||||
this.$store.dispatch('gui/saveExpandPanel', { name: this.subPanelClass, value: newVal })
|
||||
}
|
||||
}
|
||||
</script>
|
||||
@@ -16,7 +16,7 @@
|
||||
|
||||
<template>
|
||||
<div v-observe-visibility="visibilityChanged" style="position: relative;">
|
||||
<img ref="image" class="webcamImage" />
|
||||
<img ref="image" class="webcamImage" :style="webcamStyle" />
|
||||
<span class="webcamFpsOutput">{{ $t('Panels.WebcamPanel.FPS')}}: {{ fpsOutput }}</span>
|
||||
</div>
|
||||
</template>
|
||||
@@ -32,9 +32,9 @@ const TYPE_JPEG = 'image/jpeg'
|
||||
@Component
|
||||
export default class Mjpegstreamer extends Mixins(BaseMixin) {
|
||||
private isVisible = true
|
||||
private imageRatio = 0
|
||||
private currentFPS = 0
|
||||
private timerFPS: number | null = null
|
||||
private timerRestart: number | null = null
|
||||
private stream: ReadableStream | null = null
|
||||
|
||||
@Prop({ required: true })
|
||||
@@ -104,6 +104,10 @@ export default class Mjpegstreamer extends Mixins(BaseMixin) {
|
||||
frames = 0
|
||||
}, 1000)
|
||||
|
||||
this.timerRestart = setInterval(() => {
|
||||
this.restartStream()
|
||||
}, 60000)
|
||||
|
||||
this.stream = new ReadableStream({
|
||||
start(controller) {
|
||||
return pump()
|
||||
@@ -162,14 +166,23 @@ export default class Mjpegstreamer extends Mixins(BaseMixin) {
|
||||
if (isVisible) {
|
||||
this.startStream()
|
||||
} else {
|
||||
if (this.timerFPS) clearTimeout(this.timerFPS)
|
||||
this.stream?.cancel()
|
||||
this.stopStream()
|
||||
}
|
||||
}
|
||||
|
||||
beforeDestroy() {
|
||||
this.stopStream()
|
||||
}
|
||||
|
||||
stopStream() {
|
||||
if (this.timerFPS) clearTimeout(this.timerFPS)
|
||||
if (this.timerRestart) clearTimeout(this.timerRestart)
|
||||
this.stream?.cancel()
|
||||
}
|
||||
|
||||
async restartStream() {
|
||||
this.stopStream()
|
||||
this.startStream()
|
||||
}
|
||||
}
|
||||
</script>
|
||||
+31
-8
@@ -131,6 +131,7 @@
|
||||
"Empty": "Empty",
|
||||
"DropFilesToAddGcode": "Drag & Drop files to add G-Code.",
|
||||
"PrintStart": "Print start",
|
||||
"AddToQueue": "Add to Queue",
|
||||
"Preheat": "Preheat",
|
||||
"Download": "Download",
|
||||
"Rename": "Rename",
|
||||
@@ -156,6 +157,7 @@
|
||||
"LastModified": "Last modified",
|
||||
"ObjectHeight": "Object Height",
|
||||
"LayerHeight": "Layer Height",
|
||||
"Filament": "Filament",
|
||||
"FilamentUsage": "Filament Usage",
|
||||
"FilamentWeight": "Filament Weight",
|
||||
"PrintTime": "Print Time",
|
||||
@@ -168,6 +170,15 @@
|
||||
"SuccessfullyDeleted": "Successfully deleted {filename}.",
|
||||
"View3D" : "View 3D"
|
||||
},
|
||||
"JobQueue": {
|
||||
"JobQueue": "Job Queue",
|
||||
"Jobs": "Jobs",
|
||||
"AllJobs": "All Jobs",
|
||||
"Empty": "Empty",
|
||||
"Delete": "Delete",
|
||||
"Resume": "Resume",
|
||||
"Pause": "Pause"
|
||||
},
|
||||
"Console": {
|
||||
"SetupConsole": "Setup Console",
|
||||
"SendCode": "Send code...",
|
||||
@@ -356,6 +367,23 @@
|
||||
"DeprecatedOption": "Option '{option}' in section '{section}' is deprecated and will be removed in a future release.",
|
||||
"DeprecatedValue": "Value '{value}' in option '{option}' in section '{section}' is deprecated and will be removed in a future release."
|
||||
},
|
||||
"MachineSettingsPanel": {
|
||||
"Headline": "Machine Settings",
|
||||
"MotionSettings": {
|
||||
"Motion": "Motion",
|
||||
"Velocity": "Velocity",
|
||||
"Acceleration": "Acceleration",
|
||||
"Deceleration": "Deceleration",
|
||||
"SquareCornerVelocity": "Square Corner Velocity"
|
||||
},
|
||||
"FirmwareRetractionSettings": {
|
||||
"FirmwareRetraction": "Firmware Retraction",
|
||||
"RetractLength": "Retract Length",
|
||||
"RetractSpeed": "Retract Speed",
|
||||
"UnretractExtraLength": "Unretract Extra Length",
|
||||
"UnretractSpeed": "Unretract Speed"
|
||||
}
|
||||
},
|
||||
"MiniconsolePanel": {
|
||||
"Headline": "Console",
|
||||
"SetupConsole": "Setup Console",
|
||||
@@ -517,13 +545,6 @@
|
||||
"open": "OPEN",
|
||||
"EndstopInfo": "Press the sync-button on the right-bottom to load the current endstop status."
|
||||
},
|
||||
"LimitsPanel": {
|
||||
"MachineLimits": "Machine Limits",
|
||||
"Velocity": "Velocity",
|
||||
"Acceleration": "Acceleration",
|
||||
"Deceleration": "Deceleration",
|
||||
"SquareCornerVelocity": "Square corner velocity"
|
||||
},
|
||||
"LogfilesPanel": {
|
||||
"Logfiles": "Logfiles"
|
||||
},
|
||||
@@ -564,6 +585,7 @@
|
||||
},
|
||||
"Settings": {
|
||||
"InterfaceSettings": "Interface Settings",
|
||||
"Close": "Close",
|
||||
"Cancel": "Cancel",
|
||||
"Edit": "Edit",
|
||||
"GeneralTab": {
|
||||
@@ -583,7 +605,8 @@
|
||||
"DbRemoteprinters": "Remoteprinters",
|
||||
"DbHistoryJobs": "History Jobs",
|
||||
"DbHistoryTotals": "History Totals",
|
||||
"DbWebcams": "Webcams"
|
||||
"DbWebcams": "Webcams",
|
||||
"DbTimelapseSettings": "Timelapse Settings"
|
||||
},
|
||||
"WebcamsTab": {
|
||||
"Webcams": "Webcams",
|
||||
|
||||
+189
-54
@@ -45,8 +45,8 @@
|
||||
"Empty": "Vide",
|
||||
"Recovering": "Restaurer {software}...",
|
||||
"Updating": "Mise à jour {software}...",
|
||||
"UpdatingDone": "Mise à jour {software} effectuée!",
|
||||
"RecoveringDone": "Restauration {software} effectuée!"
|
||||
"UpdatingDone": "Mise à jour {software} effectuée !",
|
||||
"RecoveringDone": "Restauration {software} effectuée !"
|
||||
}
|
||||
},
|
||||
"Router": {
|
||||
@@ -58,7 +58,8 @@
|
||||
"G-Code Files": "Fichiers G-Code",
|
||||
"History": "Historique",
|
||||
"Machine": "Machine",
|
||||
"G-Code Viewer": "Visualiseur G-code"
|
||||
"G-Code Viewer": "Visualiseur G-code",
|
||||
"Timelapse": "Accéléré"
|
||||
},
|
||||
"Editor": {
|
||||
"Minimap": "Afficher minimap",
|
||||
@@ -72,13 +73,13 @@
|
||||
"Cancel": "Annuler",
|
||||
"DontSave": "Ne pas sauvegarder",
|
||||
"UnsavedChanges": "Changements non sauvegardés",
|
||||
"UnsavedChangesMessage": "Désirez-vous sauvegarder les changements dans {filename}?",
|
||||
"UnsavedChangesMessage": "Désirez-vous sauvegarder les changements dans {filename} ?",
|
||||
"UnsavedChangesSubMessage": "Vos changements seront perdus si vous ne les sauvegardez pas. Vous pouvez desactiver ce message dans les réglages de l'éditeur."
|
||||
},
|
||||
"Files": {
|
||||
"GCodeFiles": "Fichiers G-Code",
|
||||
"UploadNewGcode": "Charger nouveau G-Code",
|
||||
"CreateNewDirectory": "Créer un dossier",
|
||||
"CreateNewDirectory": "Nouveau dossier",
|
||||
"RefreshCurrentDirectory": "Rafraichir le contenu du dossier",
|
||||
"SetupCurrentList": "Configurer liste",
|
||||
"HiddenFiles": "Fichiers cachés",
|
||||
@@ -109,17 +110,17 @@
|
||||
"Create": "Créer",
|
||||
"RenameDirectory": "Renommer le dossier",
|
||||
"Uploading": "Chargement",
|
||||
"CurrentPath": "Chemin actuel",
|
||||
"CurrentPath": "Dossier actuel",
|
||||
"Filesize": "Taille",
|
||||
"LastModified": "Dernière modification",
|
||||
"ObjectHeight": "Hauteur de l'objet",
|
||||
"LayerHeight": "Hauteur de couche",
|
||||
"FilamentUsage": "Utilisation de filament",
|
||||
"FilamentUsage": "Filament utilisé",
|
||||
"PrintTime": "Temps d'impression",
|
||||
"Slicer": "Trancheur",
|
||||
"DeleteDirectory": "Effacer le dossier",
|
||||
"DeleteDirectoryQuestion": "Voulez vous vraiment effacer le dossier \"{name}\" et tout son contenu ?",
|
||||
"DoYouWantToStartFilename": "Voulez vous démarrer {filename} ?",
|
||||
"DoYouWantToStartFilename": "Voulez vous imprimer {filename} ?",
|
||||
"Downloading": "Téléchargement en cours",
|
||||
"FilamentWeight": "Poids du filament",
|
||||
"SuccessfullyCreated": "Fichier {filename} créé",
|
||||
@@ -127,7 +128,8 @@
|
||||
"SuccessfullyMoved": "Fichier {filename} déplacé",
|
||||
"SuccessfullyRenamed": "Fichier {filename} renommé",
|
||||
"SuccessfullyUploaded": "Fichier {filename} mis à jour",
|
||||
"View3D": "Vue 3D"
|
||||
"View3D": "Vue 3D",
|
||||
"StartPrint": "Imprimer"
|
||||
},
|
||||
"Console": {
|
||||
"SetupConsole": "Configuration console",
|
||||
@@ -157,7 +159,7 @@
|
||||
"BedMeshCalibrate": "Calibration maillage",
|
||||
"DoYouReallyWantToCalibrate": "Voulez-vous démarrer la calibration du maillage plateau ?",
|
||||
"DeleteBedMeshProfile": "Effacer maillage",
|
||||
"DoYouReallyWantToDelete": "Voulez-vous effacer le maillage \"{name}\"?",
|
||||
"DoYouReallyWantToDelete": "Voulez-vous effacer le maillage \"{name}\" ?",
|
||||
"Remove": "supprimer",
|
||||
"Flat": "Plat",
|
||||
"NoProfile": "Aucun maillage disponible",
|
||||
@@ -198,14 +200,14 @@
|
||||
"Status": "Status",
|
||||
"StartTime": "Heure départ",
|
||||
"EndTime": "Temps final",
|
||||
"EstimatedTime": "Estimation Temps",
|
||||
"EstimatedTime": "Estimation temps",
|
||||
"PrintDuration": "Temps d'impression",
|
||||
"PrintTime": "Durée d'impression",
|
||||
"TotalDuration": "Temps total",
|
||||
"TotalTime": "Temps total",
|
||||
"EstimatedFilament": "Estimation filament",
|
||||
"FilamentCalc": "Filament calculé",
|
||||
"FilamentUsed": "Filament consommé",
|
||||
"FilamentUsed": "Filament utilisé",
|
||||
"FirstLayerExtTemp": "Temp. extrudeur 1ère couche",
|
||||
"FirstLayerBedTemp": "Temp. plateau 1ère couche",
|
||||
"FirstLayerHeight": "Hauteur 1ère couche",
|
||||
@@ -265,7 +267,7 @@
|
||||
"MissingConfiguration": "Configuration absente",
|
||||
"IsNotDefinedInConfig": "n'est pas défini dans le fichier de configuration.",
|
||||
"MoreInformation": "plus d'information",
|
||||
"IncludeMainsailCfg": "Soyez sur d'avoir inclus \"mainsail.cfg\" dans votre fichier \"printer.cfg\""
|
||||
"IncludeMainsailCfg": "Soyez sûr d'avoir inclus \"mainsail.cfg\" dans votre fichier \"printer.cfg\""
|
||||
},
|
||||
"MiscellaneousPanel": {
|
||||
"Headline": "Divers",
|
||||
@@ -289,15 +291,15 @@
|
||||
"StatusPanel": {
|
||||
"Headline": "Status",
|
||||
"Position": "Position",
|
||||
"Absolute": "absolu",
|
||||
"Relative": "relatif",
|
||||
"Absolute": "absolue",
|
||||
"Relative": "relative",
|
||||
"X": "X",
|
||||
"Y": "Y",
|
||||
"Z": "Z",
|
||||
"PausePrint": "Pause impression",
|
||||
"ResumePrint": "Reprise impression",
|
||||
"CancelPrint": "Annuler impression",
|
||||
"ClearPrintStats": "Effacer statistiques d'impression",
|
||||
"CancelPrint": "Annuler l'impression",
|
||||
"ClearPrintStats": "Effacer les statistiques d'impression",
|
||||
"ReprintJob": "Ré-impression",
|
||||
"Speed": "Vitesse",
|
||||
"Flow": "Débit",
|
||||
@@ -349,7 +351,7 @@
|
||||
},
|
||||
"WebcamPanel": {
|
||||
"Headline": "Caméra",
|
||||
"FPS": "Ips",
|
||||
"FPS": "IPS",
|
||||
"All": "Tous",
|
||||
"UnknownWebcamService": "Service Caméra inconnu",
|
||||
"UrlNotAvailable": "URL non disponible"
|
||||
@@ -369,7 +371,7 @@
|
||||
},
|
||||
"MoonrakerStatePanel": {
|
||||
"DownloadLog": "Téléchargement log",
|
||||
"FollowingPluginHasAnError": "Le Plug-in suivant a une erreur",
|
||||
"FollowingPluginHasAnError": "Le Plug-in suivant a une erreur:",
|
||||
"MoonrakerErrorInfo": "Une erreur a été détectée lors du chargement d'un composant de Moonraker. Contrôlez le fichier log et corrigez.",
|
||||
"MoonrakerWarnings": "Avertissement Moonraker"
|
||||
},
|
||||
@@ -387,9 +389,9 @@
|
||||
"Settings": {
|
||||
"Cancel": "Annuler",
|
||||
"ConsoleTab": {
|
||||
"AddFilter": "Ajouter filtre",
|
||||
"AddFilter": "Nouveau filtre",
|
||||
"Console": "Console",
|
||||
"CreateHeadline": "Créer filtre",
|
||||
"CreateHeadline": "Nouveau filtre",
|
||||
"Direction": "Direction",
|
||||
"DirectionShell": "Défilement de bas en haut",
|
||||
"DirectionTable": "Défilement de haut en bas",
|
||||
@@ -399,7 +401,7 @@
|
||||
"Name": "Nom",
|
||||
"Regex": "Regex",
|
||||
"StoreButton": "Sauvegarder filtre",
|
||||
"UpdateButton": "Mettre à jour filtre",
|
||||
"UpdateButton": "Mettre à jour le filtre",
|
||||
"EntryStyle": "Style de dialogue d'entrée",
|
||||
"EntryStyleCompact": "compact",
|
||||
"EntryStyleDefault": "defaut"
|
||||
@@ -412,10 +414,10 @@
|
||||
"InvertZMovement": "Inversion Z",
|
||||
"MoveDistancesEInMm": "Déplacement E en mm",
|
||||
"MoveDistancesInMm": "Déplacement en mm",
|
||||
"MoveDistancesXYInMm": "Déplacement XY en mm",
|
||||
"MoveDistancesXYInMm": "Déplacement X & Y en mm",
|
||||
"MoveDistancesZInMm": "Déplacement Z en mm",
|
||||
"SpeedEInMms": "Vitesse E en mm/s",
|
||||
"SpeedXY": "Vitesse XY",
|
||||
"SpeedXY": "Vitesse X & Y",
|
||||
"SpeedZ": "Vitesse Z",
|
||||
"Bars": "Barres",
|
||||
"Circle": "Cercle",
|
||||
@@ -424,37 +426,44 @@
|
||||
},
|
||||
"Edit": "Edition",
|
||||
"GeneralTab": {
|
||||
"FactoryInfo": "Voulez-vous vraiment restaurer Mainsail aux réglage d'usine ?",
|
||||
"FactoryReset": "Réglages d'usine",
|
||||
"General": "Général",
|
||||
"Language": "Langue",
|
||||
"PrinterName": "Nom de l'imprimante",
|
||||
"ResetMainsail": "Mise à zéro Mainsail",
|
||||
"CalcEtaTimeDescription": "En cas de séléction multiple, une moyenne est calculée",
|
||||
"CalcEstimateTimeDescription": "En cas de séléction multiple, une moyenne est calculée",
|
||||
"CalcEtaTime": "Calcul du TEA",
|
||||
"CalcEstimateTime": "Calcul du temps estimé"
|
||||
"CalcEstimateTime": "Calcul du temps estimé",
|
||||
"DbGeneral": "Général",
|
||||
"DbHistoryJobs": "Historique des travaux",
|
||||
"DbHistoryTotals": "Historique totaux",
|
||||
"DbMacrogroups": "Groupe de macros",
|
||||
"DbPresets": "Réglages",
|
||||
"DbRemoteprinters": "Imprimantes distantes",
|
||||
"DbWebcams": "Caméras",
|
||||
"FactoryDialog": "Choisissez les sections à réinitialiser",
|
||||
"Reset": "réinitalisation"
|
||||
},
|
||||
"InterfaceSettings": "Réglages interface",
|
||||
"MacrosTab": {
|
||||
"Macros": "Macros",
|
||||
"NOMacros": "Pas de macros trouvées",
|
||||
"Add": "ajouter",
|
||||
"AddGroup": "ajouter un groupe",
|
||||
"AddGroup": "nouveau groupe",
|
||||
"AvailableMacros": "Macros disponibles",
|
||||
"ChangeMacroColor": "Changement de la couleur du bouton",
|
||||
"Color": "Couleur",
|
||||
"CountMacros": "aucune Macro ajoutée | {count} Macro | {count} Macros",
|
||||
"CreateGroup": "Créer un groupe",
|
||||
"Custom": "spécial",
|
||||
"CustomColor": "Couleur spéciale",
|
||||
"CreateGroup": "Nouveau groupe",
|
||||
"Custom": "utilisateur",
|
||||
"CustomColor": "Couleur utilisateur",
|
||||
"DeleteMacroFromGroup": "Effacer la Macro du groupe",
|
||||
"DeletedMacro": "Macro effacée",
|
||||
"EditGroup": "Edition du groupe",
|
||||
"Error": "erreur",
|
||||
"Expert": "Expert",
|
||||
"General": "Général",
|
||||
"GroupMacros": "Macros de groupe",
|
||||
"GroupMacros": "Macros du groupe",
|
||||
"Macrogroups": "Groupe",
|
||||
"Management": "Gestion",
|
||||
"Name": "Nom",
|
||||
@@ -466,45 +475,45 @@
|
||||
"ShowInStatePaused": "Affiche/cache si l'imprimante est en pause",
|
||||
"ShowInStatePrinting": "Affiche/cache si l'imprimante est active",
|
||||
"ShowInStateStandby": "Affiche/cache si l'imprimante est en veille",
|
||||
"Simple": "Simple",
|
||||
"Simple": "Basique",
|
||||
"Status": "Status",
|
||||
"Success": "réussi",
|
||||
"UnknownGroup": "Groupe inconnu",
|
||||
"Warning": "attention"
|
||||
},
|
||||
"DashboardTab": {
|
||||
"Dashboard": "Tableau de bord",
|
||||
"Dashboard": "Tab. de bord",
|
||||
"Mobile": "Mobile",
|
||||
"Tablet": "Tablet",
|
||||
"Desktop": "Desktop",
|
||||
"Widescreen": "Widescreen",
|
||||
"Tablet": "Tablette",
|
||||
"Desktop": "Ecran standard",
|
||||
"Widescreen": "Ecran large",
|
||||
"ResetLayout": "réinitialisation de la mise en page"
|
||||
},
|
||||
"PresetsTab": {
|
||||
"AddPreset": "ajouter préréglage",
|
||||
"AddPreset": "nouveau préréglage",
|
||||
"Cooldown": "Refroidissement",
|
||||
"CreateHeadline": "Créer préréglage",
|
||||
"CreateHeadline": "Nouveau préréglage",
|
||||
"CustomGCode": "G-Code utilisateur",
|
||||
"EditCooldown": "Editer refroidissement",
|
||||
"EditHeadline": "Editer préréglage",
|
||||
"Name": "Nom",
|
||||
"PreheatPresets": "Préréglage chauffage",
|
||||
"PreheatPresets": "Préréglages °C",
|
||||
"PresetInfo": "Vous devez définir une température cible ou un G-Code utilisateur",
|
||||
"StoreButton": "Sauvegarder préréglage",
|
||||
"UpdateButton": "Mise à jour préréglage",
|
||||
"UpdateCooldown": "Mise à jour refroidissement"
|
||||
},
|
||||
"RemotePrintersTab": {
|
||||
"AddPrinter": "Ajouter imprimante",
|
||||
"AddPrinter": "Nouvelle imprimante",
|
||||
"EditPrinter": "Editer imprimante",
|
||||
"Hostname": "Nom d'hôte",
|
||||
"Port": "Port",
|
||||
"RemotePrinters": "Imprimante distante",
|
||||
"RemotePrinters": "Imprimantes",
|
||||
"UpdatePrinter": "Mise à jour imprimante"
|
||||
},
|
||||
"WebcamsTab": {
|
||||
"AddWebcam": "Ajouter caméra",
|
||||
"CreateWebcam": "Créer caméra",
|
||||
"AddWebcam": "Nouvelle caméra",
|
||||
"CreateWebcam": "Nouvelle caméra",
|
||||
"EditWebcam": "Editer caméra",
|
||||
"FlipHorizontally": "Miroir horizontal",
|
||||
"FlipVertically": "Miroir vertical",
|
||||
@@ -514,7 +523,7 @@
|
||||
"IconFilament": "Filament",
|
||||
"IconHot": "Chaud",
|
||||
"IconMcu": "MCU",
|
||||
"IconNozzle": "Buze",
|
||||
"IconNozzle": "Buse",
|
||||
"IconPrinter": "Imprimante",
|
||||
"Ipstream": "Caméra IP",
|
||||
"Mjpegstreamer": "Flux-MJPEG",
|
||||
@@ -533,7 +542,7 @@
|
||||
"UrlSnapshot": "URL des instantanés"
|
||||
},
|
||||
"EditorTab": {
|
||||
"ConfirmUnsavedChanges": "Demande de sauvegarder ou annuler des changements",
|
||||
"ConfirmUnsavedChanges": "Confirmation pour sauvegarder ou annuler des changements",
|
||||
"ConfirmUnsavedChangesDescription": "Si actif, l'éditeur requiert une confirmation de sauvegarde ou d'annulation des changements effectués. Si inactif, les changements sont annulés sans confirmation.",
|
||||
"Editor": "Editeur",
|
||||
"UseEscToClose": "Utiliser la touche \"esc\" pour fermer l'éditeur",
|
||||
@@ -544,7 +553,7 @@
|
||||
"Extruder": "Extrudeur",
|
||||
"ExtruderColor": "Couleur de l'extrudeur",
|
||||
"FeedRate": "Débit de l'extrudeur",
|
||||
"GCodeViewer": "Visualeur G-Code",
|
||||
"GCodeViewer": "Visu. G-Code",
|
||||
"GridColor": "Couleur de la grille",
|
||||
"MaxFeed": "Débit maximum",
|
||||
"MinFeed": "Débit minimum",
|
||||
@@ -564,10 +573,84 @@
|
||||
"GcodeThumbnails": "Miniature G-Code",
|
||||
"GcodeThumbnailsDescription": "Cliquez sur le bouton pour abtenir des instructions",
|
||||
"Guide": "Guide",
|
||||
"Logo": "Logo",
|
||||
"Primary": "Primaire",
|
||||
"Logo": "Couleur du Logo",
|
||||
"Primary": "Couleur primaire",
|
||||
"ShowWebcamInNavigation": "Affiche \"Webcam\" dans le menu de navigation",
|
||||
"UiSettings": "Paramètres interface utilisateur"
|
||||
"UiSettings": "Interface",
|
||||
"BoolHideUploadAndPrintButton": "Cacher le bouton \"Chargement et imprimer\"",
|
||||
"BoolHideUploadAndPrintButtonDescription": "Affiche ou cache le bouton \"Chargement et imprimer\" dans la barre d'outils",
|
||||
"LockSliders": "Fige les curseurs pour les écrans tactiles",
|
||||
"NavigationStyle": "Style de navigation",
|
||||
"NavigationStyleDescription": "Change le style de navigation",
|
||||
"NavigationStyleIconsAndText": "Icônes + Texte",
|
||||
"NavigationStyleIconsOnly": "Seulement Icônes",
|
||||
"LockSlidersDelay": "Délai avant de figer les curseurs",
|
||||
"LockSlidersDelayDescription": "Les curseurs seront figés après le délai. Si 0 ou non renseigné, les curseurs seront figés au changement/rafraichissement de page",
|
||||
"LockSlidersDescription": "Sur écrans tactiles, les curseurs doivent être libres avant que les chagements soient autorisés."
|
||||
},
|
||||
"Close": "Fermer",
|
||||
"TimelapseTab": {
|
||||
"Autorender": "Rendu automatique",
|
||||
"AutorenderDescription": "Si activé, la vidéo en accéléré sera automatiquement affichée à la fin de l'impression",
|
||||
"Camera": "Caméra",
|
||||
"CameraDescription": "Choix de la caméra à utiliser",
|
||||
"ConstantRateFactor": "Facteur d'échantillonage",
|
||||
"ConstantRateFactorDescription": "Ce paramètre configure le rapport entre la taille du fichier vidéo et sa qualité. Il peut aller de 0 à 51. 0 est la meilleure qualité, 23 la qualité par défault et 51 la qualité la plus faible.Une value plus faible augmente la qualité, 17-28 est le meilleur choix. Utilisez 17 ou 18 pour avoir un rendu sans pertes.",
|
||||
"Enabled": "En fonction",
|
||||
"EnabledDescription": "Si hor fonction, les macros G-Code sont ignorées et le rendu automatique est supprimé.",
|
||||
"ExtractDistance": "Distance d'extrusion",
|
||||
"ExtractSpeed": "Vitesse d'extrusion",
|
||||
"Extraoutputparams": "Paramètres de sortie supplémentaires",
|
||||
"ExtraoutputparamsDescription": "Defini les paramètres supplémentaires pour le flux FFMPEG. En cas de paramètres spécifiés, la rotation d'image n'est plus possible.",
|
||||
"GcodeVerbose": "G-Code détaillé",
|
||||
"GcodeVerboseDescription": "Si activé, les macros G-Code envoient des informations détaillées à la console.",
|
||||
"General": "Général",
|
||||
"Mode": "Mode",
|
||||
"ModeDescription": "Choix entre les modes macro de couche et Hyperlapse (basé sur le temps)",
|
||||
"HyperlapseCycle": "Temps de cycle Hyperlapse",
|
||||
"HyperlapseCycleDescription": "Une image sera capturée chaque X secondes",
|
||||
"OutputFramerate": "Images par seconde",
|
||||
"OutputFramerateDescription": "Définit le nombre d'images par seconde. Ignoré si \"variable_fps\" est activé.",
|
||||
"Parkhead": "Parking de la tête",
|
||||
"ParkheadDescription": "Si activé, la tête d'impression sera parquée avant de prendre une image.",
|
||||
"Parkpos": "Position de parking",
|
||||
"ParkposDescription": "Choisissez la position de parking",
|
||||
"Pixelformat": "Format des pixel",
|
||||
"PixelformatDescription": "Définit le format des pixels de la sortie vidéo",
|
||||
"PosDZ": "Position Z",
|
||||
"PosDZDescription": "Position de parking Z (relative)",
|
||||
"PosX": "Position X",
|
||||
"PosXDescription": "Position de parking X (absolue)",
|
||||
"PosY": "Position Y",
|
||||
"PosYDescription": "Position de parking Y (absolue)",
|
||||
"PreviewImage": "Prévisualition de l'image",
|
||||
"PreviewImageDescription": "Sauvegarde une image de prévisualisation avec le même nom que la vidéo.",
|
||||
"RenderingOptions": "Options de rendu",
|
||||
"RetractDistance": "Distance de rétractation",
|
||||
"RetractSpeed": "Vitesse de rétractation",
|
||||
"Rotation": "Rotation",
|
||||
"RotationDescription": "Tourne la sortie vidéo de 0 à 359 degrés",
|
||||
"SaveFrames": "Sauvegarde des images",
|
||||
"SaveFramesDescription": "Sauvegarde les images vers un fichier zip pour un affichage externe",
|
||||
"Targetlength": "Longueur de la cible",
|
||||
"TargetlengthDescription": "Longueur de la cible en cas de IPS variable",
|
||||
"TimeFormatCode": "Format du code horaire",
|
||||
"TimeFormatCodeDescription": "Définit comment le code horaire du fichier de sortie doit être encodé",
|
||||
"Timelapse": "Accéléré",
|
||||
"TravelSpeed": "Vitesse de déplacement",
|
||||
"TravelSpeedDescription": "Vitesse de déplacement pour se rendre à la position de parking et reprendre l'impresion.",
|
||||
"VariableFps": "IPS variable",
|
||||
"VariableFpsDescription": "Si activé, le nombre d'images par seconde (IPS) sera calculé tenant compte de la taille du fichier de sortie.",
|
||||
"VariableFpsMax": "IPS variable max",
|
||||
"VariableFpsMin": "IPS variable min",
|
||||
"duplicatelastframe": "Dédouble la dernière image",
|
||||
"duplicatelastframeDescription": "Dédouble la dernière image de la vidéo",
|
||||
"VariableFpsMinDescription": "Nombre minimum d'IPS en mode variable",
|
||||
"VariableFpsMaxDescription": "Nombre maximum d'IPS en mode variable",
|
||||
"RetractSpeedDescription": "Vitesse de rétractation du filament avant parking",
|
||||
"RetractDistanceDescription": "Distance de rétractation du filament avant parking",
|
||||
"ExtractDistanceDescription": "Distance d'extrusion du filament après parking et avant reprise d'impression",
|
||||
"ExtractSpeedDescription": "Vitesse d'extrusion du filament après parking et avant reprise d'impression"
|
||||
}
|
||||
},
|
||||
"ConnectionDialog": {
|
||||
@@ -588,7 +671,7 @@
|
||||
"CurrentPath": "Chemin actuel",
|
||||
"Delete": "Effacer",
|
||||
"DeleteDirectory": "Effacer dossier",
|
||||
"DeleteDirectoryQuestion": "Voulez-vous vraiment effacer le dossier \"{name}\" et son contenu ?",
|
||||
"DeleteDirectoryQuestion": "Voulez-vous vraiment effacer le dossier \"{name}\" et tout son contenu ?",
|
||||
"Download": "Téléchargement",
|
||||
"EditFile": "Editer fichier",
|
||||
"Empty": "vide",
|
||||
@@ -615,7 +698,7 @@
|
||||
"EndstopPanel": {
|
||||
"Endstop": "Fin de course",
|
||||
"EndstopInfo": "Pressez le bouton de synchronisation en bas à droite afin de recharger l'état des fin de course",
|
||||
"Endstops": "Fin de course",
|
||||
"Endstops": "Fins de course",
|
||||
"open": "inactif",
|
||||
"TRIGGERED": "actif"
|
||||
},
|
||||
@@ -642,7 +725,7 @@
|
||||
"Version": "Version"
|
||||
},
|
||||
"UpdatePanel": {
|
||||
"CheckForUpdates": "Contrôle de mises à jour",
|
||||
"CheckForUpdates": "Contrôle de disponibilité de mises à jour",
|
||||
"Commits": "publié",
|
||||
"Detached": "détaché",
|
||||
"Dirty": "différent",
|
||||
@@ -665,7 +748,7 @@
|
||||
}
|
||||
},
|
||||
"SelectPrinterDialog": {
|
||||
"AddPrinter": "Ajout d'imprimante",
|
||||
"AddPrinter": "Nouvelle d'imprimante",
|
||||
"CannotConnectTo": "Connection vers {host} impossible",
|
||||
"ChangePrinter": "Changement d'imprimante",
|
||||
"Connecting": "Connection vers {host}",
|
||||
@@ -720,5 +803,57 @@
|
||||
"Yes": "Oui",
|
||||
"TurnDeviceOff": "Arrêter {device}",
|
||||
"TurnDeviceOn": "Mettre en marche {device}"
|
||||
},
|
||||
"Timelapse": {
|
||||
"AllFiles": "Tous",
|
||||
"Autorender": "Affichage automatique",
|
||||
"Cancel": "Annuler",
|
||||
"Create": "Créer",
|
||||
"CreateNewDirectory": "nouveau dossier",
|
||||
"CurrentPath": "Chemin actuel",
|
||||
"Delete": "Effacer",
|
||||
"DeleteDirectory": "Effacer dossier",
|
||||
"DeleteDirectoryQuestion": "Voulez-vous vraiment effacer le dossier \"{name}\" et tout son contenu ?",
|
||||
"Download": "Téléchargement",
|
||||
"DuplicateLastframe": "Dédouble la dernière image",
|
||||
"EditFile": "Edition du fichier",
|
||||
"Empty": "Pas de fichier vidéo trouvé",
|
||||
"Enabled": "Activé",
|
||||
"EstimatedLength": "Taille estimée",
|
||||
"Files": "Fichiers",
|
||||
"Filesize": "Taille",
|
||||
"Fixed": "constant",
|
||||
"Framerate": "IPS",
|
||||
"Frames": "images",
|
||||
"Free": "Libre",
|
||||
"FreeDisk": "Disque libre",
|
||||
"LastModified": "Dernière modification",
|
||||
"MaxFramerate": "IPS max",
|
||||
"MinFramerate": "IPS min",
|
||||
"Name": "Nom",
|
||||
"NewDirectory": "Nouveau dossier",
|
||||
"NoActiveTimelapse": "Pas d'enregistrements disponibles",
|
||||
"PleaseEnterANewDirectoryName": "Entrez le nom du nouveau dossier",
|
||||
"Preview": "Prévisualisation",
|
||||
"RefreshCurrentDirectory": "rafraichir le dossier",
|
||||
"Rename": "Renommer",
|
||||
"RenameDirectory": "Renommer le dossier",
|
||||
"RenameFile": "Renommer le fichier",
|
||||
"Render": "afficher",
|
||||
"RenderSettings": "Paramètres d'affichage",
|
||||
"SaveFrames": "Sauvegarde des images",
|
||||
"Search": "recherche",
|
||||
"StartRender": "affiche",
|
||||
"Status": "Status",
|
||||
"TargetFps": "IPS fichier",
|
||||
"Targetlength": "Taille fichier",
|
||||
"TimelapseFiles": "Fichiers vidéo",
|
||||
"TimelapseRendering": "Affiche vidéos",
|
||||
"TimelapseRenderingSuccessful": "Affichage réussi",
|
||||
"Total": "Total",
|
||||
"Type": "Type",
|
||||
"Used": "Utilisé",
|
||||
"Variable": "Variable",
|
||||
"Video": "Vidéo"
|
||||
}
|
||||
}
|
||||
+21
-19
@@ -59,36 +59,38 @@
|
||||
|
||||
import Component from 'vue-class-component'
|
||||
import {Mixins} from 'vue-property-decorator'
|
||||
import MinSettingsPanel from '@/components/panels/MinSettingsPanel.vue'
|
||||
import ControlPanel from '@/components/panels/ControlPanel.vue'
|
||||
import DashboardMixin from '@/components/mixins/dashboard'
|
||||
import KlippyStatePanel from '@/components/panels/KlippyStatePanel.vue'
|
||||
import MachineSettingsPanel from '@/components/panels/MachineSettings/MachineSettingsPanel.vue'
|
||||
import MacrogroupPanel from '@/components/panels/MacrogroupPanel.vue'
|
||||
import MacrosPanel from '@/components/panels/MacrosPanel.vue'
|
||||
import MiniconsolePanel from '@/components/panels/MiniconsolePanel.vue'
|
||||
import MinSettingsPanel from '@/components/panels/MinSettingsPanel.vue'
|
||||
import MiscellaneousPanel from '@/components/panels/MiscellaneousPanel.vue'
|
||||
import MoonrakerStatePanel from '@/components/panels/MoonrakerStatePanel.vue'
|
||||
import PrintsettingsPanel from '@/components/panels/PrintsettingsPanel.vue'
|
||||
import StatusPanel from '@/components/panels/StatusPanel.vue'
|
||||
import ToolsPanel from '@/components/panels/ToolsPanel.vue'
|
||||
import WebcamPanel from '@/components/panels/WebcamPanel.vue'
|
||||
import ZoffsetPanel from '@/components/panels/ZoffsetPanel.vue'
|
||||
import ControlPanel from '@/components/panels/ControlPanel.vue'
|
||||
import MacrosPanel from '@/components/panels/MacrosPanel.vue'
|
||||
import MacrogroupPanel from '@/components/panels/MacrogroupPanel.vue'
|
||||
import MiscellaneousPanel from '@/components/panels/MiscellaneousPanel.vue'
|
||||
import MiniconsolePanel from '@/components/panels/MiniconsolePanel.vue'
|
||||
import PrintsettingsPanel from '@/components/panels/PrintsettingsPanel.vue'
|
||||
import DashboardMixin from '@/components/mixins/dashboard'
|
||||
|
||||
@Component({
|
||||
components: {
|
||||
PrintsettingsPanel,
|
||||
MiniconsolePanel,
|
||||
MiscellaneousPanel,
|
||||
ControlPanel,
|
||||
MacrosPanel,
|
||||
MacrogroupPanel,
|
||||
ZoffsetPanel,
|
||||
WebcamPanel,
|
||||
ToolsPanel,
|
||||
StatusPanel,
|
||||
MoonrakerStatePanel,
|
||||
KlippyStatePanel,
|
||||
MinSettingsPanel
|
||||
MachineSettingsPanel,
|
||||
MacrogroupPanel,
|
||||
MacrosPanel,
|
||||
MiniconsolePanel,
|
||||
MinSettingsPanel,
|
||||
MiscellaneousPanel,
|
||||
MoonrakerStatePanel,
|
||||
PrintsettingsPanel,
|
||||
StatusPanel,
|
||||
ToolsPanel,
|
||||
WebcamPanel,
|
||||
ZoffsetPanel
|
||||
}
|
||||
})
|
||||
export default class PageDashboard extends Mixins(DashboardMixin) {
|
||||
|
||||
+17
-1105
File diff suppressed because it is too large.
Load diff
@@ -90,7 +90,7 @@
|
||||
<v-divider class="my-3"></v-divider>
|
||||
<v-row class="px-3">
|
||||
<v-col>{{ $t('Heightmap.CurrentMesh.Variance') }}</v-col>
|
||||
<v-col class="text-right">{{ Math.abs(bedMeshMinPoint.value - bedMeshMaxPoint.value) }} mm</v-col>
|
||||
<v-col class="text-right">{{ Math.abs(bedMeshMinPoint.value - bedMeshMaxPoint.value).toFixed(3) }} mm</v-col>
|
||||
</v-row>
|
||||
</v-card-text>
|
||||
</panel>
|
||||
|
||||
@@ -6,7 +6,6 @@
|
||||
</v-col>
|
||||
<v-col class="col-12 col-md-6 pt-0 pt-md-3">
|
||||
<klippy-state-panel></klippy-state-panel>
|
||||
<limits-panel></limits-panel>
|
||||
<system-panel></system-panel>
|
||||
<update-panel></update-panel>
|
||||
<v-row>
|
||||
@@ -26,14 +25,20 @@
|
||||
import {Component, Mixins} from 'vue-property-decorator'
|
||||
import BaseMixin from '@/components/mixins/base'
|
||||
import KlippyStatePanel from '@/components/panels/KlippyStatePanel.vue'
|
||||
import LimitsPanel from '@/components/panels/Machine/LimitsPanel.vue'
|
||||
import UpdatePanel from '@/components/panels/Machine/UpdatePanel.vue'
|
||||
import LogfilesPanel from '@/components/panels/Machine/LogfilesPanel.vue'
|
||||
import EndstopPanel from '@/components/panels/Machine/EndstopPanel.vue'
|
||||
import ConfigFilesPanel from '@/components/panels/Machine/ConfigFilesPanel.vue'
|
||||
import SystemPanel from '@/components/panels/Machine/SystemPanel.vue'
|
||||
@Component({
|
||||
components: {SystemPanel, ConfigFilesPanel, EndstopPanel, LogfilesPanel, UpdatePanel, LimitsPanel, KlippyStatePanel}
|
||||
components: {
|
||||
SystemPanel,
|
||||
ConfigFilesPanel,
|
||||
EndstopPanel,
|
||||
LogfilesPanel,
|
||||
UpdatePanel,
|
||||
KlippyStatePanel
|
||||
}
|
||||
})
|
||||
export default class PageMachine extends Mixins(BaseMixin) {
|
||||
|
||||
|
||||
@@ -4,10 +4,10 @@
|
||||
|
||||
<template>
|
||||
<v-row>
|
||||
<v-col class="col-8">
|
||||
<v-col class="col-12 col-md-8 pt-0 pt-md-3" :order="$vuetify.breakpoint.mdAndUp ? '' : '2'">
|
||||
<timelapse-files-panel></timelapse-files-panel>
|
||||
</v-col>
|
||||
<v-col class="col-4">
|
||||
<v-col class="col-12 col-md-4" :order="$vuetify.breakpoint.mdAndUp ? '' : '1'">
|
||||
<timelapse-status-panel></timelapse-status-panel>
|
||||
</v-col>
|
||||
</v-row>
|
||||
|
||||
+28
-1
@@ -46,6 +46,7 @@ export const convertPanelnameToIcon = (name: string): string => {
|
||||
case 'miscellaneous': return 'mdi-dip-switch'
|
||||
case 'tools': return 'mdi-thermometer-lines'
|
||||
case 'miniconsole': return 'mdi-console-line'
|
||||
case 'machine-settings': return 'mdi-engine'
|
||||
|
||||
default: return 'mdi-information'
|
||||
}
|
||||
@@ -107,6 +108,32 @@ export const formatFrequency = (frequency: number): string => {
|
||||
return Math.max(frequency, 0.1).toFixed() + units[i]
|
||||
}
|
||||
|
||||
export const formatPrintTime = (totalSeconds: number): string => {
|
||||
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 '--'
|
||||
}
|
||||
|
||||
export const sortFiles = (items: FileStateFile[] | null, sortBy: string[], sortDesc: boolean[]): FileStateFile[] => {
|
||||
const sortBySingle = sortBy.length ? sortBy[0] : 'filename'
|
||||
const sortDescSingle = sortDesc[0]
|
||||
@@ -168,7 +195,7 @@ export function formatTime(date: Date): string {
|
||||
}
|
||||
|
||||
export function getMacroParams(macro: { gcode: string }): PrinterStateMacroParams {
|
||||
const paramRegex = /{%?.*?\sparams\.([A-Za-z_0-9]+)(?:\|(int|string|double))?(?:\|default\('?"?(.*?)"?'?\))?(?:\|(int|string))?.*?%?}/
|
||||
const paramRegex = /{%?.*?params\.([A-Za-z_0-9]+)(?:\|(int|string|double))?(?:\|default\('?"?(.*?)"?'?\))?(?:\|(int|string))?.*?%?}/
|
||||
|
||||
let params = paramRegex.exec(macro.gcode)
|
||||
let currentMatch = macro.gcode
|
||||
|
||||
@@ -24,6 +24,14 @@ export const getters: GetterTree<FileState, any> = {
|
||||
return findDirectory({childrens: state.filetree} as FileStateFile, requestedPath.split('/'))
|
||||
},
|
||||
|
||||
getFile: (state, getters) => (requestedFilename: string) => {
|
||||
const path = requestedFilename.slice(0, requestedFilename.lastIndexOf('/'))
|
||||
const filename = requestedFilename.slice(requestedFilename.lastIndexOf('/') + 1)
|
||||
const directory = getters['getDirectory'](path)
|
||||
|
||||
return directory?.childrens?.find((file: FileStateFile) => file.filename === filename && !file.isDirectory)
|
||||
},
|
||||
|
||||
getThemeFileUrl: (state, getters, rootState, rootGetters) => (acceptName: string, acceptExtensions: string[]) => {
|
||||
const directory = getters['getDirectory']('config/'+themeDir)
|
||||
|
||||
|
||||
@@ -224,11 +224,12 @@ export const mutations: MutationTree<FileState> = {
|
||||
},
|
||||
|
||||
setDiskUsage(state, payload) {
|
||||
let path = payload.path
|
||||
if (path.indexOf('/') !== -1) path = path.substr(0, path.indexOf('/'))
|
||||
const parentPath = payload.path.substr(0, payload.path.lastIndexOf('/'))
|
||||
const pathName = payload.path.substr(payload.path.lastIndexOf('/') + 1)
|
||||
const parent = findDirectory(state.filetree, parentPath.split('/'))
|
||||
const directory = parent?.find((element) => element.isDirectory && element.filename === pathName)
|
||||
|
||||
const dir = state.filetree.find(dir => dir.filename === path)
|
||||
if (dir && 'disk_usage' in dir) Vue.set(dir, 'disk_usage', payload.disk_usage)
|
||||
if (directory) Vue.set(directory, 'disk_usage', payload.disk_usage)
|
||||
},
|
||||
|
||||
setRootPermissions(state, payload) {
|
||||
|
||||
@@ -41,11 +41,11 @@ export const getters: GetterTree<RootState, any> = {
|
||||
const klipperVersion = state.printer?.software_version ?? ''
|
||||
const klipperVersionSplits = klipperVersion.split('-')
|
||||
const klipperVersionRelease = klipperVersionSplits[0] ?? ''
|
||||
const klipperVersionBuild = klipperVersionSplits[1] ?? 0
|
||||
const klipperVersionBuild = parseInt(klipperVersionSplits[1] ?? 0)
|
||||
|
||||
const minKlipperVersionSplits = minKlipperVersion.split('-')
|
||||
const minKlipperVersionRelease = minKlipperVersionSplits[0] ?? ''
|
||||
const minKlipperVersionBuild = minKlipperVersionSplits[1] ?? 0
|
||||
const minKlipperVersionBuild = parseInt(minKlipperVersionSplits[1] ?? 0)
|
||||
|
||||
if (
|
||||
semver.valid(klipperVersionRelease) && (
|
||||
@@ -63,11 +63,11 @@ export const getters: GetterTree<RootState, any> = {
|
||||
const moonrakerVersion = state.server?.moonraker_version ?? ''
|
||||
const moonrakerVersionSplits = moonrakerVersion.split('-')
|
||||
const moonrakerVersionRelease = moonrakerVersionSplits[0] ?? ''
|
||||
const moonrakerVersionBuild = moonrakerVersionSplits[1] ?? 0
|
||||
const moonrakerVersionBuild = parseInt(moonrakerVersionSplits[1] ?? 0)
|
||||
|
||||
const minMoonrakerVersionSplits = minMoonrakerVersion.split('-')
|
||||
const minMoonrakerVersionRelease = minMoonrakerVersionSplits[0] ?? ''
|
||||
const minMoonrakerVersionBuild = minMoonrakerVersionSplits[1] ?? 0
|
||||
const minMoonrakerVersionBuild = parseInt(minMoonrakerVersionSplits[1] ?? 0)
|
||||
|
||||
if (moonrakerVersion === '') {
|
||||
dependencies.push({
|
||||
|
||||
@@ -176,7 +176,7 @@ export const actions: ActionTree<GuiState, RootState> = {
|
||||
if (state.resetDatabases.length) {
|
||||
const namespace = state.resetDatabases[0]
|
||||
|
||||
if (namespace.startsWith('mainsail') || namespace === 'webcams') {
|
||||
if (namespace.startsWith('mainsail') || ['webcams', 'timelapse'].includes(namespace)) {
|
||||
Vue.$socket.emit('server.database.get_item', { namespace: namespace }, { action: 'gui/resetMoonrakerDbLoopItems' })
|
||||
} else if (namespace === 'history_jobs') {
|
||||
Vue.$socket.emit('server.history.delete_job', { all: true }, { action: 'gui/resetMoonrakerDbLoopItems' })
|
||||
@@ -256,11 +256,6 @@ export const actions: ActionTree<GuiState, RootState> = {
|
||||
})
|
||||
},
|
||||
|
||||
saveSliderLockState({ commit, dispatch, state }, payload) {
|
||||
if (!payload.value) commit('removeFromLockedSliders', {name: payload.name})
|
||||
else commit('addToLockedSliders', { name: payload.name })
|
||||
},
|
||||
|
||||
toggleHideUploadAndPrintBtn({commit, dispatch, state}, payload) {
|
||||
commit('toggleHideUploadAndPrintBtn', payload)
|
||||
dispatch('updateSettings', {
|
||||
|
||||
@@ -38,7 +38,6 @@ export const getDefaultState = (): GuiState => {
|
||||
macroManagement: 'simple',
|
||||
hiddenMacros: [],
|
||||
hiddenTempChart: [],
|
||||
lockedSliders: [],
|
||||
control: {
|
||||
style: 'bars',
|
||||
feedrateXY: 100,
|
||||
@@ -65,6 +64,7 @@ export const getDefaultState = (): GuiState => {
|
||||
{ 'name': 'control', visable: true },
|
||||
{ 'name': 'macros', visable: true },
|
||||
{ 'name': 'printsettings', visable: true },
|
||||
{ 'name': 'machine-settings', visable: true },
|
||||
{ 'name': 'miscellaneous', visable: true },
|
||||
{ 'name': 'tools', visable: true },
|
||||
{ 'name': 'miniconsole', visable: false },
|
||||
@@ -75,6 +75,7 @@ export const getDefaultState = (): GuiState => {
|
||||
{ 'name': 'control', visable: true },
|
||||
{ 'name': 'macros', visable: true },
|
||||
{ 'name': 'printsettings', visable: true },
|
||||
{ 'name': 'machine-settings', visable: true },
|
||||
{ 'name': 'miscellaneous', visable: true },
|
||||
],
|
||||
tabletLayout2: [
|
||||
@@ -87,6 +88,7 @@ export const getDefaultState = (): GuiState => {
|
||||
{ 'name': 'control', visable: true },
|
||||
{ 'name': 'macros', visable: true },
|
||||
{ 'name': 'printsettings', visable: true },
|
||||
{ 'name': 'machine-settings', visable: true },
|
||||
{ 'name': 'miscellaneous', visable: true },
|
||||
],
|
||||
desktopLayout2: [
|
||||
@@ -102,6 +104,7 @@ export const getDefaultState = (): GuiState => {
|
||||
widescreenLayout2: [
|
||||
{ 'name': 'tools', visable: true },
|
||||
{ 'name': 'printsettings', visable: true },
|
||||
{ 'name': 'machine-settings', visable: true },
|
||||
],
|
||||
widescreenLayout3: [
|
||||
{ 'name': 'webcam', visable: true },
|
||||
@@ -142,6 +145,9 @@ export const getDefaultState = (): GuiState => {
|
||||
sortDesc: true,
|
||||
showHiddenFiles: false,
|
||||
},
|
||||
jobqueue: {
|
||||
countPerPage: 10,
|
||||
},
|
||||
heightmap: {
|
||||
probed: true,
|
||||
mesh: false,
|
||||
|
||||
@@ -3,7 +3,7 @@ import {GuiWebcamState, GuiWebcamStateWebcam} from '@/store/gui/webcams/types'
|
||||
|
||||
// eslint-disable-next-line
|
||||
export const getters: GetterTree<GuiWebcamState, any> = {
|
||||
getWebcams:(state) => {
|
||||
getWebcams: (state) => {
|
||||
const webcams: GuiWebcamStateWebcam[] = []
|
||||
|
||||
Object.keys(state.webcams).forEach((id: string) => {
|
||||
@@ -12,4 +12,10 @@ export const getters: GetterTree<GuiWebcamState, any> = {
|
||||
|
||||
return webcams
|
||||
},
|
||||
|
||||
getWebcam: (state, getters) => (camId: string) => {
|
||||
const webcams = getters['getWebcams'] ?? []
|
||||
|
||||
return webcams.find((webcam:GuiWebcamStateWebcam) => webcam.id === camId)
|
||||
}
|
||||
}
|
||||
@@ -502,12 +502,13 @@ export const getters: GetterTree<PrinterState, RootState> = {
|
||||
const objects = getters.getPrinterConfigObjects(checkObjects)
|
||||
Object.keys(objects).forEach((key) => {
|
||||
const settings = objects[key]
|
||||
const caseKey: string = Object.keys(state).find((state_key: string) => state_key.toLowerCase() === key.toLowerCase()) || ''
|
||||
if (
|
||||
'sensor_type' in settings &&
|
||||
sensorTypes.includes(settings.sensor_type) &&
|
||||
key in state
|
||||
caseKey in state
|
||||
) {
|
||||
const value = state[key]
|
||||
const value = state[caseKey]
|
||||
|
||||
output = {
|
||||
temperature: value.temperature?.toFixed(0),
|
||||
@@ -528,11 +529,13 @@ export const getters: GetterTree<PrinterState, RootState> = {
|
||||
const objects = getters.getPrinterConfigObjects(checkObjects)
|
||||
Object.keys(objects).forEach((key) => {
|
||||
const value = objects[key]
|
||||
const caseKey: string = Object.keys(state).find((state_key: string) => state_key.toLowerCase() === key.toLowerCase()) || ''
|
||||
|
||||
if ('sensor_type' in value && value.sensor_type === 'temperature_mcu' && 'sensor_mcu' in value) {
|
||||
output.push({
|
||||
key: key,
|
||||
key: caseKey,
|
||||
settings: value,
|
||||
object: key in state ? state[key] : {}
|
||||
object: caseKey in state ? state[caseKey] : {}
|
||||
})
|
||||
}
|
||||
})
|
||||
|
||||
@@ -89,7 +89,7 @@ export const getters: GetterTree<ServerState, any> = {
|
||||
let tempSensor = rootGetters['printer/getHostTempSensor']
|
||||
if (tempSensor === null) {
|
||||
tempSensor = {
|
||||
temperature: state.cpu_temp.toFixed(0),
|
||||
temperature: state.cpu_temp?.toFixed(0),
|
||||
measured_min_temp: null,
|
||||
measured_max_temp: null
|
||||
}
|
||||
|
||||
@@ -9,6 +9,7 @@ import { power } from '@/store/server/power'
|
||||
import { updateManager } from '@/store/server/updateManager'
|
||||
import { history } from '@/store/server/history'
|
||||
import { timelapse } from '@/store/server/timelapse'
|
||||
import { jobQueue } from '@/store/server/jobQueue'
|
||||
|
||||
// create getDefaultState
|
||||
export const getDefaultState = (): ServerState => {
|
||||
@@ -50,5 +51,6 @@ export const server: Module<ServerState, any> = {
|
||||
updateManager,
|
||||
history,
|
||||
timelapse,
|
||||
jobQueue,
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,45 @@
|
||||
import Vue from 'vue'
|
||||
import { ActionTree } from 'vuex'
|
||||
import {RootState} from '@/store/types'
|
||||
import {ServerJobQueueState} from '@/store/server/jobQueue/types'
|
||||
|
||||
export const actions: ActionTree<ServerJobQueueState, RootState> = {
|
||||
reset({ commit }) {
|
||||
commit('reset')
|
||||
},
|
||||
|
||||
init() {
|
||||
Vue.$socket.emit('server.job_queue.status', { }, { action: 'server/jobQueue/getStatus' })
|
||||
},
|
||||
|
||||
getEvent({ commit }, payload) {
|
||||
if ('updated_queue' in payload) commit('setQueuedJobs', payload.updated_queue)
|
||||
if ('queue_state' in payload) commit('setQueueState', payload.queue_state)
|
||||
},
|
||||
|
||||
getStatus({ commit }, payload) {
|
||||
if ('queued_jobs' in payload) commit('setQueuedJobs', payload.queued_jobs)
|
||||
if ('queue_state' in payload) commit('setQueueState', payload.queue_state)
|
||||
},
|
||||
|
||||
async addToQueue({ state }, filenames: string[]) {
|
||||
Vue.$socket.emit('server.job_queue.post_job', { filenames: filenames })
|
||||
},
|
||||
|
||||
deleteFromQueue(_, job_ids: string[]) {
|
||||
Vue.$socket.emit('server.job_queue.delete_job', { job_ids })
|
||||
},
|
||||
|
||||
clearQueue(_) {
|
||||
Vue.$socket.emit('server.job_queue.delete_job', { all: true })
|
||||
},
|
||||
|
||||
start(_) {
|
||||
Vue.$socket.emit('server.job_queue.start', { }, { loading: 'resumeJobqueue' })
|
||||
},
|
||||
|
||||
pause(_) {
|
||||
Vue.$socket.emit('server.job_queue.pause', { }, { loading: 'pauseJobqueue' })
|
||||
}
|
||||
|
||||
}
|
||||
@@ -0,0 +1,22 @@
|
||||
import {GetterTree} from 'vuex'
|
||||
import {ServerJobQueueState, ServerJobQueueStateJob} from '@/store/server/jobQueue/types'
|
||||
import Vue from 'vue'
|
||||
|
||||
// eslint-disable-next-line
|
||||
export const getters: GetterTree<ServerJobQueueState, any> = {
|
||||
|
||||
getJobs: (state, getters, rootState, rootGetters) => {
|
||||
const jobs: ServerJobQueueStateJob[] = []
|
||||
|
||||
state.queued_jobs.forEach((queuedJob) => {
|
||||
const job = {...queuedJob}
|
||||
const file = rootGetters['files/getFile']('gcodes/'+job.filename)
|
||||
if (!file?.metadataPulled) Vue.$socket.emit('server.files.metadata', { filename: job.filename }, { action: 'files/getMetadata' })
|
||||
job['metadata'] = file
|
||||
|
||||
jobs.push(job)
|
||||
})
|
||||
|
||||
return jobs
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,24 @@
|
||||
import { Module } from 'vuex'
|
||||
import { ServerJobQueueState } from '@/store/server/jobQueue/types'
|
||||
import { actions } from '@/store/server/jobQueue/actions'
|
||||
import { mutations } from '@/store/server/jobQueue/mutations'
|
||||
import { getters } from '@/store/server/jobQueue/getters'
|
||||
|
||||
export const getDefaultState = (): ServerJobQueueState => {
|
||||
return {
|
||||
queued_jobs: [],
|
||||
queue_state: ''
|
||||
}
|
||||
}
|
||||
|
||||
// initial state
|
||||
const state = getDefaultState()
|
||||
|
||||
// eslint-disable-next-line
|
||||
export const jobQueue: Module<ServerJobQueueState, any> = {
|
||||
namespaced: true,
|
||||
state,
|
||||
getters,
|
||||
actions,
|
||||
mutations
|
||||
}
|
||||
@@ -0,0 +1,18 @@
|
||||
import { getDefaultState } from './index'
|
||||
import { MutationTree } from 'vuex'
|
||||
import {ServerJobQueueState, ServerJobQueueStateJob} from '@/store/server/jobQueue/types'
|
||||
import Vue from 'vue'
|
||||
|
||||
export const mutations: MutationTree<ServerJobQueueState> = {
|
||||
reset(state) {
|
||||
Object.assign(state, getDefaultState())
|
||||
},
|
||||
|
||||
setQueuedJobs(state, payload: ServerJobQueueStateJob[]) {
|
||||
Vue.set(state, 'queued_jobs', payload)
|
||||
},
|
||||
|
||||
setQueueState(state, payload: string) {
|
||||
Vue.set(state, 'queue_state', payload)
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,12 @@
|
||||
export interface ServerJobQueueState {
|
||||
queued_jobs: ServerJobQueueStateJob[],
|
||||
queue_state: string
|
||||
}
|
||||
|
||||
export interface ServerJobQueueStateJob {
|
||||
filename: string
|
||||
job_id: string
|
||||
time_added: number
|
||||
time_in_queue: number
|
||||
metadata?: any
|
||||
}
|
||||
@@ -56,6 +56,7 @@ export interface ServerStateCpuInfo {
|
||||
bits: string
|
||||
cpu_count: number
|
||||
cpu_desc: string
|
||||
serial_number: string
|
||||
hardware_desc: string
|
||||
memory_units: string
|
||||
model: string
|
||||
|
||||
@@ -104,6 +104,10 @@ export const actions: ActionTree<SocketState, RootState> = {
|
||||
dispatch('server/timelapse/getEvent', payload.params[0], { root: true })
|
||||
break
|
||||
|
||||
case 'notify_job_queue_changed':
|
||||
dispatch('server/jobQueue/getEvent', payload.params[0], { root: true })
|
||||
break
|
||||
|
||||
default:
|
||||
if (payload.result !== 'ok' && payload.error?.message) window.console.error('JSON-RPC: ' + payload.error.message)
|
||||
else window.console.debug(payload)
|
||||
|
||||
@@ -2,7 +2,7 @@ export const defaultLogoColor = '#D41216'
|
||||
export const defaultPrimaryColor = '#2196f3'
|
||||
|
||||
export const minKlipperVersion = 'v0.9.1-778'
|
||||
export const minMoonrakerVersion = 'v0.7.1-107'
|
||||
export const minMoonrakerVersion = 'v0.7.1-193'
|
||||
|
||||
export const colorArray = [
|
||||
'#F44336',
|
||||
@@ -48,6 +48,7 @@ export const initableServerComponents = [
|
||||
'power',
|
||||
'updateManager',
|
||||
'timelapse',
|
||||
'jobQueue',
|
||||
]
|
||||
|
||||
export const checkKlipperConfigModules = [
|
||||
@@ -82,6 +83,7 @@ export const maxEventHistory = 500
|
||||
export const allDashboardPanels = [
|
||||
'control',
|
||||
'macros',
|
||||
'machine-settings',
|
||||
'miniconsole',
|
||||
'miscellaneous',
|
||||
'printsettings',
|
||||
|
||||
Reference in new issue
Block a user