feat: Add Zhihu mini app to the platform

- Added Zhihu (知乎直答) mini app logo
- Updated minapps configuration to include Zhihu mini app
- Modified store migration to enable Zhihu mini app by default
This commit is contained in:
kangfenmao 2025-03-02 20:10:45 +08:00
parent 92e054569c
commit 808b457503
3 changed files with 12 additions and 6 deletions

Binary file not shown.

After

Width:  |  Height:  |  Size: 14 KiB

View File

@ -41,6 +41,7 @@ import XiaoYiAppLogo from '@renderer/assets/images/apps/xiaoyi.webp?url'
import YouLogo from '@renderer/assets/images/apps/you.jpg?url' import YouLogo from '@renderer/assets/images/apps/you.jpg?url'
import TencentYuanbaoAppLogo from '@renderer/assets/images/apps/yuanbao.webp?url' import TencentYuanbaoAppLogo from '@renderer/assets/images/apps/yuanbao.webp?url'
import YuewenAppLogo from '@renderer/assets/images/apps/yuewen.png?url' import YuewenAppLogo from '@renderer/assets/images/apps/yuewen.png?url'
import ZhihuAppLogo from '@renderer/assets/images/apps/zhihu.png?url'
import ClaudeAppLogo from '@renderer/assets/images/models/claude.png?url' import ClaudeAppLogo from '@renderer/assets/images/models/claude.png?url'
import HailuoModelLogo from '@renderer/assets/images/models/hailuo.png?url' import HailuoModelLogo from '@renderer/assets/images/models/hailuo.png?url'
import QwenModelLogo from '@renderer/assets/images/models/qwen.png?url' import QwenModelLogo from '@renderer/assets/images/models/qwen.png?url'
@ -385,6 +386,13 @@ export const DEFAULT_MIN_APPS: MinAppType[] = [
name: 'You', name: 'You',
logo: YouLogo, logo: YouLogo,
url: 'https://you.com/' url: 'https://you.com/'
},
{
id: 'zhihu',
name: '知乎直答',
logo: ZhihuAppLogo,
url: 'https://zhida.zhihu.com/',
bodered: true
} }
] ]

View File

@ -1196,12 +1196,10 @@ const migrateConfig = {
if (state.minapps) { if (state.minapps) {
const you = DEFAULT_MIN_APPS.find((app) => app.id === 'you') const you = DEFAULT_MIN_APPS.find((app) => app.id === 'you')
const cici = DEFAULT_MIN_APPS.find((app) => app.id === 'cici') const cici = DEFAULT_MIN_APPS.find((app) => app.id === 'cici')
if (you) { const zhihu = DEFAULT_MIN_APPS.find((app) => app.id === 'zhihu')
state.minapps.enabled.push(you) you && state.minapps.enabled.push(you)
} cici && state.minapps.enabled.push(cici)
if (cici) { zhihu && state.minapps.enabled.push(zhihu)
state.minapps.enabled.push(cici)
}
} }
return state return state
} }