Reorganise pages folder.
This commit is contained in:
parent
3fefdbc90d
commit
6baec10b45
|
@ -1,7 +1,7 @@
|
|||
import { Page } from "../types/Page.js";
|
||||
import { deleteSecret } from "../api.js";
|
||||
import { setPageContent, setTitleElement } from "../pageUtils.js";
|
||||
import { makeElement } from "../htmlUtils.js";
|
||||
import { Page } from "../../types/Page.js";
|
||||
import { deleteSecret } from "../../api.js";
|
||||
import { setPageContent, setTitleElement } from "../../pageUtils.js";
|
||||
import { makeElement } from "../../htmlUtils.js";
|
||||
|
||||
export class KeyValueDeletePage extends Page {
|
||||
constructor() {
|
|
@ -1,7 +1,7 @@
|
|||
import { Page } from "../types/Page.js";
|
||||
import { createOrUpdateSecret } from "../api.js";
|
||||
import { setPageContent, setTitleElement, setErrorText } from "../pageUtils.js";
|
||||
import { makeElement } from "../htmlUtils.js";
|
||||
import { Page } from "../../types/Page.js";
|
||||
import { createOrUpdateSecret } from "../../api.js";
|
||||
import { setPageContent, setTitleElement, setErrorText } from "../../pageUtils.js";
|
||||
import { makeElement } from "../../htmlUtils.js";
|
||||
|
||||
export class KeyValueNewPage extends Page {
|
||||
constructor() {
|
|
@ -1,15 +1,11 @@
|
|||
import { Page } from "../types/Page.js";
|
||||
import { getSecret, undeleteSecret, getCapabilities } from "../api.js";
|
||||
import { setPageContent, setTitleElement } from "../pageUtils.js";
|
||||
import { CopyableInputBox } from "../elements/CopyableInputBox.js";
|
||||
import { makeElement } from "../htmlUtils.js";
|
||||
|
||||
import { Page } from "../../types/Page.js";
|
||||
import { getSecret, undeleteSecret, getCapabilities } from "../../api.js";
|
||||
import { setPageContent, setTitleElement } from "../../pageUtils.js";
|
||||
import { CopyableInputBox } from "../../elements/CopyableInputBox.js";
|
||||
import { makeElement } from "../../htmlUtils.js";
|
||||
import Prism from "prismjs";
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
export class KeyValueSecretsPage extends Page {
|
||||
constructor() {
|
||||
super();
|
|
@ -1,9 +1,9 @@
|
|||
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 { Page } from "../../types/Page.js";
|
||||
import { getSecret, createOrUpdateSecret } from "../../api.js";
|
||||
import { verifyJSONString } from "../../utils.js";
|
||||
import { setPageContent, setTitleElement, setErrorText } from "../../pageUtils.js";
|
||||
import { makeElement } from "../../htmlUtils.js";
|
||||
import { CodeJar } from "codejar";
|
||||
import { makeElement } from "../htmlUtils.js";
|
||||
|
||||
export class KeyValueSecretsEditPage extends Page {
|
||||
constructor() {
|
|
@ -1,7 +1,7 @@
|
|||
import { Page } from "../types/Page.js";
|
||||
import { getSecretMetadata } from "../api.js";
|
||||
import { setPageContent, setTitleElement } from "../pageUtils.js";
|
||||
import { makeElement } from "../htmlUtils.js";
|
||||
import { Page } from "../../types/Page.js";
|
||||
import { getSecretMetadata } from "../../api.js";
|
||||
import { setPageContent, setTitleElement } from "../../pageUtils.js";
|
||||
import { makeElement } from "../../htmlUtils.js";
|
||||
|
||||
export class KeyValueVersionsPage extends Page {
|
||||
constructor() {
|
|
@ -1,7 +1,7 @@
|
|||
import { Page } from "../types/Page.js";
|
||||
import { DoesNotExistError, getSecrets } from "../api.js";
|
||||
import { setErrorText, setTitleElement } from "../pageUtils.js";
|
||||
import { makeElement } from "../htmlUtils.js";
|
||||
import { Page } from "../../types/Page.js";
|
||||
import { DoesNotExistError, getSecrets } from "../../api.js";
|
||||
import { setErrorText, setTitleElement } from "../../pageUtils.js";
|
||||
import { makeElement } from "../../htmlUtils.js";
|
||||
|
||||
export class KeyValueViewPage extends Page {
|
||||
constructor() {
|
|
@ -1,9 +1,9 @@
|
|||
import { Page } from "../types/Page.js";
|
||||
import { addNewTOTP } from "../api.js";
|
||||
import { setTitleElement, setPageContent, setErrorText, changePage } from "../pageUtils.js";
|
||||
import { makeElement } from "../htmlUtils.js";
|
||||
import { Margin } from "../elements/Margin.js";
|
||||
import { MarginInline } from "../elements/MarginInline.js";
|
||||
import { Page } from "../../types/Page.js";
|
||||
import { addNewTOTP } from "../../api.js";
|
||||
import { setTitleElement, 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 NewTOTPPage extends Page {
|
||||
constructor() {
|
|
@ -1,8 +1,8 @@
|
|||
import { Page } from "../types/Page.js";
|
||||
import { getTOTPKeys, getTOTPCode } from "../api.js";
|
||||
import { setTitleElement, setPageContent } from "../pageUtils.js";
|
||||
import { CopyableInputBox } from "../elements/CopyableInputBox.js";
|
||||
import { makeElement } from "../htmlUtils.js";
|
||||
import { Page } from "../../types/Page.js";
|
||||
import { getTOTPKeys, getTOTPCode } from "../../api.js";
|
||||
import { setTitleElement, setPageContent } from "../../pageUtils.js";
|
||||
import { CopyableInputBox } from "../../elements/CopyableInputBox.js";
|
||||
import { makeElement } from "../../htmlUtils.js";
|
||||
|
||||
export class TOTPViewPage extends Page {
|
||||
constructor() {
|
|
@ -1,9 +1,9 @@
|
|||
import { Page } from "../types/Page.js";
|
||||
import { transitDecrypt } from "../api.js";
|
||||
import { setPageContent, setTitleElement, setErrorText } from "../pageUtils.js";
|
||||
import { makeElement } from "../htmlUtils.js";
|
||||
import { Margin } from "../elements/Margin.js";
|
||||
import { CopyableModal } from "../elements/CopyableModal.js";
|
||||
import { Page } from "../../types/Page.js";
|
||||
import { transitDecrypt } from "../../api.js";
|
||||
import { setPageContent, setTitleElement, setErrorText } from "../../pageUtils.js";
|
||||
import { makeElement } from "../../htmlUtils.js";
|
||||
import { Margin } from "../../elements/Margin.js";
|
||||
import { CopyableModal } from "../../elements/CopyableModal.js";
|
||||
import UIkit from 'uikit/dist/js/uikit.min.js';
|
||||
|
||||
|
|
@ -1,9 +1,9 @@
|
|||
import { Page } from "../types/Page.js";
|
||||
import { transitEncrypt } from "../api.js";
|
||||
import { setPageContent, setTitleElement, setErrorText } from "../pageUtils.js";
|
||||
import { makeElement } from "../htmlUtils.js";
|
||||
import { Margin } from "../elements/Margin.js";
|
||||
import { CopyableModal } from "../elements/CopyableModal.js";
|
||||
import { Page } from "../../types/Page.js";
|
||||
import { transitEncrypt } from "../../api.js";
|
||||
import { setPageContent, setTitleElement, setErrorText } from "../../pageUtils.js";
|
||||
import { makeElement } from "../../htmlUtils.js";
|
||||
import { Margin } from "../../elements/Margin.js";
|
||||
import { CopyableModal } from "../../elements/CopyableModal.js";
|
||||
import UIkit from 'uikit/dist/js/uikit.min.js';
|
||||
|
||||
|
|
@ -1,7 +1,7 @@
|
|||
import { Page } from "../types/Page.js";
|
||||
import { DoesNotExistError, getTransitKeys } from "../api.js";
|
||||
import { setErrorText, setTitleElement } from "../pageUtils.js";
|
||||
import { makeElement } from "../htmlUtils.js";
|
||||
import { Page } from "../../types/Page.js";
|
||||
import { DoesNotExistError, getTransitKeys } from "../../api.js";
|
||||
import { setErrorText, setTitleElement } from "../../pageUtils.js";
|
||||
import { makeElement } from "../../htmlUtils.js";
|
||||
|
||||
export class TransitViewPage extends Page {
|
||||
constructor() {
|
|
@ -1,6 +1,6 @@
|
|||
import { Page } from "../types/Page.js";
|
||||
import { changePage, setPageContent, setTitleElement } from "../pageUtils.js";
|
||||
import { makeElement } from "../htmlUtils.js";
|
||||
import { Page } from "../../types/Page.js";
|
||||
import { changePage, setPageContent, setTitleElement } from "../../pageUtils.js";
|
||||
import { makeElement } from "../../htmlUtils.js";
|
||||
|
||||
export class TransitViewSecretPage extends Page {
|
||||
constructor() {
|
|
@ -1,17 +1,17 @@
|
|||
export { HomePage } from "./Home.js";
|
||||
export { TOTPViewPage } from "./TOTPView.js";
|
||||
export { NewTOTPPage } from "./NewTOTP.js";
|
||||
export { TOTPViewPage } from "./TOTP/TOTPView.js";
|
||||
export { NewTOTPPage } from "./TOTP/NewTOTP.js";
|
||||
export { LoginPage } from "./Login.js";
|
||||
export { SetVaultURLPage } from "./SetVaultURL.js";
|
||||
export { UnsealPage } from "./Unseal.js";
|
||||
export { KeyValueViewPage } from "./KeyValueView.js";
|
||||
export { KeyValueSecretsPage } from "./KeyValueSecrets.js";
|
||||
export { KeyValueVersionsPage } from "./KeyValueVersions.js";
|
||||
export { KeyValueNewPage } from "./KeyValueNew.js";
|
||||
export { KeyValueDeletePage } from "./KeyValueDelete.js";
|
||||
export { KeyValueSecretsEditPage } from "./KeyValueSecretsEdit.js";
|
||||
export { KeyValueViewPage } from "./KeyValue/KeyValueView.js";
|
||||
export { KeyValueSecretsPage } from "./KeyValue/KeyValueSecrets.js";
|
||||
export { KeyValueVersionsPage } from "./KeyValue/KeyValueVersions.js";
|
||||
export { KeyValueNewPage } from "./KeyValue/KeyValueNew.js";
|
||||
export { KeyValueDeletePage } from "./KeyValue/KeyValueDelete.js";
|
||||
export { KeyValueSecretsEditPage } from "./KeyValue/KeyValueSecretsEdit.js";
|
||||
export { PwGenPage } from "./PwGen.js";
|
||||
export { TransitViewPage } from "./TransitView.js";
|
||||
export { TransitViewSecretPage } from "./TransitViewSecret.js";
|
||||
export { TransitEncryptPage } from "./TransitEncrypt.js";
|
||||
export { TransitDecryptPage } from "./TransitDecrypt.js";
|
||||
export { TransitViewPage } from "./Transit/TransitView.js";
|
||||
export { TransitViewSecretPage } from "./Transit/TransitViewSecret.js";
|
||||
export { TransitEncryptPage } from "./Transit/TransitEncrypt.js";
|
||||
export { TransitDecryptPage } from "./Transit/TransitDecrypt.js";
|
Loading…
Reference in a new issue