From aa2a9b9be2c22e16831e77fedb5c9edd2ac4bbd2 Mon Sep 17 00:00:00 2001 From: Jonatan Heyman Date: Tue, 7 Jan 2025 16:58:47 +0100 Subject: [PATCH] Refactor editior instance creation and settings management - Refactor settings management into separate pinia store - Move creation of editor instances into editorCacheStore - Read settings directly from the settingsStore instead of passing it from App to Editor to the editor instance --- src/components/App.vue | 63 +++--------------- src/components/Editor.vue | 124 +++-------------------------------- src/editor/editor.js | 8 +-- src/stores/editor-cache.js | 93 +++++++++++++++++++++++++- src/stores/settings-store.js | 49 ++++++++++++++ 5 files changed, 164 insertions(+), 173 deletions(-) create mode 100644 src/stores/settings-store.js diff --git a/src/components/App.vue b/src/components/App.vue index 404e8c11..dd3c6809 100644 --- a/src/components/App.vue +++ b/src/components/App.vue @@ -1,9 +1,10 @@