/** @jsx React.DOM */
/* global conjur, React, ReactBootstrap, _ */
(function(conjur, React, ReactBootstrap, _) {
'use strict';
var TabbedArea = ReactBootstrap.TabbedArea,
TabPane = ReactBootstrap.TabPane,
Tab = conjur.views.mixins.Tab,
RoleLink = conjur.views.RoleLink,
AuditBox = window.AuditBox;
var RevealerBox = React.createClass({
getInitialState: function() {
return {revealed: false};
},
handleClick: function() {
this.setState({revealed: !this.state.revealed});
},
render: function() {
var valToShow = this.state.revealed ? 'SECRET HERE!' : 'Show Value';
return (
{valToShow}
);
}
});
var Breadcrumb = React.createClass({
render: function() {
return (
);
}
});
var Breadcrumbs = React.createClass({
render: function() {
return (
);
}
});
var Activity = React.createClass({
getInitialState: function() {
var data = this.getData();
return {
data: data,
options: {
legend: {
close: 'Closed',
sread: 'Suc. read',
supdate: 'Suc. update',
fread: 'Failed read',
fupdate: 'Failed update'
},
axis: {
y: {
label: 'Value'
}
}
}
};
},
getData: function() {
return [];
},
render: function() {
return (
);
}
});
var Updaters = React.createClass({
render: function() {
return (
Updaters
);
}
});
var Fetchers = React.createClass({
render: function() {
return (
Fetchers
);
}
});
var Updates = React.createClass({
render: function() {
return (
Updates
);
}
});
var Warnings = React.createClass({
render: function() {
return (
Warnings
);
}
});
this.Variable = React.createClass({
mixins: [Tab],
render: function() {
var updaters = this.props.data.updaters.map(function(member) {
return (
);
});
var fetchers = this.props.data.fetchers.map(function(member) {
return (
);
});
var resourceId = [
conjur.app.configuration.account,
'variable',
this.props.data.variable.id
].join(':');
var overviewTab = (
- Owner
- Created by
- MIME type
- {this.props.data.variable.mime_type}
- Kind
- {this.props.data.variable.kind}
- Versions
- {this.props.data.variable.version_count}
);
var updatersTab = (
);
var fetchersTab = (
);
var annotationsTab = this.annotationsTab();
var auditTab = (
);
var tabs = _.compact([
overviewTab,
updatersTab,
fetchersTab,
annotationsTab,
auditTab
]);
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
return (
Variable {this.props.data.variable.id}
{tabs}
);
}
});
}).bind(conjur.views)
(
conjur,
React,
ReactBootstrap,
_
);