Commit graph

231 commits

Author SHA1 Message Date
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 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 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 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
cdf0764938
Merge branch 'main' into clarity 2025-09-18 23:00:55 +08:00
Clas Wen
49fccffa8b add clarity 2025-09-18 22:53:30 +08:00
Clas Wen
deb167350b Merge remote-tracking branch 'upstream/main' into refactor-blog 2025-07-12 17:50:31 +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
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
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
Clas Wen
079ec3de7b Merge remote-tracking branch 'upstream' into schedule 2025-05-30 19:25:24 +08:00
Clas Wen
1ec84f6fa0 save 2025-05-30 19:24:01 +08:00
0ae59038f3 delete main pages about getArch && add a personal link instead 2025-05-29 15:10:09 +08:00
clas
46ceeb186a
Merge pull request #82 from nbtca/dev
Delete 99.blogroll.md
2025-05-28 12:25:01 +08:00
clas
09be50fccb
Merge branch 'nbtca:main' into add-repair-admin 2025-05-28 12:09:08 +08:00
Clas Wen
e181db4111 upload cover to oss 2025-05-25 18:02:50 +08:00
Clas Wen
279fa5ee4d fix mail link 2025-05-25 11:58:41 +08:00
Clas Wen
ae23dffe24 update style 2025-05-25 11:54:25 +08:00
Clas Wen
bc35482cef change default export time range 2025-05-25 10:12:50 +08:00
Clas Wen
f4a7df3ab0 add default filter 2025-05-25 10:04:12 +08:00
Clas Wen
425d0c4da4 update style 2025-05-24 21:58:19 +08:00
Clas Wen
928162ece2 update style 2025-05-24 17:47:49 +08:00
Clas Wen
5e12d7051e save 2025-05-24 17:33:11 +08:00
Clas Wen
9eaf58ef86 fix offset 2025-05-24 15:20:40 +08:00
Clas Wen
74c95626c8 add export dialog 2025-05-24 14:24:16 +08:00
Clas Wen
6a99120e14 save 2025-05-24 14:07:41 +08:00
Clas Wen
c00cdb478c add event detail loading 2025-05-24 13:57:36 +08:00
Clas Wen
478a7146f5 fix commit 2025-05-24 13:54:06 +08:00
Clas Wen
b4350c9b50 add memberId 2025-05-24 12:52:19 +08:00
Clas Wen
29a6bf9cd3 fix url 2025-05-24 12:50:43 +08:00
Clas Wen
33d93d0347 add event actions 2025-05-24 12:40:25 +08:00
Clas Wen
bd38b8ed2b fix page 2025-05-24 02:42:15 +08:00