This is an automated email from the ASF dual-hosted git repository.
likyh pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/incubator-devlake.git
The following commit(s) were added to refs/heads/main by this push:
new 5af6a851b refactor(config-ui): supplement all plugin information
(#4042)
5af6a851b is described below
commit 5af6a851b09f4a3e116f21007a1992c013779c4a
Author: 青湛 <[email protected]>
AuthorDate: Wed Dec 28 10:27:53 2022 +0800
refactor(config-ui): supplement all plugin information (#4042)
---
config-ui/src/plugins/ae/assets/icon.svg | 27 +++++++++++
.../src/plugins/{gitextractor => ae}/config.ts | 9 ++--
.../{gitextractor/config.ts => ae/index.ts} | 11 +----
config-ui/src/plugins/azure/assets/icon.svg | 22 +++++++++
.../src/plugins/{gitextractor => azure}/config.ts | 9 ++--
.../{gitextractor/config.ts => azure/index.ts} | 11 +----
config-ui/src/plugins/bitbucket/assets/icon.svg | 19 ++++++++
.../plugins/{gitextractor => bitbucket}/config.ts | 9 ++--
.../{gitextractor/config.ts => bitbucket/index.ts} | 11 +----
config-ui/src/plugins/config.ts | 45 ++++++++++++-----
config-ui/src/plugins/dbt/assets/icon.svg | 27 +++++++++++
.../src/plugins/{gitextractor => dbt}/config.ts | 9 ++--
.../{gitextractor/config.ts => dbt/index.ts} | 11 +----
config-ui/src/plugins/dora/assets/icon.svg | 27 +++++++++++
.../src/plugins/{gitextractor => dora}/config.ts | 9 ++--
.../{gitextractor/config.ts => dora/index.ts} | 11 +----
config-ui/src/plugins/feishu/assets/icon.svg | 27 +++++++++++
.../src/plugins/{gitextractor => feishu}/config.ts | 9 ++--
.../{gitextractor/config.ts => feishu/index.ts} | 11 +----
config-ui/src/plugins/gitee/assets/icon.svg | 19 ++++++++
.../src/plugins/{gitextractor => gitee}/config.ts | 9 ++--
.../{gitextractor/config.ts => gitee/index.ts} | 11 +----
config-ui/src/plugins/gitextractor/config.ts | 7 +--
config-ui/src/plugins/github/config.ts | 56 ++++++++++++++++++++--
config-ui/src/plugins/github_graphql/config.ts | 7 +--
config-ui/src/plugins/gitlab/config.ts | 45 +++++++++++++++--
config-ui/src/plugins/jenkins/config.ts | 52 ++++++++++++++++++--
config-ui/src/plugins/jira/config.ts | 54 +++++++++++++++++++--
config-ui/src/plugins/refdiff/assets/icon.svg | 27 +++++++++++
.../plugins/{gitextractor => refdiff}/config.ts | 9 ++--
.../{gitextractor/config.ts => refdiff/index.ts} | 11 +----
config-ui/src/plugins/starrocks/assets/icon.svg | 27 +++++++++++
.../plugins/{gitextractor => starrocks}/config.ts | 9 ++--
.../{gitextractor/config.ts => starrocks/index.ts} | 11 +----
config-ui/src/plugins/tapd/assets/icon.svg | 22 +++++++++
.../src/plugins/{gitextractor => tapd}/config.ts | 9 ++--
.../{gitextractor/config.ts => tapd/index.ts} | 11 +----
config-ui/src/plugins/types.ts | 37 ++++++++++++--
config-ui/src/plugins/webook/config.ts | 4 +-
config-ui/src/plugins/zentao/assets/icon.svg | 20 ++++++++
.../src/plugins/{gitextractor => zentao}/config.ts | 9 ++--
.../{gitextractor/config.ts => zentao/index.ts} | 11 +----
42 files changed, 603 insertions(+), 188 deletions(-)
diff --git a/config-ui/src/plugins/ae/assets/icon.svg
b/config-ui/src/plugins/ae/assets/icon.svg
new file mode 100644
index 000000000..77cd941cf
--- /dev/null
+++ b/config-ui/src/plugins/ae/assets/icon.svg
@@ -0,0 +1,27 @@
+<!--
+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.
+-->
+<svg xmlns="http://www.w3.org/2000/svg"
xmlns:xlink="http://www.w3.org/1999/xlink" fill="#000000" height="800px"
width="800px" version="1.1" viewBox="0 0 231.087 231.087"
enable-background="new 0 0 231.087 231.087">
+ <g>
+ <path
d="m230.042,142.627c-1.871-2.744-5.612-3.452-8.355-1.581l-65.513,44.667-14.55-19.473c-1.526-2.036-4.241-2.977-6.788-2.129-3.185,1.06-4.908,4.501-3.848,7.686l11.908,35.785c0.45,1.33
1.184,2.645 2.18,3.757 3.94,4.401 10.702,4.776 15.104,0.836l.777-.695
68.129-60.985c2.216-1.981 2.676-5.346 0.956-7.868z"/>
+ <path d="m120.211,190.676h-108.211v-162.49h158.43v124.823c0,3.313
2.687,6 6,6s6-2.687
6-6v-130.823c0-3.313-2.687-6-6-6h-170.43c-3.313,0-6,2.687-6,6v174.49c0,3.313
2.687,6 6,6h114.211c3.313,0 6-2.687 6-6 0-3.314-2.687-6-6-6z"/>
+ <path d="m139.694,53.855h-96.959c-3.313,0-6,2.687-6,6s2.687,6
6,6h96.959c3.313,0 6-2.687 6-6s-2.686-6-6-6z"/>
+ <path d="m139.694,79.79h-96.959c-3.313,0-6,2.687-6,6s2.687,6
6,6h96.959c3.313,0 6-2.687 6-6s-2.686-6-6-6z"/>
+ <path d="m139.694,105.725h-96.959c-3.313,0-6,2.687-6,6s2.687,6
6,6h96.959c3.313,0 6-2.687 6-6s-2.686-6-6-6z"/>
+ <path
d="m145.694,137.659c0-3.313-2.687-6-6-6h-96.959c-3.313,0-6,2.687-6,6s2.687,6
6,6h96.959c3.314,0 6-2.686 6-6z"/>
+ <path
d="M42.735,156.329c-3.313,0-6,2.687-6,6s2.687,6,6,6h48.479c3.313,0,6-2.687,6-6s-2.687-6-6-6H42.735z"/>
+ </g>
+</svg>
\ No newline at end of file
diff --git a/config-ui/src/plugins/gitextractor/config.ts
b/config-ui/src/plugins/ae/config.ts
similarity index 83%
copy from config-ui/src/plugins/gitextractor/config.ts
copy to config-ui/src/plugins/ae/config.ts
index 251f685fc..c0459a8a0 100644
--- a/config-ui/src/plugins/gitextractor/config.ts
+++ b/config-ui/src/plugins/ae/config.ts
@@ -16,13 +16,14 @@
*
*/
-import { PluginType } from '@/plugins'
+import type { PluginConfigType } from '@/plugins'
+import { Plugins, PluginType } from '@/plugins'
import Icon from './assets/icon.svg'
-export const GitExtractorConfig = {
- plugin: 'gitextractor',
- name: 'GitExtractor',
+export const AEConfig: PluginConfigType = {
+ plugin: Plugins.AE,
+ name: 'AE',
type: PluginType.Pipeline,
icon: Icon
}
diff --git a/config-ui/src/plugins/gitextractor/config.ts
b/config-ui/src/plugins/ae/index.ts
similarity index 79%
copy from config-ui/src/plugins/gitextractor/config.ts
copy to config-ui/src/plugins/ae/index.ts
index 251f685fc..57eb52efa 100644
--- a/config-ui/src/plugins/gitextractor/config.ts
+++ b/config-ui/src/plugins/ae/index.ts
@@ -16,13 +16,4 @@
*
*/
-import { PluginType } from '@/plugins'
-
-import Icon from './assets/icon.svg'
-
-export const GitExtractorConfig = {
- plugin: 'gitextractor',
- name: 'GitExtractor',
- type: PluginType.Pipeline,
- icon: Icon
-}
+export * from './config'
diff --git a/config-ui/src/plugins/azure/assets/icon.svg
b/config-ui/src/plugins/azure/assets/icon.svg
new file mode 100644
index 000000000..262235aba
--- /dev/null
+++ b/config-ui/src/plugins/azure/assets/icon.svg
@@ -0,0 +1,22 @@
+<!--
+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.
+-->
+<svg width="100" height="100" viewBox="0 0 60 60" fill="none"
xmlns="http://www.w3.org/2000/svg">
+ <path d="M41.6217 5.85234C41.4483 5.33862 41.1182 4.89221 40.6778
4.57602C40.2374 4.25982 39.7088 4.08978 39.1667 4.08984H21.0298C21.5719 4.08987
22.1004 4.25995 22.5408 4.57613C22.9812 4.89231 23.3114 5.33867 23.4848
5.85234L39.2248 52.4898C39.3564 52.8796 39.3932 53.2952 39.3324 53.702C39.2715
54.1089 39.1146 54.4955 38.8747 54.8297C38.6348 55.1639 38.3187 55.4362 37.9527
55.624C37.5867 55.8118 37.1812 55.9098 36.7698 55.9098H54.9073C55.3186 55.9097
55.7241 55.8117 56.09 55.6238C56 [...]
+ <path fill-rule="evenodd" clip-rule="evenodd" d="M31.191 37.6631L36.195
52.49C36.3266 52.8798 36.3635 53.2953 36.3026 53.7022C36.2417 54.109 36.0848
54.4956 35.8449 54.8298C35.6176 55.1465 35.3219 55.4076 34.9801 55.5939C34.7877
55.4895 34.6076 55.3604 34.445 55.2087L17.8625 39.7312C17.687 39.5676 17.5648
39.355 17.5119 39.121C17.4589 38.887 17.4777 38.6425 17.5657 38.4193C17.6537
38.1961 17.8069 38.0046 18.0053 37.8697C18.2038 37.7348 18.4382 37.6628 18.6781
37.6631H31.191Z" fill="# [...]
+ <path fill-rule="evenodd" clip-rule="evenodd" d="M26.4536 35.6629L28.4847
29.645L20.4548 5.85233C20.2814 5.33865 19.9512 4.8923 19.5108 4.57612C19.4799
4.55394 19.4486 4.53248 19.4169 4.51175C19.385 4.53256 19.3535 4.55411 19.3225
4.57639C18.8814 4.89314 18.5508 5.34028 18.3773 5.85484L2.63788 52.4905C2.5064
52.8802 2.46961 53.2956 2.53054 53.7024C2.59148 54.1092 2.74839 54.4956 2.9883
54.8297C3.22821 55.1638 3.54422 55.4359 3.91019 55.6237C4.27616 55.8114 4.68157
55.9093 5.09288 55. [...]
+ <path fill-rule="evenodd" clip-rule="evenodd" d="M31.191 37.6631L36.195
52.49C36.3266 52.8798 36.3635 53.2953 36.3026 53.7022C36.2417 54.109 36.0848
54.4956 35.8449 54.8298C35.6176 55.1465 35.3219 55.4076 34.9801 55.5939C34.7877
55.4895 34.6076 55.3604 34.445 55.2087L17.8625 39.7312C17.687 39.5676 17.5648
39.355 17.5119 39.121C17.4589 38.887 17.4777 38.6425 17.5657 38.4193C17.6537
38.1961 17.8069 38.0046 18.0053 37.8697C18.2038 37.7348 18.4382 37.6628 18.6781
37.6631H31.191Z" fill="# [...]
+</svg>
\ No newline at end of file
diff --git a/config-ui/src/plugins/gitextractor/config.ts
b/config-ui/src/plugins/azure/config.ts
similarity index 82%
copy from config-ui/src/plugins/gitextractor/config.ts
copy to config-ui/src/plugins/azure/config.ts
index 251f685fc..d16a4389d 100644
--- a/config-ui/src/plugins/gitextractor/config.ts
+++ b/config-ui/src/plugins/azure/config.ts
@@ -16,13 +16,14 @@
*
*/
-import { PluginType } from '@/plugins'
+import type { PluginConfigType } from '@/plugins'
+import { Plugins, PluginType } from '@/plugins'
import Icon from './assets/icon.svg'
-export const GitExtractorConfig = {
- plugin: 'gitextractor',
- name: 'GitExtractor',
+export const AzureConfig: PluginConfigType = {
+ plugin: Plugins.Azure,
+ name: 'Azure',
type: PluginType.Pipeline,
icon: Icon
}
diff --git a/config-ui/src/plugins/gitextractor/config.ts
b/config-ui/src/plugins/azure/index.ts
similarity index 79%
copy from config-ui/src/plugins/gitextractor/config.ts
copy to config-ui/src/plugins/azure/index.ts
index 251f685fc..57eb52efa 100644
--- a/config-ui/src/plugins/gitextractor/config.ts
+++ b/config-ui/src/plugins/azure/index.ts
@@ -16,13 +16,4 @@
*
*/
-import { PluginType } from '@/plugins'
-
-import Icon from './assets/icon.svg'
-
-export const GitExtractorConfig = {
- plugin: 'gitextractor',
- name: 'GitExtractor',
- type: PluginType.Pipeline,
- icon: Icon
-}
+export * from './config'
diff --git a/config-ui/src/plugins/bitbucket/assets/icon.svg
b/config-ui/src/plugins/bitbucket/assets/icon.svg
new file mode 100644
index 000000000..d68937906
--- /dev/null
+++ b/config-ui/src/plugins/bitbucket/assets/icon.svg
@@ -0,0 +1,19 @@
+<!--
+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.
+-->
+<svg width="100" height="100" viewBox="0 0 52 48" fill="none"
xmlns="http://www.w3.org/2000/svg">
+ <path d="M1.68758 0.51967C1.44443 0.516534 1.20354 0.566658 0.98183
0.666529C0.760116 0.766397 0.562951 0.913588 0.404177 1.09776C0.245403 1.28194
0.128869 1.49864 0.0627574 1.73265C-0.00335344 1.96666 -0.0174403 2.2123
0.0214867 2.45233L7.09404 45.3875C7.18216 45.9129 7.45259 46.3904 7.85783
46.7363C8.26307 47.0821 8.77721 47.2741 9.30994 47.2785H43.2399C43.6392 47.2836
44.0271 47.1451 44.3329 46.8883C44.6387 46.6314 44.8421 46.2732 44.906
45.879L49.1639 19.7392H33.4921L31.4689 31.5 [...]
+</svg>
\ No newline at end of file
diff --git a/config-ui/src/plugins/gitextractor/config.ts
b/config-ui/src/plugins/bitbucket/config.ts
similarity index 81%
copy from config-ui/src/plugins/gitextractor/config.ts
copy to config-ui/src/plugins/bitbucket/config.ts
index 251f685fc..031911ff4 100644
--- a/config-ui/src/plugins/gitextractor/config.ts
+++ b/config-ui/src/plugins/bitbucket/config.ts
@@ -16,13 +16,14 @@
*
*/
-import { PluginType } from '@/plugins'
+import type { PluginConfigType } from '@/plugins'
+import { Plugins, PluginType } from '@/plugins'
import Icon from './assets/icon.svg'
-export const GitExtractorConfig = {
- plugin: 'gitextractor',
- name: 'GitExtractor',
+export const BitBucketConfig: PluginConfigType = {
+ plugin: Plugins.BitBucket,
+ name: 'BitBucket',
type: PluginType.Pipeline,
icon: Icon
}
diff --git a/config-ui/src/plugins/gitextractor/config.ts
b/config-ui/src/plugins/bitbucket/index.ts
similarity index 79%
copy from config-ui/src/plugins/gitextractor/config.ts
copy to config-ui/src/plugins/bitbucket/index.ts
index 251f685fc..57eb52efa 100644
--- a/config-ui/src/plugins/gitextractor/config.ts
+++ b/config-ui/src/plugins/bitbucket/index.ts
@@ -16,13 +16,4 @@
*
*/
-import { PluginType } from '@/plugins'
-
-import Icon from './assets/icon.svg'
-
-export const GitExtractorConfig = {
- plugin: 'gitextractor',
- name: 'GitExtractor',
- type: PluginType.Pipeline,
- icon: Icon
-}
+export * from './config'
diff --git a/config-ui/src/plugins/config.ts b/config-ui/src/plugins/config.ts
index 10d9c33d2..6b9ac011b 100644
--- a/config-ui/src/plugins/config.ts
+++ b/config-ui/src/plugins/config.ts
@@ -16,20 +16,43 @@
*
*/
-import { GitHubConfig } from '@/plugins/github'
-import { JIRAConfig } from '@/plugins/jira'
-import { GitLabConfig } from '@/plugins/gitlab'
-import { JenkinsConfig } from '@/plugins/jenkins'
-import { WebhookConfig } from '@/plugins/webook'
-import { GitHubGraphqlConfig } from '@/plugins/github_graphql'
-import { GitExtractorConfig } from '@/plugins/gitextractor'
+import type { PluginConfigType } from './types'
+import { AEConfig } from './ae'
+import { AzureConfig } from './azure'
+import { BitBucketConfig } from './bitbucket'
+import { DBTConfig } from './dbt'
+import { DORAConfig } from './dora'
+import { FeiShuConfig } from './feishu'
+import { GiteeConfig } from './gitee'
+import { GitExtractorConfig } from './gitextractor'
+import { GitHubConfig } from './github'
+import { GitHubGraphqlConfig } from './github_graphql'
+import { GitLabConfig } from './gitlab'
+import { JenkinsConfig } from './jenkins'
+import { JIRAConfig } from './jira'
+import { RefDiffConfig } from './refdiff'
+import { StarRocksConfig } from './starrocks'
+import { TAPDConfig } from './tapd'
+import { WebhookConfig } from './webook'
+import { ZenTaoConfig } from './zentao'
-export const PluginConfig = [
+export const PluginConfig: PluginConfigType[] = [
+ AEConfig,
+ AzureConfig,
+ BitBucketConfig,
+ DBTConfig,
+ DORAConfig,
+ FeiShuConfig,
+ GiteeConfig,
+ GitExtractorConfig,
GitHubConfig,
- JIRAConfig,
+ GitHubGraphqlConfig,
GitLabConfig,
JenkinsConfig,
+ JIRAConfig,
+ RefDiffConfig,
+ StarRocksConfig,
+ TAPDConfig,
WebhookConfig,
- GitHubGraphqlConfig,
- GitExtractorConfig
+ ZenTaoConfig
]
diff --git a/config-ui/src/plugins/dbt/assets/icon.svg
b/config-ui/src/plugins/dbt/assets/icon.svg
new file mode 100644
index 000000000..77cd941cf
--- /dev/null
+++ b/config-ui/src/plugins/dbt/assets/icon.svg
@@ -0,0 +1,27 @@
+<!--
+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.
+-->
+<svg xmlns="http://www.w3.org/2000/svg"
xmlns:xlink="http://www.w3.org/1999/xlink" fill="#000000" height="800px"
width="800px" version="1.1" viewBox="0 0 231.087 231.087"
enable-background="new 0 0 231.087 231.087">
+ <g>
+ <path
d="m230.042,142.627c-1.871-2.744-5.612-3.452-8.355-1.581l-65.513,44.667-14.55-19.473c-1.526-2.036-4.241-2.977-6.788-2.129-3.185,1.06-4.908,4.501-3.848,7.686l11.908,35.785c0.45,1.33
1.184,2.645 2.18,3.757 3.94,4.401 10.702,4.776 15.104,0.836l.777-.695
68.129-60.985c2.216-1.981 2.676-5.346 0.956-7.868z"/>
+ <path d="m120.211,190.676h-108.211v-162.49h158.43v124.823c0,3.313
2.687,6 6,6s6-2.687
6-6v-130.823c0-3.313-2.687-6-6-6h-170.43c-3.313,0-6,2.687-6,6v174.49c0,3.313
2.687,6 6,6h114.211c3.313,0 6-2.687 6-6 0-3.314-2.687-6-6-6z"/>
+ <path d="m139.694,53.855h-96.959c-3.313,0-6,2.687-6,6s2.687,6
6,6h96.959c3.313,0 6-2.687 6-6s-2.686-6-6-6z"/>
+ <path d="m139.694,79.79h-96.959c-3.313,0-6,2.687-6,6s2.687,6
6,6h96.959c3.313,0 6-2.687 6-6s-2.686-6-6-6z"/>
+ <path d="m139.694,105.725h-96.959c-3.313,0-6,2.687-6,6s2.687,6
6,6h96.959c3.313,0 6-2.687 6-6s-2.686-6-6-6z"/>
+ <path
d="m145.694,137.659c0-3.313-2.687-6-6-6h-96.959c-3.313,0-6,2.687-6,6s2.687,6
6,6h96.959c3.314,0 6-2.686 6-6z"/>
+ <path
d="M42.735,156.329c-3.313,0-6,2.687-6,6s2.687,6,6,6h48.479c3.313,0,6-2.687,6-6s-2.687-6-6-6H42.735z"/>
+ </g>
+</svg>
\ No newline at end of file
diff --git a/config-ui/src/plugins/gitextractor/config.ts
b/config-ui/src/plugins/dbt/config.ts
similarity index 83%
copy from config-ui/src/plugins/gitextractor/config.ts
copy to config-ui/src/plugins/dbt/config.ts
index 251f685fc..178b08ade 100644
--- a/config-ui/src/plugins/gitextractor/config.ts
+++ b/config-ui/src/plugins/dbt/config.ts
@@ -16,13 +16,14 @@
*
*/
-import { PluginType } from '@/plugins'
+import type { PluginConfigType } from '@/plugins'
+import { Plugins, PluginType } from '@/plugins'
import Icon from './assets/icon.svg'
-export const GitExtractorConfig = {
- plugin: 'gitextractor',
- name: 'GitExtractor',
+export const DBTConfig: PluginConfigType = {
+ plugin: Plugins.DBT,
+ name: 'DBT',
type: PluginType.Pipeline,
icon: Icon
}
diff --git a/config-ui/src/plugins/gitextractor/config.ts
b/config-ui/src/plugins/dbt/index.ts
similarity index 79%
copy from config-ui/src/plugins/gitextractor/config.ts
copy to config-ui/src/plugins/dbt/index.ts
index 251f685fc..57eb52efa 100644
--- a/config-ui/src/plugins/gitextractor/config.ts
+++ b/config-ui/src/plugins/dbt/index.ts
@@ -16,13 +16,4 @@
*
*/
-import { PluginType } from '@/plugins'
-
-import Icon from './assets/icon.svg'
-
-export const GitExtractorConfig = {
- plugin: 'gitextractor',
- name: 'GitExtractor',
- type: PluginType.Pipeline,
- icon: Icon
-}
+export * from './config'
diff --git a/config-ui/src/plugins/dora/assets/icon.svg
b/config-ui/src/plugins/dora/assets/icon.svg
new file mode 100644
index 000000000..77cd941cf
--- /dev/null
+++ b/config-ui/src/plugins/dora/assets/icon.svg
@@ -0,0 +1,27 @@
+<!--
+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.
+-->
+<svg xmlns="http://www.w3.org/2000/svg"
xmlns:xlink="http://www.w3.org/1999/xlink" fill="#000000" height="800px"
width="800px" version="1.1" viewBox="0 0 231.087 231.087"
enable-background="new 0 0 231.087 231.087">
+ <g>
+ <path
d="m230.042,142.627c-1.871-2.744-5.612-3.452-8.355-1.581l-65.513,44.667-14.55-19.473c-1.526-2.036-4.241-2.977-6.788-2.129-3.185,1.06-4.908,4.501-3.848,7.686l11.908,35.785c0.45,1.33
1.184,2.645 2.18,3.757 3.94,4.401 10.702,4.776 15.104,0.836l.777-.695
68.129-60.985c2.216-1.981 2.676-5.346 0.956-7.868z"/>
+ <path d="m120.211,190.676h-108.211v-162.49h158.43v124.823c0,3.313
2.687,6 6,6s6-2.687
6-6v-130.823c0-3.313-2.687-6-6-6h-170.43c-3.313,0-6,2.687-6,6v174.49c0,3.313
2.687,6 6,6h114.211c3.313,0 6-2.687 6-6 0-3.314-2.687-6-6-6z"/>
+ <path d="m139.694,53.855h-96.959c-3.313,0-6,2.687-6,6s2.687,6
6,6h96.959c3.313,0 6-2.687 6-6s-2.686-6-6-6z"/>
+ <path d="m139.694,79.79h-96.959c-3.313,0-6,2.687-6,6s2.687,6
6,6h96.959c3.313,0 6-2.687 6-6s-2.686-6-6-6z"/>
+ <path d="m139.694,105.725h-96.959c-3.313,0-6,2.687-6,6s2.687,6
6,6h96.959c3.313,0 6-2.687 6-6s-2.686-6-6-6z"/>
+ <path
d="m145.694,137.659c0-3.313-2.687-6-6-6h-96.959c-3.313,0-6,2.687-6,6s2.687,6
6,6h96.959c3.314,0 6-2.686 6-6z"/>
+ <path
d="M42.735,156.329c-3.313,0-6,2.687-6,6s2.687,6,6,6h48.479c3.313,0,6-2.687,6-6s-2.687-6-6-6H42.735z"/>
+ </g>
+</svg>
\ No newline at end of file
diff --git a/config-ui/src/plugins/gitextractor/config.ts
b/config-ui/src/plugins/dora/config.ts
similarity index 82%
copy from config-ui/src/plugins/gitextractor/config.ts
copy to config-ui/src/plugins/dora/config.ts
index 251f685fc..5bdb067f5 100644
--- a/config-ui/src/plugins/gitextractor/config.ts
+++ b/config-ui/src/plugins/dora/config.ts
@@ -16,13 +16,14 @@
*
*/
-import { PluginType } from '@/plugins'
+import type { PluginConfigType } from '@/plugins'
+import { Plugins, PluginType } from '@/plugins'
import Icon from './assets/icon.svg'
-export const GitExtractorConfig = {
- plugin: 'gitextractor',
- name: 'GitExtractor',
+export const DORAConfig: PluginConfigType = {
+ plugin: Plugins.DORA,
+ name: 'DORA',
type: PluginType.Pipeline,
icon: Icon
}
diff --git a/config-ui/src/plugins/gitextractor/config.ts
b/config-ui/src/plugins/dora/index.ts
similarity index 79%
copy from config-ui/src/plugins/gitextractor/config.ts
copy to config-ui/src/plugins/dora/index.ts
index 251f685fc..57eb52efa 100644
--- a/config-ui/src/plugins/gitextractor/config.ts
+++ b/config-ui/src/plugins/dora/index.ts
@@ -16,13 +16,4 @@
*
*/
-import { PluginType } from '@/plugins'
-
-import Icon from './assets/icon.svg'
-
-export const GitExtractorConfig = {
- plugin: 'gitextractor',
- name: 'GitExtractor',
- type: PluginType.Pipeline,
- icon: Icon
-}
+export * from './config'
diff --git a/config-ui/src/plugins/feishu/assets/icon.svg
b/config-ui/src/plugins/feishu/assets/icon.svg
new file mode 100644
index 000000000..77cd941cf
--- /dev/null
+++ b/config-ui/src/plugins/feishu/assets/icon.svg
@@ -0,0 +1,27 @@
+<!--
+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.
+-->
+<svg xmlns="http://www.w3.org/2000/svg"
xmlns:xlink="http://www.w3.org/1999/xlink" fill="#000000" height="800px"
width="800px" version="1.1" viewBox="0 0 231.087 231.087"
enable-background="new 0 0 231.087 231.087">
+ <g>
+ <path
d="m230.042,142.627c-1.871-2.744-5.612-3.452-8.355-1.581l-65.513,44.667-14.55-19.473c-1.526-2.036-4.241-2.977-6.788-2.129-3.185,1.06-4.908,4.501-3.848,7.686l11.908,35.785c0.45,1.33
1.184,2.645 2.18,3.757 3.94,4.401 10.702,4.776 15.104,0.836l.777-.695
68.129-60.985c2.216-1.981 2.676-5.346 0.956-7.868z"/>
+ <path d="m120.211,190.676h-108.211v-162.49h158.43v124.823c0,3.313
2.687,6 6,6s6-2.687
6-6v-130.823c0-3.313-2.687-6-6-6h-170.43c-3.313,0-6,2.687-6,6v174.49c0,3.313
2.687,6 6,6h114.211c3.313,0 6-2.687 6-6 0-3.314-2.687-6-6-6z"/>
+ <path d="m139.694,53.855h-96.959c-3.313,0-6,2.687-6,6s2.687,6
6,6h96.959c3.313,0 6-2.687 6-6s-2.686-6-6-6z"/>
+ <path d="m139.694,79.79h-96.959c-3.313,0-6,2.687-6,6s2.687,6
6,6h96.959c3.313,0 6-2.687 6-6s-2.686-6-6-6z"/>
+ <path d="m139.694,105.725h-96.959c-3.313,0-6,2.687-6,6s2.687,6
6,6h96.959c3.313,0 6-2.687 6-6s-2.686-6-6-6z"/>
+ <path
d="m145.694,137.659c0-3.313-2.687-6-6-6h-96.959c-3.313,0-6,2.687-6,6s2.687,6
6,6h96.959c3.314,0 6-2.686 6-6z"/>
+ <path
d="M42.735,156.329c-3.313,0-6,2.687-6,6s2.687,6,6,6h48.479c3.313,0,6-2.687,6-6s-2.687-6-6-6H42.735z"/>
+ </g>
+</svg>
\ No newline at end of file
diff --git a/config-ui/src/plugins/gitextractor/config.ts
b/config-ui/src/plugins/feishu/config.ts
similarity index 82%
copy from config-ui/src/plugins/gitextractor/config.ts
copy to config-ui/src/plugins/feishu/config.ts
index 251f685fc..1d18e5add 100644
--- a/config-ui/src/plugins/gitextractor/config.ts
+++ b/config-ui/src/plugins/feishu/config.ts
@@ -16,13 +16,14 @@
*
*/
-import { PluginType } from '@/plugins'
+import type { PluginConfigType } from '@/plugins'
+import { Plugins, PluginType } from '@/plugins'
import Icon from './assets/icon.svg'
-export const GitExtractorConfig = {
- plugin: 'gitextractor',
- name: 'GitExtractor',
+export const FeiShuConfig: PluginConfigType = {
+ plugin: Plugins.FeiShu,
+ name: 'FeiShu',
type: PluginType.Pipeline,
icon: Icon
}
diff --git a/config-ui/src/plugins/gitextractor/config.ts
b/config-ui/src/plugins/feishu/index.ts
similarity index 79%
copy from config-ui/src/plugins/gitextractor/config.ts
copy to config-ui/src/plugins/feishu/index.ts
index 251f685fc..57eb52efa 100644
--- a/config-ui/src/plugins/gitextractor/config.ts
+++ b/config-ui/src/plugins/feishu/index.ts
@@ -16,13 +16,4 @@
*
*/
-import { PluginType } from '@/plugins'
-
-import Icon from './assets/icon.svg'
-
-export const GitExtractorConfig = {
- plugin: 'gitextractor',
- name: 'GitExtractor',
- type: PluginType.Pipeline,
- icon: Icon
-}
+export * from './config'
diff --git a/config-ui/src/plugins/gitee/assets/icon.svg
b/config-ui/src/plugins/gitee/assets/icon.svg
new file mode 100644
index 000000000..a1fafc0a4
--- /dev/null
+++ b/config-ui/src/plugins/gitee/assets/icon.svg
@@ -0,0 +1,19 @@
+<!--
+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.
+-->
+<svg width="100" height="100" viewBox="0 0 60 60" fill="none"
xmlns="http://www.w3.org/2000/svg">
+ <path fill-rule="evenodd" clip-rule="evenodd" d="M30 4C44.3597 4 56
15.6403 56 30C56 44.3597 44.3597 56 30 56C15.6403 56 4 44.3597 4 30C4 15.6403
15.6403 4 30 4ZM43.1616 15.5556C43.1614 15.5556 43.1611 15.5556 43.1608
15.5564H25.1856C19.8673 15.5564 15.5557 19.8677 15.5557 25.1863V43.1615C15.5557
43.8706 16.1305 44.4454 16.8396 44.4454H35.7781C40.5645 44.4454 44.4447 40.5653
44.4447 35.7789V28.3962C44.4447 27.6871 43.8698 27.1123 43.1607
27.1123H28.3949C27.6859 27.1126 27.1112 27.687 [...]
+</svg>
\ No newline at end of file
diff --git a/config-ui/src/plugins/gitextractor/config.ts
b/config-ui/src/plugins/gitee/config.ts
similarity index 82%
copy from config-ui/src/plugins/gitextractor/config.ts
copy to config-ui/src/plugins/gitee/config.ts
index 251f685fc..538c2808d 100644
--- a/config-ui/src/plugins/gitextractor/config.ts
+++ b/config-ui/src/plugins/gitee/config.ts
@@ -16,13 +16,14 @@
*
*/
-import { PluginType } from '@/plugins'
+import type { PluginConfigType } from '@/plugins'
+import { Plugins, PluginType } from '@/plugins'
import Icon from './assets/icon.svg'
-export const GitExtractorConfig = {
- plugin: 'gitextractor',
- name: 'GitExtractor',
+export const GiteeConfig: PluginConfigType = {
+ plugin: Plugins.Gitee,
+ name: 'Gitee',
type: PluginType.Pipeline,
icon: Icon
}
diff --git a/config-ui/src/plugins/gitextractor/config.ts
b/config-ui/src/plugins/gitee/index.ts
similarity index 79%
copy from config-ui/src/plugins/gitextractor/config.ts
copy to config-ui/src/plugins/gitee/index.ts
index 251f685fc..57eb52efa 100644
--- a/config-ui/src/plugins/gitextractor/config.ts
+++ b/config-ui/src/plugins/gitee/index.ts
@@ -16,13 +16,4 @@
*
*/
-import { PluginType } from '@/plugins'
-
-import Icon from './assets/icon.svg'
-
-export const GitExtractorConfig = {
- plugin: 'gitextractor',
- name: 'GitExtractor',
- type: PluginType.Pipeline,
- icon: Icon
-}
+export * from './config'
diff --git a/config-ui/src/plugins/gitextractor/config.ts
b/config-ui/src/plugins/gitextractor/config.ts
index 251f685fc..78558f3e6 100644
--- a/config-ui/src/plugins/gitextractor/config.ts
+++ b/config-ui/src/plugins/gitextractor/config.ts
@@ -16,12 +16,13 @@
*
*/
-import { PluginType } from '@/plugins'
+import type { PluginConfigType } from '@/plugins'
+import { Plugins, PluginType } from '@/plugins'
import Icon from './assets/icon.svg'
-export const GitExtractorConfig = {
- plugin: 'gitextractor',
+export const GitExtractorConfig: PluginConfigType = {
+ plugin: Plugins.GitExtractor,
name: 'GitExtractor',
type: PluginType.Pipeline,
icon: Icon
diff --git a/config-ui/src/plugins/github/config.ts
b/config-ui/src/plugins/github/config.ts
index 1c3a7ca65..9f96971e9 100644
--- a/config-ui/src/plugins/github/config.ts
+++ b/config-ui/src/plugins/github/config.ts
@@ -16,15 +16,65 @@
*
*/
-import { PluginType } from '@/plugins'
+import type { PluginConfigType } from '@/plugins'
+import { Plugins, PluginType } from '@/plugins'
import Icon from './assets/icon.svg'
-export const GitHubConfig = {
- plugin: 'github',
+export const GitHubConfig: PluginConfigType = {
+ plugin: Plugins.GitHub,
name: 'GitHub',
type: PluginType.Connection,
icon: Icon,
+ connection: {
+ initialValues: {
+ enableGraphql: true
+ },
+ fields: [
+ {
+ key: 'name',
+ label: 'Connection Name',
+ type: 'text',
+ required: true,
+ placeholder: 'eg. GitHub'
+ },
+ {
+ key: 'endpoint',
+ label: 'Endpoint URL',
+ type: 'text',
+ required: true,
+ placeholder: 'eg. https://api.github.com/'
+ },
+ {
+ key: 'token',
+ label: 'Basic Auth Token',
+ type: 'github-token',
+ required: true,
+ tooltip:
+ "Due to Github's rate limit, input more tokens, \ncomma separated,
to accelerate data collection."
+ },
+ {
+ key: 'proxy',
+ label: 'Proxy URL',
+ type: 'text',
+ placeholder: 'eg. http://proxy.localhost:8080'
+ },
+ {
+ key: 'enableGraphql',
+ label: 'Use Graphql APIs',
+ type: 'switch',
+ tooltip:
+ 'GraphQL APIs are 10+ times faster than REST APIs, but it may not be
supported in GitHub on-premise versions.'
+ },
+ {
+ key: 'rateLimitPerHour',
+ label: 'Rate Limit (per hour)',
+ type: 'numeric',
+ tooltip:
+ 'Rate Limit requests per hour,\nEnter a numeric value > 0 to enable.'
+ }
+ ]
+ },
entities: ['CODE', 'TICKET', 'CODEREVIEW', 'CROSS', 'CICD'],
transformation: {
issueSeverity: '',
diff --git a/config-ui/src/plugins/github_graphql/config.ts
b/config-ui/src/plugins/github_graphql/config.ts
index f7c13d1f8..ebeadc1ad 100644
--- a/config-ui/src/plugins/github_graphql/config.ts
+++ b/config-ui/src/plugins/github_graphql/config.ts
@@ -16,12 +16,13 @@
*
*/
-import { PluginType } from '@/plugins'
+import type { PluginConfigType } from '@/plugins'
+import { Plugins, PluginType } from '@/plugins'
import Icon from './assets/icon.svg'
-export const GitHubGraphqlConfig = {
- plugin: 'github_graphql',
+export const GitHubGraphqlConfig: PluginConfigType = {
+ plugin: Plugins.GitHubGraphql,
name: 'GitHubGraphql',
type: PluginType.Pipeline,
icon: Icon
diff --git a/config-ui/src/plugins/gitlab/config.ts
b/config-ui/src/plugins/gitlab/config.ts
index e310c43bd..837b8c233 100644
--- a/config-ui/src/plugins/gitlab/config.ts
+++ b/config-ui/src/plugins/gitlab/config.ts
@@ -16,15 +16,54 @@
*
*/
-import { PluginType } from '@/plugins'
+import type { PluginConfigType } from '@/plugins'
+import { Plugins, PluginType } from '@/plugins'
import Icon from './assets/icon.svg'
-export const GitLabConfig = {
- plugin: 'gitlab',
+export const GitLabConfig: PluginConfigType = {
+ plugin: Plugins.GitLab,
name: 'GitLab',
type: PluginType.Connection,
icon: Icon,
+ connection: {
+ fields: [
+ {
+ key: 'name',
+ label: 'Connection Name',
+ type: 'text',
+ required: true,
+ placeholder: 'eg. GitLab'
+ },
+ {
+ key: 'endpoint',
+ label: 'Endpoint URL',
+ type: 'text',
+ required: true,
+ placeholder: 'eg. https://gitlab.com/api/v4/'
+ },
+ {
+ key: 'token',
+ label: 'Access Token',
+ type: 'text',
+ required: true,
+ placeholder: 'eg. ff9d1ad0e5c04f1f98fa'
+ },
+ {
+ key: 'proxy',
+ label: 'Proxy URL',
+ type: 'text',
+ placeholder: 'eg. http://proxy.localhost:8080'
+ },
+ {
+ key: 'rateLimitPerHour',
+ label: 'Rate Limit (per hour)',
+ type: 'numeric',
+ tooltip:
+ 'Rate Limit requests per hour,\nEnter a numeric value > 0 to enable.'
+ }
+ ]
+ },
entities: ['CODE', 'TICKET', 'CODEREVIEW', 'CROSS', 'CICD'],
transformation: {
productionPattern: '',
diff --git a/config-ui/src/plugins/jenkins/config.ts
b/config-ui/src/plugins/jenkins/config.ts
index c1213935a..1330713c8 100644
--- a/config-ui/src/plugins/jenkins/config.ts
+++ b/config-ui/src/plugins/jenkins/config.ts
@@ -16,15 +16,61 @@
*
*/
-import { PluginType } from '@/plugins'
+import type { PluginConfigType } from '@/plugins'
+import { Plugins, PluginType } from '@/plugins'
import Icon from './assets/icon.svg'
-export const JenkinsConfig = {
- plugin: 'jenkins',
+export const JenkinsConfig: PluginConfigType = {
+ plugin: Plugins.Jenkins,
name: 'Jenkins',
type: PluginType.Connection,
icon: Icon,
+ connection: {
+ fields: [
+ {
+ key: 'name',
+ label: 'Connection Name',
+ type: 'text',
+ required: true,
+ placeholder: 'eg. GitLab'
+ },
+ {
+ key: 'endpoint',
+ label: 'Endpoint URL',
+ type: 'text',
+ required: true,
+ placeholder: 'eg. https://gitlab.com/api/v4/'
+ },
+ {
+ key: 'username',
+ label: 'Username',
+ type: 'text',
+ required: true,
+ placeholder: 'eg. admin'
+ },
+ {
+ key: 'password',
+ label: 'Password',
+ type: 'text',
+ required: true,
+ placeholder: 'eg. ************",'
+ },
+ {
+ key: 'proxy',
+ label: 'Proxy URL',
+ type: 'text',
+ placeholder: 'eg. http://proxy.localhost:8080'
+ },
+ {
+ key: 'rateLimitPerHour',
+ label: 'Rate Limit (per hour)',
+ type: 'numeric',
+ tooltip:
+ 'Rate Limit requests per hour,\nEnter a numeric value > 0 to enable.'
+ }
+ ]
+ },
entities: ['CICD'],
transformation: {
productionPattern: '',
diff --git a/config-ui/src/plugins/jira/config.ts
b/config-ui/src/plugins/jira/config.ts
index 205998296..8bf0acc6d 100644
--- a/config-ui/src/plugins/jira/config.ts
+++ b/config-ui/src/plugins/jira/config.ts
@@ -16,15 +16,63 @@
*
*/
-import { PluginType } from '@/plugins'
+import type { PluginConfigType } from '@/plugins'
+import { Plugins, PluginType } from '@/plugins'
import Icon from './assets/icon.svg'
-export const JIRAConfig = {
- plugin: 'jira',
+export const JIRAConfig: PluginConfigType = {
+ plugin: Plugins.JIRA,
name: 'JIRA',
type: PluginType.Connection,
icon: Icon,
+ connection: {
+ fields: [
+ {
+ key: 'name',
+ label: 'Connection Name',
+ type: 'text',
+ required: true,
+ placeholder: 'eg. JIRA'
+ },
+ {
+ key: 'endpoint',
+ label: 'Endpoint URL',
+ type: 'text',
+ required: true,
+ placeholder: 'eg. https://your-domain.atlassian.net/rest/'
+ },
+ {
+ key: 'username',
+ label: 'Username / E-mail',
+ type: 'text',
+ required: true,
+ placeholder: 'eg. admin'
+ },
+ {
+ key: 'password',
+ label: 'Password',
+ type: 'text',
+ required: true,
+ placeholder: 'eg. ************',
+ tooltip:
+ 'If you are using JIRA Cloud or JIRA Server,\nyour API Token should
be used as password.'
+ },
+ {
+ key: 'proxy',
+ label: 'Proxy URL',
+ type: 'text',
+ placeholder: 'eg. http://proxy.localhost:8080'
+ },
+ {
+ key: 'rateLimitPerHour',
+ label: 'Rate Limit (per hour)',
+ type: 'numeric',
+ tooltip:
+ 'Rate Limit requests per hour,\nEnter a numeric value > 0 to enable.'
+ }
+ ]
+ },
entities: ['TICKET', 'CROSS'],
transformation: {
epicKeyField: '',
diff --git a/config-ui/src/plugins/refdiff/assets/icon.svg
b/config-ui/src/plugins/refdiff/assets/icon.svg
new file mode 100644
index 000000000..77cd941cf
--- /dev/null
+++ b/config-ui/src/plugins/refdiff/assets/icon.svg
@@ -0,0 +1,27 @@
+<!--
+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.
+-->
+<svg xmlns="http://www.w3.org/2000/svg"
xmlns:xlink="http://www.w3.org/1999/xlink" fill="#000000" height="800px"
width="800px" version="1.1" viewBox="0 0 231.087 231.087"
enable-background="new 0 0 231.087 231.087">
+ <g>
+ <path
d="m230.042,142.627c-1.871-2.744-5.612-3.452-8.355-1.581l-65.513,44.667-14.55-19.473c-1.526-2.036-4.241-2.977-6.788-2.129-3.185,1.06-4.908,4.501-3.848,7.686l11.908,35.785c0.45,1.33
1.184,2.645 2.18,3.757 3.94,4.401 10.702,4.776 15.104,0.836l.777-.695
68.129-60.985c2.216-1.981 2.676-5.346 0.956-7.868z"/>
+ <path d="m120.211,190.676h-108.211v-162.49h158.43v124.823c0,3.313
2.687,6 6,6s6-2.687
6-6v-130.823c0-3.313-2.687-6-6-6h-170.43c-3.313,0-6,2.687-6,6v174.49c0,3.313
2.687,6 6,6h114.211c3.313,0 6-2.687 6-6 0-3.314-2.687-6-6-6z"/>
+ <path d="m139.694,53.855h-96.959c-3.313,0-6,2.687-6,6s2.687,6
6,6h96.959c3.313,0 6-2.687 6-6s-2.686-6-6-6z"/>
+ <path d="m139.694,79.79h-96.959c-3.313,0-6,2.687-6,6s2.687,6
6,6h96.959c3.313,0 6-2.687 6-6s-2.686-6-6-6z"/>
+ <path d="m139.694,105.725h-96.959c-3.313,0-6,2.687-6,6s2.687,6
6,6h96.959c3.313,0 6-2.687 6-6s-2.686-6-6-6z"/>
+ <path
d="m145.694,137.659c0-3.313-2.687-6-6-6h-96.959c-3.313,0-6,2.687-6,6s2.687,6
6,6h96.959c3.314,0 6-2.686 6-6z"/>
+ <path
d="M42.735,156.329c-3.313,0-6,2.687-6,6s2.687,6,6,6h48.479c3.313,0,6-2.687,6-6s-2.687-6-6-6H42.735z"/>
+ </g>
+</svg>
\ No newline at end of file
diff --git a/config-ui/src/plugins/gitextractor/config.ts
b/config-ui/src/plugins/refdiff/config.ts
similarity index 82%
copy from config-ui/src/plugins/gitextractor/config.ts
copy to config-ui/src/plugins/refdiff/config.ts
index 251f685fc..c898f8b89 100644
--- a/config-ui/src/plugins/gitextractor/config.ts
+++ b/config-ui/src/plugins/refdiff/config.ts
@@ -16,13 +16,14 @@
*
*/
-import { PluginType } from '@/plugins'
+import type { PluginConfigType } from '@/plugins'
+import { Plugins, PluginType } from '@/plugins'
import Icon from './assets/icon.svg'
-export const GitExtractorConfig = {
- plugin: 'gitextractor',
- name: 'GitExtractor',
+export const RefDiffConfig: PluginConfigType = {
+ plugin: Plugins.RefDiff,
+ name: 'RefDiff',
type: PluginType.Pipeline,
icon: Icon
}
diff --git a/config-ui/src/plugins/gitextractor/config.ts
b/config-ui/src/plugins/refdiff/index.ts
similarity index 79%
copy from config-ui/src/plugins/gitextractor/config.ts
copy to config-ui/src/plugins/refdiff/index.ts
index 251f685fc..57eb52efa 100644
--- a/config-ui/src/plugins/gitextractor/config.ts
+++ b/config-ui/src/plugins/refdiff/index.ts
@@ -16,13 +16,4 @@
*
*/
-import { PluginType } from '@/plugins'
-
-import Icon from './assets/icon.svg'
-
-export const GitExtractorConfig = {
- plugin: 'gitextractor',
- name: 'GitExtractor',
- type: PluginType.Pipeline,
- icon: Icon
-}
+export * from './config'
diff --git a/config-ui/src/plugins/starrocks/assets/icon.svg
b/config-ui/src/plugins/starrocks/assets/icon.svg
new file mode 100644
index 000000000..77cd941cf
--- /dev/null
+++ b/config-ui/src/plugins/starrocks/assets/icon.svg
@@ -0,0 +1,27 @@
+<!--
+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.
+-->
+<svg xmlns="http://www.w3.org/2000/svg"
xmlns:xlink="http://www.w3.org/1999/xlink" fill="#000000" height="800px"
width="800px" version="1.1" viewBox="0 0 231.087 231.087"
enable-background="new 0 0 231.087 231.087">
+ <g>
+ <path
d="m230.042,142.627c-1.871-2.744-5.612-3.452-8.355-1.581l-65.513,44.667-14.55-19.473c-1.526-2.036-4.241-2.977-6.788-2.129-3.185,1.06-4.908,4.501-3.848,7.686l11.908,35.785c0.45,1.33
1.184,2.645 2.18,3.757 3.94,4.401 10.702,4.776 15.104,0.836l.777-.695
68.129-60.985c2.216-1.981 2.676-5.346 0.956-7.868z"/>
+ <path d="m120.211,190.676h-108.211v-162.49h158.43v124.823c0,3.313
2.687,6 6,6s6-2.687
6-6v-130.823c0-3.313-2.687-6-6-6h-170.43c-3.313,0-6,2.687-6,6v174.49c0,3.313
2.687,6 6,6h114.211c3.313,0 6-2.687 6-6 0-3.314-2.687-6-6-6z"/>
+ <path d="m139.694,53.855h-96.959c-3.313,0-6,2.687-6,6s2.687,6
6,6h96.959c3.313,0 6-2.687 6-6s-2.686-6-6-6z"/>
+ <path d="m139.694,79.79h-96.959c-3.313,0-6,2.687-6,6s2.687,6
6,6h96.959c3.313,0 6-2.687 6-6s-2.686-6-6-6z"/>
+ <path d="m139.694,105.725h-96.959c-3.313,0-6,2.687-6,6s2.687,6
6,6h96.959c3.313,0 6-2.687 6-6s-2.686-6-6-6z"/>
+ <path
d="m145.694,137.659c0-3.313-2.687-6-6-6h-96.959c-3.313,0-6,2.687-6,6s2.687,6
6,6h96.959c3.314,0 6-2.686 6-6z"/>
+ <path
d="M42.735,156.329c-3.313,0-6,2.687-6,6s2.687,6,6,6h48.479c3.313,0,6-2.687,6-6s-2.687-6-6-6H42.735z"/>
+ </g>
+</svg>
\ No newline at end of file
diff --git a/config-ui/src/plugins/gitextractor/config.ts
b/config-ui/src/plugins/starrocks/config.ts
similarity index 81%
copy from config-ui/src/plugins/gitextractor/config.ts
copy to config-ui/src/plugins/starrocks/config.ts
index 251f685fc..dea885da0 100644
--- a/config-ui/src/plugins/gitextractor/config.ts
+++ b/config-ui/src/plugins/starrocks/config.ts
@@ -16,13 +16,14 @@
*
*/
-import { PluginType } from '@/plugins'
+import type { PluginConfigType } from '@/plugins'
+import { Plugins, PluginType } from '@/plugins'
import Icon from './assets/icon.svg'
-export const GitExtractorConfig = {
- plugin: 'gitextractor',
- name: 'GitExtractor',
+export const StarRocksConfig: PluginConfigType = {
+ plugin: Plugins.StarRocks,
+ name: 'StarRocks',
type: PluginType.Pipeline,
icon: Icon
}
diff --git a/config-ui/src/plugins/gitextractor/config.ts
b/config-ui/src/plugins/starrocks/index.ts
similarity index 79%
copy from config-ui/src/plugins/gitextractor/config.ts
copy to config-ui/src/plugins/starrocks/index.ts
index 251f685fc..57eb52efa 100644
--- a/config-ui/src/plugins/gitextractor/config.ts
+++ b/config-ui/src/plugins/starrocks/index.ts
@@ -16,13 +16,4 @@
*
*/
-import { PluginType } from '@/plugins'
-
-import Icon from './assets/icon.svg'
-
-export const GitExtractorConfig = {
- plugin: 'gitextractor',
- name: 'GitExtractor',
- type: PluginType.Pipeline,
- icon: Icon
-}
+export * from './config'
diff --git a/config-ui/src/plugins/tapd/assets/icon.svg
b/config-ui/src/plugins/tapd/assets/icon.svg
new file mode 100644
index 000000000..5859f9422
--- /dev/null
+++ b/config-ui/src/plugins/tapd/assets/icon.svg
@@ -0,0 +1,22 @@
+<!--
+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.
+-->
+<svg width="100" height="100" viewBox="0 0 36 36" fill="none"
xmlns="http://www.w3.org/2000/svg">
+ <path d="M30.1151 10.3491L27.9087 3.35706L4.95635 10.3491L6.96429
17.3253L15.0198 15.0396L19.4008 29.492L26.5992 27.246L22.1389 12.8491L30.1151
10.3491Z" fill="#7497F7"/>
+ <path d="M2.25 33.6666H15.2659L2.25 12.0317V33.6666Z" fill="#7497F7"/>
+ <path d="M33.0119 2.33325L27.2103 33.6666H33.75V2.33325H33.0119Z"
fill="#7497F7"/>
+ <path d="M2.25 2.33325V8.6904L23.6944 2.33325H2.25Z" fill="#7497F7"/>
+</svg>
\ No newline at end of file
diff --git a/config-ui/src/plugins/gitextractor/config.ts
b/config-ui/src/plugins/tapd/config.ts
similarity index 82%
copy from config-ui/src/plugins/gitextractor/config.ts
copy to config-ui/src/plugins/tapd/config.ts
index 251f685fc..95e145b28 100644
--- a/config-ui/src/plugins/gitextractor/config.ts
+++ b/config-ui/src/plugins/tapd/config.ts
@@ -16,13 +16,14 @@
*
*/
-import { PluginType } from '@/plugins'
+import type { PluginConfigType } from '@/plugins'
+import { Plugins, PluginType } from '@/plugins'
import Icon from './assets/icon.svg'
-export const GitExtractorConfig = {
- plugin: 'gitextractor',
- name: 'GitExtractor',
+export const TAPDConfig: PluginConfigType = {
+ plugin: Plugins.TAPD,
+ name: 'TAPD',
type: PluginType.Pipeline,
icon: Icon
}
diff --git a/config-ui/src/plugins/gitextractor/config.ts
b/config-ui/src/plugins/tapd/index.ts
similarity index 79%
copy from config-ui/src/plugins/gitextractor/config.ts
copy to config-ui/src/plugins/tapd/index.ts
index 251f685fc..57eb52efa 100644
--- a/config-ui/src/plugins/gitextractor/config.ts
+++ b/config-ui/src/plugins/tapd/index.ts
@@ -16,13 +16,4 @@
*
*/
-import { PluginType } from '@/plugins'
-
-import Icon from './assets/icon.svg'
-
-export const GitExtractorConfig = {
- plugin: 'gitextractor',
- name: 'GitExtractor',
- type: PluginType.Pipeline,
- icon: Icon
-}
+export * from './config'
diff --git a/config-ui/src/plugins/types.ts b/config-ui/src/plugins/types.ts
index fe6dfcdbc..7ce5e6570 100644
--- a/config-ui/src/plugins/types.ts
+++ b/config-ui/src/plugins/types.ts
@@ -17,13 +17,24 @@
*/
export enum Plugins {
+ AE = 'ae',
+ Azure = 'azure',
+ BitBucket = 'bitbucket',
+ DBT = 'dbt',
+ DORA = 'dora',
+ FeiShu = 'feishu',
+ Gitee = 'gitee',
+ GitExtractor = 'gitextractor',
GitHub = 'github',
- JIRA = 'jira',
+ GitHubGraphql = 'github_graphql',
GitLab = 'gitlab',
Jenkins = 'jenkins',
+ JIRA = 'jira',
+ RefDiff = 'refdiff',
+ StarRocks = 'starrocks',
+ TAPD = 'tapd',
Webhook = 'webhook',
- GitHubGraphql = 'github_graphql',
- GitExtractor = 'gitextractor'
+ ZenTao = 'zentao'
}
export enum PluginType {
@@ -31,3 +42,23 @@ export enum PluginType {
Incoming_Connection = 'incoming_connection',
Pipeline = 'pipeline'
}
+
+export type PluginConfigType = {
+ plugin: Plugins
+ name: string
+ type: PluginType
+ icon: string
+ connection?: {
+ initialValues?: Record<string, any>
+ fields: Array<{
+ key: string
+ type: 'text' | 'numeric' | 'switch' | 'github-token'
+ label: string
+ required?: boolean
+ placeholder?: string
+ tooltip?: string
+ }>
+ }
+ entities?: string[]
+ transformation?: any
+}
diff --git a/config-ui/src/plugins/webook/config.ts
b/config-ui/src/plugins/webook/config.ts
index 83f53ce14..d7fa2cbae 100644
--- a/config-ui/src/plugins/webook/config.ts
+++ b/config-ui/src/plugins/webook/config.ts
@@ -16,12 +16,12 @@
*
*/
-import { PluginType } from '@/plugins'
+import { Plugins, PluginType } from '@/plugins'
import Icon from './assets/icon.svg'
export const WebhookConfig = {
- plugin: 'webhook',
+ plugin: Plugins.Webhook,
name: 'Webhook',
type: PluginType.Incoming_Connection,
icon: Icon,
diff --git a/config-ui/src/plugins/zentao/assets/icon.svg
b/config-ui/src/plugins/zentao/assets/icon.svg
new file mode 100644
index 000000000..dd7d478cb
--- /dev/null
+++ b/config-ui/src/plugins/zentao/assets/icon.svg
@@ -0,0 +1,20 @@
+<!--
+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.
+-->
+<svg version="1.1" xmlns="http://www.w3.org/2000/svg" height="1024"
width="1024" viewBox="0 0 1024 1024">
+ <path d="M438.857143 932.571429c-193.828571
0-347.428571-157.257143-347.428572-347.428572 0-10.971429 7.314286-18.285714
18.285715-18.285714h329.142857c10.971429 0 18.285714 7.314286 18.285714
18.285714v329.142857c0 10.971429-7.314286 18.285714-18.285714 18.285715z
m-307.2-329.142858c10.971429 153.6 135.314286 277.942857 288.914286
288.914286v-288.914286h-288.914286zM512 932.571429c-10.971429
0-18.285714-7.314286-18.285714-18.285715v-329.142857c0-10.971429
7.314286-18.285714 18.28571 [...]
+ <path d="M727.771429 365.714286c-3.657143 0-7.314286
0-10.971429-3.657143l-219.428571-175.542857 21.942857-29.257143 208.457143
168.228571 215.771428-168.228571 21.942857 29.257143-226.742857
175.542857c-3.657143 3.657143-7.314286 3.657143-10.971428 3.657143z"/>
+</svg>
\ No newline at end of file
diff --git a/config-ui/src/plugins/gitextractor/config.ts
b/config-ui/src/plugins/zentao/config.ts
similarity index 82%
copy from config-ui/src/plugins/gitextractor/config.ts
copy to config-ui/src/plugins/zentao/config.ts
index 251f685fc..f6a0e3f1a 100644
--- a/config-ui/src/plugins/gitextractor/config.ts
+++ b/config-ui/src/plugins/zentao/config.ts
@@ -16,13 +16,14 @@
*
*/
-import { PluginType } from '@/plugins'
+import type { PluginConfigType } from '@/plugins'
+import { Plugins, PluginType } from '@/plugins'
import Icon from './assets/icon.svg'
-export const GitExtractorConfig = {
- plugin: 'gitextractor',
- name: 'GitExtractor',
+export const ZenTaoConfig: PluginConfigType = {
+ plugin: Plugins.ZenTao,
+ name: 'ZenTao',
type: PluginType.Pipeline,
icon: Icon
}
diff --git a/config-ui/src/plugins/gitextractor/config.ts
b/config-ui/src/plugins/zentao/index.ts
similarity index 79%
copy from config-ui/src/plugins/gitextractor/config.ts
copy to config-ui/src/plugins/zentao/index.ts
index 251f685fc..57eb52efa 100644
--- a/config-ui/src/plugins/gitextractor/config.ts
+++ b/config-ui/src/plugins/zentao/index.ts
@@ -16,13 +16,4 @@
*
*/
-import { PluginType } from '@/plugins'
-
-import Icon from './assets/icon.svg'
-
-export const GitExtractorConfig = {
- plugin: 'gitextractor',
- name: 'GitExtractor',
- type: PluginType.Pipeline,
- icon: Icon
-}
+export * from './config'