From 041ed83291237c96249e495f5330703507304dcf Mon Sep 17 00:00:00 2001 From: Ethan Liu Date: Sun, 23 Jul 2023 21:48:39 +0800 Subject: [PATCH] feat: Replace plausible with umami for monitoring --- CHANGE_LOG.md | 1 + CHANGE_LOG.zh_CN.md | 1 + package.json | 1 - pnpm-lock.yaml | 15 --------------- src/app/[locale]/layout.tsx | 5 +++++ src/app/providers.tsx | 21 +++++++-------------- 6 files changed, 14 insertions(+), 30 deletions(-) diff --git a/CHANGE_LOG.md b/CHANGE_LOG.md index 365aafb..d0d09a3 100755 --- a/CHANGE_LOG.md +++ b/CHANGE_LOG.md @@ -18,6 +18,7 @@ - Remove sentry - Temporarily remove prompt market, refactor and go online before next weekend - Refactor most of the logic related to zustand status, greatly reduce the number of renders, and improve the overall performance. +- Replace plausible with umami for monitoring ## v0.7.4 diff --git a/CHANGE_LOG.zh_CN.md b/CHANGE_LOG.zh_CN.md index 2d018ce..7193c83 100755 --- a/CHANGE_LOG.zh_CN.md +++ b/CHANGE_LOG.zh_CN.md @@ -18,6 +18,7 @@ - 移除 sentry - 暂时移除 prompt market,下周末之前重构好上线 - 重构 zustand 状态相关的大部分逻辑,极大的减少 render 次数,提升整体性能 +- 移除 plausible,替换监控为 umami ## v0.7.4 diff --git a/package.json b/package.json index 0292845..02c652e 100755 --- a/package.json +++ b/package.json @@ -42,7 +42,6 @@ "next": "13.4.12", "next-auth": "4.22.3", "next-intl": "2.19.0", - "next-plausible": "3.10.1", "next-themes": "0.2.1", "nodemailer": "6.9.4", "postcss": "8.4.27", diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 48e4931..acae065 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -89,9 +89,6 @@ dependencies: next-intl: specifier: 2.19.0 version: 2.19.0(next@13.4.12)(react@18.2.0) - next-plausible: - specifier: 3.10.1 - version: 3.10.1(next@13.4.12)(react-dom@18.2.0)(react@18.2.0) next-themes: specifier: 0.2.1 version: 0.2.1(next@13.4.12)(react-dom@18.2.0)(react@18.2.0) @@ -7136,18 +7133,6 @@ packages: - supports-color dev: false - /next-plausible@3.10.1(next@13.4.12)(react-dom@18.2.0)(react@18.2.0): - resolution: {integrity: sha512-3GyBQH+sUfovemgwvodx84djMlF/o+FoSPtCS2QVFNiJtwGFuhs6CQckMIv+VWdz9zERwZB2nJLJLmgV6aT/aA==} - peerDependencies: - next: ^11.1.0 || ^12.0.0 || ^13.0.0 - react: ^16.8.0 || ^17.0.0 || ^18.0.0 - react-dom: ^16.8.0 || ^17.0.0 || ^18.0.0 - dependencies: - next: 13.4.12(@babel/core@7.22.9)(react-dom@18.2.0)(react@18.2.0) - react: 18.2.0 - react-dom: 18.2.0(react@18.2.0) - dev: false - /next-seo@6.1.0(next@13.4.12)(react-dom@18.2.0)(react@18.2.0): resolution: {integrity: sha512-iMBpFoJsR5zWhguHJvsoBDxDSmdYTHtnVPB1ij+CD0NReQCP78ZxxbdL9qkKIf4oEuZEqZkrjAQLB0bkII7RYA==} peerDependencies: diff --git a/src/app/[locale]/layout.tsx b/src/app/[locale]/layout.tsx index 0f5f786..e251451 100755 --- a/src/app/[locale]/layout.tsx +++ b/src/app/[locale]/layout.tsx @@ -32,6 +32,11 @@ export default async function LocaleLayout({ return ( diff --git a/src/app/providers.tsx b/src/app/providers.tsx index 08f0274..16a629a 100755 --- a/src/app/providers.tsx +++ b/src/app/providers.tsx @@ -1,6 +1,5 @@ "use client"; -import PlausibleProvider from "next-plausible"; import { SessionProvider } from "next-auth/react"; import { ThemeProvider } from "next-themes"; import { NextIntlClientProvider, type AbstractIntlMessages } from "next-intl"; @@ -15,18 +14,12 @@ export default function Providers({ messages: AbstractIntlMessages; }) { return ( - - - - - {children} - - - - + + + + {children} + + + ); }