Skip to content

Commit

Permalink
Bump to Pi4J 2.7.1-SNAPSHOT with Compute 5 info
Browse files Browse the repository at this point in the history
  • Loading branch information
FDelporte committed Dec 2, 2024
1 parent 1dbe209 commit b498938
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 15 deletions.
11 changes: 1 addition & 10 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
<java.version>17</java.version>

<!-- Dependencies -->
<pi4j.version>2.7.0</pi4j.version>
<pi4j.version>2.7.1-SNAPSHOT</pi4j.version>
<springdoc.version>2.5.0</springdoc.version>
<vaadin.version>24.5.5</vaadin.version>
<maven.compiler.source>21</maven.compiler.source>
Expand Down Expand Up @@ -230,14 +230,6 @@
<!-- The order of definitions matters. Explicitly defining central here to make sure it has the highest priority. -->

<!-- Main Maven repository -->
<repository>
<id>central</id>
<url>https://repo.maven.apache.org/maven2</url>
<snapshots>
<enabled>false</enabled>
</snapshots>
</repository>
<!--
<repository>
<id>oss-snapshots-repo</id>
<name>Sonatype OSS Maven Repository</name>
Expand All @@ -249,7 +241,6 @@
<enabled>true</enabled>
</snapshots>
</repository>
-->

<!-- Repository used by many Vaadin add-ons -->
<repository>
Expand Down
11 changes: 6 additions & 5 deletions src/main/java/com/pi4j/boardinfoservice/views/BoardInfoView.java
Original file line number Diff line number Diff line change
Expand Up @@ -63,9 +63,7 @@ public void setParameter(BeforeEvent event, @OptionalParameter String parameter)
.filter(bm -> bm.name().equalsIgnoreCase(parameter == null ? "" : parameter))
.findFirst()
.orElse(BoardModel.UNKNOWN);
UI.getCurrent().access(() -> {
showBoard(selectedBoard);
});
UI.getCurrent().access(() -> showBoard(selectedBoard));
}

@Override
Expand Down Expand Up @@ -130,8 +128,11 @@ private void showBoard(BoardModel boardModel) {
boardModel.getVersionsMemoryInGb().stream()
.map(String::valueOf)
.collect(Collectors.joining(", "))));
holder.add(getLabelValue("Remarks", boardModel.getRemarks().isEmpty() ? "" :
String.join(", ", boardModel.getRemarks())));
if (!boardModel.getRemarks().isEmpty()) {
var remarks = new VerticalLayout();
holder.add(remarks);
boardModel.getRemarks().forEach(r -> remarks.add(new Div(r)));
}

holder.add(new H3("Header(s)"));

Expand Down

0 comments on commit b498938

Please sign in to comment.