update style

This commit is contained in:
Billy Bao 2025-12-04 17:56:03 +08:00
parent 7b746a4f99
commit 0fe5372735

View file

@ -1,9 +1,9 @@
import { FormFieldType } from '@/components/dynamic-form'; import { FormFieldType } from '@/components/dynamic-form';
import SvgIcon from '@/components/svg-icon'; import SvgIcon from '@/components/svg-icon';
import { t } from 'i18next'; import { t } from 'i18next';
import { ConfluenceIndexingModeField } from './component/confluence-token-field';
import GmailTokenField from './component/gmail-token-field'; import GmailTokenField from './component/gmail-token-field';
import GoogleDriveTokenField from './component/google-drive-token-field'; import GoogleDriveTokenField from './component/google-drive-token-field';
export enum DataSourceKey { export enum DataSourceKey {
CONFLUENCE = 'confluence', CONFLUENCE = 'confluence',
S3 = 's3', S3 = 's3',
@ -230,23 +230,35 @@ export const DataSourceFormFields = {
required: false, required: false,
tooltip: t('setting.confluenceIsCloudTip'), tooltip: t('setting.confluenceIsCloudTip'),
}, },
{
label: 'Index Method',
name: 'config.index_mode',
type: FormFieldType.Text, // keep as text so RHF registers it
required: false,
horizontal: true,
labelClassName: 'self-start pt-4',
render: (fieldProps) => <ConfluenceIndexingModeField {...fieldProps} />,
},
{ {
label: 'Space Key', label: 'Space Key',
name: 'config.space', name: 'config.space',
type: FormFieldType.Text, type: FormFieldType.Text,
required: false, required: false,
hidden: true,
}, },
{ {
label: 'Page ID', label: 'Page ID',
name: 'config.page_id', name: 'config.page_id',
type: FormFieldType.Text, type: FormFieldType.Text,
required: false, required: false,
hidden: true,
}, },
{ {
label: 'Index Recursively', label: 'Index Recursively',
name: 'config.index_recursively', name: 'config.index_recursively',
type: FormFieldType.Checkbox, type: FormFieldType.Checkbox,
required: false, required: false,
hidden: true,
}, },
], ],
[DataSourceKey.GOOGLE_DRIVE]: [ [DataSourceKey.GOOGLE_DRIVE]: [