mirror of
https://github.com/Start9Labs/start-os.git
synced 2026-04-02 05:23:14 +00:00
* feat: add widgets (#2034) * feat: add Taiga UI library (#1992) * feat: add widgets * update patchdb * right resizable sidebar with widgets * feat: add resizing directive * chore: remove unused code * chore: remove unnecessary dep * feat: `ResponsiveCol` add directive for responsive grid * feat: add widgets edit mode and dialogs * feat: add widgets model and modal * chore: fix import * chore: hide mobile widgets behind flag * chore: add dummy widgets * chore: start working on heath widget and implement other comments * feat: health widget * feat: add saving widgets and sidebar params to patch * feat: preemptive UI update for widgets * update health widget with more accurate states and styling (#2127) * feat: `ResponsiveCol` add directive for responsive grid * chore: some changes after merge Co-authored-by: Matt Hill <matthewonthemoon@gmail.com> Co-authored-by: Lucy C <12953208+elvece@users.noreply.github.com> * fix(shared): `ElasticContainer` fix collapsing margin (#2150) * fix(shared): `ElasticContainer` fix collapsing margin * fix toolbar height so titles not chopped --------- Co-authored-by: Matt Hill <matthewonthemoon@gmail.com> * feat: make widgets sidebar width togglable (#2146) * feat: make widgets sidebar width togglable * feat: move widgets under header * chore: fix wide layout * fix(shared): `ResponsiveCol` fix missing grid steps (#2153) * fix widget flag and refactor for non-persistence * default widget flag to false * fix(shared): fix responsive column size (#2159) * fix(shared): fix responsive column size * fix: add responsiveness to all pages * fix responsiveness on more pages * fix: comments * revert some padding changes --------- Co-authored-by: Lucy Cifferello <12953208+elvece@users.noreply.github.com> Co-authored-by: Matt Hill <matthewonthemoon@gmail.com> * chore: add analyzer (#2165) * fix list styling to previous default (#2173) * fix list styling to previous default * dont need important flag --------- Co-authored-by: Alex Inkin <alexander@inkin.ru> Co-authored-by: Lucy C <12953208+elvece@users.noreply.github.com>
88 lines
2.2 KiB
TypeScript
88 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',
|
|
}),
|
|
],
|
|
exports: [RouterModule],
|
|
})
|
|
export class AppRoutingModule {}
|