wip
This commit is contained in:
parent
2b81ff1fb3
commit
cc85486414
28 changed files with 207 additions and 97 deletions
18
app/pages/uploads/index.js
Normal file
18
app/pages/uploads/index.js
Normal file
|
@ -0,0 +1,18 @@
|
|||
const html = require('choo/html');
|
||||
const controlArea = require('../../templates/controlArea');
|
||||
const archiveTile = require('../../templates/archiveTile');
|
||||
|
||||
module.exports = function(state, emit) {
|
||||
const fileArea = state.storage.files.length
|
||||
? html`<ul class="myUploads">
|
||||
${state.storage.files.map(f => archiveTile(f, state))}
|
||||
</ul>`
|
||||
: html`<div>nothing to see here</div>`;
|
||||
return html`<main class="main">
|
||||
${controlArea(state, emit)}
|
||||
<div class="wide">
|
||||
<h1>${state.translate('myUploads')}</h1>
|
||||
${fileArea}
|
||||
</div>
|
||||
</main>`;
|
||||
};
|
Loading…
Add table
Add a link
Reference in a new issue