-
Notifications
You must be signed in to change notification settings - Fork 103
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
wangqi
committed
Jul 13, 2024
1 parent
6af8a84
commit 03219ca
Showing
16 changed files
with
162 additions
and
150 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
21 changes: 9 additions & 12 deletions
21
...es/Project/Workspace/DataIntegration/FlinkCDC/Steps/Connector/Sink/SinkKafkaConnector.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,42 +1,39 @@ | ||
import React from 'react'; | ||
import {useIntl} from "@umijs/max"; | ||
import {ProFormDigit, ProFormGroup, ProFormSelect, ProFormSwitch, ProFormText} from "@ant-design/pro-components"; | ||
import { | ||
KafkaParams, | ||
StarRocksParams | ||
} from "@/pages/Project/Workspace/DataIntegration/FlinkCDC/Steps/Connector/constant"; | ||
import {ProFormGroup, ProFormSelect, ProFormSwitch, ProFormText} from "@ant-design/pro-components"; | ||
import {KafkaParams} from "@/pages/Project/Workspace/DataIntegration/FlinkCDC/Steps/Connector/constant"; | ||
|
||
const SourceKafkaConnectorForm: React.FC = () => { | ||
const SinkKafkaConnectorForm: React.FC<{prefix: string}> = ({prefix}) => { | ||
const intl = useIntl(); | ||
|
||
return ( | ||
<ProFormGroup> | ||
<ProFormText | ||
name={KafkaParams.propertiesBootstrapServers} | ||
name={[prefix, KafkaParams.propertiesBootstrapServers]} | ||
label={intl.formatMessage({id: 'pages.project.di.flink-cdc.step.connector.kafka.propertiesBootstrapServers'})} | ||
rules={[{required: true}]} | ||
/> | ||
<ProFormText | ||
name={KafkaParams.topic} | ||
name={[prefix, KafkaParams.topic]} | ||
label={intl.formatMessage({id: 'pages.project.di.flink-cdc.step.connector.kafka.topic'})} | ||
/> | ||
<ProFormSelect | ||
name={KafkaParams.valueFormat} | ||
name={[prefix, KafkaParams.valueFormat]} | ||
label={intl.formatMessage({id: 'pages.project.di.flink-cdc.step.connector.kafka.valueFormat'})} | ||
allowClear={false} | ||
initialValue={'debezium-json'} | ||
options={['debezium-json', 'canal-json']} | ||
/> | ||
<ProFormSwitch | ||
name={KafkaParams.sinkAddTableIdToHeaderEnabled} | ||
name={[prefix, KafkaParams.sinkAddTableIdToHeaderEnabled]} | ||
label={intl.formatMessage({id: 'pages.project.di.flink-cdc.step.connector.kafka.sinkAddTableIdToHeaderEnabled'})} | ||
/> | ||
<ProFormText | ||
name={KafkaParams.sinkCustomHeader} | ||
name={[prefix, KafkaParams.sinkCustomHeader]} | ||
label={intl.formatMessage({id: 'pages.project.di.flink-cdc.step.connector.kafka.sinkCustomHeader'})} | ||
/> | ||
</ProFormGroup> | ||
); | ||
}; | ||
|
||
export default SourceKafkaConnectorForm; | ||
export default SinkKafkaConnectorForm; |
Oops, something went wrong.