{"action":"created","comment":{"url":"https://api.github.com/repos/uxebu/james/pulls/comments/42468342","id":42468342,"diff_hunk":"@@ -53,18 +76,36 @@ export default class Request extends React.Component {\n       top: positionTop\n     };\n \n-    return <div className=\"request\" onClick={handleClick} style={style}>\n-      <span className=\"method property\">{request.method}</span>\n-        <span className=\"time property\">\n-          {took}\n-        </span>\n-        <span className=\"status-code property\">\n-          {response.statusCode}\n-        </span>\n-      <FullUrl request={request} />\n+    let contextMenuItems = [{\n+      title: 'Add mapping',\n+      icon: 'fa-plus',\n+      onClick: (event) => {\n+        event.preventDefault();\n+        showWindow('UrlMapping', {urlInput: request.fullUrl()});\n+        this._toggleContextMenu();\n+      }\n+    }];\n+\n+    var contextMenu;","path":"src/component/request.js","position":66,"original_position":66,"commit_id":"e104ccfaf86b7a1fd88a0666ab2ab1fc346742cb","original_commit_id":"e104ccfaf86b7a1fd88a0666ab2ab1fc346742cb","user":{"login":"nerdbeere","id":423218,"avatar_url":"https://avatars.githubusercontent.com/u/423218?v=3","gravatar_id":"","url":"https://api.github.com/users/nerdbeere","html_url":"https://github.com/nerdbeere","followers_url":"https://api.github.com/users/nerdbeere/followers","following_url":"https://api.github.com/users/nerdbeere/following{/other_user}","gists_url":"https://api.github.com/users/nerdbeere/gists{/gist_id}","starred_url":"https://api.github.com/users/nerdbeere/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nerdbeere/subscriptions","organizations_url":"https://api.github.com/users/nerdbeere/orgs","repos_url":"https://api.github.com/users/nerdbeere/repos","events_url":"https://api.github.com/users/nerdbeere/events{/privacy}","received_events_url":"https://api.github.com/users/nerdbeere/received_events","type":"User","site_admin":false},"body":"use let instead of var","created_at":"2015-10-20T08:35:16Z","updated_at":"2015-10-20T08:35:16Z","html_url":"https://github.com/uxebu/james/pull/18#discussion_r42468342","pull_request_url":"https://api.github.com/repos/uxebu/james/pulls/18","_links":{"self":{"href":"https://api.github.com/repos/uxebu/james/pulls/comments/42468342"},"html":{"href":"https://github.com/uxebu/james/pull/18#discussion_r42468342"},"pull_request":{"href":"https://api.github.com/repos/uxebu/james/pulls/18"}}},"pull_request":{"url":"https://api.github.com/repos/uxebu/james/pulls/18","id":48079757,"html_url":"https://github.com/uxebu/james/pull/18","diff_url":"https://github.com/uxebu/james/pull/18.diff","patch_url":"https://github.com/uxebu/james/pull/18.patch","issue_url":"https://api.github.com/repos/uxebu/james/issues/18","number":18,"state":"open","locked":false,"title":"Add context menu","user":{"login":"davidneat","id":4222309,"avatar_url":"https://avatars.githubusercontent.com/u/4222309?v=3","gravatar_id":"","url":"https://api.github.com/users/davidneat","html_url":"https://github.com/davidneat","followers_url":"https://api.github.com/users/davidneat/followers","following_url":"https://api.github.com/users/davidneat/following{/other_user}","gists_url":"https://api.github.com/users/davidneat/gists{/gist_id}","starred_url":"https://api.github.com/users/davidneat/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/davidneat/subscriptions","organizations_url":"https://api.github.com/users/davidneat/orgs","repos_url":"https://api.github.com/users/davidneat/repos","events_url":"https://api.github.com/users/davidneat/events{/privacy}","received_events_url":"https://api.github.com/users/davidneat/received_events","type":"User","site_admin":false},"body":"","created_at":"2015-10-19T14:36:24Z","updated_at":"2015-10-20T08:35:16Z","closed_at":null,"merged_at":null,"merge_commit_sha":"ccc77e1a188fb87cf0137059d3f071f607d6fae0","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/uxebu/james/pulls/18/commits","review_comments_url":"https://api.github.com/repos/uxebu/james/pulls/18/comments","review_comment_url":"https://api.github.com/repos/uxebu/james/pulls/comments{/number}","comments_url":"https://api.github.com/repos/uxebu/james/issues/18/comments","statuses_url":"https://api.github.com/repos/uxebu/james/statuses/e104ccfaf86b7a1fd88a0666ab2ab1fc346742cb","head":{"label":"uxebu:context-menu","ref":"context-menu","sha":"e104ccfaf86b7a1fd88a0666ab2ab1fc346742cb","user":{"login":"uxebu","id":170897,"avatar_url":"https://avatars.githubusercontent.com/u/170897?v=3","gravatar_id":"","url":"https://api.github.com/users/uxebu","html_url":"https://github.com/uxebu","followers_url":"https://api.github.com/users/uxebu/followers","following_url":"https://api.github.com/users/uxebu/following{/other_user}","gists_url":"https://api.github.com/users/uxebu/gists{/gist_id}","starred_url":"https://api.github.com/users/uxebu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/uxebu/subscriptions","organizations_url":"https://api.github.com/users/uxebu/orgs","repos_url":"https://api.github.com/users/uxebu/repos","events_url":"https://api.github.com/users/uxebu/events{/privacy}","received_events_url":"https://api.github.com/users/uxebu/received_events","type":"Organization","site_admin":false},"repo":{"id":38034368,"name":"james","full_name":"uxebu/james","owner":{"login":"uxebu","id":170897,"avatar_url":"https://avatars.githubusercontent.com/u/170897?v=3","gravatar_id":"","url":"https://api.github.com/users/uxebu","html_url":"https://github.com/uxebu","followers_url":"https://api.github.com/users/uxebu/followers","following_url":"https://api.github.com/users/uxebu/following{/other_user}","gists_url":"https://api.github.com/users/uxebu/gists{/gist_id}","starred_url":"https://api.github.com/users/uxebu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/uxebu/subscriptions","organizations_url":"https://api.github.com/users/uxebu/orgs","repos_url":"https://api.github.com/users/uxebu/repos","events_url":"https://api.github.com/users/uxebu/events{/privacy}","received_events_url":"https://api.github.com/users/uxebu/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/uxebu/james","description":"Web Debugging Proxy Application","fork":false,"url":"https://api.github.com/repos/uxebu/james","forks_url":"https://api.github.com/repos/uxebu/james/forks","keys_url":"https://api.github.com/repos/uxebu/james/keys{/key_id}","collaborators_url":"https://api.github.com/repos/uxebu/james/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/uxebu/james/teams","hooks_url":"https://api.github.com/repos/uxebu/james/hooks","issue_events_url":"https://api.github.com/repos/uxebu/james/issues/events{/number}","events_url":"https://api.github.com/repos/uxebu/james/events","assignees_url":"https://api.github.com/repos/uxebu/james/assignees{/user}","branches_url":"https://api.github.com/repos/uxebu/james/branches{/branch}","tags_url":"https://api.github.com/repos/uxebu/james/tags","blobs_url":"https://api.github.com/repos/uxebu/james/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/uxebu/james/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/uxebu/james/git/refs{/sha}","trees_url":"https://api.github.com/repos/uxebu/james/git/trees{/sha}","statuses_url":"https://api.github.com/repos/uxebu/james/statuses/{sha}","languages_url":"https://api.github.com/repos/uxebu/james/languages","stargazers_url":"https://api.github.com/repos/uxebu/james/stargazers","contributors_url":"https://api.github.com/repos/uxebu/james/contributors","subscribers_url":"https://api.github.com/repos/uxebu/james/subscribers","subscription_url":"https://api.github.com/repos/uxebu/james/subscription","commits_url":"https://api.github.com/repos/uxebu/james/commits{/sha}","git_commits_url":"https://api.github.com/repos/uxebu/james/git/commits{/sha}","comments_url":"https://api.github.com/repos/uxebu/james/comments{/number}","issue_comment_url":"https://api.github.com/repos/uxebu/james/issues/comments{/number}","contents_url":"https://api.github.com/repos/uxebu/james/contents/{+path}","compare_url":"https://api.github.com/repos/uxebu/james/compare/{base}...{head}","merges_url":"https://api.github.com/repos/uxebu/james/merges","archive_url":"https://api.github.com/repos/uxebu/james/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/uxebu/james/downloads","issues_url":"https://api.github.com/repos/uxebu/james/issues{/number}","pulls_url":"https://api.github.com/repos/uxebu/james/pulls{/number}","milestones_url":"https://api.github.com/repos/uxebu/james/milestones{/number}","notifications_url":"https://api.github.com/repos/uxebu/james/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/uxebu/james/labels{/name}","releases_url":"https://api.github.com/repos/uxebu/james/releases{/id}","created_at":"2015-06-25T07:20:34Z","updated_at":"2015-09-28T22:58:49Z","pushed_at":"2015-10-19T14:49:47Z","git_url":"git://github.com/uxebu/james.git","ssh_url":"git@github.com:uxebu/james.git","clone_url":"https://github.com/uxebu/james.git","svn_url":"https://github.com/uxebu/james","homepage":"","size":1896,"stargazers_count":21,"watchers_count":21,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"open_issues_count":5,"forks":1,"open_issues":5,"watchers":21,"default_branch":"master"}},"base":{"label":"uxebu:master","ref":"master","sha":"ea63b52694656d76ff183603b9971dfcf427e675","user":{"login":"uxebu","id":170897,"avatar_url":"https://avatars.githubusercontent.com/u/170897?v=3","gravatar_id":"","url":"https://api.github.com/users/uxebu","html_url":"https://github.com/uxebu","followers_url":"https://api.github.com/users/uxebu/followers","following_url":"https://api.github.com/users/uxebu/following{/other_user}","gists_url":"https://api.github.com/users/uxebu/gists{/gist_id}","starred_url":"https://api.github.com/users/uxebu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/uxebu/subscriptions","organizations_url":"https://api.github.com/users/uxebu/orgs","repos_url":"https://api.github.com/users/uxebu/repos","events_url":"https://api.github.com/users/uxebu/events{/privacy}","received_events_url":"https://api.github.com/users/uxebu/received_events","type":"Organization","site_admin":false},"repo":{"id":38034368,"name":"james","full_name":"uxebu/james","owner":{"login":"uxebu","id":170897,"avatar_url":"https://avatars.githubusercontent.com/u/170897?v=3","gravatar_id":"","url":"https://api.github.com/users/uxebu","html_url":"https://github.com/uxebu","followers_url":"https://api.github.com/users/uxebu/followers","following_url":"https://api.github.com/users/uxebu/following{/other_user}","gists_url":"https://api.github.com/users/uxebu/gists{/gist_id}","starred_url":"https://api.github.com/users/uxebu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/uxebu/subscriptions","organizations_url":"https://api.github.com/users/uxebu/orgs","repos_url":"https://api.github.com/users/uxebu/repos","events_url":"https://api.github.com/users/uxebu/events{/privacy}","received_events_url":"https://api.github.com/users/uxebu/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/uxebu/james","description":"Web Debugging Proxy Application","fork":false,"url":"https://api.github.com/repos/uxebu/james","forks_url":"https://api.github.com/repos/uxebu/james/forks","keys_url":"https://api.github.com/repos/uxebu/james/keys{/key_id}","collaborators_url":"https://api.github.com/repos/uxebu/james/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/uxebu/james/teams","hooks_url":"https://api.github.com/repos/uxebu/james/hooks","issue_events_url":"https://api.github.com/repos/uxebu/james/issues/events{/number}","events_url":"https://api.github.com/repos/uxebu/james/events","assignees_url":"https://api.github.com/repos/uxebu/james/assignees{/user}","branches_url":"https://api.github.com/repos/uxebu/james/branches{/branch}","tags_url":"https://api.github.com/repos/uxebu/james/tags","blobs_url":"https://api.github.com/repos/uxebu/james/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/uxebu/james/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/uxebu/james/git/refs{/sha}","trees_url":"https://api.github.com/repos/uxebu/james/git/trees{/sha}","statuses_url":"https://api.github.com/repos/uxebu/james/statuses/{sha}","languages_url":"https://api.github.com/repos/uxebu/james/languages","stargazers_url":"https://api.github.com/repos/uxebu/james/stargazers","contributors_url":"https://api.github.com/repos/uxebu/james/contributors","subscribers_url":"https://api.github.com/repos/uxebu/james/subscribers","subscription_url":"https://api.github.com/repos/uxebu/james/subscription","commits_url":"https://api.github.com/repos/uxebu/james/commits{/sha}","git_commits_url":"https://api.github.com/repos/uxebu/james/git/commits{/sha}","comments_url":"https://api.github.com/repos/uxebu/james/comments{/number}","issue_comment_url":"https://api.github.com/repos/uxebu/james/issues/comments{/number}","contents_url":"https://api.github.com/repos/uxebu/james/contents/{+path}","compare_url":"https://api.github.com/repos/uxebu/james/compare/{base}...{head}","merges_url":"https://api.github.com/repos/uxebu/james/merges","archive_url":"https://api.github.com/repos/uxebu/james/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/uxebu/james/downloads","issues_url":"https://api.github.com/repos/uxebu/james/issues{/number}","pulls_url":"https://api.github.com/repos/uxebu/james/pulls{/number}","milestones_url":"https://api.github.com/repos/uxebu/james/milestones{/number}","notifications_url":"https://api.github.com/repos/uxebu/james/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/uxebu/james/labels{/name}","releases_url":"https://api.github.com/repos/uxebu/james/releases{/id}","created_at":"2015-06-25T07:20:34Z","updated_at":"2015-09-28T22:58:49Z","pushed_at":"2015-10-19T14:49:47Z","git_url":"git://github.com/uxebu/james.git","ssh_url":"git@github.com:uxebu/james.git","clone_url":"https://github.com/uxebu/james.git","svn_url":"https://github.com/uxebu/james","homepage":"","size":1896,"stargazers_count":21,"watchers_count":21,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"open_issues_count":5,"forks":1,"open_issues":5,"watchers":21,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/uxebu/james/pulls/18"},"html":{"href":"https://github.com/uxebu/james/pull/18"},"issue":{"href":"https://api.github.com/repos/uxebu/james/issues/18"},"comments":{"href":"https://api.github.com/repos/uxebu/james/issues/18/comments"},"review_comments":{"href":"https://api.github.com/repos/uxebu/james/pulls/18/comments"},"review_comment":{"href":"https://api.github.com/repos/uxebu/james/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/uxebu/james/pulls/18/commits"},"statuses":{"href":"https://api.github.com/repos/uxebu/james/statuses/e104ccfaf86b7a1fd88a0666ab2ab1fc346742cb"}}}}