react-templates/test/data/test.rt.js

31 lines
992 B
JavaScript
Raw Normal View History

/*eslint new-cap:0,no-unused-vars:0*/
2014-11-10 14:51:04 +01:00
define([
2014-12-03 10:45:31 +01:00
'react/addons',
2014-11-10 14:51:04 +01:00
'lodash'
], function (React, _) {
2014-11-11 10:27:59 +01:00
'use strict';
2014-11-10 17:47:06 +01:00
return function () {
return React.DOM.div({}, React.DOM.div({
'style': {
position: 'relative',
textAlign: 'center',
top: this.props.config.previewTop,
height: this.props.config.previewHeight
}
}, React.DOM.div({
'style': {
margin: 'auto',
height: '100%',
width: this.props.config.previewWidth || '100%'
}
}, React.DOM.iframe({
'id': 'preview',
'src': 'http://localhost/sites/412?ds=true',
'style': {
width: '100%',
height: '100%',
border: '0'
}
2014-11-30 09:55:38 +01:00
}))), React.DOM.div({}, 'editor\n ', !this.props.editorState.previewMode ? React.DOM.div({}, 'left bar') : null));
2014-11-10 17:47:06 +01:00
};
2014-11-30 09:55:38 +01:00
});