Skip to content

Commit 811621f

Browse files
phillip-krugergastaldi
authored andcommitted
Use the new logo feature from Dev UI
Signed-off-by: Phillip Kruger <[email protected]>
1 parent 1d69ad7 commit 811621f

File tree

6 files changed

+18
-116
lines changed

6 files changed

+18
-116
lines changed

deployment/src/main/java/io/quarkus/jgit/deployment/devui/GiteaDevUIProcessor.java

Lines changed: 3 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -2,39 +2,26 @@
22

33
import java.util.Optional;
44

5-
import org.eclipse.jgit.api.Git;
6-
75
import io.quarkus.deployment.IsDevelopment;
86
import io.quarkus.deployment.annotations.BuildProducer;
97
import io.quarkus.deployment.annotations.BuildStep;
108
import io.quarkus.devui.spi.page.CardPageBuildItem;
11-
import io.quarkus.devui.spi.page.ExternalPageBuilder;
129
import io.quarkus.devui.spi.page.Page;
1310
import io.quarkus.jgit.deployment.GiteaDevServiceInfoBuildItem;
1411

1512
public class GiteaDevUIProcessor {
1613

1714
@BuildStep(onlyIf = IsDevelopment.class)
1815
void createCard(Optional<GiteaDevServiceInfoBuildItem> info, BuildProducer<CardPageBuildItem> cardPage) {
19-
CardPageBuildItem card = new CardPageBuildItem();
2016

2117
info.ifPresent(i -> {
18+
CardPageBuildItem card = new CardPageBuildItem();
2219
String url = "http://" + i.host() + ":" + i.httpPort();
2320
card.addPage(Page.externalPageBuilder("Gitea Dashboard")
2421
.doNotEmbed()
2522
.icon("font-awesome-solid:code-branch")
2623
.url(url, url));
24+
cardPage.produce(card);
2725
});
28-
29-
final ExternalPageBuilder versionPage = Page.externalPageBuilder("JGit Version")
30-
.icon("font-awesome-solid:tag")
31-
.url("https://www.eclipse.org/jgit/")
32-
.doNotEmbed()
33-
.staticLabel(Git.class.getPackage().getImplementationVersion());
34-
35-
card.addPage(versionPage);
36-
37-
card.setCustomCard("qwc-jgit-card.js");
38-
cardPage.produce(card);
3926
}
40-
}
27+
}

deployment/src/main/resources/dev-ui/qwc-jgit-card.js

Lines changed: 0 additions & 86 deletions
This file was deleted.

docs/modules/ROOT/pages/includes/attributes.adoc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
:quarkus-version: 3.20.0
1+
:quarkus-version: 3.27.0
22
:quarkus-jgit-version: 3.6.0
33
:project-version: 3.6.0
44
:examples-dir: ./../examples/

docs/modules/ROOT/pages/includes/quarkus-jgit.adoc

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ Environment variable: `+++QUARKUS_JGIT_DEVSERVICES_ENABLED+++`
2626
endif::add-copy-button-to-env-var[]
2727
--
2828
|boolean
29-
|`false`
29+
|`+++false+++`
3030

3131
a|icon:lock[title=Fixed at build time] [[quarkus-jgit_quarkus-jgit-devservices-show-logs]] [.property-path]##link:#quarkus-jgit_quarkus-jgit-devservices-show-logs[`quarkus.jgit.devservices.show-logs`]##
3232
ifdef::add-copy-button-to-config-props[]
@@ -47,7 +47,7 @@ Environment variable: `+++QUARKUS_JGIT_DEVSERVICES_SHOW_LOGS+++`
4747
endif::add-copy-button-to-env-var[]
4848
--
4949
|boolean
50-
|`false`
50+
|`+++false+++`
5151

5252
a|icon:lock[title=Fixed at build time] [[quarkus-jgit_quarkus-jgit-devservices-http-port]] [.property-path]##link:#quarkus-jgit_quarkus-jgit-devservices-http-port[`quarkus.jgit.devservices.http-port`]##
5353
ifdef::add-copy-button-to-config-props[]
@@ -89,7 +89,7 @@ Environment variable: `+++QUARKUS_JGIT_DEVSERVICES_ADMIN_USERNAME+++`
8989
endif::add-copy-button-to-env-var[]
9090
--
9191
|string
92-
|`quarkus`
92+
|`+++quarkus+++`
9393

9494
a|icon:lock[title=Fixed at build time] [[quarkus-jgit_quarkus-jgit-devservices-admin-password]] [.property-path]##link:#quarkus-jgit_quarkus-jgit-devservices-admin-password[`quarkus.jgit.devservices.admin-password`]##
9595
ifdef::add-copy-button-to-config-props[]
@@ -110,7 +110,7 @@ Environment variable: `+++QUARKUS_JGIT_DEVSERVICES_ADMIN_PASSWORD+++`
110110
endif::add-copy-button-to-env-var[]
111111
--
112112
|string
113-
|`quarkus`
113+
|`+++quarkus+++`
114114

115115
a|icon:lock[title=Fixed at build time] [[quarkus-jgit_quarkus-jgit-devservices-organizations]] [.property-path]##link:#quarkus-jgit_quarkus-jgit-devservices-organizations[`quarkus.jgit.devservices.organizations`]##
116116
ifdef::add-copy-button-to-config-props[]
@@ -152,7 +152,7 @@ Environment variable: `+++QUARKUS_JGIT_DEVSERVICES_REPOSITORIES+++`
152152
endif::add-copy-button-to-env-var[]
153153
--
154154
|list of string
155-
|`${quarkus.application.name}`
155+
|`+++${quarkus.application.name}+++`
156156

157157
a|icon:lock[title=Fixed at build time] [[quarkus-jgit_quarkus-jgit-devservices-reuse]] [.property-path]##link:#quarkus-jgit_quarkus-jgit-devservices-reuse[`quarkus.jgit.devservices.reuse`]##
158158
ifdef::add-copy-button-to-config-props[]
@@ -173,7 +173,7 @@ Environment variable: `+++QUARKUS_JGIT_DEVSERVICES_REUSE+++`
173173
endif::add-copy-button-to-env-var[]
174174
--
175175
|boolean
176-
|`false`
176+
|`+++false+++`
177177

178178
a|icon:lock[title=Fixed at build time] [[quarkus-jgit_quarkus-jgit-devservices-network-alias]] [.property-path]##link:#quarkus-jgit_quarkus-jgit-devservices-network-alias[`quarkus.jgit.devservices.network-alias`]##
179179
ifdef::add-copy-button-to-config-props[]

docs/modules/ROOT/pages/includes/quarkus-jgit_quarkus.jgit.adoc

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ Environment variable: `+++QUARKUS_JGIT_DEVSERVICES_ENABLED+++`
2626
endif::add-copy-button-to-env-var[]
2727
--
2828
|boolean
29-
|`false`
29+
|`+++false+++`
3030

3131
a|icon:lock[title=Fixed at build time] [[quarkus-jgit_quarkus-jgit-devservices-show-logs]] [.property-path]##link:#quarkus-jgit_quarkus-jgit-devservices-show-logs[`quarkus.jgit.devservices.show-logs`]##
3232
ifdef::add-copy-button-to-config-props[]
@@ -47,7 +47,7 @@ Environment variable: `+++QUARKUS_JGIT_DEVSERVICES_SHOW_LOGS+++`
4747
endif::add-copy-button-to-env-var[]
4848
--
4949
|boolean
50-
|`false`
50+
|`+++false+++`
5151

5252
a|icon:lock[title=Fixed at build time] [[quarkus-jgit_quarkus-jgit-devservices-http-port]] [.property-path]##link:#quarkus-jgit_quarkus-jgit-devservices-http-port[`quarkus.jgit.devservices.http-port`]##
5353
ifdef::add-copy-button-to-config-props[]
@@ -89,7 +89,7 @@ Environment variable: `+++QUARKUS_JGIT_DEVSERVICES_ADMIN_USERNAME+++`
8989
endif::add-copy-button-to-env-var[]
9090
--
9191
|string
92-
|`quarkus`
92+
|`+++quarkus+++`
9393

9494
a|icon:lock[title=Fixed at build time] [[quarkus-jgit_quarkus-jgit-devservices-admin-password]] [.property-path]##link:#quarkus-jgit_quarkus-jgit-devservices-admin-password[`quarkus.jgit.devservices.admin-password`]##
9595
ifdef::add-copy-button-to-config-props[]
@@ -110,7 +110,7 @@ Environment variable: `+++QUARKUS_JGIT_DEVSERVICES_ADMIN_PASSWORD+++`
110110
endif::add-copy-button-to-env-var[]
111111
--
112112
|string
113-
|`quarkus`
113+
|`+++quarkus+++`
114114

115115
a|icon:lock[title=Fixed at build time] [[quarkus-jgit_quarkus-jgit-devservices-organizations]] [.property-path]##link:#quarkus-jgit_quarkus-jgit-devservices-organizations[`quarkus.jgit.devservices.organizations`]##
116116
ifdef::add-copy-button-to-config-props[]
@@ -152,7 +152,7 @@ Environment variable: `+++QUARKUS_JGIT_DEVSERVICES_REPOSITORIES+++`
152152
endif::add-copy-button-to-env-var[]
153153
--
154154
|list of string
155-
|`${quarkus.application.name}`
155+
|`+++${quarkus.application.name}+++`
156156

157157
a|icon:lock[title=Fixed at build time] [[quarkus-jgit_quarkus-jgit-devservices-reuse]] [.property-path]##link:#quarkus-jgit_quarkus-jgit-devservices-reuse[`quarkus.jgit.devservices.reuse`]##
158158
ifdef::add-copy-button-to-config-props[]
@@ -173,7 +173,7 @@ Environment variable: `+++QUARKUS_JGIT_DEVSERVICES_REUSE+++`
173173
endif::add-copy-button-to-env-var[]
174174
--
175175
|boolean
176-
|`false`
176+
|`+++false+++`
177177

178178
a|icon:lock[title=Fixed at build time] [[quarkus-jgit_quarkus-jgit-devservices-network-alias]] [.property-path]##link:#quarkus-jgit_quarkus-jgit-devservices-network-alias[`quarkus.jgit.devservices.network-alias`]##
179179
ifdef::add-copy-button-to-config-props[]

runtime/src/main/resources/META-INF/quarkus-extension.yaml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,4 +10,5 @@ metadata:
1010
- "quarkus.jgit."
1111
guide: https://quarkiverse.github.io/quarkiverse-docs/quarkus-jgit/dev/index.html
1212
icon-url: "https://raw.githubusercontent.com/quarkiverse/quarkus-jgit/main/docs/modules/ROOT/assets/images/jgit.svg"
13-
status: "stable"
13+
lib-ga: org.eclipse.jgit:org.eclipse.jgit[https://projects.eclipse.org/projects/technology.jgit]
14+
status: "stable"

0 commit comments

Comments
 (0)