File tree Expand file tree Collapse file tree 4 files changed +24
-2
lines changed
deployment/src/main/resources/dev-ui
runtime-spi/src/main/java/io/quarkus/info/runtime/spi
runtime/src/main/java/io/quarkus/info/runtime Expand file tree Collapse file tree 4 files changed +24
-2
lines changed Original file line number Diff line number Diff line change @@ -191,10 +191,15 @@ export class QwcInfo extends LitElement {
191
191
externalConstributors . map ( key => {
192
192
const extInfo = info [ key ] ;
193
193
const rows = [ ] ;
194
+ let displayName = key ;
194
195
for ( const property of Object . keys ( extInfo ) ) {
195
- rows . push ( html `< tr > < td class ="row-header "> ${ property } </ td > < td > ${ extInfo [ property ] } </ td > </ tr > ` ) ;
196
+ if ( property === 'displayName' ) {
197
+ displayName = extInfo [ property ] ;
198
+ } else {
199
+ rows . push ( html `< tr > < td class ="row-header "> ${ property } </ td > < td > ${ extInfo [ property ] } </ td > </ tr > ` ) ;
200
+ }
196
201
}
197
- cards . push ( html `< qui-card header =${ key } >
202
+ cards . push ( html `< qui-card header =${ displayName } >
198
203
< div class ="cardContent " slot ="content ">
199
204
< vaadin-icon icon ="font-awesome-solid:circle-info "> </ vaadin-icon >
200
205
< table class ="table ">
Original file line number Diff line number Diff line change @@ -13,6 +13,13 @@ public interface InfoContributor {
13
13
*/
14
14
String name ();
15
15
16
+ /**
17
+ * The display name of the contributor in the DevUI card will fall back to {@code name()} if not set
18
+ */
19
+ default String displayName () {
20
+ return name ();
21
+ }
22
+
16
23
/**
17
24
* Properties to add under {@code name}
18
25
*/
Original file line number Diff line number Diff line change @@ -12,6 +12,11 @@ public String name() {
12
12
return "java" ;
13
13
}
14
14
15
+ @ Override
16
+ public String displayName () {
17
+ return "Java" ;
18
+ }
19
+
15
20
@ Override
16
21
public Map <String , Object > data () {
17
22
//TODO: should we add more information like 'java.runtime.*' and 'java.vm.*' ?
Original file line number Diff line number Diff line change @@ -11,6 +11,11 @@ public String name() {
11
11
return "os" ;
12
12
}
13
13
14
+ @ Override
15
+ public String displayName () {
16
+ return "Operating System" ;
17
+ }
18
+
14
19
@ Override
15
20
public Map <String , Object > data () {
16
21
Map <String , Object > result = new LinkedHashMap <>();
You can’t perform that action at this time.
0 commit comments