mirror of
https://github.com/ae-utbm/sith.git
synced 2026-01-22 02:40:12 +00:00
Compare commits
4 Commits
test_elect
...
taiste
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
5af894060a | ||
| 679b8dac1c | |||
|
e9eb3dc17d
|
|||
|
|
53a3dc0060 |
@@ -104,7 +104,7 @@
|
||||
</div>
|
||||
<ul>
|
||||
<li x-show="getBasketSize() === 0">{% trans %}This basket is empty{% endtrans %}</li>
|
||||
<template x-for="(item, index) in Object.values(basket)">
|
||||
<template x-for="(item, index) in Object.values(basket)" :key="item.product.id">
|
||||
<li>
|
||||
<template x-for="error in item.errors">
|
||||
<div class="alert alert-red" x-text="error">
|
||||
|
||||
@@ -31,7 +31,7 @@ document.addEventListener("alpine:init", () => {
|
||||
|
||||
await Promise.all(
|
||||
this.downloadPictures.map(async (p: PictureSchema) => {
|
||||
const imgName = `${p.album}/IMG_${p.date.replace(/[:\-]/g, "_")}${p.name.slice(p.name.lastIndexOf("."))}`;
|
||||
const imgName = `${p.album.name}/IMG_${p.id}_${p.date.replace(/[:\-]/g, "_")}${p.name.slice(p.name.lastIndexOf("."))}`;
|
||||
return zipWriter.add(imgName, new HttpReader(p.full_size_url), {
|
||||
level: 9,
|
||||
lastModDate: new Date(p.date),
|
||||
|
||||
Reference in New Issue
Block a user