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 ตามงานข้างบน
This commit is contained in:
1 parent
a0bccc2316
commit
6f146aef59
75 files changed
+4637
-151
No files matched your search
@@ -185,6 +185,11 @@ header h1 {
|
||||
}
|
||||
.icon-round svg { width: 22px; height: 22px; }
|
||||
.icon-round:active { transform: scale(0.94); background: var(--bg-2); }
|
||||
.icon-round.primary { background: var(--accent); color: var(--on-accent); }
|
||||
.icon-round.primary:active { background: var(--accent); filter: brightness(0.94); }
|
||||
|
||||
.head-btns { display: flex; gap: 8px; align-items: center; }
|
||||
.head-btns .btn { min-height: 40px; padding: 0 14px; font-size: 13px; }
|
||||
|
||||
/* ── Main ────────────────────────────────────────────────── */
|
||||
main {
|
||||
@@ -267,6 +272,27 @@ nav button:active .tab-ico { background: var(--bg-2); }
|
||||
min-height: 0;
|
||||
overflow: hidden;
|
||||
background: #000;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
}
|
||||
|
||||
/* กรอบพรีวิวตามอัตราส่วนที่เลือก — เห็นอะไร ได้อย่างนั้น */
|
||||
.frame {
|
||||
position: relative;
|
||||
overflow: hidden;
|
||||
background: #000;
|
||||
}
|
||||
/* ขนาดกรอบคำนวณด้วย JS (fitFrame) เพื่อไม่ให้ aspect-ratio ถูก max-height บิด */
|
||||
.frame.ratio-43, .frame.ratio-34 { width: 100%; height: 100%; }
|
||||
|
||||
.cam-chip.ratio-chip {
|
||||
width: auto;
|
||||
min-width: 52px;
|
||||
padding: 0 14px;
|
||||
font-size: 13px;
|
||||
font-weight: 700;
|
||||
letter-spacing: 0.02em;
|
||||
}
|
||||
|
||||
#video {
|
||||
@@ -276,6 +302,8 @@ nav button:active .tab-ico { background: var(--bg-2); }
|
||||
display: block;
|
||||
background: #000;
|
||||
}
|
||||
.frame > #video, .frame > .grid-lines { position: absolute; inset: 0; }
|
||||
.grid-lines { position: absolute; }
|
||||
|
||||
.grid-lines {
|
||||
position: absolute;
|
||||
@@ -521,6 +549,9 @@ nav button:active .tab-ico { background: var(--bg-2); }
|
||||
.icon-btn:active { background: var(--bg-2); }
|
||||
.icon-btn.danger { color: var(--danger); }
|
||||
|
||||
.folder-bulk { padding: 4px var(--pad) 12px; }
|
||||
.folder-bulk .btn { min-height: 50px; }
|
||||
|
||||
.storage-line {
|
||||
padding: 4px var(--pad) calc(20px + 4px);
|
||||
font-size: 12.5px;
|
||||
@@ -530,11 +561,14 @@ nav button:active .tab-ico { background: var(--bg-2); }
|
||||
}
|
||||
|
||||
/* ── Gallery ─────────────────────────────────────────────── */
|
||||
.folder-view,
|
||||
.gallery-view {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
min-height: 100%;
|
||||
}
|
||||
.folder-view .folder-list { flex: 1; }
|
||||
.folder-view .storage-line { padding-bottom: 6px; }
|
||||
.gallery-view .gallery-grid { flex: 1; align-content: start; }
|
||||
|
||||
.gallery-grid {
|
||||
|
||||
Reference in new issue
Block a user