mirror of
https://github.com/flarum/framework.git
synced 2024-11-29 12:43:52 +08:00
Update JS imports to new namespaced style (#39)
This commit is contained in:
parent
738db107b1
commit
b054ae7dcb
|
@ -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';
|
||||||
|
|
|
@ -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 = [];
|
||||||
|
|
|
@ -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';
|
||||||
|
|
|
@ -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';
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user