Commit Graph

152 Commits

Author SHA1 Message Date
Vercel f6b01647b4 Install and configure Vercel Web Analytics
Implemented Vercel Web Analytics Integration

SUMMARY:
Successfully integrated Vercel Web Analytics into the Docusaurus 2 project following the user's specifications.

CHANGES MADE:

1. Installed @vercel/analytics package
   - Executed: npm install @vercel/analytics
   - Added @vercel/analytics to package.json dependencies
   - Updated package-lock.json with dependency resolution

2. Modified src/pages/index.js (Home page component)
   - Added import for useEffect from React: `import { useEffect } from 'react';`
   - Added import for inject from @vercel/analytics: `import { inject } from '@vercel/analytics';`
   - Added useEffect hook in the Home component to initialize Vercel Analytics on component mount
   - The inject() function runs on the client side as required, with empty dependency array to ensure it runs once

IMPLEMENTATION DETAILS:

The Vercel Web Analytics configuration was added to the main homepage component since this is a Docusaurus 2 site. The inject() function is called within a useEffect hook with an empty dependency array [], ensuring it runs once when the component mounts on the client side.

The implementation follows React best practices:
- Uses useEffect for client-side initialization
- Empty dependency array ensures the analytics initializer runs once
- No route-specific configuration needed (as per user requirements)
- Minimal and non-intrusive changes to existing code

TESTING:

✓ Build completed successfully with no errors
✓ All webpack compilation warnings are pre-existing (LaTeX and Docusaurus-related)
✓ Static files generated without issues
✓ No linter errors introduced (no linter configured in project)

FILES MODIFIED:
- package.json - Added @vercel/analytics dependency
- package-lock.json - Updated with dependency resolution
- src/pages/index.js - Added Vercel Analytics initialization

VERIFICATION:
- Build: npm run build ✓ PASSED
- Package installation: npm install @vercel/analytics ✓ PASSED
- All changes preserve existing code structure and functionality

Co-authored-by: Vercel <vercel[bot]@users.noreply.github.com>
2025-12-13 19:49:27 +00:00
霧雨バニラ 4658c8c962
fix: 形式化语言与自动机理论的名称与代码的更新 (#67) 2025-12-10 20:32:50 +08:00
niazye d76b47f9c5 fix: 形式化语言与自动机理论的名称与代码的更新 2025-12-10 18:26:45 +08:00
霧雨バニラ d14cbc6b2c
chore: Update course code in README for software practice 2025-12-04 09:14:08 +08:00
千代有希= c6da0f5911
feat:移除了不必要的latex格式 2025-12-01 11:25:35 +08:00
千代有希= 5368cb8fe4
feat: 添加页面最后更新信息 (#66)
* test

* fix?

* fix??

* clean pnpm lock

---------

Co-authored-by: KirisameVanilla <118162831+kirisamevanilla@users.noreply.github.com>
2025-11-30 14:50:51 +08:00
KirisameVanilla 2f8444ab0b
fix: silly bug of paper name 2025-11-28 00:35:11 +08:00
KirisameVanilla fde07dfe2b
fix: fix build era 2025-11-27 18:16:57 +08:00
千代有希= 66a7d34aba
feat: add SE3223 (#64) 2025-11-26 18:36:13 +08:00
Chiyo Yuki de9ce93db0 fix: 修复错别字 2025-11-24 18:13:05 +08:00
Chiyo Yuki 077c0e1015 feat: add SE3223 2025-11-24 18:11:05 +08:00
霧雨バニラ f0bb101023
feat: update homepage (#63)
* feat: homepage updated (#56)

首页的docusaurus默认内容的修改,其中贡献邮箱暂时使用仓库首页的outlook。
Related #55 
Closes #28

* fix: 更换主页Svg

---------

Co-authored-by: 奈亚子ですか? <niazye@outlook.com>
2025-11-21 16:59:16 +08:00
KirisameVanilla 4d1a69fb0c
fix: 更换主页Svg 2025-11-21 16:57:37 +08:00
奈亚子ですか? 69b7902e52
feat: homepage updated (#56)
首页的docusaurus默认内容的修改,其中贡献邮箱暂时使用仓库首页的outlook。
Related #55 
Closes #28
2025-11-21 16:51:49 +08:00
KirisameVanilla aebd064b32
feat(blog): 方案外实习认定为劳动与创造学分 2025-11-21 00:03:05 +08:00
霧雨バニラ 277ce184f6
feat: 软件工程学院-程序设计基础 (#53)
* feat: 软件工程学院-程序设计基础

Co-authored-by: Anaesthesia <2624815564@qq.com>

* fix: some format

* fix: 考察static,适当修正

* fix: 翻译为人类语言

---------

Co-authored-by: Anaesthesia <2624815564@qq.com>
Co-authored-by: KirisameVanilla <118162831+kirisamevanilla@users.noreply.github.com>
2025-11-20 23:44:09 +08:00
KirisameVanilla 6e3d92de22
fix: 翻译为人类语言 2025-11-20 23:43:43 +08:00
KirisameVanilla 5560f24b57
fix: 考察static,适当修正 2025-11-20 23:41:45 +08:00
KirisameVanilla 6f1bdc9826
fix: some format 2025-11-20 23:33:21 +08:00
霧雨バニラ 7b9ec34964
ci: Modify PR Build Check workflow triggers
Updated workflow triggers to include manual dispatch.
2025-11-20 23:14:21 +08:00
halflife-zayn 5510a3b77b
feat: 线代ppt(wm老师,截至第二章) (#58) 2025-11-20 19:54:25 +08:00
halflife-zayn 09488910f5
feat: 高数25期中 (#59) 2025-11-20 19:53:52 +08:00
霧雨バニラ cc89664aef
feat: 面向对象程序设计实践(基于C++)、软件测试和验证 (#52) 2025-11-19 13:55:08 +08:00
Chiyo Yuki f5b37a17c9 feat: 软件工程学院-程序设计基础
Co-authored-by: Anaesthesia <2624815564@qq.com>
2025-11-17 19:43:23 +08:00
霧雨バニラ 407f663669
feat: 面向对象程序设计实践(基于C++)、软件测试和验证 (#50) 2025-11-15 12:03:42 +08:00
Chiyo Yuki c5415c8c46 feat: 软件工程学院-软件测试和验证 2025-11-15 11:36:14 +08:00
Chiyo Yuki c8123470db feat: 面向对象程序设计实践(基于C++) 2025-11-15 11:10:32 +08:00
霧雨バニラ 516cf14c5d
feat: 计算机科学拔尖基地遴选笔试 (#49)
Closes #23
2025-11-08 00:59:57 +08:00
mtx 46d2357636 feat: 计算机科学拔尖基地遴选笔试 2025-11-05 22:01:14 +08:00
霧雨バニラ 49bda84716
feat: Add course code (#47) 2025-10-20 20:42:21 +08:00
KirisameVanilla f6eec3b0df
feat: course tag 2025-10-20 20:41:43 +08:00
奈亚子ですか? c6f8debff7
wip: Add course code(if exits) (#46) 2025-10-20 19:42:23 +08:00
KirisameVanilla b5ce6769b8
feat: 软件分析与验证前沿 2025-09-29 15:32:48 +08:00
KirisameVanilla f2ceda77aa
fix(build): build error caused by non-exsisting readme 2025-09-28 10:19:17 +08:00
KirisameVanilla 34c949d43f
feat: use readme description as the category description 2025-09-28 10:04:54 +08:00
KirisameVanilla c288efe1bb
misc: swizzle out doccard 2025-09-28 10:03:14 +08:00
霧雨バニラ 32109faede
fix: strict pathname (#44)
close #43
2025-09-28 01:32:45 +08:00
KirisameVanilla db126ccbb9
fix: strict pathname close #43 2025-09-28 01:31:54 +08:00
霧雨バニラ 475b1eb536
feat: comment (#41) 2025-09-28 00:40:21 +08:00
KirisameVanilla 2e27ad9310
feat: swizzle comment 2025-09-28 00:39:39 +08:00
KirisameVanilla 1784bbea4a
revert: Revert "feat: 启用评论系统 (#35)"
This reverts commit 471c533afb.
2025-09-28 00:35:53 +08:00
千代=有希 471c533afb
feat: 启用评论系统 (#35)
启用 giscus 评论系统
2025-09-27 22:52:20 +08:00
KirisameVanilla e768897097
fix: missing 外语学院 in sidebar 2025-09-25 14:12:05 +08:00
Miyamizu-MitsuhaSang fb6b5a666d
feat: 日语教材 2025-09-25 14:07:58 +08:00
KirisameVanilla 40430ad2fd
docs: delete stars budge 2025-09-25 01:27:12 +08:00
霧雨バニラ 008fc75bff
docs: update project description: built with Docusaurus (#34) 2025-09-25 01:23:57 +08:00
霧雨バニラ 525a6828ac
docs: badge 2025-09-25 01:23:21 +08:00
niazye ca02e406f8 docs: update project description: built with Docusaurus 2025-09-25 00:59:50 +08:00
霧雨バニラ fa94de8c77
feat: mermaid & auto d/n (#33)
close #29 
close #32
2025-09-24 10:00:13 +08:00
霧雨バニラ af64ea0a51
feat: 添加mermaid流程图支持 (#31)
Closes #29 
Closes #32
2025-09-24 09:48:30 +08:00