2019-07-21 17:59:47 +03:00
|
|
|
import { NgModule } from '@angular/core';
|
2022-05-20 15:08:45 +04:00
|
|
|
import { Routes, RouterModule, PreloadAllModules } from '@angular/router';
|
2020-02-16 22:15:07 +07:00
|
|
|
import { StartComponent } from './components/start/start.component';
|
|
|
|
import { TransactionComponent } from './components/transaction/transaction.component';
|
|
|
|
import { BlockComponent } from './components/block/block.component';
|
2022-07-07 19:11:42 +02:00
|
|
|
import { BlockAuditComponent } from './components/block-audit/block-audit.component';
|
2022-07-12 22:04:20 +00:00
|
|
|
import { BlockPreviewComponent } from './components/block/block-preview.component';
|
2020-02-16 22:15:07 +07:00
|
|
|
import { AddressComponent } from './components/address/address.component';
|
|
|
|
import { MasterPageComponent } from './components/master-page/master-page.component';
|
2022-07-12 22:04:20 +00:00
|
|
|
import { MasterPagePreviewComponent } from './components/master-page-preview/master-page-preview.component';
|
2020-02-16 22:15:07 +07:00
|
|
|
import { AboutComponent } from './components/about/about.component';
|
2020-07-02 17:56:15 +07:00
|
|
|
import { StatusViewComponent } from './components/status-view/status-view.component';
|
2020-10-11 19:23:52 +09:00
|
|
|
import { TermsOfServiceComponent } from './components/terms-of-service/terms-of-service.component';
|
2021-08-02 18:42:18 +09:00
|
|
|
import { PrivacyPolicyComponent } from './components/privacy-policy/privacy-policy.component';
|
2021-07-25 04:40:11 +09:00
|
|
|
import { TrademarkPolicyComponent } from './components/trademark-policy/trademark-policy.component';
|
2021-03-13 18:24:50 +07:00
|
|
|
import { BisqMasterPageComponent } from './components/bisq-master-page/bisq-master-page.component';
|
2021-05-18 13:23:39 +04:00
|
|
|
import { SponsorComponent } from './components/sponsor/sponsor.component';
|
2021-10-19 15:37:45 +04:00
|
|
|
import { PushTransactionComponent } from './components/push-transaction/push-transaction.component';
|
2022-05-19 23:47:44 +04:00
|
|
|
import { BlocksList } from './components/blocks-list/blocks-list.component';
|
|
|
|
import { LiquidMasterPageComponent } from './components/liquid-master-page/liquid-master-page.component';
|
2022-02-06 01:20:26 +04:00
|
|
|
import { AssetGroupComponent } from './components/assets/asset-group/asset-group.component';
|
|
|
|
import { AssetsFeaturedComponent } from './components/assets/assets-featured/assets-featured.component';
|
|
|
|
import { AssetsComponent } from './components/assets/assets.component';
|
2022-05-19 23:47:44 +04:00
|
|
|
import { AssetComponent } from './components/asset/asset.component';
|
|
|
|
import { AssetsNavComponent } from './components/assets/assets-nav/assets-nav.component';
|
2019-07-21 17:59:47 +03:00
|
|
|
|
2021-03-13 18:24:50 +07:00
|
|
|
let routes: Routes = [
|
2022-07-12 22:04:20 +00:00
|
|
|
{
|
2022-05-19 23:47:44 +04:00
|
|
|
path: 'testnet',
|
2019-07-27 18:43:17 +03:00
|
|
|
children: [
|
2021-10-19 15:37:45 +04:00
|
|
|
{
|
2022-05-19 23:47:44 +04:00
|
|
|
path: '',
|
|
|
|
pathMatch: 'full',
|
|
|
|
loadChildren: () => import('./graphs/graphs.module').then(m => m.GraphsModule)
|
2021-10-19 15:37:45 +04:00
|
|
|
},
|
2019-07-27 18:43:17 +03:00
|
|
|
{
|
|
|
|
path: '',
|
2022-05-19 23:47:44 +04:00
|
|
|
component: MasterPageComponent,
|
2020-03-22 17:44:36 +07:00
|
|
|
children: [
|
2022-05-21 08:47:49 +02:00
|
|
|
{
|
|
|
|
path: 'mining/blocks',
|
|
|
|
redirectTo: 'blocks',
|
|
|
|
pathMatch: 'full'
|
|
|
|
},
|
2020-03-22 17:44:36 +07:00
|
|
|
{
|
2022-05-19 23:47:44 +04:00
|
|
|
path: 'tx/push',
|
|
|
|
component: PushTransactionComponent,
|
2022-02-17 17:10:20 +09:00
|
|
|
},
|
2022-03-14 18:06:54 +01:00
|
|
|
{
|
2022-05-19 23:47:44 +04:00
|
|
|
path: 'about',
|
|
|
|
component: AboutComponent,
|
2022-03-14 18:06:54 +01:00
|
|
|
},
|
2022-04-09 01:07:13 +09:00
|
|
|
{
|
2022-05-20 18:11:02 +02:00
|
|
|
path: 'blocks',
|
2022-05-19 23:47:44 +04:00
|
|
|
component: BlocksList,
|
2022-04-11 20:57:13 +09:00
|
|
|
},
|
|
|
|
{
|
2022-05-19 23:47:44 +04:00
|
|
|
path: 'terms-of-service',
|
|
|
|
component: TermsOfServiceComponent
|
2022-04-15 00:21:38 +09:00
|
|
|
},
|
|
|
|
{
|
2022-05-19 23:47:44 +04:00
|
|
|
path: 'privacy-policy',
|
|
|
|
component: PrivacyPolicyComponent
|
2022-04-15 00:21:38 +09:00
|
|
|
},
|
2022-05-10 16:40:56 +02:00
|
|
|
{
|
2022-05-19 23:47:44 +04:00
|
|
|
path: 'trademark-policy',
|
|
|
|
component: TrademarkPolicyComponent
|
2022-05-10 16:40:56 +02:00
|
|
|
},
|
2021-10-19 15:37:45 +04:00
|
|
|
{
|
2022-05-19 23:47:44 +04:00
|
|
|
path: 'address/:id',
|
|
|
|
children: [],
|
|
|
|
component: AddressComponent
|
2021-10-19 15:37:45 +04:00
|
|
|
},
|
2021-02-20 23:12:22 +07:00
|
|
|
{
|
2022-05-19 23:47:44 +04:00
|
|
|
path: 'tx',
|
2021-02-20 23:12:22 +07:00
|
|
|
component: StartComponent,
|
|
|
|
children: [
|
|
|
|
{
|
2022-05-19 23:47:44 +04:00
|
|
|
path: ':id',
|
2021-02-20 23:12:22 +07:00
|
|
|
component: TransactionComponent
|
|
|
|
},
|
|
|
|
],
|
|
|
|
},
|
|
|
|
{
|
2022-05-19 23:47:44 +04:00
|
|
|
path: 'block',
|
|
|
|
component: StartComponent,
|
|
|
|
children: [
|
2022-05-10 16:40:56 +02:00
|
|
|
{
|
2022-05-19 23:47:44 +04:00
|
|
|
path: ':id',
|
|
|
|
component: BlockComponent
|
2022-05-10 16:40:56 +02:00
|
|
|
},
|
2022-05-19 23:47:44 +04:00
|
|
|
],
|
2021-02-20 23:12:22 +07:00
|
|
|
},
|
2022-07-07 19:11:42 +02:00
|
|
|
{
|
|
|
|
path: 'block-audit',
|
|
|
|
children: [
|
|
|
|
{
|
|
|
|
path: ':id',
|
|
|
|
component: BlockAuditComponent,
|
|
|
|
},
|
|
|
|
],
|
|
|
|
},
|
2021-12-01 17:01:50 -05:00
|
|
|
{
|
|
|
|
path: 'docs',
|
2022-04-24 22:53:27 +04:00
|
|
|
loadChildren: () => import('./docs/docs.module').then(m => m.DocsModule)
|
2021-12-01 17:01:50 -05:00
|
|
|
},
|
2021-02-20 23:12:22 +07:00
|
|
|
{
|
|
|
|
path: 'api',
|
2022-04-24 22:53:27 +04:00
|
|
|
loadChildren: () => import('./docs/docs.module').then(m => m.DocsModule)
|
2021-02-20 23:12:22 +07:00
|
|
|
},
|
2022-04-27 02:52:23 +04:00
|
|
|
{
|
|
|
|
path: 'lightning',
|
|
|
|
loadChildren: () => import('./lightning/lightning.module').then(m => m.LightningModule)
|
|
|
|
},
|
2021-02-20 23:12:22 +07:00
|
|
|
],
|
|
|
|
},
|
|
|
|
{
|
|
|
|
path: 'status',
|
|
|
|
component: StatusViewComponent
|
|
|
|
},
|
2022-05-19 23:47:44 +04:00
|
|
|
{
|
|
|
|
path: '',
|
|
|
|
loadChildren: () => import('./graphs/graphs.module').then(m => m.GraphsModule)
|
|
|
|
},
|
2021-02-20 23:12:22 +07:00
|
|
|
{
|
|
|
|
path: '**',
|
2022-03-17 18:51:59 +01:00
|
|
|
redirectTo: '/testnet'
|
2021-02-20 23:12:22 +07:00
|
|
|
},
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
path: 'signet',
|
2020-05-09 20:37:50 +07:00
|
|
|
children: [
|
2022-05-21 08:47:49 +02:00
|
|
|
{
|
|
|
|
path: 'mining/blocks',
|
|
|
|
redirectTo: 'blocks',
|
|
|
|
pathMatch: 'full'
|
|
|
|
},
|
2022-05-19 23:47:44 +04:00
|
|
|
{
|
|
|
|
path: '',
|
|
|
|
pathMatch: 'full',
|
|
|
|
loadChildren: () => import('./graphs/graphs.module').then(m => m.GraphsModule)
|
|
|
|
},
|
2020-05-09 20:37:50 +07:00
|
|
|
{
|
|
|
|
path: '',
|
2020-07-02 22:34:16 +07:00
|
|
|
component: MasterPageComponent,
|
2020-05-09 20:37:50 +07:00
|
|
|
children: [
|
2021-10-19 15:37:45 +04:00
|
|
|
{
|
|
|
|
path: 'tx/push',
|
|
|
|
component: PushTransactionComponent,
|
|
|
|
},
|
2022-02-16 21:20:28 +09:00
|
|
|
{
|
2022-05-19 23:47:44 +04:00
|
|
|
path: 'about',
|
|
|
|
component: AboutComponent,
|
2022-02-08 18:56:51 +09:00
|
|
|
},
|
2020-07-02 22:34:16 +07:00
|
|
|
{
|
2022-05-20 18:11:02 +02:00
|
|
|
path: 'blocks',
|
2022-05-19 23:47:44 +04:00
|
|
|
component: BlocksList,
|
|
|
|
},
|
|
|
|
{
|
|
|
|
path: 'terms-of-service',
|
|
|
|
component: TermsOfServiceComponent
|
|
|
|
},
|
|
|
|
{
|
|
|
|
path: 'privacy-policy',
|
|
|
|
component: PrivacyPolicyComponent
|
|
|
|
},
|
|
|
|
{
|
|
|
|
path: 'trademark-policy',
|
|
|
|
component: TrademarkPolicyComponent
|
2020-07-02 22:34:16 +07:00
|
|
|
},
|
|
|
|
{
|
|
|
|
path: 'address/:id',
|
|
|
|
children: [],
|
|
|
|
component: AddressComponent
|
2020-05-09 20:37:50 +07:00
|
|
|
},
|
2022-05-19 23:47:44 +04:00
|
|
|
{
|
|
|
|
path: 'tx',
|
|
|
|
component: StartComponent,
|
|
|
|
children: [
|
|
|
|
{
|
|
|
|
path: ':id',
|
|
|
|
component: TransactionComponent
|
|
|
|
},
|
|
|
|
],
|
|
|
|
},
|
|
|
|
{
|
|
|
|
path: 'block',
|
|
|
|
component: StartComponent,
|
2022-07-06 22:27:45 +02:00
|
|
|
children: [
|
2022-05-19 23:47:44 +04:00
|
|
|
{
|
|
|
|
path: ':id',
|
|
|
|
component: BlockComponent
|
|
|
|
},
|
|
|
|
],
|
|
|
|
},
|
2022-07-07 19:11:42 +02:00
|
|
|
{
|
|
|
|
path: 'block-audit',
|
|
|
|
children: [
|
|
|
|
{
|
|
|
|
path: ':id',
|
|
|
|
component: BlockAuditComponent,
|
|
|
|
},
|
|
|
|
],
|
|
|
|
},
|
2021-12-01 17:01:50 -05:00
|
|
|
{
|
|
|
|
path: 'docs',
|
2022-04-24 22:53:27 +04:00
|
|
|
loadChildren: () => import('./docs/docs.module').then(m => m.DocsModule)
|
2021-12-01 17:01:50 -05:00
|
|
|
},
|
2020-10-07 23:24:01 +07:00
|
|
|
{
|
|
|
|
path: 'api',
|
2022-04-24 22:53:27 +04:00
|
|
|
loadChildren: () => import('./docs/docs.module').then(m => m.DocsModule)
|
2020-10-07 23:24:01 +07:00
|
|
|
},
|
2022-04-27 02:52:23 +04:00
|
|
|
{
|
|
|
|
path: 'lightning',
|
|
|
|
loadChildren: () => import('./lightning/lightning.module').then(m => m.LightningModule)
|
|
|
|
},
|
2020-05-09 20:37:50 +07:00
|
|
|
],
|
|
|
|
},
|
|
|
|
{
|
2020-07-02 22:34:16 +07:00
|
|
|
path: 'status',
|
|
|
|
component: StatusViewComponent
|
2020-05-09 20:37:50 +07:00
|
|
|
},
|
2022-05-19 23:47:44 +04:00
|
|
|
{
|
|
|
|
path: '',
|
|
|
|
loadChildren: () => import('./graphs/graphs.module').then(m => m.GraphsModule)
|
|
|
|
},
|
2020-05-09 20:37:50 +07:00
|
|
|
{
|
|
|
|
path: '**',
|
2022-03-17 18:51:59 +01:00
|
|
|
redirectTo: '/signet'
|
2020-05-09 20:37:50 +07:00
|
|
|
},
|
2020-07-02 22:34:16 +07:00
|
|
|
]
|
2020-05-09 20:37:50 +07:00
|
|
|
},
|
2019-07-21 17:59:47 +03:00
|
|
|
{
|
2022-05-19 23:47:44 +04:00
|
|
|
path: '',
|
|
|
|
pathMatch: 'full',
|
|
|
|
loadChildren: () => import('./graphs/graphs.module').then(m => m.GraphsModule)
|
2022-04-05 21:00:36 +04:00
|
|
|
},
|
2019-07-21 17:59:47 +03:00
|
|
|
{
|
2021-03-13 18:24:50 +07:00
|
|
|
path: '',
|
2022-05-19 23:47:44 +04:00
|
|
|
component: MasterPageComponent,
|
2021-12-27 22:54:45 +04:00
|
|
|
children: [
|
2022-05-21 08:47:49 +02:00
|
|
|
{
|
|
|
|
path: 'mining/blocks',
|
|
|
|
redirectTo: 'blocks',
|
|
|
|
pathMatch: 'full'
|
|
|
|
},
|
2021-12-27 22:54:45 +04:00
|
|
|
{
|
2022-05-19 23:47:44 +04:00
|
|
|
path: 'tx/push',
|
|
|
|
component: PushTransactionComponent,
|
2021-12-27 22:54:45 +04:00
|
|
|
},
|
|
|
|
{
|
|
|
|
path: 'about',
|
|
|
|
component: AboutComponent,
|
|
|
|
},
|
2022-05-19 23:47:44 +04:00
|
|
|
{
|
2022-05-20 18:11:02 +02:00
|
|
|
path: 'blocks',
|
2022-05-19 23:47:44 +04:00
|
|
|
component: BlocksList,
|
|
|
|
},
|
2021-12-27 22:54:45 +04:00
|
|
|
{
|
|
|
|
path: 'terms-of-service',
|
|
|
|
component: TermsOfServiceComponent
|
|
|
|
},
|
|
|
|
{
|
|
|
|
path: 'privacy-policy',
|
|
|
|
component: PrivacyPolicyComponent
|
|
|
|
},
|
|
|
|
{
|
|
|
|
path: 'trademark-policy',
|
|
|
|
component: TrademarkPolicyComponent
|
|
|
|
},
|
2021-07-27 17:10:38 +03:00
|
|
|
{
|
2022-05-19 23:47:44 +04:00
|
|
|
path: 'address/:id',
|
|
|
|
children: [],
|
|
|
|
component: AddressComponent
|
|
|
|
},
|
|
|
|
{
|
|
|
|
path: 'tx',
|
|
|
|
component: StartComponent,
|
2021-07-27 17:10:38 +03:00
|
|
|
children: [
|
|
|
|
{
|
2022-05-19 23:47:44 +04:00
|
|
|
path: ':id',
|
|
|
|
component: TransactionComponent
|
2022-01-15 23:49:08 +04:00
|
|
|
},
|
2022-05-19 23:47:44 +04:00
|
|
|
],
|
|
|
|
},
|
|
|
|
{
|
|
|
|
path: 'block',
|
|
|
|
component: StartComponent,
|
2022-07-06 22:27:45 +02:00
|
|
|
children: [
|
2022-01-15 23:49:08 +04:00
|
|
|
{
|
2022-05-19 23:47:44 +04:00
|
|
|
path: ':id',
|
|
|
|
component: BlockComponent
|
2022-01-15 23:49:08 +04:00
|
|
|
},
|
2021-07-27 17:10:38 +03:00
|
|
|
],
|
|
|
|
},
|
2022-07-07 19:11:42 +02:00
|
|
|
{
|
|
|
|
path: 'block-audit',
|
|
|
|
children: [
|
|
|
|
{
|
|
|
|
path: ':id',
|
|
|
|
component: BlockAuditComponent
|
|
|
|
},
|
|
|
|
],
|
|
|
|
},
|
2021-07-27 17:10:38 +03:00
|
|
|
{
|
2022-05-19 23:47:44 +04:00
|
|
|
path: 'docs',
|
|
|
|
loadChildren: () => import('./docs/docs.module').then(m => m.DocsModule)
|
2021-07-28 22:32:13 +03:00
|
|
|
},
|
|
|
|
{
|
2022-05-19 23:47:44 +04:00
|
|
|
path: 'api',
|
|
|
|
loadChildren: () => import('./docs/docs.module').then(m => m.DocsModule)
|
2021-07-28 22:32:13 +03:00
|
|
|
},
|
2022-04-27 02:52:23 +04:00
|
|
|
{
|
|
|
|
path: 'lightning',
|
|
|
|
loadChildren: () => import('./lightning/lightning.module').then(m => m.LightningModule)
|
|
|
|
},
|
2022-05-19 23:47:44 +04:00
|
|
|
],
|
2021-07-27 17:10:38 +03:00
|
|
|
},
|
2022-07-12 22:04:20 +00:00
|
|
|
{
|
|
|
|
path: 'preview',
|
|
|
|
component: MasterPagePreviewComponent,
|
|
|
|
children: [
|
|
|
|
{
|
|
|
|
path: 'block/:id',
|
|
|
|
component: BlockPreviewComponent
|
|
|
|
},
|
|
|
|
],
|
|
|
|
},
|
2021-07-27 17:10:38 +03:00
|
|
|
{
|
|
|
|
path: 'status',
|
|
|
|
component: StatusViewComponent
|
|
|
|
},
|
2022-05-19 23:47:44 +04:00
|
|
|
{
|
|
|
|
path: 'sponsor',
|
|
|
|
component: SponsorComponent,
|
|
|
|
},
|
|
|
|
{
|
|
|
|
path: '',
|
|
|
|
loadChildren: () => import('./graphs/graphs.module').then(m => m.GraphsModule)
|
|
|
|
},
|
2021-07-27 17:10:38 +03:00
|
|
|
{
|
|
|
|
path: '**',
|
2022-05-19 23:47:44 +04:00
|
|
|
redirectTo: ''
|
|
|
|
},
|
|
|
|
];
|
|
|
|
|
|
|
|
const browserWindow = window || {};
|
|
|
|
// @ts-ignore
|
|
|
|
const browserWindowEnv = browserWindow.__env || {};
|
|
|
|
|
|
|
|
if (browserWindowEnv && browserWindowEnv.BASE_MODULE === 'bisq') {
|
|
|
|
routes = [{
|
|
|
|
path: '',
|
|
|
|
component: BisqMasterPageComponent,
|
|
|
|
loadChildren: () => import('./bisq/bisq.module').then(m => m.BisqModule)
|
2021-07-27 17:10:38 +03:00
|
|
|
}];
|
|
|
|
}
|
|
|
|
|
2022-05-19 23:47:44 +04:00
|
|
|
if (browserWindowEnv && browserWindowEnv.BASE_MODULE === 'liquid') {
|
|
|
|
routes = [
|
|
|
|
{
|
|
|
|
path: 'testnet',
|
|
|
|
children: [
|
|
|
|
{
|
|
|
|
path: '',
|
|
|
|
pathMatch: 'full',
|
|
|
|
loadChildren: () => import('./graphs/graphs.module').then(m => m.GraphsModule)
|
|
|
|
},
|
|
|
|
{
|
|
|
|
path: '',
|
|
|
|
component: LiquidMasterPageComponent,
|
|
|
|
children: [
|
|
|
|
{
|
|
|
|
path: 'tx/push',
|
|
|
|
component: PushTransactionComponent,
|
|
|
|
},
|
|
|
|
{
|
|
|
|
path: 'about',
|
|
|
|
component: AboutComponent,
|
|
|
|
},
|
|
|
|
{
|
2022-05-20 18:11:02 +02:00
|
|
|
path: 'blocks',
|
2022-05-19 23:47:44 +04:00
|
|
|
component: BlocksList,
|
|
|
|
},
|
|
|
|
{
|
|
|
|
path: 'terms-of-service',
|
|
|
|
component: TermsOfServiceComponent
|
|
|
|
},
|
|
|
|
{
|
|
|
|
path: 'privacy-policy',
|
|
|
|
component: PrivacyPolicyComponent
|
|
|
|
},
|
|
|
|
{
|
|
|
|
path: 'trademark-policy',
|
|
|
|
component: TrademarkPolicyComponent
|
|
|
|
},
|
|
|
|
{
|
|
|
|
path: 'address/:id',
|
|
|
|
children: [],
|
|
|
|
component: AddressComponent
|
|
|
|
},
|
|
|
|
{
|
|
|
|
path: 'tx',
|
|
|
|
component: StartComponent,
|
|
|
|
children: [
|
|
|
|
{
|
|
|
|
path: ':id',
|
|
|
|
component: TransactionComponent
|
|
|
|
},
|
|
|
|
],
|
|
|
|
},
|
|
|
|
{
|
|
|
|
path: 'block',
|
|
|
|
component: StartComponent,
|
2022-07-06 22:27:45 +02:00
|
|
|
children: [
|
2022-05-19 23:47:44 +04:00
|
|
|
{
|
|
|
|
path: ':id',
|
|
|
|
component: BlockComponent
|
|
|
|
},
|
|
|
|
],
|
|
|
|
},
|
|
|
|
{
|
|
|
|
path: 'assets',
|
|
|
|
component: AssetsNavComponent,
|
|
|
|
children: [
|
|
|
|
{
|
|
|
|
path: 'all',
|
|
|
|
component: AssetsComponent,
|
|
|
|
},
|
|
|
|
{
|
|
|
|
path: 'asset/:id',
|
|
|
|
component: AssetComponent
|
|
|
|
},
|
|
|
|
{
|
|
|
|
path: 'group/:id',
|
|
|
|
component: AssetGroupComponent
|
|
|
|
},
|
|
|
|
{
|
|
|
|
path: '**',
|
|
|
|
redirectTo: 'all'
|
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
path: 'docs',
|
|
|
|
loadChildren: () => import('./docs/docs.module').then(m => m.DocsModule)
|
|
|
|
},
|
|
|
|
{
|
|
|
|
path: 'api',
|
|
|
|
loadChildren: () => import('./docs/docs.module').then(m => m.DocsModule)
|
|
|
|
},
|
|
|
|
],
|
|
|
|
},
|
|
|
|
{
|
|
|
|
path: 'status',
|
|
|
|
component: StatusViewComponent
|
|
|
|
},
|
|
|
|
{
|
|
|
|
path: '',
|
|
|
|
loadChildren: () => import('./graphs/graphs.module').then(m => m.GraphsModule)
|
|
|
|
},
|
|
|
|
{
|
|
|
|
path: '**',
|
|
|
|
redirectTo: '/signet'
|
|
|
|
},
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
path: '',
|
|
|
|
pathMatch: 'full',
|
|
|
|
loadChildren: () => import('./graphs/graphs.module').then(m => m.GraphsModule)
|
|
|
|
},
|
|
|
|
{
|
|
|
|
path: '',
|
|
|
|
component: LiquidMasterPageComponent,
|
|
|
|
children: [
|
|
|
|
{
|
|
|
|
path: 'tx/push',
|
|
|
|
component: PushTransactionComponent,
|
|
|
|
},
|
|
|
|
{
|
|
|
|
path: 'about',
|
|
|
|
component: AboutComponent,
|
|
|
|
},
|
|
|
|
{
|
2022-05-20 18:11:02 +02:00
|
|
|
path: 'blocks',
|
2022-05-19 23:47:44 +04:00
|
|
|
component: BlocksList,
|
|
|
|
},
|
|
|
|
{
|
|
|
|
path: 'terms-of-service',
|
|
|
|
component: TermsOfServiceComponent
|
|
|
|
},
|
|
|
|
{
|
|
|
|
path: 'privacy-policy',
|
|
|
|
component: PrivacyPolicyComponent
|
|
|
|
},
|
|
|
|
{
|
|
|
|
path: 'trademark-policy',
|
|
|
|
component: TrademarkPolicyComponent
|
|
|
|
},
|
|
|
|
{
|
|
|
|
path: 'address/:id',
|
|
|
|
children: [],
|
|
|
|
component: AddressComponent
|
|
|
|
},
|
|
|
|
{
|
|
|
|
path: 'tx',
|
|
|
|
component: StartComponent,
|
|
|
|
children: [
|
|
|
|
{
|
|
|
|
path: ':id',
|
|
|
|
component: TransactionComponent
|
|
|
|
},
|
|
|
|
],
|
|
|
|
},
|
|
|
|
{
|
|
|
|
path: 'block',
|
|
|
|
component: StartComponent,
|
2022-07-06 22:27:45 +02:00
|
|
|
children: [
|
2022-05-19 23:47:44 +04:00
|
|
|
{
|
|
|
|
path: ':id',
|
|
|
|
component: BlockComponent
|
|
|
|
},
|
|
|
|
],
|
|
|
|
},
|
|
|
|
{
|
|
|
|
path: 'assets',
|
|
|
|
component: AssetsNavComponent,
|
|
|
|
children: [
|
|
|
|
{
|
|
|
|
path: 'featured',
|
|
|
|
component: AssetsFeaturedComponent,
|
|
|
|
},
|
|
|
|
{
|
|
|
|
path: 'all',
|
|
|
|
component: AssetsComponent,
|
|
|
|
},
|
|
|
|
{
|
|
|
|
path: 'asset/:id',
|
|
|
|
component: AssetComponent
|
|
|
|
},
|
|
|
|
{
|
|
|
|
path: 'group/:id',
|
|
|
|
component: AssetGroupComponent
|
|
|
|
},
|
|
|
|
{
|
|
|
|
path: '**',
|
2022-05-20 17:54:06 +04:00
|
|
|
redirectTo: 'featured'
|
2022-05-19 23:47:44 +04:00
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
path: 'docs',
|
|
|
|
loadChildren: () => import('./docs/docs.module').then(m => m.DocsModule)
|
|
|
|
},
|
|
|
|
{
|
|
|
|
path: 'api',
|
|
|
|
loadChildren: () => import('./docs/docs.module').then(m => m.DocsModule)
|
|
|
|
},
|
|
|
|
],
|
|
|
|
},
|
|
|
|
{
|
|
|
|
path: 'status',
|
|
|
|
component: StatusViewComponent
|
|
|
|
},
|
|
|
|
{
|
|
|
|
path: 'sponsor',
|
|
|
|
component: SponsorComponent,
|
|
|
|
},
|
|
|
|
{
|
|
|
|
path: '',
|
|
|
|
loadChildren: () => import('./graphs/graphs.module').then(m => m.GraphsModule)
|
|
|
|
},
|
|
|
|
{
|
|
|
|
path: '**',
|
|
|
|
redirectTo: ''
|
|
|
|
},
|
|
|
|
];
|
|
|
|
}
|
|
|
|
|
2019-07-21 17:59:47 +03:00
|
|
|
@NgModule({
|
2020-11-07 04:30:52 +07:00
|
|
|
imports: [RouterModule.forRoot(routes, {
|
2022-07-08 16:45:24 +02:00
|
|
|
initialNavigation: 'enabled',
|
2021-05-10 22:15:54 -07:00
|
|
|
scrollPositionRestoration: 'enabled',
|
2022-05-20 15:08:45 +04:00
|
|
|
anchorScrolling: 'enabled',
|
|
|
|
preloadingStrategy: PreloadAllModules
|
2022-03-10 18:35:37 +01:00
|
|
|
})],
|
2019-07-21 17:59:47 +03:00
|
|
|
})
|
|
|
|
export class AppRoutingModule { }
|