Commit Graph

585 Commits

Author SHA1 Message Date
Toby Zerner
e66a3721ee Update API action architecture
- An API action handles a Flarum\Api\Request, which is a simple object
containing an array of params, the actor, and optionally an HTTP
request object
- Most API actions use SerializeAction as a base, which parses request
input according to the JSON-API spec (creates a JsonApiRequest object),
runs the child class method to get data, then serializes it and assigns
it to a JsonApiResponse (standard HTTP response with a
Tobscure\JsonApi\Document as content)
- The JSON-API request input parsing is subject to restrictions as
defined by public static properties on the action (i.e. extensible)
- Also the actor is given to the serializer instance now, instead of
being a static property
2015-05-02 08:56:43 +09:30
Toby Zerner
51e47f549f Make post highlight more subtle 2015-05-02 08:48:35 +09:30
Toby Zerner
c8613eaec6 Tweak composer styles
- Make minimised content look nicer, non-interactive
- Fix margins on tablet
2015-05-02 08:48:18 +09:30
Toby Zerner
716e94c776 All method should return an array, not an object 2015-05-02 08:47:10 +09:30
Toby Zerner
2d30c8f010 Allow list items to specify a wrapper class 2015-05-02 08:46:52 +09:30
Toby Zerner
e3110454ae Allow extensions to easily override a function and call super 2015-05-02 08:46:38 +09:30
Toby Zerner
6d3e3e5c29 Cleanup 2015-05-02 08:45:52 +09:30
Toby Zerner
d48dd2747a Redraw after hiding modal 2015-05-02 08:45:24 +09:30
Toby Zerner
8e423c9dfe Allow components to initialise props 2015-05-02 08:45:11 +09:30
Toby Zerner
d5a3e3d2c6 Only add a post to the post stream once 2015-05-02 08:44:52 +09:30
Toby Zerner
4f0e620cff Remove posts from the post stream by ID 2015-05-02 08:44:42 +09:30
Toby Zerner
a6b9c87a69 Use new config keys 2015-05-02 08:44:03 +09:30
Toby Zerner
94d8d3c80f Extensibility: discussion list params
Also give the root controller the name of the current route so they can
easily route back to it
2015-05-02 08:43:38 +09:30
Toby Zerner
ce0c8903a5 Extensibility: data when starting a new discussion 2015-05-02 08:39:44 +09:30
Toby Zerner
50e4dbf3b4 Extensibility: posts on user activity stream 2015-05-02 08:38:24 +09:30
Toby Zerner
af08ad04fd Extensibility: params for discussion page API request 2015-05-02 08:38:05 +09:30
Toby Zerner
6cb1057601 Extract discussion controls into the model 2015-05-02 08:36:59 +09:30
Toby Zerner
2623f59c23 Make discussion hero extensible 2015-05-02 08:36:04 +09:30
Toby Zerner
452efaf86b Don't let discussion details in list wrap 2015-05-02 08:34:09 +09:30
Toby Zerner
cb4883cd7a Tweak header/footer control layout 2015-05-02 08:33:05 +09:30
Toby Zerner
80b13844d6 Unify icon class name, change the way icons are floated in menus 2015-05-02 08:32:45 +09:30
Toby Zerner
9034074f8d Show modal close button above content 2015-05-02 08:30:35 +09:30
Toby Zerner
affebc2ca1 Skin colour tweaks 2015-05-02 08:29:43 +09:30
Toby Zerner
74c145eb03 Ability to merge list items 2015-05-02 08:28:02 +09:30
Toby Zerner
bdf71abf23 Combine route/query params in route construction
One params object is passed, and then route params are extracted into
the route and the rest are appended as query params.
2015-05-02 08:21:40 +09:30
Toby Zerner
5d4d031f59 Preload session as the last step in initialisation before boot
Can’t remember why…
2015-05-02 08:18:45 +09:30
Toby Zerner
347a595d7a Add an event to register discussion gambits 2015-05-02 08:12:30 +09:30
Toby Zerner
cb5baf8953 Add API to collect posts that were removed during an action
This is useful for both the Sticky and Categories extensions, where if
you sticky a discussion and then immediately unsticky it, or if you
move it to a category and then immediately move it back, the last
“activity” post will be removed.
2015-05-02 08:12:09 +09:30
Toby Zerner
40715203a5 Define assets in a more appropriate spot, make extensible 2015-05-02 08:10:06 +09:30
Toby Zerner
4c42be1362 Extract config into database 2015-05-02 08:07:51 +09:30
Toby Zerner
42c820e0eb Fix pin button active state 2015-04-25 23:26:43 +09:30
Toby Zerner
0fc1691103 Merge remote-tracking branch 'upstream/master' 2015-04-25 22:45:27 +09:30
Toby Zerner
153098c08f Return more relations when a discussion is created 2015-04-25 22:37:25 +09:30
Toby Zerner
6669f340dd Fix read discussion command action 2015-04-25 22:37:04 +09:30
Toby Zerner
feb2891f56 Allow custom relation to be specified as string 2015-04-25 22:36:34 +09:30
Toby Zerner
8430b67d5b Add BootForum event so extensions can add assets 2015-04-25 22:35:41 +09:30
Toby Zerner
334bb596c2 Recompile assets every time a file changes 2015-04-25 22:34:56 +09:30
Toby Zerner
a4fbcd451d Use Less_Parser cache feature to speed up LESS generation 2015-04-25 22:34:46 +09:30
Toby Zerner
081dde346d Fix email confirmation route 2015-04-25 22:34:33 +09:30
Toby Zerner
c9d7ac7a88 Rename assets directory 2015-04-25 22:34:26 +09:30
Toby Zerner
6db911420b Update some styles for the Mithril app 2015-04-25 22:31:37 +09:30
Toby Zerner
cddd23bb33 Clean up LESS files 2015-04-25 22:31:30 +09:30
Toby Zerner
b5c95a222f Replace Ember app with Mithril app 2015-04-25 22:28:39 +09:30
Franz Liedke
69e6f014a1 Merge pull request #61 from rodrigoargumedo/email
Added a note where if users did not sign up with Flarum.
2015-04-20 23:00:41 +02:00
Rodrigo Argumedo
b8e2933479 Update wording of the confirmation email 2015-04-20 10:23:33 -06:00
Rodrigo Argumedo
e52dfb92de Added a note where if users..
did not sign up with Flarum.
2015-04-17 17:49:41 -06:00
Franz Liedke
243ad08fd8 Fix class name conflict. 2015-04-15 13:44:35 +02:00
Toby Zerner
cceb2b1249 Fix attribute serialisation event mutability 2015-04-03 17:04:59 +10:30
Toby Zerner
3cd7e307b3 Add an event to modify search queries 2015-04-03 17:04:41 +10:30
Toby Zerner
70c7195690 Call action with correct context 2015-04-03 17:00:18 +10:30