From 58493f1a1d63a61b356a78e18207110013cd554a Mon Sep 17 00:00:00 2001 From: Pedro Lamas Date: Fri, 4 Sep 2026 18:11:21 +0100 Subject: [PATCH 1/2] refactor: Vuex state factory export Signed-off-by: Pedro Lamas --- src/components/layout/AppBar.vue | 2 +- src/components/settings/FileEditorSettings.vue | 2 +- src/components/settings/GcodePreviewSettings.vue | 2 +- src/components/settings/MmuSettings.vue | 2 +- src/components/settings/SpoolmanSettings.vue | 2 +- src/components/settings/ToolheadSettings.vue | 2 +- src/components/settings/WarningsSettings.vue | 2 +- .../widgets/diagnostics/config/MetricsConfigStep.vue | 2 +- src/store/afc/mutations.ts | 2 +- src/store/afc/state.ts | 4 +--- src/store/analysis/mutations.ts | 2 +- src/store/analysis/state.ts | 4 +--- src/store/announcements/mutations.ts | 2 +- src/store/announcements/state.ts | 4 +--- src/store/auth/mutations.ts | 2 +- src/store/auth/state.ts | 4 +--- src/store/charts/mutations.ts | 2 +- src/store/charts/state.ts | 4 +--- src/store/config/mutations.ts | 2 +- src/store/config/state.ts | 4 +--- src/store/console/mutations.ts | 2 +- src/store/console/state.ts | 4 +--- src/store/database/mutations.ts | 2 +- src/store/database/state.ts | 4 +--- src/store/files/mutations.ts | 2 +- src/store/files/state.ts | 4 +--- src/store/gcodePreview/mutations.ts | 2 +- src/store/gcodePreview/state.ts | 4 +--- src/store/history/mutations.ts | 2 +- src/store/history/state.ts | 4 +--- src/store/jobQueue/mutations.ts | 2 +- src/store/jobQueue/state.ts | 4 +--- src/store/layout/mutations.ts | 10 +++++----- src/store/layout/state.ts | 4 +--- src/store/macros/mutations.ts | 2 +- src/store/macros/state.ts | 4 +--- src/store/mesh/mutations.ts | 2 +- src/store/mesh/state.ts | 4 +--- src/store/mmu/mutations.ts | 2 +- src/store/mmu/state.ts | 4 +--- src/store/notifications/mutations.ts | 2 +- src/store/notifications/state.ts | 4 +--- src/store/power/mutations.ts | 2 +- src/store/power/state.ts | 4 +--- src/store/printer/mutations.ts | 2 +- src/store/printer/state.ts | 4 +--- src/store/sensors/mutations.ts | 2 +- src/store/sensors/state.ts | 4 +--- src/store/server/mutations.ts | 2 +- src/store/server/state.ts | 4 +--- src/store/socket/mutations.ts | 2 +- src/store/socket/state.ts | 4 +--- src/store/spoolman/mutations.ts | 2 +- src/store/spoolman/state.ts | 4 +--- src/store/timelapse/mutations.ts | 2 +- src/store/timelapse/state.ts | 4 +--- src/store/types.ts | 2 +- src/store/version/mutations.ts | 2 +- src/store/version/state.ts | 4 +--- src/store/wait/mutations.ts | 2 +- src/store/wait/state.ts | 4 +--- src/store/webcams/mutations.ts | 2 +- src/store/webcams/state.ts | 4 +--- src/views/Diagnostics.vue | 2 +- 64 files changed, 68 insertions(+), 122 deletions(-) diff --git a/src/components/layout/AppBar.vue b/src/components/layout/AppBar.vue index 5f4e4c898f..177921a0e0 100644 --- a/src/components/layout/AppBar.vue +++ b/src/components/layout/AppBar.vue @@ -242,7 +242,7 @@ import UserPasswordDialog from '@/components/settings/auth/UserPasswordDialog.vu import PendingChangesDialog from '@/components/settings/PendingChangesDialog.vue' import AppSaveConfigAndRestartBtn from './AppSaveConfigAndRestartBtn.vue' import AppUploadAndPrintBtn from './AppUploadAndPrintBtn.vue' -import { defaultState } from '@/store/layout/state' +import { state as defaultState } from '@/store/layout/state' import StateMixin from '@/mixins/state' import ServicesMixin from '@/mixins/services' import FilesMixin from '@/mixins/files' diff --git a/src/components/settings/FileEditorSettings.vue b/src/components/settings/FileEditorSettings.vue index 5d0cac6005..fd0426e7bd 100644 --- a/src/components/settings/FileEditorSettings.vue +++ b/src/components/settings/FileEditorSettings.vue @@ -85,7 +85,7 @@