dsh-conversation-float 0.3.1 → 0.3.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 +4 -4
- package/client.js +146 -129
- package/docs/README.de.md +4 -4
- package/docs/README.es.md +4 -4
- package/docs/README.fr.md +4 -4
- package/docs/README.ja.md +4 -4
- package/docs/README.pt.md +4 -4
- package/docs/README.ru.md +4 -4
- package/docs/README.zh.md +4 -4
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -16,7 +16,7 @@
|
|
|
16
16
|
|
|
17
17
|
## Open, minimise, close
|
|
18
18
|
|
|
19
|
-
Click the window icon in the session title bar. The float opens
|
|
19
|
+
Click the window icon in the session title bar. The float opens at about 450×720 — its long-standing size — capped by the application window, with the rest of DSH still visible.
|
|
20
20
|
|
|
21
21
|
The same button cycles through three states:
|
|
22
22
|
|
|
@@ -38,7 +38,7 @@ Hold the window's title bar and drag. Holding still for **1.2 seconds** arms the
|
|
|
38
38
|
| --- | --- |
|
|
39
39
|
| **Left sidebar** | The window is minimised into the left sidebar. It is not closed; its taskbar row is the way back. The middle column stays empty. |
|
|
40
40
|
| **Centre** | The window closes and the conversation returns to the middle column. |
|
|
41
|
-
| **Right sidebar** |
|
|
41
|
+
| **Right sidebar** | Only while the Conversation fills the main column: the conversation docks as a native page in the right sidebar, with DSH's own return and close controls. Plugins, Automations, Settings and every other left-sidebar page draw no right column, so a drag that ends there returns the conversation to the middle column. |
|
|
42
42
|
|
|
43
43
|
The left-sidebar row carries the Conversation's title, not the plugin's name. It keeps that title while the window looks at other Conversations. Clicking the row only shows and raises that window; it never selects the plugin's main panel and never takes a plugin or automation page away.
|
|
44
44
|
|
|
@@ -57,13 +57,13 @@ A window for a Session that is **not** the live one still shows a read-only tran
|
|
|
57
57
|
Each Session can have one float. Every float gets a row in the left sidebar, ordered as a taskbar. Rows are named after their Sessions.
|
|
58
58
|
|
|
59
59
|
- Clicking a row **raises that window**. It does not switch the current Session and does not change the main panel.
|
|
60
|
-
- A non-live window shows a **Switch to this conversation** chip when it is on top. Clicking it makes that Session live; the window then takes the real conversation column.
|
|
60
|
+
- A non-live window shows a **Switch to this conversation** chip when it is on top. Clicking it makes that Session live; the window then takes the real conversation column. Opened from Plugins, Automations or another non-conversation page it keeps that page — the page stays in the middle column and the window becomes the same full local conversation a live window shows on a page.
|
|
61
61
|
- Closing one window does not touch the others.
|
|
62
62
|
- A session taskbar row is an entry, never a second live copy of the conversation.
|
|
63
63
|
|
|
64
64
|
## Dock into the right sidebar
|
|
65
65
|
|
|
66
|
-
|
|
66
|
+
The right sidebar guide's own **Move the conversation here** row hands the tab to DSH's right sidebar; a drag never docks, because the right column is drawn only while the Conversation fills the main column. The tab type is registered with `keepMounted`, so switching to another right-sidebar tab leaves the conversation in its own tab body. The column follows whichever retained body is on screen while its Session is live; for any other Session the middle column is the seat again.
|
|
67
67
|
|
|
68
68
|
## Draft and composer
|
|
69
69
|
|
package/client.js
CHANGED
|
@@ -10,13 +10,20 @@
|
|
|
10
10
|
* the panel (same document, same React root, so events and reconciliation keep
|
|
11
11
|
* working) and moved back to its seat when the panel closes.
|
|
12
12
|
*
|
|
13
|
-
* While the window is on screen it can be dragged onto three drop bands
|
|
13
|
+
* While the window is on screen it can be dragged onto three drop bands — the
|
|
14
|
+
* right one only while the Conversation fills the main column:
|
|
14
15
|
*
|
|
15
16
|
* left the window minimises — still mounted, hidden — and its taskbar row
|
|
16
17
|
* in the left sidebar brings it back; the centre column stays empty,
|
|
17
18
|
* exactly as it is while the window is on screen
|
|
18
|
-
*
|
|
19
|
-
*
|
|
19
|
+
* center the window closes and the Conversation returns to its column
|
|
20
|
+
*
|
|
21
|
+
* The right band exists only while the Conversation fills the main column.
|
|
22
|
+
* Open Plugins, Automations, Settings or any other left-sidebar page and the
|
|
23
|
+
* right column is not drawn at all — DSH suppresses it while a global panel is
|
|
24
|
+
* active — so a right band there would promise a column that cannot appear.
|
|
25
|
+
* On those pages the drag has two bands only: everything right of the left band
|
|
26
|
+
* is centre, and the outline says so.
|
|
20
27
|
*
|
|
21
28
|
* The bands are measured once per drag. Holding the press for {@link DWELL_MS}
|
|
22
29
|
* switches the drag into judging: from that moment the outline follows the band
|
|
@@ -260,6 +267,14 @@ window.__ModuleLoader__.load({
|
|
|
260
267
|
let inLayout = false
|
|
261
268
|
/** Whether the main slot carried a page during the last pass. */
|
|
262
269
|
let lastPageOpen = false
|
|
270
|
+
/**
|
|
271
|
+
* The Session DSH last said was current.
|
|
272
|
+
*
|
|
273
|
+
* A pass has to run when this moves even while a page owns the main slot:
|
|
274
|
+
* the float's own switch chip trades the live Conversation and keeps the
|
|
275
|
+
* page open, so "a page is up, nothing can have changed" stopped being true.
|
|
276
|
+
*/
|
|
277
|
+
let lastSelected = null
|
|
263
278
|
/**
|
|
264
279
|
* What one layout pass has already worked out.
|
|
265
280
|
*
|
|
@@ -297,10 +312,16 @@ window.__ModuleLoader__.load({
|
|
|
297
312
|
const pageChanged = pageOpen !== lastPageOpen
|
|
298
313
|
lastPageOpen = pageOpen
|
|
299
314
|
// A page owns the main slot: the Conversation is not on screen, the column
|
|
300
|
-
// is home and every body
|
|
301
|
-
//
|
|
302
|
-
//
|
|
303
|
-
|
|
315
|
+
// is home and every body shows its own transcript. Nothing a pass could
|
|
316
|
+
// decide is different until the page closes — except WHICH Session is the
|
|
317
|
+
// current one, which the float's switch chip changes without closing the
|
|
318
|
+
// page. That switch is the one thing this early exit must not swallow: the
|
|
319
|
+
// new Session's window has to turn into the full Conversation and the old
|
|
320
|
+
// one back into a transcript.
|
|
321
|
+
const selectedNow = selectedSession()
|
|
322
|
+
const selectedChanged = selectedNow !== lastSelected
|
|
323
|
+
lastSelected = selectedNow
|
|
324
|
+
if (pageOpen && !pageChanged && !selectedChanged) return
|
|
304
325
|
inLayout = true
|
|
305
326
|
beginPass()
|
|
306
327
|
try {
|
|
@@ -527,96 +548,6 @@ window.__ModuleLoader__.load({
|
|
|
527
548
|
return null
|
|
528
549
|
}
|
|
529
550
|
|
|
530
|
-
/** DSH's layout grid: every panel edge lands on a multiple of it. */
|
|
531
|
-
const GRID = 8
|
|
532
|
-
/**
|
|
533
|
-
* The float's size: 450 x 720 by request, never larger than the room the
|
|
534
|
-
* window actually has. Asking for more makes the dock kit clamp on its own
|
|
535
|
-
* and hands back a half-sized panel with no room left for the messages.
|
|
536
|
-
*/
|
|
537
|
-
function floatSize() {
|
|
538
|
-
return {
|
|
539
|
-
width: Math.max(320, Math.min(450, window.innerWidth - 80)),
|
|
540
|
-
height: Math.max(320, Math.min(720, window.innerHeight - 80)),
|
|
541
|
-
}
|
|
542
|
-
}
|
|
543
|
-
|
|
544
|
-
/** The room the sidebars leave in the middle: their two inner edges. */
|
|
545
|
-
function middleRoom() {
|
|
546
|
-
const width = window.innerWidth
|
|
547
|
-
const overlay = document.querySelector('[data-shell-overlay]')
|
|
548
|
-
const frame = overlay === null ? null : overlay.parentElement
|
|
549
|
-
let left = 0
|
|
550
|
-
let right = width
|
|
551
|
-
if (frame !== null) {
|
|
552
|
-
const sidebar = frame.firstElementChild
|
|
553
|
-
if (sidebar !== null) {
|
|
554
|
-
const box = sidebar.getBoundingClientRect()
|
|
555
|
-
if (box.width > 80) left = Math.round(box.right)
|
|
556
|
-
}
|
|
557
|
-
const rightColumn = frame.querySelector('[data-rightbar-col]')
|
|
558
|
-
if (rightColumn !== null) {
|
|
559
|
-
const box = rightColumn.getBoundingClientRect()
|
|
560
|
-
if (box.width > 80) right = Math.round(box.left)
|
|
561
|
-
}
|
|
562
|
-
}
|
|
563
|
-
return { left, right: Math.max(left, right) }
|
|
564
|
-
}
|
|
565
|
-
|
|
566
|
-
/**
|
|
567
|
-
* Upper-left corner of that seat: centred in the room the sidebars leave,
|
|
568
|
-
* snapped, clear of the frame. With the window showing nothing but the
|
|
569
|
-
* float those columns measure zero and the seat falls back to the window.
|
|
570
|
-
*/
|
|
571
|
-
function floatSeat(size) {
|
|
572
|
-
const snap = (value) => Math.max(0, Math.round(value / GRID) * GRID)
|
|
573
|
-
const room = middleRoom()
|
|
574
|
-
const free = room.right - room.left
|
|
575
|
-
return {
|
|
576
|
-
x: free > size.width ? snap(room.left + (free - size.width) / 2) : snap(room.left),
|
|
577
|
-
y: Math.max(48, snap((window.innerHeight - size.height) / 2)),
|
|
578
|
-
}
|
|
579
|
-
}
|
|
580
|
-
|
|
581
|
-
/**
|
|
582
|
-
* Give the float a readable size on open. DSH's dock kit builds a fresh
|
|
583
|
-
* float at a small default; the plugin cannot write the panel's inline box,
|
|
584
|
-
* but the kit exposes the very intent its own resize drag dispatches:
|
|
585
|
-
* `sidebarRight.require()` -> `actions.resizeFloat(sessionId, paneId, rect)`.
|
|
586
|
-
* The pane id is the float element's own `data-dockkit-float` value.
|
|
587
|
-
*/
|
|
588
|
-
function sizeFloat() {
|
|
589
|
-
const panel = floatPanel()
|
|
590
|
-
if (panel === null) return
|
|
591
|
-
const paneId = panel.getAttribute(FLOAT_ATTR) ?? document.querySelector(`[${FLOAT_ATTR}]`)?.getAttribute(FLOAT_ATTR)
|
|
592
|
-
if (paneId === null || paneId === undefined) return
|
|
593
|
-
let seat = null
|
|
594
|
-
try {
|
|
595
|
-
seat = sidebarRight?.require?.() ?? null
|
|
596
|
-
} catch {
|
|
597
|
-
seat = null
|
|
598
|
-
}
|
|
599
|
-
if (seat === null) {
|
|
600
|
-
// The mounted-session shortcut can be missing right after a docked tab
|
|
601
|
-
// is floated again; fall back to the per-session action face.
|
|
602
|
-
try {
|
|
603
|
-
const sessionId = sidebarRight?.mounted?.getSnapshot?.()
|
|
604
|
-
const actions = sessionId === undefined ? undefined : sidebarRight?.actionsFor?.(sessionId)
|
|
605
|
-
if (actions !== undefined && actions !== null) seat = { sessionId, actions }
|
|
606
|
-
} catch {
|
|
607
|
-
seat = null
|
|
608
|
-
}
|
|
609
|
-
}
|
|
610
|
-
if (seat === null || typeof seat.actions?.resizeFloat !== 'function') return
|
|
611
|
-
const size = floatSize()
|
|
612
|
-
const corner = floatSeat(size)
|
|
613
|
-
const rect = { ...corner, width: size.width, height: size.height }
|
|
614
|
-
try {
|
|
615
|
-
seat.actions.resizeFloat(seat.sessionId, paneId, rect)
|
|
616
|
-
} catch (error) {
|
|
617
|
-
report('[conversation-float] could not size the floating panel:', error)
|
|
618
|
-
}
|
|
619
|
-
}
|
|
620
551
|
function attachColumn(container, keepHome = false) {
|
|
621
552
|
const column = findColumn()
|
|
622
553
|
if (column === null || container === null) return null
|
|
@@ -650,9 +581,6 @@ window.__ModuleLoader__.load({
|
|
|
650
581
|
noteColumnMoved()
|
|
651
582
|
const ownPanel = floatPanel()
|
|
652
583
|
if (ownPanel !== null) ownPanel.setAttribute(OWN_FLOAT_ATTR, '')
|
|
653
|
-
// The dock kit gives a new float its own seat; ask it — through the same
|
|
654
|
-
// intent its own resize drag uses — for the configured one.
|
|
655
|
-
sizeFloat()
|
|
656
584
|
|
|
657
585
|
// A host has taken the column, so a docking that was waiting for its tab
|
|
658
586
|
// has arrived: the restore guard must not outlive it.
|
|
@@ -1106,7 +1034,13 @@ window.__ModuleLoader__.load({
|
|
|
1106
1034
|
// A docked page can be the Conversation's only home; its Session is the
|
|
1107
1035
|
// one on screen and the entry must still find it.
|
|
1108
1036
|
const docked = dockedBodySession()
|
|
1109
|
-
|
|
1037
|
+
// On a page that is not a Conversation there is no column to read and no
|
|
1038
|
+
// docked body to read either: DSH's own selection store is the only
|
|
1039
|
+
// answer, and it is the right one there — the page never renders the
|
|
1040
|
+
// Conversation at all, so nothing on screen can disagree with it. That is
|
|
1041
|
+
// how a switch made from a page finds the Session it just made live.
|
|
1042
|
+
const selected = docked === null && mainPanelOpen() ? selectedSession() : null
|
|
1043
|
+
answer = docked !== null ? docked : (selected ?? lastSession)
|
|
1110
1044
|
}
|
|
1111
1045
|
if (answer !== null) lastSession = answer
|
|
1112
1046
|
if (passMemo !== null) {
|
|
@@ -1679,49 +1613,74 @@ window.__ModuleLoader__.load({
|
|
|
1679
1613
|
/* ---------------------------------------------------------------- bands */
|
|
1680
1614
|
|
|
1681
1615
|
/**
|
|
1682
|
-
* The
|
|
1683
|
-
* sidebar is the frame's first child, the right sidebar
|
|
1684
|
-
* `data-rightbar-col`, and the middle column is whatever lies
|
|
1685
|
-
* The preview therefore covers the same area the drop lands
|
|
1616
|
+
* The drop bands a drag may judge against, taken from the frame's own
|
|
1617
|
+
* columns: the left sidebar is the frame's first child, the right sidebar
|
|
1618
|
+
* carries `data-rightbar-col`, and the middle column is whatever lies
|
|
1619
|
+
* between them. The preview therefore covers the same area the drop lands
|
|
1620
|
+
* in.
|
|
1621
|
+
*
|
|
1622
|
+
* The right band is CONDITIONAL. DSH draws the right column only while the
|
|
1623
|
+
* Conversation fills the main column; a plugin, automation or settings page
|
|
1624
|
+
* suppresses it, so docking there would open a tab into a column nothing is
|
|
1625
|
+
* drawing. On those pages `right` is null: there are two bands, and every
|
|
1626
|
+
* point past the left band is centre.
|
|
1686
1627
|
*/
|
|
1687
1628
|
function bands() {
|
|
1688
1629
|
const width = window.innerWidth
|
|
1689
1630
|
const height = window.innerHeight
|
|
1631
|
+
const dockable = !mainPanelOpen()
|
|
1690
1632
|
// With the window showing nothing but the float, the columns are hidden:
|
|
1691
1633
|
// their rects read as a zero-width left band, which is exactly why "放进
|
|
1692
1634
|
// 左栏" could never be chosen. Judge by thirds of the window there.
|
|
1693
|
-
if (chromeless) return thirds(width, height)
|
|
1635
|
+
if (chromeless) return thirds(width, height, dockable)
|
|
1694
1636
|
const overlay = document.querySelector('[data-shell-overlay]')
|
|
1695
1637
|
const frame = overlay === null ? null : overlay.parentElement
|
|
1696
1638
|
let left = 0
|
|
1697
|
-
let right = 0
|
|
1639
|
+
let right = dockable ? 0 : null
|
|
1698
1640
|
if (frame !== null) {
|
|
1699
1641
|
const sidebar = frame.firstElementChild
|
|
1700
1642
|
if (sidebar !== null) left = Math.round(sidebar.getBoundingClientRect().right)
|
|
1701
|
-
|
|
1702
|
-
|
|
1643
|
+
if (right !== null) {
|
|
1644
|
+
const rightCol = frame.querySelector('[data-rightbar-col]')
|
|
1645
|
+
if (rightCol !== null) right = Math.round(rightCol.getBoundingClientRect().left)
|
|
1646
|
+
}
|
|
1703
1647
|
}
|
|
1704
1648
|
// A collapsed right column measures at the window's edge, which would leave
|
|
1705
1649
|
// the "dock right" band zero wide and unreachable; keep a third of the
|
|
1706
1650
|
// window aimable there, and the docking itself opens the column.
|
|
1707
|
-
if (right >= width - 1) right = Math.round((width * 2) / 3)
|
|
1651
|
+
if (right !== null && right >= width - 1) right = Math.round((width * 2) / 3)
|
|
1708
1652
|
// While the columns are hidden the measurements collapse; keep the last
|
|
1709
|
-
// geometry that made sense so a drag does not land in nonsense bands.
|
|
1710
|
-
|
|
1711
|
-
|
|
1653
|
+
// geometry that made sense so a drag does not land in nonsense bands. A
|
|
1654
|
+
// remembered geometry only serves a frame of the same kind: a band read on
|
|
1655
|
+
// the Conversation page kept its right edge across a page switch.
|
|
1656
|
+
const edge = right === null ? width : right
|
|
1657
|
+
const sane = left >= 0 && edge > left + 80 && edge <= width + 1
|
|
1658
|
+
if (!sane) {
|
|
1659
|
+
if (lastBand !== null && (lastBand.right === null) === (right === null)) return { ...lastBand, width, height }
|
|
1660
|
+
return thirds(width, height, dockable)
|
|
1661
|
+
}
|
|
1712
1662
|
// A railed drawer is too thin to aim at: widen its band to something a
|
|
1713
1663
|
// hand can actually hit.
|
|
1714
1664
|
lastBand = { left: Math.max(left, 96), right, width, height }
|
|
1715
1665
|
return lastBand
|
|
1716
1666
|
}
|
|
1717
1667
|
|
|
1718
|
-
/**
|
|
1719
|
-
|
|
1720
|
-
|
|
1668
|
+
/**
|
|
1669
|
+
* The window in thirds: the bands used while the float is alone.
|
|
1670
|
+
* `right` is null on a page that suppresses the right column, which leaves
|
|
1671
|
+
* this function returning the same two bands the measured frame would.
|
|
1672
|
+
*/
|
|
1673
|
+
function thirds(width, height, dockable) {
|
|
1674
|
+
return {
|
|
1675
|
+
left: Math.round(width / 3),
|
|
1676
|
+
right: dockable ? Math.round((width * 2) / 3) : null,
|
|
1677
|
+
width,
|
|
1678
|
+
height,
|
|
1679
|
+
}
|
|
1721
1680
|
}
|
|
1722
1681
|
function zoneAt(x, band) {
|
|
1723
1682
|
if (x <= band.left) return 'left'
|
|
1724
|
-
if (x >= band.right) return 'right'
|
|
1683
|
+
if (band.right !== null && x >= band.right) return 'right'
|
|
1725
1684
|
return 'center'
|
|
1726
1685
|
}
|
|
1727
1686
|
|
|
@@ -1753,8 +1712,11 @@ window.__ModuleLoader__.load({
|
|
|
1753
1712
|
|
|
1754
1713
|
function previewRect(zone, band) {
|
|
1755
1714
|
if (zone === 'left') return [0, 0, band.left, band.height]
|
|
1756
|
-
|
|
1757
|
-
|
|
1715
|
+
// Without a right edge — a page that suppresses the right column — the
|
|
1716
|
+
// centre band runs to the frame's own edge.
|
|
1717
|
+
const edge = band.right === null ? band.width : band.right
|
|
1718
|
+
if (zone === 'right') return [edge, 0, band.width - edge, band.height]
|
|
1719
|
+
return [band.left, 0, edge - band.left, band.height]
|
|
1758
1720
|
}
|
|
1759
1721
|
|
|
1760
1722
|
/**
|
|
@@ -1904,6 +1866,10 @@ window.__ModuleLoader__.load({
|
|
|
1904
1866
|
}
|
|
1905
1867
|
|
|
1906
1868
|
function drop(zone) {
|
|
1869
|
+
// Dock right only where DSH draws the right column: a page suppresses it,
|
|
1870
|
+
// and a tab opened into a column nobody draws is a tab nobody can see. A
|
|
1871
|
+
// dock asked for from a page lands in the centre instead.
|
|
1872
|
+
if (zone === 'right' && mainPanelOpen()) zone = 'centre'
|
|
1907
1873
|
if (zone === 'right') {
|
|
1908
1874
|
dockingRight = true
|
|
1909
1875
|
// The float leaves as an ordinary right-sidebar tab. The sidebar
|
|
@@ -2240,6 +2206,18 @@ window.__ModuleLoader__.load({
|
|
|
2240
2206
|
const WINDOW_TITLE_ATTR = 'data-dsh-conversation-float-window-title'
|
|
2241
2207
|
const WINDOW_HIDE_PANE_ATTR = 'data-dsh-conversation-float-hide-pane'
|
|
2242
2208
|
const WINDOW_KEY = 'dsh-conversation-float.window.'
|
|
2209
|
+
/**
|
|
2210
|
+
* The generation of a stored window rectangle.
|
|
2211
|
+
*
|
|
2212
|
+
* A stored rect is either a size the user dragged out or the default that was
|
|
2213
|
+
* in force the first time that Session's window opened. When the default
|
|
2214
|
+
* changes, an old record is not a choice — it is the previous default, and
|
|
2215
|
+
* honouring it hides the new size for every Session that was ever opened.
|
|
2216
|
+
* The stamp tells the two apart: a record from an older build is ignored
|
|
2217
|
+
* once, so the first open after an upgrade takes the new default, and every
|
|
2218
|
+
* size the user drags out from then on is kept exactly as before.
|
|
2219
|
+
*/
|
|
2220
|
+
const WINDOW_RECT_VERSION = 2
|
|
2243
2221
|
/**
|
|
2244
2222
|
* One per-Session content epoch.
|
|
2245
2223
|
*
|
|
@@ -2293,6 +2271,9 @@ window.__ModuleLoader__.load({
|
|
|
2293
2271
|
if (raw === null) return null
|
|
2294
2272
|
const r = JSON.parse(raw)
|
|
2295
2273
|
if (!r || typeof r.x !== 'number' || typeof r.y !== 'number' || typeof r.width !== 'number' || typeof r.height !== 'number') return null
|
|
2274
|
+
// A rect written by an older build: the default it was sized against is
|
|
2275
|
+
// not the default any more, so it is not a size anybody chose.
|
|
2276
|
+
if (r.v !== WINDOW_RECT_VERSION) return null
|
|
2296
2277
|
return r
|
|
2297
2278
|
} catch {
|
|
2298
2279
|
return null
|
|
@@ -2301,7 +2282,7 @@ window.__ModuleLoader__.load({
|
|
|
2301
2282
|
|
|
2302
2283
|
function writeWindowRect(sessionId, rect) {
|
|
2303
2284
|
try {
|
|
2304
|
-
window.localStorage.setItem(WINDOW_KEY + sessionId, JSON.stringify(rect))
|
|
2285
|
+
window.localStorage.setItem(WINDOW_KEY + sessionId, JSON.stringify({ ...rect, v: WINDOW_RECT_VERSION }))
|
|
2305
2286
|
} catch {
|
|
2306
2287
|
/* a full quota must not break the float */
|
|
2307
2288
|
}
|
|
@@ -2351,8 +2332,11 @@ window.__ModuleLoader__.load({
|
|
|
2351
2332
|
|
|
2352
2333
|
function defaultWindowRect() {
|
|
2353
2334
|
const top = windowTopInset()
|
|
2354
|
-
|
|
2355
|
-
|
|
2335
|
+
// The float's long-standing size, now the default for the window of our
|
|
2336
|
+
// own: 450 x 720 by request, never wider or taller than the room the
|
|
2337
|
+
// application window leaves around it.
|
|
2338
|
+
const width = Math.max(320, Math.min(450, window.innerWidth - 80))
|
|
2339
|
+
const height = Math.max(320, Math.min(720, window.innerHeight - 80))
|
|
2356
2340
|
return clampRect({
|
|
2357
2341
|
x: Math.round((window.innerWidth - width) / 2),
|
|
2358
2342
|
y: Math.round(top + (window.innerHeight - top - height) / 2),
|
|
@@ -2736,6 +2720,15 @@ window.__ModuleLoader__.load({
|
|
|
2736
2720
|
win.resizer.addEventListener('pointercancel', settled)
|
|
2737
2721
|
}
|
|
2738
2722
|
|
|
2723
|
+
/** The page filling the main column, or null while the Conversation has it. */
|
|
2724
|
+
function currentPanel() {
|
|
2725
|
+
try {
|
|
2726
|
+
return layout?.panelInfo?.getSnapshot?.()?.activePanelId ?? null
|
|
2727
|
+
} catch {
|
|
2728
|
+
return null
|
|
2729
|
+
}
|
|
2730
|
+
}
|
|
2731
|
+
|
|
2739
2732
|
/**
|
|
2740
2733
|
* Make another Conversation the one on screen.
|
|
2741
2734
|
*
|
|
@@ -2743,9 +2736,20 @@ window.__ModuleLoader__.load({
|
|
|
2743
2736
|
* and both columns move together — the same call the sidebar's session rows
|
|
2744
2737
|
* make. The window then re-decides its own mode on the next layout pass, and
|
|
2745
2738
|
* the real column, header and composer follow it in.
|
|
2739
|
+
*
|
|
2740
|
+
* From a page, DSH's switch is half wrong: `openSession` selects the Session
|
|
2741
|
+
* AND reveals the Conversation, which closes the page the user is working in.
|
|
2742
|
+
* A switch made here must trade the live Conversation and leave the page
|
|
2743
|
+
* where it is — the same thing the user gets by opening the page while this
|
|
2744
|
+
* Session is already the current one. So the page is read first and put back
|
|
2745
|
+
* in the same tick: `openSession` runs its `selectPanel(null)` synchronously,
|
|
2746
|
+
* and no React render can happen between two writes of one JavaScript task,
|
|
2747
|
+
* so the slot never actually empties and the page never unmounts.
|
|
2746
2748
|
*/
|
|
2747
2749
|
function switchToWindow(sessionId) {
|
|
2750
|
+
const page = mainPanelOpen() ? currentPanel() : null
|
|
2748
2751
|
let switched = false
|
|
2752
|
+
let threw = false
|
|
2749
2753
|
try {
|
|
2750
2754
|
const workspace = typeof ctxRef?.get === 'function' ? ctxRef.get('uiWorkspace') : null
|
|
2751
2755
|
if (workspace !== null && workspace !== undefined && typeof workspace.openSession === 'function') {
|
|
@@ -2753,10 +2757,22 @@ window.__ModuleLoader__.load({
|
|
|
2753
2757
|
switched = true
|
|
2754
2758
|
}
|
|
2755
2759
|
} catch (error) {
|
|
2760
|
+
threw = true
|
|
2756
2761
|
report('[conversation-float] could not switch the conversation:', error)
|
|
2757
2762
|
}
|
|
2763
|
+
if (page !== null) {
|
|
2764
|
+
// Same tick as the switch, and never skipped on the failure path: a
|
|
2765
|
+
// switch that threw may still have closed the panel.
|
|
2766
|
+
try {
|
|
2767
|
+
layout?.selectPanel?.(page)
|
|
2768
|
+
} catch (error) {
|
|
2769
|
+
report('[conversation-float] could not put the page back:', error)
|
|
2770
|
+
}
|
|
2771
|
+
}
|
|
2758
2772
|
if (!switched) {
|
|
2759
|
-
|
|
2773
|
+
// A throw already said what went wrong; the missing-service line is for
|
|
2774
|
+
// the other way this fails, so the two never stack into noise.
|
|
2775
|
+
if (!threw) report('[conversation-float] no uiWorkspace service to switch the Session')
|
|
2760
2776
|
return
|
|
2761
2777
|
}
|
|
2762
2778
|
raiseWindow(sessionId)
|
|
@@ -2767,6 +2783,12 @@ window.__ModuleLoader__.load({
|
|
|
2767
2783
|
// delays could all fire before the column moved, or long after.
|
|
2768
2784
|
notifyLayout()
|
|
2769
2785
|
refreshSwitchChips()
|
|
2786
|
+
// The wait below is "until the column shows the Session we switched to".
|
|
2787
|
+
// A page keeps the column home and leaves it showing nothing, so there is
|
|
2788
|
+
// no such change to wait for: the pass above already moved the window to
|
|
2789
|
+
// the full local Conversation, and a frame loop here would only burn
|
|
2790
|
+
// frames for two and a half seconds.
|
|
2791
|
+
if (page !== null) return
|
|
2770
2792
|
let lastSeen = '__start__'
|
|
2771
2793
|
untilFrame(() => {
|
|
2772
2794
|
const column = findColumn()
|
|
@@ -3485,7 +3507,7 @@ window.__ModuleLoader__.load({
|
|
|
3485
3507
|
ctxRef = ctx
|
|
3486
3508
|
// Build marker: lets a probe tell a re-imported client.js from the copy
|
|
3487
3509
|
// the host still holds in memory (a page refresh does NOT reload it).
|
|
3488
|
-
try { window.__dshFloatBuild = '
|
|
3510
|
+
try { window.__dshFloatBuild = 'pagebands-0.3.2' } catch { /* no window yet */ }
|
|
3489
3511
|
ctx.effect(() => {
|
|
3490
3512
|
try {
|
|
3491
3513
|
return ctx.locale.register(NS, Object.fromEntries(LOCALES.map((id) => [id, { title: COPY[id].floatTitle, description: COPY[id].description }])))
|
|
@@ -3535,11 +3557,6 @@ window.__ModuleLoader__.load({
|
|
|
3535
3557
|
}
|
|
3536
3558
|
})
|
|
3537
3559
|
|
|
3538
|
-
// One frame after load, give any float already on screen its size.
|
|
3539
|
-
ctx.effect(() => {
|
|
3540
|
-
const id = window.requestAnimationFrame(() => sizeFloat())
|
|
3541
|
-
return () => window.cancelAnimationFrame(id)
|
|
3542
|
-
})
|
|
3543
3560
|
// A reload can leave the last run's hidden columns behind.
|
|
3544
3561
|
// An earlier build parked the View tab strip in the main window; put it
|
|
3545
3562
|
// back inside the Conversation column and drop the parked container.
|
package/docs/README.de.md
CHANGED
|
@@ -16,7 +16,7 @@
|
|
|
16
16
|
|
|
17
17
|
## Öffnen, minimieren, schließen
|
|
18
18
|
|
|
19
|
-
Klicke auf das Fenstersymbol in der Titelleiste der Sitzung. Das Float öffnet
|
|
19
|
+
Klicke auf das Fenstersymbol in der Titelleiste der Sitzung. Das Float öffnet in seiner langjährigen Größe (etwa 450×720, begrenzt durch das Anwendungsfenster), während der Rest von DSH weiterhin sichtbar ist.
|
|
20
20
|
|
|
21
21
|
Derselbe Knopf durchläuft drei Zustände:
|
|
22
22
|
|
|
@@ -38,7 +38,7 @@ Halte die Titelleiste des Fensters fest und ziehe. Wenn du **1,2 Sekunden** stil
|
|
|
38
38
|
| --- | --- |
|
|
39
39
|
| **Linke Seitenleiste** | Das Fenster wird in die linke Seitenleiste minimiert. Es wird nicht geschlossen; seine Taskleisten-Zeile ist der Weg zurück. Die mittlere Spalte bleibt leer. |
|
|
40
40
|
| **Mitte** | Das Fenster schließt sich, und die Konversation kehrt in die mittlere Spalte zurück. |
|
|
41
|
-
| **Rechte Seitenleiste** | Die Konversation dockt als native Seite in der rechten Seitenleiste an, mit DSHs eigenen Zurück- und Schließen-Steuerelementen. |
|
|
41
|
+
| **Rechte Seitenleiste** | Nur solange die Konversation die Hauptspalte füllt: Die Konversation dockt als native Seite in der rechten Seitenleiste an, mit DSHs eigenen Zurück- und Schließen-Steuerelementen. Plugin-, Automatisierungs-, Einstellungs- und alle anderen Seiten der linken Seitenleiste zeichnen keine rechte Spalte; ein Zug dorthin schickt die Konversation in die Mitte zurück. |
|
|
42
42
|
|
|
43
43
|
Die Zeile in der linken Seitenleiste trägt den Titel der Conversation, nicht den Namen des Plugins. Sie behält diesen Titel, während das Fenster andere Conversations betrachtet. Ein Klick auf die Zeile zeigt dieses Fenster nur an und holt es nach vorn; er wählt nie das Hauptpanel des Plugins aus und nimmt nie eine Plugin- oder Automations-Seite weg.
|
|
44
44
|
|
|
@@ -57,13 +57,13 @@ Ein Fenster für eine Session, die **nicht** die laufende ist, zeigt weiterhin e
|
|
|
57
57
|
Jede Session kann ein Float haben. Jedes Float erhält eine Zeile in der linken Seitenleiste, angeordnet wie eine Taskleiste. Die Zeilen sind nach ihren Sessions benannt.
|
|
58
58
|
|
|
59
59
|
- Ein Klick auf eine Zeile **holt dieses Fenster nach vorn**. Er wechselt nicht die aktuelle Session und ändert nicht das Hauptpanel.
|
|
60
|
-
- Ein nicht laufendes Fenster zeigt einen Chip **Zu dieser Konversation wechseln**, wenn es obenauf liegt. Ein Klick darauf macht diese Session zur laufenden; das Fenster übernimmt dann die echte Konversationsspalte.
|
|
60
|
+
- Ein nicht laufendes Fenster zeigt einen Chip **Zu dieser Konversation wechseln**, wenn es obenauf liegt. Ein Klick darauf macht diese Session zur laufenden; das Fenster übernimmt dann die echte Konversationsspalte. Über Plugins, Automatisierungen oder eine andere Nicht-Konversationsseite geöffnet, bleibt diese Seite stehen — sie behält die mittlere Spalte, und das Fenster wird dieselbe vollständige lokale Konversation, die ein laufendes Fenster auf einer Seite zeigt.
|
|
61
61
|
- Das Schließen eines Fensters berührt die anderen nicht.
|
|
62
62
|
- Eine Taskleisten-Zeile einer Session ist ein Eintrag, nie eine zweite aktive Kopie der Konversation.
|
|
63
63
|
|
|
64
64
|
## In die rechte Seitenleiste docken
|
|
65
65
|
|
|
66
|
-
|
|
66
|
+
Die Zeile **Konversation hierher verschieben** in der rechten Seitenleiste selbst übergibt den Tab an die rechte Seitenleiste von DSH; Ziehen dockt nie an, weil die rechte Spalte nur gezeichnet wird, solange die Konversation die Hauptspalte füllt. Der Tab-Typ ist mit `keepMounted` registriert, sodass der Wechsel zu einem anderen Tab der rechten Seitenleiste die Konversation in ihrem eigenen Tab-Body belässt. Die Spalte folgt dem jeweils angezeigten beibehaltenen Body, solange ihre Session läuft; bei jeder anderen Session ist die mittlere Spalte wieder der Platz.
|
|
67
67
|
|
|
68
68
|
## Entwurf und Composer
|
|
69
69
|
|
package/docs/README.es.md
CHANGED
|
@@ -16,7 +16,7 @@
|
|
|
16
16
|
|
|
17
17
|
## Abrir, minimizar, cerrar
|
|
18
18
|
|
|
19
|
-
Haz clic en el icono de ventana de la barra de título de la sesión. La ventana flotante se abre
|
|
19
|
+
Haz clic en el icono de ventana de la barra de título de la sesión. La ventana flotante se abre con su tamaño de siempre (unos 450×720, limitado por la ventana de la aplicación), con el resto de DSH todavía visible.
|
|
20
20
|
|
|
21
21
|
El mismo botón recorre tres estados:
|
|
22
22
|
|
|
@@ -38,7 +38,7 @@ Mantén pulsada la barra de título de la ventana y arrastra. Si te detienes **1
|
|
|
38
38
|
| --- | --- |
|
|
39
39
|
| **Barra lateral izquierda** | La ventana se minimiza en la barra lateral izquierda. No se cierra; su fila de la barra de tareas es la forma de volver. La columna central queda vacía. |
|
|
40
40
|
| **Centro** | La ventana se cierra y la conversación vuelve a la columna central. |
|
|
41
|
-
| **Barra lateral derecha** |
|
|
41
|
+
| **Barra lateral derecha** | Solo mientras la conversación ocupa la columna principal: se acopla como una página nativa en la barra lateral derecha, con los propios controles de volver y cerrar de DSH. Las páginas de plugins, automatizaciones, ajustes y demás entradas de la barra izquierda no dibujan columna derecha, así que soltar allí devuelve la conversación al centro. |
|
|
42
42
|
|
|
43
43
|
La fila de la barra lateral izquierda lleva el título de la Conversation, no el nombre del plugin. Mantiene ese título mientras la ventana mira otras Conversations. Al hacer clic en la fila solo se muestra y se trae al frente esa ventana; nunca selecciona el panel principal del plugin ni quita una página de plugin o de automatización.
|
|
44
44
|
|
|
@@ -57,13 +57,13 @@ Una ventana de una Session que **no** es la activa sigue mostrando una transcrip
|
|
|
57
57
|
Cada Session puede tener una ventana flotante. Cada ventana flotante recibe una fila en la barra lateral izquierda, ordenadas como una barra de tareas. Las filas llevan el nombre de su Session.
|
|
58
58
|
|
|
59
59
|
- Al hacer clic en una fila **se trae al frente esa ventana**. No cambia la Session actual ni modifica el panel principal.
|
|
60
|
-
- Una ventana que no está activa muestra el chip **Cambiar a esta conversación** cuando está encima. Al hacer clic en él, esa Session pasa a estar activa; la ventana toma entonces la columna de conversación real.
|
|
60
|
+
- Una ventana que no está activa muestra el chip **Cambiar a esta conversación** cuando está encima. Al hacer clic en él, esa Session pasa a estar activa; la ventana toma entonces la columna de conversación real. Pulsado desde Plugins, Automatizaciones u otra página que no sea de conversación, mantiene esa página —la página sigue en la columna central y la ventana pasa a ser la misma conversación local completa que muestra una ventana activa en una página.
|
|
61
61
|
- Cerrar una ventana no afecta a las demás.
|
|
62
62
|
- La fila de la barra de tareas de una sesión es una entrada, nunca una segunda copia activa de la conversación.
|
|
63
63
|
|
|
64
64
|
## Acoplar en la barra lateral derecha
|
|
65
65
|
|
|
66
|
-
|
|
66
|
+
La fila **Mover la conversación aquí** de la propia barra lateral derecha entrega la pestaña a la barra lateral derecha de DSH; arrastrar ya no acopla, porque la columna derecha solo se dibuja mientras la conversación ocupa la columna principal. El tipo de pestaña se registra con `keepMounted`, así que cambiar a otra pestaña de la barra lateral derecha deja la conversación en el cuerpo de su propia pestaña. La columna sigue al cuerpo retenido que esté en pantalla mientras su Session está activa; para cualquier otra Session, la columna central vuelve a ser el asiento.
|
|
67
67
|
|
|
68
68
|
## Borrador y compositor
|
|
69
69
|
|
package/docs/README.fr.md
CHANGED
|
@@ -16,7 +16,7 @@
|
|
|
16
16
|
|
|
17
17
|
## Ouvrir, réduire, fermer
|
|
18
18
|
|
|
19
|
-
Cliquez sur l'icône de fenêtre dans la barre de titre de la session. Le flottant s'ouvre
|
|
19
|
+
Cliquez sur l'icône de fenêtre dans la barre de titre de la session. Le flottant s'ouvre à sa taille historique (environ 450×720, limitée par la fenêtre de l'application), le reste de DSH restant visible.
|
|
20
20
|
|
|
21
21
|
Le même bouton cycle entre trois états :
|
|
22
22
|
|
|
@@ -38,7 +38,7 @@ Maintenez la barre de titre de la fenêtre et faites glisser. Un maintien immobi
|
|
|
38
38
|
| --- | --- |
|
|
39
39
|
| **Barre latérale gauche** | La fenêtre est réduite dans la barre latérale gauche. Elle n'est pas fermée ; sa ligne de barre des tâches est le moyen d'y revenir. La colonne centrale reste vide. |
|
|
40
40
|
| **Centre** | La fenêtre se ferme et la conversation retourne dans la colonne centrale. |
|
|
41
|
-
| **Barre latérale droite** |
|
|
41
|
+
| **Barre latérale droite** | Uniquement tant que la conversation occupe la colonne principale : elle s'ancre comme une page native dans la barre latérale droite, avec les propres contrôles de retour et de fermeture de DSH. Les pages de plugins, d'automatisations, de réglages et les autres entrées de la barre gauche ne dessinent aucune colonne droite, donc déposer là ramène la conversation au centre. |
|
|
42
42
|
|
|
43
43
|
La ligne de la barre latérale gauche porte le titre de la conversation, et non le nom du plugin. Elle conserve ce titre même lorsque la fenêtre affiche d'autres conversations. Cliquer sur la ligne ne fait qu'afficher et remonter cette fenêtre ; cela ne sélectionne jamais le panneau principal du plugin et ne retire jamais une page de plugin ou d'automation.
|
|
44
44
|
|
|
@@ -57,13 +57,13 @@ Une fenêtre pour une Session qui n'est **pas** la session active affiche toujou
|
|
|
57
57
|
Chaque Session peut avoir un flottant. Chaque flottant obtient une ligne dans la barre latérale gauche, ordonnée comme une barre des tâches. Les lignes portent le nom de leur Session.
|
|
58
58
|
|
|
59
59
|
- Cliquer sur une ligne **remonte cette fenêtre**. Cela ne change pas la Session courante et ne modifie pas le panneau principal.
|
|
60
|
-
- Une fenêtre non active affiche une puce **Passer à cette conversation** lorsqu'elle est au premier plan. Cliquer dessus rend cette Session active ; la fenêtre prend alors la vraie colonne de conversation.
|
|
60
|
+
- Une fenêtre non active affiche une puce **Passer à cette conversation** lorsqu'elle est au premier plan. Cliquer dessus rend cette Session active ; la fenêtre prend alors la vraie colonne de conversation. Cliqué depuis Plugins, Automatisations ou une autre page hors conversation, il garde cette page — elle reste dans la colonne centrale et la fenêtre devient la même conversation locale complète qu'une fenêtre active affiche sur une page.
|
|
61
61
|
- Fermer une fenêtre ne touche pas aux autres.
|
|
62
62
|
- Une ligne de barre des tâches de session est une entrée, jamais une seconde copie active de la conversation.
|
|
63
63
|
|
|
64
64
|
## Ancrer dans la barre latérale droite
|
|
65
65
|
|
|
66
|
-
|
|
66
|
+
La ligne **Déplacer la conversation ici** de la barre latérale droite elle-même confie l'onglet à la barre latérale droite de DSH ; le glisser n'ancre plus, car la colonne droite n'est dessinée que tant que la conversation occupe la colonne principale. Le type d'onglet est enregistré avec `keepMounted`, de sorte que passer à un autre onglet de la barre latérale droite laisse la conversation dans le corps de son propre onglet. La colonne suit le corps retenu qui est à l'écran tant que sa Session est active ; pour toute autre Session, la colonne centrale redevient la place.
|
|
67
67
|
|
|
68
68
|
## Brouillon et composeur
|
|
69
69
|
|
package/docs/README.ja.md
CHANGED
|
@@ -16,7 +16,7 @@
|
|
|
16
16
|
|
|
17
17
|
## 開く・最小化・閉じる
|
|
18
18
|
|
|
19
|
-
|
|
19
|
+
セッションのタイトルバーにあるウィンドウアイコンをクリックします。フロートは従来どおりのサイズ(約 450×720、アプリのウィンドウで上限)で開き、DSH の残りは表示されたままです。
|
|
20
20
|
|
|
21
21
|
同じボタンが三つの状態を順に切り替えます。
|
|
22
22
|
|
|
@@ -38,7 +38,7 @@ DSH が隠れている間は、**Escape** でインターフェースが戻り
|
|
|
38
38
|
| --- | --- |
|
|
39
39
|
| **左サイドバー** | ウィンドウは左サイドバーへ最小化されます。閉じるのではなく、タスクバー行が戻るための入口です。中央列は空いたままです。 |
|
|
40
40
|
| **中央** | ウィンドウが閉じ、会話は中央列へ戻ります。 |
|
|
41
|
-
| **右サイドバー** |
|
|
41
|
+
| **右サイドバー** | 会話が主列を満たしている間のみ:会話は右サイドバーのネイティブなページとしてドッキングし、DSH 自身の戻す・閉じる操作を備えます。プラグイン・自動化・設定など左サイドバーのページは右列を描かないため、そこへ落とすと会話は中央へ戻ります。 |
|
|
42
42
|
|
|
43
43
|
左サイドバーの行が持つのは会話のタイトルで、プラグイン名ではありません。ウィンドウが別の会話を表示している間も、そのタイトルは変わりません。行をクリックするとそのウィンドウを表示して前面に出すだけで、プラグインのメインパネルを選ぶことも、プラグインや自動化のページを奪うこともありません。
|
|
44
44
|
|
|
@@ -57,13 +57,13 @@ Plugins、Automations、Settings、その他の左サイドバーの項目を開
|
|
|
57
57
|
各 Session はフロートを一つ持てます。すべてのフロートは左サイドバーに行を得て、タスクバーのように並びます。行の名前はそれぞれの Session 名です。
|
|
58
58
|
|
|
59
59
|
- 行をクリックすると**そのウィンドウが前面に出ます**。現在の Session は切り替わらず、メインパネルも変わりません。
|
|
60
|
-
- ライブでないウィンドウが最前面にあるときは **「この会話に切り替え」** チップが表示されます。クリックするとその Session
|
|
60
|
+
- ライブでないウィンドウが最前面にあるときは **「この会話に切り替え」** チップが表示されます。クリックするとその Session がライブになり、ウィンドウが本物の会話の列を受け取ります。プラグインや自動化など会話以外のページで押した場合はそのページを残します — ページは中央列に残り、ウィンドウはライブなウィンドウがページ上で見せるのと同じ完全なローカル会話になります。
|
|
61
61
|
- 一つのウィンドウを閉じても、ほかのウィンドウには影響しません。
|
|
62
62
|
- Session のタスクバー行は入口であり、会話の二つ目のライブコピーにはなりません。
|
|
63
63
|
|
|
64
64
|
## 右サイドバーへドッキングする
|
|
65
65
|
|
|
66
|
-
|
|
66
|
+
右サイドバー自身の **「会話をここへ移動」** 行がタブを DSH の右サイドバーへ渡します。ドラッグではドッキングしません — 右列は会話が主列を満たしている間しか描かれないためです。タブ種別は `keepMounted` 付きで登録されるため、右サイドバーの別タブへ切り替えても会話は自分のタブ本文に残ります。その Session がライブである間は、列は画面に表示されている保持済みの本文に従います。それ以外の Session では、再び中央列が定位置になります。
|
|
67
67
|
|
|
68
68
|
## 下書きとコンポーザー
|
|
69
69
|
|
package/docs/README.pt.md
CHANGED
|
@@ -16,7 +16,7 @@
|
|
|
16
16
|
|
|
17
17
|
## Abrir, minimizar, fechar
|
|
18
18
|
|
|
19
|
-
Clique no ícone de janela na barra de título da sessão. O flutuante abre
|
|
19
|
+
Clique no ícone de janela na barra de título da sessão. O flutuante abre no seu tamanho de sempre (cerca de 450×720, limitado pela janela da aplicação), com o resto do DSH ainda visível.
|
|
20
20
|
|
|
21
21
|
O mesmo botão percorre três estados:
|
|
22
22
|
|
|
@@ -38,7 +38,7 @@ Segure na barra de título da janela e arraste. Manter-se parado durante **1,2 s
|
|
|
38
38
|
| --- | --- |
|
|
39
39
|
| **Barra lateral esquerda** | A janela é minimizada na barra lateral esquerda. Não é fechada; a sua linha na barra de tarefas é o caminho de volta. A coluna central fica vazia. |
|
|
40
40
|
| **Centro** | A janela fecha e a conversa volta para a coluna central. |
|
|
41
|
-
| **Barra lateral direita** |
|
|
41
|
+
| **Barra lateral direita** | Apenas enquanto a conversa ocupa a coluna principal: é ancorada como página nativa na barra lateral direita, com os próprios controlos de retorno e de fecho do DSH. Páginas de plugins, automações, definições e outras entradas da barra esquerda não desenham coluna direita, por isso largar ali devolve a conversa ao centro. |
|
|
42
42
|
|
|
43
43
|
A linha da barra lateral esquerda mostra o título da conversa, não o nome do plugin. Mantém esse título enquanto a janela está a ver outras conversas. Clicar na linha apenas mostra e traz essa janela para a frente; nunca seleciona o painel principal do plugin e nunca retira uma página de plugin ou de automatização.
|
|
44
44
|
|
|
@@ -57,13 +57,13 @@ Uma janela de uma sessão que **não** é a ativa mostra ainda uma transcrição
|
|
|
57
57
|
Cada sessão pode ter um flutuante. Cada flutuante ganha uma linha na barra lateral esquerda, ordenada como uma barra de tarefas. As linhas têm o nome das respetivas sessões.
|
|
58
58
|
|
|
59
59
|
- Clicar numa linha **traz essa janela para a frente**. Não muda a sessão atual nem altera o painel principal.
|
|
60
|
-
- Uma janela que não está ativa mostra um chip **Mudar para esta conversa** quando está por cima. Clicá-lo torna essa sessão ativa; a janela passa então a ocupar a coluna real da conversa.
|
|
60
|
+
- Uma janela que não está ativa mostra um chip **Mudar para esta conversa** quando está por cima. Clicá-lo torna essa sessão ativa; a janela passa então a ocupar a coluna real da conversa. Premido em Plugins, Automações ou outra página que não seja de conversa, mantém essa página — a página fica na coluna central e a janela passa a ser a mesma conversa local completa que uma janela ativa mostra numa página.
|
|
61
61
|
- Fechar uma janela não afeta as outras.
|
|
62
62
|
- Uma linha de sessão na barra de tarefas é uma entrada, nunca uma segunda cópia ativa da conversa.
|
|
63
63
|
|
|
64
64
|
## Ancorar na barra lateral direita
|
|
65
65
|
|
|
66
|
-
|
|
66
|
+
A linha **Mover a conversa para aqui** da própria barra lateral direita entrega o separador à barra lateral direita do DSH; arrastar já não ancora, porque a coluna direita só é desenhada enquanto a conversa ocupa a coluna principal. O tipo de separador é registado com `keepMounted`, pelo que mudar para outro separador da barra direita deixa a conversa no corpo do seu próprio separador. A coluna segue o corpo retido que estiver no ecrã enquanto a sua sessão está ativa; para qualquer outra sessão, a coluna central volta a ser o lugar.
|
|
67
67
|
|
|
68
68
|
## Rascunho e compositor
|
|
69
69
|
|
package/docs/README.ru.md
CHANGED
|
@@ -16,7 +16,7 @@
|
|
|
16
16
|
|
|
17
17
|
## Открытие, сворачивание, закрытие
|
|
18
18
|
|
|
19
|
-
Нажмите на значок окна в строке заголовка сессии. Окно открывается
|
|
19
|
+
Нажмите на значок окна в строке заголовка сессии. Окно открывается своего давнего размера (около 450×720, с ограничением по окну приложения), остальной DSH при этом остаётся видимым.
|
|
20
20
|
|
|
21
21
|
Одна и та же кнопка проходит три состояния:
|
|
22
22
|
|
|
@@ -38,7 +38,7 @@
|
|
|
38
38
|
| --- | --- |
|
|
39
39
|
| **Левая боковая панель** | Окно сворачивается в левую боковую панель. Оно не закрывается; его строка на панели задач — путь назад. Средняя колонка остаётся пустой. |
|
|
40
40
|
| **Центр** | Окно закрывается, и беседа возвращается в среднюю колонку. |
|
|
41
|
-
| **Правая боковая панель** |
|
|
41
|
+
| **Правая боковая панель** | Только пока беседа занимает среднюю колонку: она пристыковывается как нативная страница в правой боковой панели, с собственными элементами возврата и закрытия DSH. Страницы плагинов, автоматизаций, настроек и прочие входы левой панели не рисуют правую колонку, поэтому бросок туда возвращает беседу в центр. |
|
|
42
42
|
|
|
43
43
|
Строка в левой панели несёт заголовок беседы, а не имя плагина. Она сохраняет этот заголовок, пока окно смотрит на другие беседы. Нажатие на строку только показывает и поднимает это окно; оно никогда не выбирает главную панель плагина и никогда не убирает страницу плагина или автоматизации.
|
|
44
44
|
|
|
@@ -57,13 +57,13 @@
|
|
|
57
57
|
У каждой сессии может быть одно плавающее окно. Каждое окно получает строку в левой боковой панели, упорядоченную как панель задач. Строки называются по своим сессиям.
|
|
58
58
|
|
|
59
59
|
- Нажатие на строку **поднимает это окно**. Оно не переключает текущую сессию и не меняет главную панель.
|
|
60
|
-
- Окно сессии, которая не является текущей, показывает чип **Перейти к этой беседе**, когда находится сверху. Нажатие на него делает эту сессию текущей; после этого окно забирает настоящую колонку беседы.
|
|
60
|
+
- Окно сессии, которая не является текущей, показывает чип **Перейти к этой беседе**, когда находится сверху. Нажатие на него делает эту сессию текущей; после этого окно забирает настоящую колонку беседы. Нажатый на странице плагинов, автоматизаций или любой другой неразговорной странице, он оставляет эту страницу — она остаётся в средней колонке, а окно становится той же полной локальной беседой, какую текущее окно показывает на странице.
|
|
61
61
|
- Закрытие одного окна не затрагивает остальные.
|
|
62
62
|
- Строка сессии на панели задач — это вход, а не вторая живая копия беседы.
|
|
63
63
|
|
|
64
64
|
## Пристыковка к правой боковой панели
|
|
65
65
|
|
|
66
|
-
|
|
66
|
+
Строка **Переместить беседу сюда** в самой правой панели передаёт вкладку правой боковой панели DSH; перетаскивание больше не пристыковывает, потому что правая колонка рисуется только пока беседа занимает среднюю. Тип вкладки регистрируется с `keepMounted`, поэтому при переключении на другую вкладку правой панели беседа остаётся в собственном теле вкладки. Колонка следует за тем удержанным телом, которое находится на экране, пока его сессия текущая; для любой другой сессии место снова в средней колонке.
|
|
67
67
|
|
|
68
68
|
## Черновик и композер
|
|
69
69
|
|
package/docs/README.zh.md
CHANGED
|
@@ -16,7 +16,7 @@
|
|
|
16
16
|
|
|
17
17
|
## 打开、最小化、关闭
|
|
18
18
|
|
|
19
|
-
|
|
19
|
+
点会话标题栏里的窗口图标。浮窗以它长期以来的尺寸打开(约 450×720,受应用窗口大小限制),DSH 其余部分仍然可见。
|
|
20
20
|
|
|
21
21
|
同一个按钮在三种状态间循环:
|
|
22
22
|
|
|
@@ -38,7 +38,7 @@ DSH 被隐藏时,按 **Escape** 可以调回界面。
|
|
|
38
38
|
| --- | --- |
|
|
39
39
|
| **左侧栏** | 窗口被最小化进左栏。它没有被关闭;任务栏行是回去的入口。中栏保持空白。 |
|
|
40
40
|
| **中间** | 窗口关闭,会话回到中栏。 |
|
|
41
|
-
| **右侧栏** |
|
|
41
|
+
| **右侧栏** | 只在会话占满主栏时:会话作为 DSH 原生页面停靠进右侧栏,带着 DSH 自己的收回和关闭控件。插件、自动化、设置以及其它左侧栏入口页面都不画右栏,所以拖到那里是「回到中间」。 |
|
|
42
42
|
|
|
43
43
|
左栏那一行显示的是该 Conversation 的标题,不是插件的名字。窗口去看别的 Conversation 时,这一行仍保持那个标题。点这一行只会显示并抬升那个窗口;它绝不会选中插件主面板,也不会把插件页或自动化页夺走。
|
|
44
44
|
|
|
@@ -57,13 +57,13 @@ DSH 被隐藏时,按 **Escape** 可以调回界面。
|
|
|
57
57
|
每个 Session 可以有一个浮窗。每个浮窗在左栏各占一行,按任务栏的方式排列。行以各自的 Session 命名。
|
|
58
58
|
|
|
59
59
|
- 点一行会**抬升那个窗口**。它不切换当前 Session,也不改变主面板。
|
|
60
|
-
- 非活窗口在最上层时会显示一枚 **切换到当前会话** 标签。点它会让那个 Session
|
|
60
|
+
- 非活窗口在最上层时会显示一枚 **切换到当前会话** 标签。点它会让那个 Session 变成活会话;窗口随后接管真实的会话列。在插件、自动化等非会话页上点,它会留在那一页——页面继续占着中栏,窗口直接变成「活会话在非会话页」时那样完整的本地会话。
|
|
61
61
|
- 关掉一个窗口不会影响其他窗口。
|
|
62
62
|
- 会话任务栏行只是一个入口,永远不是会话的第二份活副本。
|
|
63
63
|
|
|
64
64
|
## 停靠进右侧栏
|
|
65
65
|
|
|
66
|
-
|
|
66
|
+
只有右侧栏自己的 **会话移至此处** 这一行会把这个页签交给 DSH 的右侧栏;拖动不再停靠,因为右栏只在会话占满主栏时才被画出来。页签类型用 `keepMounted` 注册,所以切到右侧栏的别的页签时,会话仍留在自己的页签主体里。该 Session 活着时,这一列跟随屏幕上当前显示的那个保留主体;换成任何别的 Session,中栏又重新成为它的位置。
|
|
67
67
|
|
|
68
68
|
## 草稿与输入框
|
|
69
69
|
|