build(lint): upgrade vue ruleset to ‘recommended’ (#663)
This commit is contained in:
1 parent
8c55bf6789
commit
60ce6553a9
91 files changed
+1013
-1034
No files matched your search
+2
-1
@@ -5,11 +5,12 @@
|
||||
"es6": true,
|
||||
"node": true
|
||||
},
|
||||
"extends": ["plugin:vue/essential", "eslint:recommended", "@vue/typescript", "prettier"],
|
||||
"extends": ["plugin:vue/recommended", "eslint:recommended", "@vue/typescript", "prettier"],
|
||||
"globals": {
|
||||
"Atomics": "readonly",
|
||||
"SharedArrayBuffer": "readonly"
|
||||
},
|
||||
"rules": { "vue/no-v-html": 0, "vue/component-tags-order": 0, "vue/attributes-order": 0 },
|
||||
"parser": "vue-eslint-parser",
|
||||
"parserOptions": {
|
||||
"parser": "@typescript-eslint/parser",
|
||||
|
||||
+1
-1
@@ -32,7 +32,7 @@
|
||||
|
||||
<v-main id="content" :style="mainStyle">
|
||||
<overlay-scrollbars class="main-content-scrollbar">
|
||||
<v-container fluid id="page-container" class="container px-3 px-sm-6 py-sm-6 mx-auto">
|
||||
<v-container id="page-container" fluid class="container px-3 px-sm-6 py-sm-6 mx-auto">
|
||||
<router-view></router-view>
|
||||
</v-container>
|
||||
</overlay-scrollbars>
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
<template>
|
||||
<v-dialog transition="dialog-bottom-transition" max-width="600" scrollable v-model="isOpen" :fullscreen="isMobile">
|
||||
<v-dialog v-model="isOpen" transition="dialog-bottom-transition" max-width="600" scrollable :fullscreen="isMobile">
|
||||
<template #activator="{ on, attrs }">
|
||||
<template v-if="inToolbar">
|
||||
<v-btn icon tile v-bind="attrs" v-on="on"><v-icon small>mdi-help</v-icon></v-btn>
|
||||
@@ -21,7 +21,7 @@
|
||||
icon="mdi-help"
|
||||
card-class="command-help-dialog"
|
||||
:margin-bottom="false">
|
||||
<template v-slot:buttons>
|
||||
<template #buttons>
|
||||
<v-btn icon tile @click="isOpen = false"><v-icon>mdi-close-thick</v-icon></v-btn>
|
||||
</template>
|
||||
<v-card-title>
|
||||
|
||||
@@ -17,10 +17,10 @@
|
||||
</span>
|
||||
</v-toolbar-title>
|
||||
</v-toolbar>
|
||||
<v-card-text class="pt-5" v-if="isConnecting">
|
||||
<v-card-text v-if="isConnecting" class="pt-5">
|
||||
<v-progress-linear color="white" indeterminate></v-progress-linear>
|
||||
</v-card-text>
|
||||
<v-card-text class="pt-5" v-if="!isConnecting && connectingFailed">
|
||||
<v-card-text v-if="!isConnecting && connectingFailed" class="pt-5">
|
||||
<connection-status :moonraker="false"></connection-status>
|
||||
<p class="text-center mt-3">{{ $t('ConnectionDialog.CannotConnectTo', { host: formatHostname }) }}</p>
|
||||
<template v-if="counter > 2">
|
||||
@@ -33,7 +33,7 @@
|
||||
<v-divider class="mt-4 mb-5"></v-divider>
|
||||
</template>
|
||||
<div class="text-center">
|
||||
<v-btn @click="reconnect" class="primary--text">{{ $t('ConnectionDialog.TryAgain') }}</v-btn>
|
||||
<v-btn class="primary--text" @click="reconnect">{{ $t('ConnectionDialog.TryAgain') }}</v-btn>
|
||||
</div>
|
||||
</v-card-text>
|
||||
</v-card>
|
||||
|
||||
@@ -3,8 +3,8 @@
|
||||
<template>
|
||||
<div>
|
||||
<v-dialog
|
||||
persistent
|
||||
v-model="show"
|
||||
persistent
|
||||
fullscreen
|
||||
hide-overlay
|
||||
:transition="false"
|
||||
@@ -19,12 +19,12 @@
|
||||
' ' +
|
||||
(isWriteable ? changed : '(' + $t('Editor.FileReadOnly') + ')')
|
||||
">
|
||||
<template v-slot:buttons>
|
||||
<template #buttons>
|
||||
<v-btn
|
||||
v-if="restartServiceName === 'klipper'"
|
||||
text
|
||||
tile
|
||||
href="https://www.klipper3d.org/Config_Reference.html"
|
||||
v-if="restartServiceName === 'klipper'"
|
||||
target="_blank"
|
||||
class="d-none d-md-flex">
|
||||
<v-icon small class="mr-1">mdi-help</v-icon>
|
||||
@@ -44,8 +44,8 @@
|
||||
color="primary"
|
||||
text
|
||||
tile
|
||||
@click="save(restartServiceName)"
|
||||
class="d-none d-sm-flex">
|
||||
class="d-none d-sm-flex"
|
||||
@click="save(restartServiceName)">
|
||||
<v-icon small class="mr-1">mdi-restart</v-icon>
|
||||
{{ $t('Editor.SaveRestart') }}
|
||||
</v-btn>
|
||||
@@ -58,7 +58,7 @@
|
||||
ref="editor"
|
||||
v-model="sourcecode"
|
||||
:name="filename"
|
||||
v-bind:file-extension="fileExtension"></codemirror-async>
|
||||
:file-extension="fileExtension"></codemirror-async>
|
||||
</overlay-scrollbars>
|
||||
</v-card-text>
|
||||
</panel>
|
||||
@@ -82,8 +82,8 @@
|
||||
<template v-else>
|
||||
<v-progress-linear class="mt-2" indeterminate></v-progress-linear>
|
||||
</template>
|
||||
<template v-slot:action="{ attrs }">
|
||||
<v-btn color="red" text v-bind="attrs" @click="cancelDownload" style="min-width: auto" tile>
|
||||
<template #action="{ attrs }">
|
||||
<v-btn color="red" text v-bind="attrs" style="min-width: auto" tile @click="cancelDownload">
|
||||
<v-icon class="0">mdi-close</v-icon>
|
||||
</v-btn>
|
||||
</template>
|
||||
@@ -94,7 +94,7 @@
|
||||
icon="mdi-help-circle"
|
||||
:title="$t('Editor.UnsavedChanges')"
|
||||
:margin-bottom="false">
|
||||
<template v-slot:buttons>
|
||||
<template #buttons>
|
||||
<v-btn icon tile @click="dialogConfirmChange = false"><v-icon>mdi-close-thick</v-icon></v-btn>
|
||||
</template>
|
||||
<v-card-text class="pt-3">
|
||||
|
||||
@@ -8,7 +8,7 @@
|
||||
:title="panelTitle"
|
||||
:margin-bottom="false"
|
||||
toolbar-color="toolbar">
|
||||
<template v-slot:buttons>
|
||||
<template #buttons>
|
||||
<template v-if="!isConnecting && !connectingFailed">
|
||||
<template v-if="dialogEditPrinter.bool">
|
||||
<v-btn icon tile class="minwidth-0" @click="dialogEditPrinter.bool = false">
|
||||
@@ -17,16 +17,16 @@
|
||||
</template>
|
||||
<template v-else-if="dialogAddPrinter.bool">
|
||||
<v-btn
|
||||
v-if="dialogAddPrinter.bool"
|
||||
icon
|
||||
tile
|
||||
class="minwidth-0"
|
||||
v-if="dialogAddPrinter.bool"
|
||||
@click="dialogAddPrinter.bool = false">
|
||||
<v-icon>mdi-close-thick</v-icon>
|
||||
</v-btn>
|
||||
</template>
|
||||
<template v-else-if="printers.length > 0">
|
||||
<v-btn icon tile class="minwidth-0" @click="checkPrinters" color="primary">
|
||||
<v-btn icon tile class="minwidth-0" color="primary" @click="checkPrinters">
|
||||
<v-icon>mdi-sync</v-icon>
|
||||
</v-btn>
|
||||
</template>
|
||||
@@ -47,10 +47,10 @@
|
||||
}}
|
||||
</p>
|
||||
<div class="text-center">
|
||||
<v-btn text @click="switchToChangePrinter" color="white" class="mr-3">
|
||||
<v-btn text color="white" class="mr-3" @click="switchToChangePrinter">
|
||||
{{ $t('SelectPrinterDialog.ChangePrinter') }}
|
||||
</v-btn>
|
||||
<v-btn text @click="reconnect" color="primary">{{ $t('SelectPrinterDialog.TryAgain') }}</v-btn>
|
||||
<v-btn text color="primary" @click="reconnect">{{ $t('SelectPrinterDialog.TryAgain') }}</v-btn>
|
||||
</div>
|
||||
</v-card-text>
|
||||
</template>
|
||||
@@ -133,7 +133,7 @@
|
||||
<v-card-text class="mt-3">
|
||||
<v-row v-if="printers.length">
|
||||
<v-col class="px-6">
|
||||
<v-row v-for="(printer, index) in printers" v-bind:key="index">
|
||||
<v-row v-for="(printer, index) in printers" :key="index">
|
||||
<v-col
|
||||
class="rounded transition-swing toolbar py-2 px-2 mb-2 overflow-hidden"
|
||||
style="cursor: pointer"
|
||||
@@ -141,14 +141,14 @@
|
||||
<v-row align="center">
|
||||
<v-col class="col-auto pr-0">
|
||||
<v-progress-circular
|
||||
v-if="printer.socket.isConnecting"
|
||||
indeterminate
|
||||
color="primary"
|
||||
v-if="printer.socket.isConnecting"
|
||||
size="24"
|
||||
width="2.5"></v-progress-circular>
|
||||
<v-icon
|
||||
:color="printer.socket.isConnected ? 'green' : 'red'"
|
||||
v-if="!printer.socket.isConnecting">
|
||||
v-if="!printer.socket.isConnecting"
|
||||
:color="printer.socket.isConnected ? 'green' : 'red'">
|
||||
mdi-{{
|
||||
printer.socket.isConnected ? 'checkbox-marked-circle' : 'cancel'
|
||||
}}
|
||||
@@ -162,7 +162,7 @@
|
||||
icon
|
||||
large
|
||||
class="mr-1"
|
||||
v-on:click.stop.prevent="editPrinter(printer)">
|
||||
@click.stop.prevent="editPrinter(printer)">
|
||||
<v-icon small>mdi-pencil</v-icon>
|
||||
</v-btn>
|
||||
</v-col>
|
||||
@@ -173,7 +173,7 @@
|
||||
</v-row>
|
||||
<v-row v-if="showCorsInfo">
|
||||
<v-col>
|
||||
<p class="text-center" v-if="this.printers.length === 0">
|
||||
<p v-if="printers.length === 0" class="text-center">
|
||||
{{ $t('SelectPrinterDialog.Hello') }}
|
||||
</p>
|
||||
<p class="text-center">
|
||||
|
||||
@@ -8,8 +8,8 @@
|
||||
width="900"
|
||||
persistent
|
||||
:fullscreen="isMobile"
|
||||
@keydown.esc="showSettings = false"
|
||||
scrollable>
|
||||
scrollable
|
||||
@keydown.esc="showSettings = false">
|
||||
<panel
|
||||
:title="$t('Settings.InterfaceSettings')"
|
||||
icon="mdi-cogs"
|
||||
@@ -17,14 +17,14 @@
|
||||
:margin-bottom="false"
|
||||
style="overflow: hidden"
|
||||
:height="isMobile ? 0 : 548">
|
||||
<template v-slot:buttons>
|
||||
<template #buttons>
|
||||
<v-btn icon tile @click="showSettings = false"><v-icon>mdi-close-thick</v-icon></v-btn>
|
||||
</template>
|
||||
<template v-if="isMobile">
|
||||
<v-tabs v-model="activeTab" :center-active="true" :show-arrows="true">
|
||||
<v-tab
|
||||
v-for="(tab, index) of tabTitles"
|
||||
v-bind:key="index"
|
||||
:key="index"
|
||||
:href="'#' + tab.name"
|
||||
class="justify-start">
|
||||
<v-icon left v-html="tab.icon"></v-icon>
|
||||
@@ -33,12 +33,12 @@
|
||||
</v-tabs>
|
||||
</template>
|
||||
<v-row class="flex-row flex-nowrap">
|
||||
<v-col class="col-auto pr-0" v-if="!isMobile">
|
||||
<overlay-scrollbars class="settings-tabs-bar height500" ref="settingsTabsScroll">
|
||||
<v-col v-if="!isMobile" class="col-auto pr-0">
|
||||
<overlay-scrollbars ref="settingsTabsScroll" class="settings-tabs-bar height500">
|
||||
<v-tabs v-model="activeTab" :vertical="true">
|
||||
<v-tab
|
||||
v-for="(tab, index) of tabTitles"
|
||||
v-bind:key="index"
|
||||
:key="index"
|
||||
:href="'#' + tab.name"
|
||||
class="justify-start"
|
||||
style="width: 200px">
|
||||
@@ -50,8 +50,8 @@
|
||||
</v-col>
|
||||
<v-col :class="isMobile ? '' : 'pl-0'" :style="isMobile ? '' : 'min-width: 500px;'">
|
||||
<overlay-scrollbars
|
||||
:class="'settings-tabs ' + (isMobile ? '' : 'height500')"
|
||||
ref="settingsScroll"
|
||||
:class="'settings-tabs ' + (isMobile ? '' : 'height500')"
|
||||
:options="{ overflowBehavior: { x: 'hidden' } }">
|
||||
<component :is="'settings-' + activeTab + '-tab'" @scrollToTop="scrollToTop"></component>
|
||||
</overlay-scrollbars>
|
||||
|
||||
@@ -43,10 +43,10 @@
|
||||
</style>
|
||||
<template>
|
||||
<v-navigation-drawer
|
||||
:key="navigationStyle"
|
||||
v-model="naviDrawer"
|
||||
:src="sidebarBackground"
|
||||
:mini-variant="navigationStyle === 'iconsOnly'"
|
||||
:key="navigationStyle"
|
||||
:width="navigationWidth"
|
||||
:temporary="boolNaviTemp"
|
||||
clipped
|
||||
@@ -56,6 +56,7 @@
|
||||
<v-list class="pr-0 pt-0 ml-0">
|
||||
<v-list-item-group active-class="active-nav-item">
|
||||
<v-list-item
|
||||
v-if="isMobile"
|
||||
router
|
||||
to="/"
|
||||
:class="
|
||||
@@ -63,8 +64,7 @@
|
||||
(navigationStyle === 'iconsOnly' ? 'pa-0 justify-center' : '')
|
||||
"
|
||||
:style="'height: ' + topbarHeight + 'px'"
|
||||
:ripple="false"
|
||||
v-if="isMobile">
|
||||
:ripple="false">
|
||||
<template v-if="sidebarLogo">
|
||||
<img :src="sidebarLogo" :style="logoCssVars" class="nav-logo" alt="Logo" />
|
||||
</template>
|
||||
@@ -81,7 +81,7 @@
|
||||
</v-list-item>
|
||||
<template v-if="countPrinters">
|
||||
<v-tooltip right :open-delay="500" :disabled="navigationStyle !== 'iconsOnly'">
|
||||
<template v-slot:activator="{ on, attrs }">
|
||||
<template #activator="{ on, attrs }">
|
||||
<v-list-item
|
||||
router
|
||||
to="/allPrinters"
|
||||
@@ -104,7 +104,7 @@
|
||||
</template>
|
||||
<div v-for="(category, index) in naviPoints" :key="index">
|
||||
<v-tooltip right :open-delay="500" :disabled="navigationStyle !== 'iconsOnly'">
|
||||
<template v-slot:activator="{ on, attrs }">
|
||||
<template #activator="{ on, attrs }">
|
||||
<v-list-item
|
||||
router
|
||||
:to="category.path"
|
||||
@@ -127,7 +127,7 @@
|
||||
</v-list-item-group>
|
||||
</v-list>
|
||||
</overlay-scrollbars>
|
||||
<template v-slot:append>
|
||||
<template #append>
|
||||
<v-list-item class="small-list-item mb-2">
|
||||
<v-list-item-icon class="menu-item-icon">
|
||||
<about-modal></about-modal>
|
||||
|
||||
@@ -2,12 +2,12 @@
|
||||
|
||||
<template>
|
||||
<v-menu
|
||||
v-if="throttledStateFlags.length"
|
||||
v-model="showMenu"
|
||||
bottom
|
||||
:offset-y="true"
|
||||
:close-on-content-click="false"
|
||||
v-model="showMenu"
|
||||
v-if="throttledStateFlags.length">
|
||||
<template v-slot:activator="{ on, attrs }">
|
||||
:close-on-content-click="false">
|
||||
<template #activator="{ on, attrs }">
|
||||
<v-btn :color="currentFlags.length ? 'error' : 'warning'" icon tile class="mr-3" v-bind="attrs" v-on="on">
|
||||
<v-icon>mdi-raspberry-pi</v-icon>
|
||||
</v-btn>
|
||||
@@ -28,7 +28,7 @@
|
||||
</v-list-item>
|
||||
</template>
|
||||
<template v-if="previouslyFlags.length">
|
||||
<v-divider class="my-2" v-if="currentFlags.length"></v-divider>
|
||||
<v-divider v-if="currentFlags.length" class="my-2"></v-divider>
|
||||
<v-subheader class="" style="height: auto">
|
||||
{{ $t('App.ThrottledStates.HeadlinePreviouslyFlags') }}
|
||||
</v-subheader>
|
||||
|
||||
@@ -4,8 +4,8 @@
|
||||
<div>
|
||||
<v-snackbar v-model="boolShowDialogRunning" :timeout="-1" :value="true" fixed right bottom dark>
|
||||
<div>{{ $t('Timelapse.TimelapseRendering') }}...</div>
|
||||
<v-progress-linear class="mt-2" v-if="progress > 0" :value="progress" indeterminate></v-progress-linear>
|
||||
<v-progress-linear class="mt-2" v-if="progress === 0" indeterminate></v-progress-linear>
|
||||
<v-progress-linear v-if="progress > 0" class="mt-2" :value="progress" indeterminate></v-progress-linear>
|
||||
<v-progress-linear v-if="progress === 0" class="mt-2" indeterminate></v-progress-linear>
|
||||
</v-snackbar>
|
||||
<v-snackbar v-model="boolShowDialogSuccess" :timeout="5000" :value="true" fixed right bottom dark>
|
||||
<div>
|
||||
|
||||
@@ -6,8 +6,8 @@
|
||||
|
||||
<template>
|
||||
<div>
|
||||
<v-menu bottom left :offset-y="true" :close-on-content-click="false" v-model="showMenu">
|
||||
<template v-slot:activator="{ on, attrs }">
|
||||
<v-menu v-model="showMenu" bottom left :offset-y="true" :close-on-content-click="false">
|
||||
<template #activator="{ on, attrs }">
|
||||
<v-btn icon tile v-bind="attrs" v-on="on">
|
||||
<v-icon>mdi-power-standby</v-icon>
|
||||
</v-btn>
|
||||
@@ -37,14 +37,14 @@
|
||||
</v-list-item>
|
||||
</template>
|
||||
<template v-if="services.length">
|
||||
<v-divider class="mt-0" v-if="klipperState !== 'disconnected'"></v-divider>
|
||||
<v-divider v-if="klipperState !== 'disconnected'" class="mt-0"></v-divider>
|
||||
<v-subheader class="pt-2" style="height: auto">
|
||||
{{ $t('App.TopCornerMenu.ServiceControl') }}
|
||||
</v-subheader>
|
||||
<v-list-item class="minheight30 pr-2" v-for="service in services" v-bind:key="service">
|
||||
<v-list-item v-for="service in services" :key="service" class="minheight30 pr-2">
|
||||
<v-list-item-title>
|
||||
<v-tooltip left>
|
||||
<template v-slot:activator="{ on, attrs }">
|
||||
<template #activator="{ on, attrs }">
|
||||
<span v-bind="attrs" v-on="on">
|
||||
{{ service.charAt(0).toUpperCase() + service.slice(1) }}
|
||||
</span>
|
||||
@@ -54,21 +54,21 @@
|
||||
</v-list-item-title>
|
||||
<v-list-item-action class="my-0 d-flex flex-row" style="min-width: auto">
|
||||
<v-btn
|
||||
v-if="getServiceState(service) === 'inactive'"
|
||||
icon
|
||||
small
|
||||
v-if="getServiceState(service) === 'inactive'"
|
||||
@click="checkDialog(serviceStart, service, 'start')">
|
||||
<v-icon small>mdi-play</v-icon>
|
||||
</v-btn>
|
||||
<v-btn icon small v-else @click="checkDialog(serviceRestart, service, 'restart')">
|
||||
<v-btn v-else icon small @click="checkDialog(serviceRestart, service, 'restart')">
|
||||
<v-icon small>mdi-restart</v-icon>
|
||||
</v-btn>
|
||||
<v-btn
|
||||
icon
|
||||
small
|
||||
:disabled="getServiceState(service) === 'inactive' || service === 'moonraker'"
|
||||
@click="checkDialog(serviceStop, service, 'stop')"
|
||||
:style="service === 'moonraker' ? 'visibility: hidden;' : ''">
|
||||
:style="service === 'moonraker' ? 'visibility: hidden;' : ''"
|
||||
@click="checkDialog(serviceStop, service, 'stop')">
|
||||
<v-icon small>mdi-stop</v-icon>
|
||||
</v-btn>
|
||||
</v-list-item-action>
|
||||
@@ -81,13 +81,13 @@
|
||||
</v-subheader>
|
||||
<v-list-item
|
||||
v-for="(device, index) in powerDevices"
|
||||
v-bind:key="index"
|
||||
:key="index"
|
||||
class="minheight30 pr-2"
|
||||
@click="changeSwitch(device, device.status)"
|
||||
:disabled="
|
||||
device.status === 'error' ||
|
||||
(device.locked_while_printing && ['printing', 'paused'].includes(printer_state))
|
||||
">
|
||||
"
|
||||
@click="changeSwitch(device, device.status)">
|
||||
<v-list-item-title>{{ device.device }}</v-list-item-title>
|
||||
<v-list-item-action class="my-0 d-flex flex-row" style="min-width: auto">
|
||||
<v-icon class="mr-2" :color="device.status === 'on' ? '' : 'grey darken-2'">
|
||||
@@ -116,7 +116,7 @@
|
||||
<v-card>
|
||||
<v-card-title class="headline">
|
||||
{{
|
||||
this.dialogPowerDeviceChange.value === 'off'
|
||||
dialogPowerDeviceChange.value === 'off'
|
||||
? $t('PowerDeviceChangeDialog.TurnDeviceOn', { device: dialogPowerDeviceChange.device })
|
||||
: $t('PowerDeviceChangeDialog.TurnDeviceOff', { device: dialogPowerDeviceChange.device })
|
||||
}}
|
||||
@@ -139,7 +139,7 @@
|
||||
icon="mdi-alert"
|
||||
:title="dialogConfirmation.title"
|
||||
:margin-bottom="false">
|
||||
<template v-slot:buttons>
|
||||
<template #buttons>
|
||||
<v-btn icon tile @click="dialogConfirmation.show = false"><v-icon>mdi-close-thick</v-icon></v-btn>
|
||||
</template>
|
||||
<v-card-text class="pt-3">
|
||||
|
||||
@@ -49,18 +49,18 @@
|
||||
<v-spacer></v-spacer>
|
||||
<the-throttled-states></the-throttled-states>
|
||||
<input
|
||||
type="file"
|
||||
ref="fileUploadAndStart"
|
||||
type="file"
|
||||
:accept="validGcodeExtensions.join(', ')"
|
||||
style="display: none"
|
||||
@change="uploadAndStart" />
|
||||
<v-btn
|
||||
v-if="klippyIsConnected && saveConfigPending"
|
||||
tile
|
||||
:icon="$vuetify.breakpoint.smAndDown"
|
||||
:text="$vuetify.breakpoint.mdAndUp"
|
||||
color="primary"
|
||||
class="button-min-width-auto px-3 d-none d-sm-flex save-config-button"
|
||||
v-if="klippyIsConnected && saveConfigPending"
|
||||
:disabled="printerIsPrinting"
|
||||
:loading="loadings.includes('topbarSaveConfig')"
|
||||
@click="saveConfig">
|
||||
@@ -68,28 +68,28 @@
|
||||
<span class="d-none d-md-inline">{{ $t('App.TopBar.SAVE_CONFIG') }}</span>
|
||||
</v-btn>
|
||||
<v-btn
|
||||
tile
|
||||
:icon="$vuetify.breakpoint.smAndDown"
|
||||
:text="$vuetify.breakpoint.mdAndUp"
|
||||
color="primary"
|
||||
class="button-min-width-auto px-3 d-none d-sm-flex upload-and-start-button"
|
||||
v-if="
|
||||
klippyIsConnected &&
|
||||
['standby', 'complete', 'cancelled'].includes(printer_state) &&
|
||||
!boolHideUploadAndPrintButton
|
||||
"
|
||||
tile
|
||||
:icon="$vuetify.breakpoint.smAndDown"
|
||||
:text="$vuetify.breakpoint.mdAndUp"
|
||||
color="primary"
|
||||
class="button-min-width-auto px-3 d-none d-sm-flex upload-and-start-button"
|
||||
:loading="loadings.includes('btnUploadAndStart')"
|
||||
@click="btnUploadAndStart">
|
||||
<v-icon class="mr-md-2">mdi-file-upload</v-icon>
|
||||
<span class="d-none d-md-inline">{{ $t('App.TopBar.UploadPrint') }}</span>
|
||||
</v-btn>
|
||||
<v-btn
|
||||
v-if="klippyIsConnected"
|
||||
tile
|
||||
:icon="$vuetify.breakpoint.smAndDown"
|
||||
:text="$vuetify.breakpoint.mdAndUp"
|
||||
color="error"
|
||||
class="button-min-width-auto px-3 emergency-button"
|
||||
v-if="klippyIsConnected"
|
||||
:loading="loadings.includes('topbarEmergencyStop')"
|
||||
@click="btnEmergencyStop">
|
||||
<v-icon class="mr-md-2">mdi-alert-circle-outline</v-icon>
|
||||
@@ -98,14 +98,14 @@
|
||||
<the-settings-menu></the-settings-menu>
|
||||
<the-top-corner-menu></the-top-corner-menu>
|
||||
</v-app-bar>
|
||||
<v-snackbar :timeout="-1" :value="true" fixed right bottom dark v-model="uploadSnackbar.status">
|
||||
<v-snackbar v-model="uploadSnackbar.status" :timeout="-1" :value="true" fixed right bottom dark>
|
||||
<strong>{{ $t('App.TopBar.Uploading') }} {{ uploadSnackbar.filename }}</strong>
|
||||
<br />
|
||||
{{ Math.round(uploadSnackbar.percent) }} % @ {{ formatFilesize(Math.round(uploadSnackbar.speed)) }}/s
|
||||
<br />
|
||||
<v-progress-linear class="mt-2" :value="uploadSnackbar.percent"></v-progress-linear>
|
||||
<template v-slot:action="{ attrs }">
|
||||
<v-btn color="red" text v-bind="attrs" @click="cancelUpload" style="min-width: auto">
|
||||
<template #action="{ attrs }">
|
||||
<v-btn color="red" text v-bind="attrs" style="min-width: auto" @click="cancelUpload">
|
||||
<v-icon class="0">mdi-close</v-icon>
|
||||
</v-btn>
|
||||
</template>
|
||||
@@ -117,7 +117,7 @@
|
||||
card-class="emergency-stop-dialog"
|
||||
icon="mdi-alert-circle-outline"
|
||||
:margin-bottom="false">
|
||||
<template v-slot:buttons>
|
||||
<template #buttons>
|
||||
<v-btn icon tile @click="showEmergencyStopDialog = false"><v-icon>mdi-close-thick</v-icon></v-btn>
|
||||
</template>
|
||||
<v-card-text>{{ $t('EmergencyStopDialog.AreYouSure') }}</v-card-text>
|
||||
|
||||
@@ -43,8 +43,9 @@
|
||||
<v-card-text class="px-3">
|
||||
<v-row>
|
||||
<v-col class="py-6 px-0">
|
||||
<overlay-scrollbars class="updaterLogScroll" ref="updaterLogScroll">
|
||||
<overlay-scrollbars ref="updaterLogScroll" class="updaterLogScroll">
|
||||
<v-data-table
|
||||
ref="updaterLog"
|
||||
:headers="headers"
|
||||
:items="messages"
|
||||
item-key="date"
|
||||
@@ -52,7 +53,6 @@
|
||||
hide-default-header
|
||||
disable-pagination
|
||||
class="updaterLog"
|
||||
ref="updaterLog"
|
||||
:custom-sort="customSort"
|
||||
sort-by="date"
|
||||
:sort-desc="true"
|
||||
@@ -77,7 +77,7 @@
|
||||
</v-row>
|
||||
<v-row>
|
||||
<v-col class="text-center pt-5">
|
||||
<v-btn text @click="close" :disabled="!complete" color="primary">
|
||||
<v-btn text :disabled="!complete" color="primary" @click="close">
|
||||
{{ $t('App.UpdateDialog.Close') }}
|
||||
</v-btn>
|
||||
</v-col>
|
||||
|
||||
@@ -1,10 +1,10 @@
|
||||
<template>
|
||||
<e-chart
|
||||
ref="historyAllPrintStatus"
|
||||
v-observe-visibility="visibilityChanged"
|
||||
:option="chartOptions"
|
||||
:init-options="{ renderer: 'svg' }"
|
||||
style="height: 250px; width: 100%"
|
||||
v-observe-visibility="visibilityChanged"></e-chart>
|
||||
style="height: 250px; width: 100%"></e-chart>
|
||||
</template>
|
||||
|
||||
<script lang="ts">
|
||||
|
||||
@@ -1,10 +1,10 @@
|
||||
<template>
|
||||
<e-chart
|
||||
ref="historyFilamentUsage"
|
||||
v-observe-visibility="visibilityChanged"
|
||||
:option="chartOptions"
|
||||
:init-options="{ renderer: 'svg' }"
|
||||
style="height: 175px; width: 100%"
|
||||
v-observe-visibility="visibilityChanged"></e-chart>
|
||||
style="height: 175px; width: 100%"></e-chart>
|
||||
</template>
|
||||
|
||||
<script lang="ts">
|
||||
|
||||
@@ -1,10 +1,10 @@
|
||||
<template>
|
||||
<e-chart
|
||||
ref="historyPrinttimeAvg"
|
||||
v-observe-visibility="visibilityChanged"
|
||||
:option="chartOptions"
|
||||
:init-options="{ renderer: 'svg' }"
|
||||
style="height: 175px; width: 100%"
|
||||
v-observe-visibility="visibilityChanged"></e-chart>
|
||||
style="height: 175px; width: 100%"></e-chart>
|
||||
</template>
|
||||
|
||||
<script lang="ts">
|
||||
|
||||
@@ -1,10 +1,10 @@
|
||||
<template>
|
||||
<e-chart
|
||||
ref="tempchart"
|
||||
v-observe-visibility="visibilityChanged"
|
||||
:option="chartOptions"
|
||||
:init-options="{ renderer: 'svg' }"
|
||||
style="height: 250px; width: 100%"
|
||||
v-observe-visibility="visibilityChanged"></e-chart>
|
||||
style="height: 250px; width: 100%"></e-chart>
|
||||
</template>
|
||||
|
||||
<script lang="ts">
|
||||
|
||||
@@ -10,7 +10,7 @@
|
||||
<template v-else>
|
||||
<console-table-entry
|
||||
v-for="(event, index) of events"
|
||||
v-bind:key="index"
|
||||
:key="index"
|
||||
class="consoleTableRow"
|
||||
:event="event"
|
||||
@command-click="commandClick"></console-table-entry>
|
||||
|
||||
@@ -28,8 +28,8 @@
|
||||
<v-col class="col-auto pr-0 text--disabled console-time">{{ event.formatTime }}</v-col>
|
||||
<v-col
|
||||
:class="colorConsoleMessage(event) + ' ' + 'console-message'"
|
||||
v-html="event.formatMessage"
|
||||
@click.capture="commandClick"></v-col>
|
||||
@click.capture="commandClick"
|
||||
v-html="event.formatMessage"></v-col>
|
||||
</v-row>
|
||||
</template>
|
||||
|
||||
|
||||
@@ -58,15 +58,15 @@
|
||||
<template>
|
||||
<div>
|
||||
<panel :title="$t('GCodeViewer.Title')" icon="mdi-video-3d" card-class="gcode-viewer-panel">
|
||||
<template v-slot:buttons>
|
||||
<template #buttons>
|
||||
<v-btn
|
||||
v-show="reloadRequired"
|
||||
:icon="$vuetify.breakpoint.xs"
|
||||
:text="$vuetify.breakpoint.smAndUp"
|
||||
tile
|
||||
@click="reloadViewer"
|
||||
color="info"
|
||||
class="ml-3"
|
||||
v-show="reloadRequired">
|
||||
@click="reloadViewer">
|
||||
<span class="d-none d-sm-block">{{ $t('GCodeViewer.ReloadRequired') }}</span>
|
||||
<v-icon class="d-sm-none">mdi-reload-alert</v-icon>
|
||||
</v-btn>
|
||||
@@ -96,18 +96,20 @@
|
||||
class="d-flex align-content-space-around justify-center flex-wrap flex-md-nowrap col-12 col-md-4">
|
||||
<template v-if="loadedFile === null">
|
||||
<v-btn
|
||||
@click="loadCurrentFile"
|
||||
v-if="sdCardFilePath !== '' && sdCardFilePath !== loadedFile"
|
||||
class="mr-3"
|
||||
v-if="sdCardFilePath !== '' && sdCardFilePath !== loadedFile">
|
||||
@click="loadCurrentFile">
|
||||
{{ $t('GCodeViewer.LoadCurrentFile') }}
|
||||
</v-btn>
|
||||
<v-btn @click="chooseFile">{{ $t('GCodeViewer.LoadLocal') }}</v-btn>
|
||||
</template>
|
||||
<template v-else>
|
||||
<v-btn @click="tracking = !tracking" class="mr-3" v-if="showTrackingButton">
|
||||
<v-btn v-if="showTrackingButton" class="mr-3" @click="tracking = !tracking">
|
||||
<v-icon
|
||||
v-html="tracking ? 'mdi-toggle-switch' : 'mdi-toggle-switch-off-outline'"
|
||||
class="mr-2"></v-icon>
|
||||
class="mr-2"
|
||||
v-html="
|
||||
tracking ? 'mdi-toggle-switch' : 'mdi-toggle-switch-off-outline'
|
||||
"></v-icon>
|
||||
{{ $t('GCodeViewer.Tracking') }}
|
||||
</v-btn>
|
||||
<v-btn @click="clearLoadedFile">{{ $t('GCodeViewer.ClearLoadedFile') }}</v-btn>
|
||||
@@ -115,21 +117,21 @@
|
||||
</v-col>
|
||||
<v-col class="col-12 col-sm-6 col-md-4">
|
||||
<v-select
|
||||
v-model="colorMode"
|
||||
:items="colorModes"
|
||||
:label="$t('GCodeViewer.ColorMode')"
|
||||
item-text="text"
|
||||
dense
|
||||
v-model="colorMode"
|
||||
hide-details
|
||||
outlined></v-select>
|
||||
</v-col>
|
||||
<v-col order-md="3" class="col-12 col-sm-6 col-md-4">
|
||||
<v-select
|
||||
v-model="renderQuality"
|
||||
:items="renderQualities"
|
||||
:label="$t('GCodeViewer.RenderQuality')"
|
||||
item-text="label"
|
||||
dense
|
||||
v-model="renderQuality"
|
||||
hide-details
|
||||
outlined></v-select>
|
||||
</v-col>
|
||||
@@ -141,7 +143,7 @@
|
||||
top
|
||||
:close-on-content-click="false"
|
||||
:title="$t('Files.SetupCurrentList')">
|
||||
<template v-slot:activator="{ on, attrs }">
|
||||
<template #activator="{ on, attrs }">
|
||||
<v-btn class="minwidth-0 px-2 mr-3 mt-3" v-bind="attrs" v-on="on">
|
||||
<v-icon>mdi-cog</v-icon>
|
||||
</v-btn>
|
||||
@@ -149,83 +151,83 @@
|
||||
<v-list>
|
||||
<v-list-item class="minHeight36">
|
||||
<v-checkbox
|
||||
v-model="showCursor"
|
||||
class="mt-0"
|
||||
hide-details
|
||||
v-model="showCursor"
|
||||
:label="$t('GCodeViewer.ShowToolhead')"></v-checkbox>
|
||||
</v-list-item>
|
||||
<v-list-item class="minHeight36">
|
||||
<v-checkbox
|
||||
v-model="showTravelMoves"
|
||||
class="mt-0"
|
||||
hide-details
|
||||
v-model="showTravelMoves"
|
||||
:label="$t('GCodeViewer.ShowTravelMoves')"></v-checkbox>
|
||||
</v-list-item>
|
||||
<v-list-item
|
||||
class="minHeight36"
|
||||
v-if="loadedFile === sdCardFilePath && printing_objects.length > 1">
|
||||
v-if="loadedFile === sdCardFilePath && printing_objects.length > 1"
|
||||
class="minHeight36">
|
||||
<v-checkbox
|
||||
v-model="showObjectSelection"
|
||||
class="mt-0"
|
||||
hide-details
|
||||
v-model="showObjectSelection"
|
||||
:label="$t('GCodeViewer.ShowObjectSelection')"></v-checkbox>
|
||||
</v-list-item>
|
||||
<v-divider></v-divider>
|
||||
<v-list-item class="minHeight36">
|
||||
<v-checkbox
|
||||
v-model="hdRendering"
|
||||
class="mt-0"
|
||||
hide-details
|
||||
v-model="hdRendering"
|
||||
:label="$t('GCodeViewer.HDRendering')"></v-checkbox>
|
||||
</v-list-item>
|
||||
<v-list-item class="minHeight36">
|
||||
<v-checkbox
|
||||
v-model="forceLineRendering"
|
||||
class="mt-0"
|
||||
hide-details
|
||||
v-model="forceLineRendering"
|
||||
:label="$t('GCodeViewer.ForceLineRendering')"></v-checkbox>
|
||||
</v-list-item>
|
||||
<v-list-item class="minHeight36">
|
||||
<v-checkbox
|
||||
v-model="transparency"
|
||||
class="mt-0"
|
||||
hide-details
|
||||
v-model="transparency"
|
||||
:label="$t('GCodeViewer.Transparency')"></v-checkbox>
|
||||
</v-list-item>
|
||||
<v-list-item class="minHeight36">
|
||||
<v-checkbox
|
||||
v-model="voxelMode"
|
||||
class="mt-0"
|
||||
hide-details
|
||||
v-model="voxelMode"
|
||||
:label="$t('GCodeViewer.VoxelMode')"></v-checkbox>
|
||||
</v-list-item>
|
||||
<v-list-item class="minHeight36">
|
||||
<v-checkbox
|
||||
v-model="specularLighting"
|
||||
class="mt-0"
|
||||
hide-details
|
||||
v-model="specularLighting"
|
||||
:label="$t('GCodeViewer.SpecularLighting')"></v-checkbox>
|
||||
</v-list-item>
|
||||
</v-list>
|
||||
</v-menu>
|
||||
</v-row>
|
||||
<input
|
||||
ref="fileInput"
|
||||
:accept="'.g,.gcode,.gc,.gco,.nc,.ngc,.tap'"
|
||||
@change="fileSelected"
|
||||
hidden
|
||||
multiple
|
||||
ref="fileInput"
|
||||
type="file" />
|
||||
type="file"
|
||||
@change="fileSelected" />
|
||||
</v-card-text>
|
||||
</panel>
|
||||
<v-snackbar v-model="loading" :timeout="-1" :value="true" fixed right bottom dark>
|
||||
<div>
|
||||
{{ $t('GCodeViewer.Rendering') }} - {{ loadingPercent }}%
|
||||
<br />
|
||||
<strong>{{ this.loadedFile }}</strong>
|
||||
<strong>{{ loadedFile }}</strong>
|
||||
</div>
|
||||
<v-progress-linear class="mt-2" :value="loadingPercent"></v-progress-linear>
|
||||
<template v-slot:action="{ attrs }">
|
||||
<template #action="{ attrs }">
|
||||
<v-btn color="red" text v-bind="attrs" style="min-width: auto" @click="cancelRendering()">
|
||||
<v-icon class="0">mdi-close</v-icon>
|
||||
</v-btn>
|
||||
@@ -249,8 +251,8 @@
|
||||
</div>
|
||||
<v-progress-linear class="mt-2" indeterminate></v-progress-linear>
|
||||
</template>
|
||||
<template v-slot:action="{ attrs }">
|
||||
<v-btn color="red" text v-bind="attrs" @click="cancelDownload" style="min-width: auto">
|
||||
<template #action="{ attrs }">
|
||||
<v-btn color="red" text v-bind="attrs" style="min-width: auto" @click="cancelDownload">
|
||||
<v-icon class="0">mdi-close</v-icon>
|
||||
</v-btn>
|
||||
</template>
|
||||
|
||||
@@ -4,7 +4,7 @@ import Vue from 'vue'
|
||||
* Load code mirror into a chunk
|
||||
*/
|
||||
export default Vue.component(
|
||||
'codemirror-async',
|
||||
'CodemirrorAsync',
|
||||
// A dynamic import returns a Promise.
|
||||
() => import('@/components/inputs/Codemirror.vue')
|
||||
)
|
||||
@@ -6,12 +6,10 @@
|
||||
</style>
|
||||
|
||||
<template>
|
||||
<form v-on:submit.prevent="sendCmd">
|
||||
<form @submit.prevent="sendCmd">
|
||||
<v-text-field
|
||||
v-model="value"
|
||||
class="d-flex align-center"
|
||||
@click:append="resetLimit"
|
||||
@blur="value = target"
|
||||
:label="label"
|
||||
:suffix="unit"
|
||||
:append-icon="value !== defaultValue ? 'mdi-restart' : ''"
|
||||
@@ -21,22 +19,24 @@
|
||||
:max="max"
|
||||
:dec="dec"
|
||||
type="number"
|
||||
@click:append="resetLimit"
|
||||
hide-spin-buttons
|
||||
@blur="value = target"
|
||||
hide-details
|
||||
outlined
|
||||
dense>
|
||||
<template v-if="hasSpinner" v-slot:append-outer>
|
||||
<template v-if="hasSpinner" #append-outer>
|
||||
<div class="_spin_button_group">
|
||||
<v-btn
|
||||
@click="increment"
|
||||
:disabled="(value >= max && max !== null) || error"
|
||||
class="mt-n3"
|
||||
icon
|
||||
plain
|
||||
small>
|
||||
small
|
||||
@click="increment">
|
||||
<v-icon>mdi-chevron-up</v-icon>
|
||||
</v-btn>
|
||||
<v-btn @click="decrement" :disabled="value <= min || error" class="mb-n3" icon plain small>
|
||||
<v-btn :disabled="value <= min || error" class="mb-n3" icon plain small @click="decrement">
|
||||
<v-icon>mdi-chevron-down</v-icon>
|
||||
</v-btn>
|
||||
</div>
|
||||
|
||||
@@ -22,8 +22,8 @@
|
||||
</v-btn>
|
||||
<template v-if="paramArray.length">
|
||||
<v-menu offset-y :close-on-content-click="false">
|
||||
<template v-slot:activator="{ on, attrs }">
|
||||
<v-btn small :color="color" v-bind="attrs" v-on="on" class="minwidth-0 px-1 btnMacroMenu">
|
||||
<template #activator="{ on, attrs }">
|
||||
<v-btn small :color="color" v-bind="attrs" class="minwidth-0 px-1 btnMacroMenu" v-on="on">
|
||||
<v-icon>mdi-menu-down</v-icon>
|
||||
</v-btn>
|
||||
</template>
|
||||
@@ -32,8 +32,8 @@
|
||||
<v-row v-for="(name, key) in paramArray" :key="'param_' + key" class="my-2">
|
||||
<v-col class="py-0">
|
||||
<v-text-field
|
||||
:label="name"
|
||||
v-model="params[name].value"
|
||||
:label="name"
|
||||
:placeholder="params[name].default"
|
||||
:persistent-placeholder="true"
|
||||
hide-details
|
||||
|
||||
@@ -9,20 +9,15 @@
|
||||
<v-row>
|
||||
<v-col :class="pwm ? 'pb-1' : 'pb-3'">
|
||||
<v-subheader class="_fan-slider-subheader">
|
||||
<v-btn
|
||||
v-if="lockSliders && this.isTouchDevice && pwm"
|
||||
@click="isLocked = !isLocked"
|
||||
plain
|
||||
small
|
||||
icon>
|
||||
<v-btn v-if="lockSliders && isTouchDevice && pwm" plain small icon @click="isLocked = !isLocked">
|
||||
<v-icon small :color="isLocked ? 'red' : ''">
|
||||
{{ isLocked ? 'mdi-lock-outline' : 'mdi-lock-open-variant-outline' }}
|
||||
</v-icon>
|
||||
</v-btn>
|
||||
<v-icon
|
||||
v-if="type !== 'output_pin'"
|
||||
small
|
||||
:class="'mr-2 ' + (value >= off_below && value > 0 ? 'icon-rotate' : '')"
|
||||
v-if="type !== 'output_pin'">
|
||||
:class="'mr-2 ' + (value >= off_below && value > 0 ? 'icon-rotate' : '')">
|
||||
mdi-fan
|
||||
</v-icon>
|
||||
<span>{{ convertName(name) }}</span>
|
||||
@@ -30,14 +25,14 @@
|
||||
<small v-if="rpm || rpm === 0" :class="'mr-3 ' + (rpm === 0 && value > 0 ? 'red--text' : '')">
|
||||
{{ Math.round(rpm) }} RPM
|
||||
</small>
|
||||
<span class="font-weight-bold" v-if="!controllable || (controllable && pwm)">
|
||||
<span v-if="!controllable || (controllable && pwm)" class="font-weight-bold">
|
||||
{{ Math.round(parseFloat(value) * 100) }} %
|
||||
</span>
|
||||
<v-icon v-if="controllable && !pwm" @click="switchOutputPin">
|
||||
{{ value ? 'mdi-toggle-switch' : 'mdi-toggle-switch-off-outline' }}
|
||||
</v-icon>
|
||||
</v-subheader>
|
||||
<v-card-text class="py-0" v-if="controllable && pwm">
|
||||
<v-card-text v-if="controllable && pwm" class="py-0">
|
||||
<v-slider
|
||||
v-model="value"
|
||||
v-touch="{ start: resetLockTimer }"
|
||||
@@ -46,14 +41,14 @@
|
||||
:max="1.0"
|
||||
:step="0.01"
|
||||
:color="value < off_below && value > 0 ? 'red' : undefined"
|
||||
@change="changeSlider"
|
||||
hide-details>
|
||||
<template v-slot:prepend>
|
||||
<v-icon @click="decrement" :disabled="isLocked">mdi-minus</v-icon>
|
||||
hide-details
|
||||
@change="changeSlider">
|
||||
<template #prepend>
|
||||
<v-icon :disabled="isLocked" @click="decrement">mdi-minus</v-icon>
|
||||
</template>
|
||||
|
||||
<template v-slot:append>
|
||||
<v-icon @click="increment" :disabled="isLocked">mdi-plus</v-icon>
|
||||
<template #append>
|
||||
<v-icon :disabled="isLocked" @click="increment">mdi-plus</v-icon>
|
||||
</template>
|
||||
</v-slider>
|
||||
</v-card-text>
|
||||
|
||||
@@ -6,12 +6,10 @@
|
||||
</style>
|
||||
|
||||
<template>
|
||||
<form v-on:submit.prevent="sendCmd">
|
||||
<form @submit.prevent="sendCmd">
|
||||
<v-text-field
|
||||
v-model="value"
|
||||
class="d-flex align-center"
|
||||
@click:append="resetLimit"
|
||||
@blur="value = target"
|
||||
:label="label"
|
||||
:suffix="unit"
|
||||
:append-icon="value !== defaultValue ? 'mdi-restart' : ''"
|
||||
@@ -21,22 +19,24 @@
|
||||
:max="max"
|
||||
:dec="dec"
|
||||
type="number"
|
||||
@click:append="resetLimit"
|
||||
hide-spin-buttons
|
||||
@blur="value = target"
|
||||
hide-details
|
||||
outlined
|
||||
dense>
|
||||
<template v-if="hasSpinner" v-slot:append-outer>
|
||||
<template v-if="hasSpinner" #append-outer>
|
||||
<div class="_spin_button_group">
|
||||
<v-btn
|
||||
@click="increment"
|
||||
:disabled="(value >= max && max !== null) || error"
|
||||
class="mt-n3"
|
||||
icon
|
||||
plain
|
||||
small>
|
||||
small
|
||||
@click="increment">
|
||||
<v-icon>mdi-chevron-up</v-icon>
|
||||
</v-btn>
|
||||
<v-btn @click="decrement" :disabled="value <= min || error" class="mb-n3" icon plain small>
|
||||
<v-btn :disabled="value <= min || error" class="mb-n3" icon plain small @click="decrement">
|
||||
<v-icon>mdi-chevron-down</v-icon>
|
||||
</v-btn>
|
||||
</div>
|
||||
|
||||
@@ -10,13 +10,10 @@
|
||||
</style>
|
||||
|
||||
<template>
|
||||
<form v-on:submit.prevent="submit">
|
||||
<form @submit.prevent="submit">
|
||||
<v-text-field
|
||||
v-model.number="value"
|
||||
class="d-flex align-top"
|
||||
@blur="value = target"
|
||||
@click:append="resetToDefault"
|
||||
@keydown="checkInvalidChars"
|
||||
:label="label"
|
||||
:suffix="unit"
|
||||
:append-icon="target !== defaultValue ? 'mdi-restart' : ''"
|
||||
@@ -25,31 +22,34 @@
|
||||
:disabled="disabled"
|
||||
:step="step"
|
||||
:min="min"
|
||||
@blur="value = target"
|
||||
:max="max"
|
||||
@click:append="resetToDefault"
|
||||
:dec="dec"
|
||||
@keydown="checkInvalidChars"
|
||||
type="number"
|
||||
hide-spin-buttons
|
||||
hide-details="auto"
|
||||
outlined
|
||||
dense>
|
||||
<template v-if="hasSpinner" v-slot:append-outer>
|
||||
<template v-if="hasSpinner" #append-outer>
|
||||
<div class="_spin_button_group">
|
||||
<v-btn
|
||||
@click="incrementValue"
|
||||
:disabled="(value >= max && max !== null) || error || disabled"
|
||||
class="mt-n3"
|
||||
icon
|
||||
plain
|
||||
small>
|
||||
small
|
||||
@click="incrementValue">
|
||||
<v-icon>mdi-chevron-up</v-icon>
|
||||
</v-btn>
|
||||
<v-btn
|
||||
@click="decrementValue"
|
||||
:disabled="value <= min || error || disabled"
|
||||
class="mb-n3"
|
||||
icon
|
||||
plain
|
||||
small>
|
||||
small
|
||||
@click="decrementValue">
|
||||
<v-icon>mdi-chevron-down</v-icon>
|
||||
</v-btn>
|
||||
</div>
|
||||
|
||||
@@ -6,12 +6,10 @@
|
||||
</style>
|
||||
|
||||
<template>
|
||||
<form v-on:submit.prevent="sendCmd">
|
||||
<form @submit.prevent="sendCmd">
|
||||
<v-text-field
|
||||
v-model="value"
|
||||
class="d-flex align-center"
|
||||
@click:append="resetLimit"
|
||||
@blur="value = target"
|
||||
:label="label"
|
||||
:suffix="unit"
|
||||
:append-icon="value !== defaultValue ? 'mdi-restart' : ''"
|
||||
@@ -21,22 +19,24 @@
|
||||
:max="max"
|
||||
:dec="dec"
|
||||
type="number"
|
||||
@click:append="resetLimit"
|
||||
hide-spin-buttons
|
||||
@blur="value = target"
|
||||
hide-details
|
||||
outlined
|
||||
dense>
|
||||
<template v-if="hasSpinner" v-slot:append-outer>
|
||||
<template v-if="hasSpinner" #append-outer>
|
||||
<div class="_spin_button_group">
|
||||
<v-btn
|
||||
@click="increment"
|
||||
:disabled="(value >= max && max !== null) || error"
|
||||
class="mt-n3"
|
||||
icon
|
||||
plain
|
||||
small>
|
||||
small
|
||||
@click="increment">
|
||||
<v-icon>mdi-chevron-up</v-icon>
|
||||
</v-btn>
|
||||
<v-btn @click="decrement" :disabled="value <= min || error" class="mb-n3" icon plain small>
|
||||
<v-btn :disabled="value <= min || error" class="mb-n3" icon plain small @click="decrement">
|
||||
<v-icon>mdi-chevron-down</v-icon>
|
||||
</v-btn>
|
||||
</div>
|
||||
|
||||
@@ -24,17 +24,17 @@
|
||||
|
||||
<template>
|
||||
<v-combobox
|
||||
v-model="value"
|
||||
dense
|
||||
hide-details
|
||||
v-model="value"
|
||||
:items="items"
|
||||
item-text="value"
|
||||
type="number"
|
||||
hide-spin-buttons
|
||||
@keyup.enter="setTemps"
|
||||
@keydown.tab="setTemps"
|
||||
@change="changeValue"
|
||||
@blur="onBlur"
|
||||
hide-spin-buttons></v-combobox>
|
||||
@blur="onBlur"></v-combobox>
|
||||
</template>
|
||||
|
||||
<script lang="ts">
|
||||
|
||||
@@ -9,7 +9,7 @@
|
||||
<v-row>
|
||||
<v-col class="pb-1 pt-3">
|
||||
<v-subheader class="_tool-slider-subheader">
|
||||
<v-btn v-if="lockSliders && isTouchDevice" @click="isLocked = !isLocked" plain small icon>
|
||||
<v-btn v-if="lockSliders && isTouchDevice" plain small icon @click="isLocked = !isLocked">
|
||||
<v-icon small :color="isLocked ? 'red' : ''">
|
||||
{{ isLocked ? 'mdi-lock-outline' : 'mdi-lock-open-variant-outline' }}
|
||||
</v-icon>
|
||||
@@ -38,14 +38,14 @@
|
||||
:min="min"
|
||||
:max="processedMax"
|
||||
:color="colorBar"
|
||||
@change="changeSlider"
|
||||
hide-details>
|
||||
<template v-slot:prepend>
|
||||
<v-icon @click="decrement" :disabled="isLocked">mdi-minus</v-icon>
|
||||
hide-details
|
||||
@change="changeSlider">
|
||||
<template #prepend>
|
||||
<v-icon :disabled="isLocked" @click="decrement">mdi-minus</v-icon>
|
||||
</template>
|
||||
|
||||
<template v-slot:append>
|
||||
<v-icon @click="increment" :disabled="isLocked">mdi-plus</v-icon>
|
||||
<template #append>
|
||||
<v-icon :disabled="isLocked" @click="increment">mdi-plus</v-icon>
|
||||
</template>
|
||||
</v-slider>
|
||||
</v-card-text>
|
||||
|
||||
@@ -13,12 +13,12 @@
|
||||
</style>
|
||||
|
||||
<template>
|
||||
<v-dialog transition="dialog-bottom-transition" max-width="600" scrollable v-model="isOpen">
|
||||
<template v-slot:activator="{ an }">
|
||||
<v-dialog v-model="isOpen" transition="dialog-bottom-transition" max-width="600" scrollable>
|
||||
<template #activator="{ an }">
|
||||
<v-tooltip right color="panel">
|
||||
<template v-slot:activator="{ on, attrs }">
|
||||
<template #activator="{ on, attrs }">
|
||||
<!-- <v-icon v-bind="attrs" @mouseenter="on.mouseenter" @mouseleave="on.mouseleave" @click.stop="isOpen = true">mdi-help-circle-outline</v-icon> -->
|
||||
<v-icon v-on="an" v-bind="attrs" @mouseenter="on.mouseenter" @mouseleave="on.mouseleave">
|
||||
<v-icon v-bind="attrs" v-on="an" @mouseenter="on.mouseenter" @mouseleave="on.mouseleave">
|
||||
mdi-help-circle-outline
|
||||
</v-icon>
|
||||
</template>
|
||||
@@ -32,9 +32,9 @@
|
||||
</span>
|
||||
</v-tooltip>
|
||||
</template>
|
||||
<template v-slot:default>
|
||||
<template #default>
|
||||
<panel title="About" :margin-bottom="false">
|
||||
<template v-slot:buttons>
|
||||
<template #buttons>
|
||||
<v-btn icon tile @click="isOpen = false"><v-icon>mdi-close-thick</v-icon></v-btn>
|
||||
</template>
|
||||
<v-card-text>
|
||||
|
||||
@@ -15,28 +15,28 @@
|
||||
<v-col class="col-12 pb-0 text-center">
|
||||
<v-btn
|
||||
small
|
||||
@click="doHome"
|
||||
:loading="loadings.includes('homeAll')"
|
||||
:color="homedAxes.includes('xyz') ? 'primary' : 'warning'">
|
||||
:color="homedAxes.includes('xyz') ? 'primary' : 'warning'"
|
||||
@click="doHome">
|
||||
<v-icon class="mr-1">mdi-home</v-icon>
|
||||
{{ $t('Panels.ControlPanel.ALL') }}
|
||||
</v-btn>
|
||||
<v-btn
|
||||
v-if="existsQGL"
|
||||
small
|
||||
@click="doQGL"
|
||||
:loading="loadings.includes('qgl')"
|
||||
:color="colorQuadGantryLevel"
|
||||
class="ml-2"
|
||||
v-if="existsQGL">
|
||||
@click="doQGL">
|
||||
{{ $t('Panels.ControlPanel.QGL') }}
|
||||
</v-btn>
|
||||
<v-btn
|
||||
v-if="existsZtilt"
|
||||
small
|
||||
@click="doZtilt"
|
||||
:loading="loadings.includes('zTilt')"
|
||||
:color="colorZTilt"
|
||||
class="ml-2"
|
||||
v-if="existsZtilt">
|
||||
@click="doZtilt">
|
||||
{{ $t('Panels.ControlPanel.ZTilt') }}
|
||||
</v-btn>
|
||||
</v-col>
|
||||
@@ -45,24 +45,24 @@
|
||||
<v-col class="text-center">
|
||||
<v-btn-toggle dense no-gutters class="row no-gutters" style="flex-wrap: nowrap; width: 100%">
|
||||
<v-btn
|
||||
@click="doSendMove('X-' + steps, feedrateXY)"
|
||||
class="btnMinWidthAuto col"
|
||||
v-for="steps of stepsXYsorted"
|
||||
v-bind:key="'x-' + steps">
|
||||
:key="'x-' + steps"
|
||||
class="btnMinWidthAuto col"
|
||||
@click="doSendMove('X-' + steps, feedrateXY)">
|
||||
<span class="body-2">–{{ steps }}</span>
|
||||
</v-btn>
|
||||
<v-btn
|
||||
@click="doHomeX"
|
||||
:color="homedAxes.includes('x') ? 'primary' : 'warning'"
|
||||
:loading="loadings.includes('homeX')"
|
||||
class="font-weight-bold btnHomeAxis">
|
||||
class="font-weight-bold btnHomeAxis"
|
||||
@click="doHomeX">
|
||||
{{ $t('Panels.ControlPanel.X') }}
|
||||
</v-btn>
|
||||
<v-btn
|
||||
@click="doSendMove('X+' + steps, feedrateXY)"
|
||||
class="btnMinWidthAuto col"
|
||||
v-for="steps of stepsXYsortedReverse"
|
||||
v-bind:key="'x+' + steps">
|
||||
:key="'x+' + steps"
|
||||
class="btnMinWidthAuto col"
|
||||
@click="doSendMove('X+' + steps, feedrateXY)">
|
||||
<span class="body-2">+{{ steps }}</span>
|
||||
</v-btn>
|
||||
</v-btn-toggle>
|
||||
@@ -72,24 +72,24 @@
|
||||
<v-col class="text-center">
|
||||
<v-btn-toggle dense no-gutters class="row no-gutters" style="flex-wrap: nowrap; width: 100%">
|
||||
<v-btn
|
||||
@click="doSendMove('Y-' + steps, feedrateXY)"
|
||||
class="btnMinWidthAuto col"
|
||||
v-for="steps of stepsXYsorted"
|
||||
v-bind:key="'y-' + steps">
|
||||
:key="'y-' + steps"
|
||||
class="btnMinWidthAuto col"
|
||||
@click="doSendMove('Y-' + steps, feedrateXY)">
|
||||
<span class="body-2">–{{ steps }}</span>
|
||||
</v-btn>
|
||||
<v-btn
|
||||
@click="doHomeY"
|
||||
:color="homedAxes.includes('y') ? 'primary' : 'warning'"
|
||||
:loading="loadings.includes('homeY')"
|
||||
class="font-weight-bold btnHomeAxis">
|
||||
class="font-weight-bold btnHomeAxis"
|
||||
@click="doHomeY">
|
||||
{{ $t('Panels.ControlPanel.Y') }}
|
||||
</v-btn>
|
||||
<v-btn
|
||||
@click="doSendMove('Y+' + steps, feedrateXY)"
|
||||
class="btnMinWidthAuto col"
|
||||
v-for="steps of stepsXYsortedReverse"
|
||||
v-bind:key="'y+' + steps">
|
||||
:key="'y+' + steps"
|
||||
class="btnMinWidthAuto col"
|
||||
@click="doSendMove('Y+' + steps, feedrateXY)">
|
||||
<span class="body-2">+{{ steps }}</span>
|
||||
</v-btn>
|
||||
</v-btn-toggle>
|
||||
@@ -99,24 +99,24 @@
|
||||
<v-col class="text-center">
|
||||
<v-btn-toggle dense no-gutters class="row no-gutters" style="flex-wrap: nowrap; width: 100%">
|
||||
<v-btn
|
||||
@click="doSendMove('Z-' + steps, feedrateZ)"
|
||||
class="btnMinWidthAuto col"
|
||||
v-for="steps of stepsZsorted"
|
||||
v-bind:key="'z-' + steps">
|
||||
:key="'z-' + steps"
|
||||
class="btnMinWidthAuto col"
|
||||
@click="doSendMove('Z-' + steps, feedrateZ)">
|
||||
<span class="body-2">–{{ steps }}</span>
|
||||
</v-btn>
|
||||
<v-btn
|
||||
@click="doHomeZ"
|
||||
:color="homedAxes.includes('z') ? 'primary' : 'warning'"
|
||||
:loading="loadings.includes('homeZ')"
|
||||
class="font-weight-bold btnHomeAxis">
|
||||
class="font-weight-bold btnHomeAxis"
|
||||
@click="doHomeZ">
|
||||
{{ $t('Panels.ControlPanel.Z') }}
|
||||
</v-btn>
|
||||
<v-btn
|
||||
@click="doSendMove('Z+' + steps, feedrateZ)"
|
||||
class="btnMinWidthAuto col"
|
||||
v-for="steps of stepsZsortedReverse"
|
||||
v-bind:key="'z+' + steps">
|
||||
:key="'z+' + steps"
|
||||
class="btnMinWidthAuto col"
|
||||
@click="doSendMove('Z+' + steps, feedrateZ)">
|
||||
<span class="body-2">+{{ steps }}</span>
|
||||
</v-btn>
|
||||
</v-btn-toggle>
|
||||
|
||||
@@ -215,26 +215,26 @@ svg a#tilt_adjust #tilt_icon {
|
||||
<g id="Z" transform="matrix(1.24239,0,0,1,-0.0534526,0)">
|
||||
<g id="Bottom" transform="matrix(-1,-1.52149e-16,9.85721e-17,-1,114.34,62)">
|
||||
<a
|
||||
class="step inner"
|
||||
@click="
|
||||
doSendMove(
|
||||
'Z' + (!reverseZ ? '-' : '+') + (stepsZ.length >= 0 ? stepsZ[0] : 0),
|
||||
feedrateZ
|
||||
)
|
||||
"
|
||||
class="step inner">
|
||||
">
|
||||
<g transform="matrix(0.804902,0,0,1,0,0)">
|
||||
<path
|
||||
d="M66.037,19.186C69.409,18.542 72.742,18.52 76.037,19.102L76.037,23.682C76.037,23.815 75.984,23.942 75.891,24.036C75.564,24.362 74.774,25.153 74.359,25.567C74.204,25.722 73.967,25.757 73.773,25.656C72.955,25.236 72.029,25 71.048,25C70.051,25 69.112,25.243 68.284,25.674C68.09,25.777 67.852,25.742 67.697,25.586C67.283,25.175 66.506,24.395 66.183,24.071C66.09,23.977 66.037,23.85 66.037,23.718C66.037,22.806 66.037,19.186 66.037,19.186Z" />
|
||||
</g>
|
||||
</a>
|
||||
<a
|
||||
class="step inner-mid"
|
||||
@click="
|
||||
doSendMove(
|
||||
'Z' + (!reverseZ ? '-' : '+') + (stepsZ.length >= 1 ? stepsZ[1] : 0),
|
||||
feedrateZ
|
||||
)
|
||||
"
|
||||
class="step inner-mid">
|
||||
">
|
||||
<g
|
||||
transform="matrix(0.804902,1.2326e-32,-9.92118e-33,1,-5.71917e-15,-7.10543e-15)">
|
||||
<path
|
||||
@@ -242,26 +242,26 @@ svg a#tilt_adjust #tilt_icon {
|
||||
</g>
|
||||
</a>
|
||||
<a
|
||||
class="step outer-mid"
|
||||
@click="
|
||||
doSendMove(
|
||||
'Z' + (!reverseZ ? '-' : '+') + (stepsZ.length >= 2 ? stepsZ[2] : 0),
|
||||
feedrateZ
|
||||
)
|
||||
"
|
||||
class="step outer-mid">
|
||||
">
|
||||
<g transform="matrix(0.804902,0,0,1,0,0)">
|
||||
<path
|
||||
d="M66.037,7.221C69.367,6.597 72.7,6.583 76.037,7.192L76.037,13.702C74.453,13.245 72.778,13 71.048,13C69.309,13 67.627,13.247 66.037,13.708L66.037,7.221Z" />
|
||||
</g>
|
||||
</a>
|
||||
<a
|
||||
class="step outer"
|
||||
@click="
|
||||
doSendMove(
|
||||
'Z' + (!reverseZ ? '-' : '+') + (stepsZ.length >= 3 ? stepsZ[3] : 0),
|
||||
feedrateZ
|
||||
)
|
||||
"
|
||||
class="step outer">
|
||||
">
|
||||
<g transform="matrix(0.804902,0,0,1,0,0)">
|
||||
<path
|
||||
d="M66.037,2.5C66.037,1.672 66.709,1 67.537,1L74.537,1C75.365,1 76.037,1.672 76.037,2.5L76.037,7.521C74.428,7.179 72.759,7 71.048,7C69.33,7 67.654,7.181 66.037,7.525L66.037,2.5Z" />
|
||||
@@ -270,26 +270,26 @@ svg a#tilt_adjust #tilt_icon {
|
||||
</g>
|
||||
<g id="Top">
|
||||
<a
|
||||
class="step inner"
|
||||
@click="
|
||||
doSendMove(
|
||||
'Z' + (reverseZ ? '-' : '+') + (stepsZ.length >= 0 ? stepsZ[0] : 0),
|
||||
feedrateZ
|
||||
)
|
||||
"
|
||||
class="step inner">
|
||||
">
|
||||
<g transform="matrix(0.804902,0,0,1,0,0)">
|
||||
<path
|
||||
d="M66.037,19.186C69.409,18.542 72.742,18.52 76.037,19.102L76.037,23.682C76.037,23.815 75.984,23.942 75.891,24.036C75.564,24.362 74.774,25.153 74.359,25.567C74.204,25.722 73.967,25.757 73.773,25.656C72.955,25.236 72.029,25 71.048,25C70.051,25 69.112,25.243 68.284,25.674C68.09,25.777 67.852,25.742 67.697,25.586C67.283,25.175 66.506,24.395 66.183,24.071C66.09,23.977 66.037,23.85 66.037,23.718C66.037,22.806 66.037,19.186 66.037,19.186Z" />
|
||||
</g>
|
||||
</a>
|
||||
<a
|
||||
class="step inner-mid"
|
||||
@click="
|
||||
doSendMove(
|
||||
'Z' + (reverseZ ? '-' : '+') + (stepsZ.length >= 1 ? stepsZ[1] : 0),
|
||||
feedrateZ
|
||||
)
|
||||
"
|
||||
class="step inner-mid">
|
||||
">
|
||||
<g
|
||||
transform="matrix(0.804902,1.2326e-32,-9.92118e-33,1,-5.71917e-15,-7.10543e-15)">
|
||||
<path
|
||||
@@ -297,26 +297,26 @@ svg a#tilt_adjust #tilt_icon {
|
||||
</g>
|
||||
</a>
|
||||
<a
|
||||
class="step outer-mid"
|
||||
@click="
|
||||
doSendMove(
|
||||
'Z' + (reverseZ ? '-' : '+') + (stepsZ.length >= 2 ? stepsZ[2] : 0),
|
||||
feedrateZ
|
||||
)
|
||||
"
|
||||
class="step outer-mid">
|
||||
">
|
||||
<g transform="matrix(0.804902,0,0,1,0,0)">
|
||||
<path
|
||||
d="M66.037,7.221C69.367,6.597 72.7,6.583 76.037,7.192L76.037,13.702C74.453,13.245 72.778,13 71.048,13C69.309,13 67.627,13.247 66.037,13.708L66.037,7.221Z" />
|
||||
</g>
|
||||
</a>
|
||||
<a
|
||||
class="step outer"
|
||||
@click="
|
||||
doSendMove(
|
||||
'Z' + (reverseZ ? '-' : '+') + (stepsZ.length >= 3 ? stepsZ[3] : 0),
|
||||
feedrateZ
|
||||
)
|
||||
"
|
||||
class="step outer">
|
||||
">
|
||||
<g transform="matrix(0.804902,0,0,1,0,0)">
|
||||
<path
|
||||
d="M66.037,2.5C66.037,1.672 66.709,1 67.537,1L74.537,1C75.365,1 76.037,1.672 76.037,2.5L76.037,7.521C74.428,7.179 72.759,7 71.048,7C69.33,7 67.654,7.181 66.037,7.525L66.037,2.5Z" />
|
||||
@@ -349,52 +349,52 @@ svg a#tilt_adjust #tilt_icon {
|
||||
<g id="XY">
|
||||
<g id="Right">
|
||||
<a
|
||||
class="step inner"
|
||||
@click="
|
||||
doSendMove(
|
||||
'X' + (reverseX ? '-' : '+') + (stepsXY.length >= 0 ? stepsXY[0] : 0),
|
||||
feedrateXY
|
||||
)
|
||||
"
|
||||
class="step inner">
|
||||
">
|
||||
<g transform="matrix(0.48,0,0,0.48,19,19)">
|
||||
<path
|
||||
d="M36.096,19.243C35.88,18.839 35.954,18.342 36.278,18.019C40.686,13.619 69.84,-15.445 69.84,-15.445C90.891,13.786 89.845,38.467 69.564,65.144C69.564,65.144 40.684,36.265 36.318,31.899C35.996,31.576 35.922,31.081 36.134,30.678C37.008,28.975 37.5,27.044 37.5,25C37.5,22.925 36.993,20.967 36.096,19.243Z" />
|
||||
</g>
|
||||
</a>
|
||||
<a
|
||||
class="step inner-mid"
|
||||
@click="
|
||||
doSendMove(
|
||||
'X' + (reverseX ? '-' : '+') + (stepsXY.length >= 1 ? stepsXY[1] : 0),
|
||||
feedrateXY
|
||||
)
|
||||
"
|
||||
class="step inner-mid">
|
||||
">
|
||||
<g transform="matrix(0.72,0,0,0.72,13,13)">
|
||||
<path
|
||||
d="M54.897,-1.964C68.991,16.277 68.542,32.764 54.738,51.763L44.077,41.131L38.115,35.169C40.361,32.389 41.667,28.846 41.667,25C41.667,21.132 40.346,17.57 38.076,14.784L54.897,-1.964Z" />
|
||||
</g>
|
||||
</a>
|
||||
<a
|
||||
class="step outer-mid"
|
||||
@click="
|
||||
doSendMove(
|
||||
'X' + (reverseX ? '-' : '+') + (stepsXY.length >= 2 ? stepsXY[2] : 0),
|
||||
feedrateXY
|
||||
)
|
||||
"
|
||||
class="step outer-mid">
|
||||
">
|
||||
<g transform="matrix(0.96,0,0,0.96,7,7)">
|
||||
<path
|
||||
d="M47.418,4.777C57.663,18.688 57.829,31.029 47.304,45.072L39.308,37.098C42.081,33.838 43.75,29.612 43.75,25C43.75,20.371 42.069,16.132 39.277,12.868L47.418,4.777Z" />
|
||||
</g>
|
||||
</a>
|
||||
<a
|
||||
class="step outer"
|
||||
@click="
|
||||
doSendMove(
|
||||
'X' + (reverseX ? '-' : '+') + (stepsXY.length >= 3 ? stepsXY[3] : 0),
|
||||
feedrateXY
|
||||
)
|
||||
"
|
||||
class="step outer">
|
||||
">
|
||||
<g transform="matrix(1.2,0,0,1.2,1,1)">
|
||||
<path
|
||||
d="M43.181,8.535C43.262,8.453 43.373,8.409 43.488,8.412C43.602,8.415 43.711,8.466 43.787,8.551C47.661,12.933 50,18.695 50,25C50,31.291 47.672,37.042 43.811,41.42C43.735,41.505 43.627,41.556 43.512,41.559C43.398,41.562 43.287,41.518 43.206,41.437C42.343,40.575 39.981,38.213 39.981,38.213C43.11,34.7 45,30.069 45,25C45,19.918 43.1,15.276 39.956,11.759C39.956,11.759 42.319,9.397 43.181,8.535Z" />
|
||||
@@ -403,52 +403,52 @@ svg a#tilt_adjust #tilt_icon {
|
||||
</g>
|
||||
<g id="Left" transform="matrix(-1,-1.22465e-16,1.22465e-16,-1,61.9767,61.9767)">
|
||||
<a
|
||||
class="step inner"
|
||||
@click="
|
||||
doSendMove(
|
||||
'X' + (!reverseX ? '-' : '+') + (stepsXY.length >= 0 ? stepsXY[0] : 0),
|
||||
feedrateXY
|
||||
)
|
||||
"
|
||||
class="step inner">
|
||||
">
|
||||
<g transform="matrix(0.48,0,0,0.48,19,19)">
|
||||
<path
|
||||
d="M36.096,19.243C35.88,18.839 35.954,18.342 36.278,18.019C40.686,13.619 69.84,-15.445 69.84,-15.445C90.891,13.786 89.845,38.467 69.564,65.144C69.564,65.144 40.684,36.265 36.318,31.899C35.996,31.576 35.922,31.081 36.134,30.678C37.008,28.975 37.5,27.044 37.5,25C37.5,22.925 36.993,20.967 36.096,19.243Z" />
|
||||
</g>
|
||||
</a>
|
||||
<a
|
||||
class="step inner-mid"
|
||||
@click="
|
||||
doSendMove(
|
||||
'X' + (!reverseX ? '-' : '+') + (stepsXY.length >= 1 ? stepsXY[1] : 0),
|
||||
feedrateXY
|
||||
)
|
||||
"
|
||||
class="step inner-mid">
|
||||
">
|
||||
<g transform="matrix(0.72,0,0,0.72,13,13)">
|
||||
<path
|
||||
d="M54.897,-1.964C68.991,16.277 68.542,32.764 54.738,51.763L44.077,41.131L38.115,35.169C40.361,32.389 41.667,28.846 41.667,25C41.667,21.132 40.346,17.57 38.076,14.784L54.897,-1.964Z" />
|
||||
</g>
|
||||
</a>
|
||||
<a
|
||||
class="step outer-mid"
|
||||
@click="
|
||||
doSendMove(
|
||||
'X' + (!reverseX ? '-' : '+') + (stepsXY.length >= 2 ? stepsXY[2] : 0),
|
||||
feedrateXY
|
||||
)
|
||||
"
|
||||
class="step outer-mid">
|
||||
">
|
||||
<g transform="matrix(0.96,0,0,0.96,7,7)">
|
||||
<path
|
||||
d="M47.418,4.777C57.663,18.688 57.829,31.029 47.304,45.072L39.308,37.098C42.081,33.838 43.75,29.612 43.75,25C43.75,20.371 42.069,16.132 39.277,12.868L47.418,4.777Z" />
|
||||
</g>
|
||||
</a>
|
||||
<a
|
||||
class="step outer"
|
||||
@click="
|
||||
doSendMove(
|
||||
'X' + (!reverseX ? '-' : '+') + (stepsXY.length >= 3 ? stepsXY[3] : 0),
|
||||
feedrateXY
|
||||
)
|
||||
"
|
||||
class="step outer">
|
||||
">
|
||||
<g transform="matrix(1.2,0,0,1.2,1,1)">
|
||||
<path
|
||||
d="M43.181,8.535C43.262,8.453 43.373,8.409 43.488,8.412C43.602,8.415 43.711,8.466 43.787,8.551C47.661,12.933 50,18.695 50,25C50,31.291 47.672,37.042 43.811,41.42C43.735,41.505 43.627,41.556 43.512,41.559C43.398,41.562 43.287,41.518 43.206,41.437C42.343,40.575 39.981,38.213 39.981,38.213C43.11,34.7 45,30.069 45,25C45,19.918 43.1,15.276 39.956,11.759C39.956,11.759 42.319,9.397 43.181,8.535Z" />
|
||||
@@ -460,52 +460,52 @@ svg a#tilt_adjust #tilt_icon {
|
||||
serif:id="Bottom"
|
||||
transform="matrix(6.12323e-17,1,-1,6.12323e-17,61.9767,-1.77705e-14)">
|
||||
<a
|
||||
class="step inner"
|
||||
@click="
|
||||
doSendMove(
|
||||
'Y' + (!reverseY ? '-' : '+') + (stepsXY.length >= 0 ? stepsXY[0] : 0),
|
||||
feedrateXY
|
||||
)
|
||||
"
|
||||
class="step inner">
|
||||
">
|
||||
<g transform="matrix(0.48,0,0,0.48,19,19)">
|
||||
<path
|
||||
d="M36.096,19.243C35.88,18.839 35.954,18.342 36.278,18.019C40.686,13.619 69.84,-15.445 69.84,-15.445C90.891,13.786 89.845,38.467 69.564,65.144C69.564,65.144 40.684,36.265 36.318,31.899C35.996,31.576 35.922,31.081 36.134,30.678C37.008,28.975 37.5,27.044 37.5,25C37.5,22.925 36.993,20.967 36.096,19.243Z" />
|
||||
</g>
|
||||
</a>
|
||||
<a
|
||||
class="step inner-mid"
|
||||
@click="
|
||||
doSendMove(
|
||||
'Y' + (!reverseY ? '-' : '+') + (stepsXY.length >= 1 ? stepsXY[1] : 0),
|
||||
feedrateXY
|
||||
)
|
||||
"
|
||||
class="step inner-mid">
|
||||
">
|
||||
<g transform="matrix(0.72,0,0,0.72,13,13)">
|
||||
<path
|
||||
d="M54.897,-1.964C68.991,16.277 68.542,32.764 54.738,51.763L44.077,41.131L38.115,35.169C40.361,32.389 41.667,28.846 41.667,25C41.667,21.132 40.346,17.57 38.076,14.784L54.897,-1.964Z" />
|
||||
</g>
|
||||
</a>
|
||||
<a
|
||||
class="step outer-mid"
|
||||
@click="
|
||||
doSendMove(
|
||||
'Y' + (!reverseY ? '-' : '+') + (stepsXY.length >= 2 ? stepsXY[2] : 0),
|
||||
feedrateXY
|
||||
)
|
||||
"
|
||||
class="step outer-mid">
|
||||
">
|
||||
<g transform="matrix(0.96,0,0,0.96,7,7)">
|
||||
<path
|
||||
d="M47.418,4.777C57.663,18.688 57.829,31.029 47.304,45.072L39.308,37.098C42.081,33.838 43.75,29.612 43.75,25C43.75,20.371 42.069,16.132 39.277,12.868L47.418,4.777Z" />
|
||||
</g>
|
||||
</a>
|
||||
<a
|
||||
class="step outer"
|
||||
@click="
|
||||
doSendMove(
|
||||
'Y' + (!reverseY ? '-' : '+') + (stepsXY.length >= 3 ? stepsXY[3] : 0),
|
||||
feedrateXY
|
||||
)
|
||||
"
|
||||
class="step outer">
|
||||
">
|
||||
<g transform="matrix(1.2,0,0,1.2,1,1)">
|
||||
<path
|
||||
d="M43.181,8.535C43.262,8.453 43.373,8.409 43.488,8.412C43.602,8.415 43.711,8.466 43.787,8.551C47.661,12.933 50,18.695 50,25C50,31.291 47.672,37.042 43.811,41.42C43.735,41.505 43.627,41.556 43.512,41.559C43.398,41.562 43.287,41.518 43.206,41.437C42.343,40.575 39.981,38.213 39.981,38.213C43.11,34.7 45,30.069 45,25C45,19.918 43.1,15.276 39.956,11.759C39.956,11.759 42.319,9.397 43.181,8.535Z" />
|
||||
@@ -517,52 +517,52 @@ svg a#tilt_adjust #tilt_icon {
|
||||
serif:id="Top"
|
||||
transform="matrix(6.12323e-17,-1,1,6.12323e-17,7.10543e-15,61.9767)">
|
||||
<a
|
||||
class="step inner"
|
||||
@click="
|
||||
doSendMove(
|
||||
'Y' + (reverseY ? '-' : '+') + (stepsXY.length >= 0 ? stepsXY[0] : 0),
|
||||
feedrateXY
|
||||
)
|
||||
"
|
||||
class="step inner">
|
||||
">
|
||||
<g transform="matrix(0.48,0,0,0.48,19,19)">
|
||||
<path
|
||||
d="M36.096,19.243C35.88,18.839 35.954,18.342 36.278,18.019C40.686,13.619 69.84,-15.445 69.84,-15.445C90.891,13.786 89.845,38.467 69.564,65.144C69.564,65.144 40.684,36.265 36.318,31.899C35.996,31.576 35.922,31.081 36.134,30.678C37.008,28.975 37.5,27.044 37.5,25C37.5,22.925 36.993,20.967 36.096,19.243Z" />
|
||||
</g>
|
||||
</a>
|
||||
<a
|
||||
class="step inner-mid"
|
||||
@click="
|
||||
doSendMove(
|
||||
'Y' + (reverseY ? '-' : '+') + (stepsXY.length >= 1 ? stepsXY[1] : 0),
|
||||
feedrateXY
|
||||
)
|
||||
"
|
||||
class="step inner-mid">
|
||||
">
|
||||
<g transform="matrix(0.72,0,0,0.72,13,13)">
|
||||
<path
|
||||
d="M54.897,-1.964C68.991,16.277 68.542,32.764 54.738,51.763L44.077,41.131L38.115,35.169C40.361,32.389 41.667,28.846 41.667,25C41.667,21.132 40.346,17.57 38.076,14.784L54.897,-1.964Z" />
|
||||
</g>
|
||||
</a>
|
||||
<a
|
||||
class="step outer-mid"
|
||||
@click="
|
||||
doSendMove(
|
||||
'Y' + (reverseY ? '-' : '+') + (stepsXY.length >= 2 ? stepsXY[2] : 0),
|
||||
feedrateXY
|
||||
)
|
||||
"
|
||||
class="step outer-mid">
|
||||
">
|
||||
<g transform="matrix(0.96,0,0,0.96,7,7)">
|
||||
<path
|
||||
d="M47.418,4.777C57.663,18.688 57.829,31.029 47.304,45.072L39.308,37.098C42.081,33.838 43.75,29.612 43.75,25C43.75,20.371 42.069,16.132 39.277,12.868L47.418,4.777Z" />
|
||||
</g>
|
||||
</a>
|
||||
<a
|
||||
class="step outer"
|
||||
@click="
|
||||
doSendMove(
|
||||
'Y' + (reverseY ? '-' : '+') + (stepsXY.length >= 3 ? stepsXY[3] : 0),
|
||||
feedrateXY
|
||||
)
|
||||
"
|
||||
class="step outer">
|
||||
">
|
||||
<g transform="matrix(1.2,0,0,1.2,1,1)">
|
||||
<path
|
||||
d="M43.181,8.535C43.262,8.453 43.373,8.409 43.488,8.412C43.602,8.415 43.711,8.466 43.787,8.551C47.661,12.933 50,18.695 50,25C50,31.291 47.672,37.042 43.811,41.42C43.735,41.505 43.627,41.556 43.512,41.559C43.398,41.562 43.287,41.518 43.206,41.437C42.343,40.575 39.981,38.213 39.981,38.213C43.11,34.7 45,30.069 45,25C45,19.918 43.1,15.276 39.956,11.759C39.956,11.759 42.319,9.397 43.181,8.535Z" />
|
||||
@@ -595,10 +595,10 @@ svg a#tilt_adjust #tilt_icon {
|
||||
</g>
|
||||
</g>
|
||||
<a
|
||||
id="tilt_adjust"
|
||||
@click="clickSpecialButton"
|
||||
v-if="existsQGL || existsZtilt"
|
||||
:class="colorSpecialButton">
|
||||
id="tilt_adjust"
|
||||
:class="colorSpecialButton"
|
||||
@click="clickSpecialButton">
|
||||
<circle id="tilt_button" cx="70.92" cy="31" r="5" />
|
||||
<text x="66.776px" y="32.066px">Z-TILT</text>
|
||||
<g id="tilt_icon">
|
||||
|
||||
@@ -95,10 +95,10 @@
|
||||
<v-btn
|
||||
class="w-100"
|
||||
tile
|
||||
@click="doHome"
|
||||
height="30"
|
||||
:loading="loadings.includes('homeAll')"
|
||||
:color="homedAxes.includes('xyz') ? 'primary' : 'warning'">
|
||||
:color="homedAxes.includes('xyz') ? 'primary' : 'warning'"
|
||||
@click="doHome">
|
||||
<div class="d-flex align-center">
|
||||
<v-icon>mdi-home</v-icon>
|
||||
<span class="ml-1">{{ $t('Panels.ControlPanel.ALL') }}</span>
|
||||
@@ -172,20 +172,20 @@
|
||||
<v-col class="col-12">
|
||||
<v-btn-toggle
|
||||
v-if="stepsReversed.length > 0"
|
||||
:key="'all-steps-' + stepsReversed.join('_')"
|
||||
v-model="selectedCrossStep"
|
||||
dense
|
||||
no-gutters
|
||||
style="flex-wrap: nowrap; width: 100%"
|
||||
v-model="selectedCrossStep"
|
||||
:key="'all-steps-' + stepsReversed.join('_')">
|
||||
style="flex-wrap: nowrap; width: 100%">
|
||||
<v-btn
|
||||
dense
|
||||
class="btnMinWidthAuto flex-grow-1 px-0"
|
||||
v-for="step of stepsReversed"
|
||||
:key="'step-' + step">
|
||||
:key="'step-' + step"
|
||||
dense
|
||||
class="btnMinWidthAuto flex-grow-1 px-0">
|
||||
<span class="body-2">{{ step }}</span>
|
||||
</v-btn>
|
||||
</v-btn-toggle>
|
||||
<div class="font-weight-bold warning rounded pa-2" v-else>
|
||||
<div v-else class="font-weight-bold warning rounded pa-2">
|
||||
{{ $t('Panels.ControlPanel.PleaseConfigureSteps') }}
|
||||
<br />
|
||||
<router-link style="color: white" to="/settings/interface">
|
||||
|
||||
@@ -35,13 +35,13 @@
|
||||
<v-btn-toggle class="mt-1" dense no-gutters style="flex-wrap: nowrap; width: 100%">
|
||||
<v-btn
|
||||
v-for="amount in feedamountsSorted"
|
||||
v-bind:key="amount"
|
||||
@click="setFeedAmount(amount)"
|
||||
:key="amount"
|
||||
dense
|
||||
:class="
|
||||
(amount === currentFeedAmount ? 'v-btn--active' : '') +
|
||||
' btnMinWidthAuto flex-grow-1 px-0 _btnFeedrate'
|
||||
">
|
||||
"
|
||||
@click="setFeedAmount(amount)">
|
||||
{{ amount }}
|
||||
</v-btn>
|
||||
</v-btn-toggle>
|
||||
@@ -51,17 +51,17 @@
|
||||
{{ $t('Panels.ControlPanel.FeedrateIn') }} [mm/s]
|
||||
</span>
|
||||
<v-btn-toggle class="mt-1" dense no-gutters style="flex-wrap: nowrap; width: 100%">
|
||||
<v-tooltip top v-for="rate in feedratesSorted" v-bind:key="rate" color="panel">
|
||||
<template v-slot:activator="{ on, attrs }">
|
||||
<v-tooltip v-for="rate in feedratesSorted" :key="rate" top color="panel">
|
||||
<template #activator="{ on, attrs }">
|
||||
<v-btn
|
||||
v-bind="attrs"
|
||||
v-on="on"
|
||||
@click="setFeedrate(rate)"
|
||||
dense
|
||||
:class="
|
||||
(rate === currentFeedRate ? 'v-btn--active' : '') +
|
||||
' btnMinWidthAuto flex-grow-1 px-0 _btnFeedrate'
|
||||
">
|
||||
"
|
||||
v-on="on"
|
||||
@click="setFeedrate(rate)">
|
||||
{{ rate }}
|
||||
</v-btn>
|
||||
</template>
|
||||
@@ -75,14 +75,14 @@
|
||||
<v-row class="">
|
||||
<v-col class="col text-center pt-0">
|
||||
<v-tooltip top :disabled="boolExtrudePossible" color="panel">
|
||||
<template v-slot:activator="{ on }">
|
||||
<div v-on="on" class="d-inline-block">
|
||||
<template #activator="{ on }">
|
||||
<div class="d-inline-block" v-on="on">
|
||||
<v-btn
|
||||
small
|
||||
@click="sendRetract()"
|
||||
class="mx-3"
|
||||
:loading="loadings.includes('btnRetract')"
|
||||
:disabled="!boolExtrudePossible">
|
||||
:disabled="!boolExtrudePossible"
|
||||
@click="sendRetract()">
|
||||
<v-icon small class="mr-1">mdi-arrow-up-bold</v-icon>
|
||||
{{ $t('Panels.ControlPanel.Retract') }}
|
||||
</v-btn>
|
||||
@@ -91,14 +91,14 @@
|
||||
<span>{{ $t('Panels.ControlPanel.HotendTooCold') }} {{ minExtrudeTemp }} °C</span>
|
||||
</v-tooltip>
|
||||
<v-tooltip top :disabled="boolExtrudePossible" color="panel">
|
||||
<template v-slot:activator="{ on }">
|
||||
<div v-on="on" class="d-inline-block">
|
||||
<template #activator="{ on }">
|
||||
<div class="d-inline-block" v-on="on">
|
||||
<v-btn
|
||||
small
|
||||
@click="sendDetract()"
|
||||
class="mx-3"
|
||||
:loading="loadings.includes('btnDetract')"
|
||||
:disabled="!boolExtrudePossible">
|
||||
:disabled="!boolExtrudePossible"
|
||||
@click="sendDetract()">
|
||||
<v-icon small class="mr-1">mdi-arrow-down-bold</v-icon>
|
||||
{{ $t('Panels.ControlPanel.Extrude') }}
|
||||
</v-btn>
|
||||
|
||||
@@ -6,11 +6,8 @@
|
||||
:collapsible="true"
|
||||
card-class="dependencies-panel"
|
||||
toolbar-color="orange darken-2">
|
||||
<v-card-text
|
||||
:class="index > 0 ? 'py-0' : 'pt-3 pb-0'"
|
||||
v-for="(dependency, index) in dependencies"
|
||||
v-bind:key="index">
|
||||
<v-divider class="my-2" v-if="index"></v-divider>
|
||||
<v-card-text v-for="(dependency, index) in dependencies" :key="index" :class="index > 0 ? 'py-0' : 'pt-3 pb-0'">
|
||||
<v-divider v-if="index" class="my-2"></v-divider>
|
||||
<v-row>
|
||||
<v-col>
|
||||
<p class="mb-0 orange--text">
|
||||
|
||||
@@ -38,9 +38,9 @@
|
||||
"
|
||||
:loading="printer.socket.isConnecting"
|
||||
:toolbar-color="isCurrentPrinter ? 'primary' : ''">
|
||||
<template v-slot:buttons>
|
||||
<v-menu :offset-y="true" title="Webcam" v-if="showWebcamSwitch">
|
||||
<template v-slot:activator="{ on, attrs }">
|
||||
<template #buttons>
|
||||
<v-menu v-if="showWebcamSwitch" :offset-y="true" title="Webcam">
|
||||
<template #activator="{ on, attrs }">
|
||||
<v-btn text v-bind="attrs" v-on="on">
|
||||
<v-icon small>mdi-webcam</v-icon>
|
||||
<v-icon small>mdi-menu-down</v-icon>
|
||||
@@ -57,7 +57,7 @@
|
||||
</v-list-item>
|
||||
<v-list-item
|
||||
v-for="webcam of printer_webcams"
|
||||
v-bind:key="webcam.index"
|
||||
:key="webcam.index"
|
||||
link
|
||||
@click="currentCamId = webcam.id">
|
||||
<v-list-item-icon class="mr-0">
|
||||
@@ -71,9 +71,9 @@
|
||||
</v-menu>
|
||||
</template>
|
||||
<v-hover>
|
||||
<template v-slot:default="{ hover }">
|
||||
<template #default="{ hover }">
|
||||
<div>
|
||||
<v-img :height="imageHeight" :src="printer_image" class="d-flex align-end" ref="imageDiv">
|
||||
<v-img ref="imageDiv" :height="imageHeight" :src="printer_image" class="d-flex align-end">
|
||||
<div
|
||||
v-if="printer.socket.isConnected && currentCamId !== 'off' && currentWebcam"
|
||||
class="webcamContainer">
|
||||
@@ -109,8 +109,8 @@
|
||||
<v-col class="col" style="width: 100px">
|
||||
<h3 class="font-weight-regular">{{ printer_status }}</h3>
|
||||
<span
|
||||
class="subtitle-2 text-truncate px-0 text--disabled d-block"
|
||||
v-if="printer_current_filename !== ''">
|
||||
v-if="printer_current_filename !== ''"
|
||||
class="subtitle-2 text-truncate px-0 text--disabled d-block">
|
||||
<v-icon small class="mr-1">mdi-file-outline</v-icon>
|
||||
{{ printer_current_filename }}
|
||||
</span>
|
||||
@@ -118,13 +118,13 @@
|
||||
</v-row>
|
||||
</v-card-title>
|
||||
</v-img>
|
||||
<v-card-text class="px-0 py-2" v-if="printer_preview.length">
|
||||
<v-card-text v-if="printer_preview.length" class="px-0 py-2">
|
||||
<v-container class="py-0">
|
||||
<v-row>
|
||||
<v-col
|
||||
:class="object.name === 'ETA' ? 'col-auto' : 'col' + ' px-2'"
|
||||
v-for="object in printer_preview"
|
||||
v-bind:key="object.name">
|
||||
:key="object.name"
|
||||
:class="object.name === 'ETA' ? 'col-auto' : 'col' + ' px-2'">
|
||||
<strong class="d-block text-center">{{ object.name }}</strong>
|
||||
<span class="d-block text-center">{{ object.value }}</span>
|
||||
</v-col>
|
||||
|
||||
@@ -64,33 +64,33 @@
|
||||
style="max-width: 300px"></v-text-field>
|
||||
<v-spacer></v-spacer>
|
||||
<input
|
||||
type="file"
|
||||
ref="fileUpload"
|
||||
type="file"
|
||||
:accept="validGcodeExtensions.join(', ')"
|
||||
style="display: none"
|
||||
multiple
|
||||
@change="uploadFile" />
|
||||
<v-btn
|
||||
@click="clickUploadButton"
|
||||
:title="$t('Files.UploadNewGcode')"
|
||||
class="primary--text px-2 minwidth-0 ml-3"
|
||||
:loading="loadings.includes('gcodeUpload')">
|
||||
:loading="loadings.includes('gcodeUpload')"
|
||||
@click="clickUploadButton">
|
||||
<v-icon>mdi-upload</v-icon>
|
||||
</v-btn>
|
||||
<v-btn
|
||||
@click="createDirectory"
|
||||
:title="$t('Files.CreateNewDirectory')"
|
||||
class="px-2 minwidth-0 ml-3">
|
||||
class="px-2 minwidth-0 ml-3"
|
||||
@click="createDirectory">
|
||||
<v-icon>mdi-folder-plus</v-icon>
|
||||
</v-btn>
|
||||
<v-btn
|
||||
@click="refreshFileList"
|
||||
:title="$t('Files.RefreshCurrentDirectory')"
|
||||
class="px-2 minwidth-0 ml-3">
|
||||
class="px-2 minwidth-0 ml-3"
|
||||
@click="refreshFileList">
|
||||
<v-icon>mdi-refresh</v-icon>
|
||||
</v-btn>
|
||||
<v-menu offset-y left :close-on-content-click="false" :title="$t('Files.SetupCurrentList')">
|
||||
<template v-slot:activator="{ on, attrs }">
|
||||
<template #activator="{ on, attrs }">
|
||||
<v-btn class="px-2 minwidth-0 ml-3" v-bind="attrs" v-on="on">
|
||||
<v-icon>mdi-cog</v-icon>
|
||||
</v-btn>
|
||||
@@ -98,29 +98,26 @@
|
||||
<v-list>
|
||||
<v-list-item class="minHeight36">
|
||||
<v-checkbox
|
||||
v-model="showHiddenFiles"
|
||||
class="mt-0"
|
||||
hide-details
|
||||
v-model="showHiddenFiles"
|
||||
:label="$t('Files.HiddenFiles')"></v-checkbox>
|
||||
</v-list-item>
|
||||
<v-list-item class="minHeight36">
|
||||
<v-checkbox
|
||||
v-model="showPrintedFiles"
|
||||
class="mt-0"
|
||||
hide-details
|
||||
v-model="showPrintedFiles"
|
||||
:label="$t('Files.PrintedFiles')"></v-checkbox>
|
||||
</v-list-item>
|
||||
<v-divider></v-divider>
|
||||
<v-list-item
|
||||
class="minHeight36"
|
||||
v-for="header of configHeaders"
|
||||
v-bind:key="header.key">
|
||||
<v-list-item v-for="header of configHeaders" :key="header.key" class="minHeight36">
|
||||
<v-checkbox
|
||||
v-model="header.visible"
|
||||
class="mt-0"
|
||||
hide-details
|
||||
v-model="header.visible"
|
||||
@change="changeMetadataVisible(header.value)"
|
||||
:label="header.text"></v-checkbox>
|
||||
:label="header.text"
|
||||
@change="changeMetadataVisible(header.value)"></v-checkbox>
|
||||
</v-list-item>
|
||||
</v-list>
|
||||
</v-menu>
|
||||
@@ -132,23 +129,23 @@
|
||||
<v-col class="col-12 py-2 d-flex align-center">
|
||||
<span>
|
||||
<b>{{ $t('Files.CurrentPath') }}:</b>
|
||||
{{ this.currentPath !== 'gcodes' ? '/' + this.currentPath.substring(7) : '/' }}
|
||||
{{ currentPath !== 'gcodes' ? '/' + currentPath.substring(7) : '/' }}
|
||||
</span>
|
||||
<v-spacer></v-spacer>
|
||||
<template v-if="this.disk_usage !== null">
|
||||
<template v-if="disk_usage !== null">
|
||||
<v-tooltip top>
|
||||
<template v-slot:activator="{ on, attrs }">
|
||||
<template #activator="{ on, attrs }">
|
||||
<span v-bind="attrs" v-on="on">
|
||||
<b>{{ $t('Files.FreeDisk') }}:</b>
|
||||
{{ formatFilesize(disk_usage.free) }}
|
||||
</span>
|
||||
</template>
|
||||
<span>
|
||||
{{ $t('Files.Used') }}: {{ formatFilesize(this.disk_usage.used) }}
|
||||
{{ $t('Files.Used') }}: {{ formatFilesize(disk_usage.used) }}
|
||||
<br />
|
||||
{{ $t('Files.Free') }}: {{ formatFilesize(this.disk_usage.free) }}
|
||||
{{ $t('Files.Free') }}: {{ formatFilesize(disk_usage.free) }}
|
||||
<br />
|
||||
{{ $t('Files.Total') }}: {{ formatFilesize(this.disk_usage.total) }}
|
||||
{{ $t('Files.Total') }}: {{ formatFilesize(disk_usage.total) }}
|
||||
</span>
|
||||
</v-tooltip>
|
||||
</template>
|
||||
@@ -175,14 +172,14 @@
|
||||
mobile-breakpoint="0"
|
||||
@current-items="refreshMetadata">
|
||||
<template slot="items">
|
||||
<td v-for="header in filteredHeaders" v-bind:key="header.value">{{ header.text }}</td>
|
||||
<td v-for="header in filteredHeaders" :key="header.value">{{ header.text }}</td>
|
||||
</template>
|
||||
|
||||
<template #no-data>
|
||||
<div class="text-center">{{ $t('Files.Empty') }}</div>
|
||||
</template>
|
||||
|
||||
<template slot="body.prepend" v-if="currentPath !== 'gcodes'">
|
||||
<template v-if="currentPath !== 'gcodes'" slot="body.prepend">
|
||||
<tr
|
||||
class="file-list-cursor"
|
||||
@click="clickRowGoBack"
|
||||
@@ -198,16 +195,16 @@
|
||||
<tr
|
||||
:key="`${index} ${item.filename}`"
|
||||
v-longpress:600="(e) => showContextMenu(e, item)"
|
||||
@contextmenu="showContextMenu($event, item)"
|
||||
@click="clickRow(item)"
|
||||
class="file-list-cursor user-select-none"
|
||||
draggable="true"
|
||||
:data-name="item.filename"
|
||||
@contextmenu="showContextMenu($event, item)"
|
||||
@click="clickRow(item)"
|
||||
@drag="dragFile($event, item)"
|
||||
@dragend="dragendFile($event)"
|
||||
@dragover="dragOverFilelist($event, item)"
|
||||
@dragleave="dragLeaveFilelist"
|
||||
@drop.prevent.stop="dragDropFilelist($event, item)"
|
||||
:data-name="item.filename">
|
||||
@drop.prevent.stop="dragDropFilelist($event, item)">
|
||||
<td class="pr-0 text-center" style="width: 32px">
|
||||
<template v-if="item.isDirectory">
|
||||
<v-icon>mdi-folder</v-icon>
|
||||
@@ -218,7 +215,7 @@
|
||||
v-if="!item.isDirectory && getSmallThumbnail(item) && getBigThumbnail(item)"
|
||||
top
|
||||
content-class="tooltip__content-opacity1">
|
||||
<template v-slot:activator="{ on, attrs }">
|
||||
<template #activator="{ on, attrs }">
|
||||
<vue-load-image>
|
||||
<img
|
||||
slot="image"
|
||||
@@ -254,8 +251,8 @@
|
||||
</td>
|
||||
<td class=" ">{{ item.filename }}</td>
|
||||
<td class="text-center">
|
||||
<v-tooltip top v-if="getJobStatus(item)">
|
||||
<template v-slot:activator="{ on, attrs }">
|
||||
<v-tooltip v-if="getJobStatus(item)" top>
|
||||
<template #activator="{ on, attrs }">
|
||||
<span v-bind="attrs" v-on="on">
|
||||
<v-icon small :color="getStatusColor(getJobStatus(item))">
|
||||
{{ getStatusIcon(getJobStatus(item)) }}
|
||||
@@ -266,56 +263,56 @@
|
||||
</v-tooltip>
|
||||
</td>
|
||||
<td
|
||||
class="text-no-wrap text-right"
|
||||
v-if="headers.find((header) => header.value === 'size').visible">
|
||||
v-if="headers.find((header) => header.value === 'size').visible"
|
||||
class="text-no-wrap text-right">
|
||||
{{ item.isDirectory ? '--' : formatFilesize(item.size) }}
|
||||
</td>
|
||||
<td class="text-right" v-if="headers.find((header) => header.value === 'modified').visible">
|
||||
<td v-if="headers.find((header) => header.value === 'modified').visible" class="text-right">
|
||||
{{ formatDate(item.modified) }}
|
||||
</td>
|
||||
<td
|
||||
class="text-no-wrap text-right"
|
||||
v-if="headers.find((header) => header.value === 'object_height').visible">
|
||||
v-if="headers.find((header) => header.value === 'object_height').visible"
|
||||
class="text-no-wrap text-right">
|
||||
{{ item.object_height ? item.object_height.toFixed(2) + ' mm' : '--' }}
|
||||
</td>
|
||||
<td
|
||||
class="text-no-wrap text-right"
|
||||
v-if="headers.find((header) => header.value === 'layer_height').visible">
|
||||
v-if="headers.find((header) => header.value === 'layer_height').visible"
|
||||
class="text-no-wrap text-right">
|
||||
{{ item.layer_height ? item.layer_height.toFixed(2) + ' mm' : '--' }}
|
||||
</td>
|
||||
<td
|
||||
class="text-no-wrap text-right"
|
||||
v-if="headers.find((header) => header.value === 'nozzle_diameter').visible">
|
||||
v-if="headers.find((header) => header.value === 'nozzle_diameter').visible"
|
||||
class="text-no-wrap text-right">
|
||||
{{ item.nozzle_diameter ? item.nozzle_diameter.toFixed(2) + ' mm' : '--' }}
|
||||
</td>
|
||||
<td
|
||||
class="text-no-wrap text-right"
|
||||
v-if="headers.find((header) => header.value === 'filament_name').visible">
|
||||
v-if="headers.find((header) => header.value === 'filament_name').visible"
|
||||
class="text-no-wrap text-right">
|
||||
{{ item.filament_name ? item.filament_name : '--' }}
|
||||
</td>
|
||||
<td
|
||||
class="text-no-wrap text-right"
|
||||
v-if="headers.find((header) => header.value === 'filament_type').visible">
|
||||
v-if="headers.find((header) => header.value === 'filament_type').visible"
|
||||
class="text-no-wrap text-right">
|
||||
{{ item.filament_type ? item.filament_type : '--' }}
|
||||
</td>
|
||||
<td
|
||||
class="text-no-wrap text-right"
|
||||
v-if="headers.find((header) => header.value === 'filament_total').visible">
|
||||
v-if="headers.find((header) => header.value === 'filament_total').visible"
|
||||
class="text-no-wrap text-right">
|
||||
{{ item.filament_total ? item.filament_total.toFixed() + ' mm' : '--' }}
|
||||
</td>
|
||||
<td
|
||||
class="text-no-wrap text-right"
|
||||
v-if="headers.find((header) => header.value === 'filament_weight_total').visible">
|
||||
v-if="headers.find((header) => header.value === 'filament_weight_total').visible"
|
||||
class="text-no-wrap text-right">
|
||||
{{ item.filament_weight_total ? item.filament_weight_total.toFixed(2) + ' g' : '--' }}
|
||||
</td>
|
||||
<td
|
||||
class="text-no-wrap text-right"
|
||||
v-if="headers.find((header) => header.value === 'estimated_time').visible">
|
||||
v-if="headers.find((header) => header.value === 'estimated_time').visible"
|
||||
class="text-no-wrap text-right">
|
||||
{{ formatPrintTime(item.estimated_time) }}
|
||||
</td>
|
||||
<td
|
||||
class="text-no-wrap text-right"
|
||||
v-if="headers.find((header) => header.value === 'slicer').visible">
|
||||
v-if="headers.find((header) => header.value === 'slicer').visible"
|
||||
class="text-no-wrap text-right">
|
||||
{{ item.slicer ? item.slicer : '--' }}
|
||||
<br />
|
||||
<small v-if="item.slicer_version">{{ item.slicer_version }}</small>
|
||||
@@ -329,7 +326,7 @@
|
||||
<div class="textnode">{{ $t('Files.DropFilesToAddGcode') }}</div>
|
||||
</div>
|
||||
</panel>
|
||||
<v-snackbar :timeout="-1" :value="true" fixed right bottom dark v-model="uploadSnackbar.status">
|
||||
<v-snackbar v-model="uploadSnackbar.status" :timeout="-1" :value="true" fixed right bottom dark>
|
||||
<span v-if="uploadSnackbar.max > 1" class="mr-1">
|
||||
({{ uploadSnackbar.number }}/{{ uploadSnackbar.max }})
|
||||
</span>
|
||||
@@ -338,8 +335,8 @@
|
||||
{{ Math.round(uploadSnackbar.percent) }} % @ {{ formatFilesize(Math.round(uploadSnackbar.speed)) }}/s
|
||||
<br />
|
||||
<v-progress-linear class="mt-2" :value="uploadSnackbar.percent"></v-progress-linear>
|
||||
<template v-slot:action="{ attrs }">
|
||||
<v-btn color="red" text v-bind="attrs" @click="cancelUpload" style="min-width: auto">
|
||||
<template #action="{ attrs }">
|
||||
<v-btn color="red" text v-bind="attrs" style="min-width: auto" @click="cancelUpload">
|
||||
<v-icon class="0">mdi-close</v-icon>
|
||||
</v-btn>
|
||||
</template>
|
||||
@@ -347,8 +344,8 @@
|
||||
<v-dialog v-model="dialogPrintFile.show" :max-width="getThumbnailWidth(dialogPrintFile.item)">
|
||||
<v-card>
|
||||
<v-img
|
||||
contain
|
||||
v-if="getBigThumbnail(dialogPrintFile.item)"
|
||||
contain
|
||||
:src="getBigThumbnail(dialogPrintFile.item)"></v-img>
|
||||
<v-card-title class="headline">{{ $t('Files.StartJob') }}</v-card-title>
|
||||
<v-card-text class="pb-0">
|
||||
@@ -369,8 +366,8 @@
|
||||
<v-btn
|
||||
color="primary"
|
||||
text
|
||||
@click="startPrint(dialogPrintFile.item.filename)"
|
||||
:disabled="printerIsPrinting || !klipperReadyForGui">
|
||||
:disabled="printerIsPrinting || !klipperReadyForGui"
|
||||
@click="startPrint(dialogPrintFile.item.filename)">
|
||||
{{ $t('Files.StartPrint') }}
|
||||
</v-btn>
|
||||
</v-card-actions>
|
||||
@@ -379,59 +376,59 @@
|
||||
<v-menu v-model="contextMenu.shown" :position-x="contextMenu.x" :position-y="contextMenu.y" absolute offset-y>
|
||||
<v-list>
|
||||
<v-list-item
|
||||
@click="clickRow(contextMenu.item, true)"
|
||||
v-if="!contextMenu.item.isDirectory"
|
||||
:disabled="printerIsPrinting || !klipperReadyForGui || !isGcodeFile(contextMenu.item)"
|
||||
v-if="!contextMenu.item.isDirectory">
|
||||
@click="clickRow(contextMenu.item, true)">
|
||||
<v-icon class="mr-1">mdi-play</v-icon>
|
||||
{{ $t('Files.PrintStart') }}
|
||||
</v-list-item>
|
||||
<v-list-item
|
||||
@click="addToQueue(contextMenu.item)"
|
||||
v-if="!contextMenu.item.isDirectory && moonrakerComponents.includes('job_queue')"
|
||||
:disabled="!isGcodeFile(contextMenu.item)">
|
||||
:disabled="!isGcodeFile(contextMenu.item)"
|
||||
@click="addToQueue(contextMenu.item)">
|
||||
<v-icon class="mr-1">mdi-playlist-plus</v-icon>
|
||||
{{ $t('Files.AddToQueue') }}
|
||||
</v-list-item>
|
||||
<v-list-item
|
||||
@click="preheat"
|
||||
v-if="
|
||||
'first_layer_extr_temp' in contextMenu.item &&
|
||||
contextMenu.item.first_layer_extr_temp > 0 &&
|
||||
'first_layer_bed_temp' in contextMenu.item &&
|
||||
contextMenu.item.first_layer_bed_temp > 0
|
||||
"
|
||||
:disabled="['error', 'printing', 'paused'].includes(printer_state)">
|
||||
:disabled="['error', 'printing', 'paused'].includes(printer_state)"
|
||||
@click="preheat">
|
||||
<v-icon class="mr-1">mdi-fire</v-icon>
|
||||
{{ $t('Files.Preheat') }}
|
||||
</v-list-item>
|
||||
<v-list-item
|
||||
@click="view3D(contextMenu.item)"
|
||||
v-if="!contextMenu.item.isDirectory"
|
||||
:disabled="!isGcodeFile(contextMenu.item)">
|
||||
:disabled="!isGcodeFile(contextMenu.item)"
|
||||
@click="view3D(contextMenu.item)">
|
||||
<v-icon class="mr-1">mdi-video-3d</v-icon>
|
||||
{{ $t('Files.View3D') }}
|
||||
</v-list-item>
|
||||
<v-list-item @click="downloadFile" v-if="!contextMenu.item.isDirectory">
|
||||
<v-list-item v-if="!contextMenu.item.isDirectory" @click="downloadFile">
|
||||
<v-icon class="mr-1">mdi-cloud-download</v-icon>
|
||||
{{ $t('Files.Download') }}
|
||||
</v-list-item>
|
||||
<v-list-item @click="renameDirectory(contextMenu.item)" v-if="contextMenu.item.isDirectory">
|
||||
<v-list-item v-if="contextMenu.item.isDirectory" @click="renameDirectory(contextMenu.item)">
|
||||
<v-icon class="mr-1">mdi-rename-box</v-icon>
|
||||
{{ $t('Files.Rename') }}
|
||||
</v-list-item>
|
||||
<v-list-item @click="editFile(contextMenu.item)" v-if="!contextMenu.item.isDirectory">
|
||||
<v-list-item v-if="!contextMenu.item.isDirectory" @click="editFile(contextMenu.item)">
|
||||
<v-icon class="mr-1">mdi-pencil</v-icon>
|
||||
{{ $t('Files.EditFile') }}
|
||||
</v-list-item>
|
||||
<v-list-item @click="renameFile(contextMenu.item)" v-if="!contextMenu.item.isDirectory">
|
||||
<v-list-item v-if="!contextMenu.item.isDirectory" @click="renameFile(contextMenu.item)">
|
||||
<v-icon class="mr-1">mdi-rename-box</v-icon>
|
||||
{{ $t('Files.Rename') }}
|
||||
</v-list-item>
|
||||
<v-list-item @click="removeFile" v-if="!contextMenu.item.isDirectory">
|
||||
<v-list-item v-if="!contextMenu.item.isDirectory" @click="removeFile">
|
||||
<v-icon class="mr-1">mdi-delete</v-icon>
|
||||
{{ $t('Files.Delete') }}
|
||||
</v-list-item>
|
||||
<v-list-item @click="deleteDirectory(contextMenu.item)" v-if="contextMenu.item.isDirectory">
|
||||
<v-list-item v-if="contextMenu.item.isDirectory" @click="deleteDirectory(contextMenu.item)">
|
||||
<v-icon class="mr-1">mdi-delete</v-icon>
|
||||
{{ $t('Files.Delete') }}
|
||||
</v-list-item>
|
||||
@@ -442,19 +439,19 @@
|
||||
:title="$t('Files.NewDirectory')"
|
||||
card-class="gcode-files-new-directory-dialog"
|
||||
:margin-bottom="false">
|
||||
<template v-slot:buttons>
|
||||
<template #buttons>
|
||||
<v-btn icon tile @click="dialogCreateDirectory.show = false">
|
||||
<v-icon>mdi-close-thick</v-icon>
|
||||
</v-btn>
|
||||
</template>
|
||||
<v-card-text>
|
||||
<v-text-field
|
||||
v-model="dialogCreateDirectory.name"
|
||||
ref="inputFieldCreateDirectory"
|
||||
@keypress.enter="createDirectoryAction"
|
||||
v-model="dialogCreateDirectory.name"
|
||||
:label="$t('Files.Name')"
|
||||
:rules="input_rules"
|
||||
required></v-text-field>
|
||||
required
|
||||
@keypress.enter="createDirectoryAction"></v-text-field>
|
||||
</v-card-text>
|
||||
<v-card-actions>
|
||||
<v-spacer></v-spacer>
|
||||
@@ -465,16 +462,16 @@
|
||||
</v-dialog>
|
||||
<v-dialog v-model="dialogRenameFile.show" :max-width="400">
|
||||
<panel :title="$t('Files.RenameFile')" card-class="gcode-files-rename-file-dialog" :margin-bottom="false">
|
||||
<template v-slot:buttons>
|
||||
<template #buttons>
|
||||
<v-btn icon tile @click="dialogRenameFile.show = false"><v-icon>mdi-close-thick</v-icon></v-btn>
|
||||
</template>
|
||||
<v-card-text>
|
||||
<v-text-field
|
||||
v-model="dialogRenameFile.newName"
|
||||
ref="inputFieldRenameFile"
|
||||
@keyup.enter="renameFileAction"
|
||||
v-model="dialogRenameFile.newName"
|
||||
:label="$t('Files.Name')"
|
||||
required></v-text-field>
|
||||
required
|
||||
@keyup.enter="renameFileAction"></v-text-field>
|
||||
</v-card-text>
|
||||
<v-card-actions>
|
||||
<v-spacer></v-spacer>
|
||||
@@ -488,18 +485,18 @@
|
||||
:title="$t('Files.RenameDirectory')"
|
||||
card-class="gcode-files-rename-directory-dialog"
|
||||
:margin-bottom="false">
|
||||
<template v-slot:buttons>
|
||||
<template #buttons>
|
||||
<v-btn icon tile @click="dialogRenameDirectory.show = false">
|
||||
<v-icon>mdi-close-thick</v-icon>
|
||||
</v-btn>
|
||||
</template>
|
||||
<v-card-text>
|
||||
<v-text-field
|
||||
v-model="dialogRenameDirectory.newName"
|
||||
ref="inputFieldRenameDirectory"
|
||||
v-model="dialogRenameDirectory.newName"
|
||||
:label="$t('Files.Name')"
|
||||
@keyup.enter="renameDirectoryAction"
|
||||
required></v-text-field>
|
||||
required
|
||||
@keyup.enter="renameDirectoryAction"></v-text-field>
|
||||
</v-card-text>
|
||||
<v-card-actions>
|
||||
<v-spacer></v-spacer>
|
||||
@@ -513,7 +510,7 @@
|
||||
:title="$t('Files.DeleteDirectory')"
|
||||
card-class="gcode-files-delete-directory-dialog"
|
||||
:margin-bottom="false">
|
||||
<template v-slot:buttons>
|
||||
<template #buttons>
|
||||
<v-btn icon tile @click="dialogDeleteDirectory.show = false">
|
||||
<v-icon>mdi-close-thick</v-icon>
|
||||
</v-btn>
|
||||
|
||||
@@ -42,7 +42,7 @@
|
||||
<v-icon>mdi-refresh</v-icon>
|
||||
</v-btn>
|
||||
<v-menu :offset-y="true" :close-on-content-click="false" title="Setup current list">
|
||||
<template v-slot:activator="{ on, attrs }">
|
||||
<template #activator="{ on, attrs }">
|
||||
<v-btn
|
||||
class="px-2 minwidth-0 ml-3"
|
||||
:title="$t('History.TitleSettings')"
|
||||
@@ -54,30 +54,27 @@
|
||||
<v-list>
|
||||
<template v-if="allPrintStatusArray.length">
|
||||
<v-list-item
|
||||
class="minHeight36"
|
||||
v-for="status of allPrintStatusArray"
|
||||
v-bind:key="status.key">
|
||||
:key="status.key"
|
||||
class="minHeight36">
|
||||
<v-checkbox
|
||||
class="mt-0"
|
||||
hide-details
|
||||
:input-value="status.showInTable"
|
||||
@change="changeStatusVisible(status)"
|
||||
:label="
|
||||
$t('History.ShowStatusName', { name: status.name, count: status.value })
|
||||
"></v-checkbox>
|
||||
"
|
||||
@change="changeStatusVisible(status)"></v-checkbox>
|
||||
</v-list-item>
|
||||
<v-divider></v-divider>
|
||||
</template>
|
||||
<v-list-item
|
||||
class="minHeight36"
|
||||
v-for="header of configHeaders"
|
||||
v-bind:key="header.key">
|
||||
<v-list-item v-for="header of configHeaders" :key="header.key" class="minHeight36">
|
||||
<v-checkbox
|
||||
v-model="header.visible"
|
||||
class="mt-0"
|
||||
hide-details
|
||||
v-model="header.visible"
|
||||
@change="changeColumnVisible(header.value)"
|
||||
:label="header.text"></v-checkbox>
|
||||
:label="header.text"
|
||||
@change="changeColumnVisible(header.value)"></v-checkbox>
|
||||
</v-list-item>
|
||||
</v-list>
|
||||
</v-menu>
|
||||
@@ -106,7 +103,7 @@
|
||||
mobile-breakpoint="0"
|
||||
show-select>
|
||||
<template slot="items" slot-scope="props">
|
||||
<td v-for="header in filteredHeaders" v-bind:key="header.text" class="text-no-wrap">
|
||||
<td v-for="header in filteredHeaders" :key="header.text" class="text-no-wrap">
|
||||
{{ props.item[header.value] }}
|
||||
</td>
|
||||
</template>
|
||||
@@ -115,18 +112,18 @@
|
||||
<div class="text-center">{{ $t('History.Empty') }}</div>
|
||||
</template>
|
||||
|
||||
<template v-slot:item="{ index, item, isSelected, select }">
|
||||
<template #item="{ index, item, isSelected, select }">
|
||||
<tr
|
||||
:key="`${index} ${item.filename}`"
|
||||
v-longpress:600="(e) => showContextMenu(e, item)"
|
||||
:class="'file-list-cursor user-select-none ' + (item.exists ? '' : 'text--disabled')"
|
||||
@contextmenu="showContextMenu($event, item)"
|
||||
@click="clickRow(item)"
|
||||
:class="'file-list-cursor user-select-none ' + (item.exists ? '' : 'text--disabled')">
|
||||
@click="clickRow(item)">
|
||||
<td class="pr-0">
|
||||
<v-simple-checkbox
|
||||
v-ripple
|
||||
:value="isSelected"
|
||||
class="pa-0 mr-0"
|
||||
v-ripple
|
||||
@click.stop="select(!isSelected)"></v-simple-checkbox>
|
||||
</td>
|
||||
<td class="px-0 text-center" style="width: 32px">
|
||||
@@ -135,7 +132,7 @@
|
||||
</template>
|
||||
<template v-else-if="getSmallThumbnail(item) && getBigThumbnail(item)">
|
||||
<v-tooltip top>
|
||||
<template v-slot:activator="{ on, attrs }">
|
||||
<template #activator="{ on, attrs }">
|
||||
<vue-load-image>
|
||||
<img
|
||||
slot="image"
|
||||
@@ -171,7 +168,7 @@
|
||||
<td class=" ">{{ item.filename }}</td>
|
||||
<td class="text-center">
|
||||
<v-tooltip top>
|
||||
<template v-slot:activator="{ on, attrs }">
|
||||
<template #activator="{ on, attrs }">
|
||||
<span v-bind="attrs" v-on="on">
|
||||
<v-icon small :color="getStatusColor(item.status)" :disabled="!item.exists">
|
||||
{{ getStatusIcon(item.status) }}
|
||||
@@ -183,11 +180,11 @@
|
||||
</td>
|
||||
<td
|
||||
v-for="col in tableFields"
|
||||
v-bind:key="col.value"
|
||||
:key="col.value"
|
||||
:class="col.outputType !== 'date' ? 'text-no-wrap' : ''">
|
||||
{{ outputValue(col, item) }}
|
||||
</td>
|
||||
<td class=" " v-if="headers.find((header) => header.value === 'slicer').visible">
|
||||
<td v-if="headers.find((header) => header.value === 'slicer').visible" class=" ">
|
||||
{{ 'slicer' in item.metadata && item.metadata.slicer ? item.metadata.slicer : '--' }}
|
||||
<small v-if="'slicer_version' in item.metadata && item.metadata.slicer_version">
|
||||
<br />
|
||||
@@ -205,9 +202,9 @@
|
||||
{{ $t('History.Details') }}
|
||||
</v-list-item>
|
||||
<v-list-item
|
||||
@click="startPrint(contextMenu.item)"
|
||||
v-if="contextMenu.item.exists"
|
||||
:disabled="printerIsPrinting || !klipperReadyForGui">
|
||||
:disabled="printerIsPrinting || !klipperReadyForGui"
|
||||
@click="startPrint(contextMenu.item)">
|
||||
<v-icon class="mr-1">mdi-printer</v-icon>
|
||||
{{ $t('History.Reprint') }}
|
||||
</v-list-item>
|
||||
@@ -227,7 +224,7 @@
|
||||
icon="mdi-update"
|
||||
card-class="history-detail-dialog"
|
||||
:margin-bottom="false">
|
||||
<template v-slot:buttons>
|
||||
<template #buttons>
|
||||
<v-btn icon tile @click="detailsDialog.boolShow = false"><v-icon>mdi-close-thick</v-icon></v-btn>
|
||||
</template>
|
||||
<v-card-text class="px-0">
|
||||
@@ -397,7 +394,7 @@
|
||||
</v-dialog>
|
||||
<v-dialog v-model="deleteSelectedDialog" max-width="400">
|
||||
<panel :title="$t('History.Delete')" card-class="history-delete-selected-dialog" :margin-bottom="false">
|
||||
<template v-slot:buttons>
|
||||
<template #buttons>
|
||||
<v-btn icon tile @click="deleteSelectedDialog = false"><v-icon>mdi-close-thick</v-icon></v-btn>
|
||||
</template>
|
||||
<v-card-text>
|
||||
|
||||
@@ -1,31 +1,31 @@
|
||||
<template>
|
||||
<div>
|
||||
<panel icon="mdi-tray-full" :title="$t('JobQueue.JobQueue')" card-class="jobqueue-panel">
|
||||
<template v-slot:buttons>
|
||||
<template #buttons>
|
||||
<v-btn
|
||||
v-if="queueState === 'paused'"
|
||||
color="success"
|
||||
@click="startJobqueue"
|
||||
:loading="loadings.includes('startJobqueue')"
|
||||
icon
|
||||
tile
|
||||
v-if="queueState === 'paused'"
|
||||
:disabled="!klipperReadyForGui">
|
||||
:disabled="!klipperReadyForGui"
|
||||
@click="startJobqueue">
|
||||
<v-tooltip top>
|
||||
<template v-slot:activator="{ on, attrs }">
|
||||
<template #activator="{ on, attrs }">
|
||||
<v-icon v-bind="attrs" v-on="on">mdi-play</v-icon>
|
||||
</template>
|
||||
<span>{{ $t('JobQueue.Start') }}</span>
|
||||
</v-tooltip>
|
||||
</v-btn>
|
||||
<v-btn
|
||||
v-if="['ready', 'loading'].includes(queueState)"
|
||||
color="warning"
|
||||
@click="pauseJobqueue"
|
||||
:loading="loadings.includes('pauseJobqueue')"
|
||||
icon
|
||||
tile
|
||||
v-if="['ready', 'loading'].includes(queueState)">
|
||||
@click="pauseJobqueue">
|
||||
<v-tooltip top>
|
||||
<template v-slot:activator="{ on, attrs }">
|
||||
<template #activator="{ on, attrs }">
|
||||
<v-icon v-bind="attrs" v-on="on">mdi-pause</v-icon>
|
||||
</template>
|
||||
<span>{{ $t('JobQueue.Pause') }}</span>
|
||||
@@ -51,15 +51,15 @@
|
||||
<tr
|
||||
:key="item.job_id"
|
||||
v-longpress:600="(e) => showContextMenu(e, item)"
|
||||
@contextmenu="showContextMenu($event, item)"
|
||||
class="file-list-cursor user-select-none">
|
||||
class="file-list-cursor user-select-none"
|
||||
@contextmenu="showContextMenu($event, item)">
|
||||
<td class="pr-0 text-center" style="width: 32px">
|
||||
<template v-if="getSmallThumbnail(item) && getBigThumbnail(item)">
|
||||
<v-tooltip
|
||||
v-if="!item.isDirectory && getSmallThumbnail(item) && getBigThumbnail(item)"
|
||||
top
|
||||
content-class="tooltip__content-opacity1">
|
||||
<template v-slot:activator="{ on, attrs }">
|
||||
<template #activator="{ on, attrs }">
|
||||
<vue-load-image>
|
||||
<img
|
||||
slot="image"
|
||||
|
||||
@@ -6,11 +6,11 @@
|
||||
:collapsible="true"
|
||||
card-class="klipper-warnings-panel"
|
||||
toolbar-color="orange darken-2">
|
||||
<v-card-text :class="index > 0 ? 'py-0' : 'pt-3 pb-0'" v-for="(warning, index) in warnings" v-bind:key="index">
|
||||
<v-divider class="my-2" v-if="index"></v-divider>
|
||||
<v-card-text v-for="(warning, index) in warnings" :key="index" :class="index > 0 ? 'py-0' : 'pt-3 pb-0'">
|
||||
<v-divider v-if="index" class="my-2"></v-divider>
|
||||
<v-row>
|
||||
<v-col>
|
||||
<p class="orange--text mb-0" v-if="warning.type === 'deprecated_option'">
|
||||
<p v-if="warning.type === 'deprecated_option'" class="orange--text mb-0">
|
||||
{{
|
||||
$t('Panels.KlipperWarningsPanel.DeprecatedOption', {
|
||||
section: warning.section,
|
||||
@@ -18,7 +18,7 @@
|
||||
})
|
||||
}}
|
||||
</p>
|
||||
<p class="orange--text mb-0" v-else-if="warning.type === 'deprecated_value'">
|
||||
<p v-else-if="warning.type === 'deprecated_value'" class="orange--text mb-0">
|
||||
{{
|
||||
$t('Panels.KlipperWarningsPanel.DeprecatedValue', {
|
||||
section: warning.section,
|
||||
@@ -27,7 +27,7 @@
|
||||
})
|
||||
}}
|
||||
</p>
|
||||
<p class="orange--text mb-0" v-else>{{ warning.message }}</p>
|
||||
<p v-else class="orange--text mb-0">{{ warning.message }}</p>
|
||||
</v-col>
|
||||
<v-col class="col-auto d-flex align-center">
|
||||
<a :href="getDocsLink(warning)" target="_blank" class="text-decoration-none">
|
||||
|
||||
@@ -5,7 +5,7 @@
|
||||
:title="$t('Panels.KlippyStatePanel.KlippyState') + ': ' + klipperState"
|
||||
card-class="klippy-state-panel">
|
||||
<template v-if="klippyIsConnected">
|
||||
<v-card-text class="py-1 mt-2" v-if="klippy_message !== null">
|
||||
<v-card-text v-if="klippy_message !== null" class="py-1 mt-2">
|
||||
<pre style="white-space: pre-wrap">{{ klippy_message }}</pre>
|
||||
</v-card-text>
|
||||
<v-card-text v-else class="text-center py-3">
|
||||
@@ -13,11 +13,11 @@
|
||||
</v-card-text>
|
||||
<v-divider class="mt-2"></v-divider>
|
||||
<v-card-actions class="justify-start">
|
||||
<v-btn small @click="restart" class="ml-2 error--text">
|
||||
<v-btn small class="ml-2 error--text" @click="restart">
|
||||
<v-icon class="mr-sm-2">mdi-restart</v-icon>
|
||||
{{ $t('Panels.KlippyStatePanel.Restart') }}
|
||||
</v-btn>
|
||||
<v-btn small @click="firmwareRestart" class="ml-4 error--text">
|
||||
<v-btn small class="ml-4 error--text" @click="firmwareRestart">
|
||||
<v-icon class="mr-sm-2">mdi-restart</v-icon>
|
||||
{{ $t('Panels.KlippyStatePanel.FirmwareRestart') }}
|
||||
</v-btn>
|
||||
|
||||
@@ -16,26 +16,26 @@
|
||||
outlined
|
||||
hide-details
|
||||
dense
|
||||
@change="changeRoot"
|
||||
attach></v-select>
|
||||
attach
|
||||
@change="changeRoot"></v-select>
|
||||
</v-col>
|
||||
<v-col class="col col-lg-auto pl-lg-0 text-right">
|
||||
<input type="file" ref="fileUpload" style="display: none" multiple @change="uploadFile" />
|
||||
<input ref="fileUpload" type="file" style="display: none" multiple @change="uploadFile" />
|
||||
<v-btn
|
||||
v-for="button in filteredToolbarButtons"
|
||||
v-bind:key="button.loadingName"
|
||||
:key="button.loadingName"
|
||||
class="px-2 minwidth-0 ml-3"
|
||||
@click="button.click"
|
||||
:loading="button.loadingName !== null && loadings.includes(button.loadingName)">
|
||||
:loading="button.loadingName !== null && loadings.includes(button.loadingName)"
|
||||
@click="button.click">
|
||||
<v-tooltip top>
|
||||
<template v-slot:activator="{ on, attrs }">
|
||||
<template #activator="{ on, attrs }">
|
||||
<v-icon v-bind="attrs" v-on="on">{{ button.icon }}</v-icon>
|
||||
</template>
|
||||
<span>{{ button.text }}</span>
|
||||
</v-tooltip>
|
||||
</v-btn>
|
||||
<v-menu offset-y left :title="$t('Machine.ConfigFilesPanel.SetupCurrentList')" attach>
|
||||
<template v-slot:activator="{ on, attrs }">
|
||||
<template #activator="{ on, attrs }">
|
||||
<v-btn class="px-2 minwidth-0 ml-3" v-bind="attrs" v-on="on">
|
||||
<v-icon>mdi-cog</v-icon>
|
||||
</v-btn>
|
||||
@@ -43,16 +43,16 @@
|
||||
<v-list>
|
||||
<v-list-item class="minHeight36">
|
||||
<v-checkbox
|
||||
v-model="showHiddenFiles"
|
||||
class="mt-0"
|
||||
hide-details
|
||||
v-model="showHiddenFiles"
|
||||
:label="$t('Machine.ConfigFilesPanel.HiddenFiles')"></v-checkbox>
|
||||
</v-list-item>
|
||||
<v-list-item class="minHeight36">
|
||||
<v-checkbox
|
||||
v-model="hideBackupFiles"
|
||||
class="mt-0"
|
||||
hide-details
|
||||
v-model="hideBackupFiles"
|
||||
:label="$t('Machine.ConfigFilesPanel.HideBackupFiles')"></v-checkbox>
|
||||
</v-list-item>
|
||||
</v-list>
|
||||
@@ -65,12 +65,12 @@
|
||||
<v-col class="col-12 py-2 d-flex align-center">
|
||||
<span>
|
||||
<b>{{ $t('Machine.ConfigFilesPanel.CurrentPath') }}:</b>
|
||||
{{ this.absolutePath }}
|
||||
{{ absolutePath }}
|
||||
</span>
|
||||
<v-spacer></v-spacer>
|
||||
<template v-if="disk_usage !== null">
|
||||
<v-tooltip top>
|
||||
<template v-slot:activator="{ on, attrs }">
|
||||
<template #activator="{ on, attrs }">
|
||||
<span v-bind="attrs" v-on="on">
|
||||
<b>{{ $t('Machine.ConfigFilesPanel.FreeDisk') }}:</b>
|
||||
{{ formatFilesize(disk_usage.free) }}
|
||||
@@ -110,7 +110,7 @@
|
||||
<div class="text-center">{{ $t('Machine.ConfigFilesPanel.Empty') }}</div>
|
||||
</template>
|
||||
|
||||
<template slot="body.prepend" v-if="currentPath !== ''">
|
||||
<template v-if="currentPath !== ''" slot="body.prepend">
|
||||
<tr
|
||||
class="file-list-cursor"
|
||||
@click="clickRowGoBack"
|
||||
@@ -126,11 +126,11 @@
|
||||
<tr
|
||||
:key="`${index} ${item.filename}`"
|
||||
v-longpress:600="(e) => showContextMenu(e, item)"
|
||||
@contextmenu="showContextMenu($event, item)"
|
||||
@click="clickRow(item)"
|
||||
class="file-list-cursor user-select-none"
|
||||
:data-name="item.filename"
|
||||
draggable="true"
|
||||
@contextmenu="showContextMenu($event, item)"
|
||||
@click="clickRow(item)"
|
||||
@drag="dragFile($event, item)"
|
||||
@dragend="dragendFile($event)"
|
||||
@dragover="dragOverFilelist($event, item)"
|
||||
@@ -151,7 +151,7 @@
|
||||
</panel>
|
||||
<v-menu v-model="contextMenu.shown" :position-x="contextMenu.x" :position-y="contextMenu.y" absolute offset-y>
|
||||
<v-list>
|
||||
<v-list-item @click="clickRow(contextMenu.item, true)" v-if="!contextMenu.item.isDirectory">
|
||||
<v-list-item v-if="!contextMenu.item.isDirectory" @click="clickRow(contextMenu.item, true)">
|
||||
<v-icon class="mr-1">mdi-file-document-edit-outline</v-icon>
|
||||
{{
|
||||
contextMenu.item.permissions.includes('w')
|
||||
@@ -159,31 +159,31 @@
|
||||
: $t('Machine.ConfigFilesPanel.ShowFile')
|
||||
}}
|
||||
</v-list-item>
|
||||
<v-list-item @click="downloadFile" v-if="!contextMenu.item.isDirectory">
|
||||
<v-list-item v-if="!contextMenu.item.isDirectory" @click="downloadFile">
|
||||
<v-icon class="mr-1">mdi-cloud-download</v-icon>
|
||||
{{ $t('Machine.ConfigFilesPanel.Download') }}
|
||||
</v-list-item>
|
||||
<v-list-item
|
||||
@click="renameFile(contextMenu.item)"
|
||||
v-if="!contextMenu.item.isDirectory && contextMenu.item.permissions.includes('w')">
|
||||
v-if="!contextMenu.item.isDirectory && contextMenu.item.permissions.includes('w')"
|
||||
@click="renameFile(contextMenu.item)">
|
||||
<v-icon class="mr-1">mdi-rename-box</v-icon>
|
||||
{{ $t('Machine.ConfigFilesPanel.Rename') }}
|
||||
</v-list-item>
|
||||
<v-list-item
|
||||
@click="renameDirectory(contextMenu.item)"
|
||||
v-if="contextMenu.item.isDirectory && contextMenu.item.permissions.includes('w')">
|
||||
v-if="contextMenu.item.isDirectory && contextMenu.item.permissions.includes('w')"
|
||||
@click="renameDirectory(contextMenu.item)">
|
||||
<v-icon class="mr-1">mdi-rename-box</v-icon>
|
||||
{{ $t('Machine.ConfigFilesPanel.Rename') }}
|
||||
</v-list-item>
|
||||
<v-list-item
|
||||
@click="removeFile"
|
||||
v-if="!contextMenu.item.isDirectory && contextMenu.item.permissions.includes('w')">
|
||||
v-if="!contextMenu.item.isDirectory && contextMenu.item.permissions.includes('w')"
|
||||
@click="removeFile">
|
||||
<v-icon class="mr-1">mdi-delete</v-icon>
|
||||
{{ $t('Machine.ConfigFilesPanel.Delete') }}
|
||||
</v-list-item>
|
||||
<v-list-item
|
||||
@click="deleteDirectory(contextMenu.item)"
|
||||
v-if="contextMenu.item.isDirectory && contextMenu.item.permissions.includes('w')">
|
||||
v-if="contextMenu.item.isDirectory && contextMenu.item.permissions.includes('w')"
|
||||
@click="deleteDirectory(contextMenu.item)">
|
||||
<v-icon class="mr-1">mdi-delete</v-icon>
|
||||
{{ $t('Machine.ConfigFilesPanel.Delete') }}
|
||||
</v-list-item>
|
||||
@@ -193,17 +193,17 @@
|
||||
v-model="dialogImage.show"
|
||||
hide-overlay
|
||||
fullscreen
|
||||
class="fill-height"
|
||||
@keydown.esc="
|
||||
dialogImage.show = false
|
||||
dialogImage.item.url = null
|
||||
dialogImage.item.svg = null
|
||||
"
|
||||
class="fill-height">
|
||||
">
|
||||
<panel
|
||||
:title="dialogImage.item.name"
|
||||
card-class="maschine-configfiles-imageviewer-dialog"
|
||||
style="position: relative">
|
||||
<template v-slot:buttons>
|
||||
<template #buttons>
|
||||
<v-btn
|
||||
icon
|
||||
tile
|
||||
@@ -230,16 +230,16 @@
|
||||
:title="$t('Machine.ConfigFilesPanel.CreateFile')"
|
||||
card-class="maschine-configfiles-create-file-dialog"
|
||||
:margin-bottom="false">
|
||||
<template v-slot:buttons>
|
||||
<template #buttons>
|
||||
<v-btn icon tile @click="dialogCreateFile.show = false"><v-icon>mdi-close-thick</v-icon></v-btn>
|
||||
</template>
|
||||
<v-card-text>
|
||||
<v-text-field
|
||||
:label="$t('Machine.ConfigFilesPanel.Name')"
|
||||
v-model="dialogCreateFile.name"
|
||||
ref="inputDialogCreateFileName"
|
||||
@keyup.enter="createFileAction"
|
||||
required></v-text-field>
|
||||
v-model="dialogCreateFile.name"
|
||||
:label="$t('Machine.ConfigFilesPanel.Name')"
|
||||
required
|
||||
@keyup.enter="createFileAction"></v-text-field>
|
||||
</v-card-text>
|
||||
<v-card-actions>
|
||||
<v-spacer></v-spacer>
|
||||
@@ -257,16 +257,16 @@
|
||||
:title="$t('Machine.ConfigFilesPanel.RenameFile')"
|
||||
card-class="maschine-configfiles-rename-file-dialog"
|
||||
:margin-bottom="false">
|
||||
<template v-slot:buttons>
|
||||
<template #buttons>
|
||||
<v-btn icon tile @click="dialogRenameFile.show = false"><v-icon>mdi-close-thick</v-icon></v-btn>
|
||||
</template>
|
||||
<v-card-text>
|
||||
<v-text-field
|
||||
:label="$t('Machine.ConfigFilesPanel.Name')"
|
||||
v-model="dialogRenameFile.newName"
|
||||
ref="inputDialogRenameFileName"
|
||||
@keyup.enter="renameFileAction"
|
||||
required></v-text-field>
|
||||
v-model="dialogRenameFile.newName"
|
||||
:label="$t('Machine.ConfigFilesPanel.Name')"
|
||||
required
|
||||
@keyup.enter="renameFileAction"></v-text-field>
|
||||
</v-card-text>
|
||||
<v-card-actions>
|
||||
<v-spacer></v-spacer>
|
||||
@@ -284,18 +284,18 @@
|
||||
:title="$t('Machine.ConfigFilesPanel.CreateDirectory')"
|
||||
card-class="maschine-configfiles-create-directory-dialog"
|
||||
:margin-bottom="false">
|
||||
<template v-slot:buttons>
|
||||
<template #buttons>
|
||||
<v-btn icon tile @click="dialogCreateDirectory.show = false">
|
||||
<v-icon>mdi-close-thick</v-icon>
|
||||
</v-btn>
|
||||
</template>
|
||||
<v-card-text>
|
||||
<v-text-field
|
||||
:label="$t('Machine.ConfigFilesPanel.Name')"
|
||||
v-model="dialogCreateDirectory.name"
|
||||
ref="inputDialogCreateDirectoryName"
|
||||
@keyup.enter="createDirectoryAction"
|
||||
required></v-text-field>
|
||||
v-model="dialogCreateDirectory.name"
|
||||
:label="$t('Machine.ConfigFilesPanel.Name')"
|
||||
required
|
||||
@keyup.enter="createDirectoryAction"></v-text-field>
|
||||
</v-card-text>
|
||||
<v-card-actions>
|
||||
<v-spacer></v-spacer>
|
||||
@@ -313,18 +313,18 @@
|
||||
:title="$t('Machine.ConfigFilesPanel.RenameDirectory')"
|
||||
card-class="maschine-configfiles-rename-directory-dialog"
|
||||
:margin-bottom="false">
|
||||
<template v-slot:buttons>
|
||||
<template #buttons>
|
||||
<v-btn icon tile @click="dialogRenameDirectory.show = false">
|
||||
<v-icon>mdi-close-thick</v-icon>
|
||||
</v-btn>
|
||||
</template>
|
||||
<v-card-text>
|
||||
<v-text-field
|
||||
:label="$t('Machine.ConfigFilesPanel.Name')"
|
||||
v-model="dialogRenameDirectory.newName"
|
||||
ref="inputDialogRenameDirectoryName"
|
||||
@keyup.enter="renameDirectoryAction"
|
||||
required></v-text-field>
|
||||
v-model="dialogRenameDirectory.newName"
|
||||
:label="$t('Machine.ConfigFilesPanel.Name')"
|
||||
required
|
||||
@keyup.enter="renameDirectoryAction"></v-text-field>
|
||||
</v-card-text>
|
||||
<v-card-actions>
|
||||
<v-spacer></v-spacer>
|
||||
@@ -342,7 +342,7 @@
|
||||
:title="$t('Machine.ConfigFilesPanel.DeleteDirectory')"
|
||||
card-class="maschine-configfiles-delete-directory-dialog"
|
||||
:margin-bottom="false">
|
||||
<template v-slot:buttons>
|
||||
<template #buttons>
|
||||
<v-btn icon tile @click="dialogDeleteDirectory.show = false">
|
||||
<v-icon>mdi-close-thick</v-icon>
|
||||
</v-btn>
|
||||
@@ -376,8 +376,8 @@
|
||||
{{ Math.round(uploadSnackbar.percent) }} % @ {{ formatFilesize(Math.round(uploadSnackbar.speed)) }}/s
|
||||
<br />
|
||||
<v-progress-linear class="mt-2" :value="uploadSnackbar.percent"></v-progress-linear>
|
||||
<template v-slot:action="{ attrs }">
|
||||
<v-btn color="red" text v-bind="attrs" @click="cancelUpload" style="min-width: auto">
|
||||
<template #action="{ attrs }">
|
||||
<v-btn color="red" text v-bind="attrs" style="min-width: auto" @click="cancelUpload">
|
||||
<v-icon class="0">mdi-close</v-icon>
|
||||
</v-btn>
|
||||
</template>
|
||||
|
||||
@@ -7,7 +7,7 @@
|
||||
<v-card-text class="pb-0">
|
||||
<v-container px-0 py-0>
|
||||
<template v-if="Object.keys(endstops).length">
|
||||
<v-row v-for="key of Object.keys(endstops)" v-bind:key="key">
|
||||
<v-row v-for="key of Object.keys(endstops)" :key="key">
|
||||
<v-col class="py-1">
|
||||
<label class="mt-1 d-inline-block">
|
||||
{{ $t('Machine.EndstopPanel.Endstop') }}
|
||||
@@ -53,7 +53,7 @@
|
||||
</v-card-text>
|
||||
<v-card-actions class="pt-3">
|
||||
<v-spacer></v-spacer>
|
||||
<v-btn icon @click="syncEndstops" :loading="loadings.includes('queryEndstops')">
|
||||
<v-btn icon :loading="loadings.includes('queryEndstops')" @click="syncEndstops">
|
||||
<v-icon>mdi-sync</v-icon>
|
||||
</v-btn>
|
||||
</v-card-actions>
|
||||
|
||||
@@ -9,10 +9,10 @@
|
||||
<v-row>
|
||||
<v-col :class="'col-12' + (klipperState !== 'ready' ? 'col-md-6' : 'col-md-12') + ''">
|
||||
<v-btn
|
||||
:href="this.apiUrl + '/server/files/klippy.log'"
|
||||
@click="downloadLog"
|
||||
:href="apiUrl + '/server/files/klippy.log'"
|
||||
block
|
||||
class="primary--text">
|
||||
class="primary--text"
|
||||
@click="downloadLog">
|
||||
<v-icon class="mr-2">mdi-download</v-icon>
|
||||
Klipper
|
||||
</v-btn>
|
||||
@@ -20,10 +20,10 @@
|
||||
<v-col
|
||||
:class="'col-12 pt-0 ' + (klipperState !== 'ready' ? 'col-md-6 mt-md-3 ' : 'col-md-12') + ''">
|
||||
<v-btn
|
||||
:href="this.apiUrl + '/server/files/moonraker.log'"
|
||||
@click="downloadLog"
|
||||
:href="apiUrl + '/server/files/moonraker.log'"
|
||||
block
|
||||
class="primary--text">
|
||||
class="primary--text"
|
||||
@click="downloadLog">
|
||||
<v-icon class="mr-2">mdi-download</v-icon>
|
||||
Moonraker
|
||||
</v-btn>
|
||||
|
||||
@@ -12,8 +12,8 @@
|
||||
card-class="machine-systemload-panel"
|
||||
:collapsible="true">
|
||||
<v-card-text class="px-0 py-2">
|
||||
<div v-for="(mcu, index) of mcus" v-bind:key="mcu.name">
|
||||
<v-divider class="my-2" v-if="index"></v-divider>
|
||||
<div v-for="(mcu, index) of mcus" :key="mcu.name">
|
||||
<v-divider v-if="index" class="my-2"></v-divider>
|
||||
<v-row class="py-0">
|
||||
<v-col class="pl-6">
|
||||
<strong style="cursor: pointer" @click="openMcuDetails(mcu)">{{ mcu.name }}</strong>
|
||||
@@ -34,7 +34,7 @@
|
||||
mcu.tempSensor.measured_max_temp !== null
|
||||
">
|
||||
<v-tooltip top>
|
||||
<template v-slot:activator="{ on, attrs }">
|
||||
<template #activator="{ on, attrs }">
|
||||
<span v-bind="attrs" v-on="on">
|
||||
Temp: {{ mcu.tempSensor.temperature + '°C' }}
|
||||
</span>
|
||||
@@ -62,12 +62,12 @@
|
||||
</v-row>
|
||||
</div>
|
||||
<div v-if="hostStats">
|
||||
<v-divider class="my-2" v-if="mcus.length"></v-divider>
|
||||
<v-divider v-if="mcus.length" class="my-2"></v-divider>
|
||||
<v-row class="py-0">
|
||||
<v-col class="pl-6">
|
||||
<strong style="cursor: pointer" @click="hostDetailsDialog.bool = true">Host</strong>
|
||||
<v-tooltip top>
|
||||
<template v-slot:activator="{ on, attrs }">
|
||||
<template #activator="{ on, attrs }">
|
||||
<small v-if="hostStats.cpuName" class="ml-2" v-bind="attrs" v-on="on">
|
||||
({{ hostStats.cpuName }})
|
||||
</small>
|
||||
@@ -103,7 +103,7 @@
|
||||
hostStats.tempSensor.measured_max_temp !== null
|
||||
">
|
||||
<v-tooltip top>
|
||||
<template v-slot:activator="{ on, attrs }">
|
||||
<template #activator="{ on, attrs }">
|
||||
<span v-bind="attrs" v-on="on">
|
||||
Temp: {{ hostStats.tempSensor.temperature + '°C' }}
|
||||
</span>
|
||||
@@ -138,7 +138,7 @@
|
||||
icon="mdi-text-box-search-outline"
|
||||
card-class="machine-systemload-mcu-details-dialog"
|
||||
:margin-bottom="false">
|
||||
<template v-slot:buttons>
|
||||
<template #buttons>
|
||||
<v-btn icon tile @click="mcuDetailsDialog.bool = false"><v-icon>mdi-close-thick</v-icon></v-btn>
|
||||
</template>
|
||||
<v-card-text class="pt-5 px-0">
|
||||
@@ -150,7 +150,7 @@
|
||||
</v-col>
|
||||
</v-row>
|
||||
<div v-for="(value, key, index) in mcuDetailsDialog.mcu.mcu_constants" :key="key">
|
||||
<v-divider class="my-3" v-if="index"></v-divider>
|
||||
<v-divider v-if="index" class="my-3"></v-divider>
|
||||
<v-row>
|
||||
<v-col>{{ key }}</v-col>
|
||||
<v-col class="text-right">{{ value }}</v-col>
|
||||
@@ -164,7 +164,7 @@
|
||||
</v-col>
|
||||
</v-row>
|
||||
<div v-for="(value, key, index) in mcuDetailsDialog.mcu.last_stats" :key="key">
|
||||
<v-divider class="my-3" v-if="index"></v-divider>
|
||||
<v-divider v-if="index" class="my-3"></v-divider>
|
||||
<v-row>
|
||||
<v-col>{{ key }}</v-col>
|
||||
<v-col class="text-right">{{ value }}</v-col>
|
||||
@@ -181,21 +181,21 @@
|
||||
icon="mdi-text-box-search-outline"
|
||||
card-class="machine-systemload-host-details-dialog"
|
||||
:margin-bottom="false">
|
||||
<template v-slot:buttons>
|
||||
<template #buttons>
|
||||
<v-btn icon tile @click="hostDetailsDialog.bool = false"><v-icon>mdi-close-thick</v-icon></v-btn>
|
||||
</template>
|
||||
<v-card-text class="pt-5 px-0">
|
||||
<overlay-scrollbars style="height: 350px" class="px-6">
|
||||
<template v-if="Object.keys(systemInfo).length">
|
||||
<div v-for="(infoGroup, key, index) of systemInfo" v-bind:key="key">
|
||||
<template v-if="key !== 'available_services'">
|
||||
<v-row :class="index ? 'mt-5' : ''">
|
||||
<div v-for="(infoGroup, groupKey, groupIndex) of systemInfo" :key="groupKey">
|
||||
<template v-if="groupKey !== 'available_services'">
|
||||
<v-row :class="groupIndex ? 'mt-5' : ''">
|
||||
<v-col>
|
||||
<span class="headline">{{ key }}</span>
|
||||
<span class="headline">{{ groupKey }}</span>
|
||||
</v-col>
|
||||
</v-row>
|
||||
<div v-for="(value, key, index) in infoGroup" :key="key">
|
||||
<v-divider class="my-3" v-if="index"></v-divider>
|
||||
<v-divider v-if="index" class="my-3"></v-divider>
|
||||
<v-row>
|
||||
<v-col>{{ key }}</v-col>
|
||||
<v-col class="text-right">{{ value }}</v-col>
|
||||
|
||||
@@ -61,14 +61,14 @@ ul.commits {
|
||||
<template>
|
||||
<div>
|
||||
<panel
|
||||
:title="$t('Machine.UpdatePanel.UpdateManager')"
|
||||
v-if="enableUpdateManager"
|
||||
:title="$t('Machine.UpdatePanel.UpdateManager')"
|
||||
icon="mdi-update"
|
||||
card-class="machine-update-panel"
|
||||
:collapsible="true">
|
||||
<template v-slot:buttons>
|
||||
<template #buttons>
|
||||
<v-tooltip top>
|
||||
<template v-slot:activator="{ on, attrs }">
|
||||
<template #activator="{ on, attrs }">
|
||||
<v-btn
|
||||
icon
|
||||
tile
|
||||
@@ -76,8 +76,8 @@ ul.commits {
|
||||
:ripple="true"
|
||||
:loading="loadings.includes('loadingBtnSyncUpdateManager')"
|
||||
:disabled="['printing', 'paused'].includes(printer_state)"
|
||||
@click="btnSync"
|
||||
v-bind="attrs"
|
||||
@click="btnSync"
|
||||
v-on="on">
|
||||
<v-icon>mdi-refresh</v-icon>
|
||||
</v-btn>
|
||||
@@ -87,15 +87,15 @@ ul.commits {
|
||||
</template>
|
||||
<v-card-text class="px-0 py-0">
|
||||
<v-container py-0 px-0>
|
||||
<div v-for="(value, key, index) of updateableSoftwares" v-bind:key="key">
|
||||
<v-divider class="my-0" v-if="index"></v-divider>
|
||||
<div v-for="(value, key, index) of updateableSoftwares" :key="key">
|
||||
<v-divider v-if="index" class="my-0"></v-divider>
|
||||
<v-row class="py-2">
|
||||
<v-col class="pl-6">
|
||||
<strong>{{ 'name' in value ? value.name : key }}</strong>
|
||||
<br />
|
||||
<span
|
||||
@click="openCommitsOverlay(key, value)"
|
||||
:class="getVersionClickable(value) ? 'primary--text cursor--pointer' : ''">
|
||||
:class="getVersionClickable(value) ? 'primary--text cursor--pointer' : ''"
|
||||
@click="openCommitsOverlay(key, value)">
|
||||
<v-icon v-if="getVersionClickable(value)" small color="primary" class="mr-1">
|
||||
mdi-information
|
||||
</v-icon>
|
||||
@@ -105,7 +105,7 @@ ul.commits {
|
||||
<v-col class="col-auto pr-6 text-right" align-self="center">
|
||||
<template v-if="getRecoveryOptions(value)">
|
||||
<v-menu :offset-y="true" title="Webcam">
|
||||
<template v-slot:activator="{ on, attrs }">
|
||||
<template #activator="{ on, attrs }">
|
||||
<v-chip
|
||||
small
|
||||
label
|
||||
@@ -146,9 +146,9 @@ ul.commits {
|
||||
label
|
||||
outlined
|
||||
:color="getBtnColor(value)"
|
||||
@click="updateModule(key)"
|
||||
:disabled="getBtnDisabled(value)"
|
||||
class="minwidth-0 px-2 text-uppercase">
|
||||
class="minwidth-0 px-2 text-uppercase"
|
||||
@click="updateModule(key)">
|
||||
<v-icon small class="mr-1">mdi-{{ getBtnIcon(value) }}</v-icon>
|
||||
{{ getBtnText(value) }}
|
||||
</v-chip>
|
||||
@@ -162,8 +162,8 @@ ul.commits {
|
||||
<v-col class="col-auto pl-6 text-no-wrap">
|
||||
<strong>{{ $t('Machine.UpdatePanel.System') }}</strong>
|
||||
<br />
|
||||
<v-tooltip top v-if="version_info.system.package_count > 0" :max-width="300">
|
||||
<template v-slot:activator="{ on, attrs }">
|
||||
<v-tooltip v-if="version_info.system.package_count > 0" top :max-width="300">
|
||||
<template #activator="{ on, attrs }">
|
||||
<span v-bind="attrs" v-on="on">
|
||||
{{ version_info.system.package_count }}
|
||||
{{ $t('Machine.UpdatePanel.PackagesCanBeUpgraded') }}
|
||||
@@ -182,8 +182,8 @@ ul.commits {
|
||||
outlined
|
||||
:color="version_info.system.package_count ? 'primary' : 'green'"
|
||||
:disabled="!version_info.system.package_count || printer_state === 'printing'"
|
||||
@click="updateSystem"
|
||||
class="minwidth-0 px-2 text-uppercase">
|
||||
class="minwidth-0 px-2 text-uppercase"
|
||||
@click="updateSystem">
|
||||
<v-icon small class="mr-1">
|
||||
mdi-{{ version_info.system.package_count ? 'progress-upload' : 'check' }}
|
||||
</v-icon>
|
||||
@@ -204,8 +204,8 @@ ul.commits {
|
||||
text
|
||||
color="primary"
|
||||
small
|
||||
@click="updateAll"
|
||||
:disabled="['printing', 'paused'].includes(this.printer_state)">
|
||||
:disabled="['printing', 'paused'].includes(printer_state)"
|
||||
@click="updateAll">
|
||||
<v-icon left>mdi-progress-upload</v-icon>
|
||||
{{ $t('Machine.UpdatePanel.UpdateAll') }}
|
||||
</v-btn>
|
||||
@@ -221,7 +221,7 @@ ul.commits {
|
||||
icon="mdi-update"
|
||||
:margin-bottom="false"
|
||||
card-class="machine-update-commits-dialog">
|
||||
<template v-slot:buttons>
|
||||
<template #buttons>
|
||||
<v-btn icon tile @click="commitsOverlay.bool = false"><v-icon>mdi-close-thick</v-icon></v-btn>
|
||||
</template>
|
||||
<v-card-text class="py-0 px-0">
|
||||
@@ -230,9 +230,9 @@ ul.commits {
|
||||
<v-col class="pt-3 pl-0">
|
||||
<v-timeline class="groupedCommits" align-top dense>
|
||||
<v-timeline-item
|
||||
small
|
||||
v-for="group of commitsOverlay.groupedCommits"
|
||||
v-bind:key="group.date.getTime()">
|
||||
:key="group.date.getTime()"
|
||||
small>
|
||||
<v-row class="pt-0">
|
||||
<v-col class="pr-12">
|
||||
<h3 class="caption">
|
||||
@@ -247,19 +247,19 @@ ul.commits {
|
||||
</h3>
|
||||
<ul class="commits mt-3 pl-0">
|
||||
<li
|
||||
class="commit px-3 py-2"
|
||||
v-for="commit of group.commits"
|
||||
v-bind:key="commit.sha">
|
||||
:key="commit.sha"
|
||||
class="commit px-3 py-2">
|
||||
<v-row>
|
||||
<v-col>
|
||||
<h4 class="subtitle-2 text--white mb-0">
|
||||
{{ commit.subject }}
|
||||
<v-chip
|
||||
v-if="!openCommits.includes(commit.sha)"
|
||||
outlined
|
||||
label
|
||||
x-small
|
||||
class="ml-2 px-2"
|
||||
v-if="!openCommits.includes(commit.sha)"
|
||||
@click="openCommits.push(commit.sha)">
|
||||
<v-icon small>mdi-dots-horizontal</v-icon>
|
||||
</v-chip>
|
||||
|
||||
@@ -6,8 +6,8 @@
|
||||
:label="$t('Panels.MachineSettingsPanel.FirmwareRetractionSettings.RetractLength').toString()"
|
||||
:target="current_retract_length"
|
||||
:default-value="config_retract_length"
|
||||
:hasSpinner="true"
|
||||
:spinnerFactor="10"
|
||||
:has-spinner="true"
|
||||
:spinner-factor="10"
|
||||
:step="0.01"
|
||||
:min="0"
|
||||
:max="null"
|
||||
@@ -20,8 +20,8 @@
|
||||
:label="$t('Panels.MachineSettingsPanel.FirmwareRetractionSettings.RetractSpeed').toString()"
|
||||
:target="current_retract_speed"
|
||||
:default-value="config_retract_speed"
|
||||
:hasSpinner="true"
|
||||
:spinnerFactor="5"
|
||||
:has-spinner="true"
|
||||
:spinner-factor="5"
|
||||
:step="1"
|
||||
:min="1"
|
||||
:max="null"
|
||||
@@ -38,8 +38,8 @@
|
||||
"
|
||||
:target="current_unretract_extra_length"
|
||||
:default-value="config_unretract_extra_length"
|
||||
:hasSpinner="true"
|
||||
:spinnerFactor="10"
|
||||
:has-spinner="true"
|
||||
:spinner-factor="10"
|
||||
:step="0.01"
|
||||
:min="0"
|
||||
:max="null"
|
||||
@@ -52,8 +52,8 @@
|
||||
:label="$t('Panels.MachineSettingsPanel.FirmwareRetractionSettings.UnretractSpeed').toString()"
|
||||
:target="current_unretract_speed"
|
||||
:default-value="config_unretract_speed"
|
||||
:hasSpinner="true"
|
||||
:spinnerFactor="5"
|
||||
:has-spinner="true"
|
||||
:spinner-factor="5"
|
||||
:step="1"
|
||||
:min="1"
|
||||
:max="null"
|
||||
|
||||
@@ -6,8 +6,8 @@
|
||||
:label="$t('Panels.MachineSettingsPanel.MotionSettings.Velocity').toString()"
|
||||
:target="current_velocity"
|
||||
:default-value="max_velocity"
|
||||
:hasSpinner="true"
|
||||
:spinnerFactor="5"
|
||||
:has-spinner="true"
|
||||
:spinner-factor="5"
|
||||
:step="1"
|
||||
:min="1"
|
||||
:max="null"
|
||||
@@ -20,7 +20,7 @@
|
||||
:label="$t('Panels.MachineSettingsPanel.MotionSettings.SquareCornerVelocity').toString()"
|
||||
:target="current_square_corner_velocity"
|
||||
:default-value="max_square_corner_velocity"
|
||||
:hasSpinner="true"
|
||||
:has-spinner="true"
|
||||
:step="0.1"
|
||||
:min="0.1"
|
||||
:max="null"
|
||||
@@ -35,8 +35,8 @@
|
||||
:label="$t('Panels.MachineSettingsPanel.MotionSettings.Acceleration').toString()"
|
||||
:target="current_accel"
|
||||
:default-value="max_accel"
|
||||
:hasSpinner="true"
|
||||
:spinnerFactor="100"
|
||||
:has-spinner="true"
|
||||
:spinner-factor="100"
|
||||
:step="1"
|
||||
:min="1"
|
||||
:max="null"
|
||||
@@ -49,8 +49,8 @@
|
||||
:label="$t('Panels.MachineSettingsPanel.MotionSettings.MaxAccelToDecel').toString()"
|
||||
:target="current_accel_to_decel"
|
||||
:default-value="max_accel_to_decel"
|
||||
:hasSpinner="true"
|
||||
:spinnerFactor="100"
|
||||
:has-spinner="true"
|
||||
:spinner-factor="100"
|
||||
:step="1"
|
||||
:min="1"
|
||||
:max="null"
|
||||
|
||||
@@ -1,14 +1,14 @@
|
||||
<template>
|
||||
<v-card-text>
|
||||
<v-row>
|
||||
<v-col v-if="this.all_extruders.length > 1" class="col-12 col-xl-4">
|
||||
<v-col v-if="all_extruders.length > 1" class="col-12 col-xl-4">
|
||||
<div class="d-flex align-center">
|
||||
<v-btn
|
||||
v-if="this.selectedExtruder !== this.active_extruder"
|
||||
@click="resetToActiveExtruder"
|
||||
v-if="selectedExtruder !== active_extruder"
|
||||
class="mr-2"
|
||||
icon
|
||||
plain>
|
||||
plain
|
||||
@click="resetToActiveExtruder">
|
||||
<v-icon>mdi-restart</v-icon>
|
||||
</v-btn>
|
||||
<v-select
|
||||
@@ -21,13 +21,13 @@
|
||||
dense></v-select>
|
||||
</div>
|
||||
</v-col>
|
||||
<v-col :class="this.all_extruders.length > 1 ? 'col-12 col-md-6 col-xl-4' : 'col-12 col-md-6'">
|
||||
<v-col :class="all_extruders.length > 1 ? 'col-12 col-md-6 col-xl-4' : 'col-12 col-md-6'">
|
||||
<pressure-advance-settings-input
|
||||
:label="$t('Panels.MachineSettingsPanel.PressureAdvanceSettings.Advance').toString()"
|
||||
:target="current_pressure_advance"
|
||||
:default-value="default_pressure_advance"
|
||||
:extruder="selectedExtruder"
|
||||
:hasSpinner="true"
|
||||
:has-spinner="true"
|
||||
:min="0"
|
||||
:max="null"
|
||||
:step="0.001"
|
||||
@@ -35,17 +35,17 @@
|
||||
unit="mm/s"
|
||||
attribute-name="ADVANCE"></pressure-advance-settings-input>
|
||||
</v-col>
|
||||
<v-col :class="this.all_extruders.length > 1 ? 'col-12 col-md-6 col-xl-4' : 'col-12 col-md-6'">
|
||||
<v-col :class="all_extruders.length > 1 ? 'col-12 col-md-6 col-xl-4' : 'col-12 col-md-6'">
|
||||
<pressure-advance-settings-input
|
||||
:label="$t('Panels.MachineSettingsPanel.PressureAdvanceSettings.SmoothTime').toString()"
|
||||
:target="current_smooth_time"
|
||||
:default-value="default_smooth_time"
|
||||
:extruder="selectedExtruder"
|
||||
:hasSpinner="true"
|
||||
:has-spinner="true"
|
||||
:min="0"
|
||||
:max="0.2"
|
||||
:step="0.001"
|
||||
:spinnerFactor="10"
|
||||
:spinner-factor="10"
|
||||
:dec="3"
|
||||
unit="s"
|
||||
attribute-name="SMOOTH_TIME"></pressure-advance-settings-input>
|
||||
|
||||
@@ -10,7 +10,7 @@
|
||||
<v-row>
|
||||
<v-col>
|
||||
<ul class="">
|
||||
<li v-for="module in missingConfigs" v-bind:key="module" class="orange--text">
|
||||
<li v-for="module in missingConfigs" :key="module" class="orange--text">
|
||||
<code>{{ module }}</code>
|
||||
{{ $t('Panels.MinSettingsPanel.IsNotDefinedInConfig') }}
|
||||
</li>
|
||||
|
||||
@@ -15,39 +15,39 @@
|
||||
:title="$t('Panels.MiniconsolePanel.Headline')"
|
||||
:collapsible="true"
|
||||
card-class="miniconsole-panel"
|
||||
:hideButtonsOnCollapse="true">
|
||||
<template v-slot:buttons>
|
||||
<command-help-modal @onCommand="gcode = $event" :inToolbar="true"></command-help-modal>
|
||||
:hide-buttons-on-collapse="true">
|
||||
<template #buttons>
|
||||
<command-help-modal :in-toolbar="true" @onCommand="gcode = $event"></command-help-modal>
|
||||
|
||||
<v-menu
|
||||
:offset-y="true"
|
||||
:close-on-content-click="false"
|
||||
:title="$t('Panels.MiniconsolePanel.SetupConsole')">
|
||||
<template v-slot:activator="{ on, attrs }">
|
||||
<template #activator="{ on, attrs }">
|
||||
<v-btn icon tile v-bind="attrs" v-on="on"><v-icon small>mdi-filter</v-icon></v-btn>
|
||||
</template>
|
||||
<v-list>
|
||||
<v-list-item class="minHeight36">
|
||||
<v-checkbox
|
||||
class="mt-0"
|
||||
v-model="hideWaitTemperatures"
|
||||
class="mt-0"
|
||||
hide-details
|
||||
:label="$t('Panels.MiniconsolePanel.HideTemperatures')"></v-checkbox>
|
||||
</v-list-item>
|
||||
<v-list-item class="minHeight36" v-if="moonrakerComponents.includes('timelapse')">
|
||||
<v-list-item v-if="moonrakerComponents.includes('timelapse')" class="minHeight36">
|
||||
<v-checkbox
|
||||
class="mt-0"
|
||||
v-model="hideTlCommands"
|
||||
class="mt-0"
|
||||
hide-details
|
||||
:label="$t('Panels.MiniconsolePanel.HideTimelapse')"></v-checkbox>
|
||||
</v-list-item>
|
||||
<v-list-item class="minHeight36" v-for="(filter, index) in customFilters" v-bind:key="index">
|
||||
<v-list-item v-for="(filter, index) in customFilters" :key="index" class="minHeight36">
|
||||
<v-checkbox
|
||||
class="mt-0"
|
||||
v-model="filter.bool"
|
||||
@change="toggleFilter(filter)"
|
||||
class="mt-0"
|
||||
hide-details
|
||||
:label="filter.name"></v-checkbox>
|
||||
:label="filter.name"
|
||||
@change="toggleFilter(filter)"></v-checkbox>
|
||||
</v-list-item>
|
||||
</v-list>
|
||||
</v-menu>
|
||||
@@ -55,26 +55,26 @@
|
||||
<div class="d-flex flex-column">
|
||||
<v-card-text :class="consoleDirection === 'table' ? 'order-1' : 'order-2'">
|
||||
<v-textarea
|
||||
ref="gcodeCommandField"
|
||||
v-model="gcode"
|
||||
:items="items"
|
||||
:label="$t('Panels.MiniconsolePanel.SendCode')"
|
||||
solo
|
||||
class="gcode-command-field"
|
||||
ref="gcodeCommandField"
|
||||
autocomplete="off"
|
||||
no-resize
|
||||
auto-grow
|
||||
:rows="rows"
|
||||
@keydown.enter.prevent.stop="doSend"
|
||||
@keyup.up="onKeyUp"
|
||||
@keyup.down="onKeyDown"
|
||||
@keydown.tab="getAutocomplete"
|
||||
hide-details
|
||||
outlined
|
||||
dense
|
||||
:prepend-icon="isTouchDevice ? 'mdi-chevron-double-right' : ''"
|
||||
@click:prepend="getAutocomplete"
|
||||
append-icon="mdi-send"
|
||||
@keydown.enter.prevent.stop="doSend"
|
||||
@keyup.up="onKeyUp"
|
||||
@keyup.down="onKeyDown"
|
||||
@keydown.tab="getAutocomplete"
|
||||
@click:prepend="getAutocomplete"
|
||||
@click:append="doSend"></v-textarea>
|
||||
</v-card-text>
|
||||
<v-card-text :class="(consoleDirection === 'table' ? 'order-2' : 'order-1') + ' pa-0'">
|
||||
|
||||
@@ -7,7 +7,7 @@
|
||||
:title="$t('Panels.MiscellaneousPanel.Headline')"
|
||||
:collapsible="true"
|
||||
card-class="miscellaneous-panel">
|
||||
<div v-for="(object, index) of miscellaneous" v-bind:key="index">
|
||||
<div v-for="(object, index) of miscellaneous" :key="index">
|
||||
<v-divider v-if="index"></v-divider>
|
||||
<miscellaneous-slider
|
||||
:name="object.name"
|
||||
@@ -20,7 +20,7 @@
|
||||
:max="object.max_power"
|
||||
:multi="parseInt(object.scale)"></miscellaneous-slider>
|
||||
</div>
|
||||
<div v-for="(sensor, index) of filamentSensors" v-bind:key="'sensor_' + index">
|
||||
<div v-for="(sensor, index) of filamentSensors" :key="'sensor_' + index">
|
||||
<v-divider v-if="index || miscellaneous.length"></v-divider>
|
||||
<filament-sensor
|
||||
:name="sensor.name"
|
||||
|
||||
@@ -12,7 +12,7 @@
|
||||
<p class="orange--text">{{ $t('Panels.MoonrakerStatePanel.MoonrakerErrorInfo') }}</p>
|
||||
<p class="mb-2 orange--text">{{ $t('Panels.MoonrakerStatePanel.FollowingPluginHasAnError') }}</p>
|
||||
<ul class="mt-0 pt-0">
|
||||
<li v-for="component in failedComponents" v-bind:key="component" class="orange--text">
|
||||
<li v-for="component in failedComponents" :key="component" class="orange--text">
|
||||
<code>{{ component }}</code>
|
||||
</li>
|
||||
</ul>
|
||||
@@ -20,11 +20,8 @@
|
||||
</v-row>
|
||||
</v-card-text>
|
||||
<v-divider v-if="failedComponents.length || warnings.length"></v-divider>
|
||||
<v-card-text
|
||||
:class="index > 0 ? 'py-0' : 'pt-3 pb-0'"
|
||||
v-for="(warning, index) in warnings"
|
||||
v-bind:key="warning">
|
||||
<v-divider class="my-2" v-if="index"></v-divider>
|
||||
<v-card-text v-for="(warning, index) in warnings" :key="warning" :class="index > 0 ? 'py-0' : 'pt-3 pb-0'">
|
||||
<v-divider v-if="index" class="my-2"></v-divider>
|
||||
<p class="orange--text mb-0">{{ warning }}</p>
|
||||
</v-card-text>
|
||||
<v-divider class="mt-3"></v-divider>
|
||||
|
||||
@@ -12,26 +12,26 @@
|
||||
</v-toolbar-title>
|
||||
</v-toolbar>
|
||||
|
||||
<div v-for="(device, index) in devices" v-bind:key="index">
|
||||
<v-divider class="mt-0" v-if="index > 0"></v-divider>
|
||||
<div v-for="(device, index) in devices" :key="index">
|
||||
<v-divider v-if="index > 0" class="mt-0"></v-divider>
|
||||
<v-card-text class="py-2">
|
||||
<v-row>
|
||||
<v-col class="py-0 pt-1">{{ device.device }}</v-col>
|
||||
<v-col class="py-0 text-right">
|
||||
<v-btn-toggle v-model="device.status">
|
||||
<v-btn small v-if="device.status === 'error'" disabled>
|
||||
<v-btn v-if="device.status === 'error'" small disabled>
|
||||
{{ $t('Panels.PowerControlPanel.Error') }}
|
||||
</v-btn>
|
||||
<v-btn
|
||||
small
|
||||
v-if="device.status !== 'error'"
|
||||
small
|
||||
:disabled="device.status === 'on'"
|
||||
@click="setPower(device, 1)">
|
||||
{{ $t('Panels.PowerControlPanel.On') }}
|
||||
</v-btn>
|
||||
<v-btn
|
||||
small
|
||||
v-if="device.status !== 'error'"
|
||||
small
|
||||
:disabled="device.status === 'off'"
|
||||
@click="setPower(device, 0)">
|
||||
{{ $t('Panels.PowerControlPanel.Off') }}
|
||||
|
||||
@@ -17,27 +17,27 @@
|
||||
:title="printerStateOutput"
|
||||
:collapsible="true"
|
||||
card-class="status-panel">
|
||||
<template v-slot:icon>
|
||||
<template #icon>
|
||||
<v-progress-circular
|
||||
v-if="['paused', 'printing'].includes(printer_state)"
|
||||
:rotate="-90"
|
||||
:size="30"
|
||||
:width="5"
|
||||
:value="printPercent"
|
||||
color="primary"
|
||||
class="mr-3"
|
||||
v-if="['paused', 'printing'].includes(printer_state)"></v-progress-circular>
|
||||
class="mr-3"></v-progress-circular>
|
||||
</template>
|
||||
<template v-slot:buttons>
|
||||
<template #buttons>
|
||||
<v-btn
|
||||
v-for="button in filteredToolbarButtons"
|
||||
v-bind:key="button.loadingName"
|
||||
:key="button.loadingName"
|
||||
:color="button.color"
|
||||
@click="button.click"
|
||||
:loading="loadings.includes(button.loadingName)"
|
||||
icon
|
||||
tile>
|
||||
tile
|
||||
@click="button.click">
|
||||
<v-tooltip top>
|
||||
<template v-slot:activator="{ on, attrs }">
|
||||
<template #activator="{ on, attrs }">
|
||||
<v-icon v-bind="attrs" v-on="on">{{ button.icon }}</v-icon>
|
||||
</template>
|
||||
<span>{{ button.text }}</span>
|
||||
@@ -47,10 +47,10 @@
|
||||
<v-card-text class="px-0 py-0 content">
|
||||
<template v-if="boolBigThumbnail">
|
||||
<v-img
|
||||
ref="bigThumbnail"
|
||||
:src="thumbnailBig"
|
||||
tabindex="-1"
|
||||
class="d-flex align-end statusPanel-big-thumbnail"
|
||||
ref="bigThumbnail"
|
||||
height="200"
|
||||
@focus="focusBigThumbnail"
|
||||
@blur="blurBigThumbnail">
|
||||
@@ -81,7 +81,7 @@
|
||||
</span>
|
||||
</v-col>
|
||||
<v-col class="col-auto py-2">
|
||||
<v-icon class="text--disabled cursor-pointer" @click="clearDisplayMessage" small>
|
||||
<v-icon class="text--disabled cursor-pointer" small @click="clearDisplayMessage">
|
||||
mdi-close-circle
|
||||
</v-icon>
|
||||
</v-col>
|
||||
@@ -100,10 +100,10 @@
|
||||
{{ current_filename }}
|
||||
</span>
|
||||
</v-col>
|
||||
<v-col class="pa-2 pl-0 col-auto" v-if="thumbnailSmall">
|
||||
<v-col v-if="thumbnailSmall" class="pa-2 pl-0 col-auto">
|
||||
<template v-if="thumbnailSmall && thumbnailBig">
|
||||
<v-tooltip top content-class="tooltip__content-opacity1">
|
||||
<template v-slot:activator="{ on, attrs }">
|
||||
<template #activator="{ on, attrs }">
|
||||
<vue-load-image class="d-flex">
|
||||
<img
|
||||
slot="image"
|
||||
@@ -163,8 +163,8 @@
|
||||
</v-col>
|
||||
<v-col class="col-3 pa-0">
|
||||
<v-tooltip top>
|
||||
<template v-slot:activator="{ on, attrs }">
|
||||
<div v-bind="attrs" v-on="on" class="text-center">
|
||||
<template #activator="{ on, attrs }">
|
||||
<div v-bind="attrs" class="text-center" v-on="on">
|
||||
<strong>{{ $t('Panels.StatusPanel.Z') }}</strong>
|
||||
<br />
|
||||
{{ positions.z }}
|
||||
@@ -182,7 +182,7 @@
|
||||
<v-col class="col-3 pa-0">
|
||||
<template v-if="live_velocity !== null">
|
||||
<v-tooltip top>
|
||||
<template v-slot:activator="{ on, attrs }">
|
||||
<template #activator="{ on, attrs }">
|
||||
<div v-bind="attrs" v-on="on">
|
||||
<strong>{{ $t('Panels.StatusPanel.Speed') }}</strong>
|
||||
<br />
|
||||
@@ -202,7 +202,7 @@
|
||||
</v-col>
|
||||
<v-col class="col-3 pa-0">
|
||||
<v-tooltip top>
|
||||
<template v-slot:activator="{ on, attrs }">
|
||||
<template #activator="{ on, attrs }">
|
||||
<div v-bind="attrs" v-on="on">
|
||||
<strong>{{ $t('Panels.StatusPanel.Flow') }}</strong>
|
||||
<br />
|
||||
@@ -219,7 +219,7 @@
|
||||
</v-col>
|
||||
<v-col class="col-3 pa-0">
|
||||
<v-tooltip top>
|
||||
<template v-slot:activator="{ on, attrs }">
|
||||
<template #activator="{ on, attrs }">
|
||||
<div v-bind="attrs" v-on="on">
|
||||
<strong>{{ $t('Panels.StatusPanel.Filament') }}</strong>
|
||||
<br />
|
||||
@@ -241,8 +241,8 @@
|
||||
</v-col>
|
||||
<v-col class="col-3 pa-0 text-center">
|
||||
<v-tooltip top>
|
||||
<template v-slot:activator="{ on, attrs }">
|
||||
<div v-bind="attrs" v-on="on" class="text-center">
|
||||
<template #activator="{ on, attrs }">
|
||||
<div v-bind="attrs" class="text-center" v-on="on">
|
||||
<strong>{{ $t('Panels.StatusPanel.Layer') }}</strong>
|
||||
<br />
|
||||
<span class="text-no-wrap">{{ current_layer }} of {{ max_layers }}</span>
|
||||
@@ -260,8 +260,8 @@
|
||||
<v-row class="text-center pt-5 pb-2 mb-0" align="center">
|
||||
<v-col class="col-3 pa-0">
|
||||
<v-tooltip top>
|
||||
<template v-slot:activator="{ on, attrs }">
|
||||
<div v-bind="attrs" v-on="on" class="text-center">
|
||||
<template #activator="{ on, attrs }">
|
||||
<div v-bind="attrs" class="text-center" v-on="on">
|
||||
<strong>{{ $t('Panels.StatusPanel.Estimate') }}</strong>
|
||||
<br />
|
||||
<span class="text-no-wrap">
|
||||
@@ -287,8 +287,8 @@
|
||||
</v-col>
|
||||
<v-col class="col-3 pa-0">
|
||||
<v-tooltip top>
|
||||
<template v-slot:activator="{ on, attrs }">
|
||||
<div v-bind="attrs" v-on="on" class="text-center">
|
||||
<template #activator="{ on, attrs }">
|
||||
<div v-bind="attrs" class="text-center" v-on="on">
|
||||
<strong>{{ $t('Panels.StatusPanel.Total') }}</strong>
|
||||
<br />
|
||||
<span class="text-no-wrap">
|
||||
|
||||
@@ -12,10 +12,10 @@
|
||||
</div>
|
||||
<div class="py-2 pl-0">
|
||||
<v-icon
|
||||
v-if="current_object !== null"
|
||||
class="text--disabled cursor-pointer"
|
||||
@click="openCancelObjectDialog(current_object)"
|
||||
small
|
||||
v-if="current_object !== null">
|
||||
@click="openCancelObjectDialog(current_object)">
|
||||
mdi-selection-remove
|
||||
</v-icon>
|
||||
</div>
|
||||
@@ -49,8 +49,8 @@
|
||||
<status-panel-exclude-object-dialog
|
||||
:show-dialog.sync="showDialogPass"
|
||||
:exclude-object-dialog-name.sync="excludeObjectDialogName"
|
||||
@update:name="updateExcludeObjectDialogName"
|
||||
:exclude-object-dialog-bool.sync="boolShowExcludeObjectDialog"
|
||||
@update:name="updateExcludeObjectDialogName"
|
||||
@update:bool="updateExcludeObjectDialogBool"></status-panel-exclude-object-dialog>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
@@ -8,7 +8,7 @@
|
||||
icon="mdi-selection-remove"
|
||||
card-class="exclude-object-dialog"
|
||||
:margin-bottom="false">
|
||||
<template v-slot:buttons>
|
||||
<template #buttons>
|
||||
<v-btn icon tile @click="hideDialog"><v-icon>mdi-close-thick</v-icon></v-btn>
|
||||
</template>
|
||||
<v-container>
|
||||
@@ -22,11 +22,11 @@
|
||||
<v-col class="col-12 col-sm-6 pt-0 pt-sm-3">
|
||||
<status-panel-exclude-object-dialog-list
|
||||
:exclude-object-dialog-name.sync="excludeObjectDialogName"
|
||||
:exclude-object-dialog-bool.sync="excludeObjectDialogBool"
|
||||
:hover-name="hoverName"
|
||||
@update:name="updateExcludeObjectDialogName"
|
||||
@update:hoverName="updateHoverObjectDialogName"
|
||||
:exclude-object-dialog-bool.sync="excludeObjectDialogBool"
|
||||
@update:bool="updateExcludeObjectDialogBool"
|
||||
:hover-name="hoverName"></status-panel-exclude-object-dialog-list>
|
||||
@update:bool="updateExcludeObjectDialogBool"></status-panel-exclude-object-dialog-list>
|
||||
</v-col>
|
||||
</v-row>
|
||||
</v-container>
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
<div>
|
||||
<template v-for="object in printing_objects">
|
||||
<v-row
|
||||
v-bind:key="'div_' + object.name"
|
||||
:key="'div_' + object.name"
|
||||
class="py-3 d-flex"
|
||||
@click="mouseOverObject(object.name)"
|
||||
@mouseover="mouseOverObject(object.name)"
|
||||
@@ -17,19 +17,19 @@
|
||||
{{ object.name }}
|
||||
</v-col>
|
||||
<v-col class="col-auto py-2">
|
||||
<v-chip pill small class="text--disabled" v-if="excluded_objects.includes(object.name)">
|
||||
<v-chip v-if="excluded_objects.includes(object.name)" pill small class="text--disabled">
|
||||
{{ $t('Panels.StatusPanel.ExcludeObject.Excluded') }}
|
||||
</v-chip>
|
||||
<v-icon
|
||||
v-else
|
||||
class="text--disabled cursor-pointer"
|
||||
@click="openExcludeObjectDialog(object.name)"
|
||||
small
|
||||
v-else>
|
||||
@click="openExcludeObjectDialog(object.name)">
|
||||
mdi-close-circle
|
||||
</v-icon>
|
||||
</v-col>
|
||||
</v-row>
|
||||
<v-divider v-bind:key="'divider_' + object.name"></v-divider>
|
||||
<v-divider :key="'divider_' + object.name"></v-divider>
|
||||
</template>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
@@ -61,7 +61,7 @@ svg {
|
||||
<g>
|
||||
<line
|
||||
v-for="x in xStripes"
|
||||
v-bind:key="'xLines' + x"
|
||||
:key="'xLines' + x"
|
||||
:x1="convertX(x)"
|
||||
:x2="convertX(x)"
|
||||
:y1="convertY(stepperYmin)"
|
||||
@@ -71,7 +71,7 @@ svg {
|
||||
stroke-width="1" />
|
||||
<line
|
||||
v-for="y in yStripes"
|
||||
v-bind:key="'yLines' + y"
|
||||
:key="'yLines' + y"
|
||||
:x1="convertX(stepperXmin)"
|
||||
:x2="convertX(stepperXmax)"
|
||||
:y1="convertY(y)"
|
||||
@@ -81,7 +81,7 @@ svg {
|
||||
stroke-width="1" />
|
||||
</g>
|
||||
|
||||
<g v-for="(object, index) in printing_objects" v-bind:key="index">
|
||||
<g v-for="(object, index) in printing_objects" :key="index">
|
||||
<polygon
|
||||
:points="object.polygon.map((point) => convertX(point[0]) + ',' + convertY(point[1])).join(' ')"
|
||||
style="cursor: pointer"
|
||||
|
||||
@@ -33,16 +33,16 @@
|
||||
style="max-width: 300px"></v-text-field>
|
||||
<v-spacer></v-spacer>
|
||||
<v-btn
|
||||
v-if="this.directoryPermissions.includes('w')"
|
||||
@click="createDirectory"
|
||||
v-if="directoryPermissions.includes('w')"
|
||||
:title="$t('Timelapse.CreateNewDirectory')"
|
||||
class="px-2 minwidth-0 ml-3">
|
||||
class="px-2 minwidth-0 ml-3"
|
||||
@click="createDirectory">
|
||||
<v-icon>mdi-folder-plus</v-icon>
|
||||
</v-btn>
|
||||
<v-btn
|
||||
@click="refreshFileList"
|
||||
:title="$t('Timelapse.RefreshCurrentDirectory')"
|
||||
class="px-2 minwidth-0 ml-3">
|
||||
class="px-2 minwidth-0 ml-3"
|
||||
@click="refreshFileList">
|
||||
<v-icon>mdi-refresh</v-icon>
|
||||
</v-btn>
|
||||
</v-col>
|
||||
@@ -53,23 +53,23 @@
|
||||
<v-col class="col-12 py-2 d-flex align-center">
|
||||
<span>
|
||||
<b>{{ $t('Timelapse.CurrentPath') }}:</b>
|
||||
{{ this.currentPath !== 'timelapse' ? '/' + this.currentPath.substring(10) : '/' }}
|
||||
{{ currentPath !== 'timelapse' ? '/' + currentPath.substring(10) : '/' }}
|
||||
</span>
|
||||
<v-spacer></v-spacer>
|
||||
<template v-if="this.disk_usage !== null">
|
||||
<template v-if="disk_usage !== null">
|
||||
<v-tooltip top>
|
||||
<template v-slot:activator="{ on, attrs }">
|
||||
<template #activator="{ on, attrs }">
|
||||
<span v-bind="attrs" v-on="on">
|
||||
<b>{{ $t('Timelapse.FreeDisk') }}:</b>
|
||||
{{ formatFilesize(disk_usage.free) }}
|
||||
</span>
|
||||
</template>
|
||||
<span>
|
||||
{{ $t('Timelapse.Used') }}: {{ formatFilesize(this.disk_usage.used) }}
|
||||
{{ $t('Timelapse.Used') }}: {{ formatFilesize(disk_usage.used) }}
|
||||
<br />
|
||||
{{ $t('Timelapse.Free') }}: {{ formatFilesize(this.disk_usage.free) }}
|
||||
{{ $t('Timelapse.Free') }}: {{ formatFilesize(disk_usage.free) }}
|
||||
<br />
|
||||
{{ $t('Timelapse.Total') }}: {{ formatFilesize(this.disk_usage.total) }}
|
||||
{{ $t('Timelapse.Total') }}: {{ formatFilesize(disk_usage.total) }}
|
||||
</span>
|
||||
</v-tooltip>
|
||||
</template>
|
||||
@@ -95,14 +95,14 @@
|
||||
:custom-filter="advancedSearch"
|
||||
mobile-breakpoint="0">
|
||||
<template slot="items">
|
||||
<td v-for="header in headers" v-bind:key="header.value">{{ header.text }}</td>
|
||||
<td v-for="header in headers" :key="header.value">{{ header.text }}</td>
|
||||
</template>
|
||||
|
||||
<template #no-data>
|
||||
<div class="text-center font-italic">{{ $t('Timelapse.Empty') }}</div>
|
||||
</template>
|
||||
|
||||
<template slot="body.prepend" v-if="currentPath !== 'timelapse'">
|
||||
<template v-if="currentPath !== 'timelapse'" slot="body.prepend">
|
||||
<tr class="file-list-cursor" @click="clickRowGoBack">
|
||||
<td class="pr-0 text-center" style="width: 32px"><v-icon>mdi-folder-upload</v-icon></td>
|
||||
<td class=" " :colspan="headers.length">..</td>
|
||||
@@ -113,9 +113,9 @@
|
||||
<tr
|
||||
:key="`${index} ${item.filename}`"
|
||||
v-longpress:600="(e) => showContextMenu(e, item)"
|
||||
class="file-list-cursor user-select-none"
|
||||
@contextmenu="showContextMenu($event, item)"
|
||||
@click="clickRow(item)"
|
||||
class="file-list-cursor user-select-none">
|
||||
@click="clickRow(item)">
|
||||
<td class="pr-0 text-center" style="width: 32px">
|
||||
<template v-if="item.isDirectory">
|
||||
<v-icon>mdi-folder</v-icon>
|
||||
@@ -128,7 +128,7 @@
|
||||
v-if="!item.isDirectory && getThumbnail(item)"
|
||||
top
|
||||
content-class="tooltip__content-opacity1">
|
||||
<template v-slot:activator="{ on, attrs }">
|
||||
<template #activator="{ on, attrs }">
|
||||
<vue-load-image>
|
||||
<img
|
||||
slot="image"
|
||||
@@ -153,11 +153,11 @@
|
||||
</td>
|
||||
<td class=" ">{{ item.filename }}</td>
|
||||
<td
|
||||
class="text-no-wrap text-right"
|
||||
v-if="headers.find((header) => header.value === 'size').visible">
|
||||
v-if="headers.find((header) => header.value === 'size').visible"
|
||||
class="text-no-wrap text-right">
|
||||
{{ item.isDirectory ? '--' : formatFilesize(item.size) }}
|
||||
</td>
|
||||
<td class="text-right" v-if="headers.find((header) => header.value === 'modified').visible">
|
||||
<td v-if="headers.find((header) => header.value === 'modified').visible" class="text-right">
|
||||
{{ formatDate(item.modified) }}
|
||||
</td>
|
||||
</tr>
|
||||
@@ -166,31 +166,31 @@
|
||||
</panel>
|
||||
<v-menu v-model="contextMenu.shown" :position-x="contextMenu.x" :position-y="contextMenu.y" absolute offset-y>
|
||||
<v-list>
|
||||
<v-list-item @click="downloadFile(contextMenu.item.filename)" v-if="!contextMenu.item.isDirectory">
|
||||
<v-list-item v-if="!contextMenu.item.isDirectory" @click="downloadFile(contextMenu.item.filename)">
|
||||
<v-icon left>mdi-cloud-download</v-icon>
|
||||
{{ $t('Timelapse.Download') }}
|
||||
</v-list-item>
|
||||
<v-list-item
|
||||
@click="renameDirectory(contextMenu.item)"
|
||||
v-if="contextMenu.item.isDirectory && contextMenu.item.permissions.includes('w')">
|
||||
v-if="contextMenu.item.isDirectory && contextMenu.item.permissions.includes('w')"
|
||||
@click="renameDirectory(contextMenu.item)">
|
||||
<v-icon left>mdi-rename-box</v-icon>
|
||||
{{ $t('Timelapse.Rename') }}
|
||||
</v-list-item>
|
||||
<v-list-item
|
||||
@click="renameFile(contextMenu.item)"
|
||||
v-if="!contextMenu.item.isDirectory && contextMenu.item.permissions.includes('w')">
|
||||
v-if="!contextMenu.item.isDirectory && contextMenu.item.permissions.includes('w')"
|
||||
@click="renameFile(contextMenu.item)">
|
||||
<v-icon left>mdi-rename-box</v-icon>
|
||||
{{ $t('Timelapse.Rename') }}
|
||||
</v-list-item>
|
||||
<v-list-item
|
||||
@click="removeFile"
|
||||
v-if="!contextMenu.item.isDirectory && contextMenu.item.permissions.includes('w')">
|
||||
v-if="!contextMenu.item.isDirectory && contextMenu.item.permissions.includes('w')"
|
||||
@click="removeFile">
|
||||
<v-icon left>mdi-delete</v-icon>
|
||||
{{ $t('Timelapse.Delete') }}
|
||||
</v-list-item>
|
||||
<v-list-item
|
||||
@click="deleteDirectory(contextMenu.item)"
|
||||
v-if="contextMenu.item.isDirectory && contextMenu.item.permissions.includes('w')">
|
||||
v-if="contextMenu.item.isDirectory && contextMenu.item.permissions.includes('w')"
|
||||
@click="deleteDirectory(contextMenu.item)">
|
||||
<v-icon left>mdi-delete</v-icon>
|
||||
{{ $t('Timelapse.Delete') }}
|
||||
</v-list-item>
|
||||
@@ -201,16 +201,16 @@
|
||||
:title="$t('Timelapse.RenameFile')"
|
||||
card-class="gcode-files-rename-file-dialog"
|
||||
:margin-bottom="false">
|
||||
<template v-slot:buttons>
|
||||
<template #buttons>
|
||||
<v-btn icon tile @click="dialogRenameFile.show = false"><v-icon>mdi-close-thick</v-icon></v-btn>
|
||||
</template>
|
||||
<v-card-text>
|
||||
<v-text-field
|
||||
ref="inputFieldRenameFile"
|
||||
v-model="dialogRenameFile.newName"
|
||||
:label="$t('Timelapse.Name')"
|
||||
ref="inputFieldRenameFile"
|
||||
@keypress.enter="renameFileAction"
|
||||
required></v-text-field>
|
||||
required
|
||||
@keypress.enter="renameFileAction"></v-text-field>
|
||||
</v-card-text>
|
||||
<v-card-actions>
|
||||
<v-spacer></v-spacer>
|
||||
@@ -224,19 +224,19 @@
|
||||
:title="$t('Timelapse.NewDirectory')"
|
||||
card-class="gcode-files-new-directory-dialog"
|
||||
:margin-bottom="false">
|
||||
<template v-slot:buttons>
|
||||
<template #buttons>
|
||||
<v-btn icon tile @click="dialogCreateDirectory.show = false">
|
||||
<v-icon>mdi-close-thick</v-icon>
|
||||
</v-btn>
|
||||
</template>
|
||||
<v-card-text>
|
||||
<v-text-field
|
||||
v-model="dialogCreateDirectory.name"
|
||||
ref="inputFieldCreateDirectory"
|
||||
@keypress.enter="createDirectoryAction"
|
||||
v-model="dialogCreateDirectory.name"
|
||||
:label="$t('Timelapse.Name')"
|
||||
:rules="input_rules"
|
||||
required></v-text-field>
|
||||
required
|
||||
@keypress.enter="createDirectoryAction"></v-text-field>
|
||||
</v-card-text>
|
||||
<v-card-actions>
|
||||
<v-spacer></v-spacer>
|
||||
@@ -252,18 +252,18 @@
|
||||
:title="$t('Timelapse.RenameDirectory')"
|
||||
card-class="gcode-files-rename-directory-dialog"
|
||||
:margin-bottom="false">
|
||||
<template v-slot:buttons>
|
||||
<template #buttons>
|
||||
<v-btn icon tile @click="dialogRenameDirectory.show = false">
|
||||
<v-icon>mdi-close-thick</v-icon>
|
||||
</v-btn>
|
||||
</template>
|
||||
<v-card-text>
|
||||
<v-text-field
|
||||
v-model="dialogRenameDirectory.newName"
|
||||
ref="inputFieldRenameDirectory"
|
||||
v-model="dialogRenameDirectory.newName"
|
||||
:label="$t('Timelapse.Name')"
|
||||
@keyup.enter="renameDirectoryAction"
|
||||
required></v-text-field>
|
||||
required
|
||||
@keyup.enter="renameDirectoryAction"></v-text-field>
|
||||
</v-card-text>
|
||||
<v-card-actions>
|
||||
<v-spacer></v-spacer>
|
||||
@@ -279,7 +279,7 @@
|
||||
:title="$t('Timelapse.DeleteDirectory')"
|
||||
card-class="gcode-files-delete-directory-dialog"
|
||||
:margin-bottom="false">
|
||||
<template v-slot:buttons>
|
||||
<template #buttons>
|
||||
<v-btn icon tile @click="dialogDeleteDirectory.show = false">
|
||||
<v-icon>mdi-close-thick</v-icon>
|
||||
</v-btn>
|
||||
@@ -304,18 +304,15 @@
|
||||
icon="mdi-file-video"
|
||||
card-class="timelapse-video-dialog"
|
||||
:margin-bottom="false">
|
||||
<template v-slot:buttons>
|
||||
<template #buttons>
|
||||
<v-btn icon tile @click="boolVideoDialog = false"><v-icon>mdi-close-thick</v-icon></v-btn>
|
||||
</template>
|
||||
<v-card-text class="">
|
||||
<v-row>
|
||||
<v-col class="pb-0">
|
||||
<video
|
||||
:src="this.apiUrl + '/server/files/' + videoDialogFilename"
|
||||
controls
|
||||
style="width: 100%">
|
||||
<video :src="apiUrl + '/server/files/' + videoDialogFilename" controls style="width: 100%">
|
||||
Sorry, your browser doesn't support embedded videos, but don't worry, you can
|
||||
<a :href="this.apiUrl + '/server/files/' + videoDialogFilename">download it</a>
|
||||
<a :href="apiUrl + '/server/files/' + videoDialogFilename">download it</a>
|
||||
and watch it with your favorite video player!
|
||||
</video>
|
||||
</v-col>
|
||||
@@ -325,7 +322,7 @@
|
||||
<v-btn
|
||||
text
|
||||
color="primary"
|
||||
:href="this.apiUrl + '/server/files/' + videoDialogFilename"
|
||||
:href="apiUrl + '/server/files/' + videoDialogFilename"
|
||||
target="_blank">
|
||||
{{ $t('Timelapse.Download') }}
|
||||
</v-btn>
|
||||
|
||||
@@ -34,27 +34,27 @@
|
||||
</v-card-text>
|
||||
</v-col>
|
||||
<v-col
|
||||
v-if="framesCount > 0"
|
||||
class="col-12 col-sm-6 col-md-12 pt-3 pt-md-0 text--secondary"
|
||||
align-self="center"
|
||||
v-if="framesCount > 0">
|
||||
align-self="center">
|
||||
<v-card-text :class="framesCount ? 'pt-0' : ''">
|
||||
<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">
|
||||
<settings-row :title="$t('Timelapse.EstimatedLength')" :dynamic-slot-width="true">
|
||||
{{ estimatedVideoLength }}
|
||||
</settings-row>
|
||||
</template>
|
||||
<template v-if="['printing', 'paused'].includes(printer_state)">
|
||||
<v-divider class="my-2"></v-divider>
|
||||
<settings-row :title="$t('Timelapse.Enabled')" :dynamicSlotWidth="true">
|
||||
<settings-row :title="$t('Timelapse.Enabled')" :dynamic-slot-width="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-divider v-if="framesCount > 0" class="my-2"></v-divider>
|
||||
<settings-row :title="$t('Timelapse.Autorender')" :dynamic-slot-width="true">
|
||||
<v-switch v-model="autorender" hide-details class="mt-0"></v-switch>
|
||||
</settings-row>
|
||||
</template>
|
||||
@@ -73,8 +73,8 @@
|
||||
<v-btn
|
||||
text
|
||||
color="primary"
|
||||
@click="saveFrames"
|
||||
:loading="loadings.includes('timelapse_saveframes')">
|
||||
:loading="loadings.includes('timelapse_saveframes')"
|
||||
@click="saveFrames">
|
||||
{{ $t('Timelapse.SaveFrames') }}
|
||||
</v-btn>
|
||||
</v-col>
|
||||
@@ -82,7 +82,7 @@
|
||||
</template>
|
||||
</v-card-text>
|
||||
</v-col>
|
||||
<v-col class="col-12 text--secondary" align-self="center" v-else>
|
||||
<v-col v-else class="col-12 text--secondary" align-self="center">
|
||||
<v-card-text class="pt-0 pt-md-3">
|
||||
<p class="text-center my-0 font-italic">{{ $t('Timelapse.NoActiveTimelapse') }}</p>
|
||||
</v-card-text>
|
||||
@@ -95,16 +95,16 @@
|
||||
icon="mdi-text-box-search-outline"
|
||||
card-class="timelapse-rendersettings-dialog"
|
||||
:margin-bottom="false">
|
||||
<template v-slot:buttons>
|
||||
<template #buttons>
|
||||
<v-btn icon @click="boolDialogRendersettings = false"><v-icon>mdi-close-thick</v-icon></v-btn>
|
||||
</template>
|
||||
<v-card-text class="">
|
||||
<v-row>
|
||||
<v-col class="col-4">
|
||||
<v-select
|
||||
v-model="variable_fps"
|
||||
:label="$t('Timelapse.Type')"
|
||||
:items="framerateTypeOptions"
|
||||
v-model="variable_fps"
|
||||
outlined
|
||||
dense
|
||||
hide-details
|
||||
@@ -113,16 +113,16 @@
|
||||
<v-col class="col-4">
|
||||
<template v-if="variable_fps">
|
||||
<v-text-field
|
||||
:label="$t('Timelapse.MinFramerate')"
|
||||
v-model="variable_fps_min"
|
||||
:label="$t('Timelapse.MinFramerate')"
|
||||
type="number"
|
||||
outlined
|
||||
dense
|
||||
hide-details
|
||||
hide-spin-buttons></v-text-field>
|
||||
<v-text-field
|
||||
:label="$t('Timelapse.MaxFramerate')"
|
||||
v-model="variable_fps_max"
|
||||
:label="$t('Timelapse.MaxFramerate')"
|
||||
type="number"
|
||||
outlined
|
||||
dense
|
||||
@@ -130,8 +130,8 @@
|
||||
hide-spin-buttons
|
||||
class="mt-3"></v-text-field>
|
||||
<v-text-field
|
||||
:label="$t('Timelapse.Targetlength')"
|
||||
v-model="targetlength"
|
||||
:label="$t('Timelapse.Targetlength')"
|
||||
type="number"
|
||||
outlined
|
||||
dense
|
||||
@@ -141,8 +141,8 @@
|
||||
</template>
|
||||
<template v-else>
|
||||
<v-text-field
|
||||
:label="$t('Timelapse.Framerate')"
|
||||
v-model="output_framerate"
|
||||
:label="$t('Timelapse.Framerate')"
|
||||
type="number"
|
||||
outlined
|
||||
dense
|
||||
@@ -150,8 +150,8 @@
|
||||
hide-spin-buttons></v-text-field>
|
||||
</template>
|
||||
<v-text-field
|
||||
:label="$t('Timelapse.DuplicateLastframe')"
|
||||
v-model="duplicatelastframe"
|
||||
:label="$t('Timelapse.DuplicateLastframe')"
|
||||
type="number"
|
||||
outlined
|
||||
dense
|
||||
@@ -162,8 +162,8 @@
|
||||
<v-col class="col-4">
|
||||
<template v-if="variable_fps">
|
||||
<v-text-field
|
||||
:label="$t('Timelapse.TargetFps')"
|
||||
v-model="variableTargetFps"
|
||||
:label="$t('Timelapse.TargetFps')"
|
||||
type="number"
|
||||
outlined
|
||||
dense
|
||||
@@ -172,8 +172,8 @@
|
||||
class="mb-3"></v-text-field>
|
||||
</template>
|
||||
<v-text-field
|
||||
:label="$t('Timelapse.EstimatedLength')"
|
||||
v-model="estimatedVideoLength"
|
||||
:label="$t('Timelapse.EstimatedLength')"
|
||||
outlined
|
||||
dense
|
||||
hide-details
|
||||
|
||||
@@ -28,24 +28,24 @@
|
||||
:title="$t('Panels.ToolsPanel.Headline')"
|
||||
:collapsible="true"
|
||||
card-class="tools-panel">
|
||||
<template v-slot:buttons>
|
||||
<v-menu :offset-y="true" title="Preheat" v-if="presets.length">
|
||||
<template v-slot:activator="{ on, attrs }">
|
||||
<template #buttons>
|
||||
<v-menu v-if="presets.length" :offset-y="true" title="Preheat">
|
||||
<template #activator="{ on, attrs }">
|
||||
<v-btn
|
||||
text
|
||||
tile
|
||||
color="primary"
|
||||
v-bind="attrs"
|
||||
v-on="on"
|
||||
:disabled="['printing', 'paused'].includes(printer_state)"
|
||||
class="pa-1">
|
||||
class="pa-1"
|
||||
v-on="on">
|
||||
<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>
|
||||
<v-list dense class="py-0">
|
||||
<v-list-item v-for="preset of presets" v-bind:key="preset.index" link @click="preheat(preset)">
|
||||
<v-list-item v-for="preset of presets" :key="preset.index" link @click="preheat(preset)">
|
||||
<v-list-item-icon class="mr-0">
|
||||
<v-icon small>mdi-fire</v-icon>
|
||||
</v-list-item-icon>
|
||||
@@ -69,31 +69,31 @@
|
||||
</v-list>
|
||||
</v-menu>
|
||||
<v-btn
|
||||
v-if="presets.length === 0"
|
||||
:icon="$vuetify.breakpoint.smAndDown"
|
||||
:text="$vuetify.breakpoint.mdAndUp"
|
||||
tile
|
||||
@click="cooldown()"
|
||||
v-if="presets.length === 0"
|
||||
color="primary">
|
||||
color="primary"
|
||||
@click="cooldown()">
|
||||
<v-icon small>mdi-snowflake</v-icon>
|
||||
<span class="d-none ml-1 d-md-inline">{{ $t('Panels.ToolsPanel.Cooldown') }}</span>
|
||||
</v-btn>
|
||||
<v-menu :offset-y="true" :close-on-content-click="false" :title="$t('Panels.ToolsPanel.SetupTemperatures')">
|
||||
<template v-slot:activator="{ on, attrs }">
|
||||
<template #activator="{ on, attrs }">
|
||||
<v-btn icon tile v-bind="attrs" v-on="on"><v-icon small>mdi-cog</v-icon></v-btn>
|
||||
</template>
|
||||
<v-list>
|
||||
<v-list-item class="minHeight36">
|
||||
<v-checkbox
|
||||
class="mt-0"
|
||||
v-model="boolTempchart"
|
||||
class="mt-0"
|
||||
hide-details
|
||||
:label="$t('Panels.ToolsPanel.ShowChart')"></v-checkbox>
|
||||
</v-list-item>
|
||||
<v-list-item class="minHeight36">
|
||||
<v-checkbox
|
||||
class="mt-0"
|
||||
v-model="autoscaleTempchart"
|
||||
class="mt-0"
|
||||
hide-details
|
||||
:label="$t('Panels.ToolsPanel.AutoscaleChart')"></v-checkbox>
|
||||
</v-list-item>
|
||||
@@ -107,8 +107,8 @@
|
||||
{{ $t('Panels.ToolsPanel.Name') }}
|
||||
</v-col>
|
||||
<v-col
|
||||
class="py-2 text-center flex-grow-0 font-weight-bold d-none d-md-block"
|
||||
v-if="boolTempchart"
|
||||
class="py-2 text-center flex-grow-0 font-weight-bold d-none d-md-block"
|
||||
style="min-width: 75px">
|
||||
{{ $t('Panels.ToolsPanel.Color') }}
|
||||
</v-col>
|
||||
@@ -118,7 +118,7 @@
|
||||
<v-col class="py-2 text-center font-weight-bold">{{ $t('Panels.ToolsPanel.Current') }}</v-col>
|
||||
<v-col class="py-2 pr-8 text-center font-weight-bold">{{ $t('Panels.ToolsPanel.Target') }}</v-col>
|
||||
</v-row>
|
||||
<div v-for="(heater, index) in heaters" v-bind:key="index">
|
||||
<div v-for="(heater, index) in heaters" :key="index">
|
||||
<v-divider class="my-2"></v-divider>
|
||||
<v-row align="center">
|
||||
<v-col class="pl-8 pr-0 flex-grow-0 py-2 colHeaterIcons">
|
||||
@@ -130,8 +130,8 @@
|
||||
</span>
|
||||
</v-col>
|
||||
<v-col
|
||||
class="py-2 flex-grow-0 text-center d-none d-md-block"
|
||||
v-if="boolTempchart"
|
||||
class="py-2 flex-grow-0 text-center d-none d-md-block"
|
||||
style="min-width: 75px">
|
||||
<div
|
||||
:style="'background-color: ' + heater.chartColor + 'cc;'"
|
||||
@@ -140,7 +140,7 @@
|
||||
</v-col>
|
||||
<v-col class="py-2 text-center d-none d-md-block">
|
||||
<v-tooltip top>
|
||||
<template v-slot:activator="{ on, attrs }">
|
||||
<template #activator="{ on, attrs }">
|
||||
<small v-bind="attrs" v-on="on">
|
||||
{{ heater.target > 0 ? heater.power + '%' : 'off' }}
|
||||
</small>
|
||||
@@ -150,7 +150,7 @@
|
||||
</v-col>
|
||||
<v-col class="py-2 text-center">
|
||||
<span class="d-block">{{ heater.temperature.toFixed(1) }}°C</span>
|
||||
<div v-for="(values, key) of heater.additionSensors" v-bind:key="key">
|
||||
<div v-for="(values, key) of heater.additionSensors" :key="key">
|
||||
<span v-if="values.bool" class="d-block">
|
||||
<small>{{ values.value }} {{ values.unit }}</small>
|
||||
</span>
|
||||
@@ -168,7 +168,7 @@
|
||||
</v-col>
|
||||
</v-row>
|
||||
</div>
|
||||
<div v-for="(fan, index) in temperatureFans" v-bind:key="index + 99">
|
||||
<div v-for="(fan, index) in temperatureFans" :key="index + 99">
|
||||
<v-divider class="my-2"></v-divider>
|
||||
<v-row align="center">
|
||||
<v-col class="flex-grow-0 py-2 pl-8 pr-0 colHeaterIcons">
|
||||
@@ -182,8 +182,8 @@
|
||||
<span style="cursor: pointer" @click="openHeater(fan)">{{ convertName(fan.name) }}</span>
|
||||
</v-col>
|
||||
<v-col
|
||||
class="py-2 flex-grow-0 text-center d-none d-md-block"
|
||||
v-if="boolTempchart"
|
||||
class="py-2 flex-grow-0 text-center d-none d-md-block"
|
||||
style="min-width: 75px">
|
||||
<div
|
||||
:style="'background-color: ' + fan.chartColor + 'cc;'"
|
||||
@@ -192,7 +192,7 @@
|
||||
</v-col>
|
||||
<v-col class="py-2 text-center d-none d-md-block">
|
||||
<v-tooltip top>
|
||||
<template v-slot:activator="{ on, attrs }">
|
||||
<template #activator="{ on, attrs }">
|
||||
<small class="d-block" v-bind="attrs" v-on="on">
|
||||
{{
|
||||
fan.target > 0 && fan.speed > 0
|
||||
@@ -208,7 +208,7 @@
|
||||
</v-col>
|
||||
<v-col class="py-2 text-center">
|
||||
<span class="d-block">{{ fan.temperature.toFixed(1) }}°C</span>
|
||||
<div v-for="(values, key) of fan.additionSensors" v-bind:key="key">
|
||||
<div v-for="(values, key) of fan.additionSensors" :key="key">
|
||||
<span v-if="values.bool" class="d-block">
|
||||
<small>{{ values.value }} {{ values.unit }}</small>
|
||||
</span>
|
||||
@@ -231,7 +231,7 @@
|
||||
</v-col>
|
||||
</v-row>
|
||||
</div>
|
||||
<div v-for="(sensor, index) in temperatureSensors" v-bind:key="index + 999">
|
||||
<div v-for="(sensor, index) in temperatureSensors" :key="index + 999">
|
||||
<v-divider class="my-2"></v-divider>
|
||||
<v-row align="center">
|
||||
<v-col class="flex-grow-0 py-2 pl-8 pr-0 colHeaterIcons">
|
||||
@@ -256,8 +256,8 @@
|
||||
</span>
|
||||
</v-col>
|
||||
<v-col
|
||||
class="py-2 flex-grow-0 text-center d-none d-md-block"
|
||||
v-if="boolTempchart"
|
||||
class="py-2 flex-grow-0 text-center d-none d-md-block"
|
||||
style="min-width: 75px">
|
||||
<div
|
||||
:style="'background-color: ' + sensor.chartColor + 'CC;'"
|
||||
@@ -267,7 +267,7 @@
|
||||
<v-col class="py-2 d-none d-md-block"><span> </span></v-col>
|
||||
<v-col class="py-2 text-center">
|
||||
<v-tooltip top>
|
||||
<template v-slot:activator="{ on, attrs }">
|
||||
<template #activator="{ on, attrs }">
|
||||
<span style="cursor: default" class="d-block px-0" v-bind="attrs" v-on="on">
|
||||
{{ sensor.temperature.toFixed(1) }}°C
|
||||
</span>
|
||||
@@ -278,7 +278,7 @@
|
||||
{{ $t('Panels.ToolsPanel.Min') }}: {{ sensor.measured_min_temp }}°C
|
||||
</span>
|
||||
</v-tooltip>
|
||||
<div v-for="(values, key) of sensor.additionSensors" v-bind:key="key">
|
||||
<div v-for="(values, key) of sensor.additionSensors" :key="key">
|
||||
<span v-if="values.bool" class="d-block">
|
||||
<small>{{ values.value }} {{ values.unit }}</small>
|
||||
</span>
|
||||
@@ -287,7 +287,7 @@
|
||||
<v-col class="text-center py-2 pr-8 vertical_align_center"><span> </span></v-col>
|
||||
</v-row>
|
||||
</div>
|
||||
<v-divider class="my-2" v-if="boolTempchart"></v-divider>
|
||||
<v-divider v-if="boolTempchart" class="my-2"></v-divider>
|
||||
<v-row v-if="boolTempchart">
|
||||
<v-col class="py-0 px-3">
|
||||
<temp-chart></temp-chart>
|
||||
@@ -301,11 +301,11 @@
|
||||
:icon="'mdi-' + editHeater.icon"
|
||||
card-class="tools-edit-heater-dialog"
|
||||
:margin-bottom="false">
|
||||
<template v-slot:buttons>
|
||||
<template #buttons>
|
||||
<v-btn icon tile @click="editHeater.bool = false"><v-icon>mdi-close-thick</v-icon></v-btn>
|
||||
</template>
|
||||
<v-card-text class="pt-6">
|
||||
<v-row v-for="dataset in editHeater.chartSeries" v-bind:key="dataset">
|
||||
<v-row v-for="dataset in editHeater.chartSeries" :key="dataset">
|
||||
<v-col class="col-12 py-1">
|
||||
<v-checkbox
|
||||
v-model="editHeater['bool' + dataset.charAt(0).toUpperCase() + dataset.slice(1)]"
|
||||
@@ -323,7 +323,7 @@
|
||||
@change="setVisible(dataset)"></v-checkbox>
|
||||
</v-col>
|
||||
</v-row>
|
||||
<v-row v-for="key in Object.keys(editHeater.additionSensors)" v-bind:key="key">
|
||||
<v-row v-for="key in Object.keys(editHeater.additionSensors)" :key="key">
|
||||
<v-col class="col-12 py-1">
|
||||
<v-checkbox
|
||||
v-model="editHeater.additionSensors[key]['bool']"
|
||||
@@ -339,8 +339,8 @@
|
||||
hide-mode-switch
|
||||
mode="hexa"
|
||||
:value="editHeater.color"
|
||||
@update:color="setChartColor"
|
||||
class="mx-auto"></v-color-picker>
|
||||
class="mx-auto"
|
||||
@update:color="setChartColor"></v-color-picker>
|
||||
</v-col>
|
||||
</v-row>
|
||||
</v-card-text>
|
||||
|
||||
@@ -5,13 +5,13 @@
|
||||
v-if="socketIsConnected"
|
||||
icon="mdi-webcam"
|
||||
:title="$t('Panels.WebcamPanel.Headline')"
|
||||
:collapsible="this.$route.fullPath !== '/cam'"
|
||||
:collapsible="$route.fullPath !== '/cam'"
|
||||
card-class="webcam-panel">
|
||||
<template v-slot:buttons v-if="webcams.length > 1">
|
||||
<template v-if="webcams.length > 1" #buttons>
|
||||
<v-menu :offset-y="true" title="Webcam">
|
||||
<template v-slot:activator="{ on, attrs }">
|
||||
<template #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>
|
||||
<v-icon v-if="'icon' in currentCam" small class="mr-2">{{ currentCam.icon }}</v-icon>
|
||||
<span class="d-none d-md-block">{{ 'name' in currentCam ? currentCam.name : 'unknown' }}</span>
|
||||
<v-icon small>mdi-menu-down</v-icon>
|
||||
</v-btn>
|
||||
@@ -25,11 +25,7 @@
|
||||
<v-list-item-title>{{ $t('Panels.WebcamPanel.All') }}</v-list-item-title>
|
||||
</v-list-item-content>
|
||||
</v-list-item>
|
||||
<v-list-item
|
||||
v-for="webcam of webcams"
|
||||
v-bind:key="webcam.id"
|
||||
link
|
||||
@click="currentCamId = webcam.id">
|
||||
<v-list-item v-for="webcam of webcams" :key="webcam.id" link @click="currentCamId = webcam.id">
|
||||
<v-list-item-icon class="mr-0">
|
||||
<v-icon small>{{ webcam.icon }}</v-icon>
|
||||
</v-list-item-icon>
|
||||
@@ -43,20 +39,20 @@
|
||||
<v-card-text class="px-0 py-0 content d-inline-block">
|
||||
<v-row>
|
||||
<v-col class="pb-0" style="position: relative">
|
||||
<template v-if="this.currentCam.service === 'grid'">
|
||||
<webcam-grid :webcams="this.webcams"></webcam-grid>
|
||||
<template v-if="currentCam.service === 'grid'">
|
||||
<webcam-grid :webcams="webcams"></webcam-grid>
|
||||
</template>
|
||||
<template v-else-if="this.currentCam.service === 'mjpegstreamer'">
|
||||
<webcam-mjpegstreamer :cam-settings="this.currentCam"></webcam-mjpegstreamer>
|
||||
<template v-else-if="currentCam.service === 'mjpegstreamer'">
|
||||
<webcam-mjpegstreamer :cam-settings="currentCam"></webcam-mjpegstreamer>
|
||||
</template>
|
||||
<template v-else-if="this.currentCam.service === 'mjpegstreamer-adaptive'">
|
||||
<webcam-mjpegstreamer-adaptive :cam-settings="this.currentCam"></webcam-mjpegstreamer-adaptive>
|
||||
<template v-else-if="currentCam.service === 'mjpegstreamer-adaptive'">
|
||||
<webcam-mjpegstreamer-adaptive :cam-settings="currentCam"></webcam-mjpegstreamer-adaptive>
|
||||
</template>
|
||||
<template v-else-if="this.currentCam.service === 'uv4l-mjpeg'">
|
||||
<webcam-uv4l-mjpeg :cam-settings="this.currentCam"></webcam-uv4l-mjpeg>
|
||||
<template v-else-if="currentCam.service === 'uv4l-mjpeg'">
|
||||
<webcam-uv4l-mjpeg :cam-settings="currentCam"></webcam-uv4l-mjpeg>
|
||||
</template>
|
||||
<template v-else-if="this.currentCam.service === 'ipstream'">
|
||||
<webcam-ipstreamer :cam-settings="this.currentCam"></webcam-ipstreamer>
|
||||
<template v-else-if="currentCam.service === 'ipstream'">
|
||||
<webcam-ipstreamer :cam-settings="currentCam"></webcam-ipstreamer>
|
||||
</template>
|
||||
<template v-else>
|
||||
<p class="text-center py-3 font-italic">{{ $t('Panels.WebcamPanel.UnknownWebcamService') }}</p>
|
||||
|
||||
@@ -8,14 +8,14 @@
|
||||
:title="$t('Panels.ZoffsetPanel.Headline')"
|
||||
:collapsible="true"
|
||||
card-class="zoffset-panel">
|
||||
<template v-slot:buttons>
|
||||
<template #buttons>
|
||||
<template v-if="z_gcode_offset !== 0">
|
||||
<v-btn icon tile @click="clearZOffset()" :loading="loadings.includes('babySteppingClear')">
|
||||
<v-btn icon tile :loading="loadings.includes('babySteppingClear')" @click="clearZOffset()">
|
||||
<v-icon>mdi-broom</v-icon>
|
||||
</v-btn>
|
||||
<v-menu offset-y left v-if="existZOffsetApplyProbe && existZOffsetApplyEndstop">
|
||||
<template v-slot:activator="{ on, attrs }">
|
||||
<v-btn text tile color="primary" v-bind="attrs" v-on="on" class="pa-1">
|
||||
<v-menu v-if="existZOffsetApplyProbe && existZOffsetApplyEndstop" offset-y left>
|
||||
<template #activator="{ on, attrs }">
|
||||
<v-btn text tile color="primary" v-bind="attrs" class="pa-1" v-on="on">
|
||||
<span class="ml-1">{{ $t('Panels.ZoffsetPanel.Save') }}</span>
|
||||
<v-icon>mdi-menu-down</v-icon>
|
||||
</v-btn>
|
||||
@@ -40,21 +40,21 @@
|
||||
</v-list>
|
||||
</v-menu>
|
||||
<v-btn
|
||||
v-else-if="existZOffsetApplyProbe && !existZOffsetApplyEndstop"
|
||||
text
|
||||
tile
|
||||
class="px-2 minwidth-0"
|
||||
color="primary ml-3"
|
||||
v-else-if="existZOffsetApplyProbe && !existZOffsetApplyEndstop"
|
||||
@click="saveZOffsetToProbe">
|
||||
<v-icon small class="mr-1">mdi-content-save</v-icon>
|
||||
{{ $t('Panels.ZoffsetPanel.Save') }}
|
||||
</v-btn>
|
||||
<v-btn
|
||||
v-else-if="!existZOffsetApplyProbe && existZOffsetApplyEndstop"
|
||||
text
|
||||
tile
|
||||
class="px-2 minwidth-0"
|
||||
color="primary ml-3"
|
||||
v-else-if="!existZOffsetApplyProbe && existZOffsetApplyEndstop"
|
||||
@click="saveZOffsetToEndstop">
|
||||
<v-icon small class="mr-1">mdi-content-save</v-icon>
|
||||
{{ $t('Panels.ZoffsetPanel.Save') }}
|
||||
@@ -78,18 +78,18 @@
|
||||
class="mx-2 mt-3 mt-sm-0 order-last flex-nowrap order-sm-first">
|
||||
<v-btn
|
||||
small
|
||||
@click="sendBabySteppingDownFine()"
|
||||
class=""
|
||||
:loading="loadings.includes('babySteppingDownFine')">
|
||||
:loading="loadings.includes('babySteppingDownFine')"
|
||||
@click="sendBabySteppingDownFine()">
|
||||
<v-icon small class="mr-2">mdi-arrow-collapse-down</v-icon>
|
||||
-0.01
|
||||
<span class="d-sm-none d-md-inline">mm</span>
|
||||
</v-btn>
|
||||
<v-btn
|
||||
small
|
||||
@click="sendBabySteppingDown()"
|
||||
class=""
|
||||
:loading="loadings.includes('babySteppingDown')">
|
||||
:loading="loadings.includes('babySteppingDown')"
|
||||
@click="sendBabySteppingDown()">
|
||||
-0.05
|
||||
<span class="d-sm-none d-md-inline">mm</span>
|
||||
</v-btn>
|
||||
@@ -97,18 +97,18 @@
|
||||
<v-btn-toggle dense no-gutters class="mx-2 order-first flex-nowrap order-sm-last">
|
||||
<v-btn
|
||||
small
|
||||
@click="sendBabySteppingUpFine()"
|
||||
class=""
|
||||
:loading="loadings.includes('babySteppingUpFine')">
|
||||
:loading="loadings.includes('babySteppingUpFine')"
|
||||
@click="sendBabySteppingUpFine()">
|
||||
<v-icon small class="mr-2">mdi-arrow-expand-up</v-icon>
|
||||
+0.01
|
||||
<span class="d-sm-none d-md-inline">mm</span>
|
||||
</v-btn>
|
||||
<v-btn
|
||||
small
|
||||
@click="sendBabySteppingUp()"
|
||||
class=""
|
||||
:loading="loadings.includes('babySteppingUp')">
|
||||
:loading="loadings.includes('babySteppingUp')"
|
||||
@click="sendBabySteppingUp()">
|
||||
+0.05
|
||||
<span class="d-sm-none d-md-inline">mm</span>
|
||||
</v-btn>
|
||||
@@ -124,10 +124,10 @@
|
||||
icon="mdi-information"
|
||||
card-class="zoffset-saveinfo-dialog"
|
||||
:margin-bottom="false">
|
||||
<v-card-text class="mt-3" v-if="printerIsPrinting">
|
||||
<v-card-text v-if="printerIsPrinting" class="mt-3">
|
||||
{{ $t('Panels.ZoffsetPanel.SaveInfoDescriptionPrint') }}
|
||||
</v-card-text>
|
||||
<v-card-text class="mt-3" v-else>{{ $t('Panels.ZoffsetPanel.SaveInfoDescription') }}</v-card-text>
|
||||
<v-card-text v-else class="mt-3">{{ $t('Panels.ZoffsetPanel.SaveInfoDescription') }}</v-card-text>
|
||||
<v-card-actions v-if="printerIsPrinting">
|
||||
<v-spacer></v-spacer>
|
||||
<v-btn text @click="saveOffsetDialog = false">{{ $t('Panels.ZoffsetPanel.Ok') }}</v-btn>
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
|
||||
<template>
|
||||
<div>
|
||||
<v-card flat v-if="!form.bool">
|
||||
<v-card v-if="!form.bool" flat>
|
||||
<v-card-text>
|
||||
<settings-row :title="$t('Settings.ConsoleTab.Direction')">
|
||||
<v-select
|
||||
@@ -27,12 +27,12 @@
|
||||
<settings-row :title="$t('Settings.ConsoleTab.Height')">
|
||||
<v-slider
|
||||
v-model="consoleHeightTmp"
|
||||
@change="updateConsoleHeight"
|
||||
hide-details
|
||||
:min="200"
|
||||
:max="900"
|
||||
:step="10"
|
||||
:label="consoleHeightTmp + 'px'"></v-slider>
|
||||
:label="consoleHeightTmp + 'px'"
|
||||
@change="updateConsoleHeight"></v-slider>
|
||||
</settings-row>
|
||||
<v-divider class="my-2"></v-divider>
|
||||
<settings-row :title="$t('Settings.ConsoleTab.HideTemperatures')" :dynamic-slot-width="true">
|
||||
@@ -45,8 +45,8 @@
|
||||
</settings-row>
|
||||
</template>
|
||||
<v-divider class="my-2"></v-divider>
|
||||
<div v-for="(filter, index) in consoleFilters" v-bind:key="index">
|
||||
<v-divider class="my-2" v-if="index"></v-divider>
|
||||
<div v-for="(filter, index) in consoleFilters" :key="index">
|
||||
<v-divider v-if="index" class="my-2"></v-divider>
|
||||
<settings-row :title="filter.name">
|
||||
<v-btn
|
||||
small
|
||||
@@ -63,9 +63,9 @@
|
||||
<v-btn
|
||||
small
|
||||
outlined
|
||||
@click="deleteFilter(filter.id)"
|
||||
class="ml-3 minwidth-0 px-2"
|
||||
color="error">
|
||||
color="error"
|
||||
@click="deleteFilter(filter.id)">
|
||||
<v-icon small>mdi-delete</v-icon>
|
||||
</v-btn>
|
||||
</settings-row>
|
||||
@@ -75,7 +75,7 @@
|
||||
<v-btn text color="primary" @click="createFilter">{{ $t('Settings.ConsoleTab.AddFilter') }}</v-btn>
|
||||
</v-card-actions>
|
||||
</v-card>
|
||||
<v-card flat v-else>
|
||||
<v-card v-else flat>
|
||||
<v-form v-model="form.valid" @submit.prevent="saveFilter">
|
||||
<v-card-title>
|
||||
{{
|
||||
@@ -95,7 +95,7 @@
|
||||
</settings-row>
|
||||
<v-divider class="my-2"></v-divider>
|
||||
<settings-row :title="$t('Settings.ConsoleTab.Regex')">
|
||||
<v-textarea outlined v-model="form.regex" hide-details="auto"></v-textarea>
|
||||
<v-textarea v-model="form.regex" outlined hide-details="auto"></v-textarea>
|
||||
</settings-row>
|
||||
</v-card-text>
|
||||
<v-card-actions class="d-flex justify-end">
|
||||
|
||||
@@ -16,15 +16,15 @@
|
||||
</settings-row>
|
||||
<v-divider class="my-2"></v-divider>
|
||||
<template v-if="['circle', 'cross'].includes(controlStyle)">
|
||||
<settings-row :title="$t('Settings.ControlTab.InvertXMovement')" :dynamicSlotWidth="true">
|
||||
<settings-row :title="$t('Settings.ControlTab.InvertXMovement')" :dynamic-slot-width="true">
|
||||
<v-switch v-model="reverseX" hide-details class="mt-0"></v-switch>
|
||||
</settings-row>
|
||||
<v-divider class="my-2"></v-divider>
|
||||
<settings-row :title="$t('Settings.ControlTab.InvertYMovement')" :dynamicSlotWidth="true">
|
||||
<settings-row :title="$t('Settings.ControlTab.InvertYMovement')" :dynamic-slot-width="true">
|
||||
<v-switch v-model="reverseY" hide-details class="mt-0"></v-switch>
|
||||
</settings-row>
|
||||
<v-divider class="my-2"></v-divider>
|
||||
<settings-row :title="$t('Settings.ControlTab.InvertZMovement')" :dynamicSlotWidth="true">
|
||||
<settings-row :title="$t('Settings.ControlTab.InvertZMovement')" :dynamic-slot-width="true">
|
||||
<v-switch v-model="reverseZ" hide-details class="mt-0"></v-switch>
|
||||
</settings-row>
|
||||
<v-divider class="my-2"></v-divider>
|
||||
@@ -32,27 +32,27 @@
|
||||
<settings-row :title="$t('Settings.ControlTab.SpeedXY')">
|
||||
<v-text-field
|
||||
v-model="feedrateXY"
|
||||
@blur="blurFeedrateXY"
|
||||
type="number"
|
||||
suffix="mm/s"
|
||||
hide-details="auto"
|
||||
:rules="[(v) => v > 0 || $t('Settings.ControlTab.ValueGreaterThan', { value: '0' })]"
|
||||
outlined
|
||||
dense
|
||||
hide-spin-buttons></v-text-field>
|
||||
hide-spin-buttons
|
||||
@blur="blurFeedrateXY"></v-text-field>
|
||||
</settings-row>
|
||||
<v-divider class="my-2"></v-divider>
|
||||
<settings-row :title="$t('Settings.ControlTab.SpeedZ')">
|
||||
<v-text-field
|
||||
v-model="feedrateZ"
|
||||
@blur="blurFeedrateZ"
|
||||
type="number"
|
||||
suffix="mm/s"
|
||||
hide-details="auto"
|
||||
:rules="[(v) => v > 0 || $t('Settings.ControlTab.ValueGreaterThan', { value: '0' })]"
|
||||
outlined
|
||||
dense
|
||||
hide-spin-buttons></v-text-field>
|
||||
hide-spin-buttons
|
||||
@blur="blurFeedrateZ"></v-text-field>
|
||||
</settings-row>
|
||||
<v-divider class="my-2"></v-divider>
|
||||
<template v-if="controlStyle === 'cross'">
|
||||
|
||||
@@ -5,14 +5,14 @@
|
||||
<settings-row
|
||||
:title="$t('Settings.EditorTab.UseEscToClose')"
|
||||
:sub-title="$t('Settings.EditorTab.UseEscToCloseDescription')"
|
||||
:dynamicSlotWidth="true">
|
||||
:dynamic-slot-width="true">
|
||||
<v-switch v-model="escToClose" hide-details class="mt-0"></v-switch>
|
||||
</settings-row>
|
||||
<v-divider class="my-2"></v-divider>
|
||||
<settings-row
|
||||
:title="$t('Settings.EditorTab.ConfirmUnsavedChanges')"
|
||||
:sub-title="$t('Settings.EditorTab.ConfirmUnsavedChangesDescription')"
|
||||
:dynamicSlotWidth="true">
|
||||
:dynamic-slot-width="true">
|
||||
<v-switch v-model="confirmUnsavedChanges" hide-details class="mt-0"></v-switch>
|
||||
</settings-row>
|
||||
<v-divider class="my-2"></v-divider>
|
||||
|
||||
@@ -3,12 +3,12 @@
|
||||
<v-card flat>
|
||||
<v-card-text>
|
||||
<settings-row :title="$t('Settings.GCodeViewerTab.ShowAxes')">
|
||||
<v-switch class="mt-0" hide-details v-model="showAxes"></v-switch>
|
||||
<v-switch v-model="showAxes" class="mt-0" hide-details></v-switch>
|
||||
</settings-row>
|
||||
<v-divider class="my-2"></v-divider>
|
||||
<settings-row :title="$t('Settings.GCodeViewerTab.BackgroundColor')">
|
||||
<v-menu :close-on-content-click="false" bottom left offset-y>
|
||||
<template v-slot:activator="{ on, attrs }">
|
||||
<template #activator="{ on, attrs }">
|
||||
<v-btn
|
||||
:color="backgroundColor"
|
||||
class="minwidth-0 px-5"
|
||||
@@ -18,35 +18,35 @@
|
||||
</template>
|
||||
<v-color-picker
|
||||
:value="backgroundColor"
|
||||
@update:color="updateColorValue('backgroundColor', $event)"
|
||||
hide-mode-switch
|
||||
mode="rgba"></v-color-picker>
|
||||
mode="rgba"
|
||||
@update:color="updateColorValue('backgroundColor', $event)"></v-color-picker>
|
||||
</v-menu>
|
||||
</settings-row>
|
||||
<v-divider class="my-2"></v-divider>
|
||||
<settings-row :title="$t('Settings.GCodeViewerTab.GridColor')">
|
||||
<v-menu :close-on-content-click="false" bottom left offset-y>
|
||||
<template v-slot:activator="{ on, attrs }">
|
||||
<template #activator="{ on, attrs }">
|
||||
<v-btn :color="gridColor" class="minwidth-0 px-5" small v-bind="attrs" v-on="on"></v-btn>
|
||||
</template>
|
||||
<v-color-picker
|
||||
:value="gridColor"
|
||||
@update:color="updateColorValue('gridColor', $event)"
|
||||
hide-mode-switch
|
||||
mode="rgba"></v-color-picker>
|
||||
mode="rgba"
|
||||
@update:color="updateColorValue('gridColor', $event)"></v-color-picker>
|
||||
</v-menu>
|
||||
</settings-row>
|
||||
<v-divider class="my-2"></v-divider>
|
||||
<settings-row :title="$t('Settings.GCodeViewerTab.ExtruderColor')">
|
||||
<v-row no-gutters>
|
||||
<v-menu
|
||||
:close-on-content-click="false"
|
||||
v-for="(extruderColor, index) in extruderColors"
|
||||
:key="index"
|
||||
:close-on-content-click="false"
|
||||
bottom
|
||||
left
|
||||
offset-y
|
||||
v-for="(extruderColor, index) in extruderColors">
|
||||
<template v-slot:activator="{ on, attrs }">
|
||||
offset-y>
|
||||
<template #activator="{ on, attrs }">
|
||||
<v-col align="right" class="mt-1" cols="12">
|
||||
<span class="mr-2">{{ index }}</span>
|
||||
<v-btn
|
||||
@@ -59,16 +59,16 @@
|
||||
</template>
|
||||
<v-color-picker
|
||||
:value="extruderColors[index]"
|
||||
@update:color="colorsUpdated($event, index)"
|
||||
hide-mode-switch
|
||||
mode="rgba"></v-color-picker>
|
||||
mode="rgba"
|
||||
@update:color="colorsUpdated($event, index)"></v-color-picker>
|
||||
</v-menu>
|
||||
</v-row>
|
||||
</settings-row>
|
||||
<v-divider class="my-2"></v-divider>
|
||||
<settings-row :title="$t('Settings.GCodeViewerTab.MinFeed')">
|
||||
<v-menu :close-on-content-click="false" bottom left offset-y>
|
||||
<template v-slot:activator="{ on, attrs }">
|
||||
<template #activator="{ on, attrs }">
|
||||
<v-btn
|
||||
:color="minFeedColor"
|
||||
class="minwidth-0 px-5 mr-3"
|
||||
@@ -78,25 +78,25 @@
|
||||
</template>
|
||||
<v-color-picker
|
||||
:value="minFeedColor"
|
||||
@update:color="updateColorValue('minFeedColor', $event)"
|
||||
hide-mode-switch
|
||||
mode="rgba"></v-color-picker>
|
||||
mode="rgba"
|
||||
@update:color="updateColorValue('minFeedColor', $event)"></v-color-picker>
|
||||
</v-menu>
|
||||
<v-text-field
|
||||
:rules="[(v) => v > 0 || 'Minimum speed is 1']"
|
||||
@blur="feedBlur"
|
||||
dense
|
||||
v-model="minFeed"
|
||||
hide-details="auto"
|
||||
outlined
|
||||
suffix="mm/s"
|
||||
type="number"
|
||||
v-model="minFeed"
|
||||
hide-spin-buttons></v-text-field>
|
||||
hide-spin-buttons
|
||||
@blur="feedBlur"></v-text-field>
|
||||
</settings-row>
|
||||
<v-divider class="my-2"></v-divider>
|
||||
<settings-row :title="$t('Settings.GCodeViewerTab.MaxFeed')">
|
||||
<v-menu :close-on-content-click="false" bottom left offset-y>
|
||||
<template v-slot:activator="{ on, attrs }">
|
||||
<template #activator="{ on, attrs }">
|
||||
<v-btn
|
||||
:color="maxFeedColor"
|
||||
class="minwidth-0 px-5 mr-3"
|
||||
@@ -106,20 +106,20 @@
|
||||
</template>
|
||||
<v-color-picker
|
||||
:value="maxFeedColor"
|
||||
@update:color="updateColorValue('maxFeedColor', $event)"
|
||||
hide-mode-switch
|
||||
mode="rgba"></v-color-picker>
|
||||
mode="rgba"
|
||||
@update:color="updateColorValue('maxFeedColor', $event)"></v-color-picker>
|
||||
</v-menu>
|
||||
<v-text-field
|
||||
:rules="[(v) => v > 0 || 'Minimum speed is 1']"
|
||||
@blur="feedBlur"
|
||||
dense
|
||||
v-model="maxFeed"
|
||||
hide-details="auto"
|
||||
outlined
|
||||
suffix="mm/s"
|
||||
type="number"
|
||||
v-model="maxFeed"
|
||||
hide-spin-buttons></v-text-field>
|
||||
hide-spin-buttons
|
||||
@blur="feedBlur"></v-text-field>
|
||||
</settings-row>
|
||||
</v-card-text>
|
||||
</v-card>
|
||||
|
||||
@@ -42,23 +42,23 @@
|
||||
attach></v-select>
|
||||
</settings-row>
|
||||
<v-divider class="my-2"></v-divider>
|
||||
<settings-row :title="$t('Settings.GeneralTab.MoonrakerDb')" :dynamicSlotWidth="true">
|
||||
<settings-row :title="$t('Settings.GeneralTab.MoonrakerDb')" :dynamic-slot-width="true">
|
||||
<input
|
||||
ref="uploadBackupFile"
|
||||
type="file"
|
||||
:accept="['.json']"
|
||||
ref="uploadBackupFile"
|
||||
class="d-none"
|
||||
@change="uploadRestore" />
|
||||
<v-btn @click="backupDb" :loading="loadings.includes('backupDbButton')" small>
|
||||
<v-btn :loading="loadings.includes('backupDbButton')" small @click="backupDb">
|
||||
{{ $t('Settings.GeneralTab.Backup') }}
|
||||
</v-btn>
|
||||
<v-btn @click="restoreDb" small :loading="loadings.includes('restoreUploadButton')" class="ml-3">
|
||||
<v-btn small :loading="loadings.includes('restoreUploadButton')" class="ml-3" @click="restoreDb">
|
||||
{{ $t('Settings.GeneralTab.Restore') }}
|
||||
</v-btn>
|
||||
</settings-row>
|
||||
<v-divider class="my-2"></v-divider>
|
||||
<settings-row :title="$t('Settings.GeneralTab.FactoryReset')" :dynamicSlotWidth="true">
|
||||
<v-btn @click="resetMainsail" color="error" small>
|
||||
<settings-row :title="$t('Settings.GeneralTab.FactoryReset')" :dynamic-slot-width="true">
|
||||
<v-btn color="error" small @click="resetMainsail">
|
||||
{{ $t('Settings.GeneralTab.FactoryReset') }}
|
||||
</v-btn>
|
||||
</settings-row>
|
||||
@@ -70,7 +70,7 @@
|
||||
card-class="mainsail-backup-dialog"
|
||||
:margin-bottom="false"
|
||||
icon="mdi-help-circle">
|
||||
<template v-slot:buttons>
|
||||
<template #buttons>
|
||||
<v-btn icon tile @click="dialogBackupMainsail = false"><v-icon>mdi-close-thick</v-icon></v-btn>
|
||||
</template>
|
||||
<v-card-text>
|
||||
@@ -83,21 +83,21 @@
|
||||
<v-col class="pl-6">
|
||||
<template v-for="db in mainsailKeys">
|
||||
<v-checkbox
|
||||
:key="db.name"
|
||||
:label="db.label"
|
||||
hide-details
|
||||
class="mt-0"
|
||||
:key="db.name"
|
||||
@change="changeNamespace(db.name)"></v-checkbox>
|
||||
</template>
|
||||
<v-checkbox
|
||||
:label="$t('Settings.GeneralTab.DbTimelapseSettings')"
|
||||
v-if="availableNamespaces.includes('timelapse')"
|
||||
:label="$t('Settings.GeneralTab.DbTimelapseSettings')"
|
||||
hide-details
|
||||
class="mt-0"
|
||||
@change="changeNamespace('timelapse')"></v-checkbox>
|
||||
<v-checkbox
|
||||
:label="$t('Settings.GeneralTab.DbWebcams')"
|
||||
v-if="availableNamespaces.includes('webcams')"
|
||||
:label="$t('Settings.GeneralTab.DbWebcams')"
|
||||
hide-details
|
||||
class="mt-0"
|
||||
@change="changeNamespace('webcams')"></v-checkbox>
|
||||
@@ -105,7 +105,7 @@
|
||||
</v-row>
|
||||
<v-row>
|
||||
<v-col class="text-center">
|
||||
<v-btn color="red" @click="backupMainsail" :loading="loadings.includes('backupMainsail')">
|
||||
<v-btn color="red" :loading="loadings.includes('backupMainsail')" @click="backupMainsail">
|
||||
{{ $t('Settings.GeneralTab.Backup') }}
|
||||
</v-btn>
|
||||
</v-col>
|
||||
@@ -119,7 +119,7 @@
|
||||
card-class="factory-reset-dialog"
|
||||
:margin-bottom="false"
|
||||
icon="mdi-help-circle">
|
||||
<template v-slot:buttons>
|
||||
<template #buttons>
|
||||
<v-btn icon tile @click="dialogResetMainsail = false"><v-icon>mdi-close-thick</v-icon></v-btn>
|
||||
</template>
|
||||
<v-card-text>
|
||||
@@ -132,33 +132,33 @@
|
||||
<v-col class="pl-6">
|
||||
<template v-for="db in mainsailKeys">
|
||||
<v-checkbox
|
||||
:key="db.name"
|
||||
:label="db.label"
|
||||
hide-details
|
||||
class="mt-0"
|
||||
:key="db.name"
|
||||
@change="changeNamespace(db.name)"></v-checkbox>
|
||||
</template>
|
||||
<v-checkbox
|
||||
:label="$t('Settings.GeneralTab.DbTimelapseSettings')"
|
||||
v-if="availableNamespaces.includes('timelapse')"
|
||||
:label="$t('Settings.GeneralTab.DbTimelapseSettings')"
|
||||
hide-details
|
||||
class="mt-0"
|
||||
@change="changeNamespace('timelapse')"></v-checkbox>
|
||||
<v-checkbox
|
||||
:label="$t('Settings.GeneralTab.DbWebcams')"
|
||||
v-if="availableNamespaces.includes('webcams')"
|
||||
:label="$t('Settings.GeneralTab.DbWebcams')"
|
||||
hide-details
|
||||
class="mt-0"
|
||||
@change="changeNamespace('webcams')"></v-checkbox>
|
||||
<v-checkbox
|
||||
:label="$t('Settings.GeneralTab.DbHistoryJobs')"
|
||||
v-if="moonrakerComponents.includes('history')"
|
||||
:label="$t('Settings.GeneralTab.DbHistoryJobs')"
|
||||
hide-details
|
||||
class="mt-0"
|
||||
@change="changeNamespace('history_jobs')"></v-checkbox>
|
||||
<v-checkbox
|
||||
:label="$t('Settings.GeneralTab.DbHistoryTotals')"
|
||||
v-if="moonrakerComponents.includes('history')"
|
||||
:label="$t('Settings.GeneralTab.DbHistoryTotals')"
|
||||
hide-details
|
||||
class="mt-0"
|
||||
@change="changeNamespace('history_totals')"></v-checkbox>
|
||||
@@ -168,8 +168,8 @@
|
||||
<v-col class="text-center">
|
||||
<v-btn
|
||||
color="red"
|
||||
@click="resetMainsailAction"
|
||||
:loading="loadings.includes('resetMainsail')">
|
||||
:loading="loadings.includes('resetMainsail')"
|
||||
@click="resetMainsailAction">
|
||||
{{ $t('Settings.GeneralTab.Reset') }}
|
||||
</v-btn>
|
||||
</v-col>
|
||||
@@ -183,7 +183,7 @@
|
||||
card-class="factory-reset-dialog"
|
||||
:margin-bottom="false"
|
||||
icon="mdi-help-circle">
|
||||
<template v-slot:buttons>
|
||||
<template #buttons>
|
||||
<v-btn icon tile @click="dialogRestoreMainsail = false"><v-icon>mdi-close-thick</v-icon></v-btn>
|
||||
</template>
|
||||
<v-card-text>
|
||||
@@ -196,17 +196,17 @@
|
||||
<v-col class="pl-6">
|
||||
<template v-for="db in restoreableNamespaces">
|
||||
<v-checkbox
|
||||
:key="db.name"
|
||||
:label="db.label"
|
||||
hide-details
|
||||
class="mt-0"
|
||||
:key="db.name"
|
||||
@change="changeNamespace(db.name)"></v-checkbox>
|
||||
</template>
|
||||
</v-col>
|
||||
</v-row>
|
||||
<v-row>
|
||||
<v-col class="text-center">
|
||||
<v-btn color="red" @click="restoreDbAction" :loading="loadings.includes('restoreMainsail')">
|
||||
<v-btn color="red" :loading="loadings.includes('restoreMainsail')" @click="restoreDbAction">
|
||||
{{ $t('Settings.GeneralTab.Restore') }}
|
||||
</v-btn>
|
||||
</v-col>
|
||||
|
||||
@@ -4,8 +4,8 @@
|
||||
<v-card-text>
|
||||
<h3 class="text-h5 mb-3">{{ $t('Settings.MacrosTab.Macrogroups') }}</h3>
|
||||
<template v-if="groups.length">
|
||||
<div v-for="(group, index) in groups" v-bind:key="index">
|
||||
<v-divider class="my-2" v-if="index"></v-divider>
|
||||
<div v-for="(group, index) in groups" :key="index">
|
||||
<v-divider v-if="index" class="my-2"></v-divider>
|
||||
<settings-row
|
||||
:title="group.name !== '' ? group.name : '<' + $t('Settings.MacrosTab.UnknownGroup') + '>'"
|
||||
:sub-title="
|
||||
@@ -13,7 +13,7 @@
|
||||
count: 'macros' in group ? group.macros.length : 0,
|
||||
})
|
||||
"
|
||||
:dynamicSlotWidth="true">
|
||||
:dynamic-slot-width="true">
|
||||
<v-btn small outlined class="ml-3" @click="editMacrogroup(group)">
|
||||
<v-icon left small>mdi-pencil</v-icon>
|
||||
{{ $t('Settings.Edit') }}
|
||||
@@ -21,9 +21,9 @@
|
||||
<v-btn
|
||||
small
|
||||
outlined
|
||||
@click="deleteMacrogroup(group.id)"
|
||||
class="ml-3 minwidth-0 px-2"
|
||||
color="error">
|
||||
color="error"
|
||||
@click="deleteMacrogroup(group.id)">
|
||||
<v-icon small>mdi-delete</v-icon>
|
||||
</v-btn>
|
||||
</settings-row>
|
||||
@@ -58,23 +58,23 @@
|
||||
<v-select
|
||||
v-model="editGroup.color"
|
||||
:items="groupColors"
|
||||
@change="updateGroupOptionColor"
|
||||
outlined
|
||||
dense
|
||||
hide-details
|
||||
attach></v-select>
|
||||
attach
|
||||
@change="updateGroupOptionColor"></v-select>
|
||||
</settings-row>
|
||||
<template v-if="editGroup.color === 'custom'">
|
||||
<v-divider class="my-2"></v-divider>
|
||||
<settings-row :title="$t('Settings.MacrosTab.CustomColor')">
|
||||
<v-menu bottom left offset-y :close-on-content-click="false">
|
||||
<template v-slot:activator="{ on, attrs }">
|
||||
<template #activator="{ on, attrs }">
|
||||
<v-btn
|
||||
v-bind="attrs"
|
||||
v-on="on"
|
||||
:color="editGroup.colorCustom"
|
||||
class="minwidth-0 px-5"
|
||||
small></v-btn>
|
||||
small
|
||||
v-on="on"></v-btn>
|
||||
</template>
|
||||
<v-color-picker
|
||||
:value="editGroup.colorCustom"
|
||||
@@ -87,45 +87,45 @@
|
||||
<v-divider class="my-2"></v-divider>
|
||||
<settings-row :title="$t('Settings.MacrosTab.Status')">
|
||||
<v-tooltip top>
|
||||
<template v-slot:activator="{ on, attrs }">
|
||||
<template #activator="{ on, attrs }">
|
||||
<v-btn
|
||||
small
|
||||
outlined
|
||||
v-bind="attrs"
|
||||
v-on="on"
|
||||
@click="updateGroupOptionShowInStandby(!editGroup.showInStandby)"
|
||||
class="ml-3 minwidth-0 px-2"
|
||||
:color="editGroup.showInStandby ? '' : 'secondary'">
|
||||
:color="editGroup.showInStandby ? '' : 'secondary'"
|
||||
v-on="on"
|
||||
@click="updateGroupOptionShowInStandby(!editGroup.showInStandby)">
|
||||
<v-icon small>mdi-sleep</v-icon>
|
||||
</v-btn>
|
||||
</template>
|
||||
<span>{{ $t('Settings.MacrosTab.ShowInStateStandby') }}</span>
|
||||
</v-tooltip>
|
||||
<v-tooltip top>
|
||||
<template v-slot:activator="{ on, attrs }">
|
||||
<template #activator="{ on, attrs }">
|
||||
<v-btn
|
||||
small
|
||||
outlined
|
||||
v-bind="attrs"
|
||||
v-on="on"
|
||||
@click="updateGroupOptionShowInPause(!editGroup.showInPause)"
|
||||
class="ml-3 minwidth-0 px-2"
|
||||
:color="editGroup.showInPause ? '' : 'secondary'">
|
||||
:color="editGroup.showInPause ? '' : 'secondary'"
|
||||
v-on="on"
|
||||
@click="updateGroupOptionShowInPause(!editGroup.showInPause)">
|
||||
<v-icon small>mdi-pause</v-icon>
|
||||
</v-btn>
|
||||
</template>
|
||||
<span>{{ $t('Settings.MacrosTab.ShowInStatePaused') }}</span>
|
||||
</v-tooltip>
|
||||
<v-tooltip top>
|
||||
<template v-slot:activator="{ on, attrs }">
|
||||
<template #activator="{ on, attrs }">
|
||||
<v-btn
|
||||
small
|
||||
outlined
|
||||
v-bind="attrs"
|
||||
v-on="on"
|
||||
@click="updateGroupOptionShowInPrinting(!editGroup.showInPrinting)"
|
||||
class="ml-3 minwidth-0 px-2"
|
||||
:color="editGroup.showInPrinting ? '' : 'secondary'">
|
||||
:color="editGroup.showInPrinting ? '' : 'secondary'"
|
||||
v-on="on"
|
||||
@click="updateGroupOptionShowInPrinting(!editGroup.showInPrinting)">
|
||||
<v-icon small>mdi-printer-3d-nozzle</v-icon>
|
||||
</v-btn>
|
||||
</template>
|
||||
@@ -142,28 +142,28 @@
|
||||
group="macros"
|
||||
@change="updateMacroOrder">
|
||||
<template v-for="(macro, index) in editGroupMacros">
|
||||
<div v-bind:key="macro.name">
|
||||
<div :key="macro.name">
|
||||
<v-row>
|
||||
<v-col class="col-auto pr-0 d-flex">
|
||||
<v-icon class="handle">mdi-arrow-up-down</v-icon>
|
||||
</v-col>
|
||||
<v-col>
|
||||
<settings-row
|
||||
:key="'groupMacro_macro_' + index"
|
||||
:title="macro.name"
|
||||
:sub-title="getMacroDescription(macro.name)"
|
||||
v-bind:key="'groupMacro_macro_' + index"
|
||||
:dynamicSlotWidth="true">
|
||||
:dynamic-slot-width="true">
|
||||
<template v-if="existsMacro(macro.name)">
|
||||
<v-tooltip top>
|
||||
<template v-slot:activator="{ on, attrs }">
|
||||
<template #activator="{ on, attrs }">
|
||||
<v-btn
|
||||
small
|
||||
outlined
|
||||
v-bind="attrs"
|
||||
v-on="on"
|
||||
@click="changeColorMacroFromGroup(macro)"
|
||||
class="ml-3 minwidth-0 px-2"
|
||||
:color="macro.color">
|
||||
:color="macro.color"
|
||||
v-on="on"
|
||||
@click="changeColorMacroFromGroup(macro)">
|
||||
<v-icon small left>mdi-palette</v-icon>
|
||||
{{ macro.color }}
|
||||
</v-btn>
|
||||
@@ -171,11 +171,13 @@
|
||||
<span>{{ $t('Settings.MacrosTab.ChangeMacroColor') }}</span>
|
||||
</v-tooltip>
|
||||
<v-tooltip top>
|
||||
<template v-slot:activator="{ on, attrs }">
|
||||
<template #activator="{ on, attrs }">
|
||||
<v-btn
|
||||
small
|
||||
outlined
|
||||
v-bind="attrs"
|
||||
class="ml-3 minwidth-0 px-2"
|
||||
:color="macro.showInStandby ? '' : 'secondary'"
|
||||
v-on="on"
|
||||
@click="
|
||||
updateMacroFromGroup(
|
||||
@@ -183,20 +185,20 @@
|
||||
'showInStandby',
|
||||
!macro.showInStandby
|
||||
)
|
||||
"
|
||||
class="ml-3 minwidth-0 px-2"
|
||||
:color="macro.showInStandby ? '' : 'secondary'">
|
||||
">
|
||||
<v-icon small>mdi-sleep</v-icon>
|
||||
</v-btn>
|
||||
</template>
|
||||
<span>{{ $t('Settings.MacrosTab.ShowInStateStandby') }}</span>
|
||||
</v-tooltip>
|
||||
<v-tooltip top>
|
||||
<template v-slot:activator="{ on, attrs }">
|
||||
<template #activator="{ on, attrs }">
|
||||
<v-btn
|
||||
small
|
||||
outlined
|
||||
v-bind="attrs"
|
||||
class="ml-3 minwidth-0 px-2"
|
||||
:color="macro.showInPause ? '' : 'secondary'"
|
||||
v-on="on"
|
||||
@click="
|
||||
updateMacroFromGroup(
|
||||
@@ -204,20 +206,20 @@
|
||||
'showInPause',
|
||||
!macro.showInPause
|
||||
)
|
||||
"
|
||||
class="ml-3 minwidth-0 px-2"
|
||||
:color="macro.showInPause ? '' : 'secondary'">
|
||||
">
|
||||
<v-icon small>mdi-pause</v-icon>
|
||||
</v-btn>
|
||||
</template>
|
||||
<span>{{ $t('Settings.MacrosTab.ShowInStatePaused') }}</span>
|
||||
</v-tooltip>
|
||||
<v-tooltip top>
|
||||
<template v-slot:activator="{ on, attrs }">
|
||||
<template #activator="{ on, attrs }">
|
||||
<v-btn
|
||||
small
|
||||
outlined
|
||||
v-bind="attrs"
|
||||
class="ml-3 minwidth-0 px-2"
|
||||
:color="macro.showInPrinting ? '' : 'secondary'"
|
||||
v-on="on"
|
||||
@click="
|
||||
updateMacroFromGroup(
|
||||
@@ -225,9 +227,7 @@
|
||||
'showInPrinting',
|
||||
!macro.showInPrinting
|
||||
)
|
||||
"
|
||||
class="ml-3 minwidth-0 px-2"
|
||||
:color="macro.showInPrinting ? '' : 'secondary'">
|
||||
">
|
||||
<v-icon small>mdi-printer-3d-nozzle</v-icon>
|
||||
</v-btn>
|
||||
</template>
|
||||
@@ -235,15 +235,15 @@
|
||||
</v-tooltip>
|
||||
</template>
|
||||
<v-tooltip top>
|
||||
<template v-slot:activator="{ on, attrs }">
|
||||
<template #activator="{ on, attrs }">
|
||||
<v-btn
|
||||
small
|
||||
outlined
|
||||
v-bind="attrs"
|
||||
v-on="on"
|
||||
@click="removeMacroFromGroup(macro)"
|
||||
class="ml-3 minwidth-0 px-2"
|
||||
color="error">
|
||||
color="error"
|
||||
v-on="on"
|
||||
@click="removeMacroFromGroup(macro)">
|
||||
<v-icon small>mdi-delete</v-icon>
|
||||
</v-btn>
|
||||
</template>
|
||||
@@ -267,12 +267,12 @@
|
||||
<h3 class="text-h5 mt-6 mb-3">{{ $t('Settings.MacrosTab.AvailableMacros') }}</h3>
|
||||
<template v-if="availableMacros.length">
|
||||
<template v-for="(macro, index) in availableMacros">
|
||||
<v-divider class="my-2" v-if="index" v-bind:key="'availableMacro_deliver_' + index"></v-divider>
|
||||
<v-divider v-if="index" :key="'availableMacro_deliver_' + index" class="my-2"></v-divider>
|
||||
<settings-row
|
||||
:key="'availableMacro_macro_' + index"
|
||||
:title="macro.name"
|
||||
:sub-title="macro.description"
|
||||
v-bind:key="'availableMacro_macro_' + index"
|
||||
:dynamicSlotWidth="true">
|
||||
:dynamic-slot-width="true">
|
||||
<v-btn small outlined class="ml-3" @click="addMacroToGroup(macro)">
|
||||
<v-icon left small>mdi-plus</v-icon>
|
||||
{{ $t('Settings.MacrosTab.Add') }}
|
||||
|
||||
@@ -2,14 +2,14 @@
|
||||
<v-card-text>
|
||||
<h3 class="text-h5 mt-6 mb-3">{{ $t('Settings.MacrosTab.Macros') }}</h3>
|
||||
<template v-if="macros.length">
|
||||
<div v-for="(macro, index) in macros" v-bind:key="index">
|
||||
<v-divider class="my-2" v-if="index"></v-divider>
|
||||
<settings-row :title="macro.name" :sub-title="macro.description" :dynamicSlotWidth="true">
|
||||
<div v-for="(macro, index) in macros" :key="index">
|
||||
<v-divider v-if="index" class="my-2"></v-divider>
|
||||
<settings-row :title="macro.name" :sub-title="macro.description" :dynamic-slot-width="true">
|
||||
<v-switch
|
||||
:input-value="getMacroStatus(macro.name)"
|
||||
@change="changeMacroStatus(macro.name)"
|
||||
hide-details
|
||||
class="mt-0"></v-switch>
|
||||
class="mt-0"
|
||||
@change="changeMacroStatus(macro.name)"></v-switch>
|
||||
</settings-row>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
@@ -1,10 +1,10 @@
|
||||
<template>
|
||||
<div>
|
||||
<v-card flat v-if="!form.bool && !cooldownForm.bool">
|
||||
<v-card v-if="!form.bool && !cooldownForm.bool" flat>
|
||||
<v-card-text>
|
||||
<h3 class="text-h5 mb-3">{{ $t('Settings.PresetsTab.PreheatPresets') }}</h3>
|
||||
<div v-for="(preset, key) in presets" v-bind:key="preset.index">
|
||||
<v-divider class="my-2" v-if="key"></v-divider>
|
||||
<div v-for="(preset, key) in presets" :key="preset.index">
|
||||
<v-divider v-if="key" class="my-2"></v-divider>
|
||||
<settings-row :title="preset.name" :sub-title="getSubTitle(preset)">
|
||||
<v-btn small outlined class="ml-3" @click="editPreset(preset)">
|
||||
<v-icon left small>mdi-pencil</v-icon>
|
||||
@@ -13,14 +13,14 @@
|
||||
<v-btn
|
||||
small
|
||||
outlined
|
||||
@click="deletePreset(preset.id)"
|
||||
class="ml-3 minwidth-0 px-2"
|
||||
color="error">
|
||||
color="error"
|
||||
@click="deletePreset(preset.id)">
|
||||
<v-icon small>mdi-delete</v-icon>
|
||||
</v-btn>
|
||||
</settings-row>
|
||||
</div>
|
||||
<v-divider class="my-2" v-if="presets.length"></v-divider>
|
||||
<v-divider v-if="presets.length" class="my-2"></v-divider>
|
||||
<settings-row :title="$t('Settings.PresetsTab.Cooldown')">
|
||||
<v-btn small outlined class="ml-3" @click="editCooldown">
|
||||
<v-icon left small>mdi-pencil</v-icon>
|
||||
@@ -32,7 +32,7 @@
|
||||
<v-btn text color="primary" @click="createPreset">{{ $t('Settings.PresetsTab.AddPreset') }}</v-btn>
|
||||
</v-card-actions>
|
||||
</v-card>
|
||||
<v-card flat v-else-if="form.bool">
|
||||
<v-card v-else-if="form.bool" flat>
|
||||
<v-form v-model="form.valid" @submit.prevent="savePreset">
|
||||
<v-card-title>
|
||||
{{
|
||||
@@ -42,7 +42,7 @@
|
||||
}}
|
||||
</v-card-title>
|
||||
<v-card-text>
|
||||
<v-row class="mt-3" v-if="form.boolInvalidMin">
|
||||
<v-row v-if="form.boolInvalidMin" class="mt-3">
|
||||
<v-col class="py-0">
|
||||
<v-alert dense text type="error">{{ $t('Settings.PresetsTab.PresetInfo') }}</v-alert>
|
||||
</v-col>
|
||||
@@ -55,7 +55,7 @@
|
||||
dense
|
||||
outlined></v-text-field>
|
||||
</settings-row>
|
||||
<div v-for="heater of heaters" v-bind:key="heater.name">
|
||||
<div v-for="heater of heaters" :key="heater.name">
|
||||
<v-divider class="my-2"></v-divider>
|
||||
<settings-row :title="convertName(heater.name)">
|
||||
<v-checkbox
|
||||
@@ -72,7 +72,7 @@
|
||||
hide-spin-buttons></v-text-field>
|
||||
</settings-row>
|
||||
</div>
|
||||
<div v-for="fan of temperatureFans" v-bind:key="'temperature_fan ' + fan.name">
|
||||
<div v-for="fan of temperatureFans" :key="'temperature_fan ' + fan.name">
|
||||
<v-divider class="my-2"></v-divider>
|
||||
<settings-row :title="convertName(fan.name)">
|
||||
<v-checkbox
|
||||
@@ -91,7 +91,7 @@
|
||||
</div>
|
||||
<v-divider class="my-2"></v-divider>
|
||||
<settings-row :title="$t('Settings.PresetsTab.CustomGCode')">
|
||||
<v-textarea outlined v-model="form.gcode" hide-details></v-textarea>
|
||||
<v-textarea v-model="form.gcode" outlined hide-details></v-textarea>
|
||||
</settings-row>
|
||||
</v-card-text>
|
||||
<v-card-actions class="d-flex justify-end">
|
||||
@@ -108,12 +108,12 @@
|
||||
</v-card-actions>
|
||||
</v-form>
|
||||
</v-card>
|
||||
<v-card flat v-else-if="cooldownForm.bool">
|
||||
<v-card v-else-if="cooldownForm.bool" flat>
|
||||
<v-form v-model="cooldownForm.valid" @submit.prevent="saveCooldown">
|
||||
<v-card-title>{{ $t('Settings.PresetsTab.EditCooldown') }}</v-card-title>
|
||||
<v-card-text>
|
||||
<settings-row :title="$t('Settings.PresetsTab.CustomGCode')">
|
||||
<v-textarea outlined v-model="cooldownForm.gcode" hide-details></v-textarea>
|
||||
<v-textarea v-model="cooldownForm.gcode" outlined hide-details></v-textarea>
|
||||
</settings-row>
|
||||
</v-card-text>
|
||||
<v-card-actions class="d-flex justify-end">
|
||||
|
||||
@@ -1,10 +1,10 @@
|
||||
<template>
|
||||
<div>
|
||||
<v-card flat v-if="!form.bool">
|
||||
<v-card v-if="!form.bool" flat>
|
||||
<v-card-text>
|
||||
<h3 class="text-h5 mb-3">{{ $t('Settings.RemotePrintersTab.RemotePrinters') }}</h3>
|
||||
<div v-for="(printer, index) in printers" v-bind:key="printer.id">
|
||||
<v-divider class="my-2" v-if="index"></v-divider>
|
||||
<div v-for="(printer, index) in printers" :key="printer.id">
|
||||
<v-divider v-if="index" class="my-2"></v-divider>
|
||||
<settings-row
|
||||
:title="formatPrinterName(printer)"
|
||||
:loading="printer.socket.isConnecting"
|
||||
@@ -16,9 +16,9 @@
|
||||
<v-btn
|
||||
small
|
||||
outlined
|
||||
@click="delPrinter(printer.id)"
|
||||
class="ml-3 minwidth-0 px-2"
|
||||
color="error">
|
||||
color="error"
|
||||
@click="delPrinter(printer.id)">
|
||||
<v-icon small>mdi-delete</v-icon>
|
||||
</v-btn>
|
||||
</settings-row>
|
||||
@@ -30,7 +30,7 @@
|
||||
</v-btn>
|
||||
</v-card-actions>
|
||||
</v-card>
|
||||
<v-card flat v-else>
|
||||
<v-card v-else flat>
|
||||
<v-card-title>
|
||||
{{
|
||||
form.id !== null
|
||||
@@ -65,10 +65,10 @@
|
||||
</v-card-text>
|
||||
<v-card-actions class="d-flex justify-end">
|
||||
<v-btn text @click="form.bool = false">{{ $t('Settings.Cancel') }}</v-btn>
|
||||
<v-btn text color="primary" @click="storePrinter" v-if="form.id === null">
|
||||
<v-btn v-if="form.id === null" text color="primary" @click="storePrinter">
|
||||
{{ $t('Settings.RemotePrintersTab.AddPrinter') }}
|
||||
</v-btn>
|
||||
<v-btn text color="primary" @click="updatePrinter" v-else>
|
||||
<v-btn v-else text color="primary" @click="updatePrinter">
|
||||
{{ $t('Settings.RemotePrintersTab.UpdatePrinter') }}
|
||||
</v-btn>
|
||||
</v-card-actions>
|
||||
|
||||
@@ -2,10 +2,10 @@
|
||||
<v-row>
|
||||
<v-col :class="firstColClasses">
|
||||
<v-row class="d-flex flex-row">
|
||||
<v-col class="col-auto d-flex justify-center align-center pr-0" v-if="loading">
|
||||
<v-col v-if="loading" class="col-auto d-flex justify-center align-center pr-0">
|
||||
<v-progress-circular indeterminate color="primary" :size="24"></v-progress-circular>
|
||||
</v-col>
|
||||
<v-col class="col-auto d-flex justify-center align-center pr-0" v-else-if="icon">
|
||||
<v-col v-else-if="icon" class="col-auto d-flex justify-center align-center pr-0">
|
||||
<v-icon>{{ icon }}</v-icon>
|
||||
</v-col>
|
||||
<v-col class="col d-flex justify-center flex-column">
|
||||
|
||||
@@ -6,7 +6,7 @@
|
||||
<settings-row
|
||||
:title="$t('Settings.TimelapseTab.Enabled')"
|
||||
:sub-title="$t('Settings.TimelapseTab.EnabledDescription')"
|
||||
:dynamicSlotWidth="true">
|
||||
:dynamic-slot-width="true">
|
||||
<v-switch
|
||||
v-model="enabled"
|
||||
hide-details
|
||||
@@ -17,7 +17,7 @@
|
||||
<settings-row
|
||||
:title="$t('Settings.TimelapseTab.Autorender')"
|
||||
:sub-title="$t('Settings.TimelapseTab.AutorenderDescription')"
|
||||
:dynamicSlotWidth="true">
|
||||
:dynamic-slot-width="true">
|
||||
<v-switch
|
||||
v-model="autorender"
|
||||
hide-details
|
||||
@@ -70,7 +70,7 @@
|
||||
<settings-row
|
||||
:title="$t('Settings.TimelapseTab.PreviewImage')"
|
||||
:sub-title="$t('Settings.TimelapseTab.PreviewImageDescription')"
|
||||
:dynamicSlotWidth="true">
|
||||
:dynamic-slot-width="true">
|
||||
<v-switch
|
||||
v-model="previewimage"
|
||||
hide-details
|
||||
@@ -81,7 +81,7 @@
|
||||
<settings-row
|
||||
:title="$t('Settings.TimelapseTab.SaveFrames')"
|
||||
:sub-title="$t('Settings.TimelapseTab.SaveFramesDescription')"
|
||||
:dynamicSlotWidth="true">
|
||||
:dynamic-slot-width="true">
|
||||
<v-switch
|
||||
v-model="saveframes"
|
||||
hide-details
|
||||
@@ -106,7 +106,7 @@
|
||||
<settings-row
|
||||
:title="$t('Settings.TimelapseTab.GcodeVerbose')"
|
||||
:sub-title="$t('Settings.TimelapseTab.GcodeVerboseDescription')"
|
||||
:dynamicSlotWidth="true">
|
||||
:dynamic-slot-width="true">
|
||||
<v-switch
|
||||
v-model="gcode_verbose"
|
||||
hide-details
|
||||
@@ -118,7 +118,7 @@
|
||||
<settings-row
|
||||
:title="$t('Settings.TimelapseTab.Parkhead')"
|
||||
:sub-title="$t('Settings.TimelapseTab.ParkheadDescription')"
|
||||
:dynamicSlotWidth="true">
|
||||
:dynamic-slot-width="true">
|
||||
<v-switch
|
||||
v-model="parkhead"
|
||||
hide-details
|
||||
@@ -201,7 +201,7 @@
|
||||
<settings-row
|
||||
:title="$t('Settings.TimelapseTab.FwRetract')"
|
||||
:sub-title="$t('Settings.TimelapseTab.FwRetractDescription')"
|
||||
:dynamicSlotWidth="true">
|
||||
:dynamic-slot-width="true">
|
||||
<v-switch
|
||||
v-model="fw_retract"
|
||||
hide-details
|
||||
@@ -286,7 +286,7 @@
|
||||
<settings-row
|
||||
:title="$t('Settings.TimelapseTab.VariableFps')"
|
||||
:sub-title="$t('Settings.TimelapseTab.VariableFpsDescription')"
|
||||
:dynamicSlotWidth="true">
|
||||
:dynamic-slot-width="true">
|
||||
<v-switch
|
||||
v-model="variable_fps"
|
||||
hide-details
|
||||
|
||||
@@ -12,8 +12,8 @@
|
||||
<v-icon small>mdi-restart</v-icon>
|
||||
</v-btn>
|
||||
<v-menu bottom left offset-y :close-on-content-click="false">
|
||||
<template v-slot:activator="{ on, attrs }">
|
||||
<v-btn v-bind="attrs" v-on="on" :color="logoColor" class="minwidth-0 px-5" small></v-btn>
|
||||
<template #activator="{ on, attrs }">
|
||||
<v-btn v-bind="attrs" :color="logoColor" class="minwidth-0 px-5" small v-on="on"></v-btn>
|
||||
</template>
|
||||
<v-color-picker
|
||||
:value="logoColor"
|
||||
@@ -33,8 +33,8 @@
|
||||
<v-icon small>mdi-restart</v-icon>
|
||||
</v-btn>
|
||||
<v-menu bottom left offset-y :close-on-content-click="false">
|
||||
<template v-slot:activator="{ on, attrs }">
|
||||
<v-btn v-bind="attrs" v-on="on" :color="primaryColor" class="minwidth-0 px-5" small></v-btn>
|
||||
<template #activator="{ on, attrs }">
|
||||
<v-btn v-bind="attrs" :color="primaryColor" class="minwidth-0 px-5" small v-on="on"></v-btn>
|
||||
</template>
|
||||
<v-color-picker
|
||||
:value="primaryColor"
|
||||
@@ -47,7 +47,7 @@
|
||||
<settings-row
|
||||
:title="$t('Settings.UiSettingsTab.GcodeThumbnails')"
|
||||
:sub-title="$t('Settings.UiSettingsTab.GcodeThumbnailsDescription')"
|
||||
:dynamicSlotWidth="true">
|
||||
:dynamic-slot-width="true">
|
||||
<v-btn
|
||||
outlined
|
||||
small
|
||||
@@ -61,7 +61,7 @@
|
||||
<settings-row
|
||||
:title="$t('Settings.UiSettingsTab.BoolBigThumbnail')"
|
||||
:sub-title="$t('Settings.UiSettingsTab.BoolBigThumbnailDescription')"
|
||||
:dynamicSlotWidth="true">
|
||||
:dynamic-slot-width="true">
|
||||
<v-switch v-model="boolBigThumbnail" hide-details class="mt-0"></v-switch>
|
||||
</settings-row>
|
||||
<v-divider class="my-2"></v-divider>
|
||||
@@ -72,21 +72,21 @@
|
||||
<settings-row
|
||||
:title="$t('Settings.UiSettingsTab.DisplayCANCEL_PRINT')"
|
||||
:sub-title="$t('Settings.UiSettingsTab.DisplayCANCEL_PRINTDescription')"
|
||||
:dynamicSlotWidth="true">
|
||||
:dynamic-slot-width="true">
|
||||
<v-switch v-model="displayCancelPrint" hide-details class="mt-0"></v-switch>
|
||||
</settings-row>
|
||||
<v-divider class="my-2"></v-divider>
|
||||
<settings-row
|
||||
:title="$t('Settings.UiSettingsTab.DisplayZOffset')"
|
||||
:sub-title="$t('Settings.UiSettingsTab.DisplayZOffsetDescription')"
|
||||
:dynamicSlotWidth="true">
|
||||
:dynamic-slot-width="true">
|
||||
<v-switch v-model="displayZOffsetStandby" hide-details class="mt-0"></v-switch>
|
||||
</settings-row>
|
||||
<v-divider class="my-2"></v-divider>
|
||||
<settings-row
|
||||
:title="$t('Settings.UiSettingsTab.LockSliders')"
|
||||
:sub-title="$t('Settings.UiSettingsTab.LockSlidersDescription')"
|
||||
:dynamicSlotWidth="true">
|
||||
:dynamic-slot-width="true">
|
||||
<v-switch v-model="lockSliders" hide-details class="mt-0"></v-switch>
|
||||
</settings-row>
|
||||
<v-divider class="my-2"></v-divider>
|
||||
@@ -95,12 +95,12 @@
|
||||
v-show="lockSliders"
|
||||
:title="$t('Settings.UiSettingsTab.LockSlidersDelay')"
|
||||
:sub-title="$t('Settings.UiSettingsTab.LockSlidersDelayDescription')"
|
||||
:dynamicSlotWidth="true">
|
||||
:dynamic-slot-width="true">
|
||||
<v-text-field
|
||||
v-model="lockSlidersDelay"
|
||||
class="mt-0"
|
||||
prepend-icon="mdi-timer-outline"
|
||||
:style="isMobile ? { 'max-width': '140px' } : {}"
|
||||
v-model="lockSlidersDelay"
|
||||
label="Timeout"
|
||||
type="number"
|
||||
:rules="[(t) => t >= 0]"
|
||||
@@ -117,14 +117,14 @@
|
||||
<settings-row
|
||||
:title="$t('Settings.UiSettingsTab.ConfirmOnEmergencyStop')"
|
||||
:sub-title="$t('Settings.UiSettingsTab.ConfirmOnEmergencyStopDescription')"
|
||||
:dynamicSlotWidth="true">
|
||||
:dynamic-slot-width="true">
|
||||
<v-switch v-model="confirmOnEmergencyStop" hide-details class="mt-0"></v-switch>
|
||||
</settings-row>
|
||||
<v-divider class="my-2"></v-divider>
|
||||
<settings-row
|
||||
:title="$t('Settings.UiSettingsTab.ConfirmOnPowerDeviceChange')"
|
||||
:sub-title="$t('Settings.UiSettingsTab.ConfirmOnPowerDeviceChangeDescription')"
|
||||
:dynamicSlotWidth="true">
|
||||
:dynamic-slot-width="true">
|
||||
<v-switch v-model="confirmOnPowerDeviceChange" hide-details class="mt-0"></v-switch>
|
||||
</settings-row>
|
||||
<v-divider class="my-2"></v-divider>
|
||||
@@ -144,7 +144,7 @@
|
||||
<settings-row
|
||||
:title="$t('Settings.UiSettingsTab.BoolHideUploadAndPrintButton')"
|
||||
:sub-title="$t('Settings.UiSettingsTab.BoolHideUploadAndPrintButtonDescription')"
|
||||
:dynamicSlotWidth="true">
|
||||
:dynamic-slot-width="true">
|
||||
<v-switch v-model="boolHideUploadAndPrintButton" hide-details class="mt-0"></v-switch>
|
||||
</settings-row>
|
||||
</v-card-text>
|
||||
|
||||
@@ -1,9 +1,9 @@
|
||||
<template>
|
||||
<div>
|
||||
<v-card flat v-if="!form.bool">
|
||||
<v-card v-if="!form.bool" flat>
|
||||
<v-card-text>
|
||||
<h3 class="text-h5 mb-3">{{ $t('Settings.WebcamsTab.Webcams') }}</h3>
|
||||
<div v-for="webcam in webcams" v-bind:key="webcam.id">
|
||||
<div v-for="webcam in webcams" :key="webcam.id">
|
||||
<v-divider class="my-2"></v-divider>
|
||||
<settings-row :title="webcam.name" :icon="webcam.icon" :sub-title="getSubtitle(webcam)">
|
||||
<v-btn small outlined @click="editWebcam(webcam)">
|
||||
@@ -13,9 +13,9 @@
|
||||
<v-btn
|
||||
small
|
||||
outlined
|
||||
@click="deleteWebcam(webcam.id)"
|
||||
class="ml-3 minwidth-0 px-2"
|
||||
color="error">
|
||||
color="error"
|
||||
@click="deleteWebcam(webcam.id)">
|
||||
<v-icon small>mdi-delete</v-icon>
|
||||
</v-btn>
|
||||
</settings-row>
|
||||
@@ -25,8 +25,8 @@
|
||||
<v-btn text color="primary" @click="createWebcam">{{ $t('Settings.WebcamsTab.AddWebcam') }}</v-btn>
|
||||
</v-card-actions>
|
||||
</v-card>
|
||||
<v-card flat v-else>
|
||||
<v-form v-model="form.valid" ref="webcamForm" @submit.prevent="saveWebcam">
|
||||
<v-card v-else flat>
|
||||
<v-form ref="webcamForm" v-model="form.valid" @submit.prevent="saveWebcam">
|
||||
<v-card-title>
|
||||
{{
|
||||
form.id === null ? $t('Settings.WebcamsTab.CreateWebcam') : $t('Settings.WebcamsTab.EditWebcam')
|
||||
@@ -39,20 +39,20 @@
|
||||
<v-col class="col-2">
|
||||
<v-item-group>
|
||||
<v-menu :offset-y="true" title="Icon">
|
||||
<template v-slot:activator="{ on, attrs }">
|
||||
<template #activator="{ on, attrs }">
|
||||
<v-btn
|
||||
class="px-2 minwidth-0"
|
||||
color="transparent"
|
||||
v-bind="attrs"
|
||||
v-on="on"
|
||||
elevation="0">
|
||||
elevation="0"
|
||||
v-on="on">
|
||||
<v-icon>{{ form.icon }}</v-icon>
|
||||
</v-btn>
|
||||
</template>
|
||||
<v-list dense class="py-0">
|
||||
<v-list-item
|
||||
v-for="icon of iconItems"
|
||||
v-bind:key="icon.value"
|
||||
:key="icon.value"
|
||||
link
|
||||
@click="setFormIcon(icon.value)">
|
||||
<v-list-item-icon class="mr-0">
|
||||
|
||||
@@ -50,12 +50,12 @@
|
||||
d="M93.918,56.626L93.918,60.724L73.299,52.528L93.918,44.333L93.918,48.431L118.741,48.431L118.741,56.626L93.918,56.626Z"
|
||||
:style="'fill:rgb(' + colorMoonraker + ')'" />
|
||||
</g>
|
||||
<g id="success1" serif:id="success" transform="matrix(1.1,0,0,1.1,105.541,9.8)" v-if="moonraker">
|
||||
<g v-if="moonraker" id="success1" serif:id="success" transform="matrix(1.1,0,0,1.1,105.541,9.8)">
|
||||
<path
|
||||
d="M20,12C20,16.389 16.389,20 12,20C7.611,20 4,16.389 4,12C4,7.611 7.611,4 12,4C12.76,4 13.5,4.11 14.2,4.31L15.77,2.74C14.61,2.26 13.34,2 12,2C6.514,2 2,6.514 2,12C2,17.486 6.514,22 12,22C17.486,22 22,17.486 22,12M7.91,10.08L6.5,11.5L11,16L21,6L19.59,4.58L11,13.17L7.91,10.08Z"
|
||||
style="fill: rgb(38, 203, 124); fill-rule: nonzero" />
|
||||
</g>
|
||||
<g id="alert1" serif:id="alert" transform="matrix(1.1,0,0,1.1,105.541,9.8)" v-else>
|
||||
<g v-else id="alert1" serif:id="alert" transform="matrix(1.1,0,0,1.1,105.541,9.8)">
|
||||
<path
|
||||
d="M11,15L13,15L13,17L11,17L11,15M11,7L13,7L13,13L11,13L11,7M12,2C6.47,2 2,6.5 2,12C2,17.486 6.514,22 12,22C17.486,22 22,17.486 22,12C22,6.514 17.486,2 12,2M12,20C7.611,20 4,16.389 4,12C4,7.611 7.611,4 12,4C16.389,4 20,7.611 20,12C20,16.389 16.389,20 12,20Z"
|
||||
style="fill: rgb(245, 124, 5); fill-rule: nonzero" />
|
||||
@@ -88,12 +88,12 @@
|
||||
style="fill: rgb(115, 115, 115)" />
|
||||
</g>
|
||||
<template v-if="moonraker">
|
||||
<g id="success" transform="matrix(1.1,0,0,1.1,105.541,9.8)" v-if="klipper">
|
||||
<g v-if="klipper" id="success" transform="matrix(1.1,0,0,1.1,105.541,9.8)">
|
||||
<path
|
||||
d="M20,12C20,16.389 16.389,20 12,20C7.611,20 4,16.389 4,12C4,7.611 7.611,4 12,4C12.76,4 13.5,4.11 14.2,4.31L15.77,2.74C14.61,2.26 13.34,2 12,2C6.514,2 2,6.514 2,12C2,17.486 6.514,22 12,22C17.486,22 22,17.486 22,12M7.91,10.08L6.5,11.5L11,16L21,6L19.59,4.58L11,13.17L7.91,10.08Z"
|
||||
style="fill: rgb(38, 203, 124); fill-rule: nonzero" />
|
||||
</g>
|
||||
<g id="alert" transform="matrix(1.1,0,0,1.1,105.541,9.8)" v-else>
|
||||
<g v-else id="alert" transform="matrix(1.1,0,0,1.1,105.541,9.8)">
|
||||
<path
|
||||
d="M11,15L13,15L13,17L11,17L11,15M11,7L13,7L13,13L11,13L11,7M12,2C6.47,2 2,6.5 2,12C2,17.486 6.514,22 12,22C17.486,22 22,17.486 22,12C22,6.514 17.486,2 12,2M12,20C7.611,20 4,16.389 4,12C4,7.611 7.611,4 12,4C16.389,4 20,7.611 20,12C20,16.389 16.389,20 12,20Z"
|
||||
style="fill: rgb(245, 124, 5); fill-rule: nonzero" />
|
||||
|
||||
@@ -44,17 +44,17 @@
|
||||
class="panel-toolbar">
|
||||
<slot name="buttons-left"></slot>
|
||||
<v-toolbar-title class="d-flex align-center">
|
||||
<slot name="icon" v-if="hasIconSlot"></slot>
|
||||
<v-icon left v-if="icon !== null && !hasIconSlot">{{ icon }}</v-icon>
|
||||
<span class="subheading" v-if="title">{{ title }}</span>
|
||||
<slot v-if="hasIconSlot" name="icon"></slot>
|
||||
<v-icon v-if="icon !== null && !hasIconSlot" left>{{ icon }}</v-icon>
|
||||
<span v-if="title" class="subheading">{{ title }}</span>
|
||||
</v-toolbar-title>
|
||||
<slot name="buttons-title"></slot>
|
||||
<v-spacer></v-spacer>
|
||||
<v-toolbar-items v-show="hasButtonsSlot || collapsible">
|
||||
<div class="d-flex align-center" v-if="expand || !hideButtonsOnCollapse">
|
||||
<div v-if="expand || !hideButtonsOnCollapse" class="d-flex align-center">
|
||||
<slot name="buttons"></slot>
|
||||
</div>
|
||||
<v-btn v-if="collapsible" @click="expand = !expand" icon class="btn-collapsible" :ripple="true">
|
||||
<v-btn v-if="collapsible" icon class="btn-collapsible" :ripple="true" @click="expand = !expand">
|
||||
<v-icon :class="expand ? '' : 'icon-rotate-90'">mdi-chevron-down</v-icon>
|
||||
</v-btn>
|
||||
</v-toolbar-items>
|
||||
|
||||
@@ -2,18 +2,18 @@
|
||||
|
||||
<template>
|
||||
<v-menu bottom :offset-x="true">
|
||||
<template v-slot:activator="{ on, attrs }">
|
||||
<template #activator="{ on, attrs }">
|
||||
<v-icon class="nav-arrow right" v-bind="attrs" v-on="on">mdi-chevron-down</v-icon>
|
||||
</template>
|
||||
|
||||
<v-list dense>
|
||||
<v-list-item
|
||||
two-line
|
||||
v-for="printer in printers"
|
||||
v-bind:key="printer._namespace"
|
||||
@click="changePrinter(printer)"
|
||||
:key="printer._namespace"
|
||||
two-line
|
||||
:disabled="!printer.socket.isConnected"
|
||||
link>
|
||||
link
|
||||
@click="changePrinter(printer)">
|
||||
<v-list-item-content>
|
||||
<v-list-item-title>{{ getPrinterName(printer._namespace) }}</v-list-item-title>
|
||||
<v-list-item-subtitle>{{ getPrinterDescription(printer) }}</v-list-item-subtitle>
|
||||
|
||||
@@ -11,7 +11,7 @@
|
||||
<template>
|
||||
<div>
|
||||
<v-card-actions>
|
||||
<v-btn @click="expand = !expand" class="btn-collapsible" plain small>
|
||||
<v-btn class="btn-collapsible" plain small @click="expand = !expand">
|
||||
<v-icon small :class="!expand ? 'icon-rotate-180' : ''">
|
||||
{{ expand ? iconExpanded : iconCollapsed }}
|
||||
</v-icon>
|
||||
|
||||
@@ -5,7 +5,7 @@
|
||||
</style>
|
||||
|
||||
<template>
|
||||
<video :src="url" autoplay :style="webcamStyle" class="webcamImage" v-observe-visibility="visibilityChanged" />
|
||||
<video v-observe-visibility="visibilityChanged" :src="url" autoplay :style="webcamStyle" class="webcamImage" />
|
||||
</template>
|
||||
|
||||
<script lang="ts">
|
||||
|
||||
@@ -17,7 +17,7 @@
|
||||
<template>
|
||||
<div v-observe-visibility="visibilityChanged" style="position: relative">
|
||||
<img ref="image" class="webcamImage" :style="webcamStyle" />
|
||||
<span class="webcamFpsOutput" v-if="showFps">{{ $t('Panels.WebcamPanel.FPS') }}: {{ fpsOutput }}</span>
|
||||
<span v-if="showFps" class="webcamFpsOutput">{{ $t('Panels.WebcamPanel.FPS') }}: {{ fpsOutput }}</span>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
|
||||
@@ -12,7 +12,7 @@
|
||||
|
||||
<template>
|
||||
<div v-observe-visibility="visibilityChanged" style="position: relative">
|
||||
<div class="text-center py-5" v-if="!isLoaded">
|
||||
<div v-if="!isLoaded" class="text-center py-5">
|
||||
<v-progress-circular indeterminate color="primary"></v-progress-circular>
|
||||
</div>
|
||||
<canvas
|
||||
@@ -21,7 +21,7 @@
|
||||
height="400"
|
||||
:style="webcamStyle"
|
||||
:class="'webcamImage ' + (isLoaded ? '' : 'hiddenWebcam')"></canvas>
|
||||
<span class="webcamFpsOutput" v-if="isLoaded && showFps">
|
||||
<span v-if="isLoaded && showFps" class="webcamFpsOutput">
|
||||
{{ $t('Panels.WebcamPanel.FPS') }}: {{ fpsOutput }}
|
||||
</span>
|
||||
</div>
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
<style></style>
|
||||
|
||||
<template>
|
||||
<v-container fluid class="pb-4" v-if="webcams">
|
||||
<v-container v-if="webcams" fluid class="pb-4">
|
||||
<v-row dense>
|
||||
<v-col v-for="webcam in webcams" :key="webcam.id" cols="6">
|
||||
<template v-if="webcam.service === 'mjpegstreamer'">
|
||||
|
||||
+2
-2
@@ -26,7 +26,7 @@ Vue.use(VueMeta)
|
||||
|
||||
//vue-load-image
|
||||
import VueLoadImage from 'vue-load-image'
|
||||
Vue.component('vue-load-image', VueLoadImage)
|
||||
Vue.component('VueLoadImage', VueLoadImage)
|
||||
|
||||
//vue-toast-notification
|
||||
import VueToast from 'vue-toast-notification'
|
||||
@@ -59,7 +59,7 @@ import { LineChart, BarChart, PieChart } from 'echarts/charts'
|
||||
import { GridComponent, LegendComponent, TooltipComponent, DatasetComponent } from 'echarts/components'
|
||||
|
||||
use([SVGRenderer, LineChart, BarChart, LegendComponent, PieChart, DatasetComponent, GridComponent, TooltipComponent])
|
||||
Vue.component('e-chart', ECharts)
|
||||
Vue.component('EChart', ECharts)
|
||||
|
||||
//load config.json and init vue
|
||||
fetch('/config.json')
|
||||
|
||||
+17
-17
@@ -11,29 +11,29 @@
|
||||
|
||||
<template>
|
||||
<div class="d-flex flex-column">
|
||||
<v-row :class="this.consoleDirection === 'table' ? 'order-0' : 'order-1 mt-3'">
|
||||
<v-row :class="consoleDirection === 'table' ? 'order-0' : 'order-1 mt-3'">
|
||||
<v-col>
|
||||
<v-textarea
|
||||
ref="gcodeCommandField"
|
||||
v-model="gcode"
|
||||
:items="items"
|
||||
:label="$t('Console.SendCode')"
|
||||
solo
|
||||
class="gcode-command-field"
|
||||
ref="gcodeCommandField"
|
||||
autocomplete="off"
|
||||
no-resize
|
||||
auto-grow
|
||||
:rows="rows"
|
||||
@keydown.enter.prevent.stop="doSend"
|
||||
@keyup.up="onKeyUp"
|
||||
@keyup.down="onKeyDown"
|
||||
@keydown.tab="getAutocomplete"
|
||||
hide-details
|
||||
outlined
|
||||
dense
|
||||
:prepend-icon="isTouchDevice ? 'mdi-chevron-double-right' : ''"
|
||||
@click:prepend="getAutocomplete"
|
||||
append-icon="mdi-send"
|
||||
@keydown.enter.prevent.stop="doSend"
|
||||
@keyup.up="onKeyUp"
|
||||
@keyup.down="onKeyDown"
|
||||
@keydown.tab="getAutocomplete"
|
||||
@click:prepend="getAutocomplete"
|
||||
@click:append="doSend"></v-textarea>
|
||||
</v-col>
|
||||
|
||||
@@ -44,7 +44,7 @@
|
||||
:top="consoleDirection === 'shell'"
|
||||
:close-on-content-click="false"
|
||||
:title="$t('Console.SetupConsole')">
|
||||
<template v-slot:activator="{ on, attrs }">
|
||||
<template #activator="{ on, attrs }">
|
||||
<v-btn class="ml-3 px-2 minwidth-0" color="lightgray" v-bind="attrs" v-on="on">
|
||||
<v-icon>mdi-filter</v-icon>
|
||||
</v-btn>
|
||||
@@ -52,32 +52,32 @@
|
||||
<v-list>
|
||||
<v-list-item class="minHeight36">
|
||||
<v-checkbox
|
||||
class="mt-0"
|
||||
v-model="hideWaitTemperatures"
|
||||
class="mt-0"
|
||||
hide-details
|
||||
:label="$t('Console.HideTemperatures')"></v-checkbox>
|
||||
</v-list-item>
|
||||
<v-list-item class="minHeight36" v-if="moonrakerComponents.includes('timelapse')">
|
||||
<v-list-item v-if="moonrakerComponents.includes('timelapse')" class="minHeight36">
|
||||
<v-checkbox
|
||||
class="mt-0"
|
||||
v-model="hideTlCommands"
|
||||
class="mt-0"
|
||||
hide-details
|
||||
:label="$t('Console.HideTimelapse')"></v-checkbox>
|
||||
</v-list-item>
|
||||
<v-list-item class="minHeight36" v-for="(filter, index) in customFilters" v-bind:key="index">
|
||||
<v-list-item v-for="(filter, index) in customFilters" :key="index" class="minHeight36">
|
||||
<v-checkbox
|
||||
class="mt-0"
|
||||
v-model="filter.bool"
|
||||
@change="toggleFilter(filter)"
|
||||
class="mt-0"
|
||||
hide-details
|
||||
:label="filter.name"></v-checkbox>
|
||||
:label="filter.name"
|
||||
@change="toggleFilter(filter)"></v-checkbox>
|
||||
</v-list-item>
|
||||
</v-list>
|
||||
</v-menu>
|
||||
</v-col>
|
||||
</v-row>
|
||||
<v-row :class="this.consoleDirection === 'table' ? 'order-1' : 'order-0 mt-0'">
|
||||
<v-col :class="this.consoleDirection === 'table' ? 'col' : 'col pt-0'">
|
||||
<v-row :class="consoleDirection === 'table' ? 'order-1' : 'order-0 mt-0'">
|
||||
<v-col :class="consoleDirection === 'table' ? 'col' : 'col pt-0'">
|
||||
<v-card>
|
||||
<v-card-text class="pa-0">
|
||||
<overlay-scrollbars ref="consoleScroll" class="consoleScrollContainer d-flex flex-column">
|
||||
|
||||
+24
-24
@@ -5,9 +5,9 @@
|
||||
<status-panel></status-panel>
|
||||
<template v-for="component in mobileLayout">
|
||||
<component
|
||||
v-bind:is="extractPanelName(component.name)"
|
||||
:panel-id="extractPanelId(component.name)"
|
||||
:key="'dashboard-mobileLayout-' + component.name"></component>
|
||||
:is="extractPanelName(component.name)"
|
||||
:key="'dashboard-mobileLayout-' + component.name"
|
||||
:panel-id="extractPanelId(component.name)"></component>
|
||||
</template>
|
||||
</v-col>
|
||||
</v-row>
|
||||
@@ -16,17 +16,17 @@
|
||||
<status-panel></status-panel>
|
||||
<template v-for="component in tabletLayout1">
|
||||
<component
|
||||
v-bind:is="extractPanelName(component.name)"
|
||||
:panel-id="extractPanelId(component.name)"
|
||||
:key="'dashboard-tabletLayout1-' + component.name"></component>
|
||||
:is="extractPanelName(component.name)"
|
||||
:key="'dashboard-tabletLayout1-' + component.name"
|
||||
:panel-id="extractPanelId(component.name)"></component>
|
||||
</template>
|
||||
</v-col>
|
||||
<v-col class="col-6">
|
||||
<template v-for="component in tabletLayout2">
|
||||
<component
|
||||
v-bind:is="extractPanelName(component.name)"
|
||||
:panel-id="extractPanelId(component.name)"
|
||||
:key="'dashboard-tabletLayout2-' + component.name"></component>
|
||||
:is="extractPanelName(component.name)"
|
||||
:key="'dashboard-tabletLayout2-' + component.name"
|
||||
:panel-id="extractPanelId(component.name)"></component>
|
||||
</template>
|
||||
</v-col>
|
||||
</v-row>
|
||||
@@ -35,17 +35,17 @@
|
||||
<status-panel></status-panel>
|
||||
<template v-for="component in desktopLayout1">
|
||||
<component
|
||||
v-bind:is="extractPanelName(component.name)"
|
||||
:panel-id="extractPanelId(component.name)"
|
||||
:key="'dashboard-desktopLayout1-' + component.name"></component>
|
||||
:is="extractPanelName(component.name)"
|
||||
:key="'dashboard-desktopLayout1-' + component.name"
|
||||
:panel-id="extractPanelId(component.name)"></component>
|
||||
</template>
|
||||
</v-col>
|
||||
<v-col class="col-7">
|
||||
<template v-for="component in desktopLayout2">
|
||||
<component
|
||||
v-bind:is="extractPanelName(component.name)"
|
||||
:panel-id="extractPanelId(component.name)"
|
||||
:key="'dashboard-desktopLayout2-' + component.name"></component>
|
||||
:is="extractPanelName(component.name)"
|
||||
:key="'dashboard-desktopLayout2-' + component.name"
|
||||
:panel-id="extractPanelId(component.name)"></component>
|
||||
</template>
|
||||
</v-col>
|
||||
</v-row>
|
||||
@@ -54,25 +54,25 @@
|
||||
<status-panel></status-panel>
|
||||
<template v-for="component in widescreenLayout1">
|
||||
<component
|
||||
v-bind:is="extractPanelName(component.name)"
|
||||
:panel-id="extractPanelId(component.name)"
|
||||
:key="'dashboard-desktopLayout1-' + component.name"></component>
|
||||
:is="extractPanelName(component.name)"
|
||||
:key="'dashboard-desktopLayout1-' + component.name"
|
||||
:panel-id="extractPanelId(component.name)"></component>
|
||||
</template>
|
||||
</v-col>
|
||||
<v-col class="col-5">
|
||||
<template v-for="component in widescreenLayout2">
|
||||
<component
|
||||
v-bind:is="extractPanelName(component.name)"
|
||||
:panel-id="extractPanelId(component.name)"
|
||||
:key="'dashboard-desktopLayout2-' + component.name"></component>
|
||||
:is="extractPanelName(component.name)"
|
||||
:key="'dashboard-desktopLayout2-' + component.name"
|
||||
:panel-id="extractPanelId(component.name)"></component>
|
||||
</template>
|
||||
</v-col>
|
||||
<v-col class="col-4">
|
||||
<template v-for="component in widescreenLayout3">
|
||||
<component
|
||||
v-bind:is="extractPanelName(component.name)"
|
||||
:panel-id="extractPanelId(component.name)"
|
||||
:key="'dashboard-desktopLayout3-' + component.name"></component>
|
||||
:is="extractPanelName(component.name)"
|
||||
:key="'dashboard-desktopLayout3-' + component.name"
|
||||
:panel-id="extractPanelId(component.name)"></component>
|
||||
</template>
|
||||
</v-col>
|
||||
</v-row>
|
||||
|
||||
+2
-2
@@ -2,8 +2,8 @@
|
||||
|
||||
<template>
|
||||
<v-row>
|
||||
<v-col v-for="(printer, key) in printers" v-bind:key="key" class="col-12 col-sm-6 col-md-4 pb-0">
|
||||
<farm-printer-panel v-bind:printer="printer"></farm-printer-panel>
|
||||
<v-col v-for="(printer, key) in printers" :key="key" class="col-12 col-sm-6 col-md-4 pb-0">
|
||||
<farm-printer-panel :printer="printer"></farm-printer-panel>
|
||||
</v-col>
|
||||
</v-row>
|
||||
</template>
|
||||
|
||||
+38
-38
@@ -9,24 +9,24 @@
|
||||
<v-row v-if="klipperReadyForGui">
|
||||
<v-col class="col-12 col-md-8 pb-0">
|
||||
<panel card-class="heightmap-map-panel" :title="$t('Heightmap.Heightmap')" icon="mdi-grid">
|
||||
<template v-slot:buttons-title>
|
||||
<template #buttons-title>
|
||||
<v-btn
|
||||
v-if="meshLoaded"
|
||||
text
|
||||
tile
|
||||
color="primary"
|
||||
class="ml-1 d-none d-sm-inline-flex rename-profile"
|
||||
v-if="meshLoaded"
|
||||
@click="openRenameProfile()">
|
||||
{{ bed_mesh.profile_name }}
|
||||
</v-btn>
|
||||
</template>
|
||||
<template v-slot:buttons>
|
||||
<template #buttons>
|
||||
<v-btn
|
||||
v-if="meshLoaded"
|
||||
text
|
||||
tile
|
||||
color="primary"
|
||||
class="d-sm-none"
|
||||
v-if="meshLoaded"
|
||||
@click="openRenameProfile()">
|
||||
{{ bed_mesh ? bed_mesh.profile_name : '' }}
|
||||
</v-btn>
|
||||
@@ -34,31 +34,31 @@
|
||||
icon
|
||||
tile
|
||||
class="d-none d-sm-flex"
|
||||
@click="homePrinter"
|
||||
:color="homedAxes.includes('xyz') ? 'primary' : 'warning'"
|
||||
:loading="loadings.includes('homeAll')"
|
||||
:title="$t('Heightmap.TitleHomeAll')"
|
||||
:ripple="true">
|
||||
:ripple="true"
|
||||
@click="homePrinter">
|
||||
<v-icon>mdi-home</v-icon>
|
||||
</v-btn>
|
||||
<v-btn
|
||||
v-if="meshLoaded"
|
||||
text
|
||||
tile
|
||||
class="d-none d-sm-flex"
|
||||
@click="clearBedMesh"
|
||||
:loading="loadings.includes('bedMeshClear')"
|
||||
v-if="meshLoaded"
|
||||
:title="$t('Heightmap.TitleClear')">
|
||||
:title="$t('Heightmap.TitleClear')"
|
||||
@click="clearBedMesh">
|
||||
{{ $t('Heightmap.Clear') }}
|
||||
</v-btn>
|
||||
<v-btn
|
||||
text
|
||||
tile
|
||||
class="d-none d-sm-flex"
|
||||
@click="calibrateDialog = true"
|
||||
:loading="loadings.includes('bedMeshCalibrate')"
|
||||
:disabled="printerIsPrinting"
|
||||
:title="$t('Heightmap.TitleCalibrate')">
|
||||
:title="$t('Heightmap.TitleCalibrate')"
|
||||
@click="calibrateDialog = true">
|
||||
{{ $t('Heightmap.Calibrate') }}
|
||||
</v-btn>
|
||||
</template>
|
||||
@@ -69,22 +69,22 @@
|
||||
small
|
||||
class="px-2 minwidth-0"
|
||||
:color="homedAxes.includes('xyz') ? 'primary' : 'warning'"
|
||||
@click="homePrinter"
|
||||
:loading="loadings.includes('homeAll')"
|
||||
:title="$t('Heightmap.TitleHomeAll')">
|
||||
:title="$t('Heightmap.TitleHomeAll')"
|
||||
@click="homePrinter">
|
||||
<v-icon :color="homedAxes.includes('xyz') ? 'primary' : 'warning'" small>
|
||||
mdi-home
|
||||
</v-icon>
|
||||
</v-btn>
|
||||
<v-btn
|
||||
v-if="bed_mesh"
|
||||
text
|
||||
small
|
||||
class="px-2 minwidth-0"
|
||||
color="primary"
|
||||
@click="clearBedMesh"
|
||||
:loading="loadings.includes('bedMeshClear')"
|
||||
v-if="bed_mesh"
|
||||
:title="$t('Heightmap.TitleClear')">
|
||||
:title="$t('Heightmap.TitleClear')"
|
||||
@click="clearBedMesh">
|
||||
{{ $t('Heightmap.Clear') }}
|
||||
</v-btn>
|
||||
<v-btn
|
||||
@@ -92,10 +92,10 @@
|
||||
small
|
||||
class="px-2 minwidth-0"
|
||||
color="primary"
|
||||
@click="calibrateDialog = true"
|
||||
:loading="loadings.includes('bedMeshCalibrate')"
|
||||
:disabled="printerIsPrinting"
|
||||
:title="$t('Heightmap.TitleCalibrate')">
|
||||
:title="$t('Heightmap.TitleCalibrate')"
|
||||
@click="calibrateDialog = true">
|
||||
{{ $t('Heightmap.Calibrate') }}
|
||||
</v-btn>
|
||||
</v-item-group>
|
||||
@@ -154,10 +154,10 @@
|
||||
</v-col>
|
||||
<v-col class="col-8">
|
||||
<v-slider
|
||||
v-model="heightmapScale"
|
||||
:label="$t('Heightmap.Scale')"
|
||||
:min="heightmapRangeLimit[0]"
|
||||
:max="heightmapRangeLimit[1]"
|
||||
v-model="heightmapScale"
|
||||
:step="0.1"
|
||||
ticks="always"
|
||||
class="mt-4"
|
||||
@@ -170,8 +170,8 @@
|
||||
</v-col>
|
||||
<v-col class="col-12 col-md-4">
|
||||
<panel
|
||||
:title="$t('Heightmap.CurrentMesh.Headline')"
|
||||
v-if="meshLoaded"
|
||||
:title="$t('Heightmap.CurrentMesh.Headline')"
|
||||
card-class="heightmap-current-mesh-panel"
|
||||
icon="mdi-information"
|
||||
:collapsible="true"
|
||||
@@ -219,25 +219,25 @@
|
||||
icon="mdi-stack-overflow"
|
||||
:collapsible="true"
|
||||
class="mt-6 mt-md-0">
|
||||
<v-card-text class="py-0 px-0" v-if="profiles.length">
|
||||
<v-card-text v-if="profiles.length" class="py-0 px-0">
|
||||
<v-simple-table>
|
||||
<template v-slot:default>
|
||||
<template #default>
|
||||
<tbody>
|
||||
<tr v-for="(profile, index) in profiles" :key="index">
|
||||
<td>
|
||||
<span
|
||||
@click="loadProfile(profile.name)"
|
||||
:class="profile.is_active ? 'font-weight-bold' : ''"
|
||||
style="cursor: pointer">
|
||||
style="cursor: pointer"
|
||||
@click="loadProfile(profile.name)">
|
||||
{{ profile.name }}
|
||||
</span>
|
||||
<small class="ml-2" v-if="'deleted' in profile.data">
|
||||
<small v-if="'deleted' in profile.data" class="ml-2">
|
||||
({{ $t('Heightmap.Deleted') }})
|
||||
</small>
|
||||
</td>
|
||||
<td>
|
||||
<v-tooltip top color="rgba(0,0,0,0.8)">
|
||||
<template v-slot:activator="{ on, attrs }">
|
||||
<template #activator="{ on, attrs }">
|
||||
<small v-bind="attrs" v-on="on">
|
||||
{{ profile.variance.toFixed(3) }}
|
||||
</small>
|
||||
@@ -253,17 +253,17 @@
|
||||
<v-btn-toggle dense no-gutters>
|
||||
<v-btn
|
||||
class="minwidth-0"
|
||||
@click="loadProfile(profile.name)"
|
||||
:loading="loadings.includes('bedMeshLoad_' + profile.name)"
|
||||
:disabled="profile.is_active || 'deleted' in profile.data">
|
||||
:disabled="profile.is_active || 'deleted' in profile.data"
|
||||
@click="loadProfile(profile.name)">
|
||||
<v-icon small>mdi-view-grid-plus</v-icon>
|
||||
</v-btn>
|
||||
<v-btn
|
||||
class="minwidth-0"
|
||||
@click="openRemoveProfile(profile.name)"
|
||||
:loading="loadings.includes('bedMeshRemove_' + profile.name)"
|
||||
:disabled="'deleted' in profile.data"
|
||||
:title="$t('Heightmap.DeleteBedMeshProfile')">
|
||||
:title="$t('Heightmap.DeleteBedMeshProfile')"
|
||||
@click="openRemoveProfile(profile.name)">
|
||||
<v-icon small>mdi-delete</v-icon>
|
||||
</v-btn>
|
||||
</v-btn-toggle>
|
||||
@@ -297,18 +297,18 @@
|
||||
icon="mdi-grid"
|
||||
card-class="heightmap-rename-dialog"
|
||||
:margin-bottom="false">
|
||||
<template v-slot:buttons>
|
||||
<template #buttons>
|
||||
<v-btn icon tile @click="renameDialog = false">
|
||||
<v-icon>mdi-close-thick</v-icon>
|
||||
</v-btn>
|
||||
</template>
|
||||
<v-card-text>
|
||||
<v-text-field
|
||||
:label="$t('Heightmap.Name')"
|
||||
v-model="newName"
|
||||
ref="inputDialogRenameHeightmapName"
|
||||
@keyup.enter="renameProfile"
|
||||
required></v-text-field>
|
||||
v-model="newName"
|
||||
:label="$t('Heightmap.Name')"
|
||||
required
|
||||
@keyup.enter="renameProfile"></v-text-field>
|
||||
</v-card-text>
|
||||
<v-card-actions>
|
||||
<v-spacer></v-spacer>
|
||||
@@ -323,7 +323,7 @@
|
||||
icon="mdi-grid"
|
||||
card-class="heightmap-calibrate-dialog"
|
||||
:margin-bottom="false">
|
||||
<template v-slot:buttons>
|
||||
<template #buttons>
|
||||
<v-btn icon tile @click="calibrateDialog = false">
|
||||
<v-icon>mdi-close-thick</v-icon>
|
||||
</v-btn>
|
||||
@@ -344,7 +344,7 @@
|
||||
icon="mdi-grid"
|
||||
card-class="heightmap-remove-dialog"
|
||||
:margin-bottom="false">
|
||||
<template v-slot:buttons>
|
||||
<template #buttons>
|
||||
<v-btn icon tile @click="removeDialog = false">
|
||||
<v-icon>mdi-close-thick</v-icon>
|
||||
</v-btn>
|
||||
@@ -365,7 +365,7 @@
|
||||
icon="mdi-grid"
|
||||
card-class="heightmap-remove-save-dialog"
|
||||
:margin-bottom="false">
|
||||
<template v-slot:buttons>
|
||||
<template #buttons>
|
||||
<v-btn icon tile @click="saveConfigDialog = false">
|
||||
<v-icon>mdi-close-thick</v-icon>
|
||||
</v-btn>
|
||||
|
||||
@@ -9,7 +9,7 @@
|
||||
<system-panel></system-panel>
|
||||
<update-panel></update-panel>
|
||||
<v-row>
|
||||
<v-col class="col-md-6 pb-0 pb-md-3" v-if="klipperState === 'ready'">
|
||||
<v-col v-if="klipperState === 'ready'" class="col-md-6 pb-0 pb-md-3">
|
||||
<endstop-panel></endstop-panel>
|
||||
</v-col>
|
||||
<v-col :class="klipperState !== 'ready' ? 'col-md-12' : 'col-md-6 pl-0 pl-md-3'">
|
||||
|
||||
Reference in new issue
Block a user