Skip to content

Commit e05ec3d

Browse files
committed
feat: playground add submenu
1 parent 22f90a5 commit e05ec3d

22 files changed

+1141
-207
lines changed

.env

+1
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,3 @@
11
PORT=9000
22
UMI_DEV_SERVER_COMPRESS=none
3+

config/routes.ts

+23-4
Original file line numberDiff line numberDiff line change
@@ -9,11 +9,30 @@ export default [
99
},
1010
{
1111
name: 'playground',
12-
title: 'Playground',
13-
path: '/playground',
14-
key: 'playground',
1512
icon: 'Comment',
16-
component: './playground'
13+
path: '/playground',
14+
routes: [
15+
{
16+
path: '/playground',
17+
redirect: '/playground/chat'
18+
},
19+
{
20+
name: 'chat',
21+
title: 'Chat',
22+
path: '/playground/chat',
23+
key: 'chat',
24+
icon: 'Comment',
25+
component: './playground/index'
26+
},
27+
{
28+
name: 'rerank',
29+
title: 'Rerank',
30+
path: '/playground/rerank',
31+
key: 'rerank',
32+
icon: 'Comment',
33+
component: './playground/rerank'
34+
}
35+
]
1736
},
1837
{
1938
name: 'models',

package.json

+5-1
Original file line numberDiff line numberDiff line change
@@ -36,16 +36,19 @@
3636
"crypto-js": "^4.2.0",
3737
"dayjs": "^1.11.11",
3838
"echarts": "^5.5.1",
39+
"epubjs": "^0.3.93",
3940
"has-ansi": "^5.0.1",
4041
"highlight.js": "^11.10.0",
4142
"jotai": "^2.8.4",
43+
"jszip": "^3.10.1",
4244
"localforage": "^1.10.0",
4345
"lodash": "^4.17.21",
4446
"mammoth": "^1.8.0",
4547
"marked": "^14.1.0",
4648
"numeral": "^2.0.6",
4749
"overlayscrollbars": "^2.10.0",
4850
"overlayscrollbars-react": "^0.5.6",
51+
"pdfjs-dist": "^4.7.76",
4952
"query-string": "^9.0.0",
5053
"rc-resize-observer": "^1.4.0",
5154
"rc-virtual-list": "^3.14.8",
@@ -78,6 +81,7 @@
7881
"prettier-plugin-packagejson": "^2.5.0",
7982
"prettier-plugin-two-style-order": "^1.0.1",
8083
"typescript": "^5.4.5",
81-
"url-loader": "^4.1.1"
84+
"url-loader": "^4.1.1",
85+
"webpack-bundle-analyzer": "^4.10.2"
8286
}
8387
}

0 commit comments

Comments
 (0)