Browse Source

feat(client): add resources page routes

pull/4711/head
KenTandrian 3 months ago
parent
commit
b04110eef4
  1. 2
      apps/client/src/app/core/paths.ts
  2. 7
      apps/client/src/app/pages/resources/resources-page-routing.module.ts
  3. 8
      apps/client/src/app/pages/resources/resources-page.component.ts

2
apps/client/src/app/core/paths.ts

@ -2,6 +2,8 @@ export const paths = {
about: $localize`:snake-case:about`,
faq: $localize`:snake-case:faq`,
features: $localize`:snake-case:features`,
guides: $localize`:snake-case:guides`,
glossary: $localize`:snake-case:glossary`,
license: $localize`:snake-case:license`,
markets: $localize`:snake-case:markets`,
pricing: $localize`:snake-case:pricing`,

7
apps/client/src/app/pages/resources/resources-page-routing.module.ts

@ -1,4 +1,5 @@
import { AuthGuard } from '@ghostfolio/client/core/auth.guard';
import { paths } from '@ghostfolio/client/core/paths';
import { NgModule } from '@angular/core';
import { RouterModule, Routes } from '@angular/router';
@ -18,21 +19,21 @@ const routes: Routes = [
)
},
{
path: $localize`:snake-case:glossary`,
path: paths.glossary,
loadChildren: () =>
import('./glossary/resources-glossary.module').then(
(m) => m.ResourcesGlossaryPageModule
)
},
{
path: $localize`:snake-case:guides`,
path: paths.guides,
loadChildren: () =>
import('./guides/resources-guides.module').then(
(m) => m.ResourcesGuidesModule
)
},
{
path: $localize`:snake-case:markets`,
path: paths.markets,
loadChildren: () =>
import('./markets/resources-markets.module').then(
(m) => m.ResourcesMarketsModule

8
apps/client/src/app/pages/resources/resources-page.component.ts

@ -1,3 +1,5 @@
import { paths } from '@ghostfolio/client/core/paths';
import { Component, OnInit } from '@angular/core';
import { DeviceDetectorService } from 'ngx-device-detector';
import { Subject } from 'rxjs';
@ -18,17 +20,17 @@ export class ResourcesPageComponent implements OnInit {
iconName: 'reader-outline'
},
{
path: 'guides',
path: paths.guides,
label: $localize`Guides`,
iconName: 'book-outline'
},
{
path: 'markets',
path: paths.markets,
label: $localize`Markets`,
iconName: 'newspaper-outline'
},
{
path: 'glossary',
path: paths.glossary,
label: $localize`Glossary`,
iconName: 'library-outline'
}

Loading…
Cancel
Save