forked from mystiq/hydrogen-web
move EventEmitter to utils
This commit is contained in:
parent
c379caf4c0
commit
31f3886eba
9 changed files with 8 additions and 8 deletions
|
@ -3,7 +3,7 @@ import {Sync} from "../matrix/Sync.js";
|
|||
import {SessionViewModel} from "./session/SessionViewModel.js";
|
||||
import {LoginViewModel} from "./LoginViewModel.js";
|
||||
import {SessionPickerViewModel} from "./SessionPickerViewModel.js";
|
||||
import {EventEmitter} from "../EventEmitter.js";
|
||||
import {EventEmitter} from "../utils/EventEmitter.js";
|
||||
|
||||
export function createNewSessionId() {
|
||||
return (Math.floor(Math.random() * Number.MAX_SAFE_INTEGER)).toString();
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
import {EventEmitter} from "../EventEmitter.js";
|
||||
import {EventEmitter} from "../utils/EventEmitter.js";
|
||||
|
||||
export class LoginViewModel extends EventEmitter {
|
||||
constructor({loginCallback, defaultHomeServer, createHsApi}) {
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
import {SortedArray} from "../observable/index.js";
|
||||
import {EventEmitter} from "../EventEmitter.js";
|
||||
import {EventEmitter} from "../utils/EventEmitter.js";
|
||||
import {createNewSessionId} from "./BrawlViewModel.js"
|
||||
|
||||
class SessionItemViewModel extends EventEmitter {
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
import {EventEmitter} from "../../EventEmitter.js";
|
||||
import {EventEmitter} from "../../utils/EventEmitter.js";
|
||||
import {RoomTileViewModel} from "./roomlist/RoomTileViewModel.js";
|
||||
import {RoomViewModel} from "./room/RoomViewModel.js";
|
||||
import {SyncStatusViewModel} from "./SyncStatusViewModel.js";
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
import {EventEmitter} from "../../EventEmitter.js";
|
||||
import {EventEmitter} from "../../utils/EventEmitter.js";
|
||||
import {RoomTileViewModel} from "./roomlist/RoomTileViewModel.js";
|
||||
import {RoomViewModel} from "./room/RoomViewModel.js";
|
||||
import {SyncStatusViewModel} from "./SyncStatusViewModel.js";
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
import {EventEmitter} from "../../EventEmitter.js";
|
||||
import {EventEmitter} from "../../utils/EventEmitter.js";
|
||||
|
||||
export class SyncStatusViewModel extends EventEmitter {
|
||||
constructor(sync) {
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
import {EventEmitter} from "../../../EventEmitter.js";
|
||||
import {EventEmitter} from "../../../utils/EventEmitter.js";
|
||||
import {TimelineViewModel} from "./timeline/TimelineViewModel.js";
|
||||
import {avatarInitials} from "../avatar.js";
|
||||
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
import {EventEmitter} from "../../EventEmitter.js";
|
||||
import {EventEmitter} from "../../utils/EventEmitter.js";
|
||||
import {RoomSummary} from "./summary.js";
|
||||
import {SyncWriter} from "./timeline/persistence/SyncWriter.js";
|
||||
import {GapWriter} from "./timeline/persistence/GapWriter.js";
|
||||
|
|
Loading…
Reference in a new issue