mirror of
https://github.com/jxxghp/MoviePilot-Frontend.git
synced 2026-08-28 19:47:49 +08:00
fix: 使用钉钉官方通知图标
This commit is contained in:
Binary file not shown.
|
After Width: | Height: | Size: 5.2 KiB |
@@ -83,7 +83,7 @@ const getIcon = computed(() => {
|
||||
case 'discord':
|
||||
return getLogoUrl('discord')
|
||||
case 'dingtalk':
|
||||
return getLogoUrl('notification')
|
||||
return getLogoUrl('dingtalk')
|
||||
case 'webpush':
|
||||
return getLogoUrl('chrome')
|
||||
default:
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import { getDisplayImageUrl, getProxyImageUrl } from '@/utils/imageUtils'
|
||||
import { getDisplayImageUrl, getLogoUrl, getProxyImageUrl, hasLogo } from '@/utils/imageUtils'
|
||||
import { describe, expect, it } from 'vitest'
|
||||
|
||||
describe('image URL helpers', () => {
|
||||
@@ -23,4 +23,9 @@ describe('image URL helpers', () => {
|
||||
expect(getProxyImageUrl('data:image/png;base64,abc', { useCache: true })).toBe('data:image/png;base64,abc')
|
||||
expect(getProxyImageUrl('', { useCache: true })).toBe('')
|
||||
})
|
||||
|
||||
it('exposes the official DingTalk logo for notification channels', () => {
|
||||
expect(hasLogo('dingtalk')).toBe(true)
|
||||
expect(getLogoUrl('dingtalk')).toContain('dingtalk')
|
||||
})
|
||||
})
|
||||
|
||||
@@ -19,6 +19,7 @@ import clawbotLogo from '@/assets/images/logos/clawbot.png'
|
||||
import telegramLogo from '@/assets/images/logos/telegram.webp'
|
||||
import slackLogo from '@/assets/images/logos/slack.webp'
|
||||
import discordLogo from '@/assets/images/logos/discord.png'
|
||||
import dingtalkLogo from '@/assets/images/logos/dingtalk.jpg'
|
||||
import synologychatLogo from '@/assets/images/logos/synologychat.png'
|
||||
import vocechatLogo from '@/assets/images/logos/vocechat.png'
|
||||
import downloaderLogo from '@/assets/images/logos/downloader.png'
|
||||
@@ -53,6 +54,7 @@ const logoMap: Record<string, string> = {
|
||||
telegram: telegramLogo,
|
||||
slack: slackLogo,
|
||||
discord: discordLogo,
|
||||
dingtalk: dingtalkLogo,
|
||||
synologychat: synologychatLogo,
|
||||
vocechat: vocechatLogo,
|
||||
downloader: downloaderLogo,
|
||||
|
||||
Reference in New Issue
Block a user