Files
web-at-transit/frontend
Bkk1234 e6cef15dc8 Fix 'stops near me' button: it was dead code
stops.nearme.ts exported a default mount() but PageRuntime only invokes
the default export of stops.init; this module was imported for its side
effects and never called, so the button did nothing at all.

- self-bind on import with a dataset.nearBound guard against double binding
- retry up to ~2s while ATMap finishes loading
- map.ts: re-enable the button after a successful lookup (it stayed
  disabled forever, so a second press was impossible)

Verified with geolocation override at 14.5880,100.4530: first press
renders the map plus 8 nearest stops with distances, button re-enables,
second press works, and no duplicated network requests (2 per press).
2026-10-24 00:03:05 +07:00
..
2026-05-24 22:55:17 +07:00
2026-05-24 22:55:17 +07:00
2026-05-24 22:55:17 +07:00
2026-05-24 22:55:17 +07:00
2026-05-24 22:55:17 +07:00
2026-05-24 22:55:17 +07:00
2026-05-24 22:55:17 +07:00

Frontend — Next.js App Router

npm install
npm run dev

Talks to backend purely via REST through nginx (/api/*, /files/*).