react-admin-base-bootstrap 0.8.23 → 0.9.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/bun.lockb +0 -0
- package/package.json +12 -16
- package/build.js +0 -24
- package/watch.js +0 -58
package/bun.lockb
CHANGED
|
Binary file
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "react-admin-base-bootstrap",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.9.0",
|
|
4
4
|
"description": "",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"test": "echo \"Error: no test specified\" && exit 1",
|
|
@@ -27,32 +27,28 @@
|
|
|
27
27
|
"peerDependencies": {
|
|
28
28
|
"react": "^18.2.0",
|
|
29
29
|
"react-dom": "^18.2.0",
|
|
30
|
-
"react-intl": "^6.
|
|
31
|
-
"react-router-dom": "^6.
|
|
30
|
+
"react-intl": "^6.6.1",
|
|
31
|
+
"react-router-dom": "^6.21.3"
|
|
32
32
|
},
|
|
33
33
|
"dependencies": {
|
|
34
|
-
"@emotion/react": "^11.11.
|
|
35
|
-
"@fortawesome/fontawesome-free": "^6.
|
|
36
|
-
"bootstrap": "^5.3.
|
|
34
|
+
"@emotion/react": "^11.11.3",
|
|
35
|
+
"@fortawesome/fontawesome-free": "^6.5.1",
|
|
36
|
+
"bootstrap": "^5.3.2",
|
|
37
37
|
"file-dialog": "^0.0.8",
|
|
38
38
|
"modal-cropper": "^1.2.3",
|
|
39
39
|
"nprogress": "^0.2.0",
|
|
40
40
|
"prettysize": "^2.0.0",
|
|
41
|
-
"react-admin-base": "^0.
|
|
41
|
+
"react-admin-base": "^0.9.0",
|
|
42
42
|
"react-dnd": "^16.0.1",
|
|
43
43
|
"react-dnd-html5-backend": "^16.0.1",
|
|
44
44
|
"react-password-strength-bar": "^0.4.1",
|
|
45
45
|
"react-responsive": "^9.0.2",
|
|
46
|
-
"react-select": "^5.
|
|
47
|
-
"reactstrap": "^9.2.
|
|
48
|
-
"
|
|
49
|
-
"sweetalert2": "^11.7.12"
|
|
46
|
+
"react-select": "^5.8.0",
|
|
47
|
+
"reactstrap": "^9.2.2",
|
|
48
|
+
"sweetalert2": "^11.10.4"
|
|
50
49
|
},
|
|
51
50
|
"devDependencies": {
|
|
52
|
-
"
|
|
53
|
-
"
|
|
54
|
-
"nodemon": "^2.0.22",
|
|
55
|
-
"react-intl": "^6.4.4",
|
|
56
|
-
"typescript": "^5.1.3"
|
|
51
|
+
"nodemon": "^3.0.3",
|
|
52
|
+
"typescript": "^5.3.3"
|
|
57
53
|
}
|
|
58
54
|
}
|
package/build.js
DELETED
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
|
|
2
|
-
const rewire = require('rewire');
|
|
3
|
-
const webpackConfig = rewire('react-scripts/scripts/build');
|
|
4
|
-
const config = webpackConfig.__get__('config');
|
|
5
|
-
|
|
6
|
-
addLazyLoadingStyleLoader(config.module);
|
|
7
|
-
|
|
8
|
-
function addLazyLoadingStyleLoader(config) {
|
|
9
|
-
const cssLoader = config.rules[1].oneOf[5];
|
|
10
|
-
|
|
11
|
-
config.rules[1].oneOf.splice(5, 2, {
|
|
12
|
-
...cssLoader,
|
|
13
|
-
use: [
|
|
14
|
-
{
|
|
15
|
-
loader: require.resolve('style-loader'),
|
|
16
|
-
options: {
|
|
17
|
-
injectType: 'lazyStyleTag'
|
|
18
|
-
}
|
|
19
|
-
},
|
|
20
|
-
cssLoader.use[1],
|
|
21
|
-
cssLoader.use[2]
|
|
22
|
-
]
|
|
23
|
-
});
|
|
24
|
-
}
|
package/watch.js
DELETED
|
@@ -1,58 +0,0 @@
|
|
|
1
|
-
|
|
2
|
-
const rewire = require('rewire');
|
|
3
|
-
const webpackConfig = rewire('react-scripts/scripts/start');
|
|
4
|
-
const oldConfigFactory = webpackConfig.__get__('configFactory');
|
|
5
|
-
const ModuleScopePlugin = require('react-dev-utils/ModuleScopePlugin');
|
|
6
|
-
const fs = require('fs');
|
|
7
|
-
const path = require('path');
|
|
8
|
-
|
|
9
|
-
webpackConfig.__set__('configFactory', function(env) {
|
|
10
|
-
const config = oldConfigFactory(env);
|
|
11
|
-
|
|
12
|
-
// disable use modules outside of src
|
|
13
|
-
config.resolve.plugins = config.resolve.plugins.filter(plugin => !(plugin instanceof ModuleScopePlugin));
|
|
14
|
-
|
|
15
|
-
// disable local node_modules/ path
|
|
16
|
-
config.resolve.modules.shift();
|
|
17
|
-
|
|
18
|
-
// add aliased packages from /opt/packages
|
|
19
|
-
for (const alias of find_custom_packages('/opt/packages')){
|
|
20
|
-
config.resolve.alias[alias.name] = alias.path;
|
|
21
|
-
}
|
|
22
|
-
|
|
23
|
-
addLazyLoadingStyleLoader(config.module);
|
|
24
|
-
|
|
25
|
-
console.log(config);
|
|
26
|
-
//process.exit(0);
|
|
27
|
-
|
|
28
|
-
return config;
|
|
29
|
-
});
|
|
30
|
-
|
|
31
|
-
function* find_custom_packages(location) {
|
|
32
|
-
const dir = fs.opendirSync(location, { withFileTypes: true });
|
|
33
|
-
let dirent;
|
|
34
|
-
while ((dirent = dir.readSync()) !== null) {
|
|
35
|
-
if (dirent.isSymbolicLink()) {
|
|
36
|
-
yield {name: dirent.name, path: fs.realpathSync(path.join(location, dirent.name))};
|
|
37
|
-
}
|
|
38
|
-
}
|
|
39
|
-
dir.closeSync();
|
|
40
|
-
}
|
|
41
|
-
|
|
42
|
-
function addLazyLoadingStyleLoader(config) {
|
|
43
|
-
const cssLoader = config.rules[1].oneOf[5];
|
|
44
|
-
|
|
45
|
-
config.rules[1].oneOf.splice(5, 2, {
|
|
46
|
-
...cssLoader,
|
|
47
|
-
use: [
|
|
48
|
-
{
|
|
49
|
-
loader: cssLoader.use[0],
|
|
50
|
-
options: {
|
|
51
|
-
injectType: 'lazyStyleTag'
|
|
52
|
-
}
|
|
53
|
-
},
|
|
54
|
-
cssLoader.use[1],
|
|
55
|
-
cssLoader.use[2]
|
|
56
|
-
]
|
|
57
|
-
});
|
|
58
|
-
}
|