2019-07-21 17:59:47 +03:00
|
|
|
import { NgModule } from '@angular/core';
|
|
|
|
import { Routes, RouterModule } 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';
|
|
|
|
import { AddressComponent } from './components/address/address.component';
|
|
|
|
import { MasterPageComponent } from './components/master-page/master-page.component';
|
|
|
|
import { AboutComponent } from './components/about/about.component';
|
|
|
|
import { TelevisionComponent } from './components/television/television.component';
|
|
|
|
import { StatisticsComponent } from './components/statistics/statistics.component';
|
2020-03-17 21:53:20 +07:00
|
|
|
import { MempoolBlockComponent } from './components/mempool-block/mempool-block.component';
|
2020-04-28 17:10:31 +07:00
|
|
|
import { AssetComponent } from './components/asset/asset.component';
|
2022-02-06 01:20:26 +04:00
|
|
|
import { AssetsNavComponent } from './components/assets/assets-nav/assets-nav.component';
|
2020-07-02 17:56:15 +07:00
|
|
|
import { StatusViewComponent } from './components/status-view/status-view.component';
|
2020-09-21 19:41:12 +07:00
|
|
|
import { DashboardComponent } from './dashboard/dashboard.component';
|
2020-09-22 05:51:34 +07:00
|
|
|
import { LatestBlocksComponent } from './components/latest-blocks/latest-blocks.component';
|
2021-12-01 17:01:50 -05:00
|
|
|
import { DocsComponent } from './components/docs/docs.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-07-27 17:10:38 +03:00
|
|
|
import { LiquidMasterPageComponent } from './components/liquid-master-page/liquid-master-page.component';
|
2021-10-19 15:37:45 +04:00
|
|
|
import { PushTransactionComponent } from './components/push-transaction/push-transaction.component';
|
2022-01-06 19:59:33 +09:00
|
|
|
import { PoolRankingComponent } from './components/pool-ranking/pool-ranking.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-02-08 18:56:51 +09:00
|
|
|
import { PoolComponent } from './components/pool/pool.component';
|
2022-02-16 17:32:12 +09:00
|
|
|
import { MiningDashboardComponent } from './components/mining-dashboard/mining-dashboard.component';
|
2022-02-16 21:20:28 +09:00
|
|
|
import { DifficultyChartComponent } from './components/difficulty-chart/difficulty-chart.component';
|
2019-07-21 17:59:47 +03:00
|
|
|
|
2021-03-13 18:24:50 +07:00
|
|
|
let routes: Routes = [
|
2019-07-21 17:59:47 +03:00
|
|
|
{
|
|
|
|
path: '',
|
2019-07-27 18:43:17 +03:00
|
|
|
component: MasterPageComponent,
|
|
|
|
children: [
|
2021-10-19 15:37:45 +04:00
|
|
|
{
|
|
|
|
path: 'tx/push',
|
|
|
|
component: PushTransactionComponent,
|
|
|
|
},
|
2019-07-27 18:43:17 +03:00
|
|
|
{
|
|
|
|
path: '',
|
2020-02-16 22:15:07 +07:00
|
|
|
component: StartComponent,
|
2020-03-22 17:44:36 +07:00
|
|
|
children: [
|
|
|
|
{
|
|
|
|
path: '',
|
2020-09-21 19:41:12 +07:00
|
|
|
component: DashboardComponent,
|
2020-03-22 17:44:36 +07:00
|
|
|
},
|
|
|
|
{
|
|
|
|
path: 'tx/:id',
|
|
|
|
component: TransactionComponent
|
|
|
|
},
|
|
|
|
{
|
|
|
|
path: 'block/:id',
|
|
|
|
component: BlockComponent
|
|
|
|
},
|
|
|
|
{
|
|
|
|
path: 'mempool-block/:id',
|
|
|
|
component: MempoolBlockComponent
|
|
|
|
},
|
2022-02-17 17:10:20 +09:00
|
|
|
{
|
|
|
|
path: 'mining',
|
|
|
|
component: MiningDashboardComponent,
|
|
|
|
},
|
2020-03-22 17:44:36 +07:00
|
|
|
],
|
2019-07-27 18:43:17 +03:00
|
|
|
},
|
2020-09-22 05:51:34 +07:00
|
|
|
{
|
|
|
|
path: 'blocks',
|
|
|
|
component: LatestBlocksComponent,
|
|
|
|
},
|
2022-02-16 21:20:28 +09:00
|
|
|
{
|
|
|
|
path: 'mining/difficulty',
|
|
|
|
component: DifficultyChartComponent,
|
|
|
|
},
|
2022-01-06 19:59:33 +09:00
|
|
|
{
|
2022-01-25 18:33:46 +09:00
|
|
|
path: 'mining/pools',
|
2022-01-06 19:59:33 +09:00
|
|
|
component: PoolRankingComponent,
|
|
|
|
},
|
2022-02-08 18:56:51 +09:00
|
|
|
{
|
|
|
|
path: 'mining/pool/:poolId',
|
|
|
|
component: PoolComponent,
|
|
|
|
},
|
2019-07-27 18:43:17 +03:00
|
|
|
{
|
2020-02-16 22:15:07 +07:00
|
|
|
path: 'graphs',
|
|
|
|
component: StatisticsComponent,
|
2019-07-27 18:43:17 +03:00
|
|
|
},
|
|
|
|
{
|
2020-06-21 14:55:16 +07:00
|
|
|
path: 'about',
|
2020-02-16 22:15:07 +07:00
|
|
|
component: AboutComponent,
|
2019-07-27 18:43:17 +03:00
|
|
|
},
|
2021-12-01 17:01:50 -05:00
|
|
|
{
|
|
|
|
path: 'docs/api/:type',
|
|
|
|
component: DocsComponent
|
|
|
|
},
|
|
|
|
{
|
|
|
|
path: 'docs/api',
|
|
|
|
redirectTo: 'docs/api/rest'
|
|
|
|
},
|
|
|
|
{
|
|
|
|
path: 'docs',
|
|
|
|
redirectTo: 'docs/api/rest'
|
|
|
|
},
|
2020-10-07 23:24:01 +07:00
|
|
|
{
|
|
|
|
path: 'api',
|
2021-12-01 17:01:50 -05:00
|
|
|
redirectTo: 'docs/api/rest'
|
2020-10-07 23:24:01 +07:00
|
|
|
},
|
2020-10-11 19:23:52 +09:00
|
|
|
{
|
|
|
|
path: 'terms-of-service',
|
|
|
|
component: TermsOfServiceComponent
|
|
|
|
},
|
2021-08-02 18:42:18 +09:00
|
|
|
{
|
|
|
|
path: 'privacy-policy',
|
|
|
|
component: PrivacyPolicyComponent
|
|
|
|
},
|
2021-07-25 04:40:11 +09:00
|
|
|
{
|
|
|
|
path: 'trademark-policy',
|
|
|
|
component: TrademarkPolicyComponent
|
|
|
|
},
|
2019-11-06 15:35:02 +08:00
|
|
|
{
|
2020-02-16 22:15:07 +07:00
|
|
|
path: 'address/:id',
|
|
|
|
children: [],
|
|
|
|
component: AddressComponent
|
2019-11-06 15:35:02 +08:00
|
|
|
},
|
2021-05-18 13:23:39 +04:00
|
|
|
{
|
|
|
|
path: 'sponsor',
|
|
|
|
component: SponsorComponent,
|
|
|
|
},
|
2019-07-27 18:43:17 +03:00
|
|
|
],
|
2019-07-21 17:59:47 +03:00
|
|
|
},
|
2020-05-09 20:37:50 +07:00
|
|
|
{
|
|
|
|
path: 'testnet',
|
2021-02-20 23:12:22 +07:00
|
|
|
children: [
|
|
|
|
{
|
|
|
|
path: '',
|
|
|
|
component: MasterPageComponent,
|
|
|
|
children: [
|
2021-10-19 15:37:45 +04:00
|
|
|
{
|
|
|
|
path: 'tx/push',
|
|
|
|
component: PushTransactionComponent,
|
|
|
|
},
|
2021-02-20 23:12:22 +07:00
|
|
|
{
|
|
|
|
path: '',
|
|
|
|
component: StartComponent,
|
|
|
|
children: [
|
|
|
|
{
|
|
|
|
path: '',
|
|
|
|
component: DashboardComponent
|
|
|
|
},
|
|
|
|
{
|
|
|
|
path: 'tx/:id',
|
|
|
|
component: TransactionComponent
|
|
|
|
},
|
|
|
|
{
|
|
|
|
path: 'block/:id',
|
|
|
|
component: BlockComponent
|
|
|
|
},
|
|
|
|
{
|
|
|
|
path: 'mempool-block/:id',
|
|
|
|
component: MempoolBlockComponent
|
|
|
|
},
|
2022-02-17 17:10:20 +09:00
|
|
|
{
|
|
|
|
path: 'mining',
|
|
|
|
component: MiningDashboardComponent,
|
|
|
|
},
|
2021-02-20 23:12:22 +07:00
|
|
|
],
|
|
|
|
},
|
|
|
|
{
|
|
|
|
path: 'blocks',
|
|
|
|
component: LatestBlocksComponent,
|
|
|
|
},
|
2022-02-16 21:20:28 +09:00
|
|
|
{
|
|
|
|
path: 'mining/difficulty',
|
|
|
|
component: DifficultyChartComponent,
|
|
|
|
},
|
2022-01-25 18:33:46 +09:00
|
|
|
{
|
|
|
|
path: 'mining/pools',
|
|
|
|
component: PoolRankingComponent,
|
|
|
|
},
|
2022-02-08 18:56:51 +09:00
|
|
|
{
|
|
|
|
path: 'mining/pool/:poolId',
|
|
|
|
component: PoolComponent,
|
|
|
|
},
|
2021-02-20 23:12:22 +07:00
|
|
|
{
|
|
|
|
path: 'graphs',
|
|
|
|
component: StatisticsComponent,
|
|
|
|
},
|
|
|
|
{
|
|
|
|
path: 'address/:id',
|
|
|
|
children: [],
|
|
|
|
component: AddressComponent
|
|
|
|
},
|
2021-12-01 17:01:50 -05:00
|
|
|
{
|
|
|
|
path: 'docs/api/:type',
|
|
|
|
component: DocsComponent
|
|
|
|
},
|
|
|
|
{
|
|
|
|
path: 'docs/api',
|
|
|
|
redirectTo: 'docs/api/rest'
|
|
|
|
},
|
|
|
|
{
|
|
|
|
path: 'docs',
|
|
|
|
redirectTo: 'docs/api/rest'
|
|
|
|
},
|
2021-02-20 23:12:22 +07:00
|
|
|
{
|
|
|
|
path: 'api',
|
2021-12-01 17:01:50 -05:00
|
|
|
redirectTo: 'docs/api/rest'
|
2021-02-20 23:12:22 +07:00
|
|
|
},
|
|
|
|
],
|
|
|
|
},
|
|
|
|
{
|
|
|
|
path: 'tv',
|
|
|
|
component: TelevisionComponent
|
|
|
|
},
|
|
|
|
{
|
|
|
|
path: 'status',
|
|
|
|
component: StatusViewComponent
|
|
|
|
},
|
|
|
|
{
|
|
|
|
path: '**',
|
|
|
|
redirectTo: ''
|
|
|
|
},
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
path: 'signet',
|
2020-05-09 20:37:50 +07:00
|
|
|
children: [
|
|
|
|
{
|
|
|
|
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,
|
|
|
|
},
|
2020-05-09 20:37:50 +07:00
|
|
|
{
|
|
|
|
path: '',
|
2020-07-02 22:34:16 +07:00
|
|
|
component: StartComponent,
|
|
|
|
children: [
|
|
|
|
{
|
|
|
|
path: '',
|
2020-09-21 19:41:12 +07:00
|
|
|
component: DashboardComponent
|
2020-07-02 22:34:16 +07:00
|
|
|
},
|
|
|
|
{
|
|
|
|
path: 'tx/:id',
|
|
|
|
component: TransactionComponent
|
|
|
|
},
|
|
|
|
{
|
|
|
|
path: 'block/:id',
|
|
|
|
component: BlockComponent
|
|
|
|
},
|
|
|
|
{
|
|
|
|
path: 'mempool-block/:id',
|
|
|
|
component: MempoolBlockComponent
|
|
|
|
},
|
2022-02-17 17:10:20 +09:00
|
|
|
{
|
|
|
|
path: 'mining',
|
|
|
|
component: MiningDashboardComponent,
|
|
|
|
},
|
2020-07-02 22:34:16 +07:00
|
|
|
],
|
|
|
|
},
|
2020-09-22 05:51:34 +07:00
|
|
|
{
|
|
|
|
path: 'blocks',
|
|
|
|
component: LatestBlocksComponent,
|
|
|
|
},
|
2022-02-16 21:20:28 +09:00
|
|
|
{
|
|
|
|
path: 'mining/difficulty',
|
|
|
|
component: DifficultyChartComponent,
|
|
|
|
},
|
2022-01-25 18:33:46 +09:00
|
|
|
{
|
|
|
|
path: 'mining/pools',
|
|
|
|
component: PoolRankingComponent,
|
|
|
|
},
|
2022-02-08 18:56:51 +09:00
|
|
|
{
|
|
|
|
path: 'mining/pool/:poolId',
|
|
|
|
component: PoolComponent,
|
|
|
|
},
|
2020-07-02 22:34:16 +07:00
|
|
|
{
|
|
|
|
path: 'graphs',
|
|
|
|
component: StatisticsComponent,
|
|
|
|
},
|
|
|
|
{
|
|
|
|
path: 'address/:id',
|
|
|
|
children: [],
|
|
|
|
component: AddressComponent
|
2020-05-09 20:37:50 +07:00
|
|
|
},
|
2021-12-01 17:01:50 -05:00
|
|
|
{
|
|
|
|
path: 'docs/api/:type',
|
|
|
|
component: DocsComponent
|
|
|
|
},
|
|
|
|
{
|
|
|
|
path: 'docs/api',
|
|
|
|
redirectTo: 'docs/api/rest'
|
|
|
|
},
|
|
|
|
{
|
|
|
|
path: 'docs',
|
|
|
|
redirectTo: 'docs/api/rest'
|
|
|
|
},
|
2020-10-07 23:24:01 +07:00
|
|
|
{
|
|
|
|
path: 'api',
|
2021-12-01 17:01:50 -05:00
|
|
|
redirectTo: 'docs/api/rest'
|
2020-10-07 23:24:01 +07:00
|
|
|
},
|
2020-05-09 20:37:50 +07:00
|
|
|
],
|
|
|
|
},
|
|
|
|
{
|
2020-07-02 22:34:16 +07:00
|
|
|
path: 'tv',
|
|
|
|
component: TelevisionComponent
|
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
|
|
|
},
|
|
|
|
{
|
|
|
|
path: '**',
|
|
|
|
redirectTo: ''
|
|
|
|
},
|
2020-07-02 22:34:16 +07:00
|
|
|
]
|
2020-05-09 20:37:50 +07:00
|
|
|
},
|
2019-07-21 17:59:47 +03:00
|
|
|
{
|
2019-07-27 18:43:17 +03:00
|
|
|
path: 'tv',
|
|
|
|
component: TelevisionComponent,
|
2019-07-21 17:59:47 +03:00
|
|
|
},
|
2020-05-09 20:37:50 +07:00
|
|
|
{
|
2020-07-02 22:34:16 +07:00
|
|
|
path: 'status',
|
2020-07-02 20:51:55 +07:00
|
|
|
component: StatusViewComponent
|
|
|
|
},
|
2019-07-21 17:59:47 +03:00
|
|
|
{
|
|
|
|
path: '**',
|
|
|
|
redirectTo: ''
|
2020-05-09 20:37:50 +07:00
|
|
|
},
|
2019-07-21 17:59:47 +03:00
|
|
|
];
|
2020-02-16 22:15:07 +07:00
|
|
|
|
2021-03-13 18:24:50 +07:00
|
|
|
const browserWindow = window || {};
|
|
|
|
// @ts-ignore
|
|
|
|
const browserWindowEnv = browserWindow.__env || {};
|
|
|
|
|
2021-07-27 17:10:38 +03:00
|
|
|
if (browserWindowEnv && browserWindowEnv.BASE_MODULE === 'bisq') {
|
2021-03-13 18:24:50 +07:00
|
|
|
routes = [{
|
|
|
|
path: '',
|
|
|
|
component: BisqMasterPageComponent,
|
|
|
|
loadChildren: () => import('./bisq/bisq.module').then(m => m.BisqModule)
|
|
|
|
}];
|
|
|
|
}
|
|
|
|
|
2021-07-27 17:10:38 +03:00
|
|
|
if (browserWindowEnv && browserWindowEnv.BASE_MODULE === 'liquid') {
|
|
|
|
routes = [{
|
|
|
|
path: '',
|
|
|
|
component: LiquidMasterPageComponent,
|
2021-12-27 22:54:45 +04:00
|
|
|
children: [
|
|
|
|
{
|
|
|
|
path: '',
|
|
|
|
component: StartComponent,
|
|
|
|
children: [
|
|
|
|
{
|
|
|
|
path: '',
|
|
|
|
component: DashboardComponent
|
|
|
|
},
|
|
|
|
{
|
|
|
|
path: 'tx/push',
|
|
|
|
component: PushTransactionComponent,
|
|
|
|
},
|
|
|
|
{
|
|
|
|
path: 'tx/:id',
|
|
|
|
component: TransactionComponent
|
|
|
|
},
|
|
|
|
{
|
|
|
|
path: 'block/:id',
|
|
|
|
component: BlockComponent
|
|
|
|
},
|
|
|
|
{
|
|
|
|
path: 'mempool-block/:id',
|
|
|
|
component: MempoolBlockComponent
|
|
|
|
},
|
|
|
|
],
|
|
|
|
},
|
|
|
|
{
|
|
|
|
path: 'blocks',
|
|
|
|
component: LatestBlocksComponent,
|
|
|
|
},
|
|
|
|
{
|
|
|
|
path: 'graphs',
|
|
|
|
component: StatisticsComponent,
|
|
|
|
},
|
|
|
|
{
|
|
|
|
path: 'address/:id',
|
|
|
|
component: AddressComponent
|
|
|
|
},
|
|
|
|
{
|
|
|
|
path: 'assets',
|
2022-02-06 01:20:26 +04:00
|
|
|
component: AssetsNavComponent,
|
|
|
|
children: [
|
|
|
|
{
|
|
|
|
path: 'featured',
|
|
|
|
component: AssetsFeaturedComponent,
|
|
|
|
},
|
|
|
|
{
|
|
|
|
path: 'all',
|
|
|
|
component: AssetsComponent,
|
|
|
|
},
|
|
|
|
{
|
|
|
|
path: 'asset/:id',
|
|
|
|
component: AssetComponent
|
|
|
|
},
|
|
|
|
{
|
2022-02-06 19:43:57 +04:00
|
|
|
path: 'group/:id',
|
2022-02-06 01:20:26 +04:00
|
|
|
component: AssetGroupComponent
|
|
|
|
},
|
|
|
|
{
|
|
|
|
path: '**',
|
|
|
|
redirectTo: 'featured'
|
|
|
|
}
|
|
|
|
]
|
2021-12-27 22:54:45 +04:00
|
|
|
},
|
|
|
|
{
|
|
|
|
path: 'docs/api/:type',
|
|
|
|
component: DocsComponent
|
|
|
|
},
|
|
|
|
{
|
|
|
|
path: 'docs/api',
|
|
|
|
redirectTo: 'docs/api/rest'
|
|
|
|
},
|
|
|
|
{
|
|
|
|
path: 'docs',
|
|
|
|
redirectTo: 'docs/api/rest'
|
|
|
|
},
|
|
|
|
{
|
|
|
|
path: 'api',
|
|
|
|
redirectTo: 'docs/api/rest'
|
|
|
|
},
|
|
|
|
{
|
|
|
|
path: 'about',
|
|
|
|
component: AboutComponent,
|
|
|
|
},
|
|
|
|
{
|
|
|
|
path: 'terms-of-service',
|
|
|
|
component: TermsOfServiceComponent
|
|
|
|
},
|
|
|
|
{
|
|
|
|
path: 'privacy-policy',
|
|
|
|
component: PrivacyPolicyComponent
|
|
|
|
},
|
|
|
|
{
|
|
|
|
path: 'trademark-policy',
|
|
|
|
component: TrademarkPolicyComponent
|
|
|
|
},
|
|
|
|
{
|
|
|
|
path: 'sponsor',
|
|
|
|
component: SponsorComponent,
|
|
|
|
},
|
|
|
|
],
|
|
|
|
},
|
|
|
|
{
|
|
|
|
path: 'testnet',
|
2021-07-27 17:10:38 +03:00
|
|
|
children: [
|
|
|
|
{
|
|
|
|
path: '',
|
2022-01-15 23:49:08 +04:00
|
|
|
component: LiquidMasterPageComponent,
|
2021-07-27 17:10:38 +03:00
|
|
|
children: [
|
|
|
|
{
|
|
|
|
path: '',
|
2022-01-15 23:49:08 +04:00
|
|
|
component: StartComponent,
|
|
|
|
children: [
|
|
|
|
{
|
|
|
|
path: '',
|
|
|
|
component: DashboardComponent
|
|
|
|
},
|
|
|
|
{
|
|
|
|
path: 'tx/push',
|
|
|
|
component: PushTransactionComponent,
|
|
|
|
},
|
|
|
|
{
|
|
|
|
path: 'tx/:id',
|
|
|
|
component: TransactionComponent
|
|
|
|
},
|
|
|
|
{
|
|
|
|
path: 'block/:id',
|
|
|
|
component: BlockComponent
|
|
|
|
},
|
|
|
|
{
|
|
|
|
path: 'mempool-block/:id',
|
|
|
|
component: MempoolBlockComponent
|
|
|
|
},
|
|
|
|
],
|
2021-07-27 17:10:38 +03:00
|
|
|
},
|
2021-10-19 15:37:45 +04:00
|
|
|
{
|
2022-01-15 23:49:08 +04:00
|
|
|
path: 'blocks',
|
|
|
|
component: LatestBlocksComponent,
|
2021-10-19 15:37:45 +04:00
|
|
|
},
|
2021-07-27 17:10:38 +03:00
|
|
|
{
|
2022-01-15 23:49:08 +04:00
|
|
|
path: 'graphs',
|
|
|
|
component: StatisticsComponent,
|
2021-07-27 17:10:38 +03:00
|
|
|
},
|
|
|
|
{
|
2022-01-15 23:49:08 +04:00
|
|
|
path: 'address/:id',
|
|
|
|
component: AddressComponent
|
2021-07-27 17:10:38 +03:00
|
|
|
},
|
2022-01-15 23:49:08 +04:00
|
|
|
{
|
|
|
|
path: 'assets',
|
2022-02-06 01:20:26 +04:00
|
|
|
component: AssetsNavComponent,
|
2022-02-06 18:24:15 +04:00
|
|
|
children: [
|
|
|
|
{
|
|
|
|
path: 'all',
|
|
|
|
component: AssetsComponent,
|
|
|
|
},
|
|
|
|
{
|
|
|
|
path: 'asset/:id',
|
|
|
|
component: AssetComponent
|
|
|
|
},
|
|
|
|
{
|
2022-02-06 19:43:57 +04:00
|
|
|
path: 'group/:id',
|
2022-02-06 18:24:15 +04:00
|
|
|
component: AssetGroupComponent
|
|
|
|
},
|
|
|
|
{
|
|
|
|
path: '**',
|
2022-02-07 14:24:18 +04:00
|
|
|
redirectTo: 'all'
|
2022-02-06 18:24:15 +04:00
|
|
|
}
|
|
|
|
]
|
2022-01-15 23:49:08 +04:00
|
|
|
},
|
|
|
|
{
|
|
|
|
path: 'docs/api/:type',
|
|
|
|
component: DocsComponent
|
|
|
|
},
|
|
|
|
{
|
|
|
|
path: 'docs/api',
|
|
|
|
redirectTo: 'docs/api/rest'
|
|
|
|
},
|
|
|
|
{
|
|
|
|
path: 'docs',
|
|
|
|
redirectTo: 'docs/api/rest'
|
|
|
|
},
|
|
|
|
{
|
|
|
|
path: 'api',
|
|
|
|
redirectTo: 'docs/api/rest'
|
|
|
|
},
|
|
|
|
{
|
|
|
|
path: 'about',
|
|
|
|
component: AboutComponent,
|
|
|
|
},
|
|
|
|
{
|
|
|
|
path: 'terms-of-service',
|
|
|
|
component: TermsOfServiceComponent
|
|
|
|
},
|
|
|
|
{
|
|
|
|
path: 'privacy-policy',
|
|
|
|
component: PrivacyPolicyComponent
|
|
|
|
},
|
|
|
|
{
|
|
|
|
path: 'trademark-policy',
|
|
|
|
component: TrademarkPolicyComponent
|
|
|
|
},
|
|
|
|
{
|
|
|
|
path: 'sponsor',
|
|
|
|
component: SponsorComponent,
|
2021-07-27 17:10:38 +03:00
|
|
|
},
|
|
|
|
],
|
|
|
|
},
|
|
|
|
{
|
2022-01-15 23:49:08 +04:00
|
|
|
path: 'tv',
|
|
|
|
component: TelevisionComponent
|
2021-07-28 22:32:13 +03:00
|
|
|
},
|
|
|
|
{
|
2022-01-15 23:49:08 +04:00
|
|
|
path: 'status',
|
|
|
|
component: StatusViewComponent
|
2021-07-28 22:32:13 +03:00
|
|
|
},
|
2022-01-15 23:49:08 +04:00
|
|
|
]
|
2021-07-27 17:10:38 +03:00
|
|
|
},
|
|
|
|
{
|
|
|
|
path: 'tv',
|
|
|
|
component: TelevisionComponent
|
|
|
|
},
|
|
|
|
{
|
|
|
|
path: 'status',
|
|
|
|
component: StatusViewComponent
|
|
|
|
},
|
|
|
|
{
|
|
|
|
path: '**',
|
|
|
|
redirectTo: ''
|
|
|
|
}];
|
|
|
|
}
|
|
|
|
|
2019-07-21 17:59:47 +03:00
|
|
|
@NgModule({
|
2020-11-07 04:30:52 +07:00
|
|
|
imports: [RouterModule.forRoot(routes, {
|
2021-05-10 22:15:54 -07:00
|
|
|
initialNavigation: 'enabled',
|
|
|
|
scrollPositionRestoration: 'enabled',
|
|
|
|
anchorScrolling: 'enabled'
|
2020-11-07 04:30:52 +07:00
|
|
|
})],
|
2019-07-21 17:59:47 +03:00
|
|
|
exports: [RouterModule]
|
|
|
|
})
|
|
|
|
export class AppRoutingModule { }
|
2021-12-01 17:01:50 -05:00
|
|
|
|