add gitignore and alerts

This commit is contained in:
Simon Vieille 2023-01-07 18:34:50 +01:00
parent ad88536911
commit fb61142ca5
Signed by: deblan
GPG key ID: 579388D585F70417
2 changed files with 7 additions and 1 deletions

5
.gitignore vendored Normal file
View file

@ -0,0 +1,5 @@
/images/src/*
/images/thumbs/*
!/images/src/.gitkeep
!/images/thumbs/.gitkeep
/images.json

View file

@ -75,7 +75,6 @@ createApp({
imageIndex: -1, imageIndex: -1,
imagesToLoad: 0, imagesToLoad: 0,
imagesLoaded: 0, imagesLoaded: 0,
background: null,
} }
}, },
methods: { methods: {
@ -95,6 +94,8 @@ createApp({
img.onerror = () => { img.onerror = () => {
--this.imagesToLoad --this.imagesToLoad
++this.imagesLoaded ++this.imagesLoaded
console.log(`${info.file} not loaded!`)
} }
img.src = info.file img.src = info.file
}) })