Skip to content

Commit

Permalink
feat: Add SearchPage #2247 (#2248)
Browse files Browse the repository at this point in the history
### What problem does this PR solve?

feat: Add SearchPage #2247

### Type of change


- [x] New Feature (non-breaking change which adds functionality)
  • Loading branch information
cike8899 authored Sep 5, 2024
1 parent 426fdaf commit 9b90a44
Show file tree
Hide file tree
Showing 6 changed files with 13 additions and 0 deletions.
1 change: 1 addition & 0 deletions web/src/layouts/components/header/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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],
);
Expand Down
1 change: 1 addition & 0 deletions web/src/locales/en.ts
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,7 @@ export default {
logout: '登出',
fileManager: 'File Management',
flow: 'Agent',
search: 'Search',
},
knowledgeList: {
welcome: 'Welcome back',
Expand Down
1 change: 1 addition & 0 deletions web/src/locales/zh-traditional.ts
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,7 @@ export default {
logout: '登出',
fileManager: '文件管理',
flow: 'Agent',
search: '搜尋',
},
knowledgeList: {
welcome: '歡迎回來',
Expand Down
1 change: 1 addition & 0 deletions web/src/locales/zh.ts
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,7 @@ export default {
logout: '登出',
fileManager: '文件管理',
flow: 'Agent',
search: '搜索',
},
knowledgeList: {
welcome: '欢迎回来',
Expand Down
5 changes: 5 additions & 0 deletions web/src/pages/search/index.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
const SearchPage = () => {
return <div>SearchPage</div>;
};

export default SearchPage;
4 changes: 4 additions & 0 deletions web/src/routes.ts
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,10 @@ const routes = [
path: '/flow/:id',
component: '@/pages/flow',
},
{
path: '/search',
component: '@/pages/search',
},
],
},
{
Expand Down

0 comments on commit 9b90a44

Please sign in to comment.