Files
web-nuxt/app/composables/useCoolCityData.ts
T
Noel Sabia 2bc52a314d
ci / check (push) Successful in 55s
feat: build the Cool City public route demo
- add /cool, /cool?vote=1, /cool/stage and /cool/city on the existing Nuxt/Onyx stack
- wire real route/shade metrics and OSM geometry from the route bundle; city-gap data for the city view
- show shade % and direct-sun minutes together; recommend Accessible for Ruth with the 15% ramp trade-off
- add in-memory time/scene/round state and one anonymous vote per session, polled every 2 s
- keep the retail module linked but out of the Cool City story
2026-11-14 13:49:22 +01:00

9 lines
231 B
TypeScript

import type { CoolCityBundle } from '#shared/cool'
export async function useCoolCityData() {
const { data } = await useFetch<CoolCityBundle>('/cool-city/city-gap.json', {
key: 'cool-city-gap',
})
return { city: data }
}