From f976d7d842dd586cae44f166b2292dab420dbe13 Mon Sep 17 00:00:00 2001 From: Jannic Veith Date: Thu, 17 Oct 2024 11:09:08 +0200 Subject: [PATCH 1/2] Remove console logs --- ui/src/auth.ts | 2 -- ui/src/layers/helpers.ts | 1 - ui/src/ngm-app.ts | 4 ---- ui/src/slicer/SlicingLine.ts | 1 - 4 files changed, 8 deletions(-) diff --git a/ui/src/auth.ts b/ui/src/auth.ts index 637facb69..f0c57b1ef 100644 --- a/ui/src/auth.ts +++ b/ui/src/auth.ts @@ -102,9 +102,7 @@ export default class Auth { } if (user) { const remaining = 1000 * user.exp - Date.now(); - console.log('Will log out in', Math.floor(remaining / 1000 / 60), 'min'); authTimeout = window.setTimeout(() => { - console.log('Token expired - logout'); Auth.logout(); }, remaining); } diff --git a/ui/src/layers/helpers.ts b/ui/src/layers/helpers.ts index 3670a3bf4..617547267 100644 --- a/ui/src/layers/helpers.ts +++ b/ui/src/layers/helpers.ts @@ -62,7 +62,6 @@ export async function create3DVoxelsTilesetFromConfig(viewer: Viewer, config: La const searchParams = new URLSearchParams(location.search); const stepSize = parseFloat(searchParams.get('stepSize') || '1'); - console.log('using stepSize:', stepSize); primitive.nearestSampling = true; primitive.stepSize = stepSize; diff --git a/ui/src/ngm-app.ts b/ui/src/ngm-app.ts index eca63562b..98bf2e03a 100644 --- a/ui/src/ngm-app.ts +++ b/ui/src/ngm-app.ts @@ -210,7 +210,6 @@ export class NgmApp extends LitElementI18n { this.loading = false; this.showTrackingConsent = true; const loadingTime = performance.now() / 1000; - console.log(`loading mask displayed ${(loadingTime).toFixed(3)}s`); ( this.querySelector('ngm-slow-loading')).style.display = 'none'; } @@ -231,11 +230,9 @@ export class NgmApp extends LitElementI18n { this.queueLength = queueLength; if (currentStep === 1 && globe.tilesLoaded) { currentStep = 2; - console.log('Step 1 finished'); onStep1Finished(globe, searchParams); setTimeout(() => { if (currentStep === 2) { - console.log('Too long: going straight to step 3'); currentStep = 3; this.onStep2Finished(viewer); unlisten(); @@ -243,7 +240,6 @@ export class NgmApp extends LitElementI18n { }, SKIP_STEP2_TIMEOUT); } else if (currentStep === 2 && globe.tilesLoaded) { currentStep = 3; - console.log('Step 2 finished'); this.onStep2Finished(viewer); unlisten(); } diff --git a/ui/src/slicer/SlicingLine.ts b/ui/src/slicer/SlicingLine.ts index aaa32a10d..91810543b 100644 --- a/ui/src/slicer/SlicingLine.ts +++ b/ui/src/slicer/SlicingLine.ts @@ -68,7 +68,6 @@ export default class SlicingLine extends SlicingToolBase { this.addClippingPlanesFromSphere(primitive); return; } - console.log('A transform is used in this tileset'); const planeNormal = this.plane!.normal; const p1 = this.options.slicePoints[0]; const p2 = this.options.slicePoints[1]; From c2ce81028842a7aa25316a8a168677e1c136b2a4 Mon Sep 17 00:00:00 2001 From: Jannic Veith Date: Thu, 17 Oct 2024 11:17:59 +0200 Subject: [PATCH 2/2] Fix lint --- ui/src/ngm-app.ts | 1 - 1 file changed, 1 deletion(-) diff --git a/ui/src/ngm-app.ts b/ui/src/ngm-app.ts index 98bf2e03a..374b61bb0 100644 --- a/ui/src/ngm-app.ts +++ b/ui/src/ngm-app.ts @@ -209,7 +209,6 @@ export class NgmApp extends LitElementI18n { removeLoading() { this.loading = false; this.showTrackingConsent = true; - const loadingTime = performance.now() / 1000; ( this.querySelector('ngm-slow-loading')).style.display = 'none'; }