mirror of
https://github.com/infiniflow/ragflow.git
synced 2026-08-01 05:23:47 +08:00
### What problem does this PR solve? feat: change all file names to lowercase #1574 ### Type of change - [x] New Feature (non-breaking change which adds functionality)
41 lines
1.1 KiB
TypeScript
41 lines
1.1 KiB
TypeScript
import { Col, Divider, Row, Spin, Typography } from 'antd';
|
|
import CategoryPanel from './category-panel';
|
|
import ConfigurationForm from './configuration';
|
|
import {
|
|
useHandleChunkMethodChange,
|
|
useSelectKnowledgeDetailsLoading,
|
|
} from './hooks';
|
|
|
|
import { useTranslate } from '@/hooks/common-hooks';
|
|
import styles from './index.less';
|
|
|
|
const { Title } = Typography;
|
|
|
|
const Configuration = () => {
|
|
const loading = useSelectKnowledgeDetailsLoading();
|
|
const { form, chunkMethod } = useHandleChunkMethodChange();
|
|
const { t } = useTranslate('knowledgeConfiguration');
|
|
|
|
return (
|
|
<div className={styles.configurationWrapper}>
|
|
<Title level={5}>
|
|
{t('configuration', { keyPrefix: 'knowledgeDetails' })}
|
|
</Title>
|
|
<p>{t('titleDescription')}</p>
|
|
<Divider></Divider>
|
|
<Spin spinning={loading}>
|
|
<Row gutter={32}>
|
|
<Col span={8}>
|
|
<ConfigurationForm form={form}></ConfigurationForm>
|
|
</Col>
|
|
<Col span={16}>
|
|
<CategoryPanel chunkMethod={chunkMethod}></CategoryPanel>
|
|
</Col>
|
|
</Row>
|
|
</Spin>
|
|
</div>
|
|
);
|
|
};
|
|
|
|
export default Configuration;
|