{"action":"created","issue":{"url":"https://api.github.com/repos/babel/babel.github.io/issues/195","repository_url":"https://api.github.com/repos/babel/babel.github.io","labels_url":"https://api.github.com/repos/babel/babel.github.io/issues/195/labels{/name}","comments_url":"https://api.github.com/repos/babel/babel.github.io/issues/195/comments","events_url":"https://api.github.com/repos/babel/babel.github.io/issues/195/events","html_url":"https://github.com/babel/babel.github.io/pull/195","id":63558001,"number":195,"title":"Add repl short url support for #66","user":{"login":"brigand","id":936069,"avatar_url":"https://avatars.githubusercontent.com/u/936069?v=3","gravatar_id":"","url":"https://api.github.com/users/brigand","html_url":"https://github.com/brigand","followers_url":"https://api.github.com/users/brigand/followers","following_url":"https://api.github.com/users/brigand/following{/other_user}","gists_url":"https://api.github.com/users/brigand/gists{/gist_id}","starred_url":"https://api.github.com/users/brigand/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/brigand/subscriptions","organizations_url":"https://api.github.com/users/brigand/orgs","repos_url":"https://api.github.com/users/brigand/repos","events_url":"https://api.github.com/users/brigand/events{/privacy}","received_events_url":"https://api.github.com/users/brigand/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-03-22T17:45:46Z","updated_at":"2016-03-20T01:43:21Z","closed_at":"2016-03-20T01:43:21Z","pull_request":{"url":"https://api.github.com/repos/babel/babel.github.io/pulls/195","html_url":"https://github.com/babel/babel.github.io/pull/195","diff_url":"https://github.com/babel/babel.github.io/pull/195.diff","patch_url":"https://github.com/babel/babel.github.io/pull/195.patch"},"body":"Edit: parse.com is shutting down within the year, so this PR doesn't make sense anymore.\r\n\r\n**WIP**\r\n - [x] functionality \r\n - [x] styling (useable, I'm not a designer)\r\n - [ ] update parse client id/key\r\n\r\nThis adds the ability to use 'short' urls with the repl.  Really they're not very short, but they are unique, persistent, and the length isn't dependant on the input.  The implementation uses Parse.com, but it could be swapped out with gists or similar in the future.\r\n\r\nExample URL:\r\n\r\n```\r\n/repl/#?short=dOWCPHsLgJ\r\n```\r\n\r\nI'm opening this before it's done so @sebmck can create an application in parse.com and give the client id/key.  Once one is saved with that id, you need to go into the data viewer and change the Class Level Permissions for ReplItem... they're very very permissive by default (like having direct database access on the client, permissive).\r\n\r\ne.g. if you named it 'babel-repl': https://parse.com/apps/babel-repl/collections#class/ReplItem\r\n\r\n![Class Level Permissions for ReplItem in parse.com UI](http://i.imgur.com/xDOc6lT.png)\r\n\r\nAnd then in settings on the top nav bar, switch it into production mode and disable client side class creation.\r\n\r\n![parse.com application settings screen](http://i.imgur.com/LSyo9b8.png)\r\n\r\nAfter that, it'll just work and we'll never hit the free limit.\r\n\r\n#66 "},"comment":{"url":"https://api.github.com/repos/babel/babel.github.io/issues/comments/198825358","html_url":"https://github.com/babel/babel.github.io/pull/195#issuecomment-198825358","issue_url":"https://api.github.com/repos/babel/babel.github.io/issues/195","id":198825358,"user":{"login":"brigand","id":936069,"avatar_url":"https://avatars.githubusercontent.com/u/936069?v=3","gravatar_id":"","url":"https://api.github.com/users/brigand","html_url":"https://github.com/brigand","followers_url":"https://api.github.com/users/brigand/followers","following_url":"https://api.github.com/users/brigand/following{/other_user}","gists_url":"https://api.github.com/users/brigand/gists{/gist_id}","starred_url":"https://api.github.com/users/brigand/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/brigand/subscriptions","organizations_url":"https://api.github.com/users/brigand/orgs","repos_url":"https://api.github.com/users/brigand/repos","events_url":"https://api.github.com/users/brigand/events{/privacy}","received_events_url":"https://api.github.com/users/brigand/received_events","type":"User","site_admin":false},"created_at":"2016-03-20T01:43:20Z","updated_at":"2016-03-20T01:43:20Z","body":"parse.com is shutting down within the year, so this PR doesn't make sense anymore."}}