feat: backup/restore/default moonraker db (#476)
* refactor: reset dbCheckboxes Signed-off-by: Stefan Dej <meteyou@gmail.com> * refactor: rework moonraker db reset Signed-off-by: Stefan Dej <meteyou@gmail.com> * feat: add function to create a mainsail db backup Signed-off-by: Stefan Dej <meteyou@gmail.com> * refactor: fix type of dbCheckboxes Signed-off-by: Stefan Dej <meteyou@gmail.com> * refactor: first restore test Signed-off-by: Stefan Dej <meteyou@gmail.com> * feat: restore db from json file Signed-off-by: Stefan Dej <meteyou@gmail.com> * refactor: rework gui store Signed-off-by: Stefan Dej <meteyou@gmail.com> * fix: rework gui store issues Signed-off-by: Stefan Dej <meteyou@gmail.com> * fix: rework gui store issues with extruder panel Signed-off-by: Stefan Dej <meteyou@gmail.com> * refactor: rename gui/macrogroups to gui/macros and move back to mainsail namespace Signed-off-by: Stefan Dej <meteyou@gmail.com> * fix: ignore simple hide macros settings in expert macro mode Signed-off-by: Stefan Dej <meteyou@gmail.com> * fix: init load bug Signed-off-by: Stefan Dej <meteyou@gmail.com> * refactor: rename gui/consolefilter to gui/console and move back to mainsail namespace and update gui/macros Signed-off-by: Stefan Dej <meteyou@gmail.com> * refactor: remove old function in gui/macros Signed-off-by: Stefan Dej <meteyou@gmail.com> * refactor: rework gui/presets Signed-off-by: Stefan Dej <meteyou@gmail.com> * refactor: rework gui/gcodehistory Signed-off-by: Stefan Dej <meteyou@gmail.com> * refactor: add all gui restart actions in gui restart action Signed-off-by: Stefan Dej <meteyou@gmail.com> * refactor: rework gui/remoteprinters Signed-off-by: Stefan Dej <meteyou@gmail.com> * fix: control store gets Signed-off-by: Stefan Dej <meteyou@gmail.com> * refactor: rework reset moonraker db in interface settings Signed-off-by: Stefan Dej <meteyou@gmail.com> * refactor: rework backup moonraker DB Signed-off-by: Stefan Dej <meteyou@gmail.com> * refactor: rework restore moonraker db Signed-off-by: Stefan Dej <meteyou@gmail.com> * bugfix: backup/restore moonraker db locale Signed-off-by: Stefan Dej <meteyou@gmail.com> * bugfix: backup/restore moonraker db locale, add tempchart Signed-off-by: Stefan Dej <meteyou@gmail.com> * fix: change tempchart settings wrong store path Signed-off-by: Stefan Dej <meteyou@gmail.com> * fix: add view locale to db backup/restore and delete old locale Signed-off-by: Stefan Dej <meteyou@gmail.com> * feat: use /config/.theme/default.json when reset moonraker db to fill in default values after reset Signed-off-by: Stefan Dej <meteyou@gmail.com> * feat: use /config/.theme/default.json when mainsail will be loaded the first time Signed-off-by: Stefan Dej <meteyou@gmail.com> * refactor: add description to backup dialog Signed-off-by: Stefan Dej <meteyou@gmail.com> * fix: save macrogroup update Signed-off-by: Stefan Dej <meteyou@gmail.com>
This commit is contained in:
1 parent
c4181443e6
commit
7f6e6e5bdf
74 files changed
+1301
-867
No files matched your search
@@ -68,7 +68,7 @@
|
||||
import Component from 'vue-class-component'
|
||||
import {Mixins, Prop, Watch} from 'vue-property-decorator'
|
||||
import BaseMixin from '@/components/mixins/base'
|
||||
import {GuiMacrogroupsStateMacrogroupMacro} from '@/store/gui/macrogroups/types'
|
||||
import {GuiMacrosStateMacrogroupMacro} from '@/store/gui/macros/types'
|
||||
|
||||
interface param {
|
||||
type: 'int' | 'double' | 'string' | null,
|
||||
@@ -85,7 +85,7 @@ export default class MacroButton extends Mixins(BaseMixin) {
|
||||
private paramArray: string[] = []
|
||||
private params: params = {}
|
||||
|
||||
@Prop({ required: true }) readonly macro!: GuiMacrogroupsStateMacrogroupMacro
|
||||
@Prop({ required: true }) readonly macro!: GuiMacrosStateMacrogroupMacro
|
||||
@Prop({ default: 'primary' }) readonly color!: string
|
||||
|
||||
get klipperMacro() {
|
||||
|
||||
@@ -106,11 +106,11 @@ export default class MiscellaneousSlider extends Mixins(BaseMixin) {
|
||||
}
|
||||
|
||||
get lockSliders() {
|
||||
return this.$store.state.gui.general.lockSlidersOnTouchDevices
|
||||
return this.$store.state.gui.uiSettings.lockSlidersOnTouchDevices
|
||||
}
|
||||
|
||||
get lockSlidersDelay() {
|
||||
return this.$store.state.gui.general.lockSlidersDelay
|
||||
return this.$store.state.gui.uiSettings.lockSlidersDelay
|
||||
}
|
||||
|
||||
@Debounce(500)
|
||||
|
||||
@@ -119,11 +119,11 @@ export default class ToolSlider extends Mixins(BaseMixin) {
|
||||
}
|
||||
|
||||
get lockSliders() {
|
||||
return this.$store.state.gui.general.lockSlidersOnTouchDevices
|
||||
return this.$store.state.gui.uiSettings.lockSlidersOnTouchDevices
|
||||
}
|
||||
|
||||
get lockSlidersDelay() {
|
||||
return this.$store.state.gui.general.lockSlidersDelay
|
||||
return this.$store.state.gui.uiSettings.lockSlidersDelay
|
||||
}
|
||||
|
||||
get colorBar() {
|
||||
|
||||
Reference in new issue
Block a user