mirror of
https://github.com/Start9Labs/start-os.git
synced 2026-04-01 04:53:40 +00:00
* fix login error message spacing and ensure not longer than 64 chars * spinner color to tertiary * totally responsive homepage cards * copy changes, back button for marketplace, minor styling * center setup wizard tiles; adjust external link style * remove cert note from setup success * convert launch card to go to login button * change system settings to system; update icons * refactor card widget input as full card details; more card resizing for home page * cleanup * clean up widget params * delete contructor Co-authored-by: Matt Hill <matthewonthemoon@gmail.com>
89 lines
2.2 KiB
TypeScript
89 lines
2.2 KiB
TypeScript
import { NgModule } from '@angular/core'
|
|
import { PreloadAllModules, RouterModule, Routes } from '@angular/router'
|
|
import { AuthGuard } from './guards/auth.guard'
|
|
import { UnauthGuard } from './guards/unauth.guard'
|
|
|
|
const routes: Routes = [
|
|
{
|
|
redirectTo: 'services',
|
|
pathMatch: 'full',
|
|
path: '',
|
|
},
|
|
{
|
|
path: 'login',
|
|
canActivate: [UnauthGuard],
|
|
loadChildren: () =>
|
|
import('./pages/login/login.module').then(m => m.LoginPageModule),
|
|
},
|
|
{
|
|
path: 'home',
|
|
canActivate: [AuthGuard],
|
|
loadChildren: () =>
|
|
import('./pages/home/home.module').then(m => m.HomePageModule),
|
|
},
|
|
{
|
|
path: 'system',
|
|
canActivate: [AuthGuard],
|
|
canActivateChild: [AuthGuard],
|
|
loadChildren: () =>
|
|
import('./pages/server-routes/server-routing.module').then(
|
|
m => m.ServerRoutingModule,
|
|
),
|
|
},
|
|
{
|
|
path: 'updates',
|
|
canActivate: [AuthGuard],
|
|
canActivateChild: [AuthGuard],
|
|
loadChildren: () =>
|
|
import('./pages/updates/updates.module').then(m => m.UpdatesPageModule),
|
|
},
|
|
{
|
|
path: 'marketplace',
|
|
canActivate: [AuthGuard],
|
|
canActivateChild: [AuthGuard],
|
|
loadChildren: () =>
|
|
import('./pages/marketplace-routes/marketplace-routing.module').then(
|
|
m => m.MarketplaceRoutingModule,
|
|
),
|
|
},
|
|
{
|
|
path: 'notifications',
|
|
canActivate: [AuthGuard],
|
|
loadChildren: () =>
|
|
import('./pages/notifications/notifications.module').then(
|
|
m => m.NotificationsPageModule,
|
|
),
|
|
},
|
|
{
|
|
path: 'services',
|
|
canActivate: [AuthGuard],
|
|
canActivateChild: [AuthGuard],
|
|
loadChildren: () =>
|
|
import('./pages/apps-routes/apps-routing.module').then(
|
|
m => m.AppsRoutingModule,
|
|
),
|
|
},
|
|
{
|
|
path: 'developer',
|
|
canActivate: [AuthGuard],
|
|
canActivateChild: [AuthGuard],
|
|
loadChildren: () =>
|
|
import('./pages/developer-routes/developer-routing.module').then(
|
|
m => m.DeveloperRoutingModule,
|
|
),
|
|
},
|
|
]
|
|
|
|
@NgModule({
|
|
imports: [
|
|
RouterModule.forRoot(routes, {
|
|
scrollPositionRestoration: 'enabled',
|
|
preloadingStrategy: PreloadAllModules,
|
|
initialNavigation: 'disabled',
|
|
useHash: true,
|
|
}),
|
|
],
|
|
exports: [RouterModule],
|
|
})
|
|
export class AppRoutingModule {}
|