Commit graph

362 commits

Author SHA1 Message Date
Clas Wen
99fa4948ec Fix merge conflicts in HeaderNavigation component
Resolved merge conflicts in HeaderNavigation.tsx to integrate GitHub link functionality with existing navigation structure.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-09-30 00:01:14 +08:00
clas
6d80272ef4
Merge pull request #105 from wen-templari/feature/add-github-link-header
Add GitHub link with icon to header
2025-09-29 23:04:11 +08:00
Clas Wen
54e2c6486b Add GitHub link with icon to header
Added GitHub organization link (github.com/nbtca) to the right side of the header navigation using the provided SVG icon. The link opens in a new tab and maintains proper accessibility attributes.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-09-29 23:03:07 +08:00
clas
b0969760b5
Merge pull request #104 from wen-templari/use-openapi-fetch
Migrate to openapi-fetch for API client
2025-09-29 22:56:18 +08:00
Clas Wen
87f8909283 Merge branch 'main' into use-openapi-fetch 2025-09-29 22:48:34 +08:00
clas
b54db897e6
Merge pull request #103 from wen-templari/feature/add-cover-image-utility
Update OG Image, Add getCoverImage utility function and update layouts
2025-09-29 07:31:25 +08:00
Clas Wen
6bcb1cf581 Add getCoverImage utility function and update layouts
- Add getCoverImage function in utils.ts to handle different cover image formats
- Update MarkdownPost.astro to use getCoverImage for consistent image handling
- Update MoreTile.astro to use getCoverImage and remove direct CA_LOGO_URL import
- Update preview.png

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-09-28 23:35:38 +08:00
clas
a0aaf4984a
Merge pull request #102 from wen-templari/fix/schedule-loading-race-condition
Fix schedule loading race condition causing event flash
2025-09-28 08:45:33 +08:00
clas
a3a9fbca0e
Merge pull request #89 from nbtca/refactor-blog
refactor: refactor blog page
2025-09-28 08:44:38 +08:00
Clas Wen
75100b26d3 Merge remote-tracking branch 'upstream/refactor-blog' into refactor-blog 2025-09-27 16:16:03 +08:00
clas
ec83bcccd7
Merge branch 'main' into refactor-blog 2025-09-27 16:13:42 +08:00
Clas Wen
c8eb20e13f Refactor blog structure and update navigation
- Replace archive page with new blog page
- Update navigation links from /archive to /blog
- Extract CA logo and iCal URLs to constants
- Update references throughout codebase to use new constants

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-09-27 16:12:01 +08:00
Clas Wen
a830ba1743 Merge branch 'main' into refactor-blog 2025-09-27 16:00:07 +08:00
Clas Wen
3048475948 Fix line breaks rendering in event descriptions
Add whitespace-pre-wrap CSS class to preserve line breaks and formatting in event descriptions while maintaining proper text wrapping.

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-09-27 12:33:09 +08:00
Clas Wen
e2187b1f13 Fix timing issue with event loading and month filtering
Removed redundant useEffect that was causing a race condition where:
1. Page would load showing all events first
2. Then switch to month-filtered events after a delay

The issue was two competing useEffects:
- One for month filtering (extractScheduleEventsInRange)
- One for loading all events (extractScheduleEvents)

Now uses only one useEffect for both initial loading and month filtering,
ensuring consistent behavior on page load.

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-09-25 23:36:28 +08:00
Clas Wen
a23e262931 Fix timing issue with event loading and month filtering
Removed redundant useEffect that was causing a race condition where:
1. Page would load showing all events first
2. Then switch to month-filtered events after a delay

The issue was two competing useEffects:
- One for month filtering (extractScheduleEventsInRange)
- One for loading all events (extractScheduleEvents)

Now uses only one useEffect for both initial loading and month filtering,
ensuring consistent behavior on page load.

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-09-25 23:36:18 +08:00
Clas Wen
6536c61317 use openapi fetch 2025-09-25 23:18:33 +08:00
clas
38e9a6af61
Merge pull request #101 from wen-templari/fix/recurring-event-duplication
Fix recurring event duplication bug
2025-09-25 23:07:01 +08:00
Clas Wen
39d266e9b5 Fix recurring event duplication bug
When a recurring event has a modified occurrence, the calendar was showing both the original and modified versions. This happened because the code didn't properly handle RECURRENCE-ID exceptions in iCal data.

Changes:
- Modified extractScheduleEventsInRange() to collect exception events first and filter them from recurring patterns
- Updated expandEventOccurrences() to skip dates that have exceptions
- Applied same fix to extractScheduleEvents() for proper date range filtering

Fixes issue where modified recurring events appeared twice in the UI.

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-09-25 22:47:21 +08:00
Clas Wen
3ef9cc2ebe Make RepairAdmin page responsive with mobile card layout
- Add responsive container layout with mobile-first approach
- Implement mobile card component for better touch interaction
- Switch between table (desktop) and cards (mobile) at sm breakpoint
- Make header section responsive with stacked layout on mobile
- Enhance drawer with full-screen mobile support
- Add mobile-optimized filter controls
- Improve touch targets and spacing for mobile devices
- Fix global CSS button border issue for card styling

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-09-25 19:37:34 +08:00
clas
92396ccc4c
Merge pull request #99 from nbtca/fix-workflow-permission
fix workflow permission
2025-09-20 19:47:34 +08:00
clas
09d88dc7ba
Update main.yml 2025-09-19 22:15:48 +08:00
clas
5338706dab
Merge pull request #96 from wen-templari/clarity
add clarity
2025-09-19 11:20:54 +08:00
clas
94d32da20f
Merge pull request #98 from nbtca/alert-autofix-3
Potential fix for code scanning alert no. 3: Workflow does not contain permissions
2025-09-19 11:17:26 +08:00
clas
59428e19e3
Potential fix for code scanning alert no. 3: Workflow does not contain permissions
Co-authored-by: Copilot Autofix powered by AI <62310815+github-advanced-security[bot]@users.noreply.github.com>
2025-09-18 23:09:13 +08:00
clas
bbeb9f5391
Merge pull request #97 from nbtca/dependabot/npm_and_yarn/npm_and_yarn-43e0f2a6b1
Bump the npm_and_yarn group across 1 directory with 2 updates
2025-09-18 23:08:03 +08:00
clas
cdf0764938
Merge branch 'main' into clarity 2025-09-18 23:00:55 +08:00
dependabot[bot]
2cd425a888
Bump the npm_and_yarn group across 1 directory with 2 updates
Bumps the npm_and_yarn group with 2 updates in the / directory: [devalue](https://github.com/sveltejs/devalue) and [vite](https://github.com/vitejs/vite/tree/HEAD/packages/vite).


Updates `devalue` from 5.1.1 to 5.3.2
- [Release notes](https://github.com/sveltejs/devalue/releases)
- [Changelog](https://github.com/sveltejs/devalue/blob/main/CHANGELOG.md)
- [Commits](https://github.com/sveltejs/devalue/compare/v5.1.1...v5.3.2)

Updates `vite` from 5.4.19 to 5.4.20
- [Release notes](https://github.com/vitejs/vite/releases)
- [Changelog](https://github.com/vitejs/vite/blob/v5.4.20/packages/vite/CHANGELOG.md)
- [Commits](https://github.com/vitejs/vite/commits/v5.4.20/packages/vite)

---
updated-dependencies:
- dependency-name: devalue
  dependency-version: 5.3.2
  dependency-type: indirect
  dependency-group: npm_and_yarn
- dependency-name: vite
  dependency-version: 5.4.20
  dependency-type: indirect
  dependency-group: npm_and_yarn
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-09-18 14:57:16 +00:00
clas
0784dd3ca6
Merge pull request #95 from nbtca/dependabot/npm_and_yarn/npm_and_yarn-37b7303635
Bump astro from 4.16.18 to 4.16.19 in the npm_and_yarn group across 1 directory
2025-09-18 22:55:00 +08:00
Clas Wen
49fccffa8b add clarity 2025-09-18 22:53:30 +08:00
dependabot[bot]
cffa4ee16a
Bump astro in the npm_and_yarn group across 1 directory
Bumps the npm_and_yarn group with 1 update in the / directory: [astro](https://github.com/withastro/astro/tree/HEAD/packages/astro).


Updates `astro` from 4.16.18 to 4.16.19
- [Release notes](https://github.com/withastro/astro/releases)
- [Changelog](https://github.com/withastro/astro/blob/astro@4.16.19/packages/astro/CHANGELOG.md)
- [Commits](https://github.com/withastro/astro/commits/astro@4.16.19/packages/astro)

---
updated-dependencies:
- dependency-name: astro
  dependency-version: 4.16.19
  dependency-type: direct:production
  dependency-group: npm_and_yarn
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-08-20 14:09:00 +00:00
Clas Wen
deb167350b Merge remote-tracking branch 'upstream/main' into refactor-blog 2025-07-12 17:50:31 +08:00
clas
87eb9ef897
Merge pull request #88 from wen-templari/schedule
refactor: refactor calendar page
2025-07-12 16:39:19 +08:00
Clas Wen
1329a2792d Add mobile date selector for calendar page
- Add sticky mobile date selector with year and month dropdowns
- Hide existing calendar on mobile screens
- Display selected values with 年/月 suffixes
- Improve mobile user experience for date navigation

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-07-12 15:02:10 +08:00
Clas Wen
306a19f4b4 Merge remote-tracking branch 'upstream/main' into schedule 2025-07-12 14:47:09 +08:00
clas
d2b41f5b79
Merge pull request #93 from nbtca/dependabot/npm_and_yarn/npm_and_yarn-6ea9762674
Bump brace-expansion from 1.1.11 to 1.1.12 in the npm_and_yarn group across 1 directory
2025-07-12 14:45:53 +08:00
dependabot[bot]
ae53a05c99
Bump brace-expansion in the npm_and_yarn group across 1 directory
Bumps the npm_and_yarn group with 1 update in the / directory: [brace-expansion](https://github.com/juliangruber/brace-expansion).


Updates `brace-expansion` from 1.1.11 to 1.1.12
- [Release notes](https://github.com/juliangruber/brace-expansion/releases)
- [Commits](https://github.com/juliangruber/brace-expansion/compare/1.1.11...v1.1.12)

---
updated-dependencies:
- dependency-name: brace-expansion
  dependency-version: 1.1.12
  dependency-type: indirect
  dependency-group: npm_and_yarn
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-06-12 05:56:59 +00:00
3e2b34865e
Merge pull request #91 from m1ngsama/main
Fix some bugs and Post a blog
2025-06-10 14:15:39 +08:00
a0bed1c4ca finished the minecraftMac.md 2025-06-10 09:53:56 +08:00
eee2bf7f95 add typography and fix blockquote in markdown 2025-06-10 09:42:17 +08:00
8fbae689d6 add author url support in layout 2025-06-10 09:23:30 +08:00
f34a83bd52 add remark-toc support & chinese ver & add minecraftMac.md 2025-06-10 09:17:39 +08:00
clas
59dd706498
Merge branch 'main' into refactor-blog 2025-06-04 22:11:25 +08:00
10c33860c9
Merge pull request #86 from m1ngsama/main
Delete most of the getArch, add a link instead temporarily
2025-06-02 22:10:48 +08:00
clas
931cb6ee01
Apply suggestions from code review
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
2025-06-02 17:31:13 +08:00
clas
5bbfb3ae53
Apply suggestions from code review
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
2025-06-02 17:31:02 +08:00
Clas Wen
5d33c40400 fix style 2025-05-31 10:41:45 +08:00
Clas Wen
1bd9d9551b fix overflow 2025-05-31 10:38:32 +08:00
Clas Wen
2a7e5bf861 change menu name 2025-05-30 22:47:12 +08:00
Clas Wen
c1467ef24d save 2025-05-30 22:27:40 +08:00