{"action":"closed","number":6,"pull_request":{"url":"https://api.github.com/repos/XJBlike/chat/pulls/6","id":68756169,"html_url":"https://github.com/XJBlike/chat/pull/6","diff_url":"https://github.com/XJBlike/chat/pull/6.diff","patch_url":"https://github.com/XJBlike/chat/pull/6.patch","issue_url":"https://api.github.com/repos/XJBlike/chat/issues/6","number":6,"state":"closed","locked":false,"title":"Templates","user":{"login":"XJBlike","id":11458188,"avatar_url":"https://avatars.githubusercontent.com/u/11458188?v=3","gravatar_id":"","url":"https://api.github.com/users/XJBlike","html_url":"https://github.com/XJBlike","followers_url":"https://api.github.com/users/XJBlike/followers","following_url":"https://api.github.com/users/XJBlike/following{/other_user}","gists_url":"https://api.github.com/users/XJBlike/gists{/gist_id}","starred_url":"https://api.github.com/users/XJBlike/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/XJBlike/subscriptions","organizations_url":"https://api.github.com/users/XJBlike/orgs","repos_url":"https://api.github.com/users/XJBlike/repos","events_url":"https://api.github.com/users/XJBlike/events{/privacy}","received_events_url":"https://api.github.com/users/XJBlike/received_events","type":"User","site_admin":false},"body":"页面样式调整基本完成，还差搜索结果页面，可以考虑在服务器中读取数据后，存入缓存，然后在前端操作数据，过一段时间更新数据，当然考虑并发量小的情况，也可以及时更新并且查询服务器，至于搜索，一定是要从服务器请求用户数据的。可在前端作假数据，先将页面画出来。\r\nps：服务端事件\r\n1.connect，连接并且登陆到服务器，创建唯一的socket连接，以用户id作为标志。\r\n2.disconnect，断开连接，登出时使用，关闭socket。\r\n3.message，两个参数，消息对象，发送消息的对象toUserID。\r\n4.search，一个参数，搜索的用户id，返回用户对象给socket。\r\n5.聊天记录操作，读取，删除等。\r\n6.查询数据库表。","created_at":"2016-05-03T18:54:11Z","updated_at":"2016-05-03T18:54:18Z","closed_at":"2016-05-03T18:54:18Z","merged_at":"2016-05-03T18:54:18Z","merge_commit_sha":"b96cb719c5e0c3b607864238374cf1aa5b7d67ee","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/XJBlike/chat/pulls/6/commits","review_comments_url":"https://api.github.com/repos/XJBlike/chat/pulls/6/comments","review_comment_url":"https://api.github.com/repos/XJBlike/chat/pulls/comments{/number}","comments_url":"https://api.github.com/repos/XJBlike/chat/issues/6/comments","statuses_url":"https://api.github.com/repos/XJBlike/chat/statuses/984414591db331d457f72d2e6ed30c86cfd4cc7b","head":{"label":"XJBlike:templates","ref":"templates","sha":"984414591db331d457f72d2e6ed30c86cfd4cc7b","user":{"login":"XJBlike","id":11458188,"avatar_url":"https://avatars.githubusercontent.com/u/11458188?v=3","gravatar_id":"","url":"https://api.github.com/users/XJBlike","html_url":"https://github.com/XJBlike","followers_url":"https://api.github.com/users/XJBlike/followers","following_url":"https://api.github.com/users/XJBlike/following{/other_user}","gists_url":"https://api.github.com/users/XJBlike/gists{/gist_id}","starred_url":"https://api.github.com/users/XJBlike/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/XJBlike/subscriptions","organizations_url":"https://api.github.com/users/XJBlike/orgs","repos_url":"https://api.github.com/users/XJBlike/repos","events_url":"https://api.github.com/users/XJBlike/events{/privacy}","received_events_url":"https://api.github.com/users/XJBlike/received_events","type":"User","site_admin":false},"repo":{"id":57309042,"name":"chat","full_name":"XJBlike/chat","owner":{"login":"XJBlike","id":11458188,"avatar_url":"https://avatars.githubusercontent.com/u/11458188?v=3","gravatar_id":"","url":"https://api.github.com/users/XJBlike","html_url":"https://github.com/XJBlike","followers_url":"https://api.github.com/users/XJBlike/followers","following_url":"https://api.github.com/users/XJBlike/following{/other_user}","gists_url":"https://api.github.com/users/XJBlike/gists{/gist_id}","starred_url":"https://api.github.com/users/XJBlike/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/XJBlike/subscriptions","organizations_url":"https://api.github.com/users/XJBlike/orgs","repos_url":"https://api.github.com/users/XJBlike/repos","events_url":"https://api.github.com/users/XJBlike/events{/privacy}","received_events_url":"https://api.github.com/users/XJBlike/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/XJBlike/chat","description":"ionic im software,based on ionic,socket.io,node.js,can be used both on web and mobile.","fork":false,"url":"https://api.github.com/repos/XJBlike/chat","forks_url":"https://api.github.com/repos/XJBlike/chat/forks","keys_url":"https://api.github.com/repos/XJBlike/chat/keys{/key_id}","collaborators_url":"https://api.github.com/repos/XJBlike/chat/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/XJBlike/chat/teams","hooks_url":"https://api.github.com/repos/XJBlike/chat/hooks","issue_events_url":"https://api.github.com/repos/XJBlike/chat/issues/events{/number}","events_url":"https://api.github.com/repos/XJBlike/chat/events","assignees_url":"https://api.github.com/repos/XJBlike/chat/assignees{/user}","branches_url":"https://api.github.com/repos/XJBlike/chat/branches{/branch}","tags_url":"https://api.github.com/repos/XJBlike/chat/tags","blobs_url":"https://api.github.com/repos/XJBlike/chat/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/XJBlike/chat/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/XJBlike/chat/git/refs{/sha}","trees_url":"https://api.github.com/repos/XJBlike/chat/git/trees{/sha}","statuses_url":"https://api.github.com/repos/XJBlike/chat/statuses/{sha}","languages_url":"https://api.github.com/repos/XJBlike/chat/languages","stargazers_url":"https://api.github.com/repos/XJBlike/chat/stargazers","contributors_url":"https://api.github.com/repos/XJBlike/chat/contributors","subscribers_url":"https://api.github.com/repos/XJBlike/chat/subscribers","subscription_url":"https://api.github.com/repos/XJBlike/chat/subscription","commits_url":"https://api.github.com/repos/XJBlike/chat/commits{/sha}","git_commits_url":"https://api.github.com/repos/XJBlike/chat/git/commits{/sha}","comments_url":"https://api.github.com/repos/XJBlike/chat/comments{/number}","issue_comment_url":"https://api.github.com/repos/XJBlike/chat/issues/comments{/number}","contents_url":"https://api.github.com/repos/XJBlike/chat/contents/{+path}","compare_url":"https://api.github.com/repos/XJBlike/chat/compare/{base}...{head}","merges_url":"https://api.github.com/repos/XJBlike/chat/merges","archive_url":"https://api.github.com/repos/XJBlike/chat/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/XJBlike/chat/downloads","issues_url":"https://api.github.com/repos/XJBlike/chat/issues{/number}","pulls_url":"https://api.github.com/repos/XJBlike/chat/pulls{/number}","milestones_url":"https://api.github.com/repos/XJBlike/chat/milestones{/number}","notifications_url":"https://api.github.com/repos/XJBlike/chat/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/XJBlike/chat/labels{/name}","releases_url":"https://api.github.com/repos/XJBlike/chat/releases{/id}","deployments_url":"https://api.github.com/repos/XJBlike/chat/deployments","created_at":"2016-04-28T14:40:52Z","updated_at":"2016-04-28T14:42:10Z","pushed_at":"2016-05-03T18:54:18Z","git_url":"git://github.com/XJBlike/chat.git","ssh_url":"git@github.com:XJBlike/chat.git","clone_url":"https://github.com/XJBlike/chat.git","svn_url":"https://github.com/XJBlike/chat","homepage":null,"size":7008,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":true,"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":"XJBlike:master","ref":"master","sha":"8d7832fc85a9c22eb9f168f59f140b8f0062785f","user":{"login":"XJBlike","id":11458188,"avatar_url":"https://avatars.githubusercontent.com/u/11458188?v=3","gravatar_id":"","url":"https://api.github.com/users/XJBlike","html_url":"https://github.com/XJBlike","followers_url":"https://api.github.com/users/XJBlike/followers","following_url":"https://api.github.com/users/XJBlike/following{/other_user}","gists_url":"https://api.github.com/users/XJBlike/gists{/gist_id}","starred_url":"https://api.github.com/users/XJBlike/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/XJBlike/subscriptions","organizations_url":"https://api.github.com/users/XJBlike/orgs","repos_url":"https://api.github.com/users/XJBlike/repos","events_url":"https://api.github.com/users/XJBlike/events{/privacy}","received_events_url":"https://api.github.com/users/XJBlike/received_events","type":"User","site_admin":false},"repo":{"id":57309042,"name":"chat","full_name":"XJBlike/chat","owner":{"login":"XJBlike","id":11458188,"avatar_url":"https://avatars.githubusercontent.com/u/11458188?v=3","gravatar_id":"","url":"https://api.github.com/users/XJBlike","html_url":"https://github.com/XJBlike","followers_url":"https://api.github.com/users/XJBlike/followers","following_url":"https://api.github.com/users/XJBlike/following{/other_user}","gists_url":"https://api.github.com/users/XJBlike/gists{/gist_id}","starred_url":"https://api.github.com/users/XJBlike/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/XJBlike/subscriptions","organizations_url":"https://api.github.com/users/XJBlike/orgs","repos_url":"https://api.github.com/users/XJBlike/repos","events_url":"https://api.github.com/users/XJBlike/events{/privacy}","received_events_url":"https://api.github.com/users/XJBlike/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/XJBlike/chat","description":"ionic im software,based on ionic,socket.io,node.js,can be used both on web and mobile.","fork":false,"url":"https://api.github.com/repos/XJBlike/chat","forks_url":"https://api.github.com/repos/XJBlike/chat/forks","keys_url":"https://api.github.com/repos/XJBlike/chat/keys{/key_id}","collaborators_url":"https://api.github.com/repos/XJBlike/chat/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/XJBlike/chat/teams","hooks_url":"https://api.github.com/repos/XJBlike/chat/hooks","issue_events_url":"https://api.github.com/repos/XJBlike/chat/issues/events{/number}","events_url":"https://api.github.com/repos/XJBlike/chat/events","assignees_url":"https://api.github.com/repos/XJBlike/chat/assignees{/user}","branches_url":"https://api.github.com/repos/XJBlike/chat/branches{/branch}","tags_url":"https://api.github.com/repos/XJBlike/chat/tags","blobs_url":"https://api.github.com/repos/XJBlike/chat/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/XJBlike/chat/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/XJBlike/chat/git/refs{/sha}","trees_url":"https://api.github.com/repos/XJBlike/chat/git/trees{/sha}","statuses_url":"https://api.github.com/repos/XJBlike/chat/statuses/{sha}","languages_url":"https://api.github.com/repos/XJBlike/chat/languages","stargazers_url":"https://api.github.com/repos/XJBlike/chat/stargazers","contributors_url":"https://api.github.com/repos/XJBlike/chat/contributors","subscribers_url":"https://api.github.com/repos/XJBlike/chat/subscribers","subscription_url":"https://api.github.com/repos/XJBlike/chat/subscription","commits_url":"https://api.github.com/repos/XJBlike/chat/commits{/sha}","git_commits_url":"https://api.github.com/repos/XJBlike/chat/git/commits{/sha}","comments_url":"https://api.github.com/repos/XJBlike/chat/comments{/number}","issue_comment_url":"https://api.github.com/repos/XJBlike/chat/issues/comments{/number}","contents_url":"https://api.github.com/repos/XJBlike/chat/contents/{+path}","compare_url":"https://api.github.com/repos/XJBlike/chat/compare/{base}...{head}","merges_url":"https://api.github.com/repos/XJBlike/chat/merges","archive_url":"https://api.github.com/repos/XJBlike/chat/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/XJBlike/chat/downloads","issues_url":"https://api.github.com/repos/XJBlike/chat/issues{/number}","pulls_url":"https://api.github.com/repos/XJBlike/chat/pulls{/number}","milestones_url":"https://api.github.com/repos/XJBlike/chat/milestones{/number}","notifications_url":"https://api.github.com/repos/XJBlike/chat/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/XJBlike/chat/labels{/name}","releases_url":"https://api.github.com/repos/XJBlike/chat/releases{/id}","deployments_url":"https://api.github.com/repos/XJBlike/chat/deployments","created_at":"2016-04-28T14:40:52Z","updated_at":"2016-04-28T14:42:10Z","pushed_at":"2016-05-03T18:54:18Z","git_url":"git://github.com/XJBlike/chat.git","ssh_url":"git@github.com:XJBlike/chat.git","clone_url":"https://github.com/XJBlike/chat.git","svn_url":"https://github.com/XJBlike/chat","homepage":null,"size":7008,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":true,"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"}},"_links":{"self":{"href":"https://api.github.com/repos/XJBlike/chat/pulls/6"},"html":{"href":"https://github.com/XJBlike/chat/pull/6"},"issue":{"href":"https://api.github.com/repos/XJBlike/chat/issues/6"},"comments":{"href":"https://api.github.com/repos/XJBlike/chat/issues/6/comments"},"review_comments":{"href":"https://api.github.com/repos/XJBlike/chat/pulls/6/comments"},"review_comment":{"href":"https://api.github.com/repos/XJBlike/chat/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/XJBlike/chat/pulls/6/commits"},"statuses":{"href":"https://api.github.com/repos/XJBlike/chat/statuses/984414591db331d457f72d2e6ed30c86cfd4cc7b"}},"merged":true,"mergeable":null,"mergeable_state":"unknown","merged_by":{"login":"XJBlike","id":11458188,"avatar_url":"https://avatars.githubusercontent.com/u/11458188?v=3","gravatar_id":"","url":"https://api.github.com/users/XJBlike","html_url":"https://github.com/XJBlike","followers_url":"https://api.github.com/users/XJBlike/followers","following_url":"https://api.github.com/users/XJBlike/following{/other_user}","gists_url":"https://api.github.com/users/XJBlike/gists{/gist_id}","starred_url":"https://api.github.com/users/XJBlike/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/XJBlike/subscriptions","organizations_url":"https://api.github.com/users/XJBlike/orgs","repos_url":"https://api.github.com/users/XJBlike/repos","events_url":"https://api.github.com/users/XJBlike/events{/privacy}","received_events_url":"https://api.github.com/users/XJBlike/received_events","type":"User","site_admin":false},"comments":0,"review_comments":0,"commits":12,"additions":1651,"deletions":174,"changed_files":54}}