Skip to content

Commit

Permalink
Add more Spring Integration component extensions to Canvas
Browse files Browse the repository at this point in the history
  • Loading branch information
a-asaad committed May 14, 2024
1 parent 8632823 commit 56b5a68
Show file tree
Hide file tree
Showing 6 changed files with 41 additions and 22 deletions.
17 changes: 7 additions & 10 deletions si-schema-translator/schemaConfig.yaml
Original file line number Diff line number Diff line change
@@ -1,16 +1,13 @@
# Some minor errors were present in some spring-integration schemas.
# The XMLs were corrected and served on a local http server.
# The errors for each schema (if present) are commented below

schemas:
- alias: "integration"
namespace: "http://www.springframework.org/schema/integration"
location: "https://www.springframework.org/schema/integration/spring-integration-5.2.xsd"
excludedElements:
- "application-event-multicaster"
- "chain"
- "converter"
- "selector-chain"
- "spel-property-accessors"
- "converter"
- "chain"

- alias: "jms"
namespace: "http://www.springframework.org/schema/integration/jms"
Expand Down Expand Up @@ -43,17 +40,17 @@ schemas:
namespace: "http://www.springframework.org/schema/integration/sftp"
location: "https://www.springframework.org/schema/integration/sftp/spring-integration-sftp-5.2.xsd"

- alias: "tcp/udp"
- alias: "tcp-udp"
namespace: "http://www.springframework.org/schema/integration/ip"
location: "https://www.springframework.org/schema/integration/ip/spring-integration-ip-5.2.xsd"

- alias: "web-services"
namespace: "http://www.springframework.org/schema/integration/ws"
location: "https://www.springframework.org/schema/integration/ws/spring-integration-ws-5.2.xsd"

# - alias: "xml"
# namespace: "http://www.springframework.org/schema/integration/xml"
# location: "https://www.springframework.org/schema/integration/xml/spring-integration-xml-5.2.xsd"
- alias: "xml"
namespace: "http://www.springframework.org/schema/integration/xml"
location: "https://www.springframework.org/schema/integration/xml/spring-integration-xml-5.2.xsd"

# schemaLocations provided here will override any schemaLocations provided in <xsd:import> elements
# for the listed namespaces
Expand Down
19 changes: 19 additions & 0 deletions ui/src/assets/eip/connection--factory.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion ui/src/assets/eip/info.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
Images are taken from https://github.com/plantuml-stdlib/EIP-PlantUML and converted to SVGs
Some images were taken from https://github.com/plantuml-stdlib/EIP-PlantUML and converted to SVGs
2 changes: 1 addition & 1 deletion ui/src/json/springIntegrationEipSchema.json

Large diffs are not rendered by default.

14 changes: 10 additions & 4 deletions ui/src/singletons/eipIconCatalog.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ import barrierImg from "../assets/eip/barrier.svg"
import bridgeImg from "../assets/eip/bridge.svg"
import channelImg from "../assets/eip/channel.svg"
import claimCheckImg from "../assets/eip/claim_check.svg"
import connectionFactoryImg from "../assets/eip/connection--factory.svg"
import controlBusImg from "../assets/eip/control_bus.svg"
import delayerImg from "../assets/eip/delayer.svg"
import enricherImg from "../assets/eip/enricher.svg"
Expand Down Expand Up @@ -39,13 +40,15 @@ const findIcon = (name: string) => {
case name.endsWith("gateway"):
return gatewayImg
case name === "message-driven-channel-adapter":
case name.includes("inbound-channel-adapter"):
case name.includes("inbound") && name.includes("channel-adapter"):
return inboundAdapterImg
case name === "logging-channel-adapter":
case name.includes("outbound-channel-adapter"):
case name.includes("outbound") && name.includes("channel-adapter"):
return outboundAdapterImg
case name.endsWith("router"):
return routerImg
case name.includes("splitter"):
return splitterImg
case name.includes("transformer"):
return transformerImg
default:
Expand Down Expand Up @@ -96,13 +99,16 @@ const findIcon = (name: string) => {
return serviceActivatorImg
case "spel-function":
return spelFunctionImg
case "splitter":
return splitterImg
case "tcp-connection-factory":
return connectionFactoryImg
case "transaction-synchronization-factory":
return processManagerImg
case "wire-tap":
return wireTapImg
case "xpath-expression":
return scriptImg
default:
console.log(`No icon found for ${name}`)
return undefined
}
}
Expand Down
9 changes: 3 additions & 6 deletions ui/src/styles.scss
Original file line number Diff line number Diff line change
Expand Up @@ -26,18 +26,14 @@
background-color: themes.$background-inverse;

.header-main-text {
color: themes.$text-inverse !important;
font-size: type.type-scale(3) !important;
color: themes.$text-inverse;
font-size: type.type-scale(3);
}

.header-action-bar {
padding-right: layout.$spacing-05;
}

svg.header-icon {
fill: themes.$icon-inverse !important;
}

.options-menu:hover {
background-color: themes.$background-inverse-hover;
}
Expand Down Expand Up @@ -141,6 +137,7 @@

.eip-item-image {
width: 2rem;
min-width: 2rem;
height: 2rem;
}

Expand Down

0 comments on commit 56b5a68

Please sign in to comment.