Commit Graph

904 Commits

Author SHA1 Message Date
5fe88e448e Improve post stream
- Return all discussion post IDs from API requests which add/remove
posts, so the post stream updates appropriately. Related to #146
- Always unload posts that are two pages away, no matter how fast
you’re scrolling
- Retrieve posts from cache instead of reloading them
- Fix various bugs. Maybe #152, needs confirmation
2015-07-06 16:26:27 +09:30
746df7e3ad Allow some more globals in eslint 2015-07-06 15:50:39 +09:30
01ec661c3f PSR-2 fixes 2015-07-05 21:46:57 +09:30
b792fd2efd Add JavaScript eslint config
Forked from Airbnb (https://github.com/airbnb/javascript)

To run:

    npm install -g eslint babel-eslint
    eslint .
2015-07-05 21:25:09 +09:30
85049feb26 Speed up Travis builds
http://blog.travis-ci.com/2014-12-17-faster-builds-with-container-based-
infrastructure/
2015-07-05 21:22:51 +09:30
330e60871a Fix read tracking not working 2015-07-05 13:58:07 +09:30
31474764ee Fix post scrubber unread indicator overflow 2015-07-05 13:53:06 +09:30
1d21670663 New look for discussion reply/unread count
Also decrease the max page width by 100px
2015-07-05 13:52:46 +09:30
873088750f Remove Interface suffix from some classes 2015-07-05 12:30:23 +09:30
2cc619a998 Remove todo 2015-07-05 12:25:51 +09:30
53e269fd89 Extract model validation into a trait
Also use Laravel’s ValidationException rather than our own custom one
2015-07-05 12:25:08 +09:30
04501545e3 Move Group to its own namespace
We’ll need to add commands etc. for group management in the future
2015-07-04 19:30:58 +09:30
81170980e0 Don't error if trying to serialise a non-existent relationship 2015-07-04 18:39:43 +09:30
86811c6508 Get rid of Repository interfaces 2015-07-04 18:38:59 +09:30
f7b6d8a568 Merge 2015-07-04 12:28:50 +09:30
3d429d9af3 Give badges a bit of a shadow 2015-07-04 12:25:33 +09:30
336c05e77a Clean up
Goddammit GitHub for Mac
2015-07-04 12:25:21 +09:30
a74b40fe47 Massive refactor
- Use contextual namespaces within Flarum\Core
- Clean up and docblock everything
- Refactor Activity/Notification blueprint stuff
- Refactor Formatter stuff
- Refactor Search stuff
- Upgrade to JSON-API 1.0
- Removed “addedPosts” and “removedPosts” relationships from discussion
API. This was used for adding/removing event posts after renaming a
discussion etc. Instead we should make an additional request to get all
new posts

Todo:
- Fix Extenders and extensions
- Get rid of repository interfaces
- Fix other bugs I’ve inevitably introduced
2015-07-04 12:24:48 +09:30
126039850a Some things should not be run when Flarum is not installed yet 2015-07-02 23:14:25 +02:00
12dd550a14 Add settings repository interface and database implementation.
Almost done with flarum/core#121 now.
2015-07-01 23:08:26 +02:00
03fd4a5aba Read debug mode from config 2015-07-01 22:49:38 +02:00
1e04a20220 Fix login
We cannot write to an empty response.
2015-07-01 22:45:14 +02:00
ccbebce93b Get rid of JsonApiResponse class
With the JSON-API library being updated, we can just make use of
Diactoros' JSON response class.
2015-07-01 20:58:14 +02:00
7054472d66 Update JSON-API dependency 2015-07-01 20:57:37 +02:00
38989a61bd Switch to stable version constraints where possible 2015-07-01 20:50:41 +02:00
d99f77b08e Not sure how these got in here... 2015-07-01 22:47:57 +09:30
c1e7c00e2d Clean up some relation stuff 2015-07-01 22:35:56 +09:30
56932604db Refactor CoreServiceProvider
A good start I think, but still some work to do. If we go ahead with
https://github.com/flarum/core/issues/132#issuecomment-117507974 (which
I am in favour of), we can extract the entity-related stuff into some
smaller service providers (e.g. discussion repo, an event listener,
permissions, and gambits stuff could all go in
Flarum\Core\Discussions\DiscussionsServiceProvider).
2015-07-01 22:34:11 +09:30
d414ee33ed Make traits more generic
Type hinting User should take place in the callbacks. Theoretically
these traits could be used for another project now, where something
else has permissions (like a Sheep class, or a number)
2015-07-01 16:49:40 +09:30
810f79ee77 Cleanup, fix static date property error 2015-07-01 16:47:07 +09:30
d44b101373 Clean up merging stuff 2015-07-01 16:31:06 +09:30
3f32236379 API: allow date attributes to be added 2015-07-01 15:11:57 +09:30
c1595af84f Add todo about model validation 2015-07-01 13:35:27 +09:30
eafdd415ef Clean up model custom relation functionality 2015-07-01 13:22:09 +09:30
094825792a Clean up activity model 2015-07-01 13:19:24 +09:30
6e7cb1ff0e Some fixes to get along with the new bootstrapping 2015-06-30 23:29:52 +02:00
31effe943e Implement Android theme color support
As requested in the forums.
http://updates.html5rocks.com/2014/11/Support-for-theme-color-in-Chrome-39-for-Android
2015-06-26 23:11:13 +02:00
074f8087fa Update FastRoute
This enables optional route parameters.

Required some code changes in the RouteCollection class; once we
actually use optional route parameters, we will have to see whether
route generation for those works as expected.

Closes flarum/core#108
2015-06-26 23:09:58 +02:00
391c510f90 Upgrade Zend Diactoros to 1.1
This gives us a bunch of handy helper classes for empty responses,
redirects, HTML and JSON content types.

Closes flarum/core#153
2015-06-26 22:38:43 +02:00
e18d8b35e5 Refactor component API a bit 2015-06-26 19:09:43 +09:30
4dbe87da77 Bit of padding on the ol' composer textarea 2015-06-26 17:43:48 +09:30
5202ce00c4 Split up post controls into "user", "moderation", "destructive" 2015-06-26 16:15:30 +09:30
fe82631f95 Tweak user bio editing UI 2015-06-26 13:57:21 +09:30
3ba495091e Flattening items breaks things; recurse to get the first element instead 2015-06-26 13:52:54 +09:30
558d12c870 Search API tweaks
Rename some methods, include a mechanism for gambit negation.
Also always include the relevant posts in results. closes
flarum/core#111
2015-06-26 12:20:43 +09:30
bdd7e43e5a Notification API tweaks 2015-06-26 12:18:53 +09:30
c1ebc1c626 Make sure discussion sidebar appears above posts 2015-06-26 12:18:32 +09:30
0526e223e4 Always show composer header. closes flarum/core#112 2015-06-26 12:18:13 +09:30
8f6b373ea1 Constrain the unread part of the scrubber to after the handle 2015-06-26 12:09:59 +09:30
e887d75b8b Show badges in notifications 2015-06-26 12:09:28 +09:30