mirror of
https://github.com/infiniflow/ragflow.git
synced 2026-08-03 22:30:31 +08:00
Refactor: UmiJs -> Vite (#12410)
### What problem does this PR solve? Refactor: UmiJs -> Vite+React ### Type of change - [x] Refactoring --------- Co-authored-by: Liu An <asiro@qq.com>
This commit is contained in:
@@ -1,4 +1,3 @@
|
||||
import { ReactComponent as AssistantIcon } from '@/assets/svg/assistant.svg';
|
||||
import { MessageType } from '@/constants/chat';
|
||||
import {
|
||||
IMessage,
|
||||
@@ -21,9 +20,10 @@ import {
|
||||
removePDFDownloadInfo,
|
||||
} from '../pdf-download-button';
|
||||
import { RAGFlowAvatar } from '../ragflow-avatar';
|
||||
import SvgIcon from '../svg-icon';
|
||||
import { useTheme } from '../theme-provider';
|
||||
import { AssistantGroupButton, UserGroupButton } from './group-button';
|
||||
import styles from './index.less';
|
||||
import styles from './index.module.less';
|
||||
|
||||
interface IProps extends Partial<IRemoveMessageById>, IRegenerateMessage {
|
||||
item: IMessage;
|
||||
@@ -117,7 +117,11 @@ const MessageItem = ({
|
||||
isPerson
|
||||
/>
|
||||
) : (
|
||||
<AssistantIcon />
|
||||
<SvgIcon
|
||||
name={'assistant'}
|
||||
width={'100%'}
|
||||
className={cn('size-10 fill-current')}
|
||||
></SvgIcon>
|
||||
))}
|
||||
|
||||
<section className="flex gap-2 flex-1 flex-col">
|
||||
|
||||
Reference in New Issue
Block a user