Skip to content
This repository was archived by the owner on Jan 6, 2026. It is now read-only.

Commit 6e51937

Browse files
author
Nikolas Haimerl
committed
fmt
1 parent 1ff7b3b commit 6e51937

File tree

1 file changed

+9
-5
lines changed

1 file changed

+9
-5
lines changed

observablehq.config.js

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -6,13 +6,17 @@ const startClients = '2025-02-25'
66
const end = getDateXDaysAgo(1)
77

88
const providersSummary = await jsonFetcher(
9-
`https://stats.filspark.com/miners/retrieval-success-rate/summary?from=${startProviders}&to=${end}`
9+
`https://stats.filspark.com/miners/retrieval-success-rate/summary?from=${startProviders}&to=${end}`,
1010
)
1111
const clientsSummary = await jsonFetcher(
12-
`https://stats.filspark.com/clients/retrieval-success-rate/summary?from=${startClients}&to=${end}`
12+
`https://stats.filspark.com/clients/retrieval-success-rate/summary?from=${startClients}&to=${end}`,
13+
)
14+
const providerPaths = providersSummary.map(
15+
(provider) => `/provider/${provider.miner_id}`,
16+
)
17+
const clientPaths = clientsSummary.map(
18+
(client) => `/client/${client.client_id}`,
1319
)
14-
const providerPaths = providersSummary.map((provider) => `/provider/${provider.miner_id}`)
15-
const clientPaths = clientsSummary.map((client) => `/client/${client.client_id}`)
1620
// See https://observablehq.com/framework/config for documentation.
1721
export default {
1822
// The app’s title; used in the sidebar and webpage titles.
@@ -49,5 +53,5 @@ export default {
4953
// linkify: true, // convert URLs in Markdown to links
5054
// typographer: false, // smart quotes and other typographic improvements
5155
// cleanUrls: true, // drop .html from URLs
52-
dynamicPaths: [...providerPaths, ...clientPaths]
56+
dynamicPaths: [...providerPaths, ...clientPaths],
5357
}

0 commit comments

Comments
 (0)