Use namespaced imports

This commit is contained in:
Alexander Skvortsov 2020-12-07 15:48:05 -05:00
parent 54f7a41c49
commit 18cb1b1395
2 changed files with 11 additions and 11 deletions

View File

@ -1,6 +1,6 @@
import Modal from 'flarum/components/Modal';
import Button from 'flarum/components/Button';
import Stream from 'flarum/utils/Stream';
import Modal from 'flarum/common/components/Modal';
import Button from 'flarum/common/components/Button';
import Stream from 'flarum/common/utils/Stream';
export default class NicknameModal extends Modal {
oninit(vnode) {

View File

@ -1,11 +1,11 @@
import { extend } from 'flarum/extend';
import Button from 'flarum/components/Button';
import EditUserModal from 'flarum/components/EditUserModal';
import SettingsPage from 'flarum/components/SettingsPage';
import Model from 'flarum/Model';
import User from 'flarum/models/User';
import extractText from 'flarum/utils/extractText';
import Stream from 'flarum/utils/Stream';
import { extend } from 'flarum/common/extend';
import Button from 'flarum/common/components/Button';
import EditUserModal from 'flarum/forum/components/EditUserModal';
import SettingsPage from 'flarum/forum/components/SettingsPage';
import Model from 'flarum/common/Model';
import User from 'flarum/common/models/User';
import extractText from 'flarum/common/utils/extractText';
import Stream from 'flarum/common/utils/Stream';
import NickNameModal from './components/NicknameModal';
app.initializers.add('flarum/nicknames', () => {