Skip to content

Commit 8544220

Browse files
Deploy preview for PR 2010 πŸ›«
1 parent ba75321 commit 8544220

File tree

1,008 files changed

+19046
-0
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

1,008 files changed

+19046
-0
lines changed

β€Žpr-preview/pr-2010/404.html

Lines changed: 52 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,52 @@
1+
<!DOCTYPE html>
2+
<html>
3+
<head>
4+
<meta charset="utf-8" />
5+
<title>Single Page Apps for GitHub Pages</title>
6+
<script type="text/javascript">
7+
// Single Page Apps for GitHub Pages
8+
// MIT License
9+
// https://github.com/rafgraph/spa-github-pages
10+
// This script takes the current url and converts the path and query
11+
// string into just a query string, and then redirects the browser
12+
// to the new url with only a query string and hash fragment,
13+
// e.g. https://www.foo.tld/one/two?a=b&c=d#qwe, becomes
14+
// https://www.foo.tld/?/one/two&a=b~and~c=d#qwe
15+
// Note: this 404.html file must be at least 512 bytes for it to work
16+
// with Internet Explorer (it is currently > 512 bytes)
17+
18+
// If you're creating a Project Pages site and NOT using a custom domain,
19+
// then set pathSegmentsToKeep to 1 (enterprise users may need to set it to > 1).
20+
// This way the code will only replace the route part of the path, and not
21+
// the real directory in which the app resides, for example:
22+
// https://username.github.io/repo-name/one/two?a=b&c=d#qwe becomes
23+
// https://username.github.io/repo-name/?/one/two&a=b~and~c=d#qwe
24+
// Otherwise, leave pathSegmentsToKeep as 0.
25+
26+
// Note:
27+
// This file needs to be present in the root of gh-pages branch along side pr-preview folder.
28+
// As the preview url has 3 levels of nesting push-dapp/pr-preview/pr-{prNumber}.
29+
// So the 404.html file present in the public folder won't work so we need to put this extra 404.html in gh-pages branch root.
30+
31+
var isPrPreview = window.location.pathname.includes('/pr-preview/');
32+
var pathSegmentsToKeep = isPrPreview ? 3 : 0;
33+
34+
var l = window.location;
35+
l.replace(
36+
l.protocol +
37+
'//' +
38+
l.hostname +
39+
(l.port ? ':' + l.port : '') +
40+
l.pathname
41+
.split('/')
42+
.slice(0, 1 + pathSegmentsToKeep)
43+
.join('/') +
44+
'/?/' +
45+
l.pathname.slice(1).split('/').slice(pathSegmentsToKeep).join('/').replace(/&/g, '~and~') +
46+
(l.search ? '&' + l.search.slice(1).replace(/&/g, '~and~') : '') +
47+
l.hash
48+
);
49+
</script>
50+
</head>
51+
<body></body>
52+
</html>

β€Žpr-preview/pr-2010/CNAME

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
autogenerated.epns.io

β€Žpr-preview/pr-2010/DOWNTIME2.png

200 KB
Loading

β€Žpr-preview/pr-2010/Settings.svg

Lines changed: 9 additions & 0 deletions
Loading

β€Žpr-preview/pr-2010/_redirects

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
/* /index.html 200
11.2 KB
Loading
17.4 KB
Loading
9.94 KB
Loading

0 commit comments

Comments
Β (0)