@nysds/playground 0.1.0 → 0.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +20 -10
- package/dist/assets/{index-LO1tomgR.css → index-BuPgmhhR.css} +1 -1
- package/dist/assets/{index-bBtGCGL_.js → index-EthD3ZNJ.js} +370 -368
- package/dist/index.html +115 -141
- package/index.html +113 -139
- package/package.json +1 -1
- package/presets/16-themes.json +2 -2
- package/src/app.css +155 -111
- package/src/deck-model.ts +47 -0
- package/src/decks.test.ts +55 -0
- package/src/main.ts +91 -27
- package/src/present.ts +9 -0
- package/src/slide-list.ts +276 -0
package/README.md
CHANGED
|
@@ -70,9 +70,13 @@ button, to force a rebuild. The HTML, CSS, and JS editors float in a
|
|
|
70
70
|
drawer over the bottom of the stage — drag the divider to resize it, or
|
|
71
71
|
press `c` to collapse it. The slide bar along the bottom shows a slide
|
|
72
72
|
picker in place of a title, grouped the way your slides are grouped,
|
|
73
|
-
with
|
|
74
|
-
**
|
|
75
|
-
|
|
73
|
+
with the slide count and **Slide settings** beside it. On the right sit
|
|
74
|
+
**Add slide**, **Delete slide**, **Duplicate slide**, **Previous**, and
|
|
75
|
+
**Next**. Previous and Next are disabled at the ends of the deck. On a
|
|
76
|
+
phone the bar takes two rows, with the actions on the second. Delete
|
|
77
|
+
slide asks first only when the slide has something to lose: code in an
|
|
78
|
+
editor, or a title, group, description, notes, version, or editor
|
|
79
|
+
setting someone changed.
|
|
76
80
|
|
|
77
81
|
The toolbar is one row: the NYSDS mark (a link to Home), the deck title,
|
|
78
82
|
**Deck settings**, and the **Saved** indicator on the left; the version
|
|
@@ -83,13 +87,18 @@ tooltips.
|
|
|
83
87
|
Click the deck title to rename it in place, the way a document title
|
|
84
88
|
behaves: type the new name, then press Enter or click away to save, or
|
|
85
89
|
Escape to cancel. **Deck settings**, the circle button next to the
|
|
86
|
-
title, opens a modal for the title, description,
|
|
87
|
-
into every slide's hidden head.
|
|
90
|
+
title, opens a modal for the title, description, the slide list, and
|
|
91
|
+
base CSS injected into every slide's hidden head. The slide list has one
|
|
92
|
+
row per slide, with the title and group as fields and **Move up**,
|
|
93
|
+
**Move down**, and **Remove**. Drag a row by its handle to reorder with
|
|
94
|
+
the pointer. Nothing changes until you select **Done**, so a removed
|
|
95
|
+
slide can be restored, and closing the modal discards the edits.
|
|
88
96
|
|
|
89
97
|
**Slide settings** opens the inspector for the current slide: title,
|
|
90
98
|
group, description, presenter notes, which of the HTML, CSS, and JS
|
|
91
99
|
columns start expanded in the side-by-side layout, and a design system
|
|
92
|
-
version to pin the slide to.
|
|
100
|
+
version to pin the slide to. To reorder slides, use the slide list in
|
|
101
|
+
**Deck settings**.
|
|
93
102
|
|
|
94
103
|
Edits save automatically, 500 milliseconds after you stop typing, with a
|
|
95
104
|
brief **Saved** indicator to confirm it. Leaving the editor — selecting
|
|
@@ -136,12 +145,13 @@ unsaved edits.
|
|
|
136
145
|
|
|
137
146
|
Select **Present** in the editor toolbar, or **Present** on a deck card,
|
|
138
147
|
to present a deck. Presenting reuses the same layout: it hides the
|
|
139
|
-
toolbar and the slide-editing controls, requests fullscreen
|
|
140
|
-
|
|
141
|
-
|
|
148
|
+
toolbar and the slide-editing controls, and requests fullscreen. In
|
|
149
|
+
place of the edit-only controls, the slide bar shows, in order, **Edit**
|
|
150
|
+
(returns to
|
|
142
151
|
editing), presenter **Notes**, **Reset slide** (discards this session's
|
|
143
152
|
edits to the current slide and reloads what's saved), and **Settings**
|
|
144
|
-
(opens the settings modal without leaving the presentation)
|
|
153
|
+
(opens the settings modal without leaving the presentation), followed by
|
|
154
|
+
**Previous** and **Next**. Opening a
|
|
145
155
|
deck with `?present=1` presents it directly. Escape exits presentation
|
|
146
156
|
mode, and leaves fullscreen with it.
|
|
147
157
|
|