Files
web-at-transit/frontend/public/resource/data/_schedules_single_backup.json
T
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

875 lines
19 KiB
JSON

{
"schema": 2,
"routes": [
{
"route_id": "101",
"station_order": [
1,
2,
3
],
"directions": [
{
"dir_id": "Ayuthya2Angthong",
"dir_label": null,
"stops": [
{
"station_id": 3,
"times": [
"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"
],
"dir_note": "ตารางวันทำงาน",
"note": null
},
{
"station_id": 3,
"times": [
"06:50",
"08:30",
"10:00",
"11:40",
"13:20",
"15:00",
"17:00"
],
"dir_note": "ตารางวันหยุด",
"note": null
}
]
},
{
"dir_id": "Angthong2Ayuthya",
"dir_label": null,
"stops": [
{
"station_id": 1,
"times": [
"07:30",
"08:20",
"09:10",
"10:00",
"10:50",
"11:50",
"13:00",
"14:00",
"15:00"
],
"dir_note": "ตารางวันทำงาน"
},
{
"station_id": 1,
"times": [
"09:30",
"10:30",
"12:00",
"14:30"
],
"dir_note": "ตารางวันหยุด"
}
]
},
{
"dir_id": "dir-1",
"dir_label": "ไปอยุธยา",
"stops": [
{
"station_id": 2,
"times": [
"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"
],
"dir_note": "ตารางวันทำงาน"
},
{
"station_id": 2,
"times": [
"07:40",
"09:20",
"10:50",
"12:30",
"13:20"
],
"dir_note": "ตารางวันหยุด"
}
]
},
{
"dir_id": "dir-2",
"dir_label": "ไปอ่างทอง",
"stops": [
{
"station_id": 2,
"times": [
"08:00",
"08:50",
"09:40",
"10:30",
"11:20",
"12:20",
"13:30",
"14:30",
"15:30"
],
"dir_note": "ตารางวันทำงาน"
},
{
"station_id": 2,
"times": [
"06:20",
"08:30"
],
"dir_note": "ตารางวันหยุด"
}
]
}
]
},
{
"route_id": "15",
"station_order": [
1,
2,
4,
5,
6
],
"directions": [
{
"dir_id": "from-1",
"dir_label": null,
"stops": [
{
"station_id": 1,
"times": [
"05:00",
"05:45",
"06:30",
"07:30"
]
}
]
},
{
"dir_id": "all",
"dir_label": null,
"stops": [
{
"station_id": 2,
"times": [
"05:30",
"06:20",
"07:05",
"07:55",
"08:40",
"09:30",
"11:20",
"12:10",
"13:00",
"15:00"
]
},
{
"station_id": 6,
"times": [
"06:00",
"08:30",
"09:15",
"10:00",
"12:30",
"14:00",
"15:00",
"16:00"
]
}
]
},
{
"dir_id": "new-3",
"dir_label": null,
"stops": [
{
"station_id": 6,
"times": []
}
],
"autoTimes": true
}
]
},
{
"route_id": "902",
"station_order": [
1,
5,
6
],
"directions": [
{
"dir_id": "from-1",
"dir_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"
]
}
]
},
{
"dir_id": "all",
"dir_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"
]
}
]
}
]
},
{
"route_id": "951",
"station_order": [
9,
20,
5,
6,
8
],
"directions": [
{
"dir_id": "from-9",
"dir_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": [
"05:45"
],
"dir_note": "ตลาดวิเศษชัยชาญ",
"note": "ตลาดวิเศษชัยชาญ"
},
{
"station_id": 8,
"times": [
"10:35"
],
"dir_note": "ตลาดอ่างทอง",
"note": "ตลาดอ่างทอง"
}
]
},
{
"dir_id": "new-2",
"dir_label": null,
"stops": [
{
"station_id": 6,
"times": [
"04:00"
]
},
{
"station_id": 5,
"times": [
"05:00"
]
},
{
"station_id": 9,
"times": []
}
]
}
]
},
{
"route_id": "952",
"station_order": [
11,
12
],
"directions": [
{
"dir_id": "dir-1",
"dir_label": "จากตลาดวิเศษ",
"stops": [
{
"station_id": 8,
"times": [
"04:30",
"10:00",
"15:00"
],
"dir_note": "จากตลาดวิเศษ",
"note": "10:00 มีเฉพาะวันหยุด"
}
]
},
{
"dir_id": "all",
"dir_label": null,
"stops": [
{
"station_id": 12,
"times": [
"07:00",
"10:30",
"15:00"
],
"note": " 7:00 มีเฉพาะวันหยุด"
}
]
}
]
},
{
"route_id": "954",
"station_order": [
20,
5,
6,
8
],
"directions": [
{
"dir_id": "dir-1",
"dir_label": "จากตลาดท่าช้าง",
"stops": [
{
"station_id": 8,
"times": [
"03:30",
"05:10",
"10:20",
"12:40"
],
"dir_note": "จากตลาดท่าช้าง"
}
]
}
]
},
{
"route_id": "8",
"station_order": [
5,
6,
8,
13
],
"directions": [
{
"dir_id": "all",
"dir_label": null,
"stops": [
{
"station_id": 13,
"times": [
"07:30",
"10:00"
]
}
],
"speedKmh": 60
},
{
"dir_id": "dir-1",
"dir_label": null,
"stops": [
{
"station_id": 6,
"times": [
"10:00",
"13:00"
],
"dir_note": "จากโพธิ์ทอง",
"note": "เวลาเปลี่ยนทุกวัน"
}
]
}
]
},
{
"route_id": "464",
"station_order": [
1,
9,
10
],
"directions": [
{
"dir_id": "all",
"dir_label": null,
"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"
]
}
]
},
{
"dir_id": "dir-1",
"dir_label": "ไปสุพรรณบุรี",
"stops": [
{
"station_id": 1,
"times": [
"06:30",
"07:10",
"07:50",
"08:40",
"09:30",
"10:10",
"10:50",
"11:30",
"12:10",
"12:50",
"13:30",
"14:10",
"14:50",
"15:30",
"16:10",
"16:50",
"17:30",
"18:10",
"18:50",
"19:30"
],
"dir_note": "ไปสุพรรณบุรี"
}
]
},
{
"dir_id": "dir-2",
"dir_label": "ไปสระบุรี",
"stops": [
{
"station_id": 1,
"times": [
"05:40",
"06:10",
"06:40",
"07:10",
"07:40",
"08:10",
"08:40",
"09:15",
"09:50",
"10:25",
"11:00",
"11:35",
"12:10",
"12:45",
"13:20",
"13:55",
"14:30",
"15:05",
"15:40",
"16:15",
"16:50",
"17:25",
"18:00",
"18:40"
],
"dir_note": "ไปสระบุรี",
"note": null
}
]
}
]
},
{
"route_id": "641",
"station_order": [
1,
7,
8
],
"directions": [
{
"dir_id": "from-1",
"dir_label": null,
"stops": [
{
"station_id": 1,
"times": [
"07:00",
"08:00",
"09:00",
"10:00",
"11:00",
"12:00",
"13:30",
"14:30",
"16:30"
]
}
]
},
{
"dir_id": "all",
"dir_label": null,
"stops": [
{
"station_id": 7,
"times": [
"07:00",
"08:00",
"09:00",
"10:00",
"11:00",
"12:00",
"13:30",
"14:30",
"16:30"
],
"note": "10:00 และ 13:30 ไม่ได้มีทุกวัน"
}
]
}
]
},
{
"route_id": "2194",
"station_order": [
4,
8
],
"directions": [
{
"dir_id": "dir-1",
"dir_label": "จากวัดหัวเวียง",
"stops": [
{
"station_id": 8,
"times": [
"05:00",
"06:00",
"07:00"
],
"dir_note": "จากวัดหัวเวียง"
}
]
},
{
"dir_id": "from-4",
"dir_label": null,
"stops": [
{
"station_id": 4,
"times": [
"16:00",
"17:00",
"18:00"
]
}
]
}
]
},
{
"route_id": "324",
"station_order": [
1,
8
],
"directions": [
{
"dir_id": "from-1",
"dir_label": null,
"stops": [
{
"station_id": 1,
"times": [
"10:00"
]
}
]
},
{
"dir_id": "dir-1",
"dir_label": "จากวัดไชโยวรวิหาร",
"stops": [
{
"station_id": 8,
"times": [
"08:00"
],
"dir_note": "จากวัดไชโยวรวิหาร"
}
]
}
]
},
{
"route_id": "1011",
"station_order": [
1,
8
],
"directions": [
{
"dir_id": "from-1",
"dir_label": null,
"stops": [
{
"station_id": 1,
"times": [
"12:00",
"16:00",
"17:00"
]
}
]
},
{
"dir_id": "dir-1",
"dir_label": "จากวัดสีบัวทอง",
"stops": [
{
"station_id": 8,
"times": [
"06:00",
"06:30",
"14:30"
],
"dir_note": "จากวัดสีบัวทอง"
}
]
}
]
},
{
"route_id": "2231",
"station_order": [
1,
8
],
"directions": [
{
"dir_id": "from-1",
"dir_label": null,
"stops": [
{
"station_id": 1,
"times": [
"16:00"
]
}
]
},
{
"dir_id": "dir-1",
"dir_label": "จากวัดมหานาม",
"stops": [
{
"station_id": 8,
"times": [
"08:00"
],
"dir_note": "จากวัดมหานาม"
}
]
}
]
},
{
"route_id": "999",
"station_order": [
14
],
"directions": [
{
"dir_id": "from-14",
"dir_label": null,
"stops": [
{
"station_id": 14,
"times": [],
"note": "ยังไม่มีข้อมูลตารางเวลา"
}
]
}
]
}
]
}