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
f50e4a8e42
Add an index to the List struct; use it to give lists text/background colors
2017-12-27 17:32:39 +01:00
70034fc5e3
Update the Cargo lock file
2017-12-27 17:31:18 +01:00
dab506ab0b
Add more padding for the body (under the fixed top navbar)
2017-12-23 22:37:08 +01:00
39e4b3c0a7
Hook op JS code to make the UI work in the browser
2017-12-23 22:36:43 +01:00
950e031c35
Add handlers for retrieving the list in JSON and rendered HTML format
2017-12-23 22:36:03 +01:00
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
c67ff0a78a
Don't save the HTML in the struct, add a to_html method instead
2017-12-23 22:03:25 +01:00
5862a89357
Make List structs cloneable, (de)serializeable; make some fields public
2017-12-23 22:02:46 +01:00
b6acf681e5
Add support for JSON output and (de)serialization using Serde
2017-12-23 21:51:13 +01:00
5dc71e82d3
Use the index Tera template for the index GET route
2017-12-17 13:23:08 +01:00
41b15ffdf7
Add a "static" index layout Tera template
2017-12-17 13:23:08 +01:00
fbbbd65c15
Add a basic layout Tera template (with some custom CSS)
2017-12-17 13:22:59 +01:00
8ebea2e79c
Add a module for loading/parsing the lists
2017-12-17 13:19:27 +01:00
78890d9a3a
Add a directory to keep the lists
2017-12-17 13:16:30 +01:00
f1b1d1e398
Add support for Tera templates
2017-12-06 16:47:55 +01:00
1a6b577854
Split up setting up Rocket into a separate function
2017-12-06 15:38:07 +01:00
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
e742a997dc
Add support for serving static files from static/
2017-12-06 15:34:56 +01:00
3a66d85dcd
Initial import of Rocket boilerplate
2017-12-06 15:29:10 +01:00