This commit is contained in:
lyswhut
2022-10-29 11:36:35 +08:00
parent 66b965d9f7
commit e45cee6596
715 changed files with 57096 additions and 31771 deletions
@@ -0,0 +1,39 @@
import { registerRendererEvents as common } from '@main/modules/commonRenderers/common'
import { registerRendererEvents as list } from '@main/modules/commonRenderers/list'
import app, { sendConfigChange } from './app'
import hotKey from './hotKey'
import kw_decodeLyric from './kw_decodeLyric'
import userApi from './userApi'
import sync from './sync'
import data from './data'
import music from './music'
import download from './download'
import { sendEvent } from '../main'
export * from './app'
export * from './hotKey'
export * from './userApi'
export * from './sync'
export * from './process'
let isInitialized = false
export default () => {
if (isInitialized) return
isInitialized = true
common(sendEvent)
list(sendEvent)
app()
hotKey()
kw_decodeLyric()
userApi()
sync()
data()
music()
download()
global.lx.event_app.on('updated_config', (keys, setting) => {
sendConfigChange(setting)
})
}