From 23de3d68f39896f819391485020f32cd2806a88c Mon Sep 17 00:00:00 2001 From: Matthew Penner Date: Wed, 21 Jul 2021 12:21:10 -0600 Subject: [PATCH] ui: remove old console logs --- .../scripts/api/account/webauthn/webauthnChallenge.ts | 3 --- resources/scripts/api/admin/nodes/updateNode.ts | 2 -- resources/scripts/components/auth/LoginContainer.tsx | 8 -------- resources/scripts/components/elements/Editor.tsx | 2 -- 4 files changed, 15 deletions(-) diff --git a/resources/scripts/api/account/webauthn/webauthnChallenge.ts b/resources/scripts/api/account/webauthn/webauthnChallenge.ts index a34949e19..9e7ff2949 100644 --- a/resources/scripts/api/account/webauthn/webauthnChallenge.ts +++ b/resources/scripts/api/account/webauthn/webauthnChallenge.ts @@ -4,8 +4,6 @@ import { base64Decode, bufferDecode, bufferEncode, decodeCredentials } from '@/a export default (token: string, publicKey: PublicKeyCredentialRequestOptions): Promise => { return new Promise((resolve, reject) => { - console.log(token); - console.log(publicKey); const publicKeyCredential = Object.assign({}, publicKey); publicKeyCredential.challenge = bufferDecode(base64Decode(publicKey.challenge.toString())); @@ -38,7 +36,6 @@ export default (token: string, publicKey: PublicKeyCredentialRequestOptions): Pr }, }), }; - console.log(data); http.post('/auth/login/checkpoint/key', data).then(response => { return resolve({ diff --git a/resources/scripts/api/admin/nodes/updateNode.ts b/resources/scripts/api/admin/nodes/updateNode.ts index 32547312d..bbda4655c 100644 --- a/resources/scripts/api/admin/nodes/updateNode.ts +++ b/resources/scripts/api/admin/nodes/updateNode.ts @@ -13,8 +13,6 @@ export default (id: number, node: Partial, include: string[] = []): Promis data[key2] = node[key]; }); - console.log(data); - return new Promise((resolve, reject) => { http.patch(`/api/application/nodes/${id}`, { ...data, diff --git a/resources/scripts/components/auth/LoginContainer.tsx b/resources/scripts/components/auth/LoginContainer.tsx index e627da964..47cb2d500 100644 --- a/resources/scripts/components/auth/LoginContainer.tsx +++ b/resources/scripts/components/auth/LoginContainer.tsx @@ -44,17 +44,13 @@ const LoginContainer = ({ history }: RouteComponentProps) => { login({ ...values, recaptchaData: token }) .then(response => { - console.log('wow!'); - console.log(response); if (response.complete) { - console.log(`Redirecting to: ${response.intended || '/'}`); // @ts-ignore window.location = response.intended || '/'; return; } if (response.methods?.includes('webauthn')) { - console.log('Redirecting to: /auth/login/key'); history.replace('/auth/login/key', { token: response.confirmationToken, publicKey: response.publicKey, @@ -64,12 +60,8 @@ const LoginContainer = ({ history }: RouteComponentProps) => { } if (response.methods?.includes('totp')) { - console.log('/auth/login/checkpoint'); history.replace('/auth/login/checkpoint', { token: response.confirmationToken }); - return; } - - console.log('huh?'); }) .catch(error => { console.error(error); diff --git a/resources/scripts/components/elements/Editor.tsx b/resources/scripts/components/elements/Editor.tsx index 3506a242b..3bd218d71 100644 --- a/resources/scripts/components/elements/Editor.tsx +++ b/resources/scripts/components/elements/Editor.tsx @@ -264,9 +264,7 @@ export default ({ className, style, overrides, initialContent, extensions, mode, effects: languageConfig.reconfigure(findLanguageExtensionByMode(mode)), }); - console.log(mode); if (onModeChanged !== undefined) { - console.log(mode); onModeChanged(mode); } }, [ filename ]);