chore(version): 0.9.12
This commit is contained in:
parent
749353f460
commit
798a6e8c3e
@ -83,6 +83,7 @@ releaseInfo:
|
|||||||
新增快捷助手弹窗
|
新增快捷助手弹窗
|
||||||
翻译默认使用流输出
|
翻译默认使用流输出
|
||||||
小程序弹窗顶部增加固定按钮 @ousugo
|
小程序弹窗顶部增加固定按钮 @ousugo
|
||||||
|
新增清除消息、清除上下文快捷键 @cljnnn
|
||||||
Gemini 安全设置更新 @magicdmer
|
Gemini 安全设置更新 @magicdmer
|
||||||
智能体页面性能优化 @magicdmer
|
智能体页面性能优化 @magicdmer
|
||||||
修复 WebDAV 不能自动备份问题
|
修复 WebDAV 不能自动备份问题
|
||||||
|
|||||||
@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "CherryStudio",
|
"name": "CherryStudio",
|
||||||
"version": "0.9.11",
|
"version": "0.9.12",
|
||||||
"private": true,
|
"private": true,
|
||||||
"description": "A powerful AI assistant for producer.",
|
"description": "A powerful AI assistant for producer.",
|
||||||
"main": "./out/main/index.js",
|
"main": "./out/main/index.js",
|
||||||
|
|||||||
@ -1,3 +1,4 @@
|
|||||||
|
import { DEFAULT_MIN_APPS } from '@renderer/config/minapps'
|
||||||
import { RootState, useAppDispatch, useAppSelector } from '@renderer/store'
|
import { RootState, useAppDispatch, useAppSelector } from '@renderer/store'
|
||||||
import { setDisabledMinApps, setMinApps, setPinnedMinApps } from '@renderer/store/minapps'
|
import { setDisabledMinApps, setMinApps, setPinnedMinApps } from '@renderer/store/minapps'
|
||||||
import { MinAppType } from '@renderer/types'
|
import { MinAppType } from '@renderer/types'
|
||||||
@ -7,9 +8,9 @@ export const useMinapps = () => {
|
|||||||
const dispatch = useAppDispatch()
|
const dispatch = useAppDispatch()
|
||||||
|
|
||||||
return {
|
return {
|
||||||
minapps: enabled,
|
minapps: enabled.map((app) => DEFAULT_MIN_APPS.find((item) => item.id === app.id) || app),
|
||||||
disabled,
|
disabled: disabled.map((app) => DEFAULT_MIN_APPS.find((item) => item.id === app.id) || app),
|
||||||
pinned,
|
pinned: pinned.map((app) => DEFAULT_MIN_APPS.find((item) => item.id === app.id) || app),
|
||||||
updateMinapps: (minapps: MinAppType[]) => {
|
updateMinapps: (minapps: MinAppType[]) => {
|
||||||
dispatch(setMinApps(minapps))
|
dispatch(setMinApps(minapps))
|
||||||
},
|
},
|
||||||
|
|||||||
@ -12,20 +12,12 @@ import { createMigrate } from 'redux-persist'
|
|||||||
import { RootState } from '.'
|
import { RootState } from '.'
|
||||||
import { DEFAULT_SIDEBAR_ICONS } from './settings'
|
import { DEFAULT_SIDEBAR_ICONS } from './settings'
|
||||||
|
|
||||||
|
// remove logo base64 data to reduce the size of the state
|
||||||
function removeMiniAppIconsFromState(state: RootState) {
|
function removeMiniAppIconsFromState(state: RootState) {
|
||||||
if (state.minapps) {
|
if (state.minapps) {
|
||||||
state.minapps.enabled = state.minapps.enabled.map((app) => {
|
state.minapps.enabled = state.minapps.enabled.map((app) => ({ ...app, logo: undefined }))
|
||||||
const _app = DEFAULT_MIN_APPS.find((m) => m.id === app.id)
|
state.minapps.disabled = state.minapps.disabled.map((app) => ({ ...app, logo: undefined }))
|
||||||
return _app || app
|
state.minapps.pinned = state.minapps.pinned.map((app) => ({ ...app, logo: undefined }))
|
||||||
})
|
|
||||||
state.minapps.disabled = state.minapps.disabled.map((app) => {
|
|
||||||
const _app = DEFAULT_MIN_APPS.find((m) => m.id === app.id)
|
|
||||||
return _app || app
|
|
||||||
})
|
|
||||||
state.minapps.pinned = state.minapps.pinned.map((app) => {
|
|
||||||
const _app = DEFAULT_MIN_APPS.find((m) => m.id === app.id)
|
|
||||||
return _app || app
|
|
||||||
})
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@ -29,16 +29,16 @@ const minAppsSlice = createSlice({
|
|||||||
initialState,
|
initialState,
|
||||||
reducers: {
|
reducers: {
|
||||||
setMinApps: (state, action: PayloadAction<MinAppType[]>) => {
|
setMinApps: (state, action: PayloadAction<MinAppType[]>) => {
|
||||||
state.enabled = action.payload
|
state.enabled = action.payload.map((app) => ({ ...app, logo: undefined }))
|
||||||
},
|
},
|
||||||
addMinApp: (state, action: PayloadAction<MinAppType>) => {
|
addMinApp: (state, action: PayloadAction<MinAppType>) => {
|
||||||
state.enabled.push(action.payload)
|
state.enabled.push(action.payload)
|
||||||
},
|
},
|
||||||
setDisabledMinApps: (state, action: PayloadAction<MinAppType[]>) => {
|
setDisabledMinApps: (state, action: PayloadAction<MinAppType[]>) => {
|
||||||
state.disabled = action.payload
|
state.disabled = action.payload.map((app) => ({ ...app, logo: undefined }))
|
||||||
},
|
},
|
||||||
setPinnedMinApps: (state, action: PayloadAction<MinAppType[]>) => {
|
setPinnedMinApps: (state, action: PayloadAction<MinAppType[]>) => {
|
||||||
state.pinned = action.payload
|
state.pinned = action.payload.map((app) => ({ ...app, logo: undefined }))
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
|||||||
@ -68,7 +68,7 @@ const initialState: ShortcutsState = {
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
key: 'toggle_new_context',
|
key: 'toggle_new_context',
|
||||||
shortcut: [isMac ? 'Command' : 'Ctrl', 'R'],
|
shortcut: [isMac ? 'Command' : 'Ctrl', 'K'],
|
||||||
editable: true,
|
editable: true,
|
||||||
enabled: true,
|
enabled: true,
|
||||||
system: false
|
system: false
|
||||||
|
|||||||
@ -137,7 +137,7 @@ export interface Painting {
|
|||||||
export type MinAppType = {
|
export type MinAppType = {
|
||||||
id?: string | number
|
id?: string | number
|
||||||
name: string
|
name: string
|
||||||
logo: string
|
logo?: string
|
||||||
url: string
|
url: string
|
||||||
bodered?: boolean
|
bodered?: boolean
|
||||||
background?: string
|
background?: string
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user