Commit Graph

90 Commits

Author SHA1 Message Date
Paul van Tilburg 7f36f116a6 Switch to Sass based custom CSS
* Include the Bootstrap v4.0.0-beta3 SCSS sources
* Use the old custom.css as a basis for wishlist.scss
* Set the correct column count based on the media sizes
2017-12-29 23:55:12 +01:00
Paul van Tilburg cf045a0f79 Upgrade to Bootstrap 4.0.0-beta3 2017-12-29 23:52:02 +01:00
Paul van Tilburg 4f738891f2 Switch to using Bootstrap 4 cards 2017-12-29 20:20:10 +01:00
Paul van Tilburg 5ffd7bcd62 Fix list data not being replaced when switching lists 2017-12-29 19:55:28 +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 f9ee63c765 Apply the changed list data when saving is successful 2017-12-27 21:48:28 +01:00
Paul van Tilburg 370c260a94 Revert the updating when cancelling the edit 2017-12-27 21:47:54 +01:00
Paul van Tilburg 787839e36f Implement updating the list while editing it 2017-12-27 21:47:23 +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 e709985ba2 Show the modification date/time using the "nl" locale 2017-12-27 21:20: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 a952765328 Rework the styling of a list box 2017-12-27 20:57:20 +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 c72b3d1669 Style the list name the same as the list box/body 2017-12-27 20:29:30 +01:00
Paul van Tilburg bc12c285a0 Fix lists not changing color when another one is selected 2017-12-27 20:28:34 +01:00
Paul van Tilburg 8f55d55388 Add favicons 2017-12-27 17:37:00 +01:00
Paul van Tilburg 7e17a33df6 Make the edit buttons smaller 2017-12-27 17:37:00 +01:00
Paul van Tilburg 3fbf6884ff Fix some edit mode switch weirdness 2017-12-27 17:37:00 +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 70034fc5e3 Update the Cargo lock file 2017-12-27 17:31:18 +01:00
Paul van Tilburg dab506ab0b Add more padding for the body (under the fixed top navbar) 2017-12-23 22:37:08 +01:00
Paul van Tilburg 39e4b3c0a7 Hook op JS code to make the UI work in the browser 2017-12-23 22:36:43 +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 b6acf681e5 Add support for JSON output and (de)serialization using Serde 2017-12-23 21:51:13 +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 41b15ffdf7 Add a "static" index layout Tera template 2017-12-17 13:23:08 +01:00
Paul van Tilburg fbbbd65c15 Add a basic layout Tera template (with some custom CSS) 2017-12-17 13:22:59 +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 78890d9a3a Add a directory to keep the lists 2017-12-17 13:16:30 +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 28175f6639 Add static assets of Bootstrap 4.0.0 (beta), jQuery 3.2.1 and Popper.js 1.12.7 2017-12-06 15:37:44 +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