Commit graph

16 commits

Author SHA1 Message Date
da5c1ee008 Let PhotoTags have timestamps; use more js cards.
Tags on photos can now have timestamps, so that if you are tagging
a video or audio you can reference a specific moment with your tag.
In the interface, this means the tag is clickable and seeks to that
point in the media.

For the user interface, I am finding I need to move away from jinja
for the object cards because it is too much hassle to keep the code
for jinja-based cards for static rendering and the js-based cards
for dynamic rendering in sync. Rather than write the same cards in
two languages I can dump the JSON into the script and render the cards
on load. Which makes the static HTML worse but that's what the JSON
API is for anyway.
2023-09-17 14:07:22 -07:00
b384f2895a Bring back target=_blank to photo links.
After living without it for a while, I prefer with.
2023-06-25 00:01:15 -07:00
e4f686c86f Move thumbnail blobs into the database.
I've moved the thumbnails around many times over this project
and hopefully it doesn't happen too many more. Once the database has
tens of thousands of items, the thumbnails start to become the biggest
headache on the disk. Backing up, restoring, and sharding files per
directory are slower and more effortful with separate files. In the db
means the db is a larger file, but this is disk space that was already
getting used anyway. Now it's simpler and has atomic transactions.
2023-01-27 17:34:32 -08:00
25b0f4106f Remove target=_blank from photo cards.
This will take some getting used to but nothing else in the system
uses target blank.
2022-11-11 20:04:57 -08:00
e4b6e629c1 Add loading=lazy to album thumbnail img. 2022-11-10 19:41:36 -08:00
c159dbbc0f
Improve photo contextmenu, reuse a single contextmenu element for all. 2022-08-04 06:10:44 -07:00
cb43b5d9e0
Migrate all IDs from strings to ints. Random 32 bit IDs in future. 2022-07-20 19:03:26 -07:00
886ddecfa7
Improve appearance of bookmark cards with h2, hiding url element. 2021-10-31 16:12:14 -07:00
e101f4c2d8
Add author to bookmark card. 2021-10-23 18:48:27 -07:00
6dc352b25c
Add comment for photo_card_toolbutton. 2021-06-04 19:34:52 -07:00
22f320532b
Add draggable=false to file size link. 2021-06-03 21:35:24 -07:00
387b7f1096
Rename Photo.bytestring -> bytes_string. 2021-05-24 20:42:29 -07:00
b5e8363374
Add preliminary photo drag-drop code. 2021-01-25 13:47:47 -08:00
6c2da7a6f0
Move album drag-drop functions to cards.js. 2021-01-25 13:46:24 -08:00
b0f8414c11
Add photo_card.photo_card_tools infra for contextual tools.
I'm not satisfied with the appearance of the toolbutton just yet,
but we can revise that later.
2021-01-21 15:37:30 -08:00
5e7b90cbe4
Combine all card templates into cards.html. 2021-01-20 18:26:42 -08:00