Update to Angular v19 and fixing #3

Merged
sandre merged 41 commits from fix/error-after-update-angular-19 into master 2026-01-20 10:56:35 +00:00
2 changed files with 54 additions and 30 deletions
Showing only changes of commit eb778ee826 - Show all commits

View File

@@ -45,13 +45,20 @@
"budgets": [
{
"type": "initial",
"maximumWarning": "500kB",
"maximumError": "1MB"
"maximumWarning": "2mb",
"maximumError": "5mb"
},
{
"type": "bundle",
"name": "main",
"baseline": "1mb",
"maximumWarning": "1.5mb",
"maximumError": "2mb"
},
{
"type": "anyComponentStyle",
"maximumWarning": "4kB",
"maximumError": "8kB"
"maximumWarning": "2kb",
"maximumError": "4kb"
}
],
"outputHashing": "all"

View File

@@ -2,75 +2,92 @@ import { Routes } from "@angular/router";
import { AuthGuardService } from "../services/auth-guard.service";
import { SummaryComponent } from "./summary/summary.component";
import { ListOfJumpsComponent } from "./list-of-jumps/list-of-jumps.component";
import { ListOfDzsComponent } from "./list-of-dzs/list-of-dzs.component";
import { NewJumpComponent } from "./new-jump/new-jump.component";
import { ListOfAircraftsComponent } from "./list-of-aircrafts/list-of-aircrafts.component";
import { ListOfJumpTypesComponent } from "./list-of-jump-types/list-of-jump-types.component";
import { ListOfGearsComponent } from "./list-of-gears/list-of-gears.component";
import { DefaultComponent } from "./default/default.component";
import { LoginComponent } from "./login/login.component";
import { UserProfileComponent } from "./user-profile/user-profile.component";
import { NewTunnelFlightComponent } from "./new-tunnel-flight/new-tunnel-flight.component";
import { ListOfTunnelFlightsComponent } from "./list-of-tunnel-flights/list-of-tunnel-flights.component";
export const routes: Routes = [
{
path: "",
component: DefaultComponent,
loadComponent: () =>
import("./default/default.component").then((m) => m.DefaultComponent),
canActivate: [AuthGuardService],
},
{
path: "summary",
component: SummaryComponent,
loadComponent: () =>
import("./summary/summary.component").then((m) => m.SummaryComponent),
canActivate: [AuthGuardService],
},
{
path: "jumps",
component: ListOfJumpsComponent,
loadComponent: () =>
import("./list-of-jumps/list-of-jumps.component").then(
(m) => m.ListOfJumpsComponent,
),
canActivate: [AuthGuardService],
},
{
path: "dzs",
component: ListOfDzsComponent,
loadComponent: () =>
import("./list-of-dzs/list-of-dzs.component").then(
(m) => m.ListOfDzsComponent,
),
canActivate: [AuthGuardService],
},
{
path: "newjump",
component: NewJumpComponent,
loadComponent: () =>
import("./new-jump/new-jump.component").then((m) => m.NewJumpComponent),
canActivate: [AuthGuardService],
},
{
path: "aircrafts",
component: ListOfAircraftsComponent,
loadComponent: () =>
import("./list-of-aircrafts/list-of-aircrafts.component").then(
(m) => m.ListOfAircraftsComponent,
),
canActivate: [AuthGuardService],
},
{
path: "jumpTypes",
component: ListOfJumpTypesComponent,
loadComponent: () =>
import("./list-of-jump-types/list-of-jump-types.component").then(
(m) => m.ListOfJumpTypesComponent,
),
canActivate: [AuthGuardService],
},
{
path: "gears",
component: ListOfGearsComponent,
loadComponent: () =>
import("./list-of-gears/list-of-gears.component").then(
(m) => m.ListOfGearsComponent,
),
canActivate: [AuthGuardService],
},
{
path: "user",
component: UserProfileComponent,
loadComponent: () =>
import("./user-profile/user-profile.component").then(
(m) => m.UserProfileComponent,
),
canActivate: [AuthGuardService],
},
{
path: "newTunnelFlight",
component: NewTunnelFlightComponent,
loadComponent: () =>
import("./new-tunnel-flight/new-tunnel-flight.component").then(
(m) => m.NewTunnelFlightComponent,
),
canActivate: [AuthGuardService],
},
{
path: "tunnelFlights",
component: ListOfTunnelFlightsComponent,
loadComponent: () =>
import("./list-of-tunnel-flights/list-of-tunnel-flights.component").then(
(m) => m.ListOfTunnelFlightsComponent,
),
canActivate: [AuthGuardService],
},
{ path: "login", component: LoginComponent },
{
path: "login",
loadComponent: () =>
import("./login/login.component").then((m) => m.LoginComponent),
},
];