feat: add challenge and red-blue competitions across API and web
This commit is contained in:
parent
f5161d9add
commit
8fd3c4bb64
77 changed files with 5355 additions and 24 deletions
|
|
@ -66,6 +66,9 @@ const getIcon = (type: BlockEnum, className: string) => {
|
|||
[BlockEnum.KnowledgeBase]: <KnowledgeBase className={className} />,
|
||||
[BlockEnum.DataSource]: <Datasource className={className} />,
|
||||
[BlockEnum.DataSourceEmpty]: <></>,
|
||||
[BlockEnum.ChallengeEvaluator]: <IfElse className={className} />,
|
||||
[BlockEnum.JudgingLLM]: <Llm className={className} />,
|
||||
[BlockEnum.TeamChallenge]: <Agent className={className} />,
|
||||
}[type]
|
||||
}
|
||||
const ICON_CONTAINER_BG_COLOR_MAP: Record<string, string> = {
|
||||
|
|
@ -92,6 +95,9 @@ const ICON_CONTAINER_BG_COLOR_MAP: Record<string, string> = {
|
|||
[BlockEnum.Agent]: 'bg-util-colors-indigo-indigo-500',
|
||||
[BlockEnum.KnowledgeBase]: 'bg-util-colors-warning-warning-500',
|
||||
[BlockEnum.DataSource]: 'bg-components-icon-bg-midnight-solid',
|
||||
[BlockEnum.ChallengeEvaluator]: 'bg-util-colors-blue-blue-500',
|
||||
[BlockEnum.JudgingLLM]: 'bg-util-colors-indigo-indigo-500',
|
||||
[BlockEnum.TeamChallenge]: 'bg-util-colors-green-green-500',
|
||||
}
|
||||
const BlockIcon: FC<BlockIconProps> = ({
|
||||
type,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue