2015-07-15 12:30:11 +08:00
|
|
|
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';
|
2015-07-15 12:30:11 +08:00
|
|
|
import humanTime from 'flarum/initializers/humanTime';
|
2015-04-25 20:58:39 +08:00
|
|
|
import boot from 'flarum/initializers/boot';
|
|
|
|
|
2015-07-15 12:30:11 +08:00
|
|
|
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);
|
2015-07-15 12:30:11 +08:00
|
|
|
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;
|