Skip to content

Commit b726ee4

Browse files
committed
Merge branch 'dev'
2 parents a4d3c06 + 6b71b47 commit b726ee4

48 files changed

Lines changed: 1546 additions & 678 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

CHANGELOG.md

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,24 @@ 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.14.0](https://github.com/lyswhut/lx-music-desktop/compare/v1.13.0...v1.14.0) - 2021-10-02
10+
11+
### 新增
12+
13+
- 新增歌词简体中文转繁体中文,当软件语言被设置为繁体中文后,播放歌曲的歌词也将自动转成繁体中文显示
14+
- 新增单个列表导入/导出功能,可以方便分享歌曲列表,可在右击“我的列表”里的列表名后弹出的菜单中使用
15+
- 新增删除列表前的确认弹窗,防止误删列表
16+
- 新增歌词文本选择复制功能,可在详情页进度条上方的歌词文本选择按钮进入歌词文本选择模式,选择完成后可鼠标右击或者使用系统快捷键复制
17+
- 新增重复歌曲列表,可以方便移除我的列表中的重复歌曲,此列表会列出目标列表里歌曲名相同的歌曲,可在右击“我的列表”里的列表名后弹出的菜单中使用
18+
19+
### 修复
20+
21+
- 修复mg排行榜无法加载的问题
22+
- 修复点击播放详情页的进度条跳进度时会出现偏移的问题
23+
- 修复在有提示信息的地方长按鼠标按键时提示信息会闪烁的问题
24+
- 修复下载歌曲时的歌词下载不尝试获取缓存歌词的问题
25+
- 修复GNOME等桌面下每次打开应用时需重新设置歌词窗口置顶的问题
26+
927
## [1.13.0](https://github.com/lyswhut/lx-music-desktop/compare/v1.12.2...v1.13.0) - 2021-09-05
1028

1129
如果你喜欢并经常使用洛雪音乐,并想要第一时间尝鲜洛雪的新功能,可以加入测试企鹅群768786588,

FAQ.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@
5858

5959
## 无法打开外部歌单
6060

61-
不支持垮源打开歌单,请**确认**你需要打开的歌单平台是否与软件标签所写的**歌单源**对应(不一样的话请通过右上角切换歌单源);<br>
61+
不支持跨源打开歌单,请**确认**你需要打开的歌单平台是否与软件标签所写的**歌单源**对应(不一样的话请通过右上角切换歌单源);<br>
6262
对于分享出来的歌单,若打开失败,可尝试先在浏览器中打开后,再从浏览器地址栏复制URL地址到软件打开;<br>
6363
或者如果你知道歌单 id 也可以直接输入歌单 id 打开。<br>
6464

package-lock.json

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

package.json

Lines changed: 21 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "lx-music-desktop",
3-
"version": "1.13.0",
3+
"version": "1.14.0",
44
"description": "一个免费的音乐查找助手",
55
"main": "./dist/electron/main.js",
66
"productName": "lx-music-desktop",
@@ -172,30 +172,30 @@
172172
"@babel/plugin-transform-modules-umd": "^7.14.5",
173173
"@babel/plugin-transform-runtime": "^7.15.0",
174174
"@babel/polyfill": "^7.12.1",
175-
"@babel/preset-env": "^7.15.4",
175+
"@babel/preset-env": "^7.15.6",
176176
"babel-eslint": "^10.1.0",
177177
"babel-loader": "^8.2.2",
178178
"babel-preset-minify": "^0.5.1",
179-
"browserslist": "^4.16.8",
180-
"cfonts": "^2.9.3",
179+
"browserslist": "^4.17.2",
180+
"cfonts": "^2.10.0",
181181
"chalk": "^4.1.2",
182182
"changelog-parser": "^2.8.0",
183183
"copy-webpack-plugin": "^9.0.1",
184-
"core-js": "^3.17.2",
184+
"core-js": "^3.18.1",
185185
"cross-env": "^7.0.3",
186-
"css-loader": "^6.2.0",
186+
"css-loader": "^6.3.0",
187187
"css-minimizer-webpack-plugin": "^3.0.2",
188188
"del": "^6.0.0",
189-
"electron": "^13.3.0",
189+
"electron": "^13.4.0",
190190
"electron-builder": "^22.11.7",
191191
"electron-debug": "^3.2.0",
192192
"electron-devtools-installer": "^3.2.0",
193-
"electron-to-chromium": "^1.3.830",
193+
"electron-to-chromium": "^1.3.856",
194194
"eslint": "^7.32.0",
195195
"eslint-config-standard": "^16.0.3",
196196
"eslint-formatter-friendly": "^7.0.0",
197197
"eslint-loader": "^4.0.2",
198-
"eslint-plugin-html": "^6.1.2",
198+
"eslint-plugin-html": "^6.2.0",
199199
"eslint-plugin-import": "^2.24.2",
200200
"eslint-plugin-node": "^11.1.0",
201201
"eslint-plugin-promise": "^5.1.0",
@@ -207,9 +207,9 @@
207207
"less-loader": "^10.0.1",
208208
"less-plugin-clean-css": "^1.5.1",
209209
"markdown-it": "^12.2.0",
210-
"mini-css-extract-plugin": "^2.2.2",
210+
"mini-css-extract-plugin": "^2.3.0",
211211
"node-loader": "^2.0.0",
212-
"postcss": "^8.3.6",
212+
"postcss": "^8.3.8",
213213
"postcss-loader": "^6.1.1",
214214
"postcss-pxtorem": "^6.0.0",
215215
"pug": "^3.0.2",
@@ -218,36 +218,36 @@
218218
"raw-loader": "^4.0.2",
219219
"rimraf": "^3.0.2",
220220
"spinnies": "^0.5.1",
221-
"terser-webpack-plugin": "^5.2.3",
221+
"terser-webpack-plugin": "^5.2.4",
222222
"url-loader": "^4.1.1",
223223
"vue-loader": "^15.9.8",
224224
"vue-template-compiler": "^2.6.14",
225-
"webpack": "^5.52.0",
225+
"webpack": "^5.56.0",
226226
"webpack-cli": "^4.8.0",
227227
"webpack-dev-server": "^3.11.2",
228-
"webpack-hot-middleware": "^2.25.0",
228+
"webpack-hot-middleware": "^2.25.1",
229229
"webpack-merge": "^5.8.0"
230230
},
231231
"dependencies": {
232-
"bufferutil": "^4.0.3",
232+
"bufferutil": "^4.0.4",
233233
"crypto-js": "^4.1.1",
234234
"electron-log": "^4.4.1",
235-
"electron-store": "^8.0.0",
235+
"electron-store": "^8.0.1",
236236
"electron-updater": "^4.3.9",
237237
"font-list": "git+https://github.com/lyswhut/node-font-list.git#c6caf4060e471afe143a4aca30d554644522966d",
238-
"http-terminator": "^3.0.0",
238+
"http-terminator": "^3.0.3",
239239
"iconv-lite": "^0.6.3",
240240
"image-size": "^1.0.0",
241-
"koa": "^2.13.1",
241+
"koa": "^2.13.3",
242242
"long": "^4.0.0",
243-
"lrc-file-parser": "^1.1.2",
243+
"lrc-file-parser": "^1.2.1",
244244
"needle": "^3.0.0",
245245
"node-id3": "^0.2.3",
246246
"request": "^2.88.2",
247247
"socket.io": "^4.2.0",
248-
"utf-8-validate": "^5.0.5",
248+
"utf-8-validate": "^5.0.6",
249249
"vue": "^2.6.14",
250-
"vue-i18n": "^8.25.0",
250+
"vue-i18n": "^8.26.5",
251251
"vue-router": "^3.5.2",
252252
"vuex": "^3.6.2",
253253
"vuex-router-sync": "^5.0.0"

postcss.config.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ module.exports = {
1515
'*-height', '*-width',
1616
'flex', '::-webkit-scrollbar',
1717
'top', 'left', 'bottom', 'right',
18-
'border-radius',
18+
'border-radius', 'gap',
1919
],
2020
selectorBlackList: ['html', 'ignore-to-rem'],
2121
replace: true,

publish/changeLog.md

Lines changed: 10 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,15 @@
1-
如果你喜欢并经常使用洛雪音乐,并想要第一时间尝鲜洛雪的新功能,可以加入测试企鹅群768786588,
2-
注意:测试版的功可能会不稳定,打算潜水的勿加。
3-
41
### 新增
52

6-
- 歌曲搜索框新增清理按钮,点击此按钮可以清理搜索框并返回初始搜索界面
7-
- 新增“下载的歌词文件编码格式”设置,默认下载的歌词编码仍是`UTF-8`,对于某些在设备(如车机)上出现歌词中文乱码的用户可以尝试选择以`GBK`编码格式保存歌词文件
8-
- 新增设置-桌面歌词-歌词字体设置,此设置可用于设置桌面歌词的字体(已知的问题:Windows 7 下可能会出现字体列表为空的情况,这是当前系统的 Powershell 版本小于5.1导致的,请自行**尝试**看常见解决)
9-
10-
### 优化
11-
12-
- 支持网易源“我喜欢”歌单以注入token的方式打开。由于网易源的“我喜欢”歌单需要登录才能打开(若你看不懂后半句就去阅读 常见问题-无法打开外部歌单),现若想要打开此类歌单,需要在歌单链接后面拼上 `###` 再加上有效的token,拼接格式:`[id|url]###token`,例子(最后面的xxxxxx替换成你的token):`https://music.163.com/#/playlist?id=123456&userid=123456###xxxxxx`
13-
- 软件内快捷键的最小化触发时,如果已启用托盘,则隐藏程序,否则最小化程序
3+
- 新增歌词简体中文转繁体中文,当软件语言被设置为繁体中文后,播放歌曲的歌词也将自动转成繁体中文显示
4+
- 新增单个列表导入/导出功能,可以方便分享歌曲列表,可在右击“我的列表”里的列表名后弹出的菜单中使用
5+
- 新增删除列表前的确认弹窗,防止误删列表
6+
- 新增歌词文本选择复制功能,可在详情页进度条上方的歌词文本选择按钮进入歌词文本选择模式,选择完成后可鼠标右击或者使用系统快捷键复制
7+
- 新增重复歌曲列表,可以方便移除我的列表中的重复歌曲,此列表会列出目标列表里歌曲名相同的歌曲,可在右击“我的列表”里的列表名后弹出的菜单中使用
148

159
### 修复
1610

17-
- 修复某些情况下同步功能会导致切歌混乱的问题
18-
- 修复从电脑浏览器复制的企鹅歌单链接无法打开的问题
11+
- 修复mg排行榜无法加载的问题
12+
- 修复点击播放详情页的进度条跳进度时会出现偏移的问题
13+
- 修复在有提示信息的地方长按鼠标按键时提示信息会闪烁的问题
14+
- 修复下载歌曲时的歌词下载不尝试获取缓存歌词的问题
15+
- 修复GNOME等桌面下每次打开应用时需重新设置歌词窗口置顶的问题

publish/version.json

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

src/common/ipcNames.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,8 @@ const names = {
3333

3434
restart_window: 'restart_window',
3535

36+
lang_s2t: 'lang_s2t',
37+
3638
handle_kw_decode_lyric: 'handle_kw_decode_lyric',
3739
get_lyric_info: 'get_lyric_info',
3840
set_lyric_info: 'set_lyric_info',
@@ -74,6 +76,7 @@ const names = {
7476
sync_generate_code: 'sync_generate_code',
7577
sync_action_list: 'sync_action_list',
7678
sync_list: 'sync_list',
79+
7780
},
7881
winLyric: {
7982
close: 'close',

src/main/modules/winLyric/index.js

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
const path = require('path')
22
const { BrowserWindow } = require('electron')
33
const { winLyric: WIN_LYRIC_EVENT_NAME } = require('../../events/_name')
4-
const { debounce } = require('../../../common/utils')
4+
const { debounce, isLinux } = require('../../../common/utils')
55
const { getLyricWindowBounds } = require('./utils')
66

77
require('./event')
@@ -66,6 +66,10 @@ const winEvent = lyricWindow => {
6666
if (global.appSetting.desktopLyric.isLock) {
6767
global.modules.lyricWindow.setIgnoreMouseEvents(true, { forward: false })
6868
}
69+
// linux下每次重开时貌似要重新设置置顶
70+
if (isLinux && global.appSetting.desktopLyric.isAlwaysOnTop) {
71+
global.modules.lyricWindow.setAlwaysOnTop(global.appSetting.desktopLyric.isAlwaysOnTop, 'screen-saver')
72+
}
6973
})
7074
}
7175

src/main/rendererEvents/index.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,3 +25,5 @@ require('./kw_decodeLyric')
2525

2626
require('./userApi')
2727
require('./sync')
28+
require('./s2t')
29+

0 commit comments

Comments
 (0)