@ottttto/dsh-scheduled-send 0.3.4 → 0.3.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.
package/lib/client.js CHANGED
@@ -626,11 +626,14 @@ function createClientPluginBody(React) {
626
626
  }, [
627
627
  h("div", { key: "c", style: { whiteSpace: "pre-wrap", fontFamily: "monospace" } },
628
628
  summarizeContent(t.content) || "(空内容)"),
629
- h("div", { key: "m", style: { display: "flex", alignItems: "center", gap: 8, color: "rgba(128,128,128,1)", flexWrap: "wrap" } }, [
630
- h("span", { key: "s", style: { maxWidth: "60%", overflow: "hidden", textOverflow: "ellipsis", whiteSpace: "nowrap" } },
629
+ h("div", { key: "m", style: { display: "flex", alignItems: "center", gap: 8, color: "rgba(128,128,128,1)" } }, [
630
+ h("span", { key: "s", style: { flex: 1, minWidth: 0, overflow: "hidden", textOverflow: "ellipsis", whiteSpace: "nowrap" } },
631
631
  t.sessionExists ? t.sessionTitle : "会话不存在"),
632
632
  h("span", { key: "at" }, formatLocalTime(t.sendAt)),
633
- h("span", { key: "cd" }, formatCountdown(t.sendAt, Date.now())),
633
+ ]),
634
+ h("div", { key: "act", style: { display: "flex", alignItems: "center", gap: 8 } }, [
635
+ h("span", { key: "cd", style: { color: "#3b82f6", fontWeight: 600 } },
636
+ "⏳ " + formatCountdown(t.sendAt, Date.now()) + "后发送"),
634
637
  h("span", { key: "sp", style: { marginLeft: "auto" } }, cancelBtn(t)),
635
638
  ]),
636
639
  ])),
@@ -651,7 +654,7 @@ function createClientPluginBody(React) {
651
654
  }, [
652
655
  h("span", { key: "i", style: iconBox }, "⏰"),
653
656
  h("span", { key: "l", style: labelStyle }, "定时任务"),
654
- all.length ? h("span", { key: "bs", style: countStyle }, String(all.length)) : null,
657
+ all.length ? badge(all.length) : null,
655
658
  ]),
656
659
  footer,
657
660
  ]);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ottttto/dsh-scheduled-send",
3
- "version": "0.3.4",
3
+ "version": "0.3.6",
4
4
  "description": "DSH plugin: scheduled sending (⏰ composer button, dock list of pending tasks, sidebar 定时任务 panel with cross-session cancel, due-time delivery as a normal user bubble)",
5
5
  "type": "module",
6
6
  "main": "./src/index.js",
@@ -52,4 +52,4 @@
52
52
  "engines": {
53
53
  "node": ">=18"
54
54
  }
55
- }
55
+ }
@@ -362,11 +362,14 @@ function createClientPluginBody(React) {
362
362
  }, [
363
363
  h("div", { key: "c", style: { whiteSpace: "pre-wrap", fontFamily: "monospace" } },
364
364
  summarizeContent(t.content) || "(空内容)"),
365
- h("div", { key: "m", style: { display: "flex", alignItems: "center", gap: 8, color: "rgba(128,128,128,1)", flexWrap: "wrap" } }, [
366
- h("span", { key: "s", style: { maxWidth: "60%", overflow: "hidden", textOverflow: "ellipsis", whiteSpace: "nowrap" } },
365
+ h("div", { key: "m", style: { display: "flex", alignItems: "center", gap: 8, color: "rgba(128,128,128,1)" } }, [
366
+ h("span", { key: "s", style: { flex: 1, minWidth: 0, overflow: "hidden", textOverflow: "ellipsis", whiteSpace: "nowrap" } },
367
367
  t.sessionExists ? t.sessionTitle : "会话不存在"),
368
368
  h("span", { key: "at" }, formatLocalTime(t.sendAt)),
369
- h("span", { key: "cd" }, formatCountdown(t.sendAt, Date.now())),
369
+ ]),
370
+ h("div", { key: "act", style: { display: "flex", alignItems: "center", gap: 8 } }, [
371
+ h("span", { key: "cd", style: { color: "#3b82f6", fontWeight: 600 } },
372
+ "⏳ " + formatCountdown(t.sendAt, Date.now()) + "后发送"),
370
373
  h("span", { key: "sp", style: { marginLeft: "auto" } }, cancelBtn(t)),
371
374
  ]),
372
375
  ])),
@@ -387,7 +390,7 @@ function createClientPluginBody(React) {
387
390
  }, [
388
391
  h("span", { key: "i", style: iconBox }, "⏰"),
389
392
  h("span", { key: "l", style: labelStyle }, "定时任务"),
390
- all.length ? h("span", { key: "bs", style: countStyle }, String(all.length)) : null,
393
+ all.length ? badge(all.length) : null,
391
394
  ]),
392
395
  footer,
393
396
  ]);