mirror of
https://github.com/flarum/framework.git
synced 2024-12-18 19:15:56 +08:00
ab6c03c0cc
- Use JSX for templates - Docblock/comment everything - Mostly passes ESLint (still some work to do) - Lots of renaming, refactoring, etc. CSS hasn't been updated yet.
20 lines
658 B
JavaScript
20 lines
658 B
JavaScript
import ForumApp from 'flarum/ForumApp';
|
|
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';
|
|
import boot from 'flarum/initializers/boot';
|
|
|
|
const app = new ForumApp();
|
|
|
|
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);
|
|
|
|
export default app;
|