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