{"action":"created","comment":{"url":"https://api.github.com/repos/marcellabillett/DeveloperWarRoom/pulls/comments/186232998","pull_request_review_id":117781641,"id":186232998,"diff_hunk":"@@ -0,0 +1,222 @@\n+/* eslint-env browser */\n+/* eslint react/jsx-no-bind: 0 */\n+/* eslint react/prop-types: 0 */\n+import React, { Component } from 'react';\n+import AppBar from 'material-ui/AppBar';\n+import ActionDelete from 'material-ui/svg-icons/action/delete';\n+import ActionLockClosed from 'material-ui/svg-icons/action/lock';\n+import EditorEdit from 'material-ui/svg-icons/editor/mode-edit';\n+import _ from 'lodash';\n+import SettingIcon from 'material-ui/svg-icons/action/settings';\n+import FloatingActionButton from 'material-ui/FloatingActionButton';\n+import GridLayout from 'react-grid-layout';\n+import IconButton from 'material-ui/IconButton/IconButton';\n+import Paper from 'material-ui/Paper';\n+import MoreVertIcon from 'material-ui/svg-icons/navigation/more-vert';\n+import MenuItem from 'material-ui/MenuItem';\n+import IconMenu from 'material-ui/IconMenu/IconMenu';\n+import Drawer from 'material-ui/Drawer';\n+import Divider from 'material-ui/Divider';\n+import { List, ListItem } from 'material-ui/List';\n+import Bookmarker from './../components/bookmarker';\n+import Widgets from './widgets';\n+\n+const fixedToBottom = {\n+  position: 'fixed',\n+  bottom: '0',\n+  right: '0',\n+  margin: '10px',\n+};\n+const removeStyle = {\n+  position: 'absolute',\n+  right: '2px',\n+  top: 0,\n+  cursor: 'pointer',\n+};\n+const removeIconSize = {\n+  width: 20,\n+  height: 20,\n+};\n+const horizontalHeaderBarStyle = {\n+  display: 'inline',\n+  whiteSpace: 'nowrap',\n+};\n+const iconAlignment = {\n+  position: 'fixed',\n+  top: '0',\n+  right: '0',\n+  marginTop: '8px',\n+};\n+const style = {\n+  height: '100%',\n+  width: '100%',\n+  textAlign: 'left',\n+  display: 'inline-block',\n+};\n+const menuBarStyle = {\n+  backgroundColor: 'rgb(0, 188, 212)',\n+};\n+\n+const RemoveIcon = props => (\n+  <IconButton iconStyle={removeIconSize}>\n+    <ActionDelete {...props} />\n+  </IconButton>\n+);\n+\n+class Grid extends Component {\n+  constructor(props) {\n+    super(props);\n+    this.editButtonClicked = this.editButtonClicked.bind(this);\n+    this.onLayoutChange = this.onLayoutChange.bind(this);\n+    this.elementinArray = this.elementinArray.bind(this);\n+    this.onLayoutChange = this.onLayoutChange.bind(this);\n+    this.settingsButtonClicked = this.settingsButtonClicked.bind(this);\n+    const localValue = JSON.parse(localStorage.getItem('layout'));\n+    const locallayout = localValue || [];\n+    this.state = {\n+      editMode: false,\n+      sideBarMenu: false,\n+      sideBarOpen: false,\n+      layout: locallayout,\n+    };\n+  }\n+\n+  onRemoveItem(i) {\n+    this.setState({ layout: _.reject(this.state.layout, { i }) });\n+  }\n+\n+  onLayoutChange(newLayout) {\n+    localStorage.setItem('layout', JSON.stringify(newLayout));\n+    this.setState({ layout: newLayout });\n+  }\n+\n+  settingsButtonClicked() {\n+    const opened = !this.state.sideBarOpen;\n+    this.setState({ sideBarOpen: opened });\n+  }\n+  \n+  elementinArray(key) {\n+    for (let i = 0; i < this.state.layout.length; i += 1) {\n+      if (this.state.layout[i].i === key) {\n+        return true;\n+      }\n+    }\n+    return false;\n+  }\n+\n+  createElement(element) {\n+    const removeButton = this.state.editMode ?","path":"src/containers/grid.jsx","position":null,"original_position":108,"commit_id":"6021964232bb6abbcd18d39075d40bbee1f8b620","original_commit_id":"0e45dd12b423a9843bb98d140030b10f08d49b11","user":{"login":"smr6","id":34296691,"avatar_url":"https://avatars1.githubusercontent.com/u/34296691?v=4","gravatar_id":"","url":"https://api.github.com/users/smr6","html_url":"https://github.com/smr6","followers_url":"https://api.github.com/users/smr6/followers","following_url":"https://api.github.com/users/smr6/following{/other_user}","gists_url":"https://api.github.com/users/smr6/gists{/gist_id}","starred_url":"https://api.github.com/users/smr6/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/smr6/subscriptions","organizations_url":"https://api.github.com/users/smr6/orgs","repos_url":"https://api.github.com/users/smr6/repos","events_url":"https://api.github.com/users/smr6/events{/privacy}","received_events_url":"https://api.github.com/users/smr6/received_events","type":"User","site_admin":false},"body":"Fixed.","created_at":"2018-05-04T22:11:17Z","updated_at":"2018-05-04T22:11:18Z","html_url":"https://github.com/marcellabillett/DeveloperWarRoom/pull/16#discussion_r186232998","pull_request_url":"https://api.github.com/repos/marcellabillett/DeveloperWarRoom/pulls/16","author_association":"COLLABORATOR","_links":{"self":{"href":"https://api.github.com/repos/marcellabillett/DeveloperWarRoom/pulls/comments/186232998"},"html":{"href":"https://github.com/marcellabillett/DeveloperWarRoom/pull/16#discussion_r186232998"},"pull_request":{"href":"https://api.github.com/repos/marcellabillett/DeveloperWarRoom/pulls/16"}},"in_reply_to_id":185991905},"pull_request":{"url":"https://api.github.com/repos/marcellabillett/DeveloperWarRoom/pulls/16","id":185891456,"html_url":"https://github.com/marcellabillett/DeveloperWarRoom/pull/16","diff_url":"https://github.com/marcellabillett/DeveloperWarRoom/pull/16.diff","patch_url":"https://github.com/marcellabillett/DeveloperWarRoom/pull/16.patch","issue_url":"https://api.github.com/repos/marcellabillett/DeveloperWarRoom/issues/16","number":16,"state":"open","locked":false,"title":"Cleaned up code","user":{"login":"bbauley","id":22568769,"avatar_url":"https://avatars3.githubusercontent.com/u/22568769?v=4","gravatar_id":"","url":"https://api.github.com/users/bbauley","html_url":"https://github.com/bbauley","followers_url":"https://api.github.com/users/bbauley/followers","following_url":"https://api.github.com/users/bbauley/following{/other_user}","gists_url":"https://api.github.com/users/bbauley/gists{/gist_id}","starred_url":"https://api.github.com/users/bbauley/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bbauley/subscriptions","organizations_url":"https://api.github.com/users/bbauley/orgs","repos_url":"https://api.github.com/users/bbauley/repos","events_url":"https://api.github.com/users/bbauley/events{/privacy}","received_events_url":"https://api.github.com/users/bbauley/received_events","type":"User","site_admin":false},"body":"","created_at":"2018-05-04T04:40:18Z","updated_at":"2018-05-04T22:11:18Z","closed_at":null,"merged_at":null,"merge_commit_sha":"61d6867e1c86509200df9814adae6f93c7a14c63","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/marcellabillett/DeveloperWarRoom/pulls/16/commits","review_comments_url":"https://api.github.com/repos/marcellabillett/DeveloperWarRoom/pulls/16/comments","review_comment_url":"https://api.github.com/repos/marcellabillett/DeveloperWarRoom/pulls/comments{/number}","comments_url":"https://api.github.com/repos/marcellabillett/DeveloperWarRoom/issues/16/comments","statuses_url":"https://api.github.com/repos/marcellabillett/DeveloperWarRoom/statuses/6021964232bb6abbcd18d39075d40bbee1f8b620","head":{"label":"marcellabillett:cleaned-up-code","ref":"cleaned-up-code","sha":"6021964232bb6abbcd18d39075d40bbee1f8b620","user":{"login":"marcellabillett","id":36647919,"avatar_url":"https://avatars2.githubusercontent.com/u/36647919?v=4","gravatar_id":"","url":"https://api.github.com/users/marcellabillett","html_url":"https://github.com/marcellabillett","followers_url":"https://api.github.com/users/marcellabillett/followers","following_url":"https://api.github.com/users/marcellabillett/following{/other_user}","gists_url":"https://api.github.com/users/marcellabillett/gists{/gist_id}","starred_url":"https://api.github.com/users/marcellabillett/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/marcellabillett/subscriptions","organizations_url":"https://api.github.com/users/marcellabillett/orgs","repos_url":"https://api.github.com/users/marcellabillett/repos","events_url":"https://api.github.com/users/marcellabillett/events{/privacy}","received_events_url":"https://api.github.com/users/marcellabillett/received_events","type":"User","site_admin":false},"repo":{"id":122129276,"name":"DeveloperWarRoom","full_name":"marcellabillett/DeveloperWarRoom","owner":{"login":"marcellabillett","id":36647919,"avatar_url":"https://avatars2.githubusercontent.com/u/36647919?v=4","gravatar_id":"","url":"https://api.github.com/users/marcellabillett","html_url":"https://github.com/marcellabillett","followers_url":"https://api.github.com/users/marcellabillett/followers","following_url":"https://api.github.com/users/marcellabillett/following{/other_user}","gists_url":"https://api.github.com/users/marcellabillett/gists{/gist_id}","starred_url":"https://api.github.com/users/marcellabillett/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/marcellabillett/subscriptions","organizations_url":"https://api.github.com/users/marcellabillett/orgs","repos_url":"https://api.github.com/users/marcellabillett/repos","events_url":"https://api.github.com/users/marcellabillett/events{/privacy}","received_events_url":"https://api.github.com/users/marcellabillett/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/marcellabillett/DeveloperWarRoom","description":"PSU Capstone Project Winter 2017","fork":false,"url":"https://api.github.com/repos/marcellabillett/DeveloperWarRoom","forks_url":"https://api.github.com/repos/marcellabillett/DeveloperWarRoom/forks","keys_url":"https://api.github.com/repos/marcellabillett/DeveloperWarRoom/keys{/key_id}","collaborators_url":"https://api.github.com/repos/marcellabillett/DeveloperWarRoom/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/marcellabillett/DeveloperWarRoom/teams","hooks_url":"https://api.github.com/repos/marcellabillett/DeveloperWarRoom/hooks","issue_events_url":"https://api.github.com/repos/marcellabillett/DeveloperWarRoom/issues/events{/number}","events_url":"https://api.github.com/repos/marcellabillett/DeveloperWarRoom/events","assignees_url":"https://api.github.com/repos/marcellabillett/DeveloperWarRoom/assignees{/user}","branches_url":"https://api.github.com/repos/marcellabillett/DeveloperWarRoom/branches{/branch}","tags_url":"https://api.github.com/repos/marcellabillett/DeveloperWarRoom/tags","blobs_url":"https://api.github.com/repos/marcellabillett/DeveloperWarRoom/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/marcellabillett/DeveloperWarRoom/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/marcellabillett/DeveloperWarRoom/git/refs{/sha}","trees_url":"https://api.github.com/repos/marcellabillett/DeveloperWarRoom/git/trees{/sha}","statuses_url":"https://api.github.com/repos/marcellabillett/DeveloperWarRoom/statuses/{sha}","languages_url":"https://api.github.com/repos/marcellabillett/DeveloperWarRoom/languages","stargazers_url":"https://api.github.com/repos/marcellabillett/DeveloperWarRoom/stargazers","contributors_url":"https://api.github.com/repos/marcellabillett/DeveloperWarRoom/contributors","subscribers_url":"https://api.github.com/repos/marcellabillett/DeveloperWarRoom/subscribers","subscription_url":"https://api.github.com/repos/marcellabillett/DeveloperWarRoom/subscription","commits_url":"https://api.github.com/repos/marcellabillett/DeveloperWarRoom/commits{/sha}","git_commits_url":"https://api.github.com/repos/marcellabillett/DeveloperWarRoom/git/commits{/sha}","comments_url":"https://api.github.com/repos/marcellabillett/DeveloperWarRoom/comments{/number}","issue_comment_url":"https://api.github.com/repos/marcellabillett/DeveloperWarRoom/issues/comments{/number}","contents_url":"https://api.github.com/repos/marcellabillett/DeveloperWarRoom/contents/{+path}","compare_url":"https://api.github.com/repos/marcellabillett/DeveloperWarRoom/compare/{base}...{head}","merges_url":"https://api.github.com/repos/marcellabillett/DeveloperWarRoom/merges","archive_url":"https://api.github.com/repos/marcellabillett/DeveloperWarRoom/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/marcellabillett/DeveloperWarRoom/downloads","issues_url":"https://api.github.com/repos/marcellabillett/DeveloperWarRoom/issues{/number}","pulls_url":"https://api.github.com/repos/marcellabillett/DeveloperWarRoom/pulls{/number}","milestones_url":"https://api.github.com/repos/marcellabillett/DeveloperWarRoom/milestones{/number}","notifications_url":"https://api.github.com/repos/marcellabillett/DeveloperWarRoom/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/marcellabillett/DeveloperWarRoom/labels{/name}","releases_url":"https://api.github.com/repos/marcellabillett/DeveloperWarRoom/releases{/id}","deployments_url":"https://api.github.com/repos/marcellabillett/DeveloperWarRoom/deployments","created_at":"2018-02-19T22:36:01Z","updated_at":"2018-04-11T23:35:47Z","pushed_at":"2018-05-04T22:05:23Z","git_url":"git://github.com/marcellabillett/DeveloperWarRoom.git","ssh_url":"git@github.com:marcellabillett/DeveloperWarRoom.git","clone_url":"https://github.com/marcellabillett/DeveloperWarRoom.git","svn_url":"https://github.com/marcellabillett/DeveloperWarRoom","homepage":null,"size":1359,"stargazers_count":3,"watchers_count":3,"language":"JavaScript","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"archived":false,"open_issues_count":9,"license":{"key":"mit","name":"MIT License","spdx_id":"MIT","url":"https://api.github.com/licenses/mit"},"forks":1,"open_issues":9,"watchers":3,"default_branch":"master"}},"base":{"label":"marcellabillett:master","ref":"master","sha":"e9bc92fd6ade81b893218a6713df11cd3c79f0cb","user":{"login":"marcellabillett","id":36647919,"avatar_url":"https://avatars2.githubusercontent.com/u/36647919?v=4","gravatar_id":"","url":"https://api.github.com/users/marcellabillett","html_url":"https://github.com/marcellabillett","followers_url":"https://api.github.com/users/marcellabillett/followers","following_url":"https://api.github.com/users/marcellabillett/following{/other_user}","gists_url":"https://api.github.com/users/marcellabillett/gists{/gist_id}","starred_url":"https://api.github.com/users/marcellabillett/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/marcellabillett/subscriptions","organizations_url":"https://api.github.com/users/marcellabillett/orgs","repos_url":"https://api.github.com/users/marcellabillett/repos","events_url":"https://api.github.com/users/marcellabillett/events{/privacy}","received_events_url":"https://api.github.com/users/marcellabillett/received_events","type":"User","site_admin":false},"repo":{"id":122129276,"name":"DeveloperWarRoom","full_name":"marcellabillett/DeveloperWarRoom","owner":{"login":"marcellabillett","id":36647919,"avatar_url":"https://avatars2.githubusercontent.com/u/36647919?v=4","gravatar_id":"","url":"https://api.github.com/users/marcellabillett","html_url":"https://github.com/marcellabillett","followers_url":"https://api.github.com/users/marcellabillett/followers","following_url":"https://api.github.com/users/marcellabillett/following{/other_user}","gists_url":"https://api.github.com/users/marcellabillett/gists{/gist_id}","starred_url":"https://api.github.com/users/marcellabillett/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/marcellabillett/subscriptions","organizations_url":"https://api.github.com/users/marcellabillett/orgs","repos_url":"https://api.github.com/users/marcellabillett/repos","events_url":"https://api.github.com/users/marcellabillett/events{/privacy}","received_events_url":"https://api.github.com/users/marcellabillett/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/marcellabillett/DeveloperWarRoom","description":"PSU Capstone Project Winter 2017","fork":false,"url":"https://api.github.com/repos/marcellabillett/DeveloperWarRoom","forks_url":"https://api.github.com/repos/marcellabillett/DeveloperWarRoom/forks","keys_url":"https://api.github.com/repos/marcellabillett/DeveloperWarRoom/keys{/key_id}","collaborators_url":"https://api.github.com/repos/marcellabillett/DeveloperWarRoom/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/marcellabillett/DeveloperWarRoom/teams","hooks_url":"https://api.github.com/repos/marcellabillett/DeveloperWarRoom/hooks","issue_events_url":"https://api.github.com/repos/marcellabillett/DeveloperWarRoom/issues/events{/number}","events_url":"https://api.github.com/repos/marcellabillett/DeveloperWarRoom/events","assignees_url":"https://api.github.com/repos/marcellabillett/DeveloperWarRoom/assignees{/user}","branches_url":"https://api.github.com/repos/marcellabillett/DeveloperWarRoom/branches{/branch}","tags_url":"https://api.github.com/repos/marcellabillett/DeveloperWarRoom/tags","blobs_url":"https://api.github.com/repos/marcellabillett/DeveloperWarRoom/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/marcellabillett/DeveloperWarRoom/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/marcellabillett/DeveloperWarRoom/git/refs{/sha}","trees_url":"https://api.github.com/repos/marcellabillett/DeveloperWarRoom/git/trees{/sha}","statuses_url":"https://api.github.com/repos/marcellabillett/DeveloperWarRoom/statuses/{sha}","languages_url":"https://api.github.com/repos/marcellabillett/DeveloperWarRoom/languages","stargazers_url":"https://api.github.com/repos/marcellabillett/DeveloperWarRoom/stargazers","contributors_url":"https://api.github.com/repos/marcellabillett/DeveloperWarRoom/contributors","subscribers_url":"https://api.github.com/repos/marcellabillett/DeveloperWarRoom/subscribers","subscription_url":"https://api.github.com/repos/marcellabillett/DeveloperWarRoom/subscription","commits_url":"https://api.github.com/repos/marcellabillett/DeveloperWarRoom/commits{/sha}","git_commits_url":"https://api.github.com/repos/marcellabillett/DeveloperWarRoom/git/commits{/sha}","comments_url":"https://api.github.com/repos/marcellabillett/DeveloperWarRoom/comments{/number}","issue_comment_url":"https://api.github.com/repos/marcellabillett/DeveloperWarRoom/issues/comments{/number}","contents_url":"https://api.github.com/repos/marcellabillett/DeveloperWarRoom/contents/{+path}","compare_url":"https://api.github.com/repos/marcellabillett/DeveloperWarRoom/compare/{base}...{head}","merges_url":"https://api.github.com/repos/marcellabillett/DeveloperWarRoom/merges","archive_url":"https://api.github.com/repos/marcellabillett/DeveloperWarRoom/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/marcellabillett/DeveloperWarRoom/downloads","issues_url":"https://api.github.com/repos/marcellabillett/DeveloperWarRoom/issues{/number}","pulls_url":"https://api.github.com/repos/marcellabillett/DeveloperWarRoom/pulls{/number}","milestones_url":"https://api.github.com/repos/marcellabillett/DeveloperWarRoom/milestones{/number}","notifications_url":"https://api.github.com/repos/marcellabillett/DeveloperWarRoom/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/marcellabillett/DeveloperWarRoom/labels{/name}","releases_url":"https://api.github.com/repos/marcellabillett/DeveloperWarRoom/releases{/id}","deployments_url":"https://api.github.com/repos/marcellabillett/DeveloperWarRoom/deployments","created_at":"2018-02-19T22:36:01Z","updated_at":"2018-04-11T23:35:47Z","pushed_at":"2018-05-04T22:05:23Z","git_url":"git://github.com/marcellabillett/DeveloperWarRoom.git","ssh_url":"git@github.com:marcellabillett/DeveloperWarRoom.git","clone_url":"https://github.com/marcellabillett/DeveloperWarRoom.git","svn_url":"https://github.com/marcellabillett/DeveloperWarRoom","homepage":null,"size":1359,"stargazers_count":3,"watchers_count":3,"language":"JavaScript","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"archived":false,"open_issues_count":9,"license":{"key":"mit","name":"MIT License","spdx_id":"MIT","url":"https://api.github.com/licenses/mit"},"forks":1,"open_issues":9,"watchers":3,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/marcellabillett/DeveloperWarRoom/pulls/16"},"html":{"href":"https://github.com/marcellabillett/DeveloperWarRoom/pull/16"},"issue":{"href":"https://api.github.com/repos/marcellabillett/DeveloperWarRoom/issues/16"},"comments":{"href":"https://api.github.com/repos/marcellabillett/DeveloperWarRoom/issues/16/comments"},"review_comments":{"href":"https://api.github.com/repos/marcellabillett/DeveloperWarRoom/pulls/16/comments"},"review_comment":{"href":"https://api.github.com/repos/marcellabillett/DeveloperWarRoom/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/marcellabillett/DeveloperWarRoom/pulls/16/commits"},"statuses":{"href":"https://api.github.com/repos/marcellabillett/DeveloperWarRoom/statuses/6021964232bb6abbcd18d39075d40bbee1f8b620"}},"author_association":"COLLABORATOR"}}
{"actor":{"display_login":"smr6"}}