2022-09-10 01:00:45 +00:00
|
|
|
import { NgModule } from '@angular/core';
|
|
|
|
import { RouterModule, Routes } from '@angular/router';
|
|
|
|
import { TransactionPreviewComponent } from './components/transaction/transaction-preview.component';
|
|
|
|
import { BlockPreviewComponent } from './components/block/block-preview.component';
|
|
|
|
import { AddressPreviewComponent } from './components/address/address-preview.component';
|
2022-09-17 22:27:37 +00:00
|
|
|
import { PoolPreviewComponent } from './components/pool/pool-preview.component';
|
2022-09-10 01:00:45 +00:00
|
|
|
import { MasterPagePreviewComponent } from './components/master-page-preview/master-page-preview.component';
|
|
|
|
|
|
|
|
const routes: Routes = [
|
|
|
|
{
|
|
|
|
path: '',
|
|
|
|
component: MasterPagePreviewComponent,
|
|
|
|
children: [
|
|
|
|
{
|
|
|
|
path: 'block/:id',
|
|
|
|
component: BlockPreviewComponent
|
|
|
|
},
|
|
|
|
{
|
|
|
|
path: 'address/:id',
|
|
|
|
children: [],
|
|
|
|
component: AddressPreviewComponent
|
|
|
|
},
|
|
|
|
{
|
|
|
|
path: 'tx/:id',
|
|
|
|
children: [],
|
|
|
|
component: TransactionPreviewComponent
|
|
|
|
},
|
2022-09-17 22:27:37 +00:00
|
|
|
{
|
|
|
|
path: 'mining/pool/:slug',
|
|
|
|
component: PoolPreviewComponent
|
|
|
|
},
|
2022-09-10 01:00:45 +00:00
|
|
|
{
|
|
|
|
path: 'lightning',
|
2023-11-10 04:58:07 +00:00
|
|
|
loadChildren: () => import('./lightning/lightning-previews.module').then(m => m.LightningPreviewsModule),
|
|
|
|
data: { preload: true },
|
2022-09-10 01:00:45 +00:00
|
|
|
},
|
|
|
|
],
|
|
|
|
}
|
|
|
|
];
|
|
|
|
|
|
|
|
@NgModule({
|
|
|
|
imports: [RouterModule.forChild(routes)],
|
|
|
|
exports: [RouterModule]
|
|
|
|
})
|
|
|
|
export class PreviewsRoutingModule { }
|