Commit graph

91 commits

Author SHA1 Message Date
rr-
6ea129a9ef client/views: escape HTML
This lets client use < > in tag names.
2016-06-23 12:47:56 +02:00
rr-
f3049e5546 client/tags: add summary view, add tag description 2016-06-23 00:17:11 +02:00
rr-
1a75c61f65 client/tags: fix tag categories with spaces 2016-06-23 00:15:25 +02:00
rr-
eb09677bf8 client/general: replace direct API with models 2016-06-20 23:52:09 +02:00
rr-
39c0c4f338 client/posts: remember search for prev/next post 2016-06-18 11:47:08 +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-
8c424ae4ab client/tags: fix link to used tags 2016-06-17 21:25:37 +02:00
rr-
0f1e234a5d client/top-nav: trying out actual mvc 2016-06-13 22:43:07 +02:00
rr-
6b68c77e17 server/posts: add relation-count token 2016-06-13 20:09:15 +02:00
rr-
c508d37d54 client/css: improve tag edit view 2016-06-12 22:46:22 +02:00
rr-
a28b4bdd3e client/comments: add comment adding 2016-06-12 18:11:56 +02:00
rr-
1e48140b00 client/comments: add global comment list 2016-06-12 14:04:52 +02:00
rr-
7e8a9a0948 client/comments: add comment list view for post 2016-06-12 12:54:08 +02:00
rr-
56432e6089 client/posts: add transparency grid
Can be turned off in browsing settings.
2016-06-11 22:34:01 +02:00
rr-
07603be35e client/posts: add Vimperator hints to vote buttons 2016-06-11 22:34:01 +02:00
rr-
7670737873 client/general: reduce visual distractions 2016-06-11 17:36:02 +02:00
rr-
7566d2e0f3 client/general: respect privileges 2016-06-11 17:36:02 +02:00
rr-
0842d90ca2 client/general: ditch underscore for loops 2016-06-11 17:36:02 +02:00
rr-
2e6e9b40b6 client/general: make search box seen by Vimperator 2016-06-08 22:54:07 +02:00
rr-
07329d33a4 client/posts: add post view (without comments yet) 2016-06-08 22:43:03 +02:00
rr-
e944e89c54 client/tags: add edit time column 2016-06-08 22:39:49 +02:00
rr-
3a42b21987 client/css: refactor <nav> css 2016-06-05 21:46:57 +02:00
rr-
19d8480891 client/users: add counters to user summary 2016-06-03 21:46:25 +02:00
rr-
9d6878a1aa client/posts: bind 'p' key 2016-06-03 19:47:09 +02:00
rr-
c114cec642 client/posts: add safety buttons 2016-06-03 19:47:09 +02:00
rr-
f8e6d07fea client/posts: add proof of concept for post list 2016-06-02 23:39:38 +02:00
rr-
802c7feca0 server/search: add safety search for posts 2016-06-02 13:58:08 +02:00
rr-
aa2f4559b7 client/settings: add option to upscale small posts 2016-06-01 23:42:42 +02:00
rr-
fd2df3966d client/home: show top nav after all, improve looks 2016-06-01 23:42:42 +02:00
rr-
aa71ccb02c client/home: show who featured the post 2016-05-29 12:48:51 +02:00
rr-
53fd6fb29b client/home: view featured post, add search form 2016-05-29 12:41:22 +02:00
rr-
bab88f4739 client/top-nav: reuse makeAccessLink 2016-05-29 12:40:53 +02:00
rr-
d99c03b9fa client/home: render disk usage and post count 2016-05-22 22:39:31 +02:00
rr-
7aaa28f9de client/tags: add setting default tag category 2016-05-22 22:17:11 +02:00
rr-
7ea4718b1b client/tags: add suggesting related tags 2016-05-22 22:17:11 +02:00
rr-
519f606a39 client/build: Google Droid Sans → local Open Sans 2016-05-21 14:02:08 +02:00
rr-
f721554724 client/build: don't use CDN for FontAwesome 2016-05-21 12:35:41 +02:00
rr-
d8c20b89c6 client/build: organize assets into directories 2016-05-21 12:33:02 +02:00
rr-
df5d72d429 client/general: show correct URL in 404 page 2016-05-21 12:03:49 +02:00
rr-
e7fe7d3899 client/general: add 404 page
Reuses old 404 image from 1.x branch, may be subject to change.
2016-05-21 11:49:32 +02:00
rr-
6beffc2ec1 client/home: link to szurubooru code 2016-05-21 11:38:24 +02:00
rr-
2fade2f08c client/css: improve appearance on small screens 2016-05-21 11:17:11 +02:00
rr-
052a7ca684 client/general: use 'ctx' variable for templates 2016-05-21 09:46:53 +02:00
rr-
50404d5f5e client/general: change templates extension
...from .Handlebars' (which the project no longer uses) .hbs, to a more
generic .tpl. Additionally, replace hyphens with underscores for
consistency.
2016-05-18 00:15:28 +02:00
rr-
914bee4c64 client/build: compile vendor packages separately 2016-05-14 13:50:39 +02:00
rr-
b1deb617bc client/tags: add tag merging, editing and deleting 2016-05-11 23:47:50 +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-
09bc5f10f9 client/tags: fix hiding table for no results 2016-05-11 23:47:50 +02:00
rr-
8866a46f68 client/general: rename certain views 2016-05-11 12:17:40 +02:00