From bcee6b2c68890d8ce88136a8f82fe4343f0c6a0f Mon Sep 17 00:00:00 2001 From: Noel Sabia Date: Sat, 14 Nov 2026 21:04:23 +0100 Subject: [PATCH 1/2] feat: add live playground forecast console --- app/app.vue | 6 +- app/components/PlaygroundChart.vue | 513 ++++++++++++++ app/layouts/default.vue | 22 +- app/pages/playground.vue | 1000 ++++++++++++++++++++++++++++ app/utils/playground.ts | 165 +++++ nuxt.config.ts | 7 + server/api/playground.get.ts | 67 ++ shared/types.ts | 19 + test/playground.test.ts | 144 ++++ 9 files changed, 1931 insertions(+), 12 deletions(-) create mode 100644 app/components/PlaygroundChart.vue create mode 100644 app/pages/playground.vue create mode 100644 app/utils/playground.ts create mode 100644 server/api/playground.get.ts create mode 100644 test/playground.test.ts diff --git a/app/app.vue b/app/app.vue index 2d92d8e..102794b 100644 --- a/app/app.vue +++ b/app/app.vue @@ -14,7 +14,9 @@ const usingMock = computed(() => { return value === true || value === '1' || value === 'true' }) -const isSensing = computed(() => route.path === '/' || route.path.startsWith('/sensors')) +const isNewShell = computed( + () => route.path === '/' || route.path.startsWith('/sensors') || route.path.startsWith('/playground'), +) const isCool = computed(() => route.path.startsWith('/cool')) const isDarkPresentation = computed( () => route.path === '/stage' || route.path === '/live' || route.path === '/cool/stage', @@ -59,7 +61,7 @@ onBeforeUnmount(() => navRoleObserver?.disconnect())