diff --git a/extensions/quarkus/deployment/src/main/java/org/apache/myfaces/core/extensions/quarkus/deployment/devui/MyFacesCoreDevUIProcessor.java b/extensions/quarkus/deployment/src/main/java/org/apache/myfaces/core/extensions/quarkus/deployment/devui/MyFacesCoreDevUIProcessor.java index 7edcc608bf..342c000686 100644 --- a/extensions/quarkus/deployment/src/main/java/org/apache/myfaces/core/extensions/quarkus/deployment/devui/MyFacesCoreDevUIProcessor.java +++ b/extensions/quarkus/deployment/src/main/java/org/apache/myfaces/core/extensions/quarkus/deployment/devui/MyFacesCoreDevUIProcessor.java @@ -18,14 +18,10 @@ */ package org.apache.myfaces.core.extensions.quarkus.deployment.devui; -import org.apache.myfaces.config.webparameters.MyfacesConfig; - import io.quarkus.deployment.IsDevelopment; import io.quarkus.deployment.annotations.BuildProducer; import io.quarkus.deployment.annotations.BuildStep; import io.quarkus.devui.spi.page.CardPageBuildItem; -import io.quarkus.devui.spi.page.Page; -import io.quarkus.devui.spi.page.PageBuilder; /** * Dev UI card for displaying important details such as the library version. @@ -38,15 +34,8 @@ void createVersion(BuildProducer cardPageBuildItemBuildProduc { final CardPageBuildItem card = new CardPageBuildItem(); - final PageBuilder versionPage = Page.externalPageBuilder("Version") - .icon("font-awesome-solid:book") - .url("https://myfaces.apache.org/#/core40") - .doNotEmbed() - .staticLabel(MyfacesConfig.class.getPackage().getImplementationVersion()); - - card.addPage(versionPage); - - card.setCustomCard("qwc-myfaces-core-card.js"); + card.addLibraryVersion("org.apache.myfaces.core", "myfaces-impl", "MyFaces", + "https://myfaces.apache.org/#/core50"); cardPageBuildItemBuildProducer.produce(card); } diff --git a/extensions/quarkus/deployment/src/main/resources/dev-ui/qwc-myfaces-core-card.js b/extensions/quarkus/deployment/src/main/resources/dev-ui/qwc-myfaces-core-card.js deleted file mode 100644 index 5d2ddc1d2b..0000000000 --- a/extensions/quarkus/deployment/src/main/resources/dev-ui/qwc-myfaces-core-card.js +++ /dev/null @@ -1,104 +0,0 @@ -/* - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. - */ -import { LitElement, html, css} from 'lit'; -import { pages } from 'build-time-data'; -import 'qwc/qwc-extension-link.js'; - -const NAME = "MyFaces Core"; -export class QwcMyFacesCoreCard extends LitElement { - - static styles = css` - .identity { - display: flex; - justify-content: flex-start; - } - - .description { - padding-bottom: 10px; - } - - .logo { - padding-bottom: 10px; - margin-right: 5px; - } - - .card-content { - color: var(--lumo-contrast-90pct); - display: flex; - flex-direction: column; - justify-content: flex-start; - padding: 2px 2px; - height: 100%; - } - - .card-content slot { - display: flex; - flex-flow: column wrap; - padding-top: 5px; - } - `; - - static properties = { - description: {type: String} - }; - - constructor() { - super(); - } - - connectedCallback() { - super.connectedCallback(); - } - - render() { - return html`
-
- -
${this.description}
-
- ${this._renderCardLinks()} -
- `; - } - - _renderCardLinks(){ - return html`${pages.map(page => html` - - - `)}`; - } - -} -customElements.define('qwc-myfaces-core-card', QwcMyFacesCoreCard); \ No newline at end of file diff --git a/extensions/quarkus/pom.xml b/extensions/quarkus/pom.xml index 9697e621a8..915e039ea7 100644 --- a/extensions/quarkus/pom.xml +++ b/extensions/quarkus/pom.xml @@ -41,7 +41,7 @@ - 3.28.3 + 3.27.1 3.0.0 diff --git a/extensions/quarkus/runtime/src/main/resources/META-INF/quarkus-extension.yaml b/extensions/quarkus/runtime/src/main/resources/META-INF/quarkus-extension.yaml index d13ec845ee..174e2e9e0f 100644 --- a/extensions/quarkus/runtime/src/main/resources/META-INF/quarkus-extension.yaml +++ b/extensions/quarkus/runtime/src/main/resources/META-INF/quarkus-extension.yaml @@ -27,7 +27,7 @@ metadata: - "Faces" - "Jakarta Faces" guide: "https://myfaces.apache.org/#/coregettingstarted?id=quarkus" - icon-url: "https://www.apache.org/foundation/press/kit/poweredBy/Apache_PoweredBy.svg" + icon-url: "https://www.apache.org/logos/originals/myfaces.svg" categories: - "web" status: "stable"