浏览代码

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年前
父节点
当前提交
9b90a44323
没有帐户链接到提交者的电子邮件

+ 1
- 0
web/src/layouts/components/header/index.tsx 查看文件

{ path: '/chat', name: t('chat'), icon: MessageOutlined }, { path: '/chat', name: t('chat'), icon: MessageOutlined },
{ path: '/flow', name: t('flow'), icon: GraphIcon }, { path: '/flow', name: t('flow'), icon: GraphIcon },
{ path: '/file', name: t('fileManager'), icon: FileIcon }, { path: '/file', name: t('fileManager'), icon: FileIcon },
{ path: '/search', name: t('search'), icon: FileIcon },
], ],
[t], [t],
); );

+ 1
- 0
web/src/locales/en.ts 查看文件

logout: '登出', logout: '登出',
fileManager: 'File Management', fileManager: 'File Management',
flow: 'Agent', flow: 'Agent',
search: 'Search',
}, },
knowledgeList: { knowledgeList: {
welcome: 'Welcome back', welcome: 'Welcome back',

+ 1
- 0
web/src/locales/zh-traditional.ts 查看文件

logout: '登出', logout: '登出',
fileManager: '文件管理', fileManager: '文件管理',
flow: 'Agent', flow: 'Agent',
search: '搜尋',
}, },
knowledgeList: { knowledgeList: {
welcome: '歡迎回來', welcome: '歡迎回來',

+ 1
- 0
web/src/locales/zh.ts 查看文件

logout: '登出', logout: '登出',
fileManager: '文件管理', fileManager: '文件管理',
flow: 'Agent', flow: 'Agent',
search: '搜索',
}, },
knowledgeList: { knowledgeList: {
welcome: '欢迎回来', welcome: '欢迎回来',

+ 5
- 0
web/src/pages/search/index.tsx 查看文件

const SearchPage = () => {
return <div>SearchPage</div>;
};

export default SearchPage;

+ 4
- 0
web/src/routes.ts 查看文件

path: '/flow/:id', path: '/flow/:id',
component: '@/pages/flow', component: '@/pages/flow',
}, },
{
path: '/search',
component: '@/pages/search',
},
], ],
}, },
{ {

正在加载...
取消
保存