1
0
Fork 0

Reformat code.

This commit is contained in:
Kitteh 2021-04-15 15:37:52 +01:00
parent 9fc0f9347b
commit e0a3106d2e
8 changed files with 166 additions and 167 deletions

View file

@ -45,4 +45,4 @@ export class KeyValueVersionsPage extends Page {
get name() { get name() {
return "K/V Versions"; return "K/V Versions";
} }
} }

View file

@ -25,8 +25,8 @@ export class TOTPViewPage extends Page {
id: "loadingText", id: "loadingText",
text: "Loading TOTP Codes..", text: "Loading TOTP Codes..",
}), }),
makeElement({tag: "br"}), makeElement({ tag: "br" }),
makeElement({tag: "br"}), makeElement({ tag: "br" }),
totpList totpList
] ]
})); }));

View file

@ -7,14 +7,14 @@ export class TransitViewSecretPage extends Page {
super(); super();
} }
makeTile(title, description, icon = "code", onclick = _ => {}) { makeTile(title, description, icon = "code", onclick = _ => { }) {
return makeElement({ return makeElement({
tag: "div",
class: ["uk-tile", "uk-tile-default", "uk-tile-primary", "uk-padding-small"],
children: makeElement({
tag: "a", tag: "a",
class: "uk-link-heading", class: "uk-link-heading",
onclick: onclick, onclick: onclick,
children: makeElement({
tag: "div",
class: ["uk-tile", "uk-tile-default", "uk-tile-primary", "uk-padding-small"],
children: [ children: [
makeElement({ makeElement({
tag: "p", tag: "p",
@ -37,7 +37,6 @@ export class TransitViewSecretPage extends Page {
}) })
] ]
}) })
}); });
} }

View file

@ -34,7 +34,7 @@ export class UnsealPage extends Page {
this.unsealProgress = makeElement({ this.unsealProgress = makeElement({
tag: "progress", tag: "progress",
class: "uk-progress", class: "uk-progress",
attributes: {value: "0", max: "0"} attributes: { value: "0", max: "0" }
}); });
this.unsealProgressText = makeElement({ this.unsealProgressText = makeElement({
tag: "p", tag: "p",

View file

@ -1,4 +1,4 @@
import {changePage} from "../pageUtils.js"; import { changePage } from "../pageUtils.js";
export class Page { export class Page {
constructor() { } constructor() { }