{"action":"created","comment":{"url":"https://api.github.com/repos/komic-awesome/komic/pulls/comments/39024510","id":39024510,"diff_hunk":"@@ -0,0 +1,26 @@\n+import React from 'react'\n+import app from 'app'\n+export default class extends React.Component {\n+\n+  constructor(options) {\n+    super(options)\n+    this.state = {\n+      viewed: this.props.viewed || 0\n+    , loaded: this.props.loaded || 0\n+    }\n+  }\n+\n+  componentWillReceiveProps(nextProps) {\n+    let indicator = app.getModel('progressIndicator')\n+    this.state = {loaded: indicator.get('loadedPercent'), viewed: indicator.get('viewedPercent')}\n+  }\n+\n+  render() {\n+    return (\n+      <div>","path":"src/views/reader/progressIndicator.js","position":20,"original_position":20,"commit_id":"bc81a4f7e0498c55fc2cd3cc9bb62b65d57155fc","original_commit_id":"bc81a4f7e0498c55fc2cd3cc9bb62b65d57155fc","user":{"login":"hxgdzyuyi","id":163671,"avatar_url":"https://avatars.githubusercontent.com/u/163671?v=3","gravatar_id":"","url":"https://api.github.com/users/hxgdzyuyi","html_url":"https://github.com/hxgdzyuyi","followers_url":"https://api.github.com/users/hxgdzyuyi/followers","following_url":"https://api.github.com/users/hxgdzyuyi/following{/other_user}","gists_url":"https://api.github.com/users/hxgdzyuyi/gists{/gist_id}","starred_url":"https://api.github.com/users/hxgdzyuyi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hxgdzyuyi/subscriptions","organizations_url":"https://api.github.com/users/hxgdzyuyi/orgs","repos_url":"https://api.github.com/users/hxgdzyuyi/repos","events_url":"https://api.github.com/users/hxgdzyuyi/events{/privacy}","received_events_url":"https://api.github.com/users/hxgdzyuyi/received_events","type":"User","site_admin":false},"body":"有一个问题。 viewed 有可能不是断断续续的 不是连续唯一的。 比如你中途跳页了。\r\n\r\n尽量用 class 不要用 id @kyon0304 ","created_at":"2015-09-09T09:46:55Z","updated_at":"2015-09-09T09:46:55Z","html_url":"https://github.com/komic-awesome/komic/pull/38#discussion_r39024510","pull_request_url":"https://api.github.com/repos/komic-awesome/komic/pulls/38","_links":{"self":{"href":"https://api.github.com/repos/komic-awesome/komic/pulls/comments/39024510"},"html":{"href":"https://github.com/komic-awesome/komic/pull/38#discussion_r39024510"},"pull_request":{"href":"https://api.github.com/repos/komic-awesome/komic/pulls/38"}}},"pull_request":{"url":"https://api.github.com/repos/komic-awesome/komic/pulls/38","id":44528246,"html_url":"https://github.com/komic-awesome/komic/pull/38","diff_url":"https://github.com/komic-awesome/komic/pull/38.diff","patch_url":"https://github.com/komic-awesome/komic/pull/38.patch","issue_url":"https://api.github.com/repos/komic-awesome/komic/issues/38","number":38,"state":"open","locked":false,"title":"add progress indicator","user":{"login":"kyon0304","id":1070129,"avatar_url":"https://avatars.githubusercontent.com/u/1070129?v=3","gravatar_id":"","url":"https://api.github.com/users/kyon0304","html_url":"https://github.com/kyon0304","followers_url":"https://api.github.com/users/kyon0304/followers","following_url":"https://api.github.com/users/kyon0304/following{/other_user}","gists_url":"https://api.github.com/users/kyon0304/gists{/gist_id}","starred_url":"https://api.github.com/users/kyon0304/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kyon0304/subscriptions","organizations_url":"https://api.github.com/users/kyon0304/orgs","repos_url":"https://api.github.com/users/kyon0304/repos","events_url":"https://api.github.com/users/kyon0304/events{/privacy}","received_events_url":"https://api.github.com/users/kyon0304/received_events","type":"User","site_admin":false},"body":"添加进度条提示, 包括阅读进度和加载进度","created_at":"2015-09-09T09:32:58Z","updated_at":"2015-09-09T09:46:55Z","closed_at":null,"merged_at":null,"merge_commit_sha":"1c4cc36eef34e63d4f6a4ee2165bcad2243b99b8","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/komic-awesome/komic/pulls/38/commits","review_comments_url":"https://api.github.com/repos/komic-awesome/komic/pulls/38/comments","review_comment_url":"https://api.github.com/repos/komic-awesome/komic/pulls/comments{/number}","comments_url":"https://api.github.com/repos/komic-awesome/komic/issues/38/comments","statuses_url":"https://api.github.com/repos/komic-awesome/komic/statuses/bc81a4f7e0498c55fc2cd3cc9bb62b65d57155fc","head":{"label":"kyon0304:indicator","ref":"indicator","sha":"bc81a4f7e0498c55fc2cd3cc9bb62b65d57155fc","user":{"login":"kyon0304","id":1070129,"avatar_url":"https://avatars.githubusercontent.com/u/1070129?v=3","gravatar_id":"","url":"https://api.github.com/users/kyon0304","html_url":"https://github.com/kyon0304","followers_url":"https://api.github.com/users/kyon0304/followers","following_url":"https://api.github.com/users/kyon0304/following{/other_user}","gists_url":"https://api.github.com/users/kyon0304/gists{/gist_id}","starred_url":"https://api.github.com/users/kyon0304/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kyon0304/subscriptions","organizations_url":"https://api.github.com/users/kyon0304/orgs","repos_url":"https://api.github.com/users/kyon0304/repos","events_url":"https://api.github.com/users/kyon0304/events{/privacy}","received_events_url":"https://api.github.com/users/kyon0304/received_events","type":"User","site_admin":false},"repo":{"id":39878160,"name":"komic","full_name":"kyon0304/komic","owner":{"login":"kyon0304","id":1070129,"avatar_url":"https://avatars.githubusercontent.com/u/1070129?v=3","gravatar_id":"","url":"https://api.github.com/users/kyon0304","html_url":"https://github.com/kyon0304","followers_url":"https://api.github.com/users/kyon0304/followers","following_url":"https://api.github.com/users/kyon0304/following{/other_user}","gists_url":"https://api.github.com/users/kyon0304/gists{/gist_id}","starred_url":"https://api.github.com/users/kyon0304/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kyon0304/subscriptions","organizations_url":"https://api.github.com/users/kyon0304/orgs","repos_url":"https://api.github.com/users/kyon0304/repos","events_url":"https://api.github.com/users/kyon0304/events{/privacy}","received_events_url":"https://api.github.com/users/kyon0304/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/kyon0304/komic","description":"","fork":true,"url":"https://api.github.com/repos/kyon0304/komic","forks_url":"https://api.github.com/repos/kyon0304/komic/forks","keys_url":"https://api.github.com/repos/kyon0304/komic/keys{/key_id}","collaborators_url":"https://api.github.com/repos/kyon0304/komic/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/kyon0304/komic/teams","hooks_url":"https://api.github.com/repos/kyon0304/komic/hooks","issue_events_url":"https://api.github.com/repos/kyon0304/komic/issues/events{/number}","events_url":"https://api.github.com/repos/kyon0304/komic/events","assignees_url":"https://api.github.com/repos/kyon0304/komic/assignees{/user}","branches_url":"https://api.github.com/repos/kyon0304/komic/branches{/branch}","tags_url":"https://api.github.com/repos/kyon0304/komic/tags","blobs_url":"https://api.github.com/repos/kyon0304/komic/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/kyon0304/komic/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/kyon0304/komic/git/refs{/sha}","trees_url":"https://api.github.com/repos/kyon0304/komic/git/trees{/sha}","statuses_url":"https://api.github.com/repos/kyon0304/komic/statuses/{sha}","languages_url":"https://api.github.com/repos/kyon0304/komic/languages","stargazers_url":"https://api.github.com/repos/kyon0304/komic/stargazers","contributors_url":"https://api.github.com/repos/kyon0304/komic/contributors","subscribers_url":"https://api.github.com/repos/kyon0304/komic/subscribers","subscription_url":"https://api.github.com/repos/kyon0304/komic/subscription","commits_url":"https://api.github.com/repos/kyon0304/komic/commits{/sha}","git_commits_url":"https://api.github.com/repos/kyon0304/komic/git/commits{/sha}","comments_url":"https://api.github.com/repos/kyon0304/komic/comments{/number}","issue_comment_url":"https://api.github.com/repos/kyon0304/komic/issues/comments{/number}","contents_url":"https://api.github.com/repos/kyon0304/komic/contents/{+path}","compare_url":"https://api.github.com/repos/kyon0304/komic/compare/{base}...{head}","merges_url":"https://api.github.com/repos/kyon0304/komic/merges","archive_url":"https://api.github.com/repos/kyon0304/komic/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/kyon0304/komic/downloads","issues_url":"https://api.github.com/repos/kyon0304/komic/issues{/number}","pulls_url":"https://api.github.com/repos/kyon0304/komic/pulls{/number}","milestones_url":"https://api.github.com/repos/kyon0304/komic/milestones{/number}","notifications_url":"https://api.github.com/repos/kyon0304/komic/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/kyon0304/komic/labels{/name}","releases_url":"https://api.github.com/repos/kyon0304/komic/releases{/id}","created_at":"2015-07-29T06:47:43Z","updated_at":"2015-08-13T08:26:34Z","pushed_at":"2015-09-09T09:28:46Z","git_url":"git://github.com/kyon0304/komic.git","ssh_url":"git@github.com:kyon0304/komic.git","clone_url":"https://github.com/kyon0304/komic.git","svn_url":"https://github.com/kyon0304/komic","homepage":null,"size":357,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"komic-awesome:master","ref":"master","sha":"44edc72aa67b3322d1b5212d9da4c033a192dfea","user":{"login":"komic-awesome","id":13463218,"avatar_url":"https://avatars.githubusercontent.com/u/13463218?v=3","gravatar_id":"","url":"https://api.github.com/users/komic-awesome","html_url":"https://github.com/komic-awesome","followers_url":"https://api.github.com/users/komic-awesome/followers","following_url":"https://api.github.com/users/komic-awesome/following{/other_user}","gists_url":"https://api.github.com/users/komic-awesome/gists{/gist_id}","starred_url":"https://api.github.com/users/komic-awesome/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/komic-awesome/subscriptions","organizations_url":"https://api.github.com/users/komic-awesome/orgs","repos_url":"https://api.github.com/users/komic-awesome/repos","events_url":"https://api.github.com/users/komic-awesome/events{/privacy}","received_events_url":"https://api.github.com/users/komic-awesome/received_events","type":"Organization","site_admin":false},"repo":{"id":39549905,"name":"komic","full_name":"komic-awesome/komic","owner":{"login":"komic-awesome","id":13463218,"avatar_url":"https://avatars.githubusercontent.com/u/13463218?v=3","gravatar_id":"","url":"https://api.github.com/users/komic-awesome","html_url":"https://github.com/komic-awesome","followers_url":"https://api.github.com/users/komic-awesome/followers","following_url":"https://api.github.com/users/komic-awesome/following{/other_user}","gists_url":"https://api.github.com/users/komic-awesome/gists{/gist_id}","starred_url":"https://api.github.com/users/komic-awesome/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/komic-awesome/subscriptions","organizations_url":"https://api.github.com/users/komic-awesome/orgs","repos_url":"https://api.github.com/users/komic-awesome/repos","events_url":"https://api.github.com/users/komic-awesome/events{/privacy}","received_events_url":"https://api.github.com/users/komic-awesome/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/komic-awesome/komic","description":"http://komic-awesome.github.io/#/reader/page/1","fork":false,"url":"https://api.github.com/repos/komic-awesome/komic","forks_url":"https://api.github.com/repos/komic-awesome/komic/forks","keys_url":"https://api.github.com/repos/komic-awesome/komic/keys{/key_id}","collaborators_url":"https://api.github.com/repos/komic-awesome/komic/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/komic-awesome/komic/teams","hooks_url":"https://api.github.com/repos/komic-awesome/komic/hooks","issue_events_url":"https://api.github.com/repos/komic-awesome/komic/issues/events{/number}","events_url":"https://api.github.com/repos/komic-awesome/komic/events","assignees_url":"https://api.github.com/repos/komic-awesome/komic/assignees{/user}","branches_url":"https://api.github.com/repos/komic-awesome/komic/branches{/branch}","tags_url":"https://api.github.com/repos/komic-awesome/komic/tags","blobs_url":"https://api.github.com/repos/komic-awesome/komic/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/komic-awesome/komic/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/komic-awesome/komic/git/refs{/sha}","trees_url":"https://api.github.com/repos/komic-awesome/komic/git/trees{/sha}","statuses_url":"https://api.github.com/repos/komic-awesome/komic/statuses/{sha}","languages_url":"https://api.github.com/repos/komic-awesome/komic/languages","stargazers_url":"https://api.github.com/repos/komic-awesome/komic/stargazers","contributors_url":"https://api.github.com/repos/komic-awesome/komic/contributors","subscribers_url":"https://api.github.com/repos/komic-awesome/komic/subscribers","subscription_url":"https://api.github.com/repos/komic-awesome/komic/subscription","commits_url":"https://api.github.com/repos/komic-awesome/komic/commits{/sha}","git_commits_url":"https://api.github.com/repos/komic-awesome/komic/git/commits{/sha}","comments_url":"https://api.github.com/repos/komic-awesome/komic/comments{/number}","issue_comment_url":"https://api.github.com/repos/komic-awesome/komic/issues/comments{/number}","contents_url":"https://api.github.com/repos/komic-awesome/komic/contents/{+path}","compare_url":"https://api.github.com/repos/komic-awesome/komic/compare/{base}...{head}","merges_url":"https://api.github.com/repos/komic-awesome/komic/merges","archive_url":"https://api.github.com/repos/komic-awesome/komic/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/komic-awesome/komic/downloads","issues_url":"https://api.github.com/repos/komic-awesome/komic/issues{/number}","pulls_url":"https://api.github.com/repos/komic-awesome/komic/pulls{/number}","milestones_url":"https://api.github.com/repos/komic-awesome/komic/milestones{/number}","notifications_url":"https://api.github.com/repos/komic-awesome/komic/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/komic-awesome/komic/labels{/name}","releases_url":"https://api.github.com/repos/komic-awesome/komic/releases{/id}","created_at":"2015-07-23T06:31:37Z","updated_at":"2015-09-09T06:27:41Z","pushed_at":"2015-09-09T09:32:59Z","git_url":"git://github.com/komic-awesome/komic.git","ssh_url":"git@github.com:komic-awesome/komic.git","clone_url":"https://github.com/komic-awesome/komic.git","svn_url":"https://github.com/komic-awesome/komic","homepage":"","size":552,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":2,"mirror_url":null,"open_issues_count":1,"forks":2,"open_issues":1,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/komic-awesome/komic/pulls/38"},"html":{"href":"https://github.com/komic-awesome/komic/pull/38"},"issue":{"href":"https://api.github.com/repos/komic-awesome/komic/issues/38"},"comments":{"href":"https://api.github.com/repos/komic-awesome/komic/issues/38/comments"},"review_comments":{"href":"https://api.github.com/repos/komic-awesome/komic/pulls/38/comments"},"review_comment":{"href":"https://api.github.com/repos/komic-awesome/komic/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/komic-awesome/komic/pulls/38/commits"},"statuses":{"href":"https://api.github.com/repos/komic-awesome/komic/statuses/bc81a4f7e0498c55fc2cd3cc9bb62b65d57155fc"}}}}