1
0
Fork 0

Move Page to Types.

This commit is contained in:
Kitteh 2021-05-16 09:47:53 +01:00
parent 364679d4e4
commit 5c6e21f349
28 changed files with 28 additions and 28 deletions

View file

@ -1,4 +1,4 @@
import { Page } from "./PageSystem/Page";
import { Page } from "./types/Page";
import { allPages } from "./allPages";
import { getKeyByObjectPropertyValue } from "./utils";

View file

@ -13,7 +13,7 @@ import { NewTOTPEnginePage } from "./pages/NewEngines/NewTOTPEngine";
import { NewTOTPPage } from "./pages/TOTP/NewTOTP";
import { NewTransitEnginePage } from "./pages/NewEngines/NewTransitEngine";
import { NewTransitKeyPage } from "./pages/Transit/NewTransitKey";
import { Page } from "./PageSystem/Page";
import { Page } from "./types/Page";
import { PwGenPage } from "./pages/PwGen";
import { SetLanguagePage } from "./pages/SetLanguage";
import { SetVaultURLPage } from "./pages/SetVaultURL";

View file

@ -1,5 +1,5 @@
import { MountType, getMounts } from "../api/sys/getMounts";
import { Page } from "../PageSystem/Page";
import { Page } from "../types/Page";
import { getCapabilitiesPath } from "../api/sys/getCapabilities";
import { lookupSelf } from "../api/sys/lookupSelf";
import { makeElement } from "../htmlUtils";

View file

@ -1,4 +1,4 @@
import { Page } from "../../PageSystem/Page";
import { Page } from "../../types/Page";
import { SecretTitleElement } from "../../elements/SecretTitleElement";
import { deleteSecret } from "../../api/kv/deleteSecret";
import { makeElement } from "../../htmlUtils";

View file

@ -1,4 +1,4 @@
import { Page } from "../../PageSystem/Page";
import { Page } from "../../types/Page";
import { SecretTitleElement } from "../../elements/SecretTitleElement";
import { createOrUpdateSecret } from "../../api/kv/createOrUpdateSecret";
import { makeElement } from "../../htmlUtils";

View file

@ -1,5 +1,5 @@
import { CopyableInputBox } from "../../elements/CopyableInputBox";
import { Page } from "../../PageSystem/Page";
import { Page } from "../../types/Page";
import { SecretTitleElement } from "../../elements/SecretTitleElement";
import { getCapabilities } from "../../api/sys/getCapabilities";
import { getSecret } from "../../api/kv/getSecret";

View file

@ -1,5 +1,5 @@
import { CodeJar } from "codejar";
import { Page } from "../../PageSystem/Page";
import { Page } from "../../types/Page";
import { SecretTitleElement } from "../../elements/SecretTitleElement";
import { createOrUpdateSecret } from "../../api/kv/createOrUpdateSecret";
import { getSecret } from "../../api/kv/getSecret";

View file

@ -1,4 +1,4 @@
import { Page } from "../../PageSystem/Page";
import { Page } from "../../types/Page";
import { SecretTitleElement } from "../../elements/SecretTitleElement";
import { getSecretMetadata } from "../../api/kv/getSecretMetadata";
import { makeElement } from "../../htmlUtils";

View file

@ -1,5 +1,5 @@
import { DoesNotExistError } from "../../types/internalErrors";
import { Page } from "../../PageSystem/Page";
import { Page } from "../../types/Page";
import { SecretTitleElement } from "../../elements/SecretTitleElement";
import { getSecrets } from "../../api/kv/getSecrets";
import { makeElement } from "../../htmlUtils";

View file

@ -1,6 +1,6 @@
import { Margin } from "../elements/Margin";
import { MarginInline } from "../elements/MarginInline";
import { Page } from "../PageSystem/Page";
import { Page } from "../types/Page";
import { lookupSelf } from "../api/sys/lookupSelf";
import { makeElement } from "../htmlUtils";
import { setErrorText } from "../pageUtils";

View file

@ -1,4 +1,4 @@
import { Page } from "../PageSystem/Page";
import { Page } from "../types/Page";
import { addClipboardNotifications, prePageChecks, setErrorText } from "../pageUtils";
import { getCapabilitiesPath } from "../api/sys/getCapabilities";
import { makeElement } from "../htmlUtils";

View file

@ -1,6 +1,6 @@
import { Margin } from "../../elements/Margin";
import { Option } from "../../elements/Option";
import { Page } from "../../PageSystem/Page";
import { Page } from "../../types/Page";
import { makeElement } from "../../htmlUtils";
import { newMount } from "../../api/sys/newMount";
import { setErrorText } from "../../pageUtils";

View file

@ -1,5 +1,5 @@
import { Margin } from "../../elements/Margin";
import { Page } from "../../PageSystem/Page";
import { Page } from "../../types/Page";
import { makeElement } from "../../htmlUtils";
import { newMount } from "../../api/sys/newMount";
import { setErrorText } from "../../pageUtils";

View file

@ -1,5 +1,5 @@
import { Margin } from "../../elements/Margin";
import { Page } from "../../PageSystem/Page";
import { Page } from "../../types/Page";
import { makeElement } from "../../htmlUtils";
import { newMount } from "../../api/sys/newMount";
import { setErrorText } from "../../pageUtils";

View file

@ -1,4 +1,4 @@
import { Page } from "../PageSystem/Page";
import { Page } from "../types/Page";
import { Tile } from "../elements/Tile";
import { makeElement } from "../htmlUtils";
import i18next from "i18next";

View file

@ -1,7 +1,7 @@
import { CopyableInputBox, CopyableInputBoxType } from "../elements/CopyableInputBox";
import { Margin } from "../elements/Margin";
import { Option } from "../elements/Option";
import { Page } from "../PageSystem/Page";
import { Page } from "../types/Page";
import { makeElement } from "../htmlUtils";
import i18next from "i18next";

View file

@ -1,5 +1,5 @@
import { Margin } from "../elements/Margin";
import { Page } from "../PageSystem/Page";
import { Page } from "../types/Page";
import { makeElement } from "../htmlUtils";
import { reloadNavBar } from "../elements/NavBar";
import i18next from "i18next";

View file

@ -1,4 +1,4 @@
import { Page } from "../PageSystem/Page";
import { Page } from "../types/Page";
import { makeElement } from "../htmlUtils";
export class SetVaultURLPage extends Page {

View file

@ -1,6 +1,6 @@
import { Margin } from "../../elements/Margin";
import { MarginInline } from "../../elements/MarginInline";
import { Page } from "../../PageSystem/Page";
import { Page } from "../../types/Page";
import { SecretTitleElement } from "../../elements/SecretTitleElement";
import { addNewTOTP } from "../../api/totp/addNewTOTP";
import { makeElement } from "../../htmlUtils";

View file

@ -1,6 +1,6 @@
import { CopyableInputBox } from "../../elements/CopyableInputBox";
import { DoesNotExistError } from "../../types/internalErrors";
import { Page } from "../../PageSystem/Page";
import { Page } from "../../types/Page";
import { SecretTitleElement } from "../../elements/SecretTitleElement";
import { getTOTPCode } from "../../api/totp/getTOTPCode";
import { getTOTPKeys } from "../../api/totp/getTOTPKeys";

View file

@ -1,6 +1,6 @@
import { Margin } from "../../elements/Margin";
import { Option } from "../../elements/Option";
import { Page } from "../../PageSystem/Page";
import { Page } from "../../types/Page";
import { SecretTitleElement } from "../../elements/SecretTitleElement";
import { makeElement } from "../../htmlUtils";
import { newTransitKey } from "../../api/transit/newTransitKey";

View file

@ -1,7 +1,7 @@
import { CopyableModal } from "../../elements/CopyableModal";
import { FileUploadInput } from "../../elements/FileUploadInput";
import { Margin } from "../../elements/Margin";
import { Page } from "../../PageSystem/Page";
import { Page } from "../../types/Page";
import { SecretTitleElement } from "../../elements/SecretTitleElement";
import { fileToBase64, makeElement } from "../../htmlUtils";
import { setErrorText } from "../../pageUtils";

View file

@ -1,7 +1,7 @@
import { CopyableModal } from "../../elements/CopyableModal";
import { FileUploadInput } from "../../elements/FileUploadInput";
import { Margin } from "../../elements/Margin";
import { Page } from "../../PageSystem/Page";
import { Page } from "../../types/Page";
import { SecretTitleElement } from "../../elements/SecretTitleElement";
import { fileToBase64, makeElement } from "../../htmlUtils";
import { setErrorText } from "../../pageUtils";

View file

@ -1,7 +1,7 @@
import { CopyableModal } from "../../elements/CopyableModal";
import { Margin } from "../../elements/Margin";
import { Option } from "../../elements/Option";
import { Page } from "../../PageSystem/Page";
import { Page } from "../../types/Page";
import { SecretTitleElement } from "../../elements/SecretTitleElement";
import { getTransitKey } from "../../api/transit/getTransitKey";
import { makeElement } from "../../htmlUtils";

View file

@ -1,5 +1,5 @@
import { DoesNotExistError } from "../../types/internalErrors";
import { Page } from "../../PageSystem/Page";
import { Page } from "../../types/Page";
import { SecretTitleElement } from "../../elements/SecretTitleElement";
import { getTransitKeys } from "../../api/transit/getTransitKeys";
import { makeElement } from "../../htmlUtils";

View file

@ -1,4 +1,4 @@
import { Page } from "../../PageSystem/Page";
import { Page } from "../../types/Page";
import { SecretTitleElement } from "../../elements/SecretTitleElement";
import { Tile } from "../../elements/Tile";
import { getTransitKey } from "../../api/transit/getTransitKey";

View file

@ -1,5 +1,5 @@
import { MarginInline } from "../elements/MarginInline";
import { Page } from "../PageSystem/Page";
import { Page } from "../types/Page";
import { QRScanner, QRScannerType } from "../elements/QRScanner";
import { SealStatusType, getSealStatus } from "../api/sys/getSealStatus";
import { makeElement } from "../htmlUtils";

View file

@ -1,4 +1,4 @@
import { PageRouter } from "./PageRouter";
import { PageRouter } from "../PageSystem/PageRouter";
import { PageState } from "../PageState";
export class Page {