Skip to content

Commit a386915

Browse files
committed
Merge branch 'dev'
2 parents ff47a22 + ab16bc8 commit a386915

80 files changed

Lines changed: 2365 additions & 2073 deletions

Some content is hidden

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

.eslintrc

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,5 +22,6 @@
2222
},
2323
"settings": {
2424
"html/html-extensions": [".html", ".vue"]
25-
}
25+
},
26+
"ignorePatterns": ["vendors", "*.min.js"]
2627
}

.ncurc.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ module.exports = {
33
reject: [
44
'vue-loader',
55
'webpack-dev-server',
6+
'eslint',
67
// 'eslint-config-standard'
78
]
89
}

CHANGELOG.md

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,31 @@ 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.15.0](https://github.com/lyswhut/lx-music-desktop/compare/v1.14.1...v1.15.0) - 2021-10-29
10+
11+
### 新增
12+
13+
- 添加黑色托盘图标
14+
- 自定义源新增`version`字段,新增`utils.buffer.bufToString`方法
15+
16+
### 优化
17+
18+
- 大幅优化我的列表、下载、歌单、排行榜列表性能,现在即使同一列表内的歌曲很多时也不会卡顿了
19+
- 优化列表同步代码逻辑
20+
- 优化开关评论时的动画性能
21+
- 优化进入、离开播放详情页的性能
22+
- 兼容桌面歌词以触摸的方式移动、调整大小
23+
- 调整图标尺寸
24+
25+
### 修复
26+
27+
- 修复kg源的歌单链接无法打开的问题
28+
- 修复同一首歌的URL、歌词等同时需要换源时的处理问题
29+
30+
### 其他
31+
32+
- 更新 Electron 到 v15.3.0
33+
934
## [1.14.1](https://github.com/lyswhut/lx-music-desktop/compare/v1.14.0...v1.14.1) - 2021-10-04
1035

1136
### 修复

FAQ.md

Lines changed: 14 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -128,12 +128,12 @@
128128
由于软件默认使用了透明窗口,根据Electron官方文档的[说明](https://electronjs.org/docs/api/frameless-window#%E5%B1%80%E9%99%90%E6%80%A7)
129129
> 在 windows 操作系统上, 当 DWM 被禁用时, 透明窗口将无法工作。
130130
131-
因此,当 win7 没有使用**AERO**主题时界面将会显示异常,开启AERO的方法请自行百度:`win7开启aero效果`(开启后可看到任务栏变透明)。<br>
131+
因此,当 win7 没有使用**Aero**主题时界面将会显示异常,开启AERO的方法请自行百度:`win7开启Aero效果`(开启后可看到任务栏变透明)。<br>
132132
`0.14.0`版本起不再强制要求开启透明效果,若你实在不想开启(若非电脑配置太低,墙裂建议开启!),可通过添加运行参数`-dt`来运行程序即可,例如:`.\lx-music-desktop.exe -dt`,添加方法可自行百度“给快捷方式加参数”,该参数的作用是用来控制程序是否使用非透明窗口运行。
133133

134-
注:启用**AERO**主题后,若软件出现黑边框,则重启软件即可恢复正常。
134+
注:启用**Aero**主题后,若软件出现黑边框,则重启软件即可恢复正常。
135135

136-
对于一些完全无法正常显示界面、开启了AERO后问题仍未解决的情况,请阅读下面的 **软件启动后,界面无法显示** 解决。
136+
对于一些完全无法正常显示界面、开启了AERO后问题仍未解决的情况,请阅读下面的 **Window 7 下软件启动后,界面无法显示** 解决。
137137

138138
### Linux 下界面异常
139139

@@ -142,19 +142,17 @@
142142

143143
注:v1.6.0及之后的版本才支持`-dha`参数
144144

145-
## 软件启动后,界面无法显示
145+
## Window 7 下软件启动后,界面无法显示
146146

147147
对于软件启动后,可以在任务栏看到软件,但软件界面在桌面上无任何显示,或者整个界面偶尔闪烁的情况。<br>
148148
原始问题看:<https://github.com/electron/electron/issues/19569#issuecomment-522231083><br>
149149
解决办法:下载`.NET Framework 4.7.1`**更高**版本安装即可(建议安装最新版,若安装过程中遇到问题可尝试自行百度解决)。<br>
150150
微软官方下载地址:<https://dotnet.microsoft.com/download/dotnet-framework><br>
151-
下载`Runtime(运行时)`版即可,安装完成后可能需要重启才生效。
151+
下载`Runtime(运行时)`版即可,安装完成后可能需要重启才生效**若出现闪烁的情况**,可阅读下面的**Windows 7 下整个界面闪烁**解决
152152

153-
若还是不行可尝试以下操作:
153+
## Windows 7 下整个界面闪烁(消失又出现)
154154

155-
- 更新显卡驱动
156-
- 添加启动参数`-dha`运行(添加的方法请自行百度“给快捷方式加参数”)
157-
- 尝试将绿色版的软件放在**桌面****我的文档**运行
155+
可尝试在关掉软件后,在桌面空白处鼠标右击,在弹出的菜单中选择**个性化**,在弹出的窗口中**切换到系统内置的Aero主题**,然后再启动软件看是否解决。
158156

159157
## Windows 7 下桌面歌词字体列表为空
160158

@@ -344,8 +342,8 @@ send(EVENT_NAMES.inited, {
344342

345343
```
346344

347-
- `@name `:源的名字,建议不要过长,10个字符以内
348-
- `@description `:源的描述,建议不要过长,20个字符以内,可不填,不填时必须保留 @description
345+
- `@name `:源的名字,建议不要过长,24个字符以内
346+
- `@description `:源的描述,建议不要过长,36个字符以内,可不填,不填时必须保留 @description
349347
- `@version`:源的版本号,可不填,不填时可以删除 @version
350348
- `@author `:脚本作者名字,可不填,不填时可以删除 @author
351349
- `@homepage `:脚本主页,可不填,不填时可以删除 @homepage
@@ -354,6 +352,10 @@ send(EVENT_NAMES.inited, {
354352

355353
应用为脚本暴露的API对象。
356354

355+
#### `window.lx.version`
356+
357+
自定义源API版本,API变更时此版本号将会更改(新增于v1.14.0之后)
358+
357359
#### `window.lx.EVENT_NAMES`
358360

359361
常量事件名称对象,发送、注册事件时传入事件名时使用,可用值:
@@ -409,6 +411,7 @@ const cancelHttp = window.lx.request(url, options, callback)
409411
应用提供给脚本的工具方法:
410412

411413
- `window.lx.utils.buffer.from`:对应Node.js的 `Buffer.from`
414+
- `window.lx.utils.buffer.bufToString`:Buffer转字符串 `bufToString(buffer, format)``format`对应Node.js `Buffer.toString`的参数(v1.14.0之后新增)
412415
- `window.lx.utils.crypto.aesEncrypt`:AES加密 `aesEncrypt(buffer, mode, key, iv)`
413416
- `window.lx.utils.crypto.md5`:MD5加密 `md5(str)`
414417
- `window.lx.utils.crypto.randomBytes`:生成随机字符串 `randomBytes(size)`

README.md

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

3737
所用技术栈:
3838

39-
- Electron 13
39+
- Electron 15
4040
- Vue 2
4141

4242
已支持的平台:

build-config/main/webpack.config.base.js

Lines changed: 4 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
const path = require('path')
2+
const ESLintPlugin = require('eslint-webpack-plugin')
23

34
module.exports = {
45
target: 'electron-main',
@@ -18,17 +19,6 @@ module.exports = {
1819
},
1920
module: {
2021
rules: [
21-
{
22-
test: /\.js$/,
23-
use: {
24-
loader: 'eslint-loader',
25-
options: {
26-
formatter: require('eslint-formatter-friendly'),
27-
},
28-
},
29-
exclude: /node_modules/,
30-
enforce: 'pre',
31-
},
3222
{
3323
test: /\.node$/,
3424
use: 'node-loader',
@@ -38,4 +28,7 @@ module.exports = {
3828
performance: {
3929
maxEntrypointSize: 300000,
4030
},
31+
plugins: [
32+
new ESLintPlugin(),
33+
],
4134
}

build-config/renderer-lyric/webpack.config.base.js

Lines changed: 4 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ const VueLoaderPlugin = require('vue-loader/lib/plugin')
33
const HTMLPlugin = require('html-webpack-plugin')
44
const MiniCssExtractPlugin = require('mini-css-extract-plugin')
55
const CleanCSSPlugin = require('less-plugin-clean-css')
6+
const ESLintPlugin = require('eslint-webpack-plugin')
67

78
const vueLoaderConfig = require('../vue-loader.config')
89
const { mergeCSSLoader } = require('../utils')
@@ -32,18 +33,6 @@ module.exports = {
3233
},
3334
module: {
3435
rules: [
35-
{
36-
test: /\.(vue|js)$/,
37-
use: {
38-
loader: 'eslint-loader',
39-
options: {
40-
formatter: require('eslint-formatter-friendly'),
41-
emitWarning: isDev,
42-
},
43-
},
44-
exclude: /node_modules/,
45-
enforce: 'pre',
46-
},
4736
{
4837
test: /\.node$/,
4938
use: 'node-loader',
@@ -147,5 +136,8 @@ module.exports = {
147136
filename: isDev ? '[name].css' : '[name].[contenthash:8].css',
148137
chunkFilename: isDev ? '[id].css' : '[id].[contenthash:8].css',
149138
}),
139+
new ESLintPlugin({
140+
extensions: ['js', 'vue'],
141+
}),
150142
],
151143
}

build-config/renderer/webpack.config.base.js

Lines changed: 4 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ const VueLoaderPlugin = require('vue-loader/lib/plugin')
33
const HTMLPlugin = require('html-webpack-plugin')
44
const MiniCssExtractPlugin = require('mini-css-extract-plugin')
55
const CleanCSSPlugin = require('less-plugin-clean-css')
6+
const ESLintPlugin = require('eslint-webpack-plugin')
67

78
const vueLoaderConfig = require('../vue-loader.config')
89
const { mergeCSSLoader } = require('../utils')
@@ -32,18 +33,6 @@ module.exports = {
3233
},
3334
module: {
3435
rules: [
35-
{
36-
test: /\.(vue|js)$/,
37-
use: {
38-
loader: 'eslint-loader',
39-
options: {
40-
formatter: require('eslint-formatter-friendly'),
41-
emitWarning: isDev,
42-
},
43-
},
44-
exclude: /node_modules/,
45-
enforce: 'pre',
46-
},
4736
{
4837
test: /\.node$/,
4938
use: 'node-loader',
@@ -147,5 +136,8 @@ module.exports = {
147136
filename: isDev ? '[name].css' : '[name].[contenthash:8].css',
148137
chunkFilename: isDev ? '[id].css' : '[id].[contenthash:8].css',
149138
}),
139+
new ESLintPlugin({
140+
extensions: ['js', 'vue'],
141+
}),
150142
],
151143
}

0 commit comments

Comments
 (0)