show address in ui

This commit is contained in:
Patrick Haßel 2025-07-30 13:37:32 +02:00
parent 242d056aeb
commit 24c0199160
3 changed files with 13 additions and 1 deletions

View File

@ -8,12 +8,15 @@
</div>
<div class="list">
<div *ngFor="let server of list" class="server">
<div *ngFor="let server of servers()" class="server">
<div class="icon">
<img src="{{server.mode.toLowerCase()}}.png" alt="{{server.mode}}">
</div>
<div class="name">
{{ server.motd }}
<div class="address">
10.255.0.1:{{ server.serverPort }}
</div>
</div>
<div class="command start" [class.startInactive]="!server.running" [class.startActive]="server.running" (click)="start(server)">
Start

View File

@ -22,6 +22,11 @@
font-weight: bold;
}
.address {
font-size: 60%;
color: #aaaaaa;
}
.command {
margin-right: 0.25em;
border-radius: 0.25em;

View File

@ -28,4 +28,8 @@ export class ServerListComponent extends CrudListComponent<Server, ServerService
this.crudService.stop(server);
}
servers() {
return this.list.sort((a, b) => a.serverPort - b.serverPort);
}
}