{"action":"created","comment":{"url":"https://api.github.com/repos/fullstack-development/react-build-route-tree/pulls/comments/230109260","pull_request_review_id":170770602,"id":230109260,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDIzMDEwOTI2MA==","diff_hunk":"@@ -1 +1,56 @@\n-# react-build-route-tree\n\\ No newline at end of file\n+# react-build-route-tree\n+This library helps build a typed route tree for react\n+\n+## Installation\n+```sh\n+npm install @fsd/react-build-route-tree --save\n+```\n+```sh\n+yarn add @fsd/react-build-route-tree\n+```\n+## API\n+`buildRouteTree({ Object })` - a function that accepts the object of describing your routes tree and return an object with route keys.\n+\n+`getRoutePath('' | { string, boolean })` - a function that returns a structured route, may take params and insert it like .../:params/...\n+\n+`getRedirectPath('' | { string })` - a function that structures the route and redirects it, may take arguments such as uuid, etc. Returns an object with route keys and your arguments inside.\n+\n+`getElementKey()` - return a last part of your recourse from routes tree object.\n+## Usage\n+### Create routes tree object\n+```typescript\n+import buildRouteTree, { getParam } from 'shared/helpers/buildRouteTree';\n+\n+const rawTree = {\n+  preview: null,\n+  home: {\n+    loans: {\n+      uuid: getParam(null), // If you need to pass params at route","path":"README.md","position":30,"original_position":30,"commit_id":"f8fd17e8d7b7bc3b2412a37176346e807391025a","original_commit_id":"f8fd17e8d7b7bc3b2412a37176346e807391025a","user":{"login":"in19farkt","id":12945918,"node_id":"MDQ6VXNlcjEyOTQ1OTE4","avatar_url":"https://avatars3.githubusercontent.com/u/12945918?v=4","gravatar_id":"","url":"https://api.github.com/users/in19farkt","html_url":"https://github.com/in19farkt","followers_url":"https://api.github.com/users/in19farkt/followers","following_url":"https://api.github.com/users/in19farkt/following{/other_user}","gists_url":"https://api.github.com/users/in19farkt/gists{/gist_id}","starred_url":"https://api.github.com/users/in19farkt/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/in19farkt/subscriptions","organizations_url":"https://api.github.com/users/in19farkt/orgs","repos_url":"https://api.github.com/users/in19farkt/repos","events_url":"https://api.github.com/users/in19farkt/events{/privacy}","received_events_url":"https://api.github.com/users/in19farkt/received_events","type":"User","site_admin":false},"body":"я бы еще продемонстрировал возможность делать вложенные параметры","created_at":"2018-11-01T16:37:00Z","updated_at":"2018-11-01T16:41:57Z","html_url":"https://github.com/fullstack-development/react-build-route-tree/pull/1#discussion_r230109260","pull_request_url":"https://api.github.com/repos/fullstack-development/react-build-route-tree/pulls/1","author_association":"NONE","_links":{"self":{"href":"https://api.github.com/repos/fullstack-development/react-build-route-tree/pulls/comments/230109260"},"html":{"href":"https://github.com/fullstack-development/react-build-route-tree/pull/1#discussion_r230109260"},"pull_request":{"href":"https://api.github.com/repos/fullstack-development/react-build-route-tree/pulls/1"}}},"pull_request":{"url":"https://api.github.com/repos/fullstack-development/react-build-route-tree/pulls/1","id":227276844,"node_id":"MDExOlB1bGxSZXF1ZXN0MjI3Mjc2ODQ0","html_url":"https://github.com/fullstack-development/react-build-route-tree/pull/1","diff_url":"https://github.com/fullstack-development/react-build-route-tree/pull/1.diff","patch_url":"https://github.com/fullstack-development/react-build-route-tree/pull/1.patch","issue_url":"https://api.github.com/repos/fullstack-development/react-build-route-tree/issues/1","number":1,"state":"open","locked":false,"title":"Creating configuration for npm","user":{"login":"clicktronix","id":15245608,"node_id":"MDQ6VXNlcjE1MjQ1NjA4","avatar_url":"https://avatars3.githubusercontent.com/u/15245608?v=4","gravatar_id":"","url":"https://api.github.com/users/clicktronix","html_url":"https://github.com/clicktronix","followers_url":"https://api.github.com/users/clicktronix/followers","following_url":"https://api.github.com/users/clicktronix/following{/other_user}","gists_url":"https://api.github.com/users/clicktronix/gists{/gist_id}","starred_url":"https://api.github.com/users/clicktronix/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/clicktronix/subscriptions","organizations_url":"https://api.github.com/users/clicktronix/orgs","repos_url":"https://api.github.com/users/clicktronix/repos","events_url":"https://api.github.com/users/clicktronix/events{/privacy}","received_events_url":"https://api.github.com/users/clicktronix/received_events","type":"User","site_admin":false},"body":"@in19farkt @NikitaRzm посмотрите плз ридми, на правильность англ и может я упустил там что еще.","created_at":"2018-10-31T13:02:11Z","updated_at":"2018-11-01T16:41:57Z","closed_at":null,"merged_at":null,"merge_commit_sha":"ef8247056e822819caf85b1bf5d875b7bb9bbbd0","assignee":null,"assignees":[],"requested_reviewers":[{"login":"Gulyaev52","id":17755730,"node_id":"MDQ6VXNlcjE3NzU1NzMw","avatar_url":"https://avatars2.githubusercontent.com/u/17755730?v=4","gravatar_id":"","url":"https://api.github.com/users/Gulyaev52","html_url":"https://github.com/Gulyaev52","followers_url":"https://api.github.com/users/Gulyaev52/followers","following_url":"https://api.github.com/users/Gulyaev52/following{/other_user}","gists_url":"https://api.github.com/users/Gulyaev52/gists{/gist_id}","starred_url":"https://api.github.com/users/Gulyaev52/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Gulyaev52/subscriptions","organizations_url":"https://api.github.com/users/Gulyaev52/orgs","repos_url":"https://api.github.com/users/Gulyaev52/repos","events_url":"https://api.github.com/users/Gulyaev52/events{/privacy}","received_events_url":"https://api.github.com/users/Gulyaev52/received_events","type":"User","site_admin":false}],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/fullstack-development/react-build-route-tree/pulls/1/commits","review_comments_url":"https://api.github.com/repos/fullstack-development/react-build-route-tree/pulls/1/comments","review_comment_url":"https://api.github.com/repos/fullstack-development/react-build-route-tree/pulls/comments{/number}","comments_url":"https://api.github.com/repos/fullstack-development/react-build-route-tree/issues/1/comments","statuses_url":"https://api.github.com/repos/fullstack-development/react-build-route-tree/statuses/f8fd17e8d7b7bc3b2412a37176346e807391025a","head":{"label":"fullstack-development:development","ref":"development","sha":"f8fd17e8d7b7bc3b2412a37176346e807391025a","user":{"login":"fullstack-development","id":21096588,"node_id":"MDEyOk9yZ2FuaXphdGlvbjIxMDk2NTg4","avatar_url":"https://avatars0.githubusercontent.com/u/21096588?v=4","gravatar_id":"","url":"https://api.github.com/users/fullstack-development","html_url":"https://github.com/fullstack-development","followers_url":"https://api.github.com/users/fullstack-development/followers","following_url":"https://api.github.com/users/fullstack-development/following{/other_user}","gists_url":"https://api.github.com/users/fullstack-development/gists{/gist_id}","starred_url":"https://api.github.com/users/fullstack-development/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fullstack-development/subscriptions","organizations_url":"https://api.github.com/users/fullstack-development/orgs","repos_url":"https://api.github.com/users/fullstack-development/repos","events_url":"https://api.github.com/users/fullstack-development/events{/privacy}","received_events_url":"https://api.github.com/users/fullstack-development/received_events","type":"Organization","site_admin":false},"repo":{"id":155393516,"node_id":"MDEwOlJlcG9zaXRvcnkxNTUzOTM1MTY=","name":"react-build-route-tree","full_name":"fullstack-development/react-build-route-tree","private":false,"owner":{"login":"fullstack-development","id":21096588,"node_id":"MDEyOk9yZ2FuaXphdGlvbjIxMDk2NTg4","avatar_url":"https://avatars0.githubusercontent.com/u/21096588?v=4","gravatar_id":"","url":"https://api.github.com/users/fullstack-development","html_url":"https://github.com/fullstack-development","followers_url":"https://api.github.com/users/fullstack-development/followers","following_url":"https://api.github.com/users/fullstack-development/following{/other_user}","gists_url":"https://api.github.com/users/fullstack-development/gists{/gist_id}","starred_url":"https://api.github.com/users/fullstack-development/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fullstack-development/subscriptions","organizations_url":"https://api.github.com/users/fullstack-development/orgs","repos_url":"https://api.github.com/users/fullstack-development/repos","events_url":"https://api.github.com/users/fullstack-development/events{/privacy}","received_events_url":"https://api.github.com/users/fullstack-development/received_events","type":"Organization","site_admin":false},"html_url":"https://github.com/fullstack-development/react-build-route-tree","description":null,"fork":false,"url":"https://api.github.com/repos/fullstack-development/react-build-route-tree","forks_url":"https://api.github.com/repos/fullstack-development/react-build-route-tree/forks","keys_url":"https://api.github.com/repos/fullstack-development/react-build-route-tree/keys{/key_id}","collaborators_url":"https://api.github.com/repos/fullstack-development/react-build-route-tree/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/fullstack-development/react-build-route-tree/teams","hooks_url":"https://api.github.com/repos/fullstack-development/react-build-route-tree/hooks","issue_events_url":"https://api.github.com/repos/fullstack-development/react-build-route-tree/issues/events{/number}","events_url":"https://api.github.com/repos/fullstack-development/react-build-route-tree/events","assignees_url":"https://api.github.com/repos/fullstack-development/react-build-route-tree/assignees{/user}","branches_url":"https://api.github.com/repos/fullstack-development/react-build-route-tree/branches{/branch}","tags_url":"https://api.github.com/repos/fullstack-development/react-build-route-tree/tags","blobs_url":"https://api.github.com/repos/fullstack-development/react-build-route-tree/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/fullstack-development/react-build-route-tree/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/fullstack-development/react-build-route-tree/git/refs{/sha}","trees_url":"https://api.github.com/repos/fullstack-development/react-build-route-tree/git/trees{/sha}","statuses_url":"https://api.github.com/repos/fullstack-development/react-build-route-tree/statuses/{sha}","languages_url":"https://api.github.com/repos/fullstack-development/react-build-route-tree/languages","stargazers_url":"https://api.github.com/repos/fullstack-development/react-build-route-tree/stargazers","contributors_url":"https://api.github.com/repos/fullstack-development/react-build-route-tree/contributors","subscribers_url":"https://api.github.com/repos/fullstack-development/react-build-route-tree/subscribers","subscription_url":"https://api.github.com/repos/fullstack-development/react-build-route-tree/subscription","commits_url":"https://api.github.com/repos/fullstack-development/react-build-route-tree/commits{/sha}","git_commits_url":"https://api.github.com/repos/fullstack-development/react-build-route-tree/git/commits{/sha}","comments_url":"https://api.github.com/repos/fullstack-development/react-build-route-tree/comments{/number}","issue_comment_url":"https://api.github.com/repos/fullstack-development/react-build-route-tree/issues/comments{/number}","contents_url":"https://api.github.com/repos/fullstack-development/react-build-route-tree/contents/{+path}","compare_url":"https://api.github.com/repos/fullstack-development/react-build-route-tree/compare/{base}...{head}","merges_url":"https://api.github.com/repos/fullstack-development/react-build-route-tree/merges","archive_url":"https://api.github.com/repos/fullstack-development/react-build-route-tree/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/fullstack-development/react-build-route-tree/downloads","issues_url":"https://api.github.com/repos/fullstack-development/react-build-route-tree/issues{/number}","pulls_url":"https://api.github.com/repos/fullstack-development/react-build-route-tree/pulls{/number}","milestones_url":"https://api.github.com/repos/fullstack-development/react-build-route-tree/milestones{/number}","notifications_url":"https://api.github.com/repos/fullstack-development/react-build-route-tree/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/fullstack-development/react-build-route-tree/labels{/name}","releases_url":"https://api.github.com/repos/fullstack-development/react-build-route-tree/releases{/id}","deployments_url":"https://api.github.com/repos/fullstack-development/react-build-route-tree/deployments","created_at":"2018-10-30T13:52:16Z","updated_at":"2018-10-30T13:52:19Z","pushed_at":"2018-10-31T13:09:02Z","git_url":"git://github.com/fullstack-development/react-build-route-tree.git","ssh_url":"git@github.com:fullstack-development/react-build-route-tree.git","clone_url":"https://github.com/fullstack-development/react-build-route-tree.git","svn_url":"https://github.com/fullstack-development/react-build-route-tree","homepage":null,"size":7,"stargazers_count":0,"watchers_count":0,"language":null,"has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":1,"license":{"key":"mit","name":"MIT License","spdx_id":"MIT","url":"https://api.github.com/licenses/mit","node_id":"MDc6TGljZW5zZTEz"},"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"base":{"label":"fullstack-development:master","ref":"master","sha":"96afb0d29a92993030ac485f3a220111e26eac8a","user":{"login":"fullstack-development","id":21096588,"node_id":"MDEyOk9yZ2FuaXphdGlvbjIxMDk2NTg4","avatar_url":"https://avatars0.githubusercontent.com/u/21096588?v=4","gravatar_id":"","url":"https://api.github.com/users/fullstack-development","html_url":"https://github.com/fullstack-development","followers_url":"https://api.github.com/users/fullstack-development/followers","following_url":"https://api.github.com/users/fullstack-development/following{/other_user}","gists_url":"https://api.github.com/users/fullstack-development/gists{/gist_id}","starred_url":"https://api.github.com/users/fullstack-development/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fullstack-development/subscriptions","organizations_url":"https://api.github.com/users/fullstack-development/orgs","repos_url":"https://api.github.com/users/fullstack-development/repos","events_url":"https://api.github.com/users/fullstack-development/events{/privacy}","received_events_url":"https://api.github.com/users/fullstack-development/received_events","type":"Organization","site_admin":false},"repo":{"id":155393516,"node_id":"MDEwOlJlcG9zaXRvcnkxNTUzOTM1MTY=","name":"react-build-route-tree","full_name":"fullstack-development/react-build-route-tree","private":false,"owner":{"login":"fullstack-development","id":21096588,"node_id":"MDEyOk9yZ2FuaXphdGlvbjIxMDk2NTg4","avatar_url":"https://avatars0.githubusercontent.com/u/21096588?v=4","gravatar_id":"","url":"https://api.github.com/users/fullstack-development","html_url":"https://github.com/fullstack-development","followers_url":"https://api.github.com/users/fullstack-development/followers","following_url":"https://api.github.com/users/fullstack-development/following{/other_user}","gists_url":"https://api.github.com/users/fullstack-development/gists{/gist_id}","starred_url":"https://api.github.com/users/fullstack-development/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fullstack-development/subscriptions","organizations_url":"https://api.github.com/users/fullstack-development/orgs","repos_url":"https://api.github.com/users/fullstack-development/repos","events_url":"https://api.github.com/users/fullstack-development/events{/privacy}","received_events_url":"https://api.github.com/users/fullstack-development/received_events","type":"Organization","site_admin":false},"html_url":"https://github.com/fullstack-development/react-build-route-tree","description":null,"fork":false,"url":"https://api.github.com/repos/fullstack-development/react-build-route-tree","forks_url":"https://api.github.com/repos/fullstack-development/react-build-route-tree/forks","keys_url":"https://api.github.com/repos/fullstack-development/react-build-route-tree/keys{/key_id}","collaborators_url":"https://api.github.com/repos/fullstack-development/react-build-route-tree/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/fullstack-development/react-build-route-tree/teams","hooks_url":"https://api.github.com/repos/fullstack-development/react-build-route-tree/hooks","issue_events_url":"https://api.github.com/repos/fullstack-development/react-build-route-tree/issues/events{/number}","events_url":"https://api.github.com/repos/fullstack-development/react-build-route-tree/events","assignees_url":"https://api.github.com/repos/fullstack-development/react-build-route-tree/assignees{/user}","branches_url":"https://api.github.com/repos/fullstack-development/react-build-route-tree/branches{/branch}","tags_url":"https://api.github.com/repos/fullstack-development/react-build-route-tree/tags","blobs_url":"https://api.github.com/repos/fullstack-development/react-build-route-tree/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/fullstack-development/react-build-route-tree/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/fullstack-development/react-build-route-tree/git/refs{/sha}","trees_url":"https://api.github.com/repos/fullstack-development/react-build-route-tree/git/trees{/sha}","statuses_url":"https://api.github.com/repos/fullstack-development/react-build-route-tree/statuses/{sha}","languages_url":"https://api.github.com/repos/fullstack-development/react-build-route-tree/languages","stargazers_url":"https://api.github.com/repos/fullstack-development/react-build-route-tree/stargazers","contributors_url":"https://api.github.com/repos/fullstack-development/react-build-route-tree/contributors","subscribers_url":"https://api.github.com/repos/fullstack-development/react-build-route-tree/subscribers","subscription_url":"https://api.github.com/repos/fullstack-development/react-build-route-tree/subscription","commits_url":"https://api.github.com/repos/fullstack-development/react-build-route-tree/commits{/sha}","git_commits_url":"https://api.github.com/repos/fullstack-development/react-build-route-tree/git/commits{/sha}","comments_url":"https://api.github.com/repos/fullstack-development/react-build-route-tree/comments{/number}","issue_comment_url":"https://api.github.com/repos/fullstack-development/react-build-route-tree/issues/comments{/number}","contents_url":"https://api.github.com/repos/fullstack-development/react-build-route-tree/contents/{+path}","compare_url":"https://api.github.com/repos/fullstack-development/react-build-route-tree/compare/{base}...{head}","merges_url":"https://api.github.com/repos/fullstack-development/react-build-route-tree/merges","archive_url":"https://api.github.com/repos/fullstack-development/react-build-route-tree/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/fullstack-development/react-build-route-tree/downloads","issues_url":"https://api.github.com/repos/fullstack-development/react-build-route-tree/issues{/number}","pulls_url":"https://api.github.com/repos/fullstack-development/react-build-route-tree/pulls{/number}","milestones_url":"https://api.github.com/repos/fullstack-development/react-build-route-tree/milestones{/number}","notifications_url":"https://api.github.com/repos/fullstack-development/react-build-route-tree/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/fullstack-development/react-build-route-tree/labels{/name}","releases_url":"https://api.github.com/repos/fullstack-development/react-build-route-tree/releases{/id}","deployments_url":"https://api.github.com/repos/fullstack-development/react-build-route-tree/deployments","created_at":"2018-10-30T13:52:16Z","updated_at":"2018-10-30T13:52:19Z","pushed_at":"2018-10-31T13:09:02Z","git_url":"git://github.com/fullstack-development/react-build-route-tree.git","ssh_url":"git@github.com:fullstack-development/react-build-route-tree.git","clone_url":"https://github.com/fullstack-development/react-build-route-tree.git","svn_url":"https://github.com/fullstack-development/react-build-route-tree","homepage":null,"size":7,"stargazers_count":0,"watchers_count":0,"language":null,"has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":1,"license":{"key":"mit","name":"MIT License","spdx_id":"MIT","url":"https://api.github.com/licenses/mit","node_id":"MDc6TGljZW5zZTEz"},"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/fullstack-development/react-build-route-tree/pulls/1"},"html":{"href":"https://github.com/fullstack-development/react-build-route-tree/pull/1"},"issue":{"href":"https://api.github.com/repos/fullstack-development/react-build-route-tree/issues/1"},"comments":{"href":"https://api.github.com/repos/fullstack-development/react-build-route-tree/issues/1/comments"},"review_comments":{"href":"https://api.github.com/repos/fullstack-development/react-build-route-tree/pulls/1/comments"},"review_comment":{"href":"https://api.github.com/repos/fullstack-development/react-build-route-tree/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/fullstack-development/react-build-route-tree/pulls/1/commits"},"statuses":{"href":"https://api.github.com/repos/fullstack-development/react-build-route-tree/statuses/f8fd17e8d7b7bc3b2412a37176346e807391025a"}},"author_association":"COLLABORATOR"}}
{"actor":{"display_login":"in19farkt"}}