]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blame - client/src/app/+about/about-routing.module.ts
Merge branch 'release/3.3.0' into develop
[github/Chocobozzz/PeerTube.git] / client / src / app / +about / about-routing.module.ts
CommitLineData
78f912ed
C
1import { NgModule } from '@angular/core'
2import { RouterModule, Routes } from '@angular/router'
a6dbbf03 3import { AboutFollowsComponent } from '@app/+about/about-follows/about-follows.component'
0f01a8ba 4import { AboutInstanceComponent } from '@app/+about/about-instance/about-instance.component'
b42f9c40 5import { AboutInstanceResolver } from '@app/+about/about-instance/about-instance.resolver'
dfca0f5f 6import { ContactAdminModalComponent } from '@app/+about/about-instance/contact-admin-modal.component'
0f01a8ba
C
7import { AboutPeertubeComponent } from '@app/+about/about-peertube/about-peertube.component'
8import { AboutComponent } from './about.component'
78f912ed
C
9
10const aboutRoutes: Routes = [
11 {
12 path: '',
13 component: AboutComponent,
78f912ed
C
14 children: [
15 {
16 path: '',
17 redirectTo: 'instance',
18 pathMatch: 'full'
19 },
20 {
21 path: 'instance',
22 component: AboutInstanceComponent,
23 data: {
24 meta: {
f29f487e 25 title: $localize`About this instance`
78f912ed 26 }
b42f9c40
C
27 },
28 resolve: {
29 instanceData: AboutInstanceResolver
5c16e6bc
C
30 }
31 },
32 {
33 path: 'contact',
34 component: AboutInstanceComponent,
35 data: {
36 meta: {
37 title: $localize`Contact`
38 },
39 isContact: true
dfca0f5f 40 },
5c16e6bc
C
41 resolve: {
42 instanceData: AboutInstanceResolver
43 }
78f912ed
C
44 },
45 {
46 path: 'peertube',
47 component: AboutPeertubeComponent,
48 data: {
49 meta: {
f29f487e 50 title: $localize`About PeerTube`
78f912ed
C
51 }
52 }
a6dbbf03
C
53 },
54 {
55 path: 'follows',
56 component: AboutFollowsComponent,
57 data: {
58 meta: {
dc5bb5ce 59 title: $localize`About this instance's network`
a6dbbf03
C
60 }
61 }
78f912ed
C
62 }
63 ]
64 }
65]
66
67@NgModule({
68 imports: [ RouterModule.forChild(aboutRoutes) ],
69 exports: [ RouterModule ]
70})
71export class AboutRoutingModule {}