- Item 10: Convert to ES modules with import/export, single module entry point
- Item 11: Replace inline styles with CSS classes (background overlay, card
animations, highlight effect, config modal form elements)
- Item 12: Move ConfigManager modal HTML from JS template literal to
<template> element in index.html
- Item 13: Replace deprecated url.parse() with new URL() in server.js
and update route handlers to use searchParams
- Item 14: Replace JSON.parse/stringify deep clone with structuredClone()
- Item 15: Remove dead JSON-fixing regex code from departures.js route
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
- Split server.js routes into modular files (server/routes/)
- departures.js: Departure data endpoints
- sites.js: Site search and nearby sites
- config.js: Configuration endpoints
- Reorganized file structure following Node.js best practices:
- Moved sites-config.json to config/sites.json
- Moved API_RESPONSE_DOCUMENTATION.md to docs/
- Moved raspberry-pi-setup.sh to scripts/
- Archived legacy files to archive/ directory
- Updated all code references to new file locations
- Added archive/ to .gitignore to exclude legacy files from repo
- Updated README.md with new structure and organization
- All functionality tested and working correctly
Version: 1.2.0