mirror of
https://github.com/flarum/core.git
synced 2025-10-24 05:06:05 +02:00
* Run extenders exported by extensions * Add some basic extenders * Patch Mithril as the very first thing so extension code can run safely * Load the payload into the app before booting extensions * Setup default routes before booting extensions
23 lines
473 B
JavaScript
23 lines
473 B
JavaScript
import 'expose-loader?punycode!punycode';
|
|
import 'expose-loader?ColorThief!color-thief-browser';
|
|
|
|
import ForumApplication from './ForumApplication';
|
|
|
|
const app = new ForumApplication();
|
|
|
|
// Backwards compatibility
|
|
window.app = app;
|
|
|
|
export { app };
|
|
|
|
// Export public API
|
|
// export { default as Extend } from './Extend';
|
|
// export { IndexPage, DicsussionList } from './components';
|
|
|
|
// Export compat API
|
|
import compat from './compat';
|
|
|
|
compat.app = app;
|
|
|
|
export { compat };
|