mirror of
https://github.com/GuerillaStudio/souvenir.git
synced 2025-01-20 22:10:20 +00:00
fix(vue3): Rename "destroyed" hook
This commit is contained in:
parent
37e4fbe2d4
commit
ad7029e0e3
7 changed files with 5 additions and 11 deletions
5
package-lock.json
generated
5
package-lock.json
generated
|
@ -1377,11 +1377,6 @@
|
||||||
"resolved": "https://registry.npmjs.org/@types/parse-json/-/parse-json-4.0.0.tgz",
|
"resolved": "https://registry.npmjs.org/@types/parse-json/-/parse-json-4.0.0.tgz",
|
||||||
"integrity": "sha512-//oorEZjL6sbPcKUaCdIGlIUeH26mgzimjBB77G6XRgnDl/L5wOnpyBGRe/Mmf5CVW3PwEBE1NjiMZ/ssFh4wA=="
|
"integrity": "sha512-//oorEZjL6sbPcKUaCdIGlIUeH26mgzimjBB77G6XRgnDl/L5wOnpyBGRe/Mmf5CVW3PwEBE1NjiMZ/ssFh4wA=="
|
||||||
},
|
},
|
||||||
"@vue/compat": {
|
|
||||||
"version": "3.2.20",
|
|
||||||
"resolved": "https://registry.npmjs.org/@vue/compat/-/compat-3.2.20.tgz",
|
|
||||||
"integrity": "sha512-ZbdYtVegOS4wgeHzlnYz7Q9j9NLYF083i5pK9UB1P11vTSVUqozDlPSo4V1ODkluuFED7aGfFCHm7KmTJrnORA=="
|
|
||||||
},
|
|
||||||
"@vue/compiler-core": {
|
"@vue/compiler-core": {
|
||||||
"version": "3.2.20",
|
"version": "3.2.20",
|
||||||
"resolved": "https://registry.npmjs.org/@vue/compiler-core/-/compiler-core-3.2.20.tgz",
|
"resolved": "https://registry.npmjs.org/@vue/compiler-core/-/compiler-core-3.2.20.tgz",
|
||||||
|
|
|
@ -11,7 +11,6 @@
|
||||||
"lint-fix": "eslint --ext .js,vue . --fix"
|
"lint-fix": "eslint --ext .js,vue . --fix"
|
||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@vue/compat": "^3.2.20",
|
|
||||||
"folktale": "^2.3.2",
|
"folktale": "^2.3.2",
|
||||||
"generic-pool": "^3.7.1",
|
"generic-pool": "^3.7.1",
|
||||||
"gif-writer": "^0.9.3",
|
"gif-writer": "^0.9.3",
|
||||||
|
|
|
@ -23,7 +23,7 @@ export default {
|
||||||
mounted () {
|
mounted () {
|
||||||
document.addEventListener('visibilitychange', this.handleVisibilityChange)
|
document.addEventListener('visibilitychange', this.handleVisibilityChange)
|
||||||
},
|
},
|
||||||
destroyed () {
|
unmounted () {
|
||||||
document.removeEventListener('visibilitychange', this.handleVisibilityChange)
|
document.removeEventListener('visibilitychange', this.handleVisibilityChange)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -64,7 +64,7 @@ export default {
|
||||||
mounted () {
|
mounted () {
|
||||||
this.startPreview()
|
this.startPreview()
|
||||||
},
|
},
|
||||||
destroyed () {
|
unmounted () {
|
||||||
this.stopPreview()
|
this.stopPreview()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -23,7 +23,7 @@ export default {
|
||||||
mounted: function () {
|
mounted: function () {
|
||||||
document.body.classList.add('layoutOverlay-body')
|
document.body.classList.add('layoutOverlay-body')
|
||||||
},
|
},
|
||||||
destroyed: function () {
|
unmounted: function () {
|
||||||
document.body.classList.remove('layoutOverlay-body')
|
document.body.classList.remove('layoutOverlay-body')
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -178,7 +178,7 @@ export default {
|
||||||
|
|
||||||
this.ensureCamera()
|
this.ensureCamera()
|
||||||
},
|
},
|
||||||
destroyed: function () {
|
unmounted: function () {
|
||||||
document.body.classList.remove('capture-body')
|
document.body.classList.remove('capture-body')
|
||||||
document.removeEventListener('visibilitychange', this.handleVisibilityChange)
|
document.removeEventListener('visibilitychange', this.handleVisibilityChange)
|
||||||
}
|
}
|
||||||
|
|
|
@ -125,7 +125,7 @@ export default {
|
||||||
this.fillGIF()
|
this.fillGIF()
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
destroyed () {
|
unmounted () {
|
||||||
this.emptyGIF()
|
this.emptyGIF()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue