1
0
mirror of https://github.com/flarum/core.git synced 2025-10-18 10:16:09 +02:00

[WIP] JS Extender API foundation (#1468)

* Run extenders exported by extensions
* Add some basic extenders
* Patch Mithril as the very first thing so extension code can run safely
* Load the payload into the app before booting extensions
* Setup default routes before booting extensions
This commit is contained in:
Toby Zerner
2018-06-22 10:49:46 +09:30
committed by GitHub
parent e3c2ddad2e
commit 805768a9e0
14 changed files with 125 additions and 42 deletions

View File

@@ -63,13 +63,10 @@ export default class ForumApplication extends Application {
*/
history = new History();
/**
* @inheritdoc
*/
boot(data) {
routes(this);
constructor() {
super();
super.boot(data);
routes(this);
}
/**

View File

@@ -1,15 +1,5 @@
import 'expose-loader?$!expose-loader?jQuery!jquery';
import 'expose-loader?m!mithril';
import 'expose-loader?moment!moment';
import 'expose-loader?punycode!punycode';
import 'expose-loader?ColorThief!color-thief-browser';
import 'expose-loader?m.bidi!m.attrs.bidi';
import 'bootstrap/js/affix';
import 'bootstrap/js/dropdown';
import 'bootstrap/js/modal';
import 'bootstrap/js/tooltip';
import 'bootstrap/js/transition';
import 'jquery.hotkeys/jquery.hotkeys';
import ForumApplication from './ForumApplication';