@tangle-network/sandbox-ui 0.33.0 → 0.33.1
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.
|
@@ -2610,10 +2610,27 @@ import { GitBranch, GitCommit, FileEdit, FilePlus, File } from "lucide-react";
|
|
|
2610
2610
|
import { jsx as jsx21, jsxs as jsxs20 } from "react/jsx-runtime";
|
|
2611
2611
|
function GitPanel({ status, log, loading = false, onRefresh, className }) {
|
|
2612
2612
|
if (loading) {
|
|
2613
|
-
return /* @__PURE__ */
|
|
2614
|
-
|
|
2615
|
-
|
|
2616
|
-
|
|
2613
|
+
return /* @__PURE__ */ jsxs20(
|
|
2614
|
+
"div",
|
|
2615
|
+
{
|
|
2616
|
+
className: cn("rounded-lg border border-border bg-card overflow-hidden", className),
|
|
2617
|
+
"aria-busy": "true",
|
|
2618
|
+
children: [
|
|
2619
|
+
/* @__PURE__ */ jsx21("span", { className: "sr-only", children: "Loading git info\u2026" }),
|
|
2620
|
+
/* @__PURE__ */ jsx21("div", { className: "flex items-center justify-between border-b border-border bg-muted/30 px-4 py-3", children: /* @__PURE__ */ jsxs20("div", { className: "flex items-center gap-2", children: [
|
|
2621
|
+
/* @__PURE__ */ jsx21(GitBranch, { className: "h-4 w-4 text-muted-foreground" }),
|
|
2622
|
+
/* @__PURE__ */ jsx21("div", { className: "h-3.5 w-24 animate-pulse rounded bg-muted" })
|
|
2623
|
+
] }) }),
|
|
2624
|
+
/* @__PURE__ */ jsxs20("div", { className: "px-4 py-3", children: [
|
|
2625
|
+
/* @__PURE__ */ jsx21("div", { className: "mb-2 h-2.5 w-20 animate-pulse rounded bg-muted" }),
|
|
2626
|
+
/* @__PURE__ */ jsx21("div", { className: "space-y-2.5", children: [0, 1, 2].map((row) => /* @__PURE__ */ jsxs20("div", { className: "flex items-start gap-2", children: [
|
|
2627
|
+
/* @__PURE__ */ jsx21(GitCommit, { className: "mt-0.5 h-3 w-3 shrink-0 text-muted-foreground" }),
|
|
2628
|
+
/* @__PURE__ */ jsx21("div", { className: "h-3 w-3/4 animate-pulse rounded bg-muted" })
|
|
2629
|
+
] }, row)) })
|
|
2630
|
+
] })
|
|
2631
|
+
]
|
|
2632
|
+
}
|
|
2633
|
+
);
|
|
2617
2634
|
}
|
|
2618
2635
|
if (!status) {
|
|
2619
2636
|
return /* @__PURE__ */ jsx21("div", { className: cn("rounded-lg border border-border bg-card p-5", className), children: /* @__PURE__ */ jsxs20("div", { className: "flex items-center gap-2 text-sm text-muted-foreground", children: [
|
package/dist/dashboard.js
CHANGED
package/dist/index.js
CHANGED
package/package.json
CHANGED