mirror of https://github.com/ghostfolio/ghostfolio
				
				
			
							committed by
							
								
								GitHub
							
						
					
				
				 12 changed files with 66 additions and 96 deletions
			
			
		@ -1,22 +0,0 @@ | 
				
			|||
import { CommonModule } from '@angular/common'; | 
				
			|||
import { CUSTOM_ELEMENTS_SCHEMA, NgModule } from '@angular/core'; | 
				
			|||
import { MatButtonModule } from '@angular/material/button'; | 
				
			|||
import { MatMenuModule } from '@angular/material/menu'; | 
				
			|||
import { IonIcon } from '@ionic/angular/standalone'; | 
				
			|||
import { NgxSkeletonLoaderModule } from 'ngx-skeleton-loader'; | 
				
			|||
 | 
				
			|||
import { RuleComponent } from './rule.component'; | 
				
			|||
 | 
				
			|||
@NgModule({ | 
				
			|||
  declarations: [RuleComponent], | 
				
			|||
  exports: [RuleComponent], | 
				
			|||
  imports: [ | 
				
			|||
    CommonModule, | 
				
			|||
    IonIcon, | 
				
			|||
    MatButtonModule, | 
				
			|||
    MatMenuModule, | 
				
			|||
    NgxSkeletonLoaderModule | 
				
			|||
  ], | 
				
			|||
  schemas: [CUSTOM_ELEMENTS_SCHEMA] | 
				
			|||
}) | 
				
			|||
export class GfRuleModule {} | 
				
			|||
@ -1,16 +0,0 @@ | 
				
			|||
import { GfRuleModule } from '@ghostfolio/client/components/rule/rule.module'; | 
				
			|||
 | 
				
			|||
import { CommonModule } from '@angular/common'; | 
				
			|||
import { CUSTOM_ELEMENTS_SCHEMA, NgModule } from '@angular/core'; | 
				
			|||
import { MatButtonModule } from '@angular/material/button'; | 
				
			|||
import { MatCardModule } from '@angular/material/card'; | 
				
			|||
 | 
				
			|||
import { RulesComponent } from './rules.component'; | 
				
			|||
 | 
				
			|||
@NgModule({ | 
				
			|||
  declarations: [RulesComponent], | 
				
			|||
  exports: [RulesComponent], | 
				
			|||
  imports: [CommonModule, GfRuleModule, MatButtonModule, MatCardModule], | 
				
			|||
  schemas: [CUSTOM_ELEMENTS_SCHEMA] | 
				
			|||
}) | 
				
			|||
export class GfRulesModule {} | 
				
			|||
@ -1,22 +0,0 @@ | 
				
			|||
import { AuthGuard } from '@ghostfolio/client/core/auth.guard'; | 
				
			|||
import { publicRoutes } from '@ghostfolio/common/routes/routes'; | 
				
			|||
 | 
				
			|||
import { NgModule } from '@angular/core'; | 
				
			|||
import { RouterModule, Routes } from '@angular/router'; | 
				
			|||
 | 
				
			|||
import { MarketsPageComponent } from './markets-page.component'; | 
				
			|||
 | 
				
			|||
const routes: Routes = [ | 
				
			|||
  { | 
				
			|||
    canActivate: [AuthGuard], | 
				
			|||
    component: MarketsPageComponent, | 
				
			|||
    path: '', | 
				
			|||
    title: publicRoutes.markets.title | 
				
			|||
  } | 
				
			|||
]; | 
				
			|||
 | 
				
			|||
@NgModule({ | 
				
			|||
  imports: [RouterModule.forChild(routes)], | 
				
			|||
  exports: [RouterModule] | 
				
			|||
}) | 
				
			|||
export class MarketsPageRoutingModule {} | 
				
			|||
@ -1,14 +0,0 @@ | 
				
			|||
import { HomeMarketComponent } from '@ghostfolio/client/components/home-market/home-market.component'; | 
				
			|||
 | 
				
			|||
import { CommonModule } from '@angular/common'; | 
				
			|||
import { CUSTOM_ELEMENTS_SCHEMA, NgModule } from '@angular/core'; | 
				
			|||
 | 
				
			|||
import { MarketsPageRoutingModule } from './markets-page-routing.module'; | 
				
			|||
import { MarketsPageComponent } from './markets-page.component'; | 
				
			|||
 | 
				
			|||
@NgModule({ | 
				
			|||
  declarations: [MarketsPageComponent], | 
				
			|||
  imports: [CommonModule, HomeMarketComponent, MarketsPageRoutingModule], | 
				
			|||
  schemas: [CUSTOM_ELEMENTS_SCHEMA] | 
				
			|||
}) | 
				
			|||
export class MarketsPageModule {} | 
				
			|||
@ -0,0 +1,24 @@ | 
				
			|||
import { AuthGuard } from '@ghostfolio/client/core/auth.guard'; | 
				
			|||
import { publicRoutes } from '@ghostfolio/common/routes/routes'; | 
				
			|||
 | 
				
			|||
import { Routes } from '@angular/router'; | 
				
			|||
 | 
				
			|||
import { GfMarketsPageComponent } from './markets-page.component'; | 
				
			|||
 | 
				
			|||
export const routes: Routes = [ | 
				
			|||
  { | 
				
			|||
    canActivate: [AuthGuard], | 
				
			|||
    children: [ | 
				
			|||
      { | 
				
			|||
        path: '', | 
				
			|||
        loadComponent: () => | 
				
			|||
          import('./markets-page.component').then( | 
				
			|||
            (m) => m.GfMarketsPageComponent | 
				
			|||
          ) | 
				
			|||
      } | 
				
			|||
    ], | 
				
			|||
    component: GfMarketsPageComponent, | 
				
			|||
    path: '', | 
				
			|||
    title: publicRoutes.markets.title | 
				
			|||
  } | 
				
			|||
]; | 
				
			|||
					Loading…
					
					
				
		Reference in new issue