balibabu
commited on
Commit
·
e3239a2
1
Parent(s):
b102c54
feat: Add SearchPage #2247 (#2248)
Browse files### What problem does this PR solve?
feat: Add SearchPage #2247
### Type of change
- [x] New Feature (non-breaking change which adds functionality)
web/src/layouts/components/header/index.tsx
CHANGED
@@ -29,6 +29,7 @@ const RagHeader = () => {
|
|
29 |
{ path: '/chat', name: t('chat'), icon: MessageOutlined },
|
30 |
{ path: '/flow', name: t('flow'), icon: GraphIcon },
|
31 |
{ path: '/file', name: t('fileManager'), icon: FileIcon },
|
|
|
32 |
],
|
33 |
[t],
|
34 |
);
|
|
|
29 |
{ path: '/chat', name: t('chat'), icon: MessageOutlined },
|
30 |
{ path: '/flow', name: t('flow'), icon: GraphIcon },
|
31 |
{ path: '/file', name: t('fileManager'), icon: FileIcon },
|
32 |
+
{ path: '/search', name: t('search'), icon: FileIcon },
|
33 |
],
|
34 |
[t],
|
35 |
);
|
web/src/locales/en.ts
CHANGED
@@ -59,6 +59,7 @@ export default {
|
|
59 |
logout: '登出',
|
60 |
fileManager: 'File Management',
|
61 |
flow: 'Agent',
|
|
|
62 |
},
|
63 |
knowledgeList: {
|
64 |
welcome: 'Welcome back',
|
|
|
59 |
logout: '登出',
|
60 |
fileManager: 'File Management',
|
61 |
flow: 'Agent',
|
62 |
+
search: 'Search',
|
63 |
},
|
64 |
knowledgeList: {
|
65 |
welcome: 'Welcome back',
|
web/src/locales/zh-traditional.ts
CHANGED
@@ -59,6 +59,7 @@ export default {
|
|
59 |
logout: '登出',
|
60 |
fileManager: '文件管理',
|
61 |
flow: 'Agent',
|
|
|
62 |
},
|
63 |
knowledgeList: {
|
64 |
welcome: '歡迎回來',
|
|
|
59 |
logout: '登出',
|
60 |
fileManager: '文件管理',
|
61 |
flow: 'Agent',
|
62 |
+
search: '搜尋',
|
63 |
},
|
64 |
knowledgeList: {
|
65 |
welcome: '歡迎回來',
|
web/src/locales/zh.ts
CHANGED
@@ -59,6 +59,7 @@ export default {
|
|
59 |
logout: '登出',
|
60 |
fileManager: '文件管理',
|
61 |
flow: 'Agent',
|
|
|
62 |
},
|
63 |
knowledgeList: {
|
64 |
welcome: '欢迎回来',
|
|
|
59 |
logout: '登出',
|
60 |
fileManager: '文件管理',
|
61 |
flow: 'Agent',
|
62 |
+
search: '搜索',
|
63 |
},
|
64 |
knowledgeList: {
|
65 |
welcome: '欢迎回来',
|
web/src/pages/search/index.tsx
ADDED
@@ -0,0 +1,5 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
const SearchPage = () => {
|
2 |
+
return <div>SearchPage</div>;
|
3 |
+
};
|
4 |
+
|
5 |
+
export default SearchPage;
|
web/src/routes.ts
CHANGED
@@ -91,6 +91,10 @@ const routes = [
|
|
91 |
path: '/flow/:id',
|
92 |
component: '@/pages/flow',
|
93 |
},
|
|
|
|
|
|
|
|
|
94 |
],
|
95 |
},
|
96 |
{
|
|
|
91 |
path: '/flow/:id',
|
92 |
component: '@/pages/flow',
|
93 |
},
|
94 |
+
{
|
95 |
+
path: '/search',
|
96 |
+
component: '@/pages/search',
|
97 |
+
},
|
98 |
],
|
99 |
},
|
100 |
{
|