{"action":"created","comment":{"url":"https://api.github.com/repos/frontend-park-mail-ru/2018_2_LSP/pulls/comments/231788827","pull_request_review_id":172834136,"id":231788827,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDIzMTc4ODgyNw==","diff_hunk":"@@ -0,0 +1,44 @@\n+import BaseView from '../BaseView/BaseView.mjs';\n+\n+import { Users } from '/scripts/services/users.mjs';\n+import { Block } from '/scripts/blocks/Block/Block.mjs';\n+\n+export default class Profile extends BaseView {\n+    constructor({profile, router}){\n+        const view = baseView({'headerType': 'back','navClass': 'backButton', 'title': 'Профиль'});\n+        super(view);\n+        this._profile = profile;\n+        this.router = router;\n+    }\n+\n+    render() {\n+        this._renderProfile(this._profile);\n+    }\n+\n+    _renderProfile(profileData) {\n+        if (profileData) {\n+            const userParams = {\n+                'Логин': profileData.username,\n+                'Почта': profileData.email,\n+                'Сыграно игр': profileData.gamecount,\n+                'Счет': profileData.rating\n+            }; \n+            Object.entries(userParams).forEach((param) => {\n+                const pParam = new Block('p');\n+                pParam.setText(param[0] + ': ' + param[1]);\n+                this.pageContent.appendChild(pParam.getElement());\n+            });\n+        } else {\n+            const callback = (err, response) => {\n+                console.log(err, response);\n+                if (err === null) {\n+                    this._profile = response;\n+\t                this.render();","path":"public/scripts/views/ProfileView/Profile.mjs","position":36,"original_position":36,"commit_id":"9a67328630969dbe8694a9c601e0d57a41448e03","original_commit_id":"9a67328630969dbe8694a9c601e0d57a41448e03","user":{"login":"EvgeniaNevtrinosova","id":22654234,"node_id":"MDQ6VXNlcjIyNjU0MjM0","avatar_url":"https://avatars3.githubusercontent.com/u/22654234?v=4","gravatar_id":"","url":"https://api.github.com/users/EvgeniaNevtrinosova","html_url":"https://github.com/EvgeniaNevtrinosova","followers_url":"https://api.github.com/users/EvgeniaNevtrinosova/followers","following_url":"https://api.github.com/users/EvgeniaNevtrinosova/following{/other_user}","gists_url":"https://api.github.com/users/EvgeniaNevtrinosova/gists{/gist_id}","starred_url":"https://api.github.com/users/EvgeniaNevtrinosova/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/EvgeniaNevtrinosova/subscriptions","organizations_url":"https://api.github.com/users/EvgeniaNevtrinosova/orgs","repos_url":"https://api.github.com/users/EvgeniaNevtrinosova/repos","events_url":"https://api.github.com/users/EvgeniaNevtrinosova/events{/privacy}","received_events_url":"https://api.github.com/users/EvgeniaNevtrinosova/received_events","type":"User","site_admin":false},"body":"if (!err)","created_at":"2018-11-08T07:47:35Z","updated_at":"2018-11-08T07:47:35Z","html_url":"https://github.com/frontend-park-mail-ru/2018_2_LSP/pull/7#discussion_r231788827","pull_request_url":"https://api.github.com/repos/frontend-park-mail-ru/2018_2_LSP/pulls/7","author_association":"COLLABORATOR","_links":{"self":{"href":"https://api.github.com/repos/frontend-park-mail-ru/2018_2_LSP/pulls/comments/231788827"},"html":{"href":"https://github.com/frontend-park-mail-ru/2018_2_LSP/pull/7#discussion_r231788827"},"pull_request":{"href":"https://api.github.com/repos/frontend-park-mail-ru/2018_2_LSP/pulls/7"}}},"pull_request":{"url":"https://api.github.com/repos/frontend-park-mail-ru/2018_2_LSP/pulls/7","id":229225312,"node_id":"MDExOlB1bGxSZXF1ZXN0MjI5MjI1MzEy","html_url":"https://github.com/frontend-park-mail-ru/2018_2_LSP/pull/7","diff_url":"https://github.com/frontend-park-mail-ru/2018_2_LSP/pull/7.diff","patch_url":"https://github.com/frontend-park-mail-ru/2018_2_LSP/pull/7.patch","issue_url":"https://api.github.com/repos/frontend-park-mail-ru/2018_2_LSP/issues/7","number":7,"state":"open","locked":false,"title":"RK #2","user":{"login":"Moleque","id":17351300,"node_id":"MDQ6VXNlcjE3MzUxMzAw","avatar_url":"https://avatars3.githubusercontent.com/u/17351300?v=4","gravatar_id":"","url":"https://api.github.com/users/Moleque","html_url":"https://github.com/Moleque","followers_url":"https://api.github.com/users/Moleque/followers","following_url":"https://api.github.com/users/Moleque/following{/other_user}","gists_url":"https://api.github.com/users/Moleque/gists{/gist_id}","starred_url":"https://api.github.com/users/Moleque/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Moleque/subscriptions","organizations_url":"https://api.github.com/users/Moleque/orgs","repos_url":"https://api.github.com/users/Moleque/repos","events_url":"https://api.github.com/users/Moleque/events{/privacy}","received_events_url":"https://api.github.com/users/Moleque/received_events","type":"User","site_admin":false},"body":"","created_at":"2018-11-08T01:47:56Z","updated_at":"2018-11-08T07:47:35Z","closed_at":null,"merged_at":null,"merge_commit_sha":"b38c7be706f461685d262217357b9b9314cef23c","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/frontend-park-mail-ru/2018_2_LSP/pulls/7/commits","review_comments_url":"https://api.github.com/repos/frontend-park-mail-ru/2018_2_LSP/pulls/7/comments","review_comment_url":"https://api.github.com/repos/frontend-park-mail-ru/2018_2_LSP/pulls/comments{/number}","comments_url":"https://api.github.com/repos/frontend-park-mail-ru/2018_2_LSP/issues/7/comments","statuses_url":"https://api.github.com/repos/frontend-park-mail-ru/2018_2_LSP/statuses/9a67328630969dbe8694a9c601e0d57a41448e03","head":{"label":"frontend-park-mail-ru:develop","ref":"develop","sha":"9a67328630969dbe8694a9c601e0d57a41448e03","user":{"login":"frontend-park-mail-ru","id":16650333,"node_id":"MDEyOk9yZ2FuaXphdGlvbjE2NjUwMzMz","avatar_url":"https://avatars3.githubusercontent.com/u/16650333?v=4","gravatar_id":"","url":"https://api.github.com/users/frontend-park-mail-ru","html_url":"https://github.com/frontend-park-mail-ru","followers_url":"https://api.github.com/users/frontend-park-mail-ru/followers","following_url":"https://api.github.com/users/frontend-park-mail-ru/following{/other_user}","gists_url":"https://api.github.com/users/frontend-park-mail-ru/gists{/gist_id}","starred_url":"https://api.github.com/users/frontend-park-mail-ru/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/frontend-park-mail-ru/subscriptions","organizations_url":"https://api.github.com/users/frontend-park-mail-ru/orgs","repos_url":"https://api.github.com/users/frontend-park-mail-ru/repos","events_url":"https://api.github.com/users/frontend-park-mail-ru/events{/privacy}","received_events_url":"https://api.github.com/users/frontend-park-mail-ru/received_events","type":"Organization","site_admin":false},"repo":{"id":147467807,"node_id":"MDEwOlJlcG9zaXRvcnkxNDc0Njc4MDc=","name":"2018_2_LSP","full_name":"frontend-park-mail-ru/2018_2_LSP","private":false,"owner":{"login":"frontend-park-mail-ru","id":16650333,"node_id":"MDEyOk9yZ2FuaXphdGlvbjE2NjUwMzMz","avatar_url":"https://avatars3.githubusercontent.com/u/16650333?v=4","gravatar_id":"","url":"https://api.github.com/users/frontend-park-mail-ru","html_url":"https://github.com/frontend-park-mail-ru","followers_url":"https://api.github.com/users/frontend-park-mail-ru/followers","following_url":"https://api.github.com/users/frontend-park-mail-ru/following{/other_user}","gists_url":"https://api.github.com/users/frontend-park-mail-ru/gists{/gist_id}","starred_url":"https://api.github.com/users/frontend-park-mail-ru/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/frontend-park-mail-ru/subscriptions","organizations_url":"https://api.github.com/users/frontend-park-mail-ru/orgs","repos_url":"https://api.github.com/users/frontend-park-mail-ru/repos","events_url":"https://api.github.com/users/frontend-park-mail-ru/events{/privacy}","received_events_url":"https://api.github.com/users/frontend-park-mail-ru/received_events","type":"Organization","site_admin":false},"html_url":"https://github.com/frontend-park-mail-ru/2018_2_LSP","description":null,"fork":false,"url":"https://api.github.com/repos/frontend-park-mail-ru/2018_2_LSP","forks_url":"https://api.github.com/repos/frontend-park-mail-ru/2018_2_LSP/forks","keys_url":"https://api.github.com/repos/frontend-park-mail-ru/2018_2_LSP/keys{/key_id}","collaborators_url":"https://api.github.com/repos/frontend-park-mail-ru/2018_2_LSP/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/frontend-park-mail-ru/2018_2_LSP/teams","hooks_url":"https://api.github.com/repos/frontend-park-mail-ru/2018_2_LSP/hooks","issue_events_url":"https://api.github.com/repos/frontend-park-mail-ru/2018_2_LSP/issues/events{/number}","events_url":"https://api.github.com/repos/frontend-park-mail-ru/2018_2_LSP/events","assignees_url":"https://api.github.com/repos/frontend-park-mail-ru/2018_2_LSP/assignees{/user}","branches_url":"https://api.github.com/repos/frontend-park-mail-ru/2018_2_LSP/branches{/branch}","tags_url":"https://api.github.com/repos/frontend-park-mail-ru/2018_2_LSP/tags","blobs_url":"https://api.github.com/repos/frontend-park-mail-ru/2018_2_LSP/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/frontend-park-mail-ru/2018_2_LSP/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/frontend-park-mail-ru/2018_2_LSP/git/refs{/sha}","trees_url":"https://api.github.com/repos/frontend-park-mail-ru/2018_2_LSP/git/trees{/sha}","statuses_url":"https://api.github.com/repos/frontend-park-mail-ru/2018_2_LSP/statuses/{sha}","languages_url":"https://api.github.com/repos/frontend-park-mail-ru/2018_2_LSP/languages","stargazers_url":"https://api.github.com/repos/frontend-park-mail-ru/2018_2_LSP/stargazers","contributors_url":"https://api.github.com/repos/frontend-park-mail-ru/2018_2_LSP/contributors","subscribers_url":"https://api.github.com/repos/frontend-park-mail-ru/2018_2_LSP/subscribers","subscription_url":"https://api.github.com/repos/frontend-park-mail-ru/2018_2_LSP/subscription","commits_url":"https://api.github.com/repos/frontend-park-mail-ru/2018_2_LSP/commits{/sha}","git_commits_url":"https://api.github.com/repos/frontend-park-mail-ru/2018_2_LSP/git/commits{/sha}","comments_url":"https://api.github.com/repos/frontend-park-mail-ru/2018_2_LSP/comments{/number}","issue_comment_url":"https://api.github.com/repos/frontend-park-mail-ru/2018_2_LSP/issues/comments{/number}","contents_url":"https://api.github.com/repos/frontend-park-mail-ru/2018_2_LSP/contents/{+path}","compare_url":"https://api.github.com/repos/frontend-park-mail-ru/2018_2_LSP/compare/{base}...{head}","merges_url":"https://api.github.com/repos/frontend-park-mail-ru/2018_2_LSP/merges","archive_url":"https://api.github.com/repos/frontend-park-mail-ru/2018_2_LSP/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/frontend-park-mail-ru/2018_2_LSP/downloads","issues_url":"https://api.github.com/repos/frontend-park-mail-ru/2018_2_LSP/issues{/number}","pulls_url":"https://api.github.com/repos/frontend-park-mail-ru/2018_2_LSP/pulls{/number}","milestones_url":"https://api.github.com/repos/frontend-park-mail-ru/2018_2_LSP/milestones{/number}","notifications_url":"https://api.github.com/repos/frontend-park-mail-ru/2018_2_LSP/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/frontend-park-mail-ru/2018_2_LSP/labels{/name}","releases_url":"https://api.github.com/repos/frontend-park-mail-ru/2018_2_LSP/releases{/id}","deployments_url":"https://api.github.com/repos/frontend-park-mail-ru/2018_2_LSP/deployments","created_at":"2018-09-05T06:04:45Z","updated_at":"2018-10-01T15:12:42Z","pushed_at":"2018-11-08T01:47:58Z","git_url":"git://github.com/frontend-park-mail-ru/2018_2_LSP.git","ssh_url":"git@github.com:frontend-park-mail-ru/2018_2_LSP.git","clone_url":"https://github.com/frontend-park-mail-ru/2018_2_LSP.git","svn_url":"https://github.com/frontend-park-mail-ru/2018_2_LSP","homepage":null,"size":893,"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":4,"license":null,"forks":0,"open_issues":4,"watchers":2,"default_branch":"master"}},"base":{"label":"frontend-park-mail-ru:master","ref":"master","sha":"3de28de6d344795b33d4476abbf56459b3adf5b1","user":{"login":"frontend-park-mail-ru","id":16650333,"node_id":"MDEyOk9yZ2FuaXphdGlvbjE2NjUwMzMz","avatar_url":"https://avatars3.githubusercontent.com/u/16650333?v=4","gravatar_id":"","url":"https://api.github.com/users/frontend-park-mail-ru","html_url":"https://github.com/frontend-park-mail-ru","followers_url":"https://api.github.com/users/frontend-park-mail-ru/followers","following_url":"https://api.github.com/users/frontend-park-mail-ru/following{/other_user}","gists_url":"https://api.github.com/users/frontend-park-mail-ru/gists{/gist_id}","starred_url":"https://api.github.com/users/frontend-park-mail-ru/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/frontend-park-mail-ru/subscriptions","organizations_url":"https://api.github.com/users/frontend-park-mail-ru/orgs","repos_url":"https://api.github.com/users/frontend-park-mail-ru/repos","events_url":"https://api.github.com/users/frontend-park-mail-ru/events{/privacy}","received_events_url":"https://api.github.com/users/frontend-park-mail-ru/received_events","type":"Organization","site_admin":false},"repo":{"id":147467807,"node_id":"MDEwOlJlcG9zaXRvcnkxNDc0Njc4MDc=","name":"2018_2_LSP","full_name":"frontend-park-mail-ru/2018_2_LSP","private":false,"owner":{"login":"frontend-park-mail-ru","id":16650333,"node_id":"MDEyOk9yZ2FuaXphdGlvbjE2NjUwMzMz","avatar_url":"https://avatars3.githubusercontent.com/u/16650333?v=4","gravatar_id":"","url":"https://api.github.com/users/frontend-park-mail-ru","html_url":"https://github.com/frontend-park-mail-ru","followers_url":"https://api.github.com/users/frontend-park-mail-ru/followers","following_url":"https://api.github.com/users/frontend-park-mail-ru/following{/other_user}","gists_url":"https://api.github.com/users/frontend-park-mail-ru/gists{/gist_id}","starred_url":"https://api.github.com/users/frontend-park-mail-ru/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/frontend-park-mail-ru/subscriptions","organizations_url":"https://api.github.com/users/frontend-park-mail-ru/orgs","repos_url":"https://api.github.com/users/frontend-park-mail-ru/repos","events_url":"https://api.github.com/users/frontend-park-mail-ru/events{/privacy}","received_events_url":"https://api.github.com/users/frontend-park-mail-ru/received_events","type":"Organization","site_admin":false},"html_url":"https://github.com/frontend-park-mail-ru/2018_2_LSP","description":null,"fork":false,"url":"https://api.github.com/repos/frontend-park-mail-ru/2018_2_LSP","forks_url":"https://api.github.com/repos/frontend-park-mail-ru/2018_2_LSP/forks","keys_url":"https://api.github.com/repos/frontend-park-mail-ru/2018_2_LSP/keys{/key_id}","collaborators_url":"https://api.github.com/repos/frontend-park-mail-ru/2018_2_LSP/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/frontend-park-mail-ru/2018_2_LSP/teams","hooks_url":"https://api.github.com/repos/frontend-park-mail-ru/2018_2_LSP/hooks","issue_events_url":"https://api.github.com/repos/frontend-park-mail-ru/2018_2_LSP/issues/events{/number}","events_url":"https://api.github.com/repos/frontend-park-mail-ru/2018_2_LSP/events","assignees_url":"https://api.github.com/repos/frontend-park-mail-ru/2018_2_LSP/assignees{/user}","branches_url":"https://api.github.com/repos/frontend-park-mail-ru/2018_2_LSP/branches{/branch}","tags_url":"https://api.github.com/repos/frontend-park-mail-ru/2018_2_LSP/tags","blobs_url":"https://api.github.com/repos/frontend-park-mail-ru/2018_2_LSP/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/frontend-park-mail-ru/2018_2_LSP/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/frontend-park-mail-ru/2018_2_LSP/git/refs{/sha}","trees_url":"https://api.github.com/repos/frontend-park-mail-ru/2018_2_LSP/git/trees{/sha}","statuses_url":"https://api.github.com/repos/frontend-park-mail-ru/2018_2_LSP/statuses/{sha}","languages_url":"https://api.github.com/repos/frontend-park-mail-ru/2018_2_LSP/languages","stargazers_url":"https://api.github.com/repos/frontend-park-mail-ru/2018_2_LSP/stargazers","contributors_url":"https://api.github.com/repos/frontend-park-mail-ru/2018_2_LSP/contributors","subscribers_url":"https://api.github.com/repos/frontend-park-mail-ru/2018_2_LSP/subscribers","subscription_url":"https://api.github.com/repos/frontend-park-mail-ru/2018_2_LSP/subscription","commits_url":"https://api.github.com/repos/frontend-park-mail-ru/2018_2_LSP/commits{/sha}","git_commits_url":"https://api.github.com/repos/frontend-park-mail-ru/2018_2_LSP/git/commits{/sha}","comments_url":"https://api.github.com/repos/frontend-park-mail-ru/2018_2_LSP/comments{/number}","issue_comment_url":"https://api.github.com/repos/frontend-park-mail-ru/2018_2_LSP/issues/comments{/number}","contents_url":"https://api.github.com/repos/frontend-park-mail-ru/2018_2_LSP/contents/{+path}","compare_url":"https://api.github.com/repos/frontend-park-mail-ru/2018_2_LSP/compare/{base}...{head}","merges_url":"https://api.github.com/repos/frontend-park-mail-ru/2018_2_LSP/merges","archive_url":"https://api.github.com/repos/frontend-park-mail-ru/2018_2_LSP/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/frontend-park-mail-ru/2018_2_LSP/downloads","issues_url":"https://api.github.com/repos/frontend-park-mail-ru/2018_2_LSP/issues{/number}","pulls_url":"https://api.github.com/repos/frontend-park-mail-ru/2018_2_LSP/pulls{/number}","milestones_url":"https://api.github.com/repos/frontend-park-mail-ru/2018_2_LSP/milestones{/number}","notifications_url":"https://api.github.com/repos/frontend-park-mail-ru/2018_2_LSP/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/frontend-park-mail-ru/2018_2_LSP/labels{/name}","releases_url":"https://api.github.com/repos/frontend-park-mail-ru/2018_2_LSP/releases{/id}","deployments_url":"https://api.github.com/repos/frontend-park-mail-ru/2018_2_LSP/deployments","created_at":"2018-09-05T06:04:45Z","updated_at":"2018-10-01T15:12:42Z","pushed_at":"2018-11-08T01:47:58Z","git_url":"git://github.com/frontend-park-mail-ru/2018_2_LSP.git","ssh_url":"git@github.com:frontend-park-mail-ru/2018_2_LSP.git","clone_url":"https://github.com/frontend-park-mail-ru/2018_2_LSP.git","svn_url":"https://github.com/frontend-park-mail-ru/2018_2_LSP","homepage":null,"size":893,"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":4,"license":null,"forks":0,"open_issues":4,"watchers":2,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/frontend-park-mail-ru/2018_2_LSP/pulls/7"},"html":{"href":"https://github.com/frontend-park-mail-ru/2018_2_LSP/pull/7"},"issue":{"href":"https://api.github.com/repos/frontend-park-mail-ru/2018_2_LSP/issues/7"},"comments":{"href":"https://api.github.com/repos/frontend-park-mail-ru/2018_2_LSP/issues/7/comments"},"review_comments":{"href":"https://api.github.com/repos/frontend-park-mail-ru/2018_2_LSP/pulls/7/comments"},"review_comment":{"href":"https://api.github.com/repos/frontend-park-mail-ru/2018_2_LSP/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/frontend-park-mail-ru/2018_2_LSP/pulls/7/commits"},"statuses":{"href":"https://api.github.com/repos/frontend-park-mail-ru/2018_2_LSP/statuses/9a67328630969dbe8694a9c601e0d57a41448e03"}},"author_association":"COLLABORATOR"}}
{"actor":{"display_login":"EvgeniaNevtrinosova"}}