Commit graph

267 commits

Author SHA1 Message Date
Marcin Kurczewski
893e841a87 Organized password reset and account activation 2014-05-04 18:32:57 +02:00
Marcin Kurczewski
83239a492d Moved account registering to API 2014-05-04 18:32:57 +02:00
Marcin Kurczewski
9e2e3ceb7f Simplified views in UserController 2014-05-04 12:12:06 +02:00
Marcin Kurczewski
8b44a248cc Moved user account removal to API 2014-05-04 10:57:12 +02:00
Marcin Kurczewski
48e274234e Moved user registration accepting to API 2014-05-04 10:47:56 +02:00
Marcin Kurczewski
243f22542d Moved user listing to API 2014-05-04 10:32:32 +02:00
Marcin Kurczewski
588efcb908 Moved user (un)banning to API 2014-05-04 10:16:05 +02:00
Marcin Kurczewski
c86854dcb1 Moved user flagging to API 2014-05-04 10:15:29 +02:00
Marcin Kurczewski
d2319465c1 Moved tag merging to API 2014-05-04 10:03:21 +02:00
Marcin Kurczewski
5d2c5a2053 Moved tag renaming to API 2014-05-04 10:03:03 +02:00
Marcin Kurczewski
70f187c431 Moved listing tag relations to API 2014-05-04 09:48:51 +02:00
Marcin Kurczewski
26323f996b Moved tag autocompleting to API 2014-05-04 09:45:41 +02:00
Marcin Kurczewski
97c17c68a0 Moved tag listing to API 2014-05-04 08:42:18 +02:00
Marcin Kurczewski
259eabfaaa Merged branch 'master' into api 2014-05-03 23:29:16 +02:00
Marcin Kurczewski
0b058565ba Fixed activation, password reset and registration 2014-05-03 23:23:13 +02:00
Marcin Kurczewski
758f5bd134 Moved post content and thumbnail retrieval to API 2014-05-03 22:14:00 +02:00
Marcin Kurczewski
9f4d97aa23 Moved post retrieval to API 2014-05-03 20:34:07 +02:00
Marcin Kurczewski
cebff0ef4e Moved post featuring to API 2014-05-03 19:53:33 +02:00
Marcin Kurczewski
ee79e1753e Moved post scoring to API 2014-05-03 19:53:20 +02:00
Marcin Kurczewski
2eaab49d35 Moved post (un)favoriting to API 2014-05-03 19:53:19 +02:00
Marcin Kurczewski
db8eab1c5c Moved post removal to API 2014-05-03 19:53:03 +02:00
Marcin Kurczewski
38a9e154f8 Moved post un/hiding to API 2014-05-03 19:52:39 +02:00
Marcin Kurczewski
c0dce6775e Moved post flagging to API 2014-05-03 19:26:00 +02:00
Marcin Kurczewski
b2b7064ff0 Moved post editing to API 2014-05-03 19:26:00 +02:00
Marcin Kurczewski
6ae4cea8bb Moved post upload to API 2014-05-03 19:26:00 +02:00
Marcin Kurczewski
162b131435 Moved tag toggling to API 2014-05-03 19:25:59 +02:00
Marcin Kurczewski
7c1b8ca4d5 Renamed LogController methods and moved to API 2014-05-03 19:25:59 +02:00
Marcin Kurczewski
aeb73e2a5c Renamed IndexController class and methods 2014-05-03 19:25:59 +02:00
Marcin Kurczewski
8b8564309d Split login method into View and Action 2014-05-03 19:25:59 +02:00
Marcin Kurczewski
ffeefd06c6 Moved post listing to API 2014-05-03 19:25:59 +02:00
Marcin Kurczewski
0ad39c241e Fixed start time placement 2014-05-02 13:51:20 +02:00
Marcin Kurczewski
902aed7278 Introducing API
Right now there's a lot of messy code in controllers. Furthermore, there
is no way to interact with szurubooru via vanilla HTTP, since API is
next to non-existent. So, basing upon my experiences from another
project, I plan to:

- Create actual API. It is going to consist of well-defined "jobs" that
  do things currently done by controllers. Benefits of such approach are
  as follows:
  - defining them in their own classes allows to clean up code a lot,
  - it allows to abstract from input method (POST data, part of URL,
	whatever), and leave processing of these to controllers,
  - it allows to make proxy controller, whose purpose would be to let
	users interact with API (jobs) directly in well-documented and
	consistent way.
- Make controllers responsible only for mediating between views and API.
  Behavior of these may remain inconsistent, since views they're talking
  to are also messy to begin with. Such controllers might be removed
  altogether in the future in favor of making views talk to API directly
  through previously mentioned ApiController.
- Organize all sorts of privilege checking and possibly other stuff into
  methods within jobs.
- Actually distinguish POST from GET requests.
- Leave POST-only controller methods as Actions, but rename GET-only
  methods to Views. Example: editAction for editing comments, but
  listView for showing comment list. The choice of these suffixes might
  be subject to changes in future.
- Get rid of ?json and $context->transport. They now look like disease
  to me.

This commit introduces job system and converts CommentController to use
the new API.
2014-05-01 23:35:05 +02:00
Marcin Kurczewski
feec48ed83 AJAX doesn't rely on StatusHelper
Since the purpose that StatusHelper was mainly created for no longer
holds, it was simplified to Messenger. It is now is used to transport
simple messages to views and still transports info whether the message
is about success or failure.
2014-05-01 23:34:44 +02:00
Marcin Kurczewski
0a7fc387ac Simplified auth 2014-05-01 22:11:05 +02:00
Marcin Kurczewski
81e43286b5 Newest chibi-core 2014-04-29 21:35:29 +02:00
Marcin Kurczewski
a312f02fdc Background in inputs set to white 2014-04-27 16:01:50 +02:00
Marcin Kurczewski
da1f5d8ab2 Split long lines in views 2014-04-27 16:01:50 +02:00
Marcin Kurczewski
4847448a26 Little fixes for small layouts 2014-04-20 11:39:26 +02:00
Marcin Kurczewski
d3e135ea15 Enhanced support for new video posts (closed #75) 2014-04-09 14:19:51 +02:00
Marcin Kurczewski
02be024bc4 Fixed #74 2014-04-08 17:06:00 +02:00
Marcin Kurczewski
a2b647432c Better spoiler and tags behaviour 2014-03-13 20:53:17 +01:00
Marcin Kurczewski
73fc1830ff Tag relations don't suggest tags already used 2014-03-10 16:16:25 +01:00
Marcin Kurczewski
fba6a50251 Tweaks to tag relations
* Fixed tag relations background if there are no related tags
* Related tags link to search (LMB adds tag, MMB searches for it in new tab)
2014-03-10 01:37:26 +01:00
Marcin Kurczewski
394c06a1c5 Added related tag suggesting on tag click 2014-03-10 01:15:48 +01:00
Marcin Kurczewski
f4d0230166 Refactor to tag autocompletion 2014-03-10 01:15:47 +01:00
Marcin Kurczewski
e48826dd72 Fixed prev/next post clicking in chrome 2014-03-09 22:09:31 +01:00
Marcin Kurczewski
4879ba94b0 Fixed problem with keyboard shortcuts on Flash
Previous attempt - f226c3eb0c.
Approach introduced in this commit is theoretically much better, but it still
might not be perfect.
2014-03-05 22:40:50 +01:00
Marcin Kurczewski
f7837dc190 Fixed word wrapping in registration form 2014-03-05 15:22:36 +01:00
Marcin Kurczewski
806aa0f197 Freshened up syntax help 2014-03-03 21:39:21 +01:00
Marcin Kurczewski
2af8a941ff Fixed user list on Chrome w/ endless pagination 2014-03-02 18:45:53 +01:00
Marcin Kurczewski
e43881e03f Better debug 2014-02-24 16:50:16 +01:00
Marcin Kurczewski
e6b37afa8c Changed /comments behaviour
Instead of showing comments chronologically, group them into posts, then sort
the posts by last comment date. Reason: improved comment context delivery
makes discussion bumping possible (no matter how old it is) and discussion is
what comments are about.

Comment count is limited to 5 per post.
2014-02-24 16:50:16 +01:00
Marcin Kurczewski
72946c3922 Fixed download and arrows transparency 2014-02-23 22:04:26 +01:00
Marcin Kurczewski
f2510ac8c0 Added focus color to comment links 2014-02-23 22:04:26 +01:00
Marcin Kurczewski
0b6a0337fe Exit confirmation tweaks in post upload
Confirmation is disabled after user removes last file from the upload queue.
It's enabled again whenever user adds something.
2014-02-21 20:24:37 +01:00
Marcin Kurczewski
4b08686393 Added lightbox to post uploads 2014-02-21 20:24:37 +01:00
Marcin Kurczewski
ddbecdb16f Fixed problems with multiple event handlers
Whenever DOM update event handlers were executed, jQuery bindings were appended
instead of being replaced. It resulted in funny scenarios like starting to show
multiple confirmation dialogs when trying to delete a post, after
adding/removing it from favorites.
2014-02-20 21:32:07 +01:00
Marcin Kurczewski
b879a7c38b Fixed problem with comment edit links 2014-02-20 21:32:07 +01:00
Marcin Kurczewski
38771eb7be Small layout fixes 2014-02-20 21:32:03 +01:00
Marcin Kurczewski
b86aaf90a3 Fixed and simplified tag autocompletion 2014-02-18 21:26:54 +01:00
Marcin Kurczewski
4469767d8f Removed console.log 2014-02-18 21:14:52 +01:00
Marcin Kurczewski
eee6421775 Post editing: quasi-popup in place of sliding unit 2014-02-18 18:35:55 +01:00
Marcin Kurczewski
65c6caa13c Freshened up sidebar 2014-02-18 16:41:36 +01:00
Marcin Kurczewski
e7a0fdae26 Fixed exit confirmation message on Chrome 2014-02-16 20:10:38 +01:00
Marcin Kurczewski
f3a5de67e7 GUI colors are consistent 2014-02-16 20:10:38 +01:00
Marcin Kurczewski
3e99a6336c Form CSS overhaul 2014-02-16 20:10:34 +01:00
Marcin Kurczewski
80b9542c2d Removed borders for sidebar units 2014-02-16 20:00:29 +01:00
Marcin Kurczewski
4a69084a8b Upload no longer uses tabs 2014-02-16 20:00:26 +01:00
Marcin Kurczewski
7a5d97e153 Dates changed to relative form (except logs) 2014-02-16 15:16:20 +01:00
Marcin Kurczewski
e36498f709 Layout resizing tweaks 2014-02-16 15:16:17 +01:00
Marcin Kurczewski
5148f9162d Changed tabs appearance 2014-02-16 12:33:52 +01:00
Marcin Kurczewski
620d1204f7 Changed footer appearance 2014-02-16 12:33:52 +01:00
Marcin Kurczewski
1a3f77175b Vertical scrollbar is shown everywhere
Reason: navigating between pages w/o scrollbar and pages with scrollbar
resulted in slight layout repositioning
2014-02-16 12:33:52 +01:00
Marcin Kurczewski
db1d8383fd Fixed top margin in post upload 2014-02-16 12:33:52 +01:00
Marcin Kurczewski
27c780602c Better looking user list 2014-02-16 12:33:52 +01:00
Marcin Kurczewski
83a966f1af Added tab wrappers 2014-02-16 12:33:48 +01:00
Marcin Kurczewski
d170e3b526 Closed #68 2014-02-01 11:23:59 +01:00
Marcin Kurczewski
d2946e0148 Post editing: fixed problem with focus 2014-01-30 21:53:34 +01:00
Marcin Kurczewski
36e2e5827c Closed #69 2014-01-27 09:17:36 +01:00
Marcin Kurczewski
37cc858821 Fixed post editing appearance 2014-01-25 22:50:15 +01:00
Marcin Kurczewski
100303173e Added comment editing support
In other news, editing a post doesn't reload page anymore
(yay for editing tags for Youtube posts)
2014-01-25 16:39:09 +01:00
Marcin Kurczewski
1fcced20f1 Misc CSS tweaks 2014-01-06 19:25:27 +01:00
Marcin Kurczewski
5607cfc353 Models rewrite; removed RedBeanPHP; misc changes
Pages load 1.5-2x faster
Exception trace in JSON is now represented as an array
Fixed pagination of default favorites page in user pages
Fixed thumbnail size validation for non-square thumbnails
2013-12-18 15:17:49 +01:00
Marcin Kurczewski
1c6b10f966 Fixed 1px bug 2013-12-14 16:49:43 +01:00
Marcin Kurczewski
7e8521022c Added CSS for quotes 2013-12-07 15:04:11 +01:00
Marcin Kurczewski
8f906d83bf Added active section indicator 2013-12-05 23:57:33 +01:00
Marcin Kurczewski
7046553a45 Fixed CSS problems with Chrome and Firefox 2013-12-01 15:15:01 +01:00
Marcin Kurczewski
e93c3588f9 Fix to tabs in upload 2013-11-30 16:42:47 +01:00
Marcin Kurczewski
01c54d4d83 Optimalization: simplified selectors
Squash
2013-11-30 14:23:46 +01:00
Marcin Kurczewski
dd8ab7c001 Optimalization: tweaks to .htaccess 2013-11-30 14:20:17 +01:00
Marcin Kurczewski
518311ff61 Optimalization: some JS tweaks
- Removed redundant function
- Using .preventDefault instead of return calls in some places
2013-11-30 01:10:48 +01:00
Marcin Kurczewski
5e58488f3e Optimalization: simplified tabs structure 2013-11-30 00:05:03 +01:00
Marcin Kurczewski
e4b4c5d273 Optimalization: added stuff to .htaccess 2013-11-29 23:58:06 +01:00
Marcin Kurczewski
4648b6afca Tag autocomplete aligned to right only in top nav 2013-11-27 17:44:52 +01:00
Marcin Kurczewski
7820417188 Layout: fixed autocomplete box position 2013-11-25 22:23:48 +01:00
Marcin Kurczewski
f226c3eb0c Fixed hotkeys conflicting with Flash on Chrome 2013-11-25 22:23:48 +01:00
Marcin Kurczewski
505fe1bac3 Mass tag: fixed concurrent tag toggling 2013-11-25 22:23:48 +01:00
Marcin Kurczewski
aa37ee66ff Various JS optimizations 2013-11-25 22:23:48 +01:00
Marcin Kurczewski
20022ea4ab Next/prev links are bound to latest search query 2013-11-25 22:23:45 +01:00
Marcin Kurczewski
0ef5f1b46d Absolute paths used where necessary
- No random chdir() calls
- No more exceptions when executing scripts from dirs other than root
- find-posts.php prints absolute paths making piping more useful
2013-11-23 20:52:41 +01:00