From d4e54bd196c0e2e61eb9bb65b0e4998141c90c63 Mon Sep 17 00:00:00 2001 From: Iva Utikalova Date: Wed, 1 May 2024 23:26:58 +0200 Subject: [PATCH] cleaning --- src/components/bootstrap/research/research.tsx | 7 +++---- src/react/ReactGeovistoMap.tsx | 12 +----------- 2 files changed, 4 insertions(+), 15 deletions(-) diff --git a/src/components/bootstrap/research/research.tsx b/src/components/bootstrap/research/research.tsx index 0a50412..fec68d6 100644 --- a/src/components/bootstrap/research/research.tsx +++ b/src/components/bootstrap/research/research.tsx @@ -35,7 +35,7 @@ const Slide = (props) => {

- {props.title} + {props.title}

{props.name} @@ -52,7 +52,7 @@ export const Research = () => { useEffect(() => { community_files.forEach(element => { - const markdown = require('!!raw-loader!../../../../blog/' + element)?.default; + const markdown = require('!!raw-loader!../../../../research/' + element)?.default; var extractedMetadata = extractMetadata(markdown); extractedMetadata["id"] = (element.split('.')[0]).split('-').join('/'); @@ -64,7 +64,6 @@ export const Research = () => { function extractMetadata(markdown) { const frontMatter = markdown.split('---'); - console.log(frontMatter.length); if (frontMatter.length == 3) { const metadataLines = frontMatter[1].split('\n').filter(line => line.trim() !== ''); @@ -152,7 +151,7 @@ export const Research = () => { Stay up to date with library updates.
- +
diff --git a/src/react/ReactGeovistoMap.tsx b/src/react/ReactGeovistoMap.tsx index ee79e6e..6c5cb92 100644 --- a/src/react/ReactGeovistoMap.tsx +++ b/src/react/ReactGeovistoMap.tsx @@ -28,7 +28,6 @@ const ReactGeovistoMap: React.FC = (props) => { var typingInterval = 5000; const startTimer = () => { - console.log("start") clearTimeout(typingTimer); typingTimer = setTimeout(resultAction, typingInterval); }; @@ -62,8 +61,6 @@ const ReactGeovistoMap: React.FC = (props) => { useEffect(() => { // create new Geovisto map - - console.log("EFFECT"); if (!helpRef.current) { // draw map with the current config // timeout is set to fix crashing with leaflet @@ -74,8 +71,6 @@ const ReactGeovistoMap: React.FC = (props) => { props.config ?? Geovisto.getMapConfigManagerFactory().default({}) ); - console.log("DRAW"); - console.log(props.id); // ignoring for base if (props.id == 'my-geovisto-map') { @@ -95,8 +90,6 @@ const ReactGeovistoMap: React.FC = (props) => { setTimeout(() => { mapRef.current.redraw( props.config ?? Geovisto.getMapConfigManagerFactory().default({}), props); - console.log("REDRAW"); - console.log(props.id); }, 0); } } @@ -108,12 +101,9 @@ const ReactGeovistoMap: React.FC = (props) => { clearTimeout(typingTimer); } - console.log("mapRef"); - console.log(mapRef.current); - return () => { clearTimeout(typingTimer); - console.log("cleaning up"); + console.log("cleaning up react"); } }, [props]);