{"action":"created","comment":{"url":"https://api.github.com/repos/goodjoblife/WorkTimeSurvey/pulls/comments/71989640","id":71989640,"diff_hunk":"@@ -22,6 +22,34 @@ Vue.component('pager', {\n     }\n });\n \n+var jobStatisticsVue = new Vue({\n+    el: '#data-section',\n+    data: {\n+        job: '',\n+        companies: [],\n+        isLoading: false,\n+    },\n+    methods: {\n+        searchJob: function(job) {\n+            this.isLoading = true;\n+\n+            ga && ga('send', 'event', 'QUERY_PAGE', 'search-by-job-title', job);\n+\n+            this.getStatistics(job).then(function(res) {\n+                this.job = job;\n+                this.companies = res.data;\n+                this.isLoading = false;\n+            }, function(res) {\n+                this.isLoading = false;\n+                this.companies = [];\n+            });\n+        },\n+        getStatistics: function(job, page) {\n+            return this.$http.get('https://tranquil-fortress-92731.herokuapp.com/jobs/' + encodeURIComponent(job) + '/statistics');","path":"js/show_workings.js","position":48,"original_position":27,"commit_id":"c8047efd7b63f22c4b957c830929b1b14b0fe265","original_commit_id":"c8047efd7b63f22c4b957c830929b1b14b0fe265","user":{"login":"mark86092","id":1908007,"avatar_url":"https://avatars.githubusercontent.com/u/1908007?v=3","gravatar_id":"","url":"https://api.github.com/users/mark86092","html_url":"https://github.com/mark86092","followers_url":"https://api.github.com/users/mark86092/followers","following_url":"https://api.github.com/users/mark86092/following{/other_user}","gists_url":"https://api.github.com/users/mark86092/gists{/gist_id}","starred_url":"https://api.github.com/users/mark86092/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mark86092/subscriptions","organizations_url":"https://api.github.com/users/mark86092/orgs","repos_url":"https://api.github.com/users/mark86092/repos","events_url":"https://api.github.com/users/mark86092/events{/privacy}","received_events_url":"https://api.github.com/users/mark86092/received_events","type":"User","site_admin":false},"body":"I'll update it, thank you","created_at":"2016-07-24T14:35:37Z","updated_at":"2016-07-24T14:35:37Z","html_url":"https://github.com/goodjoblife/WorkTimeSurvey/pull/237#discussion_r71989640","pull_request_url":"https://api.github.com/repos/goodjoblife/WorkTimeSurvey/pulls/237","_links":{"self":{"href":"https://api.github.com/repos/goodjoblife/WorkTimeSurvey/pulls/comments/71989640"},"html":{"href":"https://github.com/goodjoblife/WorkTimeSurvey/pull/237#discussion_r71989640"},"pull_request":{"href":"https://api.github.com/repos/goodjoblife/WorkTimeSurvey/pulls/237"}}},"pull_request":{"url":"https://api.github.com/repos/goodjoblife/WorkTimeSurvey/pulls/237","id":78587911,"html_url":"https://github.com/goodjoblife/WorkTimeSurvey/pull/237","diff_url":"https://github.com/goodjoblife/WorkTimeSurvey/pull/237.diff","patch_url":"https://github.com/goodjoblife/WorkTimeSurvey/pull/237.patch","issue_url":"https://api.github.com/repos/goodjoblife/WorkTimeSurvey/issues/237","number":237,"state":"open","locked":false,"title":"[WIP] Vue: job statistics rewrite","user":{"login":"mark86092","id":1908007,"avatar_url":"https://avatars.githubusercontent.com/u/1908007?v=3","gravatar_id":"","url":"https://api.github.com/users/mark86092","html_url":"https://github.com/mark86092","followers_url":"https://api.github.com/users/mark86092/followers","following_url":"https://api.github.com/users/mark86092/following{/other_user}","gists_url":"https://api.github.com/users/mark86092/gists{/gist_id}","starred_url":"https://api.github.com/users/mark86092/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mark86092/subscriptions","organizations_url":"https://api.github.com/users/mark86092/orgs","repos_url":"https://api.github.com/users/mark86092/repos","events_url":"https://api.github.com/users/mark86092/events{/privacy}","received_events_url":"https://api.github.com/users/mark86092/received_events","type":"User","site_admin":false},"body":"After #236 \r\n\r\n- [ ] GA\r\n- [ ] 目前需要分頁嗎？覺的可以所有頁的資料一起顯示\r\n- [ ] Alert message\r\n  - [ ] 當沒有資料的時候\r\n  - [ ] 當ajax 失敗的時候\r\n  - [ ] 還沒下搜尋的時候，應該要顯示的畫面","created_at":"2016-07-24T02:30:16Z","updated_at":"2016-07-24T14:35:37Z","closed_at":null,"merged_at":null,"merge_commit_sha":"128d6349b6c6f69e3a0ca80721ce7fb566ebb910","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/goodjoblife/WorkTimeSurvey/pulls/237/commits","review_comments_url":"https://api.github.com/repos/goodjoblife/WorkTimeSurvey/pulls/237/comments","review_comment_url":"https://api.github.com/repos/goodjoblife/WorkTimeSurvey/pulls/comments{/number}","comments_url":"https://api.github.com/repos/goodjoblife/WorkTimeSurvey/issues/237/comments","statuses_url":"https://api.github.com/repos/goodjoblife/WorkTimeSurvey/statuses/c8047efd7b63f22c4b957c830929b1b14b0fe265","head":{"label":"goodjoblife:vue-job-statistics","ref":"vue-job-statistics","sha":"c8047efd7b63f22c4b957c830929b1b14b0fe265","user":{"login":"goodjoblife","id":20009568,"avatar_url":"https://avatars.githubusercontent.com/u/20009568?v=3","gravatar_id":"","url":"https://api.github.com/users/goodjoblife","html_url":"https://github.com/goodjoblife","followers_url":"https://api.github.com/users/goodjoblife/followers","following_url":"https://api.github.com/users/goodjoblife/following{/other_user}","gists_url":"https://api.github.com/users/goodjoblife/gists{/gist_id}","starred_url":"https://api.github.com/users/goodjoblife/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/goodjoblife/subscriptions","organizations_url":"https://api.github.com/users/goodjoblife/orgs","repos_url":"https://api.github.com/users/goodjoblife/repos","events_url":"https://api.github.com/users/goodjoblife/events{/privacy}","received_events_url":"https://api.github.com/users/goodjoblife/received_events","type":"Organization","site_admin":false},"repo":{"id":61972170,"name":"WorkTimeSurvey","full_name":"goodjoblife/WorkTimeSurvey","owner":{"login":"goodjoblife","id":20009568,"avatar_url":"https://avatars.githubusercontent.com/u/20009568?v=3","gravatar_id":"","url":"https://api.github.com/users/goodjoblife","html_url":"https://github.com/goodjoblife","followers_url":"https://api.github.com/users/goodjoblife/followers","following_url":"https://api.github.com/users/goodjoblife/following{/other_user}","gists_url":"https://api.github.com/users/goodjoblife/gists{/gist_id}","starred_url":"https://api.github.com/users/goodjoblife/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/goodjoblife/subscriptions","organizations_url":"https://api.github.com/users/goodjoblife/orgs","repos_url":"https://api.github.com/users/goodjoblife/repos","events_url":"https://api.github.com/users/goodjoblife/events{/privacy}","received_events_url":"https://api.github.com/users/goodjoblife/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/goodjoblife/WorkTimeSurvey","description":"A simple website for surveying work time. ","fork":false,"url":"https://api.github.com/repos/goodjoblife/WorkTimeSurvey","forks_url":"https://api.github.com/repos/goodjoblife/WorkTimeSurvey/forks","keys_url":"https://api.github.com/repos/goodjoblife/WorkTimeSurvey/keys{/key_id}","collaborators_url":"https://api.github.com/repos/goodjoblife/WorkTimeSurvey/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/goodjoblife/WorkTimeSurvey/teams","hooks_url":"https://api.github.com/repos/goodjoblife/WorkTimeSurvey/hooks","issue_events_url":"https://api.github.com/repos/goodjoblife/WorkTimeSurvey/issues/events{/number}","events_url":"https://api.github.com/repos/goodjoblife/WorkTimeSurvey/events","assignees_url":"https://api.github.com/repos/goodjoblife/WorkTimeSurvey/assignees{/user}","branches_url":"https://api.github.com/repos/goodjoblife/WorkTimeSurvey/branches{/branch}","tags_url":"https://api.github.com/repos/goodjoblife/WorkTimeSurvey/tags","blobs_url":"https://api.github.com/repos/goodjoblife/WorkTimeSurvey/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/goodjoblife/WorkTimeSurvey/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/goodjoblife/WorkTimeSurvey/git/refs{/sha}","trees_url":"https://api.github.com/repos/goodjoblife/WorkTimeSurvey/git/trees{/sha}","statuses_url":"https://api.github.com/repos/goodjoblife/WorkTimeSurvey/statuses/{sha}","languages_url":"https://api.github.com/repos/goodjoblife/WorkTimeSurvey/languages","stargazers_url":"https://api.github.com/repos/goodjoblife/WorkTimeSurvey/stargazers","contributors_url":"https://api.github.com/repos/goodjoblife/WorkTimeSurvey/contributors","subscribers_url":"https://api.github.com/repos/goodjoblife/WorkTimeSurvey/subscribers","subscription_url":"https://api.github.com/repos/goodjoblife/WorkTimeSurvey/subscription","commits_url":"https://api.github.com/repos/goodjoblife/WorkTimeSurvey/commits{/sha}","git_commits_url":"https://api.github.com/repos/goodjoblife/WorkTimeSurvey/git/commits{/sha}","comments_url":"https://api.github.com/repos/goodjoblife/WorkTimeSurvey/comments{/number}","issue_comment_url":"https://api.github.com/repos/goodjoblife/WorkTimeSurvey/issues/comments{/number}","contents_url":"https://api.github.com/repos/goodjoblife/WorkTimeSurvey/contents/{+path}","compare_url":"https://api.github.com/repos/goodjoblife/WorkTimeSurvey/compare/{base}...{head}","merges_url":"https://api.github.com/repos/goodjoblife/WorkTimeSurvey/merges","archive_url":"https://api.github.com/repos/goodjoblife/WorkTimeSurvey/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/goodjoblife/WorkTimeSurvey/downloads","issues_url":"https://api.github.com/repos/goodjoblife/WorkTimeSurvey/issues{/number}","pulls_url":"https://api.github.com/repos/goodjoblife/WorkTimeSurvey/pulls{/number}","milestones_url":"https://api.github.com/repos/goodjoblife/WorkTimeSurvey/milestones{/number}","notifications_url":"https://api.github.com/repos/goodjoblife/WorkTimeSurvey/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/goodjoblife/WorkTimeSurvey/labels{/name}","releases_url":"https://api.github.com/repos/goodjoblife/WorkTimeSurvey/releases{/id}","deployments_url":"https://api.github.com/repos/goodjoblife/WorkTimeSurvey/deployments","created_at":"2016-06-26T03:30:55Z","updated_at":"2016-07-22T01:30:41Z","pushed_at":"2016-07-24T13:49:11Z","git_url":"git://github.com/goodjoblife/WorkTimeSurvey.git","ssh_url":"git@github.com:goodjoblife/WorkTimeSurvey.git","clone_url":"https://github.com/goodjoblife/WorkTimeSurvey.git","svn_url":"https://github.com/goodjoblife/WorkTimeSurvey","homepage":"https://worktime.goodjob.life/","size":1856,"stargazers_count":8,"watchers_count":8,"language":"CSS","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":2,"mirror_url":null,"open_issues_count":16,"forks":2,"open_issues":16,"watchers":8,"default_branch":"gh-pages"}},"base":{"label":"goodjoblife:gh-pages","ref":"gh-pages","sha":"bb8600ee87d5db3694f45c47974b63b35bf4264f","user":{"login":"goodjoblife","id":20009568,"avatar_url":"https://avatars.githubusercontent.com/u/20009568?v=3","gravatar_id":"","url":"https://api.github.com/users/goodjoblife","html_url":"https://github.com/goodjoblife","followers_url":"https://api.github.com/users/goodjoblife/followers","following_url":"https://api.github.com/users/goodjoblife/following{/other_user}","gists_url":"https://api.github.com/users/goodjoblife/gists{/gist_id}","starred_url":"https://api.github.com/users/goodjoblife/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/goodjoblife/subscriptions","organizations_url":"https://api.github.com/users/goodjoblife/orgs","repos_url":"https://api.github.com/users/goodjoblife/repos","events_url":"https://api.github.com/users/goodjoblife/events{/privacy}","received_events_url":"https://api.github.com/users/goodjoblife/received_events","type":"Organization","site_admin":false},"repo":{"id":61972170,"name":"WorkTimeSurvey","full_name":"goodjoblife/WorkTimeSurvey","owner":{"login":"goodjoblife","id":20009568,"avatar_url":"https://avatars.githubusercontent.com/u/20009568?v=3","gravatar_id":"","url":"https://api.github.com/users/goodjoblife","html_url":"https://github.com/goodjoblife","followers_url":"https://api.github.com/users/goodjoblife/followers","following_url":"https://api.github.com/users/goodjoblife/following{/other_user}","gists_url":"https://api.github.com/users/goodjoblife/gists{/gist_id}","starred_url":"https://api.github.com/users/goodjoblife/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/goodjoblife/subscriptions","organizations_url":"https://api.github.com/users/goodjoblife/orgs","repos_url":"https://api.github.com/users/goodjoblife/repos","events_url":"https://api.github.com/users/goodjoblife/events{/privacy}","received_events_url":"https://api.github.com/users/goodjoblife/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/goodjoblife/WorkTimeSurvey","description":"A simple website for surveying work time. ","fork":false,"url":"https://api.github.com/repos/goodjoblife/WorkTimeSurvey","forks_url":"https://api.github.com/repos/goodjoblife/WorkTimeSurvey/forks","keys_url":"https://api.github.com/repos/goodjoblife/WorkTimeSurvey/keys{/key_id}","collaborators_url":"https://api.github.com/repos/goodjoblife/WorkTimeSurvey/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/goodjoblife/WorkTimeSurvey/teams","hooks_url":"https://api.github.com/repos/goodjoblife/WorkTimeSurvey/hooks","issue_events_url":"https://api.github.com/repos/goodjoblife/WorkTimeSurvey/issues/events{/number}","events_url":"https://api.github.com/repos/goodjoblife/WorkTimeSurvey/events","assignees_url":"https://api.github.com/repos/goodjoblife/WorkTimeSurvey/assignees{/user}","branches_url":"https://api.github.com/repos/goodjoblife/WorkTimeSurvey/branches{/branch}","tags_url":"https://api.github.com/repos/goodjoblife/WorkTimeSurvey/tags","blobs_url":"https://api.github.com/repos/goodjoblife/WorkTimeSurvey/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/goodjoblife/WorkTimeSurvey/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/goodjoblife/WorkTimeSurvey/git/refs{/sha}","trees_url":"https://api.github.com/repos/goodjoblife/WorkTimeSurvey/git/trees{/sha}","statuses_url":"https://api.github.com/repos/goodjoblife/WorkTimeSurvey/statuses/{sha}","languages_url":"https://api.github.com/repos/goodjoblife/WorkTimeSurvey/languages","stargazers_url":"https://api.github.com/repos/goodjoblife/WorkTimeSurvey/stargazers","contributors_url":"https://api.github.com/repos/goodjoblife/WorkTimeSurvey/contributors","subscribers_url":"https://api.github.com/repos/goodjoblife/WorkTimeSurvey/subscribers","subscription_url":"https://api.github.com/repos/goodjoblife/WorkTimeSurvey/subscription","commits_url":"https://api.github.com/repos/goodjoblife/WorkTimeSurvey/commits{/sha}","git_commits_url":"https://api.github.com/repos/goodjoblife/WorkTimeSurvey/git/commits{/sha}","comments_url":"https://api.github.com/repos/goodjoblife/WorkTimeSurvey/comments{/number}","issue_comment_url":"https://api.github.com/repos/goodjoblife/WorkTimeSurvey/issues/comments{/number}","contents_url":"https://api.github.com/repos/goodjoblife/WorkTimeSurvey/contents/{+path}","compare_url":"https://api.github.com/repos/goodjoblife/WorkTimeSurvey/compare/{base}...{head}","merges_url":"https://api.github.com/repos/goodjoblife/WorkTimeSurvey/merges","archive_url":"https://api.github.com/repos/goodjoblife/WorkTimeSurvey/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/goodjoblife/WorkTimeSurvey/downloads","issues_url":"https://api.github.com/repos/goodjoblife/WorkTimeSurvey/issues{/number}","pulls_url":"https://api.github.com/repos/goodjoblife/WorkTimeSurvey/pulls{/number}","milestones_url":"https://api.github.com/repos/goodjoblife/WorkTimeSurvey/milestones{/number}","notifications_url":"https://api.github.com/repos/goodjoblife/WorkTimeSurvey/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/goodjoblife/WorkTimeSurvey/labels{/name}","releases_url":"https://api.github.com/repos/goodjoblife/WorkTimeSurvey/releases{/id}","deployments_url":"https://api.github.com/repos/goodjoblife/WorkTimeSurvey/deployments","created_at":"2016-06-26T03:30:55Z","updated_at":"2016-07-22T01:30:41Z","pushed_at":"2016-07-24T13:49:11Z","git_url":"git://github.com/goodjoblife/WorkTimeSurvey.git","ssh_url":"git@github.com:goodjoblife/WorkTimeSurvey.git","clone_url":"https://github.com/goodjoblife/WorkTimeSurvey.git","svn_url":"https://github.com/goodjoblife/WorkTimeSurvey","homepage":"https://worktime.goodjob.life/","size":1856,"stargazers_count":8,"watchers_count":8,"language":"CSS","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":2,"mirror_url":null,"open_issues_count":16,"forks":2,"open_issues":16,"watchers":8,"default_branch":"gh-pages"}},"_links":{"self":{"href":"https://api.github.com/repos/goodjoblife/WorkTimeSurvey/pulls/237"},"html":{"href":"https://github.com/goodjoblife/WorkTimeSurvey/pull/237"},"issue":{"href":"https://api.github.com/repos/goodjoblife/WorkTimeSurvey/issues/237"},"comments":{"href":"https://api.github.com/repos/goodjoblife/WorkTimeSurvey/issues/237/comments"},"review_comments":{"href":"https://api.github.com/repos/goodjoblife/WorkTimeSurvey/pulls/237/comments"},"review_comment":{"href":"https://api.github.com/repos/goodjoblife/WorkTimeSurvey/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/goodjoblife/WorkTimeSurvey/pulls/237/commits"},"statuses":{"href":"https://api.github.com/repos/goodjoblife/WorkTimeSurvey/statuses/c8047efd7b63f22c4b957c830929b1b14b0fe265"}}}}
{"actor":{"display_login":"mark86092"}}