mirror of
https://github.com/Kareadita/Kavita.git
synced 2025-06-03 21:54:47 -04:00
* ImageService had a stream reset before writting out to array. Added logging statment for updating series metadata. Removed ConcurencyCheck due to bad update issue for CollectionTag. * Added a new screen which lets you quickly see all your bookmarks for a given user. * Built user bookmark page in user settings. Moved user settings to it's own lazy loaded module. Removed unneded debouncing from downloader and just used throttleTime instead. * Removed a not-yet implemented tab from series modal * Fixed a bug in clear bookmarks and adjusted icons within anchors to have proper styling
67 lines
2.6 KiB
TypeScript
67 lines
2.6 KiB
TypeScript
import { NgModule } from '@angular/core';
|
|
import { Routes, RouterModule } from '@angular/router';
|
|
import { HomeComponent } from './home/home.component';
|
|
import { LibraryDetailComponent } from './library-detail/library-detail.component';
|
|
import { LibraryComponent } from './library/library.component';
|
|
import { NotConnectedComponent } from './not-connected/not-connected.component';
|
|
import { SeriesDetailComponent } from './series-detail/series-detail.component';
|
|
import { RecentlyAddedComponent } from './recently-added/recently-added.component';
|
|
import { UserLoginComponent } from './user-login/user-login.component';
|
|
import { AuthGuard } from './_guards/auth.guard';
|
|
import { LibraryAccessGuard } from './_guards/library-access.guard';
|
|
import { InProgressComponent } from './in-progress/in-progress.component';
|
|
|
|
// TODO: Once we modularize the components, use this and measure performance impact: https://angular.io/guide/lazy-loading-ngmodules#preloading-modules
|
|
|
|
const routes: Routes = [
|
|
{path: '', component: HomeComponent},
|
|
{
|
|
path: 'admin',
|
|
loadChildren: () => import('./admin/admin.module').then(m => m.AdminModule)
|
|
},
|
|
{
|
|
path: 'collections',
|
|
loadChildren: () => import('./collections/collections.module').then(m => m.CollectionsModule)
|
|
},
|
|
{
|
|
path: 'preferences',
|
|
loadChildren: () => import('./user-settings/user-settings.module').then(m => m.UserSettingsModule)
|
|
},
|
|
{
|
|
path: '',
|
|
runGuardsAndResolvers: 'always',
|
|
canActivate: [AuthGuard, LibraryAccessGuard],
|
|
children: [
|
|
{path: 'library/:id', component: LibraryDetailComponent},
|
|
{path: 'library/:libraryId/series/:seriesId', component: SeriesDetailComponent},
|
|
{
|
|
path: 'library/:libraryId/series/:seriesId/manga',
|
|
loadChildren: () => import('../app/manga-reader/manga-reader.module').then(m => m.MangaReaderModule)
|
|
},
|
|
{
|
|
path: 'library/:libraryId/series/:seriesId/book',
|
|
loadChildren: () => import('../app/book-reader/book-reader.module').then(m => m.BookReaderModule)
|
|
}
|
|
]
|
|
},
|
|
{
|
|
path: '',
|
|
runGuardsAndResolvers: 'always',
|
|
canActivate: [AuthGuard],
|
|
children: [
|
|
{path: 'library', component: LibraryComponent},
|
|
{path: 'recently-added', component: RecentlyAddedComponent},
|
|
{path: 'in-progress', component: InProgressComponent},
|
|
]
|
|
},
|
|
{path: 'login', component: UserLoginComponent},
|
|
{path: 'no-connection', component: NotConnectedComponent},
|
|
{path: '**', component: HomeComponent, pathMatch: 'full'}
|
|
];
|
|
|
|
@NgModule({
|
|
imports: [RouterModule.forRoot(routes, {scrollPositionRestoration: 'enabled'})],
|
|
exports: [RouterModule]
|
|
})
|
|
export class AppRoutingModule { }
|