พอร์ต 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,149 @@
|
||||
{
|
||||
"schema": 2,
|
||||
"route_id": "951",
|
||||
|
||||
"updated": "2026-10-04",
|
||||
"generated_from": "schedules.json",
|
||||
"station_order": [
|
||||
9,
|
||||
5,
|
||||
6,
|
||||
8
|
||||
],
|
||||
"directions": [
|
||||
{
|
||||
"direction_id": "from-9",
|
||||
"direction_label": null,
|
||||
"stops": [
|
||||
{
|
||||
"station_id": 9,
|
||||
"times": [
|
||||
"04:00",
|
||||
"04:20",
|
||||
"04:40",
|
||||
"05:00",
|
||||
"05:20",
|
||||
"05:40",
|
||||
"06:00",
|
||||
"06:20",
|
||||
"06:40",
|
||||
"07:00",
|
||||
"07:20",
|
||||
"07:40",
|
||||
"08:00",
|
||||
"08:20",
|
||||
"08:40",
|
||||
"09:00",
|
||||
"09:20",
|
||||
"09:40",
|
||||
"10:00",
|
||||
"10:20",
|
||||
"10:40",
|
||||
"11:00",
|
||||
"11:20",
|
||||
"11:40",
|
||||
"12:00",
|
||||
"12:20",
|
||||
"12:40",
|
||||
"13:00",
|
||||
"13:20",
|
||||
"13:40",
|
||||
"14:00",
|
||||
"14:20",
|
||||
"14:40",
|
||||
"15:00",
|
||||
"15:20",
|
||||
"15:40",
|
||||
"16:00",
|
||||
"16:20",
|
||||
"16:40",
|
||||
"17:00",
|
||||
"17:20",
|
||||
"17:40",
|
||||
"18:00"
|
||||
]
|
||||
},
|
||||
{
|
||||
"station_id": 8,
|
||||
"times": [],
|
||||
"direction_note": "ตลาดวิเศษชัยชาญ",
|
||||
"note": "ตลาดวิเศษชัยชาญ"
|
||||
},
|
||||
{
|
||||
"station_id": 8,
|
||||
"times": [],
|
||||
"direction_note": "ตลาดอ่างทอง",
|
||||
"note": "ตลาดอ่างทอง"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"direction_id": "new-2",
|
||||
"direction_label": null,
|
||||
"stops": [
|
||||
{
|
||||
"station_id": 6,
|
||||
"times": [
|
||||
"04:20",
|
||||
"04:40",
|
||||
"05:00",
|
||||
"05:20",
|
||||
"05:40",
|
||||
"06:00",
|
||||
"06:20",
|
||||
"06:40",
|
||||
"07:00",
|
||||
"07:20",
|
||||
"07:40",
|
||||
"08:00",
|
||||
"08:20",
|
||||
"08:40",
|
||||
"09:00",
|
||||
"09:20",
|
||||
"09:40",
|
||||
"10:00",
|
||||
"10:20",
|
||||
"10:40",
|
||||
"11:00",
|
||||
"11:20",
|
||||
"11:40",
|
||||
"12:00",
|
||||
"12:20",
|
||||
"12:40",
|
||||
"13:00",
|
||||
"13:20",
|
||||
"13:40",
|
||||
"14:00",
|
||||
"14:20",
|
||||
"14:40",
|
||||
"15:00",
|
||||
"15:20",
|
||||
"15:40",
|
||||
"16:00",
|
||||
"16:20",
|
||||
"16:40",
|
||||
"17:00",
|
||||
"17:20",
|
||||
"17:40",
|
||||
"18:00",
|
||||
"18:20",
|
||||
"18:40"
|
||||
]
|
||||
},
|
||||
{
|
||||
"station_id": 5,
|
||||
"derive": {
|
||||
"from_station_id": 6,
|
||||
"offset_min": 30,
|
||||
"note": "ท่ารถตู้ต่างจังหวัด รังสิต (รถจากจตุจักรผ่านมาถึง)"
|
||||
},
|
||||
"times": []
|
||||
},
|
||||
{
|
||||
"station_id": 9,
|
||||
"times": []
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
Reference in new issue
Block a user