mirror of
https://github.com/vector-im/hydrogen-web.git
synced 2024-12-23 11:35:04 +01:00
move EventEmitter to utils
This commit is contained in:
parent
c379caf4c0
commit
31f3886eba
@ -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();
|
||||||
|
@ -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}) {
|
||||||
|
@ -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 {
|
||||||
|
@ -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";
|
||||||
|
@ -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";
|
||||||
|
@ -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) {
|
||||||
|
@ -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";
|
||||||
|
|
||||||
|
@ -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";
|
||||||
|
Loading…
Reference in New Issue
Block a user