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

108 lines
2.4 KiB
JSON

{
"schema": 2,
"route_id": "464",
"updated": "2026-10-04",
"generated_from": "schedules.json",
"station_order": [
9,
1,
10
],
"directions": [
{
"direction_id": "all",
"direction_label": "จากบขส.สุพรรณบุรี / บขส.สระบุรี",
"stops": [
{
"station_id": 9,
"times": [
"04:40",
"05:10",
"05:40",
"06:10",
"06:40",
"07:10",
"07:40",
"08:15",
"08:50",
"09:25",
"10:00",
"10:35",
"11:10",
"11:45",
"12:20",
"12:55",
"13:30",
"14:05",
"14:40",
"15:15",
"15:50",
"16:25",
"17:00",
"17:40"
]
},
{
"station_id": 10,
"times": [
"05:00",
"05:40",
"06:20",
"07:10",
"08:00",
"08:40",
"09:20",
"10:00",
"10:40",
"11:20",
"12:00",
"12:40",
"13:20",
"14:00",
"14:40",
"15:20",
"16:00",
"16:40",
"17:20",
"18:00"
]
}
]
},
{
"direction_id": "dir-1",
"direction_label": "ออกจากอ่างทอง",
"stops": [
{
"station_id": 1,
"times": [],
"direction_note": "ไปสุพรรณบุรี",
"derive": {
"from_station_id": 10,
"offset_min": 90,
"note": "ถึงอ่างทองหลังรถออกจาก บขส.สระบุรี 90 นาที"
}
}
]
},
{
"direction_id": "dir-2",
"direction_label": "ออกจากอ่างทอง",
"stops": [
{
"station_id": 1,
"times": [],
"direction_note": "ไปสระบุรี",
"note": null,
"derive": {
"from_station_id": 9,
"offset_min": 60,
"note": "ถึงอ่างทองหลังรถออกจาก บขส.สุพรรณบุรี 60 นาที"
}
}
]
}
]
}