From 0cbac64c6ffd8ba433bd746cbaf1e83f528c1916 Mon Sep 17 00:00:00 2001 From: a2nr Date: Sat, 18 Jul 2026 17:26:59 +0700 Subject: [PATCH] feat(frontend): Velxio iframe fullscreen + playground route + SvelteKit service worker - VelxioTab: add allowfullscreen to Velxio editor iframe - lesson.css: flex/shrink fixes for .velxio-iframe on mobile - +layout.svelte: hide Navbar/Footer on /playground full-viewport route - Add /playground route: Velxio editor iframe + DeployFAB bridge - Migrate static sw.js to SvelteKit module service-worker.ts --- frontend/src/routes/+layout.svelte | 14 ++- .../src/routes/lesson/[slug]/VelxioTab.svelte | 3 +- frontend/src/routes/lesson/[slug]/lesson.css | 25 ++++- frontend/src/routes/playground/+page.svelte | 97 +++++++++++++++++++ frontend/src/routes/playground/+page.ts | 3 + .../{static/sw.js => src/service-worker.ts} | 16 +-- 6 files changed, 145 insertions(+), 13 deletions(-) create mode 100644 frontend/src/routes/playground/+page.svelte create mode 100644 frontend/src/routes/playground/+page.ts rename frontend/{static/sw.js => src/service-worker.ts} (86%) diff --git a/frontend/src/routes/+layout.svelte b/frontend/src/routes/+layout.svelte index 3298a7d..b717305 100644 --- a/frontend/src/routes/+layout.svelte +++ b/frontend/src/routes/+layout.svelte @@ -1,5 +1,6 @@ - +{#if !isFullViewport} + +{/if} -
+
{@render children()}
-