{"action":"created","comment":{"url":"https://api.github.com/repos/ant-design/ant-design/pulls/comments/44494065","id":44494065,"diff_hunk":"@@ -0,0 +1,168 @@\n+import React, {PropTypes, Component} from 'react';\n+import CalendarLocale from 'rc-calendar/lib/locale/zh_CN';\n+import FullCalendar from 'rc-calendar/lib/FullCalendar';\n+import Tooltip from 'rc-tooltip';\n+import 'rc-tooltip/assets/bootstrap.css';\n+import 'rc-calendar/assets/index.css';\n+\n+function noop () { return null; }\n+\n+class NoteList extends Component {\n+  render() {\n+    const {listdata, prefixCls} = this.props;\n+\n+    if (!listdata || listdata === 0) return null;\n+\n+    return (\n+      <ul className={prefixCls}>\n+        { listdata.map(function (item, index) {\n+          return <li key={`list-${index}`}><span className={`${prefixCls}-node-${item.type}`}>●</span>{ item.content }</li>;\n+        }) }\n+      </ul>\n+    );\n+  }\n+}\n+NoteList.propTypes = {\n+  listdata: PropTypes.array,\n+  prefixCls: PropTypes.string,\n+};\n+NoteList.defaultProps = {\n+  prefixCls: 'calendar-notes-list'\n+};\n+\n+class Notes extends Component {","path":"components/calendar/index.jsx","position":33,"original_position":33,"commit_id":"4fb2e7d131501dc44e0f841124b97af6963d2fe5","original_commit_id":"4fb2e7d131501dc44e0f841124b97af6963d2fe5","user":{"login":"benjycui","id":3580607,"avatar_url":"https://avatars.githubusercontent.com/u/3580607?v=3","gravatar_id":"","url":"https://api.github.com/users/benjycui","html_url":"https://github.com/benjycui","followers_url":"https://api.github.com/users/benjycui/followers","following_url":"https://api.github.com/users/benjycui/following{/other_user}","gists_url":"https://api.github.com/users/benjycui/gists{/gist_id}","starred_url":"https://api.github.com/users/benjycui/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/benjycui/subscriptions","organizations_url":"https://api.github.com/users/benjycui/orgs","repos_url":"https://api.github.com/users/benjycui/repos","events_url":"https://api.github.com/users/benjycui/events{/privacy}","received_events_url":"https://api.github.com/users/benjycui/received_events","type":"User","site_admin":false},"body":"一个 JSX 文件中，建议只写一个 Component，就像 Java 那样。\r\n\r\n@afc163 rc-tools 的 [lint](https://github.com/react-component/rc-tools/blob/master/lib/eslintrc) 是有做这个检测的，antd 要不也考虑引入？","created_at":"2015-11-11T02:00:53Z","updated_at":"2015-11-11T02:00:53Z","html_url":"https://github.com/ant-design/ant-design/pull/503#discussion_r44494065","pull_request_url":"https://api.github.com/repos/ant-design/ant-design/pulls/503","_links":{"self":{"href":"https://api.github.com/repos/ant-design/ant-design/pulls/comments/44494065"},"html":{"href":"https://github.com/ant-design/ant-design/pull/503#discussion_r44494065"},"pull_request":{"href":"https://api.github.com/repos/ant-design/ant-design/pulls/503"}}},"pull_request":{"url":"https://api.github.com/repos/ant-design/ant-design/pulls/503","id":50274231,"html_url":"https://github.com/ant-design/ant-design/pull/503","diff_url":"https://github.com/ant-design/ant-design/pull/503.diff","patch_url":"https://github.com/ant-design/ant-design/pull/503.patch","issue_url":"https://api.github.com/repos/ant-design/ant-design/issues/503","number":503,"state":"open","locked":false,"title":"add components/calendar","user":{"login":"chentony","id":1646699,"avatar_url":"https://avatars.githubusercontent.com/u/1646699?v=3","gravatar_id":"","url":"https://api.github.com/users/chentony","html_url":"https://github.com/chentony","followers_url":"https://api.github.com/users/chentony/followers","following_url":"https://api.github.com/users/chentony/following{/other_user}","gists_url":"https://api.github.com/users/chentony/gists{/gist_id}","starred_url":"https://api.github.com/users/chentony/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/chentony/subscriptions","organizations_url":"https://api.github.com/users/chentony/orgs","repos_url":"https://api.github.com/users/chentony/repos","events_url":"https://api.github.com/users/chentony/events{/privacy}","received_events_url":"https://api.github.com/users/chentony/received_events","type":"User","site_admin":false},"body":"日历，会持续优化。","created_at":"2015-11-10T16:17:17Z","updated_at":"2015-11-11T02:00:54Z","closed_at":null,"merged_at":null,"merge_commit_sha":"7ebe08fea832b46c5e3e4256dc76d5f7caa48a12","assignee":{"login":"afc163","id":507615,"avatar_url":"https://avatars.githubusercontent.com/u/507615?v=3","gravatar_id":"","url":"https://api.github.com/users/afc163","html_url":"https://github.com/afc163","followers_url":"https://api.github.com/users/afc163/followers","following_url":"https://api.github.com/users/afc163/following{/other_user}","gists_url":"https://api.github.com/users/afc163/gists{/gist_id}","starred_url":"https://api.github.com/users/afc163/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/afc163/subscriptions","organizations_url":"https://api.github.com/users/afc163/orgs","repos_url":"https://api.github.com/users/afc163/repos","events_url":"https://api.github.com/users/afc163/events{/privacy}","received_events_url":"https://api.github.com/users/afc163/received_events","type":"User","site_admin":false},"milestone":{"url":"https://api.github.com/repos/ant-design/ant-design/milestones/1","html_url":"https://github.com/ant-design/ant-design/milestones/0.10.0","labels_url":"https://api.github.com/repos/ant-design/ant-design/milestones/1/labels","id":1315642,"number":1,"title":"0.10.0","description":"时间点：2015-10-31\r\n\r\n- 新增组件\r\n\t- [ ] calendar\r\n\t- [ ] timepicker\r\n- 纯样式模块的组件化。\r\n\t- [ ] button\r\n\t- [ ] layout\r\n\t- [ ] iconfont\r\n\t- [ ] form\r\n- [ ] datepicker 增加时间范围选择功能。\r\n- [ ] upload、menu 交互视觉改进。\r\n- [ ] popover 和 popconfirm 支持更多箭头位置。\r\n- [ ] iconfont 更换。\r\n- [ ] Table 列选择模式重构。#252\r\n- [ ] antd-bin 代理和测试功能。\r\n- [ ] 尝试支持 React 0.14.x 。#243\r\n- [ ] validation 和非原生组件的配合使用。#285","creator":{"login":"afc163","id":507615,"avatar_url":"https://avatars.githubusercontent.com/u/507615?v=3","gravatar_id":"","url":"https://api.github.com/users/afc163","html_url":"https://github.com/afc163","followers_url":"https://api.github.com/users/afc163/followers","following_url":"https://api.github.com/users/afc163/following{/other_user}","gists_url":"https://api.github.com/users/afc163/gists{/gist_id}","starred_url":"https://api.github.com/users/afc163/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/afc163/subscriptions","organizations_url":"https://api.github.com/users/afc163/orgs","repos_url":"https://api.github.com/users/afc163/repos","events_url":"https://api.github.com/users/afc163/events{/privacy}","received_events_url":"https://api.github.com/users/afc163/received_events","type":"User","site_admin":false},"open_issues":7,"closed_issues":39,"state":"open","created_at":"2015-09-21T03:55:08Z","updated_at":"2015-11-10T16:18:37Z","due_on":"2015-10-30T16:00:00Z","closed_at":null},"commits_url":"https://api.github.com/repos/ant-design/ant-design/pulls/503/commits","review_comments_url":"https://api.github.com/repos/ant-design/ant-design/pulls/503/comments","review_comment_url":"https://api.github.com/repos/ant-design/ant-design/pulls/comments{/number}","comments_url":"https://api.github.com/repos/ant-design/ant-design/issues/503/comments","statuses_url":"https://api.github.com/repos/ant-design/ant-design/statuses/4fb2e7d131501dc44e0f841124b97af6963d2fe5","head":{"label":"ant-design:feature-calendar","ref":"feature-calendar","sha":"4fb2e7d131501dc44e0f841124b97af6963d2fe5","user":{"login":"ant-design","id":12101536,"avatar_url":"https://avatars.githubusercontent.com/u/12101536?v=3","gravatar_id":"","url":"https://api.github.com/users/ant-design","html_url":"https://github.com/ant-design","followers_url":"https://api.github.com/users/ant-design/followers","following_url":"https://api.github.com/users/ant-design/following{/other_user}","gists_url":"https://api.github.com/users/ant-design/gists{/gist_id}","starred_url":"https://api.github.com/users/ant-design/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ant-design/subscriptions","organizations_url":"https://api.github.com/users/ant-design/orgs","repos_url":"https://api.github.com/users/ant-design/repos","events_url":"https://api.github.com/users/ant-design/events{/privacy}","received_events_url":"https://api.github.com/users/ant-design/received_events","type":"Organization","site_admin":false},"repo":{"id":34526884,"name":"ant-design","full_name":"ant-design/ant-design","owner":{"login":"ant-design","id":12101536,"avatar_url":"https://avatars.githubusercontent.com/u/12101536?v=3","gravatar_id":"","url":"https://api.github.com/users/ant-design","html_url":"https://github.com/ant-design","followers_url":"https://api.github.com/users/ant-design/followers","following_url":"https://api.github.com/users/ant-design/following{/other_user}","gists_url":"https://api.github.com/users/ant-design/gists{/gist_id}","starred_url":"https://api.github.com/users/ant-design/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ant-design/subscriptions","organizations_url":"https://api.github.com/users/ant-design/orgs","repos_url":"https://api.github.com/users/ant-design/repos","events_url":"https://api.github.com/users/ant-design/events{/privacy}","received_events_url":"https://api.github.com/users/ant-design/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/ant-design/ant-design","description":"A design language","fork":false,"url":"https://api.github.com/repos/ant-design/ant-design","forks_url":"https://api.github.com/repos/ant-design/ant-design/forks","keys_url":"https://api.github.com/repos/ant-design/ant-design/keys{/key_id}","collaborators_url":"https://api.github.com/repos/ant-design/ant-design/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/ant-design/ant-design/teams","hooks_url":"https://api.github.com/repos/ant-design/ant-design/hooks","issue_events_url":"https://api.github.com/repos/ant-design/ant-design/issues/events{/number}","events_url":"https://api.github.com/repos/ant-design/ant-design/events","assignees_url":"https://api.github.com/repos/ant-design/ant-design/assignees{/user}","branches_url":"https://api.github.com/repos/ant-design/ant-design/branches{/branch}","tags_url":"https://api.github.com/repos/ant-design/ant-design/tags","blobs_url":"https://api.github.com/repos/ant-design/ant-design/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/ant-design/ant-design/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/ant-design/ant-design/git/refs{/sha}","trees_url":"https://api.github.com/repos/ant-design/ant-design/git/trees{/sha}","statuses_url":"https://api.github.com/repos/ant-design/ant-design/statuses/{sha}","languages_url":"https://api.github.com/repos/ant-design/ant-design/languages","stargazers_url":"https://api.github.com/repos/ant-design/ant-design/stargazers","contributors_url":"https://api.github.com/repos/ant-design/ant-design/contributors","subscribers_url":"https://api.github.com/repos/ant-design/ant-design/subscribers","subscription_url":"https://api.github.com/repos/ant-design/ant-design/subscription","commits_url":"https://api.github.com/repos/ant-design/ant-design/commits{/sha}","git_commits_url":"https://api.github.com/repos/ant-design/ant-design/git/commits{/sha}","comments_url":"https://api.github.com/repos/ant-design/ant-design/comments{/number}","issue_comment_url":"https://api.github.com/repos/ant-design/ant-design/issues/comments{/number}","contents_url":"https://api.github.com/repos/ant-design/ant-design/contents/{+path}","compare_url":"https://api.github.com/repos/ant-design/ant-design/compare/{base}...{head}","merges_url":"https://api.github.com/repos/ant-design/ant-design/merges","archive_url":"https://api.github.com/repos/ant-design/ant-design/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/ant-design/ant-design/downloads","issues_url":"https://api.github.com/repos/ant-design/ant-design/issues{/number}","pulls_url":"https://api.github.com/repos/ant-design/ant-design/pulls{/number}","milestones_url":"https://api.github.com/repos/ant-design/ant-design/milestones{/number}","notifications_url":"https://api.github.com/repos/ant-design/ant-design/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/ant-design/ant-design/labels{/name}","releases_url":"https://api.github.com/repos/ant-design/ant-design/releases{/id}","created_at":"2015-04-24T15:37:24Z","updated_at":"2015-11-11T01:14:54Z","pushed_at":"2015-11-10T16:31:47Z","git_url":"git://github.com/ant-design/ant-design.git","ssh_url":"git@github.com:ant-design/ant-design.git","clone_url":"https://github.com/ant-design/ant-design.git","svn_url":"https://github.com/ant-design/ant-design","homepage":"http://ant.design/","size":37157,"stargazers_count":1541,"watchers_count":1541,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":220,"mirror_url":null,"open_issues_count":40,"forks":220,"open_issues":40,"watchers":1541,"default_branch":"develop-0.10.0"}},"base":{"label":"ant-design:develop-0.10.0","ref":"develop-0.10.0","sha":"31e47defde5f0918b2e0ad080a6ea4c864b16dce","user":{"login":"ant-design","id":12101536,"avatar_url":"https://avatars.githubusercontent.com/u/12101536?v=3","gravatar_id":"","url":"https://api.github.com/users/ant-design","html_url":"https://github.com/ant-design","followers_url":"https://api.github.com/users/ant-design/followers","following_url":"https://api.github.com/users/ant-design/following{/other_user}","gists_url":"https://api.github.com/users/ant-design/gists{/gist_id}","starred_url":"https://api.github.com/users/ant-design/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ant-design/subscriptions","organizations_url":"https://api.github.com/users/ant-design/orgs","repos_url":"https://api.github.com/users/ant-design/repos","events_url":"https://api.github.com/users/ant-design/events{/privacy}","received_events_url":"https://api.github.com/users/ant-design/received_events","type":"Organization","site_admin":false},"repo":{"id":34526884,"name":"ant-design","full_name":"ant-design/ant-design","owner":{"login":"ant-design","id":12101536,"avatar_url":"https://avatars.githubusercontent.com/u/12101536?v=3","gravatar_id":"","url":"https://api.github.com/users/ant-design","html_url":"https://github.com/ant-design","followers_url":"https://api.github.com/users/ant-design/followers","following_url":"https://api.github.com/users/ant-design/following{/other_user}","gists_url":"https://api.github.com/users/ant-design/gists{/gist_id}","starred_url":"https://api.github.com/users/ant-design/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ant-design/subscriptions","organizations_url":"https://api.github.com/users/ant-design/orgs","repos_url":"https://api.github.com/users/ant-design/repos","events_url":"https://api.github.com/users/ant-design/events{/privacy}","received_events_url":"https://api.github.com/users/ant-design/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/ant-design/ant-design","description":"A design language","fork":false,"url":"https://api.github.com/repos/ant-design/ant-design","forks_url":"https://api.github.com/repos/ant-design/ant-design/forks","keys_url":"https://api.github.com/repos/ant-design/ant-design/keys{/key_id}","collaborators_url":"https://api.github.com/repos/ant-design/ant-design/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/ant-design/ant-design/teams","hooks_url":"https://api.github.com/repos/ant-design/ant-design/hooks","issue_events_url":"https://api.github.com/repos/ant-design/ant-design/issues/events{/number}","events_url":"https://api.github.com/repos/ant-design/ant-design/events","assignees_url":"https://api.github.com/repos/ant-design/ant-design/assignees{/user}","branches_url":"https://api.github.com/repos/ant-design/ant-design/branches{/branch}","tags_url":"https://api.github.com/repos/ant-design/ant-design/tags","blobs_url":"https://api.github.com/repos/ant-design/ant-design/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/ant-design/ant-design/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/ant-design/ant-design/git/refs{/sha}","trees_url":"https://api.github.com/repos/ant-design/ant-design/git/trees{/sha}","statuses_url":"https://api.github.com/repos/ant-design/ant-design/statuses/{sha}","languages_url":"https://api.github.com/repos/ant-design/ant-design/languages","stargazers_url":"https://api.github.com/repos/ant-design/ant-design/stargazers","contributors_url":"https://api.github.com/repos/ant-design/ant-design/contributors","subscribers_url":"https://api.github.com/repos/ant-design/ant-design/subscribers","subscription_url":"https://api.github.com/repos/ant-design/ant-design/subscription","commits_url":"https://api.github.com/repos/ant-design/ant-design/commits{/sha}","git_commits_url":"https://api.github.com/repos/ant-design/ant-design/git/commits{/sha}","comments_url":"https://api.github.com/repos/ant-design/ant-design/comments{/number}","issue_comment_url":"https://api.github.com/repos/ant-design/ant-design/issues/comments{/number}","contents_url":"https://api.github.com/repos/ant-design/ant-design/contents/{+path}","compare_url":"https://api.github.com/repos/ant-design/ant-design/compare/{base}...{head}","merges_url":"https://api.github.com/repos/ant-design/ant-design/merges","archive_url":"https://api.github.com/repos/ant-design/ant-design/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/ant-design/ant-design/downloads","issues_url":"https://api.github.com/repos/ant-design/ant-design/issues{/number}","pulls_url":"https://api.github.com/repos/ant-design/ant-design/pulls{/number}","milestones_url":"https://api.github.com/repos/ant-design/ant-design/milestones{/number}","notifications_url":"https://api.github.com/repos/ant-design/ant-design/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/ant-design/ant-design/labels{/name}","releases_url":"https://api.github.com/repos/ant-design/ant-design/releases{/id}","created_at":"2015-04-24T15:37:24Z","updated_at":"2015-11-11T01:14:54Z","pushed_at":"2015-11-10T16:31:47Z","git_url":"git://github.com/ant-design/ant-design.git","ssh_url":"git@github.com:ant-design/ant-design.git","clone_url":"https://github.com/ant-design/ant-design.git","svn_url":"https://github.com/ant-design/ant-design","homepage":"http://ant.design/","size":37157,"stargazers_count":1541,"watchers_count":1541,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":220,"mirror_url":null,"open_issues_count":40,"forks":220,"open_issues":40,"watchers":1541,"default_branch":"develop-0.10.0"}},"_links":{"self":{"href":"https://api.github.com/repos/ant-design/ant-design/pulls/503"},"html":{"href":"https://github.com/ant-design/ant-design/pull/503"},"issue":{"href":"https://api.github.com/repos/ant-design/ant-design/issues/503"},"comments":{"href":"https://api.github.com/repos/ant-design/ant-design/issues/503/comments"},"review_comments":{"href":"https://api.github.com/repos/ant-design/ant-design/pulls/503/comments"},"review_comment":{"href":"https://api.github.com/repos/ant-design/ant-design/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/ant-design/ant-design/pulls/503/commits"},"statuses":{"href":"https://api.github.com/repos/ant-design/ant-design/statuses/4fb2e7d131501dc44e0f841124b97af6963d2fe5"}}}}