mirror of
https://github.com/Wei-Shaw/sub2api.git
synced 2026-11-01 16:29:29 +00:00
feat(branding): 启用新版 SVG logo 并在 README 头部展示
- 新增 assets/logo.svg 作为项目默认 logo(512x512 深色圆角底 + 渐变 S 标) - 前端 favicon 与组件兜底 logo 由 logo.png 切换为 frontend/public/logo.svg - 三个 README(EN/CN/JA)头部新增居中 logo 与标题布局 - 删除旧 logo.png 及多余的 lobe 变体 SVG
This commit is contained in:
@@ -3,7 +3,7 @@ import { updateFavicon } from '@/utils/branding'
|
||||
|
||||
describe('updateFavicon', () => {
|
||||
beforeEach(() => {
|
||||
document.head.innerHTML = '<link rel="icon" href="/logo.png">'
|
||||
document.head.innerHTML = '<link rel="icon" href="/logo.svg">'
|
||||
})
|
||||
|
||||
it('replaces the default favicon with the configured logo', () => {
|
||||
@@ -17,6 +17,6 @@ describe('updateFavicon', () => {
|
||||
updateFavicon('javascript:alert(1)')
|
||||
|
||||
const link = document.querySelector<HTMLLinkElement>('link[rel="icon"]')
|
||||
expect(link?.getAttribute('href')).toBe('/logo.png')
|
||||
expect(link?.getAttribute('href')).toBe('/logo.svg')
|
||||
})
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user