Download initital view open to beta

This commit is contained in:
Diego Rodríguez 2016-02-16 14:06:08 -03:00
parent 7d7b329a7d
commit e0e79c47f5
3 changed files with 67 additions and 45 deletions

View file

@ -1,38 +1,42 @@
doctype html doctype html
html(ng-app='BTorrent', lang='en') html(ng-app='BTorrent', lang='en')
head head
base(href='') base(href='')
meta(charset='UTF-8') meta(charset='UTF-8')
title βTorrent: Browser WebTorrent Client title βTorrent: Browser WebTorrent Client
meta(name='description', content='βTorrent is the first fully-featured Browser WebTorrent Client') meta(name='description', content='βTorrent is the first fully-featured Browser WebTorrent Client')
meta(name='keywords', content='βTorrent, btorrent, client, webtorrent, browser, torrent, stream, bittorrent, torrenting, sharing, filesharing') meta(name='keywords', content='βTorrent, btorrent, client, webtorrent, browser, torrent, stream, bittorrent, torrenting, sharing, filesharing')
meta(name='author', content='Diego Rodríguez Baquero - DiegoRBaquero') meta(name='author', content='Diego Rodríguez Baquero - DiegoRBaquero')
meta(name='viewport', content='width=device-width, initial-scale=1') meta(name='viewport', content='width=device-width, initial-scale=1')
script(src='https://cdn.jsdelivr.net/g/webtorrent@0.76,momentjs@2.11,angularjs@1.4(angular.min.js+angular-route.min.js+angular-sanitize.min.js),angular.ui-grid@3.1,angular.ng-notify@0.7,angular.file-upload@12') script(src='https://cdn.jsdelivr.net/g/webtorrent@0.76,momentjs@2.11,angularjs@1.4(angular.min.js+angular-route.min.js+angular-sanitize.min.js),angular.ui-grid@3.1,angular.ng-notify@0.7,angular.file-upload@12')
link(rel='stylesheet', href='https://cdn.jsdelivr.net/g/normalize@3.0,skeleton@2.0,angular.ng-notify@0.7(ng-notify.min.css)') link(rel='stylesheet', href='https://cdn.jsdelivr.net/g/normalize@3.0,skeleton@2.0,angular.ng-notify@0.7(ng-notify.min.css)')
link(rel='stylesheet', href='https://cdn.jsdelivr.net/fontawesome/4.5/css/font-awesome.min.css') link(rel='stylesheet', href='https://cdn.jsdelivr.net/fontawesome/4.5/css/font-awesome.min.css')
link(rel='stylesheet', href='https://cdn.jsdelivr.net/angular.ui-grid/3.1/ui-grid.min.css') link(rel='stylesheet', href='https://cdn.jsdelivr.net/angular.ui-grid/3.1/ui-grid.min.css')
link(rel='stylesheet', href='style.css') link(rel='stylesheet', href='style.css')
body(ng-controller='BTorrentCtrl', ng-cloak='') body(ng-controller='BTorrentCtrl', ng-cloak='')
header header
h1 h1
| βTorrent | βTorrent
span.version v0.12.2 span.version v0.12.2
#view(ng-view) div.views
footer a(ng-href='/#') Full
a.button(href="https://github.com/DiegoRBaquero/BTorrent/issues", target="_blank") | |
i.fa.fa-github a(ng-href='/download') Download
| Suggest a feature / Report a bug #view(ng-view)
i.fa.fa-comment footer
br a.button(href="https://github.com/DiegoRBaquero/BTorrent/issues", target="_blank")
| βTorrent is an Open-Source project by i.fa.fa-github
a(href='http://diegorbaquero.com') DiegoRBaquero | Suggest a feature / Report a bug
br i.fa.fa-comment
| Powered by br
a(href='https://github.com/feross/webtorrent') WebTorrent | βTorrent is an Open-Source project by
br a(href='http://diegorbaquero.com') DiegoRBaquero
small Need WebRTC + Web Seeding for your WebTorrent powered site? Contact br
a(href='http://diegorbaquero.com') me | Powered by
.spinner(ng-show="client.processing") a(href='https://github.com/feross/webtorrent') WebTorrent
i.fa.fa-spinner.fa-spin.spinner-icon br
script(src='app.js') small Need WebRTC + Web Seeding for your WebTorrent powered site? Contact
a(href='http://diegorbaquero.com') me
.spinner(ng-show="client.processing")
i.fa.fa-spinner.fa-spin.spinner-icon
script(src='app.js')

View file

@ -30,6 +30,9 @@ footer
color: #ccc color: #ccc
font-size: 0.3em font-size: 0.3em
.views
margin-top: -20px
.download-button .download-button
margin-left: 10px margin-left: 10px

View file

@ -13,13 +13,27 @@
i.fa.fa-folder-open i.fa.fa-folder-open
| Open torrent file | Open torrent file
.div(ng-if="selectedTorrent", style="text-align: center") .div(ng-if="selectedTorrent", style="text-align: center")
.row(style='overflow: auto') .four.columns(style='overflow: auto')
h3 {{$root.selectedTorrent.name}} h4 Information
h4 {{$root.selectedTorrent.length | pbytes}} table.u-full-width
h4 {{$root.selectedTorrent.progress | progress}} tbody
h4 {{$root.selectedTorrent.downloadSpeed | pbytes:1}} {{$root.selectedTorrent.timeRemaining | humanTime}} tr
.row td Name
h5 Files td {{$root.selectedTorrent.name}}
tr
td Size
td {{$root.selectedTorrent.length | pbytes}}
tr
td Completed
td {{$root.selectedTorrent.progress | progress}} ({{$root.selectedTorrent.downloaded | pbytes}})
tr
td ↓ Speed
td {{$root.selectedTorrent.downloadSpeed | pbytes:1}}
tr
td ETA
td {{$root.selectedTorrent.timeRemaining | humanTime}}
.four.columns
h4 Files
table(style="margin: auto") table(style="margin: auto")
thead thead
tr tr
@ -37,8 +51,9 @@
option(value='1') High Priority option(value='1') High Priority
option(value='0' selected='') Low Priority option(value='0' selected='') Low Priority
option(value='-1') Don't download option(value='-1') Don't download
.row h5 ↑ Click a file to download it
h5 Share .four.columns
h4 Share
ul(style="text-align: justify") ul(style="text-align: justify")
li li
a(ng-href='#{{$root.selectedTorrent.infoHash}}', target='_blank') βTorrent a(ng-href='#{{$root.selectedTorrent.infoHash}}', target='_blank') βTorrent