Files
itmeadmin 138a3d15d8 พอร์ต UI จาก web-at-transit-mock เข้า Next.js + data sync เข้า Postgres/SeaweedFS
- 8 หน้า (home/stops/routes/stop/check/blog/about/credits) แปลง partials → React component ตรง mock
- ตรรกะพอร์ตเป็น src/lib/ui/*.ts (mount()) + runtime/PageRuntime
- CSS: base + pages/*.css import ต่อ route (คงลำดับ cascade ของ mock)
- asset/content: public/{image,resource/data,content,locales,vendor}
- แก้ path รูปไทล์พาร์ทเนอร์ (.image → /image) + fallback absolute
- ลบ UI เดิมที่ไม่ตรง mock (expanded/stops details/old components/globals.css)
- script/sync_data_to_postgres.mjs + sync_images_to_storage.mjs (dry-run/--apply, backup)
- docs/UI-PORT.md + DESIGN.md + README
2026-10-23 15:50:00 +07:00

91 lines
1.7 KiB
JSON

{
"schema": 2,
"route_id": "8",
"updated": "2026-10-04",
"generated_from": "schedules.json",
"station_order": [
13,
8,
6,
5
],
"directions": [
{
"direction_id": "all",
"direction_label": null,
"stops": [
{
"station_id": 13,
"times": [
"07:30",
"10:00"
]
}
],
"speedKmh": 60
},
{
"direction_id": "dir-1",
"direction_label": null,
"stops": [
{
"station_id": 6,
"times": [
"10:00",
"13:00"
],
"direction_note": null,
"note": null
}
]
},
{
"direction_id": "rungsit",
"direction_label": "ตลาดแสวงหา",
"stops": [
{
"station_id": 8,
"derive": {
"from_station_id": 13,
"offset_min": 90,
"note": null
},
"times": []
}
]
},
{
"direction_id": "rungsit",
"direction_label": "ตลาดสดเทศบาลตำบลโพธิ์ทอง",
"stops": [
{
"station_id": 8,
"derive": {
"from_station_id": 13,
"offset_min": 110,
"note": null
},
"times": []
}
]
},
{
"direction_id": "rungsit",
"direction_label": null,
"stops": [
{
"station_id": 5,
"derive": {
"from_station_id": 6,
"offset_min": 30,
"note": null
},
"times": []
}
]
}
]
}