diff --git a/dashboard/src/components/LanguageSwitcher.vue b/dashboard/src/components/LanguageSwitcher.vue index ef0ce3fb..63310424 100644 --- a/dashboard/src/components/LanguageSwitcher.vue +++ b/dashboard/src/components/LanguageSwitcher.vue @@ -8,12 +8,18 @@ - diff --git a/dashboard/src/components/common/BackButton.vue b/dashboard/src/components/common/BackButton.vue index 24fb005f..6ba7e9f1 100644 --- a/dashboard/src/components/common/BackButton.vue +++ b/dashboard/src/components/common/BackButton.vue @@ -4,17 +4,20 @@ - diff --git a/dashboard/src/env.d.ts b/dashboard/src/env.d.ts new file mode 100644 index 00000000..736151ed --- /dev/null +++ b/dashboard/src/env.d.ts @@ -0,0 +1,21 @@ + +declare module "*.wav" { + const value: string; + export default value; +} + +declare module "*.mp3" { + const value: string; + export default value; +} + +declare module "*.svg" { + const value: string; + export default value; +} + +declare module "~icons/*" { + import type { DefineComponent } from "vue"; + const component: DefineComponent<{}, {}, any>; + export default component; +} diff --git a/dashboard/src/global.d.ts b/dashboard/src/global.d.ts index 7cf4dc52..d045ee8c 100644 --- a/dashboard/src/global.d.ts +++ b/dashboard/src/global.d.ts @@ -10,19 +10,10 @@ declare global { } function __(str: string, values?: any[]): string; +} - declare module "*.wav" { - const value: string; - export default value; - } - - declare module "*.mp3" { - const value: string; - export default value; - } - - declare module "*.svg" { - const value: string; - export default value; +declare module "@vue/runtime-core" { + interface ComponentCustomProperties { + __(str: string, values?: any[]): string; } } diff --git a/dashboard/src/layouts/Layout.vue b/dashboard/src/layouts/Layout.vue index dffd4767..461dd64d 100644 --- a/dashboard/src/layouts/Layout.vue +++ b/dashboard/src/layouts/Layout.vue @@ -9,6 +9,6 @@ -