Commit graph

35 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
ef668c5d3b Add endpoint /batch/photos/generate_thumbnail. 2023-06-25 00:02:20 -07:00
11706cc1c7 Add admin button to clear all login sessions. 2022-11-07 17:51:02 -08:00
707d1ec829
Move http functions to new javascript file http.js. 2022-10-01 14:24:36 -07:00
6dd4cfe59b
Add admin endpoint uncache. 2022-07-22 19:23:36 -07:00
fd42ef16e1
Add admin endpoints. 2021-10-01 22:42:45 -07:00
10f6509536
Add common.formdata so api.js can just use dicts. 2021-09-03 12:52:41 -07:00
049fc794c3
Add api.photos.search. 2021-06-01 17:51:31 -07:00
f30528cc35
Return xhr request object from api functions. 2021-06-01 17:48:03 -07:00
89205ac24a
Add interface for copying tags from other photos. 2021-04-29 13:12:37 -07:00
400c255aea
Add "Show in folder" button to photos, albums. 2021-02-25 18:57:41 -08:00
d6f155afbd
Add /album/remove_thumbnail_photo endpoint. 2021-01-20 19:07:37 -08:00
da8dff6f85
Add /album/set_thumbnail_photo endpoint. 2021-01-20 19:07:37 -08:00
7527b3678f Fix reference to response.json_ok -> response.meta.json_ok. 2021-01-08 13:38:30 -08:00
dd54eabd93 Add api endpoint /tag/tagname/add_synonym. 2021-01-05 14:02:08 -08:00
e303b934f7 Add UI for editing user's display name. 2021-01-01 19:46:31 -08:00
0a31dad196 Rewrite these default callbacks as alertresponse. 2020-11-06 22:34:01 -08:00
86c09aedc1 Add album_autocomplete.js, so "Add child" box can autocomplete.
This makes putting albums together a little easier, though datalist
performance still leaves a lot to be desired.
2020-10-03 18:37:08 -07:00
7e58c95f15 Mostly failed experiment: tag_autocomplete indexeddb.
The current system has bad performance when you've got 100,000+ tags.
I discovered that when the server returns 304, the browser gives the
ajax a 200 with the full response, and it's not clear to me if js can
know it got a 304. So, the tag set is being fully re-parsed from the
response on every page load. I was thinking that I should store that in
IndexedDB to avoid the parsing step, but... since the JSON.parse is
done by my common.get before it hits this function, it's meaningless.
Not to mention I still have to rebuild the datalist on every page since
of course that state isn't shared between tabs. Not worth the DB stuff.
We'll see what happens next.
2020-09-29 16:52:20 -07:00
dd0ee7a72a Use more const. 2020-09-14 18:33:53 -07:00
8d2af3255b Add endpoints set_searchhidden, unset_searchhidden and checkbox. 2020-09-09 20:51:15 -07:00
d6a46ed551 Use const for api.js url/data variables. 2020-09-03 15:42:13 -07:00
8af340e442 Replace non-global uses of var with let. 2020-09-03 15:31:47 -07:00
6b037e1120 Move several /batch functions into api.js. 2020-08-30 19:18:06 -07:00
9ac91d3850 Add tag delete button to specific tag page.
On the main tag listing, for child tags, you only get an unlink
button on hover. So if you want to delete a child tag you'd have to
unlink, then refresh, then delete. Now you can just go to its page
and delete it there.
2020-02-27 14:57:27 -08:00
45cb96cc5c Add endpoint /photo/photo_id/delete. 2020-02-26 18:57:29 -08:00
89bfca8f9f Add endpoint for photo generate thumbnail. 2020-01-12 14:52:03 -08:00
7ecfeca96c Allow setting display name during registration. 2019-08-26 14:32:51 -07:00
9ab0a61cb3 Add endpoint for refreshing Album directories. 2019-06-15 02:44:46 -07:00
536531848e Oops, fix broken bookmark editing api.js. 2019-01-13 14:58:23 -08:00
d436b32df8 Integrate users with api.js. 2018-09-23 16:50:27 -07:00
8cfa88e45d Integrate tags with api.js and improve sanity of tag endpoints. 2018-09-23 16:41:34 -07:00
af318414e2 Integrate photos with api.js. 2018-09-23 15:52:19 -07:00
bbd4fbd77f Integrate bookmarks with api.js. 2018-09-23 15:43:42 -07:00
fd4ead1d1a Add file api.js which will consolidate API functions.
This will help keep the code on the pages focused more on the
page-specific stuff like form handling, and less on the raw api.
Plus, by having it all in one place, it can be cached
and also we can use any api from within any page.
2018-09-23 15:10:01 -07:00