This is an automated email from the ASF dual-hosted git repository.
marat pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/camel-karavan.git
The following commit(s) were added to refs/heads/main by this push:
new 37f78be0 Kamelet properties for #731
37f78be0 is described below
commit 37f78be03def403e99dc2f54aac37b85418b160a
Author: Marat Gubaidullin <[email protected]>
AuthorDate: Fri Mar 1 13:26:17 2024 -0500
Kamelet properties for #731
---
.../webui/src/designer/kamelet/KameletInput.tsx | 2 +-
karavan-designer/public/example/demo.camel.yaml | 135 +--------------------
.../src/designer/kamelet/KameletInput.tsx | 2 +-
.../src/designer/kamelet/KameletInput.tsx | 2 +-
4 files changed, 9 insertions(+), 132 deletions(-)
diff --git a/karavan-app/src/main/webui/src/designer/kamelet/KameletInput.tsx
b/karavan-app/src/main/webui/src/designer/kamelet/KameletInput.tsx
index f1ee50f3..ebab83d7 100644
--- a/karavan-app/src/main/webui/src/designer/kamelet/KameletInput.tsx
+++ b/karavan-app/src/main/webui/src/designer/kamelet/KameletInput.tsx
@@ -15,6 +15,7 @@
* limitations under the License.
*/
+import React, {useEffect, useState} from "react";
import {
GridItem,
FormGroup,
@@ -27,7 +28,6 @@ import {
capitalize,
TextArea
} from "@patternfly/react-core";
-import {useEffect, useState} from "react";
import '../karavan.css';
import './kamelet.css';
diff --git a/karavan-designer/public/example/demo.camel.yaml
b/karavan-designer/public/example/demo.camel.yaml
index 458ab33c..b4e1dec5 100644
--- a/karavan-designer/public/example/demo.camel.yaml
+++ b/karavan-designer/public/example/demo.camel.yaml
@@ -1,132 +1,9 @@
-#- route:
-# id: route-a947
-# nodePrefixId: route-a32
-# from:
-# id: from-c489
-# description: Receive Data
-# uri: kamelet:aws-ddb-streams-source
-# steps:
-# - setHeader:
-# id: setBody-4434
-# expression:
-# simple:
-# id: simple-abd8
-# expression: dddddd
-# - filter:
-# id: filter-929b
-# expression:
-# simple:
-# id: simple-d932
-# expression: Hello
-# steps:
-# - bean:
-# id: bean-120b
-# ref: xxx
-# - log:
-# id: log-d86e
-# message: ${body}!!!
-# - to:
-# id: to-9f7d
-# description: Send notification
-# uri: kafka
-# - to:
-# id: to-53a3
-# description: Send payments
-# uri: amqp
-#- route:
-# id: route-8609
-# nodePrefixId: route-ae2
-# from:
-# id: from-6aee
-# uri: timer
-# steps:
-# - to:
-# id: to-2df4
-# uri: direct
-# parameters:
-# name: second_direct
-# - to:
-# id: to-e017
-# uri: direct
-# parameters:
-# name: second_direct
-#- route:
-# id: first-firect
-# from:
-# id: from-f155
-# uri: direct
-# parameters:
-# name: first-firect
-# steps:
-# - to:
-# id: to-5c86
-# uri: direct
-# parameters:
-# name: second_direct
-- route:
- id: second_direct
- from:
- id: from-7ce0
- uri: direct
- parameters:
- name: second_direct
- steps:
- - setVariable:
- id: setVariable-75ca
- name: global:data1
- expression:
- simple:
- id: simple-009e
- - convertVariableTo:
- id: convertVariableTo-c0b8
- - removeVariable:
- id: removeVariable-2cae
- - to:
- id: to-4711
- uri: metrics
-- route:
- id: route-18e5
- nodePrefixId: route-656
- from:
- id: from-9468
- uri: amqp
- variableReceive: global:variable1
- steps:
- - doTry:
- id: doTry-8bb0
- doCatch:
- - id: doCatch-19a9
- steps:
- - convertVariableTo:
- id: convertVariableTo-b0e5
- name: xxx
- toName: yyy
- steps:
- - multicast:
- id: multicast-ad44
- steps:
- - to:
- id: to-0c20
- variableSend: send1
- variableReceive: receive1
- uri: activemq
- - to:
- id: to-e79a
- variableSend: route:aran1
- variableReceive: route:aran1
- uri: arangodb
- - setVariable:
- id: setVariable-957d
- name: varrr
- expression:
- simple:
- id: simple-cd4b
- - to:
- id: to-60f8
- variableSend: hello
- variableReceive: world
- uri: amqp
-
+- rest:
+ id: rest-aca4
+ get:
+ - id: get-910c
+ post:
+ - id: post-3ab3
# steps:
# - marshal:
diff --git a/karavan-designer/src/designer/kamelet/KameletInput.tsx
b/karavan-designer/src/designer/kamelet/KameletInput.tsx
index f1ee50f3..ebab83d7 100644
--- a/karavan-designer/src/designer/kamelet/KameletInput.tsx
+++ b/karavan-designer/src/designer/kamelet/KameletInput.tsx
@@ -15,6 +15,7 @@
* limitations under the License.
*/
+import React, {useEffect, useState} from "react";
import {
GridItem,
FormGroup,
@@ -27,7 +28,6 @@ import {
capitalize,
TextArea
} from "@patternfly/react-core";
-import {useEffect, useState} from "react";
import '../karavan.css';
import './kamelet.css';
diff --git a/karavan-space/src/designer/kamelet/KameletInput.tsx
b/karavan-space/src/designer/kamelet/KameletInput.tsx
index f1ee50f3..ebab83d7 100644
--- a/karavan-space/src/designer/kamelet/KameletInput.tsx
+++ b/karavan-space/src/designer/kamelet/KameletInput.tsx
@@ -15,6 +15,7 @@
* limitations under the License.
*/
+import React, {useEffect, useState} from "react";
import {
GridItem,
FormGroup,
@@ -27,7 +28,6 @@ import {
capitalize,
TextArea
} from "@patternfly/react-core";
-import {useEffect, useState} from "react";
import '../karavan.css';
import './kamelet.css';