From b74029db97defca08e1f54a082a2408b75503c3f Mon Sep 17 00:00:00 2001 From: fishcpy Date: Tue, 28 Apr 2026 20:38:37 +0800 Subject: [PATCH 1/3] =?UTF-8?q?fix:=E4=BF=AE=E5=A4=8Dpjax=E5=AF=BC?= =?UTF-8?q?=E8=87=B4umami=E8=B7=B3=E5=87=BA=E7=8E=87=E4=B8=BA100%?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .vitepress/theme/index.ts | 20 +++++++++++++++++--- 1 file changed, 17 insertions(+), 3 deletions(-) diff --git a/.vitepress/theme/index.ts b/.vitepress/theme/index.ts index 1fb8a22..a206f4b 100644 --- a/.vitepress/theme/index.ts +++ b/.vitepress/theme/index.ts @@ -1,8 +1,8 @@ // https://vitepress.dev/guide/custom-theme import type { EnhanceAppContext, Theme } from 'vitepress'; -import { useData } from 'vitepress'; +import { useData, useRouter } from 'vitepress'; import DefaultTheme from 'vitepress/theme'; -import { h } from 'vue'; +import { h, onMounted, watch } from 'vue'; import '@theojs/lumen/style'; import { BoxCube, Card, CopyText, Links, Pill } from '@theojs/lumen'; import { getFooterData, getMessages, type Lang } from '../data/i18n'; @@ -27,7 +27,7 @@ export default { }, }); }, - enhanceApp: ({ app }: EnhanceAppContext) => { + enhanceApp: ({ app, router }: EnhanceAppContext) => { // 注册 lumen 组件 app.component('BoxCube', BoxCube); app.component('Card', Card); @@ -41,5 +41,19 @@ export default { app.component('VideoSection', VideoSection); app.component('HomeUnderline', HomeUnderline); app.component('ImageGallery', ImageGallery); + + if (typeof window !== 'undefined') { + router.onAfterRouteChanged = (to: string) => { + setTimeout(() => { + if ((window as any).umami) { + (window as any).umami.track((props: any) => ({ + ...props, + url: to, + referrer: document.referrer, + })); + } + }, 100); + }; + } }, } satisfies Theme; From dfc6e0092cf7bc3ab9eadba65990bb588bcfdedc Mon Sep 17 00:00:00 2001 From: fishcpy Date: Tue, 28 Apr 2026 20:47:46 +0800 Subject: [PATCH 2/3] =?UTF-8?q?feat:=E4=BF=AE=E6=94=B9=E9=A6=96=E9=A1=B5?= =?UTF-8?q?=E9=83=A8=E5=88=86=E6=96=87=E5=AD=97?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/en/index.md | 4 ++-- src/index.md | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/en/index.md b/src/en/index.md index 53e1864..a02c151 100644 --- a/src/en/index.md +++ b/src/en/index.md @@ -13,7 +13,7 @@ hero: alt: PCL CE actions: - theme: brand - text: Download + text: Download Now link: /en/download - theme: alt text: Learn More @@ -44,7 +44,7 @@ features: diff --git a/src/index.md b/src/index.md index 453501b..066e7c8 100644 --- a/src/index.md +++ b/src/index.md @@ -13,7 +13,7 @@ hero: alt: PCL CE actions: - theme: brand - text: 下载 + text: 立即下载 link: /download - theme: alt text: 了解更多 @@ -44,7 +44,7 @@ features: From df2a30313c95d8056c4b4deeb260e5ef8ca876c1 Mon Sep 17 00:00:00 2001 From: fishcpy Date: Tue, 28 Apr 2026 21:23:22 +0800 Subject: [PATCH 3/3] =?UTF-8?q?feat:=E6=9B=B4=E6=96=B0=E9=A6=96=E9=A1=B5?= =?UTF-8?q?=E8=A7=86=E9=A2=91=E4=B8=BA=E6=9C=AC=E5=9C=B0=E5=B9=B6=E6=B7=BB?= =?UTF-8?q?=E5=8A=A0=E8=87=AA=E5=8A=A8=E6=92=AD=E6=94=BE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .vitepress/theme/components/VideoSection.vue | 29 ++++++++++++++++--- src/en/index.md | 2 +- src/index.md | 2 +- src/public/video/hero.mp4 | Bin 0 -> 1194295 bytes 4 files changed, 27 insertions(+), 6 deletions(-) create mode 100644 src/public/video/hero.mp4 diff --git a/.vitepress/theme/components/VideoSection.vue b/.vitepress/theme/components/VideoSection.vue index 3d71f46..21aeb0d 100644 --- a/.vitepress/theme/components/VideoSection.vue +++ b/.vitepress/theme/components/VideoSection.vue @@ -1,9 +1,15 @@