Commit Graph

220 Commits

Author SHA1 Message Date
505d08bb08 Added unit test system 2014-05-05 17:47:30 +02:00
458aac971d Removed trash HTML 2014-05-05 17:47:30 +02:00
47f7ff3490 Moved account activation and password reset to API 2014-05-04 18:32:58 +02:00
893e841a87 Organized password reset and account activation 2014-05-04 18:32:57 +02:00
83239a492d Moved account registering to API 2014-05-04 18:32:57 +02:00
9e2e3ceb7f Simplified views in UserController 2014-05-04 12:12:06 +02:00
8b44a248cc Moved user account removal to API 2014-05-04 10:57:12 +02:00
48e274234e Moved user registration accepting to API 2014-05-04 10:47:56 +02:00
243f22542d Moved user listing to API 2014-05-04 10:32:32 +02:00
588efcb908 Moved user (un)banning to API 2014-05-04 10:16:05 +02:00
c86854dcb1 Moved user flagging to API 2014-05-04 10:15:29 +02:00
d2319465c1 Moved tag merging to API 2014-05-04 10:03:21 +02:00
5d2c5a2053 Moved tag renaming to API 2014-05-04 10:03:03 +02:00
70f187c431 Moved listing tag relations to API 2014-05-04 09:48:51 +02:00
26323f996b Moved tag autocompleting to API 2014-05-04 09:45:41 +02:00
97c17c68a0 Moved tag listing to API 2014-05-04 08:42:18 +02:00
259eabfaaa Merged branch 'master' into api 2014-05-03 23:29:16 +02:00
0b058565ba Fixed activation, password reset and registration 2014-05-03 23:23:13 +02:00
758f5bd134 Moved post content and thumbnail retrieval to API 2014-05-03 22:14:00 +02:00
9f4d97aa23 Moved post retrieval to API 2014-05-03 20:34:07 +02:00
cebff0ef4e Moved post featuring to API 2014-05-03 19:53:33 +02:00
ee79e1753e Moved post scoring to API 2014-05-03 19:53:20 +02:00
2eaab49d35 Moved post (un)favoriting to API 2014-05-03 19:53:19 +02:00
db8eab1c5c Moved post removal to API 2014-05-03 19:53:03 +02:00
38a9e154f8 Moved post un/hiding to API 2014-05-03 19:52:39 +02:00
c0dce6775e Moved post flagging to API 2014-05-03 19:26:00 +02:00
b2b7064ff0 Moved post editing to API 2014-05-03 19:26:00 +02:00
6ae4cea8bb Moved post upload to API 2014-05-03 19:26:00 +02:00
162b131435 Moved tag toggling to API 2014-05-03 19:25:59 +02:00
7c1b8ca4d5 Renamed LogController methods and moved to API 2014-05-03 19:25:59 +02:00
aeb73e2a5c Renamed IndexController class and methods 2014-05-03 19:25:59 +02:00
8b8564309d Split login method into View and Action 2014-05-03 19:25:59 +02:00
ffeefd06c6 Moved post listing to API 2014-05-03 19:25:59 +02:00
0ad39c241e Fixed start time placement 2014-05-02 13:51:20 +02:00
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
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
0a7fc387ac Simplified auth 2014-05-01 22:11:05 +02:00
81e43286b5 Newest chibi-core 2014-04-29 21:35:29 +02:00
a312f02fdc Background in inputs set to white 2014-04-27 16:01:50 +02:00
da1f5d8ab2 Split long lines in views 2014-04-27 16:01:50 +02:00
4847448a26 Little fixes for small layouts 2014-04-20 11:39:26 +02:00
d3e135ea15 Enhanced support for new video posts (closed #75) 2014-04-09 14:19:51 +02:00
02be024bc4 Fixed #74 2014-04-08 17:06:00 +02:00
a2b647432c Better spoiler and tags behaviour 2014-03-13 20:53:17 +01:00
73fc1830ff Tag relations don't suggest tags already used 2014-03-10 16:16:25 +01:00
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
394c06a1c5 Added related tag suggesting on tag click 2014-03-10 01:15:48 +01:00
f4d0230166 Refactor to tag autocompletion 2014-03-10 01:15:47 +01:00
e48826dd72 Fixed prev/next post clicking in chrome 2014-03-09 22:09:31 +01:00
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