juxscript 1.1.150 → 1.1.152
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/machinery/errors.js +6 -6
- package/package.json +1 -1
package/machinery/errors.js
CHANGED
|
@@ -43,7 +43,7 @@ export function generateErrorCollector(options = {}) {
|
|
|
43
43
|
__juxBadge.setAttribute('style',
|
|
44
44
|
'position:fixed;' + panelPos +
|
|
45
45
|
'z-index:99999;width:36px;height:36px;border-radius:50%;' +
|
|
46
|
-
'background:#e74c3c;color:#fff;font-size:
|
|
46
|
+
'background:#e74c3c;color:#fff;font-size:1rem;font-weight:bold;' +
|
|
47
47
|
'display:flex;align-items:center;justify-content:center;cursor:pointer;' +
|
|
48
48
|
'font-family:monospace;box-shadow:0 2px 8px rgba(0,0,0,0.3);'
|
|
49
49
|
);
|
|
@@ -58,7 +58,7 @@ export function generateErrorCollector(options = {}) {
|
|
|
58
58
|
'position:fixed;bottom:56px;right:12px;z-index:99998;' +
|
|
59
59
|
'width:480px;max-height:360px;background:#1e1e1e;color:#f8f8f8;' +
|
|
60
60
|
'border:1px solid #e74c3c;border-radius:8px;font-family:monospace;' +
|
|
61
|
-
'font-size:
|
|
61
|
+
'font-size:1rem;display:flex;flex-direction:column;' +
|
|
62
62
|
'box-shadow:0 4px 16px rgba(0,0,0,0.4);'
|
|
63
63
|
);
|
|
64
64
|
|
|
@@ -75,7 +75,7 @@ export function generateErrorCollector(options = {}) {
|
|
|
75
75
|
clearBtn.textContent = 'Clear';
|
|
76
76
|
clearBtn.setAttribute('style',
|
|
77
77
|
'background:transparent;border:1px solid #fff;color:#fff;' +
|
|
78
|
-
'padding:2px 8px;border-radius:4px;cursor:pointer;font-size:
|
|
78
|
+
'padding:2px 8px;border-radius:4px;cursor:pointer;font-size:1rem;'
|
|
79
79
|
);
|
|
80
80
|
clearBtn.addEventListener('click', clearErrors);
|
|
81
81
|
header.appendChild(clearBtn);
|
|
@@ -139,15 +139,15 @@ export function generateErrorCollector(options = {}) {
|
|
|
139
139
|
'border-left:3px solid ' + (type === 'error' ? '#e74c3c' : type === 'rejection' ? '#e67e22' : '#f39c12') + ';'
|
|
140
140
|
);
|
|
141
141
|
|
|
142
|
-
var label = type === 'error' ? '
|
|
142
|
+
var label = type === 'error' ? 'Error' : type === 'rejection' ? 'Rejection' : 'Console';
|
|
143
143
|
|
|
144
144
|
item.innerHTML =
|
|
145
|
-
'<div style="color:#888;font-size:
|
|
145
|
+
'<div style="color:#888;font-size:1rem;margin-bottom:2px;">' +
|
|
146
146
|
entry.time + ' • ' + label +
|
|
147
147
|
(entry.source ? ' • ' + entry.source + ':' + entry.line : '') +
|
|
148
148
|
'</div>' +
|
|
149
149
|
'<div style="word-break:break-word;">' + escapeHtml(entry.message) + '</div>' +
|
|
150
|
-
(entry.stack ? '<
|
|
150
|
+
(entry.stack ? '<div style="margin-top:4px;"><div style="cursor:pointer;color:#888;font-size:1rem;">Stack trace</div><pre style="margin:4px 0 0;font-size:1rem;color:#aaa;white-space:pre-wrap;">' + escapeHtml(entry.stack) + '</pre></div>' : '');
|
|
151
151
|
|
|
152
152
|
__juxList.appendChild(item);
|
|
153
153
|
__juxList.scrollTop = __juxList.scrollHeight;
|