* Updated to Angular 14 * Fixed all new tslint issues * Fixed a routing bug for Angular 14 * Updated ngBootstrap and bootstrap. Fixed side nav item not highlighting on route change * Refactored how default dark styles are done * Migrated everything to a typed form * Bump versions by dotnet-bump-version. * Fixed a regression where click areas need an explicit z-index * Cleanup some css * Bumped docnet back to the alpha which has our downstream fixes * Updated dependencies to later versions. Mainly just NetVips with some archive fixes. * Fixed broken unit tests (due to some fixes in SharpCompress that changed byte arrays, but not visible quality)
24 lines
No EOL
725 B
TypeScript
24 lines
No EOL
725 B
TypeScript
import { NgModule } from "@angular/core";
|
|
import { Routes, RouterModule } from "@angular/router";
|
|
import { AdminGuard } from "../_guards/admin.guard";
|
|
import { AuthGuard } from "../_guards/auth.guard";
|
|
import { AnnouncementsComponent } from "./announcements.component";
|
|
|
|
const routes: Routes = [
|
|
{path: '**', component: AnnouncementsComponent, pathMatch: 'full', canActivate: [AuthGuard, AdminGuard]},
|
|
{
|
|
path: '',
|
|
runGuardsAndResolvers: 'always',
|
|
canActivate: [AuthGuard, AdminGuard],
|
|
children: [
|
|
{path: 'announcments', component: AnnouncementsComponent},
|
|
]
|
|
}
|
|
];
|
|
|
|
|
|
@NgModule({
|
|
imports: [RouterModule.forChild(routes)],
|
|
exports: [RouterModule]
|
|
})
|
|
export class AnnouncementsRoutingModule { } |