{"action":"created","comment":{"url":"https://api.github.com/repos/evstinik/toms-starter/pulls/comments/234976111","pull_request_review_id":176731245,"id":234976111,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDIzNDk3NjExMQ==","diff_hunk":"@@ -15,10 +26,134 @@ import * as React from 'react'\n  *      - flexbox (flex, flex-row-reverse, ...)\n  */\n \n+\n+\n+\n+@observer\n export class Shoutboard extends React.Component<{}, {}> {\n+    constructor(props: any){\n+        super(props)\n+        this._onClickHandler = this._onClickHandler.bind(this)\n+    }\n+\n+    @observable counter: number = 0\n+\n+\n+    _onClickHandler() {\n+        if(!routeState.visible){\n+            //console.log(true)\n+            routeState.showComponent(true)\n+        }\n+        else{\n+            //console.log(false)\n+            routeState.showComponent(false)\n+        }\n+    }\n+\n     render() {\n         return (\n-            <h1>Shoutboard will be here</h1>\n+        \t<div className=\"h-screen flex flex-col\">\n+                <div className=\"flex-none\">\n+\t                <Nav />\n+                </div>\n+                <div className=\"flex-1 overflow-y-auto p-4\">\n+\t                <h1 className=\"text-center\">Shoutboard will be here</h1>\n+                    <Button className=\"bg-grey-light\" onClick={() => this._onClickHandler()}> Create Post </Button>\n+                    <hr/>\n+                    {routeState.visible && <CreatePost/>}\n+                    {routeState.posts.map((item) => {\n+                        return <div className=\"container pb-2 lg:flex\" key={item._id}>\n+                            <div className=\"w-full border border-grey-light lg:border-b lg:border-t lg:border-grey-light bg-white rounded-b lg:rounded-b lg:rounded-r p-4 flex flex-col justify-between leading-normal\">\n+                                <h2>{item.name}</h2>\n+                                <p>{item.text}</p>\n+                            </div>\n+                        </div>\n+                    })}\n+                </div>\n+            </div>\n         )\n     }\n+}\n+\n+@observer\n+class CreatePost extends React.Component<{}, {}> { \n+\n+    constructor(props){\n+        super(props)\n+        this.handleUserInput = this.handleUserInput.bind(this)\n+        this.onClick = this.onClick.bind(this)\n+        //this.onChange = this.onChange.bind(this)\n+        autorun(() => console.log(`New post value: ${JSON.stringify(routeState.posts)}`))","path":"src/app/components/Shoutboard.tsx","position":78,"original_position":78,"commit_id":"903b4965017adcd6126fcc5f1b71425cf3e900a1","original_commit_id":"d2f60e0ef117b74b9b817aeaa0b79b3a56c5be8c","user":{"login":"evstinik","id":11078071,"node_id":"MDQ6VXNlcjExMDc4MDcx","avatar_url":"https://avatars3.githubusercontent.com/u/11078071?v=4","gravatar_id":"","url":"https://api.github.com/users/evstinik","html_url":"https://github.com/evstinik","followers_url":"https://api.github.com/users/evstinik/followers","following_url":"https://api.github.com/users/evstinik/following{/other_user}","gists_url":"https://api.github.com/users/evstinik/gists{/gist_id}","starred_url":"https://api.github.com/users/evstinik/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/evstinik/subscriptions","organizations_url":"https://api.github.com/users/evstinik/orgs","repos_url":"https://api.github.com/users/evstinik/repos","events_url":"https://api.github.com/users/evstinik/events{/privacy}","received_events_url":"https://api.github.com/users/evstinik/received_events","type":"User","site_admin":false},"body":"Delete","created_at":"2018-11-20T12:06:27Z","updated_at":"2018-11-20T12:44:35Z","html_url":"https://github.com/evstinik/toms-starter/pull/1#discussion_r234976111","pull_request_url":"https://api.github.com/repos/evstinik/toms-starter/pulls/1","author_association":"OWNER","_links":{"self":{"href":"https://api.github.com/repos/evstinik/toms-starter/pulls/comments/234976111"},"html":{"href":"https://github.com/evstinik/toms-starter/pull/1#discussion_r234976111"},"pull_request":{"href":"https://api.github.com/repos/evstinik/toms-starter/pulls/1"}}},"pull_request":{"url":"https://api.github.com/repos/evstinik/toms-starter/pulls/1","id":232291860,"node_id":"MDExOlB1bGxSZXF1ZXN0MjMyMjkxODYw","html_url":"https://github.com/evstinik/toms-starter/pull/1","diff_url":"https://github.com/evstinik/toms-starter/pull/1.diff","patch_url":"https://github.com/evstinik/toms-starter/pull/1.patch","issue_url":"https://api.github.com/repos/evstinik/toms-starter/issues/1","number":1,"state":"open","locked":false,"title":"Test","user":{"login":"xleepy","id":26363903,"node_id":"MDQ6VXNlcjI2MzYzOTAz","avatar_url":"https://avatars1.githubusercontent.com/u/26363903?v=4","gravatar_id":"","url":"https://api.github.com/users/xleepy","html_url":"https://github.com/xleepy","followers_url":"https://api.github.com/users/xleepy/followers","following_url":"https://api.github.com/users/xleepy/following{/other_user}","gists_url":"https://api.github.com/users/xleepy/gists{/gist_id}","starred_url":"https://api.github.com/users/xleepy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/xleepy/subscriptions","organizations_url":"https://api.github.com/users/xleepy/orgs","repos_url":"https://api.github.com/users/xleepy/repos","events_url":"https://api.github.com/users/xleepy/events{/privacy}","received_events_url":"https://api.github.com/users/xleepy/received_events","type":"User","site_admin":false},"body":"","created_at":"2018-11-20T12:00:59Z","updated_at":"2018-11-20T12:44:35Z","closed_at":null,"merged_at":null,"merge_commit_sha":"5485566201978cbef26fc7d57bfc4fd9d0b07c95","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/evstinik/toms-starter/pulls/1/commits","review_comments_url":"https://api.github.com/repos/evstinik/toms-starter/pulls/1/comments","review_comment_url":"https://api.github.com/repos/evstinik/toms-starter/pulls/comments{/number}","comments_url":"https://api.github.com/repos/evstinik/toms-starter/issues/1/comments","statuses_url":"https://api.github.com/repos/evstinik/toms-starter/statuses/903b4965017adcd6126fcc5f1b71425cf3e900a1","head":{"label":"evstinik:test","ref":"test","sha":"903b4965017adcd6126fcc5f1b71425cf3e900a1","user":{"login":"evstinik","id":11078071,"node_id":"MDQ6VXNlcjExMDc4MDcx","avatar_url":"https://avatars3.githubusercontent.com/u/11078071?v=4","gravatar_id":"","url":"https://api.github.com/users/evstinik","html_url":"https://github.com/evstinik","followers_url":"https://api.github.com/users/evstinik/followers","following_url":"https://api.github.com/users/evstinik/following{/other_user}","gists_url":"https://api.github.com/users/evstinik/gists{/gist_id}","starred_url":"https://api.github.com/users/evstinik/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/evstinik/subscriptions","organizations_url":"https://api.github.com/users/evstinik/orgs","repos_url":"https://api.github.com/users/evstinik/repos","events_url":"https://api.github.com/users/evstinik/events{/privacy}","received_events_url":"https://api.github.com/users/evstinik/received_events","type":"User","site_admin":false},"repo":{"id":153638453,"node_id":"MDEwOlJlcG9zaXRvcnkxNTM2Mzg0NTM=","name":"toms-starter","full_name":"evstinik/toms-starter","private":false,"owner":{"login":"evstinik","id":11078071,"node_id":"MDQ6VXNlcjExMDc4MDcx","avatar_url":"https://avatars3.githubusercontent.com/u/11078071?v=4","gravatar_id":"","url":"https://api.github.com/users/evstinik","html_url":"https://github.com/evstinik","followers_url":"https://api.github.com/users/evstinik/followers","following_url":"https://api.github.com/users/evstinik/following{/other_user}","gists_url":"https://api.github.com/users/evstinik/gists{/gist_id}","starred_url":"https://api.github.com/users/evstinik/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/evstinik/subscriptions","organizations_url":"https://api.github.com/users/evstinik/orgs","repos_url":"https://api.github.com/users/evstinik/repos","events_url":"https://api.github.com/users/evstinik/events{/privacy}","received_events_url":"https://api.github.com/users/evstinik/received_events","type":"User","site_admin":false},"html_url":"https://github.com/evstinik/toms-starter","description":null,"fork":true,"url":"https://api.github.com/repos/evstinik/toms-starter","forks_url":"https://api.github.com/repos/evstinik/toms-starter/forks","keys_url":"https://api.github.com/repos/evstinik/toms-starter/keys{/key_id}","collaborators_url":"https://api.github.com/repos/evstinik/toms-starter/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/evstinik/toms-starter/teams","hooks_url":"https://api.github.com/repos/evstinik/toms-starter/hooks","issue_events_url":"https://api.github.com/repos/evstinik/toms-starter/issues/events{/number}","events_url":"https://api.github.com/repos/evstinik/toms-starter/events","assignees_url":"https://api.github.com/repos/evstinik/toms-starter/assignees{/user}","branches_url":"https://api.github.com/repos/evstinik/toms-starter/branches{/branch}","tags_url":"https://api.github.com/repos/evstinik/toms-starter/tags","blobs_url":"https://api.github.com/repos/evstinik/toms-starter/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/evstinik/toms-starter/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/evstinik/toms-starter/git/refs{/sha}","trees_url":"https://api.github.com/repos/evstinik/toms-starter/git/trees{/sha}","statuses_url":"https://api.github.com/repos/evstinik/toms-starter/statuses/{sha}","languages_url":"https://api.github.com/repos/evstinik/toms-starter/languages","stargazers_url":"https://api.github.com/repos/evstinik/toms-starter/stargazers","contributors_url":"https://api.github.com/repos/evstinik/toms-starter/contributors","subscribers_url":"https://api.github.com/repos/evstinik/toms-starter/subscribers","subscription_url":"https://api.github.com/repos/evstinik/toms-starter/subscription","commits_url":"https://api.github.com/repos/evstinik/toms-starter/commits{/sha}","git_commits_url":"https://api.github.com/repos/evstinik/toms-starter/git/commits{/sha}","comments_url":"https://api.github.com/repos/evstinik/toms-starter/comments{/number}","issue_comment_url":"https://api.github.com/repos/evstinik/toms-starter/issues/comments{/number}","contents_url":"https://api.github.com/repos/evstinik/toms-starter/contents/{+path}","compare_url":"https://api.github.com/repos/evstinik/toms-starter/compare/{base}...{head}","merges_url":"https://api.github.com/repos/evstinik/toms-starter/merges","archive_url":"https://api.github.com/repos/evstinik/toms-starter/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/evstinik/toms-starter/downloads","issues_url":"https://api.github.com/repos/evstinik/toms-starter/issues{/number}","pulls_url":"https://api.github.com/repos/evstinik/toms-starter/pulls{/number}","milestones_url":"https://api.github.com/repos/evstinik/toms-starter/milestones{/number}","notifications_url":"https://api.github.com/repos/evstinik/toms-starter/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/evstinik/toms-starter/labels{/name}","releases_url":"https://api.github.com/repos/evstinik/toms-starter/releases{/id}","deployments_url":"https://api.github.com/repos/evstinik/toms-starter/deployments","created_at":"2018-10-18T14:33:32Z","updated_at":"2018-10-18T14:59:11Z","pushed_at":"2018-11-20T12:21:41Z","git_url":"git://github.com/evstinik/toms-starter.git","ssh_url":"git@github.com:evstinik/toms-starter.git","clone_url":"https://github.com/evstinik/toms-starter.git","svn_url":"https://github.com/evstinik/toms-starter","homepage":null,"size":244,"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,"archived":false,"open_issues_count":1,"license":null,"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"base":{"label":"evstinik:master","ref":"master","sha":"3ba2886419c5c50274b485615cff744c4829159b","user":{"login":"evstinik","id":11078071,"node_id":"MDQ6VXNlcjExMDc4MDcx","avatar_url":"https://avatars3.githubusercontent.com/u/11078071?v=4","gravatar_id":"","url":"https://api.github.com/users/evstinik","html_url":"https://github.com/evstinik","followers_url":"https://api.github.com/users/evstinik/followers","following_url":"https://api.github.com/users/evstinik/following{/other_user}","gists_url":"https://api.github.com/users/evstinik/gists{/gist_id}","starred_url":"https://api.github.com/users/evstinik/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/evstinik/subscriptions","organizations_url":"https://api.github.com/users/evstinik/orgs","repos_url":"https://api.github.com/users/evstinik/repos","events_url":"https://api.github.com/users/evstinik/events{/privacy}","received_events_url":"https://api.github.com/users/evstinik/received_events","type":"User","site_admin":false},"repo":{"id":153638453,"node_id":"MDEwOlJlcG9zaXRvcnkxNTM2Mzg0NTM=","name":"toms-starter","full_name":"evstinik/toms-starter","private":false,"owner":{"login":"evstinik","id":11078071,"node_id":"MDQ6VXNlcjExMDc4MDcx","avatar_url":"https://avatars3.githubusercontent.com/u/11078071?v=4","gravatar_id":"","url":"https://api.github.com/users/evstinik","html_url":"https://github.com/evstinik","followers_url":"https://api.github.com/users/evstinik/followers","following_url":"https://api.github.com/users/evstinik/following{/other_user}","gists_url":"https://api.github.com/users/evstinik/gists{/gist_id}","starred_url":"https://api.github.com/users/evstinik/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/evstinik/subscriptions","organizations_url":"https://api.github.com/users/evstinik/orgs","repos_url":"https://api.github.com/users/evstinik/repos","events_url":"https://api.github.com/users/evstinik/events{/privacy}","received_events_url":"https://api.github.com/users/evstinik/received_events","type":"User","site_admin":false},"html_url":"https://github.com/evstinik/toms-starter","description":null,"fork":true,"url":"https://api.github.com/repos/evstinik/toms-starter","forks_url":"https://api.github.com/repos/evstinik/toms-starter/forks","keys_url":"https://api.github.com/repos/evstinik/toms-starter/keys{/key_id}","collaborators_url":"https://api.github.com/repos/evstinik/toms-starter/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/evstinik/toms-starter/teams","hooks_url":"https://api.github.com/repos/evstinik/toms-starter/hooks","issue_events_url":"https://api.github.com/repos/evstinik/toms-starter/issues/events{/number}","events_url":"https://api.github.com/repos/evstinik/toms-starter/events","assignees_url":"https://api.github.com/repos/evstinik/toms-starter/assignees{/user}","branches_url":"https://api.github.com/repos/evstinik/toms-starter/branches{/branch}","tags_url":"https://api.github.com/repos/evstinik/toms-starter/tags","blobs_url":"https://api.github.com/repos/evstinik/toms-starter/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/evstinik/toms-starter/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/evstinik/toms-starter/git/refs{/sha}","trees_url":"https://api.github.com/repos/evstinik/toms-starter/git/trees{/sha}","statuses_url":"https://api.github.com/repos/evstinik/toms-starter/statuses/{sha}","languages_url":"https://api.github.com/repos/evstinik/toms-starter/languages","stargazers_url":"https://api.github.com/repos/evstinik/toms-starter/stargazers","contributors_url":"https://api.github.com/repos/evstinik/toms-starter/contributors","subscribers_url":"https://api.github.com/repos/evstinik/toms-starter/subscribers","subscription_url":"https://api.github.com/repos/evstinik/toms-starter/subscription","commits_url":"https://api.github.com/repos/evstinik/toms-starter/commits{/sha}","git_commits_url":"https://api.github.com/repos/evstinik/toms-starter/git/commits{/sha}","comments_url":"https://api.github.com/repos/evstinik/toms-starter/comments{/number}","issue_comment_url":"https://api.github.com/repos/evstinik/toms-starter/issues/comments{/number}","contents_url":"https://api.github.com/repos/evstinik/toms-starter/contents/{+path}","compare_url":"https://api.github.com/repos/evstinik/toms-starter/compare/{base}...{head}","merges_url":"https://api.github.com/repos/evstinik/toms-starter/merges","archive_url":"https://api.github.com/repos/evstinik/toms-starter/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/evstinik/toms-starter/downloads","issues_url":"https://api.github.com/repos/evstinik/toms-starter/issues{/number}","pulls_url":"https://api.github.com/repos/evstinik/toms-starter/pulls{/number}","milestones_url":"https://api.github.com/repos/evstinik/toms-starter/milestones{/number}","notifications_url":"https://api.github.com/repos/evstinik/toms-starter/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/evstinik/toms-starter/labels{/name}","releases_url":"https://api.github.com/repos/evstinik/toms-starter/releases{/id}","deployments_url":"https://api.github.com/repos/evstinik/toms-starter/deployments","created_at":"2018-10-18T14:33:32Z","updated_at":"2018-10-18T14:59:11Z","pushed_at":"2018-11-20T12:21:41Z","git_url":"git://github.com/evstinik/toms-starter.git","ssh_url":"git@github.com:evstinik/toms-starter.git","clone_url":"https://github.com/evstinik/toms-starter.git","svn_url":"https://github.com/evstinik/toms-starter","homepage":null,"size":244,"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,"archived":false,"open_issues_count":1,"license":null,"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/evstinik/toms-starter/pulls/1"},"html":{"href":"https://github.com/evstinik/toms-starter/pull/1"},"issue":{"href":"https://api.github.com/repos/evstinik/toms-starter/issues/1"},"comments":{"href":"https://api.github.com/repos/evstinik/toms-starter/issues/1/comments"},"review_comments":{"href":"https://api.github.com/repos/evstinik/toms-starter/pulls/1/comments"},"review_comment":{"href":"https://api.github.com/repos/evstinik/toms-starter/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/evstinik/toms-starter/pulls/1/commits"},"statuses":{"href":"https://api.github.com/repos/evstinik/toms-starter/statuses/903b4965017adcd6126fcc5f1b71425cf3e900a1"}},"author_association":"COLLABORATOR"}}
{"actor":{"display_login":"evstinik"}}