Remove unused block
This commit is contained in:
parent
ab721b9a7a
commit
d51b815b92
47
src/App.js
47
src/App.js
@ -18,6 +18,10 @@ class App extends Component {
|
||||
this.state = {
|
||||
stats: {
|
||||
// bytes: 0,
|
||||
//checking: [
|
||||
// "a very very very long absurdly unneccesarily long name this is if you cant tell",
|
||||
// "a very very very long absurdly unneccesarily long name this is if you cant tell 2"
|
||||
//]
|
||||
// checks: 0,
|
||||
// deletedDirs: 0,
|
||||
// deletes: 0,
|
||||
@ -32,16 +36,21 @@ class App extends Component {
|
||||
// totalChecks: 0,
|
||||
// totalTransfers: 0,
|
||||
// transferTime: 0,
|
||||
// transfers: 0,
|
||||
// transferring: [
|
||||
// {
|
||||
// speed: 23534245,
|
||||
// group: "job/1",
|
||||
// size: 23457826345,
|
||||
// eta: 3600,
|
||||
// bytes: 590673
|
||||
// dstFs: "/mnt/backup01/data_replica"
|
||||
// eta: 0
|
||||
// group: "job/17553"
|
||||
// name: "a very very very long absurdly unneccesarily long name this is if you cant tell"
|
||||
// percentage: 100
|
||||
// size: 590673
|
||||
// speed: 806565.7017727684
|
||||
// speedAvg: 574257.5080241694
|
||||
// srcFs: "/mnt/main_storage/data"
|
||||
// }
|
||||
// ]
|
||||
// ],
|
||||
// transfers: 0,
|
||||
},
|
||||
//remotes: [{
|
||||
// name: "gdrive",
|
||||
@ -240,32 +249,6 @@ class App extends Component {
|
||||
.catch(() => {})
|
||||
}
|
||||
|
||||
/* openBrowser = name => {
|
||||
let browserFs = JSON.parse(sessionStorage.getItem("browserFs")),
|
||||
currentPath = JSON.parse(sessionStorage.getItem("currentPath"))
|
||||
|
||||
if (browserFs === null) browserFs = ["", ""]
|
||||
if (currentPath === null) currentPath = ["/", "/"]
|
||||
|
||||
if (typeof name === "string") {
|
||||
browserFs[0] = name
|
||||
currentPath[0] = "/"
|
||||
}
|
||||
|
||||
sessionStorage.setItem("browserFs", JSON.stringify(browserFs))
|
||||
sessionStorage.setItem("currentPath", JSON.stringify(currentPath))
|
||||
|
||||
this.setState({ renderBrowser: true })
|
||||
}
|
||||
|
||||
renderFileBrowser = () => {
|
||||
if (this.state.renderBrowser) return (
|
||||
<FileBrowserMenu close={() => this.setState({ renderBrowser: false })} remotes={this.state.remotes} />
|
||||
)
|
||||
|
||||
return <Fragment />
|
||||
}*/
|
||||
|
||||
/**
|
||||
* renders the total speed of all transfers
|
||||
* @returns {String}
|
||||
|
Loading…
x
Reference in New Issue
Block a user