Commit Graph

345 Commits

Author SHA1 Message Date
Toby Zerner
feb2891f56 Allow custom relation to be specified as string 2015-04-25 22:36:34 +09:30
Toby Zerner
8430b67d5b Add BootForum event so extensions can add assets 2015-04-25 22:35:41 +09:30
Toby Zerner
334bb596c2 Recompile assets every time a file changes 2015-04-25 22:34:56 +09:30
Toby Zerner
a4fbcd451d Use Less_Parser cache feature to speed up LESS generation 2015-04-25 22:34:46 +09:30
Toby Zerner
081dde346d Fix email confirmation route 2015-04-25 22:34:33 +09:30
Toby Zerner
c9d7ac7a88 Rename assets directory 2015-04-25 22:34:26 +09:30
Toby Zerner
6db911420b Update some styles for the Mithril app 2015-04-25 22:31:37 +09:30
Toby Zerner
cddd23bb33 Clean up LESS files 2015-04-25 22:31:30 +09:30
Toby Zerner
b5c95a222f Replace Ember app with Mithril app 2015-04-25 22:28:39 +09:30
Toby Zerner
cceb2b1249 Fix attribute serialisation event mutability 2015-04-03 17:04:59 +10:30
Toby Zerner
3cd7e307b3 Add an event to modify search queries 2015-04-03 17:04:41 +10:30
Toby Zerner
70c7195690 Call action with correct context 2015-04-03 17:00:18 +10:30
Toby Zerner
a238c32429 Make badge icons not blurry by making sure they can centre accurately 2015-04-03 16:59:50 +10:30
Toby Zerner
f77323244c Refactor Flarum\Web and Flarum\Admin
- In order to be consistent with the Ember/LESS naming scheme, renamed
Flarum\Web to Flarum\Forum.
- Moved common classes into Flarum\Support so that Flarum\Admin doesn’t
depend on Flarum\Forum. Also moved Actor into Flarum\Support as it
doesn’t belong in the domain.
2015-03-30 16:17:04 +10:30
Toby Zerner
d8fb291847 Don't ignore FontAwesome fonts 2015-03-30 15:50:36 +10:30
Toby Zerner
631637ca9f Fix Ember test loaders 2015-03-30 15:50:05 +10:30
Toby Zerner
368a13aee1 Oops 2015-03-30 12:56:41 +10:30
Toby Zerner
6e6f4a6fdf "See" a user on the initial page load too 2015-03-30 12:55:39 +10:30
Toby Zerner
8e3186d41c Set up responsive admin layout 2015-03-30 12:46:55 +10:30
Toby Zerner
4678603f55 Extract .side-nav into a common file 2015-03-30 12:45:48 +10:30
Toby Zerner
8604ed99ec Don't allow guests into the admin area 2015-03-30 12:43:55 +10:30
Toby Zerner
4b71c32e8b Document placeholder CSS files, remove LESS dependency 2015-03-30 10:47:40 +10:30
Toby Zerner
3aa36f7a47 Update administration page title 2015-03-30 10:42:13 +10:30
Toby Zerner
30ca91d12e Make sidepane pinned by default 2015-03-30 10:25:02 +10:30
Toby Zerner
7e889ef50d Get ember-cli to watch the flarum-common addon for changes by linking it 2015-03-29 23:05:32 +10:30
Toby Zerner
66d4c91a68 Update current state, installation instructions 2015-03-29 22:36:05 +10:30
Toby Zerner
8c8ef58385 Turns out putting a . there breaks Laravel 2015-03-29 22:27:37 +10:30
Toby Zerner
de10e4457f 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
10c1c4c09d Move forum ember app into a subdir, preparing for admin app to exist alongside 2015-03-28 19:10:52 +10:30
Toby Zerner
b92364a0f6 Upgrade dependencies, fix ember-data problems 2015-03-28 18:20:38 +10:30
Toby Zerner
5a98faf78c 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
4c85e60894 Don't toggle a cell if it's disabled 2015-03-28 16:31:36 +10:30
Toby Zerner
0894368063 Fix scope removal of bindings 2015-03-28 16:31:26 +10:30
Toby Zerner
ac1122b6aa Fix row/column toggle background coloring 2015-03-28 15:47:36 +10:30
Toby Zerner
f330561025 Disable notification type/method combinations that are not available 2015-03-28 15:43:58 +10:30
Toby Zerner
ffca22dcc7 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
be75d1cf12 Change "renamed" post type to more descriptive "discussionRenamed" 2015-03-28 15:43:58 +10:30
Toby Zerner
007997c2aa Give MappedMorphTo a more generic property name 2015-03-28 15:43:58 +10:30
Toby Zerner
05ff7935c1 Clean up user nav items 2015-03-28 15:43:58 +10:30
Toby Zerner
be5bc07733 Notify index when a discussion is deleted from the discussion view 2015-03-28 15:43:58 +10:30
Toby Zerner
34885f0f9b 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
74ac2a7ffd 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
37825f1849 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
7f2a9beb5d 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
db7ba85b66 Darken avatar editor hover background 2015-03-28 15:43:57 +10:30
Toby Zerner
5fbb8a0d8f User settings GUI, including some new components 2015-03-28 15:43:57 +10:30
Toby Zerner
f9340e13ad Update dependencies 2015-03-28 15:43:57 +10:30
Toby Zerner
66074961f7 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
b29d98adc4 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
381c23894d Removed unneeded CSS 2015-03-27 11:53:01 +10:30