1
0
Fork 0

Remove global changePage

This commit is contained in:
Kitteh 2021-04-17 11:30:10 +01:00
parent b79e1856ca
commit 3ba6beca89
14 changed files with 12 additions and 14 deletions

View file

@ -61,7 +61,6 @@ const pages = {
var pageState = new PageState();
window.pageState = pageState;
window.realPages = pages;
window.changePage = changePage;
function ListItem(children) {
return makeElement({

View file

@ -1,6 +1,6 @@
import { Page } from "../../types/Page.js";
import { deleteSecret } from "../../api.js";
import { setPageContent, setTitleElement } from "../../pageUtils.js";
import { setPageContent, setTitleElement, changePage } from "../../pageUtils.js";
import { makeElement } from "../../htmlUtils.js";
export class KeyValueDeletePage extends Page {

View file

@ -1,6 +1,6 @@
import { Page } from "../../types/Page.js";
import { createOrUpdateSecret } from "../../api.js";
import { setPageContent, setTitleElement, setErrorText } from "../../pageUtils.js";
import { setPageContent, setTitleElement, setErrorText, changePage } from "../../pageUtils.js";
import { makeElement } from "../../htmlUtils.js";
export class KeyValueNewPage extends Page {

View file

@ -1,6 +1,6 @@
import { Page } from "../../types/Page.js";
import { getSecret, undeleteSecret, getCapabilities } from "../../api.js";
import { setPageContent, setTitleElement } from "../../pageUtils.js";
import { setPageContent, setTitleElement, changePage } from "../../pageUtils.js";
import { CopyableInputBox } from "../../elements/CopyableInputBox.js";
import { makeElement } from "../../htmlUtils.js";
import Prism from "prismjs";

View file

@ -1,7 +1,7 @@
import { Page } from "../../types/Page.js";
import { getSecret, createOrUpdateSecret } from "../../api.js";
import { verifyJSONString } from "../../utils.js";
import { setPageContent, setTitleElement, setErrorText } from "../../pageUtils.js";
import { setPageContent, setTitleElement, setErrorText, changePage } from "../../pageUtils.js";
import { makeElement } from "../../htmlUtils.js";
import { CodeJar } from "codejar";

View file

@ -1,6 +1,6 @@
import { Page } from "../../types/Page.js";
import { getSecretMetadata } from "../../api.js";
import { setPageContent, setTitleElement } from "../../pageUtils.js";
import { setPageContent, setTitleElement, changePage } from "../../pageUtils.js";
import { makeElement } from "../../htmlUtils.js";
export class KeyValueVersionsPage extends Page {

View file

@ -1,6 +1,6 @@
import { Page } from "../../types/Page.js";
import { DoesNotExistError, getSecrets } from "../../api.js";
import { setErrorText, setTitleElement } from "../../pageUtils.js";
import { setErrorText, setTitleElement, changePage } from "../../pageUtils.js";
import { makeElement } from "../../htmlUtils.js";
export class KeyValueViewPage extends Page {

View file

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

View file

@ -1,6 +1,6 @@
import { Page } from "../../types/Page.js";
import { getTOTPKeys, getTOTPCode } from "../../api.js";
import { setTitleElement, setPageContent } from "../../pageUtils.js";
import { setTitleElement, setPageContent, changePage } from "../../pageUtils.js";
import { CopyableInputBox } from "../../elements/CopyableInputBox.js";
import { makeElement } from "../../htmlUtils.js";

View file

@ -1,5 +1,5 @@
import { Page } from "../types/Page.js";
import { setPageContent, setTitleElement } from "../pageUtils.js";
import { setPageContent, setTitleElement, changePage } from "../pageUtils.js";
import { makeElement } from "../htmlUtils.js";
export class TemplatePage extends Page {

View file

@ -1,6 +1,6 @@
import { Page } from "../../types/Page.js";
import { transitDecrypt } from "../../api.js";
import { setPageContent, setTitleElement, setErrorText } from "../../pageUtils.js";
import { setPageContent, setTitleElement, setErrorText, changePage } from "../../pageUtils.js";
import { makeElement } from "../../htmlUtils.js";
import { Margin } from "../../elements/Margin.js";
import { CopyableModal } from "../../elements/CopyableModal.js";

View file

@ -1,6 +1,6 @@
import { Page } from "../../types/Page.js";
import { transitEncrypt } from "../../api.js";
import { setPageContent, setTitleElement, setErrorText } from "../../pageUtils.js";
import { setPageContent, setTitleElement, setErrorText, changePage } from "../../pageUtils.js";
import { makeElement } from "../../htmlUtils.js";
import { Margin } from "../../elements/Margin.js";
import { CopyableModal } from "../../elements/CopyableModal.js";

View file

@ -1,6 +1,6 @@
import { Page } from "../../types/Page.js";
import { DoesNotExistError, getTransitKeys } from "../../api.js";
import { setErrorText, setTitleElement } from "../../pageUtils.js";
import { setErrorText, setTitleElement, changePage } from "../../pageUtils.js";
import { makeElement } from "../../htmlUtils.js";
export class TransitViewPage extends Page {

View file

@ -2,7 +2,6 @@ import { Page } from "../types/Page.js";
import { submitUnsealKey, getSealStatus } from "../api.js";
import { setPageContent, setErrorText, changePage } from "../pageUtils.js";
import { makeElement } from "../htmlUtils.js";
import { Margin } from "../elements/Margin.js";
import { MarginInline } from "../elements/MarginInline.js";
export class UnsealPage extends Page {