framework/js/forum/src/app.js

23 lines
898 B
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 discussionControls from 'flarum/initializers/discussion-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('discussion-controls', discussionControls);
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;