From 110928b8736b521ccccd2891c8ffc3ae64aded1b Mon Sep 17 00:00:00 2001 From: Hellofhz <152045732+fhzit@users.noreply.github.com> Date: Sat, 5 Apr 2025 12:52:23 +0800 Subject: [PATCH 1/2] =?UTF-8?q?fix:=20=E4=BF=AE=E5=A4=8D=E4=BA=86=E8=84=91?= =?UTF-8?q?=E6=8A=BD=E5=AF=BC=E8=87=B4=E7=9A=84=E9=97=AE=E9=A2=98=20(#4)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 修复了脑抽导致的问题 --- src/.vuepress/enhanceApp.js | 94 ------------------------------------- 1 file changed, 94 deletions(-) delete mode 100644 src/.vuepress/enhanceApp.js diff --git a/src/.vuepress/enhanceApp.js b/src/.vuepress/enhanceApp.js deleted file mode 100644 index 054bad2..0000000 --- a/src/.vuepress/enhanceApp.js +++ /dev/null @@ -1,94 +0,0 @@ -// .vuepress/enhanceApp.js -import * as Sentry from '@sentry/browser'; -import { Vue as VueIntegration } from '@sentry/integrations'; -import { Integrations } from '@sentry/tracing'; - -export default ({ Vue, router }) => { - // 仅在生产环境启用 Sentry - if (process.env.NODE_ENV === 'production') { - // 初始化 Sentry - Sentry.init({ - dsn: 'https://f8ab1b11ab45f86bd6c4237ba16cb5fe@o4508946125619200.ingest.de.sentry.io/4509058673606736', - integrations: [ - // 自动捕获 Vue 组件错误 - new VueIntegration({ - Vue, - attachProps: true, // 记录组件 props - logErrors: false // 关闭控制台错误重复输出 - }), - // 启用性能监控 - new Integrations.BrowserTracing({ - routingInstrumentation: Sentry.vueRouterInstrumentation(router), - tracingOrigins: ['localhost', /^\//] - }) - ], - environment: 'production', - release: 'vuepress-docs@1.0.0', // 需与构建版本一致 - tracesSampleRate: 0.3, // 30%的性能数据采样 - autoSessionTracking: true, // 自动会话跟踪 - beforeSend(event) { - // 过滤敏感信息(示例) - if (event.request?.url) { - event.request.url = event.request.url.replace(/password=[^&]*/, 'password=[REDACTED]'); - } - return event; - } - }); - - // ================= 手动用户行为记录 ================= - - // 1. 路由导航追踪 - router.beforeEach((to, from, next) => { - // 记录面包屑导航 - Sentry.addBreadcrumb({ - category: 'navigation', - message: `Route change: ${from.path} → ${to.path}`, - level: 'info' - }); - next(); - }); - - // 2. 页面访问事件记录 - router.afterEach((to) => { - Sentry.captureEvent({ - message: 'Page View', - level: 'info', - tags: { - route: to.path, - referrer: document.referrer || 'direct' - }, - extra: { - fullPath: to.fullPath, - userAgent: navigator.userAgent - } - }); - }); - - // 3. 全局错误处理器(补充) - window.addEventListener('unhandledrejection', (event) => { - Sentry.captureException(event.reason, { - contexts: { - promise: { - rejection: event.reason?.stack || String(event.reason) - } - } - }); - }); - } else { - console.log('[Sentry] 开发模式已禁用监控'); - } - - // ================= 扩展方法示例 ================= - // 可在 Vue 原型上添加方法供组件调用 - Vue.prototype.$trackEvent = (eventName, payload) => { - if (process.env.NODE_ENV === 'production') { - Sentry.captureEvent({ - message: eventName, - level: 'info', - contexts: { - custom: payload - } - }); - } - }; - }; \ No newline at end of file From c8daa4bf181bd688600d91ee41bc180d08031ea1 Mon Sep 17 00:00:00 2001 From: Hellofhz <152045732+fhzit@users.noreply.github.com> Date: Sat, 5 Apr 2025 21:09:02 +0800 Subject: [PATCH 2/2] docs: update (#5) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 更新了一大堆东西 --- src/.vuepress/navbar/zh.ts | 3 +- src/.vuepress/sidebar/zh.ts | 53 +++++---- src/.vuepress/theme.ts | 2 +- src/README.md | 15 +-- src/about/README.md | 20 ++++ .../README.md => about/community.md} | 1 + src/{community => about}/contributing.md | 10 +- .../image/contributing/1720942101674.png | Bin .../image/contributing/Firefly_Sticker_01.png | Bin .../image/rules/1732327850480.png | Bin .../image/rules/1732328071137.png | Bin src/{community => about}/rules.md | 8 +- src/app/Desktop/README.md | 18 +++ src/app/README.md | 17 ++- src/{web => app/Web}/README.md | 10 +- src/{web => app/Web}/images/bt01.png | Bin src/{web => app/Web}/images/bt02.png | Bin src/app/Web/images/es-exam.png | Bin 0 -> 1352100 bytes src/app/Web/images/es-notification.png | Bin 0 -> 119337 bytes src/app/Web/images/es-time.png | Bin 0 -> 2024510 bytes src/app/Web/images/es.png | Bin 0 -> 949514 bytes src/{web => app/Web}/images/gh01.png | Bin src/{web => app/Web}/images/iis01.png | Bin src/{web => app/Web}/images/iis02.png | Bin src/{web => app/Web}/images/iis03.png | Bin src/{web => app/Web}/images/iis04.png | Bin src/{web => app/Web}/images/iis05.png | Bin src/{web => app/Web}/images/iis06.jpg | Bin src/{web => app/Web}/images/iis07.png | Bin src/{web => app/Web}/images/iis08.png | Bin src/{web => app/Web}/images/iis09.png | Bin src/{web => app/Web}/web-deploy.md | 2 +- src/app/{profile/faq.md => config-edited.md} | 8 +- src/app/setup.md | 111 +++++++++--------- src/web/images/es-exam.png | Bin 877492 -> 0 bytes src/web/images/es-time.png | Bin 1098873 -> 0 bytes src/web/images/es.png | Bin 1190481 -> 0 bytes 37 files changed, 162 insertions(+), 116 deletions(-) create mode 100644 src/about/README.md rename src/{community/README.md => about/community.md} (97%) rename src/{community => about}/contributing.md (70%) rename src/{community => about}/image/contributing/1720942101674.png (100%) rename src/{community => about}/image/contributing/Firefly_Sticker_01.png (100%) rename src/{community => about}/image/rules/1732327850480.png (100%) rename src/{community => about}/image/rules/1732328071137.png (100%) rename src/{community => about}/rules.md (91%) create mode 100644 src/app/Desktop/README.md rename src/{web => app/Web}/README.md (86%) rename src/{web => app/Web}/images/bt01.png (100%) rename src/{web => app/Web}/images/bt02.png (100%) create mode 100644 src/app/Web/images/es-exam.png create mode 100644 src/app/Web/images/es-notification.png create mode 100644 src/app/Web/images/es-time.png create mode 100644 src/app/Web/images/es.png rename src/{web => app/Web}/images/gh01.png (100%) rename src/{web => app/Web}/images/iis01.png (100%) rename src/{web => app/Web}/images/iis02.png (100%) rename src/{web => app/Web}/images/iis03.png (100%) rename src/{web => app/Web}/images/iis04.png (100%) rename src/{web => app/Web}/images/iis05.png (100%) rename src/{web => app/Web}/images/iis06.jpg (100%) rename src/{web => app/Web}/images/iis07.png (100%) rename src/{web => app/Web}/images/iis08.png (100%) rename src/{web => app/Web}/images/iis09.png (100%) rename src/{web => app/Web}/web-deploy.md (98%) rename src/app/{profile/faq.md => config-edited.md} (85%) delete mode 100644 src/web/images/es-exam.png delete mode 100644 src/web/images/es-time.png delete mode 100644 src/web/images/es.png diff --git a/src/.vuepress/navbar/zh.ts b/src/.vuepress/navbar/zh.ts index 954e82e..f009457 100644 --- a/src/.vuepress/navbar/zh.ts +++ b/src/.vuepress/navbar/zh.ts @@ -3,7 +3,6 @@ import { navbar } from "vuepress-theme-hope"; export const zhNavbar = navbar([ "/", "/app/", - "/web/", "/management/", - "/community/", + "/about/", ]); diff --git a/src/.vuepress/sidebar/zh.ts b/src/.vuepress/sidebar/zh.ts index 3e5baa7..c3745c2 100644 --- a/src/.vuepress/sidebar/zh.ts +++ b/src/.vuepress/sidebar/zh.ts @@ -11,33 +11,32 @@ export const zhSidebar = sidebar({ "/app/": [ { icon: "fa-solid fa-lightbulb", - text: "应用帮助", - children: [ - "index.md", - "setup.md", - { - text: "档案设置", - collapsible: true, - expanded: true, - prefix: "profile/", - children: [ - "faq.md", - ], - icon: "fa-solid fa-file-lines" - }, - ], - }, - ], - "/web/": [ - { - text: "网页端", + text: "客户端", children: [ "README.md", + "setup.md", { - text: "部署教程", - link: "web-deploy.md", - icon: "fa-solid fa-file-lines" + text: "桌面端", + collapsible: true, + expanded: true, + prefix: "Desktop/", + children: [ + "README.md", + ], + icon: "desktop" }, + { + text: "网页端", + collapsible: true, + expanded: true, + prefix: "Web/", + children: [ + "README.md", + "web-deploy.md", + ], + icon: "globe" + }, + "config-edited.md", ], }, ], @@ -80,12 +79,14 @@ export const zhSidebar = sidebar({ ], }, ], - "/community/": [ + "/about/": [ { - text: "社区", + text: "关于", children: [ "README.md", - "rules.md" + "contributing.md", + "community.md", + "rules.md", ], }, ], diff --git a/src/.vuepress/theme.ts b/src/.vuepress/theme.ts index 128e039..3eaec62 100644 --- a/src/.vuepress/theme.ts +++ b/src/.vuepress/theme.ts @@ -14,7 +14,7 @@ export default hopeTheme({ logo: "https://avatars.githubusercontent.com/u/195304368?s=200&v=4", - repo: "ExamAware/ExamAware-docs-next", + repo: "ExamAware/ExamAware-docs", docsDir: "src", diff --git a/src/README.md b/src/README.md index 2094ee3..2f3e9b2 100644 --- a/src/README.md +++ b/src/README.md @@ -25,9 +25,9 @@ actions: --- -欢迎来到 ExamAware 的文档。 +欢迎来到 DSZ ExamAware 的文档。 -ExamAware 系列软件是显示当前时间与考试详细信息的工具,可以在各平台上运行。 +DSZ ExamAware 系列软件是显示当前时间与考试详细信息的工具,可以在各平台上运行。 ## 开始使用 @@ -47,23 +47,18 @@ ExamAware 系列软件是显示当前时间与考试详细信息的工具,可
M&v2IaiZV{Ur*pT-Wn=5U>toYWppgZK|;
zn46XsF(7%L$}xMV@&(E;t0Xb&eo`w8VERhLL<+%Hd7|Y)MaI&&O`fxEN+#_jPdeUb
zV0d_Vc@hHF81UlkpM0?*Ui~2&{o|RD#G|HANu5XEaIN7*SD8+j9XPo&7D4m3%(|~g
zy+Ll VNMgz;Pq@wCb>!&J<6woYjtARXABn7C>zfHolJt{hm)P>g~08yE$Wug|)
zZ$hew3wGiSAfc|>y8oQSXmh}vSp9+(#Ep&9Q$gGjlhj??%-(y;J~b9#gOf3
z8(hF`=ED44T2?Kn1edu6EGz&zlSlZ?uPx+}*B-eY>q)UTSnz5yVIf)BkuL&|e`JfX
z`Ij$7_3+w_m1g%FWQ8#SeHxONmR7x!cpvZ2;S~ld>-9^AUHFtO5yN0HP4gD
Znr3o8|EE;fw#u&522tm=KT=u;a}
zMUPUG#hw!(on)!9ni86g`dDg2r4i9tLF5aiOiU8p7BS@9F(;XLzN86es5qf#5my=o
zr-o+P3}%v;65Sx5yQkBL2=k`8snoc@yAi>*it;TOXas;n(^;fl+UZI_h+$%$IQq!l
z$am!_ja0BGPtpB+z-J=!GG5TcAhiMR6F>$Xy#q-Uo*G_KU-!1U#gHhc^#j$FR$XA-
zi){lsu_a8ws!_Pp%9#l&L+Ic51A_cZGa4DU30YGPfq2tI+ekw`l
zZqewRYaB}ZtDcWOqeKV;m+5Q}3tG?ALmKm6;(201YoVs7=#XLqMq8kBtTFOI6f^+;
z`Jmn_CLS