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:
parent
92e054569c
commit
808b457503
BIN
src/renderer/src/assets/images/apps/zhihu.png
Normal file
BIN
src/renderer/src/assets/images/apps/zhihu.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 14 KiB |
@ -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 TencentYuanbaoAppLogo from '@renderer/assets/images/apps/yuanbao.webp?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 HailuoModelLogo from '@renderer/assets/images/models/hailuo.png?url'
|
||||
import QwenModelLogo from '@renderer/assets/images/models/qwen.png?url'
|
||||
@ -385,6 +386,13 @@ export const DEFAULT_MIN_APPS: MinAppType[] = [
|
||||
name: 'You',
|
||||
logo: YouLogo,
|
||||
url: 'https://you.com/'
|
||||
},
|
||||
{
|
||||
id: 'zhihu',
|
||||
name: '知乎直答',
|
||||
logo: ZhihuAppLogo,
|
||||
url: 'https://zhida.zhihu.com/',
|
||||
bodered: true
|
||||
}
|
||||
]
|
||||
|
||||
|
||||
@ -1196,12 +1196,10 @@ const migrateConfig = {
|
||||
if (state.minapps) {
|
||||
const you = DEFAULT_MIN_APPS.find((app) => app.id === 'you')
|
||||
const cici = DEFAULT_MIN_APPS.find((app) => app.id === 'cici')
|
||||
if (you) {
|
||||
state.minapps.enabled.push(you)
|
||||
}
|
||||
if (cici) {
|
||||
state.minapps.enabled.push(cici)
|
||||
}
|
||||
const zhihu = DEFAULT_MIN_APPS.find((app) => app.id === 'zhihu')
|
||||
you && state.minapps.enabled.push(you)
|
||||
cici && state.minapps.enabled.push(cici)
|
||||
zhihu && state.minapps.enabled.push(zhihu)
|
||||
}
|
||||
return state
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user