2015-04-25 20:58:39 +08:00
|
|
|
import App from 'flarum/utils/app';
|
|
|
|
import store from 'flarum/initializers/store';
|
2015-06-01 08:56:23 +08:00
|
|
|
import stateHelpers from 'flarum/initializers/state-helpers';
|
2015-05-05 15:36:46 +08:00
|
|
|
import discussionControls from 'flarum/initializers/discussion-controls';
|
2015-05-05 15:37:12 +08:00
|
|
|
import postControls from 'flarum/initializers/post-controls';
|
2015-04-25 20:58:39 +08:00
|
|
|
import preload from 'flarum/initializers/preload';
|
|
|
|
import session from 'flarum/initializers/session';
|
|
|
|
import routes from 'flarum/initializers/routes';
|
|
|
|
import components from 'flarum/initializers/components';
|
|
|
|
import timestamps from 'flarum/initializers/timestamps';
|
|
|
|
import boot from 'flarum/initializers/boot';
|
|
|
|
|
|
|
|
var app = new App();
|
|
|
|
|
|
|
|
app.initializers.add('store', store);
|
2015-06-01 08:56:23 +08:00
|
|
|
app.initializers.add('state-helpers', stateHelpers);
|
2015-05-05 15:36:46 +08:00
|
|
|
app.initializers.add('discussion-controls', discussionControls);
|
2015-05-05 15:37:12 +08:00
|
|
|
app.initializers.add('post-controls', postControls);
|
2015-04-25 20:58:39 +08:00
|
|
|
app.initializers.add('session', session);
|
|
|
|
app.initializers.add('routes', routes);
|
|
|
|
app.initializers.add('components', components);
|
|
|
|
app.initializers.add('timestamps', timestamps);
|
2015-05-02 06:48:45 +08:00
|
|
|
app.initializers.add('preload', preload, {last: true});
|
2015-04-25 20:58:39 +08:00
|
|
|
app.initializers.add('boot', boot, {last: true});
|
|
|
|
|
|
|
|
export default app;
|