removed excess comments
This commit is contained in:
@@ -1,16 +1,3 @@
|
||||
/**
|
||||
* Comment System Type Definitions
|
||||
*
|
||||
* - Comment and CommentReaction models
|
||||
* - WebSocket message types
|
||||
* - User data structures
|
||||
* - Component prop interfaces
|
||||
*/
|
||||
|
||||
// ============================================================================
|
||||
// Core Data Models
|
||||
// ============================================================================
|
||||
|
||||
export interface Comment {
|
||||
id: number;
|
||||
body: string;
|
||||
@@ -47,10 +34,6 @@ export interface UserPublicData {
|
||||
image?: string;
|
||||
}
|
||||
|
||||
// ============================================================================
|
||||
// WebSocket Message Types
|
||||
// ============================================================================
|
||||
|
||||
export interface WebSocketBroadcast {
|
||||
action:
|
||||
| "commentCreationBroadcast"
|
||||
@@ -72,10 +55,6 @@ export interface BackupResponse {
|
||||
commentParent?: number | null;
|
||||
}
|
||||
|
||||
// ============================================================================
|
||||
// Privilege and Sorting Types
|
||||
// ============================================================================
|
||||
|
||||
export type PrivilegeLevel = "admin" | "user" | "anonymous";
|
||||
|
||||
export type SortingMode = "newest" | "oldest" | "highest_rated" | "hot";
|
||||
@@ -84,10 +63,6 @@ export type DeletionType = "user" | "admin" | "database";
|
||||
|
||||
export type ModificationType = "delete" | "edit";
|
||||
|
||||
// ============================================================================
|
||||
// Component Props Interfaces
|
||||
// ============================================================================
|
||||
|
||||
export interface CommentSectionWrapperProps {
|
||||
privilegeLevel: PrivilegeLevel;
|
||||
allComments: Comment[];
|
||||
|
||||
@@ -1,4 +1,3 @@
|
||||
// lineage User
|
||||
export interface User {
|
||||
id: string;
|
||||
email: string | null;
|
||||
|
||||
Reference in New Issue
Block a user