Reorder unfurler routes to be alphabetic

This commit is contained in:
hunicus 2024-03-12 10:22:42 +09:00
parent 93f547e446
commit df51018599
No known key found for this signature in database
GPG Key ID: 24837C51B6D81FD9

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,26 +47,6 @@ 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',
}
}
},
lightning: {
title: "Lightning",
fallbackImg: '/resources/previews/lightning.jpg',
@ -127,6 +114,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 = {