|
1 |
| -# react-admin-vite-sbux |
| 1 | +# [React-admin](https://github.com/javaLuo/react-admin/) ·  |
2 | 2 |
|
3 |
| -#### Description |
4 |
| -{**When you're done, you can delete the content in this README and update the file with details for others getting started with your repository**} |
| 3 | +标准后台管理系统解决方案<br/> |
| 4 | +动态菜单配置,权限精确到按钮<br/> |
5 | 5 |
|
6 |
| -#### Software Architecture |
7 |
| -Software architecture description |
| 6 | +## what's this? |
8 | 7 |
|
9 |
| -#### Installation |
| 8 | +react+redux 后台管理系统脚手架<br/> |
| 9 | +react+redux+vite+antd |
10 | 10 |
|
11 |
| -1. xxxx |
12 |
| -2. xxxx |
13 |
| -3. xxxx |
| 11 | +<ul> |
| 12 | + <li>非服务端渲染</li> |
| 13 | + <li>仿antd-pro外观,但没有使用dva和roadhog</li> |
| 14 | +</ul> |
14 | 15 |
|
15 |
| -#### Instructions |
| 16 | +## 构建 Start |
16 | 17 |
|
17 |
| -1. xxxx |
18 |
| -2. xxxx |
19 |
| -3. xxxx |
| 18 | +```javascript |
| 19 | +pnpm install // 安装依赖模块 |
| 20 | +pnpm run dev // 运行开发环境 |
| 21 | +pnpm run build // 正式打包,生成最终代码 |
| 22 | +pnpm run preview // 本地运行正式打包后的最终代码 |
| 23 | +pnpm run prettier // 一键格式化代码 |
| 24 | +``` |
20 | 25 |
|
21 |
| -#### Contribution |
| 26 | +## 最近更新 |
22 | 27 |
|
23 |
| -1. Fork the repository |
24 |
| -2. Create Feat_xxx branch |
25 |
| -3. Commit your code |
26 |
| -4. Create Pull Request |
| 28 | +- 接入了vite打包,比自己配webpack要好多了 |
| 29 | +- 不再需要`yarn dll` |
| 30 | +- (2020/03/13 正在进行) 升到antd4, 使用@rematch, 修改权限、菜单、角色后需更新用户信息 ,Typescript,menu的构建递归,添加权限/菜单的模态框需要加一个是否将该权限/菜单赋予给某些角色 |
| 31 | +- 把所有包版本都升级到了最新 React16.7,webpack4.29,babel7... |
| 32 | +- 去掉了一些鸡肋的东西,真正项目中基本都不会用到 |
| 33 | +- 去掉了 css-module,感觉太不方便了 |
27 | 34 |
|
| 35 | +## 前后端分离,权限是怎么控制的 |
28 | 36 |
|
29 |
| -#### Gitee Feature |
| 37 | +在数据库里存储着权限的信息,可以在页面里各种编辑。<br/> |
| 38 | +但最终实现,仍然是在页面里写死的,前端写在页面里的权限信息跟数据库里的信息一一对应就实现了权限控制。<br/> |
| 39 | +更好的方法除非是使用 SSR 服务端渲染,直接把权限注入到页面中,就像传统的 JSP 那样。 |
30 | 40 |
|
31 |
| -1. You can use Readme\_XXX.md to support different languages, such as Readme\_en.md, Readme\_zh.md |
32 |
| -2. Gitee blog [blog.gitee.com](https://blog.gitee.com) |
33 |
| -3. Explore open source project [https://gitee.com/explore](https://gitee.com/explore) |
34 |
| -4. The most valuable open source project [GVP](https://gitee.com/gvp) |
35 |
| -5. The manual of Gitee [https://gitee.com/help](https://gitee.com/help) |
36 |
| -6. The most popular members [https://gitee.com/gitee-stars/](https://gitee.com/gitee-stars/) |
| 41 | +## 内置通用功能 |
| 42 | + |
| 43 | +用户管理 增删改查 分配角色<br/> |
| 44 | + 角色管理 增删改查 分配菜单和权限<br/> |
| 45 | + 权限管理 增删改查<br/> |
| 46 | + 菜单管理 增删改查<br/> |
| 47 | + |
| 48 | +关系:权限 依附于 菜单 依附于 角色 依附于 用户 |
| 49 | + |
| 50 | +## 预览地址 Demo |
| 51 | + |
| 52 | +https://isluo.com/work/admin/ <br/> |
| 53 | +账号:admin / user<br/> |
| 54 | +密码:123456 / 123456 |
| 55 | + |
| 56 | +## 参考 |
| 57 | + |
| 58 | +react-luo: https://github.com/javaLuo/react-luo <br/> |
0 commit comments