提交 b422b414 authored 作者: yanyalin's avatar yanyalin

初次提交

上级 ff30f52b
{
"recommendations": ["Vue.volar", "Vue.vscode-typescript-vue-plugin"]
}
VITE_APP_NAME=ui
VITE_BASE_PATH=/ui/
VITE_BASE_PATH=/
VITE_APP_PORT=3000
VITE_APP_TITLE = 'MaxKB'
\ No newline at end of file
VITE_APP_TITLE=快际新云
\ No newline at end of file
......@@ -9,7 +9,7 @@
viewport-fit=cover"
/>
<base target="_blank" />
<title>%VITE_APP_TITLE%</title>
<title>快际新云</title>
</head>
<body>
<div id="app"></div>
......
......@@ -4,22 +4,23 @@
"private": true,
"scripts": {
"dev": "vite",
"build": "run-p type-check build-only",
"build": "vite build",
"preview": "vite preview",
"test:unit": "vitest",
"build-only": "vite build",
"type-check": "vue-tsc --noEmit -p tsconfig.vitest.json --composite false",
"lint": "eslint . --ext .vue,.js,.jsx,.cjs,.mjs,.ts,.tsx,.cts,.mts --fix --ignore-path .gitignore",
"format": "prettier --write src/"
},
"dependencies": {
"@ctrl/tinycolor": "^4.1.0",
"@element-plus/icons-vue": "^2.3.1",
"@logicflow/core": "^1.2.27",
"@logicflow/extension": "^1.2.27",
"@vueuse/core": "^10.9.0",
"axios": "^0.28.0",
"codemirror": "^6.0.1",
"cropperjs": "^1.6.2",
"dayjs": "^1.11.13",
"echarts": "^5.5.0",
"element-plus": "^2.5.6",
"file-saver": "^2.0.5",
......@@ -27,6 +28,7 @@
"install": "^0.13.0",
"katex": "^0.16.10",
"lodash": "^4.17.21",
"lodash-unified": "^1.0.3",
"marked": "^12.0.2",
"md-editor-v3": "^4.16.7",
"medium-zoom": "^1.1.0",
......@@ -50,6 +52,7 @@
"@tsconfig/node18": "^18.2.0",
"@types/file-saver": "^2.0.7",
"@types/jsdom": "^21.1.1",
"@types/lodash": "^4.17.7",
"@types/node": "^18.17.5",
"@types/nprogress": "^0.2.0",
"@vitejs/plugin-vue": "^4.3.1",
......@@ -65,7 +68,7 @@
"sass": "^1.66.1",
"typescript": "~5.1.6",
"unplugin-vue-define-options": "^1.3.18",
"vite": "^4.4.9",
"vite": "^5.4.4",
"vitest": "^0.34.2",
"vue-tsc": "^1.8.8"
}
......
This source diff could not be displayed because it is too large. You can view the blob instead.
import { fileURLToPath, URL } from 'node:url'
import type { ProxyOptions } from 'vite'
import { defineConfig, loadEnv } from 'vite'
import { defineConfig } from 'vite'
import vue from '@vitejs/plugin-vue'
import DefineOptions from 'unplugin-vue-define-options/vite'
const envDir = './env'
// https://vitejs.dev/config/
export default defineConfig(({ mode }) => {
const ENV = loadEnv(mode, envDir)
const proxyConf: Record<string, string | ProxyOptions> = {}
proxyConf['/api'] = {
target: 'http://127.0.0.1:8080',
changeOrigin: true,
rewrite: (path) => path.replace(ENV.VITE_BASE_PATH, '/')
}
return {
preflight: false,
lintOnSave: false,
base: ENV.VITE_BASE_PATH,
envDir: envDir,
plugins: [vue(), DefineOptions()],
server: {
port: 8917,
cors: true,
host: '0.0.0.0',
port: Number(ENV.VITE_APP_PORT),
strictPort: true,
proxy: proxyConf
},
build: {
outDir: 'dist/ui'
proxy: {
"/console": {
target: "https://klm-service-dev.apps.iytcloud.com/",
changeOrigin: true,
secure: false,
},
"/api": {
target: "https://klm-service-dev.apps.iytcloud.com/",
changeOrigin: true,
secure: false,
},
"/workspaces": {
target: "https://klm-service-dev.apps.iytcloud.com/",
changeOrigin: true,
secure: false,
}
},
},
resolve: {
alias: {
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论