react-open-source-grid 1.3.3 → 1.3.4
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 +8 -31
- package/package.json +1 -1
package/dist/404.html
CHANGED
|
@@ -2,37 +2,14 @@
|
|
|
2
2
|
<html>
|
|
3
3
|
<head>
|
|
4
4
|
<meta charset="utf-8">
|
|
5
|
-
<title>
|
|
6
|
-
<script
|
|
7
|
-
//
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
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
|
-
var pathSegmentsToKeep = 0;
|
|
26
|
-
|
|
27
|
-
var l = window.location;
|
|
28
|
-
l.replace(
|
|
29
|
-
l.protocol + '//' + l.hostname + (l.port ? ':' + l.port : '') +
|
|
30
|
-
l.pathname.split('/').slice(0, 1 + pathSegmentsToKeep).join('/') + '/?/' +
|
|
31
|
-
l.pathname.slice(1).split('/').slice(pathSegmentsToKeep).join('/').replace(/&/g, '~and~') +
|
|
32
|
-
(l.search ? '&' + l.search.slice(1).replace(/&/g, '~and~') : '') +
|
|
33
|
-
l.hash
|
|
34
|
-
);
|
|
35
|
-
|
|
5
|
+
<title>Redirecting...</title>
|
|
6
|
+
<script>
|
|
7
|
+
// Redirect to index.html, preserving path, query, and hash
|
|
8
|
+
var pathname = window.location.pathname;
|
|
9
|
+
var search = window.location.search;
|
|
10
|
+
var hash = window.location.hash;
|
|
11
|
+
var redirectUrl = '/' + pathname.replace(/^\//, '') + search + hash;
|
|
12
|
+
window.location.replace(redirectUrl);
|
|
36
13
|
</script>
|
|
37
14
|
</head>
|
|
38
15
|
<body>
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "react-open-source-grid",
|
|
3
3
|
"private": false,
|
|
4
|
-
"version": "1.3.
|
|
4
|
+
"version": "1.3.4",
|
|
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",
|