Skip to content

Dashboard

backtion edited this page Sep 10, 2020 · 2 revisions

index.jsx

changeDashboardData

Get data to need set dashboard. And refine data to use on this page (Dashboard, History and Graph).

getHistorySummary

Refine data to draw graph.

componentDidMount

Get your cloud key list. Then set the key list in localstorage.

getResourceStatusData

Set data to state. If data is NULL, return loading and 0. but data isn't null, return data's percent(how much running )

render

Get data in state and draw dashboard and Graph and DashboardTalbe.

After render, if you select option on select box on upper right, Re Use getResourceStatusData function to show data that for the cloud key of your choice.

dashboard-table.js

Draw a history table using the received data. If click the button, redirect to history page.

Clone this wiki locally