This is the website front-end to for flashing ESP32 devices with Tactility.
Before you can build the project, make sure you:
- Installed NodeJS
- Run
npm install
Continuous building with local web server:
npm run start -- --port 3000Building static files into dist/:
npm run buildTo keep devices off the website, add their identifiers to src/hidden-devices.json:
["lilygo-tdeck", "m5stack-cores3"]Hidden devices don't show up for any version, and links like #lilygo-tdeck won't select them.
The installer is available in English, German, Spanish, French, Japanese, Korean, Simplified Chinese and Traditional Chinese. All texts are in src/i18n.js, the language names and page metadata in src/languages.json.
tactilityproject.org has no French or Korean pages yet, so those languages link to its English pages ("website": false in languages.json).
English is at the root, the other languages have their own path, e.g. https://install.tactilityproject.org/de/#lilygo-tdeck. The language is picked in this order:
- The path, e.g.
/de/. The root is English only when nothing below asks for another language. - The
langquery parameter, e.g.https://install.tactilityproject.org/?lang=de#lilygo-tdeck. The translated pages of tactilityproject.org link with it. - The language picked in the language menu (remembered in the browser).
- The browser's preferred languages. Chinese for Taiwan, Hong Kong and Macau (
zh-TW,zh-HK,zh-MO) andzh-Hantget Traditional Chinese (/zh-tw/), other Chinese gets Simplified Chinese (/zh/). - English.
The address then changes to the path of that language, e.g. /?lang=de becomes /de/.
Device warnings and notes come from the firmware index on the CDN and are not translated.
Pushing to main builds the site and deploys it to GitHub Pages with the
Deploy workflow.