1
0
mirror of https://github.com/flarum/core.git synced 2025-07-24 18:21:33 +02:00
Commit Graph

394 Commits

Author SHA1 Message Date
Toby Zerner
95fdece370 Remove duplicates; replace missing commas 2015-07-17 17:47:53 +09:30
Toby Zerner
0a1191d56c Make front-end localizable 2015-07-17 17:43:28 +09:30
Toby Zerner
75f103cb16 Merge remote-tracking branch 'origin/master' 2015-07-17 15:05:03 +09:30
Toby Zerner
6c6cc111fd Fix login action 2015-07-17 14:48:24 +09:30
Toby Zerner
1cde3d7242 Fix notifications 2015-07-17 14:48:20 +09:30
Toby Zerner
54ab536f96 Fix forgot password action 2015-07-17 14:48:06 +09:30
Franz Liedke
4fb6318740 Remove unused import 2015-07-16 00:44:02 +02:00
Franz Liedke
4e0c6958d3 Try to fix some namespace imports 2015-07-16 00:43:49 +02:00
Franz Liedke
25f2e72bc8 Rename import command 2015-07-16 00:38:27 +02:00
Franz Liedke
a62020a3c2 Move extension loading to boot method
This will likely have to be reverted, to make things like $this->app->extend() work
reasonably well in extensions' service providers.

For now, since we fetch the enabled extensions from the config, there is no other way
for us to guarantee that the config is already available.
2015-07-16 00:36:14 +02:00
Franz Liedke
c5dd0ad372 Inject SettingsRepository where possible 2015-07-16 00:32:50 +02:00
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
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
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
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
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
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
6fe1c73a49 PSR-2 fixes 2015-07-05 21:46:57 +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
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
Toby Zerner
09d1c4d8ed Clean up some relation stuff 2015-07-01 22:35:56 +09:30
Toby Zerner
659ca692e3 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
Toby Zerner
c588e55070 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
Toby Zerner
52e55bd503 Cleanup, fix static date property error 2015-07-01 16:47:07 +09:30
Toby Zerner
009b479197 Clean up merging stuff 2015-07-01 16:31:06 +09:30
Toby Zerner
a4dc7ff121 API: allow date attributes to be added 2015-07-01 15:11:57 +09:30
Toby Zerner
894349e9c5 Add todo about model validation 2015-07-01 13:35:27 +09:30
Toby Zerner
8b9f964a0a Clean up model custom relation functionality 2015-07-01 13:22:09 +09:30
Toby Zerner
76ea4d372c Clean up activity model 2015-07-01 13:19:24 +09:30
Franz Liedke
89b09ad0d0 Some fixes to get along with the new bootstrapping 2015-06-30 23:29:52 +02:00
Franz Liedke
64e8a0abf3 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