{"action":"created","comment":{"url":"https://api.github.com/repos/james-proxy/james/pulls/comments/52903478","id":52903478,"diff_hunk":"@@ -1,15 +1,31 @@\n import React from 'react';\n+import constants from '../../constants.js';\n \n const {string, oneOf, func} = React.PropTypes;\n const iconMap = {\n-  'working': 'fa-check',\n-  'partial': 'fa-check',\n-  'offline': 'fa-exclamation-triangle'\n+  [constants.PROXY_STATUS_WORKING]: 'fa-check',\n+  [constants.PROXY_STATUS_NO_HTTPS]: 'fa-check',\n+  [constants.PROXY_STATUS_ERROR_ADDRESS_IN_USE]: 'fa-exclamation-triangle',\n+  [constants.PROXY_STATUS_ERROR_GENERIC]: 'fa-exclamation-triangle'\n };\n \n-const ProxyStatus = ({proxyStatus, proxyMessage, proxyWindow}) => {\n+const labelMap = {\n+  [constants.PROXY_STATUS_WORKING]: 'Online',\n+  [constants.PROXY_STATUS_NO_HTTPS]: 'HTTPs disabled',","path":"src/component/footer/proxy-status.js","position":18,"original_position":18,"commit_id":"466dbbcb5683379d5f1294ab6996f21a514b1121","original_commit_id":"466dbbcb5683379d5f1294ab6996f21a514b1121","user":{"login":"mitchhentges","id":7784737,"avatar_url":"https://avatars.githubusercontent.com/u/7784737?v=3","gravatar_id":"","url":"https://api.github.com/users/mitchhentges","html_url":"https://github.com/mitchhentges","followers_url":"https://api.github.com/users/mitchhentges/followers","following_url":"https://api.github.com/users/mitchhentges/following{/other_user}","gists_url":"https://api.github.com/users/mitchhentges/gists{/gist_id}","starred_url":"https://api.github.com/users/mitchhentges/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mitchhentges/subscriptions","organizations_url":"https://api.github.com/users/mitchhentges/orgs","repos_url":"https://api.github.com/users/mitchhentges/repos","events_url":"https://api.github.com/users/mitchhentges/events{/privacy}","received_events_url":"https://api.github.com/users/mitchhentges/received_events","type":"User","site_admin":false},"body":"Why the lowercase 's'?","created_at":"2016-02-15T14:21:33Z","updated_at":"2016-02-15T14:21:33Z","html_url":"https://github.com/james-proxy/james/pull/131#discussion_r52903478","pull_request_url":"https://api.github.com/repos/james-proxy/james/pulls/131","_links":{"self":{"href":"https://api.github.com/repos/james-proxy/james/pulls/comments/52903478"},"html":{"href":"https://github.com/james-proxy/james/pull/131#discussion_r52903478"},"pull_request":{"href":"https://api.github.com/repos/james-proxy/james/pulls/131"}}},"pull_request":{"url":"https://api.github.com/repos/james-proxy/james/pulls/131","id":59338277,"html_url":"https://github.com/james-proxy/james/pull/131","diff_url":"https://github.com/james-proxy/james/pull/131.diff","patch_url":"https://github.com/james-proxy/james/pull/131.patch","issue_url":"https://api.github.com/repos/james-proxy/james/issues/131","number":131,"state":"open","locked":false,"title":"Refactor proxy status error message","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":"","created_at":"2016-02-15T09:27:00Z","updated_at":"2016-02-15T14:21:33Z","closed_at":null,"merged_at":null,"merge_commit_sha":"e2fc24806cebaa714bca955acae24d3bccad7083","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/james-proxy/james/pulls/131/commits","review_comments_url":"https://api.github.com/repos/james-proxy/james/pulls/131/comments","review_comment_url":"https://api.github.com/repos/james-proxy/james/pulls/comments{/number}","comments_url":"https://api.github.com/repos/james-proxy/james/issues/131/comments","statuses_url":"https://api.github.com/repos/james-proxy/james/statuses/466dbbcb5683379d5f1294ab6996f21a514b1121","head":{"label":"james-proxy:proper-online-status","ref":"proper-online-status","sha":"466dbbcb5683379d5f1294ab6996f21a514b1121","user":{"login":"james-proxy","id":16920662,"avatar_url":"https://avatars.githubusercontent.com/u/16920662?v=3","gravatar_id":"","url":"https://api.github.com/users/james-proxy","html_url":"https://github.com/james-proxy","followers_url":"https://api.github.com/users/james-proxy/followers","following_url":"https://api.github.com/users/james-proxy/following{/other_user}","gists_url":"https://api.github.com/users/james-proxy/gists{/gist_id}","starred_url":"https://api.github.com/users/james-proxy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/james-proxy/subscriptions","organizations_url":"https://api.github.com/users/james-proxy/orgs","repos_url":"https://api.github.com/users/james-proxy/repos","events_url":"https://api.github.com/users/james-proxy/events{/privacy}","received_events_url":"https://api.github.com/users/james-proxy/received_events","type":"Organization","site_admin":false},"repo":{"id":38034368,"name":"james","full_name":"james-proxy/james","owner":{"login":"james-proxy","id":16920662,"avatar_url":"https://avatars.githubusercontent.com/u/16920662?v=3","gravatar_id":"","url":"https://api.github.com/users/james-proxy","html_url":"https://github.com/james-proxy","followers_url":"https://api.github.com/users/james-proxy/followers","following_url":"https://api.github.com/users/james-proxy/following{/other_user}","gists_url":"https://api.github.com/users/james-proxy/gists{/gist_id}","starred_url":"https://api.github.com/users/james-proxy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/james-proxy/subscriptions","organizations_url":"https://api.github.com/users/james-proxy/orgs","repos_url":"https://api.github.com/users/james-proxy/repos","events_url":"https://api.github.com/users/james-proxy/events{/privacy}","received_events_url":"https://api.github.com/users/james-proxy/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/james-proxy/james","description":"Web Debugging Proxy Application","fork":false,"url":"https://api.github.com/repos/james-proxy/james","forks_url":"https://api.github.com/repos/james-proxy/james/forks","keys_url":"https://api.github.com/repos/james-proxy/james/keys{/key_id}","collaborators_url":"https://api.github.com/repos/james-proxy/james/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/james-proxy/james/teams","hooks_url":"https://api.github.com/repos/james-proxy/james/hooks","issue_events_url":"https://api.github.com/repos/james-proxy/james/issues/events{/number}","events_url":"https://api.github.com/repos/james-proxy/james/events","assignees_url":"https://api.github.com/repos/james-proxy/james/assignees{/user}","branches_url":"https://api.github.com/repos/james-proxy/james/branches{/branch}","tags_url":"https://api.github.com/repos/james-proxy/james/tags","blobs_url":"https://api.github.com/repos/james-proxy/james/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/james-proxy/james/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/james-proxy/james/git/refs{/sha}","trees_url":"https://api.github.com/repos/james-proxy/james/git/trees{/sha}","statuses_url":"https://api.github.com/repos/james-proxy/james/statuses/{sha}","languages_url":"https://api.github.com/repos/james-proxy/james/languages","stargazers_url":"https://api.github.com/repos/james-proxy/james/stargazers","contributors_url":"https://api.github.com/repos/james-proxy/james/contributors","subscribers_url":"https://api.github.com/repos/james-proxy/james/subscribers","subscription_url":"https://api.github.com/repos/james-proxy/james/subscription","commits_url":"https://api.github.com/repos/james-proxy/james/commits{/sha}","git_commits_url":"https://api.github.com/repos/james-proxy/james/git/commits{/sha}","comments_url":"https://api.github.com/repos/james-proxy/james/comments{/number}","issue_comment_url":"https://api.github.com/repos/james-proxy/james/issues/comments{/number}","contents_url":"https://api.github.com/repos/james-proxy/james/contents/{+path}","compare_url":"https://api.github.com/repos/james-proxy/james/compare/{base}...{head}","merges_url":"https://api.github.com/repos/james-proxy/james/merges","archive_url":"https://api.github.com/repos/james-proxy/james/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/james-proxy/james/downloads","issues_url":"https://api.github.com/repos/james-proxy/james/issues{/number}","pulls_url":"https://api.github.com/repos/james-proxy/james/pulls{/number}","milestones_url":"https://api.github.com/repos/james-proxy/james/milestones{/number}","notifications_url":"https://api.github.com/repos/james-proxy/james/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/james-proxy/james/labels{/name}","releases_url":"https://api.github.com/repos/james-proxy/james/releases{/id}","deployments_url":"https://api.github.com/repos/james-proxy/james/deployments","created_at":"2015-06-25T07:20:34Z","updated_at":"2016-02-15T05:04:47Z","pushed_at":"2016-02-15T12:50:28Z","git_url":"git://github.com/james-proxy/james.git","ssh_url":"git@github.com:james-proxy/james.git","clone_url":"https://github.com/james-proxy/james.git","svn_url":"https://github.com/james-proxy/james","homepage":"","size":2237,"stargazers_count":51,"watchers_count":51,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":7,"mirror_url":null,"open_issues_count":20,"forks":7,"open_issues":20,"watchers":51,"default_branch":"master"}},"base":{"label":"james-proxy:master","ref":"master","sha":"9fac55c80e17a4e6bcb79443fa798ada5cc99274","user":{"login":"james-proxy","id":16920662,"avatar_url":"https://avatars.githubusercontent.com/u/16920662?v=3","gravatar_id":"","url":"https://api.github.com/users/james-proxy","html_url":"https://github.com/james-proxy","followers_url":"https://api.github.com/users/james-proxy/followers","following_url":"https://api.github.com/users/james-proxy/following{/other_user}","gists_url":"https://api.github.com/users/james-proxy/gists{/gist_id}","starred_url":"https://api.github.com/users/james-proxy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/james-proxy/subscriptions","organizations_url":"https://api.github.com/users/james-proxy/orgs","repos_url":"https://api.github.com/users/james-proxy/repos","events_url":"https://api.github.com/users/james-proxy/events{/privacy}","received_events_url":"https://api.github.com/users/james-proxy/received_events","type":"Organization","site_admin":false},"repo":{"id":38034368,"name":"james","full_name":"james-proxy/james","owner":{"login":"james-proxy","id":16920662,"avatar_url":"https://avatars.githubusercontent.com/u/16920662?v=3","gravatar_id":"","url":"https://api.github.com/users/james-proxy","html_url":"https://github.com/james-proxy","followers_url":"https://api.github.com/users/james-proxy/followers","following_url":"https://api.github.com/users/james-proxy/following{/other_user}","gists_url":"https://api.github.com/users/james-proxy/gists{/gist_id}","starred_url":"https://api.github.com/users/james-proxy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/james-proxy/subscriptions","organizations_url":"https://api.github.com/users/james-proxy/orgs","repos_url":"https://api.github.com/users/james-proxy/repos","events_url":"https://api.github.com/users/james-proxy/events{/privacy}","received_events_url":"https://api.github.com/users/james-proxy/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/james-proxy/james","description":"Web Debugging Proxy Application","fork":false,"url":"https://api.github.com/repos/james-proxy/james","forks_url":"https://api.github.com/repos/james-proxy/james/forks","keys_url":"https://api.github.com/repos/james-proxy/james/keys{/key_id}","collaborators_url":"https://api.github.com/repos/james-proxy/james/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/james-proxy/james/teams","hooks_url":"https://api.github.com/repos/james-proxy/james/hooks","issue_events_url":"https://api.github.com/repos/james-proxy/james/issues/events{/number}","events_url":"https://api.github.com/repos/james-proxy/james/events","assignees_url":"https://api.github.com/repos/james-proxy/james/assignees{/user}","branches_url":"https://api.github.com/repos/james-proxy/james/branches{/branch}","tags_url":"https://api.github.com/repos/james-proxy/james/tags","blobs_url":"https://api.github.com/repos/james-proxy/james/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/james-proxy/james/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/james-proxy/james/git/refs{/sha}","trees_url":"https://api.github.com/repos/james-proxy/james/git/trees{/sha}","statuses_url":"https://api.github.com/repos/james-proxy/james/statuses/{sha}","languages_url":"https://api.github.com/repos/james-proxy/james/languages","stargazers_url":"https://api.github.com/repos/james-proxy/james/stargazers","contributors_url":"https://api.github.com/repos/james-proxy/james/contributors","subscribers_url":"https://api.github.com/repos/james-proxy/james/subscribers","subscription_url":"https://api.github.com/repos/james-proxy/james/subscription","commits_url":"https://api.github.com/repos/james-proxy/james/commits{/sha}","git_commits_url":"https://api.github.com/repos/james-proxy/james/git/commits{/sha}","comments_url":"https://api.github.com/repos/james-proxy/james/comments{/number}","issue_comment_url":"https://api.github.com/repos/james-proxy/james/issues/comments{/number}","contents_url":"https://api.github.com/repos/james-proxy/james/contents/{+path}","compare_url":"https://api.github.com/repos/james-proxy/james/compare/{base}...{head}","merges_url":"https://api.github.com/repos/james-proxy/james/merges","archive_url":"https://api.github.com/repos/james-proxy/james/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/james-proxy/james/downloads","issues_url":"https://api.github.com/repos/james-proxy/james/issues{/number}","pulls_url":"https://api.github.com/repos/james-proxy/james/pulls{/number}","milestones_url":"https://api.github.com/repos/james-proxy/james/milestones{/number}","notifications_url":"https://api.github.com/repos/james-proxy/james/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/james-proxy/james/labels{/name}","releases_url":"https://api.github.com/repos/james-proxy/james/releases{/id}","deployments_url":"https://api.github.com/repos/james-proxy/james/deployments","created_at":"2015-06-25T07:20:34Z","updated_at":"2016-02-15T05:04:47Z","pushed_at":"2016-02-15T12:50:28Z","git_url":"git://github.com/james-proxy/james.git","ssh_url":"git@github.com:james-proxy/james.git","clone_url":"https://github.com/james-proxy/james.git","svn_url":"https://github.com/james-proxy/james","homepage":"","size":2237,"stargazers_count":51,"watchers_count":51,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":7,"mirror_url":null,"open_issues_count":20,"forks":7,"open_issues":20,"watchers":51,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/james-proxy/james/pulls/131"},"html":{"href":"https://github.com/james-proxy/james/pull/131"},"issue":{"href":"https://api.github.com/repos/james-proxy/james/issues/131"},"comments":{"href":"https://api.github.com/repos/james-proxy/james/issues/131/comments"},"review_comments":{"href":"https://api.github.com/repos/james-proxy/james/pulls/131/comments"},"review_comment":{"href":"https://api.github.com/repos/james-proxy/james/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/james-proxy/james/pulls/131/commits"},"statuses":{"href":"https://api.github.com/repos/james-proxy/james/statuses/466dbbcb5683379d5f1294ab6996f21a514b1121"}}}}