Skip to content

Commit 4d1d205

Browse files
committed
feat: refactor
1 parent 2323935 commit 4d1d205

3 files changed

Lines changed: 24 additions & 21 deletions

File tree

README.md

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -30,9 +30,9 @@
3030
19. 集成 Bookstory, 方便生成组件文档
3131
20. 更多特性请 fork 项目,相信我,你会有意想不到的收获
3232

33-
## Antd 4.x.x 版本
33+
## Vite构建版本
3434

35-
1. 基于 Antd 实现亮白及暗黑两套主题, 请参见 feature-antd4 分支
35+
1. 基于Vite 构建, 请参见 feature-vite 分支
3636

3737
## Technology Stack
3838

@@ -192,12 +192,14 @@ npm run dev:faker
192192
"predeploy": "npm run build:production",
193193
"deploy": "gh-pages -d dist",
194194
```
195+
195196
3. Vercel
196197
提交后自动部署,预览地址:
198+
197199
```
198200
[https://pro-react-admin.vercel.app/](https://pro-react-admin.vercel.app/)
199201
```
200-
202+
201203
## 架构
202204

203205
![whiteboard_exported_image](https://github.com/wkylin/pro-react-admin/assets/1208330/c28852c2-7efe-407f-80f8-41d741ef3108)
@@ -214,8 +216,9 @@ npm run dev:faker
214216

215217
## Docusaurus
216218

217-
1. Github: https://github.com/wkylin/pro-react-admin
218-
2. Demo: https://pro-react-admin.vercel.app/
219+
1. Github: [https://github.com/wkylin/pro-react-admin](https://github.com/wkylin/pro-react-admin)
220+
221+
2. Demo: [https://pro-react-admin.vercel.app/](https://pro-react-admin.vercel.app/)
219222

220223
## Snyk
221224

src/pages/layout/proSecNav/index.jsx

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -68,26 +68,26 @@ const ProSecNav = () => {
6868
{ label: t('demo'), key: '/demo', icon: <GlobalOutlined /> },
6969
{ label: 'Motion', key: '/motion', icon: <QrcodeOutlined /> },
7070
{ label: 'Sand Box', key: '/sandbox', icon: <GlobalOutlined /> },
71+
{ label: 'Big Screen', key: '/big-screen', icon: <FireOutlined /> },
7172
{ label: 'Qr Generate', key: '/qrcode', icon: <QrcodeOutlined /> },
7273
{ label: 'Prism Render', key: '/prism', icon: <FireOutlined /> },
7374
{ label: 'React Tilt', key: '/tilt', icon: <QrcodeOutlined /> },
7475
{ label: 'Music', key: '/music', icon: <FireOutlined /> },
75-
{ label: 'Gantt', key: '/gantt', icon: <QrcodeOutlined /> },
7676
{ label: 'Crypto', key: '/crypto', icon: <QrcodeOutlined /> },
7777
{ label: 'Video', key: '/video', icon: <FireOutlined /> },
78-
{ label: 'Three', key: '/three', icon: <QrcodeOutlined /> },
7978
{ label: 'Echarts', key: '/echarts', icon: <FireOutlined /> },
80-
// { label: 'ChatGPT', key: '/markmap', icon: <QrcodeOutlined /> },
79+
{ label: 'Barcode', key: '/barcode', icon: <FireOutlined /> },
8180
{ label: 'Parallax', key: '/parallax', icon: <FireOutlined /> },
82-
{ label: 'Mermaid', key: '/mermaid', icon: <FireOutlined /> },
81+
// { label: 'Gantt', key: '/gantt', icon: <QrcodeOutlined /> },
82+
// { label: 'Mermaid', key: '/mermaid', icon: <FireOutlined /> },
8383
// { label: 'Dynamic', key: '/dynamic', icon: <QrcodeOutlined /> },
84-
{ label: 'Big Screen', key: '/big-screen', icon: <FireOutlined /> },
8584
// { label: 'React Amap', key: '/react-amap', icon: <QrcodeOutlined /> },
85+
// { label: 'ChatGPT', key: '/markmap', icon: <QrcodeOutlined /> },
86+
// { label: 'SuperMap', key: '/super-map', icon: <FireOutlined /> },
87+
// { label: 'Three', key: '/three', icon: <QrcodeOutlined /> },
8688
{ label: 'Post Message', key: '/postmessage', icon: <FireOutlined /> },
8789
{ label: 'Geo Chart', key: '/geo', icon: <QrcodeOutlined /> },
88-
// { label: 'SuperMap', key: '/super-map', icon: <FireOutlined /> },
8990
{ label: 'D3 Chart', key: '/d3-chart', icon: <QrcodeOutlined /> },
90-
{ label: 'Barcode', key: '/barcode', icon: <FireOutlined /> },
9191
{ label: 'PdfView', key: '/pdf-view', icon: <QrcodeOutlined /> },
9292
{ label: 'Print', key: '/print', icon: <QrcodeOutlined /> },
9393
{

src/routers/index.jsx

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ const MyCrypto = lazy(() => import('@pages/crypto'))
3333
const Echarts = lazy(() => import('@pages/echarts'))
3434
const QrCode = lazy(() => import('@pages/qrGenerate'))
3535
const PrismRender = lazy(() => import('@pages/prism'))
36-
const Mermaid = lazy(() => import('@pages/mermaid'))
36+
// const Mermaid = lazy(() => import('@pages/mermaid'))
3737
// const DynamicModal = lazy(() => import('@pages/dynamicModal'))
3838
const BigScreen = lazy(() => import('@pages/bigScreen'))
3939
// const ReactAmap = lazy(() => import('@pages/reactAmap'))
@@ -158,14 +158,14 @@ const rootRouter = [
158158
// auth: false,
159159
// element: lazyLoad(ChatGpt),
160160
// },
161-
{
162-
index: false,
163-
path: 'mermaid',
164-
name: 'ChatGPT Mermaid',
165-
key: '/mermaid',
166-
auth: false,
167-
element: lazyLoad(Mermaid),
168-
},
161+
// {
162+
// index: false,
163+
// path: 'mermaid',
164+
// name: 'ChatGPT Mermaid',
165+
// key: '/mermaid',
166+
// auth: false,
167+
// element: lazyLoad(Mermaid),
168+
// },
169169
{
170170
index: false,
171171
path: 'prism',

0 commit comments

Comments
 (0)