conjur-asset-ui 1.4.2 → 1.6.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (211) hide show
  1. checksums.yaml +4 -4
  2. data/.gitignore +8 -3
  3. data/CHANGELOG.md +10 -0
  4. data/Makefile +19 -0
  5. data/README.md +0 -3
  6. data/Rakefile +22 -17
  7. data/TODO.md +0 -23
  8. data/app/.csscomb.json +304 -0
  9. data/app/.eslintignore +3 -0
  10. data/app/.eslintrc +265 -0
  11. data/app/config/preprocessor.js +19 -0
  12. data/app/config/webpack.js +124 -0
  13. data/app/gulpfile.js +96 -0
  14. data/app/package.json +86 -0
  15. data/app/src/actions.js +550 -0
  16. data/app/src/app.js +83 -0
  17. data/app/src/clients/audit.js +34 -0
  18. data/app/src/clients/auth.js +24 -0
  19. data/app/src/clients/generic.js +52 -0
  20. data/app/src/clients/graph.js +7 -0
  21. data/app/src/clients/layer_members.js +18 -0
  22. data/app/src/clients/list.js +31 -0
  23. data/app/src/clients/members.js +20 -0
  24. data/app/src/clients/request.js +531 -0
  25. data/app/src/clients/search.js +5 -0
  26. data/app/src/components/app/__tests__/app-test.js +22 -0
  27. data/app/src/components/app/app.js +36 -0
  28. data/app/src/components/app/wrapper.js +17 -0
  29. data/app/src/components/audit/__tests__/table_header-test.js +22 -0
  30. data/app/src/components/audit/box.js +9 -0
  31. data/app/src/components/audit/constants.js +5 -0
  32. data/app/src/components/audit/entry.js +105 -0
  33. data/app/src/components/audit/fields_mixin.js +11 -0
  34. data/app/src/components/audit/humanize_event.js +213 -0
  35. data/app/src/components/audit/table.js +64 -0
  36. data/app/src/components/audit/table_header.js +37 -0
  37. data/app/src/components/audit/timestamp.js +28 -0
  38. data/app/src/components/auth/login.js +177 -0
  39. data/app/src/components/auth/login.less +71 -0
  40. data/app/src/components/auth/logout.js +42 -0
  41. data/app/src/components/auth/logout.less +21 -0
  42. data/app/src/components/chart/chart.js +540 -0
  43. data/app/src/components/chart/chart_helper_mixin.js +78 -0
  44. data/app/src/components/custom/list.js +3 -0
  45. data/app/src/components/custom/view.js +81 -0
  46. data/app/src/components/dashboard/activity.js +144 -0
  47. data/app/src/components/dashboard/dashboard.js +46 -0
  48. data/app/src/components/flash/flash.js +98 -0
  49. data/app/src/components/flash/flash.less +3 -0
  50. data/app/src/components/generic/__tests__/time-test.js +42 -0
  51. data/app/src/components/generic/annotations.js +39 -0
  52. data/app/src/components/generic/breadcrumbs.js +57 -0
  53. data/app/src/components/generic/foldable_audit_section.js +204 -0
  54. data/app/src/components/generic/list.js +141 -0
  55. data/app/src/components/generic/list_factory.js +41 -0
  56. data/app/src/components/generic/resource_link.js +64 -0
  57. data/app/src/components/generic/role_link.js +66 -0
  58. data/app/src/components/generic/tab_mixin.js +146 -0
  59. data/app/src/components/generic/time.js +32 -0
  60. data/app/src/components/graph/__tests__/collapse-test.js +133 -0
  61. data/app/src/components/graph/__tests__/edges-from-vertices-test.js +48 -0
  62. data/app/src/components/graph/__tests__/new-vertex-set-test.js +16 -0
  63. data/app/src/components/graph/__tests__/next-id-test.js +27 -0
  64. data/app/src/components/graph/__tests__/role-kind-from-id-test.js +24 -0
  65. data/app/src/components/graph/__tests__/vertices-from-edges-test.js +72 -0
  66. data/app/src/components/graph/graph.js +449 -0
  67. data/app/src/components/graph/graph.less +39 -0
  68. data/app/src/components/graph/helpers.js +368 -0
  69. data/app/src/components/group/list.js +3 -0
  70. data/app/src/components/group/view.js +153 -0
  71. data/app/src/components/host/activity.js +111 -0
  72. data/app/src/components/host/details.js +28 -0
  73. data/app/src/components/host/executors.js +77 -0
  74. data/app/src/components/host/host_link.js +18 -0
  75. data/app/src/components/host/list.js +3 -0
  76. data/app/src/components/host/updaters.js +77 -0
  77. data/app/src/components/host/view.js +145 -0
  78. data/app/src/components/layer/list.js +3 -0
  79. data/app/src/components/layer/view.js +197 -0
  80. data/app/src/components/navbar/__tests__/navbar-test.js +21 -0
  81. data/app/src/components/navbar/nav_search_form.js +40 -0
  82. data/app/src/components/navbar/navbar.js +96 -0
  83. data/app/src/components/notfound/notfound.js +35 -0
  84. data/app/src/components/notfound/notfound.less +21 -0
  85. data/app/src/components/owned_resources/owned_resources.js +84 -0
  86. data/app/src/components/owned_resources/owned_resources_box.js +101 -0
  87. data/app/src/components/permissions/permissions.js +138 -0
  88. data/app/src/components/permissions/permissions_table.js +101 -0
  89. data/app/src/components/policy/list.js +3 -0
  90. data/app/src/components/policy/view.js +107 -0
  91. data/app/src/components/refresh/refresh.js +29 -0
  92. data/app/src/components/refresh/refresh.less +15 -0
  93. data/app/src/components/search/group.js +43 -0
  94. data/app/src/components/search/group_heading.js +50 -0
  95. data/app/src/components/search/group_title.js +37 -0
  96. data/app/src/components/search/result_item.js +55 -0
  97. data/app/src/components/search/search.js +118 -0
  98. data/app/src/components/user/activity.js +112 -0
  99. data/app/src/components/user/details.js +30 -0
  100. data/app/src/components/user/list.js +3 -0
  101. data/app/src/components/user/pubkeys.js +118 -0
  102. data/app/src/components/user/pubkeys.less +56 -0
  103. data/app/src/components/user/view.js +143 -0
  104. data/app/src/components/variable/activity.js +101 -0
  105. data/app/src/components/variable/details.js +46 -0
  106. data/app/src/components/variable/fetchers.js +77 -0
  107. data/app/src/components/variable/list.js +3 -0
  108. data/app/src/components/variable/updaters.js +77 -0
  109. data/app/src/components/variable/view.js +115 -0
  110. data/app/src/constants.js +36 -0
  111. data/{public → app/src}/images/conjur-logo.svg +0 -0
  112. data/{public → app/src}/images/icon-client-pc.svg +0 -0
  113. data/{public → app/src}/images/icon-environment.png +0 -0
  114. data/{public → app/src}/images/icon-person.svg +0 -0
  115. data/{public → app/src}/images/icon-policy.png +0 -0
  116. data/{public → app/src}/images/icon-resource.png +0 -0
  117. data/{public → app/src}/images/icon-service-dots.svg +0 -0
  118. data/{public → app/src}/images/icon-variable.png +0 -0
  119. data/app/src/pages/index.html +27 -0
  120. data/app/src/routes.js +64 -0
  121. data/app/src/stores/app_store.js +35 -0
  122. data/app/src/stores/audit_store.js +143 -0
  123. data/app/src/stores/graph_store.js +51 -0
  124. data/app/src/stores/group_store.js +104 -0
  125. data/app/src/stores/host_store.js +111 -0
  126. data/app/src/stores/layer_store.js +115 -0
  127. data/app/src/stores/policy_store.js +88 -0
  128. data/app/src/stores/resources_store.js +115 -0
  129. data/app/src/stores/route_store.js +21 -0
  130. data/app/src/stores/search_store.js +77 -0
  131. data/app/src/stores/user_store.js +109 -0
  132. data/app/src/stores/variable_store.js +93 -0
  133. data/app/src/styles/bootstrap.less +54 -0
  134. data/{public/css → app/src/styles}/styles.less +26 -82
  135. data/app/src/utils.js +38 -0
  136. data/app/src/vendor/pace.js +2 -0
  137. data/conjur-asset-ui.gemspec +3 -4
  138. data/docker/assets-build/Dockerfile +12 -0
  139. data/docker/conjur-ui/Dockerfile +33 -0
  140. data/docker/conjur-ui/README.md +38 -0
  141. data/docker/conjur-ui/mime.types +90 -0
  142. data/docker/conjur-ui/nginx.conf +110 -0
  143. data/docker/conjur-ui/start.py +72 -0
  144. data/docker/conjur-ui/start.sh +18 -0
  145. data/docker/conjur-ui/test.env +8 -0
  146. data/lib/conjur-asset-ui-version.rb +1 -1
  147. data/lib/conjur/command/ui.rb +10 -2
  148. data/lib/conjur/webserver/home.rb +3 -3
  149. data/lib/conjur/webserver/login.rb +1 -1
  150. data/lib/conjur/webserver/server.rb +16 -4
  151. data/public/js/views/roleGraph.js +91 -0
  152. metadata +167 -105
  153. data/.jshintrc +0 -41
  154. data/bower.json +0 -98
  155. data/gulpfile.js +0 -139
  156. data/package.json +0 -47
  157. data/preprocessor.js +0 -7
  158. data/public/_client_libs.html +0 -9
  159. data/public/index.html.erb +0 -63
  160. data/public/js/init.js +0 -196
  161. data/public/js/lib/pace.js +0 -2
  162. data/public/js/lib/sorted-set.no-require.js +0 -1145
  163. data/public/js/lib/sorted-set.no-require.js.txt +0 -6
  164. data/public/js/models/groupRecord.js +0 -72
  165. data/public/js/models/hostRecord.js +0 -60
  166. data/public/js/models/layerRecord.js +0 -79
  167. data/public/js/models/namespace.js +0 -12
  168. data/public/js/models/policyList.js +0 -16
  169. data/public/js/models/policyRecord.js +0 -54
  170. data/public/js/models/record.js +0 -117
  171. data/public/js/models/resourceList.js +0 -87
  172. data/public/js/models/userList.js +0 -25
  173. data/public/js/models/userRecord.js +0 -75
  174. data/public/js/models/variableList.js +0 -27
  175. data/public/js/models/variableRecord.js +0 -77
  176. data/public/js/routers.js +0 -242
  177. data/public/js/views/annotations.js +0 -47
  178. data/public/js/views/audit.js +0 -369
  179. data/public/js/views/breadcrumbs.js +0 -62
  180. data/public/js/views/chart.js +0 -617
  181. data/public/js/views/dashboard.js +0 -146
  182. data/public/js/views/generic.js +0 -122
  183. data/public/js/views/group.js +0 -109
  184. data/public/js/views/groups.js +0 -26
  185. data/public/js/views/host.js +0 -200
  186. data/public/js/views/hosts.js +0 -26
  187. data/public/js/views/layer.js +0 -146
  188. data/public/js/views/layers.js +0 -26
  189. data/public/js/views/mixins/search.js +0 -22
  190. data/public/js/views/mixins/tabs.js +0 -154
  191. data/public/js/views/namespaces.js +0 -40
  192. data/public/js/views/navSearch.js +0 -36
  193. data/public/js/views/owned.js +0 -184
  194. data/public/js/views/permissions.js +0 -254
  195. data/public/js/views/policies.js +0 -26
  196. data/public/js/views/policy.js +0 -70
  197. data/public/js/views/resource.js +0 -59
  198. data/public/js/views/role.js +0 -63
  199. data/public/js/views/searchResults.js +0 -212
  200. data/public/js/views/sections.js +0 -226
  201. data/public/js/views/time.js +0 -39
  202. data/public/js/views/user.js +0 -297
  203. data/public/js/views/users.js +0 -26
  204. data/public/js/views/variable.js +0 -310
  205. data/public/js/views/variables.js +0 -26
  206. data/spec/javascripts/helpers/.gitkeep +0 -0
  207. data/spec/javascripts/support/jasmine.yml +0 -112
  208. data/spec/javascripts/support/jasmine_helper.rb +0 -22
  209. data/spec/javascripts/support/run.html.erb +0 -23
  210. data/spec/javascripts/views/AuditSpec.js +0 -22
  211. data/spec/javascripts/views/AuditSpec.ls +0 -18
@@ -0,0 +1,111 @@
1
+ var React = require('react');
2
+
3
+ var Chart = require('../chart/chart'),
4
+ ChartHelperMixin = require('../chart/chart_helper_mixin'),
5
+ Refresh = require('../refresh/refresh');
6
+
7
+ export default React.createClass({
8
+ displayName: 'HostActivity',
9
+
10
+ mixins: [ChartHelperMixin],
11
+
12
+ getDefaultProps() {
13
+ return {
14
+ options: {
15
+ legend: {
16
+ logins: 'Logins to host',
17
+ sudo: 'Sudo calls on host',
18
+ reads: 'Secret reads by host',
19
+ updates: 'Secret updates by host',
20
+ warnings: 'Warnings'
21
+ },
22
+ axis: {
23
+ y: {
24
+ label: 'Value'
25
+ }
26
+ }
27
+ }
28
+ };
29
+ },
30
+
31
+ getDefaultItem() {
32
+ return {
33
+ logins: 0,
34
+ sudo: 0,
35
+ reads: 0,
36
+ updates: 0,
37
+ warnings: 0
38
+ };
39
+ },
40
+
41
+ getEventType(e) {
42
+ if (e.hasOwnProperty('facility') && e.facility === 'ssh') {
43
+ if (e.action === 'sudo' && e.allowed === true) {
44
+ return 'sudo';
45
+ }
46
+
47
+ if (e.action === 'login' && e.allowed === true) {
48
+ return 'logins';
49
+ }
50
+ }
51
+
52
+ if (e.hasOwnProperty('error') || e.allowed === false) {
53
+ return 'warnings';
54
+ }
55
+
56
+ if (e.action === 'check' &&
57
+ e.hasOwnProperty('allowed') &&
58
+ e.allowed === true) {
59
+
60
+ if (e.hasOwnProperty('role') && e.role === this.props.roleid) {
61
+ if (e.hasOwnProperty('resource') &&
62
+ e.resource.split(':')[1] === 'variable') {
63
+
64
+ if (e.privilege === 'update') {
65
+ return 'updates';
66
+ }
67
+
68
+ if (e.privilege === 'execute') {
69
+ return 'reads';
70
+ }
71
+ }
72
+ }
73
+ }
74
+
75
+ return null;
76
+ },
77
+
78
+ getInitialState() {
79
+ return {showActivity: false};
80
+ },
81
+
82
+ toggleActivity(e) {
83
+ e.preventDefault();
84
+
85
+ this.setState({showActivity: !this.state.showActivity});
86
+ },
87
+
88
+ render() {
89
+ var data = this.getData(this.props.audit);
90
+ var activityBody = [];
91
+
92
+ var msg = this.state.showActivity ? 'Hide' : 'Show graph';
93
+
94
+ if (this.state.showActivity) {
95
+ activityBody.push(
96
+ <div className="b-host-activity__graph">
97
+ <Chart options={this.props.options}
98
+ data={data} />
99
+ </div>
100
+ );
101
+ }
102
+
103
+ return (
104
+ <div className="b-host-activity">
105
+ <h2>Activity<Refresh show={this.props.isLoading} /></h2>
106
+ <a href="#" onClick={this.toggleActivity}>{msg}</a>
107
+ {activityBody}
108
+ </div>
109
+ );
110
+ }
111
+ });
@@ -0,0 +1,28 @@
1
+ var React = require('react');
2
+
3
+ var RoleLink = require('../generic/role_link'),
4
+ Time = require('../generic/time'),
5
+ Refresh = require('../refresh/refresh');
6
+
7
+ export default React.createClass({
8
+ displayName: 'HostDetails',
9
+
10
+ // TODO: control for 'enroll'
11
+ render() {
12
+ return (
13
+ <div className="b-host-details">
14
+ <h2>Details<Refresh show={this.props.isLoading} /></h2>
15
+ <dl className="dl-horizontal">
16
+ <dt>Owner</dt>
17
+ <dd><RoleLink id={this.props.owner}/></dd>
18
+
19
+ <dt>Created by</dt>
20
+ <dd><RoleLink id={this.props.host.userid}/></dd>
21
+
22
+ <dt>Created At</dt>
23
+ <dd><Time timestamp={this.props.host.created_at}/></dd>
24
+ </dl>
25
+ </div>
26
+ );
27
+ }
28
+ });
@@ -0,0 +1,77 @@
1
+ var React = require('react');
2
+
3
+ import {take} from 'lodash';
4
+
5
+ var RoleLink = require('../generic/role_link'),
6
+ Refresh = require('../refresh/refresh');
7
+
8
+ export default React.createClass({
9
+ displayName: 'HostExecutors',
10
+
11
+ propTypes: {
12
+ data: React.PropTypes.array,
13
+ isLoading: React.PropTypes.bool
14
+ },
15
+
16
+ getDefaultProps() {
17
+ return {
18
+ data: [],
19
+ isLoading: false
20
+ };
21
+ },
22
+
23
+ getInitialState() {
24
+ return {showAll: false};
25
+ },
26
+
27
+ handleClick(e) {
28
+ e.preventDefault();
29
+
30
+ this.setState({showAll: !this.state.showAll});
31
+ },
32
+
33
+ getItems() {
34
+ return this.props.data.map((e) => {
35
+ return (
36
+ <li className="list-group-item list-group-item-noborder">
37
+ <RoleLink id={e} />
38
+ </li>
39
+ );
40
+ });
41
+ },
42
+
43
+ render() {
44
+ var items = this.getItems(),
45
+ itemsToDisplay = this.state.showAll ? items : take(items, 5),
46
+ msg = this.state.showAll ? 'Show top 5' : 'See all',
47
+ empty = items.length === 0,
48
+ lessThan5 = items.length <= 5,
49
+ body = [(<h2>Executors<Refresh show={this.props.isLoading} /></h2>)];
50
+
51
+ if (!empty) {
52
+ body.push(
53
+ <ul className="b-host-executors__list list-unstyled list-group">
54
+ {itemsToDisplay}
55
+ </ul>
56
+ );
57
+ } else {
58
+ body.push(
59
+ <p>There are no executors</p>
60
+ );
61
+ }
62
+
63
+ if (!lessThan5) {
64
+ body.push(
65
+ <div className="b-host-executors__toggle">
66
+ <a href="#" onClick={this.handleClick}>{msg}</a>
67
+ </div>
68
+ );
69
+ }
70
+
71
+ return (
72
+ <div className="b-host-executors">
73
+ {body}
74
+ </div>
75
+ );
76
+ }
77
+ });
@@ -0,0 +1,18 @@
1
+ var React = require('react'),
2
+ Link = require('react-router').Link;
3
+
4
+ export default React.createClass({
5
+ displayName: 'HostLink',
6
+
7
+ hostId() {
8
+ return this.props.data.split(':')[2];
9
+ },
10
+
11
+ render() {
12
+ return (
13
+ <Link to="host" params={{id: this.hostId}}>
14
+ {this.hostId()}
15
+ </Link>
16
+ );
17
+ }
18
+ });
@@ -0,0 +1,3 @@
1
+ var genericListFactory = require('../generic/list_factory');
2
+
3
+ export default genericListFactory('host', 'Hosts');
@@ -0,0 +1,77 @@
1
+ var React = require('react');
2
+
3
+ import {take} from 'lodash';
4
+
5
+ var RoleLink = require('../generic/role_link'),
6
+ Refresh = require('../refresh/refresh');
7
+
8
+ export default React.createClass({
9
+ displayName: 'HostUpdaters',
10
+
11
+ propTypes: {
12
+ data: React.PropTypes.array,
13
+ isLoading: React.PropTypes.bool
14
+ },
15
+
16
+ getDefaultProps() {
17
+ return {
18
+ data: [],
19
+ isLoading: false
20
+ };
21
+ },
22
+
23
+ getInitialState() {
24
+ return {showAll: false};
25
+ },
26
+
27
+ handleClick(e) {
28
+ e.preventDefault();
29
+
30
+ this.setState({showAll: !this.state.showAll});
31
+ },
32
+
33
+ getItems() {
34
+ return this.props.data.map((e) => {
35
+ return (
36
+ <li className="list-group-item list-group-item-noborder">
37
+ <RoleLink id={e} />
38
+ </li>
39
+ );
40
+ });
41
+ },
42
+
43
+ render() {
44
+ var items = this.getItems(),
45
+ itemsToDisplay = this.state.showAll ? items : take(items, 5),
46
+ msg = this.state.showAll ? 'Show top 5' : 'See all',
47
+ empty = items.length === 0,
48
+ lessThan5 = items.length <= 5,
49
+ body = [(<h2>Updaters<Refresh show={this.props.isLoading} /></h2>)];
50
+
51
+ if (!empty) {
52
+ body.push(
53
+ <ul className="b-host-updaters__list list-unstyled list-group">
54
+ {itemsToDisplay}
55
+ </ul>
56
+ );
57
+ } else {
58
+ body.push(
59
+ <p>There are no updaters</p>
60
+ );
61
+ }
62
+
63
+ if (!lessThan5) {
64
+ body.push(
65
+ <div className="b-host-updaters__toggle">
66
+ <a href="#" onClick={this.handleClick}>{msg}</a>
67
+ </div>
68
+ );
69
+ }
70
+
71
+ return (
72
+ <div className="b-host-updaters">
73
+ {body}
74
+ </div>
75
+ );
76
+ }
77
+ });
@@ -0,0 +1,145 @@
1
+ var React = require('react'),
2
+ Fluxxor = require('fluxxor');
3
+
4
+ import {compact} from 'lodash';
5
+
6
+ var FluxMixin = Fluxxor.FluxMixin(React),
7
+ StoreWatchMixin = Fluxxor.StoreWatchMixin;
8
+
9
+ var TabbedArea = require('react-bootstrap/lib/TabbedArea');
10
+
11
+ var Annotations = require('../generic/annotations'),
12
+ Breadcrumbs = require('../generic/breadcrumbs'),
13
+ FoldableAuditSection = require('../generic/foldable_audit_section'),
14
+ TabMixin = require('../generic/tab_mixin'),
15
+ RoleGraph = require('../graph/graph'),
16
+ Refresh = require('../refresh/refresh');
17
+
18
+ var AuditTable = require('../audit/table');
19
+
20
+ var Activity = require('./activity'),
21
+ Updaters = require('./updaters'),
22
+ Executors = require('./executors'),
23
+ Details = require('./details');
24
+
25
+ export default React.createClass({
26
+ displayName: 'HostView',
27
+
28
+ mixins: [FluxMixin, StoreWatchMixin('audit', 'host', 'resources', 'route'), TabMixin],
29
+
30
+ askForNewData(state) {
31
+ var actions = this.getFlux().actions;
32
+
33
+ actions.audit.loadForRole('host', state.id);
34
+ actions.audit.loadForResource('host', state.id);
35
+ actions.host.load(state.id);
36
+ actions.resources.loadOne('host', state.id);
37
+ },
38
+
39
+ componentDidMount() {
40
+ this.askForNewData(this.state);
41
+ },
42
+
43
+ componentWillUpdate(nextProps, nextState) {
44
+ if (this.state.id !== nextState.id) {
45
+ this.askForNewData(nextState);
46
+ }
47
+
48
+ return true;
49
+ },
50
+
51
+ getStateFromFlux() {
52
+ var flux = this.getFlux(),
53
+ id = flux.store('route').getParam('id'),
54
+ audit = flux.store('audit').getEventFor('host', id),
55
+ data = flux.store('host').getData(),
56
+ resource = flux.store('resources').getResource('host', id);
57
+
58
+ var ret = {
59
+ id: id,
60
+ loading: data.loading,
61
+ host: data.host,
62
+ owned: data.owned,
63
+ roles: data.roles,
64
+ owner: resource.data.owner,
65
+ annotations: resource.data.annotations,
66
+ resource: resource.data,
67
+ audit: audit.data,
68
+ resources: data.resources,
69
+ executors: data.executors,
70
+ updaters: data.updaters
71
+ };
72
+
73
+ ret.loading.audit = audit.loading;
74
+ ret.loading.owner = resource.loading;
75
+ ret.loading.annotations = resource.loading;
76
+
77
+ return ret;
78
+ },
79
+
80
+ render() {
81
+ var permissionsTab = this.permissionsTab(this.state.host.roleid),
82
+ membershipsTab = this.membershipsTab(this.state.host.roleid),
83
+ ownedTab = this.ownedTab();
84
+
85
+ var tabs = compact([
86
+ membershipsTab,
87
+ ownedTab,
88
+ permissionsTab
89
+ ]);
90
+
91
+ var elems = [
92
+ {url: '/ui/hosts', text: 'Hosts'},
93
+ {url: '', text: this.state.host.id},
94
+ {url: '', text: '(owned by ' + this.state.host.ownerid + ')'}
95
+ ];
96
+
97
+ return (
98
+ <div className="b-host">
99
+ <Breadcrumbs elems={elems} />
100
+ <hr />
101
+ <Activity audit={this.state.audit}
102
+ roleid={this.state.host.roleid}
103
+ isLoading={this.state.loading.audit} />
104
+ <hr />
105
+ {FoldableAuditSection.warnings(this.state.audit, this.state.loading.audit)}
106
+ <hr />
107
+ <div className="row">
108
+ <div className="col-md-6">
109
+ <Updaters data={this.state.updaters}
110
+ isLoading={this.state.loading.updaters} />
111
+ </div>
112
+ <div className="col-md-6">
113
+ <Executors data={this.state.executors}
114
+ isLoading={this.state.loading.executors} />
115
+ </div>
116
+ </div>
117
+ <hr />
118
+ <div className="row">
119
+ <div className="col-md-6">
120
+ <Details owner={this.state.owner}
121
+ host={this.state.host}
122
+ isLoading={this.state.loading.owner || this.state.loading.host} />
123
+ </div>
124
+ <div className="col-md-6">
125
+ <h2>Annotations<Refresh show={false} /></h2>
126
+ <Annotations annotations={this.state.annotations} />
127
+ </div>
128
+ </div>
129
+ <hr/>
130
+ <h2>Other<Refresh show={this.state.loading.annotations} /></h2>
131
+ <TabbedArea>
132
+ {tabs}
133
+ </TabbedArea>
134
+ <hr />
135
+ <RoleGraph height="400"
136
+ kind="host"
137
+ id={this.state.id} />
138
+ <hr />
139
+ <AuditTable events={this.state.audit}
140
+ isLoading={this.state.loading.audit}
141
+ caption="Recent Activity" />
142
+ </div>
143
+ );
144
+ }
145
+ });