From 8355a6c4bac32a14fb21db866bceb56ee1c9625b Mon Sep 17 00:00:00 2001 From: snoop Date: Tue, 25 Jul 2017 17:22:36 +0900 Subject: [PATCH] fixed sensor tree --- .../app/views/layout/SensorDetailLayout.tsx | 12 +- .../app/views/monitoring/sensor/ItemTree.tsx | 30 +++++ .../@overflow/meta/react/SensorItemTree.tsx | 26 +++++ src/ts/@overflow/meta/react/_ | 0 .../react/components/SensorItemTree.tsx | 108 +++++++++--------- src/ts/@overflow/meta/react/components/_ | 0 .../meta/redux/state/SensorItemReadAll.ts | 12 ++ src/ts/@overflow/meta/redux/state/_ | 0 .../react/components/SensorDetailItems.tsx | 2 +- 9 files changed, 137 insertions(+), 53 deletions(-) create mode 100644 src/ts/@overflow/app/views/monitoring/sensor/ItemTree.tsx create mode 100644 src/ts/@overflow/meta/react/SensorItemTree.tsx delete mode 100644 src/ts/@overflow/meta/react/_ rename src/ts/@overflow/{sensor => meta}/react/components/SensorItemTree.tsx (59%) delete mode 100644 src/ts/@overflow/meta/react/components/_ create mode 100644 src/ts/@overflow/meta/redux/state/SensorItemReadAll.ts delete mode 100644 src/ts/@overflow/meta/redux/state/_ diff --git a/src/ts/@overflow/app/views/layout/SensorDetailLayout.tsx b/src/ts/@overflow/app/views/layout/SensorDetailLayout.tsx index 27b0e7f..b2612b9 100644 --- a/src/ts/@overflow/app/views/layout/SensorDetailLayout.tsx +++ b/src/ts/@overflow/app/views/layout/SensorDetailLayout.tsx @@ -8,6 +8,7 @@ import LeftMenu from './LeftMenu'; import SensorSetup from '../monitoring/sensor/Setup'; import SensorDetailInfo from '../monitoring/sensor/DetailInfo'; import SensorDetailItems from '../monitoring/sensor/DetailItems'; +import SensorItemTree from '../monitoring/sensor/ItemTree'; export interface Props extends RouteComponentProps { } @@ -34,6 +35,14 @@ class SensorDetailLayout extends React.Component { 'name': 'Items', 'path': this.state.currUrl + '/items', }, + { + 'name': 'Setup', + 'path': this.state.currUrl + '/setup', + }, + { + 'name': 'Tree', + 'path': this.state.currUrl + '/tree', + }, ]; return ( @@ -47,7 +56,8 @@ class SensorDetailLayout extends React.Component { {/**/} - + +