Commit graph

10 commits

Author SHA1 Message Date
rr-
0842d90ca2 client/general: ditch underscore for loops 2016-06-11 17:36:02 +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-
21c15f4cb9 client/settings: add accountless settings 2016-04-11 22:48:47 +02:00
rr-
c543b77aed client/nav: add user avatar 2016-04-11 21:43:58 +02:00
rr-
0ceaa8da42 client/views: refactor rendering 2016-04-08 13:48:23 +02:00
rr-
8a1140eff6 client/api: convert messages to events 2016-04-08 09:48:47 +02:00
rr-
5f29fa12c2 client/routing: move routing to controllers 2016-04-06 22:36:04 +02:00
rr-
9a2a587fb1 client/nav: fix link to user account 2016-04-06 08:11:37 +02:00
rr-
e487adcc97 split files into client/ and server/ 2016-04-01 18:48:16 +02:00
Renamed from static/js/controllers/top_nav_controller.js (Browse further)