voussoir
ffe0be21f5
Fix Photo thumbnail paths to be relative to the PDB's thumb dir.
...
Previously they were relative to the directory from which the client
was launched, meaning it usually started with ./_etiquette.
Now it should be more portable and less tight.
2018-03-13 02:50:54 -07:00
voussoir
8fcaf15fbe
Remove the word "Album" from the h2. The number is okay.
...
I just decided I like this better.
2018-03-10 19:54:56 -08:00
voussoir
df86d0f128
Replace "you are here" with the album's name.
2018-03-10 19:54:22 -08:00
voussoir
45091c6596
Fix thumbnail height in CSS only, no html attr. Don't h-stretch.
2018-03-10 19:53:29 -08:00
voussoir
f04e055ca3
On the tag page, put descr in a dark box like albums.
2018-03-10 13:40:02 -08:00
voussoir
6de0ad8e36
Oops, add this.open fallback to the open binder.
2018-03-10 13:28:13 -08:00
voussoir
daf824caf5
Improve album page's use of data-editor-empty-text.
2018-03-10 13:24:23 -08:00
voussoir
494d44aa03
Improve editor.js comments and usage of `this`.
...
I realized what I was doing wrong with `this`, so now the function
binder is much cleaner.
2018-03-10 13:23:37 -08:00
voussoir
f9bee5716c
Don't clear the clipboard after pasting into album.
...
Sometimes I want to do more operations.
2018-03-09 17:50:41 -08:00
voussoir
a1919a7725
Support giving title when creating albums. Two-step prompt.
2018-03-09 17:38:40 -08:00
voussoir
5f6d21fdee
Give Photos a `searchhidden` property.
...
By default, photos with searchhidden do not appear in the search
results. This allows a small number of representative images from
a large album to appear in the results, while the rest can be
found on the album's page.
The same effect could be achieved with a tag and forbid search,
but tag searching has much higher cost and it would be more difficult
to implement as a default behavior without requiring lots of special
checks whenever listing tags etc.
2018-03-09 17:10:27 -08:00
voussoir
faacf7b594
Oops, use response["data"].
2018-02-26 19:06:27 -08:00
voussoir
f34164bf85
Add search feature has_thumbnails.
...
Search needs a complete refactor.
But until then, let's keep adding to it!
2018-02-24 23:06:25 -08:00
voussoir
5f7266c519
Add button to clear clipboard.
2018-02-24 23:00:28 -08:00
voussoir
4e98fcf137
Oops, add the session to /clipboard.
2018-02-24 19:18:15 -08:00
voussoir
0228fbebfd
Move the random hex generator to helpers.
2018-02-24 18:54:59 -08:00
voussoir
2fceeedbbb
Add /clipboard UI for mass refresh metadata.
2018-02-24 13:23:35 -08:00
voussoir
5add26d8fb
Add endpoint /batch/photos/refresh_metadata.
2018-02-24 12:52:36 -08: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
e359180467
Move clipboard_tray rules to own file in css folder.
2018-02-24 01:06:27 -08:00
voussoir
aabcb61a9c
Create css folder. Move photo_card rules to own file.
2018-02-24 00:58:43 -08:00
voussoir
840185072b
Move photoclipboard.js to the js folder.
2018-02-24 00:47:44 -08:00
voussoir
56a998682d
Create js folder. Move Editor to its own file.
2018-02-24 00:46:55 -08:00
voussoir
aa284c388d
Fix message_area on /login.
...
Because the rules are no longer in common.
2018-02-24 00:34:46 -08:00
voussoir
9c6cae7177
Use event listeners instead of setting onkeyup manually.
2018-02-24 00:24:38 -08:00
voussoir
5a1d259780
Add /clipboard UI for mass-tagging.
2018-02-22 15:23:57 -08:00
voussoir
4b79308119
Move 0-item clipboard collapser to update_clipboard_tray.
2018-02-22 13:36:31 -08:00
voussoir
2adadf9871
Rewrite tags.html with more Grid.
2018-02-21 22:13:46 -08:00
voussoir
a9248d8cab
Add CSS clipboard_size; and other clip hook improvements.
...
Any element with class clipboard_size will have its text updated;
Removed the call to on_pageload from save_ because it redundantly
causes a load. Separate those update hooks.
2018-02-20 20:20:20 -08:00
voussoir
761ae5c30c
Add endpoints /batch/photos/add_tag and /remove_tag.
2018-02-20 17:23:51 -08:00
voussoir
13e8bc4a6f
Add more items to to-do list; minor fixes.
2018-02-20 16:50:39 -08:00
voussoir
ebe0fcee40
Rename URL /photo_cards -> /batch/photos/photo_card.
2018-02-19 23:44:24 -08:00
voussoir
6ad41eb516
Improve bookmark appearance; don't send edit with blank url.
2018-02-17 19:36:48 -08:00
voussoir
91d445a877
Add new page /clipboard, with full photo cards.
2018-02-17 19:12:34 -08:00
voussoir
ef5bbf5fc3
Split HTTP response dict into ["meta"] and ["data"].
2018-02-17 18:47:17 -08:00
voussoir
f4756d97e4
Improve html & Jinja indentation.
2018-02-17 18:19:47 -08:00
voussoir
b02374136f
Let the page add its own clipboard load/save hooks.
2018-02-17 16:31:51 -08:00
voussoir
1b631b33e9
Make separate functions for HTTP get / post.
2018-02-17 16:08:38 -08:00
voussoir
606a66cbf9
Remove Photo.filepath and real_filepath in favor of real_path.
2018-02-17 15:19:36 -08:00
voussoir
59cd922a53
Remove unnecessary methods=GET.
2018-02-17 14:59:02 -08:00
voussoir
574ac9f656
Slightly scale down image thumbnail to match others.
...
It was too big!
2018-02-16 23:30:27 -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
2f9b51b636
Rename Photo.tags -> get_tags.
2018-02-16 23:07:21 -08:00
voussoir
ac9d7ede22
Rename Album.photos -> get_photos.
2018-02-16 23:03:54 -08:00
voussoir
6574450ad1
Rename Tag.synonyms -> get_synonyms.
2018-02-16 23:01:07 -08:00
voussoir
fdcf07940a
Rename Groupable.children -> get_children.
2018-02-16 23:00:43 -08:00
voussoir
75effafaf5
Rename Groupable.parent -> get_parent.
...
After making the "if x.parent is None" mistake too many times,
forgetting that it was not a @property, I've decided that the
verby name is better.
2018-02-16 22:59:34 -08:00