Skip to content

Commit

Permalink
Merge branch 'dev'
Browse files Browse the repository at this point in the history
  • Loading branch information
lyswhut committed Oct 29, 2021
2 parents ff47a22 + ab16bc8 commit a386915
Show file tree
Hide file tree
Showing 80 changed files with 2,365 additions and 2,073 deletions.
3 changes: 2 additions & 1 deletion .eslintrc
Original file line number Diff line number Diff line change
Expand Up @@ -22,5 +22,6 @@
},
"settings": {
"html/html-extensions": [".html", ".vue"]
}
},
"ignorePatterns": ["vendors", "*.min.js"]
}
1 change: 1 addition & 0 deletions .ncurc.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ module.exports = {
reject: [
'vue-loader',
'webpack-dev-server',
'eslint',
// 'eslint-config-standard'
]
}
25 changes: 25 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,31 @@ Project versioning adheres to [Semantic Versioning](http://semver.org/).
Commit convention is based on [Conventional Commits](http://conventionalcommits.org).
Change log format is based on [Keep a Changelog](http://keepachangelog.com/).

## [1.15.0](https://github.com/lyswhut/lx-music-desktop/compare/v1.14.1...v1.15.0) - 2021-10-29

### 新增

- 添加黑色托盘图标
- 自定义源新增`version`字段,新增`utils.buffer.bufToString`方法

### 优化

- 大幅优化我的列表、下载、歌单、排行榜列表性能,现在即使同一列表内的歌曲很多时也不会卡顿了
- 优化列表同步代码逻辑
- 优化开关评论时的动画性能
- 优化进入、离开播放详情页的性能
- 兼容桌面歌词以触摸的方式移动、调整大小
- 调整图标尺寸

### 修复

- 修复kg源的歌单链接无法打开的问题
- 修复同一首歌的URL、歌词等同时需要换源时的处理问题

### 其他

- 更新 Electron 到 v15.3.0

## [1.14.1](https://github.com/lyswhut/lx-music-desktop/compare/v1.14.0...v1.14.1) - 2021-10-04

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

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

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

### Linux 下界面异常

Expand All @@ -142,19 +142,17 @@

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

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

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

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

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

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

Expand Down Expand Up @@ -344,8 +342,8 @@ send(EVENT_NAMES.inited, {

```

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

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

#### `window.lx.version`

自定义源API版本,API变更时此版本号将会更改(新增于v1.14.0之后)

#### `window.lx.EVENT_NAMES`

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

- `window.lx.utils.buffer.from`:对应Node.js的 `Buffer.from`
- `window.lx.utils.buffer.bufToString`:Buffer转字符串 `bufToString(buffer, format)``format`对应Node.js `Buffer.toString`的参数(v1.14.0之后新增)
- `window.lx.utils.crypto.aesEncrypt`:AES加密 `aesEncrypt(buffer, mode, key, iv)`
- `window.lx.utils.crypto.md5`:MD5加密 `md5(str)`
- `window.lx.utils.crypto.randomBytes`:生成随机字符串 `randomBytes(size)`
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@

所用技术栈:

- Electron 13
- Electron 15
- Vue 2

已支持的平台:
Expand Down
15 changes: 4 additions & 11 deletions build-config/main/webpack.config.base.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
const path = require('path')
const ESLintPlugin = require('eslint-webpack-plugin')

module.exports = {
target: 'electron-main',
Expand All @@ -18,17 +19,6 @@ module.exports = {
},
module: {
rules: [
{
test: /\.js$/,
use: {
loader: 'eslint-loader',
options: {
formatter: require('eslint-formatter-friendly'),
},
},
exclude: /node_modules/,
enforce: 'pre',
},
{
test: /\.node$/,
use: 'node-loader',
Expand All @@ -38,4 +28,7 @@ module.exports = {
performance: {
maxEntrypointSize: 300000,
},
plugins: [
new ESLintPlugin(),
],
}
16 changes: 4 additions & 12 deletions build-config/renderer-lyric/webpack.config.base.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ const VueLoaderPlugin = require('vue-loader/lib/plugin')
const HTMLPlugin = require('html-webpack-plugin')
const MiniCssExtractPlugin = require('mini-css-extract-plugin')
const CleanCSSPlugin = require('less-plugin-clean-css')
const ESLintPlugin = require('eslint-webpack-plugin')

const vueLoaderConfig = require('../vue-loader.config')
const { mergeCSSLoader } = require('../utils')
Expand Down Expand Up @@ -32,18 +33,6 @@ module.exports = {
},
module: {
rules: [
{
test: /\.(vue|js)$/,
use: {
loader: 'eslint-loader',
options: {
formatter: require('eslint-formatter-friendly'),
emitWarning: isDev,
},
},
exclude: /node_modules/,
enforce: 'pre',
},
{
test: /\.node$/,
use: 'node-loader',
Expand Down Expand Up @@ -147,5 +136,8 @@ module.exports = {
filename: isDev ? '[name].css' : '[name].[contenthash:8].css',
chunkFilename: isDev ? '[id].css' : '[id].[contenthash:8].css',
}),
new ESLintPlugin({
extensions: ['js', 'vue'],
}),
],
}
16 changes: 4 additions & 12 deletions build-config/renderer/webpack.config.base.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ const VueLoaderPlugin = require('vue-loader/lib/plugin')
const HTMLPlugin = require('html-webpack-plugin')
const MiniCssExtractPlugin = require('mini-css-extract-plugin')
const CleanCSSPlugin = require('less-plugin-clean-css')
const ESLintPlugin = require('eslint-webpack-plugin')

const vueLoaderConfig = require('../vue-loader.config')
const { mergeCSSLoader } = require('../utils')
Expand Down Expand Up @@ -32,18 +33,6 @@ module.exports = {
},
module: {
rules: [
{
test: /\.(vue|js)$/,
use: {
loader: 'eslint-loader',
options: {
formatter: require('eslint-formatter-friendly'),
emitWarning: isDev,
},
},
exclude: /node_modules/,
enforce: 'pre',
},
{
test: /\.node$/,
use: 'node-loader',
Expand Down Expand Up @@ -147,5 +136,8 @@ module.exports = {
filename: isDev ? '[name].css' : '[name].[contenthash:8].css',
chunkFilename: isDev ? '[id].css' : '[id].[contenthash:8].css',
}),
new ESLintPlugin({
extensions: ['js', 'vue'],
}),
],
}
Loading

0 comments on commit a386915

Please sign in to comment.