dsh-plugin-inspiration-workbench 0.4.0 → 0.5.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/README.md +5 -1
- package/lib/client.js +4 -1
- package/lib/client.js.map +2 -2
- package/package.json +1 -1
- package/src/client/board.js +7 -1
- package/src/client/index.jsx +2 -0
package/package.json
CHANGED
package/src/client/board.js
CHANGED
|
@@ -1655,11 +1655,17 @@ export function createBoard({ host, adapter, approvals, t, onOpenSession }) {
|
|
|
1655
1655
|
const targetCard = cardOfPipeTarget(target);
|
|
1656
1656
|
|
|
1657
1657
|
// A note downstream just collects the text, whatever its mode says.
|
|
1658
|
+
// Several cards may land in the same note, so each delivery is wrapped in
|
|
1659
|
+
// a titled block with a timestamp.
|
|
1658
1660
|
if (target.kind === 'note') {
|
|
1659
1661
|
if (!targetCard) continue;
|
|
1660
1662
|
const area = targetCard.el?.querySelector('.iwb-note-input');
|
|
1661
1663
|
if (!area) continue;
|
|
1662
|
-
|
|
1664
|
+
const block = t('pipe.noteBlock')
|
|
1665
|
+
.replace('{title}', card.title || t('untitled'))
|
|
1666
|
+
.replace('{time}', canvasStamp())
|
|
1667
|
+
.replace('{text}', text);
|
|
1668
|
+
area.value = area.value.trim() ? area.value.replace(/\s*$/, '\n\n') + block : block;
|
|
1663
1669
|
area.dispatchEvent(new Event('input', { bubbles: true }));
|
|
1664
1670
|
targetCard.pipeDepth = depth;
|
|
1665
1671
|
card.pipedFingerprints[key] = fingerprint;
|
package/src/client/index.jsx
CHANGED
|
@@ -128,6 +128,7 @@ const zh = {
|
|
|
128
128
|
'pipe.already': '已经连过「{name}」了',
|
|
129
129
|
'pipe.multi': '→ {n} 个下游',
|
|
130
130
|
'pipe.noted': '结果已追加到便签「{name}」',
|
|
131
|
+
'pipe.noteBlock': '## 来自「{title}」 · {time}\n\n{text}',
|
|
131
132
|
'pipe.noteTarget': '流水线 → 便签',
|
|
132
133
|
'pipe.noteHint': '下游是便签:跑完把结果追加进去,不发送',
|
|
133
134
|
'pipe.removeNote': '删除这条便签流水线',
|
|
@@ -420,6 +421,7 @@ const en = {
|
|
|
420
421
|
'pipe.already': '“{name}” is already connected',
|
|
421
422
|
'pipe.multi': '→ {n} downstream',
|
|
422
423
|
'pipe.noted': 'Result appended to note “{name}”',
|
|
424
|
+
'pipe.noteBlock': '## From “{title}” · {time}\n\n{text}',
|
|
423
425
|
'pipe.noteTarget': 'Pipeline → note',
|
|
424
426
|
'pipe.noteHint': 'Note downstream: the result is appended, never sent',
|
|
425
427
|
'pipe.removeNote': 'Remove this note pipeline',
|