{"action":"created","comment":{"url":"https://api.github.com/repos/abak-press/apress-assets-table/pulls/comments/111930570","pull_request_review_id":33205479,"id":111930570,"diff_hunk":"@@ -0,0 +1,106 @@\n+import React from 'react';\n+import Dialog from './Dialog';\n+import Button from '../Button/Button';\n+\n+export default class DialogExample extends React.Component {\n+\n+  state = {\n+    visible: false,\n+    width: 600,\n+    destroyOnClose: false,\n+    center: false,\n+  }\n+\n+  onClick = (e) => {\n+    this.setState({\n+      mousePosition: {\n+        x: e.pageX,\n+        y: e.pageY,\n+      },\n+      visible: true,\n+    });\n+  }\n+\n+  onClose = () => {\n+    // console.log(e);\n+    this.setState({\n+      visible: false,\n+    });\n+  }\n+\n+  onDestroyOnCloseChange = (e) => {\n+    this.setState({\n+      destroyOnClose: e.target.checked,\n+    });\n+  }\n+\n+  changeWidth = () => {\n+    this.setState({\n+      width: this.state.width === 600 ? 800 : 600,\n+    });\n+  }\n+\n+  center = (e) => {\n+    this.setState({\n+      center: e.target.checked,\n+    });\n+  }\n+\n+  render() {\n+    let dialog;\n+    if (this.state.visible || !this.state.destroyOnClose) {\n+      const style = {\n+        width: this.state.width,\n+      };\n+      let wrapClassName = '';\n+      if (this.state.center) {\n+        wrapClassName = 'center';\n+      }\n+      dialog = (\n+        <Dialog\n+          visible={this.state.visible}\n+          wrapClassName={wrapClassName}\n+          onClose={this.onClose}\n+          style={style}\n+          mousePosition={this.state.mousePosition}\n+          title={<div>Загрузка фотографий</div>}","path":"src/Dialog/example.js","position":66,"original_position":66,"commit_id":"e71b453e5f79a1a52e3f9aa33f2791e7d670a838","original_commit_id":"e71b453e5f79a1a52e3f9aa33f2791e7d670a838","user":{"login":"apress-hound","id":9674631,"avatar_url":"https://avatars1.githubusercontent.com/u/9674631?v=3","gravatar_id":"","url":"https://api.github.com/users/apress-hound","html_url":"https://github.com/apress-hound","followers_url":"https://api.github.com/users/apress-hound/followers","following_url":"https://api.github.com/users/apress-hound/following{/other_user}","gists_url":"https://api.github.com/users/apress-hound/gists{/gist_id}","starred_url":"https://api.github.com/users/apress-hound/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/apress-hound/subscriptions","organizations_url":"https://api.github.com/users/apress-hound/orgs","repos_url":"https://api.github.com/users/apress-hound/repos","events_url":"https://api.github.com/users/apress-hound/events{/privacy}","received_events_url":"https://api.github.com/users/apress-hound/received_events","type":"User","site_admin":false},"body":"Unclosed regular expression.<br>Unrecoverable syntax error. (61% scanned).","created_at":"2017-04-18T11:31:18Z","updated_at":"2017-04-18T11:31:18Z","html_url":"https://github.com/abak-press/apress-assets-table/pull/33#discussion_r111930570","pull_request_url":"https://api.github.com/repos/abak-press/apress-assets-table/pulls/33","_links":{"self":{"href":"https://api.github.com/repos/abak-press/apress-assets-table/pulls/comments/111930570"},"html":{"href":"https://github.com/abak-press/apress-assets-table/pull/33#discussion_r111930570"},"pull_request":{"href":"https://api.github.com/repos/abak-press/apress-assets-table/pulls/33"}}},"pull_request":{"url":"https://api.github.com/repos/abak-press/apress-assets-table/pulls/33","id":116305069,"html_url":"https://github.com/abak-press/apress-assets-table/pull/33","diff_url":"https://github.com/abak-press/apress-assets-table/pull/33.diff","patch_url":"https://github.com/abak-press/apress-assets-table/pull/33.patch","issue_url":"https://api.github.com/repos/abak-press/apress-assets-table/issues/33","number":33,"state":"open","locked":false,"title":"feature(tiger): Добавит модальник","user":{"login":"dontuse","id":710671,"avatar_url":"https://avatars0.githubusercontent.com/u/710671?v=3","gravatar_id":"","url":"https://api.github.com/users/dontuse","html_url":"https://github.com/dontuse","followers_url":"https://api.github.com/users/dontuse/followers","following_url":"https://api.github.com/users/dontuse/following{/other_user}","gists_url":"https://api.github.com/users/dontuse/gists{/gist_id}","starred_url":"https://api.github.com/users/dontuse/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dontuse/subscriptions","organizations_url":"https://api.github.com/users/dontuse/orgs","repos_url":"https://api.github.com/users/dontuse/repos","events_url":"https://api.github.com/users/dontuse/events{/privacy}","received_events_url":"https://api.github.com/users/dontuse/received_events","type":"User","site_admin":false},"body":"","created_at":"2017-04-18T11:20:17Z","updated_at":"2017-04-18T11:31:18Z","closed_at":null,"merged_at":null,"merge_commit_sha":"c0fd639b7c64de0501e26632f26584d8dd6fa679","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/abak-press/apress-assets-table/pulls/33/commits","review_comments_url":"https://api.github.com/repos/abak-press/apress-assets-table/pulls/33/comments","review_comment_url":"https://api.github.com/repos/abak-press/apress-assets-table/pulls/comments{/number}","comments_url":"https://api.github.com/repos/abak-press/apress-assets-table/issues/33/comments","statuses_url":"https://api.github.com/repos/abak-press/apress-assets-table/statuses/e71b453e5f79a1a52e3f9aa33f2791e7d670a838","head":{"label":"dontuse:dialog","ref":"dialog","sha":"e71b453e5f79a1a52e3f9aa33f2791e7d670a838","user":{"login":"dontuse","id":710671,"avatar_url":"https://avatars0.githubusercontent.com/u/710671?v=3","gravatar_id":"","url":"https://api.github.com/users/dontuse","html_url":"https://github.com/dontuse","followers_url":"https://api.github.com/users/dontuse/followers","following_url":"https://api.github.com/users/dontuse/following{/other_user}","gists_url":"https://api.github.com/users/dontuse/gists{/gist_id}","starred_url":"https://api.github.com/users/dontuse/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dontuse/subscriptions","organizations_url":"https://api.github.com/users/dontuse/orgs","repos_url":"https://api.github.com/users/dontuse/repos","events_url":"https://api.github.com/users/dontuse/events{/privacy}","received_events_url":"https://api.github.com/users/dontuse/received_events","type":"User","site_admin":false},"repo":{"id":85054536,"name":"apress-assets-table","full_name":"dontuse/apress-assets-table","owner":{"login":"dontuse","id":710671,"avatar_url":"https://avatars0.githubusercontent.com/u/710671?v=3","gravatar_id":"","url":"https://api.github.com/users/dontuse","html_url":"https://github.com/dontuse","followers_url":"https://api.github.com/users/dontuse/followers","following_url":"https://api.github.com/users/dontuse/following{/other_user}","gists_url":"https://api.github.com/users/dontuse/gists{/gist_id}","starred_url":"https://api.github.com/users/dontuse/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dontuse/subscriptions","organizations_url":"https://api.github.com/users/dontuse/orgs","repos_url":"https://api.github.com/users/dontuse/repos","events_url":"https://api.github.com/users/dontuse/events{/privacy}","received_events_url":"https://api.github.com/users/dontuse/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/dontuse/apress-assets-table","description":null,"fork":true,"url":"https://api.github.com/repos/dontuse/apress-assets-table","forks_url":"https://api.github.com/repos/dontuse/apress-assets-table/forks","keys_url":"https://api.github.com/repos/dontuse/apress-assets-table/keys{/key_id}","collaborators_url":"https://api.github.com/repos/dontuse/apress-assets-table/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/dontuse/apress-assets-table/teams","hooks_url":"https://api.github.com/repos/dontuse/apress-assets-table/hooks","issue_events_url":"https://api.github.com/repos/dontuse/apress-assets-table/issues/events{/number}","events_url":"https://api.github.com/repos/dontuse/apress-assets-table/events","assignees_url":"https://api.github.com/repos/dontuse/apress-assets-table/assignees{/user}","branches_url":"https://api.github.com/repos/dontuse/apress-assets-table/branches{/branch}","tags_url":"https://api.github.com/repos/dontuse/apress-assets-table/tags","blobs_url":"https://api.github.com/repos/dontuse/apress-assets-table/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/dontuse/apress-assets-table/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/dontuse/apress-assets-table/git/refs{/sha}","trees_url":"https://api.github.com/repos/dontuse/apress-assets-table/git/trees{/sha}","statuses_url":"https://api.github.com/repos/dontuse/apress-assets-table/statuses/{sha}","languages_url":"https://api.github.com/repos/dontuse/apress-assets-table/languages","stargazers_url":"https://api.github.com/repos/dontuse/apress-assets-table/stargazers","contributors_url":"https://api.github.com/repos/dontuse/apress-assets-table/contributors","subscribers_url":"https://api.github.com/repos/dontuse/apress-assets-table/subscribers","subscription_url":"https://api.github.com/repos/dontuse/apress-assets-table/subscription","commits_url":"https://api.github.com/repos/dontuse/apress-assets-table/commits{/sha}","git_commits_url":"https://api.github.com/repos/dontuse/apress-assets-table/git/commits{/sha}","comments_url":"https://api.github.com/repos/dontuse/apress-assets-table/comments{/number}","issue_comment_url":"https://api.github.com/repos/dontuse/apress-assets-table/issues/comments{/number}","contents_url":"https://api.github.com/repos/dontuse/apress-assets-table/contents/{+path}","compare_url":"https://api.github.com/repos/dontuse/apress-assets-table/compare/{base}...{head}","merges_url":"https://api.github.com/repos/dontuse/apress-assets-table/merges","archive_url":"https://api.github.com/repos/dontuse/apress-assets-table/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/dontuse/apress-assets-table/downloads","issues_url":"https://api.github.com/repos/dontuse/apress-assets-table/issues{/number}","pulls_url":"https://api.github.com/repos/dontuse/apress-assets-table/pulls{/number}","milestones_url":"https://api.github.com/repos/dontuse/apress-assets-table/milestones{/number}","notifications_url":"https://api.github.com/repos/dontuse/apress-assets-table/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/dontuse/apress-assets-table/labels{/name}","releases_url":"https://api.github.com/repos/dontuse/apress-assets-table/releases{/id}","deployments_url":"https://api.github.com/repos/dontuse/apress-assets-table/deployments","created_at":"2017-03-15T09:37:57Z","updated_at":"2017-03-15T09:37:58Z","pushed_at":"2017-04-18T11:27:53Z","git_url":"git://github.com/dontuse/apress-assets-table.git","ssh_url":"git@github.com:dontuse/apress-assets-table.git","clone_url":"https://github.com/dontuse/apress-assets-table.git","svn_url":"https://github.com/dontuse/apress-assets-table","homepage":null,"size":1771,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"abak-press:master","ref":"master","sha":"2f8c76c9c499f4d211b859bd6da279a537ba77d6","user":{"login":"abak-press","id":1352227,"avatar_url":"https://avatars3.githubusercontent.com/u/1352227?v=3","gravatar_id":"","url":"https://api.github.com/users/abak-press","html_url":"https://github.com/abak-press","followers_url":"https://api.github.com/users/abak-press/followers","following_url":"https://api.github.com/users/abak-press/following{/other_user}","gists_url":"https://api.github.com/users/abak-press/gists{/gist_id}","starred_url":"https://api.github.com/users/abak-press/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/abak-press/subscriptions","organizations_url":"https://api.github.com/users/abak-press/orgs","repos_url":"https://api.github.com/users/abak-press/repos","events_url":"https://api.github.com/users/abak-press/events{/privacy}","received_events_url":"https://api.github.com/users/abak-press/received_events","type":"Organization","site_admin":false},"repo":{"id":84040046,"name":"apress-assets-table","full_name":"abak-press/apress-assets-table","owner":{"login":"abak-press","id":1352227,"avatar_url":"https://avatars3.githubusercontent.com/u/1352227?v=3","gravatar_id":"","url":"https://api.github.com/users/abak-press","html_url":"https://github.com/abak-press","followers_url":"https://api.github.com/users/abak-press/followers","following_url":"https://api.github.com/users/abak-press/following{/other_user}","gists_url":"https://api.github.com/users/abak-press/gists{/gist_id}","starred_url":"https://api.github.com/users/abak-press/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/abak-press/subscriptions","organizations_url":"https://api.github.com/users/abak-press/orgs","repos_url":"https://api.github.com/users/abak-press/repos","events_url":"https://api.github.com/users/abak-press/events{/privacy}","received_events_url":"https://api.github.com/users/abak-press/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/abak-press/apress-assets-table","description":null,"fork":false,"url":"https://api.github.com/repos/abak-press/apress-assets-table","forks_url":"https://api.github.com/repos/abak-press/apress-assets-table/forks","keys_url":"https://api.github.com/repos/abak-press/apress-assets-table/keys{/key_id}","collaborators_url":"https://api.github.com/repos/abak-press/apress-assets-table/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/abak-press/apress-assets-table/teams","hooks_url":"https://api.github.com/repos/abak-press/apress-assets-table/hooks","issue_events_url":"https://api.github.com/repos/abak-press/apress-assets-table/issues/events{/number}","events_url":"https://api.github.com/repos/abak-press/apress-assets-table/events","assignees_url":"https://api.github.com/repos/abak-press/apress-assets-table/assignees{/user}","branches_url":"https://api.github.com/repos/abak-press/apress-assets-table/branches{/branch}","tags_url":"https://api.github.com/repos/abak-press/apress-assets-table/tags","blobs_url":"https://api.github.com/repos/abak-press/apress-assets-table/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/abak-press/apress-assets-table/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/abak-press/apress-assets-table/git/refs{/sha}","trees_url":"https://api.github.com/repos/abak-press/apress-assets-table/git/trees{/sha}","statuses_url":"https://api.github.com/repos/abak-press/apress-assets-table/statuses/{sha}","languages_url":"https://api.github.com/repos/abak-press/apress-assets-table/languages","stargazers_url":"https://api.github.com/repos/abak-press/apress-assets-table/stargazers","contributors_url":"https://api.github.com/repos/abak-press/apress-assets-table/contributors","subscribers_url":"https://api.github.com/repos/abak-press/apress-assets-table/subscribers","subscription_url":"https://api.github.com/repos/abak-press/apress-assets-table/subscription","commits_url":"https://api.github.com/repos/abak-press/apress-assets-table/commits{/sha}","git_commits_url":"https://api.github.com/repos/abak-press/apress-assets-table/git/commits{/sha}","comments_url":"https://api.github.com/repos/abak-press/apress-assets-table/comments{/number}","issue_comment_url":"https://api.github.com/repos/abak-press/apress-assets-table/issues/comments{/number}","contents_url":"https://api.github.com/repos/abak-press/apress-assets-table/contents/{+path}","compare_url":"https://api.github.com/repos/abak-press/apress-assets-table/compare/{base}...{head}","merges_url":"https://api.github.com/repos/abak-press/apress-assets-table/merges","archive_url":"https://api.github.com/repos/abak-press/apress-assets-table/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/abak-press/apress-assets-table/downloads","issues_url":"https://api.github.com/repos/abak-press/apress-assets-table/issues{/number}","pulls_url":"https://api.github.com/repos/abak-press/apress-assets-table/pulls{/number}","milestones_url":"https://api.github.com/repos/abak-press/apress-assets-table/milestones{/number}","notifications_url":"https://api.github.com/repos/abak-press/apress-assets-table/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/abak-press/apress-assets-table/labels{/name}","releases_url":"https://api.github.com/repos/abak-press/apress-assets-table/releases{/id}","deployments_url":"https://api.github.com/repos/abak-press/apress-assets-table/deployments","created_at":"2017-03-06T06:52:59Z","updated_at":"2017-03-15T05:19:39Z","pushed_at":"2017-04-18T11:27:54Z","git_url":"git://github.com/abak-press/apress-assets-table.git","ssh_url":"git@github.com:abak-press/apress-assets-table.git","clone_url":"https://github.com/abak-press/apress-assets-table.git","svn_url":"https://github.com/abak-press/apress-assets-table","homepage":null,"size":1790,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":2,"mirror_url":null,"open_issues_count":1,"forks":2,"open_issues":1,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/abak-press/apress-assets-table/pulls/33"},"html":{"href":"https://github.com/abak-press/apress-assets-table/pull/33"},"issue":{"href":"https://api.github.com/repos/abak-press/apress-assets-table/issues/33"},"comments":{"href":"https://api.github.com/repos/abak-press/apress-assets-table/issues/33/comments"},"review_comments":{"href":"https://api.github.com/repos/abak-press/apress-assets-table/pulls/33/comments"},"review_comment":{"href":"https://api.github.com/repos/abak-press/apress-assets-table/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/abak-press/apress-assets-table/pulls/33/commits"},"statuses":{"href":"https://api.github.com/repos/abak-press/apress-assets-table/statuses/e71b453e5f79a1a52e3f9aa33f2791e7d670a838"}}}}
{"actor":{"display_login":"apress-hound"}}