Skip to content

Commit c5c89f9

Browse files
committed
Merge branch 'dev'
2 parents 94e9f01 + 6a79f8e commit c5c89f9

294 files changed

Lines changed: 18034 additions & 12760 deletions

File tree

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: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
{
2-
"extends": "standard",
2+
"extends": [
3+
// "plugin:vue/vue3-recommended",
4+
"standard"
5+
],
36
"plugins": [
47
"html"
58
],
@@ -18,7 +21,8 @@
1821
"standard/no-callback-literal": "off",
1922
"prefer-const": "off",
2023
"no-labels": "off",
21-
"node/no-callback-literal": "off"
24+
"node/no-callback-literal": "off",
25+
"vue/multi-word-component-names": "off"
2226
},
2327
"settings": {
2428
"html/html-extensions": [".html", ".vue"]

.github/workflows/beta-pack.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ jobs:
1616
- name: Install Node.js
1717
uses: actions/setup-node@v2
1818
with:
19-
node-version: '14.x'
19+
node-version: '14'
2020

2121
- name: Cache file
2222
uses: actions/cache@v2
@@ -102,7 +102,7 @@ jobs:
102102
- name: Install Node.js
103103
uses: actions/setup-node@v2
104104
with:
105-
node-version: '14.x'
105+
node-version: '14'
106106

107107
- name: Cache file
108108
uses: actions/cache@v2
@@ -156,7 +156,7 @@ jobs:
156156
- name: Install Node.js
157157
uses: actions/setup-node@v2
158158
with:
159-
node-version: '14.x'
159+
node-version: '14'
160160

161161
- name: Cache file
162162
uses: actions/cache@v2

.github/workflows/release.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ jobs:
1616
- name: Install Node.js
1717
uses: actions/setup-node@v2
1818
with:
19-
node-version: '14.x'
19+
node-version: '14'
2020

2121
- name: Cache file
2222
uses: actions/cache@v2
@@ -59,7 +59,7 @@ jobs:
5959
- name: Install Node.js
6060
uses: actions/setup-node@v2
6161
with:
62-
node-version: '14.x'
62+
node-version: '14'
6363

6464
- name: Cache file
6565
uses: actions/cache@v2
@@ -102,7 +102,7 @@ jobs:
102102
- name: Install Node.js
103103
uses: actions/setup-node@v2
104104
with:
105-
node-version: '14.x'
105+
node-version: '14'
106106

107107
- name: Cache file
108108
uses: actions/cache@v2

.ncurc.js

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,12 @@
11
module.exports = {
2-
upgrade: true,
2+
// upgrade: true,
3+
// target: 'newest',
34
reject: [
4-
'vue-loader',
55
'webpack-dev-server',
66
'eslint',
77
'electron',
8-
'electron-builder'
8+
'electron-builder',
9+
'chalk',
910
// 'eslint-config-standard'
1011
]
1112
}

.vscode/settings.json

Lines changed: 7 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,14 @@
11
{
2-
"path-intellisense.mappings": {
3-
"@main/*": "${workspaceFolder}/src/main/*",
4-
"@renderer/*": "${workspaceFolder}/src/renderer/*",
5-
"@lyric/*": "${workspaceFolder}/src/renderer-lyric/*",
6-
"@static/*": "${workspaceFolder}/src/static/*",
7-
"@common/*": "${workspaceFolder}/src/common/*",
8-
},
92
"i18n-ally.localesPaths": [
10-
"src/renderer/lang"
3+
"src/lang"
114
],
5+
// "i18n-ally.fullReloadOnChanged": true,
6+
"i18n-ally.keystyle": "nested",
127
"i18n-ally.displayLanguage": "zh-cn",
138
"i18n-ally.sourceLanguage": "zh-cn",
14-
"i18n-ally.namespace": true,
15-
"i18n-ally.translate.engines": ["google-cn", "google"],
16-
"i18n-ally.pathMatcher": "{locale}/{namespaces}.json",
17-
"i18n-ally.keystyle": "flat",
9+
"i18n-ally.translate.engines": [
10+
"google-cn",
11+
"google"
12+
],
1813
"i18n-ally.sortKeys": true
1914
}

CHANGELOG.md

Lines changed: 43 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,49 @@ 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.16.0](https://github.com/lyswhut/lx-music-desktop/compare/v1.15.3...v1.16.0) - 2022-01-01
10+
11+
这算是一个大版本,对主窗口部分的代码逻辑做了较大改动,但由于界面的改动不大,所以没有更新大版本号。
12+
虽然经过一个月的测试与问题修复,但可能仍然存在未发现的问题,若你发现某些界面异常、某些行为与旧版本存在差异等问题,欢迎反馈!
13+
另外祝大家元旦快乐~
14+
15+
### 新增
16+
17+
- 播放详情页新增音量控制条
18+
- 播放详情页新增桌面歌词切换按钮
19+
- 新增将我的列表保存为TXT、CSV格式,可以去设置-备份与恢复中使用(注意:此类格式的备份目前不支持恢复到LX Music中)
20+
- 新增根据歌曲名、歌手名等字段对列表自动排序的功能,可以在我的列表右击列表名弹出的菜单中使用
21+
- 新增将播放与下载的歌词转换为繁体中文选项,默认关闭,可在设置-播放设置中开启
22+
- 现在已允许进入临时播放列表,即:使用歌单详情页、排行榜名称右键菜单的“播放”按钮播放歌曲时,可右击播放封面进入此临时列表
23+
- 播放详情页新增音频可视化功能(实验性)
24+
- 我的列表新增拖动调整位置功能,按住Ctrl键(Mac上对应Command键)的时候将进入“拖动模式”,此时可以拖动列表的位置来调整顺序
25+
26+
### 优化
27+
28+
- 优化列表性能,软件整体性能
29+
- 调整Mac平台下的图标大小
30+
- 同步功能添加对列表顺序调整的控制,确保手动调整位置后的列表与不同的电脑同步时,列表位置不会被还原
31+
- 优化歌单详情、排行榜名右键的播放按钮的播放机制,现在不用等待整个列表(多页时)加载完成才能播放了
32+
- 为播放详情页、桌面歌词添加延迟滚动,播放详情页略微减小已激活歌词的缩放大小及桌面歌词翻译大小
33+
- 修改右边控制按钮为windows风格
34+
- 更新了新年皮肤的背景与配色,欢迎体验~
35+
36+
### 修复
37+
38+
- 修复kw源某些歌曲的歌词提取异常的问题
39+
40+
### 变更
41+
42+
- 现在使用繁体中文语言时将不再自动转换歌词,转换行为将由上面新增的转换开关控制
43+
44+
### 移除
45+
46+
- 移除我的列表右键菜单的“上移、下移列表”功能,调整改用新增的拖动功能去调整位置
47+
48+
### 其他
49+
50+
- 升级vue到 3.x
51+
952
## [1.15.3](https://github.com/lyswhut/lx-music-desktop/compare/v1.15.2...v1.15.3) - 2021-11-21
1053

1154
### 修复
@@ -21,12 +64,6 @@ Change log format is based on [Keep a Changelog](http://keepachangelog.com/).
2164

2265
- 降级electron到v13.4.0(这修复了windows 7下播放歌曲时软件会崩溃的问题)
2366

24-
## [1.15.3](https://github.com/lyswhut/lx-music-desktop/compare/v1.15.1...v1.15.3) - 2021-11-09
25-
26-
### 其他
27-
28-
- 降级electron到v13.4.0(这修复了windows 7下播放歌曲时软件会崩溃的问题)
29-
3067
## [1.15.1](https://github.com/lyswhut/lx-music-desktop/compare/v1.15.0...v1.15.1) - 2021-11-09
3168

3269
### 优化

FAQ.md

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -123,6 +123,12 @@
123123
- 检查防火墙是否拦截了PC端的服务端口
124124
- 路由器若开启了AP隔离,则此功能无法使用
125125

126+
#### 连接同步服务失败的检查
127+
128+
1. 确保PC端的同步服务已启用成功(若连接码、同步服务地址没有内容,则证明服务启动失败,此时看启用同步功能复选框后面的错误信息自行解决,另外若你不知道端口号是什么意思就不要乱改,或不要改得太大与太小)
129+
2. 在手机浏览器地址栏输入`http://x.x.x.x:23332/hello` **(注:将`x.x.x.x`换成PC端显示的同步服务地址,`23332`为PC端的端口号)** 后回车,若此地址可以打开并显示 `Hello~::^-^::`则证明移动端与PC端网络已互通,
130+
3. 若移动端无法打开第2步的地址,则在PC端的浏览器地址栏输入并打开该地址,若可以打开,则要么是被LX Music PC端被电脑防火墙拦截,要么PC端与移动端不在同一个网络下,或者路由器开启了AP隔离(一般在公共网络下会出现这种情况)
131+
126132
## 界面异常(界面显示不完整)
127133

128134
### Windows 7 下界面异常
@@ -244,6 +250,16 @@ Windows 7 未开启 Aero 效果时桌面歌词会有问题,详情看上面的
244250
- 以管理员权限打开`cmd`,输入`sfc /scannow`回车等待检查完成重启电脑
245251
- 若上面的方法**修复、重启**电脑后仍然不行,就自行百度弹出的**错误信息**看下别人是怎么解决的
246252

253+
## MAC OS无法启动软件,提示 lx-music-desktop 已损坏
254+
255+
这是因为软件没有签名,被系统阻止运行,<br>
256+
在终端里输入 `sudo xattr -rd com.apple.quarantine /Applications/lx-music-desktop.app`,然后输入你的电脑密码即可
257+
258+
还可以参考:
259+
260+
- <http://www.pc6.com/edu/168719.html>
261+
- <https://blog.csdn.net/for641/article/details/104811538>
262+
247263
## 杀毒软件提示有病毒或恶意行为
248264

249265
本人只能保证我写的代码不包含任何**恶意代码****收集用户信息**的行为,并且软件代码已开源,请自行查阅,软件安装包也是由CI拉取源代码构建,构建日志:[GitHub Actions](https://github.com/lyswhut/lx-music-desktop/actions)<br>

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,8 +36,8 @@
3636

3737
所用技术栈:
3838

39-
- Electron 15
40-
- Vue 2
39+
- Electron 13
40+
- Vue 3
4141

4242
已支持的平台:
4343

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
const path = require('path')
22
const { merge } = require('webpack-merge')
33
const webpack = require('webpack')
4-
const FriendlyErrorsPlugin = require('friendly-errors-webpack-plugin')
54

65
const baseConfig = require('./webpack.config.base')
76

@@ -19,17 +18,5 @@ module.exports = merge(baseConfig, {
1918
__static: `"${path.join(__dirname, '../../src/static').replace(/\\/g, '\\\\')}"`,
2019
__userApi: `"${path.join(__dirname, '../../src/main/modules/userApi').replace(/\\/g, '\\\\')}"`,
2120
}),
22-
new FriendlyErrorsPlugin({
23-
onErrors(severity, errors) { // Silent warning from electron-debug
24-
if (severity != 'warning') return
25-
26-
for (let i = errors.length - 1; i > -1; i--) {
27-
const error = errors[i]
28-
if (error.file == './node_modules/electron-debug/index.js') errors.splice(i, 1)
29-
}
30-
// You can listen to errors transformed and prioritized by the plugin
31-
// severity can be 'error' or 'warning'
32-
},
33-
}),
3421
],
3522
})

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

Lines changed: 17 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,7 @@
11
const path = require('path')
2-
const VueLoaderPlugin = require('vue-loader/lib/plugin')
2+
const { VueLoaderPlugin } = require('vue-loader')
33
const HTMLPlugin = require('html-webpack-plugin')
44
const MiniCssExtractPlugin = require('mini-css-extract-plugin')
5-
const CleanCSSPlugin = require('less-plugin-clean-css')
65
const ESLintPlugin = require('eslint-webpack-plugin')
76

87
const vueLoaderConfig = require('../vue-loader.config')
@@ -23,6 +22,7 @@ module.exports = {
2322
},
2423
resolve: {
2524
alias: {
25+
'@': path.join(__dirname, '../../src'),
2626
'@main': path.join(__dirname, '../../src/main'),
2727
'@renderer': path.join(__dirname, '../../src/renderer'),
2828
'@lyric': path.join(__dirname, '../../src/renderer-lyric'),
@@ -57,11 +57,6 @@ module.exports = {
5757
loader: 'less-loader',
5858
options: {
5959
sourceMap: true,
60-
lessOptions: {
61-
plugins: [
62-
new CleanCSSPlugin({ advanced: true }),
63-
],
64-
},
6560
},
6661
}),
6762
},
@@ -81,6 +76,7 @@ module.exports = {
8176
},
8277
{
8378
test: /\.(png|jpe?g|gif|svg)(\?.*)?$/,
79+
exclude: path.join(__dirname, '../../src/renderer/assets/svgs'),
8480
type: 'asset',
8581
parser: {
8682
dataUrlCondition: {
@@ -91,6 +87,20 @@ module.exports = {
9187
filename: 'imgs/[name]-[contenthash:8][ext]',
9288
},
9389
},
90+
{
91+
test: /\.svg$/,
92+
include: path.join(__dirname, '../../src/renderer/assets/svgs'),
93+
use: [
94+
{
95+
loader: 'svg-sprite-loader',
96+
options: {
97+
symbolId: 'icon-[name]',
98+
},
99+
},
100+
'svg-transform-loader',
101+
'svgo-loader',
102+
],
103+
},
94104
{
95105
test: /\.(mp4|webm|ogg|mp3|wav|flac|aac)(\?.*)?$/,
96106
type: 'asset',
@@ -126,7 +136,6 @@ module.exports = {
126136
template: path.join(__dirname, '../../src/renderer-lyric/index.pug'),
127137
isProd: process.env.NODE_ENV == 'production',
128138
browser: process.browser,
129-
scriptLoading: 'blocking',
130139
__dirname,
131140
}),
132141
new VueLoaderPlugin(),

0 commit comments

Comments
 (0)