mirror of
https://github.com/MCSManager/MCSManager.git
synced 2025-01-18 15:04:04 +08:00
Feat: vite global support
This commit is contained in:
parent
17720d32c0
commit
db81fa3334
@ -1,7 +1,7 @@
|
||||
import { createI18n } from "vue-i18n";
|
||||
|
||||
import enUS from "@/lang/en_US.json";
|
||||
import zhCN from "@/lang/zh_CN.json";
|
||||
import enUS from "@languages/en_US.json";
|
||||
import zhCN from "@languages/zh_CN.json";
|
||||
|
||||
export const LANGUAGE_KEY = "LANGUAGE";
|
||||
|
||||
|
4
frontend/src/type.d.ts
vendored
4
frontend/src/type.d.ts
vendored
@ -3,3 +3,7 @@ declare module "*.vue" {
|
||||
const componentOptions: ComponentOptions;
|
||||
export default componentOptions;
|
||||
}
|
||||
|
||||
declare module "*.json" {
|
||||
export default any;
|
||||
}
|
||||
|
@ -1,23 +1,16 @@
|
||||
{
|
||||
"extends": "@vue/tsconfig/tsconfig.dom.json",
|
||||
"include": [
|
||||
"env.d.ts",
|
||||
"src/**/*",
|
||||
"src/**/*.vue",
|
||||
"src/config/**/*",
|
||||
"src/lang/**/*.json"
|
||||
],
|
||||
"include": ["env.d.ts", "src/**/*", "src/**/*.vue", "src/config/**/*", "src/lang/**/*.json"],
|
||||
"exclude": ["src/**/__tests__/*"],
|
||||
|
||||
"compilerOptions": {
|
||||
"composite": true,
|
||||
"baseUrl": ".",
|
||||
"paths": {
|
||||
"@/*": ["./src/*"]
|
||||
"@/*": ["./src/*"],
|
||||
"@languages": ["../languages/*"]
|
||||
},
|
||||
"moduleResolution": "node",
|
||||
"types": [
|
||||
"node"
|
||||
]
|
||||
"types": ["node"]
|
||||
}
|
||||
}
|
||||
|
@ -36,7 +36,8 @@ export default defineConfig({
|
||||
],
|
||||
resolve: {
|
||||
alias: {
|
||||
"@": fileURLToPath(new URL("./src", import.meta.url))
|
||||
"@": fileURLToPath(new URL("./src", import.meta.url)),
|
||||
"@languages": fileURLToPath(new URL("../languages", import.meta.url))
|
||||
}
|
||||
}
|
||||
});
|
||||
|
Loading…
Reference in New Issue
Block a user