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