This is an automated email from the ASF dual-hosted git repository.
dockerzhang pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/inlong.git
The following commit(s) were added to refs/heads/master by this push:
new 974ef70d7f [INLONG-10215][DashBoard] Add default value for file data
source in data access module (#10216)
974ef70d7f is described below
commit 974ef70d7ff6b4d7f5d1484fcf6808d331f19ddb
Author: wohainilaodou <[email protected]>
AuthorDate: Tue May 14 15:40:50 2024 +0800
[INLONG-10215][DashBoard] Add default value for file data source in data
access module (#10216)
Co-authored-by: v_shuomqiu <v_shuomqiu@tencent>
---
inlong-dashboard/src/plugins/sources/defaults/File.ts | 6 +++++-
1 file changed, 5 insertions(+), 1 deletion(-)
diff --git a/inlong-dashboard/src/plugins/sources/defaults/File.ts
b/inlong-dashboard/src/plugins/sources/defaults/File.ts
index 8f59cb7674..9e5107fe24 100644
--- a/inlong-dashboard/src/plugins/sources/defaults/File.ts
+++ b/inlong-dashboard/src/plugins/sources/defaults/File.ts
@@ -139,6 +139,7 @@ export default class PulsarSource
@FieldDecorator({
type: 'inputnumber',
rules: [{ required: true }],
+ initialValue: 20,
props: values => ({
min: 1,
max: 100,
@@ -152,6 +153,7 @@ export default class PulsarSource
@FieldDecorator({
type: 'radio',
+ initialValue: 'H',
props: values => ({
disabled: Boolean(values.id),
options: [
@@ -177,9 +179,11 @@ export default class PulsarSource
@FieldDecorator({
type: 'input',
tooltip: i18n.t('meta.Sources.File.TimeOffsetHelp'),
+ initialValue: '0h',
rules: [
{
- pattern: /[0-9][mhd]$/,
+ pattern: /-?[0-9][mhd]$/,
+ required: true,
message: i18n.t('meta.Sources.File.TimeOffsetRules'),
},
],