-
- ${ - indexContent - ? ` -
-
- ${indexContent} -
-
- ` - : '' - } -
- -
- -
-
- - ${ - authType === 'uploads' - ? ` - - - - - -
-
- - -
-
-
- - -
- -
-
- - - - - - - - - - ` - : '' - } - - - - - - - - - - ${authType === 'uploads' ? '' : ''} - - - - ${itemsInfo - .map( - item => ` - - - - - - - ${ - authType === 'uploads' - ? ` - - ` - : '' - } - - ` - ) - .join('')} - -
- - Name ${(() => { - if (sortBy !== 'name') { - return ''; - } - return sortOrder === 'asc' ? '↑' : '↓'; - })()} - - Type - - Size ${(() => { - if (sortBy !== 'size') { - return ''; - } - return sortOrder === 'asc' ? '↑' : '↓'; - })()} - - - - Last Modified ${(() => { - if (sortBy !== 'modified') { - return ''; - } - return sortOrder === 'asc' ? '↑' : '↓'; - })()} - - ChecksumActions
- - - ${item.name} - - ${item.isDirectory ? 'Directory' : 'File'}${item.isDirectory ? '-' : formatBytes(item.size)}${item.mtime.toLocaleString()} - ${(() => { - if (item.isDirectory) { - return 'N/A'; - } - if (item.checksum === 'N/A' || item.checksum === 'Pending') { - return `${item.checksum}`; - } - return ` - - ${item.checksum.substring(0, 8)}... - - `; - })()} - -
- - -
-
-
-