Skip to content

Commit 3c2f828

Browse files
committed
sync to 2.0.0 for vite3
1 parent a43ace1 commit 3c2f828

33 files changed

+6149
-738
lines changed

.env.build

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
VITE_APP_ENV='build'
2-
VITE_APP_BASE_URL='http://8.135.1.141/micro-service-api'
2+
VITE_APP_BASE_URL='https://github.jzfai.top/micro-service-api'

.env.serve-dev

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
VITE_APP_ENV='serve'
2-
VITE_APP_BASE_URL='http://8.135.1.141/micro-service-api'
2+
VITE_APP_BASE_URL='https://github.jzfai.top/micro-service-api'

.eslintrc.json

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
{
2+
"root": true,
3+
"extends": ["./eslintrc/eslint-config.js", "./eslintrc/.eslintrc-auto-import.json"]
4+
}

.gitignore

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,4 @@ node_modules
55
dist
66
dist-ssr
77
*.local
8-
pnpm*
9-
ts-out-dir
10-
pnpm*
8+
yarn.lock

.husky/commit-msg

Lines changed: 0 additions & 3 deletions
This file was deleted.

.husky/pre-commit

Lines changed: 0 additions & 14 deletions
This file was deleted.

.npmrc

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
shamefully-hoist=true
2+
strict-peer-dependencies=false
3+
registry = https://registry.npmmirror.com
4+

.prettierignore

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
history
2+
.idea
3+
node_modules
4+
# System
5+
.DS_Store
6+
dist
7+
*.local
8+
yarn*
9+
pnpm*
10+
.vscode

README-zh_CN.md

Lines changed: 0 additions & 128 deletions
This file was deleted.

README.md

Lines changed: 9 additions & 40 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
# react-admin-ts
22

3-
**English** | [中文](./README-zh_CN.md)
3+
**English**
44

5-
> A basic react admin template with vite2 & ant4 UI & axios & svg-icon& permission control & lint
5+
> A basic react admin template with vite3 & ant4 UI & axios & svg-icon& permission control & lint
66
77
A new generation admin construct using react17+vite2+element-plus ,It's fast!
88

@@ -17,30 +17,15 @@ Use eslint+prettier+gitHooks format and verification code to improve code standa
1717

1818
## Online experience
1919

20-
[github address](https://github.com/jzfai/react-admin-ts.git)
20+
[Access address](https://github.jzfai.top/react-admin-template)
2121

22-
[Access address](http://8.135.1.141/react-admin-ts)
22+
国内体验地址:https://github.jzfai.top/react-admin-template
2323

24-
国内体验地址:http://8.135.1.141/react-admin-ts
2524

26-
github 地址: https://github.com/jzfai/react-admin-ts.git
27-
28-
## Demo
29-
30-
---- Let's look at the loading speed and the size of the built package first.:
31-
32-
![template-speed-analysis](http://8.135.1.141/file/images/react-template-speed-analysis.png)
33-
34-
![template-demo](http://8.135.1.141/file/images/react-template-demo.png)
35-
36-
37-
## Related items
25+
## Recommend items
3826

3927
The framework is available in js, ts versions
4028

41-
- react js version: [react-admin-template](https://github.com/jzfai/react-admin-template.git)
42-
- react ts version: [react-admin-template](https://github.com/jzfai/react-admin-ts.git)
43-
4429
- vue3 plus version:[vue3-element-plus](https://github.com/jzfai/vue3-admin-plus.git)
4530
- java Micro-service background data:[micro-service-plus](https://github.com/jzfai/micro-service-plus)
4631
> development and experience:two words Really fragrant!!!!!
@@ -51,25 +36,16 @@ The framework is available in js, ts versions
5136

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

54-
#### Difference from traditional react admin
5539

56-
1.Simple routing configuration, routing generation and page rendering can be completed in one configuration
57-
58-
2.Using react hooks, the writing method is more flexible, simple, and easier to maintain and migrate
59-
60-
3.Using vite2 instead of webpack is easier to configure, pack and run faster
61-
62-
63-
[Comparison of packaging speed between vite2 and webpack](https://github.com/jzfai/vue3-admin-template/issues/2)
6440

6541
## Build Setup
6642

6743
```bash
6844
# clone the project
69-
git clone https://github.com/jzfai/react-admin-ts.git
45+
git clone https://github.com/jzfai/react-admin-template.git
7046

7147
# enter the project directory
72-
cd react-admin-ts
48+
cd react-admin-template
7349

7450
# install dependency(Recommend use pnpm)
7551
pnpm
@@ -108,20 +84,13 @@ pnpm run lint
10884

10985
Architecture development is not easy. If you feel good, please give me a compliment. The architecture is still being improved. Welcome to join me in development and become Contributors together! ! ! !
11086

111-
## Browsers support
112-
113-
Modern browsers and Internet Explorer 11+.
114-
115-
| [<img src="https://raw.githubusercontent.com/alrra/browser-logos/master/src/edge/edge_48x48.png" alt="IE / Edge" width="24px" height="24px" />](http://godban.github.io/browsers-support-badges/)</br>IE / Edge | [<img src="https://raw.githubusercontent.com/alrra/browser-logos/master/src/firefox/firefox_48x48.png" alt="Firefox" width="24px" height="24px" />](http://godban.github.io/browsers-support-badges/)</br>Firefox | [<img src="https://raw.githubusercontent.com/alrra/browser-logos/master/src/chrome/chrome_48x48.png" alt="Chrome" width="24px" height="24px" />](http://godban.github.io/browsers-support-badges/)</br>Chrome | [<img src="https://raw.githubusercontent.com/alrra/browser-logos/master/src/safari/safari_48x48.png" alt="Safari" width="24px" height="24px" />](http://godban.github.io/browsers-support-badges/)</br>Safari |
116-
| --------- | --------- | --------- | --------- |
117-
|Edge| last 2 versions| last 2 versions| last 2 versions
11887

11988
## Discussion and Communication
120-
[WeChat group](http://8.135.1.141/file/images/wx-groud.png)
89+
[WeChat group](https://github.jzfai.top/file/images/wx-groud.png)
12190

12291
## License
12392

124-
[MIT](https://github.com/jzfai/react-admin-ts/blob/master/LICENSE) license.
93+
[MIT](https://github.com/jzfai/react-admin-template/blob/master/LICENSE) license.
12594

12695
Copyright (c) 2021-present kuanghua
12796

0 commit comments

Comments
 (0)