Merge branch 'main' into feat/model-auth

This commit is contained in:
zxhlyh
2025-08-13 10:12:44 +08:00
172 changed files with 8190 additions and 705 deletions

View File

@ -70,6 +70,7 @@ export default function LanguagePage() {
items={languages.filter(item => item.supported)}
onSelect={item => handleSelectLanguage(item)}
disabled={editing}
notClearable={true}
/>
</div>
<div className='mb-8'>
@ -79,6 +80,7 @@ export default function LanguagePage() {
items={timezones}
onSelect={item => handleSelectTimezone(item)}
disabled={editing}
notClearable={true}
/>
</div>
</>

View File

@ -1,6 +1,7 @@
import type { FC } from 'react'
import { useEffect, useRef, useState } from 'react'
import type { ModelParameterRule } from '../declarations'
import { useLanguage } from '../hooks'
import { isNullOrUndefined } from '../utils'
import cn from '@/utils/classnames'
import Switch from '@/app/components/base/switch'
@ -26,6 +27,7 @@ const ParameterItem: FC<ParameterItemProps> = ({
onSwitch,
isInWorkflow,
}) => {
const language = useLanguage()
const [localValue, setLocalValue] = useState(value)
const numberInputRef = useRef<HTMLInputElement>(null)