@mantiq/core 0.1.2 → 0.1.3
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/package.json +1 -1
- package/src/exceptions/DevErrorPage.ts +40 -34
package/package.json
CHANGED
|
@@ -107,24 +107,27 @@ export function renderDevErrorPage(request: MantiqRequest, error: unknown): stri
|
|
|
107
107
|
|
|
108
108
|
:root {
|
|
109
109
|
--bg: #ffffff;
|
|
110
|
-
--bg-surface: #
|
|
111
|
-
--bg-elevated: #
|
|
112
|
-
--bg-code: #
|
|
110
|
+
--bg-surface: #f9fafb;
|
|
111
|
+
--bg-elevated: #f3f4f6;
|
|
112
|
+
--bg-code: #f9fafb;
|
|
113
113
|
--text: #0f172a;
|
|
114
114
|
--text-secondary: #475569;
|
|
115
115
|
--text-muted: #94a3b8;
|
|
116
|
-
--border: #
|
|
117
|
-
--accent: #
|
|
118
|
-
--accent-soft:
|
|
119
|
-
--accent-text: #
|
|
120
|
-
--
|
|
121
|
-
--
|
|
116
|
+
--border: #e5e7eb;
|
|
117
|
+
--accent: #10b981;
|
|
118
|
+
--accent-soft: rgba(16,185,129,0.08);
|
|
119
|
+
--accent-text: #059669;
|
|
120
|
+
--error: #ef4444;
|
|
121
|
+
--error-soft: #fef2f2;
|
|
122
|
+
--error-text: #dc2626;
|
|
123
|
+
--link: #059669;
|
|
124
|
+
--badge-bg: #f3f4f6;
|
|
122
125
|
--badge-text: #475569;
|
|
123
|
-
--frame-hover: #
|
|
124
|
-
--frame-active-bg:
|
|
125
|
-
--frame-active-border: #
|
|
126
|
+
--frame-hover: #f3f4f6;
|
|
127
|
+
--frame-active-bg: rgba(16,185,129,0.06);
|
|
128
|
+
--frame-active-border: #6ee7b7;
|
|
126
129
|
--tab-active-bg: #ffffff;
|
|
127
|
-
--tab-active-border: #
|
|
130
|
+
--tab-active-border: #10b981;
|
|
128
131
|
--vendor-opacity: 0.45;
|
|
129
132
|
--shadow: 0 1px 3px rgba(0,0,0,.06), 0 1px 2px rgba(0,0,0,.04);
|
|
130
133
|
--shadow-lg: 0 4px 6px -1px rgba(0,0,0,.07), 0 2px 4px -2px rgba(0,0,0,.05);
|
|
@@ -134,25 +137,28 @@ export function renderDevErrorPage(request: MantiqRequest, error: unknown): stri
|
|
|
134
137
|
}
|
|
135
138
|
|
|
136
139
|
html.dark {
|
|
137
|
-
--bg: #
|
|
138
|
-
--bg-surface: #
|
|
139
|
-
--bg-elevated: #
|
|
140
|
-
--bg-code: #
|
|
140
|
+
--bg: #0a0a0b;
|
|
141
|
+
--bg-surface: #111113;
|
|
142
|
+
--bg-elevated: #1a1a1d;
|
|
143
|
+
--bg-code: #111113;
|
|
141
144
|
--text: #e2e8f0;
|
|
142
145
|
--text-secondary: #94a3b8;
|
|
143
146
|
--text-muted: #64748b;
|
|
144
|
-
--border: #
|
|
145
|
-
--accent: #
|
|
146
|
-
--accent-soft:
|
|
147
|
-
--accent-text: #
|
|
148
|
-
--
|
|
149
|
-
--
|
|
147
|
+
--border: #27272a;
|
|
148
|
+
--accent: #34d399;
|
|
149
|
+
--accent-soft: rgba(16,185,129,0.10);
|
|
150
|
+
--accent-text: #34d399;
|
|
151
|
+
--error: #f87171;
|
|
152
|
+
--error-soft: rgba(248,113,113,0.08);
|
|
153
|
+
--error-text: #f87171;
|
|
154
|
+
--link: #34d399;
|
|
155
|
+
--badge-bg: #1a1a1d;
|
|
150
156
|
--badge-text: #94a3b8;
|
|
151
|
-
--frame-hover: #
|
|
152
|
-
--frame-active-bg:
|
|
153
|
-
--frame-active-border: #
|
|
154
|
-
--tab-active-bg: #
|
|
155
|
-
--tab-active-border: #
|
|
157
|
+
--frame-hover: #1a1a1d;
|
|
158
|
+
--frame-active-bg: rgba(16,185,129,0.06);
|
|
159
|
+
--frame-active-border: #10b981;
|
|
160
|
+
--tab-active-bg: #111113;
|
|
161
|
+
--tab-active-border: #10b981;
|
|
156
162
|
--shadow: 0 1px 3px rgba(0,0,0,.3);
|
|
157
163
|
--shadow-lg: 0 4px 6px -1px rgba(0,0,0,.4);
|
|
158
164
|
}
|
|
@@ -184,13 +190,13 @@ export function renderDevErrorPage(request: MantiqRequest, error: unknown): stri
|
|
|
184
190
|
gap: 8px;
|
|
185
191
|
font-size: 13px;
|
|
186
192
|
font-weight: 600;
|
|
187
|
-
color: var(--
|
|
193
|
+
color: var(--error-text);
|
|
188
194
|
letter-spacing: 0.02em;
|
|
189
195
|
}
|
|
190
196
|
.error-label .dot {
|
|
191
197
|
width: 8px; height: 8px;
|
|
192
198
|
border-radius: 50%;
|
|
193
|
-
background: var(--
|
|
199
|
+
background: var(--error);
|
|
194
200
|
display: inline-block;
|
|
195
201
|
}
|
|
196
202
|
.error-message {
|
|
@@ -252,9 +258,9 @@ export function renderDevErrorPage(request: MantiqRequest, error: unknown): stri
|
|
|
252
258
|
letter-spacing: 0.03em;
|
|
253
259
|
}
|
|
254
260
|
.badge-status {
|
|
255
|
-
color: var(--
|
|
256
|
-
background: var(--
|
|
257
|
-
border-color: var(--
|
|
261
|
+
color: var(--error-text);
|
|
262
|
+
background: var(--error-soft);
|
|
263
|
+
border-color: var(--error);
|
|
258
264
|
}
|
|
259
265
|
|
|
260
266
|
/* ── Tabs ──────────────────────── */
|
|
@@ -421,7 +427,7 @@ export function renderDevErrorPage(request: MantiqRequest, error: unknown): stri
|
|
|
421
427
|
<span class="badge">${escapeHtml(request.fullUrl())}</span>
|
|
422
428
|
<span class="badge badge-status">${statusCode}</span>
|
|
423
429
|
<span class="badge">Bun ${escapeHtml(bunVersion)}</span>
|
|
424
|
-
<span class="badge">
|
|
430
|
+
<span class="badge" style="color:var(--accent);border-color:var(--accent)">mantiq</span>
|
|
425
431
|
</div>
|
|
426
432
|
</div>
|
|
427
433
|
|