|
|
@ -255,6 +255,11 @@ const config = {
|
|
|
|
revert
|
|
|
|
revert
|
|
|
|
})
|
|
|
|
})
|
|
|
|
},
|
|
|
|
},
|
|
|
|
|
|
|
|
setThemeV2 ({ commit, dispatch }, { customTheme, customThemeSource }) {
|
|
|
|
|
|
|
|
commit('setOption', { name: 'customTheme', value: customTheme })
|
|
|
|
|
|
|
|
commit('setOption', { name: 'customThemeSource', value: customThemeSource })
|
|
|
|
|
|
|
|
dispatch('setTheme', { themeData: customThemeSource, recompile: true })
|
|
|
|
|
|
|
|
},
|
|
|
|
setOption ({ commit, dispatch, state }, { name, value }) {
|
|
|
|
setOption ({ commit, dispatch, state }, { name, value }) {
|
|
|
|
const exceptions = new Set([
|
|
|
|
const exceptions = new Set([
|
|
|
|
'useStreamingApi'
|
|
|
|
'useStreamingApi'
|
|
|
@ -272,6 +277,7 @@ const config = {
|
|
|
|
dispatch('disableMastoSockets')
|
|
|
|
dispatch('disableMastoSockets')
|
|
|
|
dispatch('setOption', { name: 'useStreamingApi', value: false })
|
|
|
|
dispatch('setOption', { name: 'useStreamingApi', value: false })
|
|
|
|
})
|
|
|
|
})
|
|
|
|
|
|
|
|
break
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
} else {
|
|
|
|
} else {
|
|
|
@ -286,11 +292,6 @@ const config = {
|
|
|
|
case 'theme':
|
|
|
|
case 'theme':
|
|
|
|
dispatch('setTheme', { themeName: value, recompile: true })
|
|
|
|
dispatch('setTheme', { themeName: value, recompile: true })
|
|
|
|
break
|
|
|
|
break
|
|
|
|
case 'customTheme':
|
|
|
|
|
|
|
|
case 'customThemeSource': {
|
|
|
|
|
|
|
|
if (!value.ignore) dispatch('setTheme', { themeData: value })
|
|
|
|
|
|
|
|
break
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
case 'themeDebug': {
|
|
|
|
case 'themeDebug': {
|
|
|
|
dispatch('setTheme', { recompile: true })
|
|
|
|
dispatch('setTheme', { recompile: true })
|
|
|
|
break
|
|
|
|
break
|
|
|
|