mirror of
https://github.com/APIParkLab/APIPark.git
synced 2026-06-14 20:41:15 +08:00
fet
This commit is contained in:
@@ -114,17 +114,17 @@ const AIFlowChart = () => {
|
||||
title: 'API Keys',
|
||||
keys: model.keys.map((key, index) => ({
|
||||
id: key.id,
|
||||
status: key.status === 'normal' ? 'enabled' : 'disable',
|
||||
status: key.status,
|
||||
priority: index + 1
|
||||
}))
|
||||
}
|
||||
}))
|
||||
]
|
||||
|
||||
const newEdges = [
|
||||
const newEdges: any = [
|
||||
...modelData.map((model) => ({
|
||||
id: `service-${model.id}`,
|
||||
source: 'service',
|
||||
source: 'apiService',
|
||||
target: model.id,
|
||||
label: `apis(${model.api_count})`,
|
||||
style: { stroke: '#ddd', cursor: 'pointer' },
|
||||
|
||||
@@ -16,7 +16,6 @@ export const KeyStatusNode: React.FC<{ data: KeyStatusNodeData }> = ({ data }) =
|
||||
const { title, keys = [] } = data
|
||||
const totalKeys = keys.length
|
||||
const keyWidth = totalKeys > 5 ? `calc((100% - ${(totalKeys - 1) * 0.25}rem) / ${totalKeys})` : KEY_SIZE
|
||||
|
||||
return (
|
||||
<div
|
||||
className="relative p-4 bg-white rounded-lg shadow-sm node-card nodrag"
|
||||
|
||||
Reference in New Issue
Block a user