mirror of
https://github.com/shumaiOne/shumai.git
synced 2026-12-01 21:44:27 +00:00
Merge pull request #23 from shumaiOne/feat/video-comment-timestamp
feat(video): add timestamp support to comments
This commit is contained in:
@@ -157,10 +157,11 @@ describe('file api', () => {
|
|||||||
it('POST /files/:fileId/comments', async () => {
|
it('POST /files/:fileId/comments', async () => {
|
||||||
vi.mocked(assetService.createComment).mockResolvedValue({
|
vi.mocked(assetService.createComment).mockResolvedValue({
|
||||||
id: 'comment-id',
|
id: 'comment-id',
|
||||||
assetId: 'test-id',
|
assetId: 'file-id',
|
||||||
message: 'hello',
|
message: 'hello',
|
||||||
annotations: null,
|
annotations: null,
|
||||||
creator: { id: 'user1', name: 'user-name' },
|
second: null,
|
||||||
|
creator: { id: 'user-id', name: 'Test User' },
|
||||||
replies: [],
|
replies: [],
|
||||||
attachments: [],
|
attachments: [],
|
||||||
mentions: [],
|
mentions: [],
|
||||||
@@ -207,10 +208,11 @@ describe('file api', () => {
|
|||||||
data: [
|
data: [
|
||||||
{
|
{
|
||||||
id: 'comment-id',
|
id: 'comment-id',
|
||||||
assetId: 'test-id',
|
assetId: 'file-id',
|
||||||
message: 'hello',
|
message: 'hello',
|
||||||
annotations: null,
|
annotations: null,
|
||||||
creator: { id: 'user1', name: 'user-name' },
|
second: null,
|
||||||
|
creator: { id: 'user-id', name: 'Test User' },
|
||||||
replies: [],
|
replies: [],
|
||||||
attachments: [],
|
attachments: [],
|
||||||
mentions: [],
|
mentions: [],
|
||||||
|
|||||||
@@ -189,6 +189,7 @@ export type CommentInfo = {
|
|||||||
message: string | null
|
message: string | null
|
||||||
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
||||||
annotations: any
|
annotations: any
|
||||||
|
second: number | null
|
||||||
creator: UserInfo
|
creator: UserInfo
|
||||||
replies: CommentInfo[]
|
replies: CommentInfo[]
|
||||||
attachments: AttachmentInfo[]
|
attachments: AttachmentInfo[]
|
||||||
@@ -204,6 +205,7 @@ export const commentInfoSchema: z.ZodType<CommentInfo> = z.object({
|
|||||||
message: z.string().nullable(),
|
message: z.string().nullable(),
|
||||||
|
|
||||||
annotations: z.any(),
|
annotations: z.any(),
|
||||||
|
second: z.number().nullable(),
|
||||||
creator: userInfoSchema,
|
creator: userInfoSchema,
|
||||||
replies: z.array(z.lazy(() => commentInfoSchema)),
|
replies: z.array(z.lazy(() => commentInfoSchema)),
|
||||||
attachments: z.array(attachmentInfoSchema),
|
attachments: z.array(attachmentInfoSchema),
|
||||||
|
|||||||
@@ -664,6 +664,28 @@ describe('AssetService', () => {
|
|||||||
expect(list.data[0].replies.length).toBe(1)
|
expect(list.data[0].replies.length).toBe(1)
|
||||||
})
|
})
|
||||||
|
|
||||||
|
it('can create and retrieve comments with video timestamp', async () => {
|
||||||
|
const { user, assets } = await setupBasicAssets()
|
||||||
|
|
||||||
|
const comment = await assetService.createComment({
|
||||||
|
assetId: assets.fileA1.id,
|
||||||
|
userId: user.id,
|
||||||
|
message: 'Interesting point at 5.5s',
|
||||||
|
second: 5.5,
|
||||||
|
attachmentIds: [],
|
||||||
|
})
|
||||||
|
|
||||||
|
expect(comment.second).toBe(5.5)
|
||||||
|
|
||||||
|
const retrieved = await assetService.getComment(comment.id)
|
||||||
|
expect(retrieved.second).toBe(5.5)
|
||||||
|
|
||||||
|
const list = await assetService.listComments(assets.fileA1.id, {
|
||||||
|
first: 10,
|
||||||
|
})
|
||||||
|
expect(list.data[0].second).toBe(5.5)
|
||||||
|
})
|
||||||
|
|
||||||
it('correctly handles AI comments with agent identity', async () => {
|
it('correctly handles AI comments with agent identity', async () => {
|
||||||
const { assets, project } = await setupBasicAssets()
|
const { assets, project } = await setupBasicAssets()
|
||||||
|
|
||||||
|
|||||||
@@ -1690,6 +1690,7 @@ export class AssetService {
|
|||||||
assetId: c.assetId,
|
assetId: c.assetId,
|
||||||
message: c.message,
|
message: c.message,
|
||||||
annotations: c.annotation,
|
annotations: c.annotation,
|
||||||
|
second: c.second,
|
||||||
creator,
|
creator,
|
||||||
replies,
|
replies,
|
||||||
attachments,
|
attachments,
|
||||||
|
|||||||
@@ -10,13 +10,14 @@ import {
|
|||||||
DialogTitle,
|
DialogTitle,
|
||||||
} from '@/ui/components/ui/dialog'
|
} from '@/ui/components/ui/dialog'
|
||||||
import { Separator } from '@/ui/components/ui/separator'
|
import { Separator } from '@/ui/components/ui/separator'
|
||||||
|
import { formatTimeAgo } from '@/ui/lib/time'
|
||||||
import { useQuery } from '@tanstack/react-query'
|
import { useQuery } from '@tanstack/react-query'
|
||||||
import { Download, File, Terminal } from 'lucide-react'
|
import { Download, File, Terminal } from 'lucide-react'
|
||||||
import React from 'react'
|
import React from 'react'
|
||||||
import { formatTimeAgo } from '@/ui/lib/time'
|
|
||||||
import Markdown from 'react-markdown'
|
import Markdown from 'react-markdown'
|
||||||
import { Avatar, AvatarFallback } from '../ui/avatar'
|
import { Avatar, AvatarFallback } from '../ui/avatar'
|
||||||
import { Skeleton } from '../ui/skeleton'
|
import { Skeleton } from '../ui/skeleton'
|
||||||
|
import { formatTimestamp } from '../viewers/utils'
|
||||||
|
|
||||||
interface MessageCardProps {
|
interface MessageCardProps {
|
||||||
teamId?: string
|
teamId?: string
|
||||||
@@ -27,6 +28,9 @@ interface MessageCardProps {
|
|||||||
getUser: (id: string) => UserInfo
|
getUser: (id: string) => UserInfo
|
||||||
onReply: (message: CommentInfo) => void
|
onReply: (message: CommentInfo) => void
|
||||||
onViewAttachment: (attachment: AttachmentInfo) => void
|
onViewAttachment: (attachment: AttachmentInfo) => void
|
||||||
|
isSelected?: boolean
|
||||||
|
onSelect?: () => void
|
||||||
|
frameRate?: number
|
||||||
rootParentId?: string
|
rootParentId?: string
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -48,6 +52,9 @@ export const MessageCard: React.FC<MessageCardProps> = ({
|
|||||||
getUser,
|
getUser,
|
||||||
onReply,
|
onReply,
|
||||||
onViewAttachment,
|
onViewAttachment,
|
||||||
|
isSelected,
|
||||||
|
onSelect,
|
||||||
|
frameRate,
|
||||||
}) => {
|
}) => {
|
||||||
const isRunning =
|
const isRunning =
|
||||||
!!initialMessage.sessionId &&
|
!!initialMessage.sessionId &&
|
||||||
@@ -133,9 +140,16 @@ export const MessageCard: React.FC<MessageCardProps> = ({
|
|||||||
}
|
}
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<div className={`relative flex gap-4 ${isReply ? 'mt-4' : 'mt-6'} group`}>
|
<div
|
||||||
|
onClick={onSelect}
|
||||||
|
className={`relative flex gap-4 ${isReply ? 'mt-2' : 'mt-3'} mr-3 group p-3 py-4 border transition-all duration-200 cursor-pointer rounded-xl ${
|
||||||
|
isSelected
|
||||||
|
? 'border-blue-500/40 dark:border-blue-400/40 bg-blue-500/10 dark:bg-blue-400/10 shadow-sm'
|
||||||
|
: 'border-transparent bg-foreground/2 dark:bg-foreground/10 hover:bg-foreground/4 dark:hover:bg-foreground/15'
|
||||||
|
}`}
|
||||||
|
>
|
||||||
{hasReplies && !isReply && (
|
{hasReplies && !isReply && (
|
||||||
<div className="absolute left-[1rem] top-[2rem] bottom-[-1.5rem] w-0.5 bg-foreground/10 -translate-x-1/2 z-0" />
|
<div className="absolute left-[1.7rem] top-[2rem] bottom-[-1.8rem] w-0.5 bg-foreground/10 -translate-x-1/2 z-0" />
|
||||||
)}
|
)}
|
||||||
|
|
||||||
{isReply && !isLastReply && (
|
{isReply && !isLastReply && (
|
||||||
@@ -161,21 +175,29 @@ export const MessageCard: React.FC<MessageCardProps> = ({
|
|||||||
</span>
|
</span>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
{showSkeleton ? (
|
<div className="flow-root mt-1">
|
||||||
<div className="space-y-2">
|
{message.second !== null && message.second !== undefined && frameRate && (
|
||||||
<Skeleton className="h-4 w-3/4" />
|
<div className="float-left select-none bg-blue-100 dark:bg-blue-900/40 text-blue-600 dark:text-blue-300 px-2.5 py-1 mt-[2px] mr-2 rounded-sm text-xs leading-none font-mono font-bold flex items-center gap-1">
|
||||||
<Skeleton className="h-4 w-1/2" />
|
{formatTimestamp(message.second, frameRate)}
|
||||||
<span className="text-xs text-muted-foreground animate-pulse">{loadingText}</span>
|
</div>
|
||||||
</div>
|
)}
|
||||||
) : message.sessionId ? (
|
|
||||||
<div className="text-sm leading-relaxed prose prose-sm dark:prose-invert max-w-none break-words">
|
{showSkeleton ? (
|
||||||
<Markdown>{preprocessMarkdown(message.message!)}</Markdown>
|
<div className="space-y-2">
|
||||||
</div>
|
<Skeleton className="h-4 w-3/4" />
|
||||||
) : (
|
<Skeleton className="h-4 w-1/2" />
|
||||||
<div className="text-sm leading-relaxed whitespace-pre-wrap break-words text-wrap break-all">
|
<span className="text-xs text-muted-foreground animate-pulse">{loadingText}</span>
|
||||||
{renderFormattedMessage(message.message!)}
|
</div>
|
||||||
</div>
|
) : message.sessionId ? (
|
||||||
)}
|
<div className="text-sm leading-relaxed prose prose-sm dark:prose-invert max-w-none break-words">
|
||||||
|
<Markdown>{preprocessMarkdown(message.message!)}</Markdown>
|
||||||
|
</div>
|
||||||
|
) : (
|
||||||
|
<div className="text-sm leading-relaxed whitespace-pre-wrap break-words text-wrap break-all">
|
||||||
|
{renderFormattedMessage(message.message!)}
|
||||||
|
</div>
|
||||||
|
)}
|
||||||
|
</div>
|
||||||
|
|
||||||
{/* Attachments */}
|
{/* Attachments */}
|
||||||
{message.attachments && message.attachments.length > 0 && (
|
{message.attachments && message.attachments.length > 0 && (
|
||||||
|
|||||||
@@ -1,13 +1,16 @@
|
|||||||
import { client } from '@/ui/api/client'
|
import type { CommentInfo, PostAttachmentRequest, PostAttachmentResponse } from '@/dtos/asset'
|
||||||
import type { CommentInfo } from '@/dtos/asset'
|
|
||||||
import type { UserInfo } from '@/dtos/team'
|
|
||||||
import type { BotInfo } from '@/dtos/project'
|
import type { BotInfo } from '@/dtos/project'
|
||||||
import type { PostAttachmentRequest, PostAttachmentResponse } from '@/dtos/asset'
|
import type { UserInfo } from '@/dtos/team'
|
||||||
|
import { client } from '@/ui/api/client'
|
||||||
|
import { useAnnotationStore } from '@/ui/stores/annotation-store'
|
||||||
|
import type { Annotation } from '@/ui/types'
|
||||||
|
import { useMutation } from '@tanstack/react-query'
|
||||||
import {
|
import {
|
||||||
ArrowLeft,
|
ArrowLeft,
|
||||||
ArrowUp,
|
ArrowUp,
|
||||||
Brush,
|
Brush,
|
||||||
ChevronDown,
|
ChevronDown,
|
||||||
|
Clock,
|
||||||
FileIcon,
|
FileIcon,
|
||||||
Minus,
|
Minus,
|
||||||
Paperclip,
|
Paperclip,
|
||||||
@@ -19,11 +22,9 @@ import {
|
|||||||
import React, { useCallback, useEffect, useRef, useState, type ChangeEvent } from 'react'
|
import React, { useCallback, useEffect, useRef, useState, type ChangeEvent } from 'react'
|
||||||
import { Button } from '../ui/button'
|
import { Button } from '../ui/button'
|
||||||
import { DrawAnnotation } from '../ui/icons'
|
import { DrawAnnotation } from '../ui/icons'
|
||||||
import { ProgressCircle } from '../ui/progress-circle'
|
|
||||||
import { Popover, PopoverContent, PopoverTrigger } from '../ui/popover'
|
import { Popover, PopoverContent, PopoverTrigger } from '../ui/popover'
|
||||||
import { useAnnotationStore } from '@/ui/stores/annotation-store'
|
import { ProgressCircle } from '../ui/progress-circle'
|
||||||
import type { Annotation } from '@/ui/types'
|
import { formatTimestamp } from '../viewers/utils'
|
||||||
import { useMutation } from '@tanstack/react-query'
|
|
||||||
|
|
||||||
type UploadingFile = {
|
type UploadingFile = {
|
||||||
id: string // A unique ID for the file, e.g., timestamp + name
|
id: string // A unique ID for the file, e.g., timestamp + name
|
||||||
@@ -40,6 +41,7 @@ interface ChatInputProps {
|
|||||||
attachmentIds: string[],
|
attachmentIds: string[],
|
||||||
annotations?: Annotation[],
|
annotations?: Annotation[],
|
||||||
replyToId?: string | null,
|
replyToId?: string | null,
|
||||||
|
second?: number | null,
|
||||||
) => void
|
) => void
|
||||||
replyingTo?: CommentInfo | null
|
replyingTo?: CommentInfo | null
|
||||||
onCancelReply?: () => void
|
onCancelReply?: () => void
|
||||||
@@ -48,6 +50,9 @@ interface ChatInputProps {
|
|||||||
initialText?: string
|
initialText?: string
|
||||||
hideAnnotationControl?: boolean
|
hideAnnotationControl?: boolean
|
||||||
disableMentions?: boolean
|
disableMentions?: boolean
|
||||||
|
currentTime?: number
|
||||||
|
frameRate?: number
|
||||||
|
onTyping?: () => void
|
||||||
}
|
}
|
||||||
|
|
||||||
const PREDEFINED_COLORS = [
|
const PREDEFINED_COLORS = [
|
||||||
@@ -76,11 +81,15 @@ export const ChatInput = React.forwardRef<HTMLDivElement, ChatInputProps>(
|
|||||||
initialText = '',
|
initialText = '',
|
||||||
hideAnnotationControl = false,
|
hideAnnotationControl = false,
|
||||||
disableMentions = false,
|
disableMentions = false,
|
||||||
|
currentTime,
|
||||||
|
frameRate,
|
||||||
|
onTyping,
|
||||||
},
|
},
|
||||||
ref,
|
ref,
|
||||||
) => {
|
) => {
|
||||||
const [uploadingFiles, setUploadingFiles] = useState<UploadingFile[]>([])
|
const [uploadingFiles, setUploadingFiles] = useState<UploadingFile[]>([])
|
||||||
const [viewingFile, setViewingFile] = useState<File | null>(null)
|
const [viewingFile, setViewingFile] = useState<File | null>(null)
|
||||||
|
const [isTimestampEnabled, setIsTimestampEnabled] = useState(true)
|
||||||
|
|
||||||
// Annotation Store
|
// Annotation Store
|
||||||
const {
|
const {
|
||||||
@@ -190,6 +199,7 @@ export const ChatInput = React.forwardRef<HTMLDivElement, ChatInputProps>(
|
|||||||
const handleInput = () => {
|
const handleInput = () => {
|
||||||
if (!editorRef.current) return
|
if (!editorRef.current) return
|
||||||
setHasContent(!!editorRef.current.innerText.trim())
|
setHasContent(!!editorRef.current.innerText.trim())
|
||||||
|
onTyping?.()
|
||||||
|
|
||||||
if (disableMentions) {
|
if (disableMentions) {
|
||||||
setShowMentionList(false)
|
setShowMentionList(false)
|
||||||
@@ -395,7 +405,13 @@ export const ChatInput = React.forwardRef<HTMLDivElement, ChatInputProps>(
|
|||||||
// Allow sending if annotations exist, even if text is empty
|
// Allow sending if annotations exist, even if text is empty
|
||||||
if (!processedText && successfulAttachmentIds.length === 0 && annotations.length === 0) return
|
if (!processedText && successfulAttachmentIds.length === 0 && annotations.length === 0) return
|
||||||
|
|
||||||
onSendMessage(processedText, successfulAttachmentIds, annotations, replyingTo?.id)
|
onSendMessage(
|
||||||
|
processedText,
|
||||||
|
successfulAttachmentIds,
|
||||||
|
annotations,
|
||||||
|
replyingTo?.id,
|
||||||
|
isTimestampEnabled ? currentTime : undefined,
|
||||||
|
)
|
||||||
|
|
||||||
// Reset editor
|
// Reset editor
|
||||||
editorRef.current.innerHTML = ''
|
editorRef.current.innerHTML = ''
|
||||||
@@ -566,7 +582,21 @@ export const ChatInput = React.forwardRef<HTMLDivElement, ChatInputProps>(
|
|||||||
</div>
|
</div>
|
||||||
)}
|
)}
|
||||||
|
|
||||||
<div className="w-full px-4 pt-1 pb-1">
|
<div
|
||||||
|
onClick={() => editorRef.current?.focus()}
|
||||||
|
className="w-full px-4 pt-1 pb-1 cursor-text flow-root max-h-60 overflow-y-auto"
|
||||||
|
>
|
||||||
|
{isTimestampEnabled && currentTime !== undefined && frameRate !== undefined && (
|
||||||
|
<div
|
||||||
|
onClick={(e) => {
|
||||||
|
e.stopPropagation()
|
||||||
|
editorRef.current?.focus()
|
||||||
|
}}
|
||||||
|
className="float-left select-none bg-blue-100 dark:bg-blue-900/40 text-blue-600 dark:text-blue-300 px-2.5 py-0.5 mt-3 mr-2 rounded-sm text-xs font-mono font-bold flex items-center gap-1 cursor-text"
|
||||||
|
>
|
||||||
|
{formatTimestamp(currentTime, frameRate)}
|
||||||
|
</div>
|
||||||
|
)}
|
||||||
<div
|
<div
|
||||||
ref={editorRef}
|
ref={editorRef}
|
||||||
contentEditable={!isDrawing}
|
contentEditable={!isDrawing}
|
||||||
@@ -576,7 +606,7 @@ export const ChatInput = React.forwardRef<HTMLDivElement, ChatInputProps>(
|
|||||||
data-placeholder={
|
data-placeholder={
|
||||||
isDrawing ? 'Drawing active...' : replyingTo ? 'Reply...' : 'Message...'
|
isDrawing ? 'Drawing active...' : replyingTo ? 'Reply...' : 'Message...'
|
||||||
}
|
}
|
||||||
className="w-full bg-transparent border-none focus:ring-0 resize-none max-h-60 min-h-[40px] leading-relaxed py-2 focus:outline-none overflow-y-auto"
|
className={`bg-transparent border-none focus:ring-0 resize-none min-h-[40px] leading-relaxed py-2 focus:outline-none block ${isTimestampEnabled && currentTime !== undefined && frameRate !== undefined && !hasContent ? 'pl-[120px]' : ''}`}
|
||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
@@ -679,6 +709,17 @@ export const ChatInput = React.forwardRef<HTMLDivElement, ChatInputProps>(
|
|||||||
multiple
|
multiple
|
||||||
onChange={handleFileSelect}
|
onChange={handleFileSelect}
|
||||||
/>
|
/>
|
||||||
|
{currentTime !== undefined && frameRate !== undefined && (
|
||||||
|
<Button
|
||||||
|
onClick={() => setIsTimestampEnabled(!isTimestampEnabled)}
|
||||||
|
variant={isTimestampEnabled ? 'secondary' : 'ghost'}
|
||||||
|
size="icon"
|
||||||
|
className={`p-2 rounded-full cursor-pointer ${isTimestampEnabled ? 'text-blue-600 bg-blue-50 dark:bg-blue-900/20' : ''}`}
|
||||||
|
title={isTimestampEnabled ? 'Disable Timestamp' : 'Enable Timestamp'}
|
||||||
|
>
|
||||||
|
<Clock className="w-4 h-4" />
|
||||||
|
</Button>
|
||||||
|
)}
|
||||||
<Button
|
<Button
|
||||||
onClick={() => fileInputRef.current?.click()}
|
onClick={() => fileInputRef.current?.click()}
|
||||||
className="p-2 rounded-full cursor-pointer"
|
className="p-2 rounded-full cursor-pointer"
|
||||||
|
|||||||
@@ -1,19 +1,19 @@
|
|||||||
import { type FieldInfo as MetadataFieldInfo } from '@/dtos/metadata'
|
|
||||||
import { client } from '@/ui/api/client'
|
|
||||||
import type { AssetInfo, AttachmentInfo, CommentInfo, FieldValueInfo } from '@/dtos/asset'
|
import type { AssetInfo, AttachmentInfo, CommentInfo, FieldValueInfo } from '@/dtos/asset'
|
||||||
|
import { type FieldInfo as MetadataFieldInfo } from '@/dtos/metadata'
|
||||||
import type { UserInfo } from '@/dtos/team'
|
import type { UserInfo } from '@/dtos/team'
|
||||||
|
import { client } from '@/ui/api/client'
|
||||||
import { Tabs, TabsContent, TabsList, TabsTrigger } from '@/ui/components/ui/tabs'
|
import { Tabs, TabsContent, TabsList, TabsTrigger } from '@/ui/components/ui/tabs'
|
||||||
import { useFieldStore } from '@/ui/stores/fields'
|
import { useFieldStore } from '@/ui/stores/fields'
|
||||||
import { useInfiniteQuery, useQueryClient, useQuery, useMutation } from '@tanstack/react-query'
|
import type { Annotation } from '@/ui/types'
|
||||||
|
import { useInfiniteQuery, useMutation, useQuery, useQueryClient } from '@tanstack/react-query'
|
||||||
import { XIcon } from 'lucide-react'
|
import { XIcon } from 'lucide-react'
|
||||||
import React, { useEffect, useMemo, useState } from 'react'
|
import React, { useEffect, useMemo, useState } from 'react'
|
||||||
import { useInView } from 'react-intersection-observer'
|
import { useInView } from 'react-intersection-observer'
|
||||||
import { MessageCard } from './chat/message-card'
|
import { MessageCard } from './chat/message-card'
|
||||||
import { ChatInput } from './chat/message-input'
|
import { ChatInput } from './chat/message-input'
|
||||||
import FieldRenderer from './field-renderer'
|
import FieldRenderer from './field-renderer'
|
||||||
import { ScrollArea } from './ui/scroll-area'
|
|
||||||
import type { Annotation } from '@/ui/types'
|
|
||||||
import { GuestIdentityPopup } from './guest-identity-popup'
|
import { GuestIdentityPopup } from './guest-identity-popup'
|
||||||
|
import { ScrollArea } from './ui/scroll-area'
|
||||||
|
|
||||||
interface FileViewerRightSidebarProps {
|
interface FileViewerRightSidebarProps {
|
||||||
teamId: string
|
teamId: string
|
||||||
@@ -27,6 +27,9 @@ interface FileViewerRightSidebarProps {
|
|||||||
publicFields?: MetadataFieldInfo[]
|
publicFields?: MetadataFieldInfo[]
|
||||||
isPublic?: boolean
|
isPublic?: boolean
|
||||||
shareId?: string
|
shareId?: string
|
||||||
|
currentTime?: number
|
||||||
|
onTyping?: () => void
|
||||||
|
selectedCommentId?: string | null
|
||||||
}
|
}
|
||||||
|
|
||||||
export function FileViewerRightSidebar({
|
export function FileViewerRightSidebar({
|
||||||
@@ -41,6 +44,9 @@ export function FileViewerRightSidebar({
|
|||||||
publicFields,
|
publicFields,
|
||||||
isPublic = false,
|
isPublic = false,
|
||||||
shareId,
|
shareId,
|
||||||
|
currentTime,
|
||||||
|
onTyping,
|
||||||
|
selectedCommentId,
|
||||||
}: FileViewerRightSidebarProps) {
|
}: FileViewerRightSidebarProps) {
|
||||||
const { fields, setFields } = useFieldStore()
|
const { fields, setFields } = useFieldStore()
|
||||||
const queryClient = useQueryClient()
|
const queryClient = useQueryClient()
|
||||||
@@ -53,6 +59,7 @@ export function FileViewerRightSidebar({
|
|||||||
attachmentIds: string[]
|
attachmentIds: string[]
|
||||||
annotations?: Annotation[]
|
annotations?: Annotation[]
|
||||||
replyToId?: string | null
|
replyToId?: string | null
|
||||||
|
second?: number | null
|
||||||
} | null>(null)
|
} | null>(null)
|
||||||
|
|
||||||
const { data: apiFields } = useQuery({
|
const { data: apiFields } = useQuery({
|
||||||
@@ -139,12 +146,14 @@ export function FileViewerRightSidebar({
|
|||||||
annotations,
|
annotations,
|
||||||
replyToId,
|
replyToId,
|
||||||
guestUserId,
|
guestUserId,
|
||||||
|
second,
|
||||||
}: {
|
}: {
|
||||||
text: string
|
text: string
|
||||||
attachmentIds: string[]
|
attachmentIds: string[]
|
||||||
annotations?: Annotation[]
|
annotations?: Annotation[]
|
||||||
replyToId?: string | null
|
replyToId?: string | null
|
||||||
guestUserId?: string
|
guestUserId?: string
|
||||||
|
second?: number | null
|
||||||
}) => {
|
}) => {
|
||||||
if (isPublic) {
|
if (isPublic) {
|
||||||
const password = localStorage.getItem(`share_pwd_${shareId}`) || ''
|
const password = localStorage.getItem(`share_pwd_${shareId}`) || ''
|
||||||
@@ -156,6 +165,7 @@ export function FileViewerRightSidebar({
|
|||||||
attachmentIds: attachmentIds,
|
attachmentIds: attachmentIds,
|
||||||
replyToId: replyToId ?? undefined,
|
replyToId: replyToId ?? undefined,
|
||||||
annotations: annotations,
|
annotations: annotations,
|
||||||
|
second: second ?? undefined,
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
@@ -175,6 +185,7 @@ export function FileViewerRightSidebar({
|
|||||||
attachmentIds: attachmentIds,
|
attachmentIds: attachmentIds,
|
||||||
replyToId: replyToId ?? undefined,
|
replyToId: replyToId ?? undefined,
|
||||||
annotations: annotations,
|
annotations: annotations,
|
||||||
|
second: second ?? undefined,
|
||||||
},
|
},
|
||||||
})
|
})
|
||||||
if (!res.ok) throw new Error('Failed to create comment')
|
if (!res.ok) throw new Error('Failed to create comment')
|
||||||
@@ -225,6 +236,7 @@ export function FileViewerRightSidebar({
|
|||||||
attachmentIds: string[],
|
attachmentIds: string[],
|
||||||
annotations?: Annotation[],
|
annotations?: Annotation[],
|
||||||
replyToId?: string | null,
|
replyToId?: string | null,
|
||||||
|
second?: number | null,
|
||||||
) => {
|
) => {
|
||||||
if (!file?.id) return
|
if (!file?.id) return
|
||||||
|
|
||||||
@@ -240,16 +252,16 @@ export function FileViewerRightSidebar({
|
|||||||
console.log('[handleSendMessage] guestUserId from storage:', guestUserId)
|
console.log('[handleSendMessage] guestUserId from storage:', guestUserId)
|
||||||
if (!guestUserId) {
|
if (!guestUserId) {
|
||||||
console.log('[handleSendMessage] no guest ID, opening popup')
|
console.log('[handleSendMessage] no guest ID, opening popup')
|
||||||
setPendingComment({ text, attachmentIds, annotations, replyToId })
|
setPendingComment({ text, attachmentIds, annotations, replyToId, second })
|
||||||
setIsGuestPopupOpen(true)
|
setIsGuestPopupOpen(true)
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
createComment({ text, attachmentIds, annotations, replyToId, guestUserId })
|
createComment({ text, attachmentIds, annotations, replyToId, guestUserId, second })
|
||||||
} else {
|
} else {
|
||||||
createComment({ text, attachmentIds, annotations, replyToId })
|
createComment({ text, attachmentIds, annotations, replyToId, second })
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
createComment({ text, attachmentIds, annotations, replyToId })
|
createComment({ text, attachmentIds, annotations, replyToId, second })
|
||||||
}
|
}
|
||||||
setReplyingTo(null)
|
setReplyingTo(null)
|
||||||
}
|
}
|
||||||
@@ -319,7 +331,7 @@ export function FileViewerRightSidebar({
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
)}
|
)}
|
||||||
<Tabs defaultValue="comments" className="p-4 flex-1 flex flex-col px-2 min-h-0">
|
<Tabs defaultValue="comments" className="p-1 flex-1 flex flex-col px-2 min-h-0">
|
||||||
<TabsList className="w-full shrink-0">
|
<TabsList className="w-full shrink-0">
|
||||||
<TabsTrigger value="comments" className="flex-1">
|
<TabsTrigger value="comments" className="flex-1">
|
||||||
Comments
|
Comments
|
||||||
@@ -328,11 +340,11 @@ export function FileViewerRightSidebar({
|
|||||||
Fields
|
Fields
|
||||||
</TabsTrigger>
|
</TabsTrigger>
|
||||||
</TabsList>
|
</TabsList>
|
||||||
<TabsContent value="comments" className="flex-1 flex flex-col overflow-hidden min-h-0 mt-4">
|
<TabsContent value="comments" className="flex-1 flex flex-col overflow-hidden min-h-0 mt-0">
|
||||||
<ScrollArea className="flex-1 px-4">
|
<ScrollArea className="flex-1">
|
||||||
<div className="space-y-4">
|
<div className="space-y-4">
|
||||||
{comments.map((comment) => (
|
{comments.map((comment) => (
|
||||||
<div key={comment.id} onClick={() => onCommentSelect?.(comment)}>
|
<div key={comment.id}>
|
||||||
<MessageCard
|
<MessageCard
|
||||||
teamId={teamId}
|
teamId={teamId}
|
||||||
message={comment}
|
message={comment}
|
||||||
@@ -340,19 +352,38 @@ export function FileViewerRightSidebar({
|
|||||||
onReply={setReplyingTo}
|
onReply={setReplyingTo}
|
||||||
onViewAttachment={setViewingAttachment}
|
onViewAttachment={setViewingAttachment}
|
||||||
hasReplies={!!comment.replies?.length}
|
hasReplies={!!comment.replies?.length}
|
||||||
|
frameRate={
|
||||||
|
file?.mediaType?.startsWith('video/')
|
||||||
|
? file?.media?.metadata?.frameRate || 30
|
||||||
|
: undefined
|
||||||
|
}
|
||||||
|
isSelected={selectedCommentId === comment.id}
|
||||||
|
onSelect={() => {
|
||||||
|
onCommentSelect?.(comment)
|
||||||
|
}}
|
||||||
/>
|
/>
|
||||||
{comment.replies?.map((reply, index) => (
|
{comment.replies?.map((reply, index) => (
|
||||||
<MessageCard
|
<div key={reply.id}>
|
||||||
teamId={teamId}
|
<MessageCard
|
||||||
isReply={true}
|
teamId={teamId}
|
||||||
key={reply.id}
|
isReply={true}
|
||||||
message={reply}
|
message={reply}
|
||||||
getUser={getUser}
|
getUser={getUser}
|
||||||
onReply={setReplyingTo}
|
onReply={setReplyingTo}
|
||||||
onViewAttachment={setViewingAttachment}
|
onViewAttachment={setViewingAttachment}
|
||||||
hasReplies={false}
|
hasReplies={false}
|
||||||
isLastReply={index === (comment.replies?.length ?? 0) - 1}
|
isLastReply={index === (comment.replies?.length ?? 0) - 1}
|
||||||
/>
|
frameRate={
|
||||||
|
file?.mediaType?.startsWith('video/')
|
||||||
|
? file?.media?.metadata?.frameRate || 30
|
||||||
|
: undefined
|
||||||
|
}
|
||||||
|
isSelected={selectedCommentId === reply.id}
|
||||||
|
onSelect={() => {
|
||||||
|
onCommentSelect?.(reply)
|
||||||
|
}}
|
||||||
|
/>
|
||||||
|
</div>
|
||||||
))}
|
))}
|
||||||
</div>
|
</div>
|
||||||
))}
|
))}
|
||||||
@@ -375,6 +406,13 @@ export function FileViewerRightSidebar({
|
|||||||
bots={enabledBots}
|
bots={enabledBots}
|
||||||
hideAnnotationControl={hideAnnotationControl}
|
hideAnnotationControl={hideAnnotationControl}
|
||||||
disableMentions={isPublic}
|
disableMentions={isPublic}
|
||||||
|
currentTime={file?.mediaType?.startsWith('video/') ? currentTime : undefined}
|
||||||
|
frameRate={
|
||||||
|
file?.mediaType?.startsWith('video/')
|
||||||
|
? file?.media?.metadata?.frameRate || 30
|
||||||
|
: undefined
|
||||||
|
}
|
||||||
|
onTyping={onTyping}
|
||||||
/>
|
/>
|
||||||
</GuestIdentityPopup>
|
</GuestIdentityPopup>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@@ -16,10 +16,18 @@ type FileViewerProps = {
|
|||||||
videoRef?: RefObject<Player | null>
|
videoRef?: RefObject<Player | null>
|
||||||
onPlay?: () => void
|
onPlay?: () => void
|
||||||
onPause?: () => void
|
onPause?: () => void
|
||||||
|
onTimeUpdate?: (time: number) => void
|
||||||
annotations?: Annotation[]
|
annotations?: Annotation[]
|
||||||
}
|
}
|
||||||
|
|
||||||
export function FileViewer({ file, videoRef, onPlay, onPause, annotations }: FileViewerProps) {
|
export function FileViewer({
|
||||||
|
file,
|
||||||
|
videoRef,
|
||||||
|
onPlay,
|
||||||
|
onPause,
|
||||||
|
onTimeUpdate,
|
||||||
|
annotations,
|
||||||
|
}: FileViewerProps) {
|
||||||
const { width: screenWidth } = useScreenSize()
|
const { width: screenWidth } = useScreenSize()
|
||||||
const isImage = file.mediaType?.startsWith('image/')
|
const isImage = file.mediaType?.startsWith('image/')
|
||||||
const isVideo = file.mediaType?.startsWith('video/')
|
const isVideo = file.mediaType?.startsWith('video/')
|
||||||
@@ -186,6 +194,7 @@ export function FileViewer({ file, videoRef, onPlay, onPause, annotations }: Fil
|
|||||||
playerRef={videoRef}
|
playerRef={videoRef}
|
||||||
onPlay={onPlay}
|
onPlay={onPlay}
|
||||||
onPause={onPause}
|
onPause={onPause}
|
||||||
|
onTimeUpdate={onTimeUpdate}
|
||||||
annotations={displayAnnotations}
|
annotations={displayAnnotations}
|
||||||
/>
|
/>
|
||||||
)}
|
)}
|
||||||
|
|||||||
@@ -89,6 +89,8 @@ export function PublicShareManager({
|
|||||||
const [isRightSidebarCollapsed] = useState(false)
|
const [isRightSidebarCollapsed] = useState(false)
|
||||||
const videoRef = useRef<Player | null>(null)
|
const videoRef = useRef<Player | null>(null)
|
||||||
const [annotations, setAnnotations] = useState<Annotation[]>([])
|
const [annotations, setAnnotations] = useState<Annotation[]>([])
|
||||||
|
const [currentTime, setCurrentTime] = useState(0)
|
||||||
|
const [selectedCommentId, setSelectedCommentId] = useState<string | null>(null)
|
||||||
|
|
||||||
const {
|
const {
|
||||||
data: foldersData,
|
data: foldersData,
|
||||||
@@ -254,19 +256,29 @@ export function PublicShareManager({
|
|||||||
}
|
}
|
||||||
|
|
||||||
const handleCommentSelect = (comment: CommentInfo) => {
|
const handleCommentSelect = (comment: CommentInfo) => {
|
||||||
|
setSelectedCommentId(comment.id || null)
|
||||||
const newAnnotations = comment.annotations as Annotation[]
|
const newAnnotations = comment.annotations as Annotation[]
|
||||||
if (newAnnotations && newAnnotations.length > 0) {
|
if (newAnnotations && newAnnotations.length > 0) {
|
||||||
setAnnotations(newAnnotations)
|
setAnnotations(newAnnotations)
|
||||||
|
} else {
|
||||||
|
setAnnotations([])
|
||||||
|
}
|
||||||
|
|
||||||
|
if (comment.second !== null && comment.second !== undefined) {
|
||||||
|
if (videoRef.current) {
|
||||||
|
videoRef.current.currentTime(comment.second)
|
||||||
|
videoRef.current.pause()
|
||||||
|
}
|
||||||
|
} else if (newAnnotations && newAnnotations.length > 0) {
|
||||||
if (videoRef.current) {
|
if (videoRef.current) {
|
||||||
videoRef.current.pause()
|
videoRef.current.pause()
|
||||||
}
|
}
|
||||||
} else {
|
|
||||||
setAnnotations([])
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
const handlePlay = () => {
|
const handlePlay = () => {
|
||||||
setAnnotations([])
|
setAnnotations([])
|
||||||
|
setSelectedCommentId(null)
|
||||||
}
|
}
|
||||||
|
|
||||||
const { setProjectState, clearProjectState } = useTopNavStore()
|
const { setProjectState, clearProjectState } = useTopNavStore()
|
||||||
@@ -373,6 +385,7 @@ export function PublicShareManager({
|
|||||||
file={viewingFileData}
|
file={viewingFileData}
|
||||||
videoRef={videoRef}
|
videoRef={videoRef}
|
||||||
onPlay={handlePlay}
|
onPlay={handlePlay}
|
||||||
|
onTimeUpdate={setCurrentTime}
|
||||||
annotations={annotations}
|
annotations={annotations}
|
||||||
/>
|
/>
|
||||||
)}
|
)}
|
||||||
@@ -430,6 +443,13 @@ export function PublicShareManager({
|
|||||||
onCommentSelect={handleCommentSelect}
|
onCommentSelect={handleCommentSelect}
|
||||||
isPublic={true}
|
isPublic={true}
|
||||||
shareId={shareInfo.id}
|
shareId={shareInfo.id}
|
||||||
|
currentTime={currentTime}
|
||||||
|
onTyping={() => {
|
||||||
|
if (videoRef.current) {
|
||||||
|
videoRef.current.pause()
|
||||||
|
}
|
||||||
|
}}
|
||||||
|
selectedCommentId={selectedCommentId}
|
||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
</>
|
</>
|
||||||
|
|||||||
@@ -10,6 +10,16 @@ export const formatTime = (seconds: number): string => {
|
|||||||
return `${mm}:${ss}`
|
return `${mm}:${ss}`
|
||||||
}
|
}
|
||||||
|
|
||||||
|
export const formatTimestamp = (seconds: number, fps: number): string => {
|
||||||
|
if (isNaN(seconds)) return '00:00:00:00'
|
||||||
|
const hh = Math.floor(seconds / 3600)
|
||||||
|
const mm = Math.floor((seconds % 3600) / 60)
|
||||||
|
const ss = Math.floor(seconds % 60)
|
||||||
|
const ff = Math.floor((seconds % 1) * fps)
|
||||||
|
|
||||||
|
return `${hh.toString().padStart(2, '0')}:${mm.toString().padStart(2, '0')}:${ss.toString().padStart(2, '0')}:${ff.toString().padStart(2, '0')}`
|
||||||
|
}
|
||||||
|
|
||||||
export const formatFrame = (seconds: number, fps: number): number => {
|
export const formatFrame = (seconds: number, fps: number): number => {
|
||||||
if (isNaN(seconds) || !fps) return 0
|
if (isNaN(seconds) || !fps) return 0
|
||||||
return Math.floor(seconds * fps)
|
return Math.floor(seconds * fps)
|
||||||
|
|||||||
@@ -51,6 +51,7 @@ interface VideoPlayerProps {
|
|||||||
playerRef?: React.RefObject<Player | null>
|
playerRef?: React.RefObject<Player | null>
|
||||||
onPlay?: () => void
|
onPlay?: () => void
|
||||||
onPause?: () => void
|
onPause?: () => void
|
||||||
|
onTimeUpdate?: (time: number) => void
|
||||||
annotations?: Annotation[]
|
annotations?: Annotation[]
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -299,6 +300,7 @@ const VideoPlayer: React.FC<VideoPlayerProps> = ({
|
|||||||
playerRef: passedPlayerRef,
|
playerRef: passedPlayerRef,
|
||||||
onPlay,
|
onPlay,
|
||||||
onPause,
|
onPause,
|
||||||
|
onTimeUpdate,
|
||||||
annotations,
|
annotations,
|
||||||
}) => {
|
}) => {
|
||||||
const localPlayerRef = useRef<Player | null>(null)
|
const localPlayerRef = useRef<Player | null>(null)
|
||||||
@@ -494,6 +496,10 @@ const VideoPlayer: React.FC<VideoPlayerProps> = ({
|
|||||||
duration: duration || prev.duration,
|
duration: duration || prev.duration,
|
||||||
progress: duration > 0 ? (current / duration) * 100 : 0,
|
progress: duration > 0 ? (current / duration) * 100 : 0,
|
||||||
}))
|
}))
|
||||||
|
|
||||||
|
if (onTimeUpdate) {
|
||||||
|
onTimeUpdate(current)
|
||||||
|
}
|
||||||
})
|
})
|
||||||
|
|
||||||
player.on('volumechange', () => {
|
player.on('volumechange', () => {
|
||||||
|
|||||||
@@ -8,10 +8,10 @@ import { useAuthStore } from '@/ui/stores/auth'
|
|||||||
import { useTeamContextStore } from '@/ui/stores/team-context'
|
import { useTeamContextStore } from '@/ui/stores/team-context'
|
||||||
import { useUploadStore } from '@/ui/stores/upload'
|
import { useUploadStore } from '@/ui/stores/upload'
|
||||||
import {
|
import {
|
||||||
createRootRouteWithContext,
|
createRootRouteWithContext,
|
||||||
Outlet,
|
Outlet,
|
||||||
useNavigate,
|
useNavigate,
|
||||||
useRouterState,
|
useRouterState,
|
||||||
} from '@tanstack/react-router'
|
} from '@tanstack/react-router'
|
||||||
import { useEffect } from 'react'
|
import { useEffect } from 'react'
|
||||||
|
|
||||||
|
|||||||
@@ -34,6 +34,8 @@ function FileViewPage() {
|
|||||||
const [leftSidebarWidth, setLeftSidebarWidth] = useState(280)
|
const [leftSidebarWidth, setLeftSidebarWidth] = useState(280)
|
||||||
const [rightSidebarWidth, setRightSidebarWidth] = useState(360)
|
const [rightSidebarWidth, setRightSidebarWidth] = useState(360)
|
||||||
const [annotations, setAnnotations] = useState<Annotation[]>([])
|
const [annotations, setAnnotations] = useState<Annotation[]>([])
|
||||||
|
const [currentTime, setCurrentTime] = useState(0)
|
||||||
|
const [selectedCommentId, setSelectedCommentId] = useState<string | null>(null)
|
||||||
const $patchMetadata = client.api.files[':fileId'].metadata.$patch
|
const $patchMetadata = client.api.files[':fileId'].metadata.$patch
|
||||||
const { mutate: patchMetadata } = useMutation<
|
const { mutate: patchMetadata } = useMutation<
|
||||||
InferResponseType<typeof $patchMetadata>,
|
InferResponseType<typeof $patchMetadata>,
|
||||||
@@ -194,19 +196,29 @@ function FileViewPage() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
const handleCommentSelect = (comment: CommentInfo) => {
|
const handleCommentSelect = (comment: CommentInfo) => {
|
||||||
|
setSelectedCommentId(comment.id || null)
|
||||||
const newAnnotations = comment.annotations as Annotation[]
|
const newAnnotations = comment.annotations as Annotation[]
|
||||||
if (newAnnotations && newAnnotations.length > 0) {
|
if (newAnnotations && newAnnotations.length > 0) {
|
||||||
setAnnotations(newAnnotations)
|
setAnnotations(newAnnotations)
|
||||||
|
} else {
|
||||||
|
setAnnotations([])
|
||||||
|
}
|
||||||
|
|
||||||
|
if (comment.second !== null && comment.second !== undefined) {
|
||||||
|
if (videoRef.current) {
|
||||||
|
videoRef.current.currentTime(comment.second)
|
||||||
|
videoRef.current.pause()
|
||||||
|
}
|
||||||
|
} else if (newAnnotations && newAnnotations.length > 0) {
|
||||||
if (videoRef.current) {
|
if (videoRef.current) {
|
||||||
videoRef.current.pause()
|
videoRef.current.pause()
|
||||||
}
|
}
|
||||||
} else {
|
|
||||||
setAnnotations([])
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
const handlePlay = () => {
|
const handlePlay = () => {
|
||||||
setAnnotations([])
|
setAnnotations([])
|
||||||
|
setSelectedCommentId(null)
|
||||||
}
|
}
|
||||||
|
|
||||||
return (
|
return (
|
||||||
@@ -244,6 +256,7 @@ function FileViewPage() {
|
|||||||
file={fileData as unknown as AssetInfo}
|
file={fileData as unknown as AssetInfo}
|
||||||
videoRef={videoRef}
|
videoRef={videoRef}
|
||||||
onPlay={handlePlay}
|
onPlay={handlePlay}
|
||||||
|
onTimeUpdate={setCurrentTime}
|
||||||
annotations={annotations}
|
annotations={annotations}
|
||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
@@ -251,18 +264,25 @@ function FileViewPage() {
|
|||||||
<>
|
<>
|
||||||
<ResizeHandle
|
<ResizeHandle
|
||||||
onResize={(delta) => {
|
onResize={(delta) => {
|
||||||
setRightSidebarWidth((prev) => Math.max(240, Math.min(600, prev - delta)))
|
setRightSidebarWidth((prev) => Math.max(300, Math.min(600, prev - delta)))
|
||||||
}}
|
}}
|
||||||
className="hidden md:block"
|
className="hidden md:block"
|
||||||
/>
|
/>
|
||||||
<div style={{ width: rightSidebarWidth }} className="flex-shrink-0">
|
<div style={{ width: rightSidebarWidth }} className="flex-shrink-0">
|
||||||
<FileViewerRightSidebar
|
<FileViewerRightSidebar
|
||||||
teamId={teamId!}
|
teamId={teamId}
|
||||||
projectId={projectId}
|
projectId={projectId}
|
||||||
file={fileData as unknown as AssetInfo}
|
file={fileData as unknown as AssetInfo}
|
||||||
onSaveField={handleSaveField}
|
onSaveField={handleSaveField}
|
||||||
members={members}
|
members={members}
|
||||||
onCommentSelect={handleCommentSelect}
|
onCommentSelect={handleCommentSelect}
|
||||||
|
currentTime={currentTime}
|
||||||
|
onTyping={() => {
|
||||||
|
if (videoRef.current) {
|
||||||
|
videoRef.current.pause()
|
||||||
|
}
|
||||||
|
}}
|
||||||
|
selectedCommentId={selectedCommentId}
|
||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
</>
|
</>
|
||||||
|
|||||||
Reference in New Issue
Block a user