From 75551e56d25632f8862d98c284c77f47d72e7eb6 Mon Sep 17 00:00:00 2001 From: aquinojardim <64516365+aquinojardim@users.noreply.github.com> Date: Mon, 31 Aug 2020 20:38:59 -0700 Subject: [PATCH] added more tests --- coverage/clover.xml | 398 ----------- coverage/coverage-final.json | 24 - coverage/lcov-report/base.css | 224 ------ coverage/lcov-report/block-navigation.js | 79 --- coverage/lcov-report/client/App.tsx.html | 212 ------ .../client/commonStyles/index.html | 126 ---- .../client/commonStyles/stylesHome.tsx.html | 125 ---- .../client/commonStyles/stylesPanel.tsx.html | 218 ------ .../features/lights/LightPanel.tsx.html | 299 -------- .../client/features/lights/index.html | 111 --- .../lightsComponents/LightForm.tsx.html | 257 ------- .../lightsComponents/LightItem.tsx.html | 260 ------- .../lights/lightsComponents/index.html | 126 ---- .../features/lights/lightsStyles/index.html | 111 --- .../lightsStyles/stylesLightItem.tsx.html | 110 --- .../features/navigation/BottomBar.tsx.html | 191 ----- .../features/navigation/TopBar.tsx.html | 296 -------- .../client/features/navigation/index.html | 126 ---- .../navigation/navigationStyles/index.html | 126 ---- .../navigationStyles/stylesBottomBar.tsx.html | 125 ---- .../navigationStyles/stylesTopBar.tsx.html | 125 ---- .../temperature/TemperaturePanel.tsx.html | 254 ------- .../client/features/temperature/index.html | 111 --- .../ChangeTemperature.tsx.html | 206 ------ .../temperatureComponents/Thermostat.tsx.html | 524 -------------- .../temperatureComponents/index.html | 126 ---- .../helpersChangeTemperature.tsx.html | 122 ---- .../helpersThermostat.tsx.html | 176 ----- .../temperature/temperatureHelpers/index.html | 126 ---- .../temperature/temperatureStyles/index.html | 126 ---- .../stylesChangeTemperature.tsx.html | 131 ---- .../stylesThermostat.tsx.html | 218 ------ coverage/lcov-report/client/index.html | 111 --- .../client/reducer/actions/actions.ts.html | 203 ------ .../client/reducer/actions/index.html | 111 --- .../reducer/constants/actionTypes.ts.html | 101 --- .../client/reducer/constants/index.html | 111 --- .../lcov-report/client/reducer/index.html | 111 --- .../client/reducer/reducer.ts.html | 461 ------------- .../reducerHelpers/deleteRequest.tsx.html | 122 ---- .../client/reducer/reducerHelpers/index.html | 126 ---- .../reducerHelpers/postRequest.tsx.html | 122 ---- coverage/lcov-report/favicon.png | Bin 540 -> 0 bytes coverage/lcov-report/index.html | 321 --------- coverage/lcov-report/prettify.css | 1 - coverage/lcov-report/prettify.js | 2 - coverage/lcov-report/sort-arrow-sprite.png | Bin 209 -> 0 bytes coverage/lcov-report/sorter.js | 170 ----- coverage/lcov.info | 651 ------------------ 49 files changed, 8513 deletions(-) delete mode 100644 coverage/clover.xml delete mode 100644 coverage/coverage-final.json delete mode 100644 coverage/lcov-report/base.css delete mode 100644 coverage/lcov-report/block-navigation.js delete mode 100644 coverage/lcov-report/client/App.tsx.html delete mode 100644 coverage/lcov-report/client/commonStyles/index.html delete mode 100644 coverage/lcov-report/client/commonStyles/stylesHome.tsx.html delete mode 100644 coverage/lcov-report/client/commonStyles/stylesPanel.tsx.html delete mode 100644 coverage/lcov-report/client/features/lights/LightPanel.tsx.html delete mode 100644 coverage/lcov-report/client/features/lights/index.html delete mode 100644 coverage/lcov-report/client/features/lights/lightsComponents/LightForm.tsx.html delete mode 100644 coverage/lcov-report/client/features/lights/lightsComponents/LightItem.tsx.html delete mode 100644 coverage/lcov-report/client/features/lights/lightsComponents/index.html delete mode 100644 coverage/lcov-report/client/features/lights/lightsStyles/index.html delete mode 100644 coverage/lcov-report/client/features/lights/lightsStyles/stylesLightItem.tsx.html delete mode 100644 coverage/lcov-report/client/features/navigation/BottomBar.tsx.html delete mode 100644 coverage/lcov-report/client/features/navigation/TopBar.tsx.html delete mode 100644 coverage/lcov-report/client/features/navigation/index.html delete mode 100644 coverage/lcov-report/client/features/navigation/navigationStyles/index.html delete mode 100644 coverage/lcov-report/client/features/navigation/navigationStyles/stylesBottomBar.tsx.html delete mode 100644 coverage/lcov-report/client/features/navigation/navigationStyles/stylesTopBar.tsx.html delete mode 100644 coverage/lcov-report/client/features/temperature/TemperaturePanel.tsx.html delete mode 100644 coverage/lcov-report/client/features/temperature/index.html delete mode 100644 coverage/lcov-report/client/features/temperature/temperatureComponents/ChangeTemperature.tsx.html delete mode 100644 coverage/lcov-report/client/features/temperature/temperatureComponents/Thermostat.tsx.html delete mode 100644 coverage/lcov-report/client/features/temperature/temperatureComponents/index.html delete mode 100644 coverage/lcov-report/client/features/temperature/temperatureHelpers/helpersChangeTemperature.tsx.html delete mode 100644 coverage/lcov-report/client/features/temperature/temperatureHelpers/helpersThermostat.tsx.html delete mode 100644 coverage/lcov-report/client/features/temperature/temperatureHelpers/index.html delete mode 100644 coverage/lcov-report/client/features/temperature/temperatureStyles/index.html delete mode 100644 coverage/lcov-report/client/features/temperature/temperatureStyles/stylesChangeTemperature.tsx.html delete mode 100644 coverage/lcov-report/client/features/temperature/temperatureStyles/stylesThermostat.tsx.html delete mode 100644 coverage/lcov-report/client/index.html delete mode 100644 coverage/lcov-report/client/reducer/actions/actions.ts.html delete mode 100644 coverage/lcov-report/client/reducer/actions/index.html delete mode 100644 coverage/lcov-report/client/reducer/constants/actionTypes.ts.html delete mode 100644 coverage/lcov-report/client/reducer/constants/index.html delete mode 100644 coverage/lcov-report/client/reducer/index.html delete mode 100644 coverage/lcov-report/client/reducer/reducer.ts.html delete mode 100644 coverage/lcov-report/client/reducer/reducerHelpers/deleteRequest.tsx.html delete mode 100644 coverage/lcov-report/client/reducer/reducerHelpers/index.html delete mode 100644 coverage/lcov-report/client/reducer/reducerHelpers/postRequest.tsx.html delete mode 100644 coverage/lcov-report/favicon.png delete mode 100644 coverage/lcov-report/index.html delete mode 100644 coverage/lcov-report/prettify.css delete mode 100644 coverage/lcov-report/prettify.js delete mode 100644 coverage/lcov-report/sort-arrow-sprite.png delete mode 100644 coverage/lcov-report/sorter.js delete mode 100644 coverage/lcov.info diff --git a/coverage/clover.xml b/coverage/clover.xml deleted file mode 100644 index d99ae19..0000000 --- a/coverage/clover.xml +++ /dev/null @@ -1,398 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/coverage/coverage-final.json b/coverage/coverage-final.json deleted file mode 100644 index aaa31e2..0000000 --- a/coverage/coverage-final.json +++ /dev/null @@ -1,24 +0,0 @@ -{"/Users/gabrielajardimaquino/Documents/Canoo Take Home/src/client/App.tsx": {"path":"/Users/gabrielajardimaquino/Documents/Canoo Take Home/src/client/App.tsx","statementMap":{"0":{"start":{"line":1,"column":0},"end":{"line":1,"column":40}},"1":{"start":{"line":2,"column":0},"end":{"line":2,"column":46}},"2":{"start":{"line":3,"column":0},"end":{"line":3,"column":42}},"3":{"start":{"line":4,"column":0},"end":{"line":4,"column":51}},"4":{"start":{"line":5,"column":0},"end":{"line":5,"column":53}},"5":{"start":{"line":6,"column":0},"end":{"line":6,"column":50}},"6":{"start":{"line":7,"column":0},"end":{"line":7,"column":56}},"7":{"start":{"line":8,"column":0},"end":{"line":8,"column":71}},"8":{"start":{"line":9,"column":0},"end":{"line":9,"column":54}},"9":{"start":{"line":12,"column":18},"end":{"line":12,"column":30}},"10":{"start":{"line":13,"column":19},"end":{"line":13,"column":32}},"11":{"start":{"line":14,"column":2},"end":{"line":32,"column":7}},"12":{"start":{"line":18,"column":17},"end":{"line":18,"column":28}},"13":{"start":{"line":20,"column":6},"end":{"line":26,"column":8}},"14":{"start":{"line":30,"column":6},"end":{"line":30,"column":57}},"15":{"start":{"line":31,"column":6},"end":{"line":31,"column":16}},"16":{"start":{"line":33,"column":26},"end":{"line":33,"column":37}},"17":{"start":{"line":33,"column":13},"end":{"line":33,"column":15}},"18":{"start":{"line":33,"column":22},"end":{"line":33,"column":26}},"19":{"start":{"line":35,"column":2},"end":{"line":43,"column":4}},"20":{"start":{"line":11,"column":0},"end":{"line":11,"column":24}}},"fnMap":{"0":{"name":"App","decl":{"start":{"line":11,"column":24},"end":{"line":11,"column":27}},"loc":{"start":{"line":11,"column":27},"end":{"line":44,"column":1}}},"1":{"name":"(anonymous_8)","decl":{"start":{"line":18,"column":10},"end":{"line":18,"column":13}},"loc":{"start":{"line":18,"column":13},"end":{"line":18,"column":20}}},"2":{"name":"(anonymous_9)","decl":{"start":{"line":19,"column":10},"end":{"line":19,"column":14}},"loc":{"start":{"line":19,"column":14},"end":{"line":27,"column":5}}},"3":{"name":"(anonymous_10)","decl":{"start":{"line":28,"column":11},"end":{"line":28,"column":14}},"loc":{"start":{"line":28,"column":14},"end":{"line":32,"column":5}}}},"branchMap":{"0":{"loc":{"start":{"line":39,"column":22},"end":{"line":39,"column":36}},"type":"cond-expr","locations":[{"start":{"line":39,"column":22},"end":{"line":39,"column":36}},{"start":{"line":39,"column":39},"end":{"line":39,"column":59}}]}},"s":{"0":1,"1":1,"2":1,"3":1,"4":1,"5":1,"6":1,"7":1,"8":1,"9":0,"10":0,"11":0,"12":0,"13":0,"14":0,"15":0,"16":0,"17":0,"18":0,"19":0,"20":1},"f":{"0":0,"1":0,"2":0,"3":0},"b":{"0":[0,0]}} -,"/Users/gabrielajardimaquino/Documents/Canoo Take Home/src/client/commonStyles/stylesHome.tsx": {"path":"/Users/gabrielajardimaquino/Documents/Canoo Take Home/src/client/commonStyles/stylesHome.tsx","statementMap":{"0":{"start":{"line":2,"column":0},"end":{"line":2,"column":54}},"1":{"start":{"line":4,"column":19},"end":{"line":13,"column":3}},"2":{"start":{"line":4,"column":46},"end":{"line":13,"column":3}},"3":{"start":{"line":15,"column":23},"end":{"line":15,"column":30}}},"fnMap":{"0":{"name":"(anonymous_0)","decl":{"start":{"line":4,"column":30},"end":{"line":4,"column":31}},"loc":{"start":{"line":4,"column":41},"end":{"line":4,"column":47}}}},"branchMap":{},"s":{"0":1,"1":1,"2":0,"3":1},"f":{"0":0},"b":{}} -,"/Users/gabrielajardimaquino/Documents/Canoo Take Home/src/client/commonStyles/stylesPanel.tsx": {"path":"/Users/gabrielajardimaquino/Documents/Canoo Take Home/src/client/commonStyles/stylesPanel.tsx","statementMap":{"0":{"start":{"line":2,"column":0},"end":{"line":2,"column":54}},"1":{"start":{"line":5,"column":20},"end":{"line":44,"column":3}},"2":{"start":{"line":5,"column":47},"end":{"line":44,"column":3}},"3":{"start":{"line":46,"column":24},"end":{"line":46,"column":31}}},"fnMap":{"0":{"name":"(anonymous_0)","decl":{"start":{"line":5,"column":31},"end":{"line":5,"column":32}},"loc":{"start":{"line":5,"column":42},"end":{"line":5,"column":48}}}},"branchMap":{},"s":{"0":3,"1":3,"2":0,"3":3},"f":{"0":0},"b":{}} -,"/Users/gabrielajardimaquino/Documents/Canoo Take Home/src/client/features/lights/LightPanel.tsx": {"path":"/Users/gabrielajardimaquino/Documents/Canoo Take Home/src/client/features/lights/LightPanel.tsx","statementMap":{"0":{"start":{"line":2,"column":0},"end":{"line":2,"column":26}},"1":{"start":{"line":3,"column":0},"end":{"line":3,"column":55}},"2":{"start":{"line":4,"column":0},"end":{"line":4,"column":null}},"3":{"start":{"line":7,"column":0},"end":{"line":7,"column":71}},"4":{"start":{"line":8,"column":0},"end":{"line":8,"column":55}},"5":{"start":{"line":9,"column":0},"end":{"line":9,"column":57}},"6":{"start":{"line":11,"column":0},"end":{"line":11,"column":57}},"7":{"start":{"line":12,"column":0},"end":{"line":12,"column":53}},"8":{"start":{"line":13,"column":0},"end":{"line":13,"column":53}},"9":{"start":{"line":17,"column":18},"end":{"line":17,"column":31}},"10":{"start":{"line":19,"column":19},"end":{"line":19,"column":32}},"11":{"start":{"line":21,"column":21},"end":{"line":21,"column":65}},"12":{"start":{"line":21,"column":58},"end":{"line":21,"column":64}},"13":{"start":{"line":23,"column":22},"end":{"line":23,"column":43}},"14":{"start":{"line":25,"column":2},"end":{"line":72,"column":4}},"15":{"start":{"line":39,"column":12},"end":{"line":39,"column":46}},"16":{"start":{"line":50,"column":12},"end":{"line":50,"column":47}},"17":{"start":{"line":59,"column":82},"end":{"line":66,"column":12}},"18":{"start":{"line":15,"column":0},"end":{"line":15,"column":24}}},"fnMap":{"0":{"name":"LightPanel","decl":{"start":{"line":15,"column":24},"end":{"line":15,"column":34}},"loc":{"start":{"line":15,"column":34},"end":{"line":73,"column":1}}},"1":{"name":"(anonymous_8)","decl":{"start":{"line":21,"column":33},"end":{"line":21,"column":34}},"loc":{"start":{"line":21,"column":53},"end":{"line":21,"column":63}}},"2":{"name":"(anonymous_9)","decl":{"start":{"line":38,"column":19},"end":{"line":38,"column":null}},"loc":{"start":{"line":38,"column":19},"end":{"line":40,"column":11}}},"3":{"name":"(anonymous_10)","decl":{"start":{"line":49,"column":19},"end":{"line":49,"column":null}},"loc":{"start":{"line":49,"column":19},"end":{"line":51,"column":11}}},"4":{"name":"(anonymous_11)","decl":{"start":{"line":59,"column":27},"end":{"line":59,"column":28}},"loc":{"start":{"line":59,"column":77},"end":{"line":59,"column":null}}}},"branchMap":{},"s":{"0":2,"1":2,"2":2,"3":2,"4":2,"5":2,"6":2,"7":2,"8":2,"9":0,"10":0,"11":0,"12":0,"13":0,"14":0,"15":0,"16":0,"17":0,"18":2},"f":{"0":0,"1":0,"2":0,"3":0,"4":0},"b":{}} -,"/Users/gabrielajardimaquino/Documents/Canoo Take Home/src/client/features/lights/lightsComponents/LightForm.tsx": {"path":"/Users/gabrielajardimaquino/Documents/Canoo Take Home/src/client/features/lights/lightsComponents/LightForm.tsx","statementMap":{"0":{"start":{"line":1,"column":0},"end":{"line":1,"column":40}},"1":{"start":{"line":2,"column":0},"end":{"line":2,"column":55}},"2":{"start":{"line":3,"column":0},"end":{"line":3,"column":68}},"3":{"start":{"line":4,"column":0},"end":{"line":4,"column":57}},"4":{"start":{"line":5,"column":0},"end":{"line":5,"column":60}},"5":{"start":{"line":9,"column":19},"end":{"line":9,"column":32}},"6":{"start":{"line":10,"column":25},"end":{"line":10,"column":69}},"7":{"start":{"line":10,"column":62},"end":{"line":10,"column":68}},"8":{"start":{"line":11,"column":30},"end":{"line":13,"column":4}},"9":{"start":{"line":11,"column":15},"end":{"line":11,"column":17}},"10":{"start":{"line":11,"column":26},"end":{"line":11,"column":30}},"11":{"start":{"line":15,"column":23},"end":{"line":23,"column":3}},"12":{"start":{"line":16,"column":23},"end":{"line":16,"column":36}},"13":{"start":{"line":17,"column":22},"end":{"line":17,"column":31}},"14":{"start":{"line":18,"column":18},"end":{"line":18,"column":52}},"15":{"start":{"line":19,"column":4},"end":{"line":22,"column":7}},"16":{"start":{"line":25,"column":2},"end":{"line":58,"column":4}},"17":{"start":{"line":38,"column":10},"end":{"line":46,"column":12}},"18":{"start":{"line":47,"column":10},"end":{"line":50,"column":13}},"19":{"start":{"line":8,"column":0},"end":{"line":8,"column":24}}},"fnMap":{"0":{"name":"LightForm","decl":{"start":{"line":8,"column":24},"end":{"line":8,"column":33}},"loc":{"start":{"line":8,"column":33},"end":{"line":59,"column":1}}},"1":{"name":"(anonymous_10)","decl":{"start":{"line":10,"column":37},"end":{"line":10,"column":38}},"loc":{"start":{"line":10,"column":57},"end":{"line":10,"column":67}}},"2":{"name":"(anonymous_11)","decl":{"start":{"line":15,"column":23},"end":{"line":15,"column":24}},"loc":{"start":{"line":15,"column":62},"end":{"line":23,"column":3}}},"3":{"name":"(anonymous_12)","decl":{"start":{"line":37,"column":17},"end":{"line":37,"column":null}},"loc":{"start":{"line":37,"column":17},"end":{"line":51,"column":9}}}},"branchMap":{},"s":{"0":3,"1":3,"2":3,"3":3,"4":3,"5":0,"6":0,"7":0,"8":0,"9":0,"10":0,"11":0,"12":0,"13":0,"14":0,"15":0,"16":0,"17":0,"18":0,"19":3},"f":{"0":0,"1":0,"2":0,"3":0},"b":{}} -,"/Users/gabrielajardimaquino/Documents/Canoo Take Home/src/client/features/lights/lightsComponents/LightItem.tsx": {"path":"/Users/gabrielajardimaquino/Documents/Canoo Take Home/src/client/features/lights/lightsComponents/LightItem.tsx","statementMap":{"0":{"start":{"line":2,"column":0},"end":{"line":2,"column":26}},"1":{"start":{"line":3,"column":0},"end":{"line":3,"column":42}},"2":{"start":{"line":4,"column":0},"end":{"line":4,"column":null}},"3":{"start":{"line":7,"column":0},"end":{"line":7,"column":51}},"4":{"start":{"line":8,"column":0},"end":{"line":8,"column":62}},"5":{"start":{"line":9,"column":0},"end":{"line":9,"column":60}},"6":{"start":{"line":17,"column":38},"end":{"line":17,"column":40}},"7":{"start":{"line":17,"column":44},"end":{"line":17,"column":46}},"8":{"start":{"line":17,"column":52},"end":{"line":17,"column":69}},"9":{"start":{"line":18,"column":18},"end":{"line":18,"column":35}},"10":{"start":{"line":19,"column":19},"end":{"line":19,"column":32}},"11":{"start":{"line":21,"column":23},"end":{"line":31,"column":3}},"12":{"start":{"line":22,"column":4},"end":{"line":30,"column":6}},"13":{"start":{"line":33,"column":2},"end":{"line":59,"column":4}},"14":{"start":{"line":50,"column":12},"end":{"line":50,"column":46}},"15":{"start":{"line":17,"column":0},"end":{"line":17,"column":24}}},"fnMap":{"0":{"name":"LightItem","decl":{"start":{"line":17,"column":24},"end":{"line":17,"column":33}},"loc":{"start":{"line":17,"column":69},"end":{"line":60,"column":1}}},"1":{"name":"(anonymous_8)","decl":{"start":{"line":21,"column":23},"end":{"line":21,"column":24}},"loc":{"start":{"line":21,"column":57},"end":{"line":31,"column":3}}},"2":{"name":"(anonymous_9)","decl":{"start":{"line":49,"column":19},"end":{"line":49,"column":null}},"loc":{"start":{"line":49,"column":19},"end":{"line":51,"column":11}}}},"branchMap":{"0":{"loc":{"start":{"line":43,"column":24},"end":{"line":43,"column":28}},"type":"cond-expr","locations":[{"start":{"line":43,"column":24},"end":{"line":43,"column":28}},{"start":{"line":43,"column":31},"end":{"line":43,"column":36}}]}},"s":{"0":3,"1":3,"2":3,"3":3,"4":3,"5":3,"6":0,"7":0,"8":0,"9":0,"10":0,"11":0,"12":0,"13":0,"14":0,"15":3},"f":{"0":0,"1":0,"2":0},"b":{"0":[0,0]}} -,"/Users/gabrielajardimaquino/Documents/Canoo Take Home/src/client/features/lights/lightsStyles/stylesLightItem.tsx": {"path":"/Users/gabrielajardimaquino/Documents/Canoo Take Home/src/client/features/lights/lightsStyles/stylesLightItem.tsx","statementMap":{"0":{"start":{"line":1,"column":0},"end":{"line":1,"column":54}},"1":{"start":{"line":3,"column":24},"end":{"line":8,"column":3}},"2":{"start":{"line":3,"column":41},"end":{"line":8,"column":3}},"3":{"start":{"line":10,"column":28},"end":{"line":10,"column":35}}},"fnMap":{"0":{"name":"(anonymous_0)","decl":{"start":{"line":3,"column":35},"end":{"line":3,"column":41}},"loc":{"start":{"line":3,"column":35},"end":{"line":3,"column":42}}}},"branchMap":{},"s":{"0":4,"1":4,"2":0,"3":4},"f":{"0":0},"b":{}} -,"/Users/gabrielajardimaquino/Documents/Canoo Take Home/src/client/features/navigation/BottomBar.tsx": {"path":"/Users/gabrielajardimaquino/Documents/Canoo Take Home/src/client/features/navigation/BottomBar.tsx","statementMap":{"0":{"start":{"line":2,"column":0},"end":{"line":2,"column":26}},"1":{"start":{"line":3,"column":0},"end":{"line":3,"column":77}},"2":{"start":{"line":4,"column":0},"end":{"line":4,"column":49}},"3":{"start":{"line":5,"column":0},"end":{"line":5,"column":63}},"4":{"start":{"line":6,"column":0},"end":{"line":6,"column":65}},"5":{"start":{"line":13,"column":40},"end":{"line":13,"column":42}},"6":{"start":{"line":13,"column":49},"end":{"line":13,"column":66}},"7":{"start":{"line":14,"column":18},"end":{"line":14,"column":35}},"8":{"start":{"line":16,"column":2},"end":{"line":36,"column":4}},"9":{"start":{"line":20,"column":8},"end":{"line":20,"column":26}},"10":{"start":{"line":13,"column":0},"end":{"line":13,"column":24}}},"fnMap":{"0":{"name":"BottomBar","decl":{"start":{"line":13,"column":24},"end":{"line":13,"column":33}},"loc":{"start":{"line":13,"column":66},"end":{"line":37,"column":1}}},"1":{"name":"(anonymous_2)","decl":{"start":{"line":19,"column":16},"end":{"line":19,"column":17}},"loc":{"start":{"line":19,"column":47},"end":{"line":21,"column":7}}}},"branchMap":{},"s":{"0":2,"1":2,"2":2,"3":2,"4":2,"5":0,"6":0,"7":0,"8":0,"9":0,"10":2},"f":{"0":0,"1":0},"b":{}} -,"/Users/gabrielajardimaquino/Documents/Canoo Take Home/src/client/features/navigation/TopBar.tsx": {"path":"/Users/gabrielajardimaquino/Documents/Canoo Take Home/src/client/features/navigation/TopBar.tsx","statementMap":{"0":{"start":{"line":1,"column":0},"end":{"line":1,"column":40}},"1":{"start":{"line":2,"column":0},"end":{"line":2,"column":null}},"2":{"start":{"line":5,"column":0},"end":{"line":5,"column":47}},"3":{"start":{"line":6,"column":0},"end":{"line":6,"column":65}},"4":{"start":{"line":7,"column":0},"end":{"line":7,"column":59}},"5":{"start":{"line":10,"column":18},"end":{"line":10,"column":32}},"6":{"start":{"line":11,"column":34},"end":{"line":11,"column":48}},"7":{"start":{"line":11,"column":17},"end":{"line":11,"column":19}},"8":{"start":{"line":11,"column":30},"end":{"line":11,"column":34}},"9":{"start":{"line":12,"column":15},"end":{"line":12,"column":32}},"10":{"start":{"line":13,"column":16},"end":{"line":13,"column":41}},"11":{"start":{"line":15,"column":21},"end":{"line":17,"column":3}},"12":{"start":{"line":16,"column":4},"end":{"line":16,"column":37}},"13":{"start":{"line":20,"column":22},"end":{"line":22,"column":3}},"14":{"start":{"line":21,"column":4},"end":{"line":21,"column":22}},"15":{"start":{"line":24,"column":2},"end":{"line":71,"column":4}},"16":{"start":{"line":9,"column":0},"end":{"line":9,"column":24}}},"fnMap":{"0":{"name":"TopBar","decl":{"start":{"line":9,"column":24},"end":{"line":9,"column":30}},"loc":{"start":{"line":9,"column":30},"end":{"line":72,"column":1}}},"1":{"name":"(anonymous_8)","decl":{"start":{"line":15,"column":21},"end":{"line":15,"column":22}},"loc":{"start":{"line":15,"column":52},"end":{"line":17,"column":3}}},"2":{"name":"(anonymous_9)","decl":{"start":{"line":20,"column":22},"end":{"line":20,"column":null}},"loc":{"start":{"line":20,"column":22},"end":{"line":22,"column":3}}}},"branchMap":{},"s":{"0":2,"1":2,"2":2,"3":2,"4":2,"5":0,"6":0,"7":0,"8":0,"9":0,"10":0,"11":0,"12":0,"13":0,"14":0,"15":0,"16":2},"f":{"0":0,"1":0,"2":0},"b":{}} -,"/Users/gabrielajardimaquino/Documents/Canoo Take Home/src/client/features/navigation/navigationStyles/stylesBottomBar.tsx": {"path":"/Users/gabrielajardimaquino/Documents/Canoo Take Home/src/client/features/navigation/navigationStyles/stylesBottomBar.tsx","statementMap":{"0":{"start":{"line":1,"column":0},"end":{"line":1,"column":54}},"1":{"start":{"line":3,"column":24},"end":{"line":13,"column":3}},"2":{"start":{"line":3,"column":41},"end":{"line":13,"column":3}},"3":{"start":{"line":15,"column":28},"end":{"line":15,"column":35}}},"fnMap":{"0":{"name":"(anonymous_0)","decl":{"start":{"line":3,"column":35},"end":{"line":3,"column":41}},"loc":{"start":{"line":3,"column":35},"end":{"line":3,"column":42}}}},"branchMap":{},"s":{"0":3,"1":3,"2":0,"3":3},"f":{"0":0},"b":{}} -,"/Users/gabrielajardimaquino/Documents/Canoo Take Home/src/client/features/navigation/navigationStyles/stylesTopBar.tsx": {"path":"/Users/gabrielajardimaquino/Documents/Canoo Take Home/src/client/features/navigation/navigationStyles/stylesTopBar.tsx","statementMap":{"0":{"start":{"line":1,"column":0},"end":{"line":1,"column":54}},"1":{"start":{"line":3,"column":21},"end":{"line":13,"column":3}},"2":{"start":{"line":3,"column":71},"end":{"line":13,"column":3}},"3":{"start":{"line":15,"column":25},"end":{"line":15,"column":32}}},"fnMap":{"0":{"name":"(anonymous_0)","decl":{"start":{"line":3,"column":32},"end":{"line":3,"column":33}},"loc":{"start":{"line":3,"column":66},"end":{"line":3,"column":72}}}},"branchMap":{},"s":{"0":3,"1":3,"2":0,"3":3},"f":{"0":0},"b":{}} -,"/Users/gabrielajardimaquino/Documents/Canoo Take Home/src/client/features/temperature/TemperaturePanel.tsx": {"path":"/Users/gabrielajardimaquino/Documents/Canoo Take Home/src/client/features/temperature/TemperaturePanel.tsx","statementMap":{"0":{"start":{"line":1,"column":0},"end":{"line":1,"column":26}},"1":{"start":{"line":2,"column":0},"end":{"line":2,"column":55}},"2":{"start":{"line":3,"column":0},"end":{"line":3,"column":49}},"3":{"start":{"line":4,"column":0},"end":{"line":4,"column":69}},"4":{"start":{"line":5,"column":0},"end":{"line":5,"column":57}},"5":{"start":{"line":7,"column":0},"end":{"line":7,"column":57}},"6":{"start":{"line":8,"column":0},"end":{"line":8,"column":60}},"7":{"start":{"line":9,"column":0},"end":{"line":9,"column":74}},"8":{"start":{"line":13,"column":18},"end":{"line":13,"column":31}},"9":{"start":{"line":15,"column":18},"end":{"line":15,"column":61}},"10":{"start":{"line":15,"column":54},"end":{"line":15,"column":60}},"11":{"start":{"line":17,"column":19},"end":{"line":17,"column":32}},"12":{"start":{"line":19,"column":23},"end":{"line":21,"column":3}},"13":{"start":{"line":20,"column":4},"end":{"line":20,"column":71}},"14":{"start":{"line":23,"column":2},"end":{"line":57,"column":4}},"15":{"start":{"line":11,"column":0},"end":{"line":11,"column":24}}},"fnMap":{"0":{"name":"TemperaturePanel","decl":{"start":{"line":11,"column":24},"end":{"line":11,"column":40}},"loc":{"start":{"line":11,"column":40},"end":{"line":58,"column":1}}},"1":{"name":"(anonymous_8)","decl":{"start":{"line":15,"column":30},"end":{"line":15,"column":31}},"loc":{"start":{"line":15,"column":49},"end":{"line":15,"column":59}}},"2":{"name":"(anonymous_9)","decl":{"start":{"line":19,"column":23},"end":{"line":19,"column":24}},"loc":{"start":{"line":19,"column":60},"end":{"line":21,"column":3}}}},"branchMap":{"0":{"loc":{"start":{"line":53,"column":23},"end":{"line":53,"column":27}},"type":"cond-expr","locations":[{"start":{"line":53,"column":23},"end":{"line":53,"column":27}},{"start":{"line":53,"column":30},"end":{"line":53,"column":35}}]}},"s":{"0":2,"1":2,"2":2,"3":2,"4":2,"5":2,"6":2,"7":2,"8":0,"9":0,"10":0,"11":0,"12":0,"13":0,"14":0,"15":2},"f":{"0":0,"1":0,"2":0},"b":{"0":[0,0]}} -,"/Users/gabrielajardimaquino/Documents/Canoo Take Home/src/client/features/temperature/temperatureComponents/ChangeTemperature.tsx": {"path":"/Users/gabrielajardimaquino/Documents/Canoo Take Home/src/client/features/temperature/temperatureComponents/ChangeTemperature.tsx","statementMap":{"0":{"start":{"line":1,"column":0},"end":{"line":1,"column":26}},"1":{"start":{"line":2,"column":0},"end":{"line":2,"column":55}},"2":{"start":{"line":3,"column":0},"end":{"line":3,"column":55}},"3":{"start":{"line":4,"column":0},"end":{"line":4,"column":60}},"4":{"start":{"line":5,"column":0},"end":{"line":5,"column":83}},"5":{"start":{"line":6,"column":0},"end":{"line":6,"column":90}},"6":{"start":{"line":10,"column":18},"end":{"line":10,"column":43}},"7":{"start":{"line":11,"column":18},"end":{"line":11,"column":61}},"8":{"start":{"line":11,"column":54},"end":{"line":11,"column":60}},"9":{"start":{"line":12,"column":19},"end":{"line":12,"column":32}},"10":{"start":{"line":13,"column":16},"end":{"line":13,"column":31}},"11":{"start":{"line":15,"column":2},"end":{"line":41,"column":4}},"12":{"start":{"line":26,"column":10},"end":{"line":26,"column":63}},"13":{"start":{"line":29,"column":10},"end":{"line":34,"column":12}},"14":{"start":{"line":9,"column":0},"end":{"line":9,"column":24}}},"fnMap":{"0":{"name":"ChangeTemperature","decl":{"start":{"line":9,"column":24},"end":{"line":9,"column":41}},"loc":{"start":{"line":9,"column":41},"end":{"line":42,"column":1}}},"1":{"name":"(anonymous_8)","decl":{"start":{"line":11,"column":30},"end":{"line":11,"column":31}},"loc":{"start":{"line":11,"column":49},"end":{"line":11,"column":59}}},"2":{"name":"(anonymous_9)","decl":{"start":{"line":25,"column":18},"end":{"line":25,"column":19}},"loc":{"start":{"line":25,"column":50},"end":{"line":27,"column":9}}},"3":{"name":"(anonymous_10)","decl":{"start":{"line":28,"column":27},"end":{"line":28,"column":28}},"loc":{"start":{"line":28,"column":59},"end":{"line":35,"column":9}}}},"branchMap":{},"s":{"0":3,"1":3,"2":3,"3":3,"4":3,"5":3,"6":0,"7":0,"8":0,"9":0,"10":0,"11":0,"12":0,"13":0,"14":3},"f":{"0":0,"1":0,"2":0,"3":0},"b":{}} -,"/Users/gabrielajardimaquino/Documents/Canoo Take Home/src/client/features/temperature/temperatureComponents/Thermostat.tsx": {"path":"/Users/gabrielajardimaquino/Documents/Canoo Take Home/src/client/features/temperature/temperatureComponents/Thermostat.tsx","statementMap":{"0":{"start":{"line":2,"column":0},"end":{"line":2,"column":26}},"1":{"start":{"line":3,"column":0},"end":{"line":3,"column":42}},"2":{"start":{"line":5,"column":0},"end":{"line":5,"column":69}},"3":{"start":{"line":6,"column":0},"end":{"line":6,"column":null}},"4":{"start":{"line":12,"column":10},"end":{"line":12,"column":null}},"5":{"start":{"line":13,"column":10},"end":{"line":13,"column":null}},"6":{"start":{"line":14,"column":10},"end":{"line":14,"column":null}},"7":{"start":{"line":15,"column":7},"end":{"line":15,"column":null}},"8":{"start":{"line":16,"column":8},"end":{"line":16,"column":null}},"9":{"start":{"line":18,"column":50},"end":{"line":18,"column":92}},"10":{"start":{"line":18,"column":86},"end":{"line":18,"column":92}},"11":{"start":{"line":18,"column":21},"end":{"line":18,"column":23}},"12":{"start":{"line":18,"column":40},"end":{"line":18,"column":42}},"13":{"start":{"line":18,"column":45},"end":{"line":18,"column":50}},"14":{"start":{"line":21,"column":19},"end":{"line":21,"column":22}},"15":{"start":{"line":22,"column":17},"end":{"line":22,"column":29}},"16":{"start":{"line":23,"column":27},"end":{"line":23,"column":40}},"17":{"start":{"line":24,"column":27},"end":{"line":24,"column":39}},"18":{"start":{"line":25,"column":22},"end":{"line":25,"column":25}},"19":{"start":{"line":26,"column":21},"end":{"line":26,"column":40}},"20":{"start":{"line":29,"column":25},"end":{"line":29,"column":65}},"21":{"start":{"line":30,"column":25},"end":{"line":30,"column":65}},"22":{"start":{"line":31,"column":14},"end":{"line":36,"column":null}},"23":{"start":{"line":38,"column":14},"end":{"line":43,"column":null}},"24":{"start":{"line":47,"column":21},"end":{"line":52,"column":4}},"25":{"start":{"line":53,"column":26},"end":{"line":58,"column":4}},"26":{"start":{"line":59,"column":16},"end":{"line":59,"column":38}},"27":{"start":{"line":60,"column":24},"end":{"line":60,"column":53}},"28":{"start":{"line":61,"column":20},"end":{"line":61,"column":22}},"29":{"start":{"line":62,"column":2},"end":{"line":81,"column":null}},"30":{"start":{"line":62,"column":19},"end":{"line":62,"column":20}},"31":{"start":{"line":63,"column":20},"end":{"line":63,"column":50}},"32":{"start":{"line":64,"column":21},"end":{"line":64,"column":49}},"33":{"start":{"line":65,"column":24},"end":{"line":79,"column":6}},"34":{"start":{"line":80,"column":4},"end":{"line":80,"column":32}},"35":{"start":{"line":84,"column":19},"end":{"line":84,"column":35}},"36":{"start":{"line":85,"column":17},"end":{"line":91,"column":14}},"37":{"start":{"line":90,"column":27},"end":{"line":90,"column":56}},"38":{"start":{"line":92,"column":20},"end":{"line":92,"column":65}},"39":{"start":{"line":96,"column":29},"end":{"line":99,"column":4}},"40":{"start":{"line":100,"column":22},"end":{"line":103,"column":null}},"41":{"start":{"line":105,"column":13},"end":{"line":105,"column":82}},"42":{"start":{"line":106,"column":2},"end":{"line":110,"column":null}},"43":{"start":{"line":107,"column":4},"end":{"line":107,"column":14}},"44":{"start":{"line":109,"column":4},"end":{"line":109,"column":14}},"45":{"start":{"line":111,"column":26},"end":{"line":114,"column":4}},"46":{"start":{"line":117,"column":17},"end":{"line":117,"column":38}},"47":{"start":{"line":120,"column":2},"end":{"line":147,"column":4}},"48":{"start":{"line":11,"column":0},"end":{"line":11,"column":24}}},"fnMap":{"0":{"name":"Thermostat","decl":{"start":{"line":11,"column":24},"end":{"line":11,"column":34}},"loc":{"start":{"line":17,"column":17},"end":{"line":148,"column":1}}},"1":{"name":"(anonymous_2)","decl":{"start":{"line":18,"column":62},"end":{"line":18,"column":63}},"loc":{"start":{"line":18,"column":81},"end":{"line":18,"column":91}}},"2":{"name":"(anonymous_3)","decl":{"start":{"line":90,"column":9},"end":{"line":90,"column":10}},"loc":{"start":{"line":90,"column":22},"end":{"line":90,"column":38}}}},"branchMap":{"0":{"loc":{"start":{"line":63,"column":20},"end":{"line":63,"column":33}},"type":"binary-expr","locations":[{"start":{"line":63,"column":20},"end":{"line":63,"column":33}},{"start":{"line":63,"column":37},"end":{"line":63,"column":50}}]},"1":{"loc":{"start":{"line":64,"column":21},"end":{"line":64,"column":33}},"type":"binary-expr","locations":[{"start":{"line":64,"column":21},"end":{"line":64,"column":33}},{"start":{"line":64,"column":37},"end":{"line":64,"column":49}}]},"2":{"loc":{"start":{"line":69,"column":20},"end":{"line":69,"column":35}},"type":"cond-expr","locations":[{"start":{"line":69,"column":20},"end":{"line":69,"column":35}},{"start":{"line":69,"column":38},"end":{"line":69,"column":48}}]},"3":{"loc":{"start":{"line":76,"column":12},"end":{"line":76,"column":38}},"type":"cond-expr","locations":[{"start":{"line":76,"column":12},"end":{"line":76,"column":38}},{"start":{"line":77,"column":12},"end":{"line":77,"column":38}}]},"4":{"loc":{"start":{"line":106,"column":2},"end":{"line":110,"column":null}},"type":"if","locations":[{"start":{"line":106,"column":2},"end":{"line":110,"column":null}},{"start":{"line":106,"column":2},"end":{"line":110,"column":null}}]}},"s":{"0":3,"1":3,"2":3,"3":3,"4":0,"5":0,"6":0,"7":0,"8":0,"9":0,"10":0,"11":0,"12":0,"13":0,"14":0,"15":0,"16":0,"17":0,"18":0,"19":0,"20":0,"21":0,"22":0,"23":0,"24":0,"25":0,"26":0,"27":0,"28":0,"29":0,"30":0,"31":0,"32":0,"33":0,"34":0,"35":0,"36":0,"37":0,"38":0,"39":0,"40":0,"41":0,"42":0,"43":0,"44":0,"45":0,"46":0,"47":0,"48":3},"f":{"0":0,"1":0,"2":0},"b":{"0":[0,0],"1":[0,0],"2":[0,0],"3":[0,0],"4":[0,0]}} -,"/Users/gabrielajardimaquino/Documents/Canoo Take Home/src/client/features/temperature/temperatureHelpers/helpersChangeTemperature.tsx": {"path":"/Users/gabrielajardimaquino/Documents/Canoo Take Home/src/client/features/temperature/temperatureHelpers/helpersChangeTemperature.tsx","statementMap":{"0":{"start":{"line":1,"column":22},"end":{"line":10,"column":1}},"1":{"start":{"line":2,"column":17},"end":{"line":2,"column":19}},"2":{"start":{"line":3,"column":2},"end":{"line":8,"column":null}},"3":{"start":{"line":3,"column":15},"end":{"line":3,"column":16}},"4":{"start":{"line":4,"column":4},"end":{"line":7,"column":7}},"5":{"start":{"line":9,"column":2},"end":{"line":9,"column":16}},"6":{"start":{"line":14,"column":9},"end":{"line":14,"column":22}},"7":{"start":{"line":12,"column":18},"end":{"line":12,"column":46}},"8":{"start":{"line":12,"column":43},"end":{"line":12,"column":55}},"9":{"start":{"line":14,"column":24},"end":{"line":14,"column":33}}},"fnMap":{"0":{"name":"(anonymous_0)","decl":{"start":{"line":1,"column":22},"end":{"line":1,"column":null}},"loc":{"start":{"line":1,"column":22},"end":{"line":10,"column":1}}},"1":{"name":"(anonymous_1)","decl":{"start":{"line":12,"column":18},"end":{"line":12,"column":19}},"loc":{"start":{"line":12,"column":31},"end":{"line":12,"column":46}}}},"branchMap":{},"s":{"0":4,"1":1,"2":1,"3":1,"4":10,"5":1,"6":4,"7":4,"8":1,"9":4},"f":{"0":1,"1":1},"b":{}} -,"/Users/gabrielajardimaquino/Documents/Canoo Take Home/src/client/features/temperature/temperatureHelpers/helpersThermostat.tsx": {"path":"/Users/gabrielajardimaquino/Documents/Canoo Take Home/src/client/features/temperature/temperatureHelpers/helpersThermostat.tsx","statementMap":{"0":{"start":{"line":3,"column":21},"end":{"line":3,"column":null}},"1":{"start":{"line":3,"column":45},"end":{"line":8,"column":11}},"2":{"start":{"line":5,"column":28},"end":{"line":5,"column":87}},"3":{"start":{"line":31,"column":2},"end":{"line":31,"column":14}},"4":{"start":{"line":10,"column":20},"end":{"line":17,"column":1}},"5":{"start":{"line":11,"column":18},"end":{"line":11,"column":41}},"6":{"start":{"line":12,"column":12},"end":{"line":12,"column":32}},"7":{"start":{"line":13,"column":12},"end":{"line":13,"column":32}},"8":{"start":{"line":14,"column":13},"end":{"line":14,"column":70}},"9":{"start":{"line":15,"column":13},"end":{"line":15,"column":70}},"10":{"start":{"line":16,"column":2},"end":{"line":16,"column":18}},"11":{"start":{"line":31,"column":16},"end":{"line":31,"column":27}},"12":{"start":{"line":19,"column":21},"end":{"line":19,"column":83}},"13":{"start":{"line":19,"column":77},"end":{"line":19,"column":132}},"14":{"start":{"line":19,"column":97},"end":{"line":19,"column":131}},"15":{"start":{"line":31,"column":29},"end":{"line":31,"column":41}},"16":{"start":{"line":21,"column":24},"end":{"line":25,"column":1}},"17":{"start":{"line":22,"column":2},"end":{"line":22,"column":28}},"18":{"start":{"line":22,"column":17},"end":{"line":22,"column":28}},"19":{"start":{"line":23,"column":2},"end":{"line":23,"column":28}},"20":{"start":{"line":23,"column":17},"end":{"line":23,"column":28}},"21":{"start":{"line":24,"column":2},"end":{"line":24,"column":13}},"22":{"start":{"line":31,"column":43},"end":{"line":31,"column":58}},"23":{"start":{"line":28,"column":20},"end":{"line":28,"column":53}},"24":{"start":{"line":28,"column":52},"end":{"line":28,"column":91}},"25":{"start":{"line":31,"column":60},"end":{"line":31,"column":71}}},"fnMap":{"0":{"name":"(anonymous_0)","decl":{"start":{"line":3,"column":21},"end":{"line":3,"column":22}},"loc":{"start":{"line":3,"column":40},"end":{"line":3,"column":null}}},"1":{"name":"(anonymous_1)","decl":{"start":{"line":5,"column":9},"end":{"line":5,"column":10}},"loc":{"start":{"line":5,"column":23},"end":{"line":5,"column":29}}},"2":{"name":"(anonymous_2)","decl":{"start":{"line":10,"column":20},"end":{"line":10,"column":21}},"loc":{"start":{"line":10,"column":66},"end":{"line":17,"column":1}}},"3":{"name":"(anonymous_3)","decl":{"start":{"line":19,"column":21},"end":{"line":19,"column":22}},"loc":{"start":{"line":19,"column":72},"end":{"line":19,"column":83}}},"4":{"name":"(anonymous_4)","decl":{"start":{"line":19,"column":88},"end":{"line":19,"column":93}},"loc":{"start":{"line":19,"column":93},"end":{"line":19,"column":108}}},"5":{"name":"(anonymous_5)","decl":{"start":{"line":21,"column":24},"end":{"line":21,"column":25}},"loc":{"start":{"line":21,"column":60},"end":{"line":25,"column":1}}},"6":{"name":"(anonymous_6)","decl":{"start":{"line":28,"column":20},"end":{"line":28,"column":21}},"loc":{"start":{"line":28,"column":47},"end":{"line":28,"column":53}}}},"branchMap":{"0":{"loc":{"start":{"line":5,"column":42},"end":{"line":5,"column":45}},"type":"cond-expr","locations":[{"start":{"line":5,"column":42},"end":{"line":5,"column":45}},{"start":{"line":5,"column":48},"end":{"line":5,"column":51}}]},"1":{"loc":{"start":{"line":22,"column":2},"end":{"line":22,"column":28}},"type":"if","locations":[{"start":{"line":22,"column":2},"end":{"line":22,"column":28}},{"start":{"line":22,"column":2},"end":{"line":22,"column":28}}]},"2":{"loc":{"start":{"line":23,"column":2},"end":{"line":23,"column":28}},"type":"if","locations":[{"start":{"line":23,"column":2},"end":{"line":23,"column":28}},{"start":{"line":23,"column":2},"end":{"line":23,"column":28}}]},"3":{"loc":{"start":{"line":28,"column":68},"end":{"line":28,"column":73}},"type":"cond-expr","locations":[{"start":{"line":28,"column":68},"end":{"line":28,"column":73}},{"start":{"line":28,"column":76},"end":{"line":28,"column":89}}]}},"s":{"0":4,"1":1,"2":1,"3":4,"4":4,"5":2,"6":2,"7":2,"8":2,"9":2,"10":2,"11":4,"12":4,"13":1,"14":1,"15":4,"16":4,"17":1,"18":1,"19":0,"20":0,"21":0,"22":4,"23":4,"24":1,"25":4},"f":{"0":1,"1":1,"2":2,"3":1,"4":1,"5":1,"6":1},"b":{"0":[0,1],"1":[1,0],"2":[0,0],"3":[0,1]}} -,"/Users/gabrielajardimaquino/Documents/Canoo Take Home/src/client/features/temperature/temperatureStyles/stylesChangeTemperature.tsx": {"path":"/Users/gabrielajardimaquino/Documents/Canoo Take Home/src/client/features/temperature/temperatureStyles/stylesChangeTemperature.tsx","statementMap":{"0":{"start":{"line":2,"column":0},"end":{"line":2,"column":54}},"1":{"start":{"line":4,"column":32},"end":{"line":15,"column":3}},"2":{"start":{"line":4,"column":58},"end":{"line":15,"column":3}},"3":{"start":{"line":17,"column":36},"end":{"line":17,"column":43}}},"fnMap":{"0":{"name":"(anonymous_0)","decl":{"start":{"line":4,"column":43},"end":{"line":4,"column":44}},"loc":{"start":{"line":4,"column":53},"end":{"line":4,"column":59}}}},"branchMap":{},"s":{"0":4,"1":4,"2":0,"3":4},"f":{"0":0},"b":{}} -,"/Users/gabrielajardimaquino/Documents/Canoo Take Home/src/client/features/temperature/temperatureStyles/stylesThermostat.tsx": {"path":"/Users/gabrielajardimaquino/Documents/Canoo Take Home/src/client/features/temperature/temperatureStyles/stylesThermostat.tsx","statementMap":{"0":{"start":{"line":3,"column":25},"end":{"line":44,"column":1}},"1":{"start":{"line":4,"column":20},"end":{"line":4,"column":26}},"2":{"start":{"line":6,"column":2},"end":{"line":43,"column":4}},"3":{"start":{"line":46,"column":29},"end":{"line":46,"column":36}}},"fnMap":{"0":{"name":"(anonymous_0)","decl":{"start":{"line":3,"column":25},"end":{"line":3,"column":26}},"loc":{"start":{"line":3,"column":37},"end":{"line":44,"column":1}}}},"branchMap":{"0":{"loc":{"start":{"line":37,"column":21},"end":{"line":37,"column":24}},"type":"cond-expr","locations":[{"start":{"line":37,"column":21},"end":{"line":37,"column":24}},{"start":{"line":37,"column":27},"end":{"line":37,"column":30}}]}},"s":{"0":4,"1":0,"2":0,"3":4},"f":{"0":0},"b":{"0":[0,0]}} -,"/Users/gabrielajardimaquino/Documents/Canoo Take Home/src/client/reducer/reducer.ts": {"path":"/Users/gabrielajardimaquino/Documents/Canoo Take Home/src/client/reducer/reducer.ts","statementMap":{"0":{"start":{"line":2,"column":0},"end":{"line":2,"column":49}},"1":{"start":{"line":5,"column":0},"end":{"line":5,"column":55}},"2":{"start":{"line":6,"column":0},"end":{"line":6,"column":59}},"3":{"start":{"line":9,"column":13},"end":{"line":15,"column":2}},"4":{"start":{"line":17,"column":13},"end":{"line":127,"column":2}},"5":{"start":{"line":17,"column":24},"end":{"line":17,"column":46}},"6":{"start":{"line":19,"column":23},"end":{"line":19,"column":39}},"7":{"start":{"line":20,"column":16},"end":{"line":20,"column":76}},"8":{"start":{"line":21,"column":43},"end":{"line":21,"column":60}},"9":{"start":{"line":22,"column":49},"end":{"line":22,"column":72}},"10":{"start":{"line":23,"column":36},"end":{"line":23,"column":45}},"11":{"start":{"line":25,"column":2},"end":{"line":126,"column":null}},"12":{"start":{"line":29,"column":6},"end":{"line":29,"column":51}},"13":{"start":{"line":30,"column":6},"end":{"line":30,"column":57}},"14":{"start":{"line":31,"column":6},"end":{"line":31,"column":35}},"15":{"start":{"line":32,"column":6},"end":{"line":32,"column":65}},"16":{"start":{"line":33,"column":6},"end":{"line":33,"column":41}},"17":{"start":{"line":35,"column":6},"end":{"line":41,"column":8}},"18":{"start":{"line":45,"column":6},"end":{"line":47,"column":9}},"19":{"start":{"line":46,"column":8},"end":{"line":46,"column":50}},"20":{"start":{"line":50,"column":6},"end":{"line":50,"column":47}},"21":{"start":{"line":52,"column":6},"end":{"line":54,"column":null}},"22":{"start":{"line":58,"column":24},"end":{"line":63,"column":8}},"23":{"start":{"line":64,"column":6},"end":{"line":64,"column":39}},"24":{"start":{"line":67,"column":6},"end":{"line":67,"column":59}},"25":{"start":{"line":68,"column":6},"end":{"line":68,"column":54}},"26":{"start":{"line":70,"column":6},"end":{"line":73,"column":null}},"27":{"start":{"line":78,"column":26},"end":{"line":78,"column":48}},"28":{"start":{"line":79,"column":6},"end":{"line":79,"column":43}},"29":{"start":{"line":82,"column":6},"end":{"line":82,"column":40}},"30":{"start":{"line":83,"column":6},"end":{"line":83,"column":54}},"31":{"start":{"line":85,"column":6},"end":{"line":88,"column":null}},"32":{"start":{"line":92,"column":6},"end":{"line":92,"column":45}},"33":{"start":{"line":94,"column":6},"end":{"line":96,"column":null}},"34":{"start":{"line":101,"column":6},"end":{"line":101,"column":35}},"35":{"start":{"line":102,"column":6},"end":{"line":104,"column":null}},"36":{"start":{"line":103,"column":8},"end":{"line":103,"column":53}},"37":{"start":{"line":107,"column":30},"end":{"line":112,"column":8}},"38":{"start":{"line":113,"column":6},"end":{"line":113,"column":51}},"39":{"start":{"line":115,"column":6},"end":{"line":118,"column":null}},"40":{"start":{"line":122,"column":6},"end":{"line":122,"column":26}},"41":{"start":{"line":125,"column":6},"end":{"line":125,"column":19}}},"fnMap":{"0":{"name":"(anonymous_9)","decl":{"start":{"line":17,"column":23},"end":{"line":17,"column":24}},"loc":{"start":{"line":17,"column":65},"end":{"line":127,"column":1}}},"1":{"name":"(anonymous_10)","decl":{"start":{"line":45,"column":38},"end":{"line":45,"column":43}},"loc":{"start":{"line":45,"column":43},"end":{"line":47,"column":7}}}},"branchMap":{"0":{"loc":{"start":{"line":17,"column":24},"end":{"line":17,"column":46}},"type":"if","locations":[{"start":{"line":17,"column":24},"end":{"line":17,"column":46}},{"start":{"line":17,"column":24},"end":{"line":17,"column":46}}]},"1":{"loc":{"start":{"line":27,"column":4},"end":{"line":41,"column":8}},"type":"switch","locations":[{"start":{"line":27,"column":4},"end":{"line":41,"column":8}},{"start":{"line":43,"column":4},"end":{"line":54,"column":null}},{"start":{"line":56,"column":4},"end":{"line":73,"column":null}},{"start":{"line":76,"column":4},"end":{"line":88,"column":null}},{"start":{"line":91,"column":4},"end":{"line":96,"column":null}},{"start":{"line":99,"column":4},"end":{"line":118,"column":null}},{"start":{"line":121,"column":4},"end":{"line":122,"column":26}},{"start":{"line":124,"column":4},"end":{"line":125,"column":19}}]},"2":{"loc":{"start":{"line":102,"column":6},"end":{"line":104,"column":null}},"type":"if","locations":[{"start":{"line":102,"column":6},"end":{"line":104,"column":null}},{"start":{"line":102,"column":6},"end":{"line":104,"column":null}}]}},"s":{"0":1,"1":1,"2":1,"3":1,"4":1,"5":6,"6":3,"7":3,"8":3,"9":3,"10":3,"11":3,"12":0,"13":0,"14":0,"15":0,"16":0,"17":0,"18":0,"19":0,"20":0,"21":0,"22":0,"23":0,"24":0,"25":0,"26":0,"27":0,"28":0,"29":0,"30":0,"31":0,"32":1,"33":1,"34":0,"35":0,"36":0,"37":0,"38":0,"39":0,"40":2,"41":0},"f":{"0":3,"1":0},"b":{"0":[3,0],"1":[0,0,0,0,1,0,2,0],"2":[0,0]}} -,"/Users/gabrielajardimaquino/Documents/Canoo Take Home/src/client/reducer/actions/actions.ts": {"path":"/Users/gabrielajardimaquino/Documents/Canoo Take Home/src/client/reducer/actions/actions.ts","statementMap":{"0":{"start":{"line":1,"column":0},"end":{"line":1,"column":50}},"1":{"start":{"line":4,"column":13},"end":{"line":7,"column":3}},"2":{"start":{"line":4,"column":54},"end":{"line":7,"column":3}},"3":{"start":{"line":9,"column":13},"end":{"line":12,"column":3}},"4":{"start":{"line":9,"column":58},"end":{"line":12,"column":3}},"5":{"start":{"line":14,"column":13},"end":{"line":22,"column":3}},"6":{"start":{"line":19,"column":22},"end":{"line":22,"column":3}},"7":{"start":{"line":24,"column":13},"end":{"line":27,"column":3}},"8":{"start":{"line":24,"column":54},"end":{"line":27,"column":3}},"9":{"start":{"line":29,"column":13},"end":{"line":32,"column":3}},"10":{"start":{"line":29,"column":60},"end":{"line":32,"column":3}},"11":{"start":{"line":34,"column":13},"end":{"line":37,"column":3}},"12":{"start":{"line":34,"column":63},"end":{"line":37,"column":3}},"13":{"start":{"line":39,"column":13},"end":{"line":41,"column":3}},"14":{"start":{"line":39,"column":40},"end":{"line":41,"column":3}}},"fnMap":{"0":{"name":"(anonymous_6)","decl":{"start":{"line":4,"column":24},"end":{"line":4,"column":25}},"loc":{"start":{"line":4,"column":36},"end":{"line":4,"column":55}}},"1":{"name":"(anonymous_7)","decl":{"start":{"line":9,"column":25},"end":{"line":9,"column":26}},"loc":{"start":{"line":9,"column":40},"end":{"line":9,"column":59}}},"2":{"name":"(anonymous_8)","decl":{"start":{"line":14,"column":27},"end":{"line":14,"column":28}},"loc":{"start":{"line":19,"column":4},"end":{"line":19,"column":23}}},"3":{"name":"(anonymous_9)","decl":{"start":{"line":24,"column":27},"end":{"line":24,"column":28}},"loc":{"start":{"line":24,"column":37},"end":{"line":24,"column":55}}},"4":{"name":"(anonymous_10)","decl":{"start":{"line":29,"column":28},"end":{"line":29,"column":29}},"loc":{"start":{"line":29,"column":42},"end":{"line":29,"column":61}}},"5":{"name":"(anonymous_11)","decl":{"start":{"line":34,"column":33},"end":{"line":34,"column":34}},"loc":{"start":{"line":34,"column":45},"end":{"line":34,"column":64}}},"6":{"name":"(anonymous_12)","decl":{"start":{"line":39,"column":21},"end":{"line":39,"column":40}},"loc":{"start":{"line":39,"column":21},"end":{"line":39,"column":41}}}},"branchMap":{},"s":{"0":7,"1":7,"2":1,"3":7,"4":1,"5":7,"6":1,"7":7,"8":1,"9":7,"10":1,"11":7,"12":1,"13":7,"14":2},"f":{"0":1,"1":1,"2":1,"3":1,"4":1,"5":1,"6":2},"b":{}} -,"/Users/gabrielajardimaquino/Documents/Canoo Take Home/src/client/reducer/constants/actionTypes.ts": {"path":"/Users/gabrielajardimaquino/Documents/Canoo Take Home/src/client/reducer/constants/actionTypes.ts","statementMap":{"0":{"start":{"line":1,"column":13},"end":{"line":1,"column":36}},"1":{"start":{"line":2,"column":13},"end":{"line":2,"column":42}},"2":{"start":{"line":3,"column":13},"end":{"line":3,"column":42}},"3":{"start":{"line":4,"column":13},"end":{"line":4,"column":38}},"4":{"start":{"line":5,"column":13},"end":{"line":5,"column":44}},"5":{"start":{"line":6,"column":13},"end":{"line":6,"column":54}},"6":{"start":{"line":7,"column":13},"end":{"line":7,"column":29}}},"fnMap":{},"branchMap":{},"s":{"0":7,"1":7,"2":7,"3":7,"4":7,"5":7,"6":7},"f":{},"b":{}} -,"/Users/gabrielajardimaquino/Documents/Canoo Take Home/src/client/reducer/reducerHelpers/deleteRequest.tsx": {"path":"/Users/gabrielajardimaquino/Documents/Canoo Take Home/src/client/reducer/reducerHelpers/deleteRequest.tsx","statementMap":{"0":{"start":{"line":3,"column":2},"end":{"line":13,"column":7}},"1":{"start":{"line":8,"column":17},"end":{"line":8,"column":28}},"2":{"start":{"line":9,"column":18},"end":{"line":9,"column":23}},"3":{"start":{"line":11,"column":6},"end":{"line":11,"column":58}},"4":{"start":{"line":12,"column":6},"end":{"line":12,"column":16}},"5":{"start":{"line":2,"column":0},"end":{"line":2,"column":24}}},"fnMap":{"0":{"name":"deleteRequest","decl":{"start":{"line":2,"column":24},"end":{"line":2,"column":37}},"loc":{"start":{"line":2,"column":62},"end":{"line":14,"column":1}}},"1":{"name":"(anonymous_1)","decl":{"start":{"line":8,"column":10},"end":{"line":8,"column":13}},"loc":{"start":{"line":8,"column":13},"end":{"line":8,"column":20}}},"2":{"name":"(anonymous_2)","decl":{"start":{"line":9,"column":10},"end":{"line":9,"column":14}},"loc":{"start":{"line":9,"column":14},"end":{"line":9,"column":22}}},"3":{"name":"(anonymous_3)","decl":{"start":{"line":10,"column":11},"end":{"line":10,"column":14}},"loc":{"start":{"line":10,"column":14},"end":{"line":13,"column":5}}}},"branchMap":{},"s":{"0":0,"1":0,"2":0,"3":0,"4":0,"5":1},"f":{"0":0,"1":0,"2":0,"3":0},"b":{}} -,"/Users/gabrielajardimaquino/Documents/Canoo Take Home/src/client/reducer/reducerHelpers/postRequest.tsx": {"path":"/Users/gabrielajardimaquino/Documents/Canoo Take Home/src/client/reducer/reducerHelpers/postRequest.tsx","statementMap":{"0":{"start":{"line":3,"column":2},"end":{"line":13,"column":7}},"1":{"start":{"line":8,"column":17},"end":{"line":8,"column":28}},"2":{"start":{"line":9,"column":18},"end":{"line":9,"column":23}},"3":{"start":{"line":11,"column":6},"end":{"line":11,"column":58}},"4":{"start":{"line":12,"column":6},"end":{"line":12,"column":16}},"5":{"start":{"line":2,"column":0},"end":{"line":2,"column":24}}},"fnMap":{"0":{"name":"postRequest","decl":{"start":{"line":2,"column":24},"end":{"line":2,"column":35}},"loc":{"start":{"line":2,"column":60},"end":{"line":14,"column":1}}},"1":{"name":"(anonymous_1)","decl":{"start":{"line":8,"column":10},"end":{"line":8,"column":13}},"loc":{"start":{"line":8,"column":13},"end":{"line":8,"column":20}}},"2":{"name":"(anonymous_2)","decl":{"start":{"line":9,"column":10},"end":{"line":9,"column":14}},"loc":{"start":{"line":9,"column":14},"end":{"line":9,"column":22}}},"3":{"name":"(anonymous_3)","decl":{"start":{"line":10,"column":11},"end":{"line":10,"column":14}},"loc":{"start":{"line":10,"column":14},"end":{"line":13,"column":5}}}},"branchMap":{},"s":{"0":0,"1":0,"2":0,"3":0,"4":0,"5":1},"f":{"0":0,"1":0,"2":0,"3":0},"b":{}} -} diff --git a/coverage/lcov-report/base.css b/coverage/lcov-report/base.css deleted file mode 100644 index f418035..0000000 --- a/coverage/lcov-report/base.css +++ /dev/null @@ -1,224 +0,0 @@ -body, html { - margin:0; padding: 0; - height: 100%; -} -body { - font-family: Helvetica Neue, Helvetica, Arial; - font-size: 14px; - color:#333; -} -.small { font-size: 12px; } -*, *:after, *:before { - -webkit-box-sizing:border-box; - -moz-box-sizing:border-box; - box-sizing:border-box; - } -h1 { font-size: 20px; margin: 0;} -h2 { font-size: 14px; } -pre { - font: 12px/1.4 Consolas, "Liberation Mono", Menlo, Courier, monospace; - margin: 0; - padding: 0; - -moz-tab-size: 2; - -o-tab-size: 2; - tab-size: 2; -} -a { color:#0074D9; text-decoration:none; } -a:hover { text-decoration:underline; } -.strong { font-weight: bold; } -.space-top1 { padding: 10px 0 0 0; } -.pad2y { padding: 20px 0; } -.pad1y { padding: 10px 0; } -.pad2x { padding: 0 20px; } -.pad2 { padding: 20px; } -.pad1 { padding: 10px; } -.space-left2 { padding-left:55px; } -.space-right2 { padding-right:20px; } -.center { text-align:center; } -.clearfix { display:block; } -.clearfix:after { - content:''; - display:block; - height:0; - clear:both; - visibility:hidden; - } -.fl { float: left; } -@media only screen and (max-width:640px) { - .col3 { width:100%; max-width:100%; } - .hide-mobile { display:none!important; } -} - -.quiet { - color: #7f7f7f; - color: rgba(0,0,0,0.5); -} -.quiet a { opacity: 0.7; } - -.fraction { - font-family: Consolas, 'Liberation Mono', Menlo, Courier, monospace; - font-size: 10px; - color: #555; - background: #E8E8E8; - padding: 4px 5px; - border-radius: 3px; - vertical-align: middle; -} - -div.path a:link, div.path a:visited { color: #333; } -table.coverage { - border-collapse: collapse; - margin: 10px 0 0 0; - padding: 0; -} - -table.coverage td { - margin: 0; - padding: 0; - vertical-align: top; -} -table.coverage td.line-count { - text-align: right; - padding: 0 5px 0 20px; -} -table.coverage td.line-coverage { - text-align: right; - padding-right: 10px; - min-width:20px; -} - -table.coverage td span.cline-any { - display: inline-block; - padding: 0 5px; - width: 100%; -} -.missing-if-branch { - display: inline-block; - margin-right: 5px; - border-radius: 3px; - position: relative; - padding: 0 4px; - background: #333; - color: yellow; -} - -.skip-if-branch { - display: none; - margin-right: 10px; - position: relative; - padding: 0 4px; - background: #ccc; - color: white; -} -.missing-if-branch .typ, .skip-if-branch .typ { - color: inherit !important; -} -.coverage-summary { - border-collapse: collapse; - width: 100%; -} -.coverage-summary tr { border-bottom: 1px solid #bbb; } -.keyline-all { border: 1px solid #ddd; } -.coverage-summary td, .coverage-summary th { padding: 10px; } -.coverage-summary tbody { border: 1px solid #bbb; } -.coverage-summary td { border-right: 1px solid #bbb; } -.coverage-summary td:last-child { border-right: none; } -.coverage-summary th { - text-align: left; - font-weight: normal; - white-space: nowrap; -} -.coverage-summary th.file { border-right: none !important; } -.coverage-summary th.pct { } -.coverage-summary th.pic, -.coverage-summary th.abs, -.coverage-summary td.pct, -.coverage-summary td.abs { text-align: right; } -.coverage-summary td.file { white-space: nowrap; } -.coverage-summary td.pic { min-width: 120px !important; } -.coverage-summary tfoot td { } - -.coverage-summary .sorter { - height: 10px; - width: 7px; - display: inline-block; - margin-left: 0.5em; - background: url(sort-arrow-sprite.png) no-repeat scroll 0 0 transparent; -} -.coverage-summary .sorted .sorter { - background-position: 0 -20px; -} -.coverage-summary .sorted-desc .sorter { - background-position: 0 -10px; -} -.status-line { height: 10px; } -/* yellow */ -.cbranch-no { background: yellow !important; color: #111; } -/* dark red */ -.red.solid, .status-line.low, .low .cover-fill { background:#C21F39 } -.low .chart { border:1px solid #C21F39 } -.highlighted, -.highlighted .cstat-no, .highlighted .fstat-no, .highlighted .cbranch-no{ - background: #C21F39 !important; -} -/* medium red */ -.cstat-no, .fstat-no, .cbranch-no, .cbranch-no { background:#F6C6CE } -/* light red */ -.low, .cline-no { background:#FCE1E5 } -/* light green */ -.high, .cline-yes { background:rgb(230,245,208) } -/* medium green */ -.cstat-yes { background:rgb(161,215,106) } -/* dark green */ -.status-line.high, .high .cover-fill { background:rgb(77,146,33) } -.high .chart { border:1px solid rgb(77,146,33) } -/* dark yellow (gold) */ -.status-line.medium, .medium .cover-fill { background: #f9cd0b; } -.medium .chart { border:1px solid #f9cd0b; } -/* light yellow */ -.medium { background: #fff4c2; } - -.cstat-skip { background: #ddd; color: #111; } -.fstat-skip { background: #ddd; color: #111 !important; } -.cbranch-skip { background: #ddd !important; color: #111; } - -span.cline-neutral { background: #eaeaea; } - -.coverage-summary td.empty { - opacity: .5; - padding-top: 4px; - padding-bottom: 4px; - line-height: 1; - color: #888; -} - -.cover-fill, .cover-empty { - display:inline-block; - height: 12px; -} -.chart { - line-height: 0; -} -.cover-empty { - background: white; -} -.cover-full { - border-right: none !important; -} -pre.prettyprint { - border: none !important; - padding: 0 !important; - margin: 0 !important; -} -.com { color: #999 !important; } -.ignore-none { color: #999; font-weight: normal; } - -.wrapper { - min-height: 100%; - height: auto !important; - height: 100%; - margin: 0 auto -48px; -} -.footer, .push { - height: 48px; -} diff --git a/coverage/lcov-report/block-navigation.js b/coverage/lcov-report/block-navigation.js deleted file mode 100644 index c7ff5a5..0000000 --- a/coverage/lcov-report/block-navigation.js +++ /dev/null @@ -1,79 +0,0 @@ -/* eslint-disable */ -var jumpToCode = (function init() { - // Classes of code we would like to highlight in the file view - var missingCoverageClasses = ['.cbranch-no', '.cstat-no', '.fstat-no']; - - // Elements to highlight in the file listing view - var fileListingElements = ['td.pct.low']; - - // We don't want to select elements that are direct descendants of another match - var notSelector = ':not(' + missingCoverageClasses.join('):not(') + ') > '; // becomes `:not(a):not(b) > ` - - // Selecter that finds elements on the page to which we can jump - var selector = - fileListingElements.join(', ') + - ', ' + - notSelector + - missingCoverageClasses.join(', ' + notSelector); // becomes `:not(a):not(b) > a, :not(a):not(b) > b` - - // The NodeList of matching elements - var missingCoverageElements = document.querySelectorAll(selector); - - var currentIndex; - - function toggleClass(index) { - missingCoverageElements - .item(currentIndex) - .classList.remove('highlighted'); - missingCoverageElements.item(index).classList.add('highlighted'); - } - - function makeCurrent(index) { - toggleClass(index); - currentIndex = index; - missingCoverageElements.item(index).scrollIntoView({ - behavior: 'smooth', - block: 'center', - inline: 'center' - }); - } - - function goToPrevious() { - var nextIndex = 0; - if (typeof currentIndex !== 'number' || currentIndex === 0) { - nextIndex = missingCoverageElements.length - 1; - } else if (missingCoverageElements.length > 1) { - nextIndex = currentIndex - 1; - } - - makeCurrent(nextIndex); - } - - function goToNext() { - var nextIndex = 0; - - if ( - typeof currentIndex === 'number' && - currentIndex < missingCoverageElements.length - 1 - ) { - nextIndex = currentIndex + 1; - } - - makeCurrent(nextIndex); - } - - return function jump(event) { - switch (event.which) { - case 78: // n - case 74: // j - goToNext(); - break; - case 66: // b - case 75: // k - case 80: // p - goToPrevious(); - break; - } - }; -})(); -window.addEventListener('keydown', jumpToCode); diff --git a/coverage/lcov-report/client/App.tsx.html b/coverage/lcov-report/client/App.tsx.html deleted file mode 100644 index cf57f87..0000000 --- a/coverage/lcov-report/client/App.tsx.html +++ /dev/null @@ -1,212 +0,0 @@ - - - - - - Code coverage report for client/App.tsx - - - - - - - - - -
-
-

All files / client App.tsx

-
- -
- 47.62% - Statements - 10/21 -
- - -
- 0% - Branches - 0/2 -
- - -
- 0% - Functions - 0/4 -
- - -
- 52.63% - Lines - 10/19 -
- - -
-

- Press n or j to go to the next uncovered block, b, p or k for the previous block. -

-
-
-

-
1 -2 -3 -4 -5 -6 -7 -8 -9 -10 -11 -12 -13 -14 -15 -16 -17 -18 -19 -20 -21 -22 -23 -24 -25 -26 -27 -28 -29 -30 -31 -32 -33 -34 -35 -36 -37 -38 -39 -40 -41 -42 -43 -44 -451x -1x -1x -1x -1x -1x -1x -1x -1x -  -1x -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  - 
import React, { useState } from 'react';
-import { Container } from '@material-ui/core';
-import { useDispatch } from 'react-redux';
-import stylesHome from './commonStyles/stylesHome';
-import * as actions from './reducer/actions/actions';
-import TopBar from './features/navigation/TopBar';
-import BottomBar from './features/navigation/BottomBar';
-import TemperaturePanel from './features/temperature/TemperaturePanel';
-import LightPanel from './features/lights/LightPanel';
- 
-export default function App(): JSX.Element {
-  const classes = stylesHome();
-  const dispatch = useDispatch();
-  fetch('/api', {
-    method: 'GET',
-    headers: { 'Content-Type': 'application/json' },
-  })
-    .then(res => res.json())
-    .then(data => {
-      dispatch(
-        actions.getState({
-          temperature: data.temperature,
-          eco: data.eco,
-          lights: data.lights,
-        }),
-      );
-    })
-    .catch(err => {
-      // eslint-disable-next-line no-console
-      console.log('an error occured trying to get info');
-      throw err;
-    });
-  const [view, setView] = useState(0);
- 
-  return (
-    <Container maxWidth="lg" className={classes.root}>
-      <TopBar />
-      <div className={classes.feedContainer}>
-        {view === 1 ? <LightPanel /> : <TemperaturePanel />}
-      </div>
-      <BottomBar view={view} setView={setView} />
-    </Container>
-  );
-}
- 
- -
-
- - - - - - - - - \ No newline at end of file diff --git a/coverage/lcov-report/client/commonStyles/index.html b/coverage/lcov-report/client/commonStyles/index.html deleted file mode 100644 index 71c65c1..0000000 --- a/coverage/lcov-report/client/commonStyles/index.html +++ /dev/null @@ -1,126 +0,0 @@ - - - - - - Code coverage report for client/commonStyles - - - - - - - - - -
-
-

All files client/commonStyles

-
- -
- 75% - Statements - 6/8 -
- - -
- 100% - Branches - 0/0 -
- - -
- 0% - Functions - 0/2 -
- - -
- 100% - Lines - 6/6 -
- - -
-

- Press n or j to go to the next uncovered block, b, p or k for the previous block. -

-
-
-
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
FileStatementsBranchesFunctionsLines
stylesHome.tsx -
-
75%3/4100%0/00%0/1100%3/3
stylesPanel.tsx -
-
75%3/4100%0/00%0/1100%3/3
-
-
-
- - - - - - - - - \ No newline at end of file diff --git a/coverage/lcov-report/client/commonStyles/stylesHome.tsx.html b/coverage/lcov-report/client/commonStyles/stylesHome.tsx.html deleted file mode 100644 index 648de72..0000000 --- a/coverage/lcov-report/client/commonStyles/stylesHome.tsx.html +++ /dev/null @@ -1,125 +0,0 @@ - - - - - - Code coverage report for client/commonStyles/stylesHome.tsx - - - - - - - - - -
-
-

All files / client/commonStyles stylesHome.tsx

-
- -
- 75% - Statements - 3/4 -
- - -
- 100% - Branches - 0/0 -
- - -
- 0% - Functions - 0/1 -
- - -
- 100% - Lines - 3/3 -
- - -
-

- Press n or j to go to the next uncovered block, b, p or k for the previous block. -

-
-
-

-
1 -2 -3 -4 -5 -6 -7 -8 -9 -10 -11 -12 -13 -14 -15 -16  -1x -  -1x -  -  -  -  -  -  -  -  -  -  -1x - 
/* eslint-disable @typescript-eslint/no-explicit-any */
-import { makeStyles } from '@material-ui/core/styles';
- 
-const stylesHome = makeStyles((theme: any) => ({
-  root: {
-    display: 'flex',
-    flexDirection: 'column',
-  },
-  feedContainer: {
-    marginTop: theme.spacing(8),
-    alignItems: 'center',
-  },
-}));
- 
-export { stylesHome as default };
- 
- -
-
- - - - - - - - - \ No newline at end of file diff --git a/coverage/lcov-report/client/commonStyles/stylesPanel.tsx.html b/coverage/lcov-report/client/commonStyles/stylesPanel.tsx.html deleted file mode 100644 index 241e9d2..0000000 --- a/coverage/lcov-report/client/commonStyles/stylesPanel.tsx.html +++ /dev/null @@ -1,218 +0,0 @@ - - - - - - Code coverage report for client/commonStyles/stylesPanel.tsx - - - - - - - - - -
-
-

All files / client/commonStyles stylesPanel.tsx

-
- -
- 75% - Statements - 3/4 -
- - -
- 100% - Branches - 0/0 -
- - -
- 0% - Functions - 0/1 -
- - -
- 100% - Lines - 3/3 -
- - -
-

- Press n or j to go to the next uncovered block, b, p or k for the previous block. -

-
-
-

-
1 -2 -3 -4 -5 -6 -7 -8 -9 -10 -11 -12 -13 -14 -15 -16 -17 -18 -19 -20 -21 -22 -23 -24 -25 -26 -27 -28 -29 -30 -31 -32 -33 -34 -35 -36 -37 -38 -39 -40 -41 -42 -43 -44 -45 -46 -47  -3x -  -  -3x -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -3x - 
/* eslint-disable @typescript-eslint/no-explicit-any */
-import { makeStyles } from '@material-ui/core/styles';
- 
-// custom styles for the drawer
-const stylesPanel = makeStyles((theme: any) => ({
-  // drawer stays at fixed width, no matter the size of the screen
-  drawer: {
-    flexShrink: 0,
-  },
-  button: {
-    width: '50%',
-  },
-  title: {
-    marginLeft: '18px',
-    marginTop: '52px',
-  },
-  // width of background of drawer
-  drawerPaper: {
-    backgroundColor: '#333',
-    [theme.breakpoints.up('xs')]: {
-      width: '80%',
-      height: '70%',
-      margin: '10%',
-      marginTop: '20%',
-    },
-    [theme.breakpoints.up('sm')]: {
-      width: '80%',
-      height: '80%',
-      margin: '10%',
-    },
-    [theme.breakpoints.up('md')]: {
-      width: '90%',
-      height: '80%',
-      margin: '5%',
-    },
-  },
-  drawerContainer: {
-    overflow: 'auto',
-  },
-  form: {
-    marginLeft: 'auto',
-    marginRight: 'auto',
-  },
-}));
- 
-export { stylesPanel as default };
- 
- -
-
- - - - - - - - - \ No newline at end of file diff --git a/coverage/lcov-report/client/features/lights/LightPanel.tsx.html b/coverage/lcov-report/client/features/lights/LightPanel.tsx.html deleted file mode 100644 index 4405f7f..0000000 --- a/coverage/lcov-report/client/features/lights/LightPanel.tsx.html +++ /dev/null @@ -1,299 +0,0 @@ - - - - - - Code coverage report for client/features/lights/LightPanel.tsx - - - - - - - - - -
-
-

All files / client/features/lights LightPanel.tsx

-
- -
- 52.63% - Statements - 10/19 -
- - -
- 100% - Branches - 0/0 -
- - -
- 0% - Functions - 0/5 -
- - -
- 55.56% - Lines - 10/18 -
- - -
-

- Press n or j to go to the next uncovered block, b, p or k for the previous block. -

-
-
-

-
1 -2 -3 -4 -5 -6 -7 -8 -9 -10 -11 -12 -13 -14 -15 -16 -17 -18 -19 -20 -21 -22 -23 -24 -25 -26 -27 -28 -29 -30 -31 -32 -33 -34 -35 -36 -37 -38 -39 -40 -41 -42 -43 -44 -45 -46 -47 -48 -49 -50 -51 -52 -53 -54 -55 -56 -57 -58 -59 -60 -61 -62 -63 -64 -65 -66 -67 -68 -69 -70 -71 -72 -73 -74  -2x -2x -2x -  -  -2x -2x -2x -  -2x -2x -2x -  -2x -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  - 
/* eslint-disable react/no-array-index-key */
-import React from 'react';
-import { useSelector, useDispatch } from 'react-redux';
-import {
-  Button, Drawer, List, Divider,
-} from '@material-ui/core';
-import PowerSettingsNewIcon from '@material-ui/icons/PowerSettingsNew';
-import PowerOffIcon from '@material-ui/icons/PowerOff';
-import stylesPanel from '../../commonStyles/stylesPanel';
-import { InitialState } from '../../reducer/reducerTypes/typesReducer';
-import * as actions from '../../reducer/actions/actions';
-import LightItem from './lightsComponents/LightItem';
-import LightForm from './lightsComponents/LightForm';
- 
-export default function LightPanel(): JSX.Element {
-  // gives us access to styles object generated by makeStyles
-  const classes = stylesPanel();
-  // manupulated store central data
-  const dispatch = useDispatch();
-  // gives acess to store central data
-  const { lights } = useSelector((state: InitialState) => state);
-  // reorganizes lights in an array
-  const lightsArray = Object.values(lights);
- 
-  return (
-    <Drawer
-      classes={{
-        paper: classes.drawerPaper,
-      }}
-      className={classes.drawer}
-      variant="permanent"
-      anchor="right"
-    >
-      <h3 className={classes.title}> Lights Panel </h3>
-      <div className={classes.drawerContainer}>
-        <Button
-          // eslint-disable-next-line no-unused-vars
-          onClick={() => {
-            dispatch(actions.allLights(true));
-          }}
-          color="secondary"
-          className={classes.button}
-          startIcon={<PowerSettingsNewIcon />}
-        >
-          All On
-        </Button>
-        <Button
-          // eslint-disable-next-line no-unused-vars
-          onClick={() => {
-            dispatch(actions.allLights(false));
-          }}
-          color="default"
-          className={classes.button}
-          startIcon={<PowerOffIcon />}
-        >
-          All Off
-        </Button>
-        <List>
-          {lightsArray.map((obj: {name:string, status:boolean}, index: number) => (
-            <LightItem
-              key={index + 1}
-              id={index + 1}
-              name={obj.name}
-              status={obj.status}
-            />
-          ))}
-          <Divider />
-          <LightForm />
-        </List>
-      </div>
-    </Drawer>
-  );
-}
- 
- -
-
- - - - - - - - - \ No newline at end of file diff --git a/coverage/lcov-report/client/features/lights/index.html b/coverage/lcov-report/client/features/lights/index.html deleted file mode 100644 index 19c45d4..0000000 --- a/coverage/lcov-report/client/features/lights/index.html +++ /dev/null @@ -1,111 +0,0 @@ - - - - - - Code coverage report for client/features/lights - - - - - - - - - -
-
-

All files client/features/lights

-
- -
- 52.63% - Statements - 10/19 -
- - -
- 100% - Branches - 0/0 -
- - -
- 0% - Functions - 0/5 -
- - -
- 55.56% - Lines - 10/18 -
- - -
-

- Press n or j to go to the next uncovered block, b, p or k for the previous block. -

-
-
-
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
FileStatementsBranchesFunctionsLines
LightPanel.tsx -
-
52.63%10/19100%0/00%0/555.56%10/18
-
-
-
- - - - - - - - - \ No newline at end of file diff --git a/coverage/lcov-report/client/features/lights/lightsComponents/LightForm.tsx.html b/coverage/lcov-report/client/features/lights/lightsComponents/LightForm.tsx.html deleted file mode 100644 index 7cb82b6..0000000 --- a/coverage/lcov-report/client/features/lights/lightsComponents/LightForm.tsx.html +++ /dev/null @@ -1,257 +0,0 @@ - - - - - - Code coverage report for client/features/lights/lightsComponents/LightForm.tsx - - - - - - - - - -
-
-

All files / client/features/lights/lightsComponents LightForm.tsx

-
- -
- 30% - Statements - 6/20 -
- - -
- 100% - Branches - 0/0 -
- - -
- 0% - Functions - 0/4 -
- - -
- 35.29% - Lines - 6/17 -
- - -
-

- Press n or j to go to the next uncovered block, b, p or k for the previous block. -

-
-
-

-
1 -2 -3 -4 -5 -6 -7 -8 -9 -10 -11 -12 -13 -14 -15 -16 -17 -18 -19 -20 -21 -22 -23 -24 -25 -26 -27 -28 -29 -30 -31 -32 -33 -34 -35 -36 -37 -38 -39 -40 -41 -42 -43 -44 -45 -46 -47 -48 -49 -50 -51 -52 -53 -54 -55 -56 -57 -58 -59 -603x -3x -3x -3x -3x -  -  -3x -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  - 
import React, { useState } from 'react';
-import { useDispatch, useSelector } from 'react-redux';
-import { ListItem, TextField, IconButton } from '@material-ui/core';
-import AddCircleIcon from '@material-ui/icons/AddCircle';
-import * as actions from '../../../reducer/actions/actions';
-import { InitialState } from '../../../reducer/reducerTypes/typesReducer';
- 
-export default function LightForm(): JSX.Element {
-  const dispatch = useDispatch();
-  const { lightCount } = useSelector((state: InitialState) => state);
-  const [fields, setFields] = useState({
-    input: '',
-  });
- 
-  const handleChange = (e:{target:{name:string, value:string}}) => {
-    const targetName = e.target.name;
-    const { value } = e.target;
-    const clean = value.replace(/[^A-Za-z0-9]/g, '');
-    setFields({
-      ...fields,
-      [targetName]: clean,
-    });
-  };
- 
-  return (
-    <ListItem>
-      <TextField
-        id="input-light"
-        label="Add a new light"
-        required
-        name="input"
-        value={fields.input}
-        onChange={handleChange}
-      />
-      <IconButton
-        // eslint-disable-next-line no-unused-vars
-        onClick={() => {
-          dispatch(
-            actions.updateLight({
-              id: lightCount + 1,
-              value: {
-                name: fields.input,
-                status: false,
-              },
-            }),
-          );
-          setFields({
-            ...fields,
-            input: '',
-          });
-        }}
-        edge="end"
-        aria-label="add"
-      >
-        <AddCircleIcon />
-      </IconButton>
-    </ListItem>
-  );
-}
- 
- -
-
- - - - - - - - - \ No newline at end of file diff --git a/coverage/lcov-report/client/features/lights/lightsComponents/LightItem.tsx.html b/coverage/lcov-report/client/features/lights/lightsComponents/LightItem.tsx.html deleted file mode 100644 index 750a5b5..0000000 --- a/coverage/lcov-report/client/features/lights/lightsComponents/LightItem.tsx.html +++ /dev/null @@ -1,260 +0,0 @@ - - - - - - Code coverage report for client/features/lights/lightsComponents/LightItem.tsx - - - - - - - - - -
-
-

All files / client/features/lights/lightsComponents LightItem.tsx

-
- -
- 43.75% - Statements - 7/16 -
- - -
- 0% - Branches - 0/2 -
- - -
- 0% - Functions - 0/3 -
- - -
- 53.85% - Lines - 7/13 -
- - -
-

- Press n or j to go to the next uncovered block, b, p or k for the previous block. -

-
-
-

-
1 -2 -3 -4 -5 -6 -7 -8 -9 -10 -11 -12 -13 -14 -15 -16 -17 -18 -19 -20 -21 -22 -23 -24 -25 -26 -27 -28 -29 -30 -31 -32 -33 -34 -35 -36 -37 -38 -39 -40 -41 -42 -43 -44 -45 -46 -47 -48 -49 -50 -51 -52 -53 -54 -55 -56 -57 -58 -59 -60 -61  -3x -3x -3x -  -  -3x -3x -3x -  -  -  -  -  -  -  -3x -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  - 
/* eslint-disable react/prop-types */
-import React from 'react';
-import { useDispatch } from 'react-redux';
-import {
-  FormControlLabel, ListItem, ListItemSecondaryAction, ListItemText, Switch, IconButton,
-} from '@material-ui/core';
-import DeleteIcon from '@material-ui/icons/Delete';
-import stylesLightItem from '../lightsStyles/stylesLightItem';
-import * as actions from '../../../reducer/actions/actions';
- 
-export interface typesLightItem {
-  id: number,
-  name: string,
-  status: boolean,
-}
- 
-export default function LightItem({ id, name, status }:typesLightItem): JSX.Element {
-  const classes = stylesLightItem();
-  const dispatch = useDispatch();
- 
-  const handleChange = (event: {target:{checked:boolean}}) => {
-    dispatch(
-      actions.updateLight({
-        id,
-        value: {
-          name,
-          status: event.target.checked,
-        },
-      }),
-    );
-  };
- 
-  return (
-    <ListItem>
-      <FormControlLabel
-        control={(
-          <Switch
-            checked={status}
-            onChange={handleChange}
-            aria-label="light switch"
-          />
-        )}
-        label={status ? 'on' : 'off'}
-      />
-      <ListItemText className={classes.name} primary={name} />
-      <ListItemSecondaryAction>
-        <IconButton
-          // eslint-disable-next-line no-unused-vars
-          onClick={() => {
-            dispatch(actions.deleteLight(id));
-          }}
-          edge="end"
-          aria-label="delete"
-        >
-          <DeleteIcon />
-        </IconButton>
-      </ListItemSecondaryAction>
-    </ListItem>
-  );
-}
- 
- -
-
- - - - - - - - - \ No newline at end of file diff --git a/coverage/lcov-report/client/features/lights/lightsComponents/index.html b/coverage/lcov-report/client/features/lights/lightsComponents/index.html deleted file mode 100644 index 98b5361..0000000 --- a/coverage/lcov-report/client/features/lights/lightsComponents/index.html +++ /dev/null @@ -1,126 +0,0 @@ - - - - - - Code coverage report for client/features/lights/lightsComponents - - - - - - - - - -
-
-

All files client/features/lights/lightsComponents

-
- -
- 36.11% - Statements - 13/36 -
- - -
- 0% - Branches - 0/2 -
- - -
- 0% - Functions - 0/7 -
- - -
- 43.33% - Lines - 13/30 -
- - -
-

- Press n or j to go to the next uncovered block, b, p or k for the previous block. -

-
-
-
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
FileStatementsBranchesFunctionsLines
LightForm.tsx -
-
30%6/20100%0/00%0/435.29%6/17
LightItem.tsx -
-
43.75%7/160%0/20%0/353.85%7/13
-
-
-
- - - - - - - - - \ No newline at end of file diff --git a/coverage/lcov-report/client/features/lights/lightsStyles/index.html b/coverage/lcov-report/client/features/lights/lightsStyles/index.html deleted file mode 100644 index a2f324a..0000000 --- a/coverage/lcov-report/client/features/lights/lightsStyles/index.html +++ /dev/null @@ -1,111 +0,0 @@ - - - - - - Code coverage report for client/features/lights/lightsStyles - - - - - - - - - -
-
-

All files client/features/lights/lightsStyles

-
- -
- 75% - Statements - 3/4 -
- - -
- 100% - Branches - 0/0 -
- - -
- 0% - Functions - 0/1 -
- - -
- 100% - Lines - 3/3 -
- - -
-

- Press n or j to go to the next uncovered block, b, p or k for the previous block. -

-
-
-
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
FileStatementsBranchesFunctionsLines
stylesLightItem.tsx -
-
75%3/4100%0/00%0/1100%3/3
-
-
-
- - - - - - - - - \ No newline at end of file diff --git a/coverage/lcov-report/client/features/lights/lightsStyles/stylesLightItem.tsx.html b/coverage/lcov-report/client/features/lights/lightsStyles/stylesLightItem.tsx.html deleted file mode 100644 index fe5f9b6..0000000 --- a/coverage/lcov-report/client/features/lights/lightsStyles/stylesLightItem.tsx.html +++ /dev/null @@ -1,110 +0,0 @@ - - - - - - Code coverage report for client/features/lights/lightsStyles/stylesLightItem.tsx - - - - - - - - - -
-
-

All files / client/features/lights/lightsStyles stylesLightItem.tsx

-
- -
- 75% - Statements - 3/4 -
- - -
- 100% - Branches - 0/0 -
- - -
- 0% - Functions - 0/1 -
- - -
- 100% - Lines - 3/3 -
- - -
-

- Press n or j to go to the next uncovered block, b, p or k for the previous block. -

-
-
-

-
1 -2 -3 -4 -5 -6 -7 -8 -9 -10 -114x -  -4x -  -  -  -  -  -  -4x - 
import { makeStyles } from '@material-ui/core/styles';
- 
-const stylesLightItem = makeStyles(() => ({
-  name: {
-    position: 'absolute',
-    left: '40%',
-  },
-}));
- 
-export { stylesLightItem as default };
- 
- -
-
- - - - - - - - - \ No newline at end of file diff --git a/coverage/lcov-report/client/features/navigation/BottomBar.tsx.html b/coverage/lcov-report/client/features/navigation/BottomBar.tsx.html deleted file mode 100644 index c975d77..0000000 --- a/coverage/lcov-report/client/features/navigation/BottomBar.tsx.html +++ /dev/null @@ -1,191 +0,0 @@ - - - - - - Code coverage report for client/features/navigation/BottomBar.tsx - - - - - - - - - -
-
-

All files / client/features/navigation BottomBar.tsx

-
- -
- 54.55% - Statements - 6/11 -
- - -
- 100% - Branches - 0/0 -
- - -
- 0% - Functions - 0/2 -
- - -
- 66.67% - Lines - 6/9 -
- - -
-

- Press n or j to go to the next uncovered block, b, p or k for the previous block. -

-
-
-

-
1 -2 -3 -4 -5 -6 -7 -8 -9 -10 -11 -12 -13 -14 -15 -16 -17 -18 -19 -20 -21 -22 -23 -24 -25 -26 -27 -28 -29 -30 -31 -32 -33 -34 -35 -36 -37 -38  -2x -2x -2x -2x -2x -  -  -  -  -  -  -2x -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  - 
/* eslint-disable react/prop-types */
-import React from 'react';
-import { BottomNavigation, BottomNavigationAction } from '@material-ui/core';
-import SpeedIcon from '@material-ui/icons/Speed';
-import EmojiObjectsIcon from '@material-ui/icons/EmojiObjects';
-import stylesBottomBar from './navigationStyles/stylesBottomBar';
- 
-export interface typesBottomBar {
-  view:number;
-  setView:(a:number) => void;
-}
- 
-export default function BottomBar({ view, setView }:typesBottomBar): JSX.Element {
-  const classes = stylesBottomBar();
- 
-  return (
-    <BottomNavigation
-      value={view}
-      onChange={(event:unknown, newValue:number) => {
-        setView(newValue);
-      }}
-      showLabels
-      className={classes.root}
-    >
-      <BottomNavigationAction
-        className={classes.button}
-        label="Temperature Panel"
-        icon={<SpeedIcon />}
-      />
-      <BottomNavigationAction
-        className={classes.button}
-        label="Light Panel"
-        icon={<EmojiObjectsIcon />}
-      />
-    </BottomNavigation>
-  );
-}
- 
- -
-
- - - - - - - - - \ No newline at end of file diff --git a/coverage/lcov-report/client/features/navigation/TopBar.tsx.html b/coverage/lcov-report/client/features/navigation/TopBar.tsx.html deleted file mode 100644 index e8b2651..0000000 --- a/coverage/lcov-report/client/features/navigation/TopBar.tsx.html +++ /dev/null @@ -1,296 +0,0 @@ - - - - - - Code coverage report for client/features/navigation/TopBar.tsx - - - - - - - - - -
-
-

All files / client/features/navigation TopBar.tsx

-
- -
- 35.29% - Statements - 6/17 -
- - -
- 100% - Branches - 0/0 -
- - -
- 0% - Functions - 0/3 -
- - -
- 40% - Lines - 6/15 -
- - -
-

- Press n or j to go to the next uncovered block, b, p or k for the previous block. -

-
-
-

-
1 -2 -3 -4 -5 -6 -7 -8 -9 -10 -11 -12 -13 -14 -15 -16 -17 -18 -19 -20 -21 -22 -23 -24 -25 -26 -27 -28 -29 -30 -31 -32 -33 -34 -35 -36 -37 -38 -39 -40 -41 -42 -43 -44 -45 -46 -47 -48 -49 -50 -51 -52 -53 -54 -55 -56 -57 -58 -59 -60 -61 -62 -63 -64 -65 -66 -67 -68 -69 -70 -71 -72 -732x -2x -  -  -2x -2x -2x -  -2x -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  - 
import React, { useState } from 'react';
-import {
-  Toolbar, Typography, IconButton, MenuItem, Menu,
-} from '@material-ui/core';
-import MenuIcon from '@material-ui/icons/Menu';
-import AccountCircleIcon from '@material-ui/icons/AccountCircle';
-import stylesTopBar from './navigationStyles/stylesTopBar';
- 
-export default function TopBar(): JSX.Element {
-  const classes = stylesTopBar();
-  const [anchorEl, setAnchorEl] = useState(null);
-  const open = Boolean(anchorEl);
-  const today = new Date().toDateString();
- 
-  const handleMenu = (event: {currentTarget:unknown}) => {
-    setAnchorEl(event.currentTarget);
-  };
- 
-  // eslint-disable-next-line no-unused-vars
-  const handleClose = () => {
-    setAnchorEl(null);
-  };
- 
-  return (
-    <div className={classes.root}>
-      <div>
-        <Toolbar>
-          <IconButton
-            edge="start"
-            className={classes.menuButton}
-            color="inherit"
-            aria-label="menu"
-          >
-            <MenuIcon />
-          </IconButton>
-          <Typography variant="h6" className={classes.title}>
-            {today}
-          </Typography>
-          <div>
-            <IconButton
-              aria-label="account of current user"
-              aria-controls="menu-appbar"
-              aria-haspopup="true"
-              onClick={handleMenu}
-              color="inherit"
-            >
-              <AccountCircleIcon />
-            </IconButton>
-            <Menu
-              id="menu-appbar"
-              anchorEl={anchorEl}
-              anchorOrigin={{
-                vertical: 'top',
-                horizontal: 'right',
-              }}
-              keepMounted
-              transformOrigin={{
-                vertical: 'top',
-                horizontal: 'right',
-              }}
-              open={open}
-              onClose={handleClose}
-            >
-              <MenuItem onClick={handleClose}>Login</MenuItem>
-              <MenuItem onClick={handleClose}>Sign up </MenuItem>
-            </Menu>
-          </div>
-        </Toolbar>
-      </div>
-    </div>
-  );
-}
- 
- -
-
- - - - - - - - - \ No newline at end of file diff --git a/coverage/lcov-report/client/features/navigation/index.html b/coverage/lcov-report/client/features/navigation/index.html deleted file mode 100644 index 35d1c6f..0000000 --- a/coverage/lcov-report/client/features/navigation/index.html +++ /dev/null @@ -1,126 +0,0 @@ - - - - - - Code coverage report for client/features/navigation - - - - - - - - - -
-
-

All files client/features/navigation

-
- -
- 42.86% - Statements - 12/28 -
- - -
- 100% - Branches - 0/0 -
- - -
- 0% - Functions - 0/5 -
- - -
- 50% - Lines - 12/24 -
- - -
-

- Press n or j to go to the next uncovered block, b, p or k for the previous block. -

-
-
-
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
FileStatementsBranchesFunctionsLines
BottomBar.tsx -
-
54.55%6/11100%0/00%0/266.67%6/9
TopBar.tsx -
-
35.29%6/17100%0/00%0/340%6/15
-
-
-
- - - - - - - - - \ No newline at end of file diff --git a/coverage/lcov-report/client/features/navigation/navigationStyles/index.html b/coverage/lcov-report/client/features/navigation/navigationStyles/index.html deleted file mode 100644 index 78052c3..0000000 --- a/coverage/lcov-report/client/features/navigation/navigationStyles/index.html +++ /dev/null @@ -1,126 +0,0 @@ - - - - - - Code coverage report for client/features/navigation/navigationStyles - - - - - - - - - -
-
-

All files client/features/navigation/navigationStyles

-
- -
- 75% - Statements - 6/8 -
- - -
- 100% - Branches - 0/0 -
- - -
- 0% - Functions - 0/2 -
- - -
- 100% - Lines - 6/6 -
- - -
-

- Press n or j to go to the next uncovered block, b, p or k for the previous block. -

-
-
-
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
FileStatementsBranchesFunctionsLines
stylesBottomBar.tsx -
-
75%3/4100%0/00%0/1100%3/3
stylesTopBar.tsx -
-
75%3/4100%0/00%0/1100%3/3
-
-
-
- - - - - - - - - \ No newline at end of file diff --git a/coverage/lcov-report/client/features/navigation/navigationStyles/stylesBottomBar.tsx.html b/coverage/lcov-report/client/features/navigation/navigationStyles/stylesBottomBar.tsx.html deleted file mode 100644 index b31a02a..0000000 --- a/coverage/lcov-report/client/features/navigation/navigationStyles/stylesBottomBar.tsx.html +++ /dev/null @@ -1,125 +0,0 @@ - - - - - - Code coverage report for client/features/navigation/navigationStyles/stylesBottomBar.tsx - - - - - - - - - -
-
-

All files / client/features/navigation/navigationStyles stylesBottomBar.tsx

-
- -
- 75% - Statements - 3/4 -
- - -
- 100% - Branches - 0/0 -
- - -
- 0% - Functions - 0/1 -
- - -
- 100% - Lines - 3/3 -
- - -
-

- Press n or j to go to the next uncovered block, b, p or k for the previous block. -

-
-
-

-
1 -2 -3 -4 -5 -6 -7 -8 -9 -10 -11 -12 -13 -14 -15 -163x -  -3x -  -  -  -  -  -  -  -  -  -  -  -3x - 
import { makeStyles } from '@material-ui/core/styles';
- 
-const stylesBottomBar = makeStyles(() => ({
-  root: {
-    width: '100%',
-    position: 'fixed',
-    bottom: 0,
-    background: 'black',
-  },
-  button: {
-    width: '100%',
-  },
-}));
- 
-export { stylesBottomBar as default };
- 
- -
-
- - - - - - - - - \ No newline at end of file diff --git a/coverage/lcov-report/client/features/navigation/navigationStyles/stylesTopBar.tsx.html b/coverage/lcov-report/client/features/navigation/navigationStyles/stylesTopBar.tsx.html deleted file mode 100644 index a582563..0000000 --- a/coverage/lcov-report/client/features/navigation/navigationStyles/stylesTopBar.tsx.html +++ /dev/null @@ -1,125 +0,0 @@ - - - - - - Code coverage report for client/features/navigation/navigationStyles/stylesTopBar.tsx - - - - - - - - - -
-
-

All files / client/features/navigation/navigationStyles stylesTopBar.tsx

-
- -
- 75% - Statements - 3/4 -
- - -
- 100% - Branches - 0/0 -
- - -
- 0% - Functions - 0/1 -
- - -
- 100% - Lines - 3/3 -
- - -
-

- Press n or j to go to the next uncovered block, b, p or k for the previous block. -

-
-
-

-
1 -2 -3 -4 -5 -6 -7 -8 -9 -10 -11 -12 -13 -14 -15 -163x -  -3x -  -  -  -  -  -  -  -  -  -  -  -3x - 
import { makeStyles } from '@material-ui/core/styles';
- 
-const stylesTopBar = makeStyles((theme: {spacing:(x:number)=>void}) => ({
-  root: {
-    flexGrow: 1,
-  },
-  menuButton: {
-    marginRight: theme.spacing(2),
-  },
-  title: {
-    flexGrow: 1,
-  },
-}));
- 
-export { stylesTopBar as default };
- 
- -
-
- - - - - - - - - \ No newline at end of file diff --git a/coverage/lcov-report/client/features/temperature/TemperaturePanel.tsx.html b/coverage/lcov-report/client/features/temperature/TemperaturePanel.tsx.html deleted file mode 100644 index 0810059..0000000 --- a/coverage/lcov-report/client/features/temperature/TemperaturePanel.tsx.html +++ /dev/null @@ -1,254 +0,0 @@ - - - - - - Code coverage report for client/features/temperature/TemperaturePanel.tsx - - - - - - - - - -
-
-

All files / client/features/temperature TemperaturePanel.tsx

-
- -
- 56.25% - Statements - 9/16 -
- - -
- 0% - Branches - 0/2 -
- - -
- 0% - Functions - 0/3 -
- - -
- 60% - Lines - 9/15 -
- - -
-

- Press n or j to go to the next uncovered block, b, p or k for the previous block. -

-
-
-

-
1 -2 -3 -4 -5 -6 -7 -8 -9 -10 -11 -12 -13 -14 -15 -16 -17 -18 -19 -20 -21 -22 -23 -24 -25 -26 -27 -28 -29 -30 -31 -32 -33 -34 -35 -36 -37 -38 -39 -40 -41 -42 -43 -44 -45 -46 -47 -48 -49 -50 -51 -52 -53 -54 -55 -56 -57 -58 -592x -2x -2x -2x -2x -  -2x -2x -2x -  -2x -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  - 
import React from 'react';
-import { useSelector, useDispatch } from 'react-redux';
-import { green } from '@material-ui/core/colors';
-import { Drawer, FormControlLabel, Switch } from '@material-ui/core';
-import * as actions from '../../reducer/actions/actions';
-import { InitialState } from '../../reducer/reducerTypes/typesReducer';
-import stylesPanel from '../../commonStyles/stylesPanel';
-import Thermostat from './temperatureComponents/Thermostat';
-import ChangeTemperature from './temperatureComponents/ChangeTemperature';
- 
-export default function TemperaturePanel(): JSX.Element {
-  // gives us access to styles object generated by makeStyles
-  const classes = stylesPanel();
-  // gives acess to store central data
-  const { eco } = useSelector((state:InitialState) => state);
-  // manupulated store central data
-  const dispatch = useDispatch();
- 
-  const handleChange = (event: {target?: {checked?:boolean}}) => {
-    dispatch(actions.updateTemperature({ eco: event.target.checked }));
-  };
- 
-  return (
-    <Drawer
-      classes={{
-        paper: classes.drawerPaper,
-      }}
-      className={classes.drawer}
-      variant="permanent"
-      anchor="left"
-    >
-      <h3 className={classes.title}> Temperature Panel </h3>
-      <div>
-        <Thermostat
-          height="300px"
-          width="100%"
-          numTicks={100}
-          minValue={0}
-          maxValue={100}
-        />
-        <ChangeTemperature />
-      </div>
-      <div className={classes.form}>
-        <h3 style={{ color: green[500] }}>Eco mode</h3>
-        <FormControlLabel
-          control={(
-            <Switch
-              checked={eco}
-              onChange={handleChange}
-              aria-label="eco switch"
-            />
-          )}
-          label={eco ? 'on' : 'off'}
-        />
-      </div>
-    </Drawer>
-  );
-}
- 
- -
-
- - - - - - - - - \ No newline at end of file diff --git a/coverage/lcov-report/client/features/temperature/index.html b/coverage/lcov-report/client/features/temperature/index.html deleted file mode 100644 index 51e8bb5..0000000 --- a/coverage/lcov-report/client/features/temperature/index.html +++ /dev/null @@ -1,111 +0,0 @@ - - - - - - Code coverage report for client/features/temperature - - - - - - - - - -
-
-

All files client/features/temperature

-
- -
- 56.25% - Statements - 9/16 -
- - -
- 0% - Branches - 0/2 -
- - -
- 0% - Functions - 0/3 -
- - -
- 60% - Lines - 9/15 -
- - -
-

- Press n or j to go to the next uncovered block, b, p or k for the previous block. -

-
-
-
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
FileStatementsBranchesFunctionsLines
TemperaturePanel.tsx -
-
56.25%9/160%0/20%0/360%9/15
-
-
-
- - - - - - - - - \ No newline at end of file diff --git a/coverage/lcov-report/client/features/temperature/temperatureComponents/ChangeTemperature.tsx.html b/coverage/lcov-report/client/features/temperature/temperatureComponents/ChangeTemperature.tsx.html deleted file mode 100644 index eb1404b..0000000 --- a/coverage/lcov-report/client/features/temperature/temperatureComponents/ChangeTemperature.tsx.html +++ /dev/null @@ -1,206 +0,0 @@ - - - - - - Code coverage report for client/features/temperature/temperatureComponents/ChangeTemperature.tsx - - - - - - - - - -
-
-

All files / client/features/temperature/temperatureComponents ChangeTemperature.tsx

-
- -
- 46.67% - Statements - 7/15 -
- - -
- 100% - Branches - 0/0 -
- - -
- 0% - Functions - 0/4 -
- - -
- 50% - Lines - 7/14 -
- - -
-

- Press n or j to go to the next uncovered block, b, p or k for the previous block. -

-
-
-

-
1 -2 -3 -4 -5 -6 -7 -8 -9 -10 -11 -12 -13 -14 -15 -16 -17 -18 -19 -20 -21 -22 -23 -24 -25 -26 -27 -28 -29 -30 -31 -32 -33 -34 -35 -36 -37 -38 -39 -40 -41 -42 -433x -3x -3x -3x -3x -3x -  -  -3x -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  - 
import React from 'react';
-import { useDispatch, useSelector } from 'react-redux';
-import { Typography, Slider } from '@material-ui/core';
-import * as actions from '../../../reducer/actions/actions';
-import stylesChangeTemperature from '../temperatureStyles/stylesChangeTemperature';
-import { generateMarks, valueText } from '../temperatureHelpers/helpersChangeTemperature';
-import { InitialState } from '../../../reducer/reducerTypes/typesReducer';
- 
-export default function ChangeTemperature(): JSX.Element {
-  const classes = stylesChangeTemperature();
-  const { eco } = useSelector((state:InitialState) => state);
-  const dispatch = useDispatch();
-  const marks = generateMarks();
- 
-  return (
-    <div className={classes.root}>
-      <Slider
-        color="secondary"
-        defaultValue={0}
-        getAriaValueText={valueText}
-        aria-labelledby="discrete-slider-custom"
-        step={1}
-        valueLabelDisplay="auto"
-        marks={marks}
-        onChange={(e:{target:{textContent:number}}) => {
-          dispatch(actions.updateTarget(e.target.textContent));
-        }}
-        onChangeCommitted={(e:{target:{textContent:number}}) => {
-          dispatch(
-            actions.updateTemperature({
-              eco,
-              temperature: e.target.textContent,
-            }),
-          );
-        }}
-      />
-      <Typography id="discrete-slider-custom" gutterBottom>
-        Select Temperature
-      </Typography>
-    </div>
-  );
-}
- 
- -
-
- - - - - - - - - \ No newline at end of file diff --git a/coverage/lcov-report/client/features/temperature/temperatureComponents/Thermostat.tsx.html b/coverage/lcov-report/client/features/temperature/temperatureComponents/Thermostat.tsx.html deleted file mode 100644 index 3a11603..0000000 --- a/coverage/lcov-report/client/features/temperature/temperatureComponents/Thermostat.tsx.html +++ /dev/null @@ -1,524 +0,0 @@ - - - - - - Code coverage report for client/features/temperature/temperatureComponents/Thermostat.tsx - - - - - - - - - -
-
-

All files / client/features/temperature/temperatureComponents Thermostat.tsx

-
- -
- 10.2% - Statements - 5/49 -
- - -
- 0% - Branches - 0/10 -
- - -
- 0% - Functions - 0/3 -
- - -
- 11.36% - Lines - 5/44 -
- - -
-

- Press n or j to go to the next uncovered block, b, p or k for the previous block. -

-
-
-

-
1 -2 -3 -4 -5 -6 -7 -8 -9 -10 -11 -12 -13 -14 -15 -16 -17 -18 -19 -20 -21 -22 -23 -24 -25 -26 -27 -28 -29 -30 -31 -32 -33 -34 -35 -36 -37 -38 -39 -40 -41 -42 -43 -44 -45 -46 -47 -48 -49 -50 -51 -52 -53 -54 -55 -56 -57 -58 -59 -60 -61 -62 -63 -64 -65 -66 -67 -68 -69 -70 -71 -72 -73 -74 -75 -76 -77 -78 -79 -80 -81 -82 -83 -84 -85 -86 -87 -88 -89 -90 -91 -92 -93 -94 -95 -96 -97 -98 -99 -100 -101 -102 -103 -104 -105 -106 -107 -108 -109 -110 -111 -112 -113 -114 -115 -116 -117 -118 -119 -120 -121 -122 -123 -124 -125 -126 -127 -128 -129 -130 -131 -132 -133 -134 -135 -136 -137 -138 -139 -140 -141 -142 -143 -144 -145 -146 -147 -148 -149  -3x -3x -  -3x -3x -  -  -  -  -3x -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  - 
/* eslint-disable react/prop-types */
-import React from 'react';
-import { useSelector } from 'react-redux';
-import { InitialState } from '../../../reducer/reducerTypes/typesReducer';
-import stylesThermostat from '../temperatureStyles/stylesThermostat';
-import {
-  pointsToPath, rotatePoint, rotatePoints, restrictToRange, mapEcoPoint,
-} from '../temperatureHelpers/helpersThermostat';
-import { typesThermostat } from '../temperatureTypes/typesThermostat';
- 
-export default function Thermostat({
-  maxValue,
-  minValue,
-  numTicks,
-  width,
-  height,
-}:typesThermostat): JSX.Element {
-  const { temperature, targetTemperature, eco } = useSelector((state:InitialState) => state);
- 
-  // Local variables used for rendering.
-  const diameter = 400;
-  const radius = diameter / 2;
-  const ticksOuterRadius = diameter / 30;
-  const ticksInnerRadius = diameter / 8;
-  const tickDegrees = 300;
-  const rangeValue = maxValue - minValue;
- 
-  // Determine the maximum and minimum values to display.
-  const actualMinValue = Math.min(temperature, targetTemperature);
-  const actualMaxValue = Math.max(temperature, targetTemperature);
-  const min = restrictToRange(
-    Math.round(
-      ((actualMinValue - minValue) / rangeValue) * numTicks,
-    ),
-    0,
-    numTicks - 1,
-  );
-  const max = restrictToRange(
-    Math.round(
-      ((actualMaxValue - minValue) / rangeValue) * numTicks,
-    ),
-    0,
-    numTicks - 1,
-  );
- 
-  // Renders the degree ticks around the outside of the thermostat.
-  const tickPoints = [
-    [radius - 1, ticksOuterRadius],
-    [radius + 1, ticksOuterRadius],
-    [radius + 1, ticksInnerRadius],
-    [radius - 1, ticksInnerRadius],
-  ];
-  const tickPointsLarge = [
-    [radius - 1.5, ticksOuterRadius],
-    [radius + 1.5, ticksOuterRadius],
-    [radius + 1.5, ticksInnerRadius + 20],
-    [radius - 1.5, ticksInnerRadius + 20],
-  ];
-  const theta = tickDegrees / numTicks;
-  const offsetDegrees = 180 - (360 - tickDegrees) / 2;
-  const tickArray = [];
-  for (let iTick = 0; iTick < numTicks; iTick += 1) {
-    const isLarge = iTick === min || iTick === max;
-    const isActive = iTick >= min && iTick <= max;
-    const tickElement = React.createElement('path', {
-      key: ['tick-', iTick].join(''),
-      d: pointsToPath(
-        rotatePoints(
-          isLarge ? tickPointsLarge : tickPoints,
-          iTick * theta - offsetDegrees,
-          [radius, radius],
-        ),
-      ),
-      style: {
-        fill: isActive
-          ? 'rgba(255, 255, 255, 0.8)'
-          : 'rgba(255, 255, 255, 0.3)',
-      },
-    });
-    tickArray.push(tickElement);
-  }
- 
-  // Determines the positioning of the eco, should it be displayed.
-  const ecoScale = radius / 5 / 100;
-  const ecoDef = ['M', 3, 84, 'c', 24, 17, 51, 18, 73, -6, 'C', 100,
-    52, 100, 22, 100, 4, 'c', -13, 15, -37, 9, -70, 19, 'C', 4, 32, 0,
-    63, 0, 76, 'c', 6, -7, 18, -17, 33, -23, 24, -9, 34, -9, 48, -20, -9,
-    10, -20, 16, -43, 24, 'C', 22, 63, 8, 78, 3, 84, 'z',
-  ]
-    .map((point:number) => mapEcoPoint(point, ecoScale))
-    .join(' ');
-  const translate = [radius - ecoScale * 100 * 0.5, radius * 1.5];
- 
-  // Determines whether the ambient temperature label will be displayed
-  // to the left or right of the tick range.
-  const lblAmbientPosition = [
-    radius,
-    ticksOuterRadius - (ticksOuterRadius - ticksInnerRadius) / 2,
-  ];
-  const peggedValue = restrictToRange(
-    temperature,
-    minValue,
-    maxValue,
-  );
-  let degs = (tickDegrees * (peggedValue - minValue)) / rangeValue - offsetDegrees;
-  if (peggedValue > targetTemperature) {
-    degs += 8;
-  } else {
-    degs -= 8;
-  }
-  const ambientPosition = rotatePoint(lblAmbientPosition, degs, [
-    radius,
-    radius,
-  ]);
- 
-  // The styles change based on state.
-  const styles = stylesThermostat(eco);
- 
-  // Piece it all together to form the thermostat display.
-  return (
-    <svg
-      width={width}
-      height={height}
-      style={styles.dial}
-      viewBox={['0 0 ', diameter, ' ', diameter].join('')}
-    >
-      <circle cx={radius} cy={radius} r={radius} style={styles.circle} />
-      <g>{tickArray}</g>
-      <text x={radius} y={radius} style={styles.target}>
-        {Math.round(targetTemperature)}
-      </text>
-      <text
-        x={ambientPosition[0]}
-        y={ambientPosition[1]}
-        style={styles.ambient}
-      >
-        {Math.round(temperature)}
-      </text>
-      <path
-        d={ecoDef}
-        style={styles.eco}
-        transform={['translate(', translate[0], ',', translate[1], ')'].join(
-          '',
-        )}
-      />
-    </svg>
-  );
-}
- 
- -
-
- - - - - - - - - \ No newline at end of file diff --git a/coverage/lcov-report/client/features/temperature/temperatureComponents/index.html b/coverage/lcov-report/client/features/temperature/temperatureComponents/index.html deleted file mode 100644 index adb310b..0000000 --- a/coverage/lcov-report/client/features/temperature/temperatureComponents/index.html +++ /dev/null @@ -1,126 +0,0 @@ - - - - - - Code coverage report for client/features/temperature/temperatureComponents - - - - - - - - - -
-
-

All files client/features/temperature/temperatureComponents

-
- -
- 18.75% - Statements - 12/64 -
- - -
- 0% - Branches - 0/10 -
- - -
- 0% - Functions - 0/7 -
- - -
- 20.69% - Lines - 12/58 -
- - -
-

- Press n or j to go to the next uncovered block, b, p or k for the previous block. -

-
-
-
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
FileStatementsBranchesFunctionsLines
ChangeTemperature.tsx -
-
46.67%7/15100%0/00%0/450%7/14
Thermostat.tsx -
-
10.2%5/490%0/100%0/311.36%5/44
-
-
-
- - - - - - - - - \ No newline at end of file diff --git a/coverage/lcov-report/client/features/temperature/temperatureHelpers/helpersChangeTemperature.tsx.html b/coverage/lcov-report/client/features/temperature/temperatureHelpers/helpersChangeTemperature.tsx.html deleted file mode 100644 index b2314d6..0000000 --- a/coverage/lcov-report/client/features/temperature/temperatureHelpers/helpersChangeTemperature.tsx.html +++ /dev/null @@ -1,122 +0,0 @@ - - - - - - Code coverage report for client/features/temperature/temperatureHelpers/helpersChangeTemperature.tsx - - - - - - - - - -
-
-

All files / client/features/temperature/temperatureHelpers helpersChangeTemperature.tsx

-
- -
- 100% - Statements - 10/10 -
- - -
- 100% - Branches - 0/0 -
- - -
- 100% - Functions - 2/2 -
- - -
- 100% - Lines - 7/7 -
- - -
-

- Press n or j to go to the next uncovered block, b, p or k for the previous block. -

-
-
-

-
1 -2 -3 -4 -5 -6 -7 -8 -9 -10 -11 -12 -13 -14 -154x -1x -1x -10x -  -  -  -  -1x -  -  -4x -  -4x - 
const generateMarks = ():{value:number, label:string}[] => {
-  const result = [];
-  for (let i = 0; i < 100; i += 10) {
-    result.push({
-      value: i,
-      label: `${i}°`,
-    });
-  }
-  return result;
-};
- 
-const valueText = (value:number):string => `${value}°`;
- 
-export { generateMarks, valueText };
- 
- -
-
- - - - - - - - - \ No newline at end of file diff --git a/coverage/lcov-report/client/features/temperature/temperatureHelpers/helpersThermostat.tsx.html b/coverage/lcov-report/client/features/temperature/temperatureHelpers/helpersThermostat.tsx.html deleted file mode 100644 index 528c2e6..0000000 --- a/coverage/lcov-report/client/features/temperature/temperatureHelpers/helpersThermostat.tsx.html +++ /dev/null @@ -1,176 +0,0 @@ - - - - - - Code coverage report for client/features/temperature/temperatureHelpers/helpersThermostat.tsx - - - - - - - - - -
-
-

All files / client/features/temperature/temperatureHelpers helpersThermostat.tsx

-
- -
- 88.46% - Statements - 23/26 -
- - -
- 37.5% - Branches - 3/8 -
- - -
- 100% - Functions - 7/7 -
- - -
- 87.5% - Lines - 14/16 -
- - -
-

- Press n or j to go to the next uncovered block, b, p or k for the previous block. -

-
-
-

-
1 -2 -3 -4 -5 -6 -7 -8 -9 -10 -11 -12 -13 -14 -15 -16 -17 -18 -19 -20 -21 -22 -23 -24 -25 -26 -27 -28 -29 -30 -31 -32 -33  -  -4x -  -1x -  -  -  -  -4x -2x -2x -2x -2x -2x -2x -  -  -4x -  -4x -1x -  -  -  -  -  -4x -  -  -4x -  - 
/* eslint-disable max-len */
-/* eslint-disable @typescript-eslint/explicit-module-boundary-types */
-const pointsToPath = (points:unknown[][]) => [
-  points
-    .map((point, iPoint) => [iPoint > 0 ? 'L' : 'M', point[0], ' ', point[1]].join(''))
-    .join(' '),
-  'Z',
-].join('');
- 
-const rotatePoint = (point:number[], angle:number, origin:number[]) => {
-  const radians = (angle * Math.PI) / 180;
-  const x = point[0] - origin[0];
-  const y = point[1] - origin[1];
-  const x1 = x * Math.cos(radians) - y * Math.sin(radians) + origin[0];
-  const y1 = x * Math.sin(radians) + y * Math.cos(radians) + origin[1];
-  return [x1, y1];
-};
- 
-const rotatePoints = (points: number[][], angle: number, origin:number[]) => points.map(point => rotatePoint(point, angle, origin));
- 
-const restrictToRange = (val:number, min:number, max: number) => {
-  Eif (val < min) return min;
-  if (val > max) return max;
-  return val;
-};
- 
-// eslint-disable-next-line no-restricted-globals
-const mapEcoPoint = (point:number, scale:number) => (isNaN(point) ? point : point * scale);
- 
-export {
-  pointsToPath, rotatePoint, rotatePoints, restrictToRange, mapEcoPoint,
-};
- 
- -
-
- - - - - - - - - \ No newline at end of file diff --git a/coverage/lcov-report/client/features/temperature/temperatureHelpers/index.html b/coverage/lcov-report/client/features/temperature/temperatureHelpers/index.html deleted file mode 100644 index 605f93b..0000000 --- a/coverage/lcov-report/client/features/temperature/temperatureHelpers/index.html +++ /dev/null @@ -1,126 +0,0 @@ - - - - - - Code coverage report for client/features/temperature/temperatureHelpers - - - - - - - - - -
-
-

All files client/features/temperature/temperatureHelpers

-
- -
- 91.67% - Statements - 33/36 -
- - -
- 37.5% - Branches - 3/8 -
- - -
- 100% - Functions - 9/9 -
- - -
- 91.3% - Lines - 21/23 -
- - -
-

- Press n or j to go to the next uncovered block, b, p or k for the previous block. -

-
-
-
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
FileStatementsBranchesFunctionsLines
helpersChangeTemperature.tsx -
-
100%10/10100%0/0100%2/2100%7/7
helpersThermostat.tsx -
-
88.46%23/2637.5%3/8100%7/787.5%14/16
-
-
-
- - - - - - - - - \ No newline at end of file diff --git a/coverage/lcov-report/client/features/temperature/temperatureStyles/index.html b/coverage/lcov-report/client/features/temperature/temperatureStyles/index.html deleted file mode 100644 index e0ee4bd..0000000 --- a/coverage/lcov-report/client/features/temperature/temperatureStyles/index.html +++ /dev/null @@ -1,126 +0,0 @@ - - - - - - Code coverage report for client/features/temperature/temperatureStyles - - - - - - - - - -
-
-

All files client/features/temperature/temperatureStyles

-
- -
- 62.5% - Statements - 5/8 -
- - -
- 0% - Branches - 0/2 -
- - -
- 0% - Functions - 0/2 -
- - -
- 71.43% - Lines - 5/7 -
- - -
-

- Press n or j to go to the next uncovered block, b, p or k for the previous block. -

-
-
-
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
FileStatementsBranchesFunctionsLines
stylesChangeTemperature.tsx -
-
75%3/4100%0/00%0/1100%3/3
stylesThermostat.tsx -
-
50%2/40%0/20%0/150%2/4
-
-
-
- - - - - - - - - \ No newline at end of file diff --git a/coverage/lcov-report/client/features/temperature/temperatureStyles/stylesChangeTemperature.tsx.html b/coverage/lcov-report/client/features/temperature/temperatureStyles/stylesChangeTemperature.tsx.html deleted file mode 100644 index b819a34..0000000 --- a/coverage/lcov-report/client/features/temperature/temperatureStyles/stylesChangeTemperature.tsx.html +++ /dev/null @@ -1,131 +0,0 @@ - - - - - - Code coverage report for client/features/temperature/temperatureStyles/stylesChangeTemperature.tsx - - - - - - - - - -
-
-

All files / client/features/temperature/temperatureStyles stylesChangeTemperature.tsx

-
- -
- 75% - Statements - 3/4 -
- - -
- 100% - Branches - 0/0 -
- - -
- 0% - Functions - 0/1 -
- - -
- 100% - Lines - 3/3 -
- - -
-

- Press n or j to go to the next uncovered block, b, p or k for the previous block. -

-
-
-

-
1 -2 -3 -4 -5 -6 -7 -8 -9 -10 -11 -12 -13 -14 -15 -16 -17 -18  -4x -  -4x -  -  -  -  -  -  -  -  -  -  -  -  -4x - 
/* eslint-disable @typescript-eslint/no-explicit-any */
-import { makeStyles } from '@material-ui/core/styles';
- 
-const stylesChangeTemperature = makeStyles((theme:any) => ({
-  root: {
-    marginLeft: 'auto',
-    marginRight: 'auto',
-    [theme.breakpoints.down('sm')]: {
-      width: '70%',
-    },
-    [theme.breakpoints.up('md')]: {
-      width: '30%',
-    },
-  },
-}));
- 
-export { stylesChangeTemperature as default };
- 
- -
-
- - - - - - - - - \ No newline at end of file diff --git a/coverage/lcov-report/client/features/temperature/temperatureStyles/stylesThermostat.tsx.html b/coverage/lcov-report/client/features/temperature/temperatureStyles/stylesThermostat.tsx.html deleted file mode 100644 index bf472e7..0000000 --- a/coverage/lcov-report/client/features/temperature/temperatureStyles/stylesThermostat.tsx.html +++ /dev/null @@ -1,218 +0,0 @@ - - - - - - Code coverage report for client/features/temperature/temperatureStyles/stylesThermostat.tsx - - - - - - - - - -
-
-

All files / client/features/temperature/temperatureStyles stylesThermostat.tsx

-
- -
- 50% - Statements - 2/4 -
- - -
- 0% - Branches - 0/2 -
- - -
- 0% - Functions - 0/1 -
- - -
- 50% - Lines - 2/4 -
- - -
-

- Press n or j to go to the next uncovered block, b, p or k for the previous block. -

-
-
-

-
1 -2 -3 -4 -5 -6 -7 -8 -9 -10 -11 -12 -13 -14 -15 -16 -17 -18 -19 -20 -21 -22 -23 -24 -25 -26 -27 -28 -29 -30 -31 -32 -33 -34 -35 -36 -37 -38 -39 -40 -41 -42 -43 -44 -45 -46 -47  -  -4x -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -4x - 
import { typesStylesThermostat } from '../temperatureTypes/typesStylesThermostat';
- 
-const stylesThermostat = (eco:boolean):typesStylesThermostat => {
-  const dialColor = '#222';
- 
-  return {
-    dial: {
-      WebkitUserSelect: 'none',
-      MozUserSelect: 'none',
-      msUserSelect: 'none',
-      userSelect: 'none',
-    },
-    circle: {
-      fill: dialColor,
-      WebkitTransition: 'fill 0.5s',
-      transition: 'fill 0.5s',
-    },
-    target: {
-      fill: 'white',
-      textAnchor: 'middle',
-      fontFamily: 'Helvetica, sans-serif',
-      alignmentBaseline: 'central',
-      fontSize: '120px',
-      fontWeight: 'bold',
-      visibility: 'visible',
-    },
-    ambient: {
-      fill: 'white',
-      textAnchor: 'middle',
-      fontFamily: 'Helvetica, sans-serif',
-      alignmentBaseline: 'central',
-      fontSize: '22px',
-      fontWeight: 'bold',
-    },
-    eco: {
-      fill: '#13EB13',
-      opacity: eco ? '1' : '0',
-      visibility: 'visible',
-      WebkitTransition: 'opacity 0.5s',
-      transition: 'opacity 0.5s',
-      pointerEvents: 'none',
-    },
-  };
-};
- 
-export { stylesThermostat as default };
- 
- -
-
- - - - - - - - - \ No newline at end of file diff --git a/coverage/lcov-report/client/index.html b/coverage/lcov-report/client/index.html deleted file mode 100644 index 606d8e8..0000000 --- a/coverage/lcov-report/client/index.html +++ /dev/null @@ -1,111 +0,0 @@ - - - - - - Code coverage report for client - - - - - - - - - -
-
-

All files client

-
- -
- 47.62% - Statements - 10/21 -
- - -
- 0% - Branches - 0/2 -
- - -
- 0% - Functions - 0/4 -
- - -
- 52.63% - Lines - 10/19 -
- - -
-

- Press n or j to go to the next uncovered block, b, p or k for the previous block. -

-
-
-
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
FileStatementsBranchesFunctionsLines
App.tsx -
-
47.62%10/210%0/20%0/452.63%10/19
-
-
-
- - - - - - - - - \ No newline at end of file diff --git a/coverage/lcov-report/client/reducer/actions/actions.ts.html b/coverage/lcov-report/client/reducer/actions/actions.ts.html deleted file mode 100644 index 67a6f59..0000000 --- a/coverage/lcov-report/client/reducer/actions/actions.ts.html +++ /dev/null @@ -1,203 +0,0 @@ - - - - - - Code coverage report for client/reducer/actions/actions.ts - - - - - - - - - -
-
-

All files / client/reducer/actions actions.ts

-
- -
- 100% - Statements - 15/15 -
- - -
- 100% - Branches - 0/0 -
- - -
- 100% - Functions - 7/7 -
- - -
- 100% - Lines - 9/9 -
- - -
-

- Press n or j to go to the next uncovered block, b, p or k for the previous block. -

-
-
-

-
1 -2 -3 -4 -5 -6 -7 -8 -9 -10 -11 -12 -13 -14 -15 -16 -17 -18 -19 -20 -21 -22 -23 -24 -25 -26 -27 -28 -29 -30 -31 -32 -33 -34 -35 -36 -37 -38 -39 -40 -41 -427x -  -  -7x -  -  -  -  -7x -  -  -  -  -7x -  -  -  -  -1x -  -  -  -  -7x -  -  -  -  -7x -  -  -  -  -7x -  -  -  -  -7x -  -  - 
import * as types from '../constants/actionTypes';
-import { actionTypes } from '../reducerTypes/typesActionTypes';
- 
-export const getState = (obj:unknown): actionTypes => ({
-  type: types.GET_STATE,
-  payload: obj,
-});
- 
-export const allLights = (boolen:boolean): actionTypes => ({
-  type: types.ALL_LIGHTS,
-  payload: boolen,
-});
- 
-export const updateLight = (obj:{
-  id: string | number,
-  value?: {
-    name?: string,
-    status?: boolean
-  }}): actionTypes => ({
-  type: types.UPDATE_LIGHT,
-  payload: obj,
-});
- 
-export const deleteLight = (id:number):actionTypes => ({
-  type: types.DELETE_LIGHT,
-  payload: id,
-});
- 
-export const updateTarget = (number:number): actionTypes => ({
-  type: types.UPDATE_TARGET,
-  payload: number,
-});
- 
-export const updateTemperature = (obj:unknown): actionTypes => ({
-  type: types.UPDATE_TEMPERATURE,
-  payload: obj,
-});
- 
-export const reset = (): actionTypes => ({
-  type: types.RESET,
-});
- 
- -
-
- - - - - - - - - \ No newline at end of file diff --git a/coverage/lcov-report/client/reducer/actions/index.html b/coverage/lcov-report/client/reducer/actions/index.html deleted file mode 100644 index 8715693..0000000 --- a/coverage/lcov-report/client/reducer/actions/index.html +++ /dev/null @@ -1,111 +0,0 @@ - - - - - - Code coverage report for client/reducer/actions - - - - - - - - - -
-
-

All files client/reducer/actions

-
- -
- 100% - Statements - 15/15 -
- - -
- 100% - Branches - 0/0 -
- - -
- 100% - Functions - 7/7 -
- - -
- 100% - Lines - 9/9 -
- - -
-

- Press n or j to go to the next uncovered block, b, p or k for the previous block. -

-
-
-
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
FileStatementsBranchesFunctionsLines
actions.ts -
-
100%15/15100%0/0100%7/7100%9/9
-
-
-
- - - - - - - - - \ No newline at end of file diff --git a/coverage/lcov-report/client/reducer/constants/actionTypes.ts.html b/coverage/lcov-report/client/reducer/constants/actionTypes.ts.html deleted file mode 100644 index a9acbec..0000000 --- a/coverage/lcov-report/client/reducer/constants/actionTypes.ts.html +++ /dev/null @@ -1,101 +0,0 @@ - - - - - - Code coverage report for client/reducer/constants/actionTypes.ts - - - - - - - - - -
-
-

All files / client/reducer/constants actionTypes.ts

-
- -
- 100% - Statements - 7/7 -
- - -
- 100% - Branches - 0/0 -
- - -
- 100% - Functions - 0/0 -
- - -
- 100% - Lines - 7/7 -
- - -
-

- Press n or j to go to the next uncovered block, b, p or k for the previous block. -

-
-
-

-
1 -2 -3 -4 -5 -6 -7 -87x -7x -7x -7x -7x -7x -7x - 
export const GET_STATE = 'getState';
-export const UPDATE_LIGHT = 'updateLight';
-export const DELETE_LIGHT = 'deleteLight';
-export const ALL_LIGHTS = 'allLights';
-export const UPDATE_TARGET = 'updateTarget';
-export const UPDATE_TEMPERATURE = 'updateTemperature';
-export const RESET = 'reset';
- 
- -
-
- - - - - - - - - \ No newline at end of file diff --git a/coverage/lcov-report/client/reducer/constants/index.html b/coverage/lcov-report/client/reducer/constants/index.html deleted file mode 100644 index d53da00..0000000 --- a/coverage/lcov-report/client/reducer/constants/index.html +++ /dev/null @@ -1,111 +0,0 @@ - - - - - - Code coverage report for client/reducer/constants - - - - - - - - - -
-
-

All files client/reducer/constants

-
- -
- 100% - Statements - 7/7 -
- - -
- 100% - Branches - 0/0 -
- - -
- 100% - Functions - 0/0 -
- - -
- 100% - Lines - 7/7 -
- - -
-

- Press n or j to go to the next uncovered block, b, p or k for the previous block. -

-
-
-
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
FileStatementsBranchesFunctionsLines
actionTypes.ts -
-
100%7/7100%0/0100%0/0100%7/7
-
-
-
- - - - - - - - - \ No newline at end of file diff --git a/coverage/lcov-report/client/reducer/index.html b/coverage/lcov-report/client/reducer/index.html deleted file mode 100644 index 52bb148..0000000 --- a/coverage/lcov-report/client/reducer/index.html +++ /dev/null @@ -1,111 +0,0 @@ - - - - - - Code coverage report for client/reducer - - - - - - - - - -
-
-

All files client/reducer

-
- -
- 35.71% - Statements - 15/42 -
- - -
- 25% - Branches - 3/12 -
- - -
- 50% - Functions - 1/2 -
- - -
- 34.15% - Lines - 14/41 -
- - -
-

- Press n or j to go to the next uncovered block, b, p or k for the previous block. -

-
-
-
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
FileStatementsBranchesFunctionsLines
reducer.ts -
-
35.71%15/4225%3/1250%1/234.15%14/41
-
-
-
- - - - - - - - - \ No newline at end of file diff --git a/coverage/lcov-report/client/reducer/reducer.ts.html b/coverage/lcov-report/client/reducer/reducer.ts.html deleted file mode 100644 index 1961f5f..0000000 --- a/coverage/lcov-report/client/reducer/reducer.ts.html +++ /dev/null @@ -1,461 +0,0 @@ - - - - - - Code coverage report for client/reducer/reducer.ts - - - - - - - - - -
-
-

All files / client/reducer reducer.ts

-
- -
- 35.71% - Statements - 15/42 -
- - -
- 25% - Branches - 3/12 -
- - -
- 50% - Functions - 1/2 -
- - -
- 34.15% - Lines - 14/41 -
- - -
-

- Press n or j to go to the next uncovered block, b, p or k for the previous block. -

-
-
-

-
1 -2 -3 -4 -5 -6 -7 -8 -9 -10 -11 -12 -13 -14 -15 -16 -17 -18 -19 -20 -21 -22 -23 -24 -25 -26 -27 -28 -29 -30 -31 -32 -33 -34 -35 -36 -37 -38 -39 -40 -41 -42 -43 -44 -45 -46 -47 -48 -49 -50 -51 -52 -53 -54 -55 -56 -57 -58 -59 -60 -61 -62 -63 -64 -65 -66 -67 -68 -69 -70 -71 -72 -73 -74 -75 -76 -77 -78 -79 -80 -81 -82 -83 -84 -85 -86 -87 -88 -89 -90 -91 -92 -93 -94 -95 -96 -97 -98 -99 -100 -101 -102 -103 -104 -105 -106 -107 -108 -109 -110 -111 -112 -113 -114 -115 -116 -117 -118 -119 -120 -121 -122 -123 -124 -125 -126 -127 -128  -1x -  -  -1x -1x -  -  -1x -  -  -  -  -  -  -  -6x -  -3x -3x -3x -3x -3x -  -3x -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -1x -  -1x -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -2x -  -  -  -  -  - 
/* eslint-disable no-case-declarations */
-import * as types from './constants/actionTypes';
-import { actionTypes } from './reducerTypes/typesActionTypes';
-import { InitialState } from './reducerTypes/typesReducer';
-import postRequest from './reducerHelpers/postRequest';
-import deleteRequest from './reducerHelpers/deleteRequest';
- 
-// Set initial state
-export const initialState:InitialState = {
-  lightCount: 0,
-  lights: {},
-  temperature: 0,
-  targetTemperature: 0,
-  eco: false,
-};
- 
-export const reducer = (Estate = initialState, action: actionTypes): InitialState => {
-  // copy all state properties do avoid state mutability
-  let lightCountCopy = state.lightCount;
-  let lightsCopy:{1?:{name?: string, status?:boolean}} = { ...state.lights };
-  let temperatureCopy:number | undefined = state.temperature;
-  let targetTemperatureCopy:number | undefined = state.targetTemperature;
-  let ecoCopy:boolean | undefined = state.eco;
- 
-  switch (action.type) {
-    // Update state with payload
-    case types.GET_STATE:
-      // update local storage
-      temperatureCopy = action.payload.temperature;
-      targetTemperatureCopy = action.payload.temperature;
-      ecoCopy = action.payload.eco;
-      lightCountCopy = Object.keys(action.payload.lights).length;
-      lightsCopy = action.payload.lights;
- 
-      return {
-        lightCount: lightCountCopy,
-        lights: lightsCopy,
-        targetTemperature: targetTemperatureCopy,
-        temperature: temperatureCopy,
-        eco: ecoCopy,
-      };
- 
-    case types.ALL_LIGHTS:
-      // update local storage
-      Object.keys(lightsCopy).forEach(light => {
-        lightsCopy[light].status = action.payload;
-      });
- 
-      // update database
-      postRequest('/api', { obj: lightsCopy });
- 
-      return {
-        ...state,
-        lights: lightsCopy,
-      };
-    case types.UPDATE_LIGHT:
-      // update database
-      const lightData = {
-        obj: {
-          id: action.payload.id,
-          value: action.payload.value,
-        },
-      };
-      postRequest('/light', lightData);
- 
-      // update local storage
-      lightsCopy[action.payload.id] = action.payload.value;
-      lightCountCopy = Object.keys(lightsCopy).length;
- 
-      return {
-        ...state,
-        lightCount: lightCountCopy,
-        lights: lightsCopy,
-      };
- 
-    case types.DELETE_LIGHT:
-      // update database
-      const lightDelete = { id: action.payload };
-      deleteRequest('/light', lightDelete);
- 
-      // update local storage
-      delete lightsCopy[action.payload];
-      lightCountCopy = Object.keys(lightsCopy).length;
- 
-      return {
-        ...state,
-        lightCount: lightCountCopy,
-        lights: lightsCopy,
-      };
- 
-    case types.UPDATE_TARGET:
-      targetTemperatureCopy = action.payload;
- 
-      return {
-        ...state,
-        targetTemperature: targetTemperatureCopy,
-      };
- 
-    case types.UPDATE_TEMPERATURE:
-      // update local storage
-      ecoCopy = action.payload.eco;
-      if (action.payload.temperature) {
-        temperatureCopy = action.payload.temperature;
-      }
- 
-      // update database
-      const temperatureData = {
-        obj: {
-          eco: ecoCopy,
-          temperature: temperatureCopy,
-        },
-      };
-      postRequest('/temperature', temperatureData);
- 
-      return {
-        ...state,
-        temperature: temperatureCopy,
-        eco: ecoCopy,
-      };
- 
-    case types.RESET:
-      return initialState;
- 
-    default:
-      return state;
-  }
-};
- 
- -
-
- - - - - - - - - \ No newline at end of file diff --git a/coverage/lcov-report/client/reducer/reducerHelpers/deleteRequest.tsx.html b/coverage/lcov-report/client/reducer/reducerHelpers/deleteRequest.tsx.html deleted file mode 100644 index b298542..0000000 --- a/coverage/lcov-report/client/reducer/reducerHelpers/deleteRequest.tsx.html +++ /dev/null @@ -1,122 +0,0 @@ - - - - - - Code coverage report for client/reducer/reducerHelpers/deleteRequest.tsx - - - - - - - - - -
-
-

All files / client/reducer/reducerHelpers deleteRequest.tsx

-
- -
- 16.67% - Statements - 1/6 -
- - -
- 100% - Branches - 0/0 -
- - -
- 0% - Functions - 0/4 -
- - -
- 16.67% - Lines - 1/6 -
- - -
-

- Press n or j to go to the next uncovered block, b, p or k for the previous block. -

-
-
-

-
1 -2 -3 -4 -5 -6 -7 -8 -9 -10 -11 -12 -13 -14 -15  -1x -  -  -  -  -  -  -  -  -  -  -  -  - 
/* eslint-disable no-console */
-export default function deleteRequest(api:string, body:unknown):void {
-  fetch(`${api}`, {
-    method: 'DELETE',
-    headers: { 'Content-Type': 'application/json' },
-    body: JSON.stringify(body),
-  })
-    .then(res => res.json())
-    .then(data => data)
-    .catch(err => {
-      console.log('an error occured trying to post info');
-      throw err;
-    });
-}
- 
- -
-
- - - - - - - - - \ No newline at end of file diff --git a/coverage/lcov-report/client/reducer/reducerHelpers/index.html b/coverage/lcov-report/client/reducer/reducerHelpers/index.html deleted file mode 100644 index 6801690..0000000 --- a/coverage/lcov-report/client/reducer/reducerHelpers/index.html +++ /dev/null @@ -1,126 +0,0 @@ - - - - - - Code coverage report for client/reducer/reducerHelpers - - - - - - - - - -
-
-

All files client/reducer/reducerHelpers

-
- -
- 16.67% - Statements - 2/12 -
- - -
- 100% - Branches - 0/0 -
- - -
- 0% - Functions - 0/8 -
- - -
- 16.67% - Lines - 2/12 -
- - -
-

- Press n or j to go to the next uncovered block, b, p or k for the previous block. -

-
-
-
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
FileStatementsBranchesFunctionsLines
deleteRequest.tsx -
-
16.67%1/6100%0/00%0/416.67%1/6
postRequest.tsx -
-
16.67%1/6100%0/00%0/416.67%1/6
-
-
-
- - - - - - - - - \ No newline at end of file diff --git a/coverage/lcov-report/client/reducer/reducerHelpers/postRequest.tsx.html b/coverage/lcov-report/client/reducer/reducerHelpers/postRequest.tsx.html deleted file mode 100644 index c69bef0..0000000 --- a/coverage/lcov-report/client/reducer/reducerHelpers/postRequest.tsx.html +++ /dev/null @@ -1,122 +0,0 @@ - - - - - - Code coverage report for client/reducer/reducerHelpers/postRequest.tsx - - - - - - - - - -
-
-

All files / client/reducer/reducerHelpers postRequest.tsx

-
- -
- 16.67% - Statements - 1/6 -
- - -
- 100% - Branches - 0/0 -
- - -
- 0% - Functions - 0/4 -
- - -
- 16.67% - Lines - 1/6 -
- - -
-

- Press n or j to go to the next uncovered block, b, p or k for the previous block. -

-
-
-

-
1 -2 -3 -4 -5 -6 -7 -8 -9 -10 -11 -12 -13 -14 -15  -1x -  -  -  -  -  -  -  -  -  -  -  -  - 
/* eslint-disable no-console */
-export default function postRequest(api:string, body:unknown):void {
-  fetch(`${api}`, {
-    method: 'POST',
-    headers: { 'Content-Type': 'application/json' },
-    body: JSON.stringify(body),
-  })
-    .then(res => res.json())
-    .then(data => data)
-    .catch(err => {
-      console.log('an error occured trying to post info');
-      throw err;
-    });
-}
- 
- -
-
- - - - - - - - - \ No newline at end of file diff --git a/coverage/lcov-report/favicon.png b/coverage/lcov-report/favicon.png deleted file mode 100644 index 6691817834a957c938e7f09640a37a645fb31457..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 540 zcmV+%0^|LOP)wSzy{h>9elhJ=8GnBQmf?)AI(^#wDA_`!QTxaXXE&bjxo zTGCc%V|W`}Lwz0rDO*qBbGY-M@aNENIZ1rK?nOAibaC*vb%CF;I_~lkJawax%_+1J zLn(#pv_v{f0`v`Cfp6()7MB(>IoTAiQdKxgxX?VyV&KVZ7b$vn<8|Z<9$35C+G_8SH0x6Y(xB&~bmn%r}ceRwbc0000 - - - - Code coverage report for All files - - - - - - - - - -
-
-

All files

-
- -
- 48.77% - Statements - 158/324 -
- - -
- 15.79% - Branches - 6/38 -
- - -
- 26.56% - Functions - 17/64 -
- - -
- 50% - Lines - 139/278 -
- - -
-

- Press n or j to go to the next uncovered block, b, p or k for the previous block. -

-
-
-
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
FileStatementsBranchesFunctionsLines
client -
-
47.62%10/210%0/20%0/452.63%10/19
client/commonStyles -
-
75%6/8100%0/00%0/2100%6/6
client/features/lights -
-
52.63%10/19100%0/00%0/555.56%10/18
client/features/lights/lightsComponents -
-
36.11%13/360%0/20%0/743.33%13/30
client/features/lights/lightsStyles -
-
75%3/4100%0/00%0/1100%3/3
client/features/navigation -
-
42.86%12/28100%0/00%0/550%12/24
client/features/navigation/navigationStyles -
-
75%6/8100%0/00%0/2100%6/6
client/features/temperature -
-
56.25%9/160%0/20%0/360%9/15
client/features/temperature/temperatureComponents -
-
18.75%12/640%0/100%0/720.69%12/58
client/features/temperature/temperatureHelpers -
-
91.67%33/3637.5%3/8100%9/991.3%21/23
client/features/temperature/temperatureStyles -
-
62.5%5/80%0/20%0/271.43%5/7
client/reducer -
-
35.71%15/4225%3/1250%1/234.15%14/41
client/reducer/actions -
-
100%15/15100%0/0100%7/7100%9/9
client/reducer/constants -
-
100%7/7100%0/0100%0/0100%7/7
client/reducer/reducerHelpers -
-
16.67%2/12100%0/00%0/816.67%2/12
-
-
-
- - - - - - - - - \ No newline at end of file diff --git a/coverage/lcov-report/prettify.css b/coverage/lcov-report/prettify.css deleted file mode 100644 index b317a7c..0000000 --- a/coverage/lcov-report/prettify.css +++ /dev/null @@ -1 +0,0 @@ -.pln{color:#000}@media screen{.str{color:#080}.kwd{color:#008}.com{color:#800}.typ{color:#606}.lit{color:#066}.pun,.opn,.clo{color:#660}.tag{color:#008}.atn{color:#606}.atv{color:#080}.dec,.var{color:#606}.fun{color:red}}@media print,projection{.str{color:#060}.kwd{color:#006;font-weight:bold}.com{color:#600;font-style:italic}.typ{color:#404;font-weight:bold}.lit{color:#044}.pun,.opn,.clo{color:#440}.tag{color:#006;font-weight:bold}.atn{color:#404}.atv{color:#060}}pre.prettyprint{padding:2px;border:1px solid #888}ol.linenums{margin-top:0;margin-bottom:0}li.L0,li.L1,li.L2,li.L3,li.L5,li.L6,li.L7,li.L8{list-style-type:none}li.L1,li.L3,li.L5,li.L7,li.L9{background:#eee} diff --git a/coverage/lcov-report/prettify.js b/coverage/lcov-report/prettify.js deleted file mode 100644 index b322523..0000000 --- a/coverage/lcov-report/prettify.js +++ /dev/null @@ -1,2 +0,0 @@ -/* eslint-disable */ -window.PR_SHOULD_USE_CONTINUATION=true;(function(){var h=["break,continue,do,else,for,if,return,while"];var u=[h,"auto,case,char,const,default,double,enum,extern,float,goto,int,long,register,short,signed,sizeof,static,struct,switch,typedef,union,unsigned,void,volatile"];var p=[u,"catch,class,delete,false,import,new,operator,private,protected,public,this,throw,true,try,typeof"];var l=[p,"alignof,align_union,asm,axiom,bool,concept,concept_map,const_cast,constexpr,decltype,dynamic_cast,explicit,export,friend,inline,late_check,mutable,namespace,nullptr,reinterpret_cast,static_assert,static_cast,template,typeid,typename,using,virtual,where"];var x=[p,"abstract,boolean,byte,extends,final,finally,implements,import,instanceof,null,native,package,strictfp,super,synchronized,throws,transient"];var R=[x,"as,base,by,checked,decimal,delegate,descending,dynamic,event,fixed,foreach,from,group,implicit,in,interface,internal,into,is,lock,object,out,override,orderby,params,partial,readonly,ref,sbyte,sealed,stackalloc,string,select,uint,ulong,unchecked,unsafe,ushort,var"];var r="all,and,by,catch,class,else,extends,false,finally,for,if,in,is,isnt,loop,new,no,not,null,of,off,on,or,return,super,then,true,try,unless,until,when,while,yes";var w=[p,"debugger,eval,export,function,get,null,set,undefined,var,with,Infinity,NaN"];var s="caller,delete,die,do,dump,elsif,eval,exit,foreach,for,goto,if,import,last,local,my,next,no,our,print,package,redo,require,sub,undef,unless,until,use,wantarray,while,BEGIN,END";var I=[h,"and,as,assert,class,def,del,elif,except,exec,finally,from,global,import,in,is,lambda,nonlocal,not,or,pass,print,raise,try,with,yield,False,True,None"];var f=[h,"alias,and,begin,case,class,def,defined,elsif,end,ensure,false,in,module,next,nil,not,or,redo,rescue,retry,self,super,then,true,undef,unless,until,when,yield,BEGIN,END"];var H=[h,"case,done,elif,esac,eval,fi,function,in,local,set,then,until"];var A=[l,R,w,s+I,f,H];var e=/^(DIR|FILE|vector|(de|priority_)?queue|list|stack|(const_)?iterator|(multi)?(set|map)|bitset|u?(int|float)\d*)/;var C="str";var z="kwd";var j="com";var O="typ";var G="lit";var L="pun";var F="pln";var m="tag";var E="dec";var J="src";var P="atn";var n="atv";var N="nocode";var M="(?:^^\\.?|[+-]|\\!|\\!=|\\!==|\\#|\\%|\\%=|&|&&|&&=|&=|\\(|\\*|\\*=|\\+=|\\,|\\-=|\\->|\\/|\\/=|:|::|\\;|<|<<|<<=|<=|=|==|===|>|>=|>>|>>=|>>>|>>>=|\\?|\\@|\\[|\\^|\\^=|\\^\\^|\\^\\^=|\\{|\\||\\|=|\\|\\||\\|\\|=|\\~|break|case|continue|delete|do|else|finally|instanceof|return|throw|try|typeof)\\s*";function k(Z){var ad=0;var S=false;var ac=false;for(var V=0,U=Z.length;V122)){if(!(al<65||ag>90)){af.push([Math.max(65,ag)|32,Math.min(al,90)|32])}if(!(al<97||ag>122)){af.push([Math.max(97,ag)&~32,Math.min(al,122)&~32])}}}}af.sort(function(av,au){return(av[0]-au[0])||(au[1]-av[1])});var ai=[];var ap=[NaN,NaN];for(var ar=0;arat[0]){if(at[1]+1>at[0]){an.push("-")}an.push(T(at[1]))}}an.push("]");return an.join("")}function W(al){var aj=al.source.match(new RegExp("(?:\\[(?:[^\\x5C\\x5D]|\\\\[\\s\\S])*\\]|\\\\u[A-Fa-f0-9]{4}|\\\\x[A-Fa-f0-9]{2}|\\\\[0-9]+|\\\\[^ux0-9]|\\(\\?[:!=]|[\\(\\)\\^]|[^\\x5B\\x5C\\(\\)\\^]+)","g"));var ah=aj.length;var an=[];for(var ak=0,am=0;ak=2&&ai==="["){aj[ak]=X(ag)}else{if(ai!=="\\"){aj[ak]=ag.replace(/[a-zA-Z]/g,function(ao){var ap=ao.charCodeAt(0);return"["+String.fromCharCode(ap&~32,ap|32)+"]"})}}}}return aj.join("")}var aa=[];for(var V=0,U=Z.length;V=0;){S[ac.charAt(ae)]=Y}}var af=Y[1];var aa=""+af;if(!ag.hasOwnProperty(aa)){ah.push(af);ag[aa]=null}}ah.push(/[\0-\uffff]/);V=k(ah)})();var X=T.length;var W=function(ah){var Z=ah.sourceCode,Y=ah.basePos;var ad=[Y,F];var af=0;var an=Z.match(V)||[];var aj={};for(var ae=0,aq=an.length;ae=5&&"lang-"===ap.substring(0,5);if(am&&!(ai&&typeof ai[1]==="string")){am=false;ap=J}if(!am){aj[ag]=ap}}var ab=af;af+=ag.length;if(!am){ad.push(Y+ab,ap)}else{var al=ai[1];var ak=ag.indexOf(al);var ac=ak+al.length;if(ai[2]){ac=ag.length-ai[2].length;ak=ac-al.length}var ar=ap.substring(5);B(Y+ab,ag.substring(0,ak),W,ad);B(Y+ab+ak,al,q(ar,al),ad);B(Y+ab+ac,ag.substring(ac),W,ad)}}ah.decorations=ad};return W}function i(T){var W=[],S=[];if(T.tripleQuotedStrings){W.push([C,/^(?:\'\'\'(?:[^\'\\]|\\[\s\S]|\'{1,2}(?=[^\']))*(?:\'\'\'|$)|\"\"\"(?:[^\"\\]|\\[\s\S]|\"{1,2}(?=[^\"]))*(?:\"\"\"|$)|\'(?:[^\\\']|\\[\s\S])*(?:\'|$)|\"(?:[^\\\"]|\\[\s\S])*(?:\"|$))/,null,"'\""])}else{if(T.multiLineStrings){W.push([C,/^(?:\'(?:[^\\\']|\\[\s\S])*(?:\'|$)|\"(?:[^\\\"]|\\[\s\S])*(?:\"|$)|\`(?:[^\\\`]|\\[\s\S])*(?:\`|$))/,null,"'\"`"])}else{W.push([C,/^(?:\'(?:[^\\\'\r\n]|\\.)*(?:\'|$)|\"(?:[^\\\"\r\n]|\\.)*(?:\"|$))/,null,"\"'"])}}if(T.verbatimStrings){S.push([C,/^@\"(?:[^\"]|\"\")*(?:\"|$)/,null])}var Y=T.hashComments;if(Y){if(T.cStyleComments){if(Y>1){W.push([j,/^#(?:##(?:[^#]|#(?!##))*(?:###|$)|.*)/,null,"#"])}else{W.push([j,/^#(?:(?:define|elif|else|endif|error|ifdef|include|ifndef|line|pragma|undef|warning)\b|[^\r\n]*)/,null,"#"])}S.push([C,/^<(?:(?:(?:\.\.\/)*|\/?)(?:[\w-]+(?:\/[\w-]+)+)?[\w-]+\.h|[a-z]\w*)>/,null])}else{W.push([j,/^#[^\r\n]*/,null,"#"])}}if(T.cStyleComments){S.push([j,/^\/\/[^\r\n]*/,null]);S.push([j,/^\/\*[\s\S]*?(?:\*\/|$)/,null])}if(T.regexLiterals){var X=("/(?=[^/*])(?:[^/\\x5B\\x5C]|\\x5C[\\s\\S]|\\x5B(?:[^\\x5C\\x5D]|\\x5C[\\s\\S])*(?:\\x5D|$))+/");S.push(["lang-regex",new RegExp("^"+M+"("+X+")")])}var V=T.types;if(V){S.push([O,V])}var U=(""+T.keywords).replace(/^ | $/g,"");if(U.length){S.push([z,new RegExp("^(?:"+U.replace(/[\s,]+/g,"|")+")\\b"),null])}W.push([F,/^\s+/,null," \r\n\t\xA0"]);S.push([G,/^@[a-z_$][a-z_$@0-9]*/i,null],[O,/^(?:[@_]?[A-Z]+[a-z][A-Za-z_$@0-9]*|\w+_t\b)/,null],[F,/^[a-z_$][a-z_$@0-9]*/i,null],[G,new RegExp("^(?:0x[a-f0-9]+|(?:\\d(?:_\\d+)*\\d*(?:\\.\\d*)?|\\.\\d\\+)(?:e[+\\-]?\\d+)?)[a-z]*","i"),null,"0123456789"],[F,/^\\[\s\S]?/,null],[L,/^.[^\s\w\.$@\'\"\`\/\#\\]*/,null]);return g(W,S)}var K=i({keywords:A,hashComments:true,cStyleComments:true,multiLineStrings:true,regexLiterals:true});function Q(V,ag){var U=/(?:^|\s)nocode(?:\s|$)/;var ab=/\r\n?|\n/;var ac=V.ownerDocument;var S;if(V.currentStyle){S=V.currentStyle.whiteSpace}else{if(window.getComputedStyle){S=ac.defaultView.getComputedStyle(V,null).getPropertyValue("white-space")}}var Z=S&&"pre"===S.substring(0,3);var af=ac.createElement("LI");while(V.firstChild){af.appendChild(V.firstChild)}var W=[af];function ae(al){switch(al.nodeType){case 1:if(U.test(al.className)){break}if("BR"===al.nodeName){ad(al);if(al.parentNode){al.parentNode.removeChild(al)}}else{for(var an=al.firstChild;an;an=an.nextSibling){ae(an)}}break;case 3:case 4:if(Z){var am=al.nodeValue;var aj=am.match(ab);if(aj){var ai=am.substring(0,aj.index);al.nodeValue=ai;var ah=am.substring(aj.index+aj[0].length);if(ah){var ak=al.parentNode;ak.insertBefore(ac.createTextNode(ah),al.nextSibling)}ad(al);if(!ai){al.parentNode.removeChild(al)}}}break}}function ad(ak){while(!ak.nextSibling){ak=ak.parentNode;if(!ak){return}}function ai(al,ar){var aq=ar?al.cloneNode(false):al;var ao=al.parentNode;if(ao){var ap=ai(ao,1);var an=al.nextSibling;ap.appendChild(aq);for(var am=an;am;am=an){an=am.nextSibling;ap.appendChild(am)}}return aq}var ah=ai(ak.nextSibling,0);for(var aj;(aj=ah.parentNode)&&aj.nodeType===1;){ah=aj}W.push(ah)}for(var Y=0;Y=S){ah+=2}if(V>=ap){Z+=2}}}var t={};function c(U,V){for(var S=V.length;--S>=0;){var T=V[S];if(!t.hasOwnProperty(T)){t[T]=U}else{if(window.console){console.warn("cannot override language handler %s",T)}}}}function q(T,S){if(!(T&&t.hasOwnProperty(T))){T=/^\s*]*(?:>|$)/],[j,/^<\!--[\s\S]*?(?:-\->|$)/],["lang-",/^<\?([\s\S]+?)(?:\?>|$)/],["lang-",/^<%([\s\S]+?)(?:%>|$)/],[L,/^(?:<[%?]|[%?]>)/],["lang-",/^]*>([\s\S]+?)<\/xmp\b[^>]*>/i],["lang-js",/^]*>([\s\S]*?)(<\/script\b[^>]*>)/i],["lang-css",/^]*>([\s\S]*?)(<\/style\b[^>]*>)/i],["lang-in.tag",/^(<\/?[a-z][^<>]*>)/i]]),["default-markup","htm","html","mxml","xhtml","xml","xsl"]);c(g([[F,/^[\s]+/,null," \t\r\n"],[n,/^(?:\"[^\"]*\"?|\'[^\']*\'?)/,null,"\"'"]],[[m,/^^<\/?[a-z](?:[\w.:-]*\w)?|\/?>$/i],[P,/^(?!style[\s=]|on)[a-z](?:[\w:-]*\w)?/i],["lang-uq.val",/^=\s*([^>\'\"\s]*(?:[^>\'\"\s\/]|\/(?=\s)))/],[L,/^[=<>\/]+/],["lang-js",/^on\w+\s*=\s*\"([^\"]+)\"/i],["lang-js",/^on\w+\s*=\s*\'([^\']+)\'/i],["lang-js",/^on\w+\s*=\s*([^\"\'>\s]+)/i],["lang-css",/^style\s*=\s*\"([^\"]+)\"/i],["lang-css",/^style\s*=\s*\'([^\']+)\'/i],["lang-css",/^style\s*=\s*([^\"\'>\s]+)/i]]),["in.tag"]);c(g([],[[n,/^[\s\S]+/]]),["uq.val"]);c(i({keywords:l,hashComments:true,cStyleComments:true,types:e}),["c","cc","cpp","cxx","cyc","m"]);c(i({keywords:"null,true,false"}),["json"]);c(i({keywords:R,hashComments:true,cStyleComments:true,verbatimStrings:true,types:e}),["cs"]);c(i({keywords:x,cStyleComments:true}),["java"]);c(i({keywords:H,hashComments:true,multiLineStrings:true}),["bsh","csh","sh"]);c(i({keywords:I,hashComments:true,multiLineStrings:true,tripleQuotedStrings:true}),["cv","py"]);c(i({keywords:s,hashComments:true,multiLineStrings:true,regexLiterals:true}),["perl","pl","pm"]);c(i({keywords:f,hashComments:true,multiLineStrings:true,regexLiterals:true}),["rb"]);c(i({keywords:w,cStyleComments:true,regexLiterals:true}),["js"]);c(i({keywords:r,hashComments:3,cStyleComments:true,multilineStrings:true,tripleQuotedStrings:true,regexLiterals:true}),["coffee"]);c(g([],[[C,/^[\s\S]+/]]),["regex"]);function d(V){var U=V.langExtension;try{var S=a(V.sourceNode);var T=S.sourceCode;V.sourceCode=T;V.spans=S.spans;V.basePos=0;q(U,T)(V);D(V)}catch(W){if("console" in window){console.log(W&&W.stack?W.stack:W)}}}function y(W,V,U){var S=document.createElement("PRE");S.innerHTML=W;if(U){Q(S,U)}var T={langExtension:V,numberLines:U,sourceNode:S};d(T);return S.innerHTML}function b(ad){function Y(af){return document.getElementsByTagName(af)}var ac=[Y("pre"),Y("code"),Y("xmp")];var T=[];for(var aa=0;aa=0){var ah=ai.match(ab);var am;if(!ah&&(am=o(aj))&&"CODE"===am.tagName){ah=am.className.match(ab)}if(ah){ah=ah[1]}var al=false;for(var ak=aj.parentNode;ak;ak=ak.parentNode){if((ak.tagName==="pre"||ak.tagName==="code"||ak.tagName==="xmp")&&ak.className&&ak.className.indexOf("prettyprint")>=0){al=true;break}}if(!al){var af=aj.className.match(/\blinenums\b(?::(\d+))?/);af=af?af[1]&&af[1].length?+af[1]:true:false;if(af){Q(aj,af)}S={langExtension:ah,sourceNode:aj,numberLines:af};d(S)}}}if(X]*(?:>|$)/],[PR.PR_COMMENT,/^<\!--[\s\S]*?(?:-\->|$)/],[PR.PR_PUNCTUATION,/^(?:<[%?]|[%?]>)/],["lang-",/^<\?([\s\S]+?)(?:\?>|$)/],["lang-",/^<%([\s\S]+?)(?:%>|$)/],["lang-",/^]*>([\s\S]+?)<\/xmp\b[^>]*>/i],["lang-handlebars",/^]*type\s*=\s*['"]?text\/x-handlebars-template['"]?\b[^>]*>([\s\S]*?)(<\/script\b[^>]*>)/i],["lang-js",/^]*>([\s\S]*?)(<\/script\b[^>]*>)/i],["lang-css",/^]*>([\s\S]*?)(<\/style\b[^>]*>)/i],["lang-in.tag",/^(<\/?[a-z][^<>]*>)/i],[PR.PR_DECLARATION,/^{{[#^>/]?\s*[\w.][^}]*}}/],[PR.PR_DECLARATION,/^{{&?\s*[\w.][^}]*}}/],[PR.PR_DECLARATION,/^{{{>?\s*[\w.][^}]*}}}/],[PR.PR_COMMENT,/^{{![^}]*}}/]]),["handlebars","hbs"]);PR.registerLangHandler(PR.createSimpleLexer([[PR.PR_PLAIN,/^[ \t\r\n\f]+/,null," \t\r\n\f"]],[[PR.PR_STRING,/^\"(?:[^\n\r\f\\\"]|\\(?:\r\n?|\n|\f)|\\[\s\S])*\"/,null],[PR.PR_STRING,/^\'(?:[^\n\r\f\\\']|\\(?:\r\n?|\n|\f)|\\[\s\S])*\'/,null],["lang-css-str",/^url\(([^\)\"\']*)\)/i],[PR.PR_KEYWORD,/^(?:url|rgb|\!important|@import|@page|@media|@charset|inherit)(?=[^\-\w]|$)/i,null],["lang-css-kw",/^(-?(?:[_a-z]|(?:\\[0-9a-f]+ ?))(?:[_a-z0-9\-]|\\(?:\\[0-9a-f]+ ?))*)\s*:/i],[PR.PR_COMMENT,/^\/\*[^*]*\*+(?:[^\/*][^*]*\*+)*\//],[PR.PR_COMMENT,/^(?:)/],[PR.PR_LITERAL,/^(?:\d+|\d*\.\d+)(?:%|[a-z]+)?/i],[PR.PR_LITERAL,/^#(?:[0-9a-f]{3}){1,2}/i],[PR.PR_PLAIN,/^-?(?:[_a-z]|(?:\\[\da-f]+ ?))(?:[_a-z\d\-]|\\(?:\\[\da-f]+ ?))*/i],[PR.PR_PUNCTUATION,/^[^\s\w\'\"]+/]]),["css"]);PR.registerLangHandler(PR.createSimpleLexer([],[[PR.PR_KEYWORD,/^-?(?:[_a-z]|(?:\\[\da-f]+ ?))(?:[_a-z\d\-]|\\(?:\\[\da-f]+ ?))*/i]]),["css-kw"]);PR.registerLangHandler(PR.createSimpleLexer([],[[PR.PR_STRING,/^[^\)\"\']+/]]),["css-str"]); diff --git a/coverage/lcov-report/sort-arrow-sprite.png b/coverage/lcov-report/sort-arrow-sprite.png deleted file mode 100644 index 03f704a609c6fd0dbfdac63466a7d7c958b5cbf3..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 209 zcmeAS@N?(olHy`uVBq!ia0vp^>_9Bd!3HEZxJ@+%Qj#UE5hcO-X(i=}MX3yqDfvmM z3ZA)%>8U}fi7AzZCsS>Jii$m5978H@?Fn+^JD|Y9yzj{W`447Gxa{7*dM7nnnD-Lb z6^}Hx2)'; - } - } - return cols; - } - // attaches a data attribute to every tr element with an object - // of data values keyed by column name - function loadRowData(tableRow) { - var tableCols = tableRow.querySelectorAll('td'), - colNode, - col, - data = {}, - i, - val; - for (i = 0; i < tableCols.length; i += 1) { - colNode = tableCols[i]; - col = cols[i]; - val = colNode.getAttribute('data-value'); - if (col.type === 'number') { - val = Number(val); - } - data[col.key] = val; - } - return data; - } - // loads all row data - function loadData() { - var rows = getTableBody().querySelectorAll('tr'), - i; - - for (i = 0; i < rows.length; i += 1) { - rows[i].data = loadRowData(rows[i]); - } - } - // sorts the table using the data for the ith column - function sortByIndex(index, desc) { - var key = cols[index].key, - sorter = function(a, b) { - a = a.data[key]; - b = b.data[key]; - return a < b ? -1 : a > b ? 1 : 0; - }, - finalSorter = sorter, - tableBody = document.querySelector('.coverage-summary tbody'), - rowNodes = tableBody.querySelectorAll('tr'), - rows = [], - i; - - if (desc) { - finalSorter = function(a, b) { - return -1 * sorter(a, b); - }; - } - - for (i = 0; i < rowNodes.length; i += 1) { - rows.push(rowNodes[i]); - tableBody.removeChild(rowNodes[i]); - } - - rows.sort(finalSorter); - - for (i = 0; i < rows.length; i += 1) { - tableBody.appendChild(rows[i]); - } - } - // removes sort indicators for current column being sorted - function removeSortIndicators() { - var col = getNthColumn(currentSort.index), - cls = col.className; - - cls = cls.replace(/ sorted$/, '').replace(/ sorted-desc$/, ''); - col.className = cls; - } - // adds sort indicators for current column being sorted - function addSortIndicators() { - getNthColumn(currentSort.index).className += currentSort.desc - ? ' sorted-desc' - : ' sorted'; - } - // adds event listeners for all sorter widgets - function enableUI() { - var i, - el, - ithSorter = function ithSorter(i) { - var col = cols[i]; - - return function() { - var desc = col.defaultDescSort; - - if (currentSort.index === i) { - desc = !currentSort.desc; - } - sortByIndex(i, desc); - removeSortIndicators(); - currentSort.index = i; - currentSort.desc = desc; - addSortIndicators(); - }; - }; - for (i = 0; i < cols.length; i += 1) { - if (cols[i].sortable) { - // add the click event handler on the th so users - // dont have to click on those tiny arrows - el = getNthColumn(i).querySelector('.sorter').parentElement; - if (el.addEventListener) { - el.addEventListener('click', ithSorter(i)); - } else { - el.attachEvent('onclick', ithSorter(i)); - } - } - } - } - // adds sorting functionality to the UI - return function() { - if (!getTable()) { - return; - } - cols = loadColumns(); - loadData(); - addSortIndicators(); - enableUI(); - }; -})(); - -window.addEventListener('load', addSorting); diff --git a/coverage/lcov.info b/coverage/lcov.info deleted file mode 100644 index f73ef3f..0000000 --- a/coverage/lcov.info +++ /dev/null @@ -1,651 +0,0 @@ -TN: -SF:src/client/App.tsx -FN:11,App -FN:18,(anonymous_8) -FN:19,(anonymous_9) -FN:28,(anonymous_10) -FNF:4 -FNH:0 -FNDA:0,App -FNDA:0,(anonymous_8) -FNDA:0,(anonymous_9) -FNDA:0,(anonymous_10) -DA:1,1 -DA:2,1 -DA:3,1 -DA:4,1 -DA:5,1 -DA:6,1 -DA:7,1 -DA:8,1 -DA:9,1 -DA:11,1 -DA:12,0 -DA:13,0 -DA:14,0 -DA:18,0 -DA:20,0 -DA:30,0 -DA:31,0 -DA:33,0 -DA:35,0 -LF:19 -LH:10 -BRDA:39,0,0,0 -BRDA:39,0,1,0 -BRF:2 -BRH:0 -end_of_record -TN: -SF:src/client/commonStyles/stylesHome.tsx -FN:4,(anonymous_0) -FNF:1 -FNH:0 -FNDA:0,(anonymous_0) -DA:2,1 -DA:4,1 -DA:15,1 -LF:3 -LH:3 -BRF:0 -BRH:0 -end_of_record -TN: -SF:src/client/commonStyles/stylesPanel.tsx -FN:5,(anonymous_0) -FNF:1 -FNH:0 -FNDA:0,(anonymous_0) -DA:2,3 -DA:5,3 -DA:46,3 -LF:3 -LH:3 -BRF:0 -BRH:0 -end_of_record -TN: -SF:src/client/features/lights/LightPanel.tsx -FN:15,LightPanel -FN:21,(anonymous_8) -FN:38,(anonymous_9) -FN:49,(anonymous_10) -FN:59,(anonymous_11) -FNF:5 -FNH:0 -FNDA:0,LightPanel -FNDA:0,(anonymous_8) -FNDA:0,(anonymous_9) -FNDA:0,(anonymous_10) -FNDA:0,(anonymous_11) -DA:2,2 -DA:3,2 -DA:4,2 -DA:7,2 -DA:8,2 -DA:9,2 -DA:11,2 -DA:12,2 -DA:13,2 -DA:15,2 -DA:17,0 -DA:19,0 -DA:21,0 -DA:23,0 -DA:25,0 -DA:39,0 -DA:50,0 -DA:59,0 -LF:18 -LH:10 -BRF:0 -BRH:0 -end_of_record -TN: -SF:src/client/features/lights/lightsComponents/LightForm.tsx -FN:8,LightForm -FN:10,(anonymous_10) -FN:15,(anonymous_11) -FN:37,(anonymous_12) -FNF:4 -FNH:0 -FNDA:0,LightForm -FNDA:0,(anonymous_10) -FNDA:0,(anonymous_11) -FNDA:0,(anonymous_12) -DA:1,3 -DA:2,3 -DA:3,3 -DA:4,3 -DA:5,3 -DA:8,3 -DA:9,0 -DA:10,0 -DA:11,0 -DA:15,0 -DA:16,0 -DA:17,0 -DA:18,0 -DA:19,0 -DA:25,0 -DA:38,0 -DA:47,0 -LF:17 -LH:6 -BRF:0 -BRH:0 -end_of_record -TN: -SF:src/client/features/lights/lightsComponents/LightItem.tsx -FN:17,LightItem -FN:21,(anonymous_8) -FN:49,(anonymous_9) -FNF:3 -FNH:0 -FNDA:0,LightItem -FNDA:0,(anonymous_8) -FNDA:0,(anonymous_9) -DA:2,3 -DA:3,3 -DA:4,3 -DA:7,3 -DA:8,3 -DA:9,3 -DA:17,3 -DA:18,0 -DA:19,0 -DA:21,0 -DA:22,0 -DA:33,0 -DA:50,0 -LF:13 -LH:7 -BRDA:43,0,0,0 -BRDA:43,0,1,0 -BRF:2 -BRH:0 -end_of_record -TN: -SF:src/client/features/lights/lightsStyles/stylesLightItem.tsx -FN:3,(anonymous_0) -FNF:1 -FNH:0 -FNDA:0,(anonymous_0) -DA:1,4 -DA:3,4 -DA:10,4 -LF:3 -LH:3 -BRF:0 -BRH:0 -end_of_record -TN: -SF:src/client/features/navigation/BottomBar.tsx -FN:13,BottomBar -FN:19,(anonymous_2) -FNF:2 -FNH:0 -FNDA:0,BottomBar -FNDA:0,(anonymous_2) -DA:2,2 -DA:3,2 -DA:4,2 -DA:5,2 -DA:6,2 -DA:13,2 -DA:14,0 -DA:16,0 -DA:20,0 -LF:9 -LH:6 -BRF:0 -BRH:0 -end_of_record -TN: -SF:src/client/features/navigation/TopBar.tsx -FN:9,TopBar -FN:15,(anonymous_8) -FN:20,(anonymous_9) -FNF:3 -FNH:0 -FNDA:0,TopBar -FNDA:0,(anonymous_8) -FNDA:0,(anonymous_9) -DA:1,2 -DA:2,2 -DA:5,2 -DA:6,2 -DA:7,2 -DA:9,2 -DA:10,0 -DA:11,0 -DA:12,0 -DA:13,0 -DA:15,0 -DA:16,0 -DA:20,0 -DA:21,0 -DA:24,0 -LF:15 -LH:6 -BRF:0 -BRH:0 -end_of_record -TN: -SF:src/client/features/navigation/navigationStyles/stylesBottomBar.tsx -FN:3,(anonymous_0) -FNF:1 -FNH:0 -FNDA:0,(anonymous_0) -DA:1,3 -DA:3,3 -DA:15,3 -LF:3 -LH:3 -BRF:0 -BRH:0 -end_of_record -TN: -SF:src/client/features/navigation/navigationStyles/stylesTopBar.tsx -FN:3,(anonymous_0) -FNF:1 -FNH:0 -FNDA:0,(anonymous_0) -DA:1,3 -DA:3,3 -DA:15,3 -LF:3 -LH:3 -BRF:0 -BRH:0 -end_of_record -TN: -SF:src/client/features/temperature/TemperaturePanel.tsx -FN:11,TemperaturePanel -FN:15,(anonymous_8) -FN:19,(anonymous_9) -FNF:3 -FNH:0 -FNDA:0,TemperaturePanel -FNDA:0,(anonymous_8) -FNDA:0,(anonymous_9) -DA:1,2 -DA:2,2 -DA:3,2 -DA:4,2 -DA:5,2 -DA:7,2 -DA:8,2 -DA:9,2 -DA:11,2 -DA:13,0 -DA:15,0 -DA:17,0 -DA:19,0 -DA:20,0 -DA:23,0 -LF:15 -LH:9 -BRDA:53,0,0,0 -BRDA:53,0,1,0 -BRF:2 -BRH:0 -end_of_record -TN: -SF:src/client/features/temperature/temperatureComponents/ChangeTemperature.tsx -FN:9,ChangeTemperature -FN:11,(anonymous_8) -FN:25,(anonymous_9) -FN:28,(anonymous_10) -FNF:4 -FNH:0 -FNDA:0,ChangeTemperature -FNDA:0,(anonymous_8) -FNDA:0,(anonymous_9) -FNDA:0,(anonymous_10) -DA:1,3 -DA:2,3 -DA:3,3 -DA:4,3 -DA:5,3 -DA:6,3 -DA:9,3 -DA:10,0 -DA:11,0 -DA:12,0 -DA:13,0 -DA:15,0 -DA:26,0 -DA:29,0 -LF:14 -LH:7 -BRF:0 -BRH:0 -end_of_record -TN: -SF:src/client/features/temperature/temperatureComponents/Thermostat.tsx -FN:11,Thermostat -FN:18,(anonymous_2) -FN:90,(anonymous_3) -FNF:3 -FNH:0 -FNDA:0,Thermostat -FNDA:0,(anonymous_2) -FNDA:0,(anonymous_3) -DA:2,3 -DA:3,3 -DA:5,3 -DA:6,3 -DA:11,3 -DA:12,0 -DA:13,0 -DA:14,0 -DA:15,0 -DA:16,0 -DA:18,0 -DA:21,0 -DA:22,0 -DA:23,0 -DA:24,0 -DA:25,0 -DA:26,0 -DA:29,0 -DA:30,0 -DA:31,0 -DA:38,0 -DA:47,0 -DA:53,0 -DA:59,0 -DA:60,0 -DA:61,0 -DA:62,0 -DA:63,0 -DA:64,0 -DA:65,0 -DA:80,0 -DA:84,0 -DA:85,0 -DA:90,0 -DA:92,0 -DA:96,0 -DA:100,0 -DA:105,0 -DA:106,0 -DA:107,0 -DA:109,0 -DA:111,0 -DA:117,0 -DA:120,0 -LF:44 -LH:5 -BRDA:63,0,0,0 -BRDA:63,0,1,0 -BRDA:64,1,0,0 -BRDA:64,1,1,0 -BRDA:69,2,0,0 -BRDA:69,2,1,0 -BRDA:76,3,0,0 -BRDA:76,3,1,0 -BRDA:106,4,0,0 -BRDA:106,4,1,0 -BRF:10 -BRH:0 -end_of_record -TN: -SF:src/client/features/temperature/temperatureHelpers/helpersChangeTemperature.tsx -FN:1,(anonymous_0) -FN:12,(anonymous_1) -FNF:2 -FNH:2 -FNDA:1,(anonymous_0) -FNDA:1,(anonymous_1) -DA:1,4 -DA:2,1 -DA:3,1 -DA:4,10 -DA:9,1 -DA:12,4 -DA:14,4 -LF:7 -LH:7 -BRF:0 -BRH:0 -end_of_record -TN: -SF:src/client/features/temperature/temperatureHelpers/helpersThermostat.tsx -FN:3,(anonymous_0) -FN:5,(anonymous_1) -FN:10,(anonymous_2) -FN:19,(anonymous_3) -FN:19,(anonymous_4) -FN:21,(anonymous_5) -FN:28,(anonymous_6) -FNF:7 -FNH:7 -FNDA:1,(anonymous_0) -FNDA:1,(anonymous_1) -FNDA:2,(anonymous_2) -FNDA:1,(anonymous_3) -FNDA:1,(anonymous_4) -FNDA:1,(anonymous_5) -FNDA:1,(anonymous_6) -DA:3,4 -DA:5,1 -DA:10,4 -DA:11,2 -DA:12,2 -DA:13,2 -DA:14,2 -DA:15,2 -DA:16,2 -DA:19,4 -DA:21,4 -DA:22,1 -DA:23,0 -DA:24,0 -DA:28,4 -DA:31,4 -LF:16 -LH:14 -BRDA:5,0,0,0 -BRDA:5,0,1,1 -BRDA:22,1,0,1 -BRDA:22,1,1,0 -BRDA:23,2,0,0 -BRDA:23,2,1,0 -BRDA:28,3,0,0 -BRDA:28,3,1,1 -BRF:8 -BRH:3 -end_of_record -TN: -SF:src/client/features/temperature/temperatureStyles/stylesChangeTemperature.tsx -FN:4,(anonymous_0) -FNF:1 -FNH:0 -FNDA:0,(anonymous_0) -DA:2,4 -DA:4,4 -DA:17,4 -LF:3 -LH:3 -BRF:0 -BRH:0 -end_of_record -TN: -SF:src/client/features/temperature/temperatureStyles/stylesThermostat.tsx -FN:3,(anonymous_0) -FNF:1 -FNH:0 -FNDA:0,(anonymous_0) -DA:3,4 -DA:4,0 -DA:6,0 -DA:46,4 -LF:4 -LH:2 -BRDA:37,0,0,0 -BRDA:37,0,1,0 -BRF:2 -BRH:0 -end_of_record -TN: -SF:src/client/reducer/reducer.ts -FN:17,(anonymous_9) -FN:45,(anonymous_10) -FNF:2 -FNH:1 -FNDA:3,(anonymous_9) -FNDA:0,(anonymous_10) -DA:2,1 -DA:5,1 -DA:6,1 -DA:9,1 -DA:17,6 -DA:19,3 -DA:20,3 -DA:21,3 -DA:22,3 -DA:23,3 -DA:25,3 -DA:29,0 -DA:30,0 -DA:31,0 -DA:32,0 -DA:33,0 -DA:35,0 -DA:45,0 -DA:46,0 -DA:50,0 -DA:52,0 -DA:58,0 -DA:64,0 -DA:67,0 -DA:68,0 -DA:70,0 -DA:78,0 -DA:79,0 -DA:82,0 -DA:83,0 -DA:85,0 -DA:92,1 -DA:94,1 -DA:101,0 -DA:102,0 -DA:103,0 -DA:107,0 -DA:113,0 -DA:115,0 -DA:122,2 -DA:125,0 -LF:41 -LH:14 -BRDA:17,0,0,3 -BRDA:17,0,1,0 -BRDA:27,1,0,0 -BRDA:27,1,1,0 -BRDA:27,1,2,0 -BRDA:27,1,3,0 -BRDA:27,1,4,1 -BRDA:27,1,5,0 -BRDA:27,1,6,2 -BRDA:27,1,7,0 -BRDA:102,2,0,0 -BRDA:102,2,1,0 -BRF:12 -BRH:3 -end_of_record -TN: -SF:src/client/reducer/actions/actions.ts -FN:4,(anonymous_6) -FN:9,(anonymous_7) -FN:14,(anonymous_8) -FN:24,(anonymous_9) -FN:29,(anonymous_10) -FN:34,(anonymous_11) -FN:39,(anonymous_12) -FNF:7 -FNH:7 -FNDA:1,(anonymous_6) -FNDA:1,(anonymous_7) -FNDA:1,(anonymous_8) -FNDA:1,(anonymous_9) -FNDA:1,(anonymous_10) -FNDA:1,(anonymous_11) -FNDA:2,(anonymous_12) -DA:1,7 -DA:4,7 -DA:9,7 -DA:14,7 -DA:19,1 -DA:24,7 -DA:29,7 -DA:34,7 -DA:39,7 -LF:9 -LH:9 -BRF:0 -BRH:0 -end_of_record -TN: -SF:src/client/reducer/constants/actionTypes.ts -FNF:0 -FNH:0 -DA:1,7 -DA:2,7 -DA:3,7 -DA:4,7 -DA:5,7 -DA:6,7 -DA:7,7 -LF:7 -LH:7 -BRF:0 -BRH:0 -end_of_record -TN: -SF:src/client/reducer/reducerHelpers/deleteRequest.tsx -FN:2,deleteRequest -FN:8,(anonymous_1) -FN:9,(anonymous_2) -FN:10,(anonymous_3) -FNF:4 -FNH:0 -FNDA:0,deleteRequest -FNDA:0,(anonymous_1) -FNDA:0,(anonymous_2) -FNDA:0,(anonymous_3) -DA:2,1 -DA:3,0 -DA:8,0 -DA:9,0 -DA:11,0 -DA:12,0 -LF:6 -LH:1 -BRF:0 -BRH:0 -end_of_record -TN: -SF:src/client/reducer/reducerHelpers/postRequest.tsx -FN:2,postRequest -FN:8,(anonymous_1) -FN:9,(anonymous_2) -FN:10,(anonymous_3) -FNF:4 -FNH:0 -FNDA:0,postRequest -FNDA:0,(anonymous_1) -FNDA:0,(anonymous_2) -FNDA:0,(anonymous_3) -DA:2,1 -DA:3,0 -DA:8,0 -DA:9,0 -DA:11,0 -DA:12,0 -LF:6 -LH:1 -BRF:0 -BRH:0 -end_of_record