{"action":"created","comment":{"url":"https://api.github.com/repos/goodjoblife/WorkTimeSurvey/pulls/comments/71075047","id":71075047,"diff_hunk":"@@ -68,8 +68,9 @@ var vue = new Vue({\n             return Math.ceil(this.total / this.limit);\n         },\n         /*\n-         * pager_offset: the page of 0th pager\n-         *\n+         * pager_offset: the page of 0th pager (第0個頁簽的頁碼)\n+         *               << 5 6 7 8 9 >> 像這樣的話，pager_offset = 4 ","path":"js/show_workings.js","position":null,"original_position":20,"commit_id":"292986304cb355af8ce68647ba79c0db0dd275c2","original_commit_id":"0ad766fb95e31d4dac8d32f725acadfd39df399c","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":"因為使用者看到的數字是從第一頁開始，所以我有故意在 view 那邊去處理 +1 的問題，對於model 而言，那個 +1 給使用者看的它是不知道的\r\n\r\n也就是說，model 吐出到 pager offset ，view 要怎麼換算可以獨立在 view 設計，\r\n\r\n這邊的程式邏輯比較是 model 的部分","created_at":"2016-07-17T02:24:51Z","updated_at":"2016-07-17T02:24:51Z","html_url":"https://github.com/goodjoblife/WorkTimeSurvey/pull/211#discussion_r71075047","pull_request_url":"https://api.github.com/repos/goodjoblife/WorkTimeSurvey/pulls/211","_links":{"self":{"href":"https://api.github.com/repos/goodjoblife/WorkTimeSurvey/pulls/comments/71075047"},"html":{"href":"https://github.com/goodjoblife/WorkTimeSurvey/pull/211#discussion_r71075047"},"pull_request":{"href":"https://api.github.com/repos/goodjoblife/WorkTimeSurvey/pulls/211"}}},"pull_request":{"url":"https://api.github.com/repos/goodjoblife/WorkTimeSurvey/pulls/211","id":77580946,"html_url":"https://github.com/goodjoblife/WorkTimeSurvey/pull/211","diff_url":"https://github.com/goodjoblife/WorkTimeSurvey/pull/211.diff","patch_url":"https://github.com/goodjoblife/WorkTimeSurvey/pull/211.patch","issue_url":"https://api.github.com/repos/goodjoblife/WorkTimeSurvey/issues/211","number":211,"state":"open","locked":false,"title":"Use Vue.js to rewrite latest workings","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":"- [x] API 橋接\r\n- [x] 計算總頁數\r\n- [x] 給訂頁碼、總頁數，產生分頁頁碼\r\n- [x] 分頁頁碼 bind View, click event\r\n- [x] 讀取進度的ui\r\n\r\nFix #200 ","created_at":"2016-07-15T08:33:17Z","updated_at":"2016-07-17T02:24:51Z","closed_at":null,"merged_at":null,"merge_commit_sha":"c97b3ea3d3f28cca7458b555685f1598a0b54c49","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/goodjoblife/WorkTimeSurvey/pulls/211/commits","review_comments_url":"https://api.github.com/repos/goodjoblife/WorkTimeSurvey/pulls/211/comments","review_comment_url":"https://api.github.com/repos/goodjoblife/WorkTimeSurvey/pulls/comments{/number}","comments_url":"https://api.github.com/repos/goodjoblife/WorkTimeSurvey/issues/211/comments","statuses_url":"https://api.github.com/repos/goodjoblife/WorkTimeSurvey/statuses/292986304cb355af8ce68647ba79c0db0dd275c2","head":{"label":"goodjoblife:vue","ref":"vue","sha":"292986304cb355af8ce68647ba79c0db0dd275c2","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-09T04:48:17Z","pushed_at":"2016-07-17T02:13:13Z","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":1886,"stargazers_count":1,"watchers_count":1,"language":"CSS","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":0,"mirror_url":null,"open_issues_count":10,"forks":0,"open_issues":10,"watchers":1,"default_branch":"gh-pages"}},"base":{"label":"goodjoblife:gh-pages","ref":"gh-pages","sha":"e9b100c27557b45fc966276b507f8affc331c01e","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-09T04:48:17Z","pushed_at":"2016-07-17T02:13:13Z","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":1886,"stargazers_count":1,"watchers_count":1,"language":"CSS","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":0,"mirror_url":null,"open_issues_count":10,"forks":0,"open_issues":10,"watchers":1,"default_branch":"gh-pages"}},"_links":{"self":{"href":"https://api.github.com/repos/goodjoblife/WorkTimeSurvey/pulls/211"},"html":{"href":"https://github.com/goodjoblife/WorkTimeSurvey/pull/211"},"issue":{"href":"https://api.github.com/repos/goodjoblife/WorkTimeSurvey/issues/211"},"comments":{"href":"https://api.github.com/repos/goodjoblife/WorkTimeSurvey/issues/211/comments"},"review_comments":{"href":"https://api.github.com/repos/goodjoblife/WorkTimeSurvey/pulls/211/comments"},"review_comment":{"href":"https://api.github.com/repos/goodjoblife/WorkTimeSurvey/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/goodjoblife/WorkTimeSurvey/pulls/211/commits"},"statuses":{"href":"https://api.github.com/repos/goodjoblife/WorkTimeSurvey/statuses/292986304cb355af8ce68647ba79c0db0dd275c2"}}}}
{"actor":{"display_login":"mark86092"}}