upload lol

003099d · gmorell · 2026-05-16 02:18

6 files +13 -5

Files changed

modified .idea/vcs.xml
+0 −1
@@ -2,6 +2,5 @@
2 2 <project version="4">
3 3 <component name="VcsDirectoryMappings">
4 4 <mapping directory="" vcs="Git" />
5 − <mapping directory="$PROJECT_DIR$/dms" vcs="Git" />
6 5 </component>
7 6 </project>
modified templates/root.html
+1 −1
@@ -33,7 +33,7 @@
33 33 })();
34 34 </script>
35 35 </head>
36 −<body>
36 +<body>{% if user %} data-authed="1"{% endif %}>
37 37 <header class="navbar px-4 sm:px-6 lg:px-8 border-b border-base-300 bg-base-200">
38 38 <div class="flex-1">
39 39 <a href="/" class="flex w-fit items-center gap-2">
modified templates/uploads/list.html
+12 −3
@@ -36,9 +36,18 @@
36 36 <button class="btn btn-sm btn-secondary" type="submit">Filter</button>
37 37 </form>
38 38
39 − <form method="post" action="/uploads" enctype="multipart/form-data" class="card bg-base-200 p-4 space-y-2">
40 − <h3 class="font-bold">Quick upload</h3>
41 − <input class="file-input file-input-bordered file-input-sm w-full" type="file" name="file" required/>
39 + <form id="quick-upload-form" method="post" action="/uploads" enctype="multipart/form-data" class="card bg-base-200 p-4 space-y-2">
40 + <div class="flex items-center justify-between">
41 + <h3 class="font-bold">Quick upload</h3>
42 + <span class="text-xs opacity-60">
43 + Paste an image (<kbd class="kbd kbd-xs">Ctrl</kbd>+<kbd class="kbd kbd-xs">V</kbd>) to attach it
44 + </span>
45 + </div>
46 + <input id="quick-upload-file" class="file-input file-input-bordered file-input-sm w-full" type="file" name="file" accept="image/*" required/>
47 + <div id="quick-upload-preview" class="hidden items-center gap-2 text-xs">
48 + <img class="h-16 w-16 object-cover rounded border border-base-300" alt="pasted preview"/>
49 + <span class="opacity-70" data-name></span>
50 + </div>
42 51 <input class="input input-bordered input-sm w-full" type="text" name="item_name" placeholder="Optional name"/>
43 52 <textarea class="textarea textarea-bordered textarea-sm w-full" name="item_description" placeholder="Optional description"></textarea>
44 53 <input class="input input-bordered input-sm w-full" type="text" name="tags" placeholder="user:keep Series:Friends"/>

Parents: 7bac2a7