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 {
191191 externalConstributors . map ( key => {
192192 const extInfo = info [ key ] ;
193193 const rows = [ ] ;
194+ let displayName = key ;
194195 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+ }
196201 }
197- cards . push ( html `< qui-card header =${ key } >
202+ cards . push ( html `< qui-card header =${ displayName } >
198203 < div class ="cardContent " slot ="content ">
199204 < vaadin-icon icon ="font-awesome-solid:circle-info "> </ vaadin-icon >
200205 < table class ="table ">
Original file line number Diff line number Diff line change @@ -13,6 +13,13 @@ public interface InfoContributor {
1313 */
1414 String name ();
1515
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+
1623 /**
1724 * Properties to add under {@code name}
1825 */
Original file line number Diff line number Diff line change @@ -12,6 +12,11 @@ public String name() {
1212 return "java" ;
1313 }
1414
15+ @ Override
16+ public String displayName () {
17+ return "Java" ;
18+ }
19+
1520 @ Override
1621 public Map <String , Object > data () {
1722 //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() {
1111 return "os" ;
1212 }
1313
14+ @ Override
15+ public String displayName () {
16+ return "Operating System" ;
17+ }
18+
1419 @ Override
1520 public Map <String , Object > data () {
1621 Map <String , Object > result = new LinkedHashMap <>();
You can’t perform that action at this time.
0 commit comments