พอร์ต 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,104 @@
|
||||
{
|
||||
"schema": 2,
|
||||
"route_id": "902",
|
||||
|
||||
"updated": "2026-10-04",
|
||||
"generated_from": "schedules.json",
|
||||
"station_order": [
|
||||
1,
|
||||
15,
|
||||
6
|
||||
],
|
||||
"directions": [
|
||||
{
|
||||
"direction_id": "from-1",
|
||||
"direction_label": null,
|
||||
"stops": [
|
||||
{
|
||||
"station_id": 1,
|
||||
"times": [
|
||||
"04:00",
|
||||
"04:30",
|
||||
"05:00",
|
||||
"05:30",
|
||||
"06:00",
|
||||
"06:30",
|
||||
"07:00",
|
||||
"07:30",
|
||||
"08:00",
|
||||
"08:30",
|
||||
"09:00",
|
||||
"09:30",
|
||||
"10:00",
|
||||
"10:30",
|
||||
"11:00",
|
||||
"11:30",
|
||||
"12:00",
|
||||
"12:30",
|
||||
"13:00",
|
||||
"13:30",
|
||||
"14:00",
|
||||
"14:30",
|
||||
"15:00",
|
||||
"15:30",
|
||||
"16:00",
|
||||
"16:30",
|
||||
"17:00",
|
||||
"17:30"
|
||||
]
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"direction_id": "rungsit",
|
||||
"direction_label": null,
|
||||
"stops": [
|
||||
{
|
||||
"station_id": 15,
|
||||
"derive": {
|
||||
"from_station_id": 6,
|
||||
"offset_min": 30,
|
||||
"note": "รอรถที่ 7-11 หน้ากินซ่า (รถจากจตุจักรผ่านมาถึง)"
|
||||
},
|
||||
"times": []
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"direction_id": "all",
|
||||
"direction_label": null,
|
||||
"stops": [
|
||||
{
|
||||
"station_id": 6,
|
||||
"times": [
|
||||
"06:00",
|
||||
"06:30",
|
||||
"07:00",
|
||||
"07:30",
|
||||
"08:00",
|
||||
"08:30",
|
||||
"09:00",
|
||||
"09:30",
|
||||
"10:00",
|
||||
"10:30",
|
||||
"11:00",
|
||||
"11:30",
|
||||
"12:00",
|
||||
"12:30",
|
||||
"13:00",
|
||||
"13:30",
|
||||
"14:00",
|
||||
"14:30",
|
||||
"15:00",
|
||||
"15:30",
|
||||
"16:00",
|
||||
"16:30",
|
||||
"17:00",
|
||||
"17:30",
|
||||
"18:00"
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
Reference in new issue
Block a user