Browse Source

feat: Add SearchPage #2247 (#2248)

### What problem does this PR solve?

feat: Add SearchPage #2247

### Type of change


- [x] New Feature (non-breaking change which adds functionality)
tags/v0.11.0
balibabu 1 year ago
parent
commit
9b90a44323
No account linked to committer's email address

+ 1
- 0
web/src/layouts/components/header/index.tsx View File

@@ -29,6 +29,7 @@ const RagHeader = () => {
{ path: '/chat', name: t('chat'), icon: MessageOutlined },
{ path: '/flow', name: t('flow'), icon: GraphIcon },
{ path: '/file', name: t('fileManager'), icon: FileIcon },
{ path: '/search', name: t('search'), icon: FileIcon },
],
[t],
);

+ 1
- 0
web/src/locales/en.ts View File

@@ -59,6 +59,7 @@ export default {
logout: '登出',
fileManager: 'File Management',
flow: 'Agent',
search: 'Search',
},
knowledgeList: {
welcome: 'Welcome back',

+ 1
- 0
web/src/locales/zh-traditional.ts View File

@@ -59,6 +59,7 @@ export default {
logout: '登出',
fileManager: '文件管理',
flow: 'Agent',
search: '搜尋',
},
knowledgeList: {
welcome: '歡迎回來',

+ 1
- 0
web/src/locales/zh.ts View File

@@ -59,6 +59,7 @@ export default {
logout: '登出',
fileManager: '文件管理',
flow: 'Agent',
search: '搜索',
},
knowledgeList: {
welcome: '欢迎回来',

+ 5
- 0
web/src/pages/search/index.tsx View File

@@ -0,0 +1,5 @@
const SearchPage = () => {
return <div>SearchPage</div>;
};

export default SearchPage;

+ 4
- 0
web/src/routes.ts View File

@@ -91,6 +91,10 @@ const routes = [
path: '/flow/:id',
component: '@/pages/flow',
},
{
path: '/search',
component: '@/pages/search',
},
],
},
{

Loading…
Cancel
Save