@nbtca/prompt 1.5.22 → 1.5.24

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 (38) hide show
  1. package/dist/app/ambient.js +98 -0
  2. package/dist/app/app.js +3 -2
  3. package/dist/app/chrome.js +6 -2
  4. package/dist/app/views/docs-render.js +23 -15
  5. package/dist/app/views/docs.js +3 -0
  6. package/dist/app/views/events-render.js +57 -21
  7. package/dist/app/views/events.js +62 -9
  8. package/dist/app/views/home.js +66 -31
  9. package/dist/app/views/schedule-render.js +9 -2
  10. package/dist/app/views/schedule.js +7 -1
  11. package/dist/app/views/settings-render.js +13 -2
  12. package/dist/app/views/settings.js +27 -1
  13. package/dist/art/bitmaps.js +76 -0
  14. package/dist/art/glyphs.js +101 -0
  15. package/dist/art/motifs.js +198 -0
  16. package/dist/art/noise.js +43 -0
  17. package/dist/art/planet.js +184 -0
  18. package/dist/art/scene.js +446 -0
  19. package/dist/config/preferences.js +8 -1
  20. package/dist/core/components/empty-state.js +50 -0
  21. package/dist/core/components/menu.js +2 -2
  22. package/dist/core/components/picture.js +18 -0
  23. package/dist/core/logo.js +65 -43
  24. package/dist/core/pixel-art-fine.js +157 -0
  25. package/dist/core/pixel-art.js +223 -0
  26. package/dist/core/theme.js +1 -1
  27. package/dist/features/calendar-heatmap.js +35 -10
  28. package/dist/features/calendar.js +2 -2
  29. package/dist/features/event-art.js +16 -0
  30. package/dist/features/schedule-view.js +10 -0
  31. package/dist/i18n/locales/en.json +14 -5
  32. package/dist/i18n/locales/zh.json +13 -4
  33. package/dist/logo/ascii-emblem-large.txt +26 -0
  34. package/dist/logo/ascii-emblem-medium.txt +19 -0
  35. package/dist/logo/ascii-emblem-small.txt +12 -0
  36. package/dist/logo/ascii-emblem-tiny.txt +9 -0
  37. package/package.json +4 -4
  38. package/dist/logo/ascii-logo.txt +0 -12
@@ -2,14 +2,14 @@ import { c, type, space, glyph } from '../../core/theme.js';
2
2
  import { t, fmt } from '../../i18n/index.js';
3
3
  import { pickIcon } from '../../core/icons.js';
4
4
  import { padEndV, visualWidth, wrapAnsiWithIndent } from '../../core/text.js';
5
- import { nextClassLine, peekSchedule, todayLines, weekAheadInfo, } from '../../features/schedule-view.js';
6
- import { loadCalendarOrThrow, peekCalendar, toDisplayEvent, renderEventBrief, } from '../../features/calendar.js';
5
+ import { nextClassLine, peekSchedule, todayLines, isRestDay, weekAheadInfo, } from '../../features/schedule-view.js';
6
+ import { loadCalendarOrThrow, peekCalendar, toDisplayEvent, renderEventBrief, renderCountdownBanner, } from '../../features/calendar.js';
7
7
  import { weekdayShortLabel } from '../../features/schedule-render.js';
8
8
  import { offlineNotice, passiveFooterHint } from '../chrome.js';
9
9
  import { campusDateTime, campusIsoDate } from '@nbtca/nbtcal/timetable';
10
10
  import { isoDayDifference, localDayDifference, parseLocalDate } from '../../core/calendar-day.js';
11
11
  import { currentEvents } from '../../features/calendar-query.js';
12
- import { loadingLines } from '../../core/components/spinner.js';
12
+ import { emptyStateLines, loadingStateLines } from '../../core/components/empty-state.js';
13
13
  const WEEKDAYS = [1, 2, 3, 4, 5, 6, 7];
14
14
  function wrappedIndentedLines(label, cols, style) {
15
15
  return wrapAnsiWithIndent(style(label), cols, space.indent);
@@ -45,23 +45,28 @@ function renderDayProgress(now, cols) {
45
45
  function renderWeekAheadGrid(classDays, eventDays, cols) {
46
46
  const trans = t();
47
47
  const hasClassChar = pickIcon('▓▓', '##');
48
- const freeChar = pickIcon('░░', '..');
49
- const weekendChar = pickIcon('··', '..');
50
- const blankCell = ' ';
48
+ const freeChar = pickIcon('··', '..');
49
+ const unknownChar = '??';
51
50
  const rowLabelW = Math.max(visualWidth(trans.timetable.weekAheadClasses), visualWidth(trans.menu.events)) + 1;
52
- const days = [1, 2, 3, 4, 5, 6, 7];
53
- const classCell = (wd) => classDays[wd - 1] ? hasClassChar : wd >= 6 ? weekendChar : freeChar;
54
- const eventCell = (wd) => eventDays ? (eventDays[wd - 1] ? hasClassChar : freeChar) : blankCell;
55
- const legendText = `${hasClassChar} ${trans.timetable.weekAheadBusy} ${freeChar} ${trans.timetable.weekAheadFree} ${weekendChar} ${trans.timetable.weekAheadNone}`;
56
- const dayLabels = days.map((wd) => type.hint(weekdayShortLabel(wd))).join(' ');
51
+ const days = WEEKDAYS;
52
+ const labels = days.map(weekdayShortLabel);
53
+ const cellWidth = Math.max(2, ...labels.map(visualWidth));
54
+ const width = Number.isFinite(cols) ? Math.max(1, Math.floor(cols)) : Number.POSITIVE_INFINITY;
55
+ const gap = visualWidth(space.indent) + rowLabelW + days.length * cellWidth + (days.length - 1) * 2 <= width
56
+ ? ' '
57
+ : ' ';
58
+ const classCell = (wd) => (classDays[wd - 1] ? hasClassChar : freeChar);
59
+ const eventCell = (wd) => eventDays ? (eventDays[wd - 1] ? hasClassChar : freeChar) : unknownChar;
60
+ const legendText = `${hasClassChar} ${trans.timetable.weekAheadBusy} ${freeChar} ${trans.timetable.weekAheadFree}` +
61
+ (eventDays ? '' : ` ${unknownChar} ${trans.timetable.weekAheadUnknown}`);
62
+ const dayLabels = labels.map((label) => type.hint(padEndV(label, cellWidth))).join(gap);
57
63
  const headerLine = `${space.indent}${padEndV('', rowLabelW)}${dayLabels}`;
58
- const classCells = days.map((wd) => type.body(classCell(wd))).join(' ');
64
+ const classCells = days.map((wd) => type.body(padEndV(classCell(wd), cellWidth))).join(gap);
59
65
  const classLine = `${space.indent}${type.hint(padEndV(trans.timetable.weekAheadClasses, rowLabelW))}${classCells}`;
60
- const eventCells = days.map((wd) => type.body(eventCell(wd))).join(' ');
66
+ const eventCells = days.map((wd) => type.body(padEndV(eventCell(wd), cellWidth))).join(gap);
61
67
  const eventLine = `${space.indent}${type.hint(padEndV(trans.menu.events, rowLabelW))}${eventCells}`;
62
68
  const legend = `${space.indent}${type.hint(legendText)}`;
63
69
  const wideLines = [headerLine, classLine, eventLine, legend];
64
- const width = Number.isFinite(cols) ? Math.max(1, Math.floor(cols)) : Number.POSITIVE_INFINITY;
65
70
  if (wideLines.every((line) => visualWidth(line) <= width))
66
71
  return wideLines.join('\n');
67
72
  const compactHeading = wrappedIndentedLines(`${trans.timetable.weekAheadClasses} / ${trans.menu.events}`, cols, type.hint);
@@ -78,7 +83,9 @@ export function renderHome(data, now, bodyRows = 100, cols = 80) {
78
83
  const lines = eventsStale ? offlineNotice(cols) : [];
79
84
  if (data.schedule === null) {
80
85
  lines.push(...panelHeading(trans.timetable.menuTitle, cols));
81
- lines.push(...wrappedIndentedLines(fmt(trans.timetable.homeLoginCta, {
86
+ lines.push(...wrappedIndentedLines(fmt(cols < 40 || bodyRows < 10
87
+ ? trans.timetable.homeLoginCtaCompact
88
+ : trans.timetable.homeLoginCta, {
82
89
  tab: trans.timetable.menuEntry,
83
90
  action: trans.timetable.publicLoginAction,
84
91
  }), cols, type.hint));
@@ -104,42 +111,61 @@ export function renderHome(data, now, bodyRows = 100, cols = 80) {
104
111
  lines.push(...wrappedIndentedLines(`${pickIcon('⚠', '!')} ${trans.timetable.hubUnresolved} ${glyph.sep()} ${unresolvedCount}`, cols, c.warn));
105
112
  lines.push('');
106
113
  }
107
- lines.push(...panelHeading(trans.menu.events, cols));
114
+ const eventsHeading = panelHeading(trans.menu.events, cols);
115
+ const firstEventRows = wrappedRenderedLines(data.eventLines?.[0] ?? '', cols).length;
116
+ const banner = !data.schedule && data.nextEvent
117
+ ? [...renderCountdownBanner(data.nextEvent, now, cols).split('\n'), '']
118
+ : [];
119
+ // Only spend rows on the countdown when the first event still fits below it
120
+ if (banner.length > 0 &&
121
+ lines.length + banner.length + eventsHeading.length + firstEventRows <= bodyRows) {
122
+ lines.push(...banner);
123
+ }
124
+ lines.push(...eventsHeading);
108
125
  if (data.eventLines && data.eventLines.length > 0) {
109
126
  const remaining = Number.isFinite(bodyRows)
110
127
  ? Math.max(0, Math.floor(bodyRows) - lines.length)
111
128
  : Number.POSITIVE_INFINITY;
112
- let usedRows = 0;
113
- for (const line of data.eventLines) {
114
- const wrapped = wrappedRenderedLines(line, cols);
115
- if (usedRows + wrapped.length > remaining) {
116
- if (usedRows === 0 && remaining === 0)
117
- lines.push(...wrapped);
129
+ const rendered = data.eventLines.map((line) => wrappedRenderedLines(line, cols));
130
+ const moreLine = (shown) => shown < rendered.length
131
+ ? wrappedIndentedLines(fmt(trans.calendar.moreEvents, { count: rendered.length - shown }), cols, type.hint)
132
+ : [];
133
+ let shown = 0;
134
+ let used = 0;
135
+ while (shown < rendered.length) {
136
+ const next = rendered[shown] ?? [];
137
+ const reserve = shown + 1 < rendered.length ? moreLine(shown + 1).length : 0;
138
+ if (used + next.length + reserve > remaining)
118
139
  break;
119
- }
120
- lines.push(...wrapped);
121
- usedRows += wrapped.length;
140
+ used += next.length;
141
+ shown += 1;
122
142
  }
143
+ if (shown === 0)
144
+ shown = 1;
145
+ lines.push(...rendered.slice(0, shown).flat(), ...moreLine(shown));
123
146
  }
124
147
  else if (data.loading) {
125
- lines.push(...loadingLines(trans.common.loading, cols));
148
+ lines.push(...loadingStateLines(trans.common.loading, cols, bodyRows - lines.length));
126
149
  }
127
150
  else if (data.eventsLoadFailed) {
128
151
  lines.push(...wrappedIndentedLines(trans.calendar.error, cols, type.hint));
129
152
  }
130
153
  else {
131
- lines.push(...wrappedIndentedLines(trans.calendar.noEvents, cols, type.hint));
154
+ lines.push(...emptyStateLines('calendar', trans.calendar.noEvents, cols, bodyRows - lines.length));
132
155
  }
133
156
  return lines;
134
157
  }
135
158
  const HOME_EVENT_FETCH_CAP = 15;
136
159
  function calendarSnapshot(cal, weekAhead) {
137
160
  const now = new Date();
138
- const eventLines = currentEvents(cal, now)
161
+ const current = currentEvents(cal, now);
162
+ const eventLines = current
139
163
  .slice(0, HOME_EVENT_FETCH_CAP)
140
164
  .map((event) => renderEventBrief(toDisplayEvent(event), now));
165
+ const upcoming = current.find((event) => event.start >= now);
166
+ const nextEvent = upcoming ? { nextEvent: toDisplayEvent(upcoming) } : {};
141
167
  if (!weekAhead)
142
- return { eventLines };
168
+ return { eventLines, ...nextEvent };
143
169
  const { weekStart } = weekAhead;
144
170
  const monday = campusDateTime(weekStart, '00:00');
145
171
  const daySet = new Set(cal
@@ -150,6 +176,7 @@ function calendarSnapshot(cal, weekAhead) {
150
176
  : isoDayDifference(weekStart, campusIsoDate(event.start)))));
151
177
  return {
152
178
  eventLines,
179
+ ...nextEvent,
153
180
  weekAhead: {
154
181
  classDays: weekAhead.classDays,
155
182
  eventDays: WEEKDAYS.map((weekday) => daySet.has(weekday)),
@@ -160,8 +187,11 @@ let data = { loading: true };
160
187
  export const homeView = {
161
188
  id: 'home',
162
189
  title: 'Home',
163
- footerHint(tabCount, cols = Number.POSITIVE_INFINITY) {
164
- return passiveFooterHint(tabCount, cols, false);
190
+ footerHint(tabCount, cols = Number.POSITIVE_INFINITY, canScroll = false) {
191
+ return passiveFooterHint(tabCount, cols, false, canScroll);
192
+ },
193
+ scrollsBody() {
194
+ return true;
165
195
  },
166
196
  async load(ctx) {
167
197
  if (ctx.signal?.aborted)
@@ -197,6 +227,11 @@ export const homeView = {
197
227
  }
198
228
  }
199
229
  },
230
+ ambient() {
231
+ return data.schedule && isRestDay(data.schedule)
232
+ ? { kind: 'sky', rest: true }
233
+ : { kind: 'sky' };
234
+ },
200
235
  isBusy() {
201
236
  return data.loading === true;
202
237
  },
@@ -7,6 +7,7 @@ import { renderNextClassBanner, renderWeekGrid, renderUnresolvedItems, renderTod
7
7
  import { sanitizeTerminalLine, truncate, truncateStart, visualWidth, wrapAnsiWithIndent, } from '../../core/text.js';
8
8
  import { isoDayDifference } from '../../core/calendar-day.js';
9
9
  import { loadingLines } from '../../core/components/spinner.js';
10
+ import { loadingStateLines } from '../../core/components/empty-state.js';
10
11
  import { offlineNotice } from '../chrome.js';
11
12
  function heading(label) {
12
13
  return `${space.indent}${type.heading(label)}`;
@@ -237,6 +238,12 @@ function renderHubBody(state, now, bodyRows, cols) {
237
238
  const withGrid = layoutHub(state, now, bodyRows, cols, shortcuts.filter((shortcut) => shortcut.key !== 'w'));
238
239
  return withGrid.grid ? withGrid.lines : layoutHub(state, now, bodyRows, cols, shortcuts).lines;
239
240
  }
241
+ export function termProgress(w) {
242
+ if (!w || !('currentWeek' in w) || !w.nextBreakStart)
243
+ return undefined;
244
+ const weeks = Math.max(1, Math.round(isoDayDifference(w.weekOneMonday, w.nextBreakStart) / 7));
245
+ return { progress: Math.min(1, Math.max(0, w.currentWeek / weeks)), weeks };
246
+ }
240
247
  const TERM_PROGRESS_WIDTH = 20;
241
248
  function renderTermProgressBar(w, cols) {
242
249
  if (!w.nextBreakStart)
@@ -266,7 +273,7 @@ function renderPublicBody(state, now, bodyRows, cols) {
266
273
  const lines = state.publicStale ? offlineNotice(cols) : [];
267
274
  const w = state.publicWindow;
268
275
  if (w === undefined) {
269
- lines.push(...loadingLines(trans.common.loading, cols));
276
+ lines.push(...loadingStateLines(trans.common.loading, cols, bodyRows - lines.length));
270
277
  }
271
278
  else if (w === null) {
272
279
  lines.push(...hintLines(trans.timetable.publicUnavailable, cols));
@@ -304,7 +311,7 @@ export function renderSchedule(state, now, bodyRows = 100, cols = 80) {
304
311
  const trans = t();
305
312
  switch (state.mode) {
306
313
  case 'loading':
307
- return loadingLines(trans.common.loading, cols);
314
+ return loadingStateLines(trans.common.loading, cols, bodyRows);
308
315
  case 'public':
309
316
  return renderPublicBody(state, now, bodyRows, cols);
310
317
  case 'records':
@@ -3,7 +3,7 @@ import { createNbtTimetableClient, createTimetableSchedule, timetableToIcs, } fr
3
3
  import { captureFooterHint, digitTabHint, fitFooterHint, passiveFooterHint } from '../chrome.js';
4
4
  import { ListField, computeMaxVisible } from '../fields/list-field.js';
5
5
  import { TextField } from '../fields/text-field.js';
6
- import { renderSchedule, hubShortcuts } from './schedule-render.js';
6
+ import { renderSchedule, hubShortcuts, termProgress, } from './schedule-render.js';
7
7
  import { handleGridKey, todayGridCursor } from './schedule-grid-cursor.js';
8
8
  import { setVimKeysActive } from '../../core/vim-keys.js';
9
9
  import { t } from '../../i18n/index.js';
@@ -406,6 +406,12 @@ export const scheduleView = {
406
406
  state.termField?.setMaxVisible(computeMaxVisible(ctx.bodyRows));
407
407
  return renderSchedule(state, new Date(), ctx.bodyRows, ctx.size.cols);
408
408
  },
409
+ ambient() {
410
+ if (state.mode !== 'public' && state.mode !== 'hub')
411
+ return undefined;
412
+ const term = termProgress(state.publicWindow);
413
+ return term === undefined ? undefined : { kind: 'mountain', ...term };
414
+ },
409
415
  isBusy() {
410
416
  if (state.mode === 'records')
411
417
  return recordsPanel?.isBusy() ?? false;
@@ -1,6 +1,9 @@
1
1
  import { space, type } from '../../core/theme.js';
2
2
  import { wrapAnsiWithIndent } from '../../core/text.js';
3
+ import { pictureBeside } from '../../core/components/picture.js';
4
+ import { gasGiantLines } from '../../art/planet.js';
3
5
  import { renderListFieldWithContext } from '../fields/list-field.js';
6
+ const ABOUT_PLANET_COLS = 28;
4
7
  function wrappedIndentedLines(label, cols, style) {
5
8
  return wrapAnsiWithIndent(style(label), cols, space.indent);
6
9
  }
@@ -19,13 +22,21 @@ export function renderSettings(state, bodyRows = Number.POSITIVE_INFINITY, cols
19
22
  case 'language':
20
23
  case 'icon':
21
24
  case 'color':
25
+ case 'picture':
22
26
  case 'reset':
23
27
  return state.subField?.render(bodyRows, cols) ?? [];
24
28
  case 'about': {
25
- const context = [
26
- ...(state.aboutLines ?? []).flatMap((line) => line ? wrappedIndentedLines(line, cols, (value) => value) : ['']),
29
+ const aboutLines = state.aboutLines ?? [];
30
+ const plain = [
31
+ ...aboutLines.flatMap((line) => line ? wrappedIndentedLines(line, cols, (value) => value) : ['']),
27
32
  '',
28
33
  ];
34
+ const picture = gasGiantLines(ABOUT_PLANET_COLS) ?? [];
35
+ const fieldRows = state.backField?.render(Number.POSITIVE_INFINITY, cols).length ?? 0;
36
+ const fits = (lines) => !Number.isFinite(bodyRows) || lines.length + fieldRows <= bodyRows;
37
+ const beside = pictureBeside(picture, aboutLines, cols, 52);
38
+ const stacked = [...picture.map((line) => space.indent + line), '', ...plain];
39
+ const context = beside && fits([...beside, '']) ? [...beside, ''] : fits(stacked) ? stacked : plain;
29
40
  if (!state.backField)
30
41
  return context;
31
42
  const fieldLines = state.backField.render(Number.POSITIVE_INFINITY, cols);
@@ -1,6 +1,6 @@
1
1
  import { ListField } from '../fields/list-field.js';
2
2
  import { renderSettings } from './settings-render.js';
3
- import { applyColorModePreference, loadPreferences, resetPreferences, setColorMode, setIconMode, } from '../../config/preferences.js';
3
+ import { applyColorModePreference, loadPreferences, resetPreferences, setColorMode, setPictureDetail, setIconMode, } from '../../config/preferences.js';
4
4
  import { resetIconCache } from '../../core/icons.js';
5
5
  import { APP_INFO, URLS } from '../../config/data.js';
6
6
  import { t, getCurrentLanguage, saveLanguagePreference, clearTranslationCache, } from '../../i18n/index.js';
@@ -19,6 +19,7 @@ function modeLabel(mode) {
19
19
  unicode: theme.modeUnicode,
20
20
  on: theme.modeOn,
21
21
  off: theme.modeOff,
22
+ fine: theme.modeFine,
22
23
  }[mode];
23
24
  }
24
25
  function modeOptions(modes, current) {
@@ -40,6 +41,7 @@ function buildMenuField(statusMessage, focus) {
40
41
  },
41
42
  { value: 'icon', label: trans.theme.iconMode, hint: modeLabel(prefs.iconMode) },
42
43
  { value: 'color', label: trans.theme.colorMode, hint: modeLabel(prefs.colorMode) },
44
+ { value: 'picture', label: trans.theme.pictureDetail, hint: modeLabel(prefs.pictureDetail) },
43
45
  { value: 'reset', label: trans.theme.resetLabel },
44
46
  { value: 'about', label: trans.about.title },
45
47
  ];
@@ -65,6 +67,9 @@ export const settingsView = {
65
67
  render(ctx) {
66
68
  return renderSettings(state, ctx.bodyRows, ctx.size.cols);
67
69
  },
70
+ ambient() {
71
+ return state.mode === 'menu' ? { kind: 'emblem' } : undefined;
72
+ },
68
73
  capturesInput() {
69
74
  return false;
70
75
  },
@@ -137,6 +142,19 @@ export const settingsView = {
137
142
  };
138
143
  return;
139
144
  }
145
+ if (result.selected === 'picture') {
146
+ const prefs = loadPreferences();
147
+ const options = modeOptions(['ascii', 'fine'], prefs.pictureDetail);
148
+ state = {
149
+ mode: 'picture',
150
+ subField: new ListField({
151
+ title: trans.theme.pictureDetail,
152
+ options,
153
+ initialIndex: Math.max(0, options.findIndex((o) => o.value === prefs.pictureDetail)),
154
+ }),
155
+ };
156
+ return;
157
+ }
140
158
  if (result.selected === 'reset') {
141
159
  state = {
142
160
  mode: 'reset',
@@ -213,6 +231,14 @@ export const settingsView = {
213
231
  goToMenu(saved ? trans.theme.colorUpdated : trans.theme.colorUpdatedSessionOnly);
214
232
  return;
215
233
  }
234
+ case 'picture': {
235
+ const result = state.subField?.handleKey(key);
236
+ if (!result?.selected)
237
+ return;
238
+ const saved = setPictureDetail(result.selected);
239
+ goToMenu(saved ? trans.theme.pictureUpdated : trans.theme.pictureUpdatedSessionOnly);
240
+ return;
241
+ }
216
242
  case 'reset': {
217
243
  const result = state.subField?.handleKey(key);
218
244
  if (!result?.selected)
@@ -0,0 +1,76 @@
1
+ // Generated by scripts/generate-art.mjs; edit the script, not this file.
2
+ export const eventIconDefault = {
3
+ palette: { '0': '#94a3b8', '1': '#0ea5e9', '2': '#f1f5f9', '3': '#bae6fd', '4': '#f59e0b' },
4
+ rows: [
5
+ ' 0 0 ',
6
+ ' 1111111111 ',
7
+ ' 1111111111 ',
8
+ ' 2222222222 ',
9
+ ' 2232323232 ',
10
+ ' 2222222222 ',
11
+ ' 2232443232 ',
12
+ ' 2222442222 ',
13
+ ' 2232323232 ',
14
+ ' 2222222222 ',
15
+ ],
16
+ };
17
+ export const eventIconMeeting = {
18
+ palette: { '0': '#06b6d4', '1': '#102a52', '2': '#bae6fd', '3': '#0ea5e9' },
19
+ rows: [
20
+ '00000000 ',
21
+ '00000000 ',
22
+ '00101010 ',
23
+ '00000000 ',
24
+ '00000000 ',
25
+ ' 00 22222222',
26
+ ' 0 22222222',
27
+ ' 22323232',
28
+ ' 22222222',
29
+ ' 22222222',
30
+ ],
31
+ };
32
+ export const eventIconWorkshop = {
33
+ palette: { '0': '#102a52', '1': '#bae6fd', '2': '#06b6d4' },
34
+ rows: [
35
+ '000000000000',
36
+ '000000000000',
37
+ '000100021000',
38
+ '001000020100',
39
+ '010000200010',
40
+ '010000200010',
41
+ '001002000100',
42
+ '000102001000',
43
+ '000000000000',
44
+ '000000000000',
45
+ ],
46
+ };
47
+ export const eventIconRepair = {
48
+ palette: { '0': '#94a3b8', '1': '#f1f5f9', '2': '#f59e0b' },
49
+ rows: [
50
+ ' 00 ',
51
+ ' 0 11 0 ',
52
+ ' 111111 ',
53
+ ' 100001 ',
54
+ '0 1102 011 0',
55
+ '0 110 2011 0',
56
+ ' 100001 ',
57
+ ' 111111 ',
58
+ ' 0 11 0 ',
59
+ ' 00 ',
60
+ ],
61
+ };
62
+ export const eventIconConference = {
63
+ palette: { '0': '#94a3b8', '1': '#102a52', '2': '#bae6fd', '3': '#f59e0b', '4': '#06b6d4' },
64
+ rows: [
65
+ '000000000000',
66
+ '011111111110',
67
+ '011112211110',
68
+ '011112213310',
69
+ '014412213310',
70
+ '014412213310',
71
+ '000000000000',
72
+ ' 00 ',
73
+ ' 00 ',
74
+ ' 000000 ',
75
+ ],
76
+ };
@@ -0,0 +1,101 @@
1
+ // Generated by scripts/generate-glyphs.mjs from JetBrains Mono; edit the script, not this file.
2
+ // One entry per printable ASCII character from space to ~: ink coverage 00 to ff for a 4 x 8 grid, row by row.
3
+ export const GLYPH_COLS = 4;
4
+ export const GLYPH_ROWS = 8;
5
+ export const GLYPHS = [
6
+ '0000000000000000000000000000000000000000000000000000000000000000',
7
+ '0000000000181800005858000051510000424200003d3d000014140000000000',
8
+ '00000000032a2a03099f9e090259580200000000000000000000000000000000',
9
+ '000000000020041d007d2f4e39b2a85b5fa4b239522b7d001402170000000000',
10
+ '00050700005768004b9b964e32be63000037a5605d959f60004b5a0000010200',
11
+ '00000000262900239293325473867700007c8c7c5e28989518001b1800000000',
12
+ '00000000003e2a0038828d0c29c30b07a22ba08a9f549f800b34031e00000000',
13
+ '000000000017170000545400002d2d0000000000000000000000000000000000',
14
+ '000000000011912200911f00009e0000009e0000008f210000108f2200000000',
15
+ '0000000022911100001f910000009e0000009e0000218f00228f100000000000',
16
+ '0000000000000000002c2c006294946202a0a002143737140000000000000000',
17
+ '0000000000000000001414000b5b5b0b3e99993e002f2f000000000000000000',
18
+ '0000000000000000000000000000000000000000003a4b00007b310000170200',
19
+ '00000000000000000000000001141401086c6c08000000000000000000000000',
20
+ '0000000000000000000000000000000000000000005c5c000016160000000000',
21
+ '000000000000474a0000a107002286000088210008a000004a45000000000000',
22
+ '00000000003b3b00596a6a5979434379793838794f7b7b500028280000000000',
23
+ '0000000000212300418f870004178700001787002364af34132e2e1c00000000',
24
+ '00000000003c3b005c6a735700005f4f004782003dc1552c142e2e1800000000',
25
+ '000000001b4242131a46bb1e00739c0a0701476062728a41002d240000000000',
26
+ '0000000000002f00004a6b0012a2231b806f8a461d367b460000100d00000000',
27
+ '0000000017424212576e41114f9c7f0d060141685a788449002a260000000000',
28
+ '0000000000062800007737001fc97510852525855e77775d0028280000000000',
29
+ '000000001f42422b735d638700008d1f000f9d0000733a00001f000000000000',
30
+ '00000000003b3b0055737355309392306e4f4f6e637575630029290000000000',
31
+ '00000000003b3c0068646469803030800a6ad018004a6d00001f030000000000',
32
+ '0000000000000000001616000056560000000000005454000018180000000000',
33
+ '0000000000000000001717000059590000000000004045000084290000180100',
34
+ '0000000000000000000011271b7e7a174292330000065d400000000000000000',
35
+ '0000000000000000000000003980803927595927112727110000000000000000',
36
+ '000000000000000027110000197f821b002e8e423e5d06000000000000000000',
37
+ '0000000009421b000a47a51e001c9a23008c2900006911000025030000000000',
38
+ '00000000003a45046f4d38838d2e7aa08d68258d8e2e826363642e0000293f00',
39
+ '00000000001e1e00008f91000196970233b8b8347c25237c1d00001d00000000',
40
+ '000000001a422e0063697e5163828c31634e52666378805e122e1f0000000000',
41
+ '0000000000373e00487d685b65390000653902063f8b7a5600242a0000000000',
42
+ '000000001a422600656988426539326c6539336b6578943a122e160000000000',
43
+ '000000001742421f5774411f578e641857591c0757835528102e2e1600000000',
44
+ '0000000019424222606d412160754c1960683713603e0000110b000000000000',
45
+ '0000000000393c004e776d546c3827126c3f767646867e4f0026290000000000',
46
+ '000000001a0f0f1a633b3b636383836363575763633b3b63120b0b1200000000',
47
+ '0000000014424214147d7d1400505000005050001a8b8b1a0e2e2e0e00000000',
48
+ '000000000000141400004f4f00004f4f11004f4f855a9a2902331c0000000000',
49
+ '000000001a0f052865396d4165819f006556ad026539575f120a012000000000',
50
+ '00000000091f000024790000247900002479000024a65539072e2e1f00000000',
51
+ '00000000231c1c2387827d8787847e8787232187871212871903031900000000',
52
+ '000000001b1e0c1b68a8306868a04d686847a7686830a4681309151300000000',
53
+ '00000000003a3a004d76764d6c32326c6c32326c458585450027270000000000',
54
+ '000000001a423702656a5c826555428e6581510765390000120a000000000000',
55
+ '00000000003b3b00596f6f5979242479792424794f8080500028a7170000141e',
56
+ '000000001a423300636a6b6c636162716375ba026339614d120a041c00000000',
57
+ '00000000003b38004f73723d33a14a01060d64685d78755d00292a0000000000',
58
+ '000000002a42422a2a7b7b29004f4f00004f4f00004f4f00000e0e0000000000',
59
+ '000000001b0e0e1b683535686835356868353568448686450028280000000000',
60
+ '000000002a00002a772a2a762e716e2e019d960100918d000015140000000000',
61
+ '000000002616182490686a898c6e6d858275727e6288875f0e17170e00000000',
62
+ '00000000280806283979723800908a0000989f0054595e552001012000000000',
63
+ '000000002c00002b6247426203a29d0300626200004f4f00000e0e0000000000',
64
+ '000000001b4242191a419f39001e8c00009b0f00519b5526142e2e1400000000',
65
+ '00000000008b8001009e0000009e0000009e0000009e00000089800100000000',
66
+ '000000004a47000008a1000000862200002188000000a0080000454a00000000',
67
+ '0000000001808b0000009e0000009e0000009e0000009e000180890000000000',
68
+ '0000000000171800008684002d615f2e0e03030e000000000000000000000000',
69
+ '0000000000000000000000000000000000000000000000004978784900000000',
70
+ '00000000005e0b0000141b000000000000000000000000000000000000000000',
71
+ '0000000000000000002627002c6d8249428490657761806502351d1200000000',
72
+ '000000001a0f0000654b2b006582814c6539306e65807f4e121f2e0000000000',
73
+ '000000000000000000222800438977516c3200004587745200252b0000000000',
74
+ '0000000000000f1a002b4b654c8181656e3039654e7f8065002e1f1200000000',
75
+ '000000000000000000242400477a7a4a7287794b487e6a300026290000000000',
76
+ '00000000000a40240088502354ca884700930b0000930b00001b020000000000',
77
+ '0000000000000000002b1d114b8483636b333a632e9c9363003a7e4c00413400',
78
+ '000000001a0f0000654c2b006580844c6539356865393568120a0a1300000000',
79
+ '00000000002c48000d3b31001b70790000247900266da63c142e2e2100000000',
80
+ '0000000000007301132b53002758b70000009e0000009e001945a3001c420c00',
81
+ '00000000181100005d41041b5d4183355d9fa7005d417744110c022000000000',
82
+ '000000003642050034a81300008a1300008a130000746c3900022a1f00000000',
83
+ '0000000000000000172a200d9577718d94414194944141941b0c0c1b00000000',
84
+ '0000000000000000111d2b006580844c6539356865393568120a0a1300000000',
85
+ '00000000000000000022220047858547722b2b72488382480024240000000000',
86
+ '0000000000000000111c2b006582814d6539306e657f7f4e654c2e001c0f0000',
87
+ '0000000000000000002b1c114d8082656e3039654e7e7f65002e4d6500000f1c',
88
+ '00000000000000000b1b320243996a6e435b0526435b00000c10000000000000',
89
+ '0000000000000000002a2900507b692d1e8d942c4168735c002e2e0000000000',
90
+ '00000000001100001eae2b143dbf582a009e0000008f5b2600062d1400000000',
91
+ '0000000000000000120909126835356868353568438687420026260000000000',
92
+ '00000000000000001b02011b67413e6710949010009793000014140000000000',
93
+ '0000000000000000170e0e168768687f7c747576538d914e0a17180900000000',
94
+ '000000000000000017080818278d8c29008f9000338383331d05051d00000000',
95
+ '00000000000000001b02021b5d4c4461069e9609007b860000802500002d0000',
96
+ '00000000000000000f2b2b0e1f58c0320066550040b25523132e2e1300000000',
97
+ '00000000000f993000247a00225967001f576d0000247a00000e973000000000',
98
+ '0000000000444400004f4f00004f4f00004f4f00004f4f000043430000000000',
99
+ '00000000309a110000811e00007e4e2200864a1f00801f003098100000000000',
100
+ '000000000000000000000000327e154e581c863b000000000000000000000000',
101
+ ];