Clean up imports and other minor lints
This commit is contained in:
parent
df3d5c4159
commit
9f0810240f
6 changed files with 7 additions and 10 deletions
|
@ -27,7 +27,7 @@ import { DefaultTagID, TagID } from "../../../stores/room-list/models";
|
||||||
import { Dispatcher } from "flux";
|
import { Dispatcher } from "flux";
|
||||||
import { ActionPayload } from "../../../dispatcher-types";
|
import { ActionPayload } from "../../../dispatcher-types";
|
||||||
import dis from "../../../dispatcher";
|
import dis from "../../../dispatcher";
|
||||||
import RoomSublist2 from "./RoomSublist2";
|
import RoomSublist2 from "./RoomSublist2";
|
||||||
|
|
||||||
interface IProps {
|
interface IProps {
|
||||||
onKeyDown: (ev: React.KeyboardEvent) => void;
|
onKeyDown: (ev: React.KeyboardEvent) => void;
|
||||||
|
|
|
@ -21,11 +21,10 @@ import SettingsStore from "../../settings/SettingsStore";
|
||||||
import { DefaultTagID, OrderedDefaultTagIDs, RoomUpdateCause, TagID } from "./models";
|
import { DefaultTagID, OrderedDefaultTagIDs, RoomUpdateCause, TagID } from "./models";
|
||||||
import { Algorithm } from "./algorithms/list_ordering/Algorithm";
|
import { Algorithm } from "./algorithms/list_ordering/Algorithm";
|
||||||
import TagOrderStore from "../TagOrderStore";
|
import TagOrderStore from "../TagOrderStore";
|
||||||
import { getListAlgorithmInstance } from "./algorithms/list_ordering";
|
|
||||||
import { AsyncStore } from "../AsyncStore";
|
import { AsyncStore } from "../AsyncStore";
|
||||||
import { ITagMap, ITagSortingMap, ListAlgorithm, SortAlgorithm } from "./algorithms/models";
|
|
||||||
import { Room } from "matrix-js-sdk/src/models/room";
|
import { Room } from "matrix-js-sdk/src/models/room";
|
||||||
import { MatrixEvent } from "matrix-js-sdk/src/models/event";
|
import { ITagMap, ITagSortingMap, ListAlgorithm, SortAlgorithm } from "./algorithms/models";
|
||||||
|
import { getListAlgorithmInstance } from "./algorithms/list_ordering";
|
||||||
|
|
||||||
interface IState {
|
interface IState {
|
||||||
tagsEnabled?: boolean;
|
tagsEnabled?: boolean;
|
||||||
|
|
|
@ -14,13 +14,11 @@ See the License for the specific language governing permissions and
|
||||||
limitations under the License.
|
limitations under the License.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
import { TagID } from "./models";
|
|
||||||
import { Room } from "matrix-js-sdk/src/models/room";
|
|
||||||
import SettingsStore from "../../settings/SettingsStore";
|
import SettingsStore from "../../settings/SettingsStore";
|
||||||
import RoomListStore from "./RoomListStore2";
|
import RoomListStore from "./RoomListStore2";
|
||||||
import OldRoomListStore from "../RoomListStore";
|
import OldRoomListStore from "../RoomListStore";
|
||||||
import { ITagMap } from "./algorithms/models";
|
|
||||||
import { UPDATE_EVENT } from "../AsyncStore";
|
import { UPDATE_EVENT } from "../AsyncStore";
|
||||||
|
import { ITagMap } from "./algorithms/models";
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Temporary RoomListStore proxy. Should be replaced with RoomListStore2 when
|
* Temporary RoomListStore proxy. Should be replaced with RoomListStore2 when
|
||||||
|
|
|
@ -19,7 +19,7 @@ import { SortAlgorithm } from "../models";
|
||||||
import { ManualAlgorithm } from "./ManualAlgorithm";
|
import { ManualAlgorithm } from "./ManualAlgorithm";
|
||||||
import { IAlgorithm } from "./IAlgorithm";
|
import { IAlgorithm } from "./IAlgorithm";
|
||||||
import { TagID } from "../../models";
|
import { TagID } from "../../models";
|
||||||
import {Room} from "matrix-js-sdk/src/models/room";
|
import { Room } from "matrix-js-sdk/src/models/room";
|
||||||
|
|
||||||
const ALGORITHM_INSTANCES: { [algorithm in SortAlgorithm]: IAlgorithm } = {
|
const ALGORITHM_INSTANCES: { [algorithm in SortAlgorithm]: IAlgorithm } = {
|
||||||
[SortAlgorithm.Recent]: new ChaoticAlgorithm(),
|
[SortAlgorithm.Recent]: new ChaoticAlgorithm(),
|
||||||
|
|
|
@ -14,8 +14,7 @@ See the License for the specific language governing permissions and
|
||||||
limitations under the License.
|
limitations under the License.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
import {Room} from "matrix-js-sdk/src/models/room";
|
import { Room } from "matrix-js-sdk/src/models/room";
|
||||||
import {Event} from "matrix-js-sdk/src/models/event";
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Approximation of a membership status for a given room.
|
* Approximation of a membership status for a given room.
|
||||||
|
|
|
@ -23,6 +23,7 @@ export enum DefaultTagID {
|
||||||
DM = "im.vector.fake.direct",
|
DM = "im.vector.fake.direct",
|
||||||
ServerNotice = "m.server_notice",
|
ServerNotice = "m.server_notice",
|
||||||
}
|
}
|
||||||
|
|
||||||
export const OrderedDefaultTagIDs = [
|
export const OrderedDefaultTagIDs = [
|
||||||
DefaultTagID.Invite,
|
DefaultTagID.Invite,
|
||||||
DefaultTagID.Favourite,
|
DefaultTagID.Favourite,
|
||||||
|
|
Loading…
Reference in a new issue