From fbf15f05ed98f185e4cac443fd136d0b3cb26fb4 Mon Sep 17 00:00:00 2001 From: Mononaut Date: Tue, 26 Jul 2022 21:21:15 +0000 Subject: [PATCH] Add block link previews for other networks --- frontend/src/app/app-routing.module.ts | 42 +++++++++++++++++++++++--- 1 file changed, 38 insertions(+), 4 deletions(-) diff --git a/frontend/src/app/app-routing.module.ts b/frontend/src/app/app-routing.module.ts index 3489869ec..28faa9595 100644 --- a/frontend/src/app/app-routing.module.ts +++ b/frontend/src/app/app-routing.module.ts @@ -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