From b50d747440dd19f034cfdde1f4c231189a36541e Mon Sep 17 00:00:00 2001 From: wiz Date: Mon, 11 Mar 2024 15:38:09 +0900 Subject: [PATCH] Add missing unfurler routes, rename images to match --- .../{recent-blocks.jpg => blocks.jpg} | Bin .../{privacy.jpg => privacy-policy.jpg} | Bin .../{tos.jpg => terms-of-service.jpg} | Bin .../{broadcast-tx.jpg => tx-push.jpg} | Bin unfurler/src/routes.ts | 45 +++++++++++++++++- 5 files changed, 44 insertions(+), 1 deletion(-) rename frontend/src/resources/previews/{recent-blocks.jpg => blocks.jpg} (100%) rename frontend/src/resources/previews/{privacy.jpg => privacy-policy.jpg} (100%) rename frontend/src/resources/previews/{tos.jpg => terms-of-service.jpg} (100%) rename frontend/src/resources/previews/{broadcast-tx.jpg => tx-push.jpg} (100%) diff --git a/frontend/src/resources/previews/recent-blocks.jpg b/frontend/src/resources/previews/blocks.jpg similarity index 100% rename from frontend/src/resources/previews/recent-blocks.jpg rename to frontend/src/resources/previews/blocks.jpg diff --git a/frontend/src/resources/previews/privacy.jpg b/frontend/src/resources/previews/privacy-policy.jpg similarity index 100% rename from frontend/src/resources/previews/privacy.jpg rename to frontend/src/resources/previews/privacy-policy.jpg diff --git a/frontend/src/resources/previews/tos.jpg b/frontend/src/resources/previews/terms-of-service.jpg similarity index 100% rename from frontend/src/resources/previews/tos.jpg rename to frontend/src/resources/previews/terms-of-service.jpg diff --git a/frontend/src/resources/previews/broadcast-tx.jpg b/frontend/src/resources/previews/tx-push.jpg similarity index 100% rename from frontend/src/resources/previews/broadcast-tx.jpg rename to frontend/src/resources/previews/tx-push.jpg diff --git a/unfurler/src/routes.ts b/unfurler/src/routes.ts index fefd89902..dc6cbcb40 100644 --- a/unfurler/src/routes.ts +++ b/unfurler/src/routes.ts @@ -7,6 +7,18 @@ interface Match { } const routes = { + about: { + title: "About", + fallbackImg: '/resources/previews/about.jpg', + }, + acceleration: { + title: "Acceleration", + fallbackImg: '/resources/previews/accelerator.jpg', + }, + accelerator: { + title: "Mempool Accelerator", + fallbackImg: '/resources/previews/accelerator.jpg', + }, block: { render: true, params: 1, @@ -14,6 +26,16 @@ const routes = { return `Block: ${path[0]}`; } }, + docs: { + title: "Docs", + fallbackImg: '/resources/previews/faq.jpg', + routes: { + faq: { + title: "FAQ", + fallbackImg: '/resources/previews/faq.jpg', + } + } + }, address: { render: true, params: 1, @@ -26,6 +48,11 @@ const routes = { params: 1, getTitle(path) { return `Transaction: ${path[0]}`; + }, + routes: { + push: { + fallbackImg: '/resources/previews/tx-push.jpg', + } } }, lightning: { @@ -78,7 +105,23 @@ const routes = { } } } - } + }, + privacy-policy: { + title: "Privacy Policy", + fallbackImg: '/resources/previews/privacy-policy.jpg', + }, + rbf: { + title: "RBF", + fallbackImg: '/resources/previews/rbf.jpg', + }, + terms-of-service: { + title: "Terms of Service", + fallbackImg: '/resources/previews/terms-of-service.jpg', + }, + trademark-policy: { + title: "Trademark Policy", + fallbackImg: '/resources/previews/trademark-policy.jpg', + }, }; const networks = {