Compare commits

...

4 Commits

Author SHA1 Message Date
DC
2b6c9ffcdb 0.13.1 2016-08-31 18:49:18 -07:00
DC
1d4b8ab67d Fix Create Torrent 2016-08-31 17:32:22 -07:00
DC
6404168bee changelog 2016-08-31 16:23:45 -07:00
DC
6613366cff authors 2016-08-31 16:09:49 -07:00
4 changed files with 40 additions and 23 deletions

View File

@@ -28,5 +28,8 @@
- Rémi Jouannet (remijouannet@gmail.com)
- Andrea Tupini (tupini07@gmail.com)
- grunjol (grunjol@gmail.com)
- Jason Kurian (jasonk92@gmail.com)
- Vamsi Krishna Avula (vamsi_ism@outlook.com)
- Noam Okman (noamokman@gmail.com)
#### Generated by bin/update-authors.sh.

View File

@@ -1,5 +1,20 @@
# WebTorrent Desktop Version History
## v0.13.0 - 2016-08-31
### Added
- Torrent progress bar
- Support .m4a audio
- Better telemetry: log error versions, report more types of errors
### Changed
- New look - Material UI. Rewrote Create Torrent and Preferences pages.
### Fixed
- Fixed telemetry [object Object] and [object HTMLMediaElement] bugs
- Don't render player controls when playing externally, eg in VLC
- Don't play notification sounds during media playback
## v0.12.0 - 2016-08-23
### Added

View File

@@ -1,7 +1,7 @@
{
"name": "webtorrent-desktop",
"description": "WebTorrent, the streaming torrent client. For Mac, Windows, and Linux.",
"version": "0.13.0",
"version": "0.13.1",
"author": {
"name": "WebTorrent, LLC",
"email": "feross@webtorrent.io",

View File

@@ -66,25 +66,7 @@ class CreateTorrentPage extends React.Component {
this.setIsPrivate = (_, isPrivate) => this.setState({isPrivate})
this.setComment = (_, comment) => this.setState({comment})
this.setTrackers = (_, trackers) => this.setState({trackers})
this.handleSubmit = () => this.handleSubmit
}
handleSubmit () {
var announceList = this.state.trackers
.split('\n')
.map((s) => s.trim())
.filter((s) => s !== '')
var options = {
// We can't let the user choose their own name if we want WebTorrent
// to use the files in place rather than creating a new folder.
name: this.state.defaultName,
path: this.state.basePath,
files: this.state.files,
announce: announceList,
private: this.state.isPrivate,
comment: this.state.comment.trim()
}
dispatch('createTorrent', options)
this.handleSubmit = handleSubmit.bind(this)
}
render () {
@@ -154,8 +136,8 @@ class CreateTorrentPage extends React.Component {
<Checkbox
className='torrent-is-private'
style={{display: ''}}
value={this.state.isPrivate}
onChange={this.setIsPrivate} />
checked={this.state.isPrivate}
onCheck={this.setIsPrivate} />
</div>
<div key='trackers' className='torrent-attribute'>
<label>Trackers:</label>
@@ -191,6 +173,24 @@ class CreateTorrentPage extends React.Component {
}
}
function handleSubmit () {
var announceList = this.state.trackers
.split('\n')
.map((s) => s.trim())
.filter((s) => s !== '')
var options = {
// We can't let the user choose their own name if we want WebTorrent
// to use the files in place rather than creating a new folder.
name: this.state.defaultName,
path: this.state.basePath,
files: this.state.files,
announce: announceList,
private: this.state.isPrivate,
comment: this.state.comment.trim()
}
dispatch('createTorrent', options)
}
// Finds the longest common prefix
function findCommonPrefix (a, b) {
for (var i = 0; i < a.length && i < b.length; i++) {
@@ -203,7 +203,6 @@ function findCommonPrefix (a, b) {
function containsDots (path, pathPrefix) {
var suffix = path.substring(pathPrefix.length).replace(/\\/g, '/')
console.log('SUFFIX ' + suffix)
return ('/' + suffix).includes('/.')
}