* refactor(appbar): change buttons to new design
* refactor(appbar): change height and add pritnername
* refactor: small sidebar
* refactor(vuetify): define parts of the mainsail theme and expose colors to css
Signed-off-by: steadyjaw <martin.keilaus@gmail.com>
* refactor: ui settings add missing divider
Signed-off-by: steadyjaw <martin.keilaus@gmail.com>
* refactor: add farm printer selection and menu to new top and sidebar, added icons to version-tooltip
Signed-off-by: steadyjaw <martin.keilaus@gmail.com>
* refactor: make topbar buttons hideable via ui settings
Signed-off-by: steadyjaw <martin.keilaus@gmail.com>
* refactor: move miniConsole buttons to toolbar and make'em collapsible
Signed-off-by: steadyjaw <martin.keilaus@gmail.com>
* refactor: set matching colors for buttons on console page
Signed-off-by: steadyjaw <martin.keilaus@gmail.com>
* refactor: use colornames from theme and set play/resume button to green
Signed-off-by: steadyjaw <martin.keilaus@gmail.com>
* fix: correct visibility of hide buttons on collapse
Signed-off-by: steadyjaw <martin.keilaus@gmail.com>
* feature: add virtual tab button to console-input on touch devices
Signed-off-by: steadyjaw <martin.keilaus@gmail.com>
* refactor: remove hide e-stop button setting
Signed-off-by: steadyjaw <martin.keilaus@gmail.com>
* fix: add reactivity to hide upload and print button functionality
Signed-off-by: steadyjaw <martin.keilaus@gmail.com>
* refactor: move logo to topbar and clip menu under topbar
Signed-off-by: steadyjaw <martin.keilaus@gmail.com>
* refactor: remove unused TheSidebarPrinterMenu
Signed-off-by: steadyjaw <martin.keilaus@gmail.com>
* feature: create and add about component to sidebar ...no dialog on click yet
Signed-off-by: steadyjaw <martin.keilaus@gmail.com>
* fix: correct appearance of the close icon from interface settings dialog
Signed-off-by: steadyjaw <martin.keilaus@gmail.com>
* Revert "fix: correct appearance of the close icon from interface settings dialog"
This reverts commit f66e29d4f2.
* refactor: close ui settings on ESC and change close icon to tile
Signed-off-by: steadyjaw <martin.keilaus@gmail.com>
* refactor: change font style in wide sidebar and extend width of wide menu
Signed-off-by: steadyjaw <martin.keilaus@gmail.com>
* refactor: change menu style ui-settings-entry to dropdown
Signed-off-by: steadyjaw <martin.keilaus@gmail.com>
* refactor: correct variablenames in locales
Signed-off-by: steadyjaw <martin.keilaus@gmail.com>
* refactor: re-do menuStyle setting implementation
Signed-off-by: steadyjaw <martin.keilaus@gmail.com>
* refactor(miniconsole): change collapse button to tile and remove empty cols and row in template
Signed-off-by: steadyjaw <martin.keilaus@gmail.com>
* refactor: gui variables and button appearance in toolbars
* move some vars to configure gui appearance to variables.ts
* force buttons in bars to 100% height
* set icon button width to toolbar-heigth
Signed-off-by: steadyjaw <martin.keilaus@gmail.com>
* refactor(heightmap): add autofocus and close on ESC to dialogs
Signed-off-by: steadyjaw <martin.keilaus@gmail.com>
* refactor(throttledStates): bigger dropdownlist in favor of readability
Signed-off-by: steadyjaw <martin.keilaus@gmail.com>
* refactor(confFiles): change imageviewer topbar to darkcolor and move close button to left
Signed-off-by: steadyjaw <martin.keilaus@gmail.com>
* fix: camera-dropdown visability condition
Signed-off-by: steadyjaw <martin.keilaus@gmail.com>
* refactor(history): ad close on ESC on dialogs
Signed-off-by: steadyjaw <martin.keilaus@gmail.com>
* refactor: button overhaul
Signed-off-by: steadyjaw <martin.keilaus@gmail.com>
* fix: correct navigation width and change variablenames
Signed-off-by: steadyjaw <martin.keilaus@gmail.com>
* fix: change more close buttons to tiles
Signed-off-by: steadyjaw <martin.keilaus@gmail.com>
115 lines
4.1 KiB
Vue
115 lines
4.1 KiB
Vue
<template>
|
|
<v-dialog
|
|
transition="dialog-bottom-transition"
|
|
max-width="600"
|
|
scrollable
|
|
v-model="isOpen"
|
|
: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>
|
|
</template>
|
|
<template v-else>
|
|
<v-btn
|
|
class="gcode-command-btn px-2 minwidth-0"
|
|
color="lightgray"
|
|
:small="isMini"
|
|
v-bind="attrs"
|
|
v-on="on">
|
|
<v-icon>mdi-help</v-icon>
|
|
</v-btn>
|
|
</template>
|
|
</template>
|
|
<template #default>
|
|
<panel :title="$t('Console.CommandList')" icon="mdi-help" card-class="command-help-dialog" :margin-bottom="false">
|
|
<template v-slot:buttons>
|
|
<v-btn icon tile @click="isOpen = false"><v-icon>mdi-close-thick</v-icon></v-btn>
|
|
</template>
|
|
<v-card-title>
|
|
<v-row>
|
|
<v-col>
|
|
<v-text-field
|
|
v-model="cmdListSearch"
|
|
label="Search"
|
|
outlined
|
|
hide-details
|
|
clearable
|
|
dense
|
|
></v-text-field>
|
|
</v-col>
|
|
</v-row>
|
|
</v-card-title>
|
|
<v-divider></v-divider>
|
|
<overlay-scrollbars :class="'command-help-content '+(isMobile ? '' : 'height300')">
|
|
<v-card-text class="pt-0">
|
|
<v-row>
|
|
<v-col>
|
|
<v-list>
|
|
<v-list-item
|
|
v-for="cmd of helplistFiltered"
|
|
:key="cmd.commandLow"
|
|
class="px-0"
|
|
two-line>
|
|
<v-list-item-content class="px-0">
|
|
<v-list-item-title class="blue--text font-weight-bold cursor-pointer" @click="$emit('onCommand', cmd.command); isOpen = false">{{ cmd.command }}</v-list-item-title>
|
|
<v-list-item-subtitle class="text-wrap">{{ cmd.description }}</v-list-item-subtitle>
|
|
</v-list-item-content>
|
|
</v-list-item>
|
|
</v-list>
|
|
</v-col>
|
|
</v-row>
|
|
</v-card-text>
|
|
</overlay-scrollbars>
|
|
</panel>
|
|
</template>
|
|
</v-dialog>
|
|
</template>
|
|
|
|
<script lang="ts">
|
|
import BaseMixin from './mixins/base'
|
|
import {CommandHelp} from '@/store/printer/types'
|
|
import {Mixins, Prop, Watch} from 'vue-property-decorator'
|
|
import Component from 'vue-class-component'
|
|
import Panel from '@/components/ui/Panel.vue'
|
|
|
|
@Component({
|
|
components: {Panel}
|
|
})
|
|
|
|
export default class CommandHelpModal extends Mixins(BaseMixin) {
|
|
@Prop({ required: false, default: false }) isMini!: boolean;
|
|
@Prop({ required: false, default: false }) inToolbar!: boolean;
|
|
|
|
cmdListSearch = '';
|
|
isOpen = false;
|
|
|
|
get helplist(): CommandHelp[] {
|
|
return this.$store.state.printer.helplist ?? []
|
|
}
|
|
|
|
get helplistFiltered(): CommandHelp[] {
|
|
return this.helplist
|
|
.filter(cmd => typeof(cmd.description) === 'string' && (!this.cmdListSearch || cmd.commandLow.includes(this.cmdListSearch.toLowerCase())))
|
|
.sort((a, b) => a.commandLow.localeCompare(b.commandLow))
|
|
}
|
|
|
|
@Watch('isOpen')
|
|
onIsOpen(val: boolean): void {
|
|
if (!val) {
|
|
this.cmdListSearch = ''
|
|
}
|
|
}
|
|
}
|
|
</script>
|
|
|
|
<style lang="scss" scoped>
|
|
.command-help-content {
|
|
overflow-x: hidden;
|
|
|
|
&.height300 {
|
|
height: 300px;
|
|
}
|
|
}
|
|
</style>
|