Commit Graph

257 Commits

Author SHA1 Message Date
82f1daeef4 Change discussion list sorting labels 2015-07-20 18:11:04 +09:30
23dd966b45 Rename method 2015-07-20 18:10:32 +09:30
741b9b0ea5 Render discussion hero badges properly 2015-07-20 18:10:21 +09:30
930ddf3253 Get rid of extension convenience method
We might reintroduce this later, but for now I want to keep the
extensions API as light as possible and get input before we add stuff
2015-07-20 18:09:37 +09:30
6b7cf1b6bf Rework extension bootstrapping
System JS modules don't execute when they're registered, so we need to
import them explicitly. While we're at it, we may as well make the
locale bootstrapper a module too.
2015-07-20 18:08:28 +09:30
9ca4feb6e8 Add some comments 2015-07-18 10:56:01 +09:30
24f100899c Don't apply background color if there is none 2015-07-18 10:55:56 +09:30
0af9784a59 Fix bad translation key 2015-07-18 10:11:42 +09:30
f93ff7cb3f Make front-end localizable 2015-07-17 17:43:28 +09:30
a9ded36b57 Major CSS revamp
- Get rid of Bootstrap (except we still rely on some JS)
- Use BEM class names
- Rework variables/theme config
- Fix various bugs, including some on mobile

The CSS is still not ideal – it needs to be cleaned up some more. But
that can be a focus for after beta.
2015-07-17 14:47:49 +09:30
76678f72f2 Case-sensitive filename changes 2015-07-15 15:54:34 +09:30
ab6c03c0cc 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
9fa3492c0e Clean up discussion model 2015-07-08 10:51:30 +09:30
a74623c718 Make admin open in a new window 2015-07-08 10:51:16 +09:30
42f1fa1272 Improve fulltext search API and interface 2015-07-07 20:35:18 +09:30
4c5cf96b95 Fix discussion search result suggestion excerpts
So that they show the relevant part of the post
2015-07-07 16:16:20 +09:30
013d11554d 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
e1a65380ef Tweak discussion list styles some more 2015-07-07 15:30:48 +09:30
99876e9e36 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
fcc5aa17ea Tweak discussion list contextual controls 2015-07-07 09:21:43 +09:30
c06639fdc8 This should've been with the last commit
I blame GitHub for Mac again :]
2015-07-07 09:21:27 +09:30
5fe88e448e 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
330e60871a Fix read tracking not working 2015-07-05 13:58:07 +09:30
31474764ee Fix post scrubber unread indicator overflow 2015-07-05 13:53:06 +09:30
1d21670663 New look for discussion reply/unread count
Also decrease the max page width by 100px
2015-07-05 13:52:46 +09:30
a74b40fe47 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
e18d8b35e5 Refactor component API a bit 2015-06-26 19:09:43 +09:30
5202ce00c4 Split up post controls into "user", "moderation", "destructive" 2015-06-26 16:15:30 +09:30
fe82631f95 Tweak user bio editing UI 2015-06-26 13:57:21 +09:30
3ba495091e Flattening items breaks things; recurse to get the first element instead 2015-06-26 13:52:54 +09:30
0526e223e4 Always show composer header. closes flarum/core#112 2015-06-26 12:18:13 +09:30
8f6b373ea1 Constrain the unread part of the scrubber to after the handle 2015-06-26 12:09:59 +09:30
e887d75b8b Show badges in notifications 2015-06-26 12:09:28 +09:30
6acc6698f5 Don't clear filter when search is cleared 2015-06-26 12:08:46 +09:30
9e6ad1f244 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
35c05862a4 Fix unwanted onbeforeunload message 2015-06-26 11:57:52 +09:30
f2f23138b2 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
099b910be9 Prevent incorrect badge redraw diffing 2015-06-25 15:35:11 +09:30
cbd3509ad2 More accurate scrubber height resizing 2015-06-25 15:34:34 +09:30
aec6a4b86c Fix faulty detection of touch device 2015-06-25 15:34:14 +09:30
2c70c4fa82 Fix active discussion not highlighting in pane 2015-06-25 15:33:56 +09:30
4778d15dcb Clean up 2015-06-25 15:33:37 +09:30
bda8b5d88d 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
8fe2f54489 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
6881229702 Close the composer completely if the reply is empty 2015-06-25 10:34:37 +09:30
34ca6d4515 Implement onbeforeunload composer confirmation. closes flarum/core#113 2015-06-25 10:34:14 +09:30
f3b8c31e18 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
e8bb044701 Discussion list refactor, gestures
Also make base Component class automatically assign this.element :)
2015-06-24 17:56:39 +09:30
3b7c7de83b Fix deleting posts causing subsequent posts to display incorrectly 2015-06-24 11:46:43 +09:30
fee88508ba Only display the first page of posts
Extra posts may be in the payload (mention links etc.) but we do not
want to display them.
2015-06-24 11:45:58 +09:30