1
0
mirror of https://github.com/flarum/core.git synced 2025-07-20 16:21:18 +02:00
Commit Graph

111 Commits

Author SHA1 Message Date
Toby Zerner
00be36ad16 Better API error handling 2015-05-18 18:13:16 +09:30
Toby Zerner
96c3c2cc25 Show composer after discussion is reloaded following login 2015-05-18 15:38:19 +09:30
Toby Zerner
8b7e7c0afd Clicking on an index nav item should always refresh the discussion list 2015-05-18 15:27:39 +09:30
Toby Zerner
b11595de06 Refresh discussion after logging in. Fixes #68 2015-05-18 15:07:04 +09:30
Toby Zerner
a7ff92cbff Only allow user profile to be edited if user has permission. Fixes #72 2015-05-18 14:58:59 +09:30
Toby Zerner
3fcf8f3da5 Make avatar edit menu extensible 2015-05-18 14:58:23 +09:30
Toby Zerner
82dc0cdd7b Fix broken login/signup links
They’re still broken, hoping that
https://github.com/babel/babel/issues/1150#issuecomment-102881157 will
fix
2015-05-18 14:58:08 +09:30
Toby Zerner
c9b971bdf8 Don't affix the sidebar if it is taller than the viewport. fixes #79 2015-05-18 14:47:08 +09:30
Toby Zerner
d7facbd90a Set document.title on every page 2015-05-18 14:28:15 +09:30
Toby Zerner
39dd2f9b9b Actually fade out post when it is being edited 2015-05-18 14:27:29 +09:30
Toby Zerner
9004aff630 Make discussion edit permission specific to renaming 2015-05-18 12:34:03 +09:30
Toby Zerner
d9e97bc149 Fix broken composer extensibility 2015-05-18 10:55:07 +09:30
Toby Zerner
0037383d9f Oops duplicate method name 2015-05-18 10:48:48 +09:30
Toby Zerner
b1cbfe0186 Drastically improve how the composer looks and behaves
- New, cleaner, more prominent look
- Make it statically positioned down the bottom on mobile, so you can
still scroll up to look at posts
- Fix some bugs with animation, jumping between views
2015-05-18 10:40:14 +09:30
Toby Zerner
c0bf5f81fe Fix sometimes trying to jump to NaN in the stream 2015-05-18 10:37:47 +09:30
Toby Zerner
e77d0e0786 Add a space between avatar/username for better display on mobile 2015-05-18 10:37:24 +09:30
Toby Zerner
a80ae5c400 Minimise composer when exiting a page, rather than entering it 2015-05-18 10:37:07 +09:30
Toby Zerner
72e9205b50 Properly initialise subtree retainers 2015-05-18 10:35:12 +09:30
Toby Zerner
a5f4e10f79 Make discussion list includes extensible 2015-05-14 23:10:11 +09:30
Toby Zerner
6aa0765bb4 Note for the future 2015-05-14 22:41:08 +09:30
Toby Zerner
614a75a497 New look for notifications 2015-05-14 22:41:08 +09:30
Toby Zerner
a77303a473 Add pulsate/flash animations for drawing attention to posts 2015-05-14 22:41:07 +09:30
Toby Zerner
106f5df771 Transform post time into a date 2015-05-14 22:41:06 +09:30
Toby Zerner
8156f23968 Add helper function for punctuating a list
e.g. [1,2,3] ⇒ [1, ‘, ‘, 2, ‘, and’, 3]
2015-05-14 22:41:06 +09:30
Toby Zerner
a8ad5a1ac8 Add methods for doing stuff in text editor
Used by the mentions extension
2015-05-14 22:41:06 +09:30
Toby Zerner
a2049feddf Only give dropdown menu items padding if they have an icon 2015-05-14 22:41:06 +09:30
Toby Zerner
d85ae8745e Automatically hook up onload/config functions
So that every component's DOM can be config'd by extensions
2015-05-14 22:41:06 +09:30
Toby Zerner
f2c07218b0 Add convenience route generation functions
Many instances throughout the app need to be updated to use these :)
2015-05-14 22:41:06 +09:30
Toby Zerner
a1c21797fc Make discussion actions public; use existing reply composer if it's already set up 2015-05-14 22:41:06 +09:30
Toby Zerner
49749a65a3 Fix up post stream jumping to index 2015-05-14 22:41:06 +09:30
Toby Zerner
4a7bd67199 New component for post excerpts, which will be shown in search results
Perhaps also in user activity stream. They are used in the mentions
extension.

In order to generate the excerpt, each formatter can implement a
“strip” method which basically converts block formatting into inline
formatting.
2015-05-14 22:41:05 +09:30
Toby Zerner
5c6eaefb1f Don't be so picky about the slug 2015-05-14 22:41:05 +09:30
Toby Zerner
bdf07aee50 Only add initial posts to the post stream if they have content 2015-05-14 22:41:05 +09:30
Toby Zerner
5115b6fb09 Prevent JS error for now 2015-05-14 22:41:05 +09:30
Toby Zerner
7a7ed695e2 Nicer API for changing discussion request includes (array instead of string) 2015-05-14 22:41:05 +09:30
Toby Zerner
df3d205132 Don't bother confirming exit if there's no content 2015-05-14 22:41:05 +09:30
Toby Zerner
fb834675b9 Focus at the end of the textarea when showing composer 2015-05-14 22:41:05 +09:30
Toby Zerner
222b81e917 Make text editor's controller accessible 2015-05-14 22:41:05 +09:30
Toby Zerner
41d2d0b1c6 Tweak composer anchoring/animation 2015-05-14 22:41:04 +09:30
Toby Zerner
87d505499b Prevent re-showing the composer when it's already showing 2015-05-14 22:41:04 +09:30
Toby Zerner
0ceb5ebbde Update the discussion's post relationship when a reply is added 2015-05-14 22:41:04 +09:30
Toby Zerner
2069c7ab87 Make it possible for extensions to modify data before saving 2015-05-14 22:41:04 +09:30
Toby Zerner
4fd61e2466 Close the drawer when page content is touched. Fixes #69 2015-05-11 11:03:40 +09:30
Toby Zerner
ac29ecaffe Make sure discussion list subtrees don't go missing. Fixes #66 2015-05-11 10:47:42 +09:30
Toby Zerner
ec026e514d Remove circular dependency that was breaking the app 2015-05-07 22:14:31 +09:30
Toby Zerner
25f399ca35 Don't let a discussion have an empty slug as it messes with the router 2015-05-07 16:53:57 +09:30
Toby Zerner
d7667fdea6 Fix post deletion error 2015-05-07 16:53:39 +09:30
Toby Zerner
077f231fef Fix user activity load more 2015-05-07 16:53:30 +09:30
Toby Zerner
a79dcf69b2 Work around Mithril bug 2015-05-07 15:41:04 +09:30
Toby Zerner
741ca5ab92 Clean up discussion list retaining mechanism 2015-05-07 10:27:29 +09:30