a few js changes for react upgrades

This commit is contained in:
2018-03-04 21:23:57 -05:00
parent 34e5f5139a
commit ca1ed925d3
6 changed files with 14 additions and 16 deletions

View File

@@ -8,7 +8,7 @@
SeedRatioStop = 1.50 #automatically stops the torrent after it reaches this seeding ratio
#Relative or absolute path accepted, the server will convert any relative path to an absolute path.
DefaultMoveFolder = 'downloads' #default path that a finished torrent is symlinked to after completion. Torrents added via RSS will default here
DefaultMoveFolder = 'Z:\downloads' #default path that a finished torrent is symlinked to after completion. Torrents added via RSS will default here
TorrentWatchFolder = 'torrentUpload' #folder path that is watched for .torrent files and adds them automatically every 5 minutes
#Limits your upload and download speed globally, all are averages and not burst protected (usually burst on start).
@@ -25,13 +25,13 @@
[notifications]
PushBulletToken = "" #add your pushbullet api token here to notify of torrent completion to pushbullet
PushBulletToken = "o.8sUHemPkTCaty3u7KnyvEBN19EkeT63g" #add your pushbullet api token here to notify of torrent completion to pushbullet
[reverseProxy]
#This is for setting up goTorrent behind a reverse Proxy (with SSL, reverse proxy with no SSL will require editing the WSS connection to a WS connection manually)
ProxyEnabled = false #bool, either false or true
ProxyEnabled = true #bool, either false or true
#URL is CASE SENSITIVE
BaseURL = "domain.com/subroute/" # MUST be in the format (if you have a subdomain, and must have trailing slash) "yoursubdomain.domain.org/subroute/"
BaseURL = "derajnet.duckdns.org/gopher/" # MUST be in the format (if you have a subdomain, and must have trailing slash) "yoursubdomain.domain.org/subroute/"
[EncryptionPolicy]

View File

@@ -53,7 +53,7 @@ const inlineStyle = {
}
render() {
const { classes, onRequestClose, handleRequestClose, handleSubmit } = this.props;
const { classes, onClose, handleRequestClose, handleSubmit } = this.props;
return (
<div style={inlineStyle}>

View File

@@ -63,7 +63,7 @@ class ChangeStorageModal extends React.Component {
}
render() {
const { classes, onRequestClose, handleRequestClose, handleSubmit } = this.props;
const { classes, onClose, handleRequestClose, handleSubmit } = this.props;
return (
<div style={inlineStyle}>
<IconButton onClick={this.handleClickOpen} color="primary" data-tip="Change Storage Location" style={button} centerRipple aria-label="Change Storage Location" >

View File

@@ -83,7 +83,7 @@ class DeleteTorrentModal extends React.Component {
}
render() {
const { onRequestClose, handleRequestClose, handleSubmit } = this.props;
const { onClose, handleRequestClose, handleSubmit } = this.props;
return (
<div style={inlineStyle}>

View File

@@ -88,7 +88,7 @@ export default class Login extends React.Component {
render() {
const { classes, onRequestClose, handleRequestClose, handleSubmit } = this.props;
return (
<Dialog open={this.state.open} onRequestClose={this.handleRequestClose} ignoreBackdropClick={true} disableBackdrop={true}>
<Dialog open={this.state.open} onClose={this.handleRequestClose} ignoreBackdropClick={true} disableBackdrop={true}>
<DialogTitle>Login Here</DialogTitle>
<DialogContent>
<DialogContentText>

View File

@@ -107583,7 +107583,7 @@ var DeleteTorrentModal = function (_React$Component) {
key: 'render',
value: function render() {
var _props = this.props,
onRequestClose = _props.onRequestClose,
onClose = _props.onClose,
handleRequestClose = _props.handleRequestClose,
handleSubmit = _props.handleSubmit;
@@ -107598,7 +107598,7 @@ var DeleteTorrentModal = function (_React$Component) {
),
_react2.default.createElement(
_Dialog2.default,
{ open: this.state.open, onRequestClose: this.handleRequestClose, onEscapeKeyUp: this.handleRequestClose, maxWidth: 'md' },
{ open: this.state.open, onClose: this.handleRequestClose, onEscapeKeyDown: this.handleRequestClose, maxWidth: 'md' },
_react2.default.createElement(
_Dialog.DialogTitle,
null,
@@ -107784,7 +107784,7 @@ var ChangeStorageModal = function (_React$Component) {
value: function render() {
var _props = this.props,
classes = _props.classes,
onRequestClose = _props.onRequestClose,
onClose = _props.onClose,
handleRequestClose = _props.handleRequestClose,
handleSubmit = _props.handleSubmit;
@@ -107799,7 +107799,7 @@ var ChangeStorageModal = function (_React$Component) {
),
_react2.default.createElement(
_Dialog2.default,
{ open: this.state.open, onClose: this.handleRequestClose },
{ open: this.state.open, onClose: this.handleRequestClose, onEscapeKeyDown: this.handleRequestClose },
_react2.default.createElement(
_Dialog.DialogTitle,
null,
@@ -108143,7 +108143,7 @@ var AddSettingsModal = function (_React$Component) {
value: function render() {
var _props = this.props,
classes = _props.classes,
onRequestClose = _props.onRequestClose,
onClose = _props.onClose,
handleRequestClose = _props.handleRequestClose,
handleSubmit = _props.handleSubmit;
@@ -124997,10 +124997,8 @@ var _initialiseProps = function _initialiseProps() {
this.progressBar = function (props) {
if (props.column.name == 'FilePercent') {
console.log("Progressbar!", props);
return _react2.default.createElement(_progressBarCell.ProgressBarCell, { value: props.row.FilePercent * 100, style: props.style });
}
console.log("Returning NULL!", props);
return _react2.default.createElement(_dxReactGridMaterialUi.VirtualTable.Cell, props);
};
@@ -136880,7 +136878,7 @@ var Login = function (_React$Component) {
return _react2.default.createElement(
_Dialog2.default,
{ open: this.state.open, onRequestClose: this.handleRequestClose, ignoreBackdropClick: true, disableBackdrop: true },
{ open: this.state.open, onClose: this.handleRequestClose, ignoreBackdropClick: true, disableBackdrop: true },
_react2.default.createElement(
_Dialog.DialogTitle,
null,