Age | Commit message (Collapse) | Author | |
---|---|---|---|
2021-06-24 | refactor: simplify Controller request interception | Martin Fischer | |
In multi-user mode if Alice attempts to access /~bob/ she would get an Unauthorized error since branches are private. To improve the UX we instead already showed Alice a list of which files Bob has shared with her. Previously this was achieved with an before_return_error hook in the Controller trait. While this worked fine, it wasn't elegant, since it required passing the Context struct in all Unauthorized errors, so that the before_return_error hook could access the context. This commit refactors the code to intercept requests to paths like /~bob/ before the regular request handling instead of afterwards. While this could have been implemented in the before_route hook, this would have required either invoking parse_url_path a second time or passing the Result of parse_url_path, both of which would be akward. Therefore this commit also merges before_route into parse_url_path. | |||
2021-06-24 | css: decrease margin-top for h1 | Martin Fischer | |
2021-06-24 | log: allow diffing specific revisions | Martin Fischer | |
2021-06-24 | log: mark up dates as headings | Martin Fischer | |
2021-06-24 | css: set row-gap for body | Martin Fischer | |
2021-06-24 | refactor diff_blob | Martin Fischer | |
2021-06-24 | refactor: move Error enum and impls to own module | Martin Fischer | |
2021-06-24 | split off diff action from log action | Martin Fischer | |
2021-06-24 | refactor: split up blob routes into functions | Martin Fischer | |
2021-06-23 | make single-user mode operate on HEAD branch | Martin Fischer | |
2021-06-23 | stop using #![feature] to support stable Rust | Martin Fischer | |
2021-06-23 | refactor: split off shares.rs from controller.rs | Martin Fischer | |
2021-06-23 | refactor: split up main.rs into multiple modules | Martin Fischer | |
2021-06-22 | publish | Martin Fischer | |