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
@@ -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>
|
||||
|
||||
Reference in new issue
Block a user