LocationBasedServices/mowesta/master This commit looks good
Upgrade Angular to 9. Update js dependencies to latest versions. Remove js dependencies that are no longer required. Replace angular client gen with official swagger generator. Change build scripts and adapt code to new client.
77 lines
4.5 KiB
HTML
77 lines
4.5 KiB
HTML
<div style="margin: 10px">
|
|
<div gdAlignRows="space-between stretch" gdColumns.gt-md="30% 30% 38%" gdColumns.gt-sm="49% 49%" gdColumns.sm="98%" gdGap="10px">
|
|
<mat-card class="accent">
|
|
<mat-card-header>
|
|
<div mat-card-avatar><mat-icon style="font-size: 48px;">place</mat-icon></div>
|
|
<mat-card-title>{{ city.names | localName }}</mat-card-title>
|
|
<mat-card-subtitle>
|
|
<span *ngIf="city.state">
|
|
{{ city.state.names | localName }},
|
|
</span>
|
|
{{ city.country.names | localName }}
|
|
</mat-card-subtitle>
|
|
</mat-card-header>
|
|
<mat-divider></mat-divider>
|
|
<mat-card-content>
|
|
<table cellspacing="5">
|
|
<tr><th align="right" class="mat-caption">Ortszeit</th><td class="mat-strong">{{ date | localTime:city.timezone }} {{ date | localDate:city.timezone }}</td></tr>
|
|
<tr><th align="right" class="mat-caption">Ortstyp</th><td class="mat-strong">{{ city | cityType }}</td></tr>
|
|
<tr *ngIf="city.population"><th align="right" class="mat-caption">Einwohner</th><td class="mat-strong">{{ city.population }}</td></tr>
|
|
<tr><th align="right" class="mat-caption">Zeitzone</th><td class="mat-strong">{{ city.timezone }}</td></tr>
|
|
<tr><th align="right" class="mat-caption">Beschreibung</th><td class="mat-strong">
|
|
<a *ngIf="(city.wikipedia); else noWiki" [href]="city.wikipedia | wikipedia" target="_blank">Wikipedia</a>
|
|
<ng-template #noWiki>Nicht verfügbar</ng-template>
|
|
</td></tr>
|
|
<tr><th align="right" class="mat-caption">Karte</th><td class="mat-strong">
|
|
<a [href]="city.coordinate | googleMaps">Google</a> <a [href]="city.coordinate | bingMaps">Bing</a>
|
|
</td></tr>
|
|
</table>
|
|
</mat-card-content>
|
|
</mat-card>
|
|
<mat-card>
|
|
<mat-card-header>
|
|
<div mat-card-avatar><mat-icon style="font-size: 48px;">schedule</mat-icon></div>
|
|
<mat-card-title>Aktuelles Wetter</mat-card-title>
|
|
<mat-card-subtitle>{{ (condition | async)?.source | source}}</mat-card-subtitle>
|
|
</mat-card-header>
|
|
<mat-divider></mat-divider>
|
|
<mat-card-content>
|
|
<app-weather-condition [condition]="condition | async"></app-weather-condition>
|
|
</mat-card-content>
|
|
</mat-card>
|
|
<mat-card style="padding:0px;" gdColumn.md="span 2">
|
|
<mat-card-content fxFill style="margin:0px;padding:0px;">
|
|
<div style="width: 100%; height: 100%; min-height: 250px;">
|
|
<app-map [coordinate]="city.coordinate" [boundary]="boundary | async" fxFill></app-map>
|
|
</div>
|
|
</mat-card-content>
|
|
</mat-card>
|
|
</div>
|
|
<div style="margin-top:10px" gdAlignRows="space-between stretch" gdColumns.gt-lg="32% 32% 32%" gdColumns.gt-sm="49% 49%" gdColumns.sm="100%" gdGap="10px">
|
|
<mat-card>
|
|
<mat-card-title>Vorhersage für Heute</mat-card-title>
|
|
<mat-card-subtitle>{{ (forecast | async)?.source | source}}</mat-card-subtitle>
|
|
<mat-card-content>
|
|
<app-weather-forecast [forecast]="forecast | async" [start]="getStart(0)" [end]="getEnd(0)" [timezone]="city.timezone"></app-weather-forecast>
|
|
</mat-card-content>
|
|
</mat-card>
|
|
<mat-card>
|
|
<mat-card-title>Vorhersage für Morgen</mat-card-title>
|
|
<mat-card-subtitle>{{ (forecast | async)?.source | source}}</mat-card-subtitle>
|
|
<mat-card-content>
|
|
<app-weather-forecast [forecast]="forecast | async" [start]="getStart(1)" [end]="getEnd(1)" [timezone]="city.timezone"></app-weather-forecast>
|
|
</mat-card-content>
|
|
</mat-card>
|
|
<mat-card>
|
|
<mat-card-title>Vorhersage für Übermorgen</mat-card-title>
|
|
<mat-card-subtitle>{{ (forecast | async)?.source | source}}</mat-card-subtitle>
|
|
<mat-card-content>
|
|
<app-weather-forecast [forecast]="forecast | async" [start]="getStart(2)" [end]="getEnd(2)" [timezone]="city.timezone"></app-weather-forecast>
|
|
</mat-card-content>
|
|
</mat-card>
|
|
</div>
|
|
<div>
|
|
<app-weather-video-list *ngIf="videos | async" [videos]="videos | async" [timezone]="city.timezone"></app-weather-video-list>
|
|
</div>
|
|
|
|
</div> |