Commit Graph

28 Commits (d7b9020585628654830daef80ae0df110d8a4065)

Author SHA1 Message Date
voussoir d7b9020585 Add namespacing to photoclipboard.js. 2018-07-22 20:21:00 -07:00
voussoir c7cce5a4e5 Add namespacing to common.js. 2018-07-22 20:21:00 -07:00
voussoir 8a12a24e8e Add tag_autocomplete.js.
Instead of embedding the entire tag list in the search.html template
every single time, this script loads the tags from the new,
cache-enabled endpoint /all_tags.json. Then we can use html5
datalists to create autocomplete forms on the search and photo pages.
2018-07-22 20:19:05 -07:00
voussoir 4c65ccaf68 Big! Liberate Groupables from strict heirarchy. Multiple parents.
I found that the strict heirarchy was not satisfying the situation
where one tag is the intersection of two others, but we can only
pick one as the parent

For example, does red_jacket belong under clothes.red_clothes or
clothes.jackets? A search for "red_clothes AND jackets" might
give us someone wearing red pants and a black jacket, so this
definitely needs to be a separate tag, but picking only one
parent for it is not sufficient. Now, a search for red_clothes
and a search for jackets will both find our red_jacket photo.

The change also applies to Albums because why not, and I'm sure
a similar case can be made.

Unfortunately this means tags no longer have one true qualname.
The concept of qualnames has not been completely phased out but
it's in progress.

This commit is very big because I was not sure for a long time
whether to go through with it, and so much stuff had to change
that I don't want to go back and figure out what could be grouped
together.
2018-07-20 13:09:06 -07:00
voussoir 4002cc660e Don't use shortlink for zoom url. It breaks caching. 2018-05-01 21:03:10 -07:00
voussoir b19682d1a5 Replace Photo.sorted_tags with jinja filter. 2018-04-28 19:05:51 -07:00
voussoir 50592f0ab4 Rework tab titles from "Album X" to "X | Albums" etc.
To prioritize the most unique and relevant piece of information.
2018-04-27 20:04:24 -07:00
voussoir bdec6cf4a3 Add filter to generate /file/ link with appropriate basename.
Because inlining the |urlencode every time is easy to forget.
2018-04-19 19:29:06 -07:00
voussoir 21bd211889 Give Users a display_name. 2018-04-15 14:23:24 -07:00
voussoir 30c9148092 Move the remaining common css / js to their folders. 2018-02-24 12:51:36 -08:00
voussoir 79b20369db Oops, apply listeners to /photo input box as well. 2018-02-24 01:08:21 -08:00
voussoir 13e8bc4a6f Add more items to to-do list; minor fixes. 2018-02-20 16:50:39 -08:00
voussoir ef5bbf5fc3 Split HTTP response dict into ["meta"] and ["data"]. 2018-02-17 18:47:17 -08:00
voussoir b4a28f5034 Make Photo.bytestring a @property.
This is the kind of thing that should be a @property, because
it's very low processing power and doesn't hit the database.
2018-02-16 23:16:02 -08:00
voussoir bbe392ac09 Rename Photo.author -> get_author; no longer a @property. 2018-02-16 23:11:25 -08:00
voussoir 205c49c21f Rename Photo.albums -> get_containing_albums. 2018-02-16 23:08:44 -08:00
voussoir 1c1e7f158f Minor fixes & pylint appeasements. 2018-02-16 21:28:36 -08:00
voussoir 5fccf5548b Add Before and After search links to the photo sidebar. 2018-01-11 16:11:38 -08:00
voussoir e41532cff1 Rearrange some button CSS classes to be more generic.
Adds CSS variables for the highlight and shadow so they don't need
to be custom-defined for each color of button.
Elements should use more generic classes like green_button instead of
add_tag_button unless there's a good reason.
2017-12-16 14:13:02 -08:00
voussoir 26a034c9a0 Make `Photo.author` a @property; None if no author. 2017-09-23 10:58:04 -07:00
voussoir 797b3376a7 Add meta viewport to all pages. 2017-07-20 23:10:48 -07:00
voussoir 5ba2ecd38a Add tag_object html macro to centralize that effort. Still needs work. 2017-06-13 21:42:23 -07:00
voussoir aa30d5903d Don't clip editor_area bg when scrollbar appears.
Instead of applying the background-color to the holder, apply it to the editor
area and message area separately. Then they can flex differently so that
the editor always maintains full height, and the message area shrinks to
a minimum of 30px.
2017-06-13 21:35:13 -07:00
voussoir a485be3c64 Make bitrate a real attribute instead of calculating in jinja 2017-05-11 22:34:19 -07:00
voussoir 1fe3b99876 Move filename to be its own li 2017-05-06 03:45:01 -07:00
voussoir 980688fbc1 Fix hoverzoom snapping to last known position.
Suddenly hoverzoom started acting wrongly. Possibly a Chrome update.
2017-05-05 23:02:42 -07:00
voussoir 87abb055c3 Fix photo message_area from dominating screen height 2017-05-05 22:59:22 -07:00
voussoir 1c30ef5785 Further separate front & back; Create frontends folder
New frontends folder will hold all front-end interfaces for etiquette. Existing flask site moved here and refers to itself as a package with external launcher. etiquette_site renamed to etiquette_flask
2017-05-01 21:49:28 -07:00