{"action":"created","comment":{"url":"https://api.github.com/repos/hereisnaman/gitfame/pulls/comments/189433512","pull_request_review_id":121618031,"id":189433512,"diff_hunk":"@@ -0,0 +1,46 @@\n+import React, { Component } from 'react';\n+import html2canvas from 'html2canvas';\n+import IoAndroidCamera from 'react-icons/lib/io/android-camera';\n+import ShareScreen from './ShareScreen';\n+\n+class Capture extends Component {\n+  constructor(props) {\n+    super(props);\n+    this.state = {\n+      img: '',\n+      isOpen: false,\n+    };\n+    this.takeScreenshot = this.takeScreenshot.bind(this);\n+    this.toggleModal = this.toggleModal.bind(this);\n+  }\n+\n+  toggleModal = () => {\n+    this.setState({\n+      isOpen: !this.state.isOpen,\n+    });\n+  };\n+\n+  takeScreenshot() {\n+    const h = this;\n+    html2canvas(document.body).then(canvas => {","path":"app/components/Capture.jsx","position":25,"original_position":25,"commit_id":"e3c89aef41cafe3d4a14ef19bda9fcbade63ebc5","original_commit_id":"e3c89aef41cafe3d4a14ef19bda9fcbade63ebc5","user":{"login":"hereisnaman","id":22571395,"avatar_url":"https://avatars0.githubusercontent.com/u/22571395?v=4","gravatar_id":"","url":"https://api.github.com/users/hereisnaman","html_url":"https://github.com/hereisnaman","followers_url":"https://api.github.com/users/hereisnaman/followers","following_url":"https://api.github.com/users/hereisnaman/following{/other_user}","gists_url":"https://api.github.com/users/hereisnaman/gists{/gist_id}","starred_url":"https://api.github.com/users/hereisnaman/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hereisnaman/subscriptions","organizations_url":"https://api.github.com/users/hereisnaman/orgs","repos_url":"https://api.github.com/users/hereisnaman/repos","events_url":"https://api.github.com/users/hereisnaman/events{/privacy}","received_events_url":"https://api.github.com/users/hereisnaman/received_events","type":"User","site_admin":false},"body":"don't have to capture the body but the report container, also create a new virtual element because there might be css changes needed to be made.","created_at":"2018-05-19T12:37:32Z","updated_at":"2018-05-19T12:37:41Z","html_url":"https://github.com/hereisnaman/gitfame/pull/43#discussion_r189433512","pull_request_url":"https://api.github.com/repos/hereisnaman/gitfame/pulls/43","author_association":"OWNER","_links":{"self":{"href":"https://api.github.com/repos/hereisnaman/gitfame/pulls/comments/189433512"},"html":{"href":"https://github.com/hereisnaman/gitfame/pull/43#discussion_r189433512"},"pull_request":{"href":"https://api.github.com/repos/hereisnaman/gitfame/pulls/43"}}},"pull_request":{"url":"https://api.github.com/repos/hereisnaman/gitfame/pulls/43","id":189177930,"html_url":"https://github.com/hereisnaman/gitfame/pull/43","diff_url":"https://github.com/hereisnaman/gitfame/pull/43.diff","patch_url":"https://github.com/hereisnaman/gitfame/pull/43.patch","issue_url":"https://api.github.com/repos/hereisnaman/gitfame/issues/43","number":43,"state":"open","locked":false,"title":"capture screenshot","user":{"login":"architkshk","id":5001704,"avatar_url":"https://avatars1.githubusercontent.com/u/5001704?v=4","gravatar_id":"","url":"https://api.github.com/users/architkshk","html_url":"https://github.com/architkshk","followers_url":"https://api.github.com/users/architkshk/followers","following_url":"https://api.github.com/users/architkshk/following{/other_user}","gists_url":"https://api.github.com/users/architkshk/gists{/gist_id}","starred_url":"https://api.github.com/users/architkshk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/architkshk/subscriptions","organizations_url":"https://api.github.com/users/architkshk/orgs","repos_url":"https://api.github.com/users/architkshk/repos","events_url":"https://api.github.com/users/architkshk/events{/privacy}","received_events_url":"https://api.github.com/users/architkshk/received_events","type":"User","site_admin":false},"body":"#41 \r\n@hereisnaman , please review the code. Although it's not completed yet, please check the approach.\r\n![screenshot from 2018-05-19 14-01-53](https://user-images.githubusercontent.com/5001704/40266670-406f7f00-5b6d-11e8-8272-c4d791c2c129.png)\r\n![screenshot from 2018-05-19 14-02-11](https://user-images.githubusercontent.com/5001704/40266671-40b037c0-5b6d-11e8-9ff3-9830ec4f1160.png)\r\n","created_at":"2018-05-19T08:32:26Z","updated_at":"2018-05-19T12:37:41Z","closed_at":null,"merged_at":null,"merge_commit_sha":"696f9e0609edd2d3a7ff4a3360718b95d0d3dc48","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/hereisnaman/gitfame/pulls/43/commits","review_comments_url":"https://api.github.com/repos/hereisnaman/gitfame/pulls/43/comments","review_comment_url":"https://api.github.com/repos/hereisnaman/gitfame/pulls/comments{/number}","comments_url":"https://api.github.com/repos/hereisnaman/gitfame/issues/43/comments","statuses_url":"https://api.github.com/repos/hereisnaman/gitfame/statuses/e3c89aef41cafe3d4a14ef19bda9fcbade63ebc5","head":{"label":"architkshk:screenshot","ref":"screenshot","sha":"e3c89aef41cafe3d4a14ef19bda9fcbade63ebc5","user":{"login":"architkshk","id":5001704,"avatar_url":"https://avatars1.githubusercontent.com/u/5001704?v=4","gravatar_id":"","url":"https://api.github.com/users/architkshk","html_url":"https://github.com/architkshk","followers_url":"https://api.github.com/users/architkshk/followers","following_url":"https://api.github.com/users/architkshk/following{/other_user}","gists_url":"https://api.github.com/users/architkshk/gists{/gist_id}","starred_url":"https://api.github.com/users/architkshk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/architkshk/subscriptions","organizations_url":"https://api.github.com/users/architkshk/orgs","repos_url":"https://api.github.com/users/architkshk/repos","events_url":"https://api.github.com/users/architkshk/events{/privacy}","received_events_url":"https://api.github.com/users/architkshk/received_events","type":"User","site_admin":false},"repo":{"id":134026341,"name":"gitfame","full_name":"architkshk/gitfame","owner":{"login":"architkshk","id":5001704,"avatar_url":"https://avatars1.githubusercontent.com/u/5001704?v=4","gravatar_id":"","url":"https://api.github.com/users/architkshk","html_url":"https://github.com/architkshk","followers_url":"https://api.github.com/users/architkshk/followers","following_url":"https://api.github.com/users/architkshk/following{/other_user}","gists_url":"https://api.github.com/users/architkshk/gists{/gist_id}","starred_url":"https://api.github.com/users/architkshk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/architkshk/subscriptions","organizations_url":"https://api.github.com/users/architkshk/orgs","repos_url":"https://api.github.com/users/architkshk/repos","events_url":"https://api.github.com/users/architkshk/events{/privacy}","received_events_url":"https://api.github.com/users/architkshk/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/architkshk/gitfame","description":"A Github contributions analyser","fork":true,"url":"https://api.github.com/repos/architkshk/gitfame","forks_url":"https://api.github.com/repos/architkshk/gitfame/forks","keys_url":"https://api.github.com/repos/architkshk/gitfame/keys{/key_id}","collaborators_url":"https://api.github.com/repos/architkshk/gitfame/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/architkshk/gitfame/teams","hooks_url":"https://api.github.com/repos/architkshk/gitfame/hooks","issue_events_url":"https://api.github.com/repos/architkshk/gitfame/issues/events{/number}","events_url":"https://api.github.com/repos/architkshk/gitfame/events","assignees_url":"https://api.github.com/repos/architkshk/gitfame/assignees{/user}","branches_url":"https://api.github.com/repos/architkshk/gitfame/branches{/branch}","tags_url":"https://api.github.com/repos/architkshk/gitfame/tags","blobs_url":"https://api.github.com/repos/architkshk/gitfame/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/architkshk/gitfame/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/architkshk/gitfame/git/refs{/sha}","trees_url":"https://api.github.com/repos/architkshk/gitfame/git/trees{/sha}","statuses_url":"https://api.github.com/repos/architkshk/gitfame/statuses/{sha}","languages_url":"https://api.github.com/repos/architkshk/gitfame/languages","stargazers_url":"https://api.github.com/repos/architkshk/gitfame/stargazers","contributors_url":"https://api.github.com/repos/architkshk/gitfame/contributors","subscribers_url":"https://api.github.com/repos/architkshk/gitfame/subscribers","subscription_url":"https://api.github.com/repos/architkshk/gitfame/subscription","commits_url":"https://api.github.com/repos/architkshk/gitfame/commits{/sha}","git_commits_url":"https://api.github.com/repos/architkshk/gitfame/git/commits{/sha}","comments_url":"https://api.github.com/repos/architkshk/gitfame/comments{/number}","issue_comment_url":"https://api.github.com/repos/architkshk/gitfame/issues/comments{/number}","contents_url":"https://api.github.com/repos/architkshk/gitfame/contents/{+path}","compare_url":"https://api.github.com/repos/architkshk/gitfame/compare/{base}...{head}","merges_url":"https://api.github.com/repos/architkshk/gitfame/merges","archive_url":"https://api.github.com/repos/architkshk/gitfame/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/architkshk/gitfame/downloads","issues_url":"https://api.github.com/repos/architkshk/gitfame/issues{/number}","pulls_url":"https://api.github.com/repos/architkshk/gitfame/pulls{/number}","milestones_url":"https://api.github.com/repos/architkshk/gitfame/milestones{/number}","notifications_url":"https://api.github.com/repos/architkshk/gitfame/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/architkshk/gitfame/labels{/name}","releases_url":"https://api.github.com/repos/architkshk/gitfame/releases{/id}","deployments_url":"https://api.github.com/repos/architkshk/gitfame/deployments","created_at":"2018-05-19T03:31:27Z","updated_at":"2018-05-19T03:31:29Z","pushed_at":"2018-05-19T11:41:46Z","git_url":"git://github.com/architkshk/gitfame.git","ssh_url":"git@github.com:architkshk/gitfame.git","clone_url":"https://github.com/architkshk/gitfame.git","svn_url":"https://github.com/architkshk/gitfame","homepage":"https://gitfa.me","size":2485,"stargazers_count":0,"watchers_count":0,"language":"CSS","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":0,"license":{"key":"mit","name":"MIT License","spdx_id":"MIT","url":"https://api.github.com/licenses/mit"},"forks":0,"open_issues":0,"watchers":0,"default_branch":"Development"}},"base":{"label":"hereisnaman:Development","ref":"Development","sha":"a99fa3efa7c80443b51f0954c4b0b711ebdaea2b","user":{"login":"hereisnaman","id":22571395,"avatar_url":"https://avatars0.githubusercontent.com/u/22571395?v=4","gravatar_id":"","url":"https://api.github.com/users/hereisnaman","html_url":"https://github.com/hereisnaman","followers_url":"https://api.github.com/users/hereisnaman/followers","following_url":"https://api.github.com/users/hereisnaman/following{/other_user}","gists_url":"https://api.github.com/users/hereisnaman/gists{/gist_id}","starred_url":"https://api.github.com/users/hereisnaman/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hereisnaman/subscriptions","organizations_url":"https://api.github.com/users/hereisnaman/orgs","repos_url":"https://api.github.com/users/hereisnaman/repos","events_url":"https://api.github.com/users/hereisnaman/events{/privacy}","received_events_url":"https://api.github.com/users/hereisnaman/received_events","type":"User","site_admin":false},"repo":{"id":107674163,"name":"gitfame","full_name":"hereisnaman/gitfame","owner":{"login":"hereisnaman","id":22571395,"avatar_url":"https://avatars0.githubusercontent.com/u/22571395?v=4","gravatar_id":"","url":"https://api.github.com/users/hereisnaman","html_url":"https://github.com/hereisnaman","followers_url":"https://api.github.com/users/hereisnaman/followers","following_url":"https://api.github.com/users/hereisnaman/following{/other_user}","gists_url":"https://api.github.com/users/hereisnaman/gists{/gist_id}","starred_url":"https://api.github.com/users/hereisnaman/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hereisnaman/subscriptions","organizations_url":"https://api.github.com/users/hereisnaman/orgs","repos_url":"https://api.github.com/users/hereisnaman/repos","events_url":"https://api.github.com/users/hereisnaman/events{/privacy}","received_events_url":"https://api.github.com/users/hereisnaman/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/hereisnaman/gitfame","description":"A Github contributions analyser","fork":false,"url":"https://api.github.com/repos/hereisnaman/gitfame","forks_url":"https://api.github.com/repos/hereisnaman/gitfame/forks","keys_url":"https://api.github.com/repos/hereisnaman/gitfame/keys{/key_id}","collaborators_url":"https://api.github.com/repos/hereisnaman/gitfame/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/hereisnaman/gitfame/teams","hooks_url":"https://api.github.com/repos/hereisnaman/gitfame/hooks","issue_events_url":"https://api.github.com/repos/hereisnaman/gitfame/issues/events{/number}","events_url":"https://api.github.com/repos/hereisnaman/gitfame/events","assignees_url":"https://api.github.com/repos/hereisnaman/gitfame/assignees{/user}","branches_url":"https://api.github.com/repos/hereisnaman/gitfame/branches{/branch}","tags_url":"https://api.github.com/repos/hereisnaman/gitfame/tags","blobs_url":"https://api.github.com/repos/hereisnaman/gitfame/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/hereisnaman/gitfame/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/hereisnaman/gitfame/git/refs{/sha}","trees_url":"https://api.github.com/repos/hereisnaman/gitfame/git/trees{/sha}","statuses_url":"https://api.github.com/repos/hereisnaman/gitfame/statuses/{sha}","languages_url":"https://api.github.com/repos/hereisnaman/gitfame/languages","stargazers_url":"https://api.github.com/repos/hereisnaman/gitfame/stargazers","contributors_url":"https://api.github.com/repos/hereisnaman/gitfame/contributors","subscribers_url":"https://api.github.com/repos/hereisnaman/gitfame/subscribers","subscription_url":"https://api.github.com/repos/hereisnaman/gitfame/subscription","commits_url":"https://api.github.com/repos/hereisnaman/gitfame/commits{/sha}","git_commits_url":"https://api.github.com/repos/hereisnaman/gitfame/git/commits{/sha}","comments_url":"https://api.github.com/repos/hereisnaman/gitfame/comments{/number}","issue_comment_url":"https://api.github.com/repos/hereisnaman/gitfame/issues/comments{/number}","contents_url":"https://api.github.com/repos/hereisnaman/gitfame/contents/{+path}","compare_url":"https://api.github.com/repos/hereisnaman/gitfame/compare/{base}...{head}","merges_url":"https://api.github.com/repos/hereisnaman/gitfame/merges","archive_url":"https://api.github.com/repos/hereisnaman/gitfame/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/hereisnaman/gitfame/downloads","issues_url":"https://api.github.com/repos/hereisnaman/gitfame/issues{/number}","pulls_url":"https://api.github.com/repos/hereisnaman/gitfame/pulls{/number}","milestones_url":"https://api.github.com/repos/hereisnaman/gitfame/milestones{/number}","notifications_url":"https://api.github.com/repos/hereisnaman/gitfame/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/hereisnaman/gitfame/labels{/name}","releases_url":"https://api.github.com/repos/hereisnaman/gitfame/releases{/id}","deployments_url":"https://api.github.com/repos/hereisnaman/gitfame/deployments","created_at":"2017-10-20T12:14:37Z","updated_at":"2018-05-19T00:36:37Z","pushed_at":"2018-05-19T11:41:47Z","git_url":"git://github.com/hereisnaman/gitfame.git","ssh_url":"git@github.com:hereisnaman/gitfame.git","clone_url":"https://github.com/hereisnaman/gitfame.git","svn_url":"https://github.com/hereisnaman/gitfame","homepage":"https://gitfa.me","size":2482,"stargazers_count":97,"watchers_count":97,"language":"CSS","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":13,"mirror_url":null,"archived":false,"open_issues_count":4,"license":{"key":"mit","name":"MIT License","spdx_id":"MIT","url":"https://api.github.com/licenses/mit"},"forks":13,"open_issues":4,"watchers":97,"default_branch":"Development"}},"_links":{"self":{"href":"https://api.github.com/repos/hereisnaman/gitfame/pulls/43"},"html":{"href":"https://github.com/hereisnaman/gitfame/pull/43"},"issue":{"href":"https://api.github.com/repos/hereisnaman/gitfame/issues/43"},"comments":{"href":"https://api.github.com/repos/hereisnaman/gitfame/issues/43/comments"},"review_comments":{"href":"https://api.github.com/repos/hereisnaman/gitfame/pulls/43/comments"},"review_comment":{"href":"https://api.github.com/repos/hereisnaman/gitfame/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/hereisnaman/gitfame/pulls/43/commits"},"statuses":{"href":"https://api.github.com/repos/hereisnaman/gitfame/statuses/e3c89aef41cafe3d4a14ef19bda9fcbade63ebc5"}},"author_association":"NONE"}}
{"actor":{"display_login":"hereisnaman"}}