framework/js/lib
Toby Zerner dd67291ce0 Major refactor and improvements
- Reorganised all namespaces and class names for consistency and structure. Following PSR bylaws (Abstract prefix, Interface/Trait suffix).
  - Move models into root of Core, because writing `use Flarum\Core\Discussion` is nice. Namespace the rest by type. (Namespacing by entity was too arbitrary.)
  - Moved some non-domain stuff out of Core: Database, Formatter, Settings.
  - Renamed config table and all references to "settings" for consistency.
  - Remove Core class and add url()/isInstalled()/inDebugMode() as instance methods of Foundation\Application.
  - Cleanup, docblocking, etc.

- Improvements to HTTP architecture
  - API and forum/admin Actions are now actually all the same thing (simple PSR-7 Request handlers), renamed to Controllers.
  - Upgrade to tobscure/json-api 0.2 branch.
  - Where possible, moved generic functionality to tobscure/json-api (e.g. pagination links). I'm quite happy with the backend balance now re: #262

- Improvements to other architecture
  - Use Illuminate's Auth\Access\Gate interface/implementation instead of our old Locked trait. We still use events to actually determine the permissions though. Our Policy classes are actually glorified event subscribers.
  - Extract model validation into Core\Validator classes.
  - Make post visibility permission stuff much more efficient and DRY.

- Renamed Flarum\Event classes for consistency. ref #246
  - `Configure` prefix for events dedicated to configuring an object.
  - `Get` prefix for events whose listeners should return something.
  - `Prepare` prefix when a variable is passed by reference so it can be modified.
  - `Scope` prefix when a query builder is passed.

- Miscellaneous improvements/bug-fixes. I'm easily distracted!
  - Increase default height of post composer.
  - Improve post stream redraw flickering in Safari by keying loading post placeholders with their IDs. ref #451
  - Use a PHP JavaScript minification library for minifying TextFormatter's JavaScript, instead of ClosureCompilerService (can't rely on external service!)
  - Use UrlGenerator properly in various places. closes #123
  - Make Api\Client return Response object. closes #128
  - Allow extensions to specify custom icon images.
  - Allow external API/admin URLs to be optionally specified in config.php. If the value or "url" is an array, we look for the corresponding path inside. Otherwise, we append the path to the base URL, using the corresponding value in "paths" if present. closes #244
2015-10-08 14:28:02 +10:30
..
components Use correct method for notification drawer on mobile 2015-09-29 01:28:47 +02:00
helpers Fixes core.deleted_username as well. 2015-10-02 16:37:09 +09:00
initializers Preload data just before boot, not when the store is initialised 2015-07-22 09:54:49 +09:30
models Return both unread and new notification count from the API 2015-09-29 01:28:47 +02:00
utils Patch Mithril with a route shortcut attribute 2015-09-22 17:09:38 +09:30
App.js Add "Debug" button to inspect the response of a failed AJAX request 2015-09-18 16:46:46 +09:30
Component.js Add init hook as a way to effectively monkey patch constructors 2015-09-08 10:27:02 +09:30
extend.js Copy properties when monkey-patching 2015-09-16 16:03:25 +09:30
Model.js Major refactor and improvements 2015-10-08 14:28:02 +10:30
Session.js Only set XHR authorization header if token isn't empty 2015-09-14 14:49:11 +09:30
Store.js Major refactor and improvements 2015-10-08 14:28:02 +10:30
Translator.js Correct check that a translation is an object 2015-09-04 12:19:02 +09:30