Remove global changePage
This commit is contained in:
parent
b79e1856ca
commit
3ba6beca89
|
@ -61,7 +61,6 @@ const pages = {
|
||||||
var pageState = new PageState();
|
var pageState = new PageState();
|
||||||
window.pageState = pageState;
|
window.pageState = pageState;
|
||||||
window.realPages = pages;
|
window.realPages = pages;
|
||||||
window.changePage = changePage;
|
|
||||||
|
|
||||||
function ListItem(children) {
|
function ListItem(children) {
|
||||||
return makeElement({
|
return makeElement({
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
import { Page } from "../../types/Page.js";
|
import { Page } from "../../types/Page.js";
|
||||||
import { deleteSecret } from "../../api.js";
|
import { deleteSecret } from "../../api.js";
|
||||||
import { setPageContent, setTitleElement } from "../../pageUtils.js";
|
import { setPageContent, setTitleElement, changePage } from "../../pageUtils.js";
|
||||||
import { makeElement } from "../../htmlUtils.js";
|
import { makeElement } from "../../htmlUtils.js";
|
||||||
|
|
||||||
export class KeyValueDeletePage extends Page {
|
export class KeyValueDeletePage extends Page {
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
import { Page } from "../../types/Page.js";
|
import { Page } from "../../types/Page.js";
|
||||||
import { createOrUpdateSecret } from "../../api.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";
|
import { makeElement } from "../../htmlUtils.js";
|
||||||
|
|
||||||
export class KeyValueNewPage extends Page {
|
export class KeyValueNewPage extends Page {
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
import { Page } from "../../types/Page.js";
|
import { Page } from "../../types/Page.js";
|
||||||
import { getSecret, undeleteSecret, getCapabilities } from "../../api.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 { CopyableInputBox } from "../../elements/CopyableInputBox.js";
|
||||||
import { makeElement } from "../../htmlUtils.js";
|
import { makeElement } from "../../htmlUtils.js";
|
||||||
import Prism from "prismjs";
|
import Prism from "prismjs";
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
import { Page } from "../../types/Page.js";
|
import { Page } from "../../types/Page.js";
|
||||||
import { getSecret, createOrUpdateSecret } from "../../api.js";
|
import { getSecret, createOrUpdateSecret } from "../../api.js";
|
||||||
import { verifyJSONString } from "../../utils.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 { makeElement } from "../../htmlUtils.js";
|
||||||
import { CodeJar } from "codejar";
|
import { CodeJar } from "codejar";
|
||||||
|
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
import { Page } from "../../types/Page.js";
|
import { Page } from "../../types/Page.js";
|
||||||
import { getSecretMetadata } from "../../api.js";
|
import { getSecretMetadata } from "../../api.js";
|
||||||
import { setPageContent, setTitleElement } from "../../pageUtils.js";
|
import { setPageContent, setTitleElement, changePage } from "../../pageUtils.js";
|
||||||
import { makeElement } from "../../htmlUtils.js";
|
import { makeElement } from "../../htmlUtils.js";
|
||||||
|
|
||||||
export class KeyValueVersionsPage extends Page {
|
export class KeyValueVersionsPage extends Page {
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
import { Page } from "../../types/Page.js";
|
import { Page } from "../../types/Page.js";
|
||||||
import { DoesNotExistError, getSecrets } from "../../api.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";
|
import { makeElement } from "../../htmlUtils.js";
|
||||||
|
|
||||||
export class KeyValueViewPage extends Page {
|
export class KeyValueViewPage extends Page {
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
import { Page } from "../types/Page.js";
|
import { Page } from "../types/Page.js";
|
||||||
import { lookupSelf, usernameLogin } from "../api.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 { makeElement } from "../htmlUtils.js";
|
||||||
import { Margin } from "../elements/Margin.js";
|
import { Margin } from "../elements/Margin.js";
|
||||||
import { MarginInline } from "../elements/MarginInline.js";
|
import { MarginInline } from "../elements/MarginInline.js";
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
import { Page } from "../../types/Page.js";
|
import { Page } from "../../types/Page.js";
|
||||||
import { getTOTPKeys, getTOTPCode } from "../../api.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 { CopyableInputBox } from "../../elements/CopyableInputBox.js";
|
||||||
import { makeElement } from "../../htmlUtils.js";
|
import { makeElement } from "../../htmlUtils.js";
|
||||||
|
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
import { Page } from "../types/Page.js";
|
import { Page } from "../types/Page.js";
|
||||||
import { setPageContent, setTitleElement } from "../pageUtils.js";
|
import { setPageContent, setTitleElement, changePage } from "../pageUtils.js";
|
||||||
import { makeElement } from "../htmlUtils.js";
|
import { makeElement } from "../htmlUtils.js";
|
||||||
|
|
||||||
export class TemplatePage extends Page {
|
export class TemplatePage extends Page {
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
import { Page } from "../../types/Page.js";
|
import { Page } from "../../types/Page.js";
|
||||||
import { transitDecrypt } from "../../api.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 { makeElement } from "../../htmlUtils.js";
|
||||||
import { Margin } from "../../elements/Margin.js";
|
import { Margin } from "../../elements/Margin.js";
|
||||||
import { CopyableModal } from "../../elements/CopyableModal.js";
|
import { CopyableModal } from "../../elements/CopyableModal.js";
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
import { Page } from "../../types/Page.js";
|
import { Page } from "../../types/Page.js";
|
||||||
import { transitEncrypt } from "../../api.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 { makeElement } from "../../htmlUtils.js";
|
||||||
import { Margin } from "../../elements/Margin.js";
|
import { Margin } from "../../elements/Margin.js";
|
||||||
import { CopyableModal } from "../../elements/CopyableModal.js";
|
import { CopyableModal } from "../../elements/CopyableModal.js";
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
import { Page } from "../../types/Page.js";
|
import { Page } from "../../types/Page.js";
|
||||||
import { DoesNotExistError, getTransitKeys } from "../../api.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";
|
import { makeElement } from "../../htmlUtils.js";
|
||||||
|
|
||||||
export class TransitViewPage extends Page {
|
export class TransitViewPage extends Page {
|
||||||
|
|
|
@ -2,7 +2,6 @@ import { Page } from "../types/Page.js";
|
||||||
import { submitUnsealKey, getSealStatus } from "../api.js";
|
import { submitUnsealKey, getSealStatus } from "../api.js";
|
||||||
import { setPageContent, setErrorText, changePage } from "../pageUtils.js";
|
import { setPageContent, setErrorText, changePage } from "../pageUtils.js";
|
||||||
import { makeElement } from "../htmlUtils.js";
|
import { makeElement } from "../htmlUtils.js";
|
||||||
import { Margin } from "../elements/Margin.js";
|
|
||||||
import { MarginInline } from "../elements/MarginInline.js";
|
import { MarginInline } from "../elements/MarginInline.js";
|
||||||
|
|
||||||
export class UnsealPage extends Page {
|
export class UnsealPage extends Page {
|
||||||
|
|
Loading…
Reference in a new issue