mirror of
https://github.com/flarum/framework.git
synced 2025-02-21 08:22:41 +08:00
Move forum & admin app declarations to separate files
This commit is contained in:
parent
1c4817a0b3
commit
2de57af7c8
8
js/src/admin/app.ts
Normal file
8
js/src/admin/app.ts
Normal file
@ -0,0 +1,8 @@
|
||||
import Admin from './AdminApplication';
|
||||
|
||||
const app = new Admin();
|
||||
|
||||
// @ts-ignore
|
||||
window.app = app;
|
||||
|
||||
export default app;
|
@ -1,9 +1,4 @@
|
||||
import AdminApplication from './AdminApplication';
|
||||
|
||||
const app = new AdminApplication();
|
||||
|
||||
// Backwards compatibility
|
||||
window.app = app;
|
||||
import app from './app';
|
||||
|
||||
export { app };
|
||||
|
||||
|
8
js/src/forum/app.ts
Normal file
8
js/src/forum/app.ts
Normal file
@ -0,0 +1,8 @@
|
||||
import Forum from './ForumApplication';
|
||||
|
||||
const app = new Forum();
|
||||
|
||||
// @ts-ignore
|
||||
window.app = app;
|
||||
|
||||
export default app;
|
@ -1,12 +1,7 @@
|
||||
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;
|
||||
import app from './app';
|
||||
|
||||
export { app };
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user