@floless/app 0.129.0 → 0.130.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/dist/floless-server.cjs +39 -6
- package/dist/web/steel-3d-view.js +11 -0
- package/dist/web/steel-editor.html +334 -140
- package/dist/web/vector-3d.html +80 -13
- package/dist/web/vector-editor.html +66 -21
- package/package.json +4 -1
package/dist/web/vector-3d.html
CHANGED
|
@@ -4,14 +4,69 @@
|
|
|
4
4
|
<meta charset="utf-8">
|
|
5
5
|
<meta name="viewport" content="width=device-width, initial-scale=1">
|
|
6
6
|
<title>Trace — 3D view</title>
|
|
7
|
+
<!-- Mirrors the shell's light/dark choice onto this document's <html> — see web/frame-theme.js for why it
|
|
8
|
+
reads localStorage rather than being poked by the parent. Classic, non-deferred and in <head> on
|
|
9
|
+
purpose: the attribute has to land before first paint or a light user sees a dark flash. -->
|
|
10
|
+
<script src="./frame-theme.js"></script>
|
|
7
11
|
<style>
|
|
8
|
-
/* Locked baseline: shadcn dark slate-blue (same tokens + scrollbar theming as the sibling editors).
|
|
9
|
-
|
|
10
|
-
|
|
12
|
+
/* Locked baseline: shadcn dark slate-blue (same tokens + scrollbar theming as the sibling editors).
|
|
13
|
+
THE SCENE IS A DARK ISLAND IN BOTH THEMES (#727), and on this page it is nearly the whole document:
|
|
14
|
+
the three.js renderer clears to #020817 and every material, edge and label is tuned against it, so
|
|
15
|
+
the canvas — and the toolbar, panel and model-glued labels floating on it — keep the dark palette.
|
|
16
|
+
What DOES follow the shell is the header, and #state: that overlay covers the canvas outright while
|
|
17
|
+
loading, empty or failed, so there is no scene beneath it to protect. That is the same carve-out
|
|
18
|
+
steel-filter.html makes for its #empty, decided the same way rather than the opposite way. */
|
|
19
|
+
:root{
|
|
20
|
+
color-scheme:dark;
|
|
21
|
+
--bg:#0f172a;--panel:#1e293b;--line:#334155;--text:#e2e8f0;--mut:#94a3b8;--brand:#3b82f6;
|
|
22
|
+
--btn:#334155;--btn-hover:#475569;--ctrl-border:#475569;
|
|
23
|
+
--brand-ink:#fff;
|
|
24
|
+
--scroll:#475569;--scroll-hover:#5b6b85;
|
|
25
|
+
--shadow-tip:0 8px 22px rgba(0,0,0,.5);
|
|
26
|
+
--warn:#f59e0b; /* "needs review" — never red: honesty, not error */
|
|
27
|
+
}
|
|
28
|
+
/* Light — app.css's own [data-theme="light"] ramp, reusing #726's measured values. Amber steps down to
|
|
29
|
+
the -700 stop: #f59e0b measures under 2:1 on a light panel, and this is the one chip that tells a
|
|
30
|
+
user some of their drawing did not make it into the model. */
|
|
31
|
+
[data-theme="light"]{
|
|
32
|
+
color-scheme:light;
|
|
33
|
+
--bg:#fff;--panel:#f1f5f9;--line:#cbd5e1;--text:#0f172a;--mut:#475569;--brand:#2563eb;
|
|
34
|
+
--btn:#e2e8f0;--btn-hover:#cbd5e1;--ctrl-border:#94a3b8;
|
|
35
|
+
--scroll:#cbd5e1;--scroll-hover:#94a3b8;
|
|
36
|
+
--shadow-tip:0 8px 22px rgba(15,23,42,.14);
|
|
37
|
+
--warn:#b45309;
|
|
38
|
+
}
|
|
39
|
+
/* The island. Same mechanism as steel-editor.html: re-declaring the dark tokens ON these elements
|
|
40
|
+
re-points every var() inside their subtrees without rewriting a single rule. #m3d* are the
|
|
41
|
+
model-glued label hosts steel-3d-view.js appends to <body> — they are positioned over the canvas
|
|
42
|
+
every frame, so they belong to the scene, not to the page. */
|
|
43
|
+
/* NOT #wrap. It is the canvas's own backdrop and already pins its colour with a literal, and putting
|
|
44
|
+
it in the island would pull #state — its child — back into the dark palette, which is precisely the
|
|
45
|
+
overlay this page themes. Measured: with #wrap listed, the "No 3D yet" message rendered on the dark
|
|
46
|
+
ground in light mode. Its two floating children are named individually instead. */
|
|
47
|
+
[data-theme="light"] #stage3d,[data-theme="light"] #bar,
|
|
48
|
+
[data-theme="light"] #skipPanel,[data-theme="light"] #m3dReadout,[data-theme="light"] #m3dRubber,
|
|
49
|
+
[data-theme="light"] #m3dHoverChip,[data-theme="light"] #m3dDimLabels,
|
|
50
|
+
[data-theme="light"] #m3dMemberLabels,[data-theme="light"] #m3dPropLabelHost,
|
|
51
|
+
[data-theme="light"] #m3dSelLenLabels{
|
|
52
|
+
color-scheme:dark;
|
|
53
|
+
/* Re-anchor the inherited colour too, not only the tokens: an element that declares no colour of its
|
|
54
|
+
own inherits <body>'s, which in light is near-black — measured on the steel editor's legend rows,
|
|
55
|
+
which came out #0f172a on a #1e293b panel until this line existed. */
|
|
56
|
+
color:var(--text);
|
|
57
|
+
--bg:#0f172a;--panel:#1e293b;--line:#334155;--text:#e2e8f0;--mut:#94a3b8;--brand:#3b82f6;
|
|
58
|
+
--btn:#334155;--btn-hover:#475569;--ctrl-border:#475569;--brand-ink:#fff;
|
|
59
|
+
--scroll:#475569;--scroll-hover:#5b6b85;--warn:#f59e0b;
|
|
60
|
+
/* Unused inside the island today — #tooltip is chrome and lives outside it — but the island carries
|
|
61
|
+
the WHOLE dark palette on purpose: "every token :root has" is an invariant a test can check
|
|
62
|
+
(frame-theme.test.ts), where "every token something in here happens to read" is not. */
|
|
63
|
+
--shadow-tip:0 8px 22px rgba(0,0,0,.5);
|
|
64
|
+
}
|
|
65
|
+
*{scrollbar-width:thin;scrollbar-color:var(--scroll) transparent}
|
|
11
66
|
*::-webkit-scrollbar{width:10px;height:10px}
|
|
12
67
|
*::-webkit-scrollbar-track{background:transparent}
|
|
13
|
-
*::-webkit-scrollbar-thumb{background
|
|
14
|
-
*::-webkit-scrollbar-thumb:hover{background
|
|
68
|
+
*::-webkit-scrollbar-thumb{background:var(--scroll);border-radius:6px;border:2px solid transparent;background-clip:content-box}
|
|
69
|
+
*::-webkit-scrollbar-thumb:hover{background:var(--scroll-hover);background-clip:content-box}
|
|
15
70
|
*::-webkit-scrollbar-corner{background:transparent}
|
|
16
71
|
*{box-sizing:border-box}
|
|
17
72
|
body{margin:0;background:var(--bg);color:var(--text);font:13px system-ui;height:100vh;display:flex;flex-direction:column;overflow:hidden}
|
|
@@ -20,22 +75,34 @@
|
|
|
20
75
|
header .spacer{flex:1}
|
|
21
76
|
.stat{color:var(--mut)} .stat b{color:var(--text);font-variant-numeric:tabular-nums}
|
|
22
77
|
/* The unplaced-entities chip — amber "needs review" language (never red: honesty, not error). */
|
|
23
|
-
#skipChip{display:inline-flex;align-items:center;gap:6px;background:transparent;border:1px solid var(--line);color
|
|
24
|
-
#skipChip:hover{border-color
|
|
78
|
+
#skipChip{display:inline-flex;align-items:center;gap:6px;background:transparent;border:1px solid var(--line);color:var(--warn);border-radius:6px;padding:4px 10px;font:inherit;cursor:pointer}
|
|
79
|
+
#skipChip:hover{border-color:var(--warn)}
|
|
25
80
|
#skipChip[hidden]{display:none} /* the id's display beats the [hidden] UA rule — restore it */
|
|
26
81
|
/* Full-bleed canvas. Wrapper bg matches the Three.js clear color EXACTLY (#020817) so the brief
|
|
27
82
|
WebGL-init frame never flashes a seam against the app --bg. */
|
|
28
|
-
#wrap{flex:1;position:relative;min-height:0;background:#020817}
|
|
83
|
+
#wrap{flex:1;position:relative;min-height:0;background:#020817} /* pinned: it must match the WebGL clear colour exactly, in either theme, or the init frame flashes a seam */
|
|
29
84
|
#stage3d{position:absolute;inset:0;width:100%;height:100%;outline:none}
|
|
30
85
|
#state{position:absolute;inset:0;display:none;align-items:center;justify-content:center;flex-direction:column;gap:10px;background:var(--bg);color:var(--mut);text-align:center;padding:24px;z-index:4}
|
|
31
86
|
#state.show{display:flex}
|
|
87
|
+
/* While the overlay is up there is no scene, so Persp/Ortho/Fit/Solid/Wire/X-ray act on nothing —
|
|
88
|
+
and this page's rule, like steel-filter.html's, is to HIDE a dead control rather than show it inert.
|
|
89
|
+
Theming #state made that visible rather than created it: a pinned-dark toolbar left floating on the
|
|
90
|
+
now-light overlay is an artifact of two correct decisions meeting, and hiding the dead control
|
|
91
|
+
settles it in BOTH themes. `:has()` because #state is a later sibling than #bar, so no combinator
|
|
92
|
+
reaches backwards to it.
|
|
93
|
+
#skipPanel IS NOT IN THIS RULE, and that is the whole point of the distinction: it is not dead
|
|
94
|
+
here, it is the ONLY diagnostic this state has. The empty message says in as many words "Each one
|
|
95
|
+
is listed with the reason in the 'Not shown in 3D' panel", and boot() deliberately opens it before
|
|
96
|
+
showing the overlay. Hiding it would delete the answer while printing the question — and would
|
|
97
|
+
strand the header's ⚠ unplaced chip, which toggles it and lives outside #wrap. (Review on #727.) */
|
|
98
|
+
#wrap:has(#state.show) #bar{display:none}
|
|
32
99
|
#state .spin{width:26px;height:26px;border:3px solid var(--line);border-top-color:var(--brand);border-radius:50%;animation:spin .8s linear infinite}
|
|
33
100
|
#state .msg{max-width:520px;line-height:1.55}
|
|
34
101
|
#state .msg b{color:var(--text)}
|
|
35
102
|
@keyframes spin{to{transform:rotate(360deg)}}
|
|
36
103
|
/* Floating toolbar pill, top-left (the established 3D slot). */
|
|
37
104
|
#bar{position:absolute;top:12px;left:12px;display:flex;gap:6px;align-items:center;z-index:5}
|
|
38
|
-
#bar .seg-group{display:inline-flex;border:1px solid var(--line);border-radius:6px;overflow:hidden;background:var(--panel);box-shadow:0 4px 14px rgba(0,0,0,.45)}
|
|
105
|
+
#bar .seg-group{display:inline-flex;border:1px solid var(--line);border-radius:6px;overflow:hidden;background:var(--panel);box-shadow:0 4px 14px rgba(0,0,0,.45)} /* the bar and the panel below are inside the island — their literals are the scene's, not the page's */
|
|
39
106
|
#bar .seg-group button{padding:5px 11px;margin:0;border:0;border-radius:0;background:transparent;color:var(--mut);font:600 12px system-ui;cursor:pointer}
|
|
40
107
|
#bar .seg-group button+button{border-left:1px solid var(--line)}
|
|
41
108
|
#bar .seg-group button:hover{color:var(--text)}
|
|
@@ -53,9 +120,9 @@
|
|
|
53
120
|
so its track is sized by this very item and a percentage width resolves to 0 — measured at 6x, the
|
|
54
121
|
checked box painted a solid brand square with no check in it. */
|
|
55
122
|
input[type=checkbox]{appearance:none;-webkit-appearance:none;width:14px;height:14px;flex:none;padding:0;
|
|
56
|
-
border:1px solid
|
|
123
|
+
border:1px solid var(--ctrl-border);border-radius:3px;background:var(--bg);cursor:pointer;display:inline-grid;place-content:center;
|
|
57
124
|
transition:border-color .12s,background-color .12s}
|
|
58
|
-
input[type=checkbox]::before{content:'';width:9px;height:9px;background
|
|
125
|
+
input[type=checkbox]::before{content:'';width:9px;height:9px;background:var(--brand-ink);transform:scale(0);transition:transform .12s ease;
|
|
59
126
|
clip-path:polygon(14% 44%,0 65%,50% 100%,100% 16%,80% 0%,43% 62%)}
|
|
60
127
|
input[type=checkbox]:checked{background:var(--brand);border-color:var(--brand)}
|
|
61
128
|
input[type=checkbox]:checked::before{transform:scale(1)}
|
|
@@ -89,12 +156,12 @@
|
|
|
89
156
|
#skipList{max-height:200px;overflow:auto;padding:0 6px 8px;display:flex;flex-direction:column;gap:2px}
|
|
90
157
|
.srow{display:flex;align-items:baseline;gap:6px;padding:4px 6px;border-radius:6px;font-size:12px}
|
|
91
158
|
.srow:hover{background:var(--line)}
|
|
92
|
-
.srow .sid{color
|
|
159
|
+
.srow .sid{color:var(--warn);flex:none;font-variant-numeric:tabular-nums} /* --warn resolves to the DARK amber here: #skipPanel is inside the island */
|
|
93
160
|
.srow .rsn{color:var(--text);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
|
|
94
161
|
/* Themed tooltip — replaces native title= so no OS-default tooltip leaks the dark theme.
|
|
95
162
|
Same element, tokens and geometry as the sibling editors' #tooltip (vector-editor.html,
|
|
96
163
|
steel-filter.html, steel-editor.html) so the four surfaces read as one family. */
|
|
97
|
-
#tooltip{position:fixed;z-index:80;background:var(--panel);border:1px solid var(--line);border-radius:6px;padding:5px 8px;font-size:11.5px;line-height:1.35;color:var(--text);pointer-events:none;max-width:260px;box-shadow:
|
|
164
|
+
#tooltip{position:fixed;z-index:80;background:var(--panel);border:1px solid var(--line);border-radius:6px;padding:5px 8px;font-size:11.5px;line-height:1.35;color:var(--text);pointer-events:none;max-width:260px;box-shadow:var(--shadow-tip);opacity:0;transition:opacity .12s}
|
|
98
165
|
#tooltip.show{opacity:1}
|
|
99
166
|
</style>
|
|
100
167
|
</head>
|
|
@@ -4,14 +4,54 @@
|
|
|
4
4
|
<meta charset="utf-8">
|
|
5
5
|
<meta name="viewport" content="width=device-width, initial-scale=1">
|
|
6
6
|
<title>Traced drawing — editor</title>
|
|
7
|
+
<!-- Mirrors the shell's light/dark choice onto this document's <html> — see web/frame-theme.js for why it
|
|
8
|
+
reads localStorage rather than being poked by the parent. Classic, non-deferred and in <head> on
|
|
9
|
+
purpose: the attribute has to land before first paint or a light user sees a dark flash. -->
|
|
10
|
+
<script src="./frame-theme.js"></script>
|
|
7
11
|
<style>
|
|
8
|
-
/* Locked baseline: shadcn dark slate-blue (identical tokens + scrollbar theming as steel-editor.html).
|
|
9
|
-
|
|
10
|
-
|
|
12
|
+
/* Locked baseline: shadcn dark slate-blue (identical tokens + scrollbar theming as steel-editor.html).
|
|
13
|
+
THE PAPER IS THE EXCEPTION THAT PROVES THE RULE (#727). Its two sibling viewers keep a DARK stage in
|
|
14
|
+
both themes, because their linework is painted in colours tuned for a dark ground. This page's stage
|
|
15
|
+
is `--paper`, already near-white in dark mode, carrying plain dark traced ink — so there is no
|
|
16
|
+
palette to re-derive and nothing to protect. The paper simply stays what it is, and every piece of
|
|
17
|
+
chrome around and on it follows the shell. Pinning the floating pills dark instead would leave two
|
|
18
|
+
orphaned dark controls on an otherwise light page for no legibility reason at all. */
|
|
19
|
+
:root{
|
|
20
|
+
color-scheme:dark;
|
|
21
|
+
--bg:#0f172a;--panel:#1e293b;--line:#334155;--text:#e2e8f0;--mut:#94a3b8;--brand:#3b82f6;
|
|
22
|
+
--paper:#f8fafc; /* the drawing sheet — deliberately identical in both themes */
|
|
23
|
+
--btn:#334155;--btn-hover:#475569;--ctrl-border:#475569;
|
|
24
|
+
--brand-ink:#fff;
|
|
25
|
+
--scroll:#475569;--scroll-hover:#5b6b85;
|
|
26
|
+
--shadow-tip:0 8px 22px rgba(0,0,0,.5);
|
|
27
|
+
/* The pills that float ON the paper. In dark they are dark-on-white and read instantly; in light they
|
|
28
|
+
are light-on-white, so the BORDER — not the fill — is what keeps them off the page, and it steps to
|
|
29
|
+
--mut's stop rather than --line's: measured against the paper, #cbd5e1 is 1.42:1 and #94a3b8 only
|
|
30
|
+
2.45:1, both under the 3:1 a non-text boundary needs, while #475569 reaches 7.25:1. The shadow is
|
|
31
|
+
carried too, since a flat black one is invisible on near-white. */
|
|
32
|
+
--float-border:var(--line);--float-shadow:0 4px 14px rgba(0,0,0,.45);
|
|
33
|
+
--warn:#f59e0b;--warn-soft:#fbbf24;
|
|
34
|
+
--err:#f87171;--err-bg:#7f1d1d;--err-border:#991b1b;--err-ink:#fecaca;
|
|
35
|
+
--cyan:#22d3ee;--cyan-soft:rgba(34,211,238,.10);
|
|
36
|
+
}
|
|
37
|
+
/* Light — app.css's own [data-theme="light"] ramp, re-expressed here because a standalone page does not
|
|
38
|
+
load app.css. Reuses the values #726's design review measured rather than re-deriving them. */
|
|
39
|
+
[data-theme="light"]{
|
|
40
|
+
color-scheme:light;
|
|
41
|
+
--bg:#fff;--panel:#f1f5f9;--line:#cbd5e1;--text:#0f172a;--mut:#475569;--brand:#2563eb;
|
|
42
|
+
--btn:#e2e8f0;--btn-hover:#cbd5e1;--ctrl-border:#94a3b8;
|
|
43
|
+
--scroll:#cbd5e1;--scroll-hover:#94a3b8;
|
|
44
|
+
--shadow-tip:0 8px 22px rgba(15,23,42,.14);
|
|
45
|
+
--float-border:#475569;--float-shadow:0 8px 24px rgba(15,23,42,.18);
|
|
46
|
+
--warn:#b45309;--warn-soft:#b45309;
|
|
47
|
+
--err:#b91c1c;--err-bg:#fee2e2;--err-border:#ef4444;--err-ink:#b91c1c;
|
|
48
|
+
--cyan:#155e75;--cyan-soft:rgba(21,94,117,.10);
|
|
49
|
+
}
|
|
50
|
+
*{scrollbar-width:thin;scrollbar-color:var(--scroll) transparent}
|
|
11
51
|
*::-webkit-scrollbar{width:10px;height:10px}
|
|
12
52
|
*::-webkit-scrollbar-track{background:transparent}
|
|
13
|
-
*::-webkit-scrollbar-thumb{background
|
|
14
|
-
*::-webkit-scrollbar-thumb:hover{background
|
|
53
|
+
*::-webkit-scrollbar-thumb{background:var(--scroll);border-radius:6px;border:2px solid transparent;background-clip:content-box}
|
|
54
|
+
*::-webkit-scrollbar-thumb:hover{background:var(--scroll-hover);background-clip:content-box}
|
|
15
55
|
*::-webkit-scrollbar-corner{background:transparent}
|
|
16
56
|
*{box-sizing:border-box}
|
|
17
57
|
body{margin:0;background:var(--bg);color:var(--text);font:13px system-ui;height:100vh;display:flex;flex-direction:column;overflow:hidden}
|
|
@@ -19,15 +59,17 @@
|
|
|
19
59
|
header b{font-size:14px}
|
|
20
60
|
header .spacer{flex:1}
|
|
21
61
|
.stat{color:var(--mut)} .stat b{color:var(--text);font-variant-numeric:tabular-nums}
|
|
22
|
-
button{height:28px;padding:0 12px;background:var(--
|
|
23
|
-
button:hover{background
|
|
24
|
-
button.primary{background:var(--brand);border-color:var(--brand);color
|
|
62
|
+
button{height:28px;padding:0 12px;background:var(--btn);color:var(--text);border:1px solid var(--ctrl-border);border-radius:6px;cursor:pointer;font:inherit}
|
|
63
|
+
button:hover{background:var(--btn-hover)}
|
|
64
|
+
button.primary{background:var(--brand);border-color:var(--brand);color:var(--brand-ink)}
|
|
25
65
|
button.primary:hover{filter:brightness(1.08)}
|
|
26
66
|
#wrap{flex:1;display:flex;min-height:0}
|
|
27
67
|
#stage{flex:1;position:relative;background:var(--paper);overflow:hidden;min-width:0}
|
|
28
68
|
#svg{position:absolute;inset:0;width:100%;height:100%;touch-action:none;cursor:grab}
|
|
29
69
|
#svg.panning{cursor:grabbing}
|
|
30
70
|
#svg path{stroke-linecap:round;stroke-linejoin:round}
|
|
71
|
+
/* Stage ink, NOT chrome: this is painted on --paper, which never changes, so it must not follow the
|
|
72
|
+
theme (a light-stepped amber would silently re-tint the drawing itself). */
|
|
31
73
|
#svg .weak{stroke:#f59e0b!important} #svg text.weak{fill:#f59e0b!important}
|
|
32
74
|
#svg .hidden{display:none}
|
|
33
75
|
#state{position:absolute;inset:0;display:none;align-items:center;justify-content:center;flex-direction:column;gap:10px;background:var(--bg);color:var(--mut);text-align:center;padding:24px}
|
|
@@ -46,9 +88,9 @@
|
|
|
46
88
|
so its track is sized by this very item and a percentage width resolves to 0 — measured at 6x, the
|
|
47
89
|
checked box painted a solid brand square with no check in it. */
|
|
48
90
|
input[type=checkbox]{appearance:none;-webkit-appearance:none;width:14px;height:14px;flex:none;padding:0;
|
|
49
|
-
border:1px solid
|
|
91
|
+
border:1px solid var(--ctrl-border);border-radius:3px;background:var(--bg);cursor:pointer;display:inline-grid;place-content:center;
|
|
50
92
|
transition:border-color .12s,background-color .12s}
|
|
51
|
-
input[type=checkbox]::before{content:'';width:9px;height:9px;background
|
|
93
|
+
input[type=checkbox]::before{content:'';width:9px;height:9px;background:var(--brand-ink);transform:scale(0);transition:transform .12s ease;
|
|
52
94
|
clip-path:polygon(14% 44%,0 65%,50% 100%,100% 16%,80% 0%,43% 62%)}
|
|
53
95
|
input[type=checkbox]:checked{background:var(--brand);border-color:var(--brand)}
|
|
54
96
|
input[type=checkbox]:checked::before{transform:scale(1)}
|
|
@@ -120,37 +162,40 @@
|
|
|
120
162
|
.ck .ct{margin-left:auto;color:var(--mut);font-variant-numeric:tabular-nums;font-size:11px}
|
|
121
163
|
.muted{color:var(--mut);font-size:12px;line-height:1.5}
|
|
122
164
|
hr{border:0;border-top:1px solid var(--line);margin:0}
|
|
123
|
-
#zoombar{position:absolute;left:12px;bottom:12px;display:flex;align-items:center;gap:8px;background:var(--panel);border:1px solid var(--
|
|
165
|
+
#zoombar{position:absolute;left:12px;bottom:12px;display:flex;align-items:center;gap:8px;background:var(--panel);border:1px solid var(--float-border);border-radius:8px;padding:6px 10px;box-shadow:var(--float-shadow);z-index:5}
|
|
124
166
|
#zoombar input[type=range]{width:120px} /* SIZING only — the theming is the global input[type=range] rule above */
|
|
125
167
|
#zoombar #zpct{min-width:42px;text-align:right;color:var(--mut);font-variant-numeric:tabular-nums}
|
|
126
|
-
|
|
168
|
+
/* --ctrl-border, not --line: on light, --line is #cbd5e1 and measures 1.35:1 against the panel, so a
|
|
169
|
+
ghost button stopped reading as a button at all. Its label was still legible — this is affordance,
|
|
170
|
+
not legibility. (Review on #727.) */
|
|
171
|
+
#zoombar .ghost{height:24px;padding:0 8px;background:transparent;border:1px solid var(--ctrl-border);color:var(--mut);border-radius:5px;font-size:11px}
|
|
127
172
|
#zoombar .ghost:hover{color:var(--text);border-color:var(--brand)}
|
|
128
173
|
/* Auto-save chip — same states/colors as steel-editor's #saveStat. */
|
|
129
174
|
#saveStat{color:var(--mut);font-size:12px}
|
|
130
|
-
#saveStat.dirty{color
|
|
175
|
+
#saveStat.dirty{color:var(--warn-soft)} #saveStat.err{color:var(--err)}
|
|
131
176
|
/* Save conflict — the drawing moved under us. NOT .err: the user's document is fine, so it takes the
|
|
132
177
|
existing cyan "non-default, click to act" chip rather than the red failure colour. */
|
|
133
|
-
#saveStat.conflict{color
|
|
178
|
+
#saveStat.conflict{color:var(--cyan);border:1px solid var(--cyan);background:var(--cyan-soft);border-radius:4px;padding:1px 6px;cursor:pointer}
|
|
134
179
|
/* Weak-trace review list (inner scroll box — inherits the themed scrollbar rules above). */
|
|
135
180
|
#weakList{max-height:280px;overflow:auto;display:flex;flex-direction:column;gap:2px;margin-top:4px}
|
|
136
181
|
.wrow{display:flex;align-items:center;gap:6px;padding:4px 6px;border-radius:6px;font-size:12px}
|
|
137
182
|
.wrow:hover{background:var(--line)}
|
|
138
183
|
.wrow .lbl{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;cursor:pointer}
|
|
139
|
-
.wrow .pct{color
|
|
184
|
+
.wrow .pct{color:var(--warn);font-variant-numeric:tabular-nums;font-size:11px}
|
|
140
185
|
.wrow button{height:22px;padding:0 8px;font-size:11px;border-radius:5px}
|
|
141
|
-
.wrow .ghost{background:transparent;border:1px solid var(--
|
|
186
|
+
.wrow .ghost{background:transparent;border:1px solid var(--ctrl-border);color:var(--mut)}
|
|
142
187
|
.wrow .ghost:hover{color:var(--text);border-color:var(--brand);background:transparent}
|
|
143
|
-
.wrow .danger{background
|
|
144
|
-
.wrow .danger:hover{background
|
|
188
|
+
.wrow .danger{background:var(--err-bg);border-color:var(--err-border);color:var(--err-ink)}
|
|
189
|
+
.wrow .danger:hover{background:var(--err-border)}
|
|
145
190
|
.wrow.flash{background:var(--line)}
|
|
146
191
|
#svg .locfl{stroke:var(--brand)!important} #svg text.locfl{fill:var(--brand)!important}
|
|
147
192
|
/* Single-level Undo toast (styled modal pattern — never a native dialog). */
|
|
148
|
-
#toast{position:absolute;bottom:12px;left:50%;transform:translateX(-50%);display:none;align-items:center;gap:10px;background:var(--panel);border:1px solid var(--
|
|
193
|
+
#toast{position:absolute;bottom:12px;left:50%;transform:translateX(-50%);display:none;align-items:center;gap:10px;background:var(--panel);border:1px solid var(--float-border);border-radius:8px;padding:7px 12px;box-shadow:var(--float-shadow);z-index:6;color:var(--text)}
|
|
149
194
|
#toast.show{display:flex}
|
|
150
|
-
#toast .ghost{height:24px;padding:0 8px;background:transparent;border:1px solid var(--
|
|
195
|
+
#toast .ghost{height:24px;padding:0 8px;background:transparent;border:1px solid var(--ctrl-border);color:var(--mut);border-radius:5px;font-size:11px}
|
|
151
196
|
#toast .ghost:hover{color:var(--text);border-color:var(--brand)}
|
|
152
197
|
/* Themed tooltip — replaces native title= so no OS-default tooltip leaks the dark theme. */
|
|
153
|
-
#tooltip{position:fixed;z-index:80;background:var(--panel);border:1px solid var(--line);border-radius:6px;padding:5px 8px;font-size:11.5px;line-height:1.35;color:var(--text);pointer-events:none;max-width:260px;box-shadow:
|
|
198
|
+
#tooltip{position:fixed;z-index:80;background:var(--panel);border:1px solid var(--line);border-radius:6px;padding:5px 8px;font-size:11.5px;line-height:1.35;color:var(--text);pointer-events:none;max-width:260px;box-shadow:var(--shadow-tip);opacity:0;transition:opacity .12s}
|
|
154
199
|
#tooltip.show{opacity:1}
|
|
155
200
|
</style>
|
|
156
201
|
</head>
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@floless/app",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.130.0",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "Thin localhost host for floless.app — serves web/ and shells the aware CLI. No engine, no LLM.",
|
|
6
6
|
"bin": {
|
|
@@ -22,6 +22,7 @@
|
|
|
22
22
|
"app:stop": "node launch.mjs stop",
|
|
23
23
|
"app:restart": "node launch.mjs restart",
|
|
24
24
|
"test": "node build/run-tests.mjs",
|
|
25
|
+
"test:platform": "node build/run-tests.mjs --platform-only",
|
|
25
26
|
"build": "node build/bundle.mjs",
|
|
26
27
|
"build:exe": "node build/bundle.mjs && node build/make-sea.mjs",
|
|
27
28
|
"verify:skills": "node build/verify-shipped-skills.mjs",
|
|
@@ -43,6 +44,8 @@
|
|
|
43
44
|
"verify:boundary": "node build/verify-model-boundary.mjs",
|
|
44
45
|
"verify:change-reasons": "node build/verify-change-reasons.mjs",
|
|
45
46
|
"verify:no-agent-trailer": "node build/verify-no-agent-trailer.mjs",
|
|
47
|
+
"verify:app-publication": "node build/verify-app-publication-writers.mjs",
|
|
48
|
+
"verify:guards-wired": "node build/verify-guards-wired.mjs",
|
|
46
49
|
"verify:claim-lock": "node ../tools/routine-claim.mjs selftest",
|
|
47
50
|
"typecheck": "tsc --noEmit",
|
|
48
51
|
"prepack": "npm run build",
|