From b3399b07ad51b5e110cc477a04c87c84faec81d2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=89=8B=E7=93=9C=E4=B8=80=E5=8D=81=E9=9B=AA?= Date: Sat, 31 Jan 2026 15:15:01 +0800 Subject: [PATCH] Silence update log; change update UI colors Comment out the noisy '[NapCat Update] No pending updates found' log in UpdateNapCat.ts. Update frontend color choices: switch the plugin store action color from 'success' to 'default', and change the NewVersion chip and spinner from 'danger' to 'primary' in system_info.tsx. These tweaks reduce alarming red styling and quiet an unnecessary backend log. --- packages/napcat-webui-backend/src/api/UpdateNapCat.ts | 2 +- .../src/components/display_card/plugin_store_card.tsx | 2 +- packages/napcat-webui-frontend/src/components/system_info.tsx | 4 ++-- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/packages/napcat-webui-backend/src/api/UpdateNapCat.ts b/packages/napcat-webui-backend/src/api/UpdateNapCat.ts index 43126080..274d4fc5 100644 --- a/packages/napcat-webui-backend/src/api/UpdateNapCat.ts +++ b/packages/napcat-webui-backend/src/api/UpdateNapCat.ts @@ -340,7 +340,7 @@ export async function applyPendingUpdates (webUiPathWrapper: NapCatPathWrapper, const configPath = path.join(webUiPathWrapper.configPath, 'napcat-update.json'); if (!fs.existsSync(configPath)) { - logger.log('[NapCat Update] No pending updates found'); + //logger.log('[NapCat Update] No pending updates found'); return; } diff --git a/packages/napcat-webui-frontend/src/components/display_card/plugin_store_card.tsx b/packages/napcat-webui-frontend/src/components/display_card/plugin_store_card.tsx index 1394fa2d..b758a9e5 100644 --- a/packages/napcat-webui-frontend/src/components/display_card/plugin_store_card.tsx +++ b/packages/napcat-webui-frontend/src/components/display_card/plugin_store_card.tsx @@ -41,7 +41,7 @@ const PluginStoreCard: React.FC = ({ return { text: '更新', icon: , - color: 'success' as const, + color: 'default' as const, }; default: return { diff --git a/packages/napcat-webui-frontend/src/components/system_info.tsx b/packages/napcat-webui-frontend/src/components/system_info.tsx index bfe509fc..ea79b3b6 100644 --- a/packages/napcat-webui-frontend/src/components/system_info.tsx +++ b/packages/napcat-webui-frontend/src/components/system_info.tsx @@ -260,14 +260,14 @@ const NewVersionTip = (props: NewVersionTipProps) => {
- {updateStatus === 'updating' ? : 'New'} + {updateStatus === 'updating' ? : 'New'}