Skip to content

Commit

Permalink
Add jsconfig.json and fix vls diagnostic warnings
Browse files Browse the repository at this point in the history
Signed-off-by: ktprograms <ktprograms@gmail.com>
  • Loading branch information
ktprograms committed Dec 8, 2021
1 parent 3ecc122 commit 70957b6
Show file tree
Hide file tree
Showing 4 changed files with 70,143 additions and 7 deletions.
70,137 changes: 70,134 additions & 3 deletions js/viewer-main.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion js/viewer-main.js.map

Large diffs are not rendered by default.

5 changes: 5 additions & 0 deletions jsconfig.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"compilerOptions": {
"checkJs": true
}
}
6 changes: 3 additions & 3 deletions src/components/Images.vue
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ export default {
/**
* Manually retrieve the path and return its base64
*
* @returns {String}
* @returns {Promise<String>}
*/
async getBase64FromImage() {
const file = await axios.get(this.davPath)
Expand All @@ -128,8 +128,8 @@ export default {
* Handle zooming
* Code based on https://stackoverflow.com/a/46833254/15603854
*
* @param {Event} event the scroll event
* @returns {null}
* @param {WheelEvent} event the scroll event
* @returns {void}
*/
updateZoom(event) {
const isZoomIn = event.deltaY < 0
Expand Down

0 comments on commit 70957b6

Please sign in to comment.