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.
Files changed (84) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +50 -2
  3. package/dist/main.js +8500 -0
  4. package/package.json +48 -4
  5. package/skills/rshow/SKILL.md +144 -0
  6. package/skills/rshow/reference/cli.md +263 -0
  7. package/skills/rshow/reference/dashboard.md +122 -0
  8. package/skills/rshow/reference/mockups.md +113 -0
  9. package/skills/rshow/reference/page-contract.md +83 -0
  10. package/skills/rshow/reference/pages.md +174 -0
  11. package/skills/rshow/reference/poster.md +137 -0
  12. package/skills/rshow/reference/project-page.md +132 -0
  13. package/skills/rshow/reference/reports.md +158 -0
  14. package/skills/rshow/reference/sketch.md +78 -0
  15. package/skills/rshow/reference/terminal.md +148 -0
  16. package/skills/rshow/reference/themes.md +139 -0
  17. package/skills/rshow-implement/SKILL.md +112 -0
  18. package/skills/rshow-implement/reference/compare.md +156 -0
  19. package/skills/rshow-implement/reference/handoff.md +125 -0
  20. package/skills/rshow-implement/reference/map.md +151 -0
  21. package/skills/rshow-slides/SKILL.md +136 -0
  22. package/skills/rshow-slides/reference/layouts.md +251 -0
  23. package/themes/default/dashboard.css +521 -0
  24. package/themes/default/dashboard.js +1390 -0
  25. package/themes/default/deck.css +586 -0
  26. package/themes/default/deck.js +741 -0
  27. package/themes/default/example/capture.ans +1 -0
  28. package/themes/default/example/dashboard.html +106 -0
  29. package/themes/default/example/demo.cast +14 -0
  30. package/themes/default/example/drawing.excalidraw +377 -0
  31. package/themes/default/example/index.html +311 -0
  32. package/themes/default/example/mockup-desktop.html +331 -0
  33. package/themes/default/example/mockup-platforms.html +742 -0
  34. package/themes/default/example/mockup.html +416 -0
  35. package/themes/default/example/page.html +153 -0
  36. package/themes/default/example/poster-figure.svg +58 -0
  37. package/themes/default/example/poster.html +181 -0
  38. package/themes/default/example/project.html +229 -0
  39. package/themes/default/example/report.html +404 -0
  40. package/themes/default/example/results.csv +61 -0
  41. package/themes/default/example/sketch.html +178 -0
  42. package/themes/default/example/teaser.svg +66 -0
  43. package/themes/default/example/terminal.html +231 -0
  44. package/themes/default/example/tui.html +223 -0
  45. package/themes/default/fonts/IBMPlexMono-Regular-Latin1.woff2 +0 -0
  46. package/themes/default/fonts/IBMPlexSans-Light-Latin1.woff2 +0 -0
  47. package/themes/default/fonts/IBMPlexSans-Regular-Latin1.woff2 +0 -0
  48. package/themes/default/fonts/IBMPlexSans-SemiBold-Latin1.woff2 +0 -0
  49. package/themes/default/fonts/OFL.txt +93 -0
  50. package/themes/default/fonts.css +63 -0
  51. package/themes/default/index.html +573 -0
  52. package/themes/default/mockup.css +1078 -0
  53. package/themes/default/mockup.js +1433 -0
  54. package/themes/default/mode.js +242 -0
  55. package/themes/default/page.css +320 -0
  56. package/themes/default/poster.css +480 -0
  57. package/themes/default/poster.js +223 -0
  58. package/themes/default/project.css +482 -0
  59. package/themes/default/project.js +116 -0
  60. package/themes/default/report.css +776 -0
  61. package/themes/default/report.js +427 -0
  62. package/themes/default/sketch.css +166 -0
  63. package/themes/default/sketch.js +681 -0
  64. package/themes/default/skins/adwaita.css +669 -0
  65. package/themes/default/skins/custom.css +596 -0
  66. package/themes/default/skins/egui.css +639 -0
  67. package/themes/default/skins/fluent.css +1093 -0
  68. package/themes/default/skins/fluent.js +458 -0
  69. package/themes/default/skins/mac.css +647 -0
  70. package/themes/default/skins/material.css +692 -0
  71. package/themes/default/skins/sketch.css +436 -0
  72. package/themes/default/skins/sketch.js +494 -0
  73. package/themes/default/skins/wire.css +561 -0
  74. package/themes/default/terminal.css +292 -0
  75. package/themes/default/terminal.js +433 -0
  76. package/themes/default/theme.json +149 -0
  77. package/themes/default/tokens.css +255 -0
  78. package/themes/default/tui.css +703 -0
  79. package/themes/default/tui.js +472 -0
  80. package/worker/index.js +6918 -0
  81. package/worker/migrations/0001_init.sql +52 -0
  82. package/worker/migrations/0002_blobs.sql +5 -0
  83. package/worker/migrations/0003_projects.sql +31 -0
  84. package/worker/migrations/0004_page_data_blob.sql +19 -0
@@ -0,0 +1,66 @@
1
+ <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 800 152" width="800" height="152" role="img" aria-labelledby="teaser-title">
2
+ <title id="teaser-title">A folder is published into a version, and the version is served through two links: a newest link that follows each publish and a pinned link that holds one version.</title>
3
+ <style>
4
+ text {
5
+ font-family: "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
6
+ letter-spacing: 0;
7
+ }
8
+ .box { fill: #f4f4f4; }
9
+ .title { font-size: 17px; font-weight: 600; fill: #161616; }
10
+ .sub { font-size: 13px; font-weight: 400; fill: #525252; }
11
+ .note { font-size: 13px; font-weight: 400; fill: #525252; }
12
+ .link { stroke: #0f62fe; stroke-width: 2; fill: none; }
13
+ .head { fill: #0f62fe; }
14
+ @media (prefers-color-scheme: dark) {
15
+ .box { fill: #262626; }
16
+ .title { fill: #f4f4f4; }
17
+ .sub { fill: #c6c6c6; }
18
+ .note { fill: #c6c6c6; }
19
+ .link { stroke: #78a9ff; }
20
+ .head { fill: #78a9ff; }
21
+ }
22
+ </style>
23
+
24
+ <g>
25
+ <rect class="box" x="0" y="20" width="160" height="100" />
26
+ <rect class="box" x="196" y="20" width="160" height="100" />
27
+ <rect class="box" x="392" y="20" width="160" height="100" />
28
+ <rect class="box" x="600" y="16" width="192" height="56" />
29
+ <rect class="box" x="600" y="88" width="192" height="56" />
30
+ </g>
31
+
32
+ <g>
33
+ <text class="title" x="16" y="50">Folder</text>
34
+ <text class="sub" x="16" y="74">deck, figure,</text>
35
+ <text class="sub" x="16" y="92">notes, images</text>
36
+
37
+ <text class="title" x="212" y="50">Publish</text>
38
+ <text class="sub" x="212" y="74">hash, upload,</text>
39
+ <text class="sub" x="212" y="92">record</text>
40
+
41
+ <text class="title" x="408" y="50">Version</text>
42
+ <text class="sub" x="408" y="74">bytes that</text>
43
+ <text class="sub" x="408" y="92">never change</text>
44
+
45
+ <text class="title" x="616" y="40">Newest link</text>
46
+ <text class="sub" x="616" y="60">follows each publish</text>
47
+
48
+ <text class="title" x="616" y="112">Pinned link</text>
49
+ <text class="sub" x="616" y="132">holds one version</text>
50
+ </g>
51
+
52
+ <g class="link">
53
+ <line x1="160" y1="70" x2="188" y2="70" marker-end="url(#teaser-head)" />
54
+ <line x1="356" y1="70" x2="384" y2="70" marker-end="url(#teaser-head)" />
55
+ <line x1="552" y1="70" x2="576" y2="70" />
56
+ <line x1="576" y1="44" x2="576" y2="116" />
57
+ <line x1="576" y1="44" x2="592" y2="44" marker-end="url(#teaser-head)" />
58
+ <line x1="576" y1="116" x2="592" y2="116" marker-end="url(#teaser-head)" />
59
+ </g>
60
+
61
+ <defs>
62
+ <marker id="teaser-head" viewBox="0 0 10 10" refX="9" refY="5" markerWidth="7" markerHeight="7" orient="auto">
63
+ <path class="head" d="M0 0 L10 5 L0 10 z" />
64
+ </marker>
65
+ </defs>
66
+ </svg>
@@ -0,0 +1,231 @@
1
+ <!doctype html>
2
+ <html lang="en">
3
+ <head>
4
+ <meta charset="utf-8">
5
+ <meta name="viewport" content="width=device-width, initial-scale=1">
6
+ <meta name="color-scheme" content="light dark">
7
+ <title>Terminal captures: an ANSI screen and a recording</title>
8
+ <!--
9
+ Two terminals in one window frame: a capture of a full screen program, and a
10
+ short recording of a command. Link order: fonts.css, tokens.css, terminal.css,
11
+ mode.js in the head so the stored mode applies before the body paints, and
12
+ terminal.js deferred. A published copy points at the theme artifact instead,
13
+ one pinned version per file:
14
+
15
+ <link rel="stylesheet" href="/_themes/<name>@<n>/fonts.css">
16
+ <link rel="stylesheet" href="/_themes/<name>@<n>/tokens.css">
17
+ <link rel="stylesheet" href="/_themes/<name>@<n>/terminal.css">
18
+ <script src="/_themes/<name>@<n>/mode.js"></script>
19
+ <script defer src="/_themes/<name>@<n>/terminal.js"></script>
20
+
21
+ terminal.js loads only what a figure needs, from cdn.jsdelivr.net, at exact
22
+ versions:
23
+
24
+ https://cdn.jsdelivr.net/npm/@xterm/xterm@6.0.0/lib/xterm.js
25
+ https://cdn.jsdelivr.net/npm/@xterm/xterm@6.0.0/css/xterm.css
26
+ https://cdn.jsdelivr.net/npm/@xterm/addon-unicode11@0.9.0/lib/addon-unicode11.js
27
+ https://cdn.jsdelivr.net/npm/asciinema-player@3.17.0/dist/bundle/asciinema-player.min.js
28
+ https://cdn.jsdelivr.net/npm/asciinema-player@3.17.0/dist/bundle/asciinema-player.css
29
+
30
+ The figures say what they are and nothing else. data-palette picks a sixteen
31
+ colour set out of terminal.css: default follows the page, dark and light pin a
32
+ ground, high-contrast is black on white or white on black. The ANSI capture is
33
+ read only: no stdin, no cursor, no scrollback.
34
+
35
+ With JavaScript off or a library missing, the ANSI capture still reads: the
36
+ escapes are stripped and the screen is set as text. Either way the files are
37
+ next to the page and the links below each figure open them.
38
+
39
+ Preview from this folder with `rshow preview .` and open /terminal.html.
40
+ -->
41
+ <link rel="stylesheet" href="../fonts.css">
42
+ <link rel="stylesheet" href="../tokens.css">
43
+ <link rel="stylesheet" href="../terminal.css">
44
+ <script src="../mode.js"></script>
45
+ <script defer src="../terminal.js"></script>
46
+ <style>
47
+ body {
48
+ margin: 0;
49
+ padding: var(--space-11) var(--space-06) var(--space-13);
50
+ background: var(--bg);
51
+ color: var(--fg);
52
+ font-family: var(--font-sans);
53
+ font-size: var(--text-sm);
54
+ line-height: 1.6;
55
+ }
56
+
57
+ main {
58
+ max-width: 62ch;
59
+ margin: 0 auto;
60
+ }
61
+
62
+ h1 {
63
+ margin: 0 0 var(--space-05);
64
+ font-size: var(--text-2xl);
65
+ font-weight: 400;
66
+ line-height: 1.25;
67
+ letter-spacing: 0;
68
+ text-wrap: balance;
69
+ }
70
+
71
+ h2 {
72
+ margin: var(--space-10) 0 var(--space-04);
73
+ font-size: var(--text-lg);
74
+ font-weight: 600;
75
+ line-height: 1.25;
76
+ letter-spacing: 0;
77
+ }
78
+
79
+ p {
80
+ margin: 0 0 var(--space-05);
81
+ }
82
+
83
+ .lede {
84
+ color: var(--muted);
85
+ font-size: var(--text-base);
86
+ }
87
+
88
+ .note {
89
+ color: var(--muted);
90
+ font-size: var(--text-xs);
91
+ }
92
+
93
+ figure {
94
+ margin: var(--space-07) 0;
95
+ }
96
+
97
+ /* A terminal is as wide as its grid, and wider than prose. */
98
+ figure.wide {
99
+ --wide: min(940px, calc(100vw - var(--space-06) * 2));
100
+ width: var(--wide);
101
+ margin-left: calc(50% - var(--wide) / 2);
102
+ margin-right: calc(50% - var(--wide) / 2);
103
+ }
104
+
105
+ figcaption {
106
+ margin-top: var(--space-04);
107
+ color: var(--muted);
108
+ font-size: var(--text-xs);
109
+ }
110
+
111
+ a {
112
+ color: var(--accent);
113
+ text-underline-offset: 2px;
114
+ }
115
+
116
+ :focus-visible {
117
+ outline: 2px solid var(--accent);
118
+ outline-offset: 2px;
119
+ }
120
+
121
+ code,
122
+ pre {
123
+ font-family: var(--font-mono);
124
+ font-size: 0.95em;
125
+ }
126
+
127
+ pre {
128
+ margin: var(--space-05) 0;
129
+ padding: var(--space-05);
130
+ border: 1px solid var(--border-subtle);
131
+ overflow-x: auto;
132
+ line-height: 1.5;
133
+ }
134
+
135
+ code {
136
+ color: var(--muted);
137
+ }
138
+
139
+ ul {
140
+ margin: 0 0 var(--space-05);
141
+ padding-left: var(--space-07);
142
+ }
143
+
144
+ li {
145
+ margin-bottom: var(--space-03);
146
+ }
147
+ </style>
148
+ </head>
149
+ <body>
150
+
151
+ <main>
152
+
153
+ <h1>Two kinds of terminal</h1>
154
+ <p class="lede">A capture is a screen: it keeps the escape sequences of a full
155
+ screen program and loses the timing. A recording is a stream: it keeps the
156
+ timing and replays it. Both sit in the same window frame here, and both read on
157
+ a light and a dark ground.</p>
158
+
159
+ <figure class="wide">
160
+ <div class="terminal"
161
+ data-mode="ansi"
162
+ data-src="capture.ans"
163
+ data-cols="100"
164
+ data-rows="24"
165
+ data-title="procview"
166
+ data-palette="default"></div>
167
+ <figcaption>A capture of a fictional process list, taken with
168
+ <code>tmux capture-pane</code>. The selected row is reverse video, the header
169
+ is bold, the status bar carries the key hints. The file is
170
+ <a href="capture.ans">capture.ans</a>.</figcaption>
171
+ </figure>
172
+
173
+ <figure class="wide">
174
+ <div class="terminal"
175
+ data-mode="cast"
176
+ data-src="demo.cast"
177
+ data-title="rshow publish ./deck"
178
+ data-palette="default"></div>
179
+ <figcaption>An asciicast of <code>rshow publish ./deck</code>, at rest on its
180
+ first frame. Press play and it types itself out. The file is
181
+ <a href="demo.cast">demo.cast</a>.</figcaption>
182
+ </figure>
183
+
184
+ <h2>How to take them</h2>
185
+ <p>Both fit in a repository next to the page that shows them, and both are text,
186
+ so a version diff is a readable diff.</p>
187
+ <pre>tmux capture-pane -pet &lt;target&gt; &gt; capture.ans
188
+ asciinema rec demo.cast</pre>
189
+ <p class="note"><code>capture-pane -e</code> keeps the escape sequences and
190
+ <code>-p</code> prints instead of pasting, so the result is the screen as it
191
+ looks, ready to be committed. <code>-t</code> names the pane or window to copy.
192
+ For the recording, <code>asciinema rec</code> writes an asciicast v2 file;
193
+ <code>ctrl-d</code> ends it. Keep the capture to the grid it was taken on and say
194
+ so in <code>data-cols</code> and <code>data-rows</code>, or the frame will be the
195
+ wrong shape.</p>
196
+
197
+ <h2>A palette per figure</h2>
198
+ <p>Neither viewer carries colours of its own: the sixteen ANSI colours live in
199
+ <code>terminal.css</code> and the viewer reads them back. <code>data-palette</code>
200
+ picks the set.</p>
201
+ <ul>
202
+ <li><code>default</code>: the page ground, light or dark, with a neutral
203
+ sixteen that holds on either, so nothing has to be recorded twice.</li>
204
+ <li><code>dark</code> and <code>light</code>: a fixed ground, for a capture
205
+ that is about being dark.</li>
206
+ <li><code>high-contrast</code>: black on white in a light page, white on black
207
+ in a dark one.</li>
208
+ </ul>
209
+
210
+ <figure class="wide">
211
+ <div class="terminal"
212
+ data-mode="ansi"
213
+ data-src="capture.ans"
214
+ data-cols="100"
215
+ data-rows="24"
216
+ data-title="procview — high-contrast"
217
+ data-palette="high-contrast"></div>
218
+ <figcaption>The same capture in the <code>high-contrast</code> palette.</figcaption>
219
+ </figure>
220
+
221
+ <h2>When a library does not arrive</h2>
222
+ <p class="note">A missing CDN costs colour, not content: the capture falls back
223
+ to plain text with the escapes stripped. A recording needs its player, so it says
224
+ so and links to the file.</p>
225
+
226
+ <p class="note"><button type="button" data-rshow-mode-toggle>Mode</button></p>
227
+
228
+ </main>
229
+
230
+ </body>
231
+ </html>
@@ -0,0 +1,223 @@
1
+ <!doctype html>
2
+ <html lang="en">
3
+ <head>
4
+ <meta charset="utf-8">
5
+ <meta name="viewport" content="width=device-width, initial-scale=1">
6
+ <meta name="color-scheme" content="light dark">
7
+ <title>Mockup: a git tui in a cell grid</title>
8
+ <!--
9
+ One terminal screen, two states: the branch list on the left, the commit log in
10
+ the middle, the diff on the right, a status bar, and the key hints every TUI
11
+ needs and half of them forget.
12
+
13
+ State 1, default: the log has the keyboard, a toast says what was staged.
14
+ State 2, confirm-dialog: a discard confirmation, and the keyboard is in the
15
+ dialog.
16
+
17
+ What this file demonstrates about the kit:
18
+
19
+ - it is a grid. 100 columns by 27 rows, every block a whole number of cells,
20
+ the frame around a pane drawn with box-drawing characters and the pane's
21
+ title inside its top border;
22
+ - it is one focused surface. The log pane has data-focus, the frame of the
23
+ focused pane is double and its title is bold, so it does not depend on the
24
+ accent colour;
25
+ - it has no app binding on Ctrl+C, Ctrl+Z or Ctrl+\. The key hints use plain
26
+ letters, because a terminal owns those three chords;
27
+ - it degrades. Change data-palette to dark, light, high-contrast or mono, or
28
+ data-depth to 16, and the same drawing still reads: + and - carry the diff,
29
+ not the green and the red.
30
+
31
+ Open it straight from disk and it works the same as inside the mockup: the kit
32
+ is a stylesheet and a script, not a frame.
33
+
34
+ Every branch name, hash and author below is a placeholder for a drawing.
35
+ -->
36
+ <link rel="stylesheet" href="../fonts.css">
37
+ <link rel="stylesheet" href="../tokens.css">
38
+ <link rel="stylesheet" href="../mockup.css">
39
+ <link rel="stylesheet" href="../skins/wire.css" id="mk-skin" data-mk-skin>
40
+ <link rel="stylesheet" href="../tui.css">
41
+ <script src="../mode.js"></script>
42
+ <script defer src="../mockup.js"></script>
43
+ <script defer src="../tui.js"></script>
44
+ </head>
45
+ <body>
46
+
47
+ <main class="mockup" data-name="Ledger" data-skin="wire">
48
+
49
+ <section class="artboard" id="git-tui" data-frame="bare" data-flush
50
+ data-title="git tui · cell grid"
51
+ data-states="default,confirm-dialog"
52
+ data-w="1240" data-h="796">
53
+
54
+ <div class="tui" id="tui-git" data-cols="100" data-rows="27"
55
+ data-palette="default" data-depth="256" data-size="20px">
56
+ <div class="tui-screen">
57
+ <div class="tui-body">
58
+
59
+ <div class="tui-line tui-dim"> ledger · git</div>
60
+ <div class="tui-line"><span class="tui-accent tui-bold">repository</span> ~/code/ledger <span class="tui-dim">· branch main · 3 files changed</span></div>
61
+
62
+ <div class="tui-main">
63
+
64
+ <div class="tui-pane" data-title="branches" data-cols="24" data-lines="23">
65
+ <div class="tui-body-lines">
66
+ <div class="tui-list">
67
+ <div class="tui-list-item" data-marker="* ">main</div>
68
+ <div class="tui-list-item" data-marker=" ">feature/cell-grid</div>
69
+ <div class="tui-list-item" data-marker=" ">fix/login-redirect</div>
70
+ <div class="tui-list-item" data-marker=" ">release/0.4</div>
71
+ <div class="tui-list-item" data-marker=" ">hotfix/a11y</div>
72
+ <div class="tui-list-item" data-marker=" ">wip/undo</div>
73
+ </div>
74
+ <div class="tui-rule">───────────────────</div>
75
+ <div class="tui-line tui-dim">remotes</div>
76
+ <div class="tui-list">
77
+ <div class="tui-list-item" data-marker=" ">origin/main</div>
78
+ <div class="tui-list-item" data-marker=" ">origin/release/0.4</div>
79
+ </div>
80
+ <div class="tui-line tui-dim">tags</div>
81
+ <div class="tui-list">
82
+ <div class="tui-list-item" data-marker=" ">v0.3.2</div>
83
+ <div class="tui-list-item" data-marker=" ">v0.3.1</div>
84
+ </div>
85
+ </div>
86
+ </div>
87
+
88
+ <div class="tui-gap"></div>
89
+
90
+ <div class="tui-pane" data-title="commits" data-focus data-cols="38" data-lines="23">
91
+ <div class="tui-body-lines">
92
+ <div class="tui-table" style="--tui-table-cols: 7ch 1fr 3ch">
93
+ <div class="tui-table-row" data-head>
94
+ <span>hash</span><span>message</span><span data-align="right">age</span>
95
+ </div>
96
+ <div class="tui-table-row tui-reverse">
97
+ <span>a1b2c3d</span><span>draw the cell grid</span><span data-align="right">2d</span>
98
+ </div>
99
+ <div class="tui-table-row">
100
+ <span>b7e4f01</span><span>add the resize gate</span><span data-align="right">3d</span>
101
+ </div>
102
+ <div class="tui-table-row">
103
+ <span>c0d9a12</span><span>one focused pane</span><span data-align="right">4d</span>
104
+ </div>
105
+ <div class="tui-table-row">
106
+ <span>dd44e07</span><span>palette: high contrast</span><span data-align="right">4d</span>
107
+ </div>
108
+ <div class="tui-table-row">
109
+ <span>e6f1b88</span><span>gauge in blocks</span><span data-align="right">5d</span>
110
+ </div>
111
+ <div class="tui-table-row">
112
+ <span>f2a77c1</span><span>key hints, not prose</span><span data-align="right">6d</span>
113
+ </div>
114
+ <div class="tui-table-row">
115
+ <span>0b1c2d3</span><span>sparkline from data</span><span data-align="right">6d</span>
116
+ </div>
117
+ <div class="tui-table-row">
118
+ <span>1c2d3e4</span><span>drop the ctrl bindings</span><span data-align="right">1w</span>
119
+ </div>
120
+ <div class="tui-table-row">
121
+ <span>2d3e4f5</span><span>diff gutter alignment</span><span data-align="right">1w</span>
122
+ </div>
123
+ <div class="tui-table-row">
124
+ <span>3e4f5a6</span><span>mono palette check</span><span data-align="right">2w</span>
125
+ </div>
126
+ </div>
127
+ </div>
128
+ </div>
129
+
130
+ <div class="tui-gap"></div>
131
+
132
+ <div class="tui-pane" data-title="diff · tui.css" data-cols="36" data-lines="23">
133
+ <div class="tui-body-lines">
134
+ <div class="tui-line tui-dim">--- a/tui.css</div>
135
+ <div class="tui-line tui-dim">+++ b/tui.css</div>
136
+ <div class="tui-line tui-accent">@@ -12,7 +12,9 @@</div>
137
+ <div class="tui-line"> .tui {</div>
138
+ <div class="tui-line tui-add">+ --tui-cell-h: 1.4em;</div>
139
+ <div class="tui-line tui-del">- line-height: 1.2;</div>
140
+ <div class="tui-line tui-add">+ line-height: var(--tui-line);</div>
141
+ <div class="tui-line"> font-size: var(--tui-size);</div>
142
+ <div class="tui-line"> }</div>
143
+ <div class="tui-line tui-accent">@@ -28,3 +30,4 @@</div>
144
+ <div class="tui-line"> .tui-pane {</div>
145
+ <div class="tui-line tui-add">+ padding: 1lh 1ch;</div>
146
+ <div class="tui-line"> }</div>
147
+ <div class="tui-rule">──────────────────────────────</div>
148
+ <div class="tui-line"><span class="tui-dim">staged </span><span class="tui-gauge" data-value="67" data-width="12" data-show-value></span></div>
149
+ <div class="tui-line"><span class="tui-dim">tests </span><span class="tui-gauge" data-value="100" data-width="12" data-show-value></span></div>
150
+ <div class="tui-line"><span class="tui-dim">coverage </span><span class="tui-gauge" data-value="41" data-width="12" data-show-value data-tone="warn"></span></div>
151
+ </div>
152
+ </div>
153
+
154
+ </div>
155
+
156
+ <div class="tui-statusbar">
157
+ <span class="tui-bold">main</span>
158
+ <span class="tui-dim">·</span>
159
+ <span>clean</span>
160
+ <span class="tui-dim">·</span>
161
+ <span>1 ahead</span>
162
+ <span class="tui-dim">·</span>
163
+ <span class="tui-accent">a1b2c3d</span>
164
+ <span class="tui-grow"></span>
165
+ <span class="tui-dim">commits/wk</span>
166
+ <span class="tui-sparkline" data-values="2,4,3,6,5,9,7,11,8,12,6,4"></span>
167
+ <span class="tui-dim">utf-8</span>
168
+ <span class="tui-dim">100x27</span>
169
+ </div>
170
+
171
+ <div class="tui-keys">
172
+ <kbd>j</kbd> next
173
+ <kbd>k</kbd> previous
174
+ <kbd>s</kbd> stage
175
+ <kbd>c</kbd> commit
176
+ <kbd>d</kbd> diff
177
+ <kbd>r</kbd> refresh
178
+ <kbd>?</kbd> help
179
+ <kbd>q</kbd> quit
180
+ </div>
181
+
182
+ </div>
183
+
184
+ <div data-state="default">
185
+ <div class="tui-toast" data-tone="ok">
186
+ <span class="tui-add">staged</span> tui.css · tui.js
187
+ <span class="tui-dim">2 files, 144 cells</span>
188
+ </div>
189
+ </div>
190
+
191
+ <div data-state="confirm-dialog">
192
+ <div class="tui-dialog" data-title="discard" data-focus data-cols="52" data-lines="9">
193
+ <div class="tui-dialog-body">
194
+ <div class="tui-line tui-bold">Discard 2 staged files?</div>
195
+ <div class="tui-line tui-dim">tui.css · tui.js</div>
196
+ <div class="tui-line"> </div>
197
+ <div class="tui-rule">──────────────────────────────────────────────────</div>
198
+ <div class="tui-line tui-dim">The change is in a1b2c3d already.</div>
199
+ <div class="tui-dialog-actions">
200
+ <span class="tui-button" data-variant="default">&gt; discard</span>
201
+ <span class="tui-button" data-variant="quiet">cancel</span>
202
+ </div>
203
+ </div>
204
+ </div>
205
+ </div>
206
+
207
+ </div>
208
+ </div>
209
+
210
+ <span class="note-pin" data-note="The frame is drawn with box characters and the pane title lives inside the top border, which is the one place a terminal can put a label without spending a row."
211
+ style="top:84px;left:1180px"></span>
212
+
213
+ <span class="note-pin" data-note="Focus is a double frame and a bold title, never the accent colour alone: the same drawing has to say which pane has the keyboard in the mono palette."
214
+ style="top:196px;left:1180px"></span>
215
+
216
+ <span class="note-pin" data-note="Key hints are letters. Ctrl+C, Ctrl+Z and Ctrl+\ belong to the terminal, so the tool does not bind them and the footer does not print them."
217
+ style="bottom:36px;left:1180px"></span>
218
+ </section>
219
+
220
+ </main>
221
+
222
+ </body>
223
+ </html>
@@ -0,0 +1,93 @@
1
+ Copyright (c) 2017 IBM Corp. with Reserved Font Name "Plex"
2
+
3
+ This Font Software is licensed under the SIL Open Font License, Version 1.1.
4
+
5
+ This license is copied below, and is also available with a FAQ at: http://scripts.sil.org/OFL
6
+
7
+
8
+ -----------------------------------------------------------
9
+ SIL OPEN FONT LICENSE Version 1.1 - 26 February 2007
10
+ -----------------------------------------------------------
11
+
12
+ PREAMBLE
13
+ The goals of the Open Font License (OFL) are to stimulate worldwide
14
+ development of collaborative font projects, to support the font creation
15
+ efforts of academic and linguistic communities, and to provide a free and
16
+ open framework in which fonts may be shared and improved in partnership
17
+ with others.
18
+
19
+ The OFL allows the licensed fonts to be used, studied, modified and
20
+ redistributed freely as long as they are not sold by themselves. The
21
+ fonts, including any derivative works, can be bundled, embedded,
22
+ redistributed and/or sold with any software provided that any reserved
23
+ names are not used by derivative works. The fonts and derivatives,
24
+ however, cannot be released under any other type of license. The
25
+ requirement for fonts to remain under this license does not apply
26
+ to any document created using the fonts or their derivatives.
27
+
28
+ DEFINITIONS
29
+ "Font Software" refers to the set of files released by the Copyright
30
+ Holder(s) under this license and clearly marked as such. This may
31
+ include source files, build scripts and documentation.
32
+
33
+ "Reserved Font Name" refers to any names specified as such after the
34
+ copyright statement(s).
35
+
36
+ "Original Version" refers to the collection of Font Software components as
37
+ distributed by the Copyright Holder(s).
38
+
39
+ "Modified Version" refers to any derivative made by adding to, deleting,
40
+ or substituting -- in part or in whole -- any of the components of the
41
+ Original Version, by changing formats or by porting the Font Software to a
42
+ new environment.
43
+
44
+ "Author" refers to any designer, engineer, programmer, technical
45
+ writer or other person who contributed to the Font Software.
46
+
47
+ PERMISSION & CONDITIONS
48
+ Permission is hereby granted, free of charge, to any person obtaining
49
+ a copy of the Font Software, to use, study, copy, merge, embed, modify,
50
+ redistribute, and sell modified and unmodified copies of the Font
51
+ Software, subject to the following conditions:
52
+
53
+ 1) Neither the Font Software nor any of its individual components,
54
+ in Original or Modified Versions, may be sold by itself.
55
+
56
+ 2) Original or Modified Versions of the Font Software may be bundled,
57
+ redistributed and/or sold with any software, provided that each copy
58
+ contains the above copyright notice and this license. These can be
59
+ included either as stand-alone text files, human-readable headers or
60
+ in the appropriate machine-readable metadata fields within text or
61
+ binary files as long as those fields can be easily viewed by the user.
62
+
63
+ 3) No Modified Version of the Font Software may use the Reserved Font
64
+ Name(s) unless explicit written permission is granted by the corresponding
65
+ Copyright Holder. This restriction only applies to the primary font name as
66
+ presented to the users.
67
+
68
+ 4) The name(s) of the Copyright Holder(s) or the Author(s) of the Font
69
+ Software shall not be used to promote, endorse or advertise any
70
+ Modified Version, except to acknowledge the contribution(s) of the
71
+ Copyright Holder(s) and the Author(s) or with their explicit written
72
+ permission.
73
+
74
+ 5) The Font Software, modified or unmodified, in part or in whole,
75
+ must be distributed entirely under this license, and must not be
76
+ distributed under any other license. The requirement for fonts to
77
+ remain under this license does not apply to any document created
78
+ using the Font Software.
79
+
80
+ TERMINATION
81
+ This license becomes null and void if any of the above conditions are
82
+ not met.
83
+
84
+ DISCLAIMER
85
+ THE FONT SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
86
+ EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO ANY WARRANTIES OF
87
+ MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT
88
+ OF COPYRIGHT, PATENT, TRADEMARK, OR OTHER RIGHT. IN NO EVENT SHALL THE
89
+ COPYRIGHT HOLDER BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
90
+ INCLUDING ANY GENERAL, SPECIAL, INDIRECT, INCIDENTAL, OR CONSEQUENTIAL
91
+ DAMAGES, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
92
+ FROM, OUT OF THE USE OR INABILITY TO USE THE FONT SOFTWARE OR FROM
93
+ OTHER DEALINGS IN THE FONT SOFTWARE.