1
0
mirror of https://github.com/flarum/core.git synced 2025-07-21 08:41:17 +02:00
Commit Graph

247 Commits

Author SHA1 Message Date
Toby Zerner
0b685b1036 Case-sensitive filename changes 2015-07-15 15:54:34 +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
5aca956af7 Clean up discussion model 2015-07-08 10:51:30 +09:30
Toby Zerner
5cfb870202 Make admin open in a new window 2015-07-08 10:51:16 +09:30
Toby Zerner
5e982a39c5 Improve fulltext search API and interface 2015-07-07 20:35:18 +09:30
Toby Zerner
e62093f4dd Fix discussion search result suggestion excerpts
So that they show the relevant part of the post
2015-07-07 16:16:20 +09:30
Toby Zerner
85cd2663e3 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
Toby Zerner
09d70c2264 Tweak discussion list styles some more 2015-07-07 15:30:48 +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
c7383601e2 Tweak discussion list contextual controls 2015-07-07 09:21:43 +09:30
Toby Zerner
0f561921b2 This should've been with the last commit
I blame GitHub for Mac again :]
2015-07-07 09:21:27 +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
cadf979ed3 Fix read tracking not working 2015-07-05 13:58:07 +09:30
Toby Zerner
663c4b4837 Fix post scrubber unread indicator overflow 2015-07-05 13:53:06 +09:30
Toby Zerner
b72533d9a0 New look for discussion reply/unread count
Also decrease the max page width by 100px
2015-07-05 13:52:46 +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
Toby Zerner
260f4c85bf Refactor component API a bit 2015-06-26 19:09:43 +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
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
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
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
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
972bd24c7a Discussion list refactor, gestures
Also make base Component class automatically assign this.element :)
2015-06-24 17:56:39 +09:30
Toby Zerner
748abd9b0b Fix deleting posts causing subsequent posts to display incorrectly 2015-06-24 11:46:43 +09:30
Toby Zerner
cbb7e91eb4 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
Toby Zerner
fcd1b081d9 Significantly improve mobile UX
Most of #137 done.

- Use FastClick to make everything feel more responsive
- Use transforms for animations to make them silky smooth
- Style the drawer the same as the header to keep things simple
- Revert to fixed composer, but allow it to be minimised
- Add a separate notifications page for mobile so it’s easy to go back
- Add indicator to the menu button when there are unread notifications
- Close the drawer when navigating away
- Make dropdowns/modals scrollable
- Many other mobile tweaks and bug fixes

Didn’t take much care to keep CSS clean, due to #103
2015-06-24 11:44:53 +09:30
Toby Zerner
951db23ffd Revert from a while ago: always append if reference item not found
API still needs some work though
2015-06-23 11:12:37 +09:30
Toby Zerner
c2883bc85e Add light horizontal rule between posts. closes flarum/core#133
Also remove time information from event posts (it’s not useful)
2015-06-23 10:36:36 +09:30
Toby Zerner
3223f65ce3 Allow author to delete discussion if there are no replies
Also disallow the first post in a discussion to be deleted or hidden
(thus preventing discussions with zero posts)

closes flarum/core#90 closes flarum/core#92
2015-06-23 10:34:33 +09:30
Toby Zerner
dfe1a9bae5 Gracefully handle discussions with no posts
Although this should never happen
2015-06-23 10:30:06 +09:30
Toby Zerner
93b865efd1 Speed up committing of scroll position in URL/marking as read 2015-06-23 10:29:08 +09:30
Toby Zerner
f6f254a167 Default submit handler for form modals 2015-06-23 10:28:24 +09:30
Toby Zerner
195a3e42d8 Fix broken forgot password form. closes #116 2015-06-20 10:29:57 +09:30
Toby Zerner
2cc910e234 Actually sort notifications (please) 2015-06-19 19:10:54 +09:30
Toby Zerner
6a39ef5659 Make sure notifications are sorted 2015-06-19 19:05:03 +09:30