add gitignore and alerts
This commit is contained in:
parent
ad88536911
commit
fb61142ca5
5
.gitignore
vendored
Normal file
5
.gitignore
vendored
Normal file
|
@ -0,0 +1,5 @@
|
||||||
|
/images/src/*
|
||||||
|
/images/thumbs/*
|
||||||
|
!/images/src/.gitkeep
|
||||||
|
!/images/thumbs/.gitkeep
|
||||||
|
/images.json
|
|
@ -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
|
||||||
})
|
})
|
||||||
|
|
Loading…
Reference in a new issue