From 4a50c49211654758d391b39d78fe4d171afc1f19 Mon Sep 17 00:00:00 2001 From: tamaina Date: Sat, 28 May 2022 21:59:23 +0900 Subject: [PATCH] Fix theme import (#8749) --- packages/client/@types/theme.d.ts | 8 +-- .../src/pages/settings/theme.manage.vue | 11 +++-- packages/client/src/pages/settings/theme.vue | 5 +- packages/client/src/pages/theme-editor.vue | 4 +- packages/client/src/scripts/theme.ts | 49 +++++++++++-------- 5 files changed, 46 insertions(+), 31 deletions(-) diff --git a/packages/client/@types/theme.d.ts b/packages/client/@types/theme.d.ts index b8b906b82e..67f724a9aa 100644 --- a/packages/client/@types/theme.d.ts +++ b/packages/client/@types/theme.d.ts @@ -1,5 +1,7 @@ -import { Theme } from '../src/scripts/theme'; - declare module '@/themes/*.json5' { - export = Theme; + import { Theme } from "@/scripts/theme"; + + const theme: Theme; + + export default theme; } diff --git a/packages/client/src/pages/settings/theme.manage.vue b/packages/client/src/pages/settings/theme.manage.vue index 7da439f9c0..94b2d24455 100644 --- a/packages/client/src/pages/settings/theme.manage.vue +++ b/packages/client/src/pages/settings/theme.manage.vue @@ -10,13 +10,13 @@