Split repositories into two standalone Go modules and fixed their
respective Makefile init targets. Updated:
- account: module → `account`
- rag-server: module → `rag-server`
### Layout Changes:
1. **Homepage Layout Restructure** (`src/modules/homepage/page.tsx`)
- Changed hero section to two-column grid: `lg:grid-cols-[minmax(0,1fr)_360px]`
- Moved Sidebar component to right side of hero section (360px width)
- Hero content now spans left column with full-width appearance
- Sidebar is sticky on large screens: `lg:sticky lg:top-0`
- Maintains consistent width between upper and lower sections
2. **Template System Updates**
- Removed Sidebar from `HomePageTemplateSlots` type (`src/modules/templates/types.ts`)
- Updated `defaultHomeLayoutConfig` to remove Sidebar from content slots
- Updated default template to remove Sidebar registration
- Updated `app/page.tsx` to pass only ProductMatrix and CommunityFeed slots
3. **Sidebar Component Conversion** (`src/components/home/Sidebar.tsx`)
- Converted from Server Component to Client Component
- Added 'use client' directive to enable useLanguage hook
- Replaced dynamic CMS content with static bilingual content
- Hardcoded sections: 社区热议, 推荐资源, 热门标签
- Maintains same visual structure and styling
4. **Homepage Module Cleanup** (`src/modules/homepage/page.tsx`)
- Removed unused `getHomepagePosts` import (was causing fs error in client)
- Kept useLanguage hook for internationalization support
- Sidebar now works as client component alongside homepage
### Technical Details:
- Grid layout: Two columns on large screens (hero + sidebar)
- Sidebar width: Fixed 360px, sticky positioning
- Hero content: Flexible width with max-w-6xl constraint
- Visual consistency: Upper and lower sections maintain same max-width
- Component architecture: All client components, no server-client mixing
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude <noreply@anthropic.com>
- Add token service and MFA service to account service
- Implement auth middleware for request validation
- Add token-based auth to dashboard and RAG server
- Update configuration files for auth settings