Commit Graph

1561 Commits

Author SHA1 Message Date
Franz Liedke
78dbaf107e Remove pointless JSON-API action base class
Cleanup related to #118.
2015-09-09 09:04:49 +02:00
Franz Liedke
37cdc25338 Move remaining extension handling to middleware 2015-09-09 08:56:11 +02:00
Franz Liedke
afe0eeefc5 Move exception handling for Flarum exception classes to middleware
Related to #118.
2015-09-08 22:36:32 +02:00
Franz Liedke
774505299c Implement interface to serialize exceptions to JSON-API format
Related to #118
2015-09-08 22:35:39 +02:00
Toby Zerner
334d598d56 Give iframes in posts a max width 2015-09-08 11:51:36 +09:30
Toby Zerner
7c2fbb37b5 Reduce event post font size 2015-09-08 11:13:35 +09:30
Toby Zerner
86af56f472 Add more breathing room between posts and sidebar 2015-09-08 11:13:28 +09:30
Toby Zerner
26d1cb7e9f Restyle posts to be more compact, relocate controls 2015-09-08 10:29:00 +09:30
Toby Zerner
ca53a63fd8 Make unread discussion titles less overwhelming 2015-09-08 10:27:50 +09:30
Toby Zerner
76d0e7770c Add init hook as a way to effectively monkey patch constructors
Related to #246
2015-09-08 10:27:02 +09:30
Toby Zerner
54554578a3 Increase text contrast slightly 2015-09-08 10:24:20 +09:30
Toby Zerner
4a906e28ba Allow first post to be hidden/restored
Anti-spam extensions may automatically hide the first post in a
discussion, and thus we had to implement smarter permissions so
discussions with zero posts wouldn't be visible to users other than the
author/mods. This change allows those hidden posts to be restored again.
2015-09-07 16:03:45 +09:30
Toby Zerner
1ca8a27e62 Merge pull request #438 from mtotheikle/default_extension_build_script
Add a default build script for extensions
2015-09-07 11:01:33 +09:30
Toby Zerner
8d6d35268e Preliminary implementation of master API keys
Part of #205
2015-09-07 08:37:33 +09:30
Michael Williams
b2510d2481 Add a default build script for extensions 2015-09-06 09:21:04 -07:00
Toby Zerner
6cce84e8c1 Remove unused translations 2015-09-05 16:05:02 +09:30
Toby Zerner
35dfe10513 Prevent invalid LESS from crashing application
Failure is silent for now... The default LESS will compile without the
invalid customisations. Not sure if we should log an error somewhere
and display it on the admin page?

closes #400
2015-09-04 22:33:26 +09:30
Toby Zerner
aa9e867f77 Fallback to English if system-wide default_locale doesn't exist 2015-09-04 22:19:28 +09:30
Toby Zerner
d549e26a4b Don't require database password confirmation 2015-09-04 21:45:52 +09:30
Franz Liedke
b30004a9d4 Web installer: Fix name of table prefix field 2015-09-04 12:14:48 +02:00
Franz Liedke
98fe2120e9 Installer: Fix password confirmation 2015-09-04 12:11:13 +02:00
Franz Liedke
312d964f91 Clean up code 2015-09-04 12:05:12 +02:00
Franz Liedke
eaa74ce9d9 Merge pull request #413 from WinterSilence/patch-2
Update RouteCollection::getPath
2015-09-04 12:03:51 +02:00
Franz Liedke
8d7e8ad7ca Reorder installer fields 2015-09-04 12:00:39 +02:00
Franz Liedke
4df26d7d5c Ask for password confirmation in web installer, too
Closes #405.
2015-09-04 12:00:03 +02:00
Franz Liedke
56efeb3a1e Require password confirmation in console installer
Refs #405.
2015-09-04 11:57:11 +02:00
Toby Zerner
47881bc744 Prevent error when hiding/restoring a post with a deleted user 2015-09-04 13:51:13 +09:30
Toby Zerner
d1ed58bcda Correctly style hidden post username 2015-09-04 13:50:43 +09:30
Toby Zerner
8b6f6e3305 Fix notifications dropdown appearance on mobile 2015-09-04 13:50:33 +09:30
Toby Zerner
3ec6e94c62 Don't show placeholder when loading discussions 2015-09-04 13:50:17 +09:30
Toby Zerner
e14fe8bc03 API: Add User::hasPermissionLike() and User::getPermissions() 2015-09-04 12:23:50 +09:30
Toby Zerner
29b74f1263 Fix typehint 2015-09-04 12:23:27 +09:30
Toby Zerner
cf9e2c23e9 Fix bad query in isVisibleTo 2015-09-04 12:23:17 +09:30
Toby Zerner
b4acc18b67 Don't load a custom relation if the relation is already loaded 2015-09-04 12:22:49 +09:30
Toby Zerner
0661371180 Improve some post/discussion permission logic
- Allow users to see their own posts, even if they have been hidden by
someone else
- Don't require hiding a post to be necessarily attributed to a user
- Hide discussions with zero posts, unless the user can edit posts, or
they are the discussion author
2015-09-04 12:22:27 +09:30
Toby Zerner
b3853c7650 Slightly darken light grey text 2015-09-04 12:19:20 +09:30
Toby Zerner
ce7bb507d8 Remove unused translations 2015-09-04 12:19:09 +09:30
Toby Zerner
ff993c99a4 Correct check that a translation is an object
typeof translation === 'object' returns true when translation is null
2015-09-04 12:19:02 +09:30
Toby Zerner
5e1978ceb7 API: Add typehints 2015-09-04 12:18:09 +09:30
Toby Zerner
738e272675 Clean up Post CSS 2015-09-04 12:17:30 +09:30
Toby Zerner
39c3b468dc Prevent ItemList crash when item is a number 2015-09-04 12:17:01 +09:30
Toby Zerner
601f7adb0f Allow non-array value to be passed into listItems
Useful in some scenarios when using JSX
2015-09-04 12:16:23 +09:30
Toby Zerner
c373065ab1 Move generic util into lib
Might come in handy for the admin section later on
2015-09-04 12:15:41 +09:30
Toby Zerner
4545673455 Make Dropdown and NotificationsDropdown components more extensible 2015-09-04 12:15:11 +09:30
Toby Zerner
9c8063ecf4 Make a copy of props passed into a component
Prevents some rare errors where the props object is read-only, and is
generally safer.
2015-09-04 12:13:55 +09:30
Toby Zerner
423aad22de Simplify notification markup 2015-09-04 12:12:48 +09:30
Toby Zerner
3aa94e1b10 Fix use of "new" keyword making eslint angry 2015-09-04 12:12:21 +09:30
Toby Zerner
6116458b3d Add item priorities 2015-09-04 12:11:45 +09:30
Toby Zerner
7a81d941fa Clean up editorconfig, eslint, npm dependencies 2015-09-04 12:11:34 +09:30
Toby Zerner
01fd2a61b8 Merge pull request #418 from Luceos/registration_fix
call to $this-> assertValidPassword from static context
2015-09-04 10:46:35 +09:30