200 Commits

Author SHA1 Message Date
Toby Zerner
09089ddbf8 Get ember-cli to watch the flarum-common addon for changes by linking it 2015-03-29 23:05:32 +10:30
Toby Zerner
40a6d77e74 Big front-end asset/filestructure refactor
- Extract shared Ember components into a “flarum-common” ember-cli
addon. This can be used by both the forum + admin Ember apps, keeping
things DRY
- Move LESS styles into their own top-level directory and do a similar
thing (extract common styles)
- Add LESS/JS compilation and versioning to PHP (AssetManager)
- Set up admin entry point

(Theoretical) upgrade instructions:
- Delete everything in [app_root]/public
- Set up tooling in forum/admin Ember apps (npm install/update, bower
install/update) and then build them (ember build)
- php artisan vendor:publish
- Upgrade flarum/flarum repo (slight change in a config file)
- If you need to trigger a LESS/JS recompile, delete the .css/.js files
in [app_root]/public/flarum. I set up LiveReload to do this for me when
I change files in less/ or ember/

Todo:
- Start writing admin app!
- Remove bootstrap/font-awesome from repo and instead depend on their
composer packages? Maybe? (Bower is not an option here)
2015-03-29 22:13:26 +10:30
Toby Zerner
950d2f0eb9 Move forum ember app into a subdir, preparing for admin app to exist alongside 2015-03-28 19:10:52 +10:30
Toby Zerner
62d26e8e0a Upgrade dependencies, fix ember-data problems 2015-03-28 18:20:38 +10:30
Toby Zerner
502fd14b50 Precompile inline templates
Removing the in-browser compiler will save up to 30 kB (after
minification + gzipping) and boost startup performance. Win!
2015-03-28 17:37:41 +10:30
Toby Zerner
5028f6e877 Don't toggle a cell if it's disabled 2015-03-28 16:31:36 +10:30
Toby Zerner
4f93a626ea Fix row/column toggle background coloring 2015-03-28 15:47:36 +10:30
Toby Zerner
88f47e6017 Disable notification type/method combinations that are not available 2015-03-28 15:43:58 +10:30
Toby Zerner
bc9be30a02 More powerful/extensible notifications
- Notifications can be delivered in multiple ways (alert, email)
- Different notification types can implement interfaces to allow
themselves to be delivered in these various ways
- User preferences for each notification type/method combination are
automatically registered
2015-03-28 15:43:58 +10:30
Toby Zerner
49c3fa09e6 Change "renamed" post type to more descriptive "discussionRenamed" 2015-03-28 15:43:58 +10:30
Toby Zerner
f90a2b9271 Clean up user nav items 2015-03-28 15:43:58 +10:30
Toby Zerner
5d5d0cbb30 Notify index when a discussion is deleted from the discussion view 2015-03-28 15:43:58 +10:30
Toby Zerner
38ebb15334 Track user "last seen" time and display whether they are online or not
according to their preferences
2015-03-28 15:43:58 +10:30
Toby Zerner
3c3f8242e2 Remove unneeded check in item-list template
If the `isHiddenInList` property is changed to true (e.g. via a
computed property), then that view is removed, and its computed
properties are unhooks — so the `isHiddenInList` property won’t update
and the view can’t be shown again. Items should be hidden via CSS
instead.
2015-03-28 15:43:57 +10:30
Toby Zerner
5ca3b5e0f6 Darken avatar editor hover background 2015-03-28 15:43:57 +10:30
Toby Zerner
6dcc14ef49 User settings GUI, including some new components 2015-03-28 15:43:57 +10:30
Toby Zerner
bda58ca207 Removed unneeded CSS 2015-03-27 11:53:01 +10:30
Toby Zerner
b482ada692 Push user route history in a more appropriate place 2015-03-27 11:52:46 +10:30
Toby Zerner
2a33d5d72f Add discussion author tooltip 2015-03-27 11:51:48 +10:30
Toby Zerner
b96fd23842 Use blurred version of avatar as user card background 2015-03-27 11:50:38 +10:30
Toby Zerner
257a3fde1a Refresh avatar display after uploading 2015-03-27 11:49:26 +10:30
Toby Zerner
ab9cf922db Implement rough UI for uploading avatars 2015-03-26 10:19:47 +10:30
Martin Dilling-Hansen
612453d79a Always show vertical scrollbar
Show the vertical scrollbar as inactive when content of the site
don't require any scrolling, instead of not showing anything.
This avoids the annoying "jumps" when you switch between
pages that require scrolling vs don't require scrolling.
2015-03-24 11:05:16 +01:00
Toby Zerner
747226401c Fix user stats not updating when going from one profile to another 2015-03-24 19:55:18 +10:30
Toby Zerner
3362a8c092 Trim hyphens from start/end of slug 2015-03-24 19:16:26 +10:30
Toby Zerner
47262c2970 Don't fingerprint assets 2015-03-24 16:19:48 +10:30
Toby Zerner
14726e3093 Remove sample avatars 2015-03-24 16:19:34 +10:30
Toby Zerner
fe3b1a121b Fix user card style regressions 2015-03-24 16:12:21 +10:30
Toby Zerner
4a1550215c Implement notifications 2015-03-24 15:07:38 +10:30
Toby Zerner
a62e04f956 Upgrade to JSON-API RC3 + latest version of tobscure/json-api
Note: npm source for ember-json-api changed to a fork, but I still had
to apply a custom change to get polymorphic relationships to work (see
https://github.com/kurko/ember-json-api/pull/71#issuecomment-85257281)
2015-03-24 15:04:24 +10:30
Toby Zerner
536281e273 Prevent item-count-undefined 2015-03-24 14:23:55 +10:30
Toby Zerner
8537ebee85 Fix discussion deletion/mark as read 2015-03-24 14:23:42 +10:30
Toby Zerner
ec3b1aefa0 Add link to administration section 2015-03-24 14:23:16 +10:30
Toby Zerner
1e3f5d48d5 Add animation when showing deleted post content 2015-03-24 14:15:38 +10:30
Toby Zerner
ababcb5c20 Make user background color slightly darker 2015-03-24 14:15:09 +10:30
Toby Zerner
963bf8ec88 Darken drop shadows a bit 2015-03-23 12:07:10 +10:30
Toby Zerner
42e6bb1d7f Add a loading indicator before the Ember app boots 2015-03-23 12:06:55 +10:30
Toby Zerner
976d97877b Improve global back button. Goes back to previous interface.
It’s not quite like the browser’s back button because it doesn’t
necessarily go back to the last URL; rather, it goes back to the last
interface. So if you go into a discussion, then go to a different
discussion via the side pane, the back button will still take you back
to the index (not the previous discussion).
2015-03-20 10:40:42 +10:30
Toby Zerner
98d1ce1a00 Tweak activity avatar position 2015-03-20 10:38:19 +10:30
Toby Zerner
d59698a0fc Fix scrubber count being styled incorrectly 2015-03-20 10:37:15 +10:30
Toby Zerner
3d6b6d9fd3 Fix composer not having any padding on the bottom (d/t header height miscalculation) 2015-03-20 10:36:55 +10:30
Toby Zerner
d1b15bf4ab Stick footer to bottom 2015-03-18 09:12:45 +10:30
Toby Zerner
f0c4478160 Animate user card popovers 2015-03-18 09:12:38 +10:30
Toby Zerner
3880ce70f0 Add user activity system 2015-03-17 17:06:12 +10:30
Toby Zerner
5055377eb1 Make discussion-listing/index styles more modular 2015-03-17 17:04:35 +10:30
Toby Zerner
2c28432ff0 Don't clip popups if they go off the bottom of the screen 2015-03-17 17:03:16 +10:30
Toby Zerner
c451f5f80c Reorder functions 2015-03-17 17:02:47 +10:30
Toby Zerner
066f9df18f Tweak user bio editing styles 2015-03-17 17:01:19 +10:30
Toby Zerner
cce21bb184 Brighten up avatar colors 2015-03-12 13:05:34 +10:30
Toby Zerner
edac830371 Add user profile side nav 2015-03-12 12:59:32 +10:30