mirror of https://github.com/ghostfolio/ghostfolio
committed by
GitHub
10 changed files with 89 additions and 135 deletions
@ -1,22 +0,0 @@ |
|||||
import { AuthGuard } from '@ghostfolio/client/core/auth.guard'; |
|
||||
import { internalRoutes } from '@ghostfolio/common/routes/routes'; |
|
||||
|
|
||||
import { NgModule } from '@angular/core'; |
|
||||
import { RouterModule, Routes } from '@angular/router'; |
|
||||
|
|
||||
import { AccountsPageComponent } from './accounts-page.component'; |
|
||||
|
|
||||
const routes: Routes = [ |
|
||||
{ |
|
||||
canActivate: [AuthGuard], |
|
||||
component: AccountsPageComponent, |
|
||||
path: '', |
|
||||
title: internalRoutes.accounts.title |
|
||||
} |
|
||||
]; |
|
||||
|
|
||||
@NgModule({ |
|
||||
imports: [RouterModule.forChild(routes)], |
|
||||
exports: [RouterModule] |
|
||||
}) |
|
||||
export class AccountsPageRoutingModule {} |
|
@ -1,30 +0,0 @@ |
|||||
import { GfAccountDetailDialogModule } from '@ghostfolio/client/components/account-detail-dialog/account-detail-dialog.module'; |
|
||||
import { GfAccountsTableModule } from '@ghostfolio/client/components/accounts-table/accounts-table.module'; |
|
||||
|
|
||||
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 { IonIcon } from '@ionic/angular/standalone'; |
|
||||
|
|
||||
import { AccountsPageRoutingModule } from './accounts-page-routing.module'; |
|
||||
import { AccountsPageComponent } from './accounts-page.component'; |
|
||||
import { GfCreateOrUpdateAccountDialogModule } from './create-or-update-account-dialog/create-or-update-account-dialog.module'; |
|
||||
import { GfTransferBalanceDialogModule } from './transfer-balance/transfer-balance-dialog.module'; |
|
||||
|
|
||||
@NgModule({ |
|
||||
declarations: [AccountsPageComponent], |
|
||||
imports: [ |
|
||||
AccountsPageRoutingModule, |
|
||||
CommonModule, |
|
||||
GfAccountDetailDialogModule, |
|
||||
GfAccountsTableModule, |
|
||||
GfCreateOrUpdateAccountDialogModule, |
|
||||
GfTransferBalanceDialogModule, |
|
||||
IonIcon, |
|
||||
MatButtonModule, |
|
||||
RouterModule |
|
||||
], |
|
||||
schemas: [CUSTOM_ELEMENTS_SCHEMA] |
|
||||
}) |
|
||||
export class AccountsPageModule {} |
|
@ -0,0 +1,15 @@ |
|||||
|
import { AuthGuard } from '@ghostfolio/client/core/auth.guard'; |
||||
|
import { internalRoutes } from '@ghostfolio/common/routes/routes'; |
||||
|
|
||||
|
import { Routes } from '@angular/router'; |
||||
|
|
||||
|
import { GfAccountsPageComponent } from './accounts-page.component'; |
||||
|
|
||||
|
export const routes: Routes = [ |
||||
|
{ |
||||
|
canActivate: [AuthGuard], |
||||
|
component: GfAccountsPageComponent, |
||||
|
path: '', |
||||
|
title: internalRoutes.accounts.title |
||||
|
} |
||||
|
]; |
@ -1,32 +0,0 @@ |
|||||
import { GfCurrencySelectorComponent } from '@ghostfolio/ui/currency-selector'; |
|
||||
import { GfEntityLogoComponent } from '@ghostfolio/ui/entity-logo'; |
|
||||
|
|
||||
import { CommonModule } from '@angular/common'; |
|
||||
import { NgModule } from '@angular/core'; |
|
||||
import { FormsModule, ReactiveFormsModule } from '@angular/forms'; |
|
||||
import { MatAutocompleteModule } from '@angular/material/autocomplete'; |
|
||||
import { MatButtonModule } from '@angular/material/button'; |
|
||||
import { MatCheckboxModule } from '@angular/material/checkbox'; |
|
||||
import { MatDialogModule } from '@angular/material/dialog'; |
|
||||
import { MatFormFieldModule } from '@angular/material/form-field'; |
|
||||
import { MatInputModule } from '@angular/material/input'; |
|
||||
|
|
||||
import { CreateOrUpdateAccountDialog } from './create-or-update-account-dialog.component'; |
|
||||
|
|
||||
@NgModule({ |
|
||||
declarations: [CreateOrUpdateAccountDialog], |
|
||||
imports: [ |
|
||||
CommonModule, |
|
||||
FormsModule, |
|
||||
GfCurrencySelectorComponent, |
|
||||
GfEntityLogoComponent, |
|
||||
MatAutocompleteModule, |
|
||||
MatButtonModule, |
|
||||
MatCheckboxModule, |
|
||||
MatDialogModule, |
|
||||
MatFormFieldModule, |
|
||||
MatInputModule, |
|
||||
ReactiveFormsModule |
|
||||
] |
|
||||
}) |
|
||||
export class GfCreateOrUpdateAccountDialogModule {} |
|
@ -1,27 +0,0 @@ |
|||||
import { GfEntityLogoComponent } from '@ghostfolio/ui/entity-logo'; |
|
||||
|
|
||||
import { CommonModule } from '@angular/common'; |
|
||||
import { NgModule } from '@angular/core'; |
|
||||
import { ReactiveFormsModule } from '@angular/forms'; |
|
||||
import { MatButtonModule } from '@angular/material/button'; |
|
||||
import { MatDialogModule } from '@angular/material/dialog'; |
|
||||
import { MatFormFieldModule } from '@angular/material/form-field'; |
|
||||
import { MatInputModule } from '@angular/material/input'; |
|
||||
import { MatSelectModule } from '@angular/material/select'; |
|
||||
|
|
||||
import { TransferBalanceDialog } from './transfer-balance-dialog.component'; |
|
||||
|
|
||||
@NgModule({ |
|
||||
declarations: [TransferBalanceDialog], |
|
||||
imports: [ |
|
||||
CommonModule, |
|
||||
GfEntityLogoComponent, |
|
||||
MatButtonModule, |
|
||||
MatDialogModule, |
|
||||
MatFormFieldModule, |
|
||||
MatInputModule, |
|
||||
MatSelectModule, |
|
||||
ReactiveFormsModule |
|
||||
] |
|
||||
}) |
|
||||
export class GfTransferBalanceDialogModule {} |
|
Loading…
Reference in new issue