fix(web): i18n update
This commit is contained in:
@@ -3096,7 +3096,7 @@ Memory Bear: After the rebellion, regional warlordism intensified for several re
|
|||||||
editPackage: 'Edit Package',
|
editPackage: 'Edit Package',
|
||||||
|
|
||||||
viewDetail: 'View full package details',
|
viewDetail: 'View full package details',
|
||||||
noLimit: 'Unlimited',
|
noLimit: 'Infinite',
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
|
|||||||
@@ -3060,7 +3060,7 @@ export const zh = {
|
|||||||
editPackage: '编辑套餐',
|
editPackage: '编辑套餐',
|
||||||
|
|
||||||
viewDetail: '查看完整套餐详情',
|
viewDetail: '查看完整套餐详情',
|
||||||
noLimit: '不限制',
|
noLimit: '无限',
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
@@ -62,7 +62,6 @@ const Agent = forwardRef<AgentRef, { onFeaturesLoad?: (features: FeaturesConfigF
|
|||||||
const { id } = useParams();
|
const { id } = useParams();
|
||||||
const { message } = App.useApp()
|
const { message } = App.useApp()
|
||||||
const [form] = Form.useForm()
|
const [form] = Form.useForm()
|
||||||
const [loading, setLoading] = useState(false)
|
|
||||||
const [data, setData] = useState<Config | null>(null);
|
const [data, setData] = useState<Config | null>(null);
|
||||||
const modelConfigModalRef = useRef<ModelConfigModalRef>(null)
|
const modelConfigModalRef = useRef<ModelConfigModalRef>(null)
|
||||||
const [modelList, setModelList] = useState<Model[]>([])
|
const [modelList, setModelList] = useState<Model[]>([])
|
||||||
@@ -94,7 +93,6 @@ const Agent = forwardRef<AgentRef, { onFeaturesLoad?: (features: FeaturesConfigF
|
|||||||
* Fetch agent configuration data
|
* Fetch agent configuration data
|
||||||
*/
|
*/
|
||||||
const getData = () => {
|
const getData = () => {
|
||||||
setLoading(true)
|
|
||||||
getApplicationConfig(id as string).then(res => {
|
getApplicationConfig(id as string).then(res => {
|
||||||
const response = res as Config
|
const response = res as Config
|
||||||
const { skills, variables } = response
|
const { skills, variables } = response
|
||||||
@@ -127,8 +125,6 @@ const Agent = forwardRef<AgentRef, { onFeaturesLoad?: (features: FeaturesConfigF
|
|||||||
tools: allTools
|
tools: allTools
|
||||||
})
|
})
|
||||||
onFeaturesLoad?.(response.features)
|
onFeaturesLoad?.(response.features)
|
||||||
}).finally(() => {
|
|
||||||
setLoading(false)
|
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -421,7 +417,6 @@ const Agent = forwardRef<AgentRef, { onFeaturesLoad?: (features: FeaturesConfigF
|
|||||||
console.log('agent values', values)
|
console.log('agent values', values)
|
||||||
return (
|
return (
|
||||||
<>
|
<>
|
||||||
{loading && <Spin fullscreen></Spin>}
|
|
||||||
<Row className="rb:h-full!" gutter={12}>
|
<Row className="rb:h-full!" gutter={12}>
|
||||||
<Col span={12} className="rb:h-full!">
|
<Col span={12} className="rb:h-full!">
|
||||||
<Form form={form}>
|
<Form form={form}>
|
||||||
|
|||||||
@@ -451,11 +451,11 @@ export const useWorkflowGraph = ({
|
|||||||
graphRef.current.addEdges(edgeList.filter(vo => vo !== null))
|
graphRef.current.addEdges(edgeList.filter(vo => vo !== null))
|
||||||
}
|
}
|
||||||
|
|
||||||
|
graphRef.current.centerContent()
|
||||||
// Initialize after completion, display nodes in visible area
|
// Initialize after completion, display nodes in visible area
|
||||||
if (nodes.length > 0 || edges.length > 0) {
|
if (nodes.length > 0 || edges.length > 0) {
|
||||||
setTimeout(() => {
|
setTimeout(() => {
|
||||||
if (graphRef.current) {
|
if (graphRef.current) {
|
||||||
graphRef.current.centerContent()
|
|
||||||
graphRef.current.getNodes().forEach(node => {
|
graphRef.current.getNodes().forEach(node => {
|
||||||
if (!node.getData()?.cycle) node.toFront();
|
if (!node.getData()?.cycle) node.toFront();
|
||||||
});
|
});
|
||||||
|
|||||||
Reference in New Issue
Block a user