From 78cd806c0f49d025f207725b049f40830076b1da Mon Sep 17 00:00:00 2001 From: insanity Date: Mon, 13 Nov 2017 17:46:25 +0900 Subject: [PATCH] ing --- src/ts/@overflow/app/config/index.ts | 2 +- .../meta/react/components/SensorItemTree.tsx | 15 +++++++++++++-- .../react/components/SensorConfigTargetSelect.tsx | 4 ++-- 3 files changed, 16 insertions(+), 5 deletions(-) diff --git a/src/ts/@overflow/app/config/index.ts b/src/ts/@overflow/app/config/index.ts index f9cda14..1f73c71 100644 --- a/src/ts/@overflow/app/config/index.ts +++ b/src/ts/@overflow/app/config/index.ts @@ -70,7 +70,7 @@ export interface RPCConfig { url: string; } const rpcConfig: RPCConfig = { - url: 'ws://127.0.0.1:19090/web', + url: 'ws://192.168.1.209:19090/web', }; // REST Server Configuration diff --git a/src/ts/@overflow/meta/react/components/SensorItemTree.tsx b/src/ts/@overflow/meta/react/components/SensorItemTree.tsx index d360381..afe5a60 100644 --- a/src/ts/@overflow/meta/react/components/SensorItemTree.tsx +++ b/src/ts/@overflow/meta/react/components/SensorItemTree.tsx @@ -11,6 +11,7 @@ import { List, Button, ListItemProps, CheckboxProps, + Rating, } from 'semantic-ui-react'; @@ -136,8 +137,11 @@ export class SensorItemTree extends React.Component, checkProps: CheckboxProps) => { this.onItemCheckCBox(parentKey, checkProps, item); }} /> + {this.checkRecommend(item)} - {this.getItemDesc(item)} + + {this.getItemDesc(item)} + , @@ -147,8 +151,15 @@ export class SensorItemTree extends React.Component; + } + return null; + } + private getItemDesc(item: MetaSensorDisplayItem): string { - if(item.default) { + if (item.default) { return '(Recommend) ' + item.key; } return item.key; diff --git a/src/ts/@overflow/sensor/react/components/SensorConfigTargetSelect.tsx b/src/ts/@overflow/sensor/react/components/SensorConfigTargetSelect.tsx index 15b0473..b49310f 100644 --- a/src/ts/@overflow/sensor/react/components/SensorConfigTargetSelect.tsx +++ b/src/ts/@overflow/sensor/react/components/SensorConfigTargetSelect.tsx @@ -115,8 +115,8 @@ export class SensorConfigTargetSelect extends React.Component { {index + 1} {infra.infraType.name} {infra.target.displayName} - TODO - {Utils.date2date(infra.target.createDate)} + {infra.target.sensors.length} + {Utils.date2date(infra.target.createDate)} , );