Fix unfurler resources build

This commit is contained in:
Mononaut 2024-05-09 15:50:43 +00:00
parent 9b83ac29b7
commit eeb2bae9f3
No known key found for this signature in database
GPG Key ID: A3F058E41374C04E
12 changed files with 9 additions and 10 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/sv/onbtc-preview.jpg" />
<meta property="og:image" content="https://mempool.space/resources/onbtc/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,14 +19,14 @@
<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/sv/onbtc-preview.jpg" />
<meta name="twitter:image" content="https://mempool.space/resources/onbtc/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">
<link rel="icon" type="image/png" sizes="32x32" href="/resources/sv/favicons/favicon-32x32.png">
<link rel="icon" type="image/png" sizes="16x16" href="/resources/sv/favicons/favicon-16x16.png">
<link rel="manifest" href="/resources/sv/favicons/site.webmanifest">
<link rel="shortcut icon" href="/resources/sv/favicons/favicon.ico">
<link rel="apple-touch-icon" sizes="180x180" href="/resources/onbtc/favicons/apple-touch-icon.png">
<link rel="icon" type="image/png" sizes="32x32" href="/resources/onbtc/favicons/favicon-32x32.png">
<link rel="icon" type="image/png" sizes="16x16" href="/resources/onbtc/favicons/favicon-16x16.png">
<link rel="manifest" href="/resources/onbtc/favicons/site.webmanifest">
<link rel="shortcut icon" href="/resources/onbtc/favicons/favicon.ico">
<link id="canonical" rel="canonical" href="https://bitcoin.gob.sv">
<meta name="apple-mobile-web-app-capable" content="yes">

View File

Before

Width:  |  Height:  |  Size: 19 KiB

After

Width:  |  Height:  |  Size: 19 KiB

View File

Before

Width:  |  Height:  |  Size: 66 KiB

After

Width:  |  Height:  |  Size: 66 KiB

View File

Before

Width:  |  Height:  |  Size: 18 KiB

After

Width:  |  Height:  |  Size: 18 KiB

View File

Before

Width:  |  Height:  |  Size: 756 B

After

Width:  |  Height:  |  Size: 756 B

View File

Before

Width:  |  Height:  |  Size: 1.7 KiB

After

Width:  |  Height:  |  Size: 1.7 KiB

View File

Before

Width:  |  Height:  |  Size: 15 KiB

After

Width:  |  Height:  |  Size: 15 KiB

View File

Before

Width:  |  Height:  |  Size: 340 KiB

After

Width:  |  Height:  |  Size: 340 KiB

View File

@ -9,7 +9,7 @@
"main": "index.ts",
"scripts": {
"tsc": "./node_modules/typescript/bin/tsc",
"build": "npm run tsc && cp -r src/resources dist/resources",
"build": "npm run tsc && rsync -av ../frontend/dist/mempool/browser/resources dist/",
"start": "node --max-old-space-size=2048 dist/index.js",
"unfurler": "node --max-old-space-size=4096 dist/index.js",
"lint": "./node_modules/.bin/eslint . --ext .ts",

View File

@ -1 +0,0 @@
../../frontend/src/resources

View File

@ -254,7 +254,7 @@ const networks = {
routes: {} // no routes supported
},
onbtc: {
fallbackImg: '/resources/sv/onbtc-preview.jpg',
fallbackImg: '/resources/onbtc/onbtc-preview.jpg',
routes: { // only dynamic routes supported
block: routes.block,
address: routes.address,