Commit Graph

11 Commits

Author SHA1 Message Date
89e2fbe0b9 feat: enhance post retrieval with authorization token
- Updated `getPostById` function to accept an optional authorization token.
- Modified `PostPage` to retrieve the token from cookies and pass it to the API call.
- Added smooth transition effects for background and text colors in `globals.css`.
- Cleaned up imports and formatting in `blog-home.tsx`.
- Refactored `blog-post.tsx` to use `MDXRemote` for rendering markdown content.
- Introduced `blog-comment.tsx` and `blog-post-header.client.tsx` components for better structure.
- Added a switch component for dark/light mode toggle in the navbar.
- Updated `Post` model to include a description field.
2025-07-28 08:30:37 +08:00
abe1099711 ️ feat: update global styles and color variables for improved theming
refactor: change import paths for DeviceContext and GravatarAvatar components

fix: adjust login form API call and update UI text for clarity

feat: add post API for listing posts with pagination and filtering options

feat: implement BlogCard component for displaying blog posts with enhanced UI

feat: create Badge component for consistent styling of labels and indicators

refactor: reintroduce DeviceContext with improved functionality for theme and language management

feat: define Label and Post models for better type safety and structure
2025-07-24 13:12:59 +08:00
9ca307f4d9 ️ feat: add main page layout with navigation and footer
feat: create random labels page

feat: implement login page with OpenID Connect support

feat: add Gravatar component for user avatars

feat: create Navbar component with navigation menu

chore: create Sidebar component placeholder

feat: implement login form with OIDC and email/password options

feat: add reusable button component

feat: create card component for structured content display

feat: implement input component for forms

feat: create label component for form labels

feat: add navigation menu component for site navigation

chore: add configuration file for site metadata

feat: implement device context for responsive design

feat: add utility functions for class name management

feat: define OIDC configuration model

feat: define base response model for API responses

feat: define user model for user data

feat: implement i18n for internationalization support

feat: add English and Chinese translations for login

chore: create index for locale resources

chore: add blog home view placeholder
2025-07-24 09:22:50 +08:00
58c370ec65 implement OIDC configuration management with CRUD operations, add admin routes, and enhance error handling 2025-07-23 03:32:00 +08:00
cbe73121f2 refactor user service methods, implement OIDC login and user management features, and enhance token handling 2025-07-22 20:45:05 +08:00
f07200b0b9 update environment mode handling, refactor user registration logic, and add username/email existence checks 2025-07-22 10:04:42 +08:00
08872ea015 add .env.example file with configuration settings, refactor environment variable access methods 2025-07-22 09:31:58 +08:00
00c28fea9c implement user registration with email verification, enhance error handling, and update database configuration 2025-07-22 09:15:12 +08:00
a0d215fa2e implement email verification feature, add captcha validation middleware, and enhance user authentication flow 2025-07-22 08:50:16 +08:00
b9400e0785 update user authentication error handling, add invalid credentials response, and modify .gitignore for data directory 2025-07-22 06:20:25 +08:00
d1a040617f implement user authentication and database initialization, add models for user, comment, label, and OIDC configuration 2025-07-22 06:18:23 +08:00