พอร์ต 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
This commit is contained in:
1 parent
24187fc3b7
commit
138a3d15d8
300 files changed
+20213
-1978
No files matched your search
@@ -0,0 +1,126 @@
|
||||
{
|
||||
"schema": 3,
|
||||
"route_id": "101",
|
||||
|
||||
"updated": "2026-10-04",
|
||||
"route_name": "อ่างทอง-ป่าโมก-อยุธยา",
|
||||
"station_order": [
|
||||
1,
|
||||
2,
|
||||
3
|
||||
],
|
||||
"weekday": {
|
||||
"label": "เวลาวันทำงาน",
|
||||
"directions": {
|
||||
"ออกจากอ่างทอง": {
|
||||
"from_station_id": 1,
|
||||
"departures": [
|
||||
"07:30",
|
||||
"08:20",
|
||||
"09:10",
|
||||
"10:00",
|
||||
"10:50",
|
||||
"11:50",
|
||||
"13:00",
|
||||
"14:00",
|
||||
"15:00"
|
||||
]
|
||||
},
|
||||
"ออกจากอยุธยา": {
|
||||
"from_station_id": 3,
|
||||
"departures": [
|
||||
"07:30",
|
||||
"08:20",
|
||||
"09:10",
|
||||
"10:00",
|
||||
"10:50",
|
||||
"11:40",
|
||||
"12:30",
|
||||
"13:20",
|
||||
"14:10",
|
||||
"15:00",
|
||||
"15:50",
|
||||
"16:40",
|
||||
"17:30",
|
||||
"18:30"
|
||||
]
|
||||
},
|
||||
"ป่าโมกไปอ่างทอง": {
|
||||
"from_station_id": 2,
|
||||
"departures": [
|
||||
"08:00",
|
||||
"08:50",
|
||||
"09:40",
|
||||
"10:30",
|
||||
"11:20",
|
||||
"12:20",
|
||||
"13:30",
|
||||
"14:30",
|
||||
"15:30"
|
||||
]
|
||||
},
|
||||
"ป่าโมกไปอยุธยา": {
|
||||
"from_station_id": 2,
|
||||
"departures": [
|
||||
"06:30",
|
||||
"07:20",
|
||||
"08:10",
|
||||
"09:00",
|
||||
"09:50",
|
||||
"10:40",
|
||||
"11:30",
|
||||
"12:20",
|
||||
"13:10",
|
||||
"14:00",
|
||||
"14:50",
|
||||
"15:40",
|
||||
"16:30",
|
||||
"17:30"
|
||||
]
|
||||
}
|
||||
}
|
||||
},
|
||||
"holiday": {
|
||||
"label": "เวลาวันหยุด",
|
||||
"directions": {
|
||||
"ออกจากอ่างทอง": {
|
||||
"from_station_id": 1,
|
||||
"departures": [
|
||||
"09:30",
|
||||
"10:30",
|
||||
"12:00",
|
||||
"14:30"
|
||||
]
|
||||
},
|
||||
"ออกจากอยุธยา": {
|
||||
"from_station_id": 3,
|
||||
"departures": [
|
||||
"06:50",
|
||||
"08:30",
|
||||
"10:00",
|
||||
"11:40",
|
||||
"13:20",
|
||||
"15:00",
|
||||
"17:00"
|
||||
]
|
||||
},
|
||||
"ป่าโมกไปอ่างทอง": {
|
||||
"from_station_id": 2,
|
||||
"departures": [
|
||||
"06:20",
|
||||
"08:30"
|
||||
]
|
||||
},
|
||||
"ป่าโมกไปอยุธยา": {
|
||||
"from_station_id": 2,
|
||||
"departures": [
|
||||
"07:40",
|
||||
"09:20",
|
||||
"10:50",
|
||||
"12:30",
|
||||
"13:20"
|
||||
]
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user