dashboard #1

Merged
andi merged 118 commits from dashboard into master 2024-09-29 06:47:35 +00:00
2 changed files with 10 additions and 4 deletions
Showing only changes of commit d9daf561bf - Show all commits

View File

@@ -1,9 +1,16 @@
<style>
.spinner {
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
}
</style>
<div class="toolbar">
<button mat-button (click)="createNewDashboard()">New</button>
</div>
<div *ngIf="loading">
loading
<div *ngIf="loading" class="spinner">
<mat-spinner></mat-spinner>
</div>
<div *ngIf="!loading">
<table mat-table [dataSource]="dataSource" >

View File

@@ -62,7 +62,6 @@ public class DashboardController {
produces = MediaType.APPLICATION_JSON_VALUE)
@ResponseBody
public DashboardList getDashboards() throws IOException {
final List<Dashboard> dashboards = new ArrayList<>(Files.list(baseDir)//
.filter(p -> p.getFileName().toString().endsWith(".json"))//
.map(FileUtils::readSilent)//