move EventEmitter to utils

This commit is contained in:
Bruno Windels 2020-04-20 21:35:53 +02:00
parent c379caf4c0
commit 31f3886eba
9 changed files with 8 additions and 8 deletions

View file

@ -3,7 +3,7 @@ import {Sync} from "../matrix/Sync.js";
import {SessionViewModel} from "./session/SessionViewModel.js"; import {SessionViewModel} from "./session/SessionViewModel.js";
import {LoginViewModel} from "./LoginViewModel.js"; import {LoginViewModel} from "./LoginViewModel.js";
import {SessionPickerViewModel} from "./SessionPickerViewModel.js"; import {SessionPickerViewModel} from "./SessionPickerViewModel.js";
import {EventEmitter} from "../EventEmitter.js"; import {EventEmitter} from "../utils/EventEmitter.js";
export function createNewSessionId() { export function createNewSessionId() {
return (Math.floor(Math.random() * Number.MAX_SAFE_INTEGER)).toString(); return (Math.floor(Math.random() * Number.MAX_SAFE_INTEGER)).toString();

View file

@ -1,4 +1,4 @@
import {EventEmitter} from "../EventEmitter.js"; import {EventEmitter} from "../utils/EventEmitter.js";
export class LoginViewModel extends EventEmitter { export class LoginViewModel extends EventEmitter {
constructor({loginCallback, defaultHomeServer, createHsApi}) { constructor({loginCallback, defaultHomeServer, createHsApi}) {

View file

@ -1,5 +1,5 @@
import {SortedArray} from "../observable/index.js"; import {SortedArray} from "../observable/index.js";
import {EventEmitter} from "../EventEmitter.js"; import {EventEmitter} from "../utils/EventEmitter.js";
import {createNewSessionId} from "./BrawlViewModel.js" import {createNewSessionId} from "./BrawlViewModel.js"
class SessionItemViewModel extends EventEmitter { class SessionItemViewModel extends EventEmitter {

View file

@ -1,4 +1,4 @@
import {EventEmitter} from "../../EventEmitter.js"; import {EventEmitter} from "../../utils/EventEmitter.js";
import {RoomTileViewModel} from "./roomlist/RoomTileViewModel.js"; import {RoomTileViewModel} from "./roomlist/RoomTileViewModel.js";
import {RoomViewModel} from "./room/RoomViewModel.js"; import {RoomViewModel} from "./room/RoomViewModel.js";
import {SyncStatusViewModel} from "./SyncStatusViewModel.js"; import {SyncStatusViewModel} from "./SyncStatusViewModel.js";

View file

@ -1,4 +1,4 @@
import {EventEmitter} from "../../EventEmitter.js"; import {EventEmitter} from "../../utils/EventEmitter.js";
import {RoomTileViewModel} from "./roomlist/RoomTileViewModel.js"; import {RoomTileViewModel} from "./roomlist/RoomTileViewModel.js";
import {RoomViewModel} from "./room/RoomViewModel.js"; import {RoomViewModel} from "./room/RoomViewModel.js";
import {SyncStatusViewModel} from "./SyncStatusViewModel.js"; import {SyncStatusViewModel} from "./SyncStatusViewModel.js";

View file

@ -1,4 +1,4 @@
import {EventEmitter} from "../../EventEmitter.js"; import {EventEmitter} from "../../utils/EventEmitter.js";
export class SyncStatusViewModel extends EventEmitter { export class SyncStatusViewModel extends EventEmitter {
constructor(sync) { constructor(sync) {

View file

@ -1,4 +1,4 @@
import {EventEmitter} from "../../../EventEmitter.js"; import {EventEmitter} from "../../../utils/EventEmitter.js";
import {TimelineViewModel} from "./timeline/TimelineViewModel.js"; import {TimelineViewModel} from "./timeline/TimelineViewModel.js";
import {avatarInitials} from "../avatar.js"; import {avatarInitials} from "../avatar.js";

View file

@ -1,4 +1,4 @@
import {EventEmitter} from "../../EventEmitter.js"; import {EventEmitter} from "../../utils/EventEmitter.js";
import {RoomSummary} from "./summary.js"; import {RoomSummary} from "./summary.js";
import {SyncWriter} from "./timeline/persistence/SyncWriter.js"; import {SyncWriter} from "./timeline/persistence/SyncWriter.js";
import {GapWriter} from "./timeline/persistence/GapWriter.js"; import {GapWriter} from "./timeline/persistence/GapWriter.js";