Улучшение фронта

This commit is contained in:
2026-02-08 07:22:46 +07:00
parent a3cdf02d48
commit ca1783fe7d
24 changed files with 686 additions and 280 deletions

View File

@@ -3,6 +3,9 @@ import vue from '@vitejs/plugin-vue'
import AutoImport from 'unplugin-auto-import/vite'
import Components from 'unplugin-vue-components/vite'
import { resolve } from 'path'
import { readFileSync } from 'fs'
const wailsConfig = JSON.parse(readFileSync(resolve(__dirname, '../wails.json'), 'utf-8'))
export default defineConfig({
plugins: [
@@ -14,6 +17,13 @@ export default defineConfig({
'vue-router',
'vue-i18n',
'pinia',
{
'@core/api/index.js': ['api'],
'@core/constants.js': [
'SERVICE_NAMES', 'SITE_STATUS', 'PROXY_STATUS', 'VACCESS_TYPE',
'CERT_MODE', 'THEME', 'LOCALE', 'STORAGE_KEYS', 'AUTO_REFRESH_INTERVAL', 'APP_VERSION',
],
},
],
dirs: [
'src/Core/composables',
@@ -41,6 +51,10 @@ export default defineConfig({
port: 4444,
},
define: {
__APP_VERSION__: JSON.stringify(wailsConfig.info.productVersion),
},
resolve: {
alias: {
'@': resolve(__dirname, 'src'),