mirror of https://github.com/ghostfolio/ghostfolio
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
75 lines
1.9 KiB
75 lines
1.9 KiB
import { NgModule } from '@angular/core';
|
|
import { RouterModule, Routes } from '@angular/router';
|
|
import { AuthGuard } from '@ghostfolio/client/core/auth.guard';
|
|
|
|
import { AboutPageComponent } from './about-page.component';
|
|
|
|
const routes: Routes = [
|
|
{
|
|
canActivate: [AuthGuard],
|
|
children: [
|
|
{
|
|
path: '',
|
|
loadChildren: () =>
|
|
import('./overview/about-overview-page.module').then(
|
|
(m) => m.AboutOverviewPageModule
|
|
)
|
|
},
|
|
{
|
|
path: 'changelog',
|
|
loadChildren: () =>
|
|
import('./changelog/changelog-page.module').then(
|
|
(m) => m.ChangelogPageModule
|
|
)
|
|
},
|
|
...[
|
|
'license',
|
|
/////
|
|
'licenca',
|
|
'licence',
|
|
'licencia',
|
|
'licentie',
|
|
'lizenz',
|
|
'licenza'
|
|
].map((path) => ({
|
|
path,
|
|
loadChildren: () =>
|
|
import('./license/license-page.module').then(
|
|
(m) => m.LicensePageModule
|
|
)
|
|
})),
|
|
{
|
|
path: 'oss-friends',
|
|
loadChildren: () =>
|
|
import('./oss-friends/oss-friends-page.module').then(
|
|
(m) => m.OpenSourceSoftwareFriendsPageModule
|
|
)
|
|
},
|
|
...[
|
|
'privacy-policy',
|
|
/////
|
|
'datenschutzbestimmungen',
|
|
'informativa-sulla-privacy',
|
|
'politique-de-confidentialite',
|
|
'politica-de-privacidad',
|
|
'politica-de-privacidade',
|
|
'privacybeleid'
|
|
].map((path) => ({
|
|
path,
|
|
loadChildren: () =>
|
|
import('./privacy-policy/privacy-policy-page.module').then(
|
|
(m) => m.PrivacyPolicyPageModule
|
|
)
|
|
}))
|
|
],
|
|
component: AboutPageComponent,
|
|
path: '',
|
|
title: $localize`About`
|
|
}
|
|
];
|
|
|
|
@NgModule({
|
|
imports: [RouterModule.forChild(routes)],
|
|
exports: [RouterModule]
|
|
})
|
|
export class AboutPageRoutingModule {}
|
|
|