Русифицировать README и интерфейс HY2XS admin

This commit is contained in:
2026-04-25 23:51:21 +05:00
parent 84a4e94567
commit 2b4a45ad23
167 changed files with 632 additions and 699 deletions
+15 -15
View File
@@ -33,7 +33,7 @@ export default defineConfig(({ mode }: ConfigEnv): UserConfig => {
},
},
css: {
// CSS 预处理器
// CSS preprocessor
preprocessorOptions: {
//define global scss variable
scss: {
@@ -47,9 +47,9 @@ export default defineConfig(({ mode }: ConfigEnv): UserConfig => {
server: {
host: "0.0.0.0",
port: Number(env.VITE_APP_PORT),
open: true, // 运行是否自动打开浏览器
open: true, // Automatically open browser on start
proxy: {
// 反向代理解决跨域
// Reverse proxy for CORS in development
[env.VITE_APP_BASE_API]: {
target: "http://127.0.0.1:8081",
changeOrigin: true,
@@ -63,7 +63,7 @@ export default defineConfig(({ mode }: ConfigEnv): UserConfig => {
/* options */
}),
AutoImport({
// 自动导入 Vue 相关函数,如:ref, reactive, toRef
// Auto import Vue helpers: ref, reactive, toRef, etc.
imports: ["vue", "@vueuse/core"],
eslintrc: {
enabled: false, // Default `false`
@@ -71,36 +71,36 @@ export default defineConfig(({ mode }: ConfigEnv): UserConfig => {
globalsPropValue: true, // Default `true`, (true | false | 'readonly' | 'readable' | 'writable' | 'writeable')
},
resolvers: [
// 自动导入 Element Plus 相关函数,如:ElMessage, ElMessageBox... (带样式)
// Auto import Element Plus helpers with styles: ElMessage, ElMessageBox, etc.
ElementPlusResolver(),
// 自动导入图标组件
// Auto import icon components
IconsResolver({}),
],
vueTemplate: true, // 是否在 vue 模板中自动导入
dts: path.resolve(pathSrc, "types", "auto-imports.d.ts"), // 自动导入组件类型声明文件位置,默认根目录; false 关闭自动生成
vueTemplate: true, // Auto import in Vue templates
dts: path.resolve(pathSrc, "types", "auto-imports.d.ts"), // Type declarations for auto imports; false disables generation
}),
Components({
resolvers: [
// 自动注册图标组件
// Auto register icon components
IconsResolver({
enabledCollections: ["ep"], //@iconify-json/ep Element Plus 的图标库
enabledCollections: ["ep"], // @iconify-json/ep is the Element Plus icon collection
}),
// 自动导入 Element Plus 组件
// Auto import Element Plus components
ElementPlusResolver(),
],
dts: path.resolve(pathSrc, "types", "components.d.ts"), // 自动导入组件类型声明文件位置,默认根目录; false 关闭自动生成
dts: path.resolve(pathSrc, "types", "components.d.ts"), // Type declarations for auto components; false disables generation
}),
Icons({
// 自动安装图标库
// Auto install icon collections
autoInstall: true,
}),
createSvgIconsPlugin({
// 指定需要缓存的图标文件夹
// Icon folders to cache
iconDirs: [path.resolve(pathSrc, "assets/icons")],
// 指定symbolId格式
// symbolId format
symbolId: "icon-[dir]-[name]",
}),
],