Skip to content

Commit

Permalink
🦄 refactor(vImageViewer): update vImageViewer
Browse files Browse the repository at this point in the history
  • Loading branch information
bingling-sama committed Jul 28, 2024
1 parent 4ce1cb3 commit 0ca4db2
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 10 deletions.
1 change: 0 additions & 1 deletion .vitepress/theme/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@ import Contributors from "./components/Contributors.vue"
import giscusTalk from "vitepress-plugin-comment-with-giscus"
import vitepressNprogress from "@andatoshiki/vitepress-plugin-nprogress"
import imageViewer from "vitepress-plugin-image-viewer"
// TODO: edit this after https://github.com/T-miracle/vitepress-plugin-image-viewer/issues/4 is fixed
import vImageViewer from "vitepress-plugin-image-viewer/lib/vImageViewer.vue"
import codeblocksFold from "vitepress-plugin-codeblocks-fold" // import method
import vitepressBackToTop from "vitepress-plugin-back-to-top"
Expand Down
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
"docs:eslint": "eslint --ignore-path .gitignore --ext .ts,.vue \".vitepress/**/*.{ts,vue}\"",
"docs:zhlint": "zhlint 'docs/**/*.md' --fix",
"docs:tsc": "tsc --build && vue-tsc --noEmit",
"prepare": "husky install",
"prepare": "husky",
"generate-pwa-assets": "pwa-assets-generator --preset minimal-2023 docs/public/logo-new.webp"
},
"name": "mccrash-docs",
Expand Down Expand Up @@ -66,6 +66,6 @@
"vitepress-plugin-back-to-top": "^1.0.1",
"vitepress-plugin-codeblocks-fold": "^1.2.28",
"vitepress-plugin-comment-with-giscus": "^1.1.15",
"vitepress-plugin-image-viewer": "^1.1.4"
"vitepress-plugin-image-viewer": "^1.1.5"
}
}
10 changes: 5 additions & 5 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 1 addition & 2 deletions tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,7 @@
"strictNullChecks": true,
"noFallthroughCasesInSwitch": true,
"noImplicitAny": true,
// TODO: change this to true after https://github.com/T-miracle/vitepress-plugin-image-viewer/issues/4 is fixed
"noUnusedLocals": false,
"noUnusedLocals": true,
"noUnusedParameters": true,
"noEmit": true,
"removeComments": false,
Expand Down

0 comments on commit 0ca4db2

Please sign in to comment.