view client/docs/developers.md @ 4338:08aef146f95a

Define_stretches: upload etd
author Thomas Junk <thomas.junk@intevation.de>
date Thu, 05 Sep 2019 17:16:54 +0200
parents 8ac59c8183e8
children dc5a10542e16
line wrap: on
line source

When developing wamos, check out

* [How translations are handled](dev-translations.md)
* [Rationale of some choices](dev-generalconsiderations.md)

## Hints

When testing the vuex store object can be accessed from the
webbrowsers console like

```javascript
store = document.getElementsByTagName('a')[0].__vue__.$store
```

This allows for setting test values where getting real test data
is complicated. For example testing the diagramm for the
fairwayavailability (tested with Chromium 73 und gemma-2019-09-04):

```javascript
data = store.state.fairwayavailability.csv

data=`#time,# < LDC (164.0) [h],# >= LDC (164.0) [h],# < 230.0 [h],# >= 230.0 [h],# >= 250.0 [h]
01-2019,0  ,744,  0,  0,744
02-2019,324,324,150,174,324
03-2019, 24,696, 80, 45, 50
04-2019,120,600, 24, 24,672.5
05-2019,140,80 , 80, 45, 50
06-2019,  0,  0,  0,  0,  0.000
07-2019,  0,300,  0,  0,  0
08-2019,  0,  0,744,  0,  0
09-2019,  0,720,  0, 96,624
`

store.commit("fairwayavailability/setAvailableFairwayDepthData", data)
```

(Depends on the code structure in store/fairwayavailability.js.)