From 795d10d8c91e5cb006cd05eaf9f8d3b714373fe4 Mon Sep 17 00:00:00 2001 From: digua Date: Fri, 22 May 2026 19:25:00 +0800 Subject: [PATCH] feat(changelog): add icon and i18n for ci change type --- apps/cli/package.json | 6 ------ src/i18n/locales/en-US/home.json | 3 ++- src/i18n/locales/ja-JP/home.json | 3 ++- src/i18n/locales/zh-CN/home.json | 3 ++- src/i18n/locales/zh-TW/home.json | 3 ++- src/pages/home/components/ChangelogModal.vue | 1 + src/pages/home/components/changelogTypeConfig.ts | 5 +++++ 7 files changed, 14 insertions(+), 10 deletions(-) diff --git a/apps/cli/package.json b/apps/cli/package.json index 21791957..0bfa55d4 100644 --- a/apps/cli/package.json +++ b/apps/cli/package.json @@ -29,12 +29,6 @@ "chatlab", "chat", "analysis", - "wechat", - "qq", - "telegram", - "whatsapp", - "discord", - "mcp", "cli" ], "scripts": { diff --git a/src/i18n/locales/en-US/home.json b/src/i18n/locales/en-US/home.json index e6e873e7..49f66170 100644 --- a/src/i18n/locales/en-US/home.json +++ b/src/i18n/locales/en-US/home.json @@ -135,7 +135,8 @@ "refactor": "Refactors", "docs": "Docs", "chore": "Other", - "style": "Style" + "style": "Style", + "ci": "CI" } } } diff --git a/src/i18n/locales/ja-JP/home.json b/src/i18n/locales/ja-JP/home.json index 2aa15777..542919fa 100644 --- a/src/i18n/locales/ja-JP/home.json +++ b/src/i18n/locales/ja-JP/home.json @@ -135,7 +135,8 @@ "refactor": "リファクタリング", "docs": "ドキュメント更新", "chore": "その他の改善", - "style": "スタイル改善" + "style": "スタイル改善", + "ci": "CI/ビルド" } } } diff --git a/src/i18n/locales/zh-CN/home.json b/src/i18n/locales/zh-CN/home.json index 7640f8ae..90ea7a55 100644 --- a/src/i18n/locales/zh-CN/home.json +++ b/src/i18n/locales/zh-CN/home.json @@ -135,7 +135,8 @@ "refactor": "重构优化", "docs": "文档更新", "chore": "其他优化", - "style": "样式优化" + "style": "样式优化", + "ci": "CI/构建" } } } diff --git a/src/i18n/locales/zh-TW/home.json b/src/i18n/locales/zh-TW/home.json index 3d525122..2701f96e 100644 --- a/src/i18n/locales/zh-TW/home.json +++ b/src/i18n/locales/zh-TW/home.json @@ -135,7 +135,8 @@ "refactor": "重構優化", "docs": "文件更新", "chore": "其他優化", - "style": "樣式優化" + "style": "樣式優化", + "ci": "CI/建置" } } } diff --git a/src/pages/home/components/ChangelogModal.vue b/src/pages/home/components/ChangelogModal.vue index b65d85c4..75acbb9f 100644 --- a/src/pages/home/components/ChangelogModal.vue +++ b/src/pages/home/components/ChangelogModal.vue @@ -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 } diff --git a/src/pages/home/components/changelogTypeConfig.ts b/src/pages/home/components/changelogTypeConfig.ts index 62b34d9b..629b5916 100644 --- a/src/pages/home/components/changelogTypeConfig.ts +++ b/src/pages/home/components/changelogTypeConfig.ts @@ -38,6 +38,11 @@ export const CHANGELOG_TYPE_CONFIG: Record = { 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 {