October 8, 2019
TAP, figure out when there's no video.
hasVideo () {
return this.rawWork.data.body.some((s) => {
return s.slice_type === 'video'
})
},
PGP Meeting and defining tasks and assigning.
PGP Form work, trying to figure out Umbraco forms
Lupe sprint planning
PGP Form work, finally got form to show up, now it's erroring out, might have to do with umbraco forms license.
HLF Estimation
TAP Updates - band with webp stuff
- realized webp detector from npm wasn't working. Returning true in Safari. Found this snippet and adapted to my Vue component.
https://davidwalsh.name/detect-webp
data () {
return {
isWebP: false
}
},
async mounted () {
this.isWebP = await this.webP()
},
methods: {
// https://davidwalsh.name/detect-webp
async webP () {
if (!self.createImageBitmap) {
return false
}
const webpData = 'data:image/webp;base64,UklGRh4AAABXRUJQVlA4TBEAAAAvAAAAAAfQ//73v/+BiOh/AAA='
const blob = await fetch(webpData).then(r => r.blob())
return createImageBitmap(blob).then(() => true, () => false)
}
}