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
@@ -532,47 +532,47 @@ export default class ConfigFilesPanel extends Mixins(BaseMixin) {
|
||||
}
|
||||
|
||||
get countPerPage() {
|
||||
return this.$store.state.gui.settings.configfiles.countPerPage
|
||||
return this.$store.state.gui.view.configfiles.countPerPage
|
||||
}
|
||||
|
||||
set countPerPage(newVal) {
|
||||
this.$store.dispatch('gui/saveSetting', { name: 'settings.configfiles.countPerPage', value: newVal })
|
||||
this.$store.dispatch('gui/saveSetting', { name: 'view.configfiles.countPerPage', value: newVal })
|
||||
}
|
||||
|
||||
get showHiddenFiles() {
|
||||
return this.$store.state.gui.settings.configfiles.showHiddenFiles
|
||||
return this.$store.state.gui.view.configfiles.showHiddenFiles
|
||||
}
|
||||
|
||||
set showHiddenFiles(newVal) {
|
||||
this.$store.dispatch('gui/saveSetting', { name: 'settings.configfiles.showHiddenFiles', value: newVal })
|
||||
this.$store.dispatch('gui/saveSetting', { name: 'view.configfiles.showHiddenFiles', value: newVal })
|
||||
}
|
||||
|
||||
get hideBackupFiles() {
|
||||
return this.$store.state.gui.settings.configfiles.hideBackupFiles
|
||||
return this.$store.state.gui.view.configfiles.hideBackupFiles
|
||||
}
|
||||
|
||||
set hideBackupFiles(newVal) {
|
||||
this.$store.dispatch('gui/saveSetting', { name: 'settings.configfiles.hideBackupFiles', value: newVal })
|
||||
this.$store.dispatch('gui/saveSetting', { name: 'view.configfiles.hideBackupFiles', value: newVal })
|
||||
}
|
||||
|
||||
get sortBy() {
|
||||
return this.$store.state.gui.settings.configfiles.sortBy
|
||||
return this.$store.state.gui.view.configfiles.sortBy
|
||||
}
|
||||
|
||||
set sortBy(newVal) {
|
||||
if (newVal === undefined) newVal = 'filename'
|
||||
|
||||
this.$store.dispatch('gui/saveSetting', { name: 'settings.configfiles.sortBy', value: newVal })
|
||||
this.$store.dispatch('gui/saveSetting', { name: 'view.configfiles.sortBy', value: newVal })
|
||||
}
|
||||
|
||||
get sortDesc() {
|
||||
return this.$store.state.gui.settings.configfiles.sortDesc
|
||||
return this.$store.state.gui.view.configfiles.sortDesc
|
||||
}
|
||||
|
||||
set sortDesc(newVal) {
|
||||
if (newVal === undefined) newVal = false
|
||||
|
||||
this.$store.dispatch('gui/saveSetting', { name: 'settings.configfiles.sortDesc', value: newVal })
|
||||
this.$store.dispatch('gui/saveSetting', { name: 'view.configfiles.sortDesc', value: newVal })
|
||||
}
|
||||
|
||||
get registeredDirectories() {
|
||||
|
||||
Reference in new issue
Block a user