From 0ca4db271d8acad1ce4c07f4213ee56dd09db055 Mon Sep 17 00:00:00 2001 From: bingling-sama Date: Sun, 28 Jul 2024 15:04:15 +0800 Subject: [PATCH] =?UTF-8?q?=F0=9F=A6=84=20refactor(vImageViewer):=20update?= =?UTF-8?q?=20vImageViewer?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .vitepress/theme/index.ts | 1 - package.json | 4 ++-- pnpm-lock.yaml | 10 +++++----- tsconfig.json | 3 +-- 4 files changed, 8 insertions(+), 10 deletions(-) diff --git a/.vitepress/theme/index.ts b/.vitepress/theme/index.ts index 893b6ee..8e97b7b 100644 --- a/.vitepress/theme/index.ts +++ b/.vitepress/theme/index.ts @@ -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" diff --git a/package.json b/package.json index 977731e..025fdba 100644 --- a/package.json +++ b/package.json @@ -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", @@ -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" } } \ No newline at end of file diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index c1a7f6a..3b42705 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -51,8 +51,8 @@ importers: specifier: ^1.1.15 version: 1.1.15(vue@3.4.34(typescript@5.5.4)) vitepress-plugin-image-viewer: - specifier: ^1.1.4 - version: 1.1.4 + specifier: ^1.1.5 + version: 1.1.5 devDependencies: '@andatoshiki/vitepress-plugin-nprogress': specifier: ^0.0.1 @@ -3596,8 +3596,8 @@ packages: vitepress-plugin-comment-with-giscus@1.1.15: resolution: {integrity: sha512-1DJjgN+7SYvn5ZkjuSXPmz7nlqfcrh4qCGGviiZghA2ELXnaO2m9WY7m+RisPSaqCn90xqe0JbO2T4NMq8iUBg==} - vitepress-plugin-image-viewer@1.1.4: - resolution: {integrity: sha512-loV/g/Kgz+O3DNebtSg0UPTt+2IhSIzNtcVGz1kB+A3nuVygMoaLdhrrZFuF3+obIkYINe+HVX0BAacWtFMBkA==} + vitepress-plugin-image-viewer@1.1.5: + resolution: {integrity: sha512-XnAb7bhqRCJB3JsKmah6oTDMTQNUQmLID+SME9Zwg/IWbYT+zySt2HuHHeTJlfHMmYpFBhvu8ayvBM0Fu3hdVQ==} vitepress@1.3.1: resolution: {integrity: sha512-soZDpg2rRVJNIM/IYMNDPPr+zTHDA5RbLDHAxacRu+Q9iZ2GwSR0QSUlLs+aEZTkG0SOX1dc8RmUYwyuxK8dfQ==} @@ -7846,7 +7846,7 @@ snapshots: transitivePeerDependencies: - vue - vitepress-plugin-image-viewer@1.1.4: + vitepress-plugin-image-viewer@1.1.5: dependencies: viewerjs: 1.11.6 diff --git a/tsconfig.json b/tsconfig.json index 68684aa..6a967f1 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -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,