Move images to hidden .resource/ folder
- Rename resource/images/ to .resource/ (dot-prefixed, gitignored, never pushed) - Repackage resource/images.zip to contain .resource/ at the archive root - Update setup.sh to extract the zip to .resource/ - Update all image references from ../resource/images/ to ../.resource/ across ui HTML, manifest.json and sw.js - Sync .gitignore, README.md and AGENTS.md with the new layout
This commit is contained in:
1 parent
ebcae74f3c
commit
670afcb773
15 files changed
+88
-86
No files matched your search
@@ -33,10 +33,11 @@ web-at-transit-mock/
|
||||
│ │ ├── credits.html ← #/credits
|
||||
│ │ └── icons-sprite.svg ← Lucide sprite
|
||||
│ ├── busStop.html / busDetail.html / ... ← เหลือแค่ redirect stub → #/...
|
||||
└── resource/
|
||||
├── data/ ข้อมูล mock: routes.json, schedules.json, stations.json,
|
||||
│ provinces.json, route_groups.json
|
||||
└── images/ รูปทั้งหมด (routes/, partners/, landmarks/, qrcode/, icons/)
|
||||
├── resource/
|
||||
│ ├── data/ ข้อมูล mock: routes.json, schedules.json, stations.json,
|
||||
│ │ provinces.json, route_groups.json
|
||||
│ └── images.zip ← รูปทั้งหมดบีบรวม (แตกด้วย setup.sh)
|
||||
└── .resource/ ← รูปทั้งหมด (hidden — เกิดหลังรัน setup.sh, ไม่ commit)
|
||||
```
|
||||
|
||||
**ทุกหน้าเป็น hash URL** (`#/stops`, `#/routes/101`, `#/stops/at_main_terminal`) —
|
||||
@@ -71,7 +72,7 @@ python -m http.server 8090 # เปิด http://localhost:8090/ui/index.
|
||||
10. **อ่าน `DESIGN.md` ก่อนแก้ UI ทุกครั้ง** — มีกฎ "ห้ามทำ" ที่กันสไตล์ AI genric
|
||||
และโทเคนสี/ฟอนต์ตายตัว
|
||||
11. **ไอคอนใช้ระบบ Lucide sprite เท่านั้น** — ห้ามใช้ emoji แทนไอคอน (DESIGN.md ข้อ 4):
|
||||
- ไอคอนต้นฉบับ (MIT): `resource/images/icons/lucide/`
|
||||
- ไอคอนต้นฉบับ (MIT): `.resource/icons/lucide/`
|
||||
- sprite: `ui/partials/icons-sprite.svg` (symbol ชื่อ `ic-<ชื่อ>`)
|
||||
- ใช้งาน: `<svg class="ic" aria-hidden="true"><use href="#ic-ชื่อ"/></svg>` (CSS `.ic` ใน `_shared.css`)
|
||||
- **เพิ่มไอคอนใหม่**: ดาวน์โหลดจาก https://lucide.dev → เก็บ SVG ใน `resource/images/icons/lucide/`
|
||||
|
||||
Reference in new issue
Block a user