mirror of
https://git.mirrors.martin98.com/https://github.com/infiniflow/ragflow.git
synced 2025-08-14 00:15:53 +08:00
### What problem does this PR solve? fix: Web code build fails on ARM machines #2554 ### Type of change - [x] Bug Fix (non-breaking change which fixes an issue)
This commit is contained in:
parent
7b3099b1a1
commit
832c90ac3e
@ -30,7 +30,7 @@ export default defineConfig({
|
||||
copy: ['src/conf.json'],
|
||||
proxy: {
|
||||
'/v1': {
|
||||
target: 'http://127.0.0.1:9380/',
|
||||
target: 'http://127.0.0.1:9456/',
|
||||
changeOrigin: true,
|
||||
ws: true,
|
||||
logger: console,
|
||||
|
@ -435,7 +435,7 @@ The above is the content you need to summarize.`,
|
||||
'To play the voice using voice conversion, please select TTS (speech conversion model) in the settings first.',
|
||||
relatedQuestion: 'Related question',
|
||||
answerTitle: 'R',
|
||||
multiTurn: 'Multi-trun optimization',
|
||||
multiTurn: 'Multi-turn optimization',
|
||||
multiTurnTip:
|
||||
'In multi-round conversations, the query to the knowledge base is optimized. The large model will be called to consume additional tokens.',
|
||||
},
|
||||
|
@ -17,7 +17,6 @@ import {
|
||||
} from '@ant-design/icons';
|
||||
import { Button, Space, Tooltip } from 'antd';
|
||||
import { useHandleDeleteFile } from '../hooks';
|
||||
import styles from './index.less';
|
||||
|
||||
interface IProps {
|
||||
record: IFile;
|
||||
@ -74,11 +73,7 @@ const ActionCell = ({
|
||||
<Space size={0}>
|
||||
{isKnowledgeBase || (
|
||||
<Tooltip title={t('addToKnowledge')}>
|
||||
<Button
|
||||
type="text"
|
||||
className={styles.iconButton}
|
||||
onClick={onShowConnectToKnowledgeModal}
|
||||
>
|
||||
<Button type="text" onClick={onShowConnectToKnowledgeModal}>
|
||||
<LinkOutlined size={20} />
|
||||
</Button>
|
||||
</Tooltip>
|
||||
@ -86,12 +81,7 @@ const ActionCell = ({
|
||||
|
||||
{isKnowledgeBase || (
|
||||
<Tooltip title={t('rename', { keyPrefix: 'common' })}>
|
||||
<Button
|
||||
type="text"
|
||||
disabled={beingUsed}
|
||||
onClick={onShowRenameModal}
|
||||
className={styles.iconButton}
|
||||
>
|
||||
<Button type="text" disabled={beingUsed} onClick={onShowRenameModal}>
|
||||
<EditOutlined size={20} />
|
||||
</Button>
|
||||
</Tooltip>
|
||||
@ -102,7 +92,6 @@ const ActionCell = ({
|
||||
type="text"
|
||||
disabled={beingUsed}
|
||||
onClick={onShowMoveFileModal}
|
||||
className={styles.iconButton}
|
||||
>
|
||||
<SvgIcon name={`move`} width={16}></SvgIcon>
|
||||
</Button>
|
||||
@ -110,24 +99,14 @@ const ActionCell = ({
|
||||
)}
|
||||
{isKnowledgeBase || (
|
||||
<Tooltip title={t('delete', { keyPrefix: 'common' })}>
|
||||
<Button
|
||||
type="text"
|
||||
disabled={beingUsed}
|
||||
onClick={handleRemoveFile}
|
||||
className={styles.iconButton}
|
||||
>
|
||||
<Button type="text" disabled={beingUsed} onClick={handleRemoveFile}>
|
||||
<DeleteOutlined size={20} />
|
||||
</Button>
|
||||
</Tooltip>
|
||||
)}
|
||||
{record.type !== 'folder' && (
|
||||
<Tooltip title={t('download', { keyPrefix: 'common' })}>
|
||||
<Button
|
||||
type="text"
|
||||
disabled={beingUsed}
|
||||
onClick={onDownloadDocument}
|
||||
className={styles.iconButton}
|
||||
>
|
||||
<Button type="text" disabled={beingUsed} onClick={onDownloadDocument}>
|
||||
<DownloadOutlined size={20} />
|
||||
</Button>
|
||||
</Tooltip>
|
||||
@ -139,7 +118,7 @@ const ActionCell = ({
|
||||
color="black"
|
||||
>
|
||||
<Tooltip title={t('preview')}>
|
||||
<Button type="text" className={styles.iconButton}>
|
||||
<Button type="text">
|
||||
<EyeOutlined size={20} />
|
||||
</Button>
|
||||
</Tooltip>
|
||||
|
Loading…
x
Reference in New Issue
Block a user