移除无用代码
parent
b02d32929c
commit
ffc3300fe4
|
@ -22,7 +22,6 @@ exports.winLyric = {
|
||||||
name: 'winLyric',
|
name: 'winLyric',
|
||||||
create: 'create',
|
create: 'create',
|
||||||
close: 'close',
|
close: 'close',
|
||||||
inited: 'inited',
|
|
||||||
}
|
}
|
||||||
|
|
||||||
exports.hotKey = {
|
exports.hotKey = {
|
||||||
|
|
|
@ -10,10 +10,6 @@ class WinLyric extends EventEmitter {
|
||||||
close() {
|
close() {
|
||||||
this.emit(WIN_LYRIC_EVENT_NAME.close)
|
this.emit(WIN_LYRIC_EVENT_NAME.close)
|
||||||
}
|
}
|
||||||
|
|
||||||
inited() {
|
|
||||||
this.emit(WIN_LYRIC_EVENT_NAME.inited)
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
module.exports = WinLyric
|
module.exports = WinLyric
|
||||||
|
|
|
@ -38,7 +38,6 @@ global.lx_event.common.on(COMMON_EVENT_NAME.config, name => {
|
||||||
if (WIN_LYRIC_EVENT_NAME.name === name) return
|
if (WIN_LYRIC_EVENT_NAME.name === name) return
|
||||||
setLrcConfig(false)
|
setLrcConfig(false)
|
||||||
})
|
})
|
||||||
// global.lx_event.winLyric.on(WIN_LYRIC_EVENT_NAME.inited, () => setLrcConfig(true))
|
|
||||||
|
|
||||||
global.lx_event.mainWindow.on(MAIN_WINDOW_EVENT_NAME.setLyricInfo, info => {
|
global.lx_event.mainWindow.on(MAIN_WINDOW_EVENT_NAME.setLyricInfo, info => {
|
||||||
if (!global.modules.lyricWindow) return
|
if (!global.modules.lyricWindow) return
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
<template lang="pug">
|
<template lang="pug">
|
||||||
#container(v-if="isProd && !isNt" :class="[theme, nd ? 'nd' : '']" @mouseenter="enableIgnoreMouseEvents" @mouseleave="dieableIgnoreMouseEvents")
|
#container(v-if="isProd && !isNt" :class="theme" @mouseenter="enableIgnoreMouseEvents" @mouseleave="dieableIgnoreMouseEvents")
|
||||||
core-aside#left
|
core-aside#left
|
||||||
#right
|
#right
|
||||||
core-toolbar#toolbar
|
core-toolbar#toolbar
|
||||||
|
@ -9,7 +9,7 @@
|
||||||
material-xm-verify-modal(v-show="globalObj.xm.isShowVerify" :show="globalObj.xm.isShowVerify" :bg-close="false" @close="handleXMVerifyModalClose")
|
material-xm-verify-modal(v-show="globalObj.xm.isShowVerify" :show="globalObj.xm.isShowVerify" :bg-close="false" @close="handleXMVerifyModalClose")
|
||||||
material-version-modal(v-show="version.showModal")
|
material-version-modal(v-show="version.showModal")
|
||||||
material-pact-modal(v-show="!setting.isAgreePact || globalObj.isShowPact")
|
material-pact-modal(v-show="!setting.isAgreePact || globalObj.isShowPact")
|
||||||
#container(v-else :class="[theme, nd ? 'nd' : '']")
|
#container(v-else :class="theme")
|
||||||
core-aside#left
|
core-aside#left
|
||||||
#right
|
#right
|
||||||
core-toolbar#toolbar
|
core-toolbar#toolbar
|
||||||
|
@ -58,7 +58,6 @@ export default {
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
computed: {
|
computed: {
|
||||||
...mapGetters('player', ['isShowPlayerDetail']),
|
|
||||||
...mapGetters(['setting', 'theme', 'version', 'windowSizeActive']),
|
...mapGetters(['setting', 'theme', 'version', 'windowSizeActive']),
|
||||||
...mapGetters('list', ['defaultList', 'loveList', 'userList']),
|
...mapGetters('list', ['defaultList', 'loveList', 'userList']),
|
||||||
...mapGetters('download', {
|
...mapGetters('download', {
|
||||||
|
@ -68,9 +67,6 @@ export default {
|
||||||
...mapGetters('search', {
|
...mapGetters('search', {
|
||||||
searchHistoryList: 'historyList',
|
searchHistoryList: 'historyList',
|
||||||
}),
|
}),
|
||||||
nd() {
|
|
||||||
return this.isShowPlayerDetail
|
|
||||||
},
|
|
||||||
},
|
},
|
||||||
created() {
|
created() {
|
||||||
this.saveDefaultList = throttle(n => {
|
this.saveDefaultList = throttle(n => {
|
||||||
|
|
|
@ -62,7 +62,7 @@ rendererOn(NAMES.mainWindow.focus, () => {
|
||||||
eventHub.$emit(baseName.focus)
|
eventHub.$emit(baseName.focus)
|
||||||
})
|
})
|
||||||
rendererOn(NAMES.mainWindow.key_down, (event, { type, key }) => {
|
rendererOn(NAMES.mainWindow.key_down, (event, { type, key }) => {
|
||||||
console.log(appHotKeyConfig.global.keys[key])
|
// console.log(appHotKeyConfig.global.keys[key])
|
||||||
if (appHotKeyConfig.global.keys[key]) {
|
if (appHotKeyConfig.global.keys[key]) {
|
||||||
window.eventHub.$emit(appHotKeyConfig.global.keys[key].action)
|
window.eventHub.$emit(appHotKeyConfig.global.keys[key].action)
|
||||||
}
|
}
|
||||||
|
|
|
@ -179,12 +179,11 @@ const mutations = {
|
||||||
total += source.total
|
total += source.total
|
||||||
limit += source.limit
|
limit += source.limit
|
||||||
}
|
}
|
||||||
list = handleSortList(list, state.text)
|
|
||||||
state.allPage = Math.max(...pages)
|
state.allPage = Math.max(...pages)
|
||||||
state.total = total
|
state.total = total
|
||||||
state.limit = limit
|
state.limit = limit
|
||||||
state.page = page
|
state.page = page
|
||||||
state.list = list
|
state.list = handleSortList(list, state.text)
|
||||||
},
|
},
|
||||||
clearList(state) {
|
clearList(state) {
|
||||||
for (const source of Object.keys(state.sourceList)) {
|
for (const source of Object.keys(state.sourceList)) {
|
||||||
|
|
Loading…
Reference in New Issue