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