mirror of
https://github.com/flarum/core.git
synced 2025-08-29 19:09:58 +02:00
Export all missing modules in compat (#4006)
* chore(emoji): export missing modules in compat API * chore(flags): export missing modules in compat API * chore(likes): export missing modules in compat API * chore(lock): export missing modules in compat API * chore(markdown): export missing modules in compat API * chore(mentions): export missing modules in compat API * chore(nicknames): export missing modules in compat API * chore(extension-manager): export missing modules in compat API * chore(statistics): export missing modules in compat API * chore(sticky): export missing modules in compat API * chore(subscriptions): export missing modules in compat API * chore(suspend): export missing modules in compat API * chore(tags): export missing modules in compat API * chore(core): export missing modules in compat API
This commit is contained in:
5
extensions/nicknames/js/src/forum/compat.ts
Normal file
5
extensions/nicknames/js/src/forum/compat.ts
Normal file
@@ -0,0 +1,5 @@
|
||||
import NicknameModal from './components/NicknameModal';
|
||||
|
||||
export default {
|
||||
'nicknames/components/NicknameModal': NicknameModal,
|
||||
};
|
@@ -110,3 +110,9 @@ app.initializers.add('flarum/nicknames', () => {
|
||||
}
|
||||
});
|
||||
});
|
||||
|
||||
// Expose compat API
|
||||
import nicknamesCompat from './compat';
|
||||
import { compat } from '@flarum/core/forum';
|
||||
|
||||
Object.assign(compat, nicknamesCompat);
|
||||
|
Reference in New Issue
Block a user