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 d0a1462d75 [INLONG-9657][Dashboard] Support management of Doris data 
node (#9659)
d0a1462d75 is described below

commit d0a1462d7538cbecae174f1356febd817e7c1726
Author: Lizhen <[email protected]>
AuthorDate: Fri Feb 2 02:20:30 2024 +0800

    [INLONG-9657][Dashboard] Support management of Doris data node (#9659)
---
 .../src/plugins/nodes/defaults/Doris.ts            | 53 ++++++++++++++++++++++
 .../src/plugins/nodes/defaults/index.ts            |  5 ++
 inlong-dashboard/src/ui/locales/cn.json            |  3 ++
 inlong-dashboard/src/ui/locales/en.json            |  3 ++
 4 files changed, 64 insertions(+)

diff --git a/inlong-dashboard/src/plugins/nodes/defaults/Doris.ts 
b/inlong-dashboard/src/plugins/nodes/defaults/Doris.ts
new file mode 100644
index 0000000000..c2100d4094
--- /dev/null
+++ b/inlong-dashboard/src/plugins/nodes/defaults/Doris.ts
@@ -0,0 +1,53 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ *
+ *   http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+
+import { DataWithBackend } from '@/plugins/DataWithBackend';
+import { RenderRow } from '@/plugins/RenderRow';
+import { RenderList } from '@/plugins/RenderList';
+import { NodeInfo } from '../common/NodeInfo';
+
+const { I18n } = DataWithBackend;
+const { FieldDecorator } = RenderRow;
+
+export default class DorisNode extends NodeInfo implements DataWithBackend, 
RenderRow, RenderList {
+  @FieldDecorator({
+    type: 'input',
+    rules: [{ required: true }],
+  })
+  @I18n('meta.Nodes.Doris.Username')
+  username: string;
+
+  @FieldDecorator({
+    type: 'password',
+    rules: [{ required: true }],
+  })
+  @I18n('meta.Nodes.Doris.Password')
+  token: string;
+
+  @FieldDecorator({
+    type: 'input',
+    rules: [{ required: true }],
+    props: values => ({
+      disabled: [110, 130].includes(values?.status),
+      placeholder: 'thrift://127.0.0.1:9083',
+    }),
+  })
+  @I18n('meta.Nodes.Doris.Url')
+  url: string;
+}
diff --git a/inlong-dashboard/src/plugins/nodes/defaults/index.ts 
b/inlong-dashboard/src/plugins/nodes/defaults/index.ts
index 92dd32ad1b..212b0e53ef 100644
--- a/inlong-dashboard/src/plugins/nodes/defaults/index.ts
+++ b/inlong-dashboard/src/plugins/nodes/defaults/index.ts
@@ -36,6 +36,11 @@ export const allDefaultNodes: 
MetaExportWithBackendList<NodeMetaType> = [
     value: 'CLS',
     LoadEntity: () => import('./Cls'),
   },
+  {
+    label: 'Doris',
+    value: 'DORIS',
+    LoadEntity: () => import('./Doris'),
+  },
   {
     label: 'Elasticsearch',
     value: 'ELASTICSEARCH',
diff --git a/inlong-dashboard/src/ui/locales/cn.json 
b/inlong-dashboard/src/ui/locales/cn.json
index 4ec4694f96..99cabbacae 100644
--- a/inlong-dashboard/src/ui/locales/cn.json
+++ b/inlong-dashboard/src/ui/locales/cn.json
@@ -502,6 +502,9 @@
   "meta.Nodes.Cls.Endpoint": "云日志接入点",
   "meta.Nodes.Cls.Region": "云日志地区",
   "meta.Nodes.Cls.LogSetId": "云日志日志集 ID",
+  "meta.Nodes.Doris.Username": "用户名",
+  "meta.Nodes.Doris.Password": "密码",
+  "meta.Nodes.Doris.Url": "地址",
   "components.EditableTable.NewLine": "新增一行",
   "components.EditableTable.BatchParseField": "批量解析字段",
   "components.EditableTable.DeleteAll": "删除全部",
diff --git a/inlong-dashboard/src/ui/locales/en.json 
b/inlong-dashboard/src/ui/locales/en.json
index 00693be7d0..3d1ecce05c 100644
--- a/inlong-dashboard/src/ui/locales/en.json
+++ b/inlong-dashboard/src/ui/locales/en.json
@@ -502,6 +502,9 @@
   "meta.Nodes.Cls.Endpoint": "Endpoint",
   "meta.Nodes.Cls.Region": "Service region",
   "meta.Nodes.Cls.LogSetId": "Log set id",
+  "meta.Nodes.Doris.Username": "Username",
+  "meta.Nodes.Doris.Password": "Password",
+  "meta.Nodes.Doris.Url": "URL",
   "components.EditableTable.NewLine": "New line",
   "components.EditableTable.BatchParseField": "Batch add",
   "components.EditableTable.DeleteAll": "Delete all",

Reply via email to