{"action":"created","comment":{"url":"https://api.github.com/repos/ppy/osu-web/pulls/comments/62455855","id":62455855,"diff_hunk":"@@ -0,0 +1,119 @@\n+###\n+# Copyright 2016 ppy Pty. Ltd.\n+#\n+# This file is part of osu!web. osu!web is distributed with the hope of\n+# attracting more community contributions to the core ecosystem of osu!.\n+#\n+# osu!web is free software: you can redistribute it and/or modify\n+# it under the terms of the Affero GNU General Public License version 3\n+# as published by the Free Software Foundation.\n+#\n+# osu!web is distributed WITHOUT ANY WARRANTY; without even the implied\n+# warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.\n+# See the GNU Affero General Public License for more details.\n+#\n+# You should have received a copy of the GNU Affero General Public License\n+# along with osu!web.  If not, see <http://www.gnu.org/licenses/>.\n+###\n+{div} = React.DOM\n+el = React.createElement\n+\n+BeatmapsetPage.Main = React.createClass\n+  mixins: [ScrollingPageMixin]\n+\n+  getInitialState: ->\n+    optionsHash = BeatmapsetPageHash.parse location.hash\n+    @initialPage = optionsHash.page\n+\n+    currentMode = if optionsHash.mode then parseInt optionsHash.mode, 10 else @props.displayedBeatmap\n+\n+    currentMode: currentMode\n+    currentPlaymode: @props.beatmaps[currentMode].mode","path":"resources/assets/coffee/react/beatmapset-page/main.coffee","position":31,"original_position":31,"commit_id":"f517ea7e5abb27d6a58fea265b5ea42f8cc44738","original_commit_id":"f517ea7e5abb27d6a58fea265b5ea42f8cc44738","user":{"login":"nanaya","id":276295,"avatar_url":"https://avatars.githubusercontent.com/u/276295?v=3","gravatar_id":"","url":"https://api.github.com/users/nanaya","html_url":"https://github.com/nanaya","followers_url":"https://api.github.com/users/nanaya/followers","following_url":"https://api.github.com/users/nanaya/following{/other_user}","gists_url":"https://api.github.com/users/nanaya/gists{/gist_id}","starred_url":"https://api.github.com/users/nanaya/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nanaya/subscriptions","organizations_url":"https://api.github.com/users/nanaya/orgs","repos_url":"https://api.github.com/users/nanaya/repos","events_url":"https://api.github.com/users/nanaya/events{/privacy}","received_events_url":"https://api.github.com/users/nanaya/received_events","type":"User","site_admin":false},"body":"missing check to ensure `currentMode` is valid.\r\n\r\n(and why is it called `currentMode` when it actually is `currentBeatmapId`?)","created_at":"2016-05-09T06:56:05Z","updated_at":"2016-05-09T06:56:05Z","html_url":"https://github.com/ppy/osu-web/pull/470#discussion_r62455855","pull_request_url":"https://api.github.com/repos/ppy/osu-web/pulls/470","_links":{"self":{"href":"https://api.github.com/repos/ppy/osu-web/pulls/comments/62455855"},"html":{"href":"https://github.com/ppy/osu-web/pull/470#discussion_r62455855"},"pull_request":{"href":"https://api.github.com/repos/ppy/osu-web/pulls/470"}}},"pull_request":{"url":"https://api.github.com/repos/ppy/osu-web/pulls/470","id":66613507,"html_url":"https://github.com/ppy/osu-web/pull/470","diff_url":"https://github.com/ppy/osu-web/pull/470.diff","patch_url":"https://github.com/ppy/osu-web/pull/470.patch","issue_url":"https://api.github.com/repos/ppy/osu-web/issues/470","number":470,"state":"open","locked":false,"title":"Beatmapset page","user":{"login":"LiquidPL","id":991831,"avatar_url":"https://avatars.githubusercontent.com/u/991831?v=3","gravatar_id":"","url":"https://api.github.com/users/LiquidPL","html_url":"https://github.com/LiquidPL","followers_url":"https://api.github.com/users/LiquidPL/followers","following_url":"https://api.github.com/users/LiquidPL/following{/other_user}","gists_url":"https://api.github.com/users/LiquidPL/gists{/gist_id}","starred_url":"https://api.github.com/users/LiquidPL/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/LiquidPL/subscriptions","organizations_url":"https://api.github.com/users/LiquidPL/orgs","repos_url":"https://api.github.com/users/LiquidPL/repos","events_url":"https://api.github.com/users/LiquidPL/events{/privacy}","received_events_url":"https://api.github.com/users/LiquidPL/received_events","type":"User","site_admin":false},"body":"_fixes #466 yadda yadda_\r\n\r\nStuff done:\r\n* beatmapset page\r\n* reorganized certain profile page css classes to be reusable across pages\r\n* moved all profile page css to bem while at it\r\n\r\nThings to consider:\r\n* The no video toggle looks ugly af when downscaled to @1x\r\n* There is still no way to tell the client to download through osu!direct on a per song basis (i mean, through an `osu://` link)\r\n* There was a hidden [beatmap rating](http://puu.sh/oiTN5.png) within the psd. Should this be implemented too?\r\n* The [error thingy](http://puu.sh/oiTGP.png) displayed when a non-supporter tries to retrieve the country/friend rankings might need a design.\r\n* I don't like the way how URLs are hardcoded in a CoffeeScript class. I recall bringing up an issue (#422 iirc) suggesting using a helper for retrieving Laravel routes, similarly to what we have now in locales. How about doing that?","created_at":"2016-04-15T09:25:02Z","updated_at":"2016-05-09T06:56:05Z","closed_at":null,"merged_at":null,"merge_commit_sha":"774e63a76920f71743ac11b27889707103aac440","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/ppy/osu-web/pulls/470/commits","review_comments_url":"https://api.github.com/repos/ppy/osu-web/pulls/470/comments","review_comment_url":"https://api.github.com/repos/ppy/osu-web/pulls/comments{/number}","comments_url":"https://api.github.com/repos/ppy/osu-web/issues/470/comments","statuses_url":"https://api.github.com/repos/ppy/osu-web/statuses/f517ea7e5abb27d6a58fea265b5ea42f8cc44738","head":{"label":"LiquidPL:beatmap-page","ref":"beatmap-page","sha":"f517ea7e5abb27d6a58fea265b5ea42f8cc44738","user":{"login":"LiquidPL","id":991831,"avatar_url":"https://avatars.githubusercontent.com/u/991831?v=3","gravatar_id":"","url":"https://api.github.com/users/LiquidPL","html_url":"https://github.com/LiquidPL","followers_url":"https://api.github.com/users/LiquidPL/followers","following_url":"https://api.github.com/users/LiquidPL/following{/other_user}","gists_url":"https://api.github.com/users/LiquidPL/gists{/gist_id}","starred_url":"https://api.github.com/users/LiquidPL/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/LiquidPL/subscriptions","organizations_url":"https://api.github.com/users/LiquidPL/orgs","repos_url":"https://api.github.com/users/LiquidPL/repos","events_url":"https://api.github.com/users/LiquidPL/events{/privacy}","received_events_url":"https://api.github.com/users/LiquidPL/received_events","type":"User","site_admin":false},"repo":{"id":43460292,"name":"osu-web","full_name":"LiquidPL/osu-web","owner":{"login":"LiquidPL","id":991831,"avatar_url":"https://avatars.githubusercontent.com/u/991831?v=3","gravatar_id":"","url":"https://api.github.com/users/LiquidPL","html_url":"https://github.com/LiquidPL","followers_url":"https://api.github.com/users/LiquidPL/followers","following_url":"https://api.github.com/users/LiquidPL/following{/other_user}","gists_url":"https://api.github.com/users/LiquidPL/gists{/gist_id}","starred_url":"https://api.github.com/users/LiquidPL/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/LiquidPL/subscriptions","organizations_url":"https://api.github.com/users/LiquidPL/orgs","repos_url":"https://api.github.com/users/LiquidPL/repos","events_url":"https://api.github.com/users/LiquidPL/events{/privacy}","received_events_url":"https://api.github.com/users/LiquidPL/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/LiquidPL/osu-web","description":"the future face of osu!","fork":true,"url":"https://api.github.com/repos/LiquidPL/osu-web","forks_url":"https://api.github.com/repos/LiquidPL/osu-web/forks","keys_url":"https://api.github.com/repos/LiquidPL/osu-web/keys{/key_id}","collaborators_url":"https://api.github.com/repos/LiquidPL/osu-web/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/LiquidPL/osu-web/teams","hooks_url":"https://api.github.com/repos/LiquidPL/osu-web/hooks","issue_events_url":"https://api.github.com/repos/LiquidPL/osu-web/issues/events{/number}","events_url":"https://api.github.com/repos/LiquidPL/osu-web/events","assignees_url":"https://api.github.com/repos/LiquidPL/osu-web/assignees{/user}","branches_url":"https://api.github.com/repos/LiquidPL/osu-web/branches{/branch}","tags_url":"https://api.github.com/repos/LiquidPL/osu-web/tags","blobs_url":"https://api.github.com/repos/LiquidPL/osu-web/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/LiquidPL/osu-web/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/LiquidPL/osu-web/git/refs{/sha}","trees_url":"https://api.github.com/repos/LiquidPL/osu-web/git/trees{/sha}","statuses_url":"https://api.github.com/repos/LiquidPL/osu-web/statuses/{sha}","languages_url":"https://api.github.com/repos/LiquidPL/osu-web/languages","stargazers_url":"https://api.github.com/repos/LiquidPL/osu-web/stargazers","contributors_url":"https://api.github.com/repos/LiquidPL/osu-web/contributors","subscribers_url":"https://api.github.com/repos/LiquidPL/osu-web/subscribers","subscription_url":"https://api.github.com/repos/LiquidPL/osu-web/subscription","commits_url":"https://api.github.com/repos/LiquidPL/osu-web/commits{/sha}","git_commits_url":"https://api.github.com/repos/LiquidPL/osu-web/git/commits{/sha}","comments_url":"https://api.github.com/repos/LiquidPL/osu-web/comments{/number}","issue_comment_url":"https://api.github.com/repos/LiquidPL/osu-web/issues/comments{/number}","contents_url":"https://api.github.com/repos/LiquidPL/osu-web/contents/{+path}","compare_url":"https://api.github.com/repos/LiquidPL/osu-web/compare/{base}...{head}","merges_url":"https://api.github.com/repos/LiquidPL/osu-web/merges","archive_url":"https://api.github.com/repos/LiquidPL/osu-web/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/LiquidPL/osu-web/downloads","issues_url":"https://api.github.com/repos/LiquidPL/osu-web/issues{/number}","pulls_url":"https://api.github.com/repos/LiquidPL/osu-web/pulls{/number}","milestones_url":"https://api.github.com/repos/LiquidPL/osu-web/milestones{/number}","notifications_url":"https://api.github.com/repos/LiquidPL/osu-web/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/LiquidPL/osu-web/labels{/name}","releases_url":"https://api.github.com/repos/LiquidPL/osu-web/releases{/id}","deployments_url":"https://api.github.com/repos/LiquidPL/osu-web/deployments","created_at":"2015-09-30T21:28:53Z","updated_at":"2016-04-16T17:37:57Z","pushed_at":"2016-05-07T18:26:14Z","git_url":"git://github.com/LiquidPL/osu-web.git","ssh_url":"git@github.com:LiquidPL/osu-web.git","clone_url":"https://github.com/LiquidPL/osu-web.git","svn_url":"https://github.com/LiquidPL/osu-web","homepage":null,"size":21999,"stargazers_count":0,"watchers_count":0,"language":"PHP","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":"ppy:master","ref":"master","sha":"7c02b3afd39f480f9f1934727c26b9f2ea6e3ef8","user":{"login":"ppy","id":995763,"avatar_url":"https://avatars.githubusercontent.com/u/995763?v=3","gravatar_id":"","url":"https://api.github.com/users/ppy","html_url":"https://github.com/ppy","followers_url":"https://api.github.com/users/ppy/followers","following_url":"https://api.github.com/users/ppy/following{/other_user}","gists_url":"https://api.github.com/users/ppy/gists{/gist_id}","starred_url":"https://api.github.com/users/ppy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ppy/subscriptions","organizations_url":"https://api.github.com/users/ppy/orgs","repos_url":"https://api.github.com/users/ppy/repos","events_url":"https://api.github.com/users/ppy/events{/privacy}","received_events_url":"https://api.github.com/users/ppy/received_events","type":"Organization","site_admin":false},"repo":{"id":41410580,"name":"osu-web","full_name":"ppy/osu-web","owner":{"login":"ppy","id":995763,"avatar_url":"https://avatars.githubusercontent.com/u/995763?v=3","gravatar_id":"","url":"https://api.github.com/users/ppy","html_url":"https://github.com/ppy","followers_url":"https://api.github.com/users/ppy/followers","following_url":"https://api.github.com/users/ppy/following{/other_user}","gists_url":"https://api.github.com/users/ppy/gists{/gist_id}","starred_url":"https://api.github.com/users/ppy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ppy/subscriptions","organizations_url":"https://api.github.com/users/ppy/orgs","repos_url":"https://api.github.com/users/ppy/repos","events_url":"https://api.github.com/users/ppy/events{/privacy}","received_events_url":"https://api.github.com/users/ppy/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/ppy/osu-web","description":"the future face of osu!","fork":false,"url":"https://api.github.com/repos/ppy/osu-web","forks_url":"https://api.github.com/repos/ppy/osu-web/forks","keys_url":"https://api.github.com/repos/ppy/osu-web/keys{/key_id}","collaborators_url":"https://api.github.com/repos/ppy/osu-web/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/ppy/osu-web/teams","hooks_url":"https://api.github.com/repos/ppy/osu-web/hooks","issue_events_url":"https://api.github.com/repos/ppy/osu-web/issues/events{/number}","events_url":"https://api.github.com/repos/ppy/osu-web/events","assignees_url":"https://api.github.com/repos/ppy/osu-web/assignees{/user}","branches_url":"https://api.github.com/repos/ppy/osu-web/branches{/branch}","tags_url":"https://api.github.com/repos/ppy/osu-web/tags","blobs_url":"https://api.github.com/repos/ppy/osu-web/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/ppy/osu-web/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/ppy/osu-web/git/refs{/sha}","trees_url":"https://api.github.com/repos/ppy/osu-web/git/trees{/sha}","statuses_url":"https://api.github.com/repos/ppy/osu-web/statuses/{sha}","languages_url":"https://api.github.com/repos/ppy/osu-web/languages","stargazers_url":"https://api.github.com/repos/ppy/osu-web/stargazers","contributors_url":"https://api.github.com/repos/ppy/osu-web/contributors","subscribers_url":"https://api.github.com/repos/ppy/osu-web/subscribers","subscription_url":"https://api.github.com/repos/ppy/osu-web/subscription","commits_url":"https://api.github.com/repos/ppy/osu-web/commits{/sha}","git_commits_url":"https://api.github.com/repos/ppy/osu-web/git/commits{/sha}","comments_url":"https://api.github.com/repos/ppy/osu-web/comments{/number}","issue_comment_url":"https://api.github.com/repos/ppy/osu-web/issues/comments{/number}","contents_url":"https://api.github.com/repos/ppy/osu-web/contents/{+path}","compare_url":"https://api.github.com/repos/ppy/osu-web/compare/{base}...{head}","merges_url":"https://api.github.com/repos/ppy/osu-web/merges","archive_url":"https://api.github.com/repos/ppy/osu-web/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/ppy/osu-web/downloads","issues_url":"https://api.github.com/repos/ppy/osu-web/issues{/number}","pulls_url":"https://api.github.com/repos/ppy/osu-web/pulls{/number}","milestones_url":"https://api.github.com/repos/ppy/osu-web/milestones{/number}","notifications_url":"https://api.github.com/repos/ppy/osu-web/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/ppy/osu-web/labels{/name}","releases_url":"https://api.github.com/repos/ppy/osu-web/releases{/id}","deployments_url":"https://api.github.com/repos/ppy/osu-web/deployments","created_at":"2015-08-26T07:14:32Z","updated_at":"2016-05-06T15:22:37Z","pushed_at":"2016-05-08T08:45:29Z","git_url":"git://github.com/ppy/osu-web.git","ssh_url":"git@github.com:ppy/osu-web.git","clone_url":"https://github.com/ppy/osu-web.git","svn_url":"https://github.com/ppy/osu-web","homepage":null,"size":22763,"stargazers_count":153,"watchers_count":153,"language":"PHP","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":51,"mirror_url":null,"open_issues_count":61,"forks":51,"open_issues":61,"watchers":153,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/ppy/osu-web/pulls/470"},"html":{"href":"https://github.com/ppy/osu-web/pull/470"},"issue":{"href":"https://api.github.com/repos/ppy/osu-web/issues/470"},"comments":{"href":"https://api.github.com/repos/ppy/osu-web/issues/470/comments"},"review_comments":{"href":"https://api.github.com/repos/ppy/osu-web/pulls/470/comments"},"review_comment":{"href":"https://api.github.com/repos/ppy/osu-web/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/ppy/osu-web/pulls/470/commits"},"statuses":{"href":"https://api.github.com/repos/ppy/osu-web/statuses/f517ea7e5abb27d6a58fea265b5ea42f8cc44738"}}}}