Optimisation

This commit is contained in:
2026-01-20 10:22:50 +01:00
parent e5882a6f62
commit eb778ee826
2 changed files with 54 additions and 30 deletions

View File

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

View File

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