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:
Stefan Dej authored and GitHub committed 2021-12-19 17:06:43 +01:00
1 parent c4181443e6
commit 7f6e6e5bdf
74 files changed
+1301 -867

No files matched your search

@@ -344,19 +344,19 @@ import ControlMixin from '@/components/mixins/control'
@Component
export default class ControlPanelCrossControl extends Mixins(BaseMixin, ControlMixin) {
get reverseX() {
return this.$store.state.gui.dashboard.control.reverseX
return this.$store.state.gui.control.reverseX
}
get reverseY() {
return this.$store.state.gui.dashboard.control.reverseY
return this.$store.state.gui.control.reverseY
}
get reverseZ() {
return this.$store.state.gui.dashboard.control.reverseZ
return this.$store.state.gui.control.reverseZ
}
get stepsXY() {
const steps = this.$store.state.gui.dashboard?.control?.stepsCircleXY ?? []
const steps = this.$store.state.gui.control?.stepsCircleXY ?? []
return Array.from(new Set([
...(steps ?? []),
@@ -364,7 +364,7 @@ export default class ControlPanelCrossControl extends Mixins(BaseMixin, ControlM
}
get stepsZ() {
const steps = this.$store.state.gui.dashboard?.control?.stepsCircleZ ?? []
const steps = this.$store.state.gui.control?.stepsCircleZ ?? []
return Array.from(new Set([
...(steps ?? []),