Update unfurler routing, add fallback img

This commit is contained in:
Mononaut 2024-04-28 16:01:14 +00:00
parent 6b2cc23cd3
commit f5333c529c
No known key found for this signature in database
GPG Key ID: A3F058E41374C04E
4 changed files with 23 additions and 2 deletions

View File

@ -9,7 +9,7 @@
<base href="/">
<meta name="description" content="Explore the full Bitcoin ecosystem with The Mempool Open Source Project®. See the real-time status of your transactions, get network info, and more." />
<meta property="og:image" content="https://mempool.space/resources/previews/mempool-space-preview.jpg" />
<meta property="og:image" content="https://mempool.space/resources/sv/onbtc-preview.jpg" />
<meta property="og:image:type" content="image/jpeg" />
<meta property="og:image:width" content="2000" />
<meta property="og:image:height" content="1000" />
@ -19,7 +19,7 @@
<meta name="twitter:creator" content="@mempool">
<meta name="twitter:title" content="Oficina Nacional del Bitcoin - Bitcoin Explorer">
<meta name="twitter:description" content="Explore the full Bitcoin ecosystem with The Mempool Open Source Project®. See the real-time status of your transactions, get network info, and more." />
<meta name="twitter:image" content="https://mempool.space/resources/previews/mempool-space-preview.jpg" />
<meta name="twitter:image" content="https://mempool.space/resources/sv/onbtc-preview.jpg" />
<meta name="twitter:domain" content="bitcoin.gob.sv">
<link rel="apple-touch-icon" sizes="180x180" href="/resources/sv/favicons/apple-touch-icon.png">

Binary file not shown.

After

Width:  |  Height:  |  Size: 80 KiB

View File

@ -50,6 +50,9 @@ class Server {
case "bisq":
canonical = "https://bisq.markets"
break;
case "onbtc":
canonical = "https://bitcoin.gob.sv"
break;
default:
canonical = "https://mempool.space"
}

View File

@ -252,6 +252,24 @@ const networks = {
bisq: {
fallbackImg: '/resources/bisq/bisq-markets-preview.png',
routes: {} // no routes supported
},
onbtc: {
fallbackImg: '/resources/onbtc/onbtc-preview.png',
routes: { // only dynamic routes supported
block: routes.block,
address: routes.address,
tx: routes.tx,
mining: {
title: "Mining",
routes: {
pool: routes.mining.routes.pool,
}
},
lightning: {
title: "Lightning",
routes: routes.lightning.routes,
}
}
}
};