{"action":"created","comment":{"url":"https://api.github.com/repos/ZhengHe-MD/tryMVC/pulls/comments/79324498","id":79324498,"diff_hunk":"@@ -0,0 +1,65 @@\n+import React from 'react';\n+import ReactDOM from 'react-dom';\n+import { createStore } from 'redux';\n+import MuiThemeProvider from 'material-ui/styles/MuiThemeProvider';\n+import RaisedButton from 'material-ui/RaisedButton';\n+import injectTapEventPlugin from 'react-tap-event-plugin'\n+\n+import Conversation from './components/Conversation';\n+\n+const CommentList = (state = [], action) => {\n+  switch(action.type) {\n+    case 'ADD_COMMENT':\n+      return [\n+        ...state,\n+        {\n+          id: action.id,\n+          username: action.username,\n+          thumbnail: action.thumbnail,\n+          comment: action.comment\n+        }\n+      ];\n+    case 'DEL_COMMENT':\n+      return state.filter( s => s.id !== action.id );\n+    default:\n+      return state;\n+  }\n+}\n+\n+const store = createStore(CommentList);\n+\n+const all_tests = [\n+    {\n+      id: 0,\n+      username: 'haha',\n+      thumnail: 'eeeee',\n+      comment: 'test 1',\n+      type: 'ADD_COMMENT'\n+    },\n+    {\n+      id: 1,\n+      username: 'hehe',\n+      thumnail: 'e e e',\n+      comment: 'test 2',\n+      type: 'ADD_COMMENT'\n+    }\n+  ];\n+\n+injectTapEventPlugin();\n+const CommentApp = (props) => (\n+  <MuiThemeProvider>\n+    <div>\n+      <Conversation store={props.store}/>\n+    </div>\n+  </MuiThemeProvider>\n+);","path":"react-redux/contactsMVC/contacts.js","position":55,"original_position":55,"commit_id":"379d762cd29a6c163d2bfc4d682ca9e944cc4a30","original_commit_id":"379d762cd29a6c163d2bfc4d682ca9e944cc4a30","user":{"login":"ZhengHe-MD","id":18113865,"avatar_url":"https://avatars.githubusercontent.com/u/18113865?v=3","gravatar_id":"","url":"https://api.github.com/users/ZhengHe-MD","html_url":"https://github.com/ZhengHe-MD","followers_url":"https://api.github.com/users/ZhengHe-MD/followers","following_url":"https://api.github.com/users/ZhengHe-MD/following{/other_user}","gists_url":"https://api.github.com/users/ZhengHe-MD/gists{/gist_id}","starred_url":"https://api.github.com/users/ZhengHe-MD/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ZhengHe-MD/subscriptions","organizations_url":"https://api.github.com/users/ZhengHe-MD/orgs","repos_url":"https://api.github.com/users/ZhengHe-MD/repos","events_url":"https://api.github.com/users/ZhengHe-MD/events{/privacy}","received_events_url":"https://api.github.com/users/ZhengHe-MD/received_events","type":"User","site_admin":false},"body":"Put these lines of code into App.js and import from that","created_at":"2016-09-19T03:19:24Z","updated_at":"2016-09-19T03:19:24Z","html_url":"https://github.com/ZhengHe-MD/tryMVC/pull/4#discussion_r79324498","pull_request_url":"https://api.github.com/repos/ZhengHe-MD/tryMVC/pulls/4","_links":{"self":{"href":"https://api.github.com/repos/ZhengHe-MD/tryMVC/pulls/comments/79324498"},"html":{"href":"https://github.com/ZhengHe-MD/tryMVC/pull/4#discussion_r79324498"},"pull_request":{"href":"https://api.github.com/repos/ZhengHe-MD/tryMVC/pulls/4"}}},"pull_request":{"url":"https://api.github.com/repos/ZhengHe-MD/tryMVC/pulls/4","id":85732910,"html_url":"https://github.com/ZhengHe-MD/tryMVC/pull/4","diff_url":"https://github.com/ZhengHe-MD/tryMVC/pull/4.diff","patch_url":"https://github.com/ZhengHe-MD/tryMVC/pull/4.patch","issue_url":"https://api.github.com/repos/ZhengHe-MD/tryMVC/issues/4","number":4,"state":"open","locked":false,"title":"Feature/contacts","user":{"login":"SunnyCat2013","id":4412909,"avatar_url":"https://avatars.githubusercontent.com/u/4412909?v=3","gravatar_id":"","url":"https://api.github.com/users/SunnyCat2013","html_url":"https://github.com/SunnyCat2013","followers_url":"https://api.github.com/users/SunnyCat2013/followers","following_url":"https://api.github.com/users/SunnyCat2013/following{/other_user}","gists_url":"https://api.github.com/users/SunnyCat2013/gists{/gist_id}","starred_url":"https://api.github.com/users/SunnyCat2013/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/SunnyCat2013/subscriptions","organizations_url":"https://api.github.com/users/SunnyCat2013/orgs","repos_url":"https://api.github.com/users/SunnyCat2013/repos","events_url":"https://api.github.com/users/SunnyCat2013/events{/privacy}","received_events_url":"https://api.github.com/users/SunnyCat2013/received_events","type":"User","site_admin":false},"body":"","created_at":"2016-09-19T02:47:47Z","updated_at":"2016-09-19T03:20:20Z","closed_at":null,"merged_at":null,"merge_commit_sha":"369b5c8ed3ec5730b99eb1d3b6090510cc216273","assignee":{"login":"ZhengHe-MD","id":18113865,"avatar_url":"https://avatars.githubusercontent.com/u/18113865?v=3","gravatar_id":"","url":"https://api.github.com/users/ZhengHe-MD","html_url":"https://github.com/ZhengHe-MD","followers_url":"https://api.github.com/users/ZhengHe-MD/followers","following_url":"https://api.github.com/users/ZhengHe-MD/following{/other_user}","gists_url":"https://api.github.com/users/ZhengHe-MD/gists{/gist_id}","starred_url":"https://api.github.com/users/ZhengHe-MD/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ZhengHe-MD/subscriptions","organizations_url":"https://api.github.com/users/ZhengHe-MD/orgs","repos_url":"https://api.github.com/users/ZhengHe-MD/repos","events_url":"https://api.github.com/users/ZhengHe-MD/events{/privacy}","received_events_url":"https://api.github.com/users/ZhengHe-MD/received_events","type":"User","site_admin":false},"assignees":[{"login":"ZhengHe-MD","id":18113865,"avatar_url":"https://avatars.githubusercontent.com/u/18113865?v=3","gravatar_id":"","url":"https://api.github.com/users/ZhengHe-MD","html_url":"https://github.com/ZhengHe-MD","followers_url":"https://api.github.com/users/ZhengHe-MD/followers","following_url":"https://api.github.com/users/ZhengHe-MD/following{/other_user}","gists_url":"https://api.github.com/users/ZhengHe-MD/gists{/gist_id}","starred_url":"https://api.github.com/users/ZhengHe-MD/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ZhengHe-MD/subscriptions","organizations_url":"https://api.github.com/users/ZhengHe-MD/orgs","repos_url":"https://api.github.com/users/ZhengHe-MD/repos","events_url":"https://api.github.com/users/ZhengHe-MD/events{/privacy}","received_events_url":"https://api.github.com/users/ZhengHe-MD/received_events","type":"User","site_admin":false}],"milestone":null,"commits_url":"https://api.github.com/repos/ZhengHe-MD/tryMVC/pulls/4/commits","review_comments_url":"https://api.github.com/repos/ZhengHe-MD/tryMVC/pulls/4/comments","review_comment_url":"https://api.github.com/repos/ZhengHe-MD/tryMVC/pulls/comments{/number}","comments_url":"https://api.github.com/repos/ZhengHe-MD/tryMVC/issues/4/comments","statuses_url":"https://api.github.com/repos/ZhengHe-MD/tryMVC/statuses/379d762cd29a6c163d2bfc4d682ca9e944cc4a30","head":{"label":"ZhengHe-MD:feature/contacts","ref":"feature/contacts","sha":"379d762cd29a6c163d2bfc4d682ca9e944cc4a30","user":{"login":"ZhengHe-MD","id":18113865,"avatar_url":"https://avatars.githubusercontent.com/u/18113865?v=3","gravatar_id":"","url":"https://api.github.com/users/ZhengHe-MD","html_url":"https://github.com/ZhengHe-MD","followers_url":"https://api.github.com/users/ZhengHe-MD/followers","following_url":"https://api.github.com/users/ZhengHe-MD/following{/other_user}","gists_url":"https://api.github.com/users/ZhengHe-MD/gists{/gist_id}","starred_url":"https://api.github.com/users/ZhengHe-MD/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ZhengHe-MD/subscriptions","organizations_url":"https://api.github.com/users/ZhengHe-MD/orgs","repos_url":"https://api.github.com/users/ZhengHe-MD/repos","events_url":"https://api.github.com/users/ZhengHe-MD/events{/privacy}","received_events_url":"https://api.github.com/users/ZhengHe-MD/received_events","type":"User","site_admin":false},"repo":{"id":68345426,"name":"tryMVC","full_name":"ZhengHe-MD/tryMVC","owner":{"login":"ZhengHe-MD","id":18113865,"avatar_url":"https://avatars.githubusercontent.com/u/18113865?v=3","gravatar_id":"","url":"https://api.github.com/users/ZhengHe-MD","html_url":"https://github.com/ZhengHe-MD","followers_url":"https://api.github.com/users/ZhengHe-MD/followers","following_url":"https://api.github.com/users/ZhengHe-MD/following{/other_user}","gists_url":"https://api.github.com/users/ZhengHe-MD/gists{/gist_id}","starred_url":"https://api.github.com/users/ZhengHe-MD/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ZhengHe-MD/subscriptions","organizations_url":"https://api.github.com/users/ZhengHe-MD/orgs","repos_url":"https://api.github.com/users/ZhengHe-MD/repos","events_url":"https://api.github.com/users/ZhengHe-MD/events{/privacy}","received_events_url":"https://api.github.com/users/ZhengHe-MD/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/ZhengHe-MD/tryMVC","description":null,"fork":false,"url":"https://api.github.com/repos/ZhengHe-MD/tryMVC","forks_url":"https://api.github.com/repos/ZhengHe-MD/tryMVC/forks","keys_url":"https://api.github.com/repos/ZhengHe-MD/tryMVC/keys{/key_id}","collaborators_url":"https://api.github.com/repos/ZhengHe-MD/tryMVC/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/ZhengHe-MD/tryMVC/teams","hooks_url":"https://api.github.com/repos/ZhengHe-MD/tryMVC/hooks","issue_events_url":"https://api.github.com/repos/ZhengHe-MD/tryMVC/issues/events{/number}","events_url":"https://api.github.com/repos/ZhengHe-MD/tryMVC/events","assignees_url":"https://api.github.com/repos/ZhengHe-MD/tryMVC/assignees{/user}","branches_url":"https://api.github.com/repos/ZhengHe-MD/tryMVC/branches{/branch}","tags_url":"https://api.github.com/repos/ZhengHe-MD/tryMVC/tags","blobs_url":"https://api.github.com/repos/ZhengHe-MD/tryMVC/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/ZhengHe-MD/tryMVC/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/ZhengHe-MD/tryMVC/git/refs{/sha}","trees_url":"https://api.github.com/repos/ZhengHe-MD/tryMVC/git/trees{/sha}","statuses_url":"https://api.github.com/repos/ZhengHe-MD/tryMVC/statuses/{sha}","languages_url":"https://api.github.com/repos/ZhengHe-MD/tryMVC/languages","stargazers_url":"https://api.github.com/repos/ZhengHe-MD/tryMVC/stargazers","contributors_url":"https://api.github.com/repos/ZhengHe-MD/tryMVC/contributors","subscribers_url":"https://api.github.com/repos/ZhengHe-MD/tryMVC/subscribers","subscription_url":"https://api.github.com/repos/ZhengHe-MD/tryMVC/subscription","commits_url":"https://api.github.com/repos/ZhengHe-MD/tryMVC/commits{/sha}","git_commits_url":"https://api.github.com/repos/ZhengHe-MD/tryMVC/git/commits{/sha}","comments_url":"https://api.github.com/repos/ZhengHe-MD/tryMVC/comments{/number}","issue_comment_url":"https://api.github.com/repos/ZhengHe-MD/tryMVC/issues/comments{/number}","contents_url":"https://api.github.com/repos/ZhengHe-MD/tryMVC/contents/{+path}","compare_url":"https://api.github.com/repos/ZhengHe-MD/tryMVC/compare/{base}...{head}","merges_url":"https://api.github.com/repos/ZhengHe-MD/tryMVC/merges","archive_url":"https://api.github.com/repos/ZhengHe-MD/tryMVC/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/ZhengHe-MD/tryMVC/downloads","issues_url":"https://api.github.com/repos/ZhengHe-MD/tryMVC/issues{/number}","pulls_url":"https://api.github.com/repos/ZhengHe-MD/tryMVC/pulls{/number}","milestones_url":"https://api.github.com/repos/ZhengHe-MD/tryMVC/milestones{/number}","notifications_url":"https://api.github.com/repos/ZhengHe-MD/tryMVC/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/ZhengHe-MD/tryMVC/labels{/name}","releases_url":"https://api.github.com/repos/ZhengHe-MD/tryMVC/releases{/id}","deployments_url":"https://api.github.com/repos/ZhengHe-MD/tryMVC/deployments","created_at":"2016-09-16T01:49:49Z","updated_at":"2016-09-17T23:50:35Z","pushed_at":"2016-09-19T02:47:47Z","git_url":"git://github.com/ZhengHe-MD/tryMVC.git","ssh_url":"git@github.com:ZhengHe-MD/tryMVC.git","clone_url":"https://github.com/ZhengHe-MD/tryMVC.git","svn_url":"https://github.com/ZhengHe-MD/tryMVC","homepage":null,"size":178,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":1,"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"base":{"label":"ZhengHe-MD:master","ref":"master","sha":"d651283db1bd694690b1811cb9b8ac8c255c2971","user":{"login":"ZhengHe-MD","id":18113865,"avatar_url":"https://avatars.githubusercontent.com/u/18113865?v=3","gravatar_id":"","url":"https://api.github.com/users/ZhengHe-MD","html_url":"https://github.com/ZhengHe-MD","followers_url":"https://api.github.com/users/ZhengHe-MD/followers","following_url":"https://api.github.com/users/ZhengHe-MD/following{/other_user}","gists_url":"https://api.github.com/users/ZhengHe-MD/gists{/gist_id}","starred_url":"https://api.github.com/users/ZhengHe-MD/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ZhengHe-MD/subscriptions","organizations_url":"https://api.github.com/users/ZhengHe-MD/orgs","repos_url":"https://api.github.com/users/ZhengHe-MD/repos","events_url":"https://api.github.com/users/ZhengHe-MD/events{/privacy}","received_events_url":"https://api.github.com/users/ZhengHe-MD/received_events","type":"User","site_admin":false},"repo":{"id":68345426,"name":"tryMVC","full_name":"ZhengHe-MD/tryMVC","owner":{"login":"ZhengHe-MD","id":18113865,"avatar_url":"https://avatars.githubusercontent.com/u/18113865?v=3","gravatar_id":"","url":"https://api.github.com/users/ZhengHe-MD","html_url":"https://github.com/ZhengHe-MD","followers_url":"https://api.github.com/users/ZhengHe-MD/followers","following_url":"https://api.github.com/users/ZhengHe-MD/following{/other_user}","gists_url":"https://api.github.com/users/ZhengHe-MD/gists{/gist_id}","starred_url":"https://api.github.com/users/ZhengHe-MD/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ZhengHe-MD/subscriptions","organizations_url":"https://api.github.com/users/ZhengHe-MD/orgs","repos_url":"https://api.github.com/users/ZhengHe-MD/repos","events_url":"https://api.github.com/users/ZhengHe-MD/events{/privacy}","received_events_url":"https://api.github.com/users/ZhengHe-MD/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/ZhengHe-MD/tryMVC","description":null,"fork":false,"url":"https://api.github.com/repos/ZhengHe-MD/tryMVC","forks_url":"https://api.github.com/repos/ZhengHe-MD/tryMVC/forks","keys_url":"https://api.github.com/repos/ZhengHe-MD/tryMVC/keys{/key_id}","collaborators_url":"https://api.github.com/repos/ZhengHe-MD/tryMVC/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/ZhengHe-MD/tryMVC/teams","hooks_url":"https://api.github.com/repos/ZhengHe-MD/tryMVC/hooks","issue_events_url":"https://api.github.com/repos/ZhengHe-MD/tryMVC/issues/events{/number}","events_url":"https://api.github.com/repos/ZhengHe-MD/tryMVC/events","assignees_url":"https://api.github.com/repos/ZhengHe-MD/tryMVC/assignees{/user}","branches_url":"https://api.github.com/repos/ZhengHe-MD/tryMVC/branches{/branch}","tags_url":"https://api.github.com/repos/ZhengHe-MD/tryMVC/tags","blobs_url":"https://api.github.com/repos/ZhengHe-MD/tryMVC/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/ZhengHe-MD/tryMVC/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/ZhengHe-MD/tryMVC/git/refs{/sha}","trees_url":"https://api.github.com/repos/ZhengHe-MD/tryMVC/git/trees{/sha}","statuses_url":"https://api.github.com/repos/ZhengHe-MD/tryMVC/statuses/{sha}","languages_url":"https://api.github.com/repos/ZhengHe-MD/tryMVC/languages","stargazers_url":"https://api.github.com/repos/ZhengHe-MD/tryMVC/stargazers","contributors_url":"https://api.github.com/repos/ZhengHe-MD/tryMVC/contributors","subscribers_url":"https://api.github.com/repos/ZhengHe-MD/tryMVC/subscribers","subscription_url":"https://api.github.com/repos/ZhengHe-MD/tryMVC/subscription","commits_url":"https://api.github.com/repos/ZhengHe-MD/tryMVC/commits{/sha}","git_commits_url":"https://api.github.com/repos/ZhengHe-MD/tryMVC/git/commits{/sha}","comments_url":"https://api.github.com/repos/ZhengHe-MD/tryMVC/comments{/number}","issue_comment_url":"https://api.github.com/repos/ZhengHe-MD/tryMVC/issues/comments{/number}","contents_url":"https://api.github.com/repos/ZhengHe-MD/tryMVC/contents/{+path}","compare_url":"https://api.github.com/repos/ZhengHe-MD/tryMVC/compare/{base}...{head}","merges_url":"https://api.github.com/repos/ZhengHe-MD/tryMVC/merges","archive_url":"https://api.github.com/repos/ZhengHe-MD/tryMVC/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/ZhengHe-MD/tryMVC/downloads","issues_url":"https://api.github.com/repos/ZhengHe-MD/tryMVC/issues{/number}","pulls_url":"https://api.github.com/repos/ZhengHe-MD/tryMVC/pulls{/number}","milestones_url":"https://api.github.com/repos/ZhengHe-MD/tryMVC/milestones{/number}","notifications_url":"https://api.github.com/repos/ZhengHe-MD/tryMVC/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/ZhengHe-MD/tryMVC/labels{/name}","releases_url":"https://api.github.com/repos/ZhengHe-MD/tryMVC/releases{/id}","deployments_url":"https://api.github.com/repos/ZhengHe-MD/tryMVC/deployments","created_at":"2016-09-16T01:49:49Z","updated_at":"2016-09-17T23:50:35Z","pushed_at":"2016-09-19T02:47:47Z","git_url":"git://github.com/ZhengHe-MD/tryMVC.git","ssh_url":"git@github.com:ZhengHe-MD/tryMVC.git","clone_url":"https://github.com/ZhengHe-MD/tryMVC.git","svn_url":"https://github.com/ZhengHe-MD/tryMVC","homepage":null,"size":178,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":1,"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/ZhengHe-MD/tryMVC/pulls/4"},"html":{"href":"https://github.com/ZhengHe-MD/tryMVC/pull/4"},"issue":{"href":"https://api.github.com/repos/ZhengHe-MD/tryMVC/issues/4"},"comments":{"href":"https://api.github.com/repos/ZhengHe-MD/tryMVC/issues/4/comments"},"review_comments":{"href":"https://api.github.com/repos/ZhengHe-MD/tryMVC/pulls/4/comments"},"review_comment":{"href":"https://api.github.com/repos/ZhengHe-MD/tryMVC/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/ZhengHe-MD/tryMVC/pulls/4/commits"},"statuses":{"href":"https://api.github.com/repos/ZhengHe-MD/tryMVC/statuses/379d762cd29a6c163d2bfc4d682ca9e944cc4a30"}}}}
{"actor":{"display_login":"ZhengHe-MD"}}