framework/js/forum/src/app.js

20 lines
658 B
JavaScript
Raw Normal View History

import ForumApp from 'flarum/ForumApp';
2015-04-25 20:58:39 +08:00
import store from 'flarum/initializers/store';
import preload from 'flarum/initializers/preload';
import routes from 'flarum/initializers/routes';
import components from 'flarum/initializers/components';
import humanTime from 'flarum/initializers/humanTime';
2015-04-25 20:58:39 +08:00
import boot from 'flarum/initializers/boot';
const app = new ForumApp();
2015-04-25 20:58:39 +08:00
app.initializers.add('store', store);
app.initializers.add('routes', routes);
app.initializers.add('components', components);
app.initializers.add('humanTime', humanTime);
app.initializers.add('preload', preload, -100);
app.initializers.add('boot', boot, -100);
2015-04-25 20:58:39 +08:00
export default app;