{"action":"created","comment":{"url":"https://api.github.com/repos/michaelKurowski/lokim2/pulls/comments/185664983","pull_request_review_id":117100533,"id":185664983,"diff_hunk":"@@ -0,0 +1,75 @@\n+const React = require('react')\n+const {Link, Redirect} = require('react-router-dom')\n+const fetch = require('node-fetch')\n+const logo = require('../logo.svg')\n+const responseCodes = require('../statusCodeResponses')\n+const LOGIN_URL = '/login'\n+\n+class HomePage extends React.Component {\n+    constructor(props){\n+        super(props)\n+\n+        this.state = {\n+            username: '',\n+            password: '',\n+            successfulLogin: false\n+        }\n+\n+        this.handleChange = this.handleChange.bind(this)","path":"src/client/src/components/homepage.js","position":18,"original_position":18,"commit_id":"305abe227b7ccb1350d11d223850d49b1d4823d8","original_commit_id":"305abe227b7ccb1350d11d223850d49b1d4823d8","user":{"login":"Jordan141","id":15958401,"avatar_url":"https://avatars2.githubusercontent.com/u/15958401?v=4","gravatar_id":"","url":"https://api.github.com/users/Jordan141","html_url":"https://github.com/Jordan141","followers_url":"https://api.github.com/users/Jordan141/followers","following_url":"https://api.github.com/users/Jordan141/following{/other_user}","gists_url":"https://api.github.com/users/Jordan141/gists{/gist_id}","starred_url":"https://api.github.com/users/Jordan141/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Jordan141/subscriptions","organizations_url":"https://api.github.com/users/Jordan141/orgs","repos_url":"https://api.github.com/users/Jordan141/repos","events_url":"https://api.github.com/users/Jordan141/events{/privacy}","received_events_url":"https://api.github.com/users/Jordan141/received_events","type":"User","site_admin":false},"body":"Yup, due to how React works, this is a common pattern for controlling components. You also need to bind this so that setState works correctly, otherwise your app will likely crash.\r\n\r\nSee https://reactjs.org/docs/forms.html for more details","created_at":"2018-05-02T23:13:41Z","updated_at":"2018-05-02T23:13:41Z","html_url":"https://github.com/michaelKurowski/lokim2/pull/32#discussion_r185664983","pull_request_url":"https://api.github.com/repos/michaelKurowski/lokim2/pulls/32","author_association":"COLLABORATOR","_links":{"self":{"href":"https://api.github.com/repos/michaelKurowski/lokim2/pulls/comments/185664983"},"html":{"href":"https://github.com/michaelKurowski/lokim2/pull/32#discussion_r185664983"},"pull_request":{"href":"https://api.github.com/repos/michaelKurowski/lokim2/pulls/32"}},"in_reply_to_id":185661643},"pull_request":{"url":"https://api.github.com/repos/michaelKurowski/lokim2/pulls/32","id":184855569,"html_url":"https://github.com/michaelKurowski/lokim2/pull/32","diff_url":"https://github.com/michaelKurowski/lokim2/pull/32.diff","patch_url":"https://github.com/michaelKurowski/lokim2/pull/32.patch","issue_url":"https://api.github.com/repos/michaelKurowski/lokim2/issues/32","number":32,"state":"open","locked":false,"title":"#29 Frontend merge","user":{"login":"Jordan141","id":15958401,"avatar_url":"https://avatars2.githubusercontent.com/u/15958401?v=4","gravatar_id":"","url":"https://api.github.com/users/Jordan141","html_url":"https://github.com/Jordan141","followers_url":"https://api.github.com/users/Jordan141/followers","following_url":"https://api.github.com/users/Jordan141/following{/other_user}","gists_url":"https://api.github.com/users/Jordan141/gists{/gist_id}","starred_url":"https://api.github.com/users/Jordan141/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Jordan141/subscriptions","organizations_url":"https://api.github.com/users/Jordan141/orgs","repos_url":"https://api.github.com/users/Jordan141/repos","events_url":"https://api.github.com/users/Jordan141/events{/privacy}","received_events_url":"https://api.github.com/users/Jordan141/received_events","type":"User","site_admin":false},"body":"**Reference to related ticket:**  \r\n#29\r\n\r\n**Description of changes:**\r\n- Added React frontend, launch via npm start in src/client \r\n- Network requests will be proxied to localhost:5000\r\n- Added Homepage/Register as they were in previous repository\r\n- Will continue adding features, this is a WIP","created_at":"2018-04-29T21:20:26Z","updated_at":"2018-05-02T23:13:41Z","closed_at":null,"merged_at":null,"merge_commit_sha":"9f01c2b8a5bf1d2f41c2dd96bc3d5cb64932dfeb","assignee":{"login":"Jordan141","id":15958401,"avatar_url":"https://avatars2.githubusercontent.com/u/15958401?v=4","gravatar_id":"","url":"https://api.github.com/users/Jordan141","html_url":"https://github.com/Jordan141","followers_url":"https://api.github.com/users/Jordan141/followers","following_url":"https://api.github.com/users/Jordan141/following{/other_user}","gists_url":"https://api.github.com/users/Jordan141/gists{/gist_id}","starred_url":"https://api.github.com/users/Jordan141/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Jordan141/subscriptions","organizations_url":"https://api.github.com/users/Jordan141/orgs","repos_url":"https://api.github.com/users/Jordan141/repos","events_url":"https://api.github.com/users/Jordan141/events{/privacy}","received_events_url":"https://api.github.com/users/Jordan141/received_events","type":"User","site_admin":false},"assignees":[{"login":"Jordan141","id":15958401,"avatar_url":"https://avatars2.githubusercontent.com/u/15958401?v=4","gravatar_id":"","url":"https://api.github.com/users/Jordan141","html_url":"https://github.com/Jordan141","followers_url":"https://api.github.com/users/Jordan141/followers","following_url":"https://api.github.com/users/Jordan141/following{/other_user}","gists_url":"https://api.github.com/users/Jordan141/gists{/gist_id}","starred_url":"https://api.github.com/users/Jordan141/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Jordan141/subscriptions","organizations_url":"https://api.github.com/users/Jordan141/orgs","repos_url":"https://api.github.com/users/Jordan141/repos","events_url":"https://api.github.com/users/Jordan141/events{/privacy}","received_events_url":"https://api.github.com/users/Jordan141/received_events","type":"User","site_admin":false}],"requested_reviewers":[],"requested_teams":[],"labels":[{"id":871385992,"url":"https://api.github.com/repos/michaelKurowski/lokim2/labels/WIP","name":"WIP","color":"fef2c0","default":false},{"id":855722108,"url":"https://api.github.com/repos/michaelKurowski/lokim2/labels/enhancement","name":"enhancement","color":"a2eeef","default":true},{"id":920464260,"url":"https://api.github.com/repos/michaelKurowski/lokim2/labels/frontend","name":"frontend","color":"fbca04","default":false}],"milestone":null,"commits_url":"https://api.github.com/repos/michaelKurowski/lokim2/pulls/32/commits","review_comments_url":"https://api.github.com/repos/michaelKurowski/lokim2/pulls/32/comments","review_comment_url":"https://api.github.com/repos/michaelKurowski/lokim2/pulls/comments{/number}","comments_url":"https://api.github.com/repos/michaelKurowski/lokim2/issues/32/comments","statuses_url":"https://api.github.com/repos/michaelKurowski/lokim2/statuses/305abe227b7ccb1350d11d223850d49b1d4823d8","head":{"label":"michaelKurowski:frontend-merge","ref":"frontend-merge","sha":"305abe227b7ccb1350d11d223850d49b1d4823d8","user":{"login":"michaelKurowski","id":2772942,"avatar_url":"https://avatars2.githubusercontent.com/u/2772942?v=4","gravatar_id":"","url":"https://api.github.com/users/michaelKurowski","html_url":"https://github.com/michaelKurowski","followers_url":"https://api.github.com/users/michaelKurowski/followers","following_url":"https://api.github.com/users/michaelKurowski/following{/other_user}","gists_url":"https://api.github.com/users/michaelKurowski/gists{/gist_id}","starred_url":"https://api.github.com/users/michaelKurowski/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/michaelKurowski/subscriptions","organizations_url":"https://api.github.com/users/michaelKurowski/orgs","repos_url":"https://api.github.com/users/michaelKurowski/repos","events_url":"https://api.github.com/users/michaelKurowski/events{/privacy}","received_events_url":"https://api.github.com/users/michaelKurowski/received_events","type":"User","site_admin":false},"repo":{"id":123811746,"name":"lokim2","full_name":"michaelKurowski/lokim2","owner":{"login":"michaelKurowski","id":2772942,"avatar_url":"https://avatars2.githubusercontent.com/u/2772942?v=4","gravatar_id":"","url":"https://api.github.com/users/michaelKurowski","html_url":"https://github.com/michaelKurowski","followers_url":"https://api.github.com/users/michaelKurowski/followers","following_url":"https://api.github.com/users/michaelKurowski/following{/other_user}","gists_url":"https://api.github.com/users/michaelKurowski/gists{/gist_id}","starred_url":"https://api.github.com/users/michaelKurowski/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/michaelKurowski/subscriptions","organizations_url":"https://api.github.com/users/michaelKurowski/orgs","repos_url":"https://api.github.com/users/michaelKurowski/repos","events_url":"https://api.github.com/users/michaelKurowski/events{/privacy}","received_events_url":"https://api.github.com/users/michaelKurowski/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/michaelKurowski/lokim2","description":null,"fork":false,"url":"https://api.github.com/repos/michaelKurowski/lokim2","forks_url":"https://api.github.com/repos/michaelKurowski/lokim2/forks","keys_url":"https://api.github.com/repos/michaelKurowski/lokim2/keys{/key_id}","collaborators_url":"https://api.github.com/repos/michaelKurowski/lokim2/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/michaelKurowski/lokim2/teams","hooks_url":"https://api.github.com/repos/michaelKurowski/lokim2/hooks","issue_events_url":"https://api.github.com/repos/michaelKurowski/lokim2/issues/events{/number}","events_url":"https://api.github.com/repos/michaelKurowski/lokim2/events","assignees_url":"https://api.github.com/repos/michaelKurowski/lokim2/assignees{/user}","branches_url":"https://api.github.com/repos/michaelKurowski/lokim2/branches{/branch}","tags_url":"https://api.github.com/repos/michaelKurowski/lokim2/tags","blobs_url":"https://api.github.com/repos/michaelKurowski/lokim2/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/michaelKurowski/lokim2/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/michaelKurowski/lokim2/git/refs{/sha}","trees_url":"https://api.github.com/repos/michaelKurowski/lokim2/git/trees{/sha}","statuses_url":"https://api.github.com/repos/michaelKurowski/lokim2/statuses/{sha}","languages_url":"https://api.github.com/repos/michaelKurowski/lokim2/languages","stargazers_url":"https://api.github.com/repos/michaelKurowski/lokim2/stargazers","contributors_url":"https://api.github.com/repos/michaelKurowski/lokim2/contributors","subscribers_url":"https://api.github.com/repos/michaelKurowski/lokim2/subscribers","subscription_url":"https://api.github.com/repos/michaelKurowski/lokim2/subscription","commits_url":"https://api.github.com/repos/michaelKurowski/lokim2/commits{/sha}","git_commits_url":"https://api.github.com/repos/michaelKurowski/lokim2/git/commits{/sha}","comments_url":"https://api.github.com/repos/michaelKurowski/lokim2/comments{/number}","issue_comment_url":"https://api.github.com/repos/michaelKurowski/lokim2/issues/comments{/number}","contents_url":"https://api.github.com/repos/michaelKurowski/lokim2/contents/{+path}","compare_url":"https://api.github.com/repos/michaelKurowski/lokim2/compare/{base}...{head}","merges_url":"https://api.github.com/repos/michaelKurowski/lokim2/merges","archive_url":"https://api.github.com/repos/michaelKurowski/lokim2/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/michaelKurowski/lokim2/downloads","issues_url":"https://api.github.com/repos/michaelKurowski/lokim2/issues{/number}","pulls_url":"https://api.github.com/repos/michaelKurowski/lokim2/pulls{/number}","milestones_url":"https://api.github.com/repos/michaelKurowski/lokim2/milestones{/number}","notifications_url":"https://api.github.com/repos/michaelKurowski/lokim2/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/michaelKurowski/lokim2/labels{/name}","releases_url":"https://api.github.com/repos/michaelKurowski/lokim2/releases{/id}","deployments_url":"https://api.github.com/repos/michaelKurowski/lokim2/deployments","created_at":"2018-03-04T17:27:06Z","updated_at":"2018-05-02T22:43:12Z","pushed_at":"2018-05-02T22:43:10Z","git_url":"git://github.com/michaelKurowski/lokim2.git","ssh_url":"git@github.com:michaelKurowski/lokim2.git","clone_url":"https://github.com/michaelKurowski/lokim2.git","svn_url":"https://github.com/michaelKurowski/lokim2","homepage":null,"size":431,"stargazers_count":2,"watchers_count":2,"language":"JavaScript","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":13,"license":null,"forks":0,"open_issues":13,"watchers":2,"default_branch":"master"}},"base":{"label":"michaelKurowski:master","ref":"master","sha":"22cd919eb5602507e1d3ebe0dfad77d2789a26e2","user":{"login":"michaelKurowski","id":2772942,"avatar_url":"https://avatars2.githubusercontent.com/u/2772942?v=4","gravatar_id":"","url":"https://api.github.com/users/michaelKurowski","html_url":"https://github.com/michaelKurowski","followers_url":"https://api.github.com/users/michaelKurowski/followers","following_url":"https://api.github.com/users/michaelKurowski/following{/other_user}","gists_url":"https://api.github.com/users/michaelKurowski/gists{/gist_id}","starred_url":"https://api.github.com/users/michaelKurowski/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/michaelKurowski/subscriptions","organizations_url":"https://api.github.com/users/michaelKurowski/orgs","repos_url":"https://api.github.com/users/michaelKurowski/repos","events_url":"https://api.github.com/users/michaelKurowski/events{/privacy}","received_events_url":"https://api.github.com/users/michaelKurowski/received_events","type":"User","site_admin":false},"repo":{"id":123811746,"name":"lokim2","full_name":"michaelKurowski/lokim2","owner":{"login":"michaelKurowski","id":2772942,"avatar_url":"https://avatars2.githubusercontent.com/u/2772942?v=4","gravatar_id":"","url":"https://api.github.com/users/michaelKurowski","html_url":"https://github.com/michaelKurowski","followers_url":"https://api.github.com/users/michaelKurowski/followers","following_url":"https://api.github.com/users/michaelKurowski/following{/other_user}","gists_url":"https://api.github.com/users/michaelKurowski/gists{/gist_id}","starred_url":"https://api.github.com/users/michaelKurowski/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/michaelKurowski/subscriptions","organizations_url":"https://api.github.com/users/michaelKurowski/orgs","repos_url":"https://api.github.com/users/michaelKurowski/repos","events_url":"https://api.github.com/users/michaelKurowski/events{/privacy}","received_events_url":"https://api.github.com/users/michaelKurowski/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/michaelKurowski/lokim2","description":null,"fork":false,"url":"https://api.github.com/repos/michaelKurowski/lokim2","forks_url":"https://api.github.com/repos/michaelKurowski/lokim2/forks","keys_url":"https://api.github.com/repos/michaelKurowski/lokim2/keys{/key_id}","collaborators_url":"https://api.github.com/repos/michaelKurowski/lokim2/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/michaelKurowski/lokim2/teams","hooks_url":"https://api.github.com/repos/michaelKurowski/lokim2/hooks","issue_events_url":"https://api.github.com/repos/michaelKurowski/lokim2/issues/events{/number}","events_url":"https://api.github.com/repos/michaelKurowski/lokim2/events","assignees_url":"https://api.github.com/repos/michaelKurowski/lokim2/assignees{/user}","branches_url":"https://api.github.com/repos/michaelKurowski/lokim2/branches{/branch}","tags_url":"https://api.github.com/repos/michaelKurowski/lokim2/tags","blobs_url":"https://api.github.com/repos/michaelKurowski/lokim2/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/michaelKurowski/lokim2/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/michaelKurowski/lokim2/git/refs{/sha}","trees_url":"https://api.github.com/repos/michaelKurowski/lokim2/git/trees{/sha}","statuses_url":"https://api.github.com/repos/michaelKurowski/lokim2/statuses/{sha}","languages_url":"https://api.github.com/repos/michaelKurowski/lokim2/languages","stargazers_url":"https://api.github.com/repos/michaelKurowski/lokim2/stargazers","contributors_url":"https://api.github.com/repos/michaelKurowski/lokim2/contributors","subscribers_url":"https://api.github.com/repos/michaelKurowski/lokim2/subscribers","subscription_url":"https://api.github.com/repos/michaelKurowski/lokim2/subscription","commits_url":"https://api.github.com/repos/michaelKurowski/lokim2/commits{/sha}","git_commits_url":"https://api.github.com/repos/michaelKurowski/lokim2/git/commits{/sha}","comments_url":"https://api.github.com/repos/michaelKurowski/lokim2/comments{/number}","issue_comment_url":"https://api.github.com/repos/michaelKurowski/lokim2/issues/comments{/number}","contents_url":"https://api.github.com/repos/michaelKurowski/lokim2/contents/{+path}","compare_url":"https://api.github.com/repos/michaelKurowski/lokim2/compare/{base}...{head}","merges_url":"https://api.github.com/repos/michaelKurowski/lokim2/merges","archive_url":"https://api.github.com/repos/michaelKurowski/lokim2/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/michaelKurowski/lokim2/downloads","issues_url":"https://api.github.com/repos/michaelKurowski/lokim2/issues{/number}","pulls_url":"https://api.github.com/repos/michaelKurowski/lokim2/pulls{/number}","milestones_url":"https://api.github.com/repos/michaelKurowski/lokim2/milestones{/number}","notifications_url":"https://api.github.com/repos/michaelKurowski/lokim2/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/michaelKurowski/lokim2/labels{/name}","releases_url":"https://api.github.com/repos/michaelKurowski/lokim2/releases{/id}","deployments_url":"https://api.github.com/repos/michaelKurowski/lokim2/deployments","created_at":"2018-03-04T17:27:06Z","updated_at":"2018-05-02T22:43:12Z","pushed_at":"2018-05-02T22:43:10Z","git_url":"git://github.com/michaelKurowski/lokim2.git","ssh_url":"git@github.com:michaelKurowski/lokim2.git","clone_url":"https://github.com/michaelKurowski/lokim2.git","svn_url":"https://github.com/michaelKurowski/lokim2","homepage":null,"size":431,"stargazers_count":2,"watchers_count":2,"language":"JavaScript","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":13,"license":null,"forks":0,"open_issues":13,"watchers":2,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/michaelKurowski/lokim2/pulls/32"},"html":{"href":"https://github.com/michaelKurowski/lokim2/pull/32"},"issue":{"href":"https://api.github.com/repos/michaelKurowski/lokim2/issues/32"},"comments":{"href":"https://api.github.com/repos/michaelKurowski/lokim2/issues/32/comments"},"review_comments":{"href":"https://api.github.com/repos/michaelKurowski/lokim2/pulls/32/comments"},"review_comment":{"href":"https://api.github.com/repos/michaelKurowski/lokim2/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/michaelKurowski/lokim2/pulls/32/commits"},"statuses":{"href":"https://api.github.com/repos/michaelKurowski/lokim2/statuses/305abe227b7ccb1350d11d223850d49b1d4823d8"}},"author_association":"COLLABORATOR"}}
{"actor":{"display_login":"Jordan141"}}