File tree Expand file tree Collapse file tree 3 files changed +11
-11
lines changed Expand file tree Collapse file tree 3 files changed +11
-11
lines changed Original file line number Diff line number Diff line change 5
5
< meta charset ="UTF-8 " />
6
6
< meta name ="viewport " content ="width=device-width, initial-scale=1.0 " />
7
7
< title > vlt benchmarks</ title >
8
- < link href ="/src/global.css " rel ="stylesheet ">
9
- < link rel ="icon " type ="image/png " href ="/assets/favicon/favicon-96x96.png " sizes ="96x96 " />
10
- < link rel ="icon " type ="image/svg+xml " href ="/assets/favicon/favicon.svg " />
11
- < link rel ="shortcut icon " href ="/assets/favicon/favicon.ico " />
12
- < link rel ="apple-touch-icon " sizes ="180x180 " href ="/assets/favicon/apple-touch-icon.png " />
13
- < link rel ="manifest " href ="/assets/favicon/site.webmanifest " />
8
+ < link href ="/benchmarks/ src/global.css " rel ="stylesheet ">
9
+ < link rel ="icon " type ="image/png " href ="/benchmarks/ assets/favicon/favicon-96x96.png " sizes ="96x96 " />
10
+ < link rel ="icon " type ="image/svg+xml " href ="/benchmarks/ assets/favicon/favicon.svg " />
11
+ < link rel ="shortcut icon " href ="/benchmarks/ assets/favicon/favicon.ico " />
12
+ < link rel ="apple-touch-icon " sizes ="180x180 " href ="/benchmarks/ assets/favicon/apple-touch-icon.png " />
13
+ < link rel ="manifest " href ="/benchmarks/ assets/favicon/site.webmanifest " />
14
14
</ head >
15
15
16
16
< body >
17
17
< div id ="root "> </ div >
18
- < script type ="module " src ="/src/main.tsx "> </ script >
18
+ < script type ="module " src ="/benchmarks/ src/main.tsx "> </ script >
19
19
</ body >
20
20
21
21
</ html >
Original file line number Diff line number Diff line change @@ -3,11 +3,11 @@ export const TODAY = new Date();
3
3
4
4
export const DATE_YEAR = TODAY . getFullYear ( ) ;
5
5
6
- export const DATE_MONTH = TODAY . getMonth ( ) + 1 ;
6
+ export const DATE_MONTH = String ( TODAY . getMonth ( ) + 1 ) . padStart ( 2 , "0" ) ;
7
7
8
- export const DATE_DAY = TODAY . getDate ( ) ;
8
+ export const DATE_DAY = String ( TODAY . getDate ( ) ) . padStart ( 2 , "0" ) ;
9
9
10
- export const CHART_DATA_URL = `/${ DATE_YEAR } -${ DATE_MONTH } -${ DATE_DAY } /chart-data.json` ;
10
+ export const CHART_DATA_URL = `/benchmarks/ ${ DATE_YEAR } -${ DATE_MONTH } -${ DATE_DAY } /chart-data.json` ;
11
11
12
12
export const CHART_DEFAULTS = {
13
13
HEIGHT : 300 ,
Original file line number Diff line number Diff line change @@ -34,7 +34,7 @@ export const usePackageCountData = (
34
34
35
35
for ( const fixture of fixtures ) {
36
36
try {
37
- const url = `/${ DATE_YEAR } -${ DATE_MONTH } -${ DATE_DAY } /${ fixture } -${ variation } -package-count.json` ;
37
+ const url = `/benchmarks/ ${ DATE_YEAR } -${ DATE_MONTH } -${ DATE_DAY } /${ fixture } -${ variation } -package-count.json` ;
38
38
const response = await fetch ( url ) ;
39
39
40
40
if ( response . ok ) {
You can’t perform that action at this time.
0 commit comments