File tree Expand file tree Collapse file tree 3 files changed +43
-1
lines changed
Expand file tree Collapse file tree 3 files changed +43
-1
lines changed Original file line number Diff line number Diff line change 1+ <!DOCTYPE html>
2+ < html >
3+ < head >
4+ < meta charset ="utf-8 ">
5+ < title > WCS Points</ title >
6+ < script type ="text/javascript ">
7+ // handles redirects for single page apps on GitHub Pages
8+ var segmentCount = 0 ;
9+ var location = window . location ;
10+
11+ // redirect to the index.html with a special query parameter containing the path
12+ location . replace (
13+ location . protocol + '//' + location . hostname + ( location . port ? ':' + location . port : '' ) +
14+ '/' +
15+ '?path=' +
16+ location . pathname . slice ( 1 ) . split ( '/' ) . slice ( segmentCount ) . join ( '/' ) +
17+ ( location . search || '' ) +
18+ ( location . hash || '' )
19+ ) ;
20+ </ script >
21+ </ head >
22+ < body >
23+ Redirecting...
24+ </ body >
25+ </ html >
Original file line number Diff line number Diff line change 55 < link rel ="icon " type ="image/svg+xml " href ="./src/assets/logo-icon.png " />
66 < meta name ="viewport " content ="width=device-width, initial-scale=1.0 " />
77 < title > WCS Points</ title >
8+ < script type ="text/javascript ">
9+ // Thandles the redirect from 404.html
10+ ( function ( ) {
11+ var path = window . location . search . match ( / p a t h = ( [ ^ & ] * ) / ) ;
12+ if ( path ) {
13+ var originalPath = path [ 1 ] ;
14+ var search = window . location . search . replace ( / p a t h = [ ^ & ] * ( & | $ ) / , '' ) ;
15+ search = search === '?' ? '' : search ;
16+
17+ window . history . replaceState ( null , null ,
18+ '/' + originalPath +
19+ ( search || '' ) +
20+ ( window . location . hash || '' )
21+ ) ;
22+ }
23+ } ) ( ) ;
24+ </ script >
825 </ head >
926 < body >
1027 < div id ="root "> </ div >
Original file line number Diff line number Diff line change 1111 "prepare" : " husky install" ,
1212 "prettier-format" : " prettier --config .prettierrc --write" ,
1313 "predeploy" : " npm run build" ,
14- "deploy" : " gh-pages -b main -d build "
14+ "deploy" : " gh-pages -b main -d dist "
1515 },
1616 "husky" : {
1717 "hooks" : {
You can’t perform that action at this time.
0 commit comments