* Updated cover regex for finding cover images in archives to ignore back_cover or back-cover * Fixed an issue where Tags wouldn't save due to not pulling them from the DB. * Refactored All series to it's own lazy loaded module * Modularized Dashboard and library detail. Had to change main dashboard page to be libraries. Subject to change. * Refactored login component into registration module * Series Detail module created * Refactored nav stuff into it's own module, not lazy loaded, but self contained. * Refactored theme component into a dev only module so we don't incur load for temp testing modules * Finished off modularization code. Only missing thing is to re-introduce some dashboard functionality for library view. * Implemented a basic recommendation page for library detail
25 lines
847 B
TypeScript
25 lines
847 B
TypeScript
import { NgModule } from "@angular/core";
|
|
import { Routes, RouterModule } from "@angular/router";
|
|
import { AuthGuard } from "../_guards/auth.guard";
|
|
import { ReadingListDetailComponent } from "./reading-list-detail/reading-list-detail.component";
|
|
import { ReadingListsComponent } from "./reading-lists/reading-lists.component";
|
|
|
|
const routes: Routes = [
|
|
{
|
|
path: '',
|
|
runGuardsAndResolvers: 'always',
|
|
canActivate: [AuthGuard],
|
|
children: [
|
|
{path: '', component: ReadingListsComponent, pathMatch: 'full'},
|
|
{path: ':id', component: ReadingListDetailComponent, pathMatch: 'full'},
|
|
]
|
|
},
|
|
{path: '**', component: ReadingListsComponent, pathMatch: 'full', canActivate: [AuthGuard]},
|
|
];
|
|
|
|
|
|
@NgModule({
|
|
imports: [RouterModule.forChild(routes)],
|
|
exports: [RouterModule]
|
|
})
|
|
export class ReadingListRoutingModule { }
|