Add block link previews for other networks

This commit is contained in:
Mononaut 2022-07-26 21:21:15 +00:00
parent d1e2ead13e
commit fbf15f05ed
No known key found for this signature in database
GPG Key ID: 61B952CAF4838F94

View File

@ -87,7 +87,10 @@ let routes: Routes = [
children: [ children: [
{ {
path: ':id', path: ':id',
component: BlockComponent component: BlockComponent,
data: {
ogImage: true
}
}, },
], ],
}, },
@ -190,7 +193,10 @@ let routes: Routes = [
children: [ children: [
{ {
path: ':id', path: ':id',
component: BlockComponent component: BlockComponent,
data: {
ogImage: true
}
}, },
], ],
}, },
@ -328,6 +334,14 @@ let routes: Routes = [
path: 'block/:id', path: 'block/:id',
component: BlockPreviewComponent 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: [ children: [
{ {
path: ':id', path: ':id',
component: BlockComponent component: BlockComponent,
data: {
ogImage: true
}
}, },
], ],
}, },
@ -523,7 +540,10 @@ if (browserWindowEnv && browserWindowEnv.BASE_MODULE === 'liquid') {
children: [ children: [
{ {
path: ':id', 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', path: 'status',
component: StatusViewComponent component: StatusViewComponent