Files
Bkk1234 6f146aef59 feat(android): Capacitor APK build + native save/share bridge
- android/ — Capacitor project (build/, local.properties ignored)
- app/js/native.js — bridge สำหรับ APK: savePhoto/saveZip/shareItems ผ่าน Filesystem+Share
- app/js/csv.js — นำเข้าโฟลเดอร์หลายรายการจาก CSV (site,letter,datetime,name)
- app/js/orient.js — จัดการ orientation ของ preview/กล้อง
- app/manual.html + APK.md — คู่มือใช้งานและวิธี build APK
- app/templates/folders-template.csv — เทมเพลต CSV
- package.json / package-lock.json / capacitor.config.json / scripts/build-apk.sh
- ปรับ ui, camera, exif, archive, db, naming, main, sw + css/README ตามงานข้างบน
2026-11-20 08:50:42 +07:00

70 lines
4.1 KiB
HTML

<!DOCTYPE html>
<html lang="th">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no, viewport-fit=cover">
<meta name="theme-color" content="#F2F3F5" media="(prefers-color-scheme: light)">
<meta name="theme-color" content="#000000" media="(prefers-color-scheme: dark)">
<meta name="color-scheme" content="light dark">
<meta name="mobile-web-app-capable" content="yes">
<meta name="apple-mobile-web-app-capable" content="yes">
<meta name="apple-mobile-web-app-status-bar-style" content="black-translucent">
<meta name="format-detection" content="telephone=no">
<link rel="manifest" href="manifest.json">
<link rel="icon" href="icon-192.png">
<link rel="apple-touch-icon" href="icon-192.png">
<link rel="stylesheet" href="css/app.css">
<title>CamCat — ถ่ายรูปแยกโฟลเดอร์</title>
</head>
<body>
<div id="app">
<header>
<div class="head-text">
<h1>CamCat</h1>
<button class="head-sub" id="active-folder-pill" type="button" aria-label="โฟลเดอร์ที่ใช้งาน — แตะเพื่อเปลี่ยน">
<span id="active-folder-name">—</span>
<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="M9 18l6-6-6-6"/></svg>
</button>
</div>
<div class="head-actions">
<button class="icon-round primary" type="button" data-action="quick-new-folder" aria-label="สร้างโฟลเดอร์ใหม่ทันที">
<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2.2" stroke-linecap="round" aria-hidden="true"><path d="M12 5v14M5 12h14"/></svg>
</button>
<button class="icon-round" id="theme-toggle" type="button" aria-label="สลับธีมสว่าง/มืด"></button>
<button class="icon-round" type="button" data-action="diagnostics" aria-label="ข้อมูลอุปกรณ์และกล้อง">
<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><circle cx="12" cy="12" r="9"/><path d="M12 11v5M12 8h.01"/></svg>
</button>
</div>
</header>
<main id="main" aria-live="polite"></main>
<nav id="bottom-nav">
<button id="nav-camera" class="active" type="button" data-view="camera" aria-label="กล้อง">
<span class="tab-ico"><svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.8" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="M23 19a2 2 0 0 1-2 2H3a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h4l2-3h6l2 3h4a2 2 0 0 1 2 2z"/><circle cx="12" cy="13" r="4"/></svg></span>
<span>กล้อง</span>
</button>
<button id="nav-folders" type="button" data-view="folders" aria-label="โฟลเดอร์">
<span class="tab-ico"><svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.8" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="M22 19a2 2 0 0 1-2 2H4a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h5l2 3h9a2 2 0 0 1 2 2z"/></svg></span>
<span>โฟลเดอร์</span>
</button>
<button id="nav-gallery" type="button" data-view="gallery" aria-label="รูปภาพ">
<span class="tab-ico"><svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.8" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><rect x="3" y="3" width="18" height="18" rx="3"/><circle cx="8.5" cy="8.5" r="1.5"/><path d="M21 15l-5-5L5 21"/></svg></span>
<span>รูปภาพ</span>
</button>
</nav>
</div>
<div class="sheet-overlay" id="sheet-overlay" hidden aria-hidden="true">
<div class="sheet" id="sheet-content" role="dialog" aria-modal="true"></div>
</div>
<div id="toast" role="status"></div>
<script src="vendor/jszip.min.js"></script>
<script src="vendor/piexif.js"></script>
<script src="vendor/qrcode.min.js"></script>
<script type="module" src="js/main.js"></script>
</body>
</html>