2021-08-30 10:46:18 +00:00
< script >
import {
Card,
CardBody,
CardHeader,
CardText,
Icon,
ListGroup,
ListGroupItem,
} from 'sveltestrap';
export let files = [];
< / script >
{ #if files . length }
< Card class = "mb-2" >
< CardHeader >
< 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 >
< ListGroup >
2021-08-31 23:46:06 +00:00
{ #each files as file , index }
2021-08-30 10:46:18 +00:00
< ListGroupItem tag = "a" href = " { file . path } " target = "_self" class = "d-flex" >
< h1 > < Icon name = "arrow-down-circle" / > < / h1 >
< div >
< h4 class = "fw-bold" >< samp > { file . name } </ samp ></ h4 >
< nobr >
Taille :
< span title = " { file . size } octets" > { file . size } </ span >
< / nobr >
–
< nobr >
< span title = "blake2.net" > b2sum< / span > :
< samp class = "cksum" title = " { file . checksum } " > { file . checksum } </ samp >
< / nobr >
< / div >
< / ListGroupItem >
{ /each }
< / ListGroup >
< / Card >
{ /if }