Skip to content

Commit a6cd558

Browse files
committed
judge the login and update vite version
1 parent c14eabc commit a6cd558

File tree

19 files changed

+5307
-5436
lines changed

19 files changed

+5307
-5436
lines changed

.eslintrc.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,8 @@ module.exports = {
1111
document: true,
1212
localStorage: true,
1313
window: true,
14+
GLOBAL_VAR: true,
15+
GLOBAL_STRING: true,
1416
defineProps: true,
1517
defineEmits: true,
1618
defineExpose: true,

README-zh_CN.md

Lines changed: 15 additions & 95 deletions
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,18 @@
11
# react-admin-template
22

3-
**中文** | [English](./README.md)
4-
5-
63

74
> 这是一个基础的 react admin 管理后台。
85
96

10-
本架构使用的技术为:react17+vite2+ant4 新一代的前端框架,It's fast!
7+
本架构使用的技术为:react17+vite2+ant4 新一代的前端框架,It's easy and fast!
118

129
使用 eslint+prettier+gitHooks 格式和校验代码,提高代码规范性和开发效率
1310

1411
## 更新日志
1512

16-
```javascript
17-
//10-08
18-
add error log collection func
19-
```
13+
--- to look the doc-
2014

15+
[真香定律!带你用react17+vite2撸后台](https://juejin.cn/post/7054467502717272094)
2116

2217
## 线上体验
2318

@@ -40,26 +35,22 @@ github 地址: https://github.com/jzfai/react-admin-template.git
4035

4136
## 相关项目
4237

43-
框架有js,ts和plus版本
44-
45-
框架有js,ts和plus版本
38+
框架有js,ts版本
4639

4740
- react js版本: [react-admin-template](https://github.com/jzfai/react-admin-template.git)
4841
- react ts版本: [react-admin-ts](https://github.com/jzfai/react-admin-ts.git)
49-
- vue3 js版本:[vue3-element-admin](https://github.com/jzfai/vue3-admin-template.git)
50-
- vue3 ts版本:[vue3-element-ts](https://github.com/jzfai/vue3-admin-ts.git)
42+
5143
- vue3 plus版本:[vue3-element-plus](https://github.com/jzfai/vue3-admin-plus.git)
5244
- java微服务后台数据:[micro-service-plus](https://github.com/jzfai/micro-service-plus)
5345
> 开发和使用感受:两个字 真香!!!!!
5446
5547

5648
## 文档
57-
-- 文档努力开发中。。。。
5849

59-
可以先参考(和vue-admin-template使用类似):[vue-admin-template使用文档](https://juejin.im/post/59097cd7a22b9d0065fb61d2)
50+
- [真香定律!带你用react17+vite2撸后台](https://juejin.cn/post/7054467502717272094)
6051

6152

62-
#### 和 传统react admin区别
53+
#### 和传统react admin区别
6354

6455
1.路由配置简单,一次配置即可完成路由生成和页面渲染
6556

@@ -68,7 +59,6 @@ github 地址: https://github.com/jzfai/react-admin-template.git
6859
3.使用vite2代替webpack 配置更加简单,打包和运行速度更快
6960

7061

71-
[vite2和webpack打包速度上的对比](https://github.com/jzfai/react-admin-template/issues/2)
7262

7363
## 构建步骤
7464

@@ -79,11 +69,11 @@ git clone https://github.com/jzfai/react-admin-template.git
7969
# 进入项目目录
8070
cd react-admin-template
8171

82-
# 安装依赖(建议用yarn)
83-
yarn
72+
# 安装依赖(建议用pnpm)
73+
pnpm
8474

8575
# 启动服务
86-
yarn run dev
76+
pnpm run dev
8777
```
8878

8979
浏览器访问 http://localhost:5005
@@ -93,95 +83,25 @@ yarn run dev
9383

9484
```bash
9585
# 构建测试环境
96-
yarn run build-serve
86+
pnpm run build-serve
9787

9888
# 构建生产环境
99-
yarn run build
89+
pnpm run build
10090
```
10191

10292
## 其它
10393

10494
```bash
10595
# 预览发布环境效果
106-
yarn run preview:build-serve
96+
pnpm run preview:build-serve
10797

10898
# 预览生产环境
109-
yarn run preview
99+
pnpm run preview
110100

111101
# 代码格式检查并自动修复
112-
yarn run lint
113-
```
114-
115-
## 功能
116-
117-
```
118-
- 登录 / 注销
119-
120-
- 权限验证
121-
- 页面权限
122-
- 指令权限
123-
- 权限配置
124-
- 二步登录
125-
126-
- 多环境发布
127-
- serve
128-
- build
129-
- priview
130-
- lint
131-
132-
- 全局功能
133-
#- 国际化多语言
134-
#- 多种动态换肤
135-
- 动态侧边栏(支持多级路由嵌套)
136-
- 动态面包屑
137-
- 快捷导航(标签页)
138-
- Svg Sprite 图标
139-
- 本地/后端 mock 数据
140-
#- Screenfull全屏
141-
- 自适应收缩侧边栏
142-
143-
- 编辑器
144-
#- 富文本
145-
#- Markdown
146-
#- JSON 等多格式
147-
148-
#- Excel
149-
#- 导出excel
150-
#- 导入excel
151-
#- 前端可视化excel
152-
#- 导出zip
153-
154-
- 表格
155-
#- 动态表格
156-
#- 拖拽表格
157-
#- 内联编辑
158-
159-
- 错误页面
160-
#- 401
161-
#- 404
162-
163-
- 組件
164-
- 头像上传
165-
- 返回顶部
166-
#- 拖拽Dialog
167-
#- 拖拽Select
168-
#- 拖拽看板
169-
#- 列表拖拽
170-
#- SplitPane
171-
#- Dropzone
172-
#- Sticky
173-
#- CountTo
174-
175-
- 综合实例
176-
- 错误日志
177-
- Dashboard
178-
#- 引导页
179-
- ECharts 图表
180-
#- Clipboard(剪贴复制)
181-
#- Markdown2html
102+
pnpm run lint
182103
```
183104

184-
>注:#---暂未实现(希望大家能一起开发)
185105

186106
## 额外
187107

README.md

Lines changed: 16 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -11,10 +11,9 @@ Use eslint+prettier+gitHooks format and verification code to improve code standa
1111

1212
## Update log
1313

14-
```javascript
15-
//10-08
16-
add error log collection func
17-
```
14+
--- to look the doc-
15+
16+
[真香定律!带你用react17+vite2撸后台](https://juejin.cn/post/7054467502717272094)
1817

1918
## Online experience
2019

@@ -37,20 +36,20 @@ github 地址: https://github.com/jzfai/react-admin-template.git
3736

3837
## Related items
3938

40-
The framework is available in js, ts and plus versions
39+
The framework is available in js, ts versions
40+
4141
- react js version: [react-admin-template](https://github.com/jzfai/react-admin-template.git)
4242
- react ts version: [react-admin-ts](https://github.com/jzfai/react-admin-ts.git)
43-
- vue3 js version:[vue3-element-admin](https://github.com/jzfai/vue3-admin-template.git)
44-
- vue3 ts version:[vue3-element-ts](https://github.com/jzfai/vue3-admin-ts.git)
43+
4544
- vue3 plus version:[vue3-element-plus](https://github.com/jzfai/vue3-admin-plus.git)
4645
- java Micro-service background data:[micro-service-plus](https://github.com/jzfai/micro-service-plus)
4746
> development and experience:two words Really fragrant!!!!!
4847
4948
## Documents
5049

51-
-- Efforts are being made to develop documents ......
50+
系列文章入口:
5251

53-
You can refer to first:[documentation of vue-admin-template ](https://juejin.im/post/59097cd7a22b9d0065fb61d2)
52+
- [真香定律!带你用react17+vite2撸后台](https://juejin.cn/post/7054467502717272094)
5453

5554
#### Difference from traditional react admin
5655

@@ -72,11 +71,11 @@ git clone https://github.com/jzfai/react-admin-template.git
7271
# enter the project directory
7372
cd react-admin-template
7473

75-
# install dependency(Recommend use yarn)
76-
yarn
74+
# install dependency(Recommend use pnpm)
75+
pnpm
7776

7877
# develop
79-
yarn run dev
78+
pnpm run dev
8079
```
8180

8281
using the browser to open http://localhost:5001
@@ -85,23 +84,23 @@ using the browser to open http://localhost:5001
8584

8685
```bash
8786
# build for dev environment
88-
yarn run build-serve
87+
pnpm run build-serve
8988

9089
# build for production environment
91-
yarn run build
90+
pnpm run build
9291
```
9392

9493
## Others
9594

9695
```bash
9796
# preview the dev environment effect
98-
yarn run preview:build-serve
97+
pnpm run preview:build-serve
9998

10099
# preview the release environment effect
101-
yarn run preview
100+
pnpm run preview
102101

103102
# code format check
104-
yarn run lint
103+
pnpm run lint
105104

106105
```
107106

jsconfig.json

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
1-
{
2-
"compilerOptions": {
3-
"baseUrl": "./",
4-
"paths": {
5-
"@/*": ["src/*"]
6-
}
7-
},
8-
"exclude": ["node_modules", "dist"]
9-
}
1+
{
2+
"compilerOptions": {
3+
"baseUrl": "./",
4+
"paths": {
5+
"@/*": ["src/*"]
6+
}
7+
},
8+
"include": ["src/**/*"]
9+
}

0 commit comments

Comments
 (0)