Commit Graph

102 Commits (1477a7668d88cc83494d6cde6e73c31f1ab8ce0d)

Author SHA1 Message Date
voussoir d1b0fb6aec Add Bookmark.atomify and /bookmarks.atom. 2022-11-11 11:41:24 -08:00
voussoir 732c13440e Use flasktools.atom_response. 2022-11-11 11:39:04 -08:00
voussoir 11706cc1c7 Add admin button to clear all login sessions. 2022-11-07 17:51:02 -08:00
voussoir b64901105c Move search to an entire class of its own.
The initial motivation for this was to make the "more_after_limit"
feature, which would help the UI to not show a next page button when
the number of results was exactly equal to the limit.

However, in order to surface this more_after_limit status using only
the old search generator, it would have to be a special yield at the
end. I was getting tired of the special yields like give_back_params
at the beginning and warning_bag at the end, and this would be worse.

There is a lot of sideband information about the search that is now
more easily accessible when the search is its own object.
2022-11-06 22:58:36 -08:00
voussoir de2bf6a81a
Move login code over to User object. 2022-11-06 22:59:12 -08:00
voussoir a514ed5ff3
Use voussoirkit timetools. 2022-11-06 22:59:11 -08:00
voussoir 172a539f24
Default yield_albums to false instead of true.
I'm finding I just don't like the ux of having them on default.
2022-10-29 17:17:37 -07:00
voussoir 328e84b0c7
Fix search by SHA256, didn't finish implementing. 2022-10-29 17:17:37 -07:00
voussoir 1e5fc81019
Rename endpoint function logout -> post_logout. 2022-10-01 14:24:36 -07:00
voussoir 3767558c66
Add search filter has_albums.
Sometimes it's nice to search just for the free spirits.
2022-09-28 19:49:01 -07:00
voussoir 57f1b80442
Use SQL generated columns for area, aspectratio, basename, bitrate. 2022-08-13 18:08:45 -07:00
voussoir 6dd4cfe59b
Add admin endpoint uncache. 2022-07-22 19:23:36 -07:00
voussoir d61f504d60
Alphabetize functions. 2022-07-22 16:43:29 -07:00
voussoir 2562084fce
Experimental atom feed for photos, albums, search. 2022-07-20 19:03:27 -07:00
voussoir 4001f6f371
Use datetime objects instead of timestamps in object model.
Trying to make better use of objects in this object oriented language.
2022-07-20 19:03:26 -07:00
voussoir 49992f59aa
Add /admin/dbdownload. 2022-07-20 19:03:25 -07:00
voussoir 0e00a1e981
Use new worms version. 2022-07-20 19:03:25 -07:00
voussoir 4261c42512
Add xdg-open for non-windows use. 2022-01-11 01:00:36 -08:00
voussoir 5efad72425
Use log.warning for traceback instead of print_exc. 2021-12-21 16:55:46 -08:00
voussoir 017523bdac
Return 404 if we try to reload_metadata on a missing file. 2021-12-21 16:55:03 -08:00
voussoir 779eff1761
Don't show the registration form if registration is disabled. 2021-10-24 22:17:50 -07:00
voussoir 6794caa32b
Call photo._uncache instead of doing it manually. 2021-10-18 14:10:59 -07:00
voussoir 91cf08efde
Match renamed flasktools.json_response. 2021-10-01 23:05:46 -07:00
voussoir fd42ef16e1
Add admin endpoints. 2021-10-01 22:42:45 -07:00
voussoir 0c51201901
Move truthystring to stringtools. 2021-09-05 01:21:04 -07:00
voussoir d4025e865b
Move cached_endpoint, required_fields to flasktools. 2021-09-03 12:45:07 -07:00
voussoir 2e0b4cfa14
Replace run_generator with gentools.run. 2021-08-31 19:23:56 -07:00
voussoir e9d5711f29
Some linting. 2021-08-20 22:54:12 -07:00
voussoir 82a6103d8d
Fix leftover imports. 2021-06-08 16:04:20 -07:00
voussoir f003f55fca
Move make_json_response to voussoirkit.flasktools. 2021-06-04 21:49:45 -07:00
voussoir d091efb619
Flip all_albums.json to id:name map. 2021-06-04 21:00:49 -07:00
voussoir 975408227b
Improve cached_endpoint behavior with sentinel. 2021-06-04 17:49:46 -07:00
voussoir 56ab6636cc
Add Swipe UI. 2021-06-03 21:28:05 -07:00
voussoir e8cb183849
Add cards.js photos.create, render clipboard batches on client. 2021-05-29 08:46:25 -07:00
voussoir 89205ac24a
Add interface for copying tags from other photos. 2021-04-29 13:12:37 -07:00
voussoir 400c255aea
Add "Show in folder" button to photos, albums. 2021-02-25 18:57:41 -08:00
voussoir e717833d41
Fix batch cards endpoint still referring to photo_card.html. 2021-01-28 17:01:00 -08:00
voussoir d6f155afbd
Add /album/remove_thumbnail_photo endpoint. 2021-01-20 19:07:37 -08:00
voussoir da8dff6f85
Add /album/set_thumbnail_photo endpoint. 2021-01-20 19:07:37 -08:00
voussoir be7f5ebb01
Check is_dir before sending to digest. 2021-01-19 09:59:15 -08:00
voussoir d4f5a196b9 Add Unauthorized exception.
This should start to see more use as I continue to build up the user
profile features.
2021-01-09 15:42:51 -08:00
voussoir ca74e2e1d4 Use request.path instead of url for endswith conditions.
Because of the query string
2021-01-07 23:04:10 -08:00
voussoir db63ccc641 Split /tags.json, /tag/tagname.json into separate routes. 2021-01-07 23:02:05 -08:00
voussoir 84b4595454 Let /tag/tagname.json only return the one main tag, not list.
Previously, the whole walk tree was returned. This can be convenient
because you get the whole descendant tree all at once, but it's
unusual since all the other individual .json endpoints only return a
single object, not a list.
2021-01-07 22:52:42 -08:00
voussoir dd54eabd93 Add api endpoint /tag/tagname/add_synonym. 2021-01-05 14:02:08 -08:00
voussoir b9ad785f4d Remove 'updated' key from /all_albums, /all_tags. Was killing caching.
The cached_endpoint decorator was detecting that the response content
kept changing, so it never returned 304. Oops. At the moment the client
doesn't even use this key, so if we need it back we can use the etag or
another http header.
2021-01-05 13:05:18 -08:00
voussoir bb82c1e4e7 Move cached_endpoint to decorators. 2021-01-05 12:43:39 -08:00
voussoir bef91b959b Improve specific tag redirect.
Previous version had a bug when the URL contained percent-encoded
spaces because url.replace() was looking for spaces and not replacing
the %20. Constructing the url from parts is more reliable.
2021-01-05 01:25:29 -08:00
voussoir 1a2bd59f23 Fix accuracy of Descendants count on tags page. 2021-01-04 13:45:43 -08:00
voussoir 0c3ee6f2d2 Add search_embed for bringing search iframes to other pages. 2021-01-02 13:49:43 -08:00