Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 85e69ee

Browse files
committed
update
1 parent 235a1e6 commit 85e69ee

File tree

3 files changed

+89
-52
lines changed

3 files changed

+89
-52
lines changed

‎.gitignore‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ node_modules
1111
dist
1212
dist-ssr
1313
*.local
14+
pnpm-lock.yaml
1415

1516
# Editor directories and files
1617
.vscode/*

‎README.en.md‎

Lines changed: 47 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -1,36 +1,58 @@
1-
# react-admin-vite-sbux
1+
# [React-admin](https://github.com/javaLuo/react-admin/)·![GitHub license](https://img.shields.io/badge/license-MIT-blue.svg)
22

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/>
55

6-
#### Software Architecture
7-
Software architecture description
6+
## what's this?
87

9-
#### Installation
8+
react+redux 后台管理系统脚手架<br/>
9+
react+redux+vite+antd
1010

11-
1. xxxx
12-
2. xxxx
13-
3. xxxx
11+
<ul>
12+
<li>非服务端渲染</li>
13+
<li>仿antd-pro外观,但没有使用dva和roadhog</li>
14+
</ul>
1415

15-
#### Instructions
16+
##构建 Start
1617

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+
```
2025

21-
#### Contribution
26+
##最近更新
2227

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,感觉太不方便了
2734

35+
## 前后端分离,权限是怎么控制的
2836

29-
#### Gitee Feature
37+
在数据库里存储着权限的信息,可以在页面里各种编辑。<br/>
38+
但最终实现,仍然是在页面里写死的,前端写在页面里的权限信息跟数据库里的信息一一对应就实现了权限控制。<br/>
39+
更好的方法除非是使用 SSR 服务端渲染,直接把权限注入到页面中,就像传统的 JSP 那样。
3040

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/>

‎README.md‎

Lines changed: 41 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -1,39 +1,53 @@
1-
# react-admin-vite-sbux
1+
# [React-admin](https://github.com/javaLuo/react-admin/)&middot;![GitHub license](https://img.shields.io/badge/license-MIT-blue.svg)
22

3-
#### 介绍
4-
{**以下是 Gitee 平台说明,您可以替换此简介**
5-
Gitee 是 OSCHINA 推出的基于 Git 的代码托管平台(同时支持 SVN)。专为开发者提供稳定、高效、安全的云端软件开发协作平台
6-
无论是个人、团队、或是企业,都能够用 Gitee 实现代码托管、项目管理、协作开发。企业项目请看 [https://gitee.com/enterprises](https://gitee.com/enterprises)}
3+
标准后台管理系统解决方案<br/>
4+
动态菜单配置,权限精确到按钮<br/>
75

8-
#### 软件架构
9-
软件架构说明
6+
## what's this?
107

8+
react+redux 后台管理系统脚手架<br/>
9+
react+redux+vite+antd
1110

12-
#### 安装教程
11+
<ul>
12+
<li>非服务端渲染</li>
13+
<li>仿antd-pro外观,但没有使用dva和roadhog</li>
14+
</ul>
1315

14-
1. xxxx
15-
2. xxxx
16-
3. xxxx
16+
## 构建 Start
1717

18-
#### 使用说明
18+
```javascript
19+
pnpm install // 安装依赖模块
20+
pnpm run dev // 运行开发环境
21+
pnpm run build // 正式打包,生成最终代码
22+
pnpm run preview // 本地运行正式打包后的最终代码
23+
pnpm run prettier // 一键格式化代码
24+
```
1925

20-
1. xxxx
21-
2. xxxx
22-
3. xxxx
26+
## 最近更新
2327

24-
#### 参与贡献
28+
- 接入了vite打包,比自己配webpack要好多了
2529

26-
1. Fork 本仓库
27-
2. 新建 Feat_xxx 分支
28-
3. 提交代码
29-
4. 新建 Pull Request
30+
## 前后端分离,权限是怎么控制的
3031

32+
在数据库里存储着权限的信息,可以在页面里各种编辑。<br/>
33+
但最终实现,仍然是在页面里写死的,前端写在页面里的权限信息跟数据库里的信息一一对应就实现了权限控制。<br/>
34+
更好的方法除非是使用 SSR 服务端渲染,直接把权限注入到页面中,就像传统的 JSP 那样。
3135

32-
#### 特技
36+
##内置通用功能
3337

34-
1. 使用 Readme\_XXX.md 来支持不同的语言,例如 Readme\_en.md, Readme\_zh.md
35-
2. Gitee 官方博客 [blog.gitee.com](https://blog.gitee.com)
36-
3. 你可以 [https://gitee.com/explore](https://gitee.com/explore) 这个地址来了解 Gitee 上的优秀开源项目
37-
4. [GVP](https://gitee.com/gvp) 全称是 Gitee 最有价值开源项目,是综合评定出的优秀开源项目
38-
5. Gitee 官方提供的使用手册 [https://gitee.com/help](https://gitee.com/help)
39-
6. Gitee 封面人物是一档用来展示 Gitee 会员风采的栏目 [https://gitee.com/gitee-stars/](https://gitee.com/gitee-stars/)
38+
用户管理 增删改查 分配角色<br/>
39+
角色管理 增删改查 分配菜单和权限<br/>
40+
权限管理 增删改查<br/>
41+
菜单管理 增删改查<br/>
42+
43+
关系:权限 依附于 菜单 依附于 角色 依附于 用户
44+
45+
## 预览地址 Demo
46+
47+
https://isluo.com/work/admin/ <br/>
48+
账号:admin / user<br/>
49+
密码:123456 / 123456
50+
51+
## 参考
52+
53+
react-luo: https://github.com/javaLuo/react-luo <br/>

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /