-
Notifications
You must be signed in to change notification settings - Fork 8
UI Reference
All components are routed at src/App.tsx
.
Simple components' structure...
Navigation bar is implemented so that each page can be entered.
Used Compoponent : src/Navigation.tsx
User can see Kibana Dashboard at here.
Used Component : src/Home.tsx
MANAGEMENT
tab's components consist of Sensor
, Node
, and Sink
tab.
Basically, components consist of sensor, node, and sink. User can manage each sensor, node, and sink at MANAGEMENT
tab.
These components are placed in src/components
DIR.
Used Components : src/components/SensorManagement.tsx
, src/components/Register/RegisterSensor.tsx
, src/components/Table/SensorTable
This component manage sensor tab.
User can register sensor by using this component.
When user click register sensor
button, a modal will show up.
User enter sensor's informations( sensor name, sensor's values' name ).
For example...
- sensor name
- sensor's values : Sensor can have more than two values, so user can register all values' name.
- valid check
- Did user enter the sensor name?
- Did user enter more than a value name?
User can see sensors' informations.
User can delete sensors by click wastebasket img.
Used Components : src/components/NodeManagement.tsx
, src/components/Register/RegisterNode.tsx
, src/components/Table/NodeTable
This component manage node tab.
User can register node by using this component.
When user click register node
button, a modal will show up.
User enter node's informations( node name, group, location, sensors, sink ).
For example...
- node name
- group : The group of nodes is then used to group when registering logics. (e.g.location info(Seoul, Busan, ...))
- location : User should type latitude and longitude.
- sensors : User should select sensors which want to make belong to this node.
- sink : User should select sink which want to connect.
- valid check
- Did user enter the node name?
- Did user enter the group?
- Did user select more than a sensor?
- Did user select the sink?
User can see nodes' informations.
User can delete nodes by click wastebasket img.
User can check nodes' health by color immediatly. Each color represent state of nodes.
Used Components : src/components/SinkManagement.tsx
, src/components/Register/RegisterSink.tsx
, src/components/Table/SinkTable
This component manage sink tab.
User can register sink by using this component.
When user click register sink
button, a modal will show up.
User enter sink's informations( sink name, location, ip:port ).
For example...
- sink name
- location
- ip:port : User should type sink's ip:port info.
- valid check
- Did user enter the sink name?
- Did user enter valid ip:port?
User can see sinks' informations.
User can delete sinks by click wastebasket img.
SERVICE
tab's component is only Logic core
yet.
Components of this are placed in src/LogicCoreComponents
DIR.
Used Components (major) : src/LogicCoreComponents/LogicCoreManagement.tsx
, src/LogicCoreComponents/RegisterLogic.tsx
, src/LogicCoreComponents/LogicCoreTable.tsx
This component manage Logic Core.
User can register logic by using this component.
When user click register logic
button, a page will show up.
User enter logic's element( logic name, sensor, groups, time scope, value scopes, actions ).
Each element is considered as card at this page.
For example...
- logic name
- sensor : A logic should be registered with a sensor.
- group : These groups are that user enters at registering nodes.
- time scope : User sets time scope when this logic does action.
- value scope : User sets value scope when this logic does action.
- action : User sets action which user wants this logic to do.
- valid check
- Did user enter the logic name?
- Did user select sensor?
- Did user set more than a action.
Used Components : InputActionCard.tsx
, InputGroupCard.tsx
, InputSensorCard.tsx
, InputTimeCard.tsx
, InputValueCard.tsx
in /src/LogicCoreComponents/InputCards
DIR
- Value card and action card can be multiple.
- Value card and time card can have multiple scopes.
User can see logic core here.
User can delete logics by click wastebasket img.
User can see logic's structure by click show logic
button.
Used Components : ShowActionCard.tsx
, ShowGroupCard.tsx
, ShowSensorCard.tsx
, ShowTimeCard.tsx
, ShowValueCard.tsx
in /src/LogicCoreComponents/ShowCards
DIR
User can make and control visulization.
User can make and control visulization.
Used Component : src/KibanaVisulize.tsx
User can make dashboard.
Used Component : src/KibanaDashboard.tsx
Alerting alarm should be service all time, so this function is implemented by 'web socket'.
This service can be registered by registering logic.
Used Component : src/components/AlertAlarm.tsx