mirror of
https://github.com/Aurorastation/Aurora.3.git
synced 2026-08-22 20:43:10 +01:00
- Adds simple NTNet P2P transfer client, that allows users to send files via NTNet. - This client can act either as actual client (downloading files), or as a server, providing one file at time. - This may (not guaranteed) be expanded in future, to allow sharing of multiple files at once, possibly even having some sort of dedicated server architecture - Transfer speed is calculated as lower value of connection speed of both devices (weakest link in the chain) - Server may be protected using rudimentary password that, if set, must be entered to download the file.
94 lines
2.4 KiB
Cheetah
94 lines
2.4 KiB
Cheetah
{{if data.error}}
|
|
<div class='item'>
|
|
<h2>An error has occured during operation...</h2>
|
|
<b>Additional information: </b>{{:data.error}}<br>
|
|
{{:helper.link('Clear', null, {'PRG_reset' : 1})}}
|
|
</div>
|
|
{{else data.downloading}}
|
|
<h2>Download in progress...</h2>
|
|
<div class="itemLabel">
|
|
Downloaded file:
|
|
</div>
|
|
<div class="itemContent">
|
|
{{:data.download_name}}
|
|
</div>
|
|
<div class="itemLabel">
|
|
Download progress:
|
|
</div>
|
|
<div class="itemContent">
|
|
{{:data.download_progress}} / {{:data.download_size}} GQ
|
|
</div>
|
|
<div class="itemLabel">
|
|
Transfer speed:
|
|
</div>
|
|
<div class="itemContent">
|
|
{{:data.download_netspeed}}GQ/s
|
|
</div>
|
|
<div class="itemLabel">
|
|
Controls:
|
|
</div>
|
|
<div class="itemContent">
|
|
{{:helper.link('Abort download', null, {'PRG_reset' : 1})}}
|
|
</div>
|
|
{{else data.uploading}}
|
|
<h2>Server enabled</h2>
|
|
<div class="itemLabel">
|
|
Connected clients:
|
|
</div>
|
|
<div class="itemContent">
|
|
{{:data.upload_clients}}
|
|
</div>
|
|
<div class="itemLabel">
|
|
Provided file:
|
|
</div>
|
|
<div class="itemContent">
|
|
{{:data.upload_filename}}
|
|
</div>
|
|
<div class="itemLabel">
|
|
Server password:
|
|
</div>
|
|
<div class="itemContent">
|
|
{{if data.haspassword}}
|
|
ENABLED
|
|
{{else}}
|
|
DISABLED
|
|
{{/if}}
|
|
</div>
|
|
<div class="itemLabel">
|
|
Commands:
|
|
</div>
|
|
<div class="itemContent">
|
|
{{:helper.link('Set password', null, {'PRG_setpassword' : 1})}}
|
|
{{:helper.link('Exit server', null, {'PRG_reset' : 1})}}
|
|
</div>
|
|
{{else data.upload_filelist}}
|
|
<h2>File transfer server ready. Select file to upload: </h2>
|
|
<table>
|
|
<tr><th>File name<th>File size<th>Controls
|
|
{{for data.upload_filelist}}
|
|
<tr><td>{{:value.filename}}
|
|
<td>{{:value.size}}GQ
|
|
<td>{{:helper.link('Select', null, {'PRG_uploadfile' : value.uid})}}
|
|
{{/for}}
|
|
</table>
|
|
<hr>
|
|
{{:helper.link('Set password', null, { "PRG_setpassword" : 1 })}}
|
|
{{:helper.link('Return', null, { "PRG_reset" : 1 })}}
|
|
{{else}}
|
|
<h2>Available files:</h2>
|
|
<table border="1" style="border-collapse: collapse"><tr><th>Server UID<th>File Name<th>File Size<th>Password Protection<th>Operations
|
|
{{for data.servers}}
|
|
<tr><td>{{:value.uid}}
|
|
<td>{{:value.filename}}
|
|
<td>{{:value.size}}GQ
|
|
{{if value.haspassword}}
|
|
<td>Enabled
|
|
{{else}}
|
|
<td>Disabled
|
|
{{/if}}
|
|
<td>{{:helper.link('Download', null, { "PRG_downloadfile" : value.uid })}}
|
|
{{/for}}
|
|
</table>
|
|
<hr>
|
|
{{:helper.link('Send file', null, { "PRG_uploadmenu" : 1 })}}
|
|
{{/if}} |