* 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>
28 lines
714 B
TypeScript
28 lines
714 B
TypeScript
import { Module } from 'vuex'
|
|
import { actions } from '@/store/gui/console/actions'
|
|
import { mutations } from '@/store/gui/console/mutations'
|
|
import { getters } from '@/store/gui/console/getters'
|
|
import {GuiConsoleState} from '@/store/gui/console/types'
|
|
|
|
export const getDefaultState = (): GuiConsoleState => {
|
|
return {
|
|
hideWaitTemperatures: true,
|
|
hideTlCommands: true,
|
|
direction: 'table',
|
|
entryStyle: 'default',
|
|
height: 300,
|
|
consolefilters: {},
|
|
}
|
|
}
|
|
|
|
// initial state
|
|
const state = getDefaultState()
|
|
|
|
// eslint-disable-next-line
|
|
export const console: Module<GuiConsoleState, any> = {
|
|
namespaced: true,
|
|
state,
|
|
getters,
|
|
actions,
|
|
mutations
|
|
} |