Skip to content

Commit

Permalink
SetExchangePattern Processor
Browse files Browse the repository at this point in the history
  • Loading branch information
mgubaidullin committed Oct 8, 2024
1 parent 78749f8 commit a2fc550
Show file tree
Hide file tree
Showing 6 changed files with 72 additions and 3 deletions.
20 changes: 20 additions & 0 deletions karavan-app/src/main/webui/src/designer/icons/EipIcons.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -154,6 +154,26 @@ export function FilterIcon() {
);
}

export function SetExchangePatternIcon() {
return (
<svg
xmlns="http://www.w3.org/2000/svg"
viewBox="0 0 32 32"
className="icon" width="32px" height="32px">
<title>{"data-share"}</title>
<path
d="M5 25v-9.172l-3.586 3.586L0 18l6-6 6 6-1.414 1.414L7 15.828V25h12v2H7a2.002 2.002 0 0 1-2-2ZM24 22h4a2.002 2.002 0 0 1 2 2v4a2.002 2.002 0 0 1-2 2h-4a2.002 2.002 0 0 1-2-2v-4a2.002 2.002 0 0 1 2-2Zm4 6v-4h-4.002L24 28ZM4.226 1.135h4a2.002 2.002 0 0 1 2 2v4a2.002 2.002 0 0 1-2 2h-4a2.002 2.002 0 0 1-2-2v-4a2.002 2.002 0 0 1 2-2zm4 6v-4H4.225l.001 4zM27 6v9.172l3.586-3.586L32 13l-6 6-6-6 1.414-1.414L25 15.172V6H13V4h12a2.002 2.002 0 0 1 2 2Z"/>
<path
d="M0 0h32v32H0z"
data-name="&lt;Transparent Rectangle&gt;"
style={{
fill: "none",
}}
/>
</svg>
);
}

export function SortIcon() {
return (
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 700 700" className="icon" width="32px" height="32px">
Expand Down
5 changes: 4 additions & 1 deletion karavan-app/src/main/webui/src/designer/utils/CamelUi.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ import {
InterceptFrom,
InterceptSendToEndpoint, LoadBalanceIcon,
OnCompletion, PollIcon,
SagaIcon,
SagaIcon, SetExchangePatternIcon,
SortIcon,
SplitIcon,
ToIcon,
Expand Down Expand Up @@ -131,6 +131,7 @@ const StepElements: string[] = [
"SamplingDefinition",
"SagaDefinition",
"SetBodyDefinition",
"SetExchangePatternDefinition",
"SetHeaderDefinition",
"SetHeadersDefinition",
"SetVariableDefinition",
Expand Down Expand Up @@ -740,6 +741,8 @@ export class CamelUi {
return <LoadBalanceIcon/>;
case 'FilterDefinition' :
return <FilterIcon/>;
case 'SetExchangePatternDefinition' :
return <SetExchangePatternIcon/>;
case 'SortDefinition' :
return <SortIcon/>;
case 'OnCompletionDefinition' :
Expand Down
20 changes: 20 additions & 0 deletions karavan-designer/src/designer/icons/EipIcons.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -154,6 +154,26 @@ export function FilterIcon() {
);
}

export function SetExchangePatternIcon() {
return (
<svg
xmlns="http://www.w3.org/2000/svg"
viewBox="0 0 32 32"
className="icon" width="32px" height="32px">
<title>{"data-share"}</title>
<path
d="M5 25v-9.172l-3.586 3.586L0 18l6-6 6 6-1.414 1.414L7 15.828V25h12v2H7a2.002 2.002 0 0 1-2-2ZM24 22h4a2.002 2.002 0 0 1 2 2v4a2.002 2.002 0 0 1-2 2h-4a2.002 2.002 0 0 1-2-2v-4a2.002 2.002 0 0 1 2-2Zm4 6v-4h-4.002L24 28ZM4.226 1.135h4a2.002 2.002 0 0 1 2 2v4a2.002 2.002 0 0 1-2 2h-4a2.002 2.002 0 0 1-2-2v-4a2.002 2.002 0 0 1 2-2zm4 6v-4H4.225l.001 4zM27 6v9.172l3.586-3.586L32 13l-6 6-6-6 1.414-1.414L25 15.172V6H13V4h12a2.002 2.002 0 0 1 2 2Z"/>
<path
d="M0 0h32v32H0z"
data-name="&lt;Transparent Rectangle&gt;"
style={{
fill: "none",
}}
/>
</svg>
);
}

export function SortIcon() {
return (
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 700 700" className="icon" width="32px" height="32px">
Expand Down
5 changes: 4 additions & 1 deletion karavan-designer/src/designer/utils/CamelUi.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ import {
InterceptFrom,
InterceptSendToEndpoint, LoadBalanceIcon,
OnCompletion, PollIcon,
SagaIcon,
SagaIcon, SetExchangePatternIcon,
SortIcon,
SplitIcon,
ToIcon,
Expand Down Expand Up @@ -131,6 +131,7 @@ const StepElements: string[] = [
"SamplingDefinition",
"SagaDefinition",
"SetBodyDefinition",
"SetExchangePatternDefinition",
"SetHeaderDefinition",
"SetHeadersDefinition",
"SetVariableDefinition",
Expand Down Expand Up @@ -740,6 +741,8 @@ export class CamelUi {
return <LoadBalanceIcon/>;
case 'FilterDefinition' :
return <FilterIcon/>;
case 'SetExchangePatternDefinition' :
return <SetExchangePatternIcon/>;
case 'SortDefinition' :
return <SortIcon/>;
case 'OnCompletionDefinition' :
Expand Down
20 changes: 20 additions & 0 deletions karavan-space/src/designer/icons/EipIcons.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -154,6 +154,26 @@ export function FilterIcon() {
);
}

export function SetExchangePatternIcon() {
return (
<svg
xmlns="http://www.w3.org/2000/svg"
viewBox="0 0 32 32"
className="icon" width="32px" height="32px">
<title>{"data-share"}</title>
<path
d="M5 25v-9.172l-3.586 3.586L0 18l6-6 6 6-1.414 1.414L7 15.828V25h12v2H7a2.002 2.002 0 0 1-2-2ZM24 22h4a2.002 2.002 0 0 1 2 2v4a2.002 2.002 0 0 1-2 2h-4a2.002 2.002 0 0 1-2-2v-4a2.002 2.002 0 0 1 2-2Zm4 6v-4h-4.002L24 28ZM4.226 1.135h4a2.002 2.002 0 0 1 2 2v4a2.002 2.002 0 0 1-2 2h-4a2.002 2.002 0 0 1-2-2v-4a2.002 2.002 0 0 1 2-2zm4 6v-4H4.225l.001 4zM27 6v9.172l3.586-3.586L32 13l-6 6-6-6 1.414-1.414L25 15.172V6H13V4h12a2.002 2.002 0 0 1 2 2Z"/>
<path
d="M0 0h32v32H0z"
data-name="&lt;Transparent Rectangle&gt;"
style={{
fill: "none",
}}
/>
</svg>
);
}

export function SortIcon() {
return (
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 700 700" className="icon" width="32px" height="32px">
Expand Down
5 changes: 4 additions & 1 deletion karavan-space/src/designer/utils/CamelUi.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ import {
InterceptFrom,
InterceptSendToEndpoint, LoadBalanceIcon,
OnCompletion, PollIcon,
SagaIcon,
SagaIcon, SetExchangePatternIcon,
SortIcon,
SplitIcon,
ToIcon,
Expand Down Expand Up @@ -131,6 +131,7 @@ const StepElements: string[] = [
"SamplingDefinition",
"SagaDefinition",
"SetBodyDefinition",
"SetExchangePatternDefinition",
"SetHeaderDefinition",
"SetHeadersDefinition",
"SetVariableDefinition",
Expand Down Expand Up @@ -740,6 +741,8 @@ export class CamelUi {
return <LoadBalanceIcon/>;
case 'FilterDefinition' :
return <FilterIcon/>;
case 'SetExchangePatternDefinition' :
return <SetExchangePatternIcon/>;
case 'SortDefinition' :
return <SortIcon/>;
case 'OnCompletionDefinition' :
Expand Down

0 comments on commit a2fc550

Please sign in to comment.