@cloud-cli/on 1.6.6 → 1.7.0
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/dist/on.js +46 -24
- package/dist/server.d.ts.map +1 -1
- package/package.json +1 -1
package/dist/on.js
CHANGED
|
@@ -8355,23 +8355,27 @@ var To = class e {
|
|
|
8355
8355
|
failed: "bg-rose-500/10 text-rose-400",
|
|
8356
8356
|
running: "bg-indigo-500/10 text-indigo-400 animate-pulse",
|
|
8357
8357
|
_: "bg-gray-500/10 text-gray-400"
|
|
8358
|
-
}, r =
|
|
8359
|
-
|
|
8360
|
-
|
|
8361
|
-
|
|
8362
|
-
|
|
8363
|
-
|
|
8364
|
-
|
|
8365
|
-
|
|
8366
|
-
|
|
8367
|
-
<
|
|
8368
|
-
|
|
8369
|
-
|
|
8370
|
-
|
|
8371
|
-
|
|
8372
|
-
|
|
8373
|
-
|
|
8374
|
-
|
|
8358
|
+
}, r = (e) => {
|
|
8359
|
+
switch (e) {
|
|
8360
|
+
case "success": return "bg-emerald-400";
|
|
8361
|
+
case "failed": return "bg-rose-400";
|
|
8362
|
+
case "running": return "bg-indigo-400 animate-pulse";
|
|
8363
|
+
default: return "bg-gray-500";
|
|
8364
|
+
}
|
|
8365
|
+
}, i = t.map((e) => `
|
|
8366
|
+
<div class="py-3 px-4 block md:hidden bg-gray-900/60">
|
|
8367
|
+
<div class="flex items-center justify-between gap-2 mb-1">
|
|
8368
|
+
<div class="flex items-center gap-2 min-w-0">
|
|
8369
|
+
<span class="w-2.5 h-2.5 rounded-full ${r(e.status)} flex-shrink-0"></span>
|
|
8370
|
+
<span class="font-medium text-white truncate">${e.workflow_id}</span>
|
|
8371
|
+
</div>
|
|
8372
|
+
<a href="/runs/${e.id}" class="shrink-0 text-xs bg-gray-800 hover:bg-gray-700 text-gray-300 px-2.5 py-1 rounded border border-gray-700 whitespace-nowrap">Trace</a>
|
|
8373
|
+
</div>
|
|
8374
|
+
<div class="flex items-center gap-2 text-xs text-gray-400 pl-[18px]">
|
|
8375
|
+
#${e.id}
|
|
8376
|
+
</div>
|
|
8377
|
+
</div>
|
|
8378
|
+
`).join(""), a = `<!DOCTYPE html>
|
|
8375
8379
|
<html lang="en" class="dark">
|
|
8376
8380
|
<head>
|
|
8377
8381
|
<meta charset="UTF-8">
|
|
@@ -8391,25 +8395,43 @@ var To = class e {
|
|
|
8391
8395
|
</span>
|
|
8392
8396
|
</div>
|
|
8393
8397
|
|
|
8394
|
-
<div class="bg-gray-900 border border-gray-800 rounded-xl overflow-hidden">
|
|
8398
|
+
<div class="bg-gray-900 border border-gray-800 rounded-xl overflow-hidden hidden md:block">
|
|
8395
8399
|
<table class="w-full text-left text-sm">
|
|
8396
8400
|
<thead class="bg-gray-800/50 text-gray-400 text-xs uppercase font-mono border-b border-gray-800">
|
|
8397
8401
|
<tr>
|
|
8398
8402
|
<th class="py-3 px-4">Job ID</th>
|
|
8399
8403
|
<th class="py-3 px-4">Workflow</th>
|
|
8400
8404
|
<th class="py-3 px-4">Status</th>
|
|
8401
|
-
<th class="py-3 px-4">Worker</th>
|
|
8402
|
-
<th class="py-3 px-4">Created At</th>
|
|
8403
|
-
<th class="py-3 px-4 text-right">Action</th>
|
|
8405
|
+
<th class="py-3 px-4 hidden xl:table-cell">Worker</th>
|
|
8406
|
+
<th class="py-3 px-4 hidden lg:table-cell">Created At</th>
|
|
8407
|
+
<th class="py-3 px-4 text-right hidden md:table-cell">Action</th>
|
|
8404
8408
|
</tr>
|
|
8405
8409
|
</thead>
|
|
8406
|
-
<tbody>${
|
|
8410
|
+
<tbody>${t.map((e) => {
|
|
8411
|
+
let t = n[e.status] || n._;
|
|
8412
|
+
return `
|
|
8413
|
+
<tr class="border-b border-gray-800 hover:bg-gray-900/50 transition">
|
|
8414
|
+
<td class="py-3 px-4 font-mono text-indigo-400"><a href="/runs/${e.id}" class="hover:underline">#${e.id}</a></td>
|
|
8415
|
+
<td class="py-3 px-4 font-medium text-white">${e.workflow_id}</td>
|
|
8416
|
+
<td class="py-3 px-4">
|
|
8417
|
+
<span class="px-2.5 py-0.5 rounded-full text-xs font-semibold ${t}">${e.status?.toUpperCase() ?? "?"}</span>
|
|
8418
|
+
</td>
|
|
8419
|
+
<td class="py-3 px-4 hidden xl:table-cell text-xs font-mono text-gray-400">${e.worker_id || "-"}</td>
|
|
8420
|
+
<td class="py-3 px-4 hidden lg:table-cell text-xs text-gray-400">${e.created_at}</td>
|
|
8421
|
+
<td class="py-3 px-4 text-right whitespace-nowrap hidden md:table-cell">
|
|
8422
|
+
<a href="/runs/${e.id}" class="text-xs bg-gray-800 hover:bg-gray-700 text-gray-200 px-3 py-1 rounded border border-gray-700">View Trace →</a>
|
|
8423
|
+
</td>
|
|
8424
|
+
</tr>
|
|
8425
|
+
`;
|
|
8426
|
+
}).join("")}</tbody>
|
|
8407
8427
|
</table>
|
|
8408
8428
|
</div>
|
|
8429
|
+
|
|
8430
|
+
<div class="md:hidden divide-y divide-gray-800">${i || "<div class=\"p-6 text-center text-gray-500\">No jobs recorded yet.</div>"}</div>
|
|
8409
8431
|
</div>
|
|
8410
8432
|
</body>
|
|
8411
|
-
</html>`,
|
|
8412
|
-
e.writeHead(200, { "Content-Type": "text/html; charset=utf-8" }), e.end(
|
|
8433
|
+
</html>`, o = this.secrets.redactText(a);
|
|
8434
|
+
e.writeHead(200, { "Content-Type": "text/html; charset=utf-8" }), e.end(o);
|
|
8413
8435
|
}
|
|
8414
8436
|
async renderRunDetails(e, t) {
|
|
8415
8437
|
let n = await this.queue.getJob(e);
|
package/dist/server.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"server.d.ts","sourceRoot":"","sources":["../src/server.ts"],"names":[],"mappings":"AAMA,OAAO,KAAK,EAEV,mBAAmB,EACnB,oBAAoB,EAGrB,MAAM,YAAY,CAAC;AAGpB,qBAAa,aAAa;IACxB,OAAO,CAAC,MAAM,CAAc;IAC5B,OAAO,CAAC,aAAa,CA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