velxio/frontend/public
David Montero Crespo edd2ac32d5 feat: add optional extension hooks for private overlays
Three small, backwards-compatible hooks let anyone with private features
(velxio.dev's analytics, custom integrations, paid tiers, …) layer them
on top of the open-source build without forking files.

Backend (app/main.py):
- After standard router registration, try-import an optional `app.pro`
  module exposing `register_pro(app)`. ImportError is silently swallowed
  (the OSS image doesn't ship `app.pro`, so this is a no-op there).

Frontend:
- EditorToolbar: new optional `rightSlot` prop renders extra elements
  after the built-in right-group buttons (mirrors the existing
  `centerSlot` pattern).
- main.tsx: dynamic `import('@pro/index')` gated by VITE_PRO_BUILD env.
  When unset (OSS build), the branch is dead-code-eliminated and no pro
  chunk is emitted.
- vite.config.ts: `@pro` alias resolves to `src/__pro_stub__/` by default.
  Private builds set `VITE_PRO_BUILD=true` and `PRO_OVERLAY_PATH=<path>`
  to point at their real overlay tree.
- src/__pro_stub__/index.ts: 1-line no-op `mountPro` so TypeScript and
  Vite resolvers stay happy in OSS builds.

Verified: `npm run build:docker` succeeds; `npm test` passes 1161/1162;
the OSS bundle (43 MB) contains zero references to `__pro_stub__`,
`@pro`, or `pro/index` (verified via `grep dist/`).

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
2026-05-04 14:03:20 -03:00
..
boards fix(install): unblock self-hosting + drop forced wokwi clones 2026-05-04 00:04:11 -03:00
component-svgs Add shared validators and test configurations for Velxio projects 2026-04-28 00:36:05 -03:00
firmware feat: add MicroPython support for ESP32-C3 (RISC-V) boards 2026-03-29 23:40:05 -03:00
android-chrome-192.png fix: replace Vite favicon with Velxio chip icon across all sizes 2026-03-06 17:36:03 -03:00
android-chrome-512.png fix: replace Vite favicon with Velxio chip icon across all sizes 2026-03-06 17:36:03 -03:00
apple-touch-icon.png fix: replace Vite favicon with Velxio chip icon across all sizes 2026-03-06 17:36:03 -03:00
components-metadata.json feat: add support for UC8159c (ACeP 7-colour) display 2026-04-30 00:27:40 -03:00
favicon-16x16.png fix: replace Vite favicon with Velxio chip icon across all sizes 2026-03-06 17:36:03 -03:00
favicon-32x32.png fix: replace Vite favicon with Velxio chip icon across all sizes 2026-03-06 17:36:03 -03:00
favicon-48x48.png fix: replace Vite favicon with Velxio chip icon across all sizes 2026-03-06 17:36:03 -03:00
favicon.ico fix: replace Vite favicon with Velxio chip icon across all sizes 2026-03-06 17:36:03 -03:00
favicon.svg fix: replace Vite favicon with Velxio chip icon across all sizes 2026-03-06 17:36:03 -03:00
image.png perf: optimize hero image for faster load times 2026-03-28 20:33:40 +01:00
image.webp perf: optimize hero image for faster load times 2026-03-28 20:33:40 +01:00
manifest.webmanifest feat: enhance SEO and public files for Velxio 2026-03-06 16:14:26 -03:00
og-image.png feat: add sensor parts and utilities for simulation 2026-03-08 02:20:21 -03:00
og-image.svg feat: enhance SEO and public files for Velxio 2026-03-06 16:14:26 -03:00
robots.txt feat: update SEO handling across various pages, enhance mobile tab navigation, and improve .gitignore for sensitive files 2026-03-23 17:15:29 -03:00
sitemap.xml feat: add optional extension hooks for private overlays 2026-05-04 14:03:20 -03:00
vite.svg feat: Implement Arduino Simulator with component management and simulation features 2026-03-03 00:20:49 -03:00