Merged network view with chat sidenav and updated the look of the category/channel list to a threaded one
This commit is contained in:
@@ -1,30 +1,29 @@
|
||||
import {Routes} from '@angular/router';
|
||||
import {SignIn} from './signin/signin';
|
||||
import {Chat} from './chat/chat';
|
||||
import {Dm} from './chat/dm/dm';
|
||||
import {noAuthGuard} from './guards/no-auth-guard';
|
||||
import {authNeededGuard} from './guards/auth-needed-guard';
|
||||
import {Homepage} from './homepage/homepage';
|
||||
import {Privacy} from './privacy/privacy';
|
||||
import {TOS} from './tos/tos';
|
||||
import {Network} from './chat/network/network';
|
||||
import {Text} from './chat/network/channel/text/text';
|
||||
import {See} from './chat/picture/see/see';
|
||||
import { Routes } from '@angular/router';
|
||||
import { SignIn } from './signin/signin';
|
||||
import { Chat } from './chat/chat';
|
||||
import { Dm } from './chat/dm/dm';
|
||||
import { noAuthGuard } from './guards/no-auth-guard';
|
||||
import { authNeededGuard } from './guards/auth-needed-guard';
|
||||
import { Homepage } from './homepage/homepage';
|
||||
import { Privacy } from './privacy/privacy';
|
||||
import { TOS } from './tos/tos';
|
||||
import { Network } from './chat/network/network';
|
||||
import { Text } from './chat/network/channel/text/text';
|
||||
import { See } from './chat/picture/see/see';
|
||||
|
||||
export const routes: Routes = [
|
||||
{path: '', component: Homepage},
|
||||
{path: 'privacy', component: Privacy},
|
||||
{path: 'tos', component: TOS},
|
||||
{path: 'signin', component: SignIn, canActivate: [noAuthGuard]},
|
||||
{ path: '', component: Homepage },
|
||||
{ path: 'privacy', component: Privacy },
|
||||
{ path: 'tos', component: TOS },
|
||||
{ path: 'signin', component: SignIn, canActivate: [noAuthGuard] },
|
||||
{
|
||||
path: 'chat', component: Chat, canActivate: [authNeededGuard], children: [
|
||||
{path: 'dm/:chatid', component: Dm},
|
||||
{path: 'picture/:uploaderId', component: See},
|
||||
{
|
||||
path: 'network/:networkId', component: Network, children: [
|
||||
{path: ":categoryId/:channelId", component: Text}
|
||||
]
|
||||
},
|
||||
]
|
||||
path: 'chat',
|
||||
component: Chat,
|
||||
canActivate: [authNeededGuard],
|
||||
children: [
|
||||
{ path: 'dm/:chatid', component: Dm },
|
||||
{ path: 'picture/:uploaderId', component: See },
|
||||
{ path: 'network/:networkId/:categoryId/:channelId', component: Text },
|
||||
],
|
||||
},
|
||||
];
|
||||
|
||||
Reference in New Issue
Block a user