Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: remove unused JS imports #4096

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import type MentionableModel from '../MentionableModel';
import type Model from 'flarum/common/Model';

export default abstract class MentionFormat {
protected instances?: MentionableModel[];
Expand Down
1 change: 0 additions & 1 deletion extensions/messages/js/src/forum/components/Message.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import app from 'flarum/forum/app';
import ItemList from 'flarum/common/utils/ItemList';
import Mithril from 'mithril';
import AbstractPost, { type IAbstractPostAttrs } from 'flarum/forum/components/AbstractPost';
Expand Down
1 change: 0 additions & 1 deletion extensions/package-manager/js/src/admin/extend.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
import Extend from 'flarum/common/extenders';
import app from 'flarum/admin/app';
import extractText from 'flarum/common/utils/extractText';
import SettingsPage from './components/SettingsPage';
import Task from './models/Task';
import ExternalExtension from './models/ExternalExtension';
Expand Down
1 change: 0 additions & 1 deletion framework/core/js/src/admin/AdminApplication.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@ import AdminRegistry from './utils/AdminRegistry';
import IHistory from '../common/IHistory';
import SearchManager from '../common/SearchManager';
import SearchState from '../common/states/SearchState';
import app from './app';
import BasicsPage from './components/BasicsPage';
import GeneralSearchIndex from './states/GeneralSearchIndex';
import AppearancePage from './components/AppearancePage';
Expand Down
1 change: 0 additions & 1 deletion framework/core/js/src/admin/components/BasicsPage.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import app from '../../admin/app';
import FieldSet from '../../common/components/FieldSet';
import ItemList from '../../common/utils/ItemList';
import AdminPage from './AdminPage';
import type { IPageAttrs } from '../../common/components/Page';
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
import app from '../../admin/app';
import Component, { ComponentAttrs } from '../../common/Component';
import PermissionDropdown from './PermissionDropdown';
import SettingDropdown from './SettingDropdown';
import Button from '../../common/components/Button';
import ItemList from '../../common/utils/ItemList';
import type Mithril from 'mithril';
Expand Down
1 change: 0 additions & 1 deletion framework/core/js/src/common/Store.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
import app from '../common/app';
import { FlarumRequestOptions } from './Application';
import Model, { ModelData, SavedModelData } from './Model';
import GambitManager from './GambitManager';

export interface MetaInformation {
page?: {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
import app from '../app';
import Component, { ComponentAttrs } from '../Component';
import SearchState from '../states/SearchState';
import extractText from '../utils/extractText';
import ItemList from '../utils/ItemList';
import Input from './Input';
import type Mithril from 'mithril';
Expand Down
1 change: 0 additions & 1 deletion framework/core/js/src/common/components/Modal.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ import Button from './Button';
import type Mithril from 'mithril';
import type ModalManagerState from '../states/ModalManagerState';
import type ModalManager from './ModalManager';
import fireDebugWarning from '../helpers/fireDebugWarning';
import classList from '../utils/classList';

export interface IInternalModalAttrs {
Expand Down
2 changes: 1 addition & 1 deletion framework/core/js/src/common/helpers/listItems.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import type Mithril from 'mithril';
import Component, { ComponentAttrs } from '../Component';
import { ComponentAttrs } from '../Component';
import Separator from '../components/Separator';
import classList from '../utils/classList';

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ import app from '../../common/app';
import Model from '../Model';
import { ApiQueryParamsPlural, ApiResponsePlural } from '../Store';
import type Mithril from 'mithril';
import setRouteWithForcedRefresh from '../utils/setRouteWithForcedRefresh';

export type SortMapItem =
| string
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ import Page, { IPageAttrs } from '../../common/components/Page';
import ItemList from '../../common/utils/ItemList';
import DiscussionHero from './DiscussionHero';
import DiscussionListPane from './DiscussionListPane';
import LoadingIndicator from '../../common/components/LoadingIndicator';
import SplitDropdown from '../../common/components/SplitDropdown';
import listItems from '../../common/helpers/listItems';
import DiscussionControls from '../utils/DiscussionControls';
Expand Down
1 change: 0 additions & 1 deletion framework/core/js/src/forum/components/Post.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import app from '../../forum/app';
import PostControls from '../utils/PostControls';
import ItemList from '../../common/utils/ItemList';
import type PostModel from '../../common/models/Post';
Expand Down
Loading