eslint
This commit is contained in:
@ -155,15 +155,15 @@ class App extends Component {
|
||||
}
|
||||
|
||||
document.addEventListener('dragover', (event) => {
|
||||
event.stopPropagation();
|
||||
event.preventDefault();
|
||||
event.dataTransfer.dropEffect = 'copy'; // Explicitly show this is a copy.
|
||||
}, false);
|
||||
document.addEventListener('drop', (event) => {
|
||||
event.stopPropagation();
|
||||
event.stopPropagation();
|
||||
event.preventDefault();
|
||||
processTorrents(event.dataTransfer.files); // FileList object.
|
||||
}, false);
|
||||
event.dataTransfer.dropEffect = 'copy'; // Explicitly show this is a copy.
|
||||
}, false);
|
||||
document.addEventListener('drop', (event) => {
|
||||
event.stopPropagation();
|
||||
event.preventDefault();
|
||||
processTorrents(event.dataTransfer.files); // FileList object.
|
||||
}, false);
|
||||
|
||||
window.router()
|
||||
appReady = true;
|
||||
|
@ -249,7 +249,7 @@ export default class ConfigPage extends Page {
|
||||
null
|
||||
}
|
||||
{
|
||||
this.removed > 0 && !this.toRemove && !this.toRemoveProbably
|
||||
this.removed > 0 && !this.toRemove && !this.toRemoveProbably
|
||||
?
|
||||
<div style={{color: 'purple'}}>{this.realRemove ? __('removing') : __('calculation')}...: {this.removed}{this.removedMax > 0 ? '/' + this.removedMax : ''}</div>
|
||||
:
|
||||
|
@ -58,13 +58,13 @@ class PagesPie extends Component {
|
||||
{
|
||||
this.pie.map(({Page, params}, index) => {
|
||||
let focus = false;
|
||||
if (index === this.pie.length-1) {
|
||||
if (index === this.pie.length - 1) {
|
||||
focus = true;
|
||||
}
|
||||
return (
|
||||
<Page
|
||||
focused={focus}
|
||||
closeHandler={() => { index> 0 ? this.close() : null}}
|
||||
closeHandler={() => { index > 0 ? this.close() : null}}
|
||||
index={index}
|
||||
key={index}
|
||||
ref={index}
|
||||
|
@ -187,7 +187,7 @@ export default class Torrent extends Component {
|
||||
|
||||
componentDidMount()
|
||||
{
|
||||
scrollBack()
|
||||
scrollBack()
|
||||
|
||||
this.downloading = (hash) => {
|
||||
if(this.props.torrent.hash != hash)
|
||||
@ -275,7 +275,7 @@ export default class Torrent extends Component {
|
||||
return true;
|
||||
}
|
||||
*/
|
||||
window.rememberYOffset = window.pageYOffset
|
||||
window.rememberYOffset = window.pageYOffset
|
||||
window.routerFix()
|
||||
PagesPie.instance().open(TorrentPage, {replace: 'all', hash: torrent.hash, peer: torrent.peer})
|
||||
}}
|
||||
|
Reference in New Issue
Block a user