{"action":"created","comment":{"url":"https://api.github.com/repos/openpitrix/dashboard/pulls/comments/215534538","pull_request_review_id":152776102,"id":215534538,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDIxNTUzNDUzOA==","diff_hunk":"@@ -0,0 +1,199 @@\n+import React, { Component, Fragment } from 'react';\n+import { observer, inject } from 'mobx-react';\n+import classNames from 'classnames';\n+import { translate } from 'react-i18next';\n+\n+import { Icon, Button, Upload } from 'components/Base';\n+import Layout, { Grid } from 'components/Layout';\n+import RepoList from './RepoList';\n+import StepContent from './StepContent';\n+\n+import styles from './index.scss';\n+\n+@translate()\n+@inject(({ rootStore }) => ({\n+  repoStore: rootStore.repoStore,\n+  appCreateStore: rootStore.appCreateStore\n+}))\n+@observer\n+export default class AppAdd extends Component {\n+  static async onEnter({ repoStore }) {\n+    await repoStore.fetchAll();\n+  }\n+\n+  constructor(props) {\n+    super(props);\n+\n+    const setFileStatus = (file, fileStatus) => {\n+      const fileId = file.uid;\n+      const currentFile = this.state.files[fileId];\n+      this.setState({\n+        files: Object.assign({}, this.state.files, {\n+          [fileId]: Object.assign({}, currentFile, fileStatus)\n+        })\n+      });\n+    };\n+\n+    this.uploaderProps = {\n+      name: 'foo',\n+      action: '/api/upload',\n+      data: { a: 1, b: 2 },\n+      multiple: true,\n+      headers: {\n+        authorization: 'authorization-text'","path":"src/pages/Admin/Apps/Add/index.jsx","position":43,"original_position":43,"commit_id":"9827f713c0554284ca63ab0139ea627097e29f22","original_commit_id":"9827f713c0554284ca63ab0139ea627097e29f22","user":{"login":"iwisunny","id":4971916,"node_id":"MDQ6VXNlcjQ5NzE5MTY=","avatar_url":"https://avatars2.githubusercontent.com/u/4971916?v=4","gravatar_id":"","url":"https://api.github.com/users/iwisunny","html_url":"https://github.com/iwisunny","followers_url":"https://api.github.com/users/iwisunny/followers","following_url":"https://api.github.com/users/iwisunny/following{/other_user}","gists_url":"https://api.github.com/users/iwisunny/gists{/gist_id}","starred_url":"https://api.github.com/users/iwisunny/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/iwisunny/subscriptions","organizations_url":"https://api.github.com/users/iwisunny/orgs","repos_url":"https://api.github.com/users/iwisunny/repos","events_url":"https://api.github.com/users/iwisunny/events{/privacy}","received_events_url":"https://api.github.com/users/iwisunny/received_events","type":"User","site_admin":false},"body":"is this `authorization-text` a valid header ?","created_at":"2018-09-06T08:17:43Z","updated_at":"2018-09-06T08:17:47Z","html_url":"https://github.com/openpitrix/dashboard/pull/305#discussion_r215534538","pull_request_url":"https://api.github.com/repos/openpitrix/dashboard/pulls/305","author_association":"CONTRIBUTOR","_links":{"self":{"href":"https://api.github.com/repos/openpitrix/dashboard/pulls/comments/215534538"},"html":{"href":"https://github.com/openpitrix/dashboard/pull/305#discussion_r215534538"},"pull_request":{"href":"https://api.github.com/repos/openpitrix/dashboard/pulls/305"}}},"pull_request":{"url":"https://api.github.com/repos/openpitrix/dashboard/pulls/305","id":211071653,"node_id":"MDExOlB1bGxSZXF1ZXN0MjExMDcxNjUz","html_url":"https://github.com/openpitrix/dashboard/pull/305","diff_url":"https://github.com/openpitrix/dashboard/pull/305.diff","patch_url":"https://github.com/openpitrix/dashboard/pull/305.patch","issue_url":"https://api.github.com/repos/openpitrix/dashboard/issues/305","number":305,"state":"open","locked":false,"title":"feat: Add app create and detail page","user":{"login":"whDongRui","id":38676269,"node_id":"MDQ6VXNlcjM4Njc2MjY5","avatar_url":"https://avatars1.githubusercontent.com/u/38676269?v=4","gravatar_id":"","url":"https://api.github.com/users/whDongRui","html_url":"https://github.com/whDongRui","followers_url":"https://api.github.com/users/whDongRui/followers","following_url":"https://api.github.com/users/whDongRui/following{/other_user}","gists_url":"https://api.github.com/users/whDongRui/gists{/gist_id}","starred_url":"https://api.github.com/users/whDongRui/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/whDongRui/subscriptions","organizations_url":"https://api.github.com/users/whDongRui/orgs","repos_url":"https://api.github.com/users/whDongRui/repos","events_url":"https://api.github.com/users/whDongRui/events{/privacy}","received_events_url":"https://api.github.com/users/whDongRui/received_events","type":"User","site_admin":false},"body":"","created_at":"2018-08-27T10:42:30Z","updated_at":"2018-09-06T08:17:47Z","closed_at":null,"merged_at":null,"merge_commit_sha":"d46533c4b22ea7e8359e85b6365cc13cdadda7f8","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/openpitrix/dashboard/pulls/305/commits","review_comments_url":"https://api.github.com/repos/openpitrix/dashboard/pulls/305/comments","review_comment_url":"https://api.github.com/repos/openpitrix/dashboard/pulls/comments{/number}","comments_url":"https://api.github.com/repos/openpitrix/dashboard/issues/305/comments","statuses_url":"https://api.github.com/repos/openpitrix/dashboard/statuses/9827f713c0554284ca63ab0139ea627097e29f22","head":{"label":"whDongRui:create/app","ref":"create/app","sha":"9827f713c0554284ca63ab0139ea627097e29f22","user":{"login":"whDongRui","id":38676269,"node_id":"MDQ6VXNlcjM4Njc2MjY5","avatar_url":"https://avatars1.githubusercontent.com/u/38676269?v=4","gravatar_id":"","url":"https://api.github.com/users/whDongRui","html_url":"https://github.com/whDongRui","followers_url":"https://api.github.com/users/whDongRui/followers","following_url":"https://api.github.com/users/whDongRui/following{/other_user}","gists_url":"https://api.github.com/users/whDongRui/gists{/gist_id}","starred_url":"https://api.github.com/users/whDongRui/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/whDongRui/subscriptions","organizations_url":"https://api.github.com/users/whDongRui/orgs","repos_url":"https://api.github.com/users/whDongRui/repos","events_url":"https://api.github.com/users/whDongRui/events{/privacy}","received_events_url":"https://api.github.com/users/whDongRui/received_events","type":"User","site_admin":false},"repo":{"id":130804122,"node_id":"MDEwOlJlcG9zaXRvcnkxMzA4MDQxMjI=","name":"dashboard","full_name":"whDongRui/dashboard","owner":{"login":"whDongRui","id":38676269,"node_id":"MDQ6VXNlcjM4Njc2MjY5","avatar_url":"https://avatars1.githubusercontent.com/u/38676269?v=4","gravatar_id":"","url":"https://api.github.com/users/whDongRui","html_url":"https://github.com/whDongRui","followers_url":"https://api.github.com/users/whDongRui/followers","following_url":"https://api.github.com/users/whDongRui/following{/other_user}","gists_url":"https://api.github.com/users/whDongRui/gists{/gist_id}","starred_url":"https://api.github.com/users/whDongRui/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/whDongRui/subscriptions","organizations_url":"https://api.github.com/users/whDongRui/orgs","repos_url":"https://api.github.com/users/whDongRui/repos","events_url":"https://api.github.com/users/whDongRui/events{/privacy}","received_events_url":"https://api.github.com/users/whDongRui/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/whDongRui/dashboard","description":"OpenPitrix Dashboard","fork":true,"url":"https://api.github.com/repos/whDongRui/dashboard","forks_url":"https://api.github.com/repos/whDongRui/dashboard/forks","keys_url":"https://api.github.com/repos/whDongRui/dashboard/keys{/key_id}","collaborators_url":"https://api.github.com/repos/whDongRui/dashboard/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/whDongRui/dashboard/teams","hooks_url":"https://api.github.com/repos/whDongRui/dashboard/hooks","issue_events_url":"https://api.github.com/repos/whDongRui/dashboard/issues/events{/number}","events_url":"https://api.github.com/repos/whDongRui/dashboard/events","assignees_url":"https://api.github.com/repos/whDongRui/dashboard/assignees{/user}","branches_url":"https://api.github.com/repos/whDongRui/dashboard/branches{/branch}","tags_url":"https://api.github.com/repos/whDongRui/dashboard/tags","blobs_url":"https://api.github.com/repos/whDongRui/dashboard/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/whDongRui/dashboard/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/whDongRui/dashboard/git/refs{/sha}","trees_url":"https://api.github.com/repos/whDongRui/dashboard/git/trees{/sha}","statuses_url":"https://api.github.com/repos/whDongRui/dashboard/statuses/{sha}","languages_url":"https://api.github.com/repos/whDongRui/dashboard/languages","stargazers_url":"https://api.github.com/repos/whDongRui/dashboard/stargazers","contributors_url":"https://api.github.com/repos/whDongRui/dashboard/contributors","subscribers_url":"https://api.github.com/repos/whDongRui/dashboard/subscribers","subscription_url":"https://api.github.com/repos/whDongRui/dashboard/subscription","commits_url":"https://api.github.com/repos/whDongRui/dashboard/commits{/sha}","git_commits_url":"https://api.github.com/repos/whDongRui/dashboard/git/commits{/sha}","comments_url":"https://api.github.com/repos/whDongRui/dashboard/comments{/number}","issue_comment_url":"https://api.github.com/repos/whDongRui/dashboard/issues/comments{/number}","contents_url":"https://api.github.com/repos/whDongRui/dashboard/contents/{+path}","compare_url":"https://api.github.com/repos/whDongRui/dashboard/compare/{base}...{head}","merges_url":"https://api.github.com/repos/whDongRui/dashboard/merges","archive_url":"https://api.github.com/repos/whDongRui/dashboard/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/whDongRui/dashboard/downloads","issues_url":"https://api.github.com/repos/whDongRui/dashboard/issues{/number}","pulls_url":"https://api.github.com/repos/whDongRui/dashboard/pulls{/number}","milestones_url":"https://api.github.com/repos/whDongRui/dashboard/milestones{/number}","notifications_url":"https://api.github.com/repos/whDongRui/dashboard/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/whDongRui/dashboard/labels{/name}","releases_url":"https://api.github.com/repos/whDongRui/dashboard/releases{/id}","deployments_url":"https://api.github.com/repos/whDongRui/dashboard/deployments","created_at":"2018-04-24T06:03:45Z","updated_at":"2018-08-23T04:10:04Z","pushed_at":"2018-09-06T03:56:59Z","git_url":"git://github.com/whDongRui/dashboard.git","ssh_url":"git@github.com:whDongRui/dashboard.git","clone_url":"https://github.com/whDongRui/dashboard.git","svn_url":"https://github.com/whDongRui/dashboard","homepage":null,"size":10414,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":0,"license":{"key":"apache-2.0","name":"Apache License 2.0","spdx_id":"Apache-2.0","url":"https://api.github.com/licenses/apache-2.0","node_id":"MDc6TGljZW5zZTI="},"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"openpitrix:master","ref":"master","sha":"acb0e25d80a0b9d94b8caaf44d2299693690c4b0","user":{"login":"openpitrix","id":32669950,"node_id":"MDEyOk9yZ2FuaXphdGlvbjMyNjY5OTUw","avatar_url":"https://avatars3.githubusercontent.com/u/32669950?v=4","gravatar_id":"","url":"https://api.github.com/users/openpitrix","html_url":"https://github.com/openpitrix","followers_url":"https://api.github.com/users/openpitrix/followers","following_url":"https://api.github.com/users/openpitrix/following{/other_user}","gists_url":"https://api.github.com/users/openpitrix/gists{/gist_id}","starred_url":"https://api.github.com/users/openpitrix/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/openpitrix/subscriptions","organizations_url":"https://api.github.com/users/openpitrix/orgs","repos_url":"https://api.github.com/users/openpitrix/repos","events_url":"https://api.github.com/users/openpitrix/events{/privacy}","received_events_url":"https://api.github.com/users/openpitrix/received_events","type":"Organization","site_admin":false},"repo":{"id":116115049,"node_id":"MDEwOlJlcG9zaXRvcnkxMTYxMTUwNDk=","name":"dashboard","full_name":"openpitrix/dashboard","owner":{"login":"openpitrix","id":32669950,"node_id":"MDEyOk9yZ2FuaXphdGlvbjMyNjY5OTUw","avatar_url":"https://avatars3.githubusercontent.com/u/32669950?v=4","gravatar_id":"","url":"https://api.github.com/users/openpitrix","html_url":"https://github.com/openpitrix","followers_url":"https://api.github.com/users/openpitrix/followers","following_url":"https://api.github.com/users/openpitrix/following{/other_user}","gists_url":"https://api.github.com/users/openpitrix/gists{/gist_id}","starred_url":"https://api.github.com/users/openpitrix/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/openpitrix/subscriptions","organizations_url":"https://api.github.com/users/openpitrix/orgs","repos_url":"https://api.github.com/users/openpitrix/repos","events_url":"https://api.github.com/users/openpitrix/events{/privacy}","received_events_url":"https://api.github.com/users/openpitrix/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/openpitrix/dashboard","description":"A Dashboard UI for OpenPitrix","fork":false,"url":"https://api.github.com/repos/openpitrix/dashboard","forks_url":"https://api.github.com/repos/openpitrix/dashboard/forks","keys_url":"https://api.github.com/repos/openpitrix/dashboard/keys{/key_id}","collaborators_url":"https://api.github.com/repos/openpitrix/dashboard/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/openpitrix/dashboard/teams","hooks_url":"https://api.github.com/repos/openpitrix/dashboard/hooks","issue_events_url":"https://api.github.com/repos/openpitrix/dashboard/issues/events{/number}","events_url":"https://api.github.com/repos/openpitrix/dashboard/events","assignees_url":"https://api.github.com/repos/openpitrix/dashboard/assignees{/user}","branches_url":"https://api.github.com/repos/openpitrix/dashboard/branches{/branch}","tags_url":"https://api.github.com/repos/openpitrix/dashboard/tags","blobs_url":"https://api.github.com/repos/openpitrix/dashboard/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/openpitrix/dashboard/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/openpitrix/dashboard/git/refs{/sha}","trees_url":"https://api.github.com/repos/openpitrix/dashboard/git/trees{/sha}","statuses_url":"https://api.github.com/repos/openpitrix/dashboard/statuses/{sha}","languages_url":"https://api.github.com/repos/openpitrix/dashboard/languages","stargazers_url":"https://api.github.com/repos/openpitrix/dashboard/stargazers","contributors_url":"https://api.github.com/repos/openpitrix/dashboard/contributors","subscribers_url":"https://api.github.com/repos/openpitrix/dashboard/subscribers","subscription_url":"https://api.github.com/repos/openpitrix/dashboard/subscription","commits_url":"https://api.github.com/repos/openpitrix/dashboard/commits{/sha}","git_commits_url":"https://api.github.com/repos/openpitrix/dashboard/git/commits{/sha}","comments_url":"https://api.github.com/repos/openpitrix/dashboard/comments{/number}","issue_comment_url":"https://api.github.com/repos/openpitrix/dashboard/issues/comments{/number}","contents_url":"https://api.github.com/repos/openpitrix/dashboard/contents/{+path}","compare_url":"https://api.github.com/repos/openpitrix/dashboard/compare/{base}...{head}","merges_url":"https://api.github.com/repos/openpitrix/dashboard/merges","archive_url":"https://api.github.com/repos/openpitrix/dashboard/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/openpitrix/dashboard/downloads","issues_url":"https://api.github.com/repos/openpitrix/dashboard/issues{/number}","pulls_url":"https://api.github.com/repos/openpitrix/dashboard/pulls{/number}","milestones_url":"https://api.github.com/repos/openpitrix/dashboard/milestones{/number}","notifications_url":"https://api.github.com/repos/openpitrix/dashboard/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/openpitrix/dashboard/labels{/name}","releases_url":"https://api.github.com/repos/openpitrix/dashboard/releases{/id}","deployments_url":"https://api.github.com/repos/openpitrix/dashboard/deployments","created_at":"2018-01-03T08:57:29Z","updated_at":"2018-09-06T05:13:56Z","pushed_at":"2018-09-06T08:00:30Z","git_url":"git://github.com/openpitrix/dashboard.git","ssh_url":"git@github.com:openpitrix/dashboard.git","clone_url":"https://github.com/openpitrix/dashboard.git","svn_url":"https://github.com/openpitrix/dashboard","homepage":"","size":10295,"stargazers_count":13,"watchers_count":13,"language":"JavaScript","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":6,"mirror_url":null,"archived":false,"open_issues_count":13,"license":{"key":"apache-2.0","name":"Apache License 2.0","spdx_id":"Apache-2.0","url":"https://api.github.com/licenses/apache-2.0","node_id":"MDc6TGljZW5zZTI="},"forks":6,"open_issues":13,"watchers":13,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/openpitrix/dashboard/pulls/305"},"html":{"href":"https://github.com/openpitrix/dashboard/pull/305"},"issue":{"href":"https://api.github.com/repos/openpitrix/dashboard/issues/305"},"comments":{"href":"https://api.github.com/repos/openpitrix/dashboard/issues/305/comments"},"review_comments":{"href":"https://api.github.com/repos/openpitrix/dashboard/pulls/305/comments"},"review_comment":{"href":"https://api.github.com/repos/openpitrix/dashboard/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/openpitrix/dashboard/pulls/305/commits"},"statuses":{"href":"https://api.github.com/repos/openpitrix/dashboard/statuses/9827f713c0554284ca63ab0139ea627097e29f22"}},"author_association":"CONTRIBUTOR"}}
{"actor":{"display_login":"iwisunny"}}