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
|
2015-12-01 07:15:37 +00:00
|
|
|
meta(name='description', content='βTorrent: fully-featured Browser WebTorrent Client')
|
|
|
|
meta(name='keywords', content='βTorrent, btorrent, client, webtorrent, browser, torrent, stream, bittorrent')
|
2015-11-30 18:34:09 +00:00
|
|
|
meta(name='author', content='Diego Rodríguez Baquero - DiegoRBaquero')
|
|
|
|
meta(name='viewport', content='width=device-width, initial-scale=1')
|
2015-12-07 03:22:09 +00:00
|
|
|
script(src='https://cdn.jsdelivr.net/g/webtorrent@0.63.2,momentjs@2.10,angularjs@1.4,angular.ui-grid@3.0')
|
|
|
|
script(src='https://cdnjs.cloudflare.com/ajax/libs/danialfarid-angular-file-upload/10.1.8/ng-file-upload.min.js')
|
2015-11-30 18:34:09 +00:00
|
|
|
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')
|
2015-12-03 01:05:27 +00:00
|
|
|
link(rel='stylesheet', href='https://cdn.jsdelivr.net/angular.ui-grid/3.0.7/ui-grid.min.css')
|
2015-11-30 18:34:09 +00:00
|
|
|
link(rel='stylesheet', href='style.css')
|
2015-12-03 01:05:27 +00:00
|
|
|
body(ng-controller='bTorrentCtrl', ng-cloak='')
|
2015-11-30 18:34:09 +00:00
|
|
|
header
|
|
|
|
h1
|
|
|
|
| βTorrent
|
2015-12-07 04:53:33 +00:00
|
|
|
span.version v0.6.2
|
2015-12-03 01:05:27 +00:00
|
|
|
|
|
|
|
.container
|
2015-11-30 18:34:09 +00:00
|
|
|
.row
|
2015-12-07 03:22:09 +00:00
|
|
|
.four.columns
|
|
|
|
input.u-full-width(type='text', placeholder='magnet link or hash', ng-model='torrentInput')
|
|
|
|
.two.columns.download-button
|
|
|
|
button.button-primary(ng-click='addMagnet()')
|
2015-12-03 01:05:27 +00:00
|
|
|
i.fa.fa-download
|
|
|
|
| Download
|
2015-12-07 03:22:09 +00:00
|
|
|
.three.columns
|
|
|
|
//button.button-primary(type='file', ngf-select='openTorrentFile($file)')
|
|
|
|
i.fa.fa-folder-open
|
|
|
|
| Open torrent file
|
|
|
|
.three.columns.u-pull-right
|
|
|
|
button.u-pull-right.button-primary(type='file', ngf-select='seedFile($file)')
|
|
|
|
i.fa.fa-upload
|
|
|
|
| Seed a file
|
2015-12-03 01:05:27 +00:00
|
|
|
.row.grid(ui-grid='gridOptions', ui-grid-resize-columns, ui-grid-selection)
|
|
|
|
.row(ng-if="selectedTorrent")
|
|
|
|
.six.columns
|
2015-12-07 03:22:09 +00:00
|
|
|
h5 {{selectedTorrent.name}}
|
|
|
|
h6 Share
|
2015-12-03 01:05:27 +00:00
|
|
|
ul
|
|
|
|
li
|
|
|
|
a(ng-href='#{{selectedTorrent.infoHash}}', target='_blank') βTorrent
|
|
|
|
li
|
|
|
|
a(ng-href='{{selectedTorrent.magnetURI}}', target='_blank') Magnet URI
|
|
|
|
li
|
2015-12-07 03:22:09 +00:00
|
|
|
a(ng-href='{{selectedTorrent.safeTorrentFileURL}}', target='_self', download='{{selectedTorrent.fileName}}') .torrent
|
2015-12-03 01:05:27 +00:00
|
|
|
li
|
|
|
|
strong Hash:
|
|
|
|
| {{selectedTorrent.infoHash}}
|
|
|
|
.six.columns
|
2015-12-07 03:22:09 +00:00
|
|
|
h5 Files
|
2015-11-30 18:34:09 +00:00
|
|
|
table.u-full-width
|
|
|
|
thead
|
|
|
|
tr
|
|
|
|
th Name
|
2015-12-03 01:05:27 +00:00
|
|
|
th Size
|
|
|
|
tbody
|
|
|
|
tr.files(ng-repeat='file in selectedTorrent.files')
|
|
|
|
td(ng-hide='file.done') {{file.name}}
|
|
|
|
td(ng-show='file.done')
|
2015-12-07 03:22:09 +00:00
|
|
|
a(ng-href='{{file.url}}', download='{{file.name}}', target='_self', ng-show='file.done') {{file.name}}
|
2015-12-03 01:05:27 +00:00
|
|
|
td {{file.length | pbytes}}
|
|
|
|
hr
|
2015-11-30 18:34:09 +00:00
|
|
|
footer
|
2015-12-03 01:05:27 +00:00
|
|
|
a.button(href="https://github.com/DiegoRBaquero/BTorrent/issues", target="_blank") Suggest a new feature / Report a bug
|
|
|
|
i.fa.comment
|
|
|
|
br
|
2015-12-07 03:22:09 +00:00
|
|
|
| An Open-Source project by
|
2015-11-30 18:34:09 +00:00
|
|
|
a(href='http://diegorbaquero.com') DiegoRBaquero
|
|
|
|
br
|
2015-12-03 01:05:27 +00:00
|
|
|
| Powered by
|
|
|
|
a(href='https://webtorrent.io') WebTorrent
|
2015-11-30 18:34:09 +00:00
|
|
|
p
|
2015-12-03 01:05:27 +00:00
|
|
|
.spinner(ng-show="client.processing")
|
|
|
|
i.fa.fa-spinner.fa-6.fa-spin.spinner-icon
|
|
|
|
script(src='app.js')
|