{"action":"created","comment":{"url":"https://api.github.com/repos/leancloud/js-realtime-sdk/pulls/comments/60375049","id":60375049,"diff_hunk":"@@ -31,21 +31,15 @@\n     <label>输入信息：</label>\n     <input id=\"input-send\" class=\"input-send\" type=\"text\">\n     <div id=\"send-btn\" class=\"btn\">发送</div>\n+    <div id=\"send-btn-as-file\" class=\"btn\">作为文件发送</div>\n   </div>\n \n-  <!-- 引入插件，兼容低 IE8+ 等低版本浏览器，注意看下面的注释。如果不需要兼容，可以去掉这部分。 -->\n-  <!--[if lt IE 10]>\n-    <script type=\"text/javascript\" src=\"../../plugin/web-socket-js/swfobject.js\"></script>\n-    <script type=\"text/javascript\" src=\"../../plugin/web-socket-js/web_socket.js\"></script>\n-    <script type=\"text/javascript\">\n-    // 设置变量，配置插件中 WebSocketMain.swf 的引用路径\n-    WEB_SOCKET_SWF_LOCATION = \"../../plugin/web-socket-js/WebSocketMain.swf\";\n-    </script>\n-    <![endif]-->\n-  <!-- 引入插件部分结束 -->\n-\n   <!-- 引入 LeanCloud 实时通信 SDK -->\n-  <script src=\"../../dist/AV.realtime.js\"></script>\n+  <script src=\"../../dist/bundle.browser.js\"></script>\n+  <!-- 引入 LeanCloud 存储 SDK -->\n+  <script src=\"https://cdn1.lncld.net/static/js/av-mini-1.0.0-rc5.js\"></script>","path":"demo/simple-chatroom/index.html","position":22,"original_position":22,"commit_id":"a60fa22296572ce80050d322c25c81fdfd53eb94","original_commit_id":"12d36047e0ab698683f9709fe02b08eccf760a01","user":{"login":"wangxiao","id":558368,"avatar_url":"https://avatars.githubusercontent.com/u/558368?v=3","gravatar_id":"","url":"https://api.github.com/users/wangxiao","html_url":"https://github.com/wangxiao","followers_url":"https://api.github.com/users/wangxiao/followers","following_url":"https://api.github.com/users/wangxiao/following{/other_user}","gists_url":"https://api.github.com/users/wangxiao/gists{/gist_id}","starred_url":"https://api.github.com/users/wangxiao/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wangxiao/subscriptions","organizations_url":"https://api.github.com/users/wangxiao/orgs","repos_url":"https://api.github.com/users/wangxiao/repos","events_url":"https://api.github.com/users/wangxiao/events{/privacy}","received_events_url":"https://api.github.com/users/wangxiao/received_events","type":"User","site_admin":false},"body":"demo 中最好是用的稳定版","created_at":"2016-04-20T09:17:05Z","updated_at":"2016-04-20T09:17:05Z","html_url":"https://github.com/leancloud/js-realtime-sdk/pull/196#discussion_r60375049","pull_request_url":"https://api.github.com/repos/leancloud/js-realtime-sdk/pulls/196","_links":{"self":{"href":"https://api.github.com/repos/leancloud/js-realtime-sdk/pulls/comments/60375049"},"html":{"href":"https://github.com/leancloud/js-realtime-sdk/pull/196#discussion_r60375049"},"pull_request":{"href":"https://api.github.com/repos/leancloud/js-realtime-sdk/pulls/196"}}},"pull_request":{"url":"https://api.github.com/repos/leancloud/js-realtime-sdk/pulls/196","id":64907568,"html_url":"https://github.com/leancloud/js-realtime-sdk/pull/196","diff_url":"https://github.com/leancloud/js-realtime-sdk/pull/196.diff","patch_url":"https://github.com/leancloud/js-realtime-sdk/pull/196.patch","issue_url":"https://api.github.com/repos/leancloud/js-realtime-sdk/issues/196","number":196,"state":"open","locked":false,"title":"(WIP)3.0.0-alpha.1","user":{"login":"leeyeh","id":175227,"avatar_url":"https://avatars.githubusercontent.com/u/175227?v=3","gravatar_id":"","url":"https://api.github.com/users/leeyeh","html_url":"https://github.com/leeyeh","followers_url":"https://api.github.com/users/leeyeh/followers","following_url":"https://api.github.com/users/leeyeh/following{/other_user}","gists_url":"https://api.github.com/users/leeyeh/gists{/gist_id}","starred_url":"https://api.github.com/users/leeyeh/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/leeyeh/subscriptions","organizations_url":"https://api.github.com/users/leeyeh/orgs","repos_url":"https://api.github.com/users/leeyeh/repos","events_url":"https://api.github.com/users/leeyeh/events{/privacy}","received_events_url":"https://api.github.com/users/leeyeh/received_events","type":"User","site_admin":false},"body":"测试请安装：`npm i https://github.com/leeyeh/js-realtime-sdk.git\\#dist --save`\r\n\r\nreview 建议先看 [Readme](https://github.com/leeyeh/js-realtime-sdk/blob/next/README.md)，再看 [API doc](https://leeyeh.github.io/js-realtime-sdk/docs)。\r\n\r\n----\r\nclose #119 close #126 close #137 close #140 close #143 close #151 close #155 close #160 close #162 close #179 close #183 close #188 close #189 close #190 close #194 ","created_at":"2016-04-01T07:51:55Z","updated_at":"2016-04-20T09:17:05Z","closed_at":null,"merged_at":null,"merge_commit_sha":"79fafb739f462064d9ac621f201fd61d099ccfcc","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/leancloud/js-realtime-sdk/pulls/196/commits","review_comments_url":"https://api.github.com/repos/leancloud/js-realtime-sdk/pulls/196/comments","review_comment_url":"https://api.github.com/repos/leancloud/js-realtime-sdk/pulls/comments{/number}","comments_url":"https://api.github.com/repos/leancloud/js-realtime-sdk/issues/196/comments","statuses_url":"https://api.github.com/repos/leancloud/js-realtime-sdk/statuses/a60fa22296572ce80050d322c25c81fdfd53eb94","head":{"label":"leeyeh:next","ref":"next","sha":"a60fa22296572ce80050d322c25c81fdfd53eb94","user":{"login":"leeyeh","id":175227,"avatar_url":"https://avatars.githubusercontent.com/u/175227?v=3","gravatar_id":"","url":"https://api.github.com/users/leeyeh","html_url":"https://github.com/leeyeh","followers_url":"https://api.github.com/users/leeyeh/followers","following_url":"https://api.github.com/users/leeyeh/following{/other_user}","gists_url":"https://api.github.com/users/leeyeh/gists{/gist_id}","starred_url":"https://api.github.com/users/leeyeh/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/leeyeh/subscriptions","organizations_url":"https://api.github.com/users/leeyeh/orgs","repos_url":"https://api.github.com/users/leeyeh/repos","events_url":"https://api.github.com/users/leeyeh/events{/privacy}","received_events_url":"https://api.github.com/users/leeyeh/received_events","type":"User","site_admin":false},"repo":{"id":38728698,"name":"js-realtime-sdk","full_name":"leeyeh/js-realtime-sdk","owner":{"login":"leeyeh","id":175227,"avatar_url":"https://avatars.githubusercontent.com/u/175227?v=3","gravatar_id":"","url":"https://api.github.com/users/leeyeh","html_url":"https://github.com/leeyeh","followers_url":"https://api.github.com/users/leeyeh/followers","following_url":"https://api.github.com/users/leeyeh/following{/other_user}","gists_url":"https://api.github.com/users/leeyeh/gists{/gist_id}","starred_url":"https://api.github.com/users/leeyeh/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/leeyeh/subscriptions","organizations_url":"https://api.github.com/users/leeyeh/orgs","repos_url":"https://api.github.com/users/leeyeh/repos","events_url":"https://api.github.com/users/leeyeh/events{/privacy}","received_events_url":"https://api.github.com/users/leeyeh/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/leeyeh/js-realtime-sdk","description":"LeanCloud JavaScript Realtime SDK","fork":true,"url":"https://api.github.com/repos/leeyeh/js-realtime-sdk","forks_url":"https://api.github.com/repos/leeyeh/js-realtime-sdk/forks","keys_url":"https://api.github.com/repos/leeyeh/js-realtime-sdk/keys{/key_id}","collaborators_url":"https://api.github.com/repos/leeyeh/js-realtime-sdk/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/leeyeh/js-realtime-sdk/teams","hooks_url":"https://api.github.com/repos/leeyeh/js-realtime-sdk/hooks","issue_events_url":"https://api.github.com/repos/leeyeh/js-realtime-sdk/issues/events{/number}","events_url":"https://api.github.com/repos/leeyeh/js-realtime-sdk/events","assignees_url":"https://api.github.com/repos/leeyeh/js-realtime-sdk/assignees{/user}","branches_url":"https://api.github.com/repos/leeyeh/js-realtime-sdk/branches{/branch}","tags_url":"https://api.github.com/repos/leeyeh/js-realtime-sdk/tags","blobs_url":"https://api.github.com/repos/leeyeh/js-realtime-sdk/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/leeyeh/js-realtime-sdk/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/leeyeh/js-realtime-sdk/git/refs{/sha}","trees_url":"https://api.github.com/repos/leeyeh/js-realtime-sdk/git/trees{/sha}","statuses_url":"https://api.github.com/repos/leeyeh/js-realtime-sdk/statuses/{sha}","languages_url":"https://api.github.com/repos/leeyeh/js-realtime-sdk/languages","stargazers_url":"https://api.github.com/repos/leeyeh/js-realtime-sdk/stargazers","contributors_url":"https://api.github.com/repos/leeyeh/js-realtime-sdk/contributors","subscribers_url":"https://api.github.com/repos/leeyeh/js-realtime-sdk/subscribers","subscription_url":"https://api.github.com/repos/leeyeh/js-realtime-sdk/subscription","commits_url":"https://api.github.com/repos/leeyeh/js-realtime-sdk/commits{/sha}","git_commits_url":"https://api.github.com/repos/leeyeh/js-realtime-sdk/git/commits{/sha}","comments_url":"https://api.github.com/repos/leeyeh/js-realtime-sdk/comments{/number}","issue_comment_url":"https://api.github.com/repos/leeyeh/js-realtime-sdk/issues/comments{/number}","contents_url":"https://api.github.com/repos/leeyeh/js-realtime-sdk/contents/{+path}","compare_url":"https://api.github.com/repos/leeyeh/js-realtime-sdk/compare/{base}...{head}","merges_url":"https://api.github.com/repos/leeyeh/js-realtime-sdk/merges","archive_url":"https://api.github.com/repos/leeyeh/js-realtime-sdk/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/leeyeh/js-realtime-sdk/downloads","issues_url":"https://api.github.com/repos/leeyeh/js-realtime-sdk/issues{/number}","pulls_url":"https://api.github.com/repos/leeyeh/js-realtime-sdk/pulls{/number}","milestones_url":"https://api.github.com/repos/leeyeh/js-realtime-sdk/milestones{/number}","notifications_url":"https://api.github.com/repos/leeyeh/js-realtime-sdk/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/leeyeh/js-realtime-sdk/labels{/name}","releases_url":"https://api.github.com/repos/leeyeh/js-realtime-sdk/releases{/id}","deployments_url":"https://api.github.com/repos/leeyeh/js-realtime-sdk/deployments","created_at":"2015-07-08T03:05:16Z","updated_at":"2016-04-05T11:53:03Z","pushed_at":"2016-04-20T08:58:27Z","git_url":"git://github.com/leeyeh/js-realtime-sdk.git","ssh_url":"git@github.com:leeyeh/js-realtime-sdk.git","clone_url":"https://github.com/leeyeh/js-realtime-sdk.git","svn_url":"https://github.com/leeyeh/js-realtime-sdk","homepage":"https://leeyeh.github.io/js-realtime-sdk/docs/","size":3407,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":0,"mirror_url":null,"open_issues_count":1,"forks":0,"open_issues":1,"watchers":0,"default_branch":"next"}},"base":{"label":"leancloud:next","ref":"next","sha":"0fa4bc42e975de908fdfbd8f85470ed69ec1b30a","user":{"login":"leancloud","id":6660518,"avatar_url":"https://avatars.githubusercontent.com/u/6660518?v=3","gravatar_id":"","url":"https://api.github.com/users/leancloud","html_url":"https://github.com/leancloud","followers_url":"https://api.github.com/users/leancloud/followers","following_url":"https://api.github.com/users/leancloud/following{/other_user}","gists_url":"https://api.github.com/users/leancloud/gists{/gist_id}","starred_url":"https://api.github.com/users/leancloud/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/leancloud/subscriptions","organizations_url":"https://api.github.com/users/leancloud/orgs","repos_url":"https://api.github.com/users/leancloud/repos","events_url":"https://api.github.com/users/leancloud/events{/privacy}","received_events_url":"https://api.github.com/users/leancloud/received_events","type":"Organization","site_admin":false},"repo":{"id":29335461,"name":"js-realtime-sdk","full_name":"leancloud/js-realtime-sdk","owner":{"login":"leancloud","id":6660518,"avatar_url":"https://avatars.githubusercontent.com/u/6660518?v=3","gravatar_id":"","url":"https://api.github.com/users/leancloud","html_url":"https://github.com/leancloud","followers_url":"https://api.github.com/users/leancloud/followers","following_url":"https://api.github.com/users/leancloud/following{/other_user}","gists_url":"https://api.github.com/users/leancloud/gists{/gist_id}","starred_url":"https://api.github.com/users/leancloud/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/leancloud/subscriptions","organizations_url":"https://api.github.com/users/leancloud/orgs","repos_url":"https://api.github.com/users/leancloud/repos","events_url":"https://api.github.com/users/leancloud/events{/privacy}","received_events_url":"https://api.github.com/users/leancloud/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/leancloud/js-realtime-sdk","description":"LeanCloud Realtime Message JavaScript SDK","fork":false,"url":"https://api.github.com/repos/leancloud/js-realtime-sdk","forks_url":"https://api.github.com/repos/leancloud/js-realtime-sdk/forks","keys_url":"https://api.github.com/repos/leancloud/js-realtime-sdk/keys{/key_id}","collaborators_url":"https://api.github.com/repos/leancloud/js-realtime-sdk/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/leancloud/js-realtime-sdk/teams","hooks_url":"https://api.github.com/repos/leancloud/js-realtime-sdk/hooks","issue_events_url":"https://api.github.com/repos/leancloud/js-realtime-sdk/issues/events{/number}","events_url":"https://api.github.com/repos/leancloud/js-realtime-sdk/events","assignees_url":"https://api.github.com/repos/leancloud/js-realtime-sdk/assignees{/user}","branches_url":"https://api.github.com/repos/leancloud/js-realtime-sdk/branches{/branch}","tags_url":"https://api.github.com/repos/leancloud/js-realtime-sdk/tags","blobs_url":"https://api.github.com/repos/leancloud/js-realtime-sdk/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/leancloud/js-realtime-sdk/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/leancloud/js-realtime-sdk/git/refs{/sha}","trees_url":"https://api.github.com/repos/leancloud/js-realtime-sdk/git/trees{/sha}","statuses_url":"https://api.github.com/repos/leancloud/js-realtime-sdk/statuses/{sha}","languages_url":"https://api.github.com/repos/leancloud/js-realtime-sdk/languages","stargazers_url":"https://api.github.com/repos/leancloud/js-realtime-sdk/stargazers","contributors_url":"https://api.github.com/repos/leancloud/js-realtime-sdk/contributors","subscribers_url":"https://api.github.com/repos/leancloud/js-realtime-sdk/subscribers","subscription_url":"https://api.github.com/repos/leancloud/js-realtime-sdk/subscription","commits_url":"https://api.github.com/repos/leancloud/js-realtime-sdk/commits{/sha}","git_commits_url":"https://api.github.com/repos/leancloud/js-realtime-sdk/git/commits{/sha}","comments_url":"https://api.github.com/repos/leancloud/js-realtime-sdk/comments{/number}","issue_comment_url":"https://api.github.com/repos/leancloud/js-realtime-sdk/issues/comments{/number}","contents_url":"https://api.github.com/repos/leancloud/js-realtime-sdk/contents/{+path}","compare_url":"https://api.github.com/repos/leancloud/js-realtime-sdk/compare/{base}...{head}","merges_url":"https://api.github.com/repos/leancloud/js-realtime-sdk/merges","archive_url":"https://api.github.com/repos/leancloud/js-realtime-sdk/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/leancloud/js-realtime-sdk/downloads","issues_url":"https://api.github.com/repos/leancloud/js-realtime-sdk/issues{/number}","pulls_url":"https://api.github.com/repos/leancloud/js-realtime-sdk/pulls{/number}","milestones_url":"https://api.github.com/repos/leancloud/js-realtime-sdk/milestones{/number}","notifications_url":"https://api.github.com/repos/leancloud/js-realtime-sdk/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/leancloud/js-realtime-sdk/labels{/name}","releases_url":"https://api.github.com/repos/leancloud/js-realtime-sdk/releases{/id}","deployments_url":"https://api.github.com/repos/leancloud/js-realtime-sdk/deployments","created_at":"2015-01-16T06:13:58Z","updated_at":"2016-04-14T12:36:22Z","pushed_at":"2016-04-20T08:51:46Z","git_url":"git://github.com/leancloud/js-realtime-sdk.git","ssh_url":"git@github.com:leancloud/js-realtime-sdk.git","clone_url":"https://github.com/leancloud/js-realtime-sdk.git","svn_url":"https://github.com/leancloud/js-realtime-sdk","homepage":null,"size":1240,"stargazers_count":74,"watchers_count":74,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":47,"mirror_url":null,"open_issues_count":28,"forks":47,"open_issues":28,"watchers":74,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/leancloud/js-realtime-sdk/pulls/196"},"html":{"href":"https://github.com/leancloud/js-realtime-sdk/pull/196"},"issue":{"href":"https://api.github.com/repos/leancloud/js-realtime-sdk/issues/196"},"comments":{"href":"https://api.github.com/repos/leancloud/js-realtime-sdk/issues/196/comments"},"review_comments":{"href":"https://api.github.com/repos/leancloud/js-realtime-sdk/pulls/196/comments"},"review_comment":{"href":"https://api.github.com/repos/leancloud/js-realtime-sdk/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/leancloud/js-realtime-sdk/pulls/196/commits"},"statuses":{"href":"https://api.github.com/repos/leancloud/js-realtime-sdk/statuses/a60fa22296572ce80050d322c25c81fdfd53eb94"}}}}