Skip to content

Commit

Permalink
First try #1412
Browse files Browse the repository at this point in the history
  • Loading branch information
mgubaidullin committed Sep 16, 2024
1 parent 8c6b058 commit f673c38
Show file tree
Hide file tree
Showing 12 changed files with 5,117 additions and 1,339 deletions.
1,604 changes: 1,272 additions & 332 deletions karavan-app/src/main/resources/metadata/kamelets.yaml

Large diffs are not rendered by default.

7 changes: 4 additions & 3 deletions karavan-app/src/main/webui/src/designer/selector/DslCard.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
*/
import React from 'react';
import {
Badge,
Badge, capitalize,
Card, CardBody, CardFooter,
CardHeader,
Text,
Expand All @@ -41,16 +41,17 @@ export function DslCard (props: Props) {
}

const {dsl, index} = props;
const navigation = dsl.navigation === 'eip' ? 'EIP' : capitalize(dsl.navigation);
const labels = dsl.labels !== undefined ? dsl.labels.split(",").filter(label => label !== 'eip') : [];
const isCustom = KameletApi.getCustomKameletNames().includes(dsl.name);
const isRemote = dsl.remote;
return (
<Card key={dsl.dsl + index} isCompact isPlain isFlat isRounded className="dsl-card"
onClick={event => selectDsl(event, dsl)}>
<CardHeader className="header-labels">
<Badge isRead className="support-level labels">{dsl.supportLevel}</Badge>
<Badge className="navigation-label">{navigation}</Badge>
{['kamelet', 'component'].includes(dsl.navigation.toLowerCase()) &&
<Badge isRead className="version labels">{dsl.version}</Badge>
<Badge isRead className="support-level labels">{dsl.supportLevel}</Badge>
}
</CardHeader>
<CardHeader>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -129,6 +129,11 @@
white-space: nowrap;
}

.dsl-modal .pf-m-unread {
--pf-v5-c-badge--BackgroundColor: var(--pf-v5-global--info-color--100);
font-weight: 200;
}

.dsl-modal .labels {
opacity: 0.5;
font-weight: 200;
Expand Down
1,604 changes: 1,272 additions & 332 deletions karavan-designer/public/metadata/kamelets.yaml

Large diffs are not rendered by default.

7 changes: 4 additions & 3 deletions karavan-designer/src/designer/selector/DslCard.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
*/
import React from 'react';
import {
Badge,
Badge, capitalize,
Card, CardBody, CardFooter,
CardHeader,
Text,
Expand All @@ -41,16 +41,17 @@ export function DslCard (props: Props) {
}

const {dsl, index} = props;
const navigation = dsl.navigation === 'eip' ? 'EIP' : capitalize(dsl.navigation);
const labels = dsl.labels !== undefined ? dsl.labels.split(",").filter(label => label !== 'eip') : [];
const isCustom = KameletApi.getCustomKameletNames().includes(dsl.name);
const isRemote = dsl.remote;
return (
<Card key={dsl.dsl + index} isCompact isPlain isFlat isRounded className="dsl-card"
onClick={event => selectDsl(event, dsl)}>
<CardHeader className="header-labels">
<Badge isRead className="support-level labels">{dsl.supportLevel}</Badge>
<Badge className="navigation-label">{navigation}</Badge>
{['kamelet', 'component'].includes(dsl.navigation.toLowerCase()) &&
<Badge isRead className="version labels">{dsl.version}</Badge>
<Badge isRead className="support-level labels">{dsl.supportLevel}</Badge>
}
</CardHeader>
<CardHeader>
Expand Down
5 changes: 5 additions & 0 deletions karavan-designer/src/designer/selector/DslSelector.css
Original file line number Diff line number Diff line change
Expand Up @@ -129,6 +129,11 @@
white-space: nowrap;
}

.dsl-modal .pf-m-unread {
--pf-v5-c-badge--BackgroundColor: var(--pf-v5-global--info-color--100);
font-weight: 200;
}

.dsl-modal .labels {
opacity: 0.5;
font-weight: 200;
Expand Down
2 changes: 1 addition & 1 deletion karavan-generator/dependency-reduced-pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@
</repositories>
<properties>
<maven.compiler.source>17</maven.compiler.source>
<version.camel-kamelet>4.7.0</version.camel-kamelet>
<version.camel-kamelet>4.8.0-SNAPSHOT</version.camel-kamelet>
<compiler-plugin.version>3.8.1</compiler-plugin.version>
<project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
<version.vertx>4.5.9</version.vertx>
Expand Down
2 changes: 1 addition & 1 deletion karavan-generator/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
<project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
<surefire-plugin.version>3.0.0-M5</surefire-plugin.version>
<version.camel-core>4.8.0</version.camel-core>
<version.camel-kamelet>4.7.0</version.camel-kamelet>
<version.camel-kamelet>4.8.0-SNAPSHOT</version.camel-kamelet>
<version.vertx>4.5.9</version.vertx>
</properties>
<dependencies>
Expand Down
1,604 changes: 1,272 additions & 332 deletions karavan-space/public/metadata/kamelets.yaml

Large diffs are not rendered by default.

7 changes: 4 additions & 3 deletions karavan-space/src/designer/selector/DslCard.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
*/
import React from 'react';
import {
Badge,
Badge, capitalize,
Card, CardBody, CardFooter,
CardHeader,
Text,
Expand All @@ -41,16 +41,17 @@ export function DslCard (props: Props) {
}

const {dsl, index} = props;
const navigation = dsl.navigation === 'eip' ? 'EIP' : capitalize(dsl.navigation);
const labels = dsl.labels !== undefined ? dsl.labels.split(",").filter(label => label !== 'eip') : [];
const isCustom = KameletApi.getCustomKameletNames().includes(dsl.name);
const isRemote = dsl.remote;
return (
<Card key={dsl.dsl + index} isCompact isPlain isFlat isRounded className="dsl-card"
onClick={event => selectDsl(event, dsl)}>
<CardHeader className="header-labels">
<Badge isRead className="support-level labels">{dsl.supportLevel}</Badge>
<Badge className="navigation-label">{navigation}</Badge>
{['kamelet', 'component'].includes(dsl.navigation.toLowerCase()) &&
<Badge isRead className="version labels">{dsl.version}</Badge>
<Badge isRead className="support-level labels">{dsl.supportLevel}</Badge>
}
</CardHeader>
<CardHeader>
Expand Down
5 changes: 5 additions & 0 deletions karavan-space/src/designer/selector/DslSelector.css
Original file line number Diff line number Diff line change
Expand Up @@ -129,6 +129,11 @@
white-space: nowrap;
}

.dsl-modal .pf-m-unread {
--pf-v5-c-badge--BackgroundColor: var(--pf-v5-global--info-color--100);
font-weight: 200;
}

.dsl-modal .labels {
opacity: 0.5;
font-weight: 200;
Expand Down
Loading

0 comments on commit f673c38

Please sign in to comment.