@zjlab-fe/data-hub-ui 0.0.8 → 0.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,20 @@
1
+ <!doctype html><html lang="en"><head><meta charset="utf-8"/><meta name="viewport" content="width=device-width,initial-scale=1"/><title>title</title><script>// Single Page Apps for GitHub Pages
2
+ // MIT License
3
+ // https://github.com/rafgraph/spa-github-pages
4
+ // This script checks to see if a redirect is present in the query string,
5
+ // converts it back into the correct url and adds it to the
6
+ // browser's history using window.history.replaceState(...),
7
+ // which won't cause the browser to attempt to load the new url.
8
+ // When the single page app is loaded further down in this file,
9
+ // the correct url will be waiting in the browser's history for
10
+ // the single page app to route accordingly.
11
+ (function(l) {
12
+ if (l.search[1] === '/' ) {
13
+ var decoded = l.search.slice(1).split('&').map(function(s) {
14
+ return s.replace(/~and~/g, '&')
15
+ }).join('?');
16
+ window.history.replaceState(null, null,
17
+ l.pathname.slice(0, -1) + decoded + l.hash
18
+ );
19
+ }
20
+ }(window.location))</script></head><body><div id="root"></div><script defer="defer" src="/fe-assets/data-hub-ui/static/main.e27916db0c5de839c618.js"></script></body></html>