diff --git a/CHANGELOG.md b/CHANGELOG.md index d753a612..74d8c91b 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -5,6 +5,12 @@ All notable changes to this project will be documented in this file. The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). +## Unreleased + +### Changed + +- Refactored the blog articles to standalone components + ## 1.286.0 - 2023-07-03 ### Fixed diff --git a/apps/client/src/app/app-routing.module.ts b/apps/client/src/app/app-routing.module.ts index 175a7082..e9eed48a 100644 --- a/apps/client/src/app/app-routing.module.ts +++ b/apps/client/src/app/app-routing.module.ts @@ -47,104 +47,6 @@ const routes: Routes = [ loadChildren: () => import('./pages/blog/blog-page.module').then((m) => m.BlogPageModule) })), - { - path: 'blog/2021/07/hallo-ghostfolio', - loadChildren: () => - import( - './pages/blog/2021/07/hallo-ghostfolio/hallo-ghostfolio-page.module' - ).then((m) => m.HalloGhostfolioPageModule) - }, - { - path: 'blog/2021/07/hello-ghostfolio', - loadChildren: () => - import( - './pages/blog/2021/07/hello-ghostfolio/hello-ghostfolio-page.module' - ).then((m) => m.HelloGhostfolioPageModule) - }, - { - path: 'blog/2022/01/ghostfolio-first-months-in-open-source', - loadChildren: () => - import( - './pages/blog/2022/01/first-months-in-open-source/first-months-in-open-source-page.module' - ).then((m) => m.FirstMonthsInOpenSourcePageModule) - }, - { - path: 'blog/2022/07/ghostfolio-meets-internet-identity', - loadChildren: () => - import( - './pages/blog/2022/07/ghostfolio-meets-internet-identity/ghostfolio-meets-internet-identity-page.module' - ).then((m) => m.GhostfolioMeetsInternetIdentityPageModule) - }, - { - path: 'blog/2022/07/how-do-i-get-my-finances-in-order', - loadChildren: () => - import( - './pages/blog/2022/07/how-do-i-get-my-finances-in-order/how-do-i-get-my-finances-in-order-page.module' - ).then((m) => m.HowDoIGetMyFinancesInOrderPageModule) - }, - { - path: 'blog/2022/08/500-stars-on-github', - loadChildren: () => - import( - './pages/blog/2022/08/500-stars-on-github/500-stars-on-github-page.module' - ).then((m) => m.FiveHundredStarsOnGitHubPageModule) - }, - { - path: 'blog/2022/10/hacktoberfest-2022', - loadChildren: () => - import( - './pages/blog/2022/10/hacktoberfest-2022/hacktoberfest-2022-page.module' - ).then((m) => m.Hacktoberfest2022PageModule) - }, - { - path: 'blog/2022/11/black-friday-2022', - loadChildren: () => - import( - './pages/blog/2022/11/black-friday-2022/black-friday-2022-page.module' - ).then((m) => m.BlackFriday2022PageModule) - }, - { - path: 'blog/2022/12/the-importance-of-tracking-your-personal-finances', - loadChildren: () => - import( - './pages/blog/2022/12/the-importance-of-tracking-your-personal-finances/the-importance-of-tracking-your-personal-finances-page.module' - ).then((m) => m.TheImportanceOfTrackingYourPersonalFinancesPageModule) - }, - { - path: 'blog/2023/01/ghostfolio-auf-sackgeld-vorgestellt', - loadChildren: () => - import( - './pages/blog/2023/01/ghostfolio-auf-sackgeld-vorgestellt/ghostfolio-auf-sackgeld-vorgestellt-page.module' - ).then((m) => m.GhostfolioAufSackgeldVorgestelltPageModule) - }, - { - path: 'blog/2023/02/ghostfolio-meets-umbrel', - loadChildren: () => - import( - './pages/blog/2023/02/ghostfolio-meets-umbrel/ghostfolio-meets-umbrel-page.module' - ).then((m) => m.GhostfolioMeetsUmbrelPageModule) - }, - { - path: 'blog/2023/03/ghostfolio-reaches-1000-stars-on-github', - loadChildren: () => - import( - './pages/blog/2023/03/1000-stars-on-github/1000-stars-on-github-page.module' - ).then((m) => m.ThousandStarsOnGitHubPageModule) - }, - { - path: 'blog/2023/05/unlock-your-financial-potential-with-ghostfolio', - loadChildren: () => - import( - './pages/blog/2023/05/unlock-your-financial-potential-with-ghostfolio/unlock-your-financial-potential-with-ghostfolio-page.module' - ).then((m) => m.UnlockYourFinancialPotentialWithGhostfolioPageModule) - }, - { - path: 'blog/2023/07/exploring-the-path-to-fire', - loadChildren: () => - import( - './pages/blog/2023/07/exploring-the-path-to-fire/exploring-the-path-to-fire-page.module' - ).then((m) => m.ExploringThePathToFirePageModule) - }, { path: 'demo', loadChildren: () => diff --git a/apps/client/src/app/pages/blog/2021/07/hallo-ghostfolio/hallo-ghostfolio-page-routing.module.ts b/apps/client/src/app/pages/blog/2021/07/hallo-ghostfolio/hallo-ghostfolio-page-routing.module.ts deleted file mode 100644 index 5c7bdb13..00000000 --- a/apps/client/src/app/pages/blog/2021/07/hallo-ghostfolio/hallo-ghostfolio-page-routing.module.ts +++ /dev/null @@ -1,20 +0,0 @@ -import { NgModule } from '@angular/core'; -import { RouterModule, Routes } from '@angular/router'; -import { AuthGuard } from '@ghostfolio/client/core/auth.guard'; - -import { HalloGhostfolioPageComponent } from './hallo-ghostfolio-page.component'; - -const routes: Routes = [ - { - canActivate: [AuthGuard], - component: HalloGhostfolioPageComponent, - path: '', - title: 'Hallo Ghostfolio' - } -]; - -@NgModule({ - imports: [RouterModule.forChild(routes)], - exports: [RouterModule] -}) -export class HalloGhostfolioPageRoutingModule {} diff --git a/apps/client/src/app/pages/blog/2021/07/hallo-ghostfolio/hallo-ghostfolio-page.component.ts b/apps/client/src/app/pages/blog/2021/07/hallo-ghostfolio/hallo-ghostfolio-page.component.ts index 06e67d3e..53e8cf9e 100644 --- a/apps/client/src/app/pages/blog/2021/07/hallo-ghostfolio/hallo-ghostfolio-page.component.ts +++ b/apps/client/src/app/pages/blog/2021/07/hallo-ghostfolio/hallo-ghostfolio-page.component.ts @@ -1,8 +1,12 @@ import { Component } from '@angular/core'; +import { MatButtonModule } from '@angular/material/button'; +import { RouterModule } from '@angular/router'; @Component({ host: { class: 'page' }, + imports: [MatButtonModule, RouterModule], selector: 'gf-hallo-ghostfolio-page', + standalone: true, templateUrl: './hallo-ghostfolio-page.html' }) export class HalloGhostfolioPageComponent {} diff --git a/apps/client/src/app/pages/blog/2021/07/hallo-ghostfolio/hallo-ghostfolio-page.module.ts b/apps/client/src/app/pages/blog/2021/07/hallo-ghostfolio/hallo-ghostfolio-page.module.ts deleted file mode 100644 index 75eef2a5..00000000 --- a/apps/client/src/app/pages/blog/2021/07/hallo-ghostfolio/hallo-ghostfolio-page.module.ts +++ /dev/null @@ -1,13 +0,0 @@ -import { CommonModule } from '@angular/common'; -import { CUSTOM_ELEMENTS_SCHEMA, NgModule } from '@angular/core'; -import { RouterModule } from '@angular/router'; - -import { HalloGhostfolioPageRoutingModule } from './hallo-ghostfolio-page-routing.module'; -import { HalloGhostfolioPageComponent } from './hallo-ghostfolio-page.component'; - -@NgModule({ - declarations: [HalloGhostfolioPageComponent], - imports: [CommonModule, HalloGhostfolioPageRoutingModule, RouterModule], - schemas: [CUSTOM_ELEMENTS_SCHEMA] -}) -export class HalloGhostfolioPageModule {} diff --git a/apps/client/src/app/pages/blog/2021/07/hello-ghostfolio/hello-ghostfolio-page-routing.module.ts b/apps/client/src/app/pages/blog/2021/07/hello-ghostfolio/hello-ghostfolio-page-routing.module.ts deleted file mode 100644 index cf54b8f8..00000000 --- a/apps/client/src/app/pages/blog/2021/07/hello-ghostfolio/hello-ghostfolio-page-routing.module.ts +++ /dev/null @@ -1,20 +0,0 @@ -import { NgModule } from '@angular/core'; -import { RouterModule, Routes } from '@angular/router'; -import { AuthGuard } from '@ghostfolio/client/core/auth.guard'; - -import { HelloGhostfolioPageComponent } from './hello-ghostfolio-page.component'; - -const routes: Routes = [ - { - canActivate: [AuthGuard], - component: HelloGhostfolioPageComponent, - path: '', - title: 'Hello Ghostfolio' - } -]; - -@NgModule({ - imports: [RouterModule.forChild(routes)], - exports: [RouterModule] -}) -export class HelloGhostfolioPageRoutingModule {} diff --git a/apps/client/src/app/pages/blog/2021/07/hello-ghostfolio/hello-ghostfolio-page.component.ts b/apps/client/src/app/pages/blog/2021/07/hello-ghostfolio/hello-ghostfolio-page.component.ts index dc048bc4..a0537b01 100644 --- a/apps/client/src/app/pages/blog/2021/07/hello-ghostfolio/hello-ghostfolio-page.component.ts +++ b/apps/client/src/app/pages/blog/2021/07/hello-ghostfolio/hello-ghostfolio-page.component.ts @@ -1,8 +1,12 @@ import { Component } from '@angular/core'; +import { MatButtonModule } from '@angular/material/button'; +import { RouterModule } from '@angular/router'; @Component({ host: { class: 'page' }, + imports: [MatButtonModule, RouterModule], selector: 'gf-hello-ghostfolio-page', + standalone: true, templateUrl: './hello-ghostfolio-page.html' }) export class HelloGhostfolioPageComponent {} diff --git a/apps/client/src/app/pages/blog/2021/07/hello-ghostfolio/hello-ghostfolio-page.module.ts b/apps/client/src/app/pages/blog/2021/07/hello-ghostfolio/hello-ghostfolio-page.module.ts deleted file mode 100644 index a885ef14..00000000 --- a/apps/client/src/app/pages/blog/2021/07/hello-ghostfolio/hello-ghostfolio-page.module.ts +++ /dev/null @@ -1,13 +0,0 @@ -import { CommonModule } from '@angular/common'; -import { CUSTOM_ELEMENTS_SCHEMA, NgModule } from '@angular/core'; -import { RouterModule } from '@angular/router'; - -import { HelloGhostfolioPageRoutingModule } from './hello-ghostfolio-page-routing.module'; -import { HelloGhostfolioPageComponent } from './hello-ghostfolio-page.component'; - -@NgModule({ - declarations: [HelloGhostfolioPageComponent], - imports: [CommonModule, HelloGhostfolioPageRoutingModule, RouterModule], - schemas: [CUSTOM_ELEMENTS_SCHEMA] -}) -export class HelloGhostfolioPageModule {} diff --git a/apps/client/src/app/pages/blog/2022/01/first-months-in-open-source/first-months-in-open-source-page-routing.module.ts b/apps/client/src/app/pages/blog/2022/01/first-months-in-open-source/first-months-in-open-source-page-routing.module.ts deleted file mode 100644 index 39364ffe..00000000 --- a/apps/client/src/app/pages/blog/2022/01/first-months-in-open-source/first-months-in-open-source-page-routing.module.ts +++ /dev/null @@ -1,20 +0,0 @@ -import { NgModule } from '@angular/core'; -import { RouterModule, Routes } from '@angular/router'; -import { AuthGuard } from '@ghostfolio/client/core/auth.guard'; - -import { FirstMonthsInOpenSourcePageComponent } from './first-months-in-open-source-page.component'; - -const routes: Routes = [ - { - canActivate: [AuthGuard], - component: FirstMonthsInOpenSourcePageComponent, - path: '', - title: 'First months in Open Source' - } -]; - -@NgModule({ - imports: [RouterModule.forChild(routes)], - exports: [RouterModule] -}) -export class FirstMonthsInOpenSourceRoutingModule {} diff --git a/apps/client/src/app/pages/blog/2022/01/first-months-in-open-source/first-months-in-open-source-page.component.ts b/apps/client/src/app/pages/blog/2022/01/first-months-in-open-source/first-months-in-open-source-page.component.ts index 94c20028..b6176e0a 100644 --- a/apps/client/src/app/pages/blog/2022/01/first-months-in-open-source/first-months-in-open-source-page.component.ts +++ b/apps/client/src/app/pages/blog/2022/01/first-months-in-open-source/first-months-in-open-source-page.component.ts @@ -1,8 +1,12 @@ import { Component } from '@angular/core'; +import { MatButtonModule } from '@angular/material/button'; +import { RouterModule } from '@angular/router'; @Component({ host: { class: 'page' }, + imports: [MatButtonModule, RouterModule], selector: 'gf-first-months-in-open-source-page', + standalone: true, templateUrl: './first-months-in-open-source-page.html' }) export class FirstMonthsInOpenSourcePageComponent {} diff --git a/apps/client/src/app/pages/blog/2022/01/first-months-in-open-source/first-months-in-open-source-page.module.ts b/apps/client/src/app/pages/blog/2022/01/first-months-in-open-source/first-months-in-open-source-page.module.ts deleted file mode 100644 index e44bd0dd..00000000 --- a/apps/client/src/app/pages/blog/2022/01/first-months-in-open-source/first-months-in-open-source-page.module.ts +++ /dev/null @@ -1,13 +0,0 @@ -import { CommonModule } from '@angular/common'; -import { CUSTOM_ELEMENTS_SCHEMA, NgModule } from '@angular/core'; -import { RouterModule } from '@angular/router'; - -import { FirstMonthsInOpenSourceRoutingModule } from './first-months-in-open-source-page-routing.module'; -import { FirstMonthsInOpenSourcePageComponent } from './first-months-in-open-source-page.component'; - -@NgModule({ - declarations: [FirstMonthsInOpenSourcePageComponent], - imports: [CommonModule, FirstMonthsInOpenSourceRoutingModule, RouterModule], - schemas: [CUSTOM_ELEMENTS_SCHEMA] -}) -export class FirstMonthsInOpenSourcePageModule {} diff --git a/apps/client/src/app/pages/blog/2022/07/ghostfolio-meets-internet-identity/ghostfolio-meets-internet-identity-page-routing.module.ts b/apps/client/src/app/pages/blog/2022/07/ghostfolio-meets-internet-identity/ghostfolio-meets-internet-identity-page-routing.module.ts deleted file mode 100644 index 999d79c3..00000000 --- a/apps/client/src/app/pages/blog/2022/07/ghostfolio-meets-internet-identity/ghostfolio-meets-internet-identity-page-routing.module.ts +++ /dev/null @@ -1,20 +0,0 @@ -import { NgModule } from '@angular/core'; -import { RouterModule, Routes } from '@angular/router'; -import { AuthGuard } from '@ghostfolio/client/core/auth.guard'; - -import { GhostfolioMeetsInternetIdentityPageComponent } from './ghostfolio-meets-internet-identity-page.component'; - -const routes: Routes = [ - { - canActivate: [AuthGuard], - component: GhostfolioMeetsInternetIdentityPageComponent, - path: '', - title: 'Ghostfolio meets Internet Identity' - } -]; - -@NgModule({ - imports: [RouterModule.forChild(routes)], - exports: [RouterModule] -}) -export class GhostfolioMeetsInternetIdentityRoutingModule {} diff --git a/apps/client/src/app/pages/blog/2022/07/ghostfolio-meets-internet-identity/ghostfolio-meets-internet-identity-page.component.ts b/apps/client/src/app/pages/blog/2022/07/ghostfolio-meets-internet-identity/ghostfolio-meets-internet-identity-page.component.ts index 79d221a1..4c451f44 100644 --- a/apps/client/src/app/pages/blog/2022/07/ghostfolio-meets-internet-identity/ghostfolio-meets-internet-identity-page.component.ts +++ b/apps/client/src/app/pages/blog/2022/07/ghostfolio-meets-internet-identity/ghostfolio-meets-internet-identity-page.component.ts @@ -1,8 +1,12 @@ import { Component } from '@angular/core'; +import { MatButtonModule } from '@angular/material/button'; +import { RouterModule } from '@angular/router'; @Component({ host: { class: 'page' }, + imports: [MatButtonModule, RouterModule], selector: 'gf-ghostfolio-meets-internet-identity-page', + standalone: true, templateUrl: './ghostfolio-meets-internet-identity-page.html' }) export class GhostfolioMeetsInternetIdentityPageComponent {} diff --git a/apps/client/src/app/pages/blog/2022/07/ghostfolio-meets-internet-identity/ghostfolio-meets-internet-identity-page.module.ts b/apps/client/src/app/pages/blog/2022/07/ghostfolio-meets-internet-identity/ghostfolio-meets-internet-identity-page.module.ts deleted file mode 100644 index acdeb9f4..00000000 --- a/apps/client/src/app/pages/blog/2022/07/ghostfolio-meets-internet-identity/ghostfolio-meets-internet-identity-page.module.ts +++ /dev/null @@ -1,17 +0,0 @@ -import { CommonModule } from '@angular/common'; -import { CUSTOM_ELEMENTS_SCHEMA, NgModule } from '@angular/core'; -import { RouterModule } from '@angular/router'; - -import { GhostfolioMeetsInternetIdentityRoutingModule } from './ghostfolio-meets-internet-identity-page-routing.module'; -import { GhostfolioMeetsInternetIdentityPageComponent } from './ghostfolio-meets-internet-identity-page.component'; - -@NgModule({ - declarations: [GhostfolioMeetsInternetIdentityPageComponent], - imports: [ - CommonModule, - GhostfolioMeetsInternetIdentityRoutingModule, - RouterModule - ], - schemas: [CUSTOM_ELEMENTS_SCHEMA] -}) -export class GhostfolioMeetsInternetIdentityPageModule {} diff --git a/apps/client/src/app/pages/blog/2022/07/how-do-i-get-my-finances-in-order/how-do-i-get-my-finances-in-order-page-routing.module.ts b/apps/client/src/app/pages/blog/2022/07/how-do-i-get-my-finances-in-order/how-do-i-get-my-finances-in-order-page-routing.module.ts deleted file mode 100644 index 93dbcb57..00000000 --- a/apps/client/src/app/pages/blog/2022/07/how-do-i-get-my-finances-in-order/how-do-i-get-my-finances-in-order-page-routing.module.ts +++ /dev/null @@ -1,20 +0,0 @@ -import { NgModule } from '@angular/core'; -import { RouterModule, Routes } from '@angular/router'; -import { AuthGuard } from '@ghostfolio/client/core/auth.guard'; - -import { HowDoIGetMyFinancesInOrderPageComponent } from './how-do-i-get-my-finances-in-order-page.component'; - -const routes: Routes = [ - { - canActivate: [AuthGuard], - component: HowDoIGetMyFinancesInOrderPageComponent, - path: '', - title: 'How do I get my finances in order?' - } -]; - -@NgModule({ - imports: [RouterModule.forChild(routes)], - exports: [RouterModule] -}) -export class HowDoIGetMyFinancesInOrderRoutingModule {} diff --git a/apps/client/src/app/pages/blog/2022/07/how-do-i-get-my-finances-in-order/how-do-i-get-my-finances-in-order-page.component.ts b/apps/client/src/app/pages/blog/2022/07/how-do-i-get-my-finances-in-order/how-do-i-get-my-finances-in-order-page.component.ts index c6f8813a..0f25ca72 100644 --- a/apps/client/src/app/pages/blog/2022/07/how-do-i-get-my-finances-in-order/how-do-i-get-my-finances-in-order-page.component.ts +++ b/apps/client/src/app/pages/blog/2022/07/how-do-i-get-my-finances-in-order/how-do-i-get-my-finances-in-order-page.component.ts @@ -1,8 +1,12 @@ import { Component } from '@angular/core'; +import { MatButtonModule } from '@angular/material/button'; +import { RouterModule } from '@angular/router'; @Component({ host: { class: 'page' }, + imports: [MatButtonModule, RouterModule], selector: 'gf-how-do-i-get-my-finances-in-order-page', + standalone: true, templateUrl: './how-do-i-get-my-finances-in-order-page.html' }) export class HowDoIGetMyFinancesInOrderPageComponent {} diff --git a/apps/client/src/app/pages/blog/2022/07/how-do-i-get-my-finances-in-order/how-do-i-get-my-finances-in-order-page.module.ts b/apps/client/src/app/pages/blog/2022/07/how-do-i-get-my-finances-in-order/how-do-i-get-my-finances-in-order-page.module.ts deleted file mode 100644 index 9e0b9a4b..00000000 --- a/apps/client/src/app/pages/blog/2022/07/how-do-i-get-my-finances-in-order/how-do-i-get-my-finances-in-order-page.module.ts +++ /dev/null @@ -1,17 +0,0 @@ -import { CommonModule } from '@angular/common'; -import { CUSTOM_ELEMENTS_SCHEMA, NgModule } from '@angular/core'; -import { RouterModule } from '@angular/router'; - -import { HowDoIGetMyFinancesInOrderRoutingModule } from './how-do-i-get-my-finances-in-order-page-routing.module'; -import { HowDoIGetMyFinancesInOrderPageComponent } from './how-do-i-get-my-finances-in-order-page.component'; - -@NgModule({ - declarations: [HowDoIGetMyFinancesInOrderPageComponent], - imports: [ - CommonModule, - HowDoIGetMyFinancesInOrderRoutingModule, - RouterModule - ], - schemas: [CUSTOM_ELEMENTS_SCHEMA] -}) -export class HowDoIGetMyFinancesInOrderPageModule {} diff --git a/apps/client/src/app/pages/blog/2022/08/500-stars-on-github/500-stars-on-github-page-routing.module.ts b/apps/client/src/app/pages/blog/2022/08/500-stars-on-github/500-stars-on-github-page-routing.module.ts deleted file mode 100644 index c64edfab..00000000 --- a/apps/client/src/app/pages/blog/2022/08/500-stars-on-github/500-stars-on-github-page-routing.module.ts +++ /dev/null @@ -1,20 +0,0 @@ -import { NgModule } from '@angular/core'; -import { RouterModule, Routes } from '@angular/router'; -import { AuthGuard } from '@ghostfolio/client/core/auth.guard'; - -import { FiveHundredStarsOnGitHubPageComponent } from './500-stars-on-github-page.component'; - -const routes: Routes = [ - { - canActivate: [AuthGuard], - component: FiveHundredStarsOnGitHubPageComponent, - path: '', - title: '500 Stars on GitHub' - } -]; - -@NgModule({ - imports: [RouterModule.forChild(routes)], - exports: [RouterModule] -}) -export class FiveHundredStarsOnGitHubRoutingModule {} diff --git a/apps/client/src/app/pages/blog/2022/08/500-stars-on-github/500-stars-on-github-page.component.ts b/apps/client/src/app/pages/blog/2022/08/500-stars-on-github/500-stars-on-github-page.component.ts index 2055a44d..99842efb 100644 --- a/apps/client/src/app/pages/blog/2022/08/500-stars-on-github/500-stars-on-github-page.component.ts +++ b/apps/client/src/app/pages/blog/2022/08/500-stars-on-github/500-stars-on-github-page.component.ts @@ -1,8 +1,12 @@ import { Component } from '@angular/core'; +import { MatButtonModule } from '@angular/material/button'; +import { RouterModule } from '@angular/router'; @Component({ host: { class: 'page' }, + imports: [MatButtonModule, RouterModule], selector: 'gf-500-stars-on-github-page', + standalone: true, templateUrl: './500-stars-on-github-page.html' }) export class FiveHundredStarsOnGitHubPageComponent {} diff --git a/apps/client/src/app/pages/blog/2022/08/500-stars-on-github/500-stars-on-github-page.module.ts b/apps/client/src/app/pages/blog/2022/08/500-stars-on-github/500-stars-on-github-page.module.ts deleted file mode 100644 index ffc072ac..00000000 --- a/apps/client/src/app/pages/blog/2022/08/500-stars-on-github/500-stars-on-github-page.module.ts +++ /dev/null @@ -1,13 +0,0 @@ -import { CommonModule } from '@angular/common'; -import { CUSTOM_ELEMENTS_SCHEMA, NgModule } from '@angular/core'; -import { RouterModule } from '@angular/router'; - -import { FiveHundredStarsOnGitHubRoutingModule } from './500-stars-on-github-page-routing.module'; -import { FiveHundredStarsOnGitHubPageComponent } from './500-stars-on-github-page.component'; - -@NgModule({ - declarations: [FiveHundredStarsOnGitHubPageComponent], - imports: [CommonModule, FiveHundredStarsOnGitHubRoutingModule, RouterModule], - schemas: [CUSTOM_ELEMENTS_SCHEMA] -}) -export class FiveHundredStarsOnGitHubPageModule {} diff --git a/apps/client/src/app/pages/blog/2022/10/hacktoberfest-2022/hacktoberfest-2022-page-routing.module.ts b/apps/client/src/app/pages/blog/2022/10/hacktoberfest-2022/hacktoberfest-2022-page-routing.module.ts deleted file mode 100644 index 7ee6a0cf..00000000 --- a/apps/client/src/app/pages/blog/2022/10/hacktoberfest-2022/hacktoberfest-2022-page-routing.module.ts +++ /dev/null @@ -1,20 +0,0 @@ -import { NgModule } from '@angular/core'; -import { RouterModule, Routes } from '@angular/router'; -import { AuthGuard } from '@ghostfolio/client/core/auth.guard'; - -import { Hacktoberfest2022PageComponent } from './hacktoberfest-2022-page.component'; - -const routes: Routes = [ - { - canActivate: [AuthGuard], - component: Hacktoberfest2022PageComponent, - path: '', - title: 'Hacktoberfest 2022' - } -]; - -@NgModule({ - imports: [RouterModule.forChild(routes)], - exports: [RouterModule] -}) -export class Hacktoberfest2022RoutingModule {} diff --git a/apps/client/src/app/pages/blog/2022/10/hacktoberfest-2022/hacktoberfest-2022-page.component.ts b/apps/client/src/app/pages/blog/2022/10/hacktoberfest-2022/hacktoberfest-2022-page.component.ts index 9f0f5879..c84faddd 100644 --- a/apps/client/src/app/pages/blog/2022/10/hacktoberfest-2022/hacktoberfest-2022-page.component.ts +++ b/apps/client/src/app/pages/blog/2022/10/hacktoberfest-2022/hacktoberfest-2022-page.component.ts @@ -1,8 +1,12 @@ import { Component } from '@angular/core'; +import { MatButtonModule } from '@angular/material/button'; +import { RouterModule } from '@angular/router'; @Component({ host: { class: 'page' }, + imports: [MatButtonModule, RouterModule], selector: 'gf-hacktoberfest-2022-page', + standalone: true, templateUrl: './hacktoberfest-2022-page.html' }) export class Hacktoberfest2022PageComponent {} diff --git a/apps/client/src/app/pages/blog/2022/10/hacktoberfest-2022/hacktoberfest-2022-page.module.ts b/apps/client/src/app/pages/blog/2022/10/hacktoberfest-2022/hacktoberfest-2022-page.module.ts deleted file mode 100644 index fba8a359..00000000 --- a/apps/client/src/app/pages/blog/2022/10/hacktoberfest-2022/hacktoberfest-2022-page.module.ts +++ /dev/null @@ -1,13 +0,0 @@ -import { CommonModule } from '@angular/common'; -import { CUSTOM_ELEMENTS_SCHEMA, NgModule } from '@angular/core'; -import { RouterModule } from '@angular/router'; - -import { Hacktoberfest2022RoutingModule } from './hacktoberfest-2022-page-routing.module'; -import { Hacktoberfest2022PageComponent } from './hacktoberfest-2022-page.component'; - -@NgModule({ - declarations: [Hacktoberfest2022PageComponent], - imports: [CommonModule, Hacktoberfest2022RoutingModule, RouterModule], - schemas: [CUSTOM_ELEMENTS_SCHEMA] -}) -export class Hacktoberfest2022PageModule {} diff --git a/apps/client/src/app/pages/blog/2022/11/black-friday-2022/black-friday-2022-page-routing.module.ts b/apps/client/src/app/pages/blog/2022/11/black-friday-2022/black-friday-2022-page-routing.module.ts deleted file mode 100644 index da6e4348..00000000 --- a/apps/client/src/app/pages/blog/2022/11/black-friday-2022/black-friday-2022-page-routing.module.ts +++ /dev/null @@ -1,20 +0,0 @@ -import { NgModule } from '@angular/core'; -import { RouterModule, Routes } from '@angular/router'; -import { AuthGuard } from '@ghostfolio/client/core/auth.guard'; - -import { BlackFriday2022PageComponent } from './black-friday-2022-page.component'; - -const routes: Routes = [ - { - canActivate: [AuthGuard], - component: BlackFriday2022PageComponent, - path: '', - title: 'Black Friday 2022' - } -]; - -@NgModule({ - imports: [RouterModule.forChild(routes)], - exports: [RouterModule] -}) -export class BlackFriday2022RoutingModule {} diff --git a/apps/client/src/app/pages/blog/2022/11/black-friday-2022/black-friday-2022-page.component.ts b/apps/client/src/app/pages/blog/2022/11/black-friday-2022/black-friday-2022-page.component.ts index d89c8ccb..0284a11f 100644 --- a/apps/client/src/app/pages/blog/2022/11/black-friday-2022/black-friday-2022-page.component.ts +++ b/apps/client/src/app/pages/blog/2022/11/black-friday-2022/black-friday-2022-page.component.ts @@ -1,8 +1,13 @@ import { Component } from '@angular/core'; +import { MatButtonModule } from '@angular/material/button'; +import { RouterModule } from '@angular/router'; +import { GfPremiumIndicatorModule } from '@ghostfolio/ui/premium-indicator'; @Component({ host: { class: 'page' }, + imports: [GfPremiumIndicatorModule, MatButtonModule, RouterModule], selector: 'gf-black-friday-2022-page', + standalone: true, templateUrl: './black-friday-2022-page.html' }) export class BlackFriday2022PageComponent { diff --git a/apps/client/src/app/pages/blog/2022/11/black-friday-2022/black-friday-2022-page.module.ts b/apps/client/src/app/pages/blog/2022/11/black-friday-2022/black-friday-2022-page.module.ts deleted file mode 100644 index 93964e7a..00000000 --- a/apps/client/src/app/pages/blog/2022/11/black-friday-2022/black-friday-2022-page.module.ts +++ /dev/null @@ -1,21 +0,0 @@ -import { CommonModule } from '@angular/common'; -import { CUSTOM_ELEMENTS_SCHEMA, NgModule } from '@angular/core'; -import { MatButtonModule } from '@angular/material/button'; -import { RouterModule } from '@angular/router'; -import { GfPremiumIndicatorModule } from '@ghostfolio/ui/premium-indicator'; - -import { BlackFriday2022RoutingModule } from './black-friday-2022-page-routing.module'; -import { BlackFriday2022PageComponent } from './black-friday-2022-page.component'; - -@NgModule({ - declarations: [BlackFriday2022PageComponent], - imports: [ - BlackFriday2022RoutingModule, - CommonModule, - GfPremiumIndicatorModule, - MatButtonModule, - RouterModule - ], - schemas: [CUSTOM_ELEMENTS_SCHEMA] -}) -export class BlackFriday2022PageModule {} diff --git a/apps/client/src/app/pages/blog/2022/12/the-importance-of-tracking-your-personal-finances/the-importance-of-tracking-your-personal-finances-page-routing.module.ts b/apps/client/src/app/pages/blog/2022/12/the-importance-of-tracking-your-personal-finances/the-importance-of-tracking-your-personal-finances-page-routing.module.ts deleted file mode 100644 index 7fbf38de..00000000 --- a/apps/client/src/app/pages/blog/2022/12/the-importance-of-tracking-your-personal-finances/the-importance-of-tracking-your-personal-finances-page-routing.module.ts +++ /dev/null @@ -1,20 +0,0 @@ -import { NgModule } from '@angular/core'; -import { RouterModule, Routes } from '@angular/router'; -import { AuthGuard } from '@ghostfolio/client/core/auth.guard'; - -import { TheImportanceOfTrackingYourPersonalFinancesPageComponent } from './the-importance-of-tracking-your-personal-finances-page.component'; - -const routes: Routes = [ - { - canActivate: [AuthGuard], - component: TheImportanceOfTrackingYourPersonalFinancesPageComponent, - path: '', - title: 'The importance of tracking your personal finances' - } -]; - -@NgModule({ - imports: [RouterModule.forChild(routes)], - exports: [RouterModule] -}) -export class TheImportanceOfTrackingYourPersonalFinancesRoutingModule {} diff --git a/apps/client/src/app/pages/blog/2022/12/the-importance-of-tracking-your-personal-finances/the-importance-of-tracking-your-personal-finances-page.component.ts b/apps/client/src/app/pages/blog/2022/12/the-importance-of-tracking-your-personal-finances/the-importance-of-tracking-your-personal-finances-page.component.ts index e76ad0fa..91e3a305 100644 --- a/apps/client/src/app/pages/blog/2022/12/the-importance-of-tracking-your-personal-finances/the-importance-of-tracking-your-personal-finances-page.component.ts +++ b/apps/client/src/app/pages/blog/2022/12/the-importance-of-tracking-your-personal-finances/the-importance-of-tracking-your-personal-finances-page.component.ts @@ -1,8 +1,12 @@ import { Component } from '@angular/core'; +import { MatButtonModule } from '@angular/material/button'; +import { RouterModule } from '@angular/router'; @Component({ host: { class: 'page' }, + imports: [MatButtonModule, RouterModule], selector: 'gf-the-importance-of-tracking-your-personal-finances-page', + standalone: true, templateUrl: './the-importance-of-tracking-your-personal-finances-page.html' }) export class TheImportanceOfTrackingYourPersonalFinancesPageComponent {} diff --git a/apps/client/src/app/pages/blog/2022/12/the-importance-of-tracking-your-personal-finances/the-importance-of-tracking-your-personal-finances-page.module.ts b/apps/client/src/app/pages/blog/2022/12/the-importance-of-tracking-your-personal-finances/the-importance-of-tracking-your-personal-finances-page.module.ts deleted file mode 100644 index f383347d..00000000 --- a/apps/client/src/app/pages/blog/2022/12/the-importance-of-tracking-your-personal-finances/the-importance-of-tracking-your-personal-finances-page.module.ts +++ /dev/null @@ -1,19 +0,0 @@ -import { CommonModule } from '@angular/common'; -import { CUSTOM_ELEMENTS_SCHEMA, NgModule } from '@angular/core'; -import { MatButtonModule } from '@angular/material/button'; -import { RouterModule } from '@angular/router'; - -import { TheImportanceOfTrackingYourPersonalFinancesRoutingModule } from './the-importance-of-tracking-your-personal-finances-page-routing.module'; -import { TheImportanceOfTrackingYourPersonalFinancesPageComponent } from './the-importance-of-tracking-your-personal-finances-page.component'; - -@NgModule({ - declarations: [TheImportanceOfTrackingYourPersonalFinancesPageComponent], - imports: [ - CommonModule, - MatButtonModule, - RouterModule, - TheImportanceOfTrackingYourPersonalFinancesRoutingModule - ], - schemas: [CUSTOM_ELEMENTS_SCHEMA] -}) -export class TheImportanceOfTrackingYourPersonalFinancesPageModule {} diff --git a/apps/client/src/app/pages/blog/2023/01/ghostfolio-auf-sackgeld-vorgestellt/ghostfolio-auf-sackgeld-vorgestellt-page-routing.module.ts b/apps/client/src/app/pages/blog/2023/01/ghostfolio-auf-sackgeld-vorgestellt/ghostfolio-auf-sackgeld-vorgestellt-page-routing.module.ts deleted file mode 100644 index fa3ad2df..00000000 --- a/apps/client/src/app/pages/blog/2023/01/ghostfolio-auf-sackgeld-vorgestellt/ghostfolio-auf-sackgeld-vorgestellt-page-routing.module.ts +++ /dev/null @@ -1,20 +0,0 @@ -import { NgModule } from '@angular/core'; -import { RouterModule, Routes } from '@angular/router'; -import { AuthGuard } from '@ghostfolio/client/core/auth.guard'; - -import { GhostfolioAufSackgeldVorgestelltPageComponent } from './ghostfolio-auf-sackgeld-vorgestellt-page.component'; - -const routes: Routes = [ - { - canActivate: [AuthGuard], - component: GhostfolioAufSackgeldVorgestelltPageComponent, - path: '', - title: 'Ghostfolio auf Sackgeld.com vorgestellt' - } -]; - -@NgModule({ - imports: [RouterModule.forChild(routes)], - exports: [RouterModule] -}) -export class GhostfolioAufSackgeldVorgestelltPageRoutingModule {} diff --git a/apps/client/src/app/pages/blog/2023/01/ghostfolio-auf-sackgeld-vorgestellt/ghostfolio-auf-sackgeld-vorgestellt-page.component.ts b/apps/client/src/app/pages/blog/2023/01/ghostfolio-auf-sackgeld-vorgestellt/ghostfolio-auf-sackgeld-vorgestellt-page.component.ts index c585705a..8366e81d 100644 --- a/apps/client/src/app/pages/blog/2023/01/ghostfolio-auf-sackgeld-vorgestellt/ghostfolio-auf-sackgeld-vorgestellt-page.component.ts +++ b/apps/client/src/app/pages/blog/2023/01/ghostfolio-auf-sackgeld-vorgestellt/ghostfolio-auf-sackgeld-vorgestellt-page.component.ts @@ -1,8 +1,12 @@ import { Component } from '@angular/core'; +import { MatButtonModule } from '@angular/material/button'; +import { RouterModule } from '@angular/router'; @Component({ host: { class: 'page' }, + imports: [MatButtonModule, RouterModule], selector: 'gf-ghostfolio-auf-sackgeld-vorgestellt-page', + standalone: true, templateUrl: './ghostfolio-auf-sackgeld-vorgestellt-page.html' }) export class GhostfolioAufSackgeldVorgestelltPageComponent {} diff --git a/apps/client/src/app/pages/blog/2023/01/ghostfolio-auf-sackgeld-vorgestellt/ghostfolio-auf-sackgeld-vorgestellt-page.module.ts b/apps/client/src/app/pages/blog/2023/01/ghostfolio-auf-sackgeld-vorgestellt/ghostfolio-auf-sackgeld-vorgestellt-page.module.ts deleted file mode 100644 index 8cc63ce8..00000000 --- a/apps/client/src/app/pages/blog/2023/01/ghostfolio-auf-sackgeld-vorgestellt/ghostfolio-auf-sackgeld-vorgestellt-page.module.ts +++ /dev/null @@ -1,17 +0,0 @@ -import { CommonModule } from '@angular/common'; -import { CUSTOM_ELEMENTS_SCHEMA, NgModule } from '@angular/core'; -import { RouterModule } from '@angular/router'; - -import { GhostfolioAufSackgeldVorgestelltPageRoutingModule } from './ghostfolio-auf-sackgeld-vorgestellt-page-routing.module'; -import { GhostfolioAufSackgeldVorgestelltPageComponent } from './ghostfolio-auf-sackgeld-vorgestellt-page.component'; - -@NgModule({ - declarations: [GhostfolioAufSackgeldVorgestelltPageComponent], - imports: [ - CommonModule, - GhostfolioAufSackgeldVorgestelltPageRoutingModule, - RouterModule - ], - schemas: [CUSTOM_ELEMENTS_SCHEMA] -}) -export class GhostfolioAufSackgeldVorgestelltPageModule {} diff --git a/apps/client/src/app/pages/blog/2023/02/ghostfolio-meets-umbrel/ghostfolio-meets-umbrel-page-routing.module.ts b/apps/client/src/app/pages/blog/2023/02/ghostfolio-meets-umbrel/ghostfolio-meets-umbrel-page-routing.module.ts deleted file mode 100644 index c4905279..00000000 --- a/apps/client/src/app/pages/blog/2023/02/ghostfolio-meets-umbrel/ghostfolio-meets-umbrel-page-routing.module.ts +++ /dev/null @@ -1,20 +0,0 @@ -import { NgModule } from '@angular/core'; -import { RouterModule, Routes } from '@angular/router'; -import { AuthGuard } from '@ghostfolio/client/core/auth.guard'; - -import { GhostfolioMeetsUmbrelPageComponent } from './ghostfolio-meets-umbrel-page.component'; - -const routes: Routes = [ - { - canActivate: [AuthGuard], - component: GhostfolioMeetsUmbrelPageComponent, - path: '', - title: 'Ghostfolio meets Umbrel' - } -]; - -@NgModule({ - imports: [RouterModule.forChild(routes)], - exports: [RouterModule] -}) -export class GhostfolioMeetsUmbrelPageRoutingModule {} diff --git a/apps/client/src/app/pages/blog/2023/02/ghostfolio-meets-umbrel/ghostfolio-meets-umbrel-page.component.ts b/apps/client/src/app/pages/blog/2023/02/ghostfolio-meets-umbrel/ghostfolio-meets-umbrel-page.component.ts index 03d8a931..643f4704 100644 --- a/apps/client/src/app/pages/blog/2023/02/ghostfolio-meets-umbrel/ghostfolio-meets-umbrel-page.component.ts +++ b/apps/client/src/app/pages/blog/2023/02/ghostfolio-meets-umbrel/ghostfolio-meets-umbrel-page.component.ts @@ -1,8 +1,12 @@ import { Component } from '@angular/core'; +import { MatButtonModule } from '@angular/material/button'; +import { RouterModule } from '@angular/router'; @Component({ host: { class: 'page' }, + imports: [MatButtonModule, RouterModule], selector: 'gf-ghostfolio-meets-umbrel-page', + standalone: true, templateUrl: './ghostfolio-meets-umbrel-page.html' }) export class GhostfolioMeetsUmbrelPageComponent {} diff --git a/apps/client/src/app/pages/blog/2023/02/ghostfolio-meets-umbrel/ghostfolio-meets-umbrel-page.module.ts b/apps/client/src/app/pages/blog/2023/02/ghostfolio-meets-umbrel/ghostfolio-meets-umbrel-page.module.ts deleted file mode 100644 index b15ca1c2..00000000 --- a/apps/client/src/app/pages/blog/2023/02/ghostfolio-meets-umbrel/ghostfolio-meets-umbrel-page.module.ts +++ /dev/null @@ -1,13 +0,0 @@ -import { CommonModule } from '@angular/common'; -import { CUSTOM_ELEMENTS_SCHEMA, NgModule } from '@angular/core'; -import { RouterModule } from '@angular/router'; - -import { GhostfolioMeetsUmbrelPageRoutingModule } from './ghostfolio-meets-umbrel-page-routing.module'; -import { GhostfolioMeetsUmbrelPageComponent } from './ghostfolio-meets-umbrel-page.component'; - -@NgModule({ - declarations: [GhostfolioMeetsUmbrelPageComponent], - imports: [CommonModule, GhostfolioMeetsUmbrelPageRoutingModule, RouterModule], - schemas: [CUSTOM_ELEMENTS_SCHEMA] -}) -export class GhostfolioMeetsUmbrelPageModule {} diff --git a/apps/client/src/app/pages/blog/2023/03/1000-stars-on-github/1000-stars-on-github-page-routing.module.ts b/apps/client/src/app/pages/blog/2023/03/1000-stars-on-github/1000-stars-on-github-page-routing.module.ts deleted file mode 100644 index f5d2fca4..00000000 --- a/apps/client/src/app/pages/blog/2023/03/1000-stars-on-github/1000-stars-on-github-page-routing.module.ts +++ /dev/null @@ -1,20 +0,0 @@ -import { NgModule } from '@angular/core'; -import { RouterModule, Routes } from '@angular/router'; -import { AuthGuard } from '@ghostfolio/client/core/auth.guard'; - -import { ThousandStarsOnGitHubPageComponent } from './1000-stars-on-github-page.component'; - -const routes: Routes = [ - { - canActivate: [AuthGuard], - component: ThousandStarsOnGitHubPageComponent, - path: '', - title: 'Ghostfolio reaches 1’000 Stars on GitHub' - } -]; - -@NgModule({ - imports: [RouterModule.forChild(routes)], - exports: [RouterModule] -}) -export class ThousandStarsOnGitHubRoutingModule {} diff --git a/apps/client/src/app/pages/blog/2023/03/1000-stars-on-github/1000-stars-on-github-page.component.ts b/apps/client/src/app/pages/blog/2023/03/1000-stars-on-github/1000-stars-on-github-page.component.ts index f1faf80b..5e6ce6c0 100644 --- a/apps/client/src/app/pages/blog/2023/03/1000-stars-on-github/1000-stars-on-github-page.component.ts +++ b/apps/client/src/app/pages/blog/2023/03/1000-stars-on-github/1000-stars-on-github-page.component.ts @@ -1,8 +1,12 @@ import { Component } from '@angular/core'; +import { MatButtonModule } from '@angular/material/button'; +import { RouterModule } from '@angular/router'; @Component({ host: { class: 'page' }, + imports: [MatButtonModule, RouterModule], selector: 'gf-1000-stars-on-github-page', + standalone: true, templateUrl: './1000-stars-on-github-page.html' }) export class ThousandStarsOnGitHubPageComponent {} diff --git a/apps/client/src/app/pages/blog/2023/03/1000-stars-on-github/1000-stars-on-github-page.module.ts b/apps/client/src/app/pages/blog/2023/03/1000-stars-on-github/1000-stars-on-github-page.module.ts deleted file mode 100644 index 132d35ec..00000000 --- a/apps/client/src/app/pages/blog/2023/03/1000-stars-on-github/1000-stars-on-github-page.module.ts +++ /dev/null @@ -1,13 +0,0 @@ -import { CommonModule } from '@angular/common'; -import { CUSTOM_ELEMENTS_SCHEMA, NgModule } from '@angular/core'; -import { RouterModule } from '@angular/router'; - -import { ThousandStarsOnGitHubRoutingModule } from './1000-stars-on-github-page-routing.module'; -import { ThousandStarsOnGitHubPageComponent } from './1000-stars-on-github-page.component'; - -@NgModule({ - declarations: [ThousandStarsOnGitHubPageComponent], - imports: [CommonModule, ThousandStarsOnGitHubRoutingModule, RouterModule], - schemas: [CUSTOM_ELEMENTS_SCHEMA] -}) -export class ThousandStarsOnGitHubPageModule {} diff --git a/apps/client/src/app/pages/blog/2023/05/unlock-your-financial-potential-with-ghostfolio/unlock-your-financial-potential-with-ghostfolio-page-routing.module.ts b/apps/client/src/app/pages/blog/2023/05/unlock-your-financial-potential-with-ghostfolio/unlock-your-financial-potential-with-ghostfolio-page-routing.module.ts deleted file mode 100644 index 355e8b71..00000000 --- a/apps/client/src/app/pages/blog/2023/05/unlock-your-financial-potential-with-ghostfolio/unlock-your-financial-potential-with-ghostfolio-page-routing.module.ts +++ /dev/null @@ -1,20 +0,0 @@ -import { NgModule } from '@angular/core'; -import { RouterModule, Routes } from '@angular/router'; -import { AuthGuard } from '@ghostfolio/client/core/auth.guard'; - -import { UnlockYourFinancialPotentialWithGhostfolioPageComponent } from './unlock-your-financial-potential-with-ghostfolio-page.component'; - -const routes: Routes = [ - { - canActivate: [AuthGuard], - component: UnlockYourFinancialPotentialWithGhostfolioPageComponent, - path: '', - title: 'Unlock your Financial Potential with Ghostfolio' - } -]; - -@NgModule({ - imports: [RouterModule.forChild(routes)], - exports: [RouterModule] -}) -export class UnlockYourFinancialPotentialWithGhostfolioRoutingModule {} diff --git a/apps/client/src/app/pages/blog/2023/05/unlock-your-financial-potential-with-ghostfolio/unlock-your-financial-potential-with-ghostfolio-page.component.ts b/apps/client/src/app/pages/blog/2023/05/unlock-your-financial-potential-with-ghostfolio/unlock-your-financial-potential-with-ghostfolio-page.component.ts index 56895ef5..c694ba8f 100644 --- a/apps/client/src/app/pages/blog/2023/05/unlock-your-financial-potential-with-ghostfolio/unlock-your-financial-potential-with-ghostfolio-page.component.ts +++ b/apps/client/src/app/pages/blog/2023/05/unlock-your-financial-potential-with-ghostfolio/unlock-your-financial-potential-with-ghostfolio-page.component.ts @@ -1,8 +1,12 @@ import { Component } from '@angular/core'; +import { MatButtonModule } from '@angular/material/button'; +import { RouterModule } from '@angular/router'; @Component({ host: { class: 'page' }, + imports: [MatButtonModule, RouterModule], selector: 'gf-unlock-your-financial-potential-with-ghostfolio-page', + standalone: true, templateUrl: './unlock-your-financial-potential-with-ghostfolio-page.html' }) export class UnlockYourFinancialPotentialWithGhostfolioPageComponent {} diff --git a/apps/client/src/app/pages/blog/2023/05/unlock-your-financial-potential-with-ghostfolio/unlock-your-financial-potential-with-ghostfolio-page.module.ts b/apps/client/src/app/pages/blog/2023/05/unlock-your-financial-potential-with-ghostfolio/unlock-your-financial-potential-with-ghostfolio-page.module.ts deleted file mode 100644 index 7aeb7f1a..00000000 --- a/apps/client/src/app/pages/blog/2023/05/unlock-your-financial-potential-with-ghostfolio/unlock-your-financial-potential-with-ghostfolio-page.module.ts +++ /dev/null @@ -1,19 +0,0 @@ -import { CommonModule } from '@angular/common'; -import { CUSTOM_ELEMENTS_SCHEMA, NgModule } from '@angular/core'; -import { MatButtonModule } from '@angular/material/button'; -import { RouterModule } from '@angular/router'; - -import { UnlockYourFinancialPotentialWithGhostfolioRoutingModule } from './unlock-your-financial-potential-with-ghostfolio-page-routing.module'; -import { UnlockYourFinancialPotentialWithGhostfolioPageComponent } from './unlock-your-financial-potential-with-ghostfolio-page.component'; - -@NgModule({ - declarations: [UnlockYourFinancialPotentialWithGhostfolioPageComponent], - imports: [ - CommonModule, - MatButtonModule, - RouterModule, - UnlockYourFinancialPotentialWithGhostfolioRoutingModule - ], - schemas: [CUSTOM_ELEMENTS_SCHEMA] -}) -export class UnlockYourFinancialPotentialWithGhostfolioPageModule {} diff --git a/apps/client/src/app/pages/blog/2023/07/exploring-the-path-to-fire/exploring-the-path-to-fire-page-routing.module.ts b/apps/client/src/app/pages/blog/2023/07/exploring-the-path-to-fire/exploring-the-path-to-fire-page-routing.module.ts deleted file mode 100644 index eb113f1f..00000000 --- a/apps/client/src/app/pages/blog/2023/07/exploring-the-path-to-fire/exploring-the-path-to-fire-page-routing.module.ts +++ /dev/null @@ -1,20 +0,0 @@ -import { NgModule } from '@angular/core'; -import { RouterModule, Routes } from '@angular/router'; -import { AuthGuard } from '@ghostfolio/client/core/auth.guard'; - -import { ExploringThePathToFirePageComponent } from './exploring-the-path-to-fire-page.component'; - -const routes: Routes = [ - { - canActivate: [AuthGuard], - component: ExploringThePathToFirePageComponent, - path: '', - title: 'Exploring the Path to FIRE' - } -]; - -@NgModule({ - imports: [RouterModule.forChild(routes)], - exports: [RouterModule] -}) -export class ExploringThePathToFireRoutingModule {} diff --git a/apps/client/src/app/pages/blog/2023/07/exploring-the-path-to-fire/exploring-the-path-to-fire-page.component.ts b/apps/client/src/app/pages/blog/2023/07/exploring-the-path-to-fire/exploring-the-path-to-fire-page.component.ts index 11f46cf0..16f0d815 100644 --- a/apps/client/src/app/pages/blog/2023/07/exploring-the-path-to-fire/exploring-the-path-to-fire-page.component.ts +++ b/apps/client/src/app/pages/blog/2023/07/exploring-the-path-to-fire/exploring-the-path-to-fire-page.component.ts @@ -1,8 +1,12 @@ import { Component } from '@angular/core'; +import { MatButtonModule } from '@angular/material/button'; +import { RouterModule } from '@angular/router'; @Component({ host: { class: 'page' }, + imports: [MatButtonModule, RouterModule], selector: 'gf-exploring-the-path-to-fire-page-page', + standalone: true, templateUrl: './exploring-the-path-to-fire-page.html' }) export class ExploringThePathToFirePageComponent {} diff --git a/apps/client/src/app/pages/blog/2023/07/exploring-the-path-to-fire/exploring-the-path-to-fire-page.module.ts b/apps/client/src/app/pages/blog/2023/07/exploring-the-path-to-fire/exploring-the-path-to-fire-page.module.ts deleted file mode 100644 index 6d3dae44..00000000 --- a/apps/client/src/app/pages/blog/2023/07/exploring-the-path-to-fire/exploring-the-path-to-fire-page.module.ts +++ /dev/null @@ -1,19 +0,0 @@ -import { CommonModule } from '@angular/common'; -import { CUSTOM_ELEMENTS_SCHEMA, NgModule } from '@angular/core'; -import { MatButtonModule } from '@angular/material/button'; -import { RouterModule } from '@angular/router'; - -import { ExploringThePathToFireRoutingModule } from './exploring-the-path-to-fire-page-routing.module'; -import { ExploringThePathToFirePageComponent } from './exploring-the-path-to-fire-page.component'; - -@NgModule({ - declarations: [ExploringThePathToFirePageComponent], - imports: [ - CommonModule, - ExploringThePathToFireRoutingModule, - MatButtonModule, - RouterModule - ], - schemas: [CUSTOM_ELEMENTS_SCHEMA] -}) -export class ExploringThePathToFirePageModule {} diff --git a/apps/client/src/app/pages/blog/blog-page-routing.module.ts b/apps/client/src/app/pages/blog/blog-page-routing.module.ts index b65a7bd8..4c41b423 100644 --- a/apps/client/src/app/pages/blog/blog-page-routing.module.ts +++ b/apps/client/src/app/pages/blog/blog-page-routing.module.ts @@ -10,6 +10,132 @@ const routes: Routes = [ component: BlogPageComponent, path: '', title: $localize`Blog` + }, + { + canActivate: [AuthGuard], + path: '2021/07/hallo-ghostfolio', + loadComponent: () => + import('./2021/07/hallo-ghostfolio/hallo-ghostfolio-page.component').then( + (c) => c.HalloGhostfolioPageComponent + ), + title: 'Hallo Ghostfolio' + }, + { + canActivate: [AuthGuard], + path: '2021/07/hello-ghostfolio', + loadComponent: () => + import('./2021/07/hello-ghostfolio/hello-ghostfolio-page.component').then( + (c) => c.HelloGhostfolioPageComponent + ), + title: 'Hello Ghostfolio' + }, + { + canActivate: [AuthGuard], + path: '2022/01/ghostfolio-first-months-in-open-source', + loadComponent: () => + import( + './2022/01/first-months-in-open-source/first-months-in-open-source-page.component' + ).then((c) => c.FirstMonthsInOpenSourcePageComponent), + title: 'First months in Open Source' + }, + { + canActivate: [AuthGuard], + path: '2022/07/ghostfolio-meets-internet-identity', + loadComponent: () => + import( + './2022/07/ghostfolio-meets-internet-identity/ghostfolio-meets-internet-identity-page.component' + ).then((c) => c.GhostfolioMeetsInternetIdentityPageComponent), + title: 'Ghostfolio meets Internet Identity' + }, + { + canActivate: [AuthGuard], + path: '2022/07/how-do-i-get-my-finances-in-order', + loadComponent: () => + import( + './2022/07/how-do-i-get-my-finances-in-order/how-do-i-get-my-finances-in-order-page.component' + ).then((c) => c.HowDoIGetMyFinancesInOrderPageComponent), + title: 'How do I get my finances in order?' + }, + { + canActivate: [AuthGuard], + path: '2022/08/500-stars-on-github', + loadComponent: () => + import( + './2022/08/500-stars-on-github/500-stars-on-github-page.component' + ).then((c) => c.FiveHundredStarsOnGitHubPageComponent), + title: '500 Stars on GitHub' + }, + { + canActivate: [AuthGuard], + path: '2022/10/hacktoberfest-2022', + loadComponent: () => + import( + './2022/10/hacktoberfest-2022/hacktoberfest-2022-page.component' + ).then((c) => c.Hacktoberfest2022PageComponent), + title: 'Hacktoberfest 2022' + }, + { + canActivate: [AuthGuard], + path: '2022/11/black-friday-2022', + loadComponent: () => + import( + './2022/11/black-friday-2022/black-friday-2022-page.component' + ).then((c) => c.BlackFriday2022PageComponent), + title: 'Black Friday 2022' + }, + { + canActivate: [AuthGuard], + path: '2022/12/the-importance-of-tracking-your-personal-finances', + loadComponent: () => + import( + './2022/12/the-importance-of-tracking-your-personal-finances/the-importance-of-tracking-your-personal-finances-page.component' + ).then((c) => c.TheImportanceOfTrackingYourPersonalFinancesPageComponent), + title: 'The importance of tracking your personal finances' + }, + { + canActivate: [AuthGuard], + path: '2023/01/ghostfolio-auf-sackgeld-vorgestellt', + loadComponent: () => + import( + './2023/01/ghostfolio-auf-sackgeld-vorgestellt/ghostfolio-auf-sackgeld-vorgestellt-page.component' + ).then((c) => c.GhostfolioAufSackgeldVorgestelltPageComponent), + title: 'Ghostfolio auf Sackgeld.com vorgestellt' + }, + { + canActivate: [AuthGuard], + path: '2023/02/ghostfolio-meets-umbrel', + loadComponent: () => + import( + './2023/02/ghostfolio-meets-umbrel/ghostfolio-meets-umbrel-page.component' + ).then((c) => c.GhostfolioMeetsUmbrelPageComponent), + title: 'Ghostfolio meets Umbrel' + }, + { + canActivate: [AuthGuard], + path: '2023/03/ghostfolio-reaches-1000-stars-on-github', + loadComponent: () => + import( + './2023/03/1000-stars-on-github/1000-stars-on-github-page.component' + ).then((c) => c.ThousandStarsOnGitHubPageComponent), + title: 'Ghostfolio reaches 1’000 Stars on GitHub' + }, + { + canActivate: [AuthGuard], + path: '2023/05/unlock-your-financial-potential-with-ghostfolio', + loadComponent: () => + import( + './2023/05/unlock-your-financial-potential-with-ghostfolio/unlock-your-financial-potential-with-ghostfolio-page.component' + ).then((c) => c.UnlockYourFinancialPotentialWithGhostfolioPageComponent), + title: 'Unlock your Financial Potential with Ghostfolio' + }, + { + canActivate: [AuthGuard], + path: '2023/07/exploring-the-path-to-fire', + loadComponent: () => + import( + './2023/07/exploring-the-path-to-fire/exploring-the-path-to-fire-page.component' + ).then((c) => c.ExploringThePathToFirePageComponent), + title: 'Exploring the Path to FIRE' } ];