feat: Add 3MinTop to default mini apps

This commit is contained in:
shellming 2025-02-04 16:51:28 +08:00 committed by 亢奋猫
parent 9acae0a728
commit a27150c154
3 changed files with 18 additions and 0 deletions

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.8 KiB

View File

@ -1,3 +1,4 @@
import ThreeMinTopAppLogo from '@renderer/assets/images/apps/3mintop.png?url'
import BaiduAiAppLogo from '@renderer/assets/images/apps/baidu-ai.png?url'
import BaicuanAppLogo from '@renderer/assets/images/apps/baixiaoying.webp?url'
import BoltAppLogo from '@renderer/assets/images/apps/bolt.svg?url'
@ -268,6 +269,13 @@ export const DEFAULT_MIN_APPS: MinAppType[] = [
logo: FlowithAppLogo,
url: 'https://www.flowith.io/',
bodered: true
},
{
id: '3mintop',
name: '3MinTop',
logo: ThreeMinTopAppLogo,
url: 'https://3min.top',
bodered: false
}
]

View File

@ -898,6 +898,16 @@ const migrateConfig = {
})
state.settings.translateModelPrompt = TRANSLATE_PROMPT
return state
},
'63': (state: RootState) => {
if (state.minapps) {
const mintop = DEFAULT_MIN_APPS.find((app) => app.id === '3mintop')
if (mintop) {
state.minapps.enabled.push(mintop)
}
}
removeMiniAppIconsFromState(state)
return state
}
}