Skip to content

Commit

Permalink
feat(projects): new router system [新的路由系统]
Browse files Browse the repository at this point in the history
  • Loading branch information
honghuangdc committed Nov 7, 2022
1 parent 40c1e13 commit c7b6a3f
Show file tree
Hide file tree
Showing 54 changed files with 1,329 additions and 760 deletions.
21 changes: 0 additions & 21 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -65,27 +65,6 @@

![](https://s2.loli.net/2022/06/07/rRSG6mEZpujOACT.png)

## 开发计划

- [x] 引入 ECharts 替换 AntV G2Plot
- [x] 图表示例:ECharts、AntV G2
- [x] 多页签:支持 query、hash 等参数,同一页面支持多个 Tab
- [x] 缓存主题配置
- [x] 精简版(新分支 thin)
- [ ] v0.9.7 表单、表格示例(ing...)
- [ ] v0.9.8 可修改的 KeepAlive 的页面缓存和全局 Tab 组件 store 重构
- [ ] v0.9.9 全局 Iframe 组件
- [ ] v1.0 示例页面完善
- [ ] v1.0 版本文档
- [ ] element-plus 版本
- [ ] i18n 国际化
- [ ] 其他 UI 版本
- [ ] soybean-admin cli 工具(选择不同 UI)
- [ ] soybean-admin 后台服务 java 版: [soybean-admin-java](https:/honghuangdc/soybean-admin-java)
- [ ] soybean-admin 后台服务 go 版: [soybean-admin-go](https:/honghuangdc/soybean-admin-go)
- [ ] soybean-admin 后台服务 nodejs 版: [soybean-admin-nestjs](https:/honghuangdc/soybean-admin-nestjs)
- [ ] 前端可视化创建路由页面

## 安装使用

- 环境配置
Expand Down
2 changes: 1 addition & 1 deletion mock/api/route.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ const apis: MockMethod[] = [
response: (options: Service.MockOption): Service.MockServiceResult => {
const { userId = undefined } = options.body;

const routeHomeName: AuthRoute.RouteKey = 'dashboard_analysis';
const routeHomeName: AuthRoute.LastDegreeRouteKey = 'dashboard_analysis';

const role = userModel.find(item => item.userId === userId)?.userRole || 'user';

Expand Down
8 changes: 5 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,8 @@
"esno": "esno",
"cleanup": "esno ./scripts/cleanup.ts",
"update-pkg": "ncu --deep -u",
"update-version": "bumpp package.json",
"changelog": "conventional-changelog -p angular -i CHANGELOG.md -s",
"release": "standard-version",
"prepare": "husky install"
},
"dependencies": {
Expand Down Expand Up @@ -86,7 +87,7 @@
"@iconify/json": "^2.1.133",
"@iconify/vue": "^4.0.0",
"@soybeanjs/cli": "^0.1.2",
"@soybeanjs/router-page": "0.2.0",
"@soybeanjs/router-page": "1.0.3",
"@tauri-apps/cli": "^1.1.1",
"@types/bmapgl": "^0.0.5",
"@types/crypto-js": "^4.1.1",
Expand All @@ -97,7 +98,7 @@
"@unocss/vite": "^0.46.3",
"@vitejs/plugin-vue": "^3.2.0",
"@vitejs/plugin-vue-jsx": "^2.1.0",
"bumpp": "^8.2.1",
"conventional-changelog": "^3.1.25",
"cross-env": "^7.0.3",
"eslint": "^8.27.0",
"eslint-config-soybeanjs-vue": "^0.1.2",
Expand All @@ -108,6 +109,7 @@
"rimraf": "^3.0.2",
"rollup-plugin-visualizer": "^5.8.3",
"sass": "^1.56.0",
"standard-version": "^9.5.0",
"typescript": "4.8.4",
"unplugin-icons": "^0.14.13",
"unplugin-vue-components": "0.22.8",
Expand Down
Loading

0 comments on commit c7b6a3f

Please sign in to comment.