mirror of
https://gitlab.com/timvisee/send.git
synced 2025-12-10 12:15:34 +00:00
hook multifile to ui
This commit is contained in:
12
app/templates/uploadedFileList/index.js
Normal file
12
app/templates/uploadedFileList/index.js
Normal file
@@ -0,0 +1,12 @@
|
||||
const html = require('choo/html');
|
||||
const file = require('../uploadedFile');
|
||||
|
||||
module.exports = function(files, state, emit) {
|
||||
//const progressRatio = state.transfer ? state.transfer.progressRatio : 0;
|
||||
|
||||
return html`
|
||||
<ul class="uploadedFiles">
|
||||
${files.map(f => file(f, state, emit))}
|
||||
</ul>
|
||||
`;
|
||||
};
|
||||
10
app/templates/uploadedFileList/uploadedFileList.css
Normal file
10
app/templates/uploadedFileList/uploadedFileList.css
Normal file
@@ -0,0 +1,10 @@
|
||||
.uploadedFiles {
|
||||
border: 1px solid rgba(12, 12, 13, 0.1);
|
||||
border-radius: 4px;
|
||||
box-sizing: border-box;
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
align-content: center;
|
||||
flex: 1;
|
||||
overflow-y: scroll;
|
||||
}
|
||||
Reference in New Issue
Block a user