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
7- const 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 } ` ) ;
7+ const result = await jsonFetcher (
8+ `https://stats.filspark.com/miners/retrieval-success-rate/summary?from=${ start } &to=${ end } ` ,
9+ )
10+ const providerPaths = result . map ( ( provider ) => `/provider/${ provider . miner_id } ` )
911
1012// See https://observablehq.com/framework/config for documentation.
1113export default {
1214 // The app’s title; used in the sidebar and webpage titles.
13- title : "spark-dash" ,
15+ title : 'Spark Dashboard' ,
1416
1517 // The pages and sections in the sidebar. If you don’t specify this option,
1618 // all pages will be listed in alphabetical order. Listing pages explicitly
@@ -29,10 +31,10 @@ export default {
2931 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>' ,
3032
3133 // The path to the source root.
32- root : " src" ,
34+ root : ' src' ,
3335
3436 // Some additional configuration options and their defaults:
35- // theme: "default" , // try "light", "dark", "slate", etc.
37+ theme : 'dark' , // try "light", "dark", "slate", etc.
3638 // header: "", // what to show in the header (HTML)
3739 // footer: "Built with Observable.", // what to show in the footer (HTML)
3840 sidebar : false , // whether to show the sidebar
@@ -44,4 +46,4 @@ export default {
4446 // typographer: false, // smart quotes and other typographic improvements
4547 // cleanUrls: true, // drop .html from URLs
4648 dynamicPaths : providerPaths ,
47- } ;
49+ }
0 commit comments