anentrypoint-design 0.0.217 → 0.0.219
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/app-shell.css +4 -0
- package/dist/.nojekyll +0 -0
- package/dist/247420.css +4 -0
- package/dist/247420.js +14 -14
- package/dist/app-shell.css +594 -0
- package/dist/colors_and_type.css +197 -0
- package/dist/favicon.svg +1 -0
- package/dist/index.html +308 -0
- package/dist/preview/buttons.html +28 -0
- package/dist/preview/colors-core.html +45 -0
- package/dist/preview/colors-lore.html +28 -0
- package/dist/preview/colors-semantic.html +34 -0
- package/dist/preview/dateline.html +19 -0
- package/dist/preview/dropzone.html +30 -0
- package/dist/preview/file-grid.html +19 -0
- package/dist/preview/file-row.html +20 -0
- package/dist/preview/file-toolbar.html +40 -0
- package/dist/preview/file-viewer.html +31 -0
- package/dist/preview/header.html +24 -0
- package/dist/preview/icons-unicode.html +26 -0
- package/dist/preview/index-row.html +25 -0
- package/dist/preview/inputs.html +22 -0
- package/dist/preview/manifesto.html +52 -0
- package/dist/preview/motion-default.js +106 -0
- package/dist/preview/rules.html +16 -0
- package/dist/preview/spacing.html +18 -0
- package/dist/preview/stamps-lore.html +20 -0
- package/dist/preview/stamps.html +14 -0
- package/dist/preview/theme-ink.html +15 -0
- package/dist/preview/type-display.html +16 -0
- package/dist/preview/type-mono.html +15 -0
- package/dist/preview/type-prose.html +11 -0
- package/dist/preview/type-scale.html +20 -0
- package/dist/preview/wordmarks.html +28 -0
- package/dist/robots.txt +8 -0
- package/dist/site/content/globals/navigation.yaml +5 -0
- package/dist/site/content/globals/site.yaml +16 -0
- package/dist/site/content/pages/freddie.yaml +88 -0
- package/dist/site/content/pages/home.yaml +190 -0
- package/dist/site/theme.mjs +368 -0
- package/dist/sitemap.xml +31 -0
- package/dist/slides/deck-stage-overlay.js +63 -0
- package/dist/slides/deck-stage-state.js +81 -0
- package/dist/slides/deck-stage-style.js +117 -0
- package/dist/slides/deck-stage.js +159 -0
- package/dist/slides/index.html +276 -0
- package/dist/src/bootstrap.js +25 -0
- package/dist/src/components/chat.js +199 -0
- package/dist/src/components/community.js +167 -0
- package/dist/src/components/content.js +213 -0
- package/dist/src/components/files-modals.js +107 -0
- package/dist/src/components/files.js +118 -0
- package/dist/src/components/freddie/helpers.js +50 -0
- package/dist/src/components/freddie.js +33 -0
- package/dist/src/components/shell.js +117 -0
- package/dist/src/components/theme-toggle.js +70 -0
- package/dist/src/components.js +52 -0
- package/dist/src/debug.js +30 -0
- package/dist/src/deck-stage.js +21 -0
- package/dist/src/highlight.js +32 -0
- package/dist/src/index.js +86 -0
- package/dist/src/kits/os/about-app.js +52 -0
- package/dist/src/kits/os/app-panes.css +152 -0
- package/dist/src/kits/os/browser-app.js +58 -0
- package/dist/src/kits/os/files-app.js +44 -0
- package/dist/src/kits/os/freddie/helpers.js +59 -0
- package/dist/src/kits/os/freddie/pages-chat.js +143 -0
- package/dist/src/kits/os/freddie/pages-core.js +101 -0
- package/dist/src/kits/os/freddie/pages-os.js +51 -0
- package/dist/src/kits/os/freddie/pages-tools.js +183 -0
- package/dist/src/kits/os/freddie/routes.js +24 -0
- package/dist/src/kits/os/freddie-dashboard.css +51 -0
- package/dist/src/kits/os/freddie-dashboard.js +101 -0
- package/dist/src/kits/os/icons.js +17 -0
- package/dist/src/kits/os/index.js +5 -0
- package/dist/src/kits/os/launcher.css +61 -0
- package/dist/src/kits/os/launcher.js +79 -0
- package/dist/src/kits/os/monitor-app.js +34 -0
- package/dist/src/kits/os/shell.js +214 -0
- package/dist/src/kits/os/terminal-app.js +45 -0
- package/dist/src/kits/os/theme.css +412 -0
- package/dist/src/kits/os/validate.css +19 -0
- package/dist/src/kits/os/validator-app.js +55 -0
- package/dist/src/kits/os/wm.css +115 -0
- package/dist/src/kits/os/wm.js +111 -0
- package/dist/src/markdown.js +39 -0
- package/dist/src/motion.js +35 -0
- package/dist/src/page-html.js +196 -0
- package/dist/src/styles.js +25 -0
- package/dist/src/theme.js +99 -0
- package/dist/src/web-components/ds-chat.js +45 -0
- package/dist/ui_kits/aicat/README.md +7 -0
- package/dist/ui_kits/aicat/app.js +156 -0
- package/dist/ui_kits/aicat/index.html +26 -0
- package/dist/ui_kits/aicat/sample-square.png +0 -0
- package/dist/ui_kits/aicat/sample-svg.svg +1 -0
- package/dist/ui_kits/aicat/sample.pdf +32 -0
- package/dist/ui_kits/blog/README.md +3 -0
- package/dist/ui_kits/blog/index.html +90 -0
- package/dist/ui_kits/chat/README.md +5 -0
- package/dist/ui_kits/chat/app.js +110 -0
- package/dist/ui_kits/chat/index.html +26 -0
- package/dist/ui_kits/chat/sample-square.png +0 -0
- package/dist/ui_kits/chat/sample-svg.svg +1 -0
- package/dist/ui_kits/chat/sample.pdf +32 -0
- package/dist/ui_kits/community/app.js +134 -0
- package/dist/ui_kits/community/index.html +24 -0
- package/dist/ui_kits/dashboard/app.js +92 -0
- package/dist/ui_kits/dashboard/index.html +26 -0
- package/dist/ui_kits/docs/README.md +3 -0
- package/dist/ui_kits/docs/index.html +123 -0
- package/dist/ui_kits/error_404/app.js +56 -0
- package/dist/ui_kits/error_404/index.html +26 -0
- package/dist/ui_kits/file_browser/README.md +48 -0
- package/dist/ui_kits/file_browser/app.js +231 -0
- package/dist/ui_kits/file_browser/index.html +33 -0
- package/dist/ui_kits/gallery/app.js +121 -0
- package/dist/ui_kits/gallery/index.html +26 -0
- package/dist/ui_kits/homepage/README.md +7 -0
- package/dist/ui_kits/homepage/app.js +167 -0
- package/dist/ui_kits/homepage/index.html +46 -0
- package/dist/ui_kits/project_page/README.md +3 -0
- package/dist/ui_kits/project_page/app.js +154 -0
- package/dist/ui_kits/project_page/index.html +45 -0
- package/dist/ui_kits/search/app.js +107 -0
- package/dist/ui_kits/search/index.html +26 -0
- package/dist/ui_kits/settings/app.js +133 -0
- package/dist/ui_kits/settings/index.html +26 -0
- package/dist/ui_kits/signin/app.js +115 -0
- package/dist/ui_kits/signin/index.html +26 -0
- package/dist/ui_kits/slide_deck/app.js +174 -0
- package/dist/ui_kits/slide_deck/index.html +26 -0
- package/dist/ui_kits/system_primer/app.js +152 -0
- package/dist/ui_kits/system_primer/index.html +26 -0
- package/dist/ui_kits/terminal/app.js +150 -0
- package/dist/ui_kits/terminal/index.html +26 -0
- package/dist/vendor/webjsx/applyDiff.js +182 -0
- package/dist/vendor/webjsx/attributes.js +171 -0
- package/dist/vendor/webjsx/constants.js +4 -0
- package/dist/vendor/webjsx/createDOMElement.js +52 -0
- package/dist/vendor/webjsx/createElement.js +75 -0
- package/dist/vendor/webjsx/elementTags.js +115 -0
- package/dist/vendor/webjsx/factory.js +6 -0
- package/dist/vendor/webjsx/index.js +6 -0
- package/dist/vendor/webjsx/jsx-dev-runtime.js +2 -0
- package/dist/vendor/webjsx/jsx-runtime.js +30 -0
- package/dist/vendor/webjsx/jsx.js +2 -0
- package/dist/vendor/webjsx/package.json +39 -0
- package/dist/vendor/webjsx/renderSuspension.js +25 -0
- package/dist/vendor/webjsx/types.js +5 -0
- package/dist/vendor/webjsx/utils.js +84 -0
- package/package.json +1 -1
- package/src/components/shell.js +25 -14
- package/src/markdown.js +3 -1
- package/src/page-html.js +4 -3
|
@@ -0,0 +1,412 @@
|
|
|
1
|
+
:root {
|
|
2
|
+
--os-accent: var(--panel-accent, #3F8A4A);
|
|
3
|
+
--os-accent-2: var(--panel-accent-2, #2B6B36);
|
|
4
|
+
--os-accent-soft: var(--panel-select, #D8ECCB);
|
|
5
|
+
--os-bg-0: var(--panel-0, #F5F0E4);
|
|
6
|
+
--os-bg-1: var(--panel-1, #FBF6EB);
|
|
7
|
+
--os-bg-2: var(--panel-2, #F0E9DA);
|
|
8
|
+
--os-bg-3: var(--panel-3, #E3DAC7);
|
|
9
|
+
--os-fg: var(--panel-text, #1F1B16);
|
|
10
|
+
--os-fg-2: var(--panel-text-2, #5A5246);
|
|
11
|
+
--os-fg-3: var(--panel-text-3, #857B6C);
|
|
12
|
+
--os-red: var(--warn, #FF6B4A);
|
|
13
|
+
--os-amber: var(--sun, #FFD86B);
|
|
14
|
+
--os-green: var(--green, #3F8A4A);
|
|
15
|
+
--os-radius: var(--r-2, 10px);
|
|
16
|
+
--os-radius-sm: var(--r-1, 6px);
|
|
17
|
+
--os-bar-h: 44px;
|
|
18
|
+
--os-bar-h-mobile: 52px;
|
|
19
|
+
--os-rail-w: 64px;
|
|
20
|
+
--os-tap: 44px;
|
|
21
|
+
--os-font: var(--ff-ui, 'Nunito', sans-serif);
|
|
22
|
+
--os-display: var(--ff-display, 'Archivo Black', 'Archivo', sans-serif);
|
|
23
|
+
--os-mono: var(--ff-mono, 'JetBrains Mono', ui-monospace, monospace);
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
html, body {
|
|
27
|
+
background: var(--os-bg-0);
|
|
28
|
+
color: var(--os-fg);
|
|
29
|
+
font-family: var(--os-font);
|
|
30
|
+
-webkit-font-smoothing: antialiased;
|
|
31
|
+
text-rendering: optimizeLegibility;
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
.os-menubar, .os-taskbar {
|
|
35
|
+
background: var(--os-bg-2);
|
|
36
|
+
border: none;
|
|
37
|
+
color: var(--os-fg);
|
|
38
|
+
font: 13px var(--os-font);
|
|
39
|
+
height: var(--os-bar-h);
|
|
40
|
+
padding: 0 12px;
|
|
41
|
+
gap: 6px;
|
|
42
|
+
box-shadow: none;
|
|
43
|
+
display: flex;
|
|
44
|
+
align-items: center;
|
|
45
|
+
flex-wrap: nowrap;
|
|
46
|
+
min-width: 0;
|
|
47
|
+
}
|
|
48
|
+
.os-menubar > *, .os-taskbar > * { flex-shrink: 0; }
|
|
49
|
+
.os-menubar .os-spacer { flex: 1 1 auto; min-width: 0; }
|
|
50
|
+
.os-menubar .os-tray { margin-left: auto; }
|
|
51
|
+
|
|
52
|
+
.os-brand {
|
|
53
|
+
color: var(--os-fg);
|
|
54
|
+
font-family: var(--os-display);
|
|
55
|
+
font-weight: 700;
|
|
56
|
+
letter-spacing: -0.01em;
|
|
57
|
+
font-size: 15px;
|
|
58
|
+
margin-right: 14px;
|
|
59
|
+
display: inline-flex;
|
|
60
|
+
align-items: center;
|
|
61
|
+
gap: 8px;
|
|
62
|
+
text-transform: lowercase;
|
|
63
|
+
}
|
|
64
|
+
.os-brand::before {
|
|
65
|
+
content: '';
|
|
66
|
+
display: inline-block;
|
|
67
|
+
width: 8px; height: 8px;
|
|
68
|
+
border-radius: 50%;
|
|
69
|
+
background: var(--os-accent);
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
.os-btn {
|
|
73
|
+
background: transparent;
|
|
74
|
+
color: var(--os-fg-2);
|
|
75
|
+
border: none;
|
|
76
|
+
padding: 7px 14px;
|
|
77
|
+
cursor: pointer;
|
|
78
|
+
font: inherit;
|
|
79
|
+
font-family: var(--os-font);
|
|
80
|
+
font-size: 13px;
|
|
81
|
+
border-radius: 999px;
|
|
82
|
+
transition: background 80ms ease, color 80ms ease;
|
|
83
|
+
display: inline-flex;
|
|
84
|
+
align-items: center;
|
|
85
|
+
gap: 6px;
|
|
86
|
+
outline: none;
|
|
87
|
+
text-transform: lowercase;
|
|
88
|
+
}
|
|
89
|
+
.os-btn:hover { background: var(--panel-hover, var(--os-bg-2)); color: var(--os-fg); }
|
|
90
|
+
.os-btn.active, .os-btn[aria-pressed="true"] { background: var(--panel-select, var(--os-accent-soft)); color: var(--os-fg); }
|
|
91
|
+
.os-btn:focus-visible { background: var(--panel-hover, var(--os-bg-2)); }
|
|
92
|
+
.os-btn .ic { color: var(--os-accent); display: inline-flex; width: 16px; height: 16px; }
|
|
93
|
+
.os-btn .ic svg { width: 16px; height: 16px; display: block; fill: none; stroke: currentColor; }
|
|
94
|
+
|
|
95
|
+
.os-menu {
|
|
96
|
+
position: absolute;
|
|
97
|
+
background: var(--os-bg-1);
|
|
98
|
+
border: none;
|
|
99
|
+
border-radius: var(--r-3, 18px);
|
|
100
|
+
padding: 8px;
|
|
101
|
+
min-width: 220px;
|
|
102
|
+
top: calc(var(--os-bar-h) + 4px);
|
|
103
|
+
left: 8px;
|
|
104
|
+
z-index: 9500;
|
|
105
|
+
display: none;
|
|
106
|
+
flex-direction: column;
|
|
107
|
+
gap: 2px;
|
|
108
|
+
pointer-events: auto;
|
|
109
|
+
}
|
|
110
|
+
.os-menu.open { display: flex; }
|
|
111
|
+
.os-menu .os-btn {
|
|
112
|
+
width: 100%;
|
|
113
|
+
text-align: left;
|
|
114
|
+
border-radius: var(--os-radius-sm);
|
|
115
|
+
padding: 8px 10px;
|
|
116
|
+
color: var(--os-fg);
|
|
117
|
+
justify-content: flex-start;
|
|
118
|
+
}
|
|
119
|
+
.os-menu .os-btn:hover { background: var(--panel-hover, var(--os-bg-2)); color: var(--os-fg); }
|
|
120
|
+
|
|
121
|
+
.os-clock {
|
|
122
|
+
color: var(--os-fg-2);
|
|
123
|
+
font-variant-numeric: tabular-nums;
|
|
124
|
+
font-family: var(--os-mono);
|
|
125
|
+
padding: 0 10px;
|
|
126
|
+
font-size: 12px;
|
|
127
|
+
}
|
|
128
|
+
|
|
129
|
+
.os-task {
|
|
130
|
+
border: none;
|
|
131
|
+
background: var(--os-bg-1);
|
|
132
|
+
color: var(--os-fg-2);
|
|
133
|
+
border-radius: 999px;
|
|
134
|
+
padding: 6px 14px;
|
|
135
|
+
font-size: 12px;
|
|
136
|
+
font-family: var(--os-font);
|
|
137
|
+
transition: background 80ms ease, color 80ms ease, box-shadow 80ms ease;
|
|
138
|
+
max-width: 200px;
|
|
139
|
+
cursor: pointer;
|
|
140
|
+
outline: none;
|
|
141
|
+
white-space: nowrap;
|
|
142
|
+
overflow: hidden;
|
|
143
|
+
text-overflow: ellipsis;
|
|
144
|
+
text-transform: lowercase;
|
|
145
|
+
}
|
|
146
|
+
.os-task:hover { background: var(--panel-hover, var(--os-bg-2)); color: var(--os-fg); }
|
|
147
|
+
.os-task.focused {
|
|
148
|
+
background: var(--panel-select, var(--os-accent-soft));
|
|
149
|
+
color: var(--os-fg);
|
|
150
|
+
font-weight: 600;
|
|
151
|
+
box-shadow: inset 4px 0 0 var(--os-accent);
|
|
152
|
+
}
|
|
153
|
+
|
|
154
|
+
.wm-win {
|
|
155
|
+
background: var(--os-bg-1) !important;
|
|
156
|
+
border: none !important;
|
|
157
|
+
border-radius: var(--r-3, 18px) !important;
|
|
158
|
+
box-shadow: none !important;
|
|
159
|
+
overflow: hidden;
|
|
160
|
+
}
|
|
161
|
+
.wm-win.wm-focused {
|
|
162
|
+
border: none !important;
|
|
163
|
+
box-shadow: inset 4px 0 0 var(--os-accent) !important;
|
|
164
|
+
}
|
|
165
|
+
|
|
166
|
+
.wm-bar {
|
|
167
|
+
background: var(--os-bg-2) !important;
|
|
168
|
+
border: none !important;
|
|
169
|
+
padding: 8px 12px !important;
|
|
170
|
+
gap: 10px !important;
|
|
171
|
+
}
|
|
172
|
+
.wm-title {
|
|
173
|
+
font: 13px var(--os-font) !important;
|
|
174
|
+
color: var(--os-fg-2) !important;
|
|
175
|
+
letter-spacing: 0.005em;
|
|
176
|
+
text-align: center;
|
|
177
|
+
font-weight: 600;
|
|
178
|
+
text-transform: lowercase;
|
|
179
|
+
}
|
|
180
|
+
.wm-btns { gap: 6px !important; order: -1; }
|
|
181
|
+
.wm-btn {
|
|
182
|
+
width: 22px !important;
|
|
183
|
+
height: 22px !important;
|
|
184
|
+
border-radius: var(--r-1, 6px) !important;
|
|
185
|
+
border: none !important;
|
|
186
|
+
background: var(--os-bg-3) !important;
|
|
187
|
+
color: var(--os-fg-2) !important;
|
|
188
|
+
padding: 0 !important;
|
|
189
|
+
cursor: pointer;
|
|
190
|
+
font: 600 12px var(--os-mono) !important;
|
|
191
|
+
line-height: 1 !important;
|
|
192
|
+
display: inline-flex !important;
|
|
193
|
+
align-items: center;
|
|
194
|
+
justify-content: center;
|
|
195
|
+
transition: background 100ms ease, color 100ms ease;
|
|
196
|
+
}
|
|
197
|
+
.wm-btn:hover { background: var(--panel-hover, var(--os-bg-2)) !important; color: var(--os-fg) !important; }
|
|
198
|
+
|
|
199
|
+
.wm-resize {
|
|
200
|
+
background: transparent !important;
|
|
201
|
+
width: 14px !important;
|
|
202
|
+
height: 14px !important;
|
|
203
|
+
color: var(--os-fg-3);
|
|
204
|
+
opacity: 0.4;
|
|
205
|
+
font: 10px var(--os-mono);
|
|
206
|
+
display: flex;
|
|
207
|
+
align-items: flex-end;
|
|
208
|
+
justify-content: flex-end;
|
|
209
|
+
line-height: 1;
|
|
210
|
+
}
|
|
211
|
+
.wm-resize::after { content: '\25E2'; }
|
|
212
|
+
.wm-body { background: var(--os-bg-1) !important; }
|
|
213
|
+
|
|
214
|
+
.os-side-rail {
|
|
215
|
+
position: fixed;
|
|
216
|
+
left: 0; top: 0; bottom: 0;
|
|
217
|
+
width: var(--os-rail-w);
|
|
218
|
+
background: var(--os-bg-2);
|
|
219
|
+
border: none;
|
|
220
|
+
display: none;
|
|
221
|
+
flex-direction: column;
|
|
222
|
+
align-items: center;
|
|
223
|
+
padding: 12px 0;
|
|
224
|
+
gap: 6px;
|
|
225
|
+
z-index: 9100;
|
|
226
|
+
pointer-events: auto;
|
|
227
|
+
}
|
|
228
|
+
.os-rail-btn {
|
|
229
|
+
width: 48px; height: 48px;
|
|
230
|
+
border-radius: var(--os-radius-sm);
|
|
231
|
+
background: transparent;
|
|
232
|
+
border: none;
|
|
233
|
+
color: var(--os-fg);
|
|
234
|
+
cursor: pointer;
|
|
235
|
+
display: flex; align-items: center; justify-content: center;
|
|
236
|
+
transition: background 100ms ease;
|
|
237
|
+
padding: 0;
|
|
238
|
+
outline: none;
|
|
239
|
+
}
|
|
240
|
+
.os-rail-btn:hover { background: var(--panel-hover, var(--os-bg-1)); }
|
|
241
|
+
.os-rail-btn:active { background: var(--panel-select, var(--os-accent-soft)); }
|
|
242
|
+
.os-rail-btn .ic { color: var(--os-accent); display: inline-flex; }
|
|
243
|
+
.os-rail-btn .ic svg { width: 22px; height: 22px; fill: none; stroke: currentColor; }
|
|
244
|
+
|
|
245
|
+
.os-drawer {
|
|
246
|
+
position: fixed;
|
|
247
|
+
inset: 0;
|
|
248
|
+
background: var(--os-bg-0);
|
|
249
|
+
z-index: 9700;
|
|
250
|
+
pointer-events: auto;
|
|
251
|
+
display: none;
|
|
252
|
+
flex-direction: column;
|
|
253
|
+
opacity: 0;
|
|
254
|
+
transform: translateY(8px);
|
|
255
|
+
transition: opacity 180ms ease, transform 180ms ease;
|
|
256
|
+
padding-top: env(safe-area-inset-top, 0);
|
|
257
|
+
padding-bottom: env(safe-area-inset-bottom, 0);
|
|
258
|
+
}
|
|
259
|
+
.os-drawer.open { display: flex; opacity: 1; transform: translateY(0); }
|
|
260
|
+
.os-drawer-head {
|
|
261
|
+
display: flex; align-items: center; justify-content: space-between;
|
|
262
|
+
padding: 12px 16px;
|
|
263
|
+
border: none;
|
|
264
|
+
height: 56px;
|
|
265
|
+
box-sizing: border-box;
|
|
266
|
+
background: var(--os-bg-2);
|
|
267
|
+
}
|
|
268
|
+
.os-drawer-title { color: var(--os-fg); font-family: var(--os-display); font-size: 22px; font-weight: 700; letter-spacing: -0.01em; text-transform: lowercase; }
|
|
269
|
+
.os-drawer-close {
|
|
270
|
+
width: 44px; height: 44px;
|
|
271
|
+
border: none; background: transparent;
|
|
272
|
+
color: var(--os-fg-2);
|
|
273
|
+
cursor: pointer;
|
|
274
|
+
display: flex; align-items: center; justify-content: center;
|
|
275
|
+
border-radius: var(--os-radius-sm);
|
|
276
|
+
outline: none;
|
|
277
|
+
}
|
|
278
|
+
.os-drawer-close:hover { background: var(--panel-hover, var(--os-bg-2)); color: var(--os-fg); }
|
|
279
|
+
.os-drawer-close .ic svg { width: 22px; height: 22px; fill: none; stroke: currentColor; }
|
|
280
|
+
.os-drawer-grid {
|
|
281
|
+
display: grid;
|
|
282
|
+
grid-template-columns: repeat(3, 1fr);
|
|
283
|
+
gap: 12px;
|
|
284
|
+
padding: 16px;
|
|
285
|
+
overflow-y: auto;
|
|
286
|
+
flex: 1;
|
|
287
|
+
align-content: start;
|
|
288
|
+
}
|
|
289
|
+
.os-drawer-tile {
|
|
290
|
+
display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px;
|
|
291
|
+
padding: 18px 8px;
|
|
292
|
+
background: var(--os-bg-1);
|
|
293
|
+
border: none;
|
|
294
|
+
color: var(--os-fg);
|
|
295
|
+
font: 13px var(--os-font);
|
|
296
|
+
min-height: 100px;
|
|
297
|
+
cursor: pointer;
|
|
298
|
+
transition: background 80ms ease;
|
|
299
|
+
outline: none;
|
|
300
|
+
border-radius: var(--r-3, 18px);
|
|
301
|
+
text-transform: lowercase;
|
|
302
|
+
}
|
|
303
|
+
.os-drawer-tile:hover { background: var(--panel-hover, var(--os-bg-2)); }
|
|
304
|
+
.os-drawer-tile:active, .os-drawer-tile.active { background: var(--panel-select, var(--os-accent-soft)); }
|
|
305
|
+
.os-drawer-tile .ic { color: var(--os-accent); display: inline-flex; }
|
|
306
|
+
.os-drawer-tile .ic svg { width: 32px; height: 32px; fill: none; stroke: currentColor; }
|
|
307
|
+
.os-drawer-tile .lbl { color: var(--os-fg); font-weight: 600; }
|
|
308
|
+
|
|
309
|
+
.os-spacer { flex: 1 1 auto; }
|
|
310
|
+
.os-tray { display: flex; align-items: center; gap: 6px; }
|
|
311
|
+
.os-instances { display: flex; gap: 4px; margin-left: 8px; max-width: 280px; overflow-x: auto; overflow-y: hidden; scrollbar-width: thin; padding: 0 4px; }
|
|
312
|
+
.os-instances::-webkit-scrollbar { height: 4px; }
|
|
313
|
+
.os-instances .os-btn { flex: 0 0 auto; min-width: 36px; padding: 2px 8px; font-family: var(--os-mono); font-size: 11px; }
|
|
314
|
+
.os-instances .os-btn.active { background: var(--panel-select, var(--os-accent-soft)); color: var(--os-fg); border-color: var(--panel-accent, var(--os-accent)); box-shadow: inset 0 0 0 1px var(--panel-accent, var(--os-accent)); }
|
|
315
|
+
.os-menubar [data-role="home"] { display: none; }
|
|
316
|
+
.os-root { position: fixed; inset: 0; display: flex; flex-direction: column; pointer-events: none; z-index: 8000; }
|
|
317
|
+
.os-menubar, .os-taskbar { pointer-events: auto; flex: 0 0 auto; }
|
|
318
|
+
.os-taskbar { margin-top: auto; }
|
|
319
|
+
.wm-root { top: var(--os-bar-h) !important; bottom: var(--os-bar-h) !important; inset: var(--os-bar-h) 0 var(--os-bar-h) 0 !important; }
|
|
320
|
+
|
|
321
|
+
.app-pane { padding: 16px 18px; font: 14px var(--os-font); color: var(--os-fg); line-height: 1.55; overflow: auto; height: 100%; box-sizing: border-box; background: var(--os-bg-1); }
|
|
322
|
+
.app-pane h2 { margin: 0 0 10px 0; color: var(--os-fg); font-family: var(--os-display); font-size: 22px; font-weight: 700; letter-spacing: -0.01em; line-height: 1.15; }
|
|
323
|
+
.app-pane p { margin: 0 0 10px 0; color: var(--os-fg-2); }
|
|
324
|
+
.app-pane ul { padding-left: 18px; margin: 6px 0 12px; color: var(--os-fg-2); }
|
|
325
|
+
.app-pane li { padding: 2px 0; }
|
|
326
|
+
.app-pane code { font: 12px var(--os-mono); background: var(--os-bg-2); padding: 1px 6px; border-radius: var(--r-1, 6px); color: var(--os-fg); }
|
|
327
|
+
.app-pane a { color: var(--os-accent); text-decoration: none; }
|
|
328
|
+
.app-pane a:hover { text-decoration: underline; text-underline-offset: 2px; }
|
|
329
|
+
.app-pane .meta { color: var(--os-fg-3); font-size: 12px; }
|
|
330
|
+
.app-pane.mono { font: 12.5px var(--os-mono); padding: 12px; background: var(--os-bg-1); }
|
|
331
|
+
.app-pane.mono .row { padding: 5px 8px; cursor: pointer; border-radius: var(--r-1, 6px); }
|
|
332
|
+
.app-pane.mono .row:hover { background: var(--panel-hover, var(--os-bg-2)); }
|
|
333
|
+
.app-pane.mono .head { color: var(--os-accent); margin-bottom: 8px; padding-bottom: 6px; font-weight: 600; letter-spacing: 0.02em; }
|
|
334
|
+
.app-pane.mono pre { background: var(--os-bg-2); padding: 10px 12px; margin: 8px 0 0 0; max-height: 220px; overflow: auto; white-space: pre-wrap; font: 11.5px var(--os-mono); border-radius: var(--r-1, 6px); color: var(--os-fg); border: none; }
|
|
335
|
+
.app-shell-pane { margin: 0; padding: 8px; font: 12px var(--os-mono); color: var(--os-fg); background: var(--os-bg-0); height: 100%; overflow: auto; white-space: pre-wrap; box-sizing: border-box; }
|
|
336
|
+
.app-canvas { width: 100%; height: 100%; background: var(--os-bg-0); display: block; cursor: default; }
|
|
337
|
+
.app-canvas.x-display { background: #0b0d10; }
|
|
338
|
+
.app-frame { width: 100%; height: 100%; border: 0; background: var(--os-bg-0); }
|
|
339
|
+
.app-iframe { width: 100%; height: 100%; border: 0; display: block; }
|
|
340
|
+
.app-iframe.web { background: #ffffff; }
|
|
341
|
+
.app-text-cursor { animation: app-cursor-blink 0.5s step-end infinite; }
|
|
342
|
+
@keyframes app-cursor-blink { 50% { opacity: 0; } }
|
|
343
|
+
@media (max-width: 1023px) and (min-width: 768px) {
|
|
344
|
+
.os-side-rail { display: flex; }
|
|
345
|
+
.wm-root { left: var(--os-rail-w) !important; }
|
|
346
|
+
.os-menubar { padding-left: calc(var(--os-rail-w) + 8px); }
|
|
347
|
+
.os-taskbar { padding-left: calc(var(--os-rail-w) + 8px); }
|
|
348
|
+
.os-menubar .os-instances { display: flex; }
|
|
349
|
+
.os-menu { left: calc(var(--os-rail-w) + 8px); }
|
|
350
|
+
}
|
|
351
|
+
|
|
352
|
+
@media (max-width: 767px) {
|
|
353
|
+
:root { --os-bar-h: var(--os-bar-h-mobile); }
|
|
354
|
+
body { overscroll-behavior: none; }
|
|
355
|
+
.os-menubar [data-role="home"] { display: inline-flex; min-width: var(--os-tap); min-height: var(--os-tap); padding: 0 12px; }
|
|
356
|
+
.os-menubar [data-role="home"] .ic svg { width: 22px; height: 22px; }
|
|
357
|
+
.os-menubar { font-size: 14px; padding: 0 8px; padding-top: env(safe-area-inset-top, 0); height: calc(var(--os-bar-h) + env(safe-area-inset-top, 0)); }
|
|
358
|
+
.os-menubar [data-role="apps"] { display: none; }
|
|
359
|
+
.os-menubar .os-brand { font-size: 13px; margin-right: 6px; }
|
|
360
|
+
.os-menubar [data-role="add"] { display: none; }
|
|
361
|
+
.os-menubar .os-instances { display: none; }
|
|
362
|
+
.os-clock { display: none; }
|
|
363
|
+
.os-taskbar {
|
|
364
|
+
padding: 6px 8px calc(6px + env(safe-area-inset-bottom, 0));
|
|
365
|
+
gap: 6px;
|
|
366
|
+
overflow-x: auto;
|
|
367
|
+
overflow-y: hidden;
|
|
368
|
+
flex-wrap: nowrap;
|
|
369
|
+
scroll-snap-type: x proximity;
|
|
370
|
+
height: calc(var(--os-bar-h) + env(safe-area-inset-bottom, 0));
|
|
371
|
+
align-items: center;
|
|
372
|
+
}
|
|
373
|
+
.os-taskbar::-webkit-scrollbar { display: none; }
|
|
374
|
+
.os-task {
|
|
375
|
+
flex: 0 0 auto;
|
|
376
|
+
min-width: 120px;
|
|
377
|
+
min-height: 44px;
|
|
378
|
+
max-width: none;
|
|
379
|
+
padding: 10px 14px;
|
|
380
|
+
scroll-snap-align: start;
|
|
381
|
+
font-size: 13px;
|
|
382
|
+
}
|
|
383
|
+
.os-task.focused { background: var(--panel-select, var(--os-accent-soft)); box-shadow: inset 4px 0 0 var(--os-accent); }
|
|
384
|
+
.os-side-rail { display: none !important; }
|
|
385
|
+
.os-menu { left: 8px; right: 8px; min-width: 0; top: calc(var(--os-bar-h) + env(safe-area-inset-top, 0) + 4px); }
|
|
386
|
+
.wm-root {
|
|
387
|
+
top: calc(var(--os-bar-h) + env(safe-area-inset-top, 0)) !important;
|
|
388
|
+
bottom: calc(var(--os-bar-h) + env(safe-area-inset-bottom, 0)) !important;
|
|
389
|
+
inset: calc(var(--os-bar-h) + env(safe-area-inset-top, 0)) 0 calc(var(--os-bar-h) + env(safe-area-inset-bottom, 0)) 0 !important;
|
|
390
|
+
}
|
|
391
|
+
.wm-win {
|
|
392
|
+
position: absolute !important;
|
|
393
|
+
left: 0 !important; top: 0 !important;
|
|
394
|
+
width: 100% !important; height: 100% !important;
|
|
395
|
+
border: none !important;
|
|
396
|
+
border-radius: 0 !important;
|
|
397
|
+
box-shadow: none !important;
|
|
398
|
+
}
|
|
399
|
+
.wm-bar {
|
|
400
|
+
padding: 6px 10px !important;
|
|
401
|
+
height: 36px !important;
|
|
402
|
+
gap: 6px !important;
|
|
403
|
+
cursor: default !important;
|
|
404
|
+
touch-action: pan-y !important;
|
|
405
|
+
pointer-events: none;
|
|
406
|
+
}
|
|
407
|
+
.wm-bar .wm-title { pointer-events: auto; font-size: 13px !important; }
|
|
408
|
+
.wm-bar .wm-btns { pointer-events: auto; }
|
|
409
|
+
.wm-btns .wm-btn:nth-child(1), .wm-btns .wm-btn:nth-child(2) { display: none !important; }
|
|
410
|
+
.wm-btns .wm-btn:nth-child(3) { width: 44px !important; height: 44px !important; border-radius: var(--r-1, 6px) !important; background: var(--os-bg-3) !important; color: var(--os-fg) !important; }
|
|
411
|
+
.wm-resize { display: none !important; }
|
|
412
|
+
}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
body { margin: 0; padding: 24px; font-family: var(--os-font); background: var(--os-bg-0); color: var(--os-fg); }
|
|
2
|
+
h1 { margin: 0 0 8px 0; font-size: 22px; font-weight: 600; }
|
|
3
|
+
h3 { margin: 18px 0 6px 0; color: var(--os-fg-2); font-size: 13px; font-weight: 600; }
|
|
4
|
+
.sub { color: var(--os-fg-2); margin-bottom: 20px; }
|
|
5
|
+
table { border-collapse: collapse; width: 100%; max-width: 760px; }
|
|
6
|
+
td { padding: 6px 12px; border-bottom: 1px solid var(--os-bg-3); }
|
|
7
|
+
td.k { width: 280px; color: var(--os-fg-2); }
|
|
8
|
+
td.v { font-weight: 600; }
|
|
9
|
+
td.v.pass { color: var(--os-accent); }
|
|
10
|
+
td.v.fail { color: var(--os-red); }
|
|
11
|
+
td.v.pending { color: var(--os-amber); }
|
|
12
|
+
.all { margin-top: 16px; padding: 12px; background: var(--os-bg-1); max-width: 760px; border-radius: var(--os-radius-sm); }
|
|
13
|
+
.all.green { color: var(--os-accent); }
|
|
14
|
+
.all.red { color: var(--os-red); }
|
|
15
|
+
.err { color: var(--os-red); white-space: pre-wrap; margin-top: 12px; }
|
|
16
|
+
a { color: var(--os-accent); text-decoration: none; }
|
|
17
|
+
a:hover { color: var(--os-accent-2); }
|
|
18
|
+
iframe.osframe { position: absolute; left: -9999px; top: 0; width: 1280px; height: 900px; border: 0; }
|
|
19
|
+
iframe.osframe-phone { position: absolute; left: -9999px; top: 0; width: 414px; height: 720px; border: 0; }
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
// Validator-app paint surface — status banner + counts + iframe slot. Consumer mounts iframe.
|
|
2
|
+
// renderValidator({src, results, callbacks: {onRerun}}) -> {node, slot, setResults, dispose}.
|
|
3
|
+
// results shape: {allGreen, passed, total, ms} — banner updates colors + counts.
|
|
4
|
+
|
|
5
|
+
export function renderValidator(opts = {}) {
|
|
6
|
+
const { src = '', results = null, callbacks = {} } = opts;
|
|
7
|
+
const node = document.createElement('div');
|
|
8
|
+
node.className = 'app-pane validator-app';
|
|
9
|
+
node.dataset.component = 'validator-app';
|
|
10
|
+
|
|
11
|
+
const head = document.createElement('div');
|
|
12
|
+
head.className = 'validator-app-head';
|
|
13
|
+
const banner = document.createElement('span');
|
|
14
|
+
banner.className = 'validator-app-banner';
|
|
15
|
+
banner.dataset.state = 'pending';
|
|
16
|
+
banner.textContent = 'pending';
|
|
17
|
+
const counts = document.createElement('span');
|
|
18
|
+
counts.className = 'validator-app-counts';
|
|
19
|
+
counts.textContent = '0 / 0';
|
|
20
|
+
const rerun = document.createElement('button');
|
|
21
|
+
rerun.type = 'button';
|
|
22
|
+
rerun.className = 'validator-app-rerun';
|
|
23
|
+
rerun.textContent = 'rerun';
|
|
24
|
+
rerun.addEventListener('click', () => callbacks.onRerun && callbacks.onRerun());
|
|
25
|
+
head.append(banner, counts, rerun);
|
|
26
|
+
|
|
27
|
+
const slot = document.createElement('div');
|
|
28
|
+
slot.className = 'validator-app-slot';
|
|
29
|
+
slot.dataset.role = 'validator-mount';
|
|
30
|
+
|
|
31
|
+
if (src) {
|
|
32
|
+
const f = document.createElement('iframe');
|
|
33
|
+
f.className = 'validator-app-frame';
|
|
34
|
+
f.src = src;
|
|
35
|
+
slot.appendChild(f);
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
node.append(head, slot);
|
|
39
|
+
|
|
40
|
+
function setResults(r) {
|
|
41
|
+
if (!r) { banner.dataset.state = 'pending'; banner.textContent = 'pending'; counts.textContent = '0 / 0'; return; }
|
|
42
|
+
const state = r.allGreen ? 'pass' : 'fail';
|
|
43
|
+
banner.dataset.state = state;
|
|
44
|
+
banner.textContent = state;
|
|
45
|
+
counts.textContent = (r.passed ?? 0) + ' / ' + (r.total ?? 0) + (r.ms != null ? ' · ' + r.ms + 'ms' : '');
|
|
46
|
+
}
|
|
47
|
+
if (results) setResults(results);
|
|
48
|
+
|
|
49
|
+
return {
|
|
50
|
+
node,
|
|
51
|
+
get slot() { return slot; },
|
|
52
|
+
setResults,
|
|
53
|
+
dispose() {},
|
|
54
|
+
};
|
|
55
|
+
}
|
|
@@ -0,0 +1,115 @@
|
|
|
1
|
+
/* ============================================================
|
|
2
|
+
Window Manager visuals — paired with createWM() behavior
|
|
3
|
+
Tokens: --os-* (defined by desktop/theme.css)
|
|
4
|
+
Bible: tonal surfaces, no borders for chrome, inset rail for focus.
|
|
5
|
+
============================================================ */
|
|
6
|
+
|
|
7
|
+
.wm-root {
|
|
8
|
+
position: fixed;
|
|
9
|
+
inset: 0;
|
|
10
|
+
pointer-events: none;
|
|
11
|
+
z-index: 9000;
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
.wm-win {
|
|
15
|
+
position: absolute;
|
|
16
|
+
min-width: 200px;
|
|
17
|
+
min-height: 120px;
|
|
18
|
+
background: var(--os-bg-1);
|
|
19
|
+
color: var(--os-fg);
|
|
20
|
+
border: none;
|
|
21
|
+
border-radius: var(--r-3, 18px);
|
|
22
|
+
display: flex;
|
|
23
|
+
flex-direction: column;
|
|
24
|
+
pointer-events: auto;
|
|
25
|
+
overflow: hidden;
|
|
26
|
+
}
|
|
27
|
+
.wm-win.wm-focused { box-shadow: inset 4px 0 0 var(--os-accent); }
|
|
28
|
+
|
|
29
|
+
.wm-bar {
|
|
30
|
+
display: flex;
|
|
31
|
+
align-items: center;
|
|
32
|
+
padding: 6px 10px;
|
|
33
|
+
background: var(--os-bg-2);
|
|
34
|
+
cursor: move;
|
|
35
|
+
user-select: none;
|
|
36
|
+
gap: 8px;
|
|
37
|
+
touch-action: none;
|
|
38
|
+
border: none;
|
|
39
|
+
}
|
|
40
|
+
.wm-title {
|
|
41
|
+
flex: 1;
|
|
42
|
+
font: 12px var(--os-font);
|
|
43
|
+
white-space: nowrap;
|
|
44
|
+
overflow: hidden;
|
|
45
|
+
text-overflow: ellipsis;
|
|
46
|
+
text-transform: lowercase;
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
.wm-btns { display: flex; gap: 4px; }
|
|
50
|
+
.wm-btn {
|
|
51
|
+
width: 22px;
|
|
52
|
+
height: 22px;
|
|
53
|
+
border: none;
|
|
54
|
+
background: var(--os-bg-3);
|
|
55
|
+
color: var(--os-fg-2);
|
|
56
|
+
cursor: pointer;
|
|
57
|
+
padding: 0;
|
|
58
|
+
font: 600 12px var(--os-mono);
|
|
59
|
+
line-height: 1;
|
|
60
|
+
display: inline-flex;
|
|
61
|
+
align-items: center;
|
|
62
|
+
justify-content: center;
|
|
63
|
+
border-radius: var(--r-1, 6px);
|
|
64
|
+
transition: background 100ms ease, color 100ms ease;
|
|
65
|
+
}
|
|
66
|
+
.wm-btn:hover { background: var(--panel-hover, var(--os-bg-2)); color: var(--os-fg); }
|
|
67
|
+
|
|
68
|
+
.wm-body {
|
|
69
|
+
flex: 1;
|
|
70
|
+
overflow: auto;
|
|
71
|
+
position: relative;
|
|
72
|
+
background: var(--os-bg-1);
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
.wm-resize {
|
|
76
|
+
position: absolute;
|
|
77
|
+
right: 0;
|
|
78
|
+
bottom: 0;
|
|
79
|
+
width: 14px;
|
|
80
|
+
height: 14px;
|
|
81
|
+
cursor: nwse-resize;
|
|
82
|
+
background: transparent;
|
|
83
|
+
color: var(--os-fg-3);
|
|
84
|
+
opacity: 0.4;
|
|
85
|
+
font: 10px var(--os-mono);
|
|
86
|
+
line-height: 1;
|
|
87
|
+
display: flex;
|
|
88
|
+
align-items: flex-end;
|
|
89
|
+
justify-content: flex-end;
|
|
90
|
+
touch-action: none;
|
|
91
|
+
}
|
|
92
|
+
.wm-resize::after { content: '\25E2'; }
|
|
93
|
+
|
|
94
|
+
.wm-win.wm-min .wm-body,
|
|
95
|
+
.wm-win.wm-min .wm-resize { display: none; }
|
|
96
|
+
|
|
97
|
+
.wm-win.wm-max {
|
|
98
|
+
left: 0 !important;
|
|
99
|
+
top: 0 !important;
|
|
100
|
+
width: 100% !important;
|
|
101
|
+
height: 100% !important;
|
|
102
|
+
border-radius: 0;
|
|
103
|
+
}
|
|
104
|
+
|
|
105
|
+
@media (max-width: 767px) {
|
|
106
|
+
.wm-win {
|
|
107
|
+
left: 0 !important;
|
|
108
|
+
top: 0 !important;
|
|
109
|
+
width: 100% !important;
|
|
110
|
+
height: 100% !important;
|
|
111
|
+
border-radius: 0;
|
|
112
|
+
border: none;
|
|
113
|
+
}
|
|
114
|
+
.wm-resize { display: none; }
|
|
115
|
+
}
|