chore(regression): use correct imports from core js

Signed-off-by: Sami Mazouz <sychocouldy@gmail.com>
This commit is contained in:
Sami Mazouz 2023-05-14 21:34:17 +01:00
parent ba7599e6fe
commit 5b89d3e91a
No known key found for this signature in database
5 changed files with 6 additions and 6 deletions

View File

@ -5,9 +5,9 @@ import Link from 'flarum/common/components/Link';
import punctuateSeries from 'flarum/common/helpers/punctuateSeries'; import punctuateSeries from 'flarum/common/helpers/punctuateSeries';
import username from 'flarum/common/helpers/username'; import username from 'flarum/common/helpers/username';
import icon from 'flarum/common/helpers/icon'; import icon from 'flarum/common/helpers/icon';
import Button from 'flarum/common/components/Button';
import PostLikesModal from './components/PostLikesModal'; import PostLikesModal from './components/PostLikesModal';
import Button from '@flarum/core/src/common/components/Button';
export default function () { export default function () {
extend(CommentPost.prototype, 'footerItems', function (items) { extend(CommentPost.prototype, 'footerItems', function (items) {

View File

@ -7,8 +7,8 @@ import type { IInternalModalAttrs } from 'flarum/common/components/Modal';
import type Post from 'flarum/common/models/Post'; import type Post from 'flarum/common/models/Post';
import type Mithril from 'mithril'; import type Mithril from 'mithril';
import PostLikesModalState from '../states/PostLikesModalState'; import PostLikesModalState from '../states/PostLikesModalState';
import Button from '@flarum/core/src/common/components/Button'; import Button from 'flarum/common/components/Button';
import LoadingIndicator from '@flarum/core/src/common/components/LoadingIndicator'; import LoadingIndicator from 'flarum/common/components/LoadingIndicator';
export interface IPostLikesModalAttrs extends IInternalModalAttrs { export interface IPostLikesModalAttrs extends IInternalModalAttrs {
post: Post; post: Post;

View File

@ -1,4 +1,4 @@
import PaginatedListState, { PaginatedListParams } from '@flarum/core/src/common/states/PaginatedListState'; import PaginatedListState, { PaginatedListParams } from 'flarum/common/states/PaginatedListState';
import User from 'flarum/common/models/User'; import User from 'flarum/common/models/User';
export interface PostLikesModalListParams extends PaginatedListParams { export interface PostLikesModalListParams extends PaginatedListParams {

View File

@ -7,7 +7,7 @@ import MajorUpdater from './MajorUpdater';
import ExtensionItem from './ExtensionItem'; import ExtensionItem from './ExtensionItem';
import { Extension } from 'flarum/admin/AdminApplication'; import { Extension } from 'flarum/admin/AdminApplication';
import Alert from 'flarum/common/components/Alert'; import Alert from 'flarum/common/components/Alert';
import ItemList from '@flarum/core/src/common/utils/ItemList'; import ItemList from 'flarum/common/utils/ItemList';
export interface IUpdaterAttrs extends ComponentAttrs {} export interface IUpdaterAttrs extends ComponentAttrs {}

View File

@ -1,7 +1,7 @@
import extract from 'flarum/common/utils/extract'; import extract from 'flarum/common/utils/extract';
import tagLabel from './tagLabel'; import tagLabel from './tagLabel';
import sortTags from '../utils/sortTags'; import sortTags from '../utils/sortTags';
import classList from '@flarum/core/src/common/utils/classList'; import classList from 'flarum/common/utils/classList';
export default function tagsLabel(tags, attrs = {}) { export default function tagsLabel(tags, attrs = {}) {
const children = []; const children = [];