feat: change overlaps-scrollbar instead of perfect-scrollbar (#400)
perfect-scrollbar have issues with touch devices Signed-off-by: Stefan Dej <meteyou@gmail.com>
This commit is contained in:
1 parent
bad3a842e8
commit
cb2da07479
18 files changed
+756
-445
No files matched your search
Generated
+524
-240
File diff suppressed because it is too large.
Load diff
+3
-2
@@ -24,6 +24,7 @@
|
||||
"@codemirror/stream-parser": "^0.19.1",
|
||||
"@codemirror/view": "^0.19.1",
|
||||
"@sindarius/gcodeviewer": "^2.1.13",
|
||||
"@types/overlayscrollbars": "^1.12.1",
|
||||
"axios": "^0.21.1",
|
||||
"core-js": "^3.16.0",
|
||||
"echarts": "^5.1.2",
|
||||
@@ -32,6 +33,7 @@
|
||||
"joi": "^17.4.1",
|
||||
"js-sha256": "^0.9.0",
|
||||
"object-assign-deep": "^0.4.0",
|
||||
"overlayscrollbars-vue": "^0.2.2",
|
||||
"sass-loader": "^10.2.0",
|
||||
"semver": "^7.3.5",
|
||||
"uuid": "^8.3.2",
|
||||
@@ -47,9 +49,8 @@
|
||||
"vue-resource": "^1.5.3",
|
||||
"vue-simple-upload": "^0.1.6",
|
||||
"vue-toast-notification": "^0.6.1",
|
||||
"vue2-perfect-scrollbar": "^1.5.2",
|
||||
"vuedraggable": "^2.24.3",
|
||||
"vuetify": "^2.5.8",
|
||||
"vuetify": "^2.5.10",
|
||||
"vuex": "^3.6.2"
|
||||
},
|
||||
"devDependencies": {
|
||||
|
||||
+15
-4
@@ -6,6 +6,10 @@
|
||||
@import './assets/styles/utils.scss';
|
||||
@import './assets/styles/updateManager.scss';
|
||||
|
||||
:root {
|
||||
--app-height: 100%;
|
||||
}
|
||||
|
||||
#content {
|
||||
background-attachment: fixed;
|
||||
background-size: cover;
|
||||
@@ -17,7 +21,7 @@
|
||||
}
|
||||
|
||||
.main-content-scrollbar {
|
||||
height: calc(100vh - 64px);
|
||||
height: calc(var(--app-height) - 64px);
|
||||
}
|
||||
</style>
|
||||
|
||||
@@ -28,11 +32,11 @@
|
||||
<the-topbar></the-topbar>
|
||||
|
||||
<v-main id="content" :style="mainStyle">
|
||||
<perfect-scrollbar class="main-content-scrollbar" :options="{ suppressScrollX: true }">
|
||||
<overlay-scrollbars class="main-content-scrollbar">
|
||||
<v-container fluid id="page-container" class="container px-3 px-sm-6 py-sm-6 mx-auto">
|
||||
<router-view></router-view>
|
||||
</v-container>
|
||||
</perfect-scrollbar>
|
||||
</overlay-scrollbars>
|
||||
</v-main>
|
||||
<the-select-printer-dialog v-if="remoteMode"></the-select-printer-dialog>
|
||||
<the-connecting-dialog v-else></the-connecting-dialog>
|
||||
@@ -132,7 +136,7 @@ export default class App extends Mixins(BaseMixin) {
|
||||
return {
|
||||
'--v-btn-text-primary': this.primaryTextColor,
|
||||
'--color-primary': this.primaryColor,
|
||||
'--color-warning': this.warningColor,
|
||||
'--color-warning': this.warningColor
|
||||
}
|
||||
}
|
||||
|
||||
@@ -259,8 +263,15 @@ export default class App extends Mixins(BaseMixin) {
|
||||
this.drawFavicon(this.print_percent)
|
||||
}
|
||||
|
||||
appHeight() {
|
||||
const doc = document.documentElement
|
||||
doc.style.setProperty('--app-height', window.innerHeight+'px')
|
||||
}
|
||||
|
||||
mounted(): void {
|
||||
this.drawFavicon(this.print_percent)
|
||||
this.appHeight()
|
||||
window.addEventListener('resize', this.appHeight)
|
||||
}
|
||||
}
|
||||
</script>
|
||||
@@ -36,7 +36,7 @@
|
||||
</v-row>
|
||||
</v-card-title>
|
||||
<v-divider></v-divider>
|
||||
<perfect-scrollbar :class="'command-help-content '+(isMobile ? '' : 'height300')">
|
||||
<overlay-scrollbars :class="'command-help-content '+(isMobile ? '' : 'height300')">
|
||||
<v-card-text class="pt-0">
|
||||
<v-row>
|
||||
<v-col>
|
||||
@@ -55,7 +55,7 @@
|
||||
</v-col>
|
||||
</v-row>
|
||||
</v-card-text>
|
||||
</perfect-scrollbar>
|
||||
</overlay-scrollbars>
|
||||
</panel>
|
||||
</template>
|
||||
</v-dialog>
|
||||
|
||||
@@ -1,7 +1,5 @@
|
||||
<style scoped>
|
||||
.editor-content-container {
|
||||
height: calc(100vh - 48px);
|
||||
}
|
||||
|
||||
</style>
|
||||
|
||||
<template>
|
||||
@@ -21,7 +19,9 @@
|
||||
<v-btn icon @click="close"><v-icon>mdi-close-thick</v-icon></v-btn>
|
||||
</template>
|
||||
<v-card-text class="pa-0">
|
||||
<codemirror ref="editor" v-model="sourcecode" :name="filename" v-bind:file-extension="fileExtension"></codemirror>
|
||||
<overlay-scrollbars style="height: calc(var(--app-height) - 48px)" :options="{ }">
|
||||
<codemirror ref="editor" v-model="sourcecode" :name="filename" v-bind:file-extension="fileExtension"></codemirror>
|
||||
</overlay-scrollbars>
|
||||
</v-card-text>
|
||||
</panel>
|
||||
</v-dialog>
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
<v-btn color="grey darken-3" class="ml-5 minwidth-0 px-2" @click="showSettings = true">
|
||||
<v-icon>mdi-cogs</v-icon>
|
||||
</v-btn>
|
||||
<v-dialog v-model="showSettings" width="900" persistent :fullscreen="isMobile">
|
||||
<v-dialog v-model="showSettings" width="900" persistent hide-overlay :fullscreen="isMobile">
|
||||
<panel :title="$t('Settings.InterfaceSettings')" icon="mdi-cogs" card-class="settings-menu-dialog" :margin-bottom="false" style="overflow: hidden;" :height="isMobile ? 0 : 548">
|
||||
<template v-slot:buttons>
|
||||
<v-btn icon @click="showSettings = false"><v-icon>mdi-close-thick</v-icon></v-btn>
|
||||
@@ -19,9 +19,9 @@
|
||||
</v-tab>
|
||||
</v-tabs>
|
||||
</template>
|
||||
<v-row>
|
||||
<v-row class="flex-row flex-nowrap">
|
||||
<v-col class="col-auto pr-0" v-if="!isMobile">
|
||||
<perfect-scrollbar class="settings-tabs-bar height500" ref="settingsTabsScroll">
|
||||
<overlay-scrollbars class="settings-tabs-bar height500" ref="settingsTabsScroll">
|
||||
<v-tabs v-model="activeTab" :vertical="true">
|
||||
<v-tab
|
||||
v-for="(tab, index) of tabTitles" v-bind:key="index"
|
||||
@@ -33,12 +33,12 @@
|
||||
<span class="text-truncate">{{ tab.title }}</span>
|
||||
</v-tab>
|
||||
</v-tabs>
|
||||
</perfect-scrollbar>
|
||||
</overlay-scrollbars>
|
||||
</v-col>
|
||||
<v-col :class="isMobile ? '' : 'pl-0'">
|
||||
<perfect-scrollbar :class="'settings-tabs '+(isMobile ? '' : 'height500')" ref="settingsScroll" :options="{ suppressScrollX: true }">
|
||||
<v-col :class="isMobile ? '' : 'pl-0'" :style="isMobile ? '' : 'width: 700px;'">
|
||||
<overlay-scrollbars :class="'settings-tabs '+(isMobile ? '' : 'height500')" ref="settingsScroll" :options="{ overflowBehavior: { x: 'hidden' } }">
|
||||
<component :is="'settings-'+activeTab+'-tab'" @scrollToTop="scrollToTop"></component>
|
||||
</perfect-scrollbar>
|
||||
</overlay-scrollbars>
|
||||
</v-col>
|
||||
</v-row>
|
||||
</panel>
|
||||
@@ -165,7 +165,10 @@ export default class TheSettingsMenu extends Mixins(BaseMixin) {
|
||||
}
|
||||
|
||||
scrollToTop() {
|
||||
if (this.$refs.settingsScroll) this.$refs.settingsScroll.$el.scrollTop = 0
|
||||
if (this.$refs.settingsScroll) {
|
||||
const overlayscroll = this.$refs.settingsScroll.osInstance()
|
||||
overlayscroll?.scroll({ y: '0%' })
|
||||
}
|
||||
}
|
||||
}
|
||||
</script>
|
||||
@@ -173,7 +176,7 @@ export default class TheSettingsMenu extends Mixins(BaseMixin) {
|
||||
<style scoped>
|
||||
.settings-tabs {
|
||||
height: auto;
|
||||
max-height: calc(100vh - 96px);
|
||||
max-height: calc(var(--app-height) - 96px);
|
||||
}
|
||||
|
||||
.settings-tabs-bar {
|
||||
@@ -184,4 +187,11 @@ export default class TheSettingsMenu extends Mixins(BaseMixin) {
|
||||
.settings-tabs.height500 {
|
||||
max-height: 500px;
|
||||
}
|
||||
</style>
|
||||
|
||||
<style>
|
||||
.settings-tabs .v-select__selections input {
|
||||
width: 100px;
|
||||
}
|
||||
|
||||
</style>
|
||||
@@ -46,7 +46,7 @@
|
||||
<v-card-text class="px-3">
|
||||
<v-row>
|
||||
<v-col class="py-6 px-0">
|
||||
<perfect-scrollbar class="updaterLogScroll" :options="{ suppressScrollX: true }" ref="updaterLogScroll">
|
||||
<overlay-scrollbars class="updaterLogScroll" ref="updaterLogScroll">
|
||||
<v-data-table
|
||||
:headers="headers"
|
||||
:items="messages"
|
||||
@@ -76,7 +76,7 @@
|
||||
</tr>
|
||||
</template>
|
||||
</v-data-table>
|
||||
</perfect-scrollbar>
|
||||
</overlay-scrollbars>
|
||||
</v-col>
|
||||
</v-row>
|
||||
<v-row>
|
||||
|
||||
@@ -2,13 +2,13 @@
|
||||
<style>
|
||||
.viewer {
|
||||
width: 100%;
|
||||
height: calc(100vh - 250px);
|
||||
height: calc(var(--app-height) - 250px);
|
||||
border: 1px solid #3f3f3f;
|
||||
}
|
||||
|
||||
.slider-autoheight,
|
||||
.slider-autoheight .v-slider {
|
||||
height: calc(100vh - 250px);
|
||||
height: calc(var(--app-height) - 250px);
|
||||
}
|
||||
|
||||
.slider-autoheight .v-slider {
|
||||
|
||||
@@ -2,17 +2,11 @@
|
||||
.vue-codemirror .cm-editor {
|
||||
|
||||
}
|
||||
|
||||
.editor-content-container {
|
||||
height: calc(100vh - 48px);
|
||||
}
|
||||
</style>
|
||||
|
||||
<template>
|
||||
<div class="vue-codemirror">
|
||||
<perfect-scrollbar class="editor-content-container">
|
||||
<div ref="codemirror" v-observe-visibility="visibilityChanged"></div>
|
||||
</perfect-scrollbar>
|
||||
<div ref="codemirror" v-observe-visibility="visibilityChanged"></div>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
|
||||
@@ -145,7 +145,7 @@
|
||||
<v-btn icon @click="detailsDialog.boolShow = false"><v-icon>mdi-close-thick</v-icon></v-btn>
|
||||
</template>
|
||||
<v-card-text class="px-0">
|
||||
<perfect-scrollbar style="height: 350px;" :options="{ suppressScrollX: true }" class="px-6">
|
||||
<overlay-scrollbars style="height: 350px;" class="px-6">
|
||||
<v-row>
|
||||
<v-col>{{ $t('History.Filename') }}</v-col>
|
||||
<v-col class="text-right">{{ detailsDialog.item.filename }}</v-col>
|
||||
@@ -272,7 +272,7 @@
|
||||
<v-col class="text-right">{{ detailsDialog.item.metadata.slicer_version }}</v-col>
|
||||
</v-row>
|
||||
</template>
|
||||
</perfect-scrollbar>
|
||||
</overlay-scrollbars>
|
||||
</v-card-text>
|
||||
</panel>
|
||||
</v-dialog>
|
||||
|
||||
@@ -162,7 +162,7 @@
|
||||
<v-icon>mdi-close</v-icon>
|
||||
</v-btn>
|
||||
</template>
|
||||
<div class="d-flex justify-center" style="max-height: calc(100vh - 64px); overflow: auto;">
|
||||
<div class="d-flex justify-center" style="max-height: calc(var(--app-height) - 64px); overflow: auto;">
|
||||
<img v-if="dialogImage.item.url" :src="dialogImage.item.url" style="max-height: 100%; width: auto;" alt="image" />
|
||||
<div v-else-if="dialogImage.item.svg" class="fill-width" v-html="dialogImage.item.svg"></div>
|
||||
</div>
|
||||
|
||||
@@ -103,7 +103,7 @@
|
||||
<v-btn icon @click="mcuDetailsDialog.bool = false"><v-icon>mdi-close-thick</v-icon></v-btn>
|
||||
</template>
|
||||
<v-card-text class="pt-5 px-0">
|
||||
<perfect-scrollbar style="height: 350px;" :options="{ suppressScrollX: true }" class="px-6">
|
||||
<overlay-scrollbars style="height: 350px;" class="px-6">
|
||||
<template v-if="mcuDetailsDialog.mcu.mcu_constants">
|
||||
<v-row>
|
||||
<v-col><span class="headline">{{ $t('Machine.SystemPanel.Constants') }}</span></v-col>
|
||||
@@ -128,7 +128,7 @@
|
||||
</v-row>
|
||||
</div>
|
||||
</template>
|
||||
</perfect-scrollbar>
|
||||
</overlay-scrollbars>
|
||||
</v-card-text>
|
||||
</panel>
|
||||
</v-dialog>
|
||||
@@ -138,7 +138,7 @@
|
||||
<v-btn icon @click="hostDetailsDialog.bool = false"><v-icon>mdi-close-thick</v-icon></v-btn>
|
||||
</template>
|
||||
<v-card-text class="pt-5 px-0">
|
||||
<perfect-scrollbar style="height: 350px;" :options="{ suppressScrollX: true }" class="px-6">
|
||||
<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'">
|
||||
@@ -160,7 +160,7 @@
|
||||
<v-col><p>No more Infos</p></v-col>
|
||||
</v-row>
|
||||
</template>
|
||||
</perfect-scrollbar>
|
||||
</overlay-scrollbars>
|
||||
</v-card-text>
|
||||
</panel>
|
||||
</v-dialog>
|
||||
|
||||
@@ -178,7 +178,7 @@
|
||||
<v-btn icon @click="commitsOverlay.bool = false"><v-icon>mdi-close-thick</v-icon></v-btn>
|
||||
</template>
|
||||
<v-card-text class="py-0 px-0">
|
||||
<perfect-scrollbar style="max-height: 400px;" :options="{ suppressScrollX: true }">
|
||||
<overlay-scrollbars style="max-height: 400px;" :options="{ overflowBehavior: { x: 'hidden' } }">
|
||||
<v-row>
|
||||
<v-col class="pt-3 pl-0">
|
||||
<v-timeline class="groupedCommits" align-top dense >
|
||||
@@ -206,7 +206,7 @@
|
||||
</v-timeline>
|
||||
</v-col>
|
||||
</v-row>
|
||||
</perfect-scrollbar>
|
||||
</overlay-scrollbars>
|
||||
</v-card-text>
|
||||
</panel>
|
||||
</v-dialog>
|
||||
|
||||
@@ -64,14 +64,14 @@
|
||||
<v-card-text :class="(consoleDirection === 'table' ? 'order-2' : 'order-1') + ' pa-0'">
|
||||
<v-row>
|
||||
<v-col>
|
||||
<perfect-scrollbar ref="miniConsoleScroll" :style="'height: '+consoleHeight+'px;'">
|
||||
<overlay-scrollbars ref="miniConsoleScroll" :style="'height: '+consoleHeight+'px;'" :options="{ }">
|
||||
<console-table ref="console"
|
||||
:events="events"
|
||||
:is-mini="true"
|
||||
@command-click="commandClick"
|
||||
/>
|
||||
<v-divider></v-divider>
|
||||
</perfect-scrollbar>
|
||||
</overlay-scrollbars>
|
||||
</v-col>
|
||||
</v-row>
|
||||
</v-card-text>
|
||||
@@ -86,7 +86,6 @@ import BaseMixin from '@/components/mixins/base'
|
||||
import {CommandHelp, VTextareaType} from '@/store/printer/types'
|
||||
import ConsoleTable from '@/components/console/ConsoleTable.vue'
|
||||
import CommandHelpModal from '@/components/CommandHelpModal.vue'
|
||||
import Vue from 'vue'
|
||||
import Panel from '@/components/ui/Panel.vue'
|
||||
|
||||
@Component({
|
||||
@@ -127,7 +126,11 @@ export default class MiniconsolePanel extends Mixins(BaseMixin) {
|
||||
|
||||
@Watch('events')
|
||||
eventsChanged() {
|
||||
if (this.consoleDirection === 'shell') this.scrollToBottom()
|
||||
if (this.consoleDirection === 'shell'){
|
||||
setTimeout(() => {
|
||||
this.scrollToBottom()
|
||||
}, 50)
|
||||
}
|
||||
}
|
||||
|
||||
get hideWaitTemperatures(): boolean {
|
||||
@@ -247,8 +250,8 @@ export default class MiniconsolePanel extends Mixins(BaseMixin) {
|
||||
scrollToBottom() {
|
||||
this.$nextTick(() => {
|
||||
if (this.$refs.miniConsoleScroll) {
|
||||
const perfectScroll = ((this.$refs.miniConsoleScroll as Vue).$el as HTMLDivElement)
|
||||
perfectScroll.scrollTop = perfectScroll.scrollHeight
|
||||
const overlayscroll = this.$refs.miniConsoleScroll.osInstance()
|
||||
overlayscroll?.scroll({ y: '100%' })
|
||||
}
|
||||
})
|
||||
}
|
||||
@@ -256,8 +259,8 @@ export default class MiniconsolePanel extends Mixins(BaseMixin) {
|
||||
scrollToTop() {
|
||||
this.$nextTick(() => {
|
||||
if (this.$refs.miniConsoleScroll) {
|
||||
const perfectScroll = ((this.$refs.miniConsoleScroll as Vue).$el as HTMLDivElement)
|
||||
perfectScroll.scrollTop = 0
|
||||
const overlayscroll = this.$refs.miniConsoleScroll.osInstance()
|
||||
overlayscroll?.scroll({ y: '0%' })
|
||||
}
|
||||
})
|
||||
}
|
||||
|
||||
@@ -3,194 +3,196 @@
|
||||
</style>
|
||||
|
||||
<template>
|
||||
<v-form ref="formControlExtruder">
|
||||
<div>
|
||||
<v-card flat>
|
||||
<v-card-text>
|
||||
<settings-row :title="$t('Settings.ControlTab.Style')">
|
||||
<v-select v-model="controlStyle" :items="controlStyles" outlined dense hide-details></v-select>
|
||||
</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">
|
||||
<v-switch v-model="reverseX" hide-details class="mt-0"></v-switch>
|
||||
<v-form ref="formControlExtruder">
|
||||
<settings-row :title="$t('Settings.ControlTab.Style')">
|
||||
<v-select v-model="controlStyle" :items="controlStyles" outlined dense hide-details></v-select>
|
||||
</settings-row>
|
||||
<v-divider class="my-2"></v-divider>
|
||||
<settings-row :title="$t('Settings.ControlTab.InvertYMovement')" :dynamicSlotWidth="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">
|
||||
<v-switch v-model="reverseZ" hide-details class="mt-0"></v-switch>
|
||||
</settings-row>
|
||||
<v-divider class="my-2"></v-divider>
|
||||
</template>
|
||||
<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 || 'Minimum speed is 1']"
|
||||
outlined
|
||||
dense
|
||||
></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 || 'Minimum speed is 1']"
|
||||
outlined
|
||||
dense
|
||||
></v-text-field>
|
||||
</settings-row>
|
||||
<v-divider class="my-2"></v-divider>
|
||||
<template v-if="controlStyle === 'cross'">
|
||||
<settings-row :title="$t('Settings.ControlTab.MoveDistancesInMm')" :mobile-second-row="true">
|
||||
<v-combobox
|
||||
v-model="stepsAll"
|
||||
hide-selected
|
||||
hide-details
|
||||
multiple
|
||||
small-chips
|
||||
:deletable-chips="true"
|
||||
append-icon=""
|
||||
<template v-if="['circle', 'cross'].includes(controlStyle)">
|
||||
<settings-row :title="$t('Settings.ControlTab.InvertXMovement')" :dynamicSlotWidth="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">
|
||||
<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">
|
||||
<v-switch v-model="reverseZ" hide-details class="mt-0"></v-switch>
|
||||
</settings-row>
|
||||
<v-divider class="my-2"></v-divider>
|
||||
</template>
|
||||
<settings-row :title="$t('Settings.ControlTab.SpeedXY')">
|
||||
<v-text-field
|
||||
v-model="feedrateXY"
|
||||
@blur="blurFeedrateXY"
|
||||
type="number"
|
||||
:rules="[
|
||||
v => v.length > 0 || 'Minimum 1 value',
|
||||
v => v.length < 9 || 'For narrow screens it is recommended to enter max. 3 values.',
|
||||
]"
|
||||
dense
|
||||
suffix="mm/s"
|
||||
hide-details="auto"
|
||||
:rules="[v => v > 0 || 'Minimum speed is 1']"
|
||||
outlined
|
||||
></v-combobox>
|
||||
dense
|
||||
></v-text-field>
|
||||
</settings-row>
|
||||
<v-divider class="my-2"></v-divider>
|
||||
</template>
|
||||
<template v-else-if="controlStyle === 'circle'">
|
||||
<settings-row :title="$t('Settings.ControlTab.MoveDistancesXYInMm')" :mobile-second-row="true">
|
||||
<v-combobox
|
||||
v-model="stepsCircleXY"
|
||||
hide-selected
|
||||
hide-details
|
||||
multiple
|
||||
small-chips
|
||||
:deletable-chips="true"
|
||||
append-icon=""
|
||||
<settings-row :title="$t('Settings.ControlTab.SpeedZ')">
|
||||
<v-text-field
|
||||
v-model="feedrateZ"
|
||||
@blur="blurFeedrateZ"
|
||||
type="number"
|
||||
:rules="[
|
||||
suffix="mm/s"
|
||||
hide-details="auto"
|
||||
:rules="[v => v > 0 || 'Minimum speed is 1']"
|
||||
outlined
|
||||
dense
|
||||
></v-text-field>
|
||||
</settings-row>
|
||||
<v-divider class="my-2"></v-divider>
|
||||
<template v-if="controlStyle === 'cross'">
|
||||
<settings-row :title="$t('Settings.ControlTab.MoveDistancesInMm')" :mobile-second-row="true">
|
||||
<v-combobox
|
||||
v-model="stepsAll"
|
||||
hide-selected
|
||||
hide-details
|
||||
multiple
|
||||
small-chips
|
||||
:deletable-chips="true"
|
||||
append-icon=""
|
||||
type="number"
|
||||
:rules="[
|
||||
v => v.length > 0 || 'Minimum 1 value',
|
||||
v => v.length < 9 || 'For narrow screens it is recommended to enter max. 3 values.',
|
||||
]"
|
||||
dense
|
||||
outlined
|
||||
></v-combobox>
|
||||
</settings-row>
|
||||
<v-divider class="my-2"></v-divider>
|
||||
</template>
|
||||
<template v-else-if="controlStyle === 'circle'">
|
||||
<settings-row :title="$t('Settings.ControlTab.MoveDistancesXYInMm')" :mobile-second-row="true">
|
||||
<v-combobox
|
||||
v-model="stepsCircleXY"
|
||||
hide-selected
|
||||
hide-details
|
||||
multiple
|
||||
small-chips
|
||||
:deletable-chips="true"
|
||||
append-icon=""
|
||||
type="number"
|
||||
:rules="[
|
||||
v => v.length > 0 || 'Minimum 1 value',
|
||||
v => v.length < 9 || 'For narrow screens it is recommended to enter max. 4 values.',
|
||||
]"
|
||||
dense
|
||||
outlined
|
||||
></v-combobox>
|
||||
</settings-row>
|
||||
<v-divider class="my-2"></v-divider>
|
||||
<settings-row :title="$t('Settings.ControlTab.MoveDistancesZInMm')" :mobile-second-row="true">
|
||||
<v-combobox
|
||||
v-model="stepsCircleZ"
|
||||
hide-selected
|
||||
hide-details
|
||||
multiple
|
||||
small-chips
|
||||
:deletable-chips="true"
|
||||
append-icon=""
|
||||
type="number"
|
||||
:rules="[
|
||||
dense
|
||||
outlined
|
||||
></v-combobox>
|
||||
</settings-row>
|
||||
<v-divider class="my-2"></v-divider>
|
||||
<settings-row :title="$t('Settings.ControlTab.MoveDistancesZInMm')" :mobile-second-row="true">
|
||||
<v-combobox
|
||||
v-model="stepsCircleZ"
|
||||
hide-selected
|
||||
hide-details
|
||||
multiple
|
||||
small-chips
|
||||
:deletable-chips="true"
|
||||
append-icon=""
|
||||
type="number"
|
||||
:rules="[
|
||||
v => v.length > 0 || 'Minimum 1 value',
|
||||
v => v.length < 9 || 'For narrow screens it is recommended to enter max. 4 values.',
|
||||
]"
|
||||
dense
|
||||
outlined
|
||||
></v-combobox>
|
||||
</settings-row>
|
||||
<v-divider class="my-2"></v-divider>
|
||||
</template>
|
||||
<template v-else>
|
||||
<settings-row :title="$t('Settings.ControlTab.MoveDistancesXYInMm')" :mobile-second-row="true">
|
||||
dense
|
||||
outlined
|
||||
></v-combobox>
|
||||
</settings-row>
|
||||
<v-divider class="my-2"></v-divider>
|
||||
</template>
|
||||
<template v-else>
|
||||
<settings-row :title="$t('Settings.ControlTab.MoveDistancesXYInMm')" :mobile-second-row="true">
|
||||
<v-combobox
|
||||
v-model="stepsXY"
|
||||
hide-selected
|
||||
hide-details
|
||||
multiple
|
||||
small-chips
|
||||
:deletable-chips="true"
|
||||
append-icon=""
|
||||
type="number"
|
||||
:rules="[
|
||||
v => v.length > 0 || 'Minimum 1 value',
|
||||
v => v.length < 9 || 'For narrow screens it is recommended to enter max. 3 values.',
|
||||
]"
|
||||
dense
|
||||
outlined
|
||||
></v-combobox>
|
||||
</settings-row>
|
||||
<v-divider class="my-2"></v-divider>
|
||||
<settings-row :title="$t('Settings.ControlTab.MoveDistancesZInMm')" :mobile-second-row="true">
|
||||
<v-combobox
|
||||
v-model="stepsZ"
|
||||
hide-selected
|
||||
hide-details
|
||||
multiple
|
||||
small-chips
|
||||
:deletable-chips="true"
|
||||
append-icon=""
|
||||
type="number"
|
||||
:rules="[
|
||||
v => v.length > 0 || 'Minimum 1 value',
|
||||
v => v.length < 9 || 'For narrow screens it is recommended to enter max. 3 values.',
|
||||
]"
|
||||
dense
|
||||
outlined
|
||||
></v-combobox>
|
||||
</settings-row>
|
||||
<v-divider class="my-2"></v-divider>
|
||||
</template>
|
||||
<settings-row :title="$t('Settings.ControlTab.MoveDistancesEInMm')" :mobile-second-row="true">
|
||||
<v-combobox
|
||||
v-model="stepsXY"
|
||||
v-model="feedamountsE"
|
||||
hide-selected
|
||||
hide-details
|
||||
hide-details="auto"
|
||||
multiple
|
||||
small-chips
|
||||
:deletable-chips="true"
|
||||
append-icon=""
|
||||
type="number"
|
||||
:rules="[
|
||||
v => v.length > 0 || 'Minimum 1 value',
|
||||
v => v.length < 9 || 'For narrow screens it is recommended to enter max. 3 values.',
|
||||
]"
|
||||
v => v.length > 0 || 'Minimum 1 value',
|
||||
v => v.length < 6 || 'For narrow screens it is recommended to enter max. 5 values.',
|
||||
]"
|
||||
dense
|
||||
outlined
|
||||
></v-combobox>
|
||||
</settings-row>
|
||||
<v-divider class="my-2"></v-divider>
|
||||
<settings-row :title="$t('Settings.ControlTab.MoveDistancesZInMm')" :mobile-second-row="true">
|
||||
<settings-row :title="$t('Settings.ControlTab.SpeedEInMms')" :mobile-second-row="true">
|
||||
<v-combobox
|
||||
v-model="stepsZ"
|
||||
v-model="feedratesE"
|
||||
hide-selected
|
||||
hide-details
|
||||
hide-details="auto"
|
||||
multiple
|
||||
small-chips
|
||||
:deletable-chips="true"
|
||||
append-icon=""
|
||||
type="number"
|
||||
:rules="[
|
||||
v => v.length > 0 || 'Minimum 1 value',
|
||||
v => v.length < 9 || 'For narrow screens it is recommended to enter max. 3 values.',
|
||||
]"
|
||||
v => v.length > 0 || 'Minimum 1 value',
|
||||
v => v.length < 6 || 'For narrow screens it is recommended to enter max. 5 values.',
|
||||
]"
|
||||
dense
|
||||
outlined
|
||||
></v-combobox>
|
||||
</settings-row>
|
||||
<v-divider class="my-2"></v-divider>
|
||||
</template>
|
||||
<settings-row :title="$t('Settings.ControlTab.MoveDistancesEInMm')" :mobile-second-row="true">
|
||||
<v-combobox
|
||||
v-model="feedamountsE"
|
||||
hide-selected
|
||||
hide-details="auto"
|
||||
multiple
|
||||
small-chips
|
||||
:deletable-chips="true"
|
||||
append-icon=""
|
||||
type="number"
|
||||
:rules="[
|
||||
v => v.length > 0 || 'Minimum 1 value',
|
||||
v => v.length < 6 || 'For narrow screens it is recommended to enter max. 5 values.',
|
||||
]"
|
||||
dense
|
||||
outlined
|
||||
></v-combobox>
|
||||
</settings-row>
|
||||
<v-divider class="my-2"></v-divider>
|
||||
<settings-row :title="$t('Settings.ControlTab.SpeedEInMms')" :mobile-second-row="true">
|
||||
<v-combobox
|
||||
v-model="feedratesE"
|
||||
hide-selected
|
||||
hide-details="auto"
|
||||
multiple
|
||||
small-chips
|
||||
:deletable-chips="true"
|
||||
append-icon=""
|
||||
type="number"
|
||||
:rules="[
|
||||
v => v.length > 0 || 'Minimum 1 value',
|
||||
v => v.length < 6 || 'For narrow screens it is recommended to enter max. 5 values.',
|
||||
]"
|
||||
dense
|
||||
outlined
|
||||
></v-combobox>
|
||||
</settings-row>
|
||||
</v-form>
|
||||
</v-card-text>
|
||||
</v-card>
|
||||
</v-form>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<script lang="ts">
|
||||
|
||||
@@ -24,7 +24,7 @@
|
||||
</style>
|
||||
|
||||
<template>
|
||||
<v-card :class="'panel '+cardClass+' '+(marginBottom ? 'mb-6' : '')+' '+(!expand ? 'expanded' : '')" :loading="loading">
|
||||
<v-card :class="'panel '+cardClass+' '+(marginBottom ? 'mb-3 mb-md-6' : '')+' '+(!expand ? 'expanded' : '')" :loading="loading">
|
||||
<v-toolbar flat dense :color="toolbarColor" :class="getToolbarClass" >
|
||||
<slot name="buttons-left"></slot>
|
||||
<v-toolbar-title class="d-flex align-center">
|
||||
|
||||
+12
-6
@@ -25,16 +25,22 @@ import VueToast from 'vue-toast-notification'
|
||||
import 'vue-toast-notification/dist/theme-sugar.css'
|
||||
import {WebSocketPlugin} from '@/plugins/webSocketClient'
|
||||
|
||||
//vue2-perfect-scrollbar
|
||||
import PerfectScrollbar from 'vue2-perfect-scrollbar'
|
||||
import 'vue2-perfect-scrollbar/dist/vue2-perfect-scrollbar.css'
|
||||
|
||||
Vue.use(PerfectScrollbar)
|
||||
|
||||
Vue.use(VueToast, {
|
||||
duration: 3000,
|
||||
})
|
||||
|
||||
//overlayerscrollbars-vue
|
||||
import { OverlayScrollbarsPlugin } from 'overlayscrollbars-vue'
|
||||
import 'overlayscrollbars/css/OverlayScrollbars.css'
|
||||
|
||||
Vue.use(OverlayScrollbarsPlugin, {
|
||||
className: 'os-theme-light',
|
||||
scrollbars: {
|
||||
visibility: 'auto',
|
||||
autoHide: 'scroll'
|
||||
}
|
||||
})
|
||||
|
||||
//vue-echarts-ts
|
||||
import { plugin } from 'echarts-for-vue'
|
||||
import * as echarts from 'echarts/core'
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
|
||||
.consoleScrollContainer {
|
||||
min-height: 200px;
|
||||
height: calc(100vh - 180px);
|
||||
height: calc(var(--app-height) - 180px);
|
||||
}
|
||||
|
||||
.gcode-command-field {
|
||||
@@ -60,13 +60,13 @@
|
||||
<v-col :class="this.consoleDirection === 'table' ? 'col' : 'col pt-0'">
|
||||
<v-card>
|
||||
<v-card-text class="pa-0">
|
||||
<perfect-scrollbar ref="consoleScroll" class="consoleScrollContainer d-flex flex-column">
|
||||
<overlay-scrollbars ref="consoleScroll" class="consoleScrollContainer d-flex flex-column">
|
||||
<console-table ref="console"
|
||||
:is-mini="false"
|
||||
:events="events"
|
||||
@command-click="commandClick"
|
||||
/>
|
||||
</perfect-scrollbar>
|
||||
</overlay-scrollbars>
|
||||
</v-card-text>
|
||||
</v-card>
|
||||
</v-col>
|
||||
|
||||
Reference in new issue
Block a user