Commit graph

1486 commits

Author SHA1 Message Date
9e23aacae7 Add id=photo_filename to the h3. 2020-11-03 15:34:28 -08:00
cc8053f8fd Alert response if set searchhidden fails. 2020-11-03 15:33:59 -08:00
fbaa7843da Add missing semicolon. 2020-11-03 15:33:33 -08:00
d2b6aebee5 Add init, set/unset searchhidden, add_tag commands. 2020-11-03 00:07:29 -08:00
272bd471ff Fix positioning of photo_viewer under the new CSS rules. 2020-11-03 00:05:21 -08:00
44952b4b05 Add some docstrings to the request code. 2020-11-03 00:03:48 -08:00
776376200d Add argument --dont-create to etiquette_repl. 2020-10-28 14:58:32 -07:00
1b221ce8be Add innertext_safe if you want to avoid escaping. 2020-10-25 20:24:06 -07:00
c9fcb51247 When normalizing tag names, collapse whitespace to 1 space. 2020-10-25 20:21:52 -07:00
51fa9aac46 Alphabetize p_tag_breplace. 2020-10-25 20:21:27 -07:00
5f91554198 Don't break the mmf inputs when autocomplete init failed. 2020-10-25 20:20:40 -07:00
ca3540670c On specific tag pages, use unlink buttons for immediate children. 2020-10-25 20:19:38 -07:00
40d369e2bb Fix handling of root drive path as within_directory. 2020-10-25 20:18:56 -07:00
dd581a8274 Add easybake command. 2020-10-17 19:18:25 -07:00
a463e5451b Move tag_breplace_argparse to alphabetical order. 2020-10-17 19:12:22 -07:00
881ce5e3ae With specific tag, start the export with the children.
This prevents the specific tag from being included in the results in
the first place, and has the knock-on effect that the descendants'
lines won't all start with the parent tag's name.
2020-10-17 18:23:38 -07:00
fccd682eac Instead of tags.remove, just filter on the upcoming for loop. 2020-10-17 18:17:23 -07:00
6b71af307c Let Slate be the default theme.
Hooray for dark mode. Sorry classic turquoise.
2020-10-17 18:12:42 -07:00
90e7f6b6e1 Rewrite tag_export.easybake as a generator. 2020-10-17 17:56:21 -07:00
c278f3e0af Let Tag objects be sortable using their name. 2020-10-17 17:55:36 -07:00
938f8239c7 Rearrange common.js and add headers. 2020-10-17 17:32:19 -07:00
7715e10b12 Trade padding for bigger font on remove_tag_button.
Primarily affects the "unlink" / "delete" buttons on /tags.
Without the padding we can get an extra pt of font size, and these
buttons are somewhat of a readability struggle.
2020-10-17 17:28:32 -07:00
c146e0d1b9 Rename instances of Editor variables to clarify what they are. 2020-10-17 17:26:07 -07:00
45acdce74b Let bookmark_card input have width 100%. 2020-10-13 10:56:38 -07:00
adddba6c97 Simplify this bindable def by reversing the if/def nest.
Instead of defining the function with an internal if that will always
pick the same path, let's use that if to instead define a
straightforward function that just does what we want.
2020-10-13 10:53:56 -07:00
af4f2bcdaa Link tags on photo page to the /tag/info url. 2020-10-13 10:41:47 -07:00
6fb6b1eeb0 Add Bookmark.display_name, just like Album. 2020-10-13 10:37:12 -07:00
4a1aad4622 Fix expression orderbys not reflecting in web UI.
selected_column needs to be the expression since that's what comes
back from the normalizer.
2020-10-12 22:30:06 -07:00
b2290d030a Allow orderby bitrate. 2020-10-12 22:28:09 -07: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
4e3e2fea12 Avoid creating emptystring promptclass. 2020-10-03 18:32:21 -07:00
e09c3300d1 Let cached_endpoint pass the content-type header through. 2020-10-03 18:30:16 -07:00
5d802ba9f9 Let response status be 0 even if request didn't complete.
Since meta.status would be undefined for an incomplete request,
I would have to check response.completed && response.meta.status,
which is too much burden. Let's set the status immediately, and
if a callback wants to do further diving we'll use completed then.
2020-10-02 19:43:36 -07:00
d15d5f9856 Set tabbed_container data-active-tab-id on tab change. 2020-10-02 16:53:00 -07:00
d8276b763d Fix default theme evaluation. 2020-10-01 19:58:23 -07:00
83cd4b7cd2 Add init_photodb to prod. 2020-10-01 19:43:06 -07:00
a7f8449dcd Update readme with separate run instructions for repl, cli. 2020-09-30 16:14:30 -07:00
d5a88a2950 Move etiquette_repl back out of its own folder into frontends dir.
In e57f87c I moved it to a folder so that every entry in the frontends
dir was a folder. A noble goal, but it always felt silly and I'm quite
sure it will never expand to be more than a single file.
2020-09-30 15:57:30 -07:00
410d9aba69 Update contact info. 2020-09-30 15:44:35 -07:00
70dfe8aca8 Enforce keyword-only args, alphabetize args. 2020-09-30 15:17:20 -07:00
5e6a666ca2 Add option --localhost_only. 2020-09-30 15:15:49 -07:00
59cc76f8d9 Rename flask launchers -> _dev, _prod.
I want to reduce some complexity around here, part of which is that
launch imported entrypoint imported backend, all to do some proxy
wrapping which isn't necessary for the dev case anyway. Less
layers of wrapping and importing is good. Plus I think this naming
is more clear.
2020-09-30 15:05:44 -07:00
fc894bcd17 Add purge_deleted_photos, purge_empty_albums. 2020-09-30 13:44:09 -07:00
735fbf9abd Let the purge methods yield their deleted items. 2020-09-30 13:41:42 -07:00
0ec072c797 Add breplace. 2020-09-29 18:08:04 -07:00
a41c843cb9 Let #right dominate page height, scroll the rest of tags_on_page. 2020-09-29 17:49:03 -07:00
9533c444a5 Move error_message_area, happy_message_area into #right.
It's where they belong!
2020-09-29 17:21:50 -07:00
14961d75fd Let homepage use width 90% max 600 instead of straight 50%. 2020-09-29 17:18:46 -07:00
ee16d02324 In narrow mode, let #right be absolute to achieve similar effect.
It's not perfect yet, and 95vh is purely empirical.
2020-09-29 17:18:20 -07:00
1d6464b79b Let #right be fixed.
Previously, then the tags list was very long and dominated the scroll
height of the page, the #right and thus the photo would be floating
halfway down the page. By making it sticky, the photo always occupies
the correct position in the viewport no matter how long #left gets.
2020-09-29 17:13:03 -07:00