Update JS imports to new namespaced style (#39)

This commit is contained in:
David Wheatley 2021-08-25 21:06:28 +01:00 committed by GitHub
parent 738db107b1
commit b054ae7dcb
4 changed files with 8 additions and 10 deletions

View File

@ -1,9 +1,9 @@
import emojiMap from 'simple-emoji-map'; import emojiMap from 'simple-emoji-map';
import { extend } from 'flarum/extend'; import { extend } from 'flarum/common/extend';
import TextEditor from 'flarum/components/TextEditor'; import TextEditor from 'flarum/common/components/TextEditor';
import TextEditorButton from 'flarum/components/TextEditorButton'; import TextEditorButton from 'flarum/common/components/TextEditorButton';
import KeyboardNavigatable from 'flarum/utils/KeyboardNavigatable'; import KeyboardNavigatable from 'flarum/forum/utils/KeyboardNavigatable';
import AutocompleteDropdown from './fragments/AutocompleteDropdown'; import AutocompleteDropdown from './fragments/AutocompleteDropdown';
import getEmojiIconCode from './helpers/getEmojiIconCode'; import getEmojiIconCode from './helpers/getEmojiIconCode';

View File

@ -1,4 +1,4 @@
import Fragment from 'flarum/Fragment'; import Fragment from 'flarum/common/Fragment';
export default class AutocompleteDropdown extends Fragment { export default class AutocompleteDropdown extends Fragment {
items = []; items = [];

View File

@ -1,4 +1,4 @@
import app from 'flarum/app'; import app from 'flarum/forum/app';
import addComposerAutocomplete from './addComposerAutocomplete'; import addComposerAutocomplete from './addComposerAutocomplete';
import renderEmoji from './renderEmoji'; import renderEmoji from './renderEmoji';

View File

@ -1,9 +1,7 @@
/*global s9e*/
import twemoji from 'twemoji'; import twemoji from 'twemoji';
import { override } from 'flarum/extend'; import { override } from 'flarum/common/extend';
import Post from 'flarum/models/Post'; import Post from 'flarum/common/models/Post';
import base from './cdn'; import base from './cdn';