Skip to content

Commit

Permalink
dev paimon
Browse files Browse the repository at this point in the history
  • Loading branch information
averyzhang committed Apr 22, 2024
1 parent a26b4d4 commit 521b4fa
Show file tree
Hide file tree
Showing 46 changed files with 3,787 additions and 41 deletions.
84 changes: 84 additions & 0 deletions inlong-dashboard/src/plugins/nodes/defaults/Paimon.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,84 @@
/*
* 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 PaimonNode extends NodeInfo implements DataWithBackend, RenderRow, RenderList {
@FieldDecorator({
type: 'input',
rules: [{ required: true }],
})
@I18n('meta.Nodes.Paimon.Username')
username: string;

@FieldDecorator({
type: 'password',
rules: [{ required: true }],
})
@I18n('meta.Nodes.Paimon.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.Paimon.Url')
url: string;

@FieldDecorator({
type: 'input',
rules: [{ required: true }],
props: values => ({
disabled: [110, 130].includes(values?.status),
placeholder: 'hdfs://127.0.0.1:9000/user/paimon/warehouse',
}),
})
@I18n('meta.Nodes.Paimon.Warehouse')
warehouse: string;

@FieldDecorator({
type: 'select',
initialValue: 'HIVE',
props: values => ({
disabled: [110, 130].includes(values?.status),
options: [
{
label: 'HIVE',
value: 'HIVE',
},
{
label: 'HADOOP',
value: 'HADOOP',
},
],
}),
})
@I18n('meta.Nodes.Paimon.CatalogType')
catalogType: string;
}
Loading

0 comments on commit 521b4fa

Please sign in to comment.