framework/js/forum/src/app.js

27 lines
1.1 KiB
JavaScript
Raw Normal View History

2015-04-25 20:58:39 +08:00
import App from 'flarum/utils/app';
import store from 'flarum/initializers/store';
import stateHelpers from 'flarum/initializers/state-helpers';
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);
app.initializers.add('state-helpers', stateHelpers);
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);
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;