Self-host pinned WASM demo from dasher-web releases - #42
Open
willwade wants to merge 7 commits into
Open
Conversation
…abets New /alphabets page driven by the generated alphabet_index.json (from DasherCore's Scripts/generate-alphabet-index.py): all 474 alphabets with search + filters (writing system, direction, corpus tier), RTL and script badges, lang codes, and data-issue flags. The index is a single generated artifact shared with the engine's data QA. Downloads page: v6 ships every alphabet built in — the hand-maintained per-language download list (many stale filenames) is gone. Replaced with a browse link to /alphabets, kept training texts and the Dasher 5 archive, and rewrote the install instructions for CUSTOM alphabets only (correct v6 user dirs). Signed-off-by: will wade <willwade@gmail.com>
116 alphabets carry duplicate symbol definitions (autoconversion-era case groups on caseless scripts, shared Mandarin tone outputs); the index now flags them and the card warning tooltip lists all flags. Signed-off-by: will wade <willwade@gmail.com>
…plain JS) The type alias broke the lint job; normalizing the JSON union shape with plain JS instead. astro check + eslint both clean. Signed-off-by: will wade <willwade@gmail.com>
Signed-off-by: will wade <willwade@gmail.com>
The homepage iframe now points at /demo/, populated at build time by scripts/fetch-demo.mjs from the dasher-wasm-demo-<tag>.zip artifact that dasher-web's wasm-release workflow attaches to v* tags. This pins the site to a known-good demo build instead of tracking the always- moving GitHub Pages deployment, and serves the wasm + data bundle from the site's own origin. Pins v0.2.1 (DasherCore v0.2.16, 10 trained languages: en, de, es, fr, it, pt, nl, pl, ru, ar). Bump via DASHER_DEMO_VERSION. public/demo/ and .cache/ are gitignored; the prebuild hook fetches (and caches) the artifact. Verified locally: iframe loads the demo, 19 alphabets offered, Russian switches and types Cyrillic at ~50 FPS. Signed-off-by: will wade <willwade@gmail.com>
v0.2.2 fixes the demo canvas: letter boxes now render as complete boxes (Web Demo palette — greens/blues cycling by sibling index and depth; legacy group-container white-out and the giant yellow uppercase-group block are gone). Verified against the built site: 0 white boxes in a frame, alternating #add8e6/#87ceeb letter pairs. Signed-off-by: will wade <willwade@gmail.com>
Collaborator
Author
|
Pinned to v0.2.2 — the WASM demo now renders letter boxes as complete boxes (Web Demo palette). Verified against the built site: 0 white group boxes, alternating blue/green letter pairs. Also on dasher-web main: server.js deleted (use |
- Pin the self-hosted demo to v0.2.8 (same lean demo behaviour; picks up the release-CI fix release) - 'Try It Now' now links the enhanced playground on GitHub Pages (settings from the engine manifest, 33 locales, game mode, WPM, 470+ alphabets, themes and layouts) Signed-off-by: will wade <willwade@gmail.com>
Collaborator
Author
|
Bumped the pin to v0.2.8 (carries the release-CI fix; demo behaviour unchanged from v0.2.2) and the homepage 'Try It Now' section now links the enhanced playground — settings from the engine manifest, 33 locales, game mode, WPM readout, 470+ alphabets, themes, layouts. Verified in the local build: v0.2.8 embedded + link present. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
/demo/— populated at build time from thedasher-wasm-demo-<tag>.ziprelease artifact (dasher-web's new wasm-release workflow)scripts/fetch-demo.mjsdownloads + unpacks the pinned artifact intopublic/demo/(gitignored, cached in.cache/); version bumped viaDASHER_DEMO_VERSIONVerified locally
npm run buildfetches and embeds the artifact (11MB)яFollow-ups