Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
var ReactBootstrap = require('react-bootstrap')
, Button = ReactBootstrap.Button
, ButtonGroup = ReactBootstrap.ButtonGroup
, Glyphicon = ReactBootstrap.Glyphicon
, Modal = ReactBootstrap.Modal
, Input = ReactBootstrap.Input
var React = require('react');
var SafeStateChangeMixin = require('../common/SafeStateChangeMixin.js');
var SetIntervalMixin = require("../common/SetIntervalMixin.js");
var PostContent = require("../common/PostContent.js");
module.exports = RetwistModalButton = React.createClass({
getInitialState: function () {
return {
isModalOpen: false
};
},
handleToggle: function () {
define(function (require, exports, module) {var DateTimePicker, DateTimePickerDate, DateTimePickerTime, Glyphicon, React;
React = require('react/addons');
DateTimePickerDate = require('./DateTimePickerDate');
DateTimePickerTime = require('./DateTimePickerTime');
Glyphicon = require('react-bootstrap').Glyphicon;
DateTimePicker = React.createClass({displayName: "DateTimePicker",
propTypes: {
showDatePicker: React.PropTypes.bool,
showTimePicker: React.PropTypes.bool,
subtractMonth: React.PropTypes.func.isRequired,
addMonth: React.PropTypes.func.isRequired,
viewDate: React.PropTypes.object.isRequired,
selectedDate: React.PropTypes.object.isRequired,
showToday: React.PropTypes.bool,
viewMode: React.PropTypes.oneOfType([
React.PropTypes.string,
React.PropTypes.number
]),
daysOfWeekDisabled: React.PropTypes.array,
setSelectedDate: React.PropTypes.func.isRequired,
var ReactBootstrap = require('react-bootstrap')
, Button = ReactBootstrap.Button
, ButtonGroup = ReactBootstrap.ButtonGroup
, Glyphicon = ReactBootstrap.Glyphicon
, Modal = ReactBootstrap.Modal
, Input = ReactBootstrap.Input
var React = require('react');
var SafeStateChangeMixin = require('../common/SafeStateChangeMixin.js');
var SetIntervalMixin = require("../common/SetIntervalMixin.js");
var PostContent = require("../common/PostContent.js");
module.exports = ReplyModalButton = React.createClass({
getInitialState: function () {
return {
isModalOpen: false
};
},
handleToggle: function () {
var ReactBootstrap = require('react-bootstrap')
, NavItem = ReactBootstrap.NavItem
, Nav = ReactBootstrap.Nav
, ListGroup = ReactBootstrap.ListGroup
, ListGroupItem = ReactBootstrap.ListGroupItem
, Panel = ReactBootstrap.Panel
, Glyphicon = ReactBootstrap.Glyphicon
, Button = ReactBootstrap.Button
var React = require('react/addons');
var ReactCSSTransitionGroup = React.addons.CSSTransitionGroup;
var Post = require("../common/Post.js");
module.exports = Postboard = React.createClass({displayName: "Postboard",
render: function() {
var posts = this.props.data.map(function(post, index) {
return (
React.createElement(Post, {post: post, key: post.postid})
);
});
var Postboard = require("../common/Postboard.js");
var NewPostModalButton = require("../home/NewPostModalButton.js");
var SetIntervalMixin = require("../common/SetIntervalMixin.js");
var StreamMixin = require("../common/StreamMixin.js");
var SafeStateChangeMixin = require('../common/SafeStateChangeMixin.js');
var EventListenerMixin = require('../common/EventListenerMixin.js');
var AppSettingsMixin = require('../common/AppSettingsMixin.js');
var ReactBootstrap = require('react-bootstrap')
, NavItem = ReactBootstrap.NavItem
, Nav = ReactBootstrap.Nav
, ListGroup = ReactBootstrap.ListGroup
, ListGroupItem = ReactBootstrap.ListGroupItem
, Panel = ReactBootstrap.Panel
, Glyphicon = ReactBootstrap.Glyphicon
, Button = ReactBootstrap.Button
module.exports = Home = React.createClass({
mixins: [
AppSettingsMixin,
StreamMixin,
SetIntervalMixin,
SafeStateChangeMixin,
EventListenerMixin('scrolledtobottom'),
EventListenerMixin('newpostbyuser')
],
getInitialState: function() {
return {
data: [],
postIdentifiers: {},
bsSize: 'medium', bsStyle: 'default', content: 'Type content'
},
settings:extendBootstrapFields({content: {type:'htmlEditor'}})
}
});
_.extend(Widgets['react-bootstrap.Panel'], {
metaData: {
props: {
header:"Header",bsStyle: 'default', content: 'Type content'
},
settings:extendBootstrapFields({header:{type:'htmlEditor'}, content: {type:'htmlEditor'}})
}
});
_.extend(Widgets['react-bootstrap.Glyphicon'], {
metaData: {
props: {
bsSize: 'medium', bsStyle: 'default', glyph: 'star'
},
settings:extendBootstrapFields({content: {type:'htmlEditor'}})
}
});
_.extend(Widgets['react-bootstrap.Alert'], {
metaData: {
props: {
bsSize: 'medium', bsStyle: 'default', content: 'Type content'
},
settings:extendBootstrapFields({content: {type:'htmlEditor'}})
}
});
/*jshint esversion: 6 */
var React = require('react');
var Input = require('react-bootstrap').Input;
var Modal = require('react-bootstrap').Modal;
var Button = require('react-bootstrap').Button;
import {
Form,
FormGroup,
FormControl,
ControlLabel,
HelpBlock,
Col
} from 'react-bootstrap';
var Glyphicon = require('react-bootstrap').Glyphicon;
var Constants = require('./workspace-constants');
import Actions from './workspace-actions.js';
var createReactClass = require('create-react-class');
//TODO: validation of the workspace dialog
var CreateNewWorkspaceDialog = createReactClass({
getInitialState: function() {
return this.props.workspaceListStore.isWorkspaceNewDialogOpen();
},
componentDidMount: function() {
this.internalState = {};
this.props.workspaceListStore.addChangeListener(this._onChange);
},
var _ = require('underscore');
var ReactBootstrap = require('react-bootstrap');
var React = require('react/addons');
var ReactCSSTransitionGroup = React.addons.CSSTransitionGroup;
var Button = ReactBootstrap.Button;
var Glyphicon = ReactBootstrap.Glyphicon;
var Directory = React.createClass({
styles : {
paddingStyle : {
paddingLeft: '10px'
}
},
formatTree: function(tree) {
return _.map(tree, function(contents, filename) {
if (filename === '_folderDetails') return;
var details = contents._folderDetails;
return (
<div style="{this.styles.paddingStyle}">
<button>{filename}</button>
{details.isFolder ? this.formatTree(contents) : null}</div>
var React = require('react');
var Postboard = require("../common/Postboard.js");
var SetIntervalMixin = require("../common/SetIntervalMixin.js");
var StreamMixin = require("../common/StreamMixin.js");
var SafeStateChangeMixin = require('../common/SafeStateChangeMixin.js');
var EventListenerMixin = require('../common/EventListenerMixin.js');
var AppSettingsMixin = require('../common/AppSettingsMixin.js');
var ReactBootstrap = require('react-bootstrap')
, NavItem = ReactBootstrap.NavItem
, Nav = ReactBootstrap.Nav
, ListGroup = ReactBootstrap.ListGroup
, ListGroupItem = ReactBootstrap.ListGroupItem
, Panel = ReactBootstrap.Panel
, Glyphicon = ReactBootstrap.Glyphicon
, Button = ReactBootstrap.Button
module.exports = Timeline = React.createClass({displayName: "Timeline",
mixins:[
AppSettingsMixin,
StreamMixin,
SetIntervalMixin,
SafeStateChangeMixin,
EventListenerMixin('newpostbyuser')
],
contextTypes: {
router: React.PropTypes.func
},
getInitialState: function() {
return {
var DateTimePickerHours, React;
React = require('react');
var Glyphicon = require('react-bootstrap').Glyphicon;
DateTimePickerHours = React.createClass({
propTypes: {
setSelectedHour: React.PropTypes.func.isRequired,
onSwitch: React.PropTypes.func.isRequired
},
renderSwitchButton: function() {
return this.props.mode === Constants.MODE_TIME ?
(
<ul>
<li>
<span style="{{width:'100%'}}"></span>
</li>
</ul>
) :
null;