Changeset e882b92 for chapterx-frontend/src/components
- Timestamp:
- 08/24/26 20:57:09 (13 days ago)
- Branches:
- main
- Parents:
- a6e33d1
- Location:
- chapterx-frontend/src/components
- Files:
-
- 4 edited
-
admin/ContentModerationTable.tsx (modified) (1 diff)
-
story/CommentSection.tsx (modified) (1 diff)
-
story/LikeButton.tsx (modified) (1 diff)
-
writer/CollaboratorManager.tsx (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
chapterx-frontend/src/components/admin/ContentModerationTable.tsx
ra6e33d1 re882b92 20 20 deleteStory(story.story_id) 21 21 addNotification({ 22 user_id: story.user_id, 23 type: 'system', 24 title: 'Story Removed', 25 message: `Your story "${story.title}" has been removed by an administrator.`, 22 userId: story.user_id, 23 contentType: 'system', 24 content: `Your story "${story.title}" has been removed by an administrator.`, 26 25 }) 27 26 addToast(`"${story.title}" removed from platform`, 'info') -
chapterx-frontend/src/components/story/CommentSection.tsx
ra6e33d1 re882b92 80 80 if (currentUser.user_id !== authorUserId) { 81 81 await addNotification({ 82 recipientUserId: authorUserId,83 type: 'comment',82 userId: authorUserId, 83 contentType: 'comment', 84 84 content: `${currentUser.username} commented: "${text.trim().slice(0, 60)}${text.length > 60 ? '...' : ''}"`, 85 storyId, 85 86 link: `/story/${storyId}`, 86 87 }) -
chapterx-frontend/src/components/story/LikeButton.tsx
ra6e33d1 re882b92 59 59 if (currentUser.user_id !== authorUserId) { 60 60 await addNotification({ 61 recipientUserId: authorUserId,62 type: 'like',61 userId: authorUserId, 62 contentType: 'like', 63 63 content: `${currentUser.username} liked your story.`, 64 storyId, 64 65 link: `/story/${storyId}`, 65 66 }) -
chapterx-frontend/src/components/writer/CollaboratorManager.tsx
ra6e33d1 re882b92 62 62 addCollaboration(newCollab) 63 63 addNotification({ 64 recipientUserId: user.user_id,65 type: 'collaboration',64 userId: user.user_id, 65 contentType: 'collaboration', 66 66 content: `You've been invited to collaborate on "${storyTitle}" as ${selectedRole}.`, 67 storyId, 67 68 link: `/story/${storyId}`, 68 69 })
Note:
See TracChangeset
for help on using the changeset viewer.
