@microlight/core 0.9.5 → 0.9.6
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.
|
@@ -10,13 +10,12 @@ export async function POST(request, {
|
|
|
10
10
|
|
|
11
11
|
// Extract query parameters
|
|
12
12
|
const url = new URL(request.url);
|
|
13
|
-
const date = url.searchParams.get('date');
|
|
14
|
-
const filename = url.searchParams.get('filename');
|
|
15
13
|
|
|
16
14
|
// Create FormData-like object with the query parameters
|
|
17
15
|
const formData = new FormData();
|
|
18
|
-
|
|
19
|
-
|
|
16
|
+
for (const [key, value] of url.searchParams.entries()) {
|
|
17
|
+
formData.append(key, value);
|
|
18
|
+
}
|
|
20
19
|
|
|
21
20
|
// Create task object using the dynamic slug
|
|
22
21
|
const task = {
|
|
@@ -167,12 +167,18 @@ export default function ViewRun({
|
|
|
167
167
|
<div className='' dangerouslySetInnerHTML={{
|
|
168
168
|
__html: log.content
|
|
169
169
|
}} />
|
|
170
|
-
</Alert> : log.type == 'json' ? <
|
|
171
|
-
|
|
172
|
-
|
|
170
|
+
</Alert> : log.type == 'json' ? <div style={{
|
|
171
|
+
height: '300px',
|
|
172
|
+
backgroundColor: '#e5d2fc',
|
|
173
|
+
overflowY: 'scroll'
|
|
173
174
|
}}>
|
|
174
|
-
|
|
175
|
-
|
|
175
|
+
<pre className="json-renderer" style={{
|
|
176
|
+
padding: 0,
|
|
177
|
+
margin: 0
|
|
178
|
+
}}>
|
|
179
|
+
{JSON.stringify(JSON.parse(log.content), null, 2)}
|
|
180
|
+
</pre>
|
|
181
|
+
</div> : log.type == 'error' ? <Alert variant='soft' color="danger" sx={{
|
|
176
182
|
p: 2,
|
|
177
183
|
pb: 0,
|
|
178
184
|
overflow: 'auto',
|
|
@@ -14,7 +14,7 @@ export default function MLInput({
|
|
|
14
14
|
{['string', 'number', 'date'].includes(def.type) && <Input size="sm" name={slug} placeholder={def.placeholder} defaultValue={searchParams[slug] || def.default || ""} type={def.type} />}
|
|
15
15
|
{def.type === 'file' &&
|
|
16
16
|
// Placeholder for future file input implementation
|
|
17
|
-
<Input {
|
|
17
|
+
<Input size="sm" name={slug} placeholder={def.placeholder} type="file"
|
|
18
18
|
// Add any file-specific props here
|
|
19
19
|
/>}
|
|
20
20
|
{def.type === 'dropdown' && <Select size="sm" name={slug} placeholder={def.placeholder} defaultValue={searchParams[slug] || def.default || ""}>
|