The best way to control Claude Code, Codex and more from any computer or phone
Mirrored from https://github.com/Camo67/t3code.git
Synced Nov 21, 06:00 UTC
| 1 | <!doctype html> |
| 2 | <html lang="en"> |
| 3 | <head> |
| 4 | <meta charset="UTF-8" /> |
| 5 | <meta name="viewport" content="width=device-width, initial-scale=1.0" /> |
| 6 | <title>Upload journal · Neon + Alchemy</title> |
| 7 | </head> |
| 8 | <body> |
| 9 | <main> |
| 10 | <header> |
| 11 | <span class="eyebrow">NEON + ALCHEMY</span> |
| 12 | <h1>Upload journal</h1> |
| 13 | <p>Private files. A real upload event. A durable processing record.</p> |
| 14 | </header> |
| 15 | <p id="message" role="status" aria-live="polite">Connecting to managed authentication…</p> |
| 16 | <section aria-labelledby="account-heading"> |
| 17 | <h2 id="account-heading">Your account</h2> |
| 18 | <p id="identity">Signed out</p> |
| 19 | <form id="account"> |
| 20 | <label |
| 21 | >Name<input name="name" autocomplete="name" value="Neon explorer" maxlength="100" |
| 22 | /></label> |
| 23 | <label>Email<input name="email" type="email" autocomplete="username" required /></label> |
| 24 | <label |
| 25 | >Password<input |
| 26 | name="password" |
| 27 | type="password" |
| 28 | autocomplete="current-password" |
| 29 | minlength="8" |
| 30 | required |
| 31 | /></label> |
| 32 | <div class="actions"> |
| 33 | <button name="mode" value="signup">Create account</button |
| 34 | ><button name="mode" value="signin" class="secondary">Sign in</button> |
| 35 | </div> |
| 36 | </form> |
| 37 | <button id="signout" class="secondary" hidden>Sign out</button> |
| 38 | </section> |
| 39 | <section aria-labelledby="upload-heading"> |
| 40 | <h2 id="upload-heading">Add a file</h2> |
| 41 | <p> |
| 42 | Choose a file up to 10 MiB. Your browser uploads directly to a private bucket using a |
| 43 | short-lived signed URL. |
| 44 | </p> |
| 45 | <form id="upload"> |
| 46 | <label>File<input name="file" type="file" required /></label |
| 47 | ><button id="upload-button" disabled>Upload file</button> |
| 48 | </form> |
| 49 | </section> |
| 50 | <section aria-labelledby="files-heading"> |
| 51 | <div class="section-title"> |
| 52 | <h2 id="files-heading">Your uploads</h2> |
| 53 | <button id="refresh" class="secondary">Refresh status</button> |
| 54 | </div> |
| 55 | <p id="empty">Sign in to see your files.</p> |
| 56 | <ul id="files"></ul> |
| 57 | </section> |
| 58 | <details> |
| 59 | <summary>Security and processing</summary> |
| 60 | <p> |
| 61 | Only the signed-in owner can request upload or download URLs. The Function verifies JWT |
| 62 | signatures and expiry. A bucket event verifies file metadata and updates Postgres; the |
| 63 | browser never marks a file ready. |
| 64 | </p> |
| 65 | <p> |
| 66 | Signout ends your session. Previously issued JWTs can remain valid until their short |
| 67 | expiry. This tutorial disables email verification and allows localhost; enable |
| 68 | verification and restrict origins before production. |
| 69 | </p> |
| 70 | <p> |
| 71 | Size is checked before signing and again after delivery, not enforced as a storage quota |
| 72 | by the signed PUT. This is metadata processing, not malware scanning. No AI calls or |
| 73 | credits are required. |
| 74 | </p> |
| 75 | </details> |
| 76 | </main> |
| 77 | <script type="module" src="/src/main.ts"></script> |
| 78 | </body> |
| 79 | </html> |