kopia lustrzana https://github.com/manuelkasper/sotlas-frontend
Move original size photos to Backblaze (S3 compatible storage)
rodzic
705319b53b
commit
5e60b974f3
|
@ -1,7 +1,11 @@
|
|||
export default {
|
||||
methods: {
|
||||
photoSrc (photo, size) {
|
||||
return 'https://images.sotl.as/photos/' + size + '/' + photo.filename.substring(0, 2) + '/' + photo.filename
|
||||
if (size === 'original') {
|
||||
return 'https://sotlas.s3.eu-central-003.backblazeb2.com/' + photo.filename
|
||||
} else {
|
||||
return 'https://images.sotl.as/photos/' + size + '/' + photo.filename.substring(0, 2) + '/' + photo.filename
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Ładowanie…
Reference in New Issue