top link
This commit is contained in:
parent
6a61edd3f8
commit
04db451cd9
@ -23,19 +23,20 @@ import { UiMain } from './ui/main/main.ui';
|
|||||||
const routes: Routes = [
|
const routes: Routes = [
|
||||||
{
|
{
|
||||||
path: '', component: UiMain, children: [
|
path: '', component: UiMain, children: [
|
||||||
{ path: '', component: PageTop, canActivate: [ AuthenticatedGuard ] },
|
{ path: '', redirectTo: "/top", pathMatch: 'full' },
|
||||||
{ path: 'c/:id', component: PageComment, canActivate: [ AuthenticatedGuard ] },
|
{ path: 'login', component: PageLogin, canActivate: [ AnonymousGuard ] },
|
||||||
{ path: 'e/:id', component: PageEntry, canActivate: [ AuthenticatedGuard ] },
|
{ path: 'top', component: PageTop, canActivate: [ AuthenticatedGuard ] },
|
||||||
{ path: 'u/:username', component: PageUser, canActivate: [ AuthenticatedGuard ] },
|
|
||||||
{ path: 'u/c/:username', component: PageUserComments, canActivate: [ AuthenticatedGuard ] },
|
|
||||||
{ path: 'u/e/:username', component: PageUserEntries, canActivate: [ AuthenticatedGuard ] },
|
|
||||||
{ path: 'hot', component: PageHot, canActivate: [ AuthenticatedGuard ] },
|
{ path: 'hot', component: PageHot, canActivate: [ AuthenticatedGuard ] },
|
||||||
{ path: 'last', component: PageLast, canActivate: [ AuthenticatedGuard ] },
|
{ path: 'last', component: PageLast, canActivate: [ AuthenticatedGuard ] },
|
||||||
{ path: 'new', component: PageNew, canActivate: [ AuthenticatedGuard ] },
|
{ path: 'new', component: PageNew, canActivate: [ AuthenticatedGuard ] },
|
||||||
{ path: 'bookmarks', component: PageBookmarks, canActivate: [ AuthenticatedGuard ] },
|
{ path: 'bookmarks', component: PageBookmarks, canActivate: [ AuthenticatedGuard ] },
|
||||||
{ path: 'submit', component: PageSubmission, canActivate: [ AuthenticatedGuard ] },
|
|
||||||
{ path: 'login', component: PageLogin, canActivate: [ AnonymousGuard ] },
|
|
||||||
{ path: 'settings', component: PageSettings, canActivate: [ AuthenticatedGuard ] },
|
{ path: 'settings', component: PageSettings, canActivate: [ AuthenticatedGuard ] },
|
||||||
|
{ path: 'submit', component: PageSubmission, canActivate: [ AuthenticatedGuard ] },
|
||||||
|
{ path: 'e/:id', component: PageEntry, canActivate: [ AuthenticatedGuard ] },
|
||||||
|
{ path: 'c/:id', component: PageComment, canActivate: [ AuthenticatedGuard ] },
|
||||||
|
{ path: 'u/:username', component: PageUser, canActivate: [ AuthenticatedGuard ] },
|
||||||
|
{ path: 'u/c/:username', component: PageUserComments, canActivate: [ AuthenticatedGuard ] },
|
||||||
|
{ path: 'u/e/:username', component: PageUserEntries, canActivate: [ AuthenticatedGuard ] },
|
||||||
{ path: 'unavailable', component: PageUnavailable },
|
{ path: 'unavailable', component: PageUnavailable },
|
||||||
{ path: '**', component: PageNotFound, pathMatch: 'full', canActivate: [ AuthUpdateGuard ] },
|
{ path: '**', component: PageNotFound, pathMatch: 'full', canActivate: [ AuthUpdateGuard ] },
|
||||||
]
|
]
|
||||||
|
@ -22,7 +22,7 @@
|
|||||||
<a *ngIf="!authenticated" routerLink="/login" routerLinkActive="active" mat-list-item>
|
<a *ngIf="!authenticated" routerLink="/login" routerLinkActive="active" mat-list-item>
|
||||||
<mat-icon>login</mat-icon> {{'login' | i18n}}
|
<mat-icon>login</mat-icon> {{'login' | i18n}}
|
||||||
</a>
|
</a>
|
||||||
<a *ngIf="authenticated" routerLink="/" routerLinkActive="active" mat-list-item>
|
<a *ngIf="authenticated" routerLink="/top" routerLinkActive="active" mat-list-item>
|
||||||
<mat-icon>trending_up</mat-icon> {{'page.top' | i18n}}
|
<mat-icon>trending_up</mat-icon> {{'page.top' | i18n}}
|
||||||
</a>
|
</a>
|
||||||
<a *ngIf="authenticated" routerLink="/new" routerLinkActive="active" mat-list-item>
|
<a *ngIf="authenticated" routerLink="/new" routerLinkActive="active" mat-list-item>
|
||||||
|
Loading…
Reference in New Issue
Block a user