-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: refactor dialogs, add dialog service and directive
- Loading branch information
1 parent
ff55e9b
commit 3f27400
Showing
19 changed files
with
363 additions
and
167 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
28 changes: 16 additions & 12 deletions
28
apps/gapp-dashboard/src/pages/dashboard/dashboard.component.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,21 +1,25 @@ | ||
<div class="flex flex-col lg:flex-row gap-8 px-4"> | ||
<page-block title="Vessels"> | ||
<scrollable blockBody class="card bg-base-200 p-4"> | ||
@for (vessel of availableVessels()?.data; track $index) { | ||
<vessel-status-card [vessel]="vessel" [telemetry]="getTelemetry(vessel.transmitters)()"></vessel-status-card> | ||
} @empty { @if (availableVessels()?.loading) { | ||
<loader></loader> | ||
} @else { No data available. } } | ||
<scrollable blockBody> | ||
<ul class="list bg-base-200 rounded-box"> | ||
@for (vessel of availableVessels()?.data; track $index) { | ||
<vessel-status-card [vessel]="vessel" [telemetry]="getTelemetry(vessel.transmitters)()"></vessel-status-card> | ||
} @empty { @if (availableVessels()?.loading) { | ||
<loader></loader> | ||
} @else { No data available. } } | ||
</ul> | ||
</scrollable> | ||
</page-block> | ||
|
||
<page-block title="Cars"> | ||
<scrollable blockBody class="card bg-base-200 p-4"> | ||
@for (car of availableCars()?.data; track $index) { | ||
<car-status-card [car]="car" [telemetry]="getTelemetry([car.callsign])()?.[0]"></car-status-card> | ||
} @empty { @if (availableCars()?.loading) { | ||
<loader></loader> | ||
} @else { No data available. } } | ||
<scrollable blockBody> | ||
<ul class="list bg-base-200 rounded-box"> | ||
@for (car of availableCars()?.data; track $index) { | ||
<car-status-card [car]="car" [telemetry]="getTelemetry([car.callsign])()?.[0]"></car-status-card> | ||
} @empty { @if (availableCars()?.loading) { | ||
<loader></loader> | ||
} @else { No data available. } } | ||
</ul> | ||
</scrollable> | ||
</page-block> | ||
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.