Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
E
EECS493
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
tspuller
EECS493
Commits
b0c5a353
Commit
b0c5a353
authored
4 years ago
by
tspuller
Browse files
Options
Downloads
Patches
Plain Diff
facebook tabs
parent
2a0bb739
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
src/containers/Facebook/Import.js
+46
-4
46 additions, 4 deletions
src/containers/Facebook/Import.js
src/containers/Instagram/Components/ConnectionsByDayLine/config.js
+0
-1
0 additions, 1 deletion
...iners/Instagram/Components/ConnectionsByDayLine/config.js
with
46 additions
and
5 deletions
src/containers/Facebook/Import.js
+
46
−
4
View file @
b0c5a353
import
React
,
{
Component
}
from
'
react
'
;
import
React
,
{
Component
,
lazy
}
from
'
react
'
;
import
{
Row
,
Col
}
from
'
antd
'
;
import
moment
from
'
moment
'
import
Dropzone
from
'
@imd/components/uielements/dropzone
'
;
import
{
notification
}
from
'
@imd/components
'
;
import
PageHeader
from
'
@imd/components/utility/pageHeader
'
;
...
...
@@ -13,10 +13,15 @@ import basicStyle from '@imd/assets/styles/constants';
import
FrappeChart
from
'
frappe-charts/dist/frappe-charts.min.esm
'
;
import
*
as
configs
from
'
./config
'
;
import
'
frappe-charts/dist/frappe-charts.min.css
'
;
import
Tabs
,
{
TabPane
}
from
'
@imd/components/uielements/tabs
'
;
import
IsoWidgetsWrapper
from
'
@imd/containers/Widgets/WidgetsWrapper
'
;
import
TotalFriendsByDayLine
from
'
./Components/TotalFriendsByDayLine/TotalFriendsByDayLine
'
;
import
FriendData
from
'
./Data/friends/friends.json
'
;
const
SentReceivedPie
=
lazy
(()
=>
import
(
'
./Components/SentReceivedPie/SentReceivedPie
'
));
import
CardWidget
from
'
@imd/containers/Widgets/Card/CardWidget
'
;
import
IntlMessages
from
'
@imd/components/utility/intlMessages
'
;
function
callback
(
key
)
{}
export
default
class
extends
Component
{
...
...
@@ -102,6 +107,43 @@ export default class extends Component {
<
/DropzoneWrapper
>
<
/ContentHolder
>
<
/Box
>
<
Box
title
=
"
Interpretation
"
>
<
Tabs
defaultActiveKey
=
"
1
"
onChange
=
{
callback
}
>
<
TabPane
tab
=
"
Raw Data
"
key
=
"
1
"
>
{
FriendData
.
friends
.
map
((
friend
,
idx
)
=>
(
<
Col
lg
=
{
6
}
md
=
{
12
}
sm
=
{
12
}
xs
=
{
24
}
style
=
{
colStyle
}
>
<
Box
>
<
h1
>
{
friend
.
name
}
<
/h1
>
<
div
>
{
moment
.
unix
(
friend
.
timestamp
).
format
(
'
YYYY-MM-DD
'
)}
<
/div
>
<
/Box
>
<
/Col
>
))}
<
/TabPane
>
<
TabPane
tab
=
"
Analytics
"
key
=
"
2
"
>
<
Row
style
=
{
rowStyle
}
gutter
=
{
0
}
justify
=
"
start
"
>
<
Col
lg
=
{
24
}
md
=
{
12
}
sm
=
{
12
}
xs
=
{
24
}
style
=
{
colStyle
}
>
<
IsoWidgetsWrapper
>
<
Box
title
=
"
Total Friends By Day
"
>
<
ContentHolder
>
<
TotalFriendsByDayLine
/>
<
/ContentHolder
>
<
/Box
>
<
/IsoWidgetsWrapper
>
<
/Col
>
<
/Row
>
<
Row
style
=
{
rowStyle
}
gutter
=
{
0
}
justify
=
"
start
"
>
<
Col
lg
=
{
8
}
md
=
{
12
}
sm
=
{
12
}
xs
=
{
24
}
style
=
{
colStyle
}
>
<
IsoWidgetsWrapper
>
<
Box
height
=
{
450
}
title
=
"
Friend Statuses
"
>
<
SentReceivedPie
/>
<
/Box
>
<
/IsoWidgetsWrapper
>
<
/Col
>
<
/Row
>
<
/TabPane
>
<
/Tabs
>
<
/Box
>
<
/LayoutWrapper
>
);
};
...
...
This diff is collapsed.
Click to expand it.
src/containers/Instagram/Components/ConnectionsByDayLine/config.js
+
0
−
1
View file @
b0c5a353
...
...
@@ -27,7 +27,6 @@ for (const [name, dat] of Object.entries(ConnectionData.followers).reverse()) {
for
(
const
[
name
,
dat
]
of
Object
.
entries
(
ConnectionData
.
following
).
reverse
())
{
let
date
=
moment
(
dat
).
format
(
'
YYYY-MM-DD
'
);
console
.
log
(
date
);
if
(
date
in
followingPerDay
)
{
followingPerDay
[
date
]
+=
1
;
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment