Repository navigation
Commit f7283d9
committed
hyperbook: package the embedded IDE for hyperbook
Everything needed to ship this fork's embedded build as a hyperbook
element, kept apart from the IDE changes so that rebasing onto upstream
stays cheap:
- a release workflow that builds the embedded bundle and attaches it to
a GitHub release
- includeIDE.js points at onlineide2.openpatch.org rather than
learnj.de
- EmbeddedIndexedDB stores scripts and databases through hyperbook's own
Dexie database instead of opening an IndexedDB of its own, so a
reader's work lives with the rest of the book's state
- package-lock.json is tracked (upstream ignores it) so the release
workflow installs the exact tree that was tested
The tables are reached as `hyperbook.store.db.sqlideScripts` and
`.sqlideDatabases`. `hyperbook.store` itself only carries db, export,
reset and import, so the tables were undefined one level up: open() took
the "not available" branch, never called back, and nothing was ever
loaded or saved.1 parent 4b81b4d commit f7283d9
5 files changed
Lines changed: 1683 additions & 127 deletions
File tree
- .github/workflows
- public
- src/client/embedded
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
0 commit comments