]>
Commit | Line | Data |
---|---|---|
78f912ed C |
1 | import { NgModule } from '@angular/core' |
2 | import { RouterModule, Routes } from '@angular/router' | |
a6dbbf03 | 3 | import { AboutFollowsComponent } from '@app/+about/about-follows/about-follows.component' |
0f01a8ba | 4 | import { AboutInstanceComponent } from '@app/+about/about-instance/about-instance.component' |
b42f9c40 | 5 | import { AboutInstanceResolver } from '@app/+about/about-instance/about-instance.resolver' |
dfca0f5f | 6 | import { ContactAdminModalComponent } from '@app/+about/about-instance/contact-admin-modal.component' |
0f01a8ba C |
7 | import { AboutPeertubeComponent } from '@app/+about/about-peertube/about-peertube.component' |
8 | import { AboutComponent } from './about.component' | |
78f912ed C |
9 | |
10 | const 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 | }) | |
71 | export class AboutRoutingModule {} |