Commit Graph

20 Commits

Author SHA1 Message Date
rr- 1acceb941d client: refactor linking and routing
Print all links through new uri.js component
Refactor the router to use more predictable parsing
Fix linking to entities with weird names (that contain slashes, + etc.)
2017-01-21 00:13:35 +01:00
rr- 8a73f7e400 client: rework promise error handling 2017-01-08 10:25:29 +01:00
rr- 7fa8593b0a client/general: improve URL escaping
Specifically, cater for /, + and % in URL components.
2016-09-04 02:07:22 +02:00
rr- cf1d15354d client/paging: avoid redrawing header navigation 2016-08-28 23:40:28 +02:00
rr- 08c6c2c145 client/auth: show errors early in controllers
In other words, verify the privileges client-side before issuing an
request to the server. This commit focuses on routing (e.g. clicking a
link while not logged in), rather than DOM element visibility that
should be already taken care of.
2016-08-23 23:12:29 +02:00
rr- d8d4654849 client/events: adjust event names
1. "change" should be used to passive changes.
2. "submit" should be used to form submits.

These are not interchangeable.
2016-08-22 21:36:45 +02:00
rr- 2a39ec165d client/general: add title to every page 2016-07-13 21:50:07 +02:00
rr- 5ac5eb5503 client/general: refactor URL parameter handling 2016-07-08 00:54:24 +02:00
rr- fccedc090f client/posts: add mass tag 2016-07-06 23:03:37 +02:00
rr- eb09677bf8 client/general: replace direct API with models 2016-06-20 23:52:09 +02:00
rr- a697aba1b0 client/general: remove api calls from controls
Introduce some missing models along the way
2016-06-18 10:35:20 +02:00
rr- 54e3099c56 client/general: refactor control flow
- Controller lifetime is bound to route lifetime
- View lifetime is bound to controller lifetime
- Control lifetime is bound to view lifetime
- Enhanced event dispatching
- Enhanced responsiveness in some places
- Views communicate user input to controllers via new event system
2016-06-18 10:35:20 +02:00
rr- 0f1e234a5d client/top-nav: trying out actual mvc 2016-06-13 22:43:07 +02:00
rr- 0547ec5aa2 client/paging: remember results in history 2016-06-12 22:02:15 +02:00
rr- 76882b59ef client/router: introduce own router
I'm tired of page.js lack of documentation around finer quirks, and
being forced to read its crap code. Refactored into classes, removed
unused cruft.
2016-06-12 21:43:20 +02:00
rr- 1e48140b00 client/comments: add global comment list 2016-06-12 14:04:52 +02:00
rr- 87e8fb2e7d client/general: unimplemented views empty viewport 2016-05-29 12:40:36 +02:00
rr- 69fe8ec31a client/general: refactor all the things
- Move controls to the "controls/" directory
- Make controls interface look similar to each other
- Prefix "private" methods and attributes with underscore
2016-05-21 00:08:43 +02:00
rr- 5f29fa12c2 client/routing: move routing to controllers 2016-04-06 22:36:04 +02:00
rr- e487adcc97 split files into client/ and server/ 2016-04-01 18:48:16 +02:00