react-open-source-grid 1.3.8 → 1.4.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.
- package/dist/404.html +23 -0
- package/dist/index.html +9 -21
- package/package.json +1 -1
package/dist/404.html
ADDED
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
<!DOCTYPE html>
|
|
2
|
+
<html>
|
|
3
|
+
<head>
|
|
4
|
+
<meta charset="utf-8">
|
|
5
|
+
<title>Redirecting...</title>
|
|
6
|
+
<script>
|
|
7
|
+
(function () {
|
|
8
|
+
var l = window.location;
|
|
9
|
+
// If we already came through the redirect, don't loop
|
|
10
|
+
if (l.search.indexOf('from404=1') !== -1) {
|
|
11
|
+
return;
|
|
12
|
+
}
|
|
13
|
+
var path = l.pathname + l.search + l.hash;
|
|
14
|
+
// Always go to root, encoding the original path
|
|
15
|
+
var redirectUrl = '/?from404=1&path=' + encodeURIComponent(path);
|
|
16
|
+
l.replace(redirectUrl);
|
|
17
|
+
})();
|
|
18
|
+
</script>
|
|
19
|
+
</head>
|
|
20
|
+
<body>
|
|
21
|
+
Redirecting...
|
|
22
|
+
</body>
|
|
23
|
+
</html>
|
package/dist/index.html
CHANGED
|
@@ -45,28 +45,16 @@
|
|
|
45
45
|
<!-- Theme Color -->
|
|
46
46
|
<meta name="theme-color" content="#1e293b" />
|
|
47
47
|
|
|
48
|
-
<!-- GitHub Pages SPA redirect
|
|
49
|
-
<script
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
// which won't cause the browser to attempt to load the new url.
|
|
57
|
-
// When the single page app is loaded further down in this file,
|
|
58
|
-
// the correct url will be waiting in the browser's history for
|
|
59
|
-
// the single page app to route accordingly.
|
|
60
|
-
(function(l) {
|
|
61
|
-
if (l.search[1] === '/' ) {
|
|
62
|
-
var decoded = l.search.slice(1).split('&').map(function(s) {
|
|
63
|
-
return s.replace(/~and~/g, '&')
|
|
64
|
-
}).join('?');
|
|
65
|
-
window.history.replaceState(null, null,
|
|
66
|
-
l.pathname + decoded + l.hash
|
|
67
|
-
);
|
|
48
|
+
<!-- GitHub Pages SPA redirect fix -->
|
|
49
|
+
<script>
|
|
50
|
+
(function () {
|
|
51
|
+
var l = window.location;
|
|
52
|
+
var params = new URLSearchParams(l.search);
|
|
53
|
+
if (params.get('from404') === '1') {
|
|
54
|
+
var path = params.get('path') || '/';
|
|
55
|
+
window.history.replaceState(null, '', path);
|
|
68
56
|
}
|
|
69
|
-
}(
|
|
57
|
+
})();
|
|
70
58
|
</script>
|
|
71
59
|
<script type="module" crossorigin src="/assets/index-C7Pq1adu.js"></script>
|
|
72
60
|
<link rel="stylesheet" crossorigin href="/assets/index-DqLWhpvP.css">
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "react-open-source-grid",
|
|
3
3
|
"private": false,
|
|
4
|
-
"version": "1.
|
|
4
|
+
"version": "1.4.0",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"description": "A high-performance React DataGrid component with advanced features like virtual scrolling, infinite scrolling, tree data, market data mode, and more",
|
|
7
7
|
"main": "./dist/assets/index.js",
|