mirror of
https://github.com/bitcoinresearchkit/brk.git
synced 2026-04-24 14:49:58 -07:00
global: snapshot
This commit is contained in:
@@ -1454,12 +1454,19 @@ function createUtils() {
|
||||
* @param {number} [to]
|
||||
*/
|
||||
function genPath(index, vecId, from, to) {
|
||||
let path = `/query?index=${serde.index.serialize(index)}&ids=${vecId}`;
|
||||
let path = `/${serde.index.serialize(index)}-to-${vecId.replaceAll(
|
||||
"_",
|
||||
"-"
|
||||
)}?`;
|
||||
|
||||
if (from !== undefined) {
|
||||
path += `&from=${from}`;
|
||||
path += `from=${from}`;
|
||||
}
|
||||
if (to !== undefined) {
|
||||
path += `&to=${to}`;
|
||||
if (!path.endsWith("?")) {
|
||||
path += `&`;
|
||||
}
|
||||
path += `to=${to}`;
|
||||
}
|
||||
return path;
|
||||
}
|
||||
|
||||
@@ -3325,9 +3325,53 @@ function createPartialOptions(colors) {
|
||||
},
|
||||
],
|
||||
},
|
||||
{
|
||||
name: "Tools",
|
||||
tree: [
|
||||
{
|
||||
name: "API",
|
||||
url: () => "/api",
|
||||
},
|
||||
{
|
||||
name: "MCP",
|
||||
url: () =>
|
||||
"https://github.com/bitcoinresearchkit/brk/tree/main/crates/brk_mcp#brk-mcp",
|
||||
},
|
||||
{
|
||||
name: "Crates",
|
||||
url: () => "https://crates.io/crates/brk",
|
||||
},
|
||||
{
|
||||
name: "Source",
|
||||
url: () => "https://github.com/bitcoinresearchkit/brk",
|
||||
},
|
||||
],
|
||||
},
|
||||
{
|
||||
name: "Hosting",
|
||||
tree: [
|
||||
{
|
||||
name: "Status",
|
||||
url: () => "https://status.bitcoinresearchkit.org/",
|
||||
},
|
||||
{
|
||||
name: "Self",
|
||||
url: () => "https://crates.io/crates/brk_cli",
|
||||
},
|
||||
{
|
||||
name: "As a service",
|
||||
url: () =>
|
||||
"https://github.com/bitcoinresearchkit/brk?tab=readme-ov-file#hosting-as-a-service",
|
||||
},
|
||||
],
|
||||
},
|
||||
{
|
||||
name: "Social",
|
||||
tree: [
|
||||
{
|
||||
name: "GitHub",
|
||||
url: () => "https://github.com/bitcoinresearchkit/brk",
|
||||
},
|
||||
{
|
||||
name: "Nostr",
|
||||
url: () =>
|
||||
@@ -3347,41 +3391,6 @@ function createPartialOptions(colors) {
|
||||
},
|
||||
],
|
||||
},
|
||||
{
|
||||
name: "Hosting",
|
||||
tree: [
|
||||
{
|
||||
name: "Self",
|
||||
url: () => "https://crates.io/crates/brk_cli",
|
||||
},
|
||||
{
|
||||
name: "As a service",
|
||||
url: () =>
|
||||
"https://github.com/bitcoinresearchkit/brk?tab=readme_ov_file#hosting_as_a_service",
|
||||
},
|
||||
],
|
||||
},
|
||||
{
|
||||
name: "Developers",
|
||||
tree: [
|
||||
{
|
||||
name: "API",
|
||||
url: () => "/api",
|
||||
},
|
||||
{
|
||||
name: "Source",
|
||||
url: () => "https://github.com/bitcoinresearchkit/brk",
|
||||
},
|
||||
{
|
||||
name: "Status",
|
||||
url: () => "https://status.bitcoinresearchkit.org/",
|
||||
},
|
||||
{
|
||||
name: "Crates",
|
||||
url: () => "https://crates.io/crates/brk",
|
||||
},
|
||||
],
|
||||
},
|
||||
{
|
||||
name: "Donate",
|
||||
tree: [
|
||||
|
||||
Reference in New Issue
Block a user