remove some console.log()
This commit is contained in:
parent
26fa908648
commit
3e48cb5bda
|
@ -59,7 +59,6 @@ async function onLoad(): Promise<void> {
|
||||||
}
|
}
|
||||||
|
|
||||||
setInterval(async () => {
|
setInterval(async () => {
|
||||||
console.log(getCurrentUrl());
|
|
||||||
if (getCurrentUrl() != "/unseal") {
|
if (getCurrentUrl() != "/unseal") {
|
||||||
// TODO: check if api is accessable, not if its not set
|
// TODO: check if api is accessable, not if its not set
|
||||||
if (settings.apiURL.length == 0) {
|
if (settings.apiURL.length == 0) {
|
||||||
|
|
|
@ -9,7 +9,6 @@ export async function pageChecks(url: string, api: API, settings: Settings): Pro
|
||||||
if (url.startsWith("/set_language")) return;
|
if (url.startsWith("/set_language")) return;
|
||||||
|
|
||||||
if (settings.language.length == 0) {
|
if (settings.language.length == 0) {
|
||||||
console.log("set languge")
|
|
||||||
route("/set_language", true);
|
route("/set_language", true);
|
||||||
return true
|
return true
|
||||||
}
|
}
|
||||||
|
|
|
@ -45,7 +45,8 @@ export function validateData(str: string, syntax = "json"): boolean {
|
||||||
try {
|
try {
|
||||||
parseData(str, syntax);
|
parseData(str, syntax);
|
||||||
} catch (e) {
|
} catch (e) {
|
||||||
console.log(e);
|
let err = e as Error;
|
||||||
|
setErrorText(err.message);
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
return true;
|
return true;
|
||||||
|
|
|
@ -178,8 +178,6 @@ export class KeyValueList extends Component<DefaultPageProps, KeyValueListState>
|
||||||
<button
|
<button
|
||||||
class="uk-button uk-button-primary"
|
class="uk-button uk-button-primary"
|
||||||
onClick={() => {
|
onClick={() => {
|
||||||
console.log(kvNewURL(baseMount, secretPath));
|
|
||||||
|
|
||||||
route(kvNewURL(baseMount, secretPath));
|
route(kvNewURL(baseMount, secretPath));
|
||||||
}}
|
}}
|
||||||
>
|
>
|
||||||
|
|
|
@ -93,7 +93,6 @@ export class Secrets extends Component<DefaultPageProps, SecretsState> {
|
||||||
{Array.from(this.state.mountsMap).map((args: [string, MountType]) => {
|
{Array.from(this.state.mountsMap).map((args: [string, MountType]) => {
|
||||||
const baseMount = args[0];
|
const baseMount = args[0];
|
||||||
const mount = args[1];
|
const mount = args[1];
|
||||||
console.log(baseMount, mount);
|
|
||||||
if (isSupportedMount(mount)) {
|
if (isSupportedMount(mount)) {
|
||||||
return <MountLink mount={mount} baseMount={baseMount} />;
|
return <MountLink mount={mount} baseMount={baseMount} />;
|
||||||
}
|
}
|
||||||
|
|
|
@ -134,7 +134,6 @@ export class TOTPNewGeneratedForm extends Component<
|
||||||
digits: parseInt(data.get("digits") as string),
|
digits: parseInt(data.get("digits") as string),
|
||||||
};
|
};
|
||||||
|
|
||||||
console.log(parms);
|
|
||||||
try {
|
try {
|
||||||
const ret = await this.props.api.addNewTOTP(this.props.baseMount, parms);
|
const ret = await this.props.api.addNewTOTP(this.props.baseMount, parms);
|
||||||
if (!isExported) {
|
if (!isExported) {
|
||||||
|
|
|
@ -37,7 +37,6 @@ export function kvViewURL(
|
||||||
}
|
}
|
||||||
|
|
||||||
export function kvListURL(baseMount: string, secretPath: string[]): string {
|
export function kvListURL(baseMount: string, secretPath: string[]): string {
|
||||||
console.log(baseMount, secretPath);
|
|
||||||
return `/secrets/kv/list/${baseMount}/${secretPath.join("/")}`;
|
return `/secrets/kv/list/${baseMount}/${secretPath.join("/")}`;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue