2018-06-27 12:21:03 +00:00
|
|
|
import { NgModule } from '@angular/core'
|
|
|
|
import { RouterModule, Routes } from '@angular/router'
|
2019-06-06 09:39:22 +00:00
|
|
|
import { AboutFollowsComponent } from '@app/+about/about-follows/about-follows.component'
|
2021-05-14 14:12:45 +00:00
|
|
|
import { AboutInstanceComponent } from '@app/+about/about-instance/about-instance.component'
|
2020-02-03 09:31:34 +00:00
|
|
|
import { AboutInstanceResolver } from '@app/+about/about-instance/about-instance.resolver'
|
2021-06-04 12:42:05 +00:00
|
|
|
import { ContactAdminModalComponent } from '@app/+about/about-instance/contact-admin-modal.component'
|
2021-05-14 14:12:45 +00:00
|
|
|
import { AboutPeertubeComponent } from '@app/+about/about-peertube/about-peertube.component'
|
|
|
|
import { AboutComponent } from './about.component'
|
2018-06-27 12:21:03 +00:00
|
|
|
|
|
|
|
const aboutRoutes: Routes = [
|
|
|
|
{
|
|
|
|
path: '',
|
|
|
|
component: AboutComponent,
|
|
|
|
children: [
|
|
|
|
{
|
|
|
|
path: '',
|
|
|
|
redirectTo: 'instance',
|
|
|
|
pathMatch: 'full'
|
|
|
|
},
|
|
|
|
{
|
|
|
|
path: 'instance',
|
|
|
|
component: AboutInstanceComponent,
|
|
|
|
data: {
|
|
|
|
meta: {
|
2020-08-17 08:30:59 +00:00
|
|
|
title: $localize`About this instance`
|
2018-06-27 12:21:03 +00:00
|
|
|
}
|
2020-02-03 09:31:34 +00:00
|
|
|
},
|
|
|
|
resolve: {
|
|
|
|
instanceData: AboutInstanceResolver
|
2021-06-04 12:42:05 +00:00
|
|
|
},
|
|
|
|
children: [
|
|
|
|
{
|
|
|
|
path: 'contact',
|
|
|
|
component: ContactAdminModalComponent
|
|
|
|
}
|
|
|
|
]
|
2018-06-27 12:21:03 +00:00
|
|
|
},
|
|
|
|
{
|
|
|
|
path: 'peertube',
|
|
|
|
component: AboutPeertubeComponent,
|
|
|
|
data: {
|
|
|
|
meta: {
|
2020-08-17 08:30:59 +00:00
|
|
|
title: $localize`About PeerTube`
|
2018-06-27 12:21:03 +00:00
|
|
|
}
|
|
|
|
}
|
2019-06-06 09:39:22 +00:00
|
|
|
},
|
|
|
|
{
|
|
|
|
path: 'follows',
|
|
|
|
component: AboutFollowsComponent,
|
|
|
|
data: {
|
|
|
|
meta: {
|
2020-11-12 20:09:17 +00:00
|
|
|
title: $localize`About this instance's network`
|
2019-06-06 09:39:22 +00:00
|
|
|
}
|
|
|
|
}
|
2018-06-27 12:21:03 +00:00
|
|
|
}
|
|
|
|
]
|
|
|
|
}
|
|
|
|
]
|
|
|
|
|
|
|
|
@NgModule({
|
|
|
|
imports: [ RouterModule.forChild(aboutRoutes) ],
|
|
|
|
exports: [ RouterModule ]
|
|
|
|
})
|
|
|
|
export class AboutRoutingModule {}
|