@voltage12/dsh-simple-worktree 0.1.0 → 0.1.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.
- package/lib/client.js +27 -2
- package/package.json +1 -1
package/lib/client.js
CHANGED
|
@@ -33,6 +33,31 @@ window.__ModuleLoader__.load({
|
|
|
33
33
|
var import_react = require("react");
|
|
34
34
|
var import_dsh_client_ui_primitives = require("@deepseek-ai/dsh-client-ui-primitives");
|
|
35
35
|
var import_jsx_runtime = require("react/jsx-runtime");
|
|
36
|
+
function IconBranchVerticalRegular({ size = 16, className }) {
|
|
37
|
+
return /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(
|
|
38
|
+
"svg",
|
|
39
|
+
{
|
|
40
|
+
width: size,
|
|
41
|
+
height: size,
|
|
42
|
+
className,
|
|
43
|
+
viewBox: "0 0 16 16",
|
|
44
|
+
fill: "none",
|
|
45
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
46
|
+
"aria-hidden": "true",
|
|
47
|
+
stroke: "currentColor",
|
|
48
|
+
strokeWidth: 1,
|
|
49
|
+
strokeLinecap: "round",
|
|
50
|
+
strokeLinejoin: "round",
|
|
51
|
+
children: [
|
|
52
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)("circle", { cx: "4.5", cy: "3", r: "1.5" }),
|
|
53
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)("circle", { cx: "4.5", cy: "13", r: "1.5" }),
|
|
54
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)("circle", { cx: "12", cy: "5", r: "1.5" }),
|
|
55
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)("path", { d: "M4.5 4.5v7" }),
|
|
56
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)("path", { d: "M4.5 8h5.5c1.105 0 2-.895 2-1.5" })
|
|
57
|
+
]
|
|
58
|
+
}
|
|
59
|
+
);
|
|
60
|
+
}
|
|
36
61
|
var name = "simple-worktree";
|
|
37
62
|
var inject = ["slots", "sessions", "workspaces", "uiWorkspace", "locale"];
|
|
38
63
|
var ROUTE_PREFIX = "/plugin/simple-worktree";
|
|
@@ -435,7 +460,7 @@ window.__ModuleLoader__.load({
|
|
|
435
460
|
size: "sm",
|
|
436
461
|
title: t("buttonTitle"),
|
|
437
462
|
"aria-label": t("buttonTitle"),
|
|
438
|
-
icon: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
463
|
+
icon: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(IconBranchVerticalRegular, { size: 16 }),
|
|
439
464
|
style: { width: 28, minWidth: 28, padding: 0, flex: "none" },
|
|
440
465
|
onClick: () => {
|
|
441
466
|
void openDialog();
|
|
@@ -644,7 +669,7 @@ window.__ModuleLoader__.load({
|
|
|
644
669
|
] }),
|
|
645
670
|
children: /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("div", { className: "wt-dialog-body", style: { fontSize: 13, lineHeight: "20px" }, children: [
|
|
646
671
|
/* @__PURE__ */ (0, import_jsx_runtime.jsxs)("div", { style: { display: "flex", alignItems: "center", gap: 6, fontWeight: 500, minWidth: 0 }, children: [
|
|
647
|
-
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
672
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(IconBranchVerticalRegular, { size: 14 }),
|
|
648
673
|
/* @__PURE__ */ (0, import_jsx_runtime.jsx)("span", { style: { minWidth: 0, overflow: "hidden", textOverflow: "ellipsis", whiteSpace: "nowrap" }, children: facts === null ? t("reading") : facts.branch !== "" ? facts.branch : t("detachedHead") })
|
|
649
674
|
] }),
|
|
650
675
|
/* @__PURE__ */ (0, import_jsx_runtime.jsx)("p", { style: { ...dangerStyle, fontSize: 13 }, children: t("deleteWarning") }),
|
package/package.json
CHANGED