1. tag support custom color
2. support 403 ban
3. add .dockerignore
This commit is contained in:
linzhaoming
2024-06-17 17:40:39 +08:00
parent b173e1e4ce
commit f04a81adf2
5 changed files with 27 additions and 4 deletions

View File

@@ -48,6 +48,13 @@ function renderType(type) {
}
type2label[0] = { value: 0, text: '未知类型', color: 'grey' };
}
const backgroundColor = type2label[type]?.backgroundColor
const textColor = type2label[type]?.textColor
if (backgroundColor && textColor) {
return <Tag size='large' style={{backgroundColor: backgroundColor, color: textColor}}>
{type2label[type]?.text}
</Tag>
}
return (
<Tag size='large' color={type2label[type]?.color}>
{type2label[type]?.text}

View File

@@ -97,8 +97,21 @@ export const CHANNEL_OPTIONS = [
{ key: 23, text: '腾讯混元', value: 23, color: 'teal', label: '腾讯混元' },
{ key: 31, text: '零一万物', value: 31, color: 'green', label: '零一万物' },
{ key: 35, text: 'MiniMax', value: 35, color: 'green', label: 'MiniMax' },
{ key: 36, text: 'ScholarAI', value: 36, color: 'green', label: 'ScholarAI' },
{ key: 37, text: '豆包', value: 37, color: 'green', label: '豆包' },
{
key: 36,
text: 'ScholarAI',
value: 36,
backgroundColor: 'rgb(0, 70, 77)',
textColor: 'white',
label: 'ScholarAI'
},
{
key: 37,
text: '豆包',
value: 37,
color: 'blue',
label: '豆包'
},
{ key: 8, text: '自定义渠道', value: 8, color: 'pink', label: '自定义渠道' },
{
key: 22,