{"action":"created","comment":{"url":"https://api.github.com/repos/coralproject/talk/pulls/comments/87096926","pull_request_review_id":7723001,"id":87096926,"diff_hunk":"@@ -0,0 +1,23 @@\n+import React from 'react';\n+import { Router, Route, Redirect, IndexRoute, browserHistory } from 'react-router';\n+\n+import ModerationQueue from 'containers/ModerationQueue'\n+import CommentStream from 'containers/CommentStream'\n+import EmbedLink from 'components/EmbedLink'\n+import Configure from 'containers/Configure'\n+import CommunityContainer from 'containers/CommunityContainer'\n+import LayoutContainer from 'containers/LayoutContainer'\n+\n+const routes = (\n+  <Route path='admin' component={LayoutContainer}>\n+    <IndexRoute component={ModerationQueue} />\n+    <Route path='embed' component={CommentStream} />\n+    <Route path='embedlink' component={EmbedLink} />\n+    <Route path='community' component={CommunityContainer} />\n+    <Route path='configure' component={Configure} />\n+  </Route>\n+);\n+\n+const AppRouter = () => <Router history={browserHistory} routes={routes} />;","path":"client/coral-admin/src/AppRouter.js","position":21,"original_position":21,"commit_id":"ad1d55557488989fa220b8c307f8cc6be0eeb738","original_commit_id":"ad1d55557488989fa220b8c307f8cc6be0eeb738","user":{"login":"impronunciable","id":165799,"avatar_url":"https://avatars.githubusercontent.com/u/165799?v=3","gravatar_id":"","url":"https://api.github.com/users/impronunciable","html_url":"https://github.com/impronunciable","followers_url":"https://api.github.com/users/impronunciable/followers","following_url":"https://api.github.com/users/impronunciable/following{/other_user}","gists_url":"https://api.github.com/users/impronunciable/gists{/gist_id}","starred_url":"https://api.github.com/users/impronunciable/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/impronunciable/subscriptions","organizations_url":"https://api.github.com/users/impronunciable/orgs","repos_url":"https://api.github.com/users/impronunciable/repos","events_url":"https://api.github.com/users/impronunciable/events{/privacy}","received_events_url":"https://api.github.com/users/impronunciable/received_events","type":"User","site_admin":false},"body":"you could just `export default` that function if you want","created_at":"2016-11-08T22:18:34Z","updated_at":"2016-11-08T22:22:20Z","html_url":"https://github.com/coralproject/talk/pull/38#discussion_r87096926","pull_request_url":"https://api.github.com/repos/coralproject/talk/pulls/38","_links":{"self":{"href":"https://api.github.com/repos/coralproject/talk/pulls/comments/87096926"},"html":{"href":"https://github.com/coralproject/talk/pull/38#discussion_r87096926"},"pull_request":{"href":"https://api.github.com/repos/coralproject/talk/pulls/38"}}},"pull_request":{"url":"https://api.github.com/repos/coralproject/talk/pulls/38","id":92867497,"html_url":"https://github.com/coralproject/talk/pull/38","diff_url":"https://github.com/coralproject/talk/pull/38.diff","patch_url":"https://github.com/coralproject/talk/pull/38.patch","issue_url":"https://api.github.com/repos/coralproject/talk/issues/38","number":38,"state":"open","locked":false,"title":"Routes and Layout Containers","user":{"login":"okbel","id":1401559,"avatar_url":"https://avatars.githubusercontent.com/u/1401559?v=3","gravatar_id":"","url":"https://api.github.com/users/okbel","html_url":"https://github.com/okbel","followers_url":"https://api.github.com/users/okbel/followers","following_url":"https://api.github.com/users/okbel/following{/other_user}","gists_url":"https://api.github.com/users/okbel/gists{/gist_id}","starred_url":"https://api.github.com/users/okbel/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/okbel/subscriptions","organizations_url":"https://api.github.com/users/okbel/orgs","repos_url":"https://api.github.com/users/okbel/repos","events_url":"https://api.github.com/users/okbel/events{/privacy}","received_events_url":"https://api.github.com/users/okbel/received_events","type":"User","site_admin":false},"body":"## What does this PR do?\r\n\r\n- Adds an AppRouter with Route nesting\r\n- Abstracts into a LayoutContainer, and a Layout (UI) so we have a consistent layout wrapper\r\n- Breaks Header and Drawer into UI componentes etc\r\n\r\n\r\n## How do I test this PR?\r\n- Run `npm run start` and `npm run build`\r\n- Test that every route works as expected in `http://localhost:3000`\r\n\r\n\r\n@coralproject/tech\r\n","created_at":"2016-11-08T21:58:56Z","updated_at":"2016-11-08T22:22:20Z","closed_at":null,"merged_at":null,"merge_commit_sha":"360e1d12914b5b91448641e18b285bfe76d272b7","assignee":{"login":"impronunciable","id":165799,"avatar_url":"https://avatars.githubusercontent.com/u/165799?v=3","gravatar_id":"","url":"https://api.github.com/users/impronunciable","html_url":"https://github.com/impronunciable","followers_url":"https://api.github.com/users/impronunciable/followers","following_url":"https://api.github.com/users/impronunciable/following{/other_user}","gists_url":"https://api.github.com/users/impronunciable/gists{/gist_id}","starred_url":"https://api.github.com/users/impronunciable/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/impronunciable/subscriptions","organizations_url":"https://api.github.com/users/impronunciable/orgs","repos_url":"https://api.github.com/users/impronunciable/repos","events_url":"https://api.github.com/users/impronunciable/events{/privacy}","received_events_url":"https://api.github.com/users/impronunciable/received_events","type":"User","site_admin":false},"assignees":[{"login":"impronunciable","id":165799,"avatar_url":"https://avatars.githubusercontent.com/u/165799?v=3","gravatar_id":"","url":"https://api.github.com/users/impronunciable","html_url":"https://github.com/impronunciable","followers_url":"https://api.github.com/users/impronunciable/followers","following_url":"https://api.github.com/users/impronunciable/following{/other_user}","gists_url":"https://api.github.com/users/impronunciable/gists{/gist_id}","starred_url":"https://api.github.com/users/impronunciable/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/impronunciable/subscriptions","organizations_url":"https://api.github.com/users/impronunciable/orgs","repos_url":"https://api.github.com/users/impronunciable/repos","events_url":"https://api.github.com/users/impronunciable/events{/privacy}","received_events_url":"https://api.github.com/users/impronunciable/received_events","type":"User","site_admin":false},{"login":"riley","id":282503,"avatar_url":"https://avatars.githubusercontent.com/u/282503?v=3","gravatar_id":"","url":"https://api.github.com/users/riley","html_url":"https://github.com/riley","followers_url":"https://api.github.com/users/riley/followers","following_url":"https://api.github.com/users/riley/following{/other_user}","gists_url":"https://api.github.com/users/riley/gists{/gist_id}","starred_url":"https://api.github.com/users/riley/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/riley/subscriptions","organizations_url":"https://api.github.com/users/riley/orgs","repos_url":"https://api.github.com/users/riley/repos","events_url":"https://api.github.com/users/riley/events{/privacy}","received_events_url":"https://api.github.com/users/riley/received_events","type":"User","site_admin":false},{"login":"davidgljay","id":680687,"avatar_url":"https://avatars.githubusercontent.com/u/680687?v=3","gravatar_id":"","url":"https://api.github.com/users/davidgljay","html_url":"https://github.com/davidgljay","followers_url":"https://api.github.com/users/davidgljay/followers","following_url":"https://api.github.com/users/davidgljay/following{/other_user}","gists_url":"https://api.github.com/users/davidgljay/gists{/gist_id}","starred_url":"https://api.github.com/users/davidgljay/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/davidgljay/subscriptions","organizations_url":"https://api.github.com/users/davidgljay/orgs","repos_url":"https://api.github.com/users/davidgljay/repos","events_url":"https://api.github.com/users/davidgljay/events{/privacy}","received_events_url":"https://api.github.com/users/davidgljay/received_events","type":"User","site_admin":false},{"login":"okbel","id":1401559,"avatar_url":"https://avatars.githubusercontent.com/u/1401559?v=3","gravatar_id":"","url":"https://api.github.com/users/okbel","html_url":"https://github.com/okbel","followers_url":"https://api.github.com/users/okbel/followers","following_url":"https://api.github.com/users/okbel/following{/other_user}","gists_url":"https://api.github.com/users/okbel/gists{/gist_id}","starred_url":"https://api.github.com/users/okbel/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/okbel/subscriptions","organizations_url":"https://api.github.com/users/okbel/orgs","repos_url":"https://api.github.com/users/okbel/repos","events_url":"https://api.github.com/users/okbel/events{/privacy}","received_events_url":"https://api.github.com/users/okbel/received_events","type":"User","site_admin":false}],"milestone":null,"commits_url":"https://api.github.com/repos/coralproject/talk/pulls/38/commits","review_comments_url":"https://api.github.com/repos/coralproject/talk/pulls/38/comments","review_comment_url":"https://api.github.com/repos/coralproject/talk/pulls/comments{/number}","comments_url":"https://api.github.com/repos/coralproject/talk/issues/38/comments","statuses_url":"https://api.github.com/repos/coralproject/talk/statuses/ad1d55557488989fa220b8c307f8cc6be0eeb738","head":{"label":"coralproject:community","ref":"community","sha":"ad1d55557488989fa220b8c307f8cc6be0eeb738","user":{"login":"coralproject","id":9255912,"avatar_url":"https://avatars.githubusercontent.com/u/9255912?v=3","gravatar_id":"","url":"https://api.github.com/users/coralproject","html_url":"https://github.com/coralproject","followers_url":"https://api.github.com/users/coralproject/followers","following_url":"https://api.github.com/users/coralproject/following{/other_user}","gists_url":"https://api.github.com/users/coralproject/gists{/gist_id}","starred_url":"https://api.github.com/users/coralproject/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/coralproject/subscriptions","organizations_url":"https://api.github.com/users/coralproject/orgs","repos_url":"https://api.github.com/users/coralproject/repos","events_url":"https://api.github.com/users/coralproject/events{/privacy}","received_events_url":"https://api.github.com/users/coralproject/received_events","type":"Organization","site_admin":false},"repo":{"id":72454242,"name":"talk","full_name":"coralproject/talk","owner":{"login":"coralproject","id":9255912,"avatar_url":"https://avatars.githubusercontent.com/u/9255912?v=3","gravatar_id":"","url":"https://api.github.com/users/coralproject","html_url":"https://github.com/coralproject","followers_url":"https://api.github.com/users/coralproject/followers","following_url":"https://api.github.com/users/coralproject/following{/other_user}","gists_url":"https://api.github.com/users/coralproject/gists{/gist_id}","starred_url":"https://api.github.com/users/coralproject/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/coralproject/subscriptions","organizations_url":"https://api.github.com/users/coralproject/orgs","repos_url":"https://api.github.com/users/coralproject/repos","events_url":"https://api.github.com/users/coralproject/events{/privacy}","received_events_url":"https://api.github.com/users/coralproject/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/coralproject/talk","description":"A commenting platform from The Coral Project.","fork":false,"url":"https://api.github.com/repos/coralproject/talk","forks_url":"https://api.github.com/repos/coralproject/talk/forks","keys_url":"https://api.github.com/repos/coralproject/talk/keys{/key_id}","collaborators_url":"https://api.github.com/repos/coralproject/talk/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/coralproject/talk/teams","hooks_url":"https://api.github.com/repos/coralproject/talk/hooks","issue_events_url":"https://api.github.com/repos/coralproject/talk/issues/events{/number}","events_url":"https://api.github.com/repos/coralproject/talk/events","assignees_url":"https://api.github.com/repos/coralproject/talk/assignees{/user}","branches_url":"https://api.github.com/repos/coralproject/talk/branches{/branch}","tags_url":"https://api.github.com/repos/coralproject/talk/tags","blobs_url":"https://api.github.com/repos/coralproject/talk/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/coralproject/talk/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/coralproject/talk/git/refs{/sha}","trees_url":"https://api.github.com/repos/coralproject/talk/git/trees{/sha}","statuses_url":"https://api.github.com/repos/coralproject/talk/statuses/{sha}","languages_url":"https://api.github.com/repos/coralproject/talk/languages","stargazers_url":"https://api.github.com/repos/coralproject/talk/stargazers","contributors_url":"https://api.github.com/repos/coralproject/talk/contributors","subscribers_url":"https://api.github.com/repos/coralproject/talk/subscribers","subscription_url":"https://api.github.com/repos/coralproject/talk/subscription","commits_url":"https://api.github.com/repos/coralproject/talk/commits{/sha}","git_commits_url":"https://api.github.com/repos/coralproject/talk/git/commits{/sha}","comments_url":"https://api.github.com/repos/coralproject/talk/comments{/number}","issue_comment_url":"https://api.github.com/repos/coralproject/talk/issues/comments{/number}","contents_url":"https://api.github.com/repos/coralproject/talk/contents/{+path}","compare_url":"https://api.github.com/repos/coralproject/talk/compare/{base}...{head}","merges_url":"https://api.github.com/repos/coralproject/talk/merges","archive_url":"https://api.github.com/repos/coralproject/talk/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/coralproject/talk/downloads","issues_url":"https://api.github.com/repos/coralproject/talk/issues{/number}","pulls_url":"https://api.github.com/repos/coralproject/talk/pulls{/number}","milestones_url":"https://api.github.com/repos/coralproject/talk/milestones{/number}","notifications_url":"https://api.github.com/repos/coralproject/talk/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/coralproject/talk/labels{/name}","releases_url":"https://api.github.com/repos/coralproject/talk/releases{/id}","deployments_url":"https://api.github.com/repos/coralproject/talk/deployments","created_at":"2016-10-31T16:14:05Z","updated_at":"2016-11-02T20:52:45Z","pushed_at":"2016-11-08T22:16:37Z","git_url":"git://github.com/coralproject/talk.git","ssh_url":"git@github.com:coralproject/talk.git","clone_url":"https://github.com/coralproject/talk.git","svn_url":"https://github.com/coralproject/talk","homepage":"https://coralproject.net","size":344,"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":3,"forks":0,"open_issues":3,"watchers":0,"default_branch":"master"}},"base":{"label":"coralproject:master","ref":"master","sha":"5270aefe6a1013359032ab59d3d5acc56185cbcd","user":{"login":"coralproject","id":9255912,"avatar_url":"https://avatars.githubusercontent.com/u/9255912?v=3","gravatar_id":"","url":"https://api.github.com/users/coralproject","html_url":"https://github.com/coralproject","followers_url":"https://api.github.com/users/coralproject/followers","following_url":"https://api.github.com/users/coralproject/following{/other_user}","gists_url":"https://api.github.com/users/coralproject/gists{/gist_id}","starred_url":"https://api.github.com/users/coralproject/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/coralproject/subscriptions","organizations_url":"https://api.github.com/users/coralproject/orgs","repos_url":"https://api.github.com/users/coralproject/repos","events_url":"https://api.github.com/users/coralproject/events{/privacy}","received_events_url":"https://api.github.com/users/coralproject/received_events","type":"Organization","site_admin":false},"repo":{"id":72454242,"name":"talk","full_name":"coralproject/talk","owner":{"login":"coralproject","id":9255912,"avatar_url":"https://avatars.githubusercontent.com/u/9255912?v=3","gravatar_id":"","url":"https://api.github.com/users/coralproject","html_url":"https://github.com/coralproject","followers_url":"https://api.github.com/users/coralproject/followers","following_url":"https://api.github.com/users/coralproject/following{/other_user}","gists_url":"https://api.github.com/users/coralproject/gists{/gist_id}","starred_url":"https://api.github.com/users/coralproject/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/coralproject/subscriptions","organizations_url":"https://api.github.com/users/coralproject/orgs","repos_url":"https://api.github.com/users/coralproject/repos","events_url":"https://api.github.com/users/coralproject/events{/privacy}","received_events_url":"https://api.github.com/users/coralproject/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/coralproject/talk","description":"A commenting platform from The Coral Project.","fork":false,"url":"https://api.github.com/repos/coralproject/talk","forks_url":"https://api.github.com/repos/coralproject/talk/forks","keys_url":"https://api.github.com/repos/coralproject/talk/keys{/key_id}","collaborators_url":"https://api.github.com/repos/coralproject/talk/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/coralproject/talk/teams","hooks_url":"https://api.github.com/repos/coralproject/talk/hooks","issue_events_url":"https://api.github.com/repos/coralproject/talk/issues/events{/number}","events_url":"https://api.github.com/repos/coralproject/talk/events","assignees_url":"https://api.github.com/repos/coralproject/talk/assignees{/user}","branches_url":"https://api.github.com/repos/coralproject/talk/branches{/branch}","tags_url":"https://api.github.com/repos/coralproject/talk/tags","blobs_url":"https://api.github.com/repos/coralproject/talk/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/coralproject/talk/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/coralproject/talk/git/refs{/sha}","trees_url":"https://api.github.com/repos/coralproject/talk/git/trees{/sha}","statuses_url":"https://api.github.com/repos/coralproject/talk/statuses/{sha}","languages_url":"https://api.github.com/repos/coralproject/talk/languages","stargazers_url":"https://api.github.com/repos/coralproject/talk/stargazers","contributors_url":"https://api.github.com/repos/coralproject/talk/contributors","subscribers_url":"https://api.github.com/repos/coralproject/talk/subscribers","subscription_url":"https://api.github.com/repos/coralproject/talk/subscription","commits_url":"https://api.github.com/repos/coralproject/talk/commits{/sha}","git_commits_url":"https://api.github.com/repos/coralproject/talk/git/commits{/sha}","comments_url":"https://api.github.com/repos/coralproject/talk/comments{/number}","issue_comment_url":"https://api.github.com/repos/coralproject/talk/issues/comments{/number}","contents_url":"https://api.github.com/repos/coralproject/talk/contents/{+path}","compare_url":"https://api.github.com/repos/coralproject/talk/compare/{base}...{head}","merges_url":"https://api.github.com/repos/coralproject/talk/merges","archive_url":"https://api.github.com/repos/coralproject/talk/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/coralproject/talk/downloads","issues_url":"https://api.github.com/repos/coralproject/talk/issues{/number}","pulls_url":"https://api.github.com/repos/coralproject/talk/pulls{/number}","milestones_url":"https://api.github.com/repos/coralproject/talk/milestones{/number}","notifications_url":"https://api.github.com/repos/coralproject/talk/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/coralproject/talk/labels{/name}","releases_url":"https://api.github.com/repos/coralproject/talk/releases{/id}","deployments_url":"https://api.github.com/repos/coralproject/talk/deployments","created_at":"2016-10-31T16:14:05Z","updated_at":"2016-11-02T20:52:45Z","pushed_at":"2016-11-08T22:16:37Z","git_url":"git://github.com/coralproject/talk.git","ssh_url":"git@github.com:coralproject/talk.git","clone_url":"https://github.com/coralproject/talk.git","svn_url":"https://github.com/coralproject/talk","homepage":"https://coralproject.net","size":344,"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":3,"forks":0,"open_issues":3,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/coralproject/talk/pulls/38"},"html":{"href":"https://github.com/coralproject/talk/pull/38"},"issue":{"href":"https://api.github.com/repos/coralproject/talk/issues/38"},"comments":{"href":"https://api.github.com/repos/coralproject/talk/issues/38/comments"},"review_comments":{"href":"https://api.github.com/repos/coralproject/talk/pulls/38/comments"},"review_comment":{"href":"https://api.github.com/repos/coralproject/talk/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/coralproject/talk/pulls/38/commits"},"statuses":{"href":"https://api.github.com/repos/coralproject/talk/statuses/ad1d55557488989fa220b8c307f8cc6be0eeb738"}}}}
{"actor":{"display_login":"impronunciable"}}