From c3aea5ee8dfcf82e3361a6f298312db9c1374bbd Mon Sep 17 00:00:00 2001 From: qier222 Date: Tue, 10 May 2022 12:15:03 +0800 Subject: [PATCH 1/4] fix: bug --- src/views/settings.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/views/settings.vue b/src/views/settings.vue index d1cab4e..840a05b 100644 --- a/src/views/settings.vue +++ b/src/views/settings.vue @@ -679,7 +679,7 @@

v{{ version }}

Date: Thu, 12 May 2022 01:23:13 +0800 Subject: [PATCH 2/4] =?UTF-8?q?fix:=20=E4=B8=93=E8=BE=91=E5=88=86=E7=A2=9F?= =?UTF-8?q?=E6=8E=92=E5=BA=8F=E9=94=99=E8=AF=AF=20(#1630)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * fix: 专辑分碟排序错误 * update --- src/views/album.vue | 17 +++++++++++------ 1 file changed, 11 insertions(+), 6 deletions(-) diff --git a/src/views/album.vue b/src/views/album.vue index f90fa19..a8350df 100644 --- a/src/views/album.vue +++ b/src/views/album.vue @@ -71,12 +71,12 @@ -
-
-

Disc {{ cd }}

+
+
+

Disc {{ item.disc }}

@@ -153,7 +153,7 @@ import locale from '@/locale'; import { splitSoundtrackAlbumTitle, splitAlbumTitle } from '@/utils/common'; import NProgress from 'nprogress'; import { isAccountLoggedIn } from '@/utils/auth'; -import { groupBy } from 'lodash'; +import { groupBy, toPairs, sortBy } from 'lodash'; import ExplicitSymbol from '@/components/ExplicitSymbol.vue'; import ButtonTwoTone from '@/components/ButtonTwoTone.vue'; @@ -222,7 +222,12 @@ export default { } }, tracksByDisc() { - return groupBy(this.tracks, 'cd'); + if (this.tracks.length <= 1) return []; + const pairs = toPairs(groupBy(this.tracks, 'cd')); + return sortBy(pairs, p => p[0]).map(items => ({ + disc: items[0], + tracks: items[1], + })); }, }, created() { From f355d5da5056cf06fefe7de3b39b3eaedb99aa33 Mon Sep 17 00:00:00 2001 From: pan93412 Date: Sat, 14 May 2022 20:07:13 +0800 Subject: [PATCH 3/4] =?UTF-8?q?fix(dockerfile):=20=E9=99=90=E5=88=B6?= =?UTF-8?q?=E6=9C=80=E5=A4=A7=E6=A8=99=E9=A0=AD=E5=A4=A7=E5=B0=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 原本的Nginx.conf没有定义最大标头大小。若不手动更改,则会出现无法登陆的bug,且Nginx会返回Header too big错误。 Fixed #1604 Co-Authored-By: huangyinhaow <64564727+huangyinhaow@users.noreply.github.com> --- Dockerfile | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Dockerfile b/Dockerfile index 21db7b8..c493b8d 100644 --- a/Dockerfile +++ b/Dockerfile @@ -25,6 +25,9 @@ RUN echo $'server { \n\ } \n\ \n\ location /api/ { \n\ + proxy_buffer_size 128k; \n\ + proxy_buffers 16 32k; \n\ + proxy_busy_buffers_size 128k; \n\ proxy_set_header Host $host; \n\ proxy_set_header X-Real-IP $remote_addr; \n\ proxy_set_header X-Forwarded-For $remote_addr; \n\ From cb59eb94a12dceb6203d16d9bf28892c7c1b17b3 Mon Sep 17 00:00:00 2001 From: qier222 Date: Fri, 20 May 2022 00:07:55 +0800 Subject: [PATCH 4/4] docs: update vercel links --- README.md | 2 +- src/views/settings.vue | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 22803cf..222d640 100644 --- a/README.md +++ b/README.md @@ -57,7 +57,7 @@ Electron 版本由 [@hawtim](https://github.com/hawtim) 和 [@qier222](https://g 本项目的 Demo (https://music.qier222.com) 就是部署在 Vercel 上的网站。 -[![Powered by Vercel](https://www.datocms-assets.com/31049/1618983297-powered-by-vercel.svg)](https://vercel.com/?utm_source=ypm&utm_campaign=oss) +[![Powered by Vercel](https://www.datocms-assets.com/31049/1618983297-powered-by-vercel.svg)](https://vercel.com/?utm_source=ohmusic&utm_campaign=oss) 1. 部署网易云 API,详情参见 [Binaryify/NeteaseCloudMusicApi](https://neteasecloudmusicapi.vercel.app/#/?id=%e5%ae%89%e8%a3%85) 。你也可以将 API 部署到 Vercel。 diff --git a/src/views/settings.vue b/src/views/settings.vue index 840a05b..bf9564a 100644 --- a/src/views/settings.vue +++ b/src/views/settings.vue @@ -680,7 +680,7 @@