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 917a61c ThrowExceptionDefinition (#411)
917a61c is described below
commit 917a61c5332afe401f2f191f122904c67e8c818c
Author: Marat Gubaidullin <[email protected]>
AuthorDate: Mon Jul 11 11:52:37 2022 -0400
ThrowExceptionDefinition (#411)
---
karavan-app/src/main/webapp/src/projects/CreateFileModal.tsx | 2 +-
karavan-designer/src/designer/utils/CamelUi.tsx | 7 ++++++-
2 files changed, 7 insertions(+), 2 deletions(-)
diff --git a/karavan-app/src/main/webapp/src/projects/CreateFileModal.tsx
b/karavan-app/src/main/webapp/src/projects/CreateFileModal.tsx
index 1db5f6d..bcbf838 100644
--- a/karavan-app/src/main/webapp/src/projects/CreateFileModal.tsx
+++ b/karavan-app/src/main/webapp/src/projects/CreateFileModal.tsx
@@ -69,7 +69,7 @@ export class CreateFileModal extends React.Component<Props,
State> {
<Form autoComplete="off" isHorizontal
className="create-file-form">
<FormGroup label="Type" fieldId="type" isRequired>
<ToggleGroup aria-label="Type">
- {ProjectFileTypes.filter(p => p.name !==
'PROPERTIES').map(p => {
+ {ProjectFileTypes.filter(p => p.name !==
'PROPERTIES' && p.name !== 'LOG').map(p => {
const title = p.title + (p.name === 'CODE' ? '
(' + p.extension + ')' : '');
return <ToggleGroupItem key={title}
text={title} buttonId={p.name}
isSelected={this.state.extension === p.extension}
diff --git a/karavan-designer/src/designer/utils/CamelUi.tsx
b/karavan-designer/src/designer/utils/CamelUi.tsx
index 566ef94..c421221 100644
--- a/karavan-designer/src/designer/utils/CamelUi.tsx
+++ b/karavan-designer/src/designer/utils/CamelUi.tsx
@@ -36,7 +36,7 @@ const StepElements: string[] = [
"DynamicRouterDefinition",
"EnrichDefinition",
// "ErrorHandlerBuilderDeserializer",
- "ErrorHandlerDefinition",
+ // "ErrorHandlerDefinition",
"FilterDefinition",
"LogDefinition",
"LoopDefinition",
@@ -55,6 +55,7 @@ const StepElements: string[] = [
"SplitDefinition",
"ThreadsDefinition",
"ThrottleDefinition",
+ "ThrowExceptionDefinition",
"ToDynamicDefinition",
"TransformDefinition",
"TransactedDefinition",
@@ -408,6 +409,10 @@ export class CamelUi {
return "data:image/svg+xml,%3Csvg width='32' height='32'
xmlns='http://www.w3.org/2000/svg'
xmlns:svg='http://www.w3.org/2000/svg'%3E%3Cdefs%3E%3Cstyle%3E.cls-1%7Bfill:none;%7D%3C/style%3E%3C/defs%3E%3Ctitle%3Einsert%3C/title%3E%3Cg
class='layer'%3E%3Ctitle%3ELayer 1%3C/title%3E%3Crect class='cls-1'
data-name='<Transparent Rectangle>' height='32'
id='_Transparent_Rectangle_' width='31.94228' x='0' y='0'/%3E%3Cg id='svg_5'
transform='matrix(1 0 0 1 0 0) rotate(180 16 [...]
case "ErrorHandlerBuilderRef":
return "data:image/svg+xml,%3Csvg
xmlns='http://www.w3.org/2000/svg' class='top-icon' width='36px' height='36px'
viewBox='0 0 36 36' version='1.1' preserveAspectRatio='xMidYMid
meet'%3E%3Ccircle class='clr-i-outline clr-i-outline-path-1' cx='18' cy='26.06'
r='1.33'%3E%3C/circle%3E%3Cpath class='clr-i-outline clr-i-outline-path-2'
d='M18,22.61a1,1,0,0,1-1-1v-12a1,1,0,1,1,2,0v12A1,1,0,0,1,18,22.61Z'%3E%3C/path%3E%3Cpath
class='clr-i-outline clr-i-outline-path-3' d='M18,34A1 [...]
+ case "ThrowExceptionDefinition":
+ return "data:image/svg+xml,%0A%3Csvg width='32px'
height='32px' viewBox='0 0 32 32' id='icon'
xmlns='http://www.w3.org/2000/svg'%3E%3Cdefs%3E%3Cstyle%3E.cls-1%7Bfill:none;%7D%3C/style%3E%3C/defs%3E%3Ctitle%3Ewarning%3C/title%3E%3Cpath
d='M16,2A14,14,0,1,0,30,16,14,14,0,0,0,16,2Zm0,26A12,12,0,1,1,28,16,12,12,0,0,1,16,28Z'
transform='translate(0 0)'/%3E%3Crect x='15' y='8' width='2'
height='11'/%3E%3Cpath d='M16,22a1.5,1.5,0,1,0,1.5,1.5A1.5,1.5,0,0,0,16,22Z'
transform='tran [...]
+ case "OnExceptionDefinition":
+ return "data:image/svg+xml,%3Csvg version='1.1' id='icon'
xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink'
x='0px' y='0px' width='32px' height='32px' viewBox='0 0 32 32'
style='enable-background:new 0 0 32 32;' xml:space='preserve'%3E%3Cstyle
type='text/css'%3E .st0%7Bfill:none;%7D
.st1%7Bopacity:0;fill-opacity:0;%7D%0A%3C/style%3E%3Crect
id='Transparent_Rectangle' class='st0' width='32' height='32'/%3E%3Cpath
id='Compound_Path' d='M16,2C8.3,2 [...]
default:
return camelIcon;
}