Skip to content

Commit

Permalink
fix: move UserSearchResult to common
Browse files Browse the repository at this point in the history
  • Loading branch information
SychO9 committed Sep 28, 2024
1 parent 124b796 commit 35f76bc
Show file tree
Hide file tree
Showing 9 changed files with 9 additions and 18 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import Button from './Button';
import LoadingIndicator from './LoadingIndicator';
import { throttle } from '../utils/throttleDebounce';
import InfoTile from './InfoTile';
import UserSearchResult from '../../forum/components/UserSearchResult';
import UserSearchResult from '../../common/components/UserSearchResult';
import Pill from './Pill';

export interface IUserSelectionModalAttrs extends IFormModalAttrs {
Expand Down
2 changes: 1 addition & 1 deletion framework/core/js/src/common/extenders/Model.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import IExtender, { IExtensionModule } from './IExtender';
import Application from '../Application';
import type Application from '../Application';
import ActualModel from '../Model';

export default class Model implements IExtender {
Expand Down
3 changes: 2 additions & 1 deletion framework/core/js/src/common/extenders/Routes.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import Application, { AsyncNewComponent, FlarumGenericRoute, NewComponent } from '../Application';
import type Application from '../Application';
import type { AsyncNewComponent, FlarumGenericRoute, NewComponent } from '../Application';
import IExtender, { IExtensionModule } from './IExtender';

type HelperRoute = (...args: any) => string;
Expand Down
2 changes: 1 addition & 1 deletion framework/core/js/src/common/extenders/Store.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import Application from '../Application';
import type Application from '../Application';
import IExtender, { IExtensionModule } from './IExtender';
import Model from '../Model';

Expand Down
2 changes: 1 addition & 1 deletion framework/core/js/src/common/extenders/ThemeMode.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import Application from '../Application';
import type Application from '../Application';
import IExtender, { IExtensionModule } from './IExtender';
import ThemeModeComponent, { type ColorSchemeData } from '../components/ThemeMode';

Expand Down
2 changes: 2 additions & 0 deletions framework/core/js/src/forum/app.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
import Forum from './ForumApplication';

console.error('No');

const app = new Forum();

// @ts-expect-error We need to do this for backwards compatibility purposes.
Expand Down
7 changes: 0 additions & 7 deletions framework/core/js/src/forum/components/PostsUserPage.tsx
Original file line number Diff line number Diff line change
@@ -1,11 +1,4 @@
import app from '../../forum/app';
import UserPage, { IUserPageAttrs } from './UserPage';
import LoadingIndicator from '../../common/components/LoadingIndicator';
import Button from '../../common/components/Button';
import Link from '../../common/components/Link';
import Placeholder from '../../common/components/Placeholder';
import CommentPost from './CommentPost';
import type Post from '../../common/models/Post';
import type Mithril from 'mithril';
import type User from '../../common/models/User';
import PostListState from '../states/PostListState';
Expand Down
7 changes: 1 addition & 6 deletions framework/core/js/src/forum/components/UsersSearchSource.tsx
Original file line number Diff line number Diff line change
@@ -1,15 +1,10 @@
import type Mithril from 'mithril';

import app from '../app';
import highlight from '../../common/helpers/highlight';
import username from '../../common/helpers/username';
import Link from '../../common/components/Link';
import type User from '../../common/models/User';
import Avatar from '../../common/components/Avatar';
import type { SearchSource } from './Search';
import extractText from '../../common/utils/extractText';
import listItems from '../../common/helpers/listItems';
import UserSearchResult from './UserSearchResult';
import UserSearchResult from '../../common/components/UserSearchResult';

/**
* The `UsersSearchSource` finds and displays user search results in the search
Expand Down

0 comments on commit 35f76bc

Please sign in to comment.