mirror of
https://github.com/NapNeko/NapCatQQ.git
synced 2026-02-04 06:31:13 +00:00
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.
This commit is contained in:
parent
71f8504849
commit
b3399b07ad
@ -340,7 +340,7 @@ export async function applyPendingUpdates (webUiPathWrapper: NapCatPathWrapper,
|
|||||||
const configPath = path.join(webUiPathWrapper.configPath, 'napcat-update.json');
|
const configPath = path.join(webUiPathWrapper.configPath, 'napcat-update.json');
|
||||||
|
|
||||||
if (!fs.existsSync(configPath)) {
|
if (!fs.existsSync(configPath)) {
|
||||||
logger.log('[NapCat Update] No pending updates found');
|
//logger.log('[NapCat Update] No pending updates found');
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@ -41,7 +41,7 @@ const PluginStoreCard: React.FC<PluginStoreCardProps> = ({
|
|||||||
return {
|
return {
|
||||||
text: '更新',
|
text: '更新',
|
||||||
icon: <IoMdDownload size={16} />,
|
icon: <IoMdDownload size={16} />,
|
||||||
color: 'success' as const,
|
color: 'default' as const,
|
||||||
};
|
};
|
||||||
default:
|
default:
|
||||||
return {
|
return {
|
||||||
|
|||||||
@ -260,14 +260,14 @@ const NewVersionTip = (props: NewVersionTipProps) => {
|
|||||||
<div className="cursor-pointer flex items-center justify-center" onClick={updateStatus === 'updating' ? undefined : showUpdateDialog}>
|
<div className="cursor-pointer flex items-center justify-center" onClick={updateStatus === 'updating' ? undefined : showUpdateDialog}>
|
||||||
<Chip
|
<Chip
|
||||||
size="sm"
|
size="sm"
|
||||||
color="danger"
|
color="primary"
|
||||||
variant="flat"
|
variant="flat"
|
||||||
classNames={{
|
classNames={{
|
||||||
content: "font-bold text-[10px] px-1 flex items-center justify-center",
|
content: "font-bold text-[10px] px-1 flex items-center justify-center",
|
||||||
base: "h-5 min-h-5 min-w-[42px]"
|
base: "h-5 min-h-5 min-w-[42px]"
|
||||||
}}
|
}}
|
||||||
>
|
>
|
||||||
{updateStatus === 'updating' ? <Spinner size="sm" color="danger" classNames={{ wrapper: "w-3 h-3" }} /> : 'New'}
|
{updateStatus === 'updating' ? <Spinner size="sm" color="primary" classNames={{ wrapper: "w-3 h-3" }} /> : 'New'}
|
||||||
</Chip>
|
</Chip>
|
||||||
</div>
|
</div>
|
||||||
</Tooltip>
|
</Tooltip>
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user