Add ui for setting max downloads, max time, and password.

This commit is contained in:
Donovan Preston 2018-09-24 12:30:27 -04:00 committed by Danny Coates
parent fe4eb1d582
commit 5ec2486c57
No known key found for this signature in database
GPG key ID: 4C442633C62E00CB
8 changed files with 134 additions and 5 deletions

View file

@ -5,6 +5,7 @@ export default function mainPage(state, emit) {
event.preventDefault();
emit('pushState', '/preferences');
}
function uploadFile(event) {
event.preventDefault();
const target = event.target;
@ -13,15 +14,16 @@ export default function mainPage(state, emit) {
return;
}
emit('pushState', '/upload');
emit('pushState', '/options');
emit('addFiles', { files: [file] });
emit('upload', {});
}
return html`<body>
<div id="white">
<div id="centering">
<a href="#" onclick=${clickPreferences}>
preferenes
<img id="top-banner" src=${state.getAsset('top-banner.png')} />
<a id="hamburger" href="#" onclick=${clickPreferences}>
<img src=${state.getAsset('preferences.png')} />
</a>
<img src=${state.getAsset('encrypted-envelope.png')} />
<h4>Private, Encrypted File Sharing</h4>