upgrade and migrate to angular 20

This commit is contained in:
_Bastler
2025-11-08 19:24:11 +01:00
parent 9213cf6b12
commit ff94ca05ce
51 changed files with 5772 additions and 6650 deletions
@@ -1,34 +1,38 @@
<table *ngIf="services && services.length > 0" mat-table matSort [dataSource]="services"
@if (services && services.length > 0) {
<table mat-table matSort [dataSource]="services"
(matSortChange)="sortData($event)" matSortActive="name" matSortDirection="asc">
<ng-container matColumnDef="icon">
<th mat-header-cell *matHeaderCellDef> </th>
<td mat-cell *matCellDef="let service">
<mat-icon>{{'services.' + service.name + '.icon' | i18n}}</mat-icon>
</td>
<th mat-header-cell *matHeaderCellDef> </th>
<td mat-cell *matCellDef="let service">
<mat-icon>{{'services.' + service.name + '.icon' | i18n}}</mat-icon>
</td>
</ng-container>
<ng-container matColumnDef="name">
<th mat-header-cell *matHeaderCellDef mat-sort-header="name"> {{'service.name' | i18n}} </th>
<td mat-cell *matCellDef="let service" class="text-center">
<a *ngIf="service.url" href="{{service.url}}" [target]="service.sameSite ? '_self' : '_blank'" mat-button
color="accent">
<strong>{{'services.' + service.name + '.title' | i18n}}</strong>
<mat-icon *ngIf="!service.sameSite" inline="true">
open_in_new</mat-icon>
</a>
<a *ngIf="!service.url" mat-button disabled>
<strong>{{'services.' + service.name + '.title' | i18n}}</strong>
</a>
<div><small>{{'services.' + service.name + '.subtitle' | i18n}}</small></div>
</td>
<th mat-header-cell *matHeaderCellDef mat-sort-header="name"> {{'service.name' | i18n}} </th>
<td mat-cell *matCellDef="let service" class="text-center">
@if (service.url) {
<a href="{{service.url}}" [target]="service.sameSite ? '_self' : '_blank'" mat-button
color="accent">
<strong>{{'services.' + service.name + '.title' | i18n}}</strong>
@if (!service.sameSite) {
<mat-icon inline="true">
open_in_new</mat-icon>
}
</a>
}
@if (!service.url) {
<a mat-button disabled>
<strong>{{'services.' + service.name + '.title' | i18n}}</strong>
</a>
}
<div><small>{{'services.' + service.name + '.subtitle' | i18n}}</small></div>
</td>
</ng-container>
<ng-container matColumnDef="text">
<th mat-header-cell *matHeaderCellDef> {{'service.text' | i18n}} </th>
<td mat-cell *matCellDef="let service">{{ 'services.' + service.name + '.text' | i18n}}</td>
<th mat-header-cell *matHeaderCellDef> {{'service.text' | i18n}} </th>
<td mat-cell *matCellDef="let service">{{ 'services.' + service.name + '.text' | i18n}}</td>
</ng-container>
<tr mat-header-row *matHeaderRowDef="serviceColumns"></tr>
<tr mat-row *matRowDef="let myRowData; columns: serviceColumns"></tr>
</table>
</table>
}