diff options
| author | Georgios Andreadis <info@gandreadis.com> | 2020-07-10 10:21:46 +0200 |
|---|---|---|
| committer | Fabian Mastenbroek <mail.fabianm@gmail.com> | 2020-08-24 19:48:01 +0200 |
| commit | 8aa174e70c01631ae4e00a6d208966fcd77cf972 (patch) | |
| tree | 35ec6527e8d7a0b4093e18c8cb501c293a18b5eb /frontend/src/util | |
| parent | 607e8c72d85bf79dcd9bf28df96b239e2764bc30 (diff) | |
Add implementation of portfolio and scenario UI structure
Diffstat (limited to 'frontend/src/util')
| -rw-r--r-- | frontend/src/util/available-metrics.js | 4 | ||||
| -rw-r--r-- | frontend/src/util/state-utils.js | 5 |
2 files changed, 9 insertions, 0 deletions
diff --git a/frontend/src/util/available-metrics.js b/frontend/src/util/available-metrics.js new file mode 100644 index 00000000..c8035ddd --- /dev/null +++ b/frontend/src/util/available-metrics.js @@ -0,0 +1,4 @@ +export const AVAILABLE_METRICS = [ + 'granted-cpu', + 'overcommitted-cpu', +] diff --git a/frontend/src/util/state-utils.js b/frontend/src/util/state-utils.js new file mode 100644 index 00000000..ba248c60 --- /dev/null +++ b/frontend/src/util/state-utils.js @@ -0,0 +1,5 @@ +export const getState = (dispatch) => new Promise((resolve) => { + dispatch((dispatch, getState) => { + resolve(getState()) + }) +}) |
