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

117 lines
5.3 KiB
JSON

{
"updated": "2026-10-07",
"source_folder": "resource/sponsor/ลงทะเบียน affiliate program/",
"warning": "ไฟล์นี้ถูกเสิร์ฟให้ผู้ใช้ทั่วไป — ห้ามใส่รหัสผ่าน อีเมล หรือคีย์ลับใด ๆ เก็บเฉพาะลิงก์สาธารณะ",
"note": "affiliate_link = ลิงก์แนะนำของเรา (ยังว่าง — รอเติมหลังได้ลิงก์จริงจากแต่ละโปรแกรม) · program_url = หน้าลงทะเบียน/ล็อกอินของโปรแกรมนั้น",
"partners": [
{
"id": "7-eleven",
"brand": "7-Eleven",
"brand_th": "เซเว่น อีเลฟเว่น",
"tile_image": ".image/partners/7-11.png",
"in_footer_marquee": true,
"affiliate_program": "All Online (7-Eleven)",
"program_url": "https://affiliate.allonline.7eleven.co.th",
"affiliate_link": "https://allonline.link/r/lZ8z9",
"status": "registered",
"note": "ลงทะเบียนแล้วผ่าน All Online"
},
{
"id": "shopee",
"brand": "Shopee",
"brand_th": "ช้อปปี้",
"tile_image": ".image/partners/shopee.png",
"in_footer_marquee": true,
"affiliate_program": "Shopee Affiliate Program",
"program_url": "https://affiliate.shopee.co.th/",
"affiliate_link": "https://raka.is/r/w7LYb",
"status": "unknown",
"note": "ยังไม่พบข้อมูลในโฟลเดอร์ — รอตรวจ/ยืนยันบัญชี"
},
{
"id": "lazada",
"brand": "Lazada",
"brand_th": "ลาซาด้า",
"tile_image": ".image/partners/lazada.png",
"in_footer_marquee": true,
"affiliate_program": "Lazada Affiliate Program",
"program_url": "https://www.lazada.co.th/affiliate-program/",
"affiliate_link": "https://raka.is/r/DmYeP",
"status": "unknown",
"note": "ยังไม่พบข้อมูลในโฟลเดอร์ — รอตรวจ/ยืนยันบัญชี"
},
{
"id": "airasia-move",
"brand": "airasia MOVE",
"brand_th": "แอร์เอเชีย มูฟ",
"tile_image": ".image/partners/airasia-move.png",
"in_footer_marquee": true,
"affiliate_program": "airasia rewards / MOVE affiliate",
"program_url": "https://www.airasia.com/",
"affiliate_link": "https://prf.hn/l/8jkWB2w/",
"status": "unknown",
"note": "ยังไม่พบข้อมูลในโฟลเดอร์ — รอตรวจ/ยืนยันบัญชี"
},
{
"id": "busonlineticket",
"brand": "busonlineticket",
"brand_th": "บัสออนไลน์ทิกเก็ต",
"tile_image": ".image/partners/busonlineticket.png",
"in_footer_marquee": true,
"affiliate_program": "BusOnlineTicket Affiliates",
"program_url": "https://www.busonlineticket.co.th/booking/affiliates.aspx",
"affiliate_link": "https://www.busonlineticket.co.th/booking/default.aspx?refererid=Natthaphat",
"status": "registered",
"note": "มีบัญชีแล้ว (ชื่อผู้ใช้แบบไม่ใช้อีเมล)"
},
{
"id": "trip-com",
"brand": "Trip.com",
"brand_th": "ทริปดอทคอม",
"tile_image": ".image/partners/trip.jpg",
"in_footer_marquee": true,
"affiliate_program": "Trip.com Partners",
"program_url": "https://th.trip.com/partners",
"affiliate_link": "https://www.trip.com/t/fhNrva0meW2",
"status": "registered",
"note": "มีบัญชีแล้ว"
},
{
"id": "truck2hand",
"brand": "truck2hand",
"brand_th": "ทรัคทูแฮนด์",
"tile_image": ".image/partners/truck2hand.png",
"in_footer_marquee": true,
"affiliate_program": "truck2hand (รถบรรทุกมือสอง)",
"program_url": "https://www.truck2hand.com/",
"affiliate_link": "https://www.truck2hand.com/category/cat_bus_bus-type-minibus/",
"status": "unknown",
"note": "ยังไม่พบข้อมูลในโฟลเดอร์ — รอตรวจ/ยืนยันบัญชี"
},
{
"id": "12go",
"brand": "12go",
"brand_th": "วัน ทู โก",
"tile_image": ".image/partners/12go.png",
"in_footer_marquee": true,
"affiliate_program": "12go",
"program_url": "https://agent.12go.com/th",
"affiliate_link": "https://12go.asia/?z=10049585",
"status": "unknown",
"note": "มีบัญชีแล้ว"
},
{
"id": "priceza",
"brand": "Priceza",
"brand_th": "ไพรซ์ซ่า",
"tile_image": "",
"in_footer_marquee": false,
"affiliate_program": "Priceza Affiliate",
"program_url": "https://aff.priceza.com/login",
"affiliate_link": "",
"status": "registered",
"note": "มีบัญชีแล้ว — ยังไม่ใช้ใน footer"
}
]
}