Paul van Tilburg
d6dd43c7f2
Fix clippy issues; change imports
2022-10-17 19:34:24 +02:00
Paul van Tilburg
da5179d05a
Port to Rocket 0.5.0-rc2
2022-10-17 19:18:35 +02:00
Paul van Tilburg
c3ae8ca62a
Port to Rocket 0.5.0-rc1
...
The rocket-contrib crate has been dropped by upstream.
The serde and serde_json crates are only necessary for the tests.
2021-06-13 21:59:44 +02:00
Paul van Tilburg
0c78996f66
Port to the 2018 edition
2020-02-03 21:38:20 +01:00
Paul van Tilburg
0cfe867c9e
Fix some (lint) warnings
2020-02-03 21:15:38 +01:00
Paul van Tilburg
3017d53256
Take path relative to the Cargo manifest dir
2018-12-18 15:48:36 +01:00
Paul van Tilburg
bc18307da9
Upgrade to Rocket 0.4.0
2018-12-18 15:47:34 +01:00
Paul van Tilburg
fdcb4f3799
Read config from config.toml; add it to the state
2018-03-09 22:27:45 +01:00
Paul van Tilburg
270cffa00e
Run rustfmt on all source files
2018-02-15 20:49:42 +01:00
Paul van Tilburg
67d55cadc4
Rename list to note throughout the application
2018-01-26 21:18:04 +01:00
Paul van Tilburg
1af5fe027f
The ListStore type should not be public (anymore)
2018-01-01 21:44:58 +01:00
Paul van Tilburg
e98324e3fe
Move the tests for the list handlers to the right module
...
Also improve and expand the tests abit. Use serde_json to parse the
results an interpret them instead on depending on response body string
matching (which fails for changing mtimes of the test files).
2018-01-01 21:15:30 +01:00
Paul van Tilburg
810d087508
Add some tests for the list handlers
2018-01-01 18:37:26 +01:00
Paul van Tilburg
4b33969427
Add support for specifying a custom lists dir at startup-time
2018-01-01 18:36:58 +01:00
Paul van Tilburg
f65fde7378
Move the List struct to a modules submodule
...
Move the state type ListStore back to main.rs, it is used for
a global state object (like a DB connection, etc.)
2017-12-30 22:23:16 +01:00
Paul van Tilburg
38801c5625
Split the handlers off into a handler submodules
...
Also move the list handlers to a separate mount point.
2017-12-30 22:06:48 +01:00
Paul van Tilburg
c2baff37f3
Rename the lists index handler for consistency
2017-12-30 13:48:07 +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
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
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
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
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