Remove global changePage
This commit is contained in:
parent
b79e1856ca
commit
3ba6beca89
|
@ -61,7 +61,6 @@ const pages = {
|
|||
var pageState = new PageState();
|
||||
window.pageState = pageState;
|
||||
window.realPages = pages;
|
||||
window.changePage = changePage;
|
||||
|
||||
function ListItem(children) {
|
||||
return makeElement({
|
||||
|
|
|
@ -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 {
|
||||
|
|
|
@ -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 {
|
||||
|
|
|
@ -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";
|
||||
|
|
|
@ -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";
|
||||
|
||||
|
|
|
@ -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 {
|
||||
|
|
|
@ -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 {
|
||||
|
|
|
@ -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";
|
||||
|
|
|
@ -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";
|
||||
|
||||
|
|
|
@ -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 {
|
||||
|
|
|
@ -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";
|
||||
|
|
|
@ -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";
|
||||
|
|
|
@ -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 {
|
||||
|
|
|
@ -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 {
|
||||
|
|
Loading…
Reference in a new issue