From 2aca447f9e0ba46585710c2b9da94177c3356d49 Mon Sep 17 00:00:00 2001 From: softsimon Date: Thu, 2 Jul 2020 17:56:15 +0700 Subject: [PATCH] Adding /status-view --- frontend/src/app/app-routing.module.ts | 21 +++++-------------- frontend/src/app/app.module.ts | 2 ++ .../status-view/status-view.component.html | 2 ++ .../status-view/status-view.component.ts | 9 ++++++++ 4 files changed, 18 insertions(+), 16 deletions(-) create mode 100644 frontend/src/app/components/status-view/status-view.component.html create mode 100644 frontend/src/app/components/status-view/status-view.component.ts diff --git a/frontend/src/app/app-routing.module.ts b/frontend/src/app/app-routing.module.ts index 3a2c1d62e..dc8886c31 100644 --- a/frontend/src/app/app-routing.module.ts +++ b/frontend/src/app/app-routing.module.ts @@ -12,6 +12,7 @@ import { MempoolBlockComponent } from './components/mempool-block/mempool-block. import { LatestBlocksComponent } from './components/latest-blocks/latest-blocks.component'; import { AssetComponent } from './components/asset/asset.component'; import { AssetsComponent } from './assets/assets.component'; +import { StatusViewComponent } from './components/status-view/status-view.component'; const routes: Routes = [ { @@ -53,14 +54,6 @@ const routes: Routes = [ children: [], component: AddressComponent }, - { - path: 'asset/:id', - component: AssetComponent - }, - { - path: 'assets', - component: AssetsComponent, - }, ], }, { @@ -106,14 +99,6 @@ const routes: Routes = [ children: [], component: AddressComponent }, - { - path: 'asset/:id', - component: AssetComponent - }, - { - path: 'assets', - component: AssetsComponent, - }, { path: '**', redirectTo: '' @@ -230,6 +215,10 @@ const routes: Routes = [ path: 'testnet-tv', component: TelevisionComponent, }, + { + path: 'status-view', + component: StatusViewComponent + }, { path: '**', redirectTo: '' diff --git a/frontend/src/app/app.module.ts b/frontend/src/app/app.module.ts index 93bea091f..72fd39741 100644 --- a/frontend/src/app/app.module.ts +++ b/frontend/src/app/app.module.ts @@ -51,6 +51,7 @@ import { AssetsComponent } from './assets/assets.component'; import { RelativeUrlPipe } from './pipes/relative-url/relative-url.pipe'; import { MinerComponent } from './pipes/miner/miner.component'; import { Hex2asciiPipe } from './pipes/hex2ascii/hex2ascii.pipe'; +import { StatusViewComponent } from './components/status-view/status-view.component'; @NgModule({ declarations: [ @@ -92,6 +93,7 @@ import { Hex2asciiPipe } from './pipes/hex2ascii/hex2ascii.pipe'; RelativeUrlPipe, MinerComponent, Hex2asciiPipe, + StatusViewComponent, ], imports: [ BrowserModule, diff --git a/frontend/src/app/components/status-view/status-view.component.html b/frontend/src/app/components/status-view/status-view.component.html new file mode 100644 index 000000000..ec91e37a4 --- /dev/null +++ b/frontend/src/app/components/status-view/status-view.component.html @@ -0,0 +1,2 @@ + + diff --git a/frontend/src/app/components/status-view/status-view.component.ts b/frontend/src/app/components/status-view/status-view.component.ts new file mode 100644 index 000000000..c7c821184 --- /dev/null +++ b/frontend/src/app/components/status-view/status-view.component.ts @@ -0,0 +1,9 @@ +import { Component } from '@angular/core'; + +@Component({ + selector: 'app-status-view', + templateUrl: './status-view.component.html' +}) +export class StatusViewComponent { + constructor() { } +}