{"action":"closed","number":1811,"pull_request":{"url":"https://api.github.com/repos/rackt/react-router/pulls/1811","id":44079289,"html_url":"https://github.com/rackt/react-router/pull/1811","diff_url":"https://github.com/rackt/react-router/pull/1811.diff","patch_url":"https://github.com/rackt/react-router/pull/1811.patch","issue_url":"https://api.github.com/repos/rackt/react-router/issues/1811","number":1811,"state":"closed","locked":false,"title":"[added] Added decorator conversion for mixins, included Navigation example","user":{"login":"grgur","id":733074,"avatar_url":"https://avatars.githubusercontent.com/u/733074?v=3","gravatar_id":"","url":"https://api.github.com/users/grgur","html_url":"https://github.com/grgur","followers_url":"https://api.github.com/users/grgur/followers","following_url":"https://api.github.com/users/grgur/following{/other_user}","gists_url":"https://api.github.com/users/grgur/gists{/gist_id}","starred_url":"https://api.github.com/users/grgur/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/grgur/subscriptions","organizations_url":"https://api.github.com/users/grgur/orgs","repos_url":"https://api.github.com/users/grgur/repos","events_url":"https://api.github.com/users/grgur/events{/privacy}","received_events_url":"https://api.github.com/users/grgur/received_events","type":"User","site_admin":false},"body":"Mixin support for ES6 classes through ES7 decorators\r\n\r\nUsage:\r\n```\r\nimport { NavigationDecorator } from 'react-router';\r\n\r\n@NavigationDecorator\r\nexport default class Nav extends Component {\r\n\t// ...\t\r\n}\r\n```\r\n\r\nInternally I created `DecoratorUtils` with all the necessary logic. Converting a mixin to a decorator is a one-liner\r\n```\r\nexport const NavigationDecorator = createDecorator(Navigation); \r\n```\r\n","created_at":"2015-09-03T08:10:07Z","updated_at":"2015-09-11T17:34:09Z","closed_at":"2015-09-11T17:34:09Z","merged_at":null,"merge_commit_sha":"0ef177587ce8d3fbff888bc9251ed543e18c7c87","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/rackt/react-router/pulls/1811/commits","review_comments_url":"https://api.github.com/repos/rackt/react-router/pulls/1811/comments","review_comment_url":"https://api.github.com/repos/rackt/react-router/pulls/comments{/number}","comments_url":"https://api.github.com/repos/rackt/react-router/issues/1811/comments","statuses_url":"https://api.github.com/repos/rackt/react-router/statuses/fad7725b2e373622590d1e760db5d6115cffdab0","head":{"label":"grgur:master","ref":"master","sha":"fad7725b2e373622590d1e760db5d6115cffdab0","user":{"login":"grgur","id":733074,"avatar_url":"https://avatars.githubusercontent.com/u/733074?v=3","gravatar_id":"","url":"https://api.github.com/users/grgur","html_url":"https://github.com/grgur","followers_url":"https://api.github.com/users/grgur/followers","following_url":"https://api.github.com/users/grgur/following{/other_user}","gists_url":"https://api.github.com/users/grgur/gists{/gist_id}","starred_url":"https://api.github.com/users/grgur/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/grgur/subscriptions","organizations_url":"https://api.github.com/users/grgur/orgs","repos_url":"https://api.github.com/users/grgur/repos","events_url":"https://api.github.com/users/grgur/events{/privacy}","received_events_url":"https://api.github.com/users/grgur/received_events","type":"User","site_admin":false},"repo":{"id":41848322,"name":"react-router","full_name":"grgur/react-router","owner":{"login":"grgur","id":733074,"avatar_url":"https://avatars.githubusercontent.com/u/733074?v=3","gravatar_id":"","url":"https://api.github.com/users/grgur","html_url":"https://github.com/grgur","followers_url":"https://api.github.com/users/grgur/followers","following_url":"https://api.github.com/users/grgur/following{/other_user}","gists_url":"https://api.github.com/users/grgur/gists{/gist_id}","starred_url":"https://api.github.com/users/grgur/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/grgur/subscriptions","organizations_url":"https://api.github.com/users/grgur/orgs","repos_url":"https://api.github.com/users/grgur/repos","events_url":"https://api.github.com/users/grgur/events{/privacy}","received_events_url":"https://api.github.com/users/grgur/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/grgur/react-router","description":"A complete routing solution for React.js","fork":true,"url":"https://api.github.com/repos/grgur/react-router","forks_url":"https://api.github.com/repos/grgur/react-router/forks","keys_url":"https://api.github.com/repos/grgur/react-router/keys{/key_id}","collaborators_url":"https://api.github.com/repos/grgur/react-router/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/grgur/react-router/teams","hooks_url":"https://api.github.com/repos/grgur/react-router/hooks","issue_events_url":"https://api.github.com/repos/grgur/react-router/issues/events{/number}","events_url":"https://api.github.com/repos/grgur/react-router/events","assignees_url":"https://api.github.com/repos/grgur/react-router/assignees{/user}","branches_url":"https://api.github.com/repos/grgur/react-router/branches{/branch}","tags_url":"https://api.github.com/repos/grgur/react-router/tags","blobs_url":"https://api.github.com/repos/grgur/react-router/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/grgur/react-router/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/grgur/react-router/git/refs{/sha}","trees_url":"https://api.github.com/repos/grgur/react-router/git/trees{/sha}","statuses_url":"https://api.github.com/repos/grgur/react-router/statuses/{sha}","languages_url":"https://api.github.com/repos/grgur/react-router/languages","stargazers_url":"https://api.github.com/repos/grgur/react-router/stargazers","contributors_url":"https://api.github.com/repos/grgur/react-router/contributors","subscribers_url":"https://api.github.com/repos/grgur/react-router/subscribers","subscription_url":"https://api.github.com/repos/grgur/react-router/subscription","commits_url":"https://api.github.com/repos/grgur/react-router/commits{/sha}","git_commits_url":"https://api.github.com/repos/grgur/react-router/git/commits{/sha}","comments_url":"https://api.github.com/repos/grgur/react-router/comments{/number}","issue_comment_url":"https://api.github.com/repos/grgur/react-router/issues/comments{/number}","contents_url":"https://api.github.com/repos/grgur/react-router/contents/{+path}","compare_url":"https://api.github.com/repos/grgur/react-router/compare/{base}...{head}","merges_url":"https://api.github.com/repos/grgur/react-router/merges","archive_url":"https://api.github.com/repos/grgur/react-router/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/grgur/react-router/downloads","issues_url":"https://api.github.com/repos/grgur/react-router/issues{/number}","pulls_url":"https://api.github.com/repos/grgur/react-router/pulls{/number}","milestones_url":"https://api.github.com/repos/grgur/react-router/milestones{/number}","notifications_url":"https://api.github.com/repos/grgur/react-router/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/grgur/react-router/labels{/name}","releases_url":"https://api.github.com/repos/grgur/react-router/releases{/id}","created_at":"2015-09-03T07:58:17Z","updated_at":"2015-09-03T07:58:19Z","pushed_at":"2015-09-08T18:12:06Z","git_url":"git://github.com/grgur/react-router.git","ssh_url":"git@github.com:grgur/react-router.git","clone_url":"https://github.com/grgur/react-router.git","svn_url":"https://github.com/grgur/react-router","homepage":"http://rackt.github.io/react-router","size":4036,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":false,"has_downloads":true,"has_wiki":false,"has_pages":true,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"0.13.x"}},"base":{"label":"rackt:master","ref":"master","sha":"ffd042c9827cd7f5623b223eab17b5178df9e409","user":{"login":"rackt","id":8261421,"avatar_url":"https://avatars.githubusercontent.com/u/8261421?v=3","gravatar_id":"","url":"https://api.github.com/users/rackt","html_url":"https://github.com/rackt","followers_url":"https://api.github.com/users/rackt/followers","following_url":"https://api.github.com/users/rackt/following{/other_user}","gists_url":"https://api.github.com/users/rackt/gists{/gist_id}","starred_url":"https://api.github.com/users/rackt/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rackt/subscriptions","organizations_url":"https://api.github.com/users/rackt/orgs","repos_url":"https://api.github.com/users/rackt/repos","events_url":"https://api.github.com/users/rackt/events{/privacy}","received_events_url":"https://api.github.com/users/rackt/received_events","type":"Organization","site_admin":false},"repo":{"id":19872456,"name":"react-router","full_name":"rackt/react-router","owner":{"login":"rackt","id":8261421,"avatar_url":"https://avatars.githubusercontent.com/u/8261421?v=3","gravatar_id":"","url":"https://api.github.com/users/rackt","html_url":"https://github.com/rackt","followers_url":"https://api.github.com/users/rackt/followers","following_url":"https://api.github.com/users/rackt/following{/other_user}","gists_url":"https://api.github.com/users/rackt/gists{/gist_id}","starred_url":"https://api.github.com/users/rackt/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rackt/subscriptions","organizations_url":"https://api.github.com/users/rackt/orgs","repos_url":"https://api.github.com/users/rackt/repos","events_url":"https://api.github.com/users/rackt/events{/privacy}","received_events_url":"https://api.github.com/users/rackt/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/rackt/react-router","description":"A complete routing solution for React.js","fork":false,"url":"https://api.github.com/repos/rackt/react-router","forks_url":"https://api.github.com/repos/rackt/react-router/forks","keys_url":"https://api.github.com/repos/rackt/react-router/keys{/key_id}","collaborators_url":"https://api.github.com/repos/rackt/react-router/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/rackt/react-router/teams","hooks_url":"https://api.github.com/repos/rackt/react-router/hooks","issue_events_url":"https://api.github.com/repos/rackt/react-router/issues/events{/number}","events_url":"https://api.github.com/repos/rackt/react-router/events","assignees_url":"https://api.github.com/repos/rackt/react-router/assignees{/user}","branches_url":"https://api.github.com/repos/rackt/react-router/branches{/branch}","tags_url":"https://api.github.com/repos/rackt/react-router/tags","blobs_url":"https://api.github.com/repos/rackt/react-router/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/rackt/react-router/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/rackt/react-router/git/refs{/sha}","trees_url":"https://api.github.com/repos/rackt/react-router/git/trees{/sha}","statuses_url":"https://api.github.com/repos/rackt/react-router/statuses/{sha}","languages_url":"https://api.github.com/repos/rackt/react-router/languages","stargazers_url":"https://api.github.com/repos/rackt/react-router/stargazers","contributors_url":"https://api.github.com/repos/rackt/react-router/contributors","subscribers_url":"https://api.github.com/repos/rackt/react-router/subscribers","subscription_url":"https://api.github.com/repos/rackt/react-router/subscription","commits_url":"https://api.github.com/repos/rackt/react-router/commits{/sha}","git_commits_url":"https://api.github.com/repos/rackt/react-router/git/commits{/sha}","comments_url":"https://api.github.com/repos/rackt/react-router/comments{/number}","issue_comment_url":"https://api.github.com/repos/rackt/react-router/issues/comments{/number}","contents_url":"https://api.github.com/repos/rackt/react-router/contents/{+path}","compare_url":"https://api.github.com/repos/rackt/react-router/compare/{base}...{head}","merges_url":"https://api.github.com/repos/rackt/react-router/merges","archive_url":"https://api.github.com/repos/rackt/react-router/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/rackt/react-router/downloads","issues_url":"https://api.github.com/repos/rackt/react-router/issues{/number}","pulls_url":"https://api.github.com/repos/rackt/react-router/pulls{/number}","milestones_url":"https://api.github.com/repos/rackt/react-router/milestones{/number}","notifications_url":"https://api.github.com/repos/rackt/react-router/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/rackt/react-router/labels{/name}","releases_url":"https://api.github.com/repos/rackt/react-router/releases{/id}","created_at":"2014-05-16T22:22:51Z","updated_at":"2015-09-11T17:03:32Z","pushed_at":"2015-09-11T17:32:34Z","git_url":"git://github.com/rackt/react-router.git","ssh_url":"git@github.com:rackt/react-router.git","clone_url":"https://github.com/rackt/react-router.git","svn_url":"https://github.com/rackt/react-router","homepage":"http://rackt.github.io/react-router","size":10417,"stargazers_count":6350,"watchers_count":6350,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":true,"forks_count":1017,"mirror_url":null,"open_issues_count":15,"forks":1017,"open_issues":15,"watchers":6350,"default_branch":"0.13.x"}},"_links":{"self":{"href":"https://api.github.com/repos/rackt/react-router/pulls/1811"},"html":{"href":"https://github.com/rackt/react-router/pull/1811"},"issue":{"href":"https://api.github.com/repos/rackt/react-router/issues/1811"},"comments":{"href":"https://api.github.com/repos/rackt/react-router/issues/1811/comments"},"review_comments":{"href":"https://api.github.com/repos/rackt/react-router/pulls/1811/comments"},"review_comment":{"href":"https://api.github.com/repos/rackt/react-router/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/rackt/react-router/pulls/1811/commits"},"statuses":{"href":"https://api.github.com/repos/rackt/react-router/statuses/fad7725b2e373622590d1e760db5d6115cffdab0"}},"merged":false,"mergeable":false,"mergeable_state":"dirty","merged_by":null,"comments":8,"review_comments":0,"commits":68,"additions":1751,"deletions":966,"changed_files":73}}