Commit Graph

1130 Commits

Author SHA1 Message Date
Franz Liedke
74a27f8ba2 Rename caching setting repository implementation
I'm foreseeing another implementation that uses real caching (across requests).
2015-07-16 00:10:52 +02:00
Franz Liedke
91d9361693 Register database and cache implementations as binding for the settings repository 2015-07-15 23:54:56 +02:00
Franz Liedke
498a67e5bc Run PhpSpec on TravisCI 2015-07-15 23:52:03 +02:00
Franz Liedke
fd865d8567 Write some specs for settings cache repository 2015-07-15 23:51:02 +02:00
Franz Liedke
0bf8980268 Install PhpSpec 2015-07-15 23:47:30 +02:00
Franz Liedke
93e54ecfce Build a caching repository decorator for settings 2015-07-15 23:22:25 +02:00
Franz Liedke
be2a4a3b4b Move settings repositories to own namespace
Also add a third method to the contract. This will help with building a caching decorator.
2015-07-15 23:16:57 +02:00
Toby Zerner
0b685b1036 Case-sensitive filename changes 2015-07-15 15:54:34 +09:30
Toby Zerner
4508813638 Don't include deleted notifications in the unread count 2015-07-15 14:01:11 +09:30
Toby Zerner
396a01cc32 Fix broken user activity syncer 2015-07-15 14:01:11 +09:30
Toby Zerner
1c7653e79e Massive JavaScript cleanup
- Use JSX for templates
- Docblock/comment everything
- Mostly passes ESLint (still some work to do)
- Lots of renaming, refactoring, etc.

CSS hasn't been updated yet.
2015-07-15 14:01:11 +09:30
Franz Liedke
e1ed1ec7e6 Update JSON-API lib 2015-07-09 21:47:36 +02:00
Toby Zerner
5aca956af7 Clean up discussion model 2015-07-08 10:51:30 +09:30
Toby Zerner
5cfb870202 Make admin open in a new window 2015-07-08 10:51:16 +09:30
Toby Zerner
5e982a39c5 Improve fulltext search API and interface 2015-07-07 20:35:18 +09:30
Toby Zerner
662a4dc54f Finish client action refactoring. closes flarum/core#126 2015-07-07 19:23:13 +09:30
Toby Zerner
f17c3a2778 Add todos to document magic properties on models 2015-07-07 19:20:18 +09:30
Toby Zerner
e62093f4dd Fix discussion search result suggestion excerpts
So that they show the relevant part of the post
2015-07-07 16:16:20 +09:30
Toby Zerner
85cd2663e3 Add discussion list refresh button
Closes flarum/core#139. Haven’t done pull to refresh yet though, but
that can come later.
2015-07-07 15:32:08 +09:30
Toby Zerner
d64e8746da Allow user avatar hover over empty badge space 2015-07-07 15:31:15 +09:30
Toby Zerner
09d70c2264 Tweak discussion list styles some more 2015-07-07 15:30:48 +09:30
Toby Zerner
c6e297e849 CSRF protection on logout action 2015-07-07 15:30:13 +09:30
Toby Zerner
23eec806e6 Initial refactor of client actions, data preloading, SEO
An initial stab at flarum/core#126. Still WIP. Preliminary
implementation of flarum/core#128 and flarum/core#13.
2015-07-07 15:29:21 +09:30
Toby Zerner
c7383601e2 Tweak discussion list contextual controls 2015-07-07 09:21:43 +09:30
Toby Zerner
0f561921b2 This should've been with the last commit
I blame GitHub for Mac again :]
2015-07-07 09:21:27 +09:30
Toby Zerner
dfe1cd90c2 Tweak discussion list reply/unread count 2015-07-06 16:34:20 +09:30
Toby Zerner
eee5133d6e 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
Toby Zerner
a70fff881d Allow some more globals in eslint 2015-07-06 15:50:39 +09:30
Toby Zerner
6fe1c73a49 PSR-2 fixes 2015-07-05 21:46:57 +09:30
Toby Zerner
9e58a30e16 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
Toby Zerner
a686283256 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
Toby Zerner
cadf979ed3 Fix read tracking not working 2015-07-05 13:58:07 +09:30
Toby Zerner
663c4b4837 Fix post scrubber unread indicator overflow 2015-07-05 13:53:06 +09:30
Toby Zerner
b72533d9a0 New look for discussion reply/unread count
Also decrease the max page width by 100px
2015-07-05 13:52:46 +09:30
Toby Zerner
7cf0fefbbe Remove Interface suffix from some classes 2015-07-05 12:30:23 +09:30
Toby Zerner
ebce765075 Remove todo 2015-07-05 12:25:51 +09:30
Toby Zerner
c55cc1bd1a 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
Toby Zerner
f3c4b24ad4 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
Toby Zerner
ab78546349 Don't error if trying to serialise a non-existent relationship 2015-07-04 18:39:43 +09:30
Toby Zerner
f134345be1 Get rid of Repository interfaces 2015-07-04 18:38:59 +09:30
Toby Zerner
59352dbbb7 Merge 2015-07-04 12:28:50 +09:30
Toby Zerner
ee424903f9 Give badges a bit of a shadow 2015-07-04 12:25:33 +09:30
Toby Zerner
f4ab018e2e Clean up
Goddammit GitHub for Mac
2015-07-04 12:25:21 +09:30
Toby Zerner
41c5ed0acb 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
Franz Liedke
db062e373b Some things should not be run when Flarum is not installed yet 2015-07-02 23:14:25 +02:00
Franz Liedke
5b7dafa0af Add settings repository interface and database implementation.
Almost done with flarum/core#121 now.
2015-07-01 23:08:26 +02:00
Franz Liedke
c7226d1543 Read debug mode from config 2015-07-01 22:49:38 +02:00
Franz Liedke
ba776bb20f Fix login
We cannot write to an empty response.
2015-07-01 22:45:14 +02:00
Franz Liedke
1e640ba632 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
Franz Liedke
ccfc176067 Update JSON-API dependency 2015-07-01 20:57:37 +02:00