Refactor comment system:

- Update comment API to handle private comments and improve request structure.
- Remove unused CSS animations and components related to comments.
- Implement new comment input and item components with enhanced functionality including editing and private comment options.
- Integrate user profile navigation and improve user experience with better feedback on actions (like, delete, edit).
- Update localization for new features and ensure consistency in comment handling.
- Introduce checkbox for private comments in the comment input.
This commit is contained in:
2025-09-09 21:56:41 +08:00
parent ad9dfb0c4c
commit 3e70d63e70
16 changed files with 523 additions and 666 deletions

View File

@ -12,11 +12,11 @@ export function useToLogin() {
}
}
export function clickToUserprofile(username: string) {
const router = useRouter()
return () => {
router.push(`/user/${username}`)
}
export function useToUserProfile() {
const router = useRouter();
return (username: string) => {
router.push(`/u/${username}`);
};
}
export function clickToPost(postId: number) {