Commit graph

21 commits

Author SHA1 Message Date
Paul van Tilburg c2baff37f3 Rename the lists index handler for consistency 2017-12-30 13:48:07 +01:00
Paul van Tilburg 51d3e876d6 Enable some extentions for the Markdown syntax
Enable the strikethrough, tagfilter, tasklist and autolink extensions
from the GFM spec.
2017-12-30 13:46:58 +01:00
Paul van Tilburg 09db743a9e Rework the entire UI to support multiple lists in one view
* The root location now shows all lists
* The specific list locations show only the specified list
* Each list can be individually edited
* Use the card columns (masonry) layout when showing all lists
* No longer support HTML previewing, just switch between editing
  and viewing (ala Github comments)
2017-12-29 23:56:24 +01:00
Paul van Tilburg b63019bfac Add a bit of documentation 2017-12-27 22:02:55 +01:00
Paul van Tilburg 15b8dbe614 Remove an old debug statement 2017-12-27 21:50:46 +01:00
Paul van Tilburg 85e25a9b5c Add the handler for converting temp list data to HTML 2017-12-27 21:32:16 +01:00
Paul van Tilburg b01d331742 Move the data to HTML conversion to a separate function
Sometimes data needs to be converted to HTML without it being list data
(yet).
2017-12-27 21:31:17 +01:00
Paul van Tilburg 1f1e4ed079 Add the modification time to the List struct 2017-12-27 21:19:34 +01:00
Paul van Tilburg 9be9808463 Save the data to the list file when updated 2017-12-27 20:56:54 +01:00
Paul van Tilburg 167eda78e9 Implement saving a list; make the lists mutable using an RW lock
It currently only saves to memory.  So, if the application restart,
the lists are back to what is in the list files.
2017-12-27 17:36:26 +01:00
Paul van Tilburg f50e4a8e42 Add an index to the List struct; use it to give lists text/background colors 2017-12-27 17:32:39 +01:00
Paul van Tilburg 950e031c35 Add handlers for retrieving the list in JSON and rendered HTML format 2017-12-23 22:36:03 +01:00
Paul van Tilburg 23af7ab2be Complete rework the index view
* Manage the vector of loads lists in the state
* Use a struct as the context for the index template
* Rework the _layout and index templates; remove hardcoded examples
2017-12-23 22:20:57 +01:00
Paul van Tilburg c67ff0a78a Don't save the HTML in the struct, add a to_html method instead 2017-12-23 22:03:25 +01:00
Paul van Tilburg 5862a89357 Make List structs cloneable, (de)serializeable; make some fields public 2017-12-23 22:02:46 +01:00
Paul van Tilburg 5dc71e82d3 Use the index Tera template for the index GET route 2017-12-17 13:23:08 +01:00
Paul van Tilburg 8ebea2e79c Add a module for loading/parsing the lists 2017-12-17 13:19:27 +01:00
Paul van Tilburg f1b1d1e398 Add support for Tera templates 2017-12-06 16:47:55 +01:00
Paul van Tilburg 1a6b577854 Split up setting up Rocket into a separate function 2017-12-06 15:38:07 +01:00
Paul van Tilburg e742a997dc Add support for serving static files from static/ 2017-12-06 15:34:56 +01:00
Paul van Tilburg 3a66d85dcd Initial import of Rocket boilerplate 2017-12-06 15:29:10 +01:00