From 7cfe56d727deac97cbbc0393ae1699fc72c1226e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Milorad=20FIlipovi=C4=87?= Date: Sun, 1 Sep 2024 20:03:10 +0200 Subject: [PATCH] refactor(editor): Migrate `MainSidebar.vue` to composition API (no-changelog) (#10538) --- packages/editor-ui/src/App.vue | 8 +- .../editor-ui/src/components/MainSidebar.vue | 566 +++++++++--------- 2 files changed, 271 insertions(+), 303 deletions(-) diff --git a/packages/editor-ui/src/App.vue b/packages/editor-ui/src/App.vue index d348f6ae7..03a402311 100644 --- a/packages/editor-ui/src/App.vue +++ b/packages/editor-ui/src/App.vue @@ -11,10 +11,10 @@ import { loadLanguage } from '@/plugins/i18n'; import { useExternalHooks } from '@/composables/useExternalHooks'; import { APP_MODALS_ELEMENT_ID, HIRING_BANNER, VIEWS } from '@/constants'; import { useRootStore } from '@/stores/root.store'; -import { useAssistantStore } from './stores/assistant.store'; -import { useUIStore } from './stores/ui.store'; -import { useUsersStore } from './stores/users.store'; -import { useSettingsStore } from './stores/settings.store'; +import { useAssistantStore } from '@/stores/assistant.store'; +import { useUIStore } from '@/stores/ui.store'; +import { useUsersStore } from '@/stores/users.store'; +import { useSettingsStore } from '@/stores/settings.store'; import { useHistoryHelper } from '@/composables/useHistoryHelper'; const route = useRoute(); diff --git a/packages/editor-ui/src/components/MainSidebar.vue b/packages/editor-ui/src/components/MainSidebar.vue index 3cff24734..4ae570141 100644 --- a/packages/editor-ui/src/components/MainSidebar.vue +++ b/packages/editor-ui/src/components/MainSidebar.vue @@ -1,317 +1,285 @@ -