-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
1st Prod build, Wget and Soundcloud-dl fully integrated and working
Created the redux settings for wget and global settings such as server_ip and port that liquid_dl is running on. Made WgetForm reactive to it different status changes. Signed-off-by: Kthulu120 <[email protected]>
- Loading branch information
Kthulu120
authored and
Kthulu120
committed
Sep 5, 2017
1 parent
f769edc
commit 82fdaae
Showing
48 changed files
with
544 additions
and
401 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
14 changes: 8 additions & 6 deletions
14
assets/js/Components/AppContainers/FfmpegConverter/FfmpegContainer.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
11 changes: 4 additions & 7 deletions
11
assets/js/Components/AppContainers/FfmpegConverter/FfmpegForm.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
11 changes: 3 additions & 8 deletions
11
assets/js/Components/AppContainers/ImgurScraper/ImgurScraperForm.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
14 changes: 5 additions & 9 deletions
14
assets/js/Components/AppContainers/Soundcloud/SoundCloudValidation.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
12 changes: 7 additions & 5 deletions
12
assets/js/Components/AppContainers/Soundcloud/SoundcloudContainer.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
8 changes: 2 additions & 6 deletions
8
assets/js/Components/AppContainers/Soundcloud/SoundcloudForm.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
44 changes: 44 additions & 0 deletions
44
assets/js/Components/AppContainers/Wget/AcceptValueForm.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
import React from "react"; | ||
import createClass from "create-react-class"; | ||
import Select from "react-select"; | ||
import {makeValueArray} from "./WgetFormValidation"; | ||
|
||
const AcceptValueForm = createClass({ | ||
displayName: 'AcceptValueForm', | ||
getInitialState () { | ||
return { | ||
multi: true, | ||
multiValue: [], | ||
options: [], | ||
value: undefined | ||
}; | ||
}, | ||
|
||
handleOnChange (value) { | ||
const {multi} = this.state; | ||
if (multi) { | ||
this.setState({multiValue: value}); | ||
} else { | ||
this.setState({value}); | ||
} | ||
this.props.onChangeValue(makeValueArray(value)) | ||
}, | ||
|
||
render () { | ||
const {multi, multiValue, options, value} = this.state; | ||
return ( | ||
<div className="section"> | ||
<p className="section-heading">{this.props.label}</p> | ||
<Select.Creatable | ||
multi={multi} | ||
options={options} | ||
onChange={this.handleOnChange} | ||
value={multi ? multiValue : value} | ||
/> | ||
|
||
</div> | ||
); | ||
} | ||
}); | ||
|
||
export default AcceptValueForm |
42 changes: 42 additions & 0 deletions
42
assets/js/Components/AppContainers/Wget/RejectValueForm.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
import React from "react"; | ||
import createClass from "create-react-class"; | ||
import Select from "react-select"; | ||
import {makeValueArray} from "./WgetFormValidation"; | ||
|
||
const RejectValueForm = createClass({ | ||
displayName: 'RejectValueForm', | ||
getInitialState () { | ||
return { | ||
multi: true, | ||
multiValue: [], | ||
options: [], | ||
value: undefined | ||
}; | ||
}, | ||
handleOnChange (value) { | ||
const {multi} = this.state; | ||
if (multi) { | ||
this.setState({multiValue: value}); | ||
} else { | ||
this.setState({value}); | ||
} | ||
this.props.onChangeValue(makeValueArray(value)) | ||
}, | ||
render () { | ||
const {multi, multiValue, options, value} = this.state; | ||
return ( | ||
<div className="section"> | ||
<p className="section-heading">{this.props.label}</p> | ||
<Select.Creatable | ||
multi={multi} | ||
options={options} | ||
onChange={this.handleOnChange} | ||
value={multi ? multiValue : value} | ||
/> | ||
|
||
</div> | ||
); | ||
} | ||
}); | ||
|
||
export default RejectValueForm |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.