Dockerfile打包使用pnpm

next.js打包忽略eslint和typescript报错导致打包失败的问题
ant-design引入兼容包,以兼容React19
eslint配置文件由json更换成js
反馈内容由写死的改为获取当前的conversationid会话ID,反馈的用户名称username从cookie里获取
反馈弹窗弹出时使用Promise异步等待如果没有点击确定,则不传递给dify已反馈成功请求
This commit is contained in:
2025-07-14 16:26:45 +08:00
parent d1a47297bf
commit d2d96ab315
18 changed files with 201 additions and 128 deletions
+4 -3
View File
@@ -75,8 +75,9 @@ const Operation: FC<OperationProps> = ({
if (!config?.supportFeedback || !onFeedback)
return
await onFeedback?.(id, { rating })
setLocalFeedback({ rating })
if (await onFeedback?.(id, { rating })) {
setLocalFeedback({ rating })
}
}
const operationWidth = useMemo(() => {
@@ -138,7 +139,7 @@ const Operation: FC<OperationProps> = ({
)}
</div>
)}
{/*
{/*
{(!isOpeningStatement && config?.supportAnnotation && config.annotation_reply?.enabled) && (
<AnnotationCtrlBtn
appId={config?.appId || ''}
+1 -1
View File
@@ -60,7 +60,7 @@ export type ChatProps = {
onAnnotationAdded?: (annotationId: string, authorName: string, question: string, answer: string, index: number) => void
onAnnotationRemoved?: (index: number) => void
chatNode?: ReactNode
onFeedback?: (messageId: string, feedback: Feedback) => void
onFeedback?: (messageId: string, feedback: Feedback) => Promise<boolean>
chatAnswerContainerInner?: string
hideProcessDetail?: boolean
hideLogModal?: boolean