mirror of
https://github.com/infiniflow/ragflow.git
synced 2025-12-08 20:42:30 +08:00
### What problem does this PR solve? Fix: Added styles for empty states on the page. ### Type of change - [x] Bug Fix (non-breaking change which fixes an issue)
This commit is contained in:
33
web/src/components/empty/constant.tsx
Normal file
33
web/src/components/empty/constant.tsx
Normal file
@ -0,0 +1,33 @@
|
||||
import { t } from 'i18next';
|
||||
import { HomeIcon } from '../svg-icon';
|
||||
|
||||
export enum EmptyType {
|
||||
Data = 'data',
|
||||
SearchData = 'search-data',
|
||||
}
|
||||
|
||||
export enum EmptyCardType {
|
||||
Agent = 'agent',
|
||||
Dataset = 'dataset',
|
||||
Chat = 'chat',
|
||||
Search = 'search',
|
||||
}
|
||||
|
||||
export const EmptyCardData = {
|
||||
[EmptyCardType.Agent]: {
|
||||
icon: <HomeIcon name="agents" width={'24'} />,
|
||||
title: t('empty.agentTitle'),
|
||||
},
|
||||
[EmptyCardType.Dataset]: {
|
||||
icon: <HomeIcon name="datasets" width={'24'} />,
|
||||
title: t('empty.datasetTitle'),
|
||||
},
|
||||
[EmptyCardType.Chat]: {
|
||||
icon: <HomeIcon name="chats" width={'24'} />,
|
||||
title: t('empty.chatTitle'),
|
||||
},
|
||||
[EmptyCardType.Search]: {
|
||||
icon: <HomeIcon name="searches" width={'24'} />,
|
||||
title: t('empty.searchTitle'),
|
||||
},
|
||||
};
|
||||
Reference in New Issue
Block a user