Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
T
toiletcoin
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Registry
Registry
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
1
Merge Requests
1
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
atichat
toiletcoin
Commits
ecdb062a
Commit
ecdb062a
authored
Aug 06, 2019
by
Chaiwith Santaweesuk
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update
parent
c84d5bb8
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
16 additions
and
8 deletions
+16
-8
src/Pages/Home.js
+15
-7
src/components/DataCard.js
+1
-1
No files found.
src/Pages/Home.js
View file @
ecdb062a
...
@@ -162,6 +162,15 @@ class Home extends Component {
...
@@ -162,6 +162,15 @@ class Home extends Component {
const
{
device
,
range
,
breakdown
}
=
selectedFeed
;
const
{
device
,
range
,
breakdown
}
=
selectedFeed
;
this
.
getFeedData
(
device
,
range
,
breakdown
);
this
.
getFeedData
(
device
,
range
,
breakdown
);
};
};
getMax
(){
}
getMin
(){
}
getAvg
(){
}
render
()
{
render
()
{
const
{
const
{
...
@@ -188,13 +197,12 @@ class Home extends Component {
...
@@ -188,13 +197,12 @@ class Home extends Component {
{
/* {Data.map((item, index) => (
{
/* {Data.map((item, index) => (
<DataCard key={index} item={item} feedData={feedData} />
<DataCard key={index} item={item} feedData={feedData} />
))} */
}
))} */
}
<
DataCard
item
=
{
Data
[
0
]}
feedData
=
{
currentFeed
}
/
>
<
DataCard
item
=
{
Data
[
0
]}
feedData
=
{
currentFeed
}
total
=
{}
/
>
<
DataCard
item
=
{
Data
[
1
]}
feedData
=
{
revenueFeed
}
total
=
{
revenueTotal
}
max
=
{
revenueMax
}
min
=
{
revenueMin
}
avg
=
{
revenueAvg
}
/
>
<
DataCard
item
=
{
Data
[
1
]}
feedData
=
{
revenueFeed
}
/
>
<
DataCard
item
=
{
Data
[
2
]}
feedData
=
{
peopleFeed
}
total
=
{
peopleTotal
}
max
=
{
peopleMax
}
min
=
{
peopleMin
}
avg
=
{
peopleAvg
}
/
>
<
DataCard
item
=
{
Data
[
2
]}
feedData
=
{
peopleFeed
}
/
>
<
DataCard
item
=
{
Data
[
3
]}
feedData
=
{
remoteFeed
}
total
=
{
remoteTotal
}
max
=
{
remoteMax
}
min
=
{
remoteMin
}
avg
=
{
remoteAvg
}
/
>
<
DataCard
item
=
{
Data
[
3
]}
feedData
=
{
remoteFeed
}
/
>
<
DataCard
item
=
{
Data
[
5
]}
feedData
=
{
fingerPrintFeed
}
total
=
{
fingerPrintTotal
}
max
=
{
fingerPrintMax
}
min
=
{
fingerPrintMin
}
avg
=
{
fingerPrintAvg
}
/
>
<
DataCard
item
=
{
Data
[
5
]}
feedData
=
{
fingerPrintFeed
}
/
>
<
DataCard
item
=
{
Data
[
4
]}
feedData
=
{
keycardFeed
}
total
=
{
keycardTotal
}
max
=
{
keycardMax
}
min
=
{
keycardMin
}
avg
=
{
keycardAvg
}
/
>
<
DataCard
item
=
{
Data
[
4
]}
feedData
=
{
keycardFeed
}
/
>
<
/Row
>
<
/Row
>
<
Row
>
<
Row
>
<
DataTable
/>
<
DataTable
/>
...
...
src/components/DataCard.js
View file @
ecdb062a
...
@@ -40,7 +40,7 @@ const DataCard = props => {
...
@@ -40,7 +40,7 @@ const DataCard = props => {
xAxis
:
moment
(
value
[
0
]).
format
(
'D/M/YY h:mm:ss a'
),
xAxis
:
moment
(
value
[
0
]).
format
(
'D/M/YY h:mm:ss a'
),
yAxis
:
value
[
1
],
yAxis
:
value
[
1
],
}));
}));
//
console.log(dataObj);
console
.
log
(
dataObj
);
}
}
return
(
return
(
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment