velxio/frontend/src/services
davidmonterocrespo24 24f84442e8 feat(frontend): runtime API base + desktop overlay extension points
Adds `lib/apiBase.ts` so the SPA can be repointed at a non-default backend
at runtime (via `window.__VELXIO_API_BASE__`) without losing the existing
`VITE_API_BASE` build-time override or the default `/api` reverse-proxy
behaviour. compilation / libraryService / projectService / metricsService
all flow through it now; axios clients use a request interceptor so the
base resolves per-request rather than at module-load time.

main.tsx grows a `VITE_DESKTOP` flag: when set, the @pro overlay is
skipped (the desktop shell handles license + auth natively) and a
small `./desktop/index` module is dynamic-imported in its place. OSS
builds tree-shake both branches.

LandingPage gets a `data-velxio-slot="landing-hero-primary-cta"` marker
above the existing hero CTAs so velxio.dev can inject an OS-detect
"Download Velxio Desktop" button as the visual primary. The slot is
empty in pure OSS.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
2026-05-21 04:50:19 +02:00
..
ComponentRegistry.ts feat(chips): programmable retro CPU chips with external ROM 2026-05-18 23:38:18 -03:00
chipCompileService.ts Add ESP32 chip demos and comprehensive tests for I2C, SPI, and UART interactions 2026-04-28 19:24:39 -03:00
compilation.ts feat(frontend): runtime API base + desktop overlay extension points 2026-05-21 04:50:19 +02:00
libraryService.ts feat(frontend): runtime API base + desktop overlay extension points 2026-05-21 04:50:19 +02:00
metricsService.ts feat(frontend): runtime API base + desktop overlay extension points 2026-05-21 04:50:19 +02:00
projectService.ts feat(frontend): runtime API base + desktop overlay extension points 2026-05-21 04:50:19 +02:00
romCompileService.ts feat(chips): C-to-Z80 compile via SDCC + LED chaser example 2026-05-19 00:31:10 -03:00