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
commit ceb0648387364467767002c879d3c864b201e4fa Author: Marat Gubaidullin <ma...@talismancloud.io> AuthorDate: Mon Jun 17 09:59:41 2024 -0400 Fix #1308 --- .../webui/src/designer/icons/ComponentIcons.tsx | 30 ++++++++++++++++++++++ .../src/main/webui/src/designer/utils/CamelUi.tsx | 4 ++- .../src/designer/icons/ComponentIcons.tsx | 30 ++++++++++++++++++++++ karavan-designer/src/designer/utils/CamelUi.tsx | 4 ++- .../src/designer/icons/ComponentIcons.tsx | 30 ++++++++++++++++++++++ karavan-space/src/designer/utils/CamelUi.tsx | 4 ++- 6 files changed, 99 insertions(+), 3 deletions(-) diff --git a/karavan-app/src/main/webui/src/designer/icons/ComponentIcons.tsx b/karavan-app/src/main/webui/src/designer/icons/ComponentIcons.tsx index 3dee6246..b3809eab 100644 --- a/karavan-app/src/main/webui/src/designer/icons/ComponentIcons.tsx +++ b/karavan-app/src/main/webui/src/designer/icons/ComponentIcons.tsx @@ -16,6 +16,36 @@ */ import React from 'react'; +export function Smooks() { + return ( + <svg xmlns="http://www.w3.org/2000/svg" + viewBox="0 0 90 79" + className="icon" width="32px" height="32px"> + <path fill="#FDFEFE" d="M0 0h90v79H0V0Z" /> + <path + fill="#795EAA" + d="M28 9c3.944.589 6.824 1.786 10.25 3.813.871.5 1.743 1.002 2.64 1.519C43.279 16.22 43.595 17.062 44 20l1 1.938c1.13 2.332 1.575 4.515 2 7.062l3.875-.125c2.18-.07 2.18-.07 4.125.125 2 2 2 2 2.195 4.82l-.07 3.305-.055 3.32L57 43c-5.573-.76-5.573-.76-8-2.125-2.895-1.267-4.892-.44-8 .125-3.668.096-7.331.059-11 0l.063 2.875C30 47 30 47 29 49c-3.911-.674-6.871-2.543-10.25-4.563l-3.266-1.94L13 41l.95-1.875C15.01 36.979 15.775 35.388 16 33c-1.392-2.133-1.392-2.133-3-4v-2c-.957- [...] + /> + <path + fill="#136C2B" + d="M47 42v3c6.26 1.163 6.26 1.163 12-1 3.253.105 4.262 1.232 6.75 3.438C68 50 68 50 68 52l-2.082.48c-5.657 1.283-5.657 1.283-9.793 5.02L55 60c-2.188 1.813-2.188 1.813-4 3l1 2.313C53 68 53 68 53 71l-15 2v-7c-5.472-1.243-5.472-1.243-10.5.438L26 68c-3.82-1.556-6.26-3.956-9-7v-2c3.62-1.316 6.096-2 10-2l.25-2.25C28 52 28 52 30.063 50c2.215-1.868 2.215-1.868 2.187-4.75L32 43c5.07-.712 9.882-1.107 15-1Z" + /> + <path + fill="#5D76B5" + d="M60 10c1.437-.027 2.875-.046 4.313-.063l2.425-.035C69 10 69 10 72 11v3c3.292 1.254 5.64 2.021 9.188 1.813L84 16c2.311 2.85 3 4.314 3 8l-1.758.078c-5.37.39-9.18 1.069-13.242 4.922v6H60c-1-3-1-3 0-6-2.802-1.793-4.083-1.996-7.5-1.813C49 27 49 27 46.562 24.625 45 22 45 22 45 20l3.813-.25c3.465-.378 3.465-.378 6-2.75L56 15l3-1c.733-2.015.733-2.015 1-4Z" + /> + <path + fill="#E4EAE9" + d="M57 38h1l1 7c-3.67 1.573-5.443 2.144-9.375 1.125L47 45v-3l-13 1v-2c8.909-2.395 14.505-1.369 23 2v-5Z" + /> + <path + fill="#D1D4E8" + d="m44 17 1 2h8v1h-8c2.88 4.577 2.88 4.577 7 8l-5 1c-1.524-2.983-2.94-5.818-4-9l1-3Z" + /> + <path fill="#F6F6F9" d="M30 41h4v2h-2l1 5-4 3-2-2h2l1-8Z" /> + </svg> + ) +} export function DHIS2Icon() { return ( <svg diff --git a/karavan-app/src/main/webui/src/designer/utils/CamelUi.tsx b/karavan-app/src/main/webui/src/designer/utils/CamelUi.tsx index a556fffe..7ce34eca 100644 --- a/karavan-app/src/main/webui/src/designer/utils/CamelUi.tsx +++ b/karavan-app/src/main/webui/src/designer/utils/CamelUi.tsx @@ -67,7 +67,7 @@ import { SapIcon, SchedulingIcon, ScriptIcon, - SearchIcon, + SearchIcon, Smooks, SocialIcon, SpringIcon, TerminalIcon, @@ -618,6 +618,8 @@ export class CamelUi { return GitIcon(); } else if (title.startsWith("DHIS2")) { return DHIS2Icon(); + } else if (title.startsWith("Smooks")) { + return Smooks(); } else if (title.startsWith("Cassandra")) { return CassandraIcon(); } else if (title.startsWith("Hazelcast")) { diff --git a/karavan-designer/src/designer/icons/ComponentIcons.tsx b/karavan-designer/src/designer/icons/ComponentIcons.tsx index 3dee6246..b3809eab 100644 --- a/karavan-designer/src/designer/icons/ComponentIcons.tsx +++ b/karavan-designer/src/designer/icons/ComponentIcons.tsx @@ -16,6 +16,36 @@ */ import React from 'react'; +export function Smooks() { + return ( + <svg xmlns="http://www.w3.org/2000/svg" + viewBox="0 0 90 79" + className="icon" width="32px" height="32px"> + <path fill="#FDFEFE" d="M0 0h90v79H0V0Z" /> + <path + fill="#795EAA" + d="M28 9c3.944.589 6.824 1.786 10.25 3.813.871.5 1.743 1.002 2.64 1.519C43.279 16.22 43.595 17.062 44 20l1 1.938c1.13 2.332 1.575 4.515 2 7.062l3.875-.125c2.18-.07 2.18-.07 4.125.125 2 2 2 2 2.195 4.82l-.07 3.305-.055 3.32L57 43c-5.573-.76-5.573-.76-8-2.125-2.895-1.267-4.892-.44-8 .125-3.668.096-7.331.059-11 0l.063 2.875C30 47 30 47 29 49c-3.911-.674-6.871-2.543-10.25-4.563l-3.266-1.94L13 41l.95-1.875C15.01 36.979 15.775 35.388 16 33c-1.392-2.133-1.392-2.133-3-4v-2c-.957- [...] + /> + <path + fill="#136C2B" + d="M47 42v3c6.26 1.163 6.26 1.163 12-1 3.253.105 4.262 1.232 6.75 3.438C68 50 68 50 68 52l-2.082.48c-5.657 1.283-5.657 1.283-9.793 5.02L55 60c-2.188 1.813-2.188 1.813-4 3l1 2.313C53 68 53 68 53 71l-15 2v-7c-5.472-1.243-5.472-1.243-10.5.438L26 68c-3.82-1.556-6.26-3.956-9-7v-2c3.62-1.316 6.096-2 10-2l.25-2.25C28 52 28 52 30.063 50c2.215-1.868 2.215-1.868 2.187-4.75L32 43c5.07-.712 9.882-1.107 15-1Z" + /> + <path + fill="#5D76B5" + d="M60 10c1.437-.027 2.875-.046 4.313-.063l2.425-.035C69 10 69 10 72 11v3c3.292 1.254 5.64 2.021 9.188 1.813L84 16c2.311 2.85 3 4.314 3 8l-1.758.078c-5.37.39-9.18 1.069-13.242 4.922v6H60c-1-3-1-3 0-6-2.802-1.793-4.083-1.996-7.5-1.813C49 27 49 27 46.562 24.625 45 22 45 22 45 20l3.813-.25c3.465-.378 3.465-.378 6-2.75L56 15l3-1c.733-2.015.733-2.015 1-4Z" + /> + <path + fill="#E4EAE9" + d="M57 38h1l1 7c-3.67 1.573-5.443 2.144-9.375 1.125L47 45v-3l-13 1v-2c8.909-2.395 14.505-1.369 23 2v-5Z" + /> + <path + fill="#D1D4E8" + d="m44 17 1 2h8v1h-8c2.88 4.577 2.88 4.577 7 8l-5 1c-1.524-2.983-2.94-5.818-4-9l1-3Z" + /> + <path fill="#F6F6F9" d="M30 41h4v2h-2l1 5-4 3-2-2h2l1-8Z" /> + </svg> + ) +} export function DHIS2Icon() { return ( <svg diff --git a/karavan-designer/src/designer/utils/CamelUi.tsx b/karavan-designer/src/designer/utils/CamelUi.tsx index a556fffe..7ce34eca 100644 --- a/karavan-designer/src/designer/utils/CamelUi.tsx +++ b/karavan-designer/src/designer/utils/CamelUi.tsx @@ -67,7 +67,7 @@ import { SapIcon, SchedulingIcon, ScriptIcon, - SearchIcon, + SearchIcon, Smooks, SocialIcon, SpringIcon, TerminalIcon, @@ -618,6 +618,8 @@ export class CamelUi { return GitIcon(); } else if (title.startsWith("DHIS2")) { return DHIS2Icon(); + } else if (title.startsWith("Smooks")) { + return Smooks(); } else if (title.startsWith("Cassandra")) { return CassandraIcon(); } else if (title.startsWith("Hazelcast")) { diff --git a/karavan-space/src/designer/icons/ComponentIcons.tsx b/karavan-space/src/designer/icons/ComponentIcons.tsx index 3dee6246..b3809eab 100644 --- a/karavan-space/src/designer/icons/ComponentIcons.tsx +++ b/karavan-space/src/designer/icons/ComponentIcons.tsx @@ -16,6 +16,36 @@ */ import React from 'react'; +export function Smooks() { + return ( + <svg xmlns="http://www.w3.org/2000/svg" + viewBox="0 0 90 79" + className="icon" width="32px" height="32px"> + <path fill="#FDFEFE" d="M0 0h90v79H0V0Z" /> + <path + fill="#795EAA" + d="M28 9c3.944.589 6.824 1.786 10.25 3.813.871.5 1.743 1.002 2.64 1.519C43.279 16.22 43.595 17.062 44 20l1 1.938c1.13 2.332 1.575 4.515 2 7.062l3.875-.125c2.18-.07 2.18-.07 4.125.125 2 2 2 2 2.195 4.82l-.07 3.305-.055 3.32L57 43c-5.573-.76-5.573-.76-8-2.125-2.895-1.267-4.892-.44-8 .125-3.668.096-7.331.059-11 0l.063 2.875C30 47 30 47 29 49c-3.911-.674-6.871-2.543-10.25-4.563l-3.266-1.94L13 41l.95-1.875C15.01 36.979 15.775 35.388 16 33c-1.392-2.133-1.392-2.133-3-4v-2c-.957- [...] + /> + <path + fill="#136C2B" + d="M47 42v3c6.26 1.163 6.26 1.163 12-1 3.253.105 4.262 1.232 6.75 3.438C68 50 68 50 68 52l-2.082.48c-5.657 1.283-5.657 1.283-9.793 5.02L55 60c-2.188 1.813-2.188 1.813-4 3l1 2.313C53 68 53 68 53 71l-15 2v-7c-5.472-1.243-5.472-1.243-10.5.438L26 68c-3.82-1.556-6.26-3.956-9-7v-2c3.62-1.316 6.096-2 10-2l.25-2.25C28 52 28 52 30.063 50c2.215-1.868 2.215-1.868 2.187-4.75L32 43c5.07-.712 9.882-1.107 15-1Z" + /> + <path + fill="#5D76B5" + d="M60 10c1.437-.027 2.875-.046 4.313-.063l2.425-.035C69 10 69 10 72 11v3c3.292 1.254 5.64 2.021 9.188 1.813L84 16c2.311 2.85 3 4.314 3 8l-1.758.078c-5.37.39-9.18 1.069-13.242 4.922v6H60c-1-3-1-3 0-6-2.802-1.793-4.083-1.996-7.5-1.813C49 27 49 27 46.562 24.625 45 22 45 22 45 20l3.813-.25c3.465-.378 3.465-.378 6-2.75L56 15l3-1c.733-2.015.733-2.015 1-4Z" + /> + <path + fill="#E4EAE9" + d="M57 38h1l1 7c-3.67 1.573-5.443 2.144-9.375 1.125L47 45v-3l-13 1v-2c8.909-2.395 14.505-1.369 23 2v-5Z" + /> + <path + fill="#D1D4E8" + d="m44 17 1 2h8v1h-8c2.88 4.577 2.88 4.577 7 8l-5 1c-1.524-2.983-2.94-5.818-4-9l1-3Z" + /> + <path fill="#F6F6F9" d="M30 41h4v2h-2l1 5-4 3-2-2h2l1-8Z" /> + </svg> + ) +} export function DHIS2Icon() { return ( <svg diff --git a/karavan-space/src/designer/utils/CamelUi.tsx b/karavan-space/src/designer/utils/CamelUi.tsx index a556fffe..7ce34eca 100644 --- a/karavan-space/src/designer/utils/CamelUi.tsx +++ b/karavan-space/src/designer/utils/CamelUi.tsx @@ -67,7 +67,7 @@ import { SapIcon, SchedulingIcon, ScriptIcon, - SearchIcon, + SearchIcon, Smooks, SocialIcon, SpringIcon, TerminalIcon, @@ -618,6 +618,8 @@ export class CamelUi { return GitIcon(); } else if (title.startsWith("DHIS2")) { return DHIS2Icon(); + } else if (title.startsWith("Smooks")) { + return Smooks(); } else if (title.startsWith("Cassandra")) { return CassandraIcon(); } else if (title.startsWith("Hazelcast")) {