mirror of
https://github.com/flarum/core.git
synced 2025-08-31 03:50:15 +02:00
[1.x] [extensibility] Export all missing modules in compat (#4044)
* 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 * chore: fix tsconfig
This commit is contained in:
7
extensions/emoji/js/src/forum/compat.ts
Normal file
7
extensions/emoji/js/src/forum/compat.ts
Normal file
@@ -0,0 +1,7 @@
|
||||
import AutocompleteDropdown from './fragments/AutocompleteDropdown';
|
||||
import getEmojiIconCode from './helpers/getEmojiIconCode';
|
||||
|
||||
export default {
|
||||
'emoji/fragments/AutocompleteDropdown': AutocompleteDropdown,
|
||||
'emoji/helpers/getEmojiIconCode': getEmojiIconCode,
|
||||
};
|
@@ -11,3 +11,9 @@ app.initializers.add('flarum-emoji', () => {
|
||||
// render emoji as image in Posts content and title.
|
||||
renderEmoji();
|
||||
});
|
||||
|
||||
// Expose compat API
|
||||
import emojiCompat from './compat';
|
||||
import { compat } from '@flarum/core/forum';
|
||||
|
||||
Object.assign(compat, emojiCompat);
|
||||
|
Reference in New Issue
Block a user