chore: initialize Vite setup

This commit is contained in:
coderwei 2025-05-21 11:37:16 +08:00
parent f08329eef4
commit 8abae324a5
5 changed files with 592 additions and 5725 deletions

View File

@ -1,11 +1,11 @@
VUE_APP_API_HOST=http://localhost:5678 VITE_APP_API_HOST=https://chat.geekai.me
VUE_APP_WS_HOST=ws://localhost:5678 VITE_APP_WS_HOST=wss://chat.geekai.me
VUE_APP_USER=18888888888 VITE_APP_USER=18888888888
VUE_APP_PASS=12345678 VITE_APP_PASS=12345678
VUE_APP_ADMIN_USER=admin VITE_APP_ADMIN_USER=admin
VUE_APP_ADMIN_PASS=admin123 VITE_APP_ADMIN_PASS=admin123
VUE_APP_KEY_PREFIX=GeekAI_DEV_ VITE_APP_KEY_PREFIX=GeekAI_DEV_
VUE_APP_TITLE="Geek-AI 创作系统" VITE_APP_TITLE="Geek-AI 创作系统"
VUE_APP_VERSION=v4.1.8 VITE_APP_VERSION=v4.1.8
VUE_APP_DOCS_URL=https://docs.geekai.me VITE_APP_DOCS_URL=https://docs.geekai.me
VUE_APP_GIT_URL=https://github.com/yangjian102621/geekai VITE_APP_GIT_URL=https://github.com/yangjian102621/geekai

View File

@ -1,7 +1,7 @@
VUE_APP_API_HOST= VITE_APP_API_HOST=
VUE_APP_WS_HOST= VITE_APP_WS_HOST=
VUE_APP_KEY_PREFIX=GeekAI_ VITE_APP_KEY_PREFIX=GeekAI_
VUE_APP_TITLE="Geek-AI 创作系统" VITE_APP_TITLE="Geek-AI 创作系统"
VUE_APP_VERSION=v4.1.8 VITE_APP_VERSION=v4.1.8
VUE_APP_DOCS_URL=https://docs.geekai.me VITE_APP_DOCS_URL=https://docs.geekai.me
VUE_APP_GIT_URL=https://github.com/yangjian102621/geekai VITE_APP_GIT_URL=https://github.com/yangjian102621/geekai

15
web/index.html Normal file
View File

@ -0,0 +1,15 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>geekai</title>
</head>
<body>
<div id="app"></div>
<script type="module" src="./src/main.js"></script>
</body>
</html>

View File

@ -3,9 +3,9 @@
"version": "0.1.0", "version": "0.1.0",
"private": true, "private": true,
"scripts": { "scripts": {
"dev": "vue-cli-service serve", "dev": "vite",
"build": "vue-cli-service build", "build": "vite build",
"lint": "vue-cli-service lint" "preview": "vite preview"
}, },
"dependencies": { "dependencies": {
"@element-plus/icons-vue": "^2.3.1", "@element-plus/icons-vue": "^2.3.1",
@ -22,7 +22,7 @@
"json-bigint": "^1.0.0", "json-bigint": "^1.0.0",
"lodash": "^4.17.21", "lodash": "^4.17.21",
"markdown-it": "^13.0.1", "markdown-it": "^13.0.1",
"markdown-it-emoji": "^2.0.0", "markdown-it-emoji": "^2.0.0",
"markdown-it-mathjax3": "^4.3.2", "markdown-it-mathjax3": "^4.3.2",
"markmap-common": "^0.16.0", "markmap-common": "^0.16.0",
"markmap-lib": "^0.16.1", "markmap-lib": "^0.16.1",
@ -43,17 +43,14 @@
"devDependencies": { "devDependencies": {
"@babel/core": "7.18.6", "@babel/core": "7.18.6",
"@babel/eslint-parser": "^7.12.16", "@babel/eslint-parser": "^7.12.16",
"@vue/cli-plugin-babel": "~5.0.0", "@vitejs/plugin-vue": "^5.2.4",
"@vue/cli-plugin-eslint": "~5.0.0",
"@vue/cli-service": "~5.0.0",
"autoprefixer": "^10.4.20", "autoprefixer": "^10.4.20",
"eslint": "^7.32.0", "eslint": "^7.32.0",
"eslint-plugin-vue": "^8.0.3", "eslint-plugin-vue": "^8.0.3",
"postcss": "^8.4.49", "postcss": "^8.4.49",
"stylus": "^0.58.1", "stylus": "^0.58.1",
"stylus-loader": "^7.0.0",
"tailwindcss": "^3.4.17", "tailwindcss": "^3.4.17",
"webpack": "^5.90.3" "vite": "^6.3.5"
}, },
"eslintConfig": { "eslintConfig": {
"root": true, "root": true,
@ -75,4 +72,4 @@
"not dead", "not dead",
"not ie 11" "not ie 11"
] ]
} }

File diff suppressed because it is too large Load Diff