{"action":"created","comment":{"url":"https://api.github.com/repos/gothinkster/vue-realworld-example-app/pulls/comments/199365828","pull_request_review_id":133470082,"id":199365828,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDE5OTM2NTgyOA==","diff_hunk":"@@ -17,20 +17,14 @@ Vue.filter('error', ErrorFilter)\n \n ApiService.init()\n \n-// Ensure we checked auth before each page load.\n-router.beforeEach(\n-  (to, from, next) => {\n-    return Promise\n-      .all([store.dispatch(CHECK_AUTH)])\n-      .then(next)\n-  }\n-)\n-\n-/* eslint-disable no-new */\n-new Vue({\n-  el: '#app',\n-  router,\n-  store,\n-  template: '<App/>',\n-  components: { App }\n-})\n+store.dispatch(CHECK_AUTH)","path":"src/main.js","position":21,"original_position":21,"commit_id":"33b076024b797a103b0a32da5e2678e1774da29e","original_commit_id":"6ee824e30ae517ab4f04e368836589b71f7bf904","user":{"login":"tecfu","id":7478359,"node_id":"MDQ6VXNlcjc0NzgzNTk=","avatar_url":"https://avatars1.githubusercontent.com/u/7478359?v=4","gravatar_id":"","url":"https://api.github.com/users/tecfu","html_url":"https://github.com/tecfu","followers_url":"https://api.github.com/users/tecfu/followers","following_url":"https://api.github.com/users/tecfu/following{/other_user}","gists_url":"https://api.github.com/users/tecfu/gists{/gist_id}","starred_url":"https://api.github.com/users/tecfu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tecfu/subscriptions","organizations_url":"https://api.github.com/users/tecfu/orgs","repos_url":"https://api.github.com/users/tecfu/repos","events_url":"https://api.github.com/users/tecfu/events{/privacy}","received_events_url":"https://api.github.com/users/tecfu/received_events","type":"User","site_admin":false},"body":"This runs only once on init, correct? \r\n","created_at":"2018-07-01T23:55:51Z","updated_at":"2018-07-01T23:55:52Z","html_url":"https://github.com/gothinkster/vue-realworld-example-app/pull/41#discussion_r199365828","pull_request_url":"https://api.github.com/repos/gothinkster/vue-realworld-example-app/pulls/41","author_association":"NONE","_links":{"self":{"href":"https://api.github.com/repos/gothinkster/vue-realworld-example-app/pulls/comments/199365828"},"html":{"href":"https://github.com/gothinkster/vue-realworld-example-app/pull/41#discussion_r199365828"},"pull_request":{"href":"https://api.github.com/repos/gothinkster/vue-realworld-example-app/pulls/41"}}},"pull_request":{"url":"https://api.github.com/repos/gothinkster/vue-realworld-example-app/pulls/41","id":189222300,"node_id":"MDExOlB1bGxSZXF1ZXN0MTg5MjIyMzAw","html_url":"https://github.com/gothinkster/vue-realworld-example-app/pull/41","diff_url":"https://github.com/gothinkster/vue-realworld-example-app/pull/41.diff","patch_url":"https://github.com/gothinkster/vue-realworld-example-app/pull/41.patch","issue_url":"https://api.github.com/repos/gothinkster/vue-realworld-example-app/issues/41","number":41,"state":"open","locked":false,"title":"Update checked auth","user":{"login":"tranlehaiquan","id":17347993,"node_id":"MDQ6VXNlcjE3MzQ3OTkz","avatar_url":"https://avatars1.githubusercontent.com/u/17347993?v=4","gravatar_id":"","url":"https://api.github.com/users/tranlehaiquan","html_url":"https://github.com/tranlehaiquan","followers_url":"https://api.github.com/users/tranlehaiquan/followers","following_url":"https://api.github.com/users/tranlehaiquan/following{/other_user}","gists_url":"https://api.github.com/users/tranlehaiquan/gists{/gist_id}","starred_url":"https://api.github.com/users/tranlehaiquan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tranlehaiquan/subscriptions","organizations_url":"https://api.github.com/users/tranlehaiquan/orgs","repos_url":"https://api.github.com/users/tranlehaiquan/repos","events_url":"https://api.github.com/users/tranlehaiquan/events{/privacy}","received_events_url":"https://api.github.com/users/tranlehaiquan/received_events","type":"User","site_admin":false},"body":"Just check if user login one, delete axios header Authorization if user logout. So they can't access /settings or /editor.\r\nWe will do sync tab later.\r\n#35","created_at":"2018-05-20T07:05:49Z","updated_at":"2018-07-01T23:55:52Z","closed_at":null,"merged_at":null,"merge_commit_sha":"e0f8435101760a8e9e97c717d59d783b8f6a2e1a","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/gothinkster/vue-realworld-example-app/pulls/41/commits","review_comments_url":"https://api.github.com/repos/gothinkster/vue-realworld-example-app/pulls/41/comments","review_comment_url":"https://api.github.com/repos/gothinkster/vue-realworld-example-app/pulls/comments{/number}","comments_url":"https://api.github.com/repos/gothinkster/vue-realworld-example-app/issues/41/comments","statuses_url":"https://api.github.com/repos/gothinkster/vue-realworld-example-app/statuses/33b076024b797a103b0a32da5e2678e1774da29e","head":{"label":"tranlehaiquan:update-checked-auth","ref":"update-checked-auth","sha":"33b076024b797a103b0a32da5e2678e1774da29e","user":{"login":"tranlehaiquan","id":17347993,"node_id":"MDQ6VXNlcjE3MzQ3OTkz","avatar_url":"https://avatars1.githubusercontent.com/u/17347993?v=4","gravatar_id":"","url":"https://api.github.com/users/tranlehaiquan","html_url":"https://github.com/tranlehaiquan","followers_url":"https://api.github.com/users/tranlehaiquan/followers","following_url":"https://api.github.com/users/tranlehaiquan/following{/other_user}","gists_url":"https://api.github.com/users/tranlehaiquan/gists{/gist_id}","starred_url":"https://api.github.com/users/tranlehaiquan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tranlehaiquan/subscriptions","organizations_url":"https://api.github.com/users/tranlehaiquan/orgs","repos_url":"https://api.github.com/users/tranlehaiquan/repos","events_url":"https://api.github.com/users/tranlehaiquan/events{/privacy}","received_events_url":"https://api.github.com/users/tranlehaiquan/received_events","type":"User","site_admin":false},"repo":{"id":132632467,"node_id":"MDEwOlJlcG9zaXRvcnkxMzI2MzI0Njc=","name":"vue-realworld-example-app","full_name":"tranlehaiquan/vue-realworld-example-app","owner":{"login":"tranlehaiquan","id":17347993,"node_id":"MDQ6VXNlcjE3MzQ3OTkz","avatar_url":"https://avatars1.githubusercontent.com/u/17347993?v=4","gravatar_id":"","url":"https://api.github.com/users/tranlehaiquan","html_url":"https://github.com/tranlehaiquan","followers_url":"https://api.github.com/users/tranlehaiquan/followers","following_url":"https://api.github.com/users/tranlehaiquan/following{/other_user}","gists_url":"https://api.github.com/users/tranlehaiquan/gists{/gist_id}","starred_url":"https://api.github.com/users/tranlehaiquan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tranlehaiquan/subscriptions","organizations_url":"https://api.github.com/users/tranlehaiquan/orgs","repos_url":"https://api.github.com/users/tranlehaiquan/repos","events_url":"https://api.github.com/users/tranlehaiquan/events{/privacy}","received_events_url":"https://api.github.com/users/tranlehaiquan/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/tranlehaiquan/vue-realworld-example-app","description":"Exemplary RealWorld application built with Vue.js","fork":true,"url":"https://api.github.com/repos/tranlehaiquan/vue-realworld-example-app","forks_url":"https://api.github.com/repos/tranlehaiquan/vue-realworld-example-app/forks","keys_url":"https://api.github.com/repos/tranlehaiquan/vue-realworld-example-app/keys{/key_id}","collaborators_url":"https://api.github.com/repos/tranlehaiquan/vue-realworld-example-app/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/tranlehaiquan/vue-realworld-example-app/teams","hooks_url":"https://api.github.com/repos/tranlehaiquan/vue-realworld-example-app/hooks","issue_events_url":"https://api.github.com/repos/tranlehaiquan/vue-realworld-example-app/issues/events{/number}","events_url":"https://api.github.com/repos/tranlehaiquan/vue-realworld-example-app/events","assignees_url":"https://api.github.com/repos/tranlehaiquan/vue-realworld-example-app/assignees{/user}","branches_url":"https://api.github.com/repos/tranlehaiquan/vue-realworld-example-app/branches{/branch}","tags_url":"https://api.github.com/repos/tranlehaiquan/vue-realworld-example-app/tags","blobs_url":"https://api.github.com/repos/tranlehaiquan/vue-realworld-example-app/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/tranlehaiquan/vue-realworld-example-app/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/tranlehaiquan/vue-realworld-example-app/git/refs{/sha}","trees_url":"https://api.github.com/repos/tranlehaiquan/vue-realworld-example-app/git/trees{/sha}","statuses_url":"https://api.github.com/repos/tranlehaiquan/vue-realworld-example-app/statuses/{sha}","languages_url":"https://api.github.com/repos/tranlehaiquan/vue-realworld-example-app/languages","stargazers_url":"https://api.github.com/repos/tranlehaiquan/vue-realworld-example-app/stargazers","contributors_url":"https://api.github.com/repos/tranlehaiquan/vue-realworld-example-app/contributors","subscribers_url":"https://api.github.com/repos/tranlehaiquan/vue-realworld-example-app/subscribers","subscription_url":"https://api.github.com/repos/tranlehaiquan/vue-realworld-example-app/subscription","commits_url":"https://api.github.com/repos/tranlehaiquan/vue-realworld-example-app/commits{/sha}","git_commits_url":"https://api.github.com/repos/tranlehaiquan/vue-realworld-example-app/git/commits{/sha}","comments_url":"https://api.github.com/repos/tranlehaiquan/vue-realworld-example-app/comments{/number}","issue_comment_url":"https://api.github.com/repos/tranlehaiquan/vue-realworld-example-app/issues/comments{/number}","contents_url":"https://api.github.com/repos/tranlehaiquan/vue-realworld-example-app/contents/{+path}","compare_url":"https://api.github.com/repos/tranlehaiquan/vue-realworld-example-app/compare/{base}...{head}","merges_url":"https://api.github.com/repos/tranlehaiquan/vue-realworld-example-app/merges","archive_url":"https://api.github.com/repos/tranlehaiquan/vue-realworld-example-app/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/tranlehaiquan/vue-realworld-example-app/downloads","issues_url":"https://api.github.com/repos/tranlehaiquan/vue-realworld-example-app/issues{/number}","pulls_url":"https://api.github.com/repos/tranlehaiquan/vue-realworld-example-app/pulls{/number}","milestones_url":"https://api.github.com/repos/tranlehaiquan/vue-realworld-example-app/milestones{/number}","notifications_url":"https://api.github.com/repos/tranlehaiquan/vue-realworld-example-app/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/tranlehaiquan/vue-realworld-example-app/labels{/name}","releases_url":"https://api.github.com/repos/tranlehaiquan/vue-realworld-example-app/releases{/id}","deployments_url":"https://api.github.com/repos/tranlehaiquan/vue-realworld-example-app/deployments","created_at":"2018-05-08T15:57:30Z","updated_at":"2018-05-08T15:57:32Z","pushed_at":"2018-05-30T16:33:02Z","git_url":"git://github.com/tranlehaiquan/vue-realworld-example-app.git","ssh_url":"git@github.com:tranlehaiquan/vue-realworld-example-app.git","clone_url":"https://github.com/tranlehaiquan/vue-realworld-example-app.git","svn_url":"https://github.com/tranlehaiquan/vue-realworld-example-app","homepage":"https://vue-vuex-realworld.netlify.com","size":641,"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":0,"license":{"key":"mit","name":"MIT License","spdx_id":"MIT","url":"https://api.github.com/licenses/mit","node_id":"MDc6TGljZW5zZTEz"},"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"gothinkster:master","ref":"master","sha":"a56e4c049b077e5b886f83f99e08a0c3e2c16512","user":{"login":"gothinkster","id":8601733,"node_id":"MDEyOk9yZ2FuaXphdGlvbjg2MDE3MzM=","avatar_url":"https://avatars3.githubusercontent.com/u/8601733?v=4","gravatar_id":"","url":"https://api.github.com/users/gothinkster","html_url":"https://github.com/gothinkster","followers_url":"https://api.github.com/users/gothinkster/followers","following_url":"https://api.github.com/users/gothinkster/following{/other_user}","gists_url":"https://api.github.com/users/gothinkster/gists{/gist_id}","starred_url":"https://api.github.com/users/gothinkster/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gothinkster/subscriptions","organizations_url":"https://api.github.com/users/gothinkster/orgs","repos_url":"https://api.github.com/users/gothinkster/repos","events_url":"https://api.github.com/users/gothinkster/events{/privacy}","received_events_url":"https://api.github.com/users/gothinkster/received_events","type":"Organization","site_admin":false},"repo":{"id":114702034,"node_id":"MDEwOlJlcG9zaXRvcnkxMTQ3MDIwMzQ=","name":"vue-realworld-example-app","full_name":"gothinkster/vue-realworld-example-app","owner":{"login":"gothinkster","id":8601733,"node_id":"MDEyOk9yZ2FuaXphdGlvbjg2MDE3MzM=","avatar_url":"https://avatars3.githubusercontent.com/u/8601733?v=4","gravatar_id":"","url":"https://api.github.com/users/gothinkster","html_url":"https://github.com/gothinkster","followers_url":"https://api.github.com/users/gothinkster/followers","following_url":"https://api.github.com/users/gothinkster/following{/other_user}","gists_url":"https://api.github.com/users/gothinkster/gists{/gist_id}","starred_url":"https://api.github.com/users/gothinkster/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gothinkster/subscriptions","organizations_url":"https://api.github.com/users/gothinkster/orgs","repos_url":"https://api.github.com/users/gothinkster/repos","events_url":"https://api.github.com/users/gothinkster/events{/privacy}","received_events_url":"https://api.github.com/users/gothinkster/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/gothinkster/vue-realworld-example-app","description":"An exemplary real-world application built with Vue.js, Vuex, axios and different other technologies. This is a good example to discover Vue for beginners.","fork":false,"url":"https://api.github.com/repos/gothinkster/vue-realworld-example-app","forks_url":"https://api.github.com/repos/gothinkster/vue-realworld-example-app/forks","keys_url":"https://api.github.com/repos/gothinkster/vue-realworld-example-app/keys{/key_id}","collaborators_url":"https://api.github.com/repos/gothinkster/vue-realworld-example-app/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/gothinkster/vue-realworld-example-app/teams","hooks_url":"https://api.github.com/repos/gothinkster/vue-realworld-example-app/hooks","issue_events_url":"https://api.github.com/repos/gothinkster/vue-realworld-example-app/issues/events{/number}","events_url":"https://api.github.com/repos/gothinkster/vue-realworld-example-app/events","assignees_url":"https://api.github.com/repos/gothinkster/vue-realworld-example-app/assignees{/user}","branches_url":"https://api.github.com/repos/gothinkster/vue-realworld-example-app/branches{/branch}","tags_url":"https://api.github.com/repos/gothinkster/vue-realworld-example-app/tags","blobs_url":"https://api.github.com/repos/gothinkster/vue-realworld-example-app/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/gothinkster/vue-realworld-example-app/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/gothinkster/vue-realworld-example-app/git/refs{/sha}","trees_url":"https://api.github.com/repos/gothinkster/vue-realworld-example-app/git/trees{/sha}","statuses_url":"https://api.github.com/repos/gothinkster/vue-realworld-example-app/statuses/{sha}","languages_url":"https://api.github.com/repos/gothinkster/vue-realworld-example-app/languages","stargazers_url":"https://api.github.com/repos/gothinkster/vue-realworld-example-app/stargazers","contributors_url":"https://api.github.com/repos/gothinkster/vue-realworld-example-app/contributors","subscribers_url":"https://api.github.com/repos/gothinkster/vue-realworld-example-app/subscribers","subscription_url":"https://api.github.com/repos/gothinkster/vue-realworld-example-app/subscription","commits_url":"https://api.github.com/repos/gothinkster/vue-realworld-example-app/commits{/sha}","git_commits_url":"https://api.github.com/repos/gothinkster/vue-realworld-example-app/git/commits{/sha}","comments_url":"https://api.github.com/repos/gothinkster/vue-realworld-example-app/comments{/number}","issue_comment_url":"https://api.github.com/repos/gothinkster/vue-realworld-example-app/issues/comments{/number}","contents_url":"https://api.github.com/repos/gothinkster/vue-realworld-example-app/contents/{+path}","compare_url":"https://api.github.com/repos/gothinkster/vue-realworld-example-app/compare/{base}...{head}","merges_url":"https://api.github.com/repos/gothinkster/vue-realworld-example-app/merges","archive_url":"https://api.github.com/repos/gothinkster/vue-realworld-example-app/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/gothinkster/vue-realworld-example-app/downloads","issues_url":"https://api.github.com/repos/gothinkster/vue-realworld-example-app/issues{/number}","pulls_url":"https://api.github.com/repos/gothinkster/vue-realworld-example-app/pulls{/number}","milestones_url":"https://api.github.com/repos/gothinkster/vue-realworld-example-app/milestones{/number}","notifications_url":"https://api.github.com/repos/gothinkster/vue-realworld-example-app/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/gothinkster/vue-realworld-example-app/labels{/name}","releases_url":"https://api.github.com/repos/gothinkster/vue-realworld-example-app/releases{/id}","deployments_url":"https://api.github.com/repos/gothinkster/vue-realworld-example-app/deployments","created_at":"2017-12-19T00:42:57Z","updated_at":"2018-07-01T17:42:22Z","pushed_at":"2018-07-01T23:43:01Z","git_url":"git://github.com/gothinkster/vue-realworld-example-app.git","ssh_url":"git@github.com:gothinkster/vue-realworld-example-app.git","clone_url":"https://github.com/gothinkster/vue-realworld-example-app.git","svn_url":"https://github.com/gothinkster/vue-realworld-example-app","homepage":"https://vue-vuex-realworld.netlify.com","size":639,"stargazers_count":406,"watchers_count":406,"language":"JavaScript","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":110,"mirror_url":null,"archived":false,"open_issues_count":19,"license":{"key":"mit","name":"MIT License","spdx_id":"MIT","url":"https://api.github.com/licenses/mit","node_id":"MDc6TGljZW5zZTEz"},"forks":110,"open_issues":19,"watchers":406,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/gothinkster/vue-realworld-example-app/pulls/41"},"html":{"href":"https://github.com/gothinkster/vue-realworld-example-app/pull/41"},"issue":{"href":"https://api.github.com/repos/gothinkster/vue-realworld-example-app/issues/41"},"comments":{"href":"https://api.github.com/repos/gothinkster/vue-realworld-example-app/issues/41/comments"},"review_comments":{"href":"https://api.github.com/repos/gothinkster/vue-realworld-example-app/pulls/41/comments"},"review_comment":{"href":"https://api.github.com/repos/gothinkster/vue-realworld-example-app/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/gothinkster/vue-realworld-example-app/pulls/41/commits"},"statuses":{"href":"https://api.github.com/repos/gothinkster/vue-realworld-example-app/statuses/33b076024b797a103b0a32da5e2678e1774da29e"}},"author_association":"NONE"}}
{"actor":{"display_login":"tecfu"}}