visualizer-on-tabs 1.0.0 → 1.0.2
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/main/index.js +4 -9
- package/package.json +15 -12
- package/src/components/Login.js +3 -3
package/main/index.js
CHANGED
|
@@ -12,10 +12,6 @@ import iframeBridge from './iframe-bridge.js';
|
|
|
12
12
|
|
|
13
13
|
const __dirname = import.meta.dirname;
|
|
14
14
|
|
|
15
|
-
const defaultConfig = {
|
|
16
|
-
title: 'visualizer-on-tabs',
|
|
17
|
-
};
|
|
18
|
-
|
|
19
15
|
async function buildApp(options, outDir, cleanup) {
|
|
20
16
|
const { promise, resolve, reject } = Promise.withResolvers();
|
|
21
17
|
const entries = [{ file: 'app.js' }];
|
|
@@ -97,17 +93,16 @@ async function buildApp(options, outDir, cleanup) {
|
|
|
97
93
|
}
|
|
98
94
|
|
|
99
95
|
export default async (options) => {
|
|
100
|
-
Object.assign(options.config, defaultConfig);
|
|
101
|
-
|
|
102
96
|
const outDir = path.resolve(options.outDir);
|
|
103
97
|
await fs.mkdir(outDir, { recursive: true });
|
|
104
98
|
|
|
105
99
|
const confPath = path.join(__dirname, '../src/config/custom.json');
|
|
106
100
|
console.log('Copying files');
|
|
101
|
+
|
|
102
|
+
await copyBootstrap(options);
|
|
103
|
+
await copyContent(options);
|
|
107
104
|
await Promise.all([
|
|
108
105
|
fs.writeFile(confPath, JSON.stringify(options.config)),
|
|
109
|
-
copyBootstrap(options),
|
|
110
|
-
copyContent(options),
|
|
111
106
|
addIndex(options),
|
|
112
107
|
addVisualizer(options),
|
|
113
108
|
]);
|
|
@@ -154,7 +149,7 @@ async function addIndex(options) {
|
|
|
154
149
|
return fs.writeFile(
|
|
155
150
|
path.join(options.outDir, 'index.html'),
|
|
156
151
|
tpl({
|
|
157
|
-
title: options.config.title,
|
|
152
|
+
title: options.config.title || 'visualizer-on-tabs',
|
|
158
153
|
uniqid: Date.now(),
|
|
159
154
|
}),
|
|
160
155
|
);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "visualizer-on-tabs",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.2",
|
|
4
4
|
"description": "visualizer-on-tabs webpack builder",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"exports": {
|
|
@@ -28,28 +28,31 @@
|
|
|
28
28
|
"test-only": "node --test"
|
|
29
29
|
},
|
|
30
30
|
"dependencies": {
|
|
31
|
-
"@babel/core": "^7.
|
|
32
|
-
"@babel/preset-env": "^7.
|
|
33
|
-
"@babel/preset-react": "^7.
|
|
31
|
+
"@babel/core": "^7.29.0",
|
|
32
|
+
"@babel/preset-env": "^7.29.0",
|
|
33
|
+
"@babel/preset-react": "^7.28.5",
|
|
34
34
|
"babel-loader": "^10.0.0",
|
|
35
|
-
"bootstrap": "^5.3.
|
|
35
|
+
"bootstrap": "^5.3.8",
|
|
36
36
|
"iframe-bridge": "^3.0.2",
|
|
37
37
|
"lockr": "^0.8.5",
|
|
38
|
-
"lodash": "^4.17.
|
|
39
|
-
"minimist": "^1.2.
|
|
38
|
+
"lodash": "^4.17.23",
|
|
39
|
+
"minimist": "^1.2.8",
|
|
40
40
|
"react": "^18.3.1",
|
|
41
41
|
"react-bootstrap": "^3.0.0-beta.3",
|
|
42
42
|
"react-dom": "^18.3.1",
|
|
43
43
|
"react-visualizer": "^3.0.1",
|
|
44
|
-
"webpack": "^5.
|
|
44
|
+
"webpack": "^5.105.1"
|
|
45
45
|
},
|
|
46
46
|
"devDependencies": {
|
|
47
|
-
"eslint": "^9.
|
|
48
|
-
"eslint-config-zakodium": "^
|
|
49
|
-
"prettier": "^3.
|
|
50
|
-
"rimraf": "^6.
|
|
47
|
+
"eslint": "^9.39.2",
|
|
48
|
+
"eslint-config-zakodium": "^19.1.0",
|
|
49
|
+
"prettier": "^3.8.1",
|
|
50
|
+
"rimraf": "^6.1.2"
|
|
51
51
|
},
|
|
52
52
|
"volta": {
|
|
53
53
|
"node": "24.7.0"
|
|
54
|
+
},
|
|
55
|
+
"engines": {
|
|
56
|
+
"node": ">=22"
|
|
54
57
|
}
|
|
55
58
|
}
|
package/src/components/Login.js
CHANGED
|
@@ -17,9 +17,9 @@ class Login extends React.Component {
|
|
|
17
17
|
if (config.rocLogin.urlAbsolute) {
|
|
18
18
|
this.loginUrl = config.rocLogin.urlAbsolute;
|
|
19
19
|
} else {
|
|
20
|
-
this.loginUrl = `${config.rocLogin.url}/auth/login?continue=${
|
|
21
|
-
config.rocLogin.redirect || window.location.href
|
|
22
|
-
}`;
|
|
20
|
+
this.loginUrl = `${config.rocLogin.url}/auth/login?continue=${encodeURIComponent(
|
|
21
|
+
config.rocLogin.redirect || window.location.href,
|
|
22
|
+
)}`;
|
|
23
23
|
}
|
|
24
24
|
}
|
|
25
25
|
|