From b7c84d5218a5d9a59d3f0b4b6458bbb930ebf8d7 Mon Sep 17 00:00:00 2001 From: "tangly1024.com" Date: Mon, 31 Jul 2023 18:59:21 +0800 Subject: [PATCH] =?UTF-8?q?=E7=A7=BB=E9=99=A4=E5=86=B2=E7=AA=81=E7=BB=84?= =?UTF-8?q?=E4=BB=B6=EF=BC=8C=E5=85=81=E8=AE=B8=E7=94=A8npm=E6=89=93?= =?UTF-8?q?=E5=8C=85?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- components/Ackee.js | 29 ++++++++++++++--------------- components/CusdisComponent.js | 3 +-- components/FacebookMessenger.js | 3 +-- components/ShareButtons.js | 10 +--------- package.json | 6 +----- 5 files changed, 18 insertions(+), 33 deletions(-) diff --git a/components/Ackee.js b/components/Ackee.js index ab22c969..f17d536d 100644 --- a/components/Ackee.js +++ b/components/Ackee.js @@ -1,20 +1,19 @@ -import { useRouter } from 'next/router' -import useAckee from 'use-ackee' -import BLOG from '@/blog.config' +// import { useRouter } from 'next/router' +// import BLOG from '@/blog.config' const Ackee = () => { - const router = useRouter() - useAckee( - router.asPath, - { - server: BLOG.ANALYTICS_ACKEE_DATA_SERVER, - domainId: BLOG.ANALYTICS_ACKEE_DOMAIN_ID - }, - { - detailed: false, - ignoreLocalhost: true - } - ) +// const router = useRouter() +// useAckee( +// router.asPath, +// { +// server: BLOG.ANALYTICS_ACKEE_DATA_SERVER, +// domainId: BLOG.ANALYTICS_ACKEE_DOMAIN_ID +// }, +// { +// detailed: false, +// ignoreLocalhost: true +// } +// ) return null } diff --git a/components/CusdisComponent.js b/components/CusdisComponent.js index 83b962b5..0e2a4f00 100644 --- a/components/CusdisComponent.js +++ b/components/CusdisComponent.js @@ -1,5 +1,4 @@ import { useGlobal } from '@/lib/global' -import { ReactCusdis } from 'react-cusdis' import BLOG from '@/blog.config' import { useRouter } from 'next/router' import { useEffect } from 'react' @@ -28,7 +27,7 @@ const CusdisComponent = ({ frontMatter }) => { } }) - return ( - { - return import('qrcode.react') - }, - { ssr: false } -) - /** * @author https://github.com/txs * @param {*} param0 @@ -354,7 +346,7 @@ const ShareButtons = ({ shareUrl, title, body, image }) => {
- + {/* */}
{locale.COMMON.SCAN_QR_CODE} diff --git a/package.json b/package.json index c1baace5..4b623870 100644 --- a/package.json +++ b/package.json @@ -43,18 +43,14 @@ "nprogress": "^0.2.0", "preact": "^10.5.15", "prism-themes": "1.9.0", - "qrcode.react": "^1.0.1", "react": "^18.2.0", "react-cookies": "^0.1.1", - "react-cusdis": "^2.1.3", "react-dom": "^18.2.0", "react-facebook": "^8.1.4", - "react-messenger-customer-chat": "^0.8.0", "react-notion-x": "6.16.0", "react-share": "^4.4.1", "react-tweet-embed": "~2.0.0", - "typed.js": "^2.0.12", - "use-ackee": "^3.0.0" + "typed.js": "^2.0.12" }, "devDependencies": { "@waline/client": "^2.5.1",