view client/src/components/paneSetups.js @ 4329:83eb99662a91

client: improve ability to test FW diagrams * Restructure code in fairwayavailability.js to seperate external data retrieval and adding the data into the store. Good side effects are that using a mutation for setting test data is easier and only one commit call is necessary, which means less clutter in the state history. * Adding an example how to use this for testing to docs/developers.md . * Bump copyright year for one file.
author Bernhard Reiter <bernhard@intevation.de>
date Wed, 04 Sep 2019 17:05:43 +0200
parents fa7dc3f31ef3
children
line wrap: on
line source

const main = { id: "main", component: "Map" };

export const DEFAULT = { main };
export const COMPARESURVEYS = {
  main,
  compare: { id: "compare-survey", component: "Map" }
};
export const FAIRWAYPROFILE = {
  main,
  fairwayprofile: { id: "fairwayprofile", component: "Fairwayprofile" }
};

export const AVAILABLEFAIRWAYDEPTH = {
  main,
  availablefairwaydepth: {
    id: "availablefairwaydepth",
    component: "AvailableFairwayDepth"
  }
};

export const AVAILABLEFAIRWAYDEPTHLNWL = {
  main,
  availablefairwaydepth: {
    id: "availablefairwaydepthlnwl",
    component: "AvailableFairwayDepthLNWL"
  }
};

export const COMPARESURVEYS_FAIRWAYPROFILE = {
  main,
  compare: { id: "compare-survey", component: "Map" },
  fairwayprofile: { id: "fairwayprofile", component: "Fairwayprofile" }
};
export const GAUGE_WATERLEVEL = {
  main,
  waterlevel: { id: "gauge-waterlevel", component: "Waterlevel" }
};
export const GAUGE_HYDROLOGICALCONDITIONS = {
  main,
  hydrological: {
    id: "gauge-hydrologicalconditions",
    component: "HydrologicalConditions"
  }
};
export const GAUGE_WATERLEVEL_HYDROLOGICALCONDITIONS = {
  main,
  waterlevel: { id: "gauge-waterlevel", component: "Waterlevel" },
  hydrological: {
    id: "gauge-hydrologicalconditions",
    component: "HydrologicalConditions"
  }
};