rr-
d2a5e1056d
client/models: discard field declarations
...
This has important side effect that matters when we check for data
changes using _orig dictionary. Previously, _orig was empty (so its
members fields were undefiend) whereas the real fields were declared as
nulls. This meant that for new entities, the conditions were always
true, which is unintended. Now both _orig and the class itself are
initially populated with _updateFromResponse which syncs the state
between them, removing the problem.
2016-07-26 23:15:05 +02:00
rr-
7022686b77
client/tags: improve privilege checking
...
- Hide fields that are uneditable, rather than disabling them
- Support fragmented edit privileges (e.g. roles than can edit only some
aspects of tags) - up until now the client tried to send everything at
once, which resulted in errors for such cases.
2016-07-26 20:49:48 +02:00
rr-
b378ce7ede
client/posts: move relations above tags
2016-07-26 20:38:12 +02:00
rr-
8a68e182fd
client/posts: implement loop video flag
2016-07-26 20:38:12 +02:00
rr-
865c4f3b79
client/posts: respect edit privileges in sidebar
2016-07-26 20:38:12 +02:00
rr-
0db70f7951
client/css: stylize cursor of disabled elements
2016-07-26 19:57:41 +02:00
rr-
faf461419f
client/posts: fix JSCS complaint
2016-07-17 21:15:50 +02:00
rr-
7488abb332
client/posts: add simple editing
2016-07-17 20:32:00 +02:00
rr-
651c3f6925
client/posts: fix post edit route
2016-07-17 19:00:40 +02:00
rr-
2a39ec165d
client/general: add title to every page
2016-07-13 21:50:07 +02:00
rr-
394e51ed21
client/general: improve scrolling
2016-07-13 17:18:28 +02:00
rr-
5d8dd9cb05
client/paging: fix endless scroll return path
...
Since some refactors it has always been returning to page 1.
2016-07-08 00:54:24 +02:00
rr-
8901658c17
client/posts: strip junk from post permalinks
...
Thanks for inspiration, StackExchange
2016-07-08 00:54:24 +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-
6140872cd9
client/posts: add implications recursively
2016-07-06 23:03:37 +02:00
rr-
fccedc090f
client/posts: add mass tag
2016-07-06 23:03:37 +02:00
rr-
99011b02d7
client/home: fix missing info on featured post
2016-07-06 00:07:46 +02:00
rr-
7e62751e4e
client/tags: fix hovering over autocomplete in FF
...
Hovering over an autocomplete box always selected the last element
rather than the element under the cursor. This is because resultIndex
was bound by reference.
This looks like a bug in FF implementation of "for (let [x, y] of ...)"
-rather than binding "x" and "y" to the scope of the loop, it's
equivalent to "for (var [x, y] of ...)", which causes nasty anomalies
for functions created inside the loop body.
2016-07-05 23:59:10 +02:00
rr-
abd8e9e89c
client/general: handle spaces in autocomplete
2016-07-03 19:38:17 +02:00
rr-
7ae2778e48
client/css: fix sizing of large posts
2016-07-03 18:30:33 +02:00
rr-
83cc53be07
client/posts: show post relations
2016-07-03 18:30:32 +02:00
rr-
1f413763bd
client/posts: remember fit mode
2016-06-29 18:54:49 +02:00
rr-
c8e57146f3
client/tags: add usage count
2016-06-28 22:04:55 +02:00
rr-
7b4645b54b
client/tags: improve tag regex handling
2016-06-23 12:47:56 +02:00
rr-
2f20bc1619
client/general: fix certain error handlers
2016-06-23 12:47:56 +02:00
rr-
c7f6663c36
client/general: escape entity names in links
2016-06-23 12:47:56 +02:00
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-
a6d6aa2f4d
client/api: encode spaces (and others) in URLs
2016-06-23 00:15:25 +02:00
rr-
1a75c61f65
client/tags: fix tag categories with spaces
2016-06-23 00:15:25 +02:00
rr-
1c5f44a91c
client/tags: fix sorting by tag usage
2016-06-23 00:15:25 +02:00
rr-
c0fd46c890
client/views: fix complex templates
2016-06-23 00:15:24 +02:00
rr-
eb09677bf8
client/general: replace direct API with models
2016-06-20 23:52:09 +02:00
rr-
5f4b67a2bc
client/views: improve HTML to DOM converter
...
Putting a <tr> in the template resulted in... something weird. Adapting
tricks from JQuery with additional fixes.
2016-06-20 21:44:04 +02:00
rr-
e4b4276f3b
client/top-nav: fix activating list items
2016-06-19 21:38:39 +02:00
rr-
d5c3d21951
client/api: fix cache not cleared on login
...
This led to weird anomalies when logging with valid password and then
with invalid one.
2016-06-19 21:38:39 +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-
7f46f72a74
client/auth: fix password reminder
2016-06-17 00:38:43 +02:00
rr-
974bc7e908
client/css: fix tag delete form ghost margin
2016-06-16 23:42:50 +02:00
rr-
2ac8d8650c
client/posts: introduce post model
...
Now to replace all the api calls in views with event system... and then
do the same for user, tag and comment
2016-06-14 07:50:22 +02:00
rr-
6fcf81e55d
client/posts: split controllers
2016-06-14 07:50:22 +02:00
rr-
0f1e234a5d
client/top-nav: trying out actual mvc
2016-06-13 22:43:07 +02:00
rr-
e93af8b577
client/events: add experimental EventTarget
2016-06-13 20:11:17 +02:00
rr-
892c154b34
client/polyfill: add NodeList.querySelectorAll
2016-06-13 20:10:55 +02:00
rr-
7116903438
client/css: remove ghost margin near comment form
...
It appeared only on Chrome?
2016-06-13 20:10:11 +02:00
rr-
f1686f8449
client/css: reduce margin around comment form
2016-06-13 20:10:00 +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-
f24ea3450d
client/comments: fix canceling preview
2016-06-12 22:33:31 +02:00
rr-
e800e6c21b
client/comments: fix sort order
...
Each time the user clicked 'comments' tab, the comments were reversed.
2016-06-12 22:19:05 +02:00
rr-
3cbcbf1140
client/general: fix jscs warnings
2016-06-12 22:10:20 +02:00
rr-
0547ec5aa2
client/paging: remember results in history
2016-06-12 22:02:15 +02:00
rr-
95b3b09cbc
client/router: remember scroll position
2016-06-12 21:58:05 +02:00
rr-
e10ed4bce8
client/router: refactor call chains
2016-06-12 21:57:19 +02:00
rr-
ee829e42d2
client/paging: improve endless scroll
2016-06-12 21:43: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-
4295e1c827
client/misc: fix Markdown permalinks
2016-06-12 18:15:27 +02:00
rr-
a28b4bdd3e
client/comments: add comment adding
2016-06-12 18:11:56 +02:00
rr-
b9fc626ace
client/comments: fix link placement for Vimperator
2016-06-12 17:10:03 +02:00
rr-
b1b261beb8
client/posts: fix safety buttons
2016-06-12 14:10:51 +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-
0908323290
client/posts: add keyboard shortcuts
2016-06-11 22:34:31 +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-
e9fb93d5c8
server/general: rename _fields to fields
2016-06-11 22:33:33 +02:00
rr-
9e13c05517
client/misc: fix invalid markup for SJIS
2016-06-11 22:33:33 +02:00
rr-
c2606a2555
client/posts: fix handling sidebar errors
2016-06-11 17:45:32 +02:00
rr-
1a8ff11522
client/css: fix border around active post
2016-06-11 17:45:29 +02:00
rr-
fcf9cb13cb
client/css: fix body width in post view
2016-06-11 17:45:29 +02:00
rr-
eec1958280
client/tags: don't fetch all fields
2016-06-11 17:36:02 +02:00
rr-
8303c08437
client/users: make avatars clickable
2016-06-11 17:36:02 +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-
abd679888a
client/general: make fatal errors fatal
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-
d445a4c93f
client/general: simplify input creation
2016-06-08 22:51:15 +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-
009e13c6d8
client/polyfill: add .querySelector to NodeList
2016-06-08 22:39:49 +02:00
rr-
3a42b21987
client/css: refactor <nav> css
2016-06-05 21:46:57 +02:00
rr-
a20bf56e75
client/posts: tweak posts list view
2016-06-04 12:32:42 +02:00
rr-
19d8480891
client/users: add counters to user summary
2016-06-03 21:46:25 +02:00
rr-
aa95afb989
client/tags: fix crash without exported tags
2016-06-03 21:37:30 +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-
dcaf650244
client/posts: change hover border
2016-06-02 23:56:56 +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-
d6f27e82c6
client/notes: fix placement after mouse scroll
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-
8d1e23aa63
server/general: flatten responses
2016-05-30 22:54:33 +02:00
rr-
5427b0d25a
client/home: make footer less prominent
2016-05-29 12:49:24 +02:00
rr-
aa71ccb02c
client/home: show who featured the post
2016-05-29 12:48:51 +02:00