Polish Round 1 (#2396)
This commit is contained in:
parent
cf2c43d390
commit
02b002d81a
197 changed files with 1233 additions and 1751 deletions
16
UI/Web/src/app/_routes/admin-routing.module.ts
Normal file
16
UI/Web/src/app/_routes/admin-routing.module.ts
Normal file
|
|
@ -0,0 +1,16 @@
|
|||
import { Routes } from '@angular/router';
|
||||
import { AdminGuard } from '../_guards/admin.guard';
|
||||
import { DashboardComponent } from '../admin/dashboard/dashboard.component';
|
||||
|
||||
export const routes: Routes = [
|
||||
{path: '**', component: DashboardComponent, pathMatch: 'full', canActivate: [AdminGuard]},
|
||||
{
|
||||
path: '',
|
||||
runGuardsAndResolvers: 'always',
|
||||
canActivate: [AdminGuard],
|
||||
children: [
|
||||
{path: 'dashboard', component: DashboardComponent},
|
||||
]
|
||||
}
|
||||
];
|
||||
|
||||
14
UI/Web/src/app/_routes/all-series-routing.module.ts
Normal file
14
UI/Web/src/app/_routes/all-series-routing.module.ts
Normal file
|
|
@ -0,0 +1,14 @@
|
|||
import { Routes } from "@angular/router";
|
||||
import { AuthGuard } from "../_guards/auth.guard";
|
||||
import { AllSeriesComponent } from "../all-series/_components/all-series/all-series.component";
|
||||
|
||||
|
||||
export const routes: Routes = [
|
||||
{path: '**', component: AllSeriesComponent, pathMatch: 'full', canActivate: [AuthGuard]},
|
||||
{
|
||||
path: '',
|
||||
component: AllSeriesComponent,
|
||||
runGuardsAndResolvers: 'always',
|
||||
canActivate: [AuthGuard],
|
||||
}
|
||||
];
|
||||
16
UI/Web/src/app/_routes/announcements-routing.module.ts
Normal file
16
UI/Web/src/app/_routes/announcements-routing.module.ts
Normal file
|
|
@ -0,0 +1,16 @@
|
|||
import { Routes } from "@angular/router";
|
||||
import { AdminGuard } from "../_guards/admin.guard";
|
||||
import { AuthGuard } from "../_guards/auth.guard";
|
||||
import { AnnouncementsComponent } from "../announcements/_components/announcements/announcements.component";
|
||||
|
||||
export const routes: Routes = [
|
||||
{path: '**', component: AnnouncementsComponent, pathMatch: 'full', canActivate: [AuthGuard, AdminGuard]},
|
||||
{
|
||||
path: '',
|
||||
runGuardsAndResolvers: 'always',
|
||||
canActivate: [AuthGuard, AdminGuard],
|
||||
children: [
|
||||
{path: 'announcements', component: AnnouncementsComponent},
|
||||
]
|
||||
}
|
||||
];
|
||||
10
UI/Web/src/app/_routes/book-reader.router.module.ts
Normal file
10
UI/Web/src/app/_routes/book-reader.router.module.ts
Normal file
|
|
@ -0,0 +1,10 @@
|
|||
import { Routes } from '@angular/router';
|
||||
import { BookReaderComponent } from '../book-reader/_components/book-reader/book-reader.component';
|
||||
|
||||
export const routes: Routes = [
|
||||
{
|
||||
path: ':chapterId',
|
||||
component: BookReaderComponent,
|
||||
}
|
||||
];
|
||||
|
||||
15
UI/Web/src/app/_routes/bookmark-routing.module.ts
Normal file
15
UI/Web/src/app/_routes/bookmark-routing.module.ts
Normal file
|
|
@ -0,0 +1,15 @@
|
|||
import { Routes } from "@angular/router";
|
||||
import { AuthGuard } from "../_guards/auth.guard";
|
||||
import { BookmarksComponent } from "../bookmark/_components/bookmarks/bookmarks.component";
|
||||
|
||||
export const routes: Routes = [
|
||||
{path: '**', component: BookmarksComponent, pathMatch: 'full', canActivate: [AuthGuard]},
|
||||
{
|
||||
path: '',
|
||||
runGuardsAndResolvers: 'always',
|
||||
canActivate: [AuthGuard],
|
||||
children: [
|
||||
{path: 'bookmarks', component: BookmarksComponent},
|
||||
]
|
||||
}
|
||||
];
|
||||
17
UI/Web/src/app/_routes/collections-routing.module.ts
Normal file
17
UI/Web/src/app/_routes/collections-routing.module.ts
Normal file
|
|
@ -0,0 +1,17 @@
|
|||
import { Routes } from '@angular/router';
|
||||
import { AuthGuard } from '../_guards/auth.guard';
|
||||
import { AllCollectionsComponent } from '../collections/_components/all-collections/all-collections.component';
|
||||
import { CollectionDetailComponent } from '../collections/_components/collection-detail/collection-detail.component';
|
||||
|
||||
export const routes: Routes = [
|
||||
{
|
||||
path: '',
|
||||
runGuardsAndResolvers: 'always',
|
||||
canActivate: [AuthGuard],
|
||||
children: [
|
||||
{path: '', component: AllCollectionsComponent, pathMatch: 'full'},
|
||||
{path: ':id', component: CollectionDetailComponent},
|
||||
]
|
||||
}
|
||||
];
|
||||
|
||||
13
UI/Web/src/app/_routes/dashboard-routing.module.ts
Normal file
13
UI/Web/src/app/_routes/dashboard-routing.module.ts
Normal file
|
|
@ -0,0 +1,13 @@
|
|||
import { Routes } from '@angular/router';
|
||||
import { AuthGuard } from '../_guards/auth.guard';
|
||||
import { DashboardComponent } from '../dashboard/_components/dashboard.component';
|
||||
|
||||
|
||||
export const routes: Routes = [
|
||||
{
|
||||
path: '',
|
||||
runGuardsAndResolvers: 'always',
|
||||
canActivate: [AuthGuard],
|
||||
component: DashboardComponent,
|
||||
}
|
||||
];
|
||||
20
UI/Web/src/app/_routes/library-detail-routing.module.ts
Normal file
20
UI/Web/src/app/_routes/library-detail-routing.module.ts
Normal file
|
|
@ -0,0 +1,20 @@
|
|||
import { Routes } from '@angular/router';
|
||||
import { AuthGuard } from '../_guards/auth.guard';
|
||||
import { LibraryAccessGuard } from '../_guards/library-access.guard';
|
||||
import { LibraryDetailComponent } from '../library-detail/library-detail.component';
|
||||
|
||||
|
||||
export const routes: Routes = [
|
||||
{
|
||||
path: ':libraryId',
|
||||
runGuardsAndResolvers: 'always',
|
||||
canActivate: [AuthGuard, LibraryAccessGuard],
|
||||
component: LibraryDetailComponent
|
||||
},
|
||||
{
|
||||
path: '',
|
||||
runGuardsAndResolvers: 'always',
|
||||
canActivate: [AuthGuard, LibraryAccessGuard],
|
||||
component: LibraryDetailComponent
|
||||
}
|
||||
];
|
||||
15
UI/Web/src/app/_routes/manga-reader.router.module.ts
Normal file
15
UI/Web/src/app/_routes/manga-reader.router.module.ts
Normal file
|
|
@ -0,0 +1,15 @@
|
|||
import { Routes } from '@angular/router';
|
||||
import { MangaReaderComponent } from '../manga-reader/_components/manga-reader/manga-reader.component';
|
||||
|
||||
export const routes: Routes = [
|
||||
{
|
||||
path: ':chapterId',
|
||||
component: MangaReaderComponent
|
||||
},
|
||||
{
|
||||
// This will allow the MangaReader to have a list to use for next/prev chapters rather than natural sort order
|
||||
path: ':chapterId/list/:listId',
|
||||
component: MangaReaderComponent
|
||||
}
|
||||
];
|
||||
|
||||
9
UI/Web/src/app/_routes/pdf-reader.router.module.ts
Normal file
9
UI/Web/src/app/_routes/pdf-reader.router.module.ts
Normal file
|
|
@ -0,0 +1,9 @@
|
|||
import { Routes } from '@angular/router';
|
||||
import { PdfReaderComponent } from '../pdf-reader/_components/pdf-reader/pdf-reader.component';
|
||||
|
||||
export const routes: Routes = [
|
||||
{
|
||||
path: ':chapterId',
|
||||
component: PdfReaderComponent,
|
||||
}
|
||||
];
|
||||
18
UI/Web/src/app/_routes/reading-list-routing.module.ts
Normal file
18
UI/Web/src/app/_routes/reading-list-routing.module.ts
Normal file
|
|
@ -0,0 +1,18 @@
|
|||
import { Routes } from "@angular/router";
|
||||
import { AuthGuard } from "../_guards/auth.guard";
|
||||
import { ReadingListDetailComponent } from "../reading-list/_components/reading-list-detail/reading-list-detail.component";
|
||||
import { ReadingListsComponent } from "../reading-list/_components/reading-lists/reading-lists.component";
|
||||
|
||||
|
||||
export 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]},
|
||||
];
|
||||
43
UI/Web/src/app/_routes/registration.router.module.ts
Normal file
43
UI/Web/src/app/_routes/registration.router.module.ts
Normal file
|
|
@ -0,0 +1,43 @@
|
|||
import { Routes } from '@angular/router';
|
||||
import { UserLoginComponent } from '../registration/user-login/user-login.component';
|
||||
import { ConfirmEmailChangeComponent } from '../registration/_components/confirm-email-change/confirm-email-change.component';
|
||||
import { ConfirmEmailComponent } from '../registration/_components/confirm-email/confirm-email.component';
|
||||
import { ConfirmMigrationEmailComponent } from '../registration/_components/confirm-migration-email/confirm-migration-email.component';
|
||||
import { ConfirmResetPasswordComponent } from '../registration/_components/confirm-reset-password/confirm-reset-password.component';
|
||||
import { RegisterComponent } from '../registration/_components/register/register.component';
|
||||
import { ResetPasswordComponent } from '../registration/_components/reset-password/reset-password.component';
|
||||
|
||||
export const routes: Routes = [
|
||||
{
|
||||
path: '',
|
||||
component: UserLoginComponent
|
||||
},
|
||||
{
|
||||
path: 'login',
|
||||
component: UserLoginComponent
|
||||
},
|
||||
{
|
||||
path: 'confirm-email',
|
||||
component: ConfirmEmailComponent,
|
||||
},
|
||||
{
|
||||
path: 'confirm-migration-email',
|
||||
component: ConfirmMigrationEmailComponent,
|
||||
},
|
||||
{
|
||||
path: 'confirm-email-update',
|
||||
component: ConfirmEmailChangeComponent,
|
||||
},
|
||||
{
|
||||
path: 'register',
|
||||
component: RegisterComponent,
|
||||
},
|
||||
{
|
||||
path: 'reset-password',
|
||||
component: ResetPasswordComponent
|
||||
},
|
||||
{
|
||||
path: 'confirm-reset-password',
|
||||
component: ConfirmResetPasswordComponent
|
||||
}
|
||||
];
|
||||
15
UI/Web/src/app/_routes/user-settings-routing.module.ts
Normal file
15
UI/Web/src/app/_routes/user-settings-routing.module.ts
Normal file
|
|
@ -0,0 +1,15 @@
|
|||
import { Routes } from '@angular/router';
|
||||
import { AuthGuard } from '../_guards/auth.guard';
|
||||
import { UserPreferencesComponent } from '../user-settings/user-preferences/user-preferences.component';
|
||||
|
||||
export const routes: Routes = [
|
||||
{path: '**', component: UserPreferencesComponent, pathMatch: 'full'},
|
||||
{
|
||||
path: '',
|
||||
runGuardsAndResolvers: 'always',
|
||||
canActivate: [AuthGuard],
|
||||
children: [
|
||||
{path: '', component: UserPreferencesComponent, pathMatch: 'full'},
|
||||
]
|
||||
}
|
||||
];
|
||||
15
UI/Web/src/app/_routes/want-to-read-routing.module.ts
Normal file
15
UI/Web/src/app/_routes/want-to-read-routing.module.ts
Normal file
|
|
@ -0,0 +1,15 @@
|
|||
import { Routes } from '@angular/router';
|
||||
import { AuthGuard } from '../_guards/auth.guard';
|
||||
import { WantToReadComponent } from '../want-to-read/_components/want-to-read/want-to-read.component';
|
||||
|
||||
export const routes: Routes = [
|
||||
{path: '**', component: WantToReadComponent, pathMatch: 'full'},
|
||||
{
|
||||
path: '',
|
||||
runGuardsAndResolvers: 'always',
|
||||
canActivate: [AuthGuard],
|
||||
children: [
|
||||
{path: '', component: WantToReadComponent, pathMatch: 'full'},
|
||||
]
|
||||
}
|
||||
];
|
||||
Loading…
Add table
Add a link
Reference in a new issue