rshow 0.0.0-stage → 0.0.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/LICENSE +21 -0
- package/README.md +50 -2
- package/dist/main.js +8500 -0
- package/package.json +48 -4
- package/skills/rshow/SKILL.md +144 -0
- package/skills/rshow/reference/cli.md +263 -0
- package/skills/rshow/reference/dashboard.md +122 -0
- package/skills/rshow/reference/mockups.md +113 -0
- package/skills/rshow/reference/page-contract.md +83 -0
- package/skills/rshow/reference/pages.md +174 -0
- package/skills/rshow/reference/poster.md +137 -0
- package/skills/rshow/reference/project-page.md +132 -0
- package/skills/rshow/reference/reports.md +158 -0
- package/skills/rshow/reference/sketch.md +78 -0
- package/skills/rshow/reference/terminal.md +148 -0
- package/skills/rshow/reference/themes.md +139 -0
- package/skills/rshow-implement/SKILL.md +112 -0
- package/skills/rshow-implement/reference/compare.md +156 -0
- package/skills/rshow-implement/reference/handoff.md +125 -0
- package/skills/rshow-implement/reference/map.md +151 -0
- package/skills/rshow-slides/SKILL.md +136 -0
- package/skills/rshow-slides/reference/layouts.md +251 -0
- package/themes/default/dashboard.css +521 -0
- package/themes/default/dashboard.js +1390 -0
- package/themes/default/deck.css +586 -0
- package/themes/default/deck.js +741 -0
- package/themes/default/example/capture.ans +1 -0
- package/themes/default/example/dashboard.html +106 -0
- package/themes/default/example/demo.cast +14 -0
- package/themes/default/example/drawing.excalidraw +377 -0
- package/themes/default/example/index.html +311 -0
- package/themes/default/example/mockup-desktop.html +331 -0
- package/themes/default/example/mockup-platforms.html +742 -0
- package/themes/default/example/mockup.html +416 -0
- package/themes/default/example/page.html +153 -0
- package/themes/default/example/poster-figure.svg +58 -0
- package/themes/default/example/poster.html +181 -0
- package/themes/default/example/project.html +229 -0
- package/themes/default/example/report.html +404 -0
- package/themes/default/example/results.csv +61 -0
- package/themes/default/example/sketch.html +178 -0
- package/themes/default/example/teaser.svg +66 -0
- package/themes/default/example/terminal.html +231 -0
- package/themes/default/example/tui.html +223 -0
- package/themes/default/fonts/IBMPlexMono-Regular-Latin1.woff2 +0 -0
- package/themes/default/fonts/IBMPlexSans-Light-Latin1.woff2 +0 -0
- package/themes/default/fonts/IBMPlexSans-Regular-Latin1.woff2 +0 -0
- package/themes/default/fonts/IBMPlexSans-SemiBold-Latin1.woff2 +0 -0
- package/themes/default/fonts/OFL.txt +93 -0
- package/themes/default/fonts.css +63 -0
- package/themes/default/index.html +573 -0
- package/themes/default/mockup.css +1078 -0
- package/themes/default/mockup.js +1433 -0
- package/themes/default/mode.js +242 -0
- package/themes/default/page.css +320 -0
- package/themes/default/poster.css +480 -0
- package/themes/default/poster.js +223 -0
- package/themes/default/project.css +482 -0
- package/themes/default/project.js +116 -0
- package/themes/default/report.css +776 -0
- package/themes/default/report.js +427 -0
- package/themes/default/sketch.css +166 -0
- package/themes/default/sketch.js +681 -0
- package/themes/default/skins/adwaita.css +669 -0
- package/themes/default/skins/custom.css +596 -0
- package/themes/default/skins/egui.css +639 -0
- package/themes/default/skins/fluent.css +1093 -0
- package/themes/default/skins/fluent.js +458 -0
- package/themes/default/skins/mac.css +647 -0
- package/themes/default/skins/material.css +692 -0
- package/themes/default/skins/sketch.css +436 -0
- package/themes/default/skins/sketch.js +494 -0
- package/themes/default/skins/wire.css +561 -0
- package/themes/default/terminal.css +292 -0
- package/themes/default/terminal.js +433 -0
- package/themes/default/theme.json +149 -0
- package/themes/default/tokens.css +255 -0
- package/themes/default/tui.css +703 -0
- package/themes/default/tui.js +472 -0
- package/worker/index.js +6918 -0
- package/worker/migrations/0001_init.sql +52 -0
- package/worker/migrations/0002_blobs.sql +5 -0
- package/worker/migrations/0003_projects.sql +31 -0
- package/worker/migrations/0004_page_data_blob.sql +19 -0
|
@@ -0,0 +1,292 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* rshow theme "default": terminal viewer
|
|
3
|
+
*
|
|
4
|
+
* A capture of a terminal, in a plain window frame. Two sources, one shape:
|
|
5
|
+
*
|
|
6
|
+
* <figure class="terminal" data-mode="ansi" data-src="capture.ans"
|
|
7
|
+
* data-cols="100" data-rows="30" data-title="procview"></figure>
|
|
8
|
+
* <figure class="terminal" data-mode="cast" data-src="demo.cast"
|
|
9
|
+
* data-title="rshow publish ./deck"></figure>
|
|
10
|
+
*
|
|
11
|
+
* Link order: fonts.css, tokens.css, terminal.css, then terminal.js deferred.
|
|
12
|
+
* terminal.js draws the frame and fills the body, with xterm.js for an ANSI
|
|
13
|
+
* capture and asciinema-player for a recording, both pinned and loaded from
|
|
14
|
+
* jsDelivr only when a figure of that kind exists. Without either library the
|
|
15
|
+
* capture still reads: the escapes are stripped and the text is set in a <pre>.
|
|
16
|
+
*
|
|
17
|
+
* The frame is a terminal window and nothing else: a title bar with the title,
|
|
18
|
+
* a body with padding, IBM Plex Mono throughout. No traffic light dots, no
|
|
19
|
+
* vendor logo, no drama.
|
|
20
|
+
*
|
|
21
|
+
* The palette is a set of custom properties on the figure, which is how both
|
|
22
|
+
* libraries are told what to draw: asciinema-player reads --term-color-* from
|
|
23
|
+
* its element by name, and terminal.js hands the same values to xterm. Four
|
|
24
|
+
* palettes:
|
|
25
|
+
*
|
|
26
|
+
* default the page ground, light or dark, with a neutral sixteen that
|
|
27
|
+
* holds on either ground (every colour is mid tone: at least
|
|
28
|
+
* 3:1 on white and on #161616), so a capture reads the same in
|
|
29
|
+
* both modes and nothing has to be recorded twice
|
|
30
|
+
* dark a fixed dark ground, for a capture that is about being dark
|
|
31
|
+
* light a fixed light ground
|
|
32
|
+
* high-contrast black on white in a light page, white on black in a dark one
|
|
33
|
+
*
|
|
34
|
+
* The ANSI extremes (slot 0 and slot 7/15) follow whichever ground they sit on:
|
|
35
|
+
* a terminal's "black" is dim, and "white" is the brightest ink the ground can
|
|
36
|
+
* carry.
|
|
37
|
+
*/
|
|
38
|
+
|
|
39
|
+
.terminal {
|
|
40
|
+
/* The ground and the ink: the page's own in the default palette. */
|
|
41
|
+
--term-color-background: var(--bg);
|
|
42
|
+
--term-color-foreground: var(--fg);
|
|
43
|
+
--term-color-selection: rgba(15, 98, 254, 0.18);
|
|
44
|
+
--term-font-size: 13px;
|
|
45
|
+
|
|
46
|
+
/* Neutral sixteen, mid tone on purpose. */
|
|
47
|
+
--term-color-0: #5c6670;
|
|
48
|
+
--term-color-1: #b8312f;
|
|
49
|
+
--term-color-2: #2b7a3d;
|
|
50
|
+
--term-color-3: #8a6d1f;
|
|
51
|
+
--term-color-4: #2f6bd8;
|
|
52
|
+
--term-color-5: #8b4bc4;
|
|
53
|
+
--term-color-6: #1a7b8c;
|
|
54
|
+
--term-color-7: #8d8d8d;
|
|
55
|
+
--term-color-8: #757d85;
|
|
56
|
+
--term-color-9: #c94a44;
|
|
57
|
+
--term-color-10: #3a8f4d;
|
|
58
|
+
--term-color-11: #9c7f26;
|
|
59
|
+
--term-color-12: #4a82e0;
|
|
60
|
+
--term-color-13: #a158d8;
|
|
61
|
+
--term-color-14: #2b8e9e;
|
|
62
|
+
--term-color-15: #929292;
|
|
63
|
+
|
|
64
|
+
margin: var(--space-07) 0;
|
|
65
|
+
font-family: var(--font-mono);
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
.terminal[data-palette="dark"] {
|
|
69
|
+
--term-color-background: #161616;
|
|
70
|
+
--term-color-foreground: #f4f4f4;
|
|
71
|
+
--term-color-selection: rgba(120, 169, 255, 0.24);
|
|
72
|
+
--term-color-0: #525252;
|
|
73
|
+
--term-color-1: #fa4d56;
|
|
74
|
+
--term-color-2: #42be65;
|
|
75
|
+
--term-color-3: #f1c21b;
|
|
76
|
+
--term-color-4: #78a9ff;
|
|
77
|
+
--term-color-5: #be95ff;
|
|
78
|
+
--term-color-6: #33b1ff;
|
|
79
|
+
--term-color-7: #e0e0e0;
|
|
80
|
+
--term-color-8: #6f6f6f;
|
|
81
|
+
--term-color-9: #ff8389;
|
|
82
|
+
--term-color-10: #6fdc8c;
|
|
83
|
+
--term-color-11: #fddc69;
|
|
84
|
+
--term-color-12: #a6c8ff;
|
|
85
|
+
--term-color-13: #d4bbff;
|
|
86
|
+
--term-color-14: #5cdbd3;
|
|
87
|
+
--term-color-15: #ffffff;
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
.terminal[data-palette="light"] {
|
|
91
|
+
--term-color-background: #ffffff;
|
|
92
|
+
--term-color-foreground: #161616;
|
|
93
|
+
--term-color-selection: rgba(15, 98, 254, 0.14);
|
|
94
|
+
--term-color-0: #161616;
|
|
95
|
+
--term-color-1: #da1e28;
|
|
96
|
+
--term-color-2: #198038;
|
|
97
|
+
--term-color-3: #8a6d1f;
|
|
98
|
+
--term-color-4: #0f62fe;
|
|
99
|
+
--term-color-5: #8a3ffc;
|
|
100
|
+
--term-color-6: #0072a3;
|
|
101
|
+
--term-color-7: #424242;
|
|
102
|
+
--term-color-8: #525252;
|
|
103
|
+
--term-color-9: #a2191f;
|
|
104
|
+
--term-color-10: #0e6027;
|
|
105
|
+
--term-color-11: #684e00;
|
|
106
|
+
--term-color-12: #0043ce;
|
|
107
|
+
--term-color-13: #6929c4;
|
|
108
|
+
--term-color-14: #00539a;
|
|
109
|
+
--term-color-15: #161616;
|
|
110
|
+
}
|
|
111
|
+
|
|
112
|
+
.terminal[data-palette="high-contrast"] {
|
|
113
|
+
--term-color-background: #ffffff;
|
|
114
|
+
--term-color-foreground: #000000;
|
|
115
|
+
--term-color-selection: rgba(0, 38, 201, 0.2);
|
|
116
|
+
--term-color-0: #000000;
|
|
117
|
+
--term-color-1: #b8000f;
|
|
118
|
+
--term-color-2: #005c14;
|
|
119
|
+
--term-color-3: #5c4400;
|
|
120
|
+
--term-color-4: #0026c9;
|
|
121
|
+
--term-color-5: #6a00c9;
|
|
122
|
+
--term-color-6: #005454;
|
|
123
|
+
--term-color-7: #000000;
|
|
124
|
+
--term-color-8: #3d3d3d;
|
|
125
|
+
--term-color-9: #d1000f;
|
|
126
|
+
--term-color-10: #007a1a;
|
|
127
|
+
--term-color-11: #6b5200;
|
|
128
|
+
--term-color-12: #0033ff;
|
|
129
|
+
--term-color-13: #7d00e6;
|
|
130
|
+
--term-color-14: #006b6b;
|
|
131
|
+
--term-color-15: #000000;
|
|
132
|
+
}
|
|
133
|
+
|
|
134
|
+
:root[data-mode="dark"] .terminal[data-palette="high-contrast"] {
|
|
135
|
+
--term-color-background: #000000;
|
|
136
|
+
--term-color-foreground: #ffffff;
|
|
137
|
+
--term-color-selection: rgba(122, 167, 255, 0.3);
|
|
138
|
+
--term-color-0: #7a7a7a;
|
|
139
|
+
--term-color-1: #ff6b6b;
|
|
140
|
+
--term-color-2: #4fd97a;
|
|
141
|
+
--term-color-3: #ffd24a;
|
|
142
|
+
--term-color-4: #7aa7ff;
|
|
143
|
+
--term-color-5: #d6a6ff;
|
|
144
|
+
--term-color-6: #4fe0e0;
|
|
145
|
+
--term-color-7: #ffffff;
|
|
146
|
+
--term-color-8: #a0a0a0;
|
|
147
|
+
--term-color-9: #ff8f8f;
|
|
148
|
+
--term-color-10: #7ff0a2;
|
|
149
|
+
--term-color-11: #ffe27a;
|
|
150
|
+
--term-color-12: #a6c4ff;
|
|
151
|
+
--term-color-13: #e6c8ff;
|
|
152
|
+
--term-color-14: #8df0f0;
|
|
153
|
+
--term-color-15: #ffffff;
|
|
154
|
+
}
|
|
155
|
+
|
|
156
|
+
@media (prefers-color-scheme: dark) {
|
|
157
|
+
:root:not([data-mode="light"]) .terminal[data-palette="high-contrast"] {
|
|
158
|
+
--term-color-background: #000000;
|
|
159
|
+
--term-color-foreground: #ffffff;
|
|
160
|
+
--term-color-selection: rgba(122, 167, 255, 0.3);
|
|
161
|
+
--term-color-0: #7a7a7a;
|
|
162
|
+
--term-color-1: #ff6b6b;
|
|
163
|
+
--term-color-2: #4fd97a;
|
|
164
|
+
--term-color-3: #ffd24a;
|
|
165
|
+
--term-color-4: #7aa7ff;
|
|
166
|
+
--term-color-5: #d6a6ff;
|
|
167
|
+
--term-color-6: #4fe0e0;
|
|
168
|
+
--term-color-7: #ffffff;
|
|
169
|
+
--term-color-8: #a0a0a0;
|
|
170
|
+
--term-color-9: #ff8f8f;
|
|
171
|
+
--term-color-10: #7ff0a2;
|
|
172
|
+
--term-color-11: #ffe27a;
|
|
173
|
+
--term-color-12: #a6c4ff;
|
|
174
|
+
--term-color-13: #e6c8ff;
|
|
175
|
+
--term-color-14: #8df0f0;
|
|
176
|
+
--term-color-15: #ffffff;
|
|
177
|
+
}
|
|
178
|
+
}
|
|
179
|
+
|
|
180
|
+
/* --------------------------------------------------------------- frame --- */
|
|
181
|
+
|
|
182
|
+
.terminal-window {
|
|
183
|
+
display: flex;
|
|
184
|
+
flex-direction: column;
|
|
185
|
+
max-width: 100%;
|
|
186
|
+
border: 1px solid var(--border-subtle);
|
|
187
|
+
background: var(--term-color-background);
|
|
188
|
+
color: var(--term-color-foreground);
|
|
189
|
+
}
|
|
190
|
+
|
|
191
|
+
.terminal-bar {
|
|
192
|
+
display: flex;
|
|
193
|
+
align-items: center;
|
|
194
|
+
min-height: 40px;
|
|
195
|
+
padding: 0 var(--space-05);
|
|
196
|
+
border-bottom: 1px solid var(--border-subtle);
|
|
197
|
+
background: var(--bg);
|
|
198
|
+
}
|
|
199
|
+
|
|
200
|
+
.terminal-title {
|
|
201
|
+
margin: 0;
|
|
202
|
+
color: var(--muted);
|
|
203
|
+
font-family: var(--font-mono);
|
|
204
|
+
font-size: var(--text-2xs);
|
|
205
|
+
line-height: 1.4;
|
|
206
|
+
letter-spacing: 0;
|
|
207
|
+
}
|
|
208
|
+
|
|
209
|
+
.terminal-body {
|
|
210
|
+
padding: var(--space-05);
|
|
211
|
+
overflow-x: auto;
|
|
212
|
+
font-family: var(--font-mono);
|
|
213
|
+
font-size: var(--term-font-size);
|
|
214
|
+
line-height: 1.4;
|
|
215
|
+
}
|
|
216
|
+
|
|
217
|
+
/* A capture is a fixed grid: no wrapping, no selection jitter, no cursor.
|
|
218
|
+
xterm.css paints the ground black and the text white of its own accord, so
|
|
219
|
+
the palette is repeated here for the two elements that carry it. The sixteen
|
|
220
|
+
colours themselves still come from the terminal's own theme. */
|
|
221
|
+
.terminal .terminal-body .xterm {
|
|
222
|
+
color: var(--term-color-foreground);
|
|
223
|
+
background-color: var(--term-color-background);
|
|
224
|
+
font-family: var(--font-mono);
|
|
225
|
+
}
|
|
226
|
+
|
|
227
|
+
/* Three classes deep on purpose: xterm.css arrives after this file, and one
|
|
228
|
+
class more than it uses is what it takes to keep the theme's ground. */
|
|
229
|
+
.terminal .terminal-body .xterm-viewport {
|
|
230
|
+
overflow: hidden;
|
|
231
|
+
background-color: var(--term-color-background);
|
|
232
|
+
}
|
|
233
|
+
|
|
234
|
+
.terminal-pre {
|
|
235
|
+
margin: 0;
|
|
236
|
+
color: var(--term-color-foreground);
|
|
237
|
+
font-family: var(--font-mono);
|
|
238
|
+
font-size: var(--term-font-size);
|
|
239
|
+
line-height: 1.4;
|
|
240
|
+
white-space: pre;
|
|
241
|
+
tab-size: 8;
|
|
242
|
+
}
|
|
243
|
+
|
|
244
|
+
/* asciinema-player declares a dark palette of its own on .ap-player, which
|
|
245
|
+
would win over anything inherited from the figure. Hand it the figure's
|
|
246
|
+
palette instead, so a recording and a capture of the same program agree. */
|
|
247
|
+
.terminal .ap-player,
|
|
248
|
+
.terminal .asciinema-player {
|
|
249
|
+
--term-color-background: inherit;
|
|
250
|
+
--term-color-foreground: inherit;
|
|
251
|
+
--term-color-0: inherit;
|
|
252
|
+
--term-color-1: inherit;
|
|
253
|
+
--term-color-2: inherit;
|
|
254
|
+
--term-color-3: inherit;
|
|
255
|
+
--term-color-4: inherit;
|
|
256
|
+
--term-color-5: inherit;
|
|
257
|
+
--term-color-6: inherit;
|
|
258
|
+
--term-color-7: inherit;
|
|
259
|
+
--term-color-8: inherit;
|
|
260
|
+
--term-color-9: inherit;
|
|
261
|
+
--term-color-10: inherit;
|
|
262
|
+
--term-color-11: inherit;
|
|
263
|
+
--term-color-12: inherit;
|
|
264
|
+
--term-color-13: inherit;
|
|
265
|
+
--term-color-14: inherit;
|
|
266
|
+
--term-color-15: inherit;
|
|
267
|
+
--term-font-family: var(--font-mono);
|
|
268
|
+
width: 100%;
|
|
269
|
+
}
|
|
270
|
+
|
|
271
|
+
.terminal-fallback {
|
|
272
|
+
margin: 0;
|
|
273
|
+
color: var(--muted);
|
|
274
|
+
font-family: var(--font-mono);
|
|
275
|
+
font-size: var(--text-2xs);
|
|
276
|
+
line-height: 1.5;
|
|
277
|
+
}
|
|
278
|
+
|
|
279
|
+
.terminal-fallback a {
|
|
280
|
+
color: var(--accent);
|
|
281
|
+
}
|
|
282
|
+
|
|
283
|
+
@media print {
|
|
284
|
+
.terminal-window {
|
|
285
|
+
border-color: var(--border-strong);
|
|
286
|
+
break-inside: avoid;
|
|
287
|
+
}
|
|
288
|
+
|
|
289
|
+
.terminal-body {
|
|
290
|
+
overflow: visible;
|
|
291
|
+
}
|
|
292
|
+
}
|