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
Franz Liedke
150b8d7cd3
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
Franz Liedke
cca97398ae
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
Toby Zerner
260f4c85bf
Refactor component API a bit
2015-06-26 19:09:43 +09:30
Toby Zerner
5718a27248
Bit of padding on the ol' composer textarea
2015-06-26 17:43:48 +09:30
Toby Zerner
ce0bb59997
Split up post controls into "user", "moderation", "destructive"
2015-06-26 16:15:30 +09:30
Toby Zerner
020e671c74
Tweak user bio editing UI
2015-06-26 13:57:21 +09:30
Toby Zerner
c81cb5dcc8
Flattening items breaks things; recurse to get the first element instead
2015-06-26 13:52:54 +09:30
Toby Zerner
f2a28e1185
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
Toby Zerner
efbe46f7a9
Notification API tweaks
2015-06-26 12:18:53 +09:30
Toby Zerner
8cc47c77de
Make sure discussion sidebar appears above posts
2015-06-26 12:18:32 +09:30
Toby Zerner
9a04603587
Always show composer header. closes flarum/core#112
2015-06-26 12:18:13 +09:30
Toby Zerner
5c3e3abf70
Constrain the unread part of the scrubber to after the handle
2015-06-26 12:09:59 +09:30
Toby Zerner
1e592f544d
Show badges in notifications
2015-06-26 12:09:28 +09:30
Toby Zerner
fa094102d6
Don't clear filter when search is cleared
2015-06-26 12:08:46 +09:30
Toby Zerner
54b7c4eff4
Only show search suggestion excerpt if we have it
...
We won’t have it if we didn’t do a fulltext search
2015-06-26 12:08:23 +09:30
Toby Zerner
15fc30d1d9
Fix unwanted onbeforeunload message
2015-06-26 11:57:52 +09:30
Toby Zerner
c9e0e9e6e1
Use mixins for vendor prefixes
2015-06-25 15:38:40 +09:30
Toby Zerner
d2c1e3a3d7
Tweak how discussion sidebar displays on mobile
...
Give all items in an item list a class on their <li>. Super helpful for
styling
2015-06-25 15:38:29 +09:30
Toby Zerner
0d5927d812
Prevent incorrect badge redraw diffing
2015-06-25 15:35:11 +09:30
Toby Zerner
5fc4f58aa6
More accurate scrubber height resizing
2015-06-25 15:34:34 +09:30
Toby Zerner
679f7c6760
Fix faulty detection of touch device
2015-06-25 15:34:14 +09:30
Toby Zerner
ad47f022b7
Fix active discussion not highlighting in pane
2015-06-25 15:33:56 +09:30
Toby Zerner
1b499326a3
Clean up
2015-06-25 15:33:37 +09:30
Toby Zerner
8328906fe5
Give all components config on the root element
...
So that extensions can work on it no matter what
2015-06-25 15:33:29 +09:30
Toby Zerner
be9dea172d
Split discussion controls into three groups:
...
- user (reply, subscription)
- moderation (rename, sticky, tags)
- destructive (delete)
Will keep extension-added items organised nicely
2015-06-25 15:31:15 +09:30
Toby Zerner
dc83415d86
Animate header between normal and full-width (pinned pane)
2015-06-25 15:05:46 +09:30
Toby Zerner
22056b143a
Fix responsive controls
2015-06-25 15:05:22 +09:30
Toby Zerner
cf0ea3d24a
Close the composer completely if the reply is empty
2015-06-25 10:34:37 +09:30
Toby Zerner
b6fb560359
Implement onbeforeunload composer confirmation. closes flarum/core#113
2015-06-25 10:34:14 +09:30
Toby Zerner
0c7da167c2
Give notifications dropdown a responsive max height
2015-06-25 10:32:13 +09:30
Toby Zerner
ab8127238e
Tweak notification grid icon appearance
2015-06-25 09:57:46 +09:30
Toby Zerner
046c6e2168
Update start_post_id when starting a discussion
2015-06-25 09:48:28 +09:30
Toby Zerner
649fbf3377
Nitpicking
2015-06-25 09:48:01 +09:30
Toby Zerner
60e90faf2e
Be more specific as to when we require edit permission
...
Since we update per-user data (e.g. isLiked) through this command’s
event
2015-06-25 08:38:18 +09:30
Toby Zerner
06a50e92aa
Make home button route correctly, not respond on middle click
...
Amends flarum/core#140 , closes flarum/core#136
2015-06-25 08:14:51 +09:30
Toby Zerner
1f9be042dd
Make relevant posts span full width on mobile
2015-06-25 08:12:12 +09:30
Franz Liedke
0f577d28d5
Link to forum homepage in header bar.
...
Closes #140 .
2015-06-24 22:21:44 +02:00
Toby Zerner
57fc62eaf1
Make sure discussion post IDs are ordered correctly
2015-06-24 18:57:07 +09:30
Toby Zerner
4624ddb849
Tweak post controls on mobile
2015-06-24 17:56:52 +09:30