html-reporter 10.18.2 → 10.18.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/build/lib/config/index.js +13 -0
- package/build/lib/config/index.js.map +1 -1
- package/build/lib/constants/defaults.js +1 -0
- package/build/lib/constants/defaults.js.map +1 -1
- package/build/lib/gui/server.js +12 -0
- package/build/lib/gui/server.js.map +1 -1
- package/build/lib/server-utils.d.ts +1 -1
- package/build/lib/server-utils.js +2 -1
- package/build/lib/server-utils.js.map +1 -1
- package/build/lib/static/gui.html +35 -7
- package/build/lib/static/gui.min.js +1 -1
- package/build/lib/static/index.html +35 -7
- package/build/lib/static/new-ui-gui.html +35 -7
- package/build/lib/static/new-ui-report.html +35 -7
- package/build/lib/static/newGui.min.js +1 -1
- package/build/lib/static/newReport.min.js +1 -1
- package/build/lib/static/report.min.js +1 -1
- package/build/lib/tests-tree-builder/static.d.ts +7 -7
- package/build/lib/tests-tree-builder/static.js +24 -2
- package/build/lib/tests-tree-builder/static.js.map +1 -1
- package/build/lib/types.d.ts +2 -0
- package/build/lib/types.js.map +1 -1
- package/build/package.json +1 -1
- package/package.json +1 -1
|
@@ -1,10 +1,38 @@
|
|
|
1
|
-
<!doctype html><html><head><title>HTML report</title><meta charset="utf-8"><link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/font-awesome/4.7.0/css/font-awesome.min.css"/><link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/semantic-ui/2.4.1/semantic.min.css"/><link id="dynamic-favicon" rel="icon" type="image/png" href="icons/favicon.png"/><link rel="preload" href="databaseUrls.json" as="fetch" crossorigin="anonymous"/><link rel="preload" href="sql-wasm.wasm" as="fetch" crossorigin="anonymous"/><link href="https://fonts.googleapis.com/css2?family=Jost:ital,wght@0,100..900;1,100..900&family=Roboto+Mono:ital,wght@0,100..700;1,100..700&display=swap" rel="stylesheet"><script defer="defer" src="data.js"></script><script defer="defer" src="sql-wasm.js"></script><script defer="defer" src="report.min.js"></script><link href="report.min.css" rel="stylesheet"></head><script>let uiMode;
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
1
|
+
<!doctype html><html><head><title>HTML report</title><meta charset="utf-8"><link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/font-awesome/4.7.0/css/font-awesome.min.css"/><link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/semantic-ui/2.4.1/semantic.min.css"/><link id="dynamic-favicon" rel="icon" type="image/png" href="icons/favicon.png"/><link rel="preload" href="databaseUrls.json" as="fetch" crossorigin="anonymous"/><link rel="preload" href="sql-wasm.wasm" as="fetch" crossorigin="anonymous"/><link href="https://fonts.googleapis.com/css2?family=Jost:ital,wght@0,100..900;1,100..900&family=Roboto+Mono:ital,wght@0,100..700;1,100..700&display=swap" rel="stylesheet"><script defer="defer" src="data.js"></script><script defer="defer" src="sql-wasm.js"></script><script defer="defer" src="report.min.js"></script><link href="report.min.css" rel="stylesheet"></head><script type="module">let uiMode;
|
|
2
|
+
try {
|
|
3
|
+
uiMode = JSON.parse(localStorage.getItem('html-reporter:ui-mode'));
|
|
4
|
+
} catch { /* */ }
|
|
5
5
|
|
|
6
|
-
|
|
6
|
+
function performRedirect(mode) {
|
|
7
|
+
if (mode === 'old' && /\/new-ui(?:\.html)?$/.test(window.location.pathname)) {
|
|
7
8
|
window.location.pathname = window.location.pathname.replace(/\/new-ui(\.html)?$/, (match, ending) => ending ? '/index.html' : '/');
|
|
8
|
-
} else if (
|
|
9
|
+
} else if (mode === 'new' && !/\/new-ui(?:\.html)?$/.test(window.location.pathname)) {
|
|
9
10
|
window.location.pathname = window.location.pathname.replace(/\/(index\.html)?$/, (match, ending) => ending ? '/new-ui.html' : '/new-ui');
|
|
10
|
-
}
|
|
11
|
+
}
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
async function getConfigData() {
|
|
15
|
+
const staticRequest = fetch('data.js')
|
|
16
|
+
.then(r => r.text())
|
|
17
|
+
.then(jsCode => {
|
|
18
|
+
const func = new Function(jsCode + '; return typeof data !== "undefined" ? data : null;');
|
|
19
|
+
const dataFromStaticFile = func();
|
|
20
|
+
return dataFromStaticFile?.config?.uiMode;
|
|
21
|
+
});
|
|
22
|
+
|
|
23
|
+
const guiRequest = fetch('/ui-mode')
|
|
24
|
+
.then(r => r.json())
|
|
25
|
+
.then(configData => configData.uiMode);
|
|
26
|
+
|
|
27
|
+
return Promise.any([staticRequest, guiRequest]);
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
if (!uiMode) {
|
|
31
|
+
try {
|
|
32
|
+
uiMode = await getConfigData();
|
|
33
|
+
} catch { /* */ }
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
if (typeof uiMode === 'string') {
|
|
37
|
+
performRedirect(uiMode);
|
|
38
|
+
}</script><body class="report"><div id="app"></div></body></html>
|
|
@@ -1,10 +1,38 @@
|
|
|
1
|
-
<!doctype html><html><head><title>GUI report (New UI)</title><meta charset="utf-8"><link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/font-awesome/4.7.0/css/font-awesome.min.css"/><link id="dynamic-favicon" rel="icon" type="image/png" href="icons/favicon.png"/><link rel="preload" href="databaseUrls.json" as="fetch" crossorigin="anonymous"/><link rel="preload" href="sql-wasm.wasm" as="fetch" crossorigin="anonymous"/><link href="https://fonts.googleapis.com/css2?family=Jost:ital,wght@0,100..900;1,100..900&family=Roboto+Mono:ital,wght@0,100..700;1,100..700&display=swap" rel="stylesheet"><script defer="defer" src="sql-wasm.js"></script><script defer="defer" src="newGui.min.js"></script><link href="newGui.min.css" rel="stylesheet"></head><script>let uiMode;
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
1
|
+
<!doctype html><html><head><title>GUI report (New UI)</title><meta charset="utf-8"><link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/font-awesome/4.7.0/css/font-awesome.min.css"/><link id="dynamic-favicon" rel="icon" type="image/png" href="icons/favicon.png"/><link rel="preload" href="databaseUrls.json" as="fetch" crossorigin="anonymous"/><link rel="preload" href="sql-wasm.wasm" as="fetch" crossorigin="anonymous"/><link href="https://fonts.googleapis.com/css2?family=Jost:ital,wght@0,100..900;1,100..900&family=Roboto+Mono:ital,wght@0,100..700;1,100..700&display=swap" rel="stylesheet"><script defer="defer" src="sql-wasm.js"></script><script defer="defer" src="newGui.min.js"></script><link href="newGui.min.css" rel="stylesheet"></head><script type="module">let uiMode;
|
|
2
|
+
try {
|
|
3
|
+
uiMode = JSON.parse(localStorage.getItem('html-reporter:ui-mode'));
|
|
4
|
+
} catch { /* */ }
|
|
5
5
|
|
|
6
|
-
|
|
6
|
+
function performRedirect(mode) {
|
|
7
|
+
if (mode === 'old' && /\/new-ui(?:\.html)?$/.test(window.location.pathname)) {
|
|
7
8
|
window.location.pathname = window.location.pathname.replace(/\/new-ui(\.html)?$/, (match, ending) => ending ? '/index.html' : '/');
|
|
8
|
-
} else if (
|
|
9
|
+
} else if (mode === 'new' && !/\/new-ui(?:\.html)?$/.test(window.location.pathname)) {
|
|
9
10
|
window.location.pathname = window.location.pathname.replace(/\/(index\.html)?$/, (match, ending) => ending ? '/new-ui.html' : '/new-ui');
|
|
10
|
-
}
|
|
11
|
+
}
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
async function getConfigData() {
|
|
15
|
+
const staticRequest = fetch('data.js')
|
|
16
|
+
.then(r => r.text())
|
|
17
|
+
.then(jsCode => {
|
|
18
|
+
const func = new Function(jsCode + '; return typeof data !== "undefined" ? data : null;');
|
|
19
|
+
const dataFromStaticFile = func();
|
|
20
|
+
return dataFromStaticFile?.config?.uiMode;
|
|
21
|
+
});
|
|
22
|
+
|
|
23
|
+
const guiRequest = fetch('/ui-mode')
|
|
24
|
+
.then(r => r.json())
|
|
25
|
+
.then(configData => configData.uiMode);
|
|
26
|
+
|
|
27
|
+
return Promise.any([staticRequest, guiRequest]);
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
if (!uiMode) {
|
|
31
|
+
try {
|
|
32
|
+
uiMode = await getConfigData();
|
|
33
|
+
} catch { /* */ }
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
if (typeof uiMode === 'string') {
|
|
37
|
+
performRedirect(uiMode);
|
|
38
|
+
}</script><body class="report"><div id="app"></div></body></html>
|
|
@@ -1,10 +1,38 @@
|
|
|
1
|
-
<!doctype html><html><head><title>HTML report (New UI)</title><meta charset="utf-8"><link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/font-awesome/4.7.0/css/font-awesome.min.css"/><link id="dynamic-favicon" rel="icon" type="image/png" href="icons/favicon.png"/><link rel="preload" href="databaseUrls.json" as="fetch" crossorigin="anonymous"/><link rel="preload" href="sql-wasm.wasm" as="fetch" crossorigin="anonymous"/><link href="https://fonts.googleapis.com/css2?family=Jost:ital,wght@0,100..900;1,100..900&family=Roboto+Mono:ital,wght@0,100..700;1,100..700&display=swap" rel="stylesheet"><script defer="defer" src="data.js"></script><script defer="defer" src="sql-wasm.js"></script><script defer="defer" src="newReport.min.js"></script><link href="newReport.min.css" rel="stylesheet"></head><script>let uiMode;
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
1
|
+
<!doctype html><html><head><title>HTML report (New UI)</title><meta charset="utf-8"><link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/font-awesome/4.7.0/css/font-awesome.min.css"/><link id="dynamic-favicon" rel="icon" type="image/png" href="icons/favicon.png"/><link rel="preload" href="databaseUrls.json" as="fetch" crossorigin="anonymous"/><link rel="preload" href="sql-wasm.wasm" as="fetch" crossorigin="anonymous"/><link href="https://fonts.googleapis.com/css2?family=Jost:ital,wght@0,100..900;1,100..900&family=Roboto+Mono:ital,wght@0,100..700;1,100..700&display=swap" rel="stylesheet"><script defer="defer" src="data.js"></script><script defer="defer" src="sql-wasm.js"></script><script defer="defer" src="newReport.min.js"></script><link href="newReport.min.css" rel="stylesheet"></head><script type="module">let uiMode;
|
|
2
|
+
try {
|
|
3
|
+
uiMode = JSON.parse(localStorage.getItem('html-reporter:ui-mode'));
|
|
4
|
+
} catch { /* */ }
|
|
5
5
|
|
|
6
|
-
|
|
6
|
+
function performRedirect(mode) {
|
|
7
|
+
if (mode === 'old' && /\/new-ui(?:\.html)?$/.test(window.location.pathname)) {
|
|
7
8
|
window.location.pathname = window.location.pathname.replace(/\/new-ui(\.html)?$/, (match, ending) => ending ? '/index.html' : '/');
|
|
8
|
-
} else if (
|
|
9
|
+
} else if (mode === 'new' && !/\/new-ui(?:\.html)?$/.test(window.location.pathname)) {
|
|
9
10
|
window.location.pathname = window.location.pathname.replace(/\/(index\.html)?$/, (match, ending) => ending ? '/new-ui.html' : '/new-ui');
|
|
10
|
-
}
|
|
11
|
+
}
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
async function getConfigData() {
|
|
15
|
+
const staticRequest = fetch('data.js')
|
|
16
|
+
.then(r => r.text())
|
|
17
|
+
.then(jsCode => {
|
|
18
|
+
const func = new Function(jsCode + '; return typeof data !== "undefined" ? data : null;');
|
|
19
|
+
const dataFromStaticFile = func();
|
|
20
|
+
return dataFromStaticFile?.config?.uiMode;
|
|
21
|
+
});
|
|
22
|
+
|
|
23
|
+
const guiRequest = fetch('/ui-mode')
|
|
24
|
+
.then(r => r.json())
|
|
25
|
+
.then(configData => configData.uiMode);
|
|
26
|
+
|
|
27
|
+
return Promise.any([staticRequest, guiRequest]);
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
if (!uiMode) {
|
|
31
|
+
try {
|
|
32
|
+
uiMode = await getConfigData();
|
|
33
|
+
} catch { /* */ }
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
if (typeof uiMode === 'string') {
|
|
37
|
+
performRedirect(uiMode);
|
|
38
|
+
}</script><body class="report"><div id="app"></div></body></html>
|