mirror of
https://github.com/hellodigua/ChatLab.git
synced 2026-10-25 17:54:34 +08:00
feat(changelog): add icon and i18n for ci change type
This commit is contained in:
1 parent
2d342865ff
commit
795d10d8c9
7 files changed
+14
-10
No files matched your search
@@ -29,12 +29,6 @@
|
||||
"chatlab",
|
||||
"chat",
|
||||
"analysis",
|
||||
"wechat",
|
||||
"qq",
|
||||
"telegram",
|
||||
"whatsapp",
|
||||
"discord",
|
||||
"mcp",
|
||||
"cli"
|
||||
],
|
||||
"scripts": {
|
||||
|
||||
@@ -135,7 +135,8 @@
|
||||
"refactor": "Refactors",
|
||||
"docs": "Docs",
|
||||
"chore": "Other",
|
||||
"style": "Style"
|
||||
"style": "Style",
|
||||
"ci": "CI"
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -135,7 +135,8 @@
|
||||
"refactor": "リファクタリング",
|
||||
"docs": "ドキュメント更新",
|
||||
"chore": "その他の改善",
|
||||
"style": "スタイル改善"
|
||||
"style": "スタイル改善",
|
||||
"ci": "CI/ビルド"
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -135,7 +135,8 @@
|
||||
"refactor": "重构优化",
|
||||
"docs": "文档更新",
|
||||
"chore": "其他优化",
|
||||
"style": "样式优化"
|
||||
"style": "样式优化",
|
||||
"ci": "CI/构建"
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -135,7 +135,8 @@
|
||||
"refactor": "重構優化",
|
||||
"docs": "文件更新",
|
||||
"chore": "其他優化",
|
||||
"style": "樣式優化"
|
||||
"style": "樣式優化",
|
||||
"ci": "CI/建置"
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -136,6 +136,7 @@ function getChangeTypeLabel(type: string) {
|
||||
docs: t('home.changelog.types.docs'),
|
||||
chore: t('home.changelog.types.chore'),
|
||||
style: t('home.changelog.types.style'),
|
||||
ci: t('home.changelog.types.ci'),
|
||||
}
|
||||
return labels[type] || type
|
||||
}
|
||||
|
||||
@@ -38,6 +38,11 @@ export const CHANGELOG_TYPE_CONFIG: Record<string, ChangeTypeConfigItem> = {
|
||||
color: 'text-blue-500',
|
||||
bgColor: 'bg-blue-100 dark:bg-blue-900/30',
|
||||
},
|
||||
ci: {
|
||||
icon: 'i-heroicons-command-line',
|
||||
color: 'text-teal-500',
|
||||
bgColor: 'bg-teal-100 dark:bg-teal-900/30',
|
||||
},
|
||||
}
|
||||
|
||||
export function getChangeTypeConfig(type: string): ChangeTypeConfigItem | undefined {
|
||||
|
||||
Reference in new issue
Block a user