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