Chore: frontend infrastructure upgrade (#16420)

Co-authored-by: NFish <douxc512@gmail.com>
Co-authored-by: zxhlyh <jasonapring2015@outlook.com>
Co-authored-by: twwu <twwu@dify.ai>
Co-authored-by: jZonG <jzongcode@gmail.com>
This commit is contained in:
Joel
2025-03-21 17:41:03 +08:00
committed by GitHub
parent e61415223b
commit 7709d9df20
1435 changed files with 13372 additions and 11612 deletions

View File

@@ -22,7 +22,7 @@ const MarkdownButton = ({ node }: any) => {
return <Button
variant={variant}
size={size}
className={cn('!h-8 !px-3 select-none')}
className={cn('!h-8 select-none !px-3')}
onClick={() => {
if (is_valid_url(link)) {
window.open(link, '_blank')

View File

@@ -82,7 +82,7 @@ const MarkdownForm = ({ node }: any) => {
<label
key={index}
htmlFor={child.properties.for}
className="my-2 system-md-semibold text-text-secondary"
className="system-md-semibold my-2 text-text-secondary"
>
{child.children[0]?.value || ''}
</label>
@@ -132,7 +132,7 @@ const MarkdownForm = ({ node }: any) => {
}
if (child.properties.type === SUPPORTED_TYPES.CHECKBOX) {
return (
<div className='mt-2 flex items-center h-6 space-x-2' key={index}>
<div className='mt-2 flex h-6 items-center space-x-2' key={index}>
<Checkbox
key={index}
checked={formValues[child.properties.name]}

View File

@@ -73,10 +73,10 @@ export const ThinkBlock = ({ children, ...props }: any) => {
return (
<details {...(!isComplete && { open: true })} className="group">
<summary className="text-gray-500 font-bold list-none pl-2 flex items-center cursor-pointer select-none whitespace-nowrap">
<div className="shrink-0 flex items-center">
<summary className="flex cursor-pointer select-none list-none items-center whitespace-nowrap pl-2 font-bold text-gray-500">
<div className="flex shrink-0 items-center">
<svg
className="w-3 h-3 mr-2 transition-transform duration-500 group-open:rotate-90"
className="mr-2 h-3 w-3 transition-transform duration-500 group-open:rotate-90"
fill="none"
stroke="currentColor"
viewBox="0 0 24 24"
@@ -91,7 +91,7 @@ export const ThinkBlock = ({ children, ...props }: any) => {
{isComplete ? `${t('common.chat.thought')}(${elapsedTime.toFixed(1)}s)` : `${t('common.chat.thinking')}(${elapsedTime.toFixed(1)}s)`}
</div>
</summary>
<div className="text-gray-500 p-3 ml-2 bg-gray-50 border-l border-gray-300">
<div className="ml-2 border-l border-gray-300 bg-gray-50 p-3 text-gray-500">
{displayContent}
</div>
</details>