Skip to content

Commit

Permalink
Extra board info
Browse files Browse the repository at this point in the history
  • Loading branch information
Frank Delporte committed Apr 15, 2024
1 parent 79ed866 commit 54ad9f7
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@

import java.util.ArrayList;
import java.util.List;
import java.util.stream.Collectors;

@PageTitle("System Information")
@Route(value = "system-information", layout = BaseLayout.class)
Expand Down Expand Up @@ -49,8 +50,11 @@ public void onAttach(AttachEvent event) {
UI.getCurrent().access(() -> {
var board = systemInfoService.getDetectedBoard();
infoList.add(new InfoLine("Board", "Name", board.getBoardModel().getName()));
infoList.add(new InfoLine("Board", "Type", board.getBoardModel().getBoardType()));
infoList.add(new InfoLine("Board", "Description", board.getBoardModel().getLabel()));
infoList.add(new InfoLine("Board", "Model", board.getBoardModel().getModel().getLabel()));
infoList.add(new InfoLine("Board", "SOC", board.getBoardModel().getSoc()));
infoList.add(new InfoLine("Board", "CPU", board.getBoardModel().getCpu()));
infoList.add(new InfoLine("Board", "Codes", board.getBoardModel().getBoardCodes().stream().collect(Collectors.joining(", "))));
infoList.add(new InfoLine("Operating System", "Name", board.getOperatingSystem().getName()));
infoList.add(new InfoLine("Operating System", "Architecture", board.getOperatingSystem().getArchitecture()));
infoList.add(new InfoLine("Operating System", "Version", board.getOperatingSystem().getVersion()));
Expand Down

0 comments on commit 54ad9f7

Please sign in to comment.