{"action":"created","comment":{"url":"https://api.github.com/repos/openpitrix/dashboard/pulls/comments/243791070","pull_request_review_id":187650818,"id":243791070,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDI0Mzc5MTA3MA==","diff_hunk":"@@ -0,0 +1,139 @@\n+import React, { Component } from 'react';\n+import { observer, inject } from 'mobx-react';\n+import { Link } from 'react-router-dom';\n+import { translate } from 'react-i18next';\n+import classnames from 'classnames';\n+\n+import { Table } from 'components/Base';\n+import Layout from 'components/Layout';\n+import Status from 'components/Status';\n+\n+import providers from '../mock/applications';\n+\n+import styles from './index.scss';\n+\n+const types = [\n+  { name: 'Processed', value: 'processed' },\n+  { name: 'Unprocessed', value: 'unprocessed' }\n+];\n+\n+@translate()\n+@inject(({ rootStore }) => ({\n+  rootStore\n+}))\n+@observer\n+export default class Applications extends Component {\n+  constructor(props) {\n+    super(props);\n+\n+    this.state = {\n+      activeType: 'processed'\n+    };\n+  }\n+\n+  async componentDidMount() {}\n+\n+  changeType = type => {\n+    const { activeType } = this.state;\n+\n+    if (type !== activeType) {","path":"src/pages/Dashboard/Providers/Applications/index.jsx","position":39,"original_position":39,"commit_id":"5c1d983fdfd9f13f7fa1f8203aa4ab90dd681703","original_commit_id":"784428d01e7a2e47b1c7aa56ce756f02892ed394","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":"If no check , there will maybe send unnecessary request when the active type is click type.","created_at":"2018-12-24T06:35:46Z","updated_at":"2018-12-24T06:35:46Z","html_url":"https://github.com/openpitrix/dashboard/pull/602#discussion_r243791070","pull_request_url":"https://api.github.com/repos/openpitrix/dashboard/pulls/602","author_association":"CONTRIBUTOR","_links":{"self":{"href":"https://api.github.com/repos/openpitrix/dashboard/pulls/comments/243791070"},"html":{"href":"https://github.com/openpitrix/dashboard/pull/602#discussion_r243791070"},"pull_request":{"href":"https://api.github.com/repos/openpitrix/dashboard/pulls/602"}},"in_reply_to_id":243790393},"pull_request":{"url":"https://api.github.com/repos/openpitrix/dashboard/pulls/602","id":240120725,"node_id":"MDExOlB1bGxSZXF1ZXN0MjQwMTIwNzI1","html_url":"https://github.com/openpitrix/dashboard/pull/602","diff_url":"https://github.com/openpitrix/dashboard/pull/602.diff","patch_url":"https://github.com/openpitrix/dashboard/pull/602.patch","issue_url":"https://api.github.com/repos/openpitrix/dashboard/issues/602","number":602,"state":"open","locked":false,"title":"feat: Add providers and apply static pages","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-12-20T10:28:11Z","updated_at":"2018-12-24T06:35:46Z","closed_at":null,"merged_at":null,"merge_commit_sha":"973aa73a05d8a07b17aa3a29f42feca06c63b0ab","assignee":null,"assignees":[],"requested_reviewers":[{"login":"liiil825","id":4237052,"node_id":"MDQ6VXNlcjQyMzcwNTI=","avatar_url":"https://avatars3.githubusercontent.com/u/4237052?v=4","gravatar_id":"","url":"https://api.github.com/users/liiil825","html_url":"https://github.com/liiil825","followers_url":"https://api.github.com/users/liiil825/followers","following_url":"https://api.github.com/users/liiil825/following{/other_user}","gists_url":"https://api.github.com/users/liiil825/gists{/gist_id}","starred_url":"https://api.github.com/users/liiil825/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/liiil825/subscriptions","organizations_url":"https://api.github.com/users/liiil825/orgs","repos_url":"https://api.github.com/users/liiil825/repos","events_url":"https://api.github.com/users/liiil825/events{/privacy}","received_events_url":"https://api.github.com/users/liiil825/received_events","type":"User","site_admin":false}],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/openpitrix/dashboard/pulls/602/commits","review_comments_url":"https://api.github.com/repos/openpitrix/dashboard/pulls/602/comments","review_comment_url":"https://api.github.com/repos/openpitrix/dashboard/pulls/comments{/number}","comments_url":"https://api.github.com/repos/openpitrix/dashboard/issues/602/comments","statuses_url":"https://api.github.com/repos/openpitrix/dashboard/statuses/5c1d983fdfd9f13f7fa1f8203aa4ab90dd681703","head":{"label":"whDongRui:new/providers","ref":"new/providers","sha":"5c1d983fdfd9f13f7fa1f8203aa4ab90dd681703","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","private":false,"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},"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-12-24T06:25: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":11674,"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":"97006783a47900017cca78b0d4cbdc5618fe88d7","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","private":false,"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},"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-12-24T06:16:03Z","pushed_at":"2018-12-24T06:26:01Z","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":11448,"stargazers_count":16,"watchers_count":16,"language":"JavaScript","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":9,"mirror_url":null,"archived":false,"open_issues_count":18,"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":9,"open_issues":18,"watchers":16,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/openpitrix/dashboard/pulls/602"},"html":{"href":"https://github.com/openpitrix/dashboard/pull/602"},"issue":{"href":"https://api.github.com/repos/openpitrix/dashboard/issues/602"},"comments":{"href":"https://api.github.com/repos/openpitrix/dashboard/issues/602/comments"},"review_comments":{"href":"https://api.github.com/repos/openpitrix/dashboard/pulls/602/comments"},"review_comment":{"href":"https://api.github.com/repos/openpitrix/dashboard/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/openpitrix/dashboard/pulls/602/commits"},"statuses":{"href":"https://api.github.com/repos/openpitrix/dashboard/statuses/5c1d983fdfd9f13f7fa1f8203aa4ab90dd681703"}},"author_association":"CONTRIBUTOR"}}
{"actor":{"display_login":"whDongRui"}}