]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blob - client/src/app/+about/about-routing.module.ts
Add /about/instance/contact contact-form route with prefilled queryParams subject...
[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 children: [
32 {
33 path: 'contact',
34 component: ContactAdminModalComponent
35 }
36 ]
37 },
38 {
39 path: 'peertube',
40 component: AboutPeertubeComponent,
41 data: {
42 meta: {
43 title: $localize`About PeerTube`
44 }
45 }
46 },
47 {
48 path: 'follows',
49 component: AboutFollowsComponent,
50 data: {
51 meta: {
52 title: $localize`About this instance's network`
53 }
54 }
55 }
56 ]
57 }
58 ]
59
60 @NgModule({
61 imports: [ RouterModule.forChild(aboutRoutes) ],
62 exports: [ RouterModule ]
63 })
64 export class AboutRoutingModule {}