Toby Zerner
952b4693da
Add StyleCI config
2016-02-26 13:35:09 +10:30
Toby Zerner
c7b6426fd4
Delete a discussion when its last post is deleted. fixes #823
2016-02-26 13:26:09 +10:30
Toby Zerner
acdb1ff749
Revert #687 + #197 . fixes #785
...
Unfortunately we have no way to calculate the number of comment posts that are previous to the current viewing position of the discussion, without loading all of the posts which is going to be too expensive (even if we do it selectively somehow).
2016-02-26 13:11:52 +10:30
Toby Zerner
50e56ac0a1
Recompile admin JS
2016-02-26 12:50:03 +10:30
Toby Zerner
82fc4dd483
Refactor Composer rendering for smoother animations
...
Also fixes a couple of miscellaneous bugs:
- Minimise the Composer when clicking the preview button in full-screen mode on desktop.
- Minimise the Composer when clicking the link to the discussion/post in the header on mobile/full-screen mode.
2016-02-26 12:49:49 +10:30
Franz Liedke
5390187a4f
Just a tad of cleanup
2016-02-25 23:29:55 +09:00
Daniel Klabbers
e4412178b1
refactoring to support array closures migrations and fixed issues with previous pr for extension rewriting
2016-02-25 23:26:10 +09:00
Franz Liedke
2b5dab73f9
Use the new migration shortcuts in most of core's migrations
2016-02-25 00:50:54 +09:00
Franz Liedke
db7a03fbe5
Add some handy shortcuts for typical migration tasks
...
This will make it much easier for extension developers (and also less
error-prone) to create migrations for things like creating tables,
renaming columns and so on...
2016-02-25 00:50:03 +09:00
Franz Liedke
ad95a44e7d
Remove obsolete AbstractMigration class
2016-02-24 23:22:52 +09:00
Franz Liedke
59613910b1
Update generate:migration command to deal with new migration structure
2016-02-24 23:20:33 +09:00
Franz Liedke
13fe162db3
Add two missing copyright headers
2016-02-24 22:25:09 +09:00
Franz Liedke
51955504aa
Revamp migration structure
...
They are now simply files that return an array of closures, for
running the named "up" and "down" actions, respectively.
Related to #732 .
2016-02-24 22:23:49 +09:00
Toby Zerner
05fe4446bf
Fix crash when displaying a discussion with no posts. closes #823
2016-02-22 22:22:49 +10:30
Toby Zerner
71d2e71908
Condense into value/oninput into bidi
2016-02-22 21:22:18 +10:30
Toby Zerner
93f3f22623
Merge pull request #811 from sijad/firefox-fix
...
Fix login box autocomplete in firefox
2016-02-22 21:09:18 +10:30
Franz Liedke
ff69dade15
Merge pull request #817 from flarum/revert-813-typehint
...
Revert "typehint fix, opening for implementation"
2016-02-18 17:35:17 +01:00
Franz Liedke
17851c4dfe
Revert "typehint fix, opening for implementation"
2016-02-18 17:33:34 +01:00
Franz Liedke
46dfdf2deb
Merge pull request #813 from Luceos/typehint
...
typehint fix, opening for implementation
2016-02-17 16:12:15 +01:00
Daniel Klabbers
d944a9e618
typehint fix, opening for implementation
2016-02-17 13:34:13 +01:00
Sajjad Hasehmian
2143a96c19
Fix login box autocomplete
2016-02-16 21:08:45 +03:30
Toby Zerner
d7fe3ca35b
Merge pull request #787 from sijad/401-page
...
401 for unauthorised request to settings, notifications page
2016-02-15 21:04:39 +10:30
Daniël Klabbers
48e29ed168
Merge pull request #801 from Luceos/extension_fix
...
Extension fix
2016-02-14 22:18:08 +01:00
Daniel Klabbers
0ad4c0ac61
fixes #800 , forgot these controllers
2016-02-13 20:33:33 +01:00
Daniel Klabbers
458f4f811c
fixes #799 , now properly assigning a id
2016-02-13 20:32:46 +01:00
Sajjad Hasehmian
e90dfe04fd
401 for unauthorised request to settings, notifications page fixes #714
2016-02-11 09:59:01 +03:30
Daniel Klabbers
191589e2b1
Implemented extensions as an object, usable by backend and frontend.
2016-02-10 15:13:51 +01:00
Franz Liedke
96c4e6b147
Merge pull request #786 from Luceos/imports
...
reordering and removing unused imports
2016-02-10 15:02:37 +01:00
Franz Liedke
d15a9dc0f0
Avoid use of model class in migration
...
See commit 0831256
2016-02-10 14:17:38 +01:00
Franz Liedke
08312568ba
Installer: Fix models not being ready for use when running migrations
...
This was a regression after the recent introduction of a new migration that actually uses models.
Maybe we should change this.
See https://discuss.flarum.org/d/2023-can-t-manage-to-install-the-development-version-503-service-unavailable/8
2016-02-10 14:07:29 +01:00
Daniel Klabbers
31be2f8f86
reordering and removing unused imports
2016-02-10 11:00:37 +01:00
Toby Zerner
89598646c1
Merge pull request #784 from sijad/no-confirm
...
Remove "Mark as Read" confirmation fixes #782
2016-02-10 18:13:38 +10:30
Sajjad Hasehmian
b3035c18b6
Remove "Mark as Read" confirmation fixes #782
2016-02-10 10:50:24 +03:30
Toby Zerner
235c265c06
Merge pull request #779 from sijad/uri-fix
...
Correct redirect uri in OAuth2 Controller
2016-02-10 07:06:14 +10:30
Sajjad Hasehmian
f1a1a7a806
Correct redirect uri in OAuth2 Controller ( fixes #778 )
2016-02-09 18:01:59 +03:30
Toby Zerner
dfef3c1ff1
Slightly widen index sidebar, overflow buttons properly
...
First half of #349 fix. Supersedes #734 (190px wide instead of 200px, correctly modify margin-left of .sideNavOffset, more descriptive commit message)
2016-02-07 12:10:02 +10:30
Toby Zerner
fb09cef540
Merge pull request #748 from JoshyPHP/Minifiers
...
Added support for new minifiers
2016-02-07 11:37:15 +10:30
Toby Zerner
24ed2c0d8f
Update Mithril
2016-02-06 18:58:34 +10:30
Toby Zerner
173f88da92
Better post scrubber size calculations. fixes #109
2016-02-06 18:47:09 +10:30
Franz Liedke
9ecb5f437a
Use stored slug for generating server-rendered link to discussion
...
Fixes #646 .
2016-02-04 11:47:03 +01:00
Franz Liedke
97979b2189
Store discussion slug in database table
...
In preparation for #646 .
2016-02-04 11:46:30 +01:00
Toby Zerner
efff4c1801
Add priorities to user page sidebar items
2016-01-31 17:11:13 +10:30
Toby Zerner
2018e424ec
Refactor ListPostsController, make filtering extensible
...
It became apparent in https://github.com/flarum/core/issues/319#issuecomment-170558573 that there was no way for extensions to add filter parameters to the /api/posts endpoint (e.g. /api/posts?filter[mentioned]=1). Simply adding an event to modify the `$where` array severely limits how much can be done with the query. This commit refactors the controller so that filters are applied directly to the query Builder, and exposes the Builder in a new `ConfigurePostsQuery` event.
2016-01-31 17:06:38 +10:30
Toby Zerner
36ad4a8554
Fix fatal error
...
"PHP Fatal error: Cannot use Symfony\Component\Translation\Translator as Translator because the name is already in use"
2016-01-31 15:35:53 +10:30
Franz Liedke
3581fe8d1e
No sudo
2016-01-28 08:06:33 +01:00
Franz Liedke
90ce0fa521
Travis: Make sure Composer is up-to-date.
2016-01-28 08:06:20 +01:00
Franz Liedke
63b5cd0812
Travis: Update Xdebug removal code
2016-01-28 07:59:04 +01:00
Franz Liedke
2a3240b9d1
Travis: Use pre-installed Composer
...
I also disabled the XDebug extension for the PHP runtime, which should
improve Composer runtime considerably. This is what Composer itself does.
2016-01-20 22:22:13 +01:00
Franz Liedke
e0790de2e5
Update extension skeleton
...
Closes #743 .
2016-01-20 22:14:08 +01:00
Franz Liedke
c99c83435b
Fix path to extension stub directory
...
Refs #743 .
2016-01-20 22:01:01 +01:00