From aa9e049acd99bedba505180b381df738b5133849 Mon Sep 17 00:00:00 2001 From: Antoine <antoine.roy@tetras-libre.fr> Date: Tue, 9 Jan 2024 16:12:08 +0100 Subject: [PATCH] retrait des console.log --- src/AnnotationCreation.js | 3 --- src/WebAnnotation.js | 8 -------- 2 files changed, 11 deletions(-) diff --git a/src/AnnotationCreation.js b/src/AnnotationCreation.js index 193924b..8460aeb 100644 --- a/src/AnnotationCreation.js +++ b/src/AnnotationCreation.js @@ -107,7 +107,6 @@ class AnnotationCreation extends Component { annoState.xywh = geomFromAnnoTarget(props.annotation.target); [annoState.tstart, annoState.tend] = timeFromAnnoTarget(props.annotation.target); } - console.log(annoState) } const toolState = { @@ -346,8 +345,6 @@ class AnnotationCreation extends Component { svg, tags, }).toJson(); - console.log(this.state.annotation); - console.log(anno); if (annotation) { storageAdapter.update(anno) .then((annoPage) => { diff --git a/src/WebAnnotation.js b/src/WebAnnotation.js index 8c9dfd9..b9a3d7f 100644 --- a/src/WebAnnotation.js +++ b/src/WebAnnotation.js @@ -30,9 +30,7 @@ export default class WebAnnotation { /** */ createBody() { let bodies = []; - console.log('CREATEBODY') if (this.body && this.body.value !== '') { - console.log('TEXT BODY', this.body.value) const textBody = { type: 'TextualBody', value: this.body.value, @@ -41,7 +39,6 @@ export default class WebAnnotation { } if (this.image) { - console.log('IMAGE', this.image.id) const imgBody = { id: this.image.id, @@ -51,7 +48,6 @@ export default class WebAnnotation { } if(this.title){ - console.log('TITLE', this.title) const title={ type: 'AnnotationTitle', value: this.title, @@ -60,8 +56,6 @@ export default class WebAnnotation { } if (this.tags) { - console.log('TAG', this.tags) - bodies = bodies.concat(this.tags.map((tag) => ({ purpose: 'tagging', type: 'TextualBody', @@ -69,10 +63,8 @@ export default class WebAnnotation { }))); } if (bodies.length === 1) { - console.log('bodies',bodies) return bodies[0]; } - console.log('bodies',bodies) return bodies; } -- GitLab