Skip to content

Commit aa4b094

Browse files
committed
Merge branch 'dev'
2 parents d695cde + 9521bba commit aa4b094

23 files changed

Lines changed: 1970 additions & 2035 deletions

File tree

.eslintrc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,5 +30,5 @@
3030
"settings": {
3131
"html/html-extensions": [".html", ".vue"]
3232
},
33-
"ignorePatterns": ["vendors", "*.min.js"]
33+
"ignorePatterns": ["vendors", "*.min.js", "dist", "node_modules"]
3434
}

CHANGELOG.md

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,22 @@ Project versioning adheres to [Semantic Versioning](http://semver.org/).
66
Commit convention is based on [Conventional Commits](http://conventionalcommits.org).
77
Change log format is based on [Keep a Changelog](http://keepachangelog.com/).
88

9+
## [1.22.1](https://github.com/lyswhut/lx-music-desktop/compare/v1.22.0...v1.22.1) - 2022-07-09
10+
11+
### 优化
12+
13+
- 歌单列表添加歌单内歌曲数量显示,注:目前只有kw、mg、wy、tx(部分)源支持显示
14+
15+
### 修复
16+
17+
- 修复处于不支持的源时,歌单、排行榜的右键下载菜单没有禁用的问题
18+
- 修复若桌面歌词窗口与主窗口重叠时,鼠标划过重叠区域鼠标会闪烁的问题,注:此修复只对未启用“鼠标移入歌词区域时降低歌词透明度”时有效
19+
- 修复tx源搜索失效的问题
20+
21+
### 其他
22+
23+
- 升级Electron到 v17.4.10
24+
925
## [1.22.0](https://github.com/lyswhut/lx-music-desktop/compare/v1.21.0...v1.22.0) - 2022-06-19
1026

1127
### 新增

package-lock.json

Lines changed: 1835 additions & 1964 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 19 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "lx-music-desktop",
3-
"version": "1.22.0",
3+
"version": "1.22.1",
44
"description": "一个免费的音乐查找助手",
55
"main": "./dist/main.js",
66
"productName": "lx-music-desktop",
@@ -178,40 +178,38 @@
178178
},
179179
"homepage": "https://github.com/lyswhut/lx-music-desktop#readme",
180180
"devDependencies": {
181-
"@babel/core": "^7.18.5",
181+
"@babel/core": "^7.18.6",
182182
"@babel/eslint-parser": "^7.18.2",
183-
"@babel/plugin-proposal-class-properties": "^7.17.12",
183+
"@babel/plugin-proposal-class-properties": "^7.18.6",
184184
"@babel/plugin-syntax-dynamic-import": "^7.8.3",
185-
"@babel/plugin-transform-modules-umd": "^7.18.0",
186-
"@babel/plugin-transform-runtime": "^7.18.5",
187-
"@babel/polyfill": "^7.12.1",
188-
"@babel/preset-env": "^7.18.2",
185+
"@babel/plugin-transform-modules-umd": "^7.18.6",
186+
"@babel/plugin-transform-runtime": "^7.18.6",
187+
"@babel/preset-env": "^7.18.6",
189188
"babel-loader": "^8.2.5",
190189
"babel-preset-minify": "^0.5.2",
191-
"browserslist": "^4.20.4",
190+
"browserslist": "^4.21.1",
192191
"chalk": "^4.1.2",
193192
"changelog-parser": "^2.8.1",
194193
"copy-webpack-plugin": "^11.0.0",
195-
"core-js": "^3.23.1",
194+
"core-js": "^3.23.3",
196195
"cross-env": "^7.0.3",
197196
"css-loader": "^6.7.1",
198197
"css-minimizer-webpack-plugin": "^4.0.0",
199198
"del": "^6.1.1",
200-
"electron": "^17.4.7",
201-
"electron-builder": "^23.1.0",
199+
"electron": "^17.4.10",
200+
"electron-builder": "^23.3.0",
202201
"electron-debug": "^3.2.0",
203202
"electron-devtools-installer": "^3.2.0",
204-
"electron-to-chromium": "^1.4.161",
205-
"electron-updater": "^5.0.5",
206-
"eslint": "^8.18.0",
203+
"electron-to-chromium": "^1.4.184",
204+
"electron-updater": "^5.1.0",
205+
"eslint": "^8.19.0",
207206
"eslint-config-standard": "^17.0.0",
208207
"eslint-formatter-friendly": "git+https://github.com/lyswhut/eslint-friendly-formatter.git#2170d1320e2fad13615a9dcf229669f0bb473a53",
209208
"eslint-plugin-html": "^6.2.0",
210209
"eslint-plugin-import": "^2.26.0",
211210
"eslint-plugin-node": "^11.1.0",
212211
"eslint-plugin-promise": "^6.0.0",
213-
"eslint-plugin-standard": "^4.1.0",
214-
"eslint-webpack-plugin": "^3.1.1",
212+
"eslint-webpack-plugin": "^3.2.0",
215213
"file-loader": "^6.2.0",
216214
"html-webpack-plugin": "^5.5.0",
217215
"less": "^4.1.3",
@@ -233,17 +231,17 @@
233231
"terser-webpack-plugin": "^5.3.3",
234232
"url-loader": "^4.1.1",
235233
"vue-loader": "^17.0.0",
236-
"vue-template-compiler": "^2.7.0-beta.2",
234+
"vue-template-compiler": "^2.7.4",
237235
"webpack": "^5.73.0",
238236
"webpack-cli": "^4.10.0",
239-
"webpack-dev-server": "^4.9.2",
237+
"webpack-dev-server": "^4.9.3",
240238
"webpack-hot-middleware": "git+https://github.com/lyswhut/webpack-hot-middleware.git#329c4375134b89d39da23a56a94db651247c74a1",
241239
"webpack-merge": "^5.8.0"
242240
},
243241
"dependencies": {
244242
"bufferutil": "^4.0.6",
245243
"crypto-js": "^4.1.1",
246-
"electron-log": "^4.4.7",
244+
"electron-log": "^4.4.8",
247245
"electron-store": "^8.0.2",
248246
"font-list": "git+https://github.com/lyswhut/node-font-list.git#4edbb1933b49a9bac1eedd63a31da16b487fe57d",
249247
"http-terminator": "^3.2.0",
@@ -261,11 +259,12 @@
261259
"utf-8-validate": "^5.0.9",
262260
"vue": "^3.2.37",
263261
"vue-i18n": "^9.2.0-beta.36",
264-
"vue-router": "^4.1.0-aabe509",
262+
"vue-router": "^4.1.1",
265263
"vuex": "^4.0.2"
266264
},
267265
"overrides": {
268266
"async": "^2.3.0",
267+
"got": "^11.8.5",
269268
"svg-sprite-loader": {
270269
"postcss": "8.2.13"
271270
}

publish/changeLog.md

Lines changed: 5 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,26 +1,13 @@
1-
### 新增
2-
3-
- 新增设置-以全屏模式启动设置
4-
- 新增设置-桌面歌词设置-鼠标移入歌词区域时降低歌词透明度(#883),默认关闭,此设置不支持linux,注:此功能存在兼容性问题,若鼠标移出后无法恢复到正常透明度,可尝试再移入移出即可恢复
5-
61
### 优化
72

8-
- 添加歌曲到“我的列表”时,若按住`ctrl`键(Mac对应`Command`),则不会自动关闭添加窗口,这对想要将同一首(一批)歌曲添加到多个列表时会很有用
9-
- 支持mg源逐字歌词的播放,感谢 @mozbugbox 提供的帮助
10-
- 添加歌曲列表更新操作的二次确认
11-
- 添加导入文件错误时的指引提示
3+
- 歌单列表添加歌单内歌曲数量显示,注:目前只有kw、mg、wy、tx(部分)源支持显示
124

135
### 修复
146

15-
- 修复若配置了`http_proxy`环境变量时,会意外使用此代理配置的问题
16-
- 修复多选后切换列表后不会清空多选内容的问题
17-
- 修复设置快捷键时的处理逻辑问题
18-
- 修复在新建歌单输入框、歌单内歌曲搜索输入框会意外触发设置的全局快捷键的问题(#879
19-
20-
### 文档
21-
22-
桌面版文档已迁移到:<https://lyswhut.github.io/lx-music-doc/desktop>
7+
- 修复处于不支持的源时,歌单、排行榜的右键下载菜单没有禁用的问题
8+
- 修复若桌面歌词窗口与主窗口重叠时,鼠标划过重叠区域鼠标会闪烁的问题,注:此修复只对未启用“鼠标移入歌词区域时降低歌词透明度”时有效
9+
- 修复tx源搜索失效的问题
2310

2411
### 其他
2512

26-
- 更新 Electron 到 v17.4.7
13+
- 升级Electron到 v17.4.10

publish/version.json

Lines changed: 1 addition & 1 deletion
Large diffs are not rendered by default.

src/common/hotKey.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,7 @@ const hotKey = {
6565
}
6666

6767
const keyName = {
68+
common: names.mainWindow.name,
6869
player: names.mainWindow.name,
6970
desktop_lyric: names.winLyric.name,
7071
}

src/main/index.js

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -83,14 +83,13 @@ app.on('open-url', (event, url) => {
8383
init()
8484
}
8585
})
86-
if (isDev && process.platform === 'win32') {
87-
// Set the path of electron.exe and your app.
88-
// These two additional parameters are only available on windows.
89-
// console.log(process.execPath, process.argv)
90-
app.setAsDefaultProtocolClient('lxmusic', process.execPath, process.argv.slice(1))
91-
} else {
92-
app.setAsDefaultProtocolClient('lxmusic')
93-
}
86+
// if (isDev && process.platform === 'win32') {
87+
// // Set the path of electron.exe and your app.
88+
// // These two additional parameters are only available on windows.
89+
// // console.log(process.execPath, process.argv)
90+
// app.setAsDefaultProtocolClient('lxmusic', process.execPath, process.argv.slice(1))
91+
// }
92+
if (!isDev) app.setAsDefaultProtocolClient('lxmusic')
9493

9594
const { navigationUrlWhiteList, themes } = require('../common/config')
9695
const { getWindowSizeInfo, initSetting, updateSetting } = require('./utils')

src/main/modules/winLyric/event.js

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ let isEnable = null
99
let isAlwaysOnTop = null
1010
let isAlwaysOnTopLoop = null
1111
let isLockScreen = null
12+
let isHoverHide = null
1213

1314
const alwaysOnTopTools = {
1415
timeout: null,
@@ -48,9 +49,15 @@ const setLrcConfig = () => {
4849
if (isLock != desktopLyric.isLock) {
4950
isLock = desktopLyric.isLock
5051
if (desktopLyric.isLock) {
51-
global.modules.lyricWindow.setIgnoreMouseEvents(true, { forward: !isLinux })
52+
global.modules.lyricWindow.setIgnoreMouseEvents(true, { forward: !isLinux && global.appSetting.desktopLyric.isHoverHide })
5253
} else {
53-
global.modules.lyricWindow.setIgnoreMouseEvents(false, { forward: !isLinux })
54+
global.modules.lyricWindow.setIgnoreMouseEvents(false, { forward: !isLinux && global.appSetting.desktopLyric.isHoverHide })
55+
}
56+
}
57+
if (isHoverHide != desktopLyric.isHoverHide) {
58+
isHoverHide = desktopLyric.isHoverHide
59+
if (!isLinux) {
60+
global.modules.lyricWindow.setIgnoreMouseEvents(desktopLyric.isLock, { forward: global.appSetting.desktopLyric.isHoverHide })
5461
}
5562
}
5663
if (isAlwaysOnTop != desktopLyric.isAlwaysOnTop) {

src/main/modules/winLyric/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ const winEvent = lyricWindow => {
6464
lyricWindow.once('ready-to-show', () => {
6565
lyricWindow.show()
6666
if (global.appSetting.desktopLyric.isLock) {
67-
global.modules.lyricWindow.setIgnoreMouseEvents(true, { forward: !isLinux })
67+
global.modules.lyricWindow.setIgnoreMouseEvents(true, { forward: !isLinux && global.appSetting.desktopLyric.isHoverHide })
6868
}
6969
// linux下每次重开时貌似要重新设置置顶
7070
if (isLinux && global.appSetting.desktopLyric.isAlwaysOnTop) {

0 commit comments

Comments
 (0)