mirror of
https://github.com/mempool/mempool.git
synced 2025-02-23 22:46:54 +01:00
Add block link previews for other networks
This commit is contained in:
parent
d1e2ead13e
commit
fbf15f05ed
1 changed files with 38 additions and 4 deletions
|
@ -87,7 +87,10 @@ let routes: Routes = [
|
|||
children: [
|
||||
{
|
||||
path: ':id',
|
||||
component: BlockComponent
|
||||
component: BlockComponent,
|
||||
data: {
|
||||
ogImage: true
|
||||
}
|
||||
},
|
||||
],
|
||||
},
|
||||
|
@ -190,7 +193,10 @@ let routes: Routes = [
|
|||
children: [
|
||||
{
|
||||
path: ':id',
|
||||
component: BlockComponent
|
||||
component: BlockComponent,
|
||||
data: {
|
||||
ogImage: true
|
||||
}
|
||||
},
|
||||
],
|
||||
},
|
||||
|
@ -328,6 +334,14 @@ let routes: Routes = [
|
|||
path: 'block/:id',
|
||||
component: BlockPreviewComponent
|
||||
},
|
||||
{
|
||||
path: 'testnet/block/:id',
|
||||
component: BlockPreviewComponent
|
||||
},
|
||||
{
|
||||
path: 'signet/block/:id',
|
||||
component: BlockPreviewComponent
|
||||
},
|
||||
],
|
||||
},
|
||||
{
|
||||
|
@ -419,7 +433,10 @@ if (browserWindowEnv && browserWindowEnv.BASE_MODULE === 'liquid') {
|
|||
children: [
|
||||
{
|
||||
path: ':id',
|
||||
component: BlockComponent
|
||||
component: BlockComponent,
|
||||
data: {
|
||||
ogImage: true
|
||||
}
|
||||
},
|
||||
],
|
||||
},
|
||||
|
@ -523,7 +540,10 @@ if (browserWindowEnv && browserWindowEnv.BASE_MODULE === 'liquid') {
|
|||
children: [
|
||||
{
|
||||
path: ':id',
|
||||
component: BlockComponent
|
||||
component: BlockComponent,
|
||||
data: {
|
||||
ogImage: true
|
||||
}
|
||||
},
|
||||
],
|
||||
},
|
||||
|
@ -563,6 +583,20 @@ if (browserWindowEnv && browserWindowEnv.BASE_MODULE === 'liquid') {
|
|||
},
|
||||
],
|
||||
},
|
||||
{
|
||||
path: 'preview',
|
||||
component: MasterPagePreviewComponent,
|
||||
children: [
|
||||
{
|
||||
path: 'block/:id',
|
||||
component: BlockPreviewComponent
|
||||
},
|
||||
{
|
||||
path: 'testnet/block/:id',
|
||||
component: BlockPreviewComponent
|
||||
},
|
||||
],
|
||||
},
|
||||
{
|
||||
path: 'status',
|
||||
component: StatusViewComponent
|
||||
|
|
Loading…
Add table
Reference in a new issue