-
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 Component : 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/ManagementComponents
DIR.
Major Components : src/ManagemetComponents/SensorManagement.tsx
, src/ManagemetComponents/Register/RegisterSensor.tsx
, src/ManagemetComponents/Table/SensorTable
This component manage sensor tab.
Used components : src/ManagemetComponents/Register/RegisterSensor.tsx
, src/ManagemetComponents/Table/SensorTable
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 Component : src/ManagementComponents/Pagination.tsx
Major Components : src/ManagemetComponents/NodeManagement.tsx
, src/ManagemetComponents/Register/RegisterNode.tsx
, src/ManagemetComponents/Table/NodeTable.tsx
, src/ManagemetComponents/NodeMap.tsx
, src/ManagemetComponents/Table/MapNodeTable.tsx
This component manage node tab.
Used components : src/ManagemetComponents/Register/RegisterNode.tsx
, src/ManagemetComponents/Table/NodeTable.tsx
, src/ManagemetComponents/NodeMap.tsx
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
- 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 select more than a sensor?
- Did user select the sink?
Used components : src/ManagemetComponents/LatLngPicker.tsx
There are two options user can see the table. If user click All
option and default, user can see the node table per sink.
User can see nodes' informations.
User can delete nodes by click wastebasket img.
If user click Map
option, user can see the node table at map.
Node table show nodes inside of map field.
User can see the node's informations by click the marker.
If user move map to none marker place, table show anything.
If user move map to marker place, table show marker in that map.
User can check nodes' health by color immediatly. Each color represent state of nodes.
Major Components : src/Managementcomponents/SinkManagement.tsx
, src/Managementcomponents/Register/RegisterSink.tsx
, src/Managementcomponents/Table/SinkTable
This component manage sink tab.
Used components : src/Managementcomponents/Register/RegisterSink.tsx
, src/Managementcomponents/Table/SinkTable
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
- topic : User should select topic.
- ip:port : User should type sink's ip:port info.
- valid check
- Did user enter the sink name?
- Did user select the topic?
- Did user enter valid ip:port?
User can see sinks' informations.
User can delete sinks by click wastebasket img.
Major Components : src/KafkaComponents/Topic/TopicManagement.tsx
, src/KafkaComponents/Topic/RegisterTopic.tsx
, src/KafkaComponents/Topic/TopicTable.tsx
This component manage topic tab.
Used components : src/KafkaComponents/Topic/RegisterTopic.tsx
, src/KafkaComponents/Topic/TopicTable.tsx
User can register topic by using this component.
When user click register topic
button, a modal will show up.
User enter topic's informations( topic name, partitions, replications ).
For example...
User can see topics' informations.
SERVICE
tab's component is only Logic core
yet.
Components of this are placed in src/LogicCoreComponents
DIR.
Major Components : src/LogicCoreComponents/LogicCoreManagement.tsx
, src/LogicCoreComponents/RegisterLogic.tsx
, src/LogicCoreComponents/LogicTable.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, 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.
-
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.
-
Value card and action card can be multiple.
-
Value card and time card can have multiple scopes.
Used Components : InputActionCard.tsx
, InputGroupCard.tsx
, InputSensorCard.tsx
, InputTimeCard.tsx
, InputValueCard.tsx
in /src/LogicCoreComponents/InputCards
DIR
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/LogicComponents/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