2015-11-30 18:34:09 +00:00
|
|
|
doctype html
|
|
|
|
html(ng-app='bTorrent', lang='en')
|
|
|
|
head
|
|
|
|
base(href='')
|
|
|
|
meta(charset='UTF-8')
|
|
|
|
title βTorrent: Browser WebTorrent Client
|
|
|
|
meta(name='description', content='βTorrent: Browser WebTorrent Client')
|
|
|
|
meta(name='keywords', content='βTorrent, btorrent, client, webtorrent, browser, torrent')
|
|
|
|
meta(name='author', content='Diego Rodríguez Baquero - DiegoRBaquero')
|
|
|
|
meta(name='viewport', content='width=device-width, initial-scale=1')
|
|
|
|
script(src='https://cdn.jsdelivr.net/g/webtorrent@0.62,momentjs@2.10,angularjs@1.4')
|
|
|
|
link(rel='stylesheet', href='https://cdn.jsdelivr.net/g/normalize@3.0,skeleton@2.0')
|
|
|
|
link(rel='stylesheet', href='https://cdn.jsdelivr.net/fontawesome/4.5/css/font-awesome.min.css')
|
|
|
|
link(rel='stylesheet', href='style.css')
|
|
|
|
body
|
|
|
|
header
|
|
|
|
h1
|
|
|
|
| βTorrent
|
2015-11-30 23:58:45 +00:00
|
|
|
span.version v0.4.2
|
2015-11-30 18:34:09 +00:00
|
|
|
.container(ng-controller='bTorrentCtrl', ng-cloak='')
|
|
|
|
.row
|
|
|
|
.twelve.columns
|
|
|
|
.row
|
|
|
|
.five.columns
|
|
|
|
input#torrentInput.u-full-width(type='text', placeholder='magnet link or hash', ng-model='torrentInput')
|
|
|
|
.two.columns
|
|
|
|
button.button-primary(ng-click='fromInput()')
|
|
|
|
i.fa.fa-download
|
|
|
|
| Download
|
|
|
|
.five.columns.u-pull-right
|
|
|
|
input#fileUpload(type='file', style='display: none;', onchange='angular.element(this).scope().uploadFile2(this)')
|
|
|
|
label.u-pull-right
|
|
|
|
button.button-primary(ng-click='uploadFile()')
|
|
|
|
i.fa.fa-upload
|
|
|
|
| Seed a file
|
|
|
|
table.u-full-width
|
|
|
|
thead
|
|
|
|
tr
|
|
|
|
th Name
|
|
|
|
th(ng-hide='client.done()') Downloaded
|
|
|
|
th(ng-hide='client.done()') Remaining
|
|
|
|
th(ng-hide='client.downloading()') Uploaded
|
|
|
|
th Peers
|
|
|
|
th Share
|
|
|
|
th Actions
|
|
|
|
tbody(ng-hide='client.torrents.length')
|
|
|
|
tr
|
|
|
|
td.center(colspan='100') Add a torrent o seed a file!
|
2015-12-01 03:01:26 +00:00
|
|
|
tbody(ng-repeat='torrent in client.torrents', ng-if='torrent.files')
|
2015-11-30 18:34:09 +00:00
|
|
|
tr.torrentRow(ng-class='{selectedTorrent: torrent.showFiles}')
|
|
|
|
td
|
|
|
|
div
|
|
|
|
i.fa.fa-cloud-download(ng-hide='torrent.done')
|
|
|
|
i.fa.fa-check(ng-show='torrent.done')
|
|
|
|
| {{torrent.name}}
|
|
|
|
span.subInfo
|
2015-12-01 01:12:35 +00:00
|
|
|
| {{torrent.pSize | pbytes}} in
|
2015-11-30 18:34:09 +00:00
|
|
|
a(href='#', onclick='return false;', ng-click='toggleTorrent(torrent)') {{torrent.files.length}} files
|
|
|
|
td(ng-hide='client.done()')
|
2015-12-01 06:34:04 +00:00
|
|
|
| {{torrent.downloaded | pbytes}}
|
2015-11-30 18:34:09 +00:00
|
|
|
span.subInfo ({{torrent.pProgress}}%)
|
|
|
|
br
|
|
|
|
span.subInfo @ {{torrent.downloadSpeed() | pbytes}}/s
|
2015-12-01 06:34:04 +00:00
|
|
|
td(ng-hide='client.done()')
|
|
|
|
| {{torrent.tRemaining}}
|
|
|
|
td(ng-hide='client.downloading()')
|
|
|
|
| {{torrent.uploaded | pbytes}}
|
2015-11-30 18:34:09 +00:00
|
|
|
br
|
|
|
|
span.subInfo @ {{torrent.uploadSpeed() | pbytes}}/s
|
|
|
|
td {{torrent.swarm.wires.length}}
|
|
|
|
td
|
2015-12-01 06:34:04 +00:00
|
|
|
a(ng-href='#{{torrent.infoHash}}', target='_blank')
|
|
|
|
| βTorrent
|
2015-11-30 18:34:09 +00:00
|
|
|
|
|
2015-12-01 06:34:04 +00:00
|
|
|
a(ng-href='{{torrent.magnetURI}}', target='_blank')
|
|
|
|
| Magnet URI
|
2015-11-30 18:34:09 +00:00
|
|
|
|
|
2015-12-01 06:34:04 +00:00
|
|
|
a(ng-href='{{torrent.oTorrentFileURL}}', target='_blank', download='{{torrent.fileName}}')
|
|
|
|
| .torrent
|
2015-11-30 18:34:09 +00:00
|
|
|
br
|
|
|
|
span.subInfo
|
|
|
|
i.fa.fa-hashtag
|
|
|
|
| {{torrent.infoHash}}
|
|
|
|
td
|
2015-12-01 03:01:26 +00:00
|
|
|
i.fa.fa-times(ng-click='client.processing = true; client.remove(torrent, destroyedTorrent)')
|
2015-11-30 18:34:09 +00:00
|
|
|
tr(ng-show='torrent.showFiles')
|
|
|
|
td.files(colspan='100')
|
|
|
|
.row
|
|
|
|
.two.columns.center
|
|
|
|
i.fa.fa-file
|
2015-11-30 20:34:23 +00:00
|
|
|
strong Files:
|
2015-11-30 18:34:09 +00:00
|
|
|
.ten.columns.fix-height
|
|
|
|
ul.no-margin
|
|
|
|
li(ng-repeat='file in torrent.files')
|
|
|
|
span(ng-hide='file.done') {{file.status}}: {{file.name}}
|
|
|
|
a(href='{{file.url}}', download='{{file.name}}', target='_blank', ng-show='file.done') {{file.name}}
|
2015-12-01 01:12:35 +00:00
|
|
|
span.subInfo {{file.pSize | pbytes}}
|
2015-11-30 18:34:09 +00:00
|
|
|
tbody(ng-show='client.processing')
|
|
|
|
tr
|
|
|
|
td.center(colspan='100') Please wait a few seconds!
|
|
|
|
footer
|
2015-11-30 20:10:48 +00:00
|
|
|
| Made in Bogotá, Colombia by
|
2015-11-30 18:34:09 +00:00
|
|
|
a(href='http://diegorbaquero.com') DiegoRBaquero
|
|
|
|
br
|
|
|
|
small
|
|
|
|
a(href='https://webtorrent.io') WebTorrent
|
|
|
|
| is powered by JavaScript and WebRTC. Works in Chrome, Firefox, and Opera (desktop and Android).
|
|
|
|
p
|
|
|
|
script(src='app.js')
|