Mercurial > gemma
changeset 4454:69166db6ba8a
console.log removed
author | Thomas Junk <thomas.junk@intevation.de> |
---|---|
date | Mon, 23 Sep 2019 09:19:03 +0200 |
parents | 9b9f60e26b39 |
children | 112120ed510d |
files | client/src/components/Pdftool.vue client/src/components/fairway/AvailableFairwayDepthDialogue.vue client/src/components/importconfiguration/Import.vue client/src/components/importoverview/ApprovedGaugeMeasurementDetail.vue client/src/components/importoverview/SectionDetails.vue client/src/components/importoverview/StretchDetails.vue client/src/components/map/Map.vue client/src/components/map/layers.js client/src/components/systemconfiguration/PDFTemplates.vue client/src/store/map.js |
diffstat | 10 files changed, 1 insertions(+), 39 deletions(-) [+] |
line wrap: on
line diff
--- a/client/src/components/Pdftool.vue Fri Sep 20 17:41:11 2019 +0200 +++ b/client/src/components/Pdftool.vue Mon Sep 23 09:19:03 2019 +0200 @@ -262,13 +262,6 @@ * */ this.readyToGenerate = false; - console.log( - "will generate pdf with", - this.form.paperSize, - this.form.format, - this.form.resolution - ); - if (this.form.format !== "portrait") { this.pdf.width = paperSizes[this.form.paperSize][0]; this.pdf.height = paperSizes[this.form.paperSize][1]; @@ -300,7 +293,6 @@ .getResolution() ) ); - console.log("scaleDenominator = ", scaleDenominator); var snapshot = canvas.toDataURL("image/jpeg"); this.pdf.doc.addImage( snapshot, @@ -518,12 +510,10 @@ maxLength /= unitConversionFactor; - // DEBUG console.log(maxLength, unit); let unroundedLength = maxLength; let numberOfDigits = Math.floor(log10(unroundedLength)); let factor = Math.pow(10, numberOfDigits); let mapped = unroundedLength / factor; - // DEBUG console.log(mapped); var length = Math.floor(maxLength); // just to have an upper limit
--- a/client/src/components/fairway/AvailableFairwayDepthDialogue.vue Fri Sep 20 17:41:11 2019 +0200 +++ b/client/src/components/fairway/AvailableFairwayDepthDialogue.vue Mon Sep 23 09:19:03 2019 +0200 @@ -571,7 +571,6 @@ this.$store.commit("application/paneSetup", "AVAILABLEFAIRWAYDEPTH"); }) .catch(error => { - console.log(error); const { status, data } = error.response; displayError({ title: this.$gettext("Backend Error"),
--- a/client/src/components/importconfiguration/Import.vue Fri Sep 20 17:41:11 2019 +0200 +++ b/client/src/components/importconfiguration/Import.vue Mon Sep 23 09:19:03 2019 +0200 @@ -169,7 +169,6 @@ }); }, deleteSchedule(schedule) { - console.log(schedule); this.$store.commit("application/popup", { icon: "trash", title: this.$gettext("Delete Import"),
--- a/client/src/components/importoverview/ApprovedGaugeMeasurementDetail.vue Fri Sep 20 17:41:11 2019 +0200 +++ b/client/src/components/importoverview/ApprovedGaugeMeasurementDetail.vue Mon Sep 23 09:19:03 2019 +0200 @@ -95,7 +95,6 @@ }, methods: { toggleDiff(number) { - console.log(number); if (this.showDiff !== number) { this.showDiff = number; } else {
--- a/client/src/components/importoverview/SectionDetails.vue Fri Sep 20 17:41:11 2019 +0200 +++ b/client/src/components/importoverview/SectionDetails.vue Mon Sep 23 09:19:03 2019 +0200 @@ -103,7 +103,6 @@ }); }) .catch(error => { - console.log(error); const { status, data } = error.response; displayError({ title: this.$gettext("Backend Error"),
--- a/client/src/components/importoverview/StretchDetails.vue Fri Sep 20 17:41:11 2019 +0200 +++ b/client/src/components/importoverview/StretchDetails.vue Mon Sep 23 09:19:03 2019 +0200 @@ -134,7 +134,6 @@ }); }) .catch(error => { - console.log(error); const { status, data } = error.response; displayError({ title: this.$gettext("Backend Error"),
--- a/client/src/components/map/Map.vue Fri Sep 20 17:41:11 2019 +0200 +++ b/client/src/components/map/Map.vue Mon Sep 23 09:19:03 2019 +0200 @@ -355,9 +355,7 @@ this.$store.commit("gauges/deleteNashSutcliffeCache"); this.$store.dispatch("map/refreshLayers"); }) - .catch(error => { - console.log(error); - }); + .catch(error => {}); } }, mounted() {
--- a/client/src/components/map/layers.js Fri Sep 20 17:41:11 2019 +0200 +++ b/client/src/components/map/layers.js Mon Sep 23 09:19:03 2019 +0200 @@ -470,7 +470,6 @@ TILED: true }, tileLoadFunction: function(tile, src) { - // console.log("calling for", tile, src); HTTP.get(src, { headers: { "X-Gemma-Auth": localStorage.getItem("token") @@ -496,7 +495,6 @@ TILED: true }, tileLoadFunction: function(tile, src) { - // console.log("calling for", tile, src); HTTP.get(src, { headers: { "X-Gemma-Auth": localStorage.getItem("token")
--- a/client/src/components/systemconfiguration/PDFTemplates.vue Fri Sep 20 17:41:11 2019 +0200 +++ b/client/src/components/systemconfiguration/PDFTemplates.vue Mon Sep 23 09:19:03 2019 +0200 @@ -272,8 +272,6 @@ this.$refs.uploadTemplate.value = null; } }; - - reader.onerror = error => console.log(error); reader.readAsText(this.$refs.uploadTemplate.files[0]); }, loadTemplates() {
--- a/client/src/store/map.js Fri Sep 20 17:41:11 2019 +0200 +++ b/client/src/store/map.js Mon Sep 23 09:19:03 2019 +0200 @@ -416,18 +416,6 @@ } } - // DEBUG output and example how to remove the GeometryName - /* - for (let feature of features) { - console.log("Identified:", feature.getId()); - for (let key of feature.getKeys()) { - if (key != feature.getGeometryName()) { - console.log(key, feature.get(key)); - } - } - } - */ - let currentResolution = map.getView().getResolution(); var waterwayAxisSource = map.getLayer("WATERWAYAXIS").getSource(); @@ -544,11 +532,6 @@ // { INFO_FORMAT: "application/vnd.ogc.gml" } // not allowed by d4d { INFO_FORMAT: "text/plain" } ); - - if (iecdisUrl) { - // cannot directly query here because of SOP - // console.log("GetFeatureInfo url:", iecdisUrl); - } }); }, refreshLayers({ state }) {