Skip to content

vtrc-application-front — Repository Map

บทนี้ (branch: master) แผนที่ไฟล์ทั้ง repo — 18 tracked files


โครงสร้าง

vtrc-application-front/
├── .gitignore
├── index.html              ~116 บรรทัด — landing + UA sniff + getUrl()
├── VTRC.ipa                binary iOS build (committed)
├── VTRC.plist              31 บรรทัด — enterprise OTA manifest
├── css/
│   ├── main.css
│   └── main.min.css        อ้างจาก index ด้วย ?_=20210529
├── image/
│   ├── BG-1.png, BG-2.png, BG-red-mobile.png, BG-red-web.png
│   ├── QR_downloadLandingPage.png, qrcode_android.png, qrcode_ios.png
│   ├── bg.jpg, bg.png, iphone.png, people.png
└── storage/pdf/manual.pdf

index.html — แบ่งส่วน

ส่วนLinesหน้าที่Citation
head3-33charset, Kanit font, main.min.css, gtag, isiOS()index.html:3-33
hero body36-74หัวข้อ V TRC, ปุ่ม download, เวอร์ชัน, คู่มือ iOS trust, PDF linkindex.html:36-69
QR (dead)70-73img tags comment ปิดindex.html:70-73
script IIFE77-96ตั้งข้อความปุ่ม / ซ่อน manual ตาม platformindex.html:77-96
getUrl()97-112คืน itms / Play / web loginindex.html:97-112

พฤติกรรม UI ตาม platform (IIFE)

Platformปุ่มข้อความManual block
iOSดาวน์โหลด & อัปเดตแสดง; ปรับ class imagebot-ios
Androidดาวน์โหลด & อัปเดตลบ #button-manual และ #app-manual
Desktopเข้าสู่เว็บไซต์ลบ manual เช่นเดียวกับ Android

VTRC.plist fields

KeyValueCitation
software-package urlhttps://vtrc.redcross.or.th/adn/VTRC.ipaVTRC.plist:14
bundle-identifiercom.redcross.vtrcappVTRC.plist:20
bundle-version1.0VTRC.plist:22
titleVTRCVTRC.plist:26

Bundle id ใน plist (com.redcross.vtrcapp) ต่างจาก Android Play id ใน getUrl (com.redcross.vtrc) — ธรรมเนียมคนละแพลตฟอร์ม; iOS project จริงอยู่ใน vtrc-mobile ไม่ใช่ repo นี้


ความสัมพันธ์กับแอปอื่น

Repoความสัมพันธ์
vtrc-mobileแอปหลักที่หน้านี้แจก / เวอร์ชันบนหน้าอ้างอิงแนวเดียวกับ mobile release
new-vtrc-mobileLINK_DOWNLOAD_APP ชี้ https://vtrc.redcross.or.th/adn/ (HostAPI.ts:16) — path เดียวกับที่หน้านี้ deploy

Deploy path ที่ production ใช้ใน URL คือ /adn/ ภายใต้ vtrc.redcross.or.thUNVERIFIED ว่า host เสิร์ฟจาก repo นี้โดยตรงหรือ copy artifact


Image asset inventory (tracked)

Fileใช้ใน HTML จริง?Citation
image/BG-red-web.pngใช่ (bgred)index.html:38
image/BG-1.pngใช่ (bgblock)index.html:39
image/iphone.pngใช่index.html:43
image/people.pngใช่ (imagebot)index.html:75
image/BG-2.pngไม่พบใน index.html
image/BG-red-mobile.pngไม่พบใน index.html
image/bg.jpg / bg.pngไม่พบใน index.html
image/QR_downloadLandingPage.pngcomment ปิดindex.html:70
image/qrcode_ios.pngcomment ปิดindex.html:71
image/qrcode_android.pngcomment ปิดindex.html:72

CSS: css/main.min.css?_=20210529 (index.html:9) — cache-bust query แบบมือ

Font: Google Fonts Kanit 300/500 (index.html:7-8)

ไป 02 · Distribution