diff --git a/src/components/layout/AppNavDrawer.vue b/src/components/layout/AppNavDrawer.vue index 8fb928c2c1..29173ab64a 100644 --- a/src/components/layout/AppNavDrawer.vue +++ b/src/components/layout/AppNavDrawer.vue @@ -45,6 +45,13 @@ {{ $t('app.general.title.console') }} + + {{ $t('app.general.title.gcode_preview') }} + + @@ -137,6 +150,9 @@ export default class GcodePreviewCard extends Mixins(StateMixin, FilesMixin) { @Prop({ type: Boolean, default: false }) readonly menuCollapsed!: boolean + @Prop({ type: Boolean, default: false }) + readonly fullScreen!: boolean + @Ref('preview') readonly preview!: GcodePreview diff --git a/src/router/index.ts b/src/router/index.ts index a8bea48b6d..53a942f962 100644 --- a/src/router/index.ts +++ b/src/router/index.ts @@ -4,6 +4,7 @@ import VueRouter, { NavigationGuardNext, Route, RouteConfig } from 'vue-router' // Views import Dashboard from '@/views/Dashboard.vue' import Console from '@/views/Console.vue' +import GcodePreview from '@/views/GcodePreview.vue' import Jobs from '@/views/Jobs.vue' import Tune from '@/views/Tune.vue' import Diagnostics from '@/views/Diagnostics.vue' @@ -125,6 +126,11 @@ const routes: Array = [ name: 'Camera', component: FullscreenCamera }, + { + path: '/preview', + name: 'Gcode Preview', + component: GcodePreview + }, { path: '/icons', name: 'Icons', diff --git a/src/views/GcodePreview.vue b/src/views/GcodePreview.vue new file mode 100644 index 0000000000..741d3f23a2 --- /dev/null +++ b/src/views/GcodePreview.vue @@ -0,0 +1,16 @@ + + + diff --git a/src/views/Tune.vue b/src/views/Tune.vue index 70d21d9d1f..7e03d02b9b 100644 --- a/src/views/Tune.vue +++ b/src/views/Tune.vue @@ -8,7 +8,7 @@ cols="12" md="8" > - +