Commit graph

1366 commits

Author SHA1 Message Date
58a0a246c8 Add comment regarding sticky_bottom background and :before pseudo. 2021-01-02 23:53:14 -08:00
087238bfad Remove z-index from selected photo overlay. It's not necessary. 2021-01-02 23:52:46 -08:00
750bb51868 Fix Migrator behavior... again!
I got pretty close last time, but the one table that I rebuilt manually
inside the with block was, of course, still hanging on to the table_old
when all the others got renamed. Grrr. This new format breaks the whole
thing into separate steps for rename, transfer, drop, all tables
in lockstep.
2021-01-02 13:51:53 -08:00
0c3ee6f2d2 Add search_embed for bringing search iframes to other pages. 2021-01-02 13:49:43 -08:00
732c054075 Replace height with min-height, fixes squashed bottom margin. 2021-01-02 11:35:46 -08:00
e303b934f7 Add UI for editing user's display name. 2021-01-01 19:46:31 -08:00
84a5e2b4e1 Significant updates to editor.js. 2021-01-01 19:46:06 -08:00
89195d3449 Add comment about response catching strictness levels. 2021-01-01 19:08:36 -08:00
b73fb69612 Add comment about foreign keys. 2021-01-01 17:02:03 -08:00
9d048a5d88 Improve export_symlinks. 2021-01-01 17:02:03 -08:00
ea5f22bae1 Remove unused unicodedata.
Relevant function got moved to stringtools.
2021-01-01 17:02:03 -08:00
0cd5427806 database_upgrader no longer needs to be its own directory. 2021-01-01 17:02:03 -08:00
b04f93db19 Delete old_inits, let's always inline from now on.
The Regenerator class should help with the bulk table rebuilding
that the old inits was added for.
2021-01-01 17:02:03 -08:00
ffbfa77ecc Add UI dropdown for orderby basename. 2021-01-01 17:02:03 -08:00
d55cc5c58a Use a dict instead of if/elif. 2021-01-01 17:02:02 -08:00
2c29c196a7 Return friendly and expanded orderby column separately.
Previously, the UI had to un-transform the expanded column back
into the friendly name, which was silly and cumbersome.
2021-01-01 17:02:02 -08:00
79327de0f0 Rearrange these continues into relevant condition. 2021-01-01 17:02:02 -08:00
b1000dd0f8 Move orderby direction check above column expansion. 2021-01-01 17:02:01 -08:00
8ecf594945 Move jsonify methods into the objects instead of separate file. 2021-01-01 17:02:01 -08:00
d3f6d6b26a Add exceptions to warning_bag instead of strings for some.
I was adding messages as strings because that's how they get shown on
the web interface. But it's better to return the real exception objects
and have the interface deal with it.
2021-01-01 17:02:01 -08:00
94130e4803 Add betterhelp docstring. 2021-01-01 17:02:00 -08:00
84b35c3eaa Only purge deleted files, empty albums within the cwd. 2021-01-01 17:02:00 -08:00
968d84b3cb Add export_symlinks command. 2021-01-01 17:02:00 -08:00
5d11b0cfeb Update extension column when filepath is updated. 2021-01-01 17:02:00 -08:00
6522bda09c Add basename in separate column so we can orderby it.
For a while I've wanted to be able to sort search results by the file's
basename. This is especially important for the cli. SQLite doesn't have
an easy way to split the filepath column by the slash, so the only
choice is to store basename as a separate column. I put it off for a
while but I think it's the right move. However we must not forget to
update it every time we update filepath, which is a bummer.
2021-01-01 17:02:00 -08:00
f9dc720ff8 Add Regenerator to rebuild tables after breaking changes.
See code comments. The problem is that since I always write the
newest upgrader and use it immediately, I've never actually taken
a very old database and run it through the whole series of
upgraders. So that will be necessary to have more confidence in this
system.
2021-01-01 17:01:59 -08:00
6a98631f2d Add sql_executescript. 2021-01-01 17:01:59 -08:00
8e964e2888 Add get_albums_within_directory. 2021-01-01 17:01:52 -08:00
017633331b Fix yield photo should only happen when not exception. 2020-12-30 15:50:29 -08:00
023c540dbf Fix init command, should create _etiquette directory. 2020-12-30 15:50:29 -08:00
aa3bc2d100 Rename purge_deleted_photos -> purge_deleted_files. 2020-12-30 15:50:23 -08:00
f9e7049424 Change allowed_orderby_columns from list to set; alphabetize. 2020-12-29 16:06:43 -08:00
a4a1f39ede Fix response.json_ok -> response.meta.json_ok. 2020-12-26 13:22:19 -08:00
8f9b4142a6 Improve UI performance of selecting / deselecting photo cards.
Move save_clipboard into a 0-timeout. Check checkboxes immediately
instead of relying on apply_check_all / update_pagestate to make a
redundant loop through everything.
2020-12-26 13:21:06 -08:00
7f2d463062 Hide the photo card holder when there are no photos.
I didn't like the narrow sliver of div that was left.
2020-12-26 12:14:42 -08:00
33b4799268 Only log "needed but not received" if there are any. 2020-12-26 12:13:54 -08:00
cdfa0531a2 Add Mirrors header. 2020-12-23 19:56:15 -08:00
5bab0b8972 Add codeberg to mirror list. 2020-12-15 23:11:12 -08:00
a91366149b Transition calls to getpermission to interactive. 2020-12-07 00:54:53 -08:00
a604cfa5cd Add alias tag-breplace. 2020-11-27 15:40:13 -08:00
1cf6e64bfa Add remove_tag command. 2020-11-27 15:39:58 -08:00
f09115d1b8 Add to do item for search results RSS. 2020-11-20 17:54:38 -08:00
ac51608472 Update contributing.md to deprioritize discord. 2020-11-20 16:31:26 -08:00
01f85d41b6 Use voussoirkit.stringtools for remove_characters. 2020-11-16 00:13:35 -08:00
4988f6dbdd Fix missing parameters for get_users_by_sql. 2020-11-15 22:20:36 -08:00
6fe3cecead Remove old import for logging. 2020-11-15 22:20:36 -08:00
469103e0ac Use voussoirkit.stringtools for comma_space_split. 2020-11-15 22:20:36 -08:00
98b6d93094 Use voussoirkit.stringtools for collapse_whitespace. 2020-11-15 22:20:36 -08:00
9ca40c6ae7 Use voussoirkit.gentools for chunk_generator. 2020-11-15 22:20:36 -08:00
7d454a03ac Incorporate __name__ into photodb's logger. 2020-11-15 22:20:36 -08:00