Skip to content

Commit

Permalink
前端框架基础内容
Browse files Browse the repository at this point in the history
  • Loading branch information
1821725017 committed Sep 1, 2023
1 parent 094fe65 commit 3dfab44
Show file tree
Hide file tree
Showing 26 changed files with 808 additions and 70 deletions.
8 changes: 8 additions & 0 deletions admin-views/.env
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
# 公共基础路径
VITE_BASE_URL=/admin
# 接口前缀 (默认)
VITE_API_PREFIX=/admin-api
# 代理地址, mode != production 时生效
VITE_PROXY_URL=http://owl-admin.test
# 代理地址是否更改origin
VITE_PROXY_CHANGE_ORIGIN=Y
1 change: 1 addition & 0 deletions admin-views/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@
<div class='circle'></div>
</div>
<div id="root"></div>
<script>window.$adminApiPrefix = "/admin-api"</script>
<script type="module" src="/src/main.tsx" defer></script>
</body>
</html>
71 changes: 39 additions & 32 deletions admin-views/package.json
Original file line number Diff line number Diff line change
@@ -1,34 +1,41 @@
{
"name": "admin-views",
"private": true,
"version": "0.0.0",
"type": "module",
"scripts": {
"dev": "vite",
"build": "tsc && vite build",
"lint": "eslint . --ext ts,tsx --report-unused-disable-directives --max-warnings 0",
"preview": "vite preview"
},
"dependencies": {
"ahooks": "^3.7.8",
"antd": "^5.8.5",
"dayjs": "^1.11.9",
"react": "^18.2.0",
"react-dom": "^18.2.0"
},
"devDependencies": {
"@types/react": "^18.2.15",
"@types/react-dom": "^18.2.7",
"@typescript-eslint/eslint-plugin": "^6.0.0",
"@typescript-eslint/parser": "^6.0.0",
"@vitejs/plugin-react": "^4.0.3",
"autoprefixer": "^10.4.15",
"eslint": "^8.45.0",
"eslint-plugin-react-hooks": "^4.6.0",
"eslint-plugin-react-refresh": "^0.4.3",
"postcss": "^8.4.29",
"tailwindcss": "^3.3.3",
"typescript": "^5.0.2",
"vite": "^4.4.5"
}
"name": "admin-views",
"private": true,
"version": "0.0.0",
"type": "module",
"scripts": {
"dev": "vite",
"build": "vite build --mode production",
"lint": "eslint . --ext ts,tsx --report-unused-disable-directives --max-warnings 0",
"preview": "vite preview"
},
"dependencies": {
"ahooks": "^3.7.8",
"antd": "^5.8.5",
"axios": "^1.5.0",
"dayjs": "^1.11.9",
"react": "^18.2.0",
"react-dom": "^18.2.0",
"react-redux": "^8.1.2",
"react-router": "^6.15.0",
"react-router-dom": "^6.15.0",
"redux": "^4.2.1"
},
"devDependencies": {
"@types/react": "^18.2.15",
"@types/react-dom": "^18.2.7",
"@typescript-eslint/eslint-plugin": "^6.0.0",
"@typescript-eslint/parser": "^6.0.0",
"@vitejs/plugin-react": "^4.0.3",
"autoprefixer": "^10.4.15",
"eslint": "^8.45.0",
"eslint-plugin-react-hooks": "^4.6.0",
"eslint-plugin-react-refresh": "^0.4.3",
"postcss": "^8.4.29",
"tailwindcss": "^3.3.3",
"typescript": "^5.0.2",
"vite": "^4.4.5",
"vite-plugin-compression": "^0.5.1",
"vite-plugin-progress": "^0.0.7"
}
}
Loading

0 comments on commit 3dfab44

Please sign in to comment.