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 d668e3296a [INLONG-8882][Dashboard] Support management of Pulsar data
node (#8900)
d668e3296a is described below
commit d668e3296a9ef80e592d8631627120f0c00f1f75
Author: Lizhen <[email protected]>
AuthorDate: Tue Sep 12 20:04:03 2023 +0800
[INLONG-8882][Dashboard] Support management of Pulsar data node (#8900)
---
.../src/plugins/nodes/defaults/Pulsar.ts | 54 ++++++++++++++++++++++
.../src/plugins/nodes/defaults/index.ts | 5 ++
2 files changed, 59 insertions(+)
diff --git a/inlong-dashboard/src/plugins/nodes/defaults/Pulsar.ts
b/inlong-dashboard/src/plugins/nodes/defaults/Pulsar.ts
new file mode 100644
index 0000000000..435b4b717a
--- /dev/null
+++ b/inlong-dashboard/src/plugins/nodes/defaults/Pulsar.ts
@@ -0,0 +1,54 @@
+/*
+ * 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 PulsarNode extends NodeInfo implements DataWithBackend,
RenderRow, RenderList {
+ @FieldDecorator({
+ type: 'input',
+ rules: [{ required: true }],
+ props: {
+ placeholder: 'pulsar://127.0.0.1:6650,127.0.1.2:6650',
+ },
+ })
+ @I18n('Service URL')
+ serviceUrl: string;
+
+ @FieldDecorator({
+ type: 'input',
+ rules: [{ required: true }],
+ props: {
+ placeholder: 'http://127.0.0.1:8080,127.0.1.2:8080',
+ },
+ })
+ @I18n('adminUrl')
+ adminUrl: string;
+
+ @FieldDecorator({
+ type: 'password',
+ })
+ @I18n('token')
+ token: string;
+}
diff --git a/inlong-dashboard/src/plugins/nodes/defaults/index.ts
b/inlong-dashboard/src/plugins/nodes/defaults/index.ts
index caaee7a722..3a43e010fe 100644
--- a/inlong-dashboard/src/plugins/nodes/defaults/index.ts
+++ b/inlong-dashboard/src/plugins/nodes/defaults/index.ts
@@ -61,6 +61,11 @@ export const allDefaultNodes:
MetaExportWithBackendList<NodeMetaType> = [
value: 'POSTGRESQL',
LoadEntity: () => import('./PostgreSQL'),
},
+ {
+ label: 'Pulsar',
+ value: 'PULSAR',
+ LoadEntity: () => import('./Pulsar'),
+ },
{
label: 'Redis',
value: 'REDIS',