Mercurial > gemma
changeset 3351:dcae9b3e864b
available_fairway_depths: remove mocks
author | Thomas Junk <thomas.junk@intevation.de> |
---|---|
date | Tue, 21 May 2019 12:37:48 +0200 |
parents | 8da2f7b9a04b |
children | 399a2eb496ee |
files | client/src/store/fairwayavailability.js |
diffstat | 1 files changed, 1 insertions(+), 38 deletions(-) [+] |
line wrap: on
line diff
--- a/client/src/store/fairwayavailability.js Tue May 21 12:34:49 2019 +0200 +++ b/client/src/store/fairwayavailability.js Tue May 21 12:37:48 2019 +0200 @@ -21,41 +21,6 @@ YEARLY: "yearly" }; -/** - * Maximum number of hours: - * Month: approx 744/720/672 hours for 31/30/21 days - * Quarter: aprrox 2160 per quarter (~90 days) - * Yearly: approx 8760 per year (~365 days) - */ -const MOCKDATA = { - [FREQUENCIES.MONTHLY]: ` -#label,# >= LDC [h],# < 200.00 [h],# >= 200.00 [h],# >= 230.00 [h],# >= 250.00 [h] -05-2018,670.000,450.000,70.000,50.000,100.000 -06-2018,669.000,546.000,0.000,0.000,123.000 -07-2018,671.000,377.000,0.000,0.000,294.000 -08-2018,668.000,168.000,0.000,0.000,500.000 -09-2018,673.000,23.000,0.000,0.000,650.000 -10-2018,670.000,4.000,0.000,0.000,666.000 -11-2018,672.000,1.000,0.000,0.000,671.000 -12-2018,675.000,5.000,0.000,0.000,670.000 -01-2019,677.000,0.000,0.000,0.000,677.000 -02-2019,668.000,43.000,0.000,0.000,625.000 -03-2019,660.000,49.000,0.000,0.000,611.000 -04-2019,620.000,20.000,0.000,0.000,600.000 -05-2019,672.000,42.000,0.000,0.000,630.000`, - [FREQUENCIES.QUARTERLY]: ` -#label,# >= LDC [h],# < 200.00 [h],# >= 200.00 [h],# >= 230.00 [h],# >= 250.00 [h] -Q2-2018,989.000, 500.000,240.000,260.000,1823.000 -Q3-2018,1108.000,500.000,180.000,320.000,1956.000 -Q3-2018,1145.000,500.000,250.000,250.000,2001.000 -Q1-2019,1155.000,500.000,400.000,100.000,2021.000 -Q2-2019,1160.000,500.000,300.000,200.000,1998.000`, - [FREQUENCIES.YEARLY]: ` -#label,# >= LDC [h],# < 200.00 [h],# >= 200.00 [h],# >= 230.00 [h],# >= 250.00 [h] -2018,8360.000,0.000,0.000,0.000,7360.000 -2019,8153.000,0.000,0.000,0.000,7250.000` -}; - const init = () => { return { type: "bottlenecks", @@ -123,9 +88,7 @@ headers: { "X-Gemma-Auth": localStorage.getItem("token") } }) .then(response => { - //const { data } = response; - const data = MOCKDATA[frequency]; - console.log(data); + const { data } = response; const csv = data.split("\n").filter(x => x !== ""); //omit empty lines commit("setLegend", csv.shift()); let transformed = csv.map(e => {