fix imports after reshuffleling

This commit is contained in:
Bruno Windels 2020-04-20 19:47:45 +02:00
parent 72b0eefccb
commit 87b23d062c
8 changed files with 11 additions and 11 deletions

View file

@ -1,5 +1,5 @@
import Session from "../matrix/Session.js"; import Session from "../matrix/Session.js";
import Sync from "../matrix/Sync.js"; 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";

View file

@ -1,7 +1,7 @@
import HomeServerApi from "./matrix/net/HomeServerApi.js"; import HomeServerApi from "./matrix/net/HomeServerApi.js";
// import {RecordRequester, ReplayRequester} from "./matrix/net/replay.js"; // import {RecordRequester, ReplayRequester} from "./matrix/net/request/replay.js";
import fetchRequest from "./matrix/net/fetch.js"; import fetchRequest from "./matrix/net/request/fetch.js";
import {Reconnector} from "./matrix/net/connection/Reconnector.js"; import {Reconnector} from "./matrix/net/Reconnector.js";
import StorageFactory from "./matrix/storage/idb/create.js"; import StorageFactory from "./matrix/storage/idb/create.js";
import SessionInfoStorage from "./matrix/sessioninfo/localstorage/SessionInfoStorage.js"; import SessionInfoStorage from "./matrix/sessioninfo/localstorage/SessionInfoStorage.js";
import BrawlViewModel from "./domain/BrawlViewModel.js"; import BrawlViewModel from "./domain/BrawlViewModel.js";

View file

@ -1,6 +1,6 @@
import {AbortError} from "./error.js"; import {AbortError} from "./error.js";
import ObservableValue from "../observable/ObservableValue.js"; import ObservableValue from "../observable/ObservableValue.js";
import {createEnum} from "../utils/enum.js"; import createEnum from "../utils/enum.js";
const INCREMENTAL_TIMEOUT = 30000; const INCREMENTAL_TIMEOUT = 30000;
const SYNC_EVENT_LIMIT = 10; const SYNC_EVENT_LIMIT = 10;
@ -27,7 +27,7 @@ function parseRooms(roomsSection, roomCallback) {
return []; return [];
} }
export default class Sync { export class Sync {
constructor({hsApi, session, storage}) { constructor({hsApi, session, storage}) {
this._hsApi = hsApi; this._hsApi = hsApi;
this._session = session; this._session = session;

View file

@ -43,7 +43,7 @@ export default class ExponentialRetryDelay {
} }
import MockClock from "../../../mocks/Clock.js"; import MockClock from "../../mocks/Clock.js";
export function tests() { export function tests() {
return { return {

View file

@ -1,7 +1,7 @@
import { import {
HomeServerError, HomeServerError,
ConnectionError, ConnectionError,
} from "./error.js"; } from "../error.js";
class RequestWrapper { class RequestWrapper {
constructor(method, url, requestResult) { constructor(method, url, requestResult) {

View file

@ -111,7 +111,7 @@ export class Reconnector {
} }
import MockClock from "../../../mocks/Clock.js"; import MockClock from "../../mocks/Clock.js";
import ExponentialRetryDelay from "./ExponentialRetryDelay.js"; import ExponentialRetryDelay from "./ExponentialRetryDelay.js";
export function tests() { export function tests() {

View file

@ -1,7 +1,7 @@
import { import {
AbortError, AbortError,
ConnectionError ConnectionError
} from "../error.js"; } from "../../error.js";
class RequestResult { class RequestResult {
constructor(promise, controller) { constructor(promise, controller) {

View file

@ -1,7 +1,7 @@
import { import {
AbortError, AbortError,
ConnectionError ConnectionError
} from "../error.js"; } from "../../error.js";
class RequestLogItem { class RequestLogItem {
constructor(url, options) { constructor(url, options) {