Commit graph

342 commits

Author SHA1 Message Date
Marcin Kurczewski
5a4d5797d8 Added aliases for date-based searches 2014-10-18 18:48:40 +02:00
Marcin Kurczewski
7a15a590ed Changed viewing access ranks to require privilege 2014-10-18 18:48:39 +02:00
Marcin Kurczewski
fc13fb1342 Changed default access rank to restricted user 2014-10-18 18:48:39 +02:00
Marcin Kurczewski
ec5239607c Added help
(Not going to add API documentation unless someone asks me to. Otherwise
I'd feel like I'm wasting my time.)
2014-10-18 18:48:39 +02:00
Marcin Kurczewski
765d553a84 Made most things reachable with just a keyboard 2014-10-18 18:48:39 +02:00
Marcin Kurczewski
33b205b574 Tweaked appearance 2014-10-18 18:48:39 +02:00
Marcin Kurczewski
7ff35f4848 Fixed positioning of post edit form 2014-10-18 18:48:39 +02:00
Marcin Kurczewski
eb51187ef6 Fixed autocomplete inputs weren't clickable 2014-10-18 18:48:39 +02:00
Marcin Kurczewski
6ca08e5532 Added tag siblings to frontend 2014-10-18 18:48:39 +02:00
Marcin Kurczewski
5d0611ed30 Added cursor: pointer to all links 2014-10-18 18:48:39 +02:00
Marcin Kurczewski
6bb5b53377 Added ability to stop uploads 2014-10-18 18:48:38 +02:00
Marcin Kurczewski
02294a355d Improved button appearance 2014-10-18 18:48:38 +02:00
Marcin Kurczewski
db19005622 Fixed post list on IE 2014-10-18 18:48:38 +02:00
Marcin Kurczewski
7181171b16 Fixed router on IE 2014-10-18 18:48:38 +02:00
Marcin Kurczewski
ace8aee142 Improved access keys
- Added underscore hint
- Changed algorithm to provide access key for every button
2014-10-18 18:48:38 +02:00
Marcin Kurczewski
42d306734d Fixed user presenter unable to show errors 2014-10-18 18:48:38 +02:00
Marcin Kurczewski
12237451eb Changed content width back to 100% 2014-10-18 18:48:38 +02:00
Marcin Kurczewski
f93fd2c31c Fixed post list presenter not updating queries 2014-10-18 18:48:38 +02:00
Marcin Kurczewski
0811968718 Fixed frontend crashing when database is empty 2014-10-18 18:48:37 +02:00
Marcin Kurczewski
d2695e635c Improvements to appearance 2014-10-18 18:48:37 +02:00
Marcin Kurczewski
672185f959 Added tag name changing 2014-10-18 18:48:37 +02:00
Marcin Kurczewski
74e6e008dc Implemented mass tag 2014-10-18 18:48:37 +02:00
Marcin Kurczewski
f2b5124d54 Changed pager spinner to be smoother 2014-10-18 18:48:37 +02:00
Marcin Kurczewski
6afd60feba Removed PathJS dependency; refactored routing 2014-10-18 18:48:37 +02:00
Marcin Kurczewski
60ab927558 Added robots.txt 2014-10-18 18:48:37 +02:00
Marcin Kurczewski
93291e5164 Added ability to loop video posts 2014-10-18 18:48:37 +02:00
Marcin Kurczewski
04bdb04f20 Added meaningful name to saved posts 2014-10-18 18:48:37 +02:00
Marcin Kurczewski
ad8e3bdcd5 Added tag presenter 2014-10-18 18:48:36 +02:00
Marcin Kurczewski
49124298a2 Added tag listing 2014-10-18 18:48:36 +02:00
Marcin Kurczewski
a1dfebea3b Changed templates MIME to text/plain
Makes more sense: try accessing some of the templates in the browser
directly.
2014-10-18 18:48:35 +02:00
Marcin Kurczewski
4e2b422d43 Moved history above comments 2014-10-18 18:48:35 +02:00
Marcin Kurczewski
c49e9fd3f5 Removed href="#" attributes 2014-10-18 18:48:35 +02:00
Marcin Kurczewski
651fc4919f Fixed changing users sometimes not working 2014-10-18 18:48:35 +02:00
Marcin Kurczewski
18bec702ce Fixed paginator 2014-10-18 18:48:35 +02:00
Marcin Kurczewski
c34ea720d9 Added Markdown parsing to comments 2014-10-18 18:48:35 +02:00
Marcin Kurczewski
94e1b8ecdb Removed lag before showing "Add comment" form 2014-10-18 18:48:35 +02:00
Marcin Kurczewski
6e09f90251 Fixed top navigation loading glitch
A race condition occurred - router could execute promise.abortAll()
even when top navigation didn't fully load. This caused top navigation
presenter to throw "broken promise" error, which is reserved for
promises made after core modules have been loaded.
2014-10-18 18:48:35 +02:00
Marcin Kurczewski
6bf8586735 Added comment scoring 2014-10-18 18:48:34 +02:00
Marcin Kurczewski
adfc120642 Added autocompletion 2014-10-18 18:48:34 +02:00
Marcin Kurczewski
b57fee0ad8 Improved image and thumbnail loading 2014-10-18 18:48:34 +02:00
Marcin Kurczewski
784ff22050 Refactored template loading 2014-10-18 18:48:34 +02:00
Marcin Kurczewski
688b5b1281 Added prev/next post controls 2014-10-18 18:48:34 +02:00
Marcin Kurczewski
33c1d99583 Fixed loading templates from DOM 2014-10-18 18:48:34 +02:00
Marcin Kurczewski
1df02c16c2 Added favicon 2014-10-18 18:48:34 +02:00
Marcin Kurczewski
547c6e56d3 Fixed featured posts not centered if small 2014-10-18 18:48:34 +02:00
Marcin Kurczewski
94aec9cc0e Fixed first comment not showing in comment list 2014-10-18 18:48:34 +02:00
Marcin Kurczewski
4bfe70f256 Added quick links to user view 2014-10-18 18:48:34 +02:00
Marcin Kurczewski
17cc4e7947 Added comment count to post list 2014-10-18 18:48:34 +02:00
Marcin Kurczewski
16f9c277a1 Added comment presenters 2014-10-18 18:48:33 +02:00
Marcin Kurczewski
16c5740277 Added comment API 2014-10-18 18:48:33 +02:00
Marcin Kurczewski
a728279bf5 Removed reliance on global from Dispatcher 2014-10-18 18:48:33 +02:00
Marcin Kurczewski
69edaa2159 Changed promises to use IDs 2014-10-18 18:48:33 +02:00
Marcin Kurczewski
d8414c4f9b Fixed "search" button in post list 2014-10-18 18:48:33 +02:00
Marcin Kurczewski
614111a5f0 Changed user settings to be stored as arrays 2014-10-18 18:48:33 +02:00
Marcin Kurczewski
c78d9d62e6 Fixed updating search to previous query 2014-10-18 18:48:32 +02:00
Marcin Kurczewski
d6bd82dc3e Removed CDN dependencies for JS 2014-10-18 18:48:32 +02:00
Marcin Kurczewski
216d9b3001 Moved autoloader to composer config 2014-10-18 18:48:32 +02:00
Marcin Kurczewski
335a744854 Fixed GIF being resumed between page views 2014-10-18 18:48:32 +02:00
Marcin Kurczewski
455ae2b881 Fixed promises and its race conditions 2014-10-18 18:48:32 +02:00
Marcin Kurczewski
e1ae4eaa0d Added warning if no entities were shown 2014-10-18 18:48:32 +02:00
Marcin Kurczewski
ec8daf91fb Improved error handling in pager presenters 2014-10-18 18:48:32 +02:00
Marcin Kurczewski
7d8dfd797f Added query to post list 2014-10-18 18:48:31 +02:00
Marcin Kurczewski
da41fd7a96 Renamed PagedCollectionPresenter to PagerPresenter 2014-10-18 18:48:31 +02:00
Marcin Kurczewski
14325b4338 Extracted pager from paged collection presenter 2014-10-18 18:48:31 +02:00
Marcin Kurczewski
016e89a463 Added autofocus to login form 2014-10-18 18:48:31 +02:00
Marcin Kurczewski
4c458d8b20 Fixed privileges 2014-10-18 18:48:31 +02:00
Marcin Kurczewski
31e0158606 Added user banning 2014-10-18 18:48:30 +02:00
Marcin Kurczewski
6c76f016e7 Added keyboard shortcuts to top navigation 2014-10-18 18:48:30 +02:00
Marcin Kurczewski
51b3342d62 Added ability to select tags in tag input 2014-10-18 18:48:30 +02:00
Marcin Kurczewski
e58b556f66 Added client-side protection against long tags 2014-10-18 18:48:30 +02:00
Marcin Kurczewski
47260bd5fa Changed pasting tags to "soft-add" last tag 2014-10-18 18:48:30 +02:00
Marcin Kurczewski
060ddf46ad Added automatic tag JSON export
I plan to use it in autocomplete inputs.
2014-10-18 18:48:30 +02:00
Marcin Kurczewski
5dfa011d5a Fixed hotkeys not resetting on presenter change 2014-10-18 18:48:30 +02:00
Marcin Kurczewski
169d5f7068 Fixed default order in user list 2014-10-18 18:48:30 +02:00
Marcin Kurczewski
50ca13b136 Reduced requests in post view 2014-10-18 18:48:29 +02:00
Marcin Kurczewski
6d7566ee2f Added post scoring 2014-10-18 18:48:29 +02:00
Marcin Kurczewski
23a5a8afeb Improved focus style for items in user list 2014-10-18 18:48:29 +02:00
Marcin Kurczewski
e811b1a876 Reduced aliases for searches 2014-10-18 18:48:29 +02:00
Marcin Kurczewski
8c108ccfbf Changed default order to descending 2014-10-18 18:48:29 +02:00
Marcin Kurczewski
f090a752f0 Added favorite count to post list 2014-10-18 18:48:29 +02:00
Marcin Kurczewski
6e22efdd6e Added post favoriting 2014-10-18 18:48:29 +02:00
Marcin Kurczewski
5159214e80 Added searching by tags and ids 2014-10-18 18:48:29 +02:00
Marcin Kurczewski
2763ff7ead Added reverse image search on IQDB and Google Images 2014-10-18 18:48:29 +02:00
Marcin Kurczewski
d78da4769a Fixed post source being a link when it shouldn't 2014-10-18 18:48:29 +02:00
Marcin Kurczewski
3da8d2c233 Fixed error messages covered with content spinner 2014-10-18 18:48:29 +02:00
Marcin Kurczewski
5291d02b4c Improved layout for various screens sizes 2014-10-18 18:48:28 +02:00
Marcin Kurczewski
9edc74f9a5 Added post history 2014-10-18 18:48:28 +02:00
Marcin Kurczewski
04cce12a00 Fixed post view for anonymous users 2014-10-18 18:48:28 +02:00
Marcin Kurczewski
0d8ae5334d Fixed navigating between posts 2014-10-18 18:48:28 +02:00
Marcin Kurczewski
5dc85b7dee Added post relations 2014-10-18 18:48:28 +02:00
Marcin Kurczewski
22b30c3e43 Added concurrent editing detection 2014-10-18 18:48:28 +02:00
Marcin Kurczewski
a7c07d32df Added last edit time to basic post information 2014-10-18 18:48:28 +02:00
Marcin Kurczewski
77365e500a Fixed exit confirmation 2014-10-18 18:48:28 +02:00
Marcin Kurczewski
d2447045dd Added basic post editing 2014-10-18 18:48:28 +02:00
Marcin Kurczewski
80b7aaf7d1 Refactored file dropper 2014-10-18 18:48:28 +02:00
Marcin Kurczewski
d3015627b3 Added post globals 2014-10-18 18:48:28 +02:00
Marcin Kurczewski
97ca08cf44 Added post featuring 2014-10-18 18:48:27 +02:00
Marcin Kurczewski
7b0d907acc Fixed login remembering 2014-10-18 18:48:27 +02:00
Marcin Kurczewski
c33817e4ab Optimized API operations
Every operation updated user last login time, which was inefficient.
Changed it to update only after logins from credentials or cookies.
2014-10-18 18:48:27 +02:00
Marcin Kurczewski
a140e04ca3 Added post deleting 2014-10-18 18:48:27 +02:00
Marcin Kurczewski
9a191c8237 Fixed clicking on tags 2014-10-18 18:48:27 +02:00
Marcin Kurczewski
aff5965091 Added basic information to post view 2014-10-18 18:48:27 +02:00
Marcin Kurczewski
5fd2615780 Added content type indicators to post list 2014-10-18 18:48:27 +02:00
Marcin Kurczewski
51a80c22c5 Added author and upload date to post view 2014-10-18 18:48:27 +02:00
Marcin Kurczewski
fa72060502 Added tags in post view 2014-10-18 18:48:27 +02:00
Marcin Kurczewski
af3908a23c Added id column to tags 2014-10-18 18:48:27 +02:00
Marcin Kurczewski
42e3559cb4 Fixed pager showing "1" before loading collection 2014-10-18 18:48:26 +02:00
Marcin Kurczewski
cd146e0750 Tweaked CSS rules related to vendor stylesheets 2014-10-18 18:48:26 +02:00
Marcin Kurczewski
42001d3edf Refactored thumbnail system 2014-10-18 18:48:26 +02:00
Marcin Kurczewski
a2587fb0d8 Added CSS rules to selected post 2014-10-18 18:48:26 +02:00
Marcin Kurczewski
37da38e929 Fixed thumbnails for non-images in post upload 2014-10-18 18:48:26 +02:00
Marcin Kurczewski
a3fbe80281 Fixed clickable rows while upload is ongoing 2014-10-18 18:48:25 +02:00
Marcin Kurczewski
8e6d7af3ea Fixed unable to click checkboxes in post upload 2014-10-18 18:48:25 +02:00
Marcin Kurczewski
4c75232a80 Fixed tag input not adding current tag on blur 2014-10-18 18:48:25 +02:00
Marcin Kurczewski
57fb6da4b3 Added "P" hotkey to post list 2014-10-18 18:48:25 +02:00
Marcin Kurczewski
13a15a3a6b Added post mime type saving 2014-10-18 18:48:25 +02:00
Marcin Kurczewski
8f7985bd83 Fixed colors of "big button" links 2014-10-18 18:48:25 +02:00
Marcin Kurczewski
fe8cf5222f Added "..." when needed in paginator 2014-10-18 18:48:25 +02:00
Marcin Kurczewski
7806333b24 Added post view placeholder 2014-10-18 18:48:24 +02:00
Marcin Kurczewski
9699aeaf64 Fixed endless scroll loading next page too eagerly 2014-10-18 18:48:24 +02:00
Marcin Kurczewski
2c358b3c77 Changed pagers to use own spinners; improved looks 2014-10-18 18:48:24 +02:00
Marcin Kurczewski
669b26bda7 Fixed changing user browsing settings 2014-10-18 18:48:24 +02:00
Marcin Kurczewski
80d572622b Fixed border for focused tag input 2014-10-18 18:48:24 +02:00
Marcin Kurczewski
b76e4cd1af Changed font for tags in tag input to sans-serif 2014-10-18 18:48:24 +02:00
Marcin Kurczewski
83aa2b950b Fixed messages in post upload presenter 2014-10-18 18:48:24 +02:00
Marcin Kurczewski
eb7c507359 (WIP) Added spinner (#39) 2014-10-18 18:48:24 +02:00
Marcin Kurczewski
a16a2d3235 Added posts listing (closed #7) 2014-10-18 18:48:24 +02:00
Marcin Kurczewski
15eb2342b9 Moved public data to public_html/
This is going to improve caching.
2014-10-18 18:48:24 +02:00
Marcin Kurczewski
4ac91374b9 Unified style for clickable buttons 2014-10-18 18:48:24 +02:00
Marcin Kurczewski
aa46b4a14b Changed access rank <select> to radio boxes 2014-10-18 18:48:23 +02:00
Marcin Kurczewski
4751270228 Beautified checkboxes and radioboxes 2014-10-18 18:48:23 +02:00
Marcin Kurczewski
4fc130e840 Centered help text in login form 2014-10-18 18:48:23 +02:00
Marcin Kurczewski
bd8d1811e3 Added border to focused input 2014-10-18 18:48:23 +02:00
Marcin Kurczewski
eafc47bfb3 Fixed forms width on Chrome 2014-10-18 18:48:23 +02:00
Marcin Kurczewski
8176184b51 Changed times on user profile to relative form 2014-10-18 18:48:23 +02:00
Marcin Kurczewski
4c3bc0004b Hidden user tabs if only basic info is available 2014-10-18 18:48:23 +02:00
Marcin Kurczewski
1a41e60515 Improved stylesheet 2014-10-18 18:48:23 +02:00
Marcin Kurczewski
d72c6c5d6e Fixed page exit confirmation 2014-10-18 18:48:23 +02:00
Marcin Kurczewski
bc8e1b05a6 Implemented post uploads (closed #11) 2014-10-18 18:48:22 +02:00
Marcin Kurczewski
b53e2752ca Reduced post upload presenter complexity somewhat 2014-10-18 18:48:22 +02:00
Marcin Kurczewski
e6073ba7c7 Fixed extra spaces between items in top navigation 2014-10-18 18:48:22 +02:00
Marcin Kurczewski
f0a077f2b4 Fixed vendor autoloader placement 2014-10-18 18:48:21 +02:00
Marcin Kurczewski
dfb1198143 Worked on post uploads (#11) - added GUI 2014-10-18 18:48:21 +02:00
Marcin Kurczewski
7ec3715cdd Removed unnecessary values 2014-10-18 18:48:21 +02:00
Marcin Kurczewski
23f5100cf8 Changed file dropper to autodetect "allowmultiple" 2014-10-18 18:48:21 +02:00
Marcin Kurczewski
12b43b1bb8 Added endless scroll (closed #5)
The code for paged collections now feels like playing ping-pong with
callbacks, and like I have no idea on who should render who.

It works, though.
2014-10-18 18:48:21 +02:00
Marcin Kurczewski
0828a0aa89 Fixed A/D hotkeys with regard to browser's Alt+D 2014-10-18 18:48:21 +02:00
Marcin Kurczewski
fa8b7b5376 Added hotkeys to paged collections (closed #36) 2014-10-18 18:48:21 +02:00
Marcin Kurczewski
c1739d1d1d Added page title management (closed #33) 2014-10-18 18:48:21 +02:00
Marcin Kurczewski
2bb20c49fd Removed {mangle: false} requirement to uglify-js
Improves solution to #4 for javasript files by 12K (in current build).
2014-10-18 18:48:21 +02:00
Marcin Kurczewski
a7d4490b4f Changed minification engine (closed #4) 2014-10-18 18:48:20 +02:00
Marcin Kurczewski
6ce7beffd2 Fixed frontend behavior after edited user name 2014-10-18 18:48:20 +02:00
Marcin Kurczewski
73c20d3901 Fixed inability to activate e-mail when logged in 2014-10-18 18:48:20 +02:00
Marcin Kurczewski
56cd1b965a Added info about activation to account settings 2014-10-18 18:48:20 +02:00
Marcin Kurczewski
968a15ef60 Changed login so it leads to previously viewed page 2014-10-18 18:48:19 +02:00
Marcin Kurczewski
c117367974 Added IValidatable; moved validation to FormData
I still struggle to find out how to deal with arguments like
$userNameOrEmail. Should I trim() them in controllers, or in service?
If I do it in service, shouldn't all of such validation belong in there?
2014-10-18 18:48:19 +02:00
Marcin Kurczewski
553c33b860 Improved Javascript coding style 2014-10-18 18:48:19 +02:00
Marcin Kurczewski
91e140293e Fixed page navigation in user list 2014-10-18 18:48:19 +02:00
Marcin Kurczewski
85a026c37b Added e-mail confirmation and password reset 2014-10-18 18:48:19 +02:00
Marcin Kurczewski
aa4c401df9 Fixed top navigation being unable to see logout 2014-10-18 18:48:19 +02:00
Marcin Kurczewski
2ed9f969f2 Added presenter placeholders 2014-10-18 18:48:19 +02:00
Marcin Kurczewski
e6b37d8e57 Added browsing settings 2014-10-18 18:48:18 +02:00
Marcin Kurczewski
f5606c4169 Worked on user view appearance 2014-10-18 18:48:18 +02:00
Marcin Kurczewski
3ec1b94ee7 Fixed logging out 2014-10-18 18:48:18 +02:00
Marcin Kurczewski
ee2ca7fbaf Added account settings management and avatars 2014-10-18 18:48:18 +02:00
Marcin Kurczewski
bfee96c59e Optimized sub routing in presenters 2014-10-18 18:48:18 +02:00
Marcin Kurczewski
73214396ce Added test for basic controller validity 2014-10-18 18:48:18 +02:00
Marcin Kurczewski
8e8e983f28 Refactored privilege system 2014-10-18 18:48:18 +02:00
Marcin Kurczewski
c70554330c Added Injector class 2014-10-18 18:48:18 +02:00
Marcin Kurczewski
4c0a408152 Added account removal 2014-10-18 18:48:18 +02:00
Marcin Kurczewski
eadd649ad0 Refactored frontend authentication system 2014-10-18 18:48:18 +02:00
Marcin Kurczewski
de31770c87 Added basic privilege system 2014-10-18 18:48:18 +02:00
Marcin Kurczewski
2ecb79a2fa Added passive authorization 2014-10-18 18:48:18 +02:00
Marcin Kurczewski
03fbe0990a Added user view placeholder templates 2014-10-18 18:48:18 +02:00
Marcin Kurczewski
c5881d1c0d Sorted presenter dependencies 2014-10-18 18:48:18 +02:00
Marcin Kurczewski
b657129460 Fixed top navigation state preservation 2014-10-18 18:48:17 +02:00
Marcin Kurczewski
840039958a Fixed promises on Internet Explorer 2014-10-18 18:48:17 +02:00
Marcin Kurczewski
ee9fde5402 Added proof of concept for pagination and search 2014-10-18 18:48:17 +02:00
Marcin Kurczewski
48016bea13 Removed content emptying on navigation
It was really annoying!
2014-10-18 18:48:17 +02:00
Marcin Kurczewski
403cc735b8 Fixed GET requests to API 2014-10-18 18:48:17 +02:00
Marcin Kurczewski
731b98219d Added support for parameters in presenters 2014-10-18 18:48:17 +02:00
Marcin Kurczewski
7c8e473e1b Restructured presenters code 2014-10-18 18:48:17 +02:00
Marcin Kurczewski
51c0fa2636 Added JS+CSS+HTML compiler 2014-10-18 18:48:17 +02:00
Marcin Kurczewski
978d22de67 Added template loading through AJAX 2014-10-18 18:48:17 +02:00
Marcin Kurczewski
5573c49985 Moved backend DI definitions 2014-10-18 18:48:17 +02:00
Marcin Kurczewski
3fbd1b218e Fixed double errors in registration 2014-10-18 18:48:17 +02:00
Marcin Kurczewski
f59968a062 Finished registration frontend 2014-10-18 18:48:16 +02:00
Marcin Kurczewski
a55a8a825c Fixed app state authentication variables 2014-10-18 18:48:16 +02:00
Marcin Kurczewski
2b2aa04aea Removed useless code from bootstrap 2014-10-18 18:48:16 +02:00
Marcin Kurczewski
16dec4894f Added frontend outline 2014-10-18 18:48:16 +02:00
Marcin Kurczewski
6265a09d39 Added dependency injection engine 2014-10-18 18:48:15 +02:00
Marcin Kurczewski
ebc4fbba61 Added proof of concept for controllers system 2014-10-18 18:48:15 +02:00