Commit graph

44 commits

Author SHA1 Message Date
27885df64e Fix binding of the fallback handler. 2018-03-23 10:25:03 -07:00
45091c6596 Fix thumbnail height in CSS only, no html attr. Don't h-stretch. 2018-03-10 19:53:29 -08:00
6de0ad8e36 Oops, add this.open fallback to the open binder. 2018-03-10 13:28:13 -08:00
daf824caf5 Improve album page's use of data-editor-empty-text. 2018-03-10 13:24:23 -08:00
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
a1919a7725 Support giving title when creating albums. Two-step prompt. 2018-03-09 17:38:40 -08:00
5f7266c519 Add button to clear clipboard. 2018-02-24 23:00:28 -08:00
30c9148092 Move the remaining common css / js to their folders. 2018-02-24 12:51:36 -08:00
e359180467 Move clipboard_tray rules to own file in css folder. 2018-02-24 01:06:27 -08:00
aabcb61a9c Create css folder. Move photo_card rules to own file. 2018-02-24 00:58:43 -08:00
840185072b Move photoclipboard.js to the js folder. 2018-02-24 00:47:44 -08:00
56a998682d Create js folder. Move Editor to its own file. 2018-02-24 00:46:55 -08:00
9c6cae7177 Use event listeners instead of setting onkeyup manually. 2018-02-24 00:24:38 -08:00
4b79308119 Move 0-item clipboard collapser to update_clipboard_tray. 2018-02-22 13:36:31 -08:00
2adadf9871 Rewrite tags.html with more Grid. 2018-02-21 22:13:46 -08:00
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
91d445a877 Add new page /clipboard, with full photo cards. 2018-02-17 19:12:34 -08:00
ef5bbf5fc3 Split HTTP response dict into ["meta"] and ["data"]. 2018-02-17 18:47:17 -08:00
b02374136f Let the page add its own clipboard load/save hooks. 2018-02-17 16:31:51 -08:00
1b631b33e9 Make separate functions for HTTP get / post. 2018-02-17 16:08:38 -08:00
574ac9f656 Slightly scale down image thumbnail to match others.
It was too big!
2018-02-16 23:30:27 -08:00
75953c2999 Add docstrings to the photoclipboard functions. 2018-01-19 22:24:07 -08:00
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
4a5583c091 Add tray_lines div so that tray_body might hold more buttons. 2017-12-16 12:24:46 -08:00
443d93ce18 Add the clipboard tray where users manage their photo clipboard.
Appearing on search and album pages, the tray is where you can
remove items from your clipboard without having to click on its
checkbox -- that photo card may not even be on the current page.
2017-12-16 03:47:54 -08:00
55f7da7bb2 Add the photo_clipboard feature with localStorage.
photo_card objects now have a checkbox which adds them
to the clipboard. No pasting or other operations yet.
2017-12-09 17:48:56 -08:00
f69d9d409d Give the editor toolbox a CSS class. 2017-12-08 11:59:27 -08:00
e592b55fb1 Use CSS Grid for the header container.
The elements still use flex for spacing simplicity.
2017-08-01 18:37:25 -07:00
f9524a1858 Switch to CSS Grid for the photo cards. 2017-08-01 18:25:28 -07:00
c3c86de7f8 Only navigate to the album on 200. 2017-07-29 15:40:40 -07:00
05d84c733c Add <pre> to the types that get textarea inste of input. 2017-07-16 17:21:37 -07:00
ee555f5f41 Also provide a display_element_map in addition to edit_element_map. 2017-07-13 23:17:47 -07:00
0e17350d84 Add Editor elements for bookmarks. 2017-07-13 23:13:34 -07:00
1f9dd35e89 Add data-editor-empty-text attribute.
When the display element specifies this attribute, it will be used when
the user leaves that field empty.
2017-07-13 23:07:44 -07:00
5a512d8a25 Include an extra, more general css class "editor_button". 2017-07-09 19:51:58 -07:00
24e162c782 Add basic thumbnail for image types. 2017-06-19 16:13:42 -07:00
6e679f79b6 Add Editor class to generalize in-place editors. 2017-06-14 21:44:18 -07:00
c4d1cf12e4 Make outline thickness more consistent 10 units 2017-06-09 19:15:50 -07:00
1ad83937b4 Add 'Create Album' endpoint and interface. 2017-05-13 16:13:26 -07:00
956c55ac9a Remove unused code for add-tag-to-all of album.
I'll put it back when I actually make it work.
2017-05-13 15:52:08 -07:00
d18b34f2d9 bind_box_to_button can use ctrl+enter 2017-05-13 15:24:41 -07:00
824430dfa8 Add helper div to maintain bg color on filename hover
Without it, gaps are visible between the lines of text.
2017-05-06 04:13:33 -07:00
e5d22e766a Fix usage of request.status 2017-05-05 21:08:32 -07:00
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