* 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>
84 lines
3.2 KiB
Vue
84 lines
3.2 KiB
Vue
<style scoped>
|
|
|
|
</style>
|
|
|
|
<template>
|
|
<v-menu bottom :offset-y="true" :close-on-content-click="false" v-model="showMenu" v-if="throttledStateFlags.length">
|
|
<template v-slot: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>
|
|
</template>
|
|
|
|
<v-list min-width="300" max-width="600">
|
|
<template v-if="currentFlags.length">
|
|
<v-subheader class="" style="height: auto;">{{ $t("App.ThrottledStates.HeadlineCurrentFlags") }}</v-subheader>
|
|
<v-list-item v-for="(flag) in currentFlags" :key="flag" two-line>
|
|
<v-list-item-content class="py-0">
|
|
<v-list-item-title>{{ $t(`App.ThrottledStates.Title${convertName(flag)}`) }}</v-list-item-title>
|
|
<v-list-item-subtitle class="text-wrap">{{ $t(`App.ThrottledStates.Description${convertName(flag)}`) }}</v-list-item-subtitle>
|
|
</v-list-item-content>
|
|
</v-list-item>
|
|
</template>
|
|
<template v-if="previouslyFlags.length">
|
|
<v-divider class="my-2" v-if="currentFlags.length"></v-divider>
|
|
<v-subheader class="" style="height: auto;">{{ $t("App.ThrottledStates.HeadlinePreviouslyFlags") }}</v-subheader>
|
|
<v-list-item v-for="(flag) in previouslyFlags" :key="flag" two-line>
|
|
<v-list-item-content class="py-0">
|
|
<v-list-item-title>{{ $t(`App.ThrottledStates.Title${convertName(flag)}`) }}</v-list-item-title>
|
|
<v-list-item-subtitle class="text-wrap">{{ $t(`App.ThrottledStates.Description${convertName(flag)}`) }}</v-list-item-subtitle>
|
|
</v-list-item-content>
|
|
</v-list-item>
|
|
</template>
|
|
</v-list>
|
|
</v-menu>
|
|
</template>
|
|
|
|
<script lang="ts">
|
|
|
|
|
|
import {Component, Mixins} from 'vue-property-decorator'
|
|
import BaseMixin from './mixins/base'
|
|
|
|
@Component
|
|
export default class TheThrottledStates extends Mixins(BaseMixin) {
|
|
private showMenu = false
|
|
|
|
get throttledStateFlags() {
|
|
return this.$store.state.server.throttled_state.flags.filter((flag: string) => {
|
|
return flag !== '?'
|
|
})
|
|
|
|
/*return [
|
|
'Under-Voltage Detected',
|
|
'Frequency Capped',
|
|
'Currently Throttled',
|
|
'Temperature Limit Active',
|
|
'Previously Under-Volted',
|
|
'Previously Frequency Capped',
|
|
'Previously Throttled',
|
|
'Previously Temperature Limited'
|
|
]*/
|
|
}
|
|
|
|
get currentFlags() {
|
|
return this.throttledStateFlags.filter((flag: string) => {
|
|
return !flag.startsWith('Previously ')
|
|
})
|
|
}
|
|
|
|
get previouslyFlags() {
|
|
return this.throttledStateFlags.filter((flag: string) => {
|
|
return flag.startsWith('Previously ')
|
|
})
|
|
}
|
|
|
|
convertName(flag: string): string {
|
|
flag = flag.replace(/ /g, '').replace(/-/g, '')
|
|
flag = flag.charAt(0).toUpperCase() + flag.slice(1)
|
|
|
|
return flag
|
|
}
|
|
}
|
|
</script>
|