1- import { jsonFetcher } from " ./src/data/json-fetcher.js" ;
2- import { getDateXDaysAgo } from " ./src/utils/date-utils.js" ;
1+ import { jsonFetcher } from ' ./src/data/json-fetcher.js'
2+ import { getDateXDaysAgo } from ' ./src/utils/date-utils.js'
33
4- const start = '2024-04-07' ;
5- const end = getDateXDaysAgo ( 1 ) ;
4+ const start = '2024-04-07'
5+ const end = getDateXDaysAgo ( 1 )
66
77const result = await jsonFetcher ( `https://stats.filspark.com/miners/retrieval-success-rate/summary?from=${ start } &to=${ end } ` )
8- const providerPaths = result . map ( provider => `/provider/${ provider . miner_id } ` ) ;
8+ const providerPaths = result . map ( provider => `/provider/${ provider . miner_id } ` )
99
1010// See https://observablehq.com/framework/config for documentation.
1111export default {
1212 // The app’s title; used in the sidebar and webpage titles.
13- title : " spark-dash" ,
13+ title : ' spark-dash' ,
1414
1515 // The pages and sections in the sidebar. If you don’t specify this option,
1616 // all pages will be listed in alphabetical order. Listing pages explicitly
@@ -29,10 +29,10 @@ export default {
2929 head : '<link rel="icon" href="media/spark-with-bbox.png" type="image/png" sizes="32x32"><script defer data-domain="dashboard.filspark.com" src="https://plausible.io/js/script.js"></script>' ,
3030
3131 // The path to the source root.
32- root : " src" ,
32+ root : ' src' ,
3333
3434 // Some additional configuration options and their defaults:
35- theme : " dark" , // try "light", "dark", "slate", etc.
35+ theme : ' dark' , // try "light", "dark", "slate", etc.
3636 // header: "", // what to show in the header (HTML)
3737 // footer: "Built with Observable.", // what to show in the footer (HTML)
3838 sidebar : false , // whether to show the sidebar
@@ -43,5 +43,5 @@ export default {
4343 // linkify: true, // convert URLs in Markdown to links
4444 // typographer: false, // smart quotes and other typographic improvements
4545 // cleanUrls: true, // drop .html from URLs
46- dynamicPaths : providerPaths ,
47- } ;
46+ dynamicPaths : providerPaths
47+ }
0 commit comments