พอร์ต 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:
itmeadmin committed 2026-10-23 15:50:00 +07:00
1 parent 24187fc3b7
commit 138a3d15d8
300 files changed
+20213 -1978

No files matched your search

+269
View File
@@ -0,0 +1,269 @@
{
"brand.subtitle": "Ang Thong Provincial Bus Terminal",
"nav.home": "Home",
"nav.stops": "Bus Stops",
"nav.routes": "Route Details",
"nav.credits": "Credits",
"nav.about": "About",
"nav.blog": "Blog",
"about.title": "About Us",
"about.brand": "When will the bus come?",
"about.lead": "Our story — read through the blocks below.",
"blog.title": "Blog",
"blog.subtitle": "News & travel know-how",
"blog.lead": "Route news, timetable updates and useful tips — switch between grid and list view.",
"blog.viewGrid": "Grid",
"blog.viewList": "List",
"blog.count": "All posts",
"blog.items": "posts",
"blog.minRead": "min read",
"blog.readMore": "Read more",
"blog.backList": "Back to all posts",
"blog.empty": "No posts yet — add files under ui/partials/blog-data/",
"blog.notFound": "Post not found",
"blog.noGeo": "Route geometry not available yet",
"blog.mapPick": "Tap a route on the map, or a row above, to see details",
"blog.mapNoOrigin": "Origin coordinates not found — check station_code under \"map\"",
"blog.mapNoRoutes": "No routes yet — add them under \"map\" → \"routes\"",
"blog.mapNoCoord": "No coordinates yet",
"blog.mapDest": "Destination",
"blog.mapVia": "Via",
"blog.mapNote": "Note",
"blog.km": "km",
"blog.min": "min",
"blog.thb": "THB",
"legend.title": "Card colours by route group",
"legend.bangkok": "Bangkok routes — blue card",
"legend.interprov": "Inter-provincial routes — purple card",
"legend.inprov": "In-province routes — pink card",
"legend.municipal": "Municipal routes — light yellow card",
"legend.empty": "No data yet — grey card showing N/A instead of a route number",
"legend.note": "Ang Thong has no group 1 (municipal) services yet, so the card is grey and shows N/A in place of the route number",
"zone.municipal": "Municipal routes",
"zone.municipalDesc": "Routes inside municipal areas",
"zone.municipalNA": "No municipal routes in Ang Thong yet",
"card.noData": "No data yet",
"route.mapDesc": "Real geometry from our GIS data · stops along the route",
"map.origin": "Origin",
"map.destination": "Destination",
"map.offline": "Offline — route only",
"map.empty": "No route geometry for this service yet",
"map.legendRoute": "Route",
"map.legendStop": "Bus stop",
"map.legendTerminal": "Bus terminal",
"map.subStop": "Boarding point (sub-stop)",
"map.viewBoardingPoints": "See boarding points for this route",
"map.legendSubStop": "Boarding point (sub-stop)",
"map.route": "Route",
"map.noStationPin": "stop coordinates not in the system yet — showing serving routes",
"map.captionRoute": "Route length {km} km · {n} stops along the route",
"map.captionStop": "Routes serving this stop: {r} · {n} stops along the route",
"map.stations": "terminals along route",
"map.stationPinned": "stop location pinned on the map",
"map.thisStop": "the stop you are viewing",
"map.legendHere": "This stop",
"map.noRoutesHere": "No routes recorded for this stop yet",
"map.servedBy": "Routes served",
"map.openInMaps": "Open in Google Maps",
"map.viewStopPage": "View this stop",
"map.km": "km",
"map.offRoute": "off route",
"map.alongRoute": "Stops along the route (km from origin)",
"map.useMyLocation": "Stops near me",
"map.locating": "Finding your location…",
"map.geoDenied": "Location permission denied — allow it in your browser and try again",
"map.noGeo": "This browser does not support geolocation",
"map.nearestTitle": "Stops closest to you",
"map.youAreHere": "Your location",
"cta.check": "Check Schedules",
"footer.menu": "Menu",
"footer.popular": "Most Viewed Routes",
"footer.popstops": "Popular Stops",
"footer.contact": "Contact",
"footer.about": "Every bus stop in Ang Thong and nearby provinces — locations and routes served.",
"footer.sponsors": "Sponsors & Partners",
"footer.sponsorsLead": "Support us at no extra cost: shop online or book bus and flight tickets through our affiliate links — you pay nothing more.",
"home.welcome": "Welcome",
"home.title1": "Ang Thong Provincial",
"home.provincePrefix": "",
"home.lead": "Browse routes, find stops, and preview a route right from this page",
"home.chooseProvince": "Select Province",
"home.chooseStation": "Select Terminal",
"share.label": "Share short link",
"share.copied": "Link copied",
"share.short": "Short link",
"share.line": "Share on LINE",
"home.stationEmpty": "— No terminals in this province —",
"home.stationEmptyHint": "No bus terminal in",
"home.stationCount": "<b>{n}</b> terminals in",
"zone.bangkok": "To Bangkok",
"zone.bangkokDesc": "Routes to Bangkok",
"zone.interprov": "Inter-province",
"zone.interprovDesc": "Routes to nearby provinces",
"zone.inprov": "Within Ang Thong",
"zone.inprovDesc": "Routes inside Ang Thong",
"card.schedule": "Schedule",
"card.nextTrip": "Next trip",
"card.noSchedule": "No schedule",
"stops.title": "Find bus stops quickly and easily",
"stops.subtitle": "All major terminals, local stops, van stations and private stops — mobile and desktop friendly",
"stops.kpi.total": "Total stops",
"stops.kpi.coverage": "Coverage",
"stops.kpi.types": "Main types",
"stops.kpi.routes": "Popular departures",
"stops.searchPh": "Search a place, e.g. Ang Thong terminal",
"stops.filterProvince": "Filter by province",
"stops.allProvinces": "All provinces",
"stops.allTypes": "All types",
"stops.mapTitle": "Stop network map",
"stops.onMap": "On map",
"stops.kpi.places": "Key places",
"stops.kpi.buses": "Busiest bus line",
"stops.unitPoints": "stops",
"stops.unitPlaces": "places",
"stops.unitTypes": "types",
"stops.unitRoutes": "highways",
"stops.highway": "Highway",
"stops.busPrefix": "Route",
"stops.viewSchedule": "View schedule for route {n}",
"stops.viewRoute": "View route {n}",
"stops.subStop": "Boarding point (sub-stop)",
"stops.noOffset": "No travel time from the first stop yet",
"stops.noBusLine": "No bus line listed",
"stops.modeCode": "Search by stop code",
"stops.modePlace": "Search by place name",
"stops.codePh": "3+000",
"stops.codeHint": "Type 4 digits and the + sign is added automatically (e.g. 3000 → 3+000)",
"stops.codeHintBox": "Type digits in the boxes — empty boxes are filled with 0 automatically. For 4-digit codes such as 8+591, enter 08+591",
"stops.codeFull": "Stop code:",
"stops.placePh": "Ang Thong Hospital",
"stops.placeHint": "Type a place name such as a hospital or land office, then pick a match",
"stops.padDelete": "Del",
"stops.reset": "Clear",
"stops.section": "Section",
"stops.showing": "Showing {a} of {b} stops",
"stops.showAll": "Show all stops",
"stops.noResult": "No stops match your search",
"stops.loading": "Loading stop data…",
"type.terminal": "Passenger terminal",
"type.station": "Major stop",
"type.pickup": "Pickup point",
"type.market": "Market / community",
"type.landmark": "Landmark",
"route.badge": "Inter-province route",
"route.kpiProvince": "provinces",
"route.kpiStops": "stops",
"route.kpiTrips": "trips",
"route.overview": "Route overview",
"route.contact": "Contact operator",
"route.call": "Call us",
"route.openLink": "Open link",
"route.zoomQr": "Enlarge QR to scan",
"route.copyLink": "Copy link",
"route.copied": "Copied",
"common.close": "Close",
"route.link.facebook": "Facebook",
"route.link.line": "LINE Official",
"route.link.www": "Website",
"route.vehicle": "Route vehicle",
"route.mapTitle": "Route map",
"route.photos": "Buses on this network",
"route.stopsTitle": "Stops along the route",
"route.scheduleTitle": "Schedule",
"route.selectRoute": "Select route",
"route.selectStation": "Select station",
"route.origin": "Origin",
"route.transfer": "Intermediate stop",
"route.intermediate": "Intermediate stop",
"route.pass": "Passing",
"route.destination": "Destination",
"route.direction": "All directions",
"route.empty": "No schedule data yet",
"route.noSchedule": "— No trips yet —",
"route.seeOther": "Other routes",
"stop.code": "Code:",
"stop.nearby": "Nearby",
"stop.routes": "Routes through this stop",
"stop.searchRoute": "Search route or destination",
"stop.showing": "Showing {a} of {b} routes",
"stop.mapInfo": "Map & stop info",
"stop.nextArrival": "Next arrival",
"stop.subGeneric": "A stop in {city} · see every route that passes here on one page",
"stop.thisStop": "this stop",
"stop.statRoutes": "Routes",
"stop.statTrips": "Departures/day",
"stop.statHours": "Service hours",
"stop.statType": "Type",
"stop.nRoutes": "{n} routes",
"stop.tripsPerDay": "{n} trips/day",
"stop.tripsPerDay1": "{n} trip/day",
"stop.nRoutes1": "{n} route",
"stop.noRoutes": "No routes recorded for this stop yet",
"stop.noTimes": "No departure times for this stop yet",
"stop.tomorrow": "Tomorrow",
"stop.nextAt": "Next",
"stop.notFound": "Stop not found",
"stop.notFoundSub": "No stop with code “{code}” — check the code or go back to the stop list",
"stop.nearbySub": "Places of interest and stops to wait for your bus",
"stop.otherStopsTitle": "Other boarding points · route {n} ({m} stops)",
"stop.otherMore": "(+{n} stops)",
"stop.otherStopsAll": "All other boarding points ({m} stops)",
"stop.noCoord": "No coordinates yet",
"stop.open": "Open",
"stop.close": "Close",
"stop.nowAtStop": "Current time at this stop",
"stop.autoNext": "Next departure is calculated automatically",
"common.backHome": "← Back to home",
"common.backStops": "← Back to stops",
"common.search": "Search",
"common.details": "Details",
"common.bus": "Bus",
"common.phone": "Call:",
"common.noWebsite": "No website listed",
"type.van": "Van station",
"type.local": "Local stop",
"type.busstop": "Bus shelter / stop",
"type.startlocalpoint": "Local route origin",
"type.other": "Other boarding points",
"type.marketOpt": "Market / private stop",
"route.mapTitleN": "Route {n} map",
"stop.viewScheduleN": "View schedule of route {n}",
"stop.openRoute": "Open route details",
"credits.title": "Credits & Sources",
"credits.icons": "Icons — Lucide",
"credits.fonts": "Fonts — Google Fonts",
"credits.map": "Maps",
"credits.photos": "Bus photo credits",
"credits.photosNote": "For all routes not listed here, our thanks go out to everyone as well.",
"common.back": "Back",
"check.scheduleAll": "Departure times at every stop",
"check.title": "Departure Schedule",
"check.lead": "Pick a route to see every stop’s departures on one page",
"check.kpiStops": "Main stops",
"check.kpiProvince": "Provinces",
"check.kpiTrips": "Trips per day",
"check.kpiNext": "Next departure",
"check.direction": "Direction",
"check.atStop": "Departures at",
"check.dayWeekday": "Weekday timetable (Mon–Fri)",
"check.dayHoliday": "Weekend/holiday timetable",
"check.dayMixed": "This direction mixes weekday and holiday times — not split by day yet",
"check.dayUnknown": "Timetable day not specified (showing all days)",
"check.dayOfWeek": "today is",
"time.estimated": "~ Estimated from the origin (not an operator timetable)",
"time.derived": "~ Computed timetable (from {base} {n} min) — may change with real traffic conditions",
"check.now": "Current time",
"check.updatedAgo": "Last updated {ago}",
"check.agoToday": "today",
"check.agoYesterday": "yesterday",
"check.agoDays": "{n} days ago",
"check.agoWeeks": "{n} weeks ago",
"check.agoMonths": "{n} months ago",
"check.agoYears": "{y} years ago",
"check.agoYearsMonths": "{y} years {m} months ago",
"check.nextAt": "Next departure",
"check.noMoreToday": "No departures left today",
"check.stopsCount": "stops",
"check.toStopDetail": "View stop detail",
"common.routes": "routes"
}