update style
This commit is contained in:
parent
7b746a4f99
commit
0fe5372735
1 changed files with 13 additions and 1 deletions
|
|
@ -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]: [
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue