多语言: - 新增 vue-i18n,创建 src/locales/zh.ts、en.ts 语言包,按功能模块组织 key - 新增 src/i18n.ts,语言检测优先级:localStorage > navigator.language(zh→中文,其他→英文)> 兜底英文 - 导航栏新增语言切换按钮(中/EN 一键切换),选择持久化到 localStorage - 全部 View/Component 硬编码中文替换为 t() 调用,stores/auth.ts 错误消息同样国际化 - index.html lang 属性运行时动态更新 Logo: - 替换 Vue 默认 logo 为 LmVPN 品牌 Logo(盾牌+网络节点) - Header 导航栏:Logo 图标 + "LmVPN" 文字 - 首页标题区:大尺寸 Logo 展示 - Favicon 替换为 SVG 格式
36 lines
831 B
JSON
36 lines
831 B
JSON
{
|
|
"name": "frontend",
|
|
"version": "0.0.0",
|
|
"private": true,
|
|
"type": "module",
|
|
"scripts": {
|
|
"dev": "vite",
|
|
"build": "run-p type-check \"build-only {@}\" --",
|
|
"preview": "vite preview",
|
|
"build-only": "vite build",
|
|
"type-check": "vue-tsc --build"
|
|
},
|
|
"dependencies": {
|
|
"pinia": "^3.0.4",
|
|
"vue": "^3.5.38",
|
|
"vue-i18n": "^11.4.6",
|
|
"vue-router": "^5.1.0"
|
|
},
|
|
"devDependencies": {
|
|
"@tailwindcss/vite": "^4.3.2",
|
|
"@tsconfig/node24": "^24.0.4",
|
|
"@types/node": "^24.13.2",
|
|
"@vitejs/plugin-vue": "^6.0.7",
|
|
"@vue/tsconfig": "^0.9.1",
|
|
"npm-run-all2": "^9.0.2",
|
|
"tailwindcss": "^4.3.2",
|
|
"typescript": "~6.0.0",
|
|
"vite": "^8.0.16",
|
|
"vite-plugin-vue-devtools": "^8.1.2",
|
|
"vue-tsc": "^3.3.5"
|
|
},
|
|
"engines": {
|
|
"node": "^22.18.0 || >=24.12.0"
|
|
}
|
|
}
|