81a93a489b
Backend — Photos timeline now groups by real capture date instead of upload time. New MediaMetadataService (FileLifecycleHook) extracts EXIF DateTimeOriginal from images and container creation_time from videos (mov/mp4/mkv) via nom-exif, timezone-correct (OffsetTimeOriginal), persisting captured_at so the existing media_sort_date trigger takes over. Adds POST /admin/photos/metadata/reextract to backfill existing media. Falls back to upload date when no embedded date exists. Frontend — premium grid cards: combined metadata line (relative date · size, owner avatar when shared), custom selection checkbox with a clear checked state, uniform full-width 4:3 thumbnail tiles independent of filename length, centered file-type icons, and a hit-test fix so checkbox/star/kebab clicks reach the controls (the decorative thumbnail no longer captures pointer events). Notification messages internationalised across all 16 locales. Broader polish: design tokens, a11y/focus-visible states, brand + PWA assets. Chore — bump semver-compatible dependencies (cargo upgrade); add nom-exif 3.6.1. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
56 lines
2.2 KiB
HTML
56 lines
2.2 KiB
HTML
<!DOCTYPE html>
|
|
<html lang="en">
|
|
<head>
|
|
<meta charset="UTF-8">
|
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
<title>OxiCloud — Authorize Device</title>
|
|
<link rel="icon" type="image/svg+xml" href="/logo/logo-plain.svg">
|
|
<link rel="stylesheet" href="/css/main.css">
|
|
<link rel="stylesheet" href="/css/views/device-verify.css">
|
|
</head>
|
|
<body>
|
|
<div class="dag-card" role="main">
|
|
<div class="dag-logo">
|
|
<span class="brand-mark"><svg viewBox="120 120 280 280"><path d="M345 310c32 0 58-26 58-58s-26-58-58-58c-6.2 0-12 0.9-17.5 2.7C318 166 289 143 255 143c-34.3 0-63.1 22.6-73 53.7C176.9 195.7 171 195 165 195c-32 0-58 26-58 58s26 58 58 58h180z"/></svg></span>
|
|
<h1><span>Oxi</span>Cloud</h1>
|
|
</div>
|
|
|
|
<!-- Step 1: Enter code -->
|
|
<div id="step-code">
|
|
<h2>Authorize Device</h2>
|
|
<p class="subtitle">Enter the code displayed on your WebDAV/CalDAV client to grant access.</p>
|
|
<label for="user-code">Device Code</label>
|
|
<input type="text" id="user-code" placeholder="ABCD-1234" maxlength="9" autocomplete="off" autofocus />
|
|
<div id="error-text" class="error-text hidden"></div>
|
|
|
|
<div id="device-info" class="device-info hidden">
|
|
<div class="row">
|
|
<span class="label">Client</span>
|
|
<span class="value" id="info-client">—</span>
|
|
</div>
|
|
<div class="row">
|
|
<span class="label">Scopes</span>
|
|
<span class="value" id="info-scopes">—</span>
|
|
</div>
|
|
</div>
|
|
|
|
<div class="actions hidden" id="action-buttons">
|
|
<button class="btn-deny" id="btn-deny">Deny</button>
|
|
<button class="btn-approve" id="btn-approve">Approve</button>
|
|
</div>
|
|
</div>
|
|
|
|
<!-- Step 2: Result -->
|
|
<div id="status-success" class="status success hidden">
|
|
Device authorized successfully! You can close this page.
|
|
</div>
|
|
<div id="status-denied" class="status denied hidden">
|
|
Authorization denied. The client will not receive access.
|
|
</div>
|
|
<div id="status-error" class="status error hidden"></div>
|
|
</div>
|
|
|
|
<script type="module" src="/js/views/device-verify/device-verify.js"></script>
|
|
</body>
|
|
</html>
|