React/Redux - publish component #323
5 changed files with 15 additions and 15 deletions
|
@ -1034,7 +1034,7 @@ var Uploader = function (_React$Component) {
|
||||||
value: function render() {
|
value: function render() {
|
||||||
return _react2.default.createElement(
|
return _react2.default.createElement(
|
||||||
'div',
|
'div',
|
||||||
null,
|
{ className: 'row row--tall' },
|
||||||
this.state.showComponent === DROPZONE && _react2.default.createElement(_dropzone2.default, { stageFileAndShowDetails: this.stageFileAndShowDetails }),
|
this.state.showComponent === DROPZONE && _react2.default.createElement(_dropzone2.default, { stageFileAndShowDetails: this.stageFileAndShowDetails }),
|
||||||
this.state.showComponent === DETAILS && _react2.default.createElement(_publishDetails2.default, {
|
this.state.showComponent === DETAILS && _react2.default.createElement(_publishDetails2.default, {
|
||||||
updateUploaderState: this.updateUploaderState,
|
updateUploaderState: this.updateUploaderState,
|
||||||
|
@ -18492,7 +18492,7 @@ var Dropzone = function (_React$Component) {
|
||||||
key: 'handleDragEnter',
|
key: 'handleDragEnter',
|
||||||
value: function handleDragEnter() {
|
value: function handleDragEnter() {
|
||||||
var thisDropzone = document.getElementById('primary-dropzone');
|
var thisDropzone = document.getElementById('primary-dropzone');
|
||||||
thisDropzone.setAttribute('class', 'dropzone dropzone--drag-over row row--margined row--padded row--tall flex-container--column flex-container--center-center');
|
thisDropzone.setAttribute('class', 'dropzone dropzone--drag-over row row--padded row--tall flex-container--column flex-container--center-center');
|
||||||
thisDropzone.firstElementChild.setAttribute('class', 'hidden');
|
thisDropzone.firstElementChild.setAttribute('class', 'hidden');
|
||||||
thisDropzone.lastElementChild.setAttribute('class', '');
|
thisDropzone.lastElementChild.setAttribute('class', '');
|
||||||
}
|
}
|
||||||
|
@ -18500,7 +18500,7 @@ var Dropzone = function (_React$Component) {
|
||||||
key: 'handleDragLeave',
|
key: 'handleDragLeave',
|
||||||
value: function handleDragLeave() {
|
value: function handleDragLeave() {
|
||||||
var thisDropzone = document.getElementById('primary-dropzone');
|
var thisDropzone = document.getElementById('primary-dropzone');
|
||||||
thisDropzone.setAttribute('class', 'dropzone row row--tall row--margined row--padded flex-container--column flex-container--center-center');
|
thisDropzone.setAttribute('class', 'dropzone row row--tall row--padded flex-container--column flex-container--center-center');
|
||||||
thisDropzone.firstElementChild.setAttribute('class', '');
|
thisDropzone.firstElementChild.setAttribute('class', '');
|
||||||
thisDropzone.lastElementChild.setAttribute('class', 'hidden');
|
thisDropzone.lastElementChild.setAttribute('class', 'hidden');
|
||||||
}
|
}
|
||||||
|
@ -18532,7 +18532,7 @@ var Dropzone = function (_React$Component) {
|
||||||
value: function render() {
|
value: function render() {
|
||||||
return _react2.default.createElement(
|
return _react2.default.createElement(
|
||||||
'div',
|
'div',
|
||||||
null,
|
{ className: 'row row--tall' },
|
||||||
_react2.default.createElement(
|
_react2.default.createElement(
|
||||||
'form',
|
'form',
|
||||||
null,
|
null,
|
||||||
|
@ -18540,7 +18540,7 @@ var Dropzone = function (_React$Component) {
|
||||||
),
|
),
|
||||||
_react2.default.createElement(
|
_react2.default.createElement(
|
||||||
'div',
|
'div',
|
||||||
{ id: 'primary-dropzone', className: 'dropzone row row--margined row--padded row--tall flex-container--column flex-container--center-center', onDrop: this.handleDrop, onDragOver: this.handleDragOver, onDragEnd: this.handleDragEnd, onDragEnter: this.handleDragEnter, onDragLeave: this.handleDragLeave, onClick: this.handleClick },
|
{ id: 'primary-dropzone', className: 'dropzone row row--padded row--tall flex-container--column flex-container--center-center', onDrop: this.handleDrop, onDragOver: this.handleDragOver, onDragEnd: this.handleDragEnd, onDragEnter: this.handleDragEnter, onDragLeave: this.handleDragLeave, onClick: this.handleClick },
|
||||||
_react2.default.createElement(
|
_react2.default.createElement(
|
||||||
'div',
|
'div',
|
||||||
{ id: 'primary-dropzone-instructions' },
|
{ id: 'primary-dropzone-instructions' },
|
||||||
|
@ -18798,7 +18798,7 @@ var PublishDetails = function (_React$Component6) {
|
||||||
value: function render() {
|
value: function render() {
|
||||||
return _react2.default.createElement(
|
return _react2.default.createElement(
|
||||||
'div',
|
'div',
|
||||||
{ className: 'row row--padded row--no-bottom' },
|
{ className: 'row row--no-bottom' },
|
||||||
_react2.default.createElement(
|
_react2.default.createElement(
|
||||||
'div',
|
'div',
|
||||||
{ className: 'column column--10' },
|
{ className: 'column column--10' },
|
||||||
|
@ -18846,7 +18846,7 @@ var PublishDetails = function (_React$Component6) {
|
||||||
{ className: 'row row--short align-content-center' },
|
{ className: 'row row--short align-content-center' },
|
||||||
_react2.default.createElement(
|
_react2.default.createElement(
|
||||||
'button',
|
'button',
|
||||||
{ className: 'button--cancel', onClick: this.cancelPublish },
|
{ className: 'button--cancel', onClick: this.clearUploaderState },
|
||||||
'Cancel'
|
'Cancel'
|
||||||
)
|
)
|
||||||
),
|
),
|
||||||
|
|
|
@ -86,13 +86,13 @@ class Dropzone extends React.Component {
|
||||||
}
|
}
|
||||||
handleDragEnter () {
|
handleDragEnter () {
|
||||||
const thisDropzone = document.getElementById('primary-dropzone');
|
const thisDropzone = document.getElementById('primary-dropzone');
|
||||||
thisDropzone.setAttribute('class', 'dropzone dropzone--drag-over row row--margined row--padded row--tall flex-container--column flex-container--center-center');
|
thisDropzone.setAttribute('class', 'dropzone dropzone--drag-over row row--padded row--tall flex-container--column flex-container--center-center');
|
||||||
thisDropzone.firstElementChild.setAttribute('class', 'hidden');
|
thisDropzone.firstElementChild.setAttribute('class', 'hidden');
|
||||||
thisDropzone.lastElementChild.setAttribute('class', '');
|
thisDropzone.lastElementChild.setAttribute('class', '');
|
||||||
}
|
}
|
||||||
handleDragLeave () {
|
handleDragLeave () {
|
||||||
const thisDropzone = document.getElementById('primary-dropzone');
|
const thisDropzone = document.getElementById('primary-dropzone');
|
||||||
thisDropzone.setAttribute('class', 'dropzone row row--tall row--margined row--padded flex-container--column flex-container--center-center');
|
thisDropzone.setAttribute('class', 'dropzone row row--tall row--padded flex-container--column flex-container--center-center');
|
||||||
thisDropzone.firstElementChild.setAttribute('class', '');
|
thisDropzone.firstElementChild.setAttribute('class', '');
|
||||||
thisDropzone.lastElementChild.setAttribute('class', 'hidden');
|
thisDropzone.lastElementChild.setAttribute('class', 'hidden');
|
||||||
}
|
}
|
||||||
|
@ -117,11 +117,11 @@ class Dropzone extends React.Component {
|
||||||
}
|
}
|
||||||
render () {
|
render () {
|
||||||
return (
|
return (
|
||||||
<div>
|
<div className="row row--tall">
|
||||||
<form>
|
<form>
|
||||||
<input className="input-file" type="file" id="file_input" name="file_input" accept="video/*,image/*" onChange={this.handleFileInput} encType="multipart/form-data"/>
|
<input className="input-file" type="file" id="file_input" name="file_input" accept="video/*,image/*" onChange={this.handleFileInput} encType="multipart/form-data"/>
|
||||||
</form>
|
</form>
|
||||||
<div id="primary-dropzone" className="dropzone row row--margined row--padded row--tall flex-container--column flex-container--center-center" onDrop={this.handleDrop} onDragOver={this.handleDragOver} onDragEnd={this.handleDragEnd} onDragEnter={this.handleDragEnter} onDragLeave={this.handleDragLeave} onClick={this.handleClick}>
|
<div id="primary-dropzone" className="dropzone row row--padded row--tall flex-container--column flex-container--center-center" onDrop={this.handleDrop} onDragOver={this.handleDragOver} onDragEnd={this.handleDragEnd} onDragEnter={this.handleDragEnter} onDragLeave={this.handleDragLeave} onClick={this.handleClick}>
|
||||||
<div id="primary-dropzone-instructions">
|
<div id="primary-dropzone-instructions">
|
||||||
<p className="info-message-placeholder info-message--failure" id="input-error-file-selection" hidden="true">{this.state.fileError}</p>
|
<p className="info-message-placeholder info-message--failure" id="input-error-file-selection" hidden="true">{this.state.fileError}</p>
|
||||||
<p>Drag & drop image or video here to publish</p>
|
<p>Drag & drop image or video here to publish</p>
|
||||||
|
|
|
@ -89,7 +89,7 @@ class PublishDetails extends React.Component {
|
||||||
}
|
}
|
||||||
render () {
|
render () {
|
||||||
return (
|
return (
|
||||||
<div className="row row--padded row--no-bottom">
|
<div className="row row--no-bottom">
|
||||||
<div className="column column--10">
|
<div className="column column--10">
|
||||||
<Title title={this.props.title} updateUploaderState={this.updateUploaderState}/>
|
<Title title={this.props.title} updateUploaderState={this.updateUploaderState}/>
|
||||||
</div>
|
</div>
|
||||||
|
@ -115,7 +115,7 @@ class PublishDetails extends React.Component {
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div className="row row--short align-content-center">
|
<div className="row row--short align-content-center">
|
||||||
<button className="button--cancel" onClick={this.cancelPublish}>Cancel</button>
|
<button className="button--cancel" onClick={this.clearUploaderState}>Cancel</button>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div className="row row--short align-content-center">
|
<div className="row row--short align-content-center">
|
||||||
|
|
|
@ -48,7 +48,7 @@ class Uploader extends React.Component {
|
||||||
}
|
}
|
||||||
render () {
|
render () {
|
||||||
return (
|
return (
|
||||||
<div>
|
<div className="row row--tall">
|
||||||
{ this.state.showComponent === DROPZONE &&
|
{ this.state.showComponent === DROPZONE &&
|
||||||
<Dropzone stageFileAndShowDetails={this.stageFileAndShowDetails}/>
|
<Dropzone stageFileAndShowDetails={this.stageFileAndShowDetails}/>
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
![]() This doesn't seem exactly on theme. Maybe ask nizuka? This doesn't seem exactly on theme. Maybe ask nizuka?
|
|||||||
<div class="row row--tall flex-container--column">
|
<div class="row row--tall flex-container--column">
|
||||||
<div id="react-uploader"></div>
|
<div id="react-uploader" class="row row--padded row--tall"></div>
|
||||||
![]() This doesn't seem exactly on theme. Maybe ask nizuka? This doesn't seem exactly on theme. Maybe ask nizuka?
![]() This doesn't seem exactly on theme. Maybe ask nizuka? This doesn't seem exactly on theme. Maybe ask nizuka?
|
|||||||
</div>
|
</div>
|
||||||
|
|
||||||
<script src="/bundle/bundle.js"></script>
|
<script src="/bundle/bundle.js"></script>
|
||||||
|
|
||||||
![]() This doesn't seem exactly on theme. Maybe ask nizuka? This doesn't seem exactly on theme. Maybe ask nizuka?
![]() This doesn't seem exactly on theme. Maybe ask nizuka? This doesn't seem exactly on theme. Maybe ask nizuka?
|
Loading…
Add table
Reference in a new issue
This doesn't seem exactly on theme. Maybe ask nizuka?