slicejs-web-framework 3.4.0 → 3.4.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/Slice/Slice.js +7 -11
- package/package.json +1 -1
- package/sliceConfig.schema.json +9 -1
package/Slice/Slice.js
CHANGED
|
@@ -565,17 +565,13 @@ async function init() {
|
|
|
565
565
|
}
|
|
566
566
|
|
|
567
567
|
if (sliceConfig.logger?.ui?.enabled) {
|
|
568
|
-
|
|
569
|
-
|
|
570
|
-
|
|
571
|
-
|
|
572
|
-
|
|
573
|
-
|
|
574
|
-
|
|
575
|
-
if (typeof logViewer.init === 'function') logViewer.init();
|
|
576
|
-
} catch (e) {
|
|
577
|
-
window.slice.logger?.warn?.('Slice', 'Could not load LogViewer component', e);
|
|
578
|
-
}
|
|
568
|
+
const LogViewerModule = window.slice.frameworkClasses?.LogViewer
|
|
569
|
+
|| await window.slice.getClass(`${slice.paths.structuralComponentFolderPath}/Logger/LogViewer/LogViewer.js`);
|
|
570
|
+
const logViewer = new LogViewerModule();
|
|
571
|
+
window.slice.logViewer = logViewer;
|
|
572
|
+
await logViewer.init();
|
|
573
|
+
logViewer.style.display = 'none';
|
|
574
|
+
document.body.appendChild(logViewer);
|
|
579
575
|
}
|
|
580
576
|
|
|
581
577
|
if (sliceConfig.loading.enabled) {
|
package/package.json
CHANGED
package/sliceConfig.schema.json
CHANGED
|
@@ -35,7 +35,15 @@
|
|
|
35
35
|
"additionalProperties": true,
|
|
36
36
|
"properties": {
|
|
37
37
|
"enabled": { "type": "boolean" },
|
|
38
|
-
"showLogs": { "type": "object", "additionalProperties": true }
|
|
38
|
+
"showLogs": { "type": "object", "additionalProperties": true },
|
|
39
|
+
"ui": {
|
|
40
|
+
"type": "object",
|
|
41
|
+
"additionalProperties": true,
|
|
42
|
+
"properties": {
|
|
43
|
+
"enabled": { "type": "boolean" },
|
|
44
|
+
"shortcut": { "type": "string" }
|
|
45
|
+
}
|
|
46
|
+
}
|
|
39
47
|
}
|
|
40
48
|
},
|
|
41
49
|
"events": {
|