dsh-timeback 0.7.0 → 0.7.2
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 +43 -6
- package/client.js +1747 -82
- package/docs/MARKET.md +2 -2
- package/package.json +1 -1
- package/src/notes.js +36 -3
package/README.md
CHANGED
|
@@ -103,7 +103,7 @@ desktop app):
|
|
|
103
103
|
```bash
|
|
104
104
|
# From npm (published: https://www.npmjs.com/package/dsh-timeback)
|
|
105
105
|
dsh plugin --profile web add dsh-timeback
|
|
106
|
-
dsh plugin --profile web add dsh-timeback@0.7.
|
|
106
|
+
dsh plugin --profile web add dsh-timeback@0.7.2 # pin a release
|
|
107
107
|
|
|
108
108
|
# Straight from GitHub (no npm release needed)
|
|
109
109
|
dsh plugin --profile web add github:<owner>/dsh-timeback
|
|
@@ -174,17 +174,54 @@ The board is a **sticky-note canvas** with a graph-paper background:
|
|
|
174
174
|
|
|
175
175
|
- **Movable sticky notes** — every Markdown note is a card you can drag around the
|
|
176
176
|
grid; positions and colours are remembered per board.
|
|
177
|
-
- **Drawing tools** —
|
|
178
|
-
|
|
179
|
-
|
|
177
|
+
- **Drawing tools** — pen with an adjustable **size slider (1–8 px)**, eraser,
|
|
178
|
+
a dedicated **colour box** (native picker, R/G/B sliders, HEX field, common
|
|
179
|
+
colours and a **recent list that only records colours you actually drew with** —
|
|
180
|
+
dragging the RGB sliders does not pollute it — plus an **EyeDropper** screen
|
|
181
|
+
sampler where supported; the button always responds and explains when the
|
|
182
|
+
browser cannot sample the screen, with the HEX/system picker as fallback)
|
|
183
|
+
and one grouped **常用图形** dropdown (rectangle, ellipse, line, arrow, triangle;
|
|
184
|
+
hold Ctrl/Shift while dragging to constrain:
|
|
185
|
+
rectangles/ellipses become square/circular, lines/arrows snap to 45°
|
|
186
|
+
directions, including diagonals). A **“便签可画” switch** decides whether the
|
|
187
|
+
pen/shape tools may draw on sticky notes or only on the grid. Drawings are stored
|
|
188
|
+
with the board and **roll back with a rewind** just like the Markdown entries.
|
|
189
|
+
Pen strokes and shapes can **cross the sticky boundary** (start on the grid and
|
|
190
|
+
continue onto a note, or the reverse). A pen stroke is split at the crossing
|
|
191
|
+
point with no gap, and a shape is drawn on **both** the grid and every sticky it
|
|
192
|
+
crossed (each layer clips its own copy).
|
|
193
|
+
With the Move tool, dragging empty grid pans the canvas; on open the view
|
|
194
|
+
**auto-fits** every note and stroke (zoom + scroll) and the **自动调整** button
|
|
195
|
+
recomputes that fit whenever the board grows. Manual zoom is available with the
|
|
196
|
+
toolbar **− / % / +** buttons (the percentage resets to 100%) or **Ctrl/⌘ +
|
|
197
|
+
mouse wheel / trackpad pinch**, anchored at the pointer. Stickies drag under the
|
|
198
|
+
cursor and have a bottom-right **resize handle** (sizes are saved with the board). The canvas is a
|
|
199
|
+
4000×3000 grid that scrolls with the content. **打开 md**
|
|
200
|
+
opens a large Markdown reader overlay.
|
|
180
201
|
- **New sticky** — the “新建便签” button opens the centred Markdown editor
|
|
181
202
|
(resizable dialog); saving creates a note and places a sticky card.
|
|
182
203
|
- **Session notes are hyperlink stickies** — when the model writes a note through
|
|
183
204
|
`timeback_note`, it is created as a Markdown file and appears on the board as a
|
|
184
205
|
compact 🔗 **link sticky**; clicking it reveals the note.
|
|
206
|
+
- **Graph links (路径)** — every sticky has four anchor points (top/right/bottom/
|
|
207
|
+
left). Pick the 🔗 **路径** tool, drag from one anchor to another sticky and the
|
|
208
|
+
two notes become connected by a curved path; the same anchor pair always renders
|
|
209
|
+
the same curve in both directions (A→B and B→A overlap exactly). Links are stored
|
|
210
|
+
as board edges, roll back with rewinds, and can be deleted by clicking them (or
|
|
211
|
+
with **清路径**).
|
|
185
212
|
- **Markdown below the canvas** — the bottom pane always shows the current board
|
|
186
|
-
contents fully rendered (
|
|
187
|
-
|
|
213
|
+
contents fully rendered with **larger typography** (H1 24px, H2 21px, body
|
|
214
|
+
14.5px, code 13px…), with edit/delete/open actions, so the Markdown documents
|
|
215
|
+
stay readable even when the canvas is full.
|
|
216
|
+
- **WYSIWYG Markdown editor (SiYuan-inspired)** — creating/editing a sticky opens
|
|
217
|
+
a rich editing area where you **type directly into the formatted document**.
|
|
218
|
+
Select 你好, press **B**, and it becomes **bold** immediately; the document is
|
|
219
|
+
serialized back to Markdown as you type. Toolbar: H1–H3, bold/italic/strike,
|
|
220
|
+
inline code, code block, bullet/numbered/task lists, quote, link, divider and
|
|
221
|
+
**text colour** (common palette + custom picker, stored as safe
|
|
222
|
+
`<span style="color:#rrggbb">…</span>` Markdown). Tabs switch between
|
|
223
|
+
**富文本 / 源码 / 预览**; the preview is one continuous document with no block
|
|
224
|
+
separators or line labels. Card notes (📝) use the same editor.
|
|
188
225
|
|
|
189
226
|
Every board change (notes, layout, drawings) is a numbered board revision and is
|
|
190
227
|
captured by checkpoints: rewinding restores the sticky layout and drawings at that
|