refactor: removed theme editor

This commit is contained in:
Corentin Thomasset 2022-04-14 23:30:06 +02:00
parent 0af7d81abd
commit 8559fbd774
No known key found for this signature in database
GPG key ID: DBD997E935996158

View file

@ -4,7 +4,6 @@ import { layouts } from './layouts';
import { computed } from 'vue'; import { computed } from 'vue';
import { useRoute } from 'vue-router' import { useRoute } from 'vue-router'
import { darkThemeOverrides, lightThemeOverrides } from './themes' import { darkThemeOverrides, lightThemeOverrides } from './themes'
import { NThemeEditor } from 'naive-ui'; // TODO: remove before mep
import { import {
darkTheme, darkTheme,
NConfigProvider, NConfigProvider,
@ -24,12 +23,9 @@ const themeOverrides = computed(() => styleStore.isDarkTheme ? darkThemeOverride
<n-config-provider :theme="theme" :theme-overrides="themeOverrides"> <n-config-provider :theme="theme" :theme-overrides="themeOverrides">
<n-global-style /> <n-global-style />
<n-message-provider placement="bottom"> <n-message-provider placement="bottom">
<n-theme-editor> <component :is="layout">
<!-- TODO: remove before mep --> <router-view />
<component :is="layout"> </component>
<router-view />
</component>
</n-theme-editor>
</n-message-provider> </n-message-provider>
</n-config-provider> </n-config-provider>
</template> </template>