2021-08-30 10:46:18 +00:00
< script >
import {
Card,
CardBody,
CardHeader,
CardText,
Icon,
ListGroup,
ListGroupItem,
} from 'sveltestrap';
2021-09-01 00:21:49 +00:00
import FileSize from './FileSize.svelte';
2021-08-30 10:46:18 +00:00
export let files = [];
< / script >
{ #if files . length }
2021-08-31 23:47:44 +00:00
< Card class = "mb-4" >
< CardHeader class = "text-light" >
2021-08-30 10:46:18 +00:00
< Icon name = "download" / >
Téléchargements
< / CardHeader >
< CardBody class = "text-indent" >
< CardText class = "text-danger text-justify" >
< strong > Attention :< / strong > puisqu'il s'agit de captures effectuées dans le but de découvrir si des actes malveillants ont été commis, les contenus qui sont téléchargeables < em > peuvent< / em > contenir du contenu malveillant !
< / CardText >
< / CardBody >
2021-08-31 23:47:44 +00:00
< ListGroup class = "border-dark" >
2021-08-31 23:46:06 +00:00
{ #each files as file , index }
2021-08-31 23:47:44 +00:00
< ListGroupItem tag = "a" href = " { file . path } " target = "_self" class = "d-flex align-items-center" >
< h1 class = "me-3" >
< Icon name = "arrow-down-circle" / >
< / h1 >
< div style = "min-width: 0" >
2021-08-30 10:46:18 +00:00
< h4 class = "fw-bold" >< samp > { file . name } </ samp ></ h4 >
< nobr >
Taille :
2021-09-01 00:21:49 +00:00
< FileSize size = { file . size } / >
2021-08-30 10:46:18 +00:00
< / nobr >
2021-08-31 23:47:44 +00:00
< nobr class = "d-block text-truncate" >
2021-08-30 10:46:18 +00:00
< span title = "blake2.net" > b2sum< / span > :
< samp class = "cksum" title = " { file . checksum } " > { file . checksum } </ samp >
< / nobr >
< / div >
< / ListGroupItem >
{ /each }
< / ListGroup >
< / Card >
{ /if }