Commit Graph

1770 Commits

Author SHA1 Message Date
Toby Zerner
edf530be67 Update current state, installation instructions 2015-03-29 22:36:05 +10:30
Toby Zerner
3886efffef Turns out putting a . there breaks Laravel 2015-03-29 22:27:37 +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
52a7b536c4 Fix scope removal of bindings 2015-03-28 16:31:26 +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
89eca757e6 Give MappedMorphTo a more generic property name 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
afa4b98c4a Only get posts with registered types.
This is so that if an extension adds a post type, and the database gets
populated with posts of that type, but then if the extension is
disabled, we wouldn’t want those posts to display because we would have
no knowledge about how to deal with/render them.
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
359f44552e Implement user preferences API
Preferences must be registered (optionally with a callback to transform
data, and a default value) on the User model.
2015-03-28 15:43:57 +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
e710a2c93e Update dependencies 2015-03-28 15:43:57 +10:30
Toby Zerner
3f6931b580 Merge pull request #52 from kezkankrayon/master
Fix comment count update in seed.
2015-03-28 09:13:14 +10:30
Ciarán O'Mara
be067ae1b6 Fix comment count update.
Addresses the following error when using pqsql.

[PDOException]
  SQLSTATE[42703]: Undefined column: 7 ERROR:  column "comment" does not exist
  LINE 1: ...d) FROM posts WHERE user_id = users.id and type = "comment")
2015-03-28 05:38:56 +11:00
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
38bbfc78d0 Merge pull request #50 from flarum/avatar-api
API for uploading avatars
2015-03-27 08:49:11 +10:30
Franz Liedke
9621e72b9b Fix order of arguments. 2015-03-26 22:03:55 +01:00
Franz Liedke
a19f35e8c1 Construct filesystem correctly. 2015-03-26 22:03:47 +01:00
Franz Liedke
18ccec4190 Pass newly configured filesystem disk to upload handler. 2015-03-26 22:01:58 +01:00
Franz Liedke
cf8e02977f Change name of avatar field in users table. 2015-03-26 20:59:06 +01:00
Toby Zerner
ab9cf922db Implement rough UI for uploading avatars 2015-03-26 10:19:47 +10:30
Franz Liedke
e4ed057557 Wire up instantiation of Flysystem adapter for avatar storage. 2015-03-25 14:26:38 +01:00
Franz Liedke
100a5038bf Add route and action for uploading user avatars. 2015-03-25 14:26:17 +01:00
Franz Liedke
a1f723671d Add simple implementation (command handler) for avatar upload. 2015-03-25 14:23:31 +01:00
Franz Liedke
7f66a77ede Add avatar handling to user model. 2015-03-25 14:21:50 +01:00
Franz Liedke
901b6b0839 Provide empty run() method.
This allows me to override the handle() method in subclasses (where
I need access to the request object) without having to overwrite
run(), too.

The class is still abstract.
2015-03-25 13:00:23 +01:00
Toby Zerner
4928f1723d Merge pull request #49 from martindilling/patch-1
Always show vertical scrollbar
2015-03-24 21:04:43 +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
3081fe2aa4 Fix DiscussionWasStarted event not being dispatched 2015-03-24 19:50:52 +10:30
Toby Zerner
8be486a31d Don't show deleted posts in the activity feed 2015-03-24 19:41:30 +10:30
Toby Zerner
43842623aa Only include visible posts in post linkage 2015-03-24 19:29:47 +10:30
Toby Zerner
3362a8c092 Trim hyphens from start/end of slug 2015-03-24 19:16:26 +10:30
Toby Zerner
c35b472e66 Fix non-comment post content serialization 2015-03-24 17:03:59 +10:30
Toby Zerner
193bb0b085 Fix error if there is no included data with user
i.e. if the logged in user is unconfirmed (doesn’t have any groups
attached)
2015-03-24 16:55:22 +10:30
Toby Zerner
47262c2970 Don't fingerprint assets 2015-03-24 16:19:48 +10:30