Merge pull request #4767 from mempool/hunicus/dot-space-previews

Add unfurler routes for /enterprise and /sponsor
This commit is contained in:
wiz 2024-03-12 14:20:07 +09:00 committed by GitHub
commit 0c4631359d
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 27 additions and 19 deletions

Binary file not shown.

After

Width:  |  Height:  |  Size: 177 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 222 KiB

View File

@ -19,6 +19,13 @@ const routes = {
title: "Mempool Accelerator", title: "Mempool Accelerator",
fallbackImg: '/resources/previews/accelerator.jpg', fallbackImg: '/resources/previews/accelerator.jpg',
}, },
address: {
render: true,
params: 1,
getTitle(path) {
return `Address: ${path[0]}`;
}
},
block: { block: {
render: true, render: true,
params: 1, params: 1,
@ -40,25 +47,9 @@ const routes = {
} }
} }
}, },
address: { enterprise: {
render: true, title: "Mempool Enterprise",
params: 1, fallbackImg: '/resources/previews/enterprise.jpg',
getTitle(path) {
return `Address: ${path[0]}`;
}
},
tx: {
render: true,
params: 1,
getTitle(path) {
return `Transaction: ${path[0]}`;
},
routes: {
push: {
title: "Push Transaction",
fallbackImg: '/resources/previews/tx-push.jpg',
}
}
}, },
lightning: { lightning: {
title: "Lightning", title: "Lightning",
@ -119,6 +110,10 @@ const routes = {
title: "RBF", title: "RBF",
fallbackImg: '/resources/previews/rbf.jpg', fallbackImg: '/resources/previews/rbf.jpg',
}, },
sponsor: {
title: "Community Sponsors",
fallbackImg: '/resources/previews/sponsor.jpg',
},
"terms-of-service": { "terms-of-service": {
title: "Terms of Service", title: "Terms of Service",
fallbackImg: '/resources/previews/terms-of-service.jpg', fallbackImg: '/resources/previews/terms-of-service.jpg',
@ -127,6 +122,19 @@ const routes = {
title: "Trademark Policy", title: "Trademark Policy",
fallbackImg: '/resources/previews/trademark-policy.jpg', fallbackImg: '/resources/previews/trademark-policy.jpg',
}, },
tx: {
render: true,
params: 1,
getTitle(path) {
return `Transaction: ${path[0]}`;
},
routes: {
push: {
title: "Push Transaction",
fallbackImg: '/resources/previews/tx-push.jpg',
}
}
}
}; };
const networks = { const networks = {