Commit Graph

17 Commits

Author SHA1 Message Date
rr- 394e51ed21 client/general: improve scrolling 2016-07-13 17:18:28 +02:00
rr- 5ac5eb5503 client/general: refactor URL parameter handling 2016-07-08 00:54:24 +02:00
rr- cd1f4709f0 client/home: change apparance 2016-07-08 00:08:44 +02:00
rr- 99011b02d7 client/home: fix missing info on featured post 2016-07-06 00:07:46 +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- 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- fd2df3966d client/home: show top nav after all, improve looks 2016-06-01 23:42:42 +02:00
rr- 9b0c2012a7 client/home: show post notes (read-only) 2016-05-29 12:41:22 +02:00
rr- 53fd6fb29b client/home: view featured post, add search form 2016-05-29 12:41:22 +02:00
rr- d99c03b9fa client/home: render disk usage and post count 2016-05-22 22:39:31 +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- 2a4241641c client/events: improve event dispatching
This commit introduces timer-less retry system:

1. Any change to URL is going to stop listening to any messages.
2. If a message is sent and there's no handler that could pick it up,
   the message gets enqueued.
3. The message is sent again to the first handler that attaches itself
   to given event type.

While in theory this is full of holes (no control over the first
handler), in practice, it works quite well.

Additionally, views.listenToMessages was attaching to completely wrong
DOM node; this commit fixes this as well.
2016-05-11 23:47:50 +02:00
rr- 2e1823b708 client/views: replace inheritance with composition 2016-04-09 22:23:24 +02:00
rr- 0ceaa8da42 client/views: refactor rendering 2016-04-08 13:48:23 +02:00
rr- 55cc7b59e4 client+server: switch to yaml config 2016-04-06 22:36:04 +02:00
rr- 85ed552fce client/home: format absolute time 2016-04-05 17:57:26 +02:00
rr- e487adcc97 split files into client/ and server/ 2016-04-01 18:48:16 +02:00