From 88bd9c71f0f21aa4088081afacac1182a7f92528 Mon Sep 17 00:00:00 2001
From: Etherrreal <65111206+lifeafter619@users.noreply.github.com>
Date: Wed, 18 Jan 2023 11:30:15 +0800
Subject: [PATCH 1/5] Update Player.js
---
components/Player.js | 6 ++++--
1 file changed, 4 insertions(+), 2 deletions(-)
diff --git a/components/Player.js b/components/Player.js
index c85b30a0..5bb0b70c 100644
--- a/components/Player.js
+++ b/components/Player.js
@@ -32,12 +32,14 @@ const Player = () => {
{meting
?
Date: Wed, 18 Jan 2023 11:39:47 +0800
Subject: [PATCH 2/5] Update CommonScript.js
---
components/CommonScript.js | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/components/CommonScript.js b/components/CommonScript.js
index 446b0017..954c9f48 100644
--- a/components/CommonScript.js
+++ b/components/CommonScript.js
@@ -103,7 +103,7 @@ const CommonScript = () => {
>)}
{/* 引入音乐播放 */}
- {JSON.parse(BLOG.MUSIC_PLAYER) && }
+ {JSON.parse(BLOG.MUSIC_PLAYER) && }
{JSON.parse(BLOG.MUSIC_PLAYER) && JSON.parse(BLOG.MUSIC_PLAYER_METING) && }
>)
}
From a37cd8ec5f214c9ffeed633199439a17d2748b20 Mon Sep 17 00:00:00 2001
From: tangly1024
Date: Wed, 18 Jan 2023 21:37:53 +0800
Subject: [PATCH 3/5] =?UTF-8?q?=E8=B0=83=E6=95=B4=E9=85=8D=E7=BD=AE?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
blog.config.js | 2 ++
components/CommonScript.js | 2 +-
components/Player.js | 2 +-
3 files changed, 4 insertions(+), 2 deletions(-)
diff --git a/blog.config.js b/blog.config.js
index 653d3fe3..a0047f1c 100644
--- a/blog.config.js
+++ b/blog.config.js
@@ -82,6 +82,8 @@ const BLOG = {
MUSIC_PLAYER_VISIBLE: process.env.NEXT_PUBLIC_MUSIC_PLAYER_VISIBLE || true, // 是否在左下角显示播放和切换,如果使用播放器,打开自动播放再隐藏,就会以类似背景音乐的方式播放,无法取消和暂停
MUSIC_PLAYER_AUTO_PLAY: process.env.NEXT_PUBLIC_MUSIC_PLAYER_AUTO_PLAY || true, // 是否自动播放,不过自动播放时常不生效(移动设备不支持自动播放)
MUSIC_PLAYER_SHOW_LRC: process.env.NEXT_PUBLIC_MUSIC_PLAYER_SHOW_LRC || false, // 是否展示歌词(前提是有配置歌词路径,对 meting 无效)
+ MUSIC_PLAYER_CDN_URL: process.env.NEXT_PUBLIC_MUSIC_PLAYER_CDN_URL || 'https://lf9-cdn-tos.bytecdntp.com/cdn/expire-1-M/aplayer/1.10.1/APlayer.min.js',
+ MUSIC_PLAYER_LRC_TYPE: process.env.NEXT_PUBLIC_MUSIC_PLAYER_LRC_TYPE || '1', // 可选值: 3 | 1 | 0(0:禁用 lrc 歌词,1:lrc 格式的字符串,3:lrc 文件 url)
MUSIC_PLAYER_ORDER: 'list', // 默认播放方式,顺序 list,随机 random
MUSIC_PLAYER_AUDIO_LIST: [ // 示例音乐列表。除了以下配置外,还可配置歌词,具体配置项看此文档 https://aplayer.js.org/#/zh-Hans/
{
diff --git a/components/CommonScript.js b/components/CommonScript.js
index 954c9f48..b2b8c3a1 100644
--- a/components/CommonScript.js
+++ b/components/CommonScript.js
@@ -103,7 +103,7 @@ const CommonScript = () => {
>)}
{/* 引入音乐播放 */}
- {JSON.parse(BLOG.MUSIC_PLAYER) && }
+ {JSON.parse(BLOG.MUSIC_PLAYER) && }
{JSON.parse(BLOG.MUSIC_PLAYER) && JSON.parse(BLOG.MUSIC_PLAYER_METING) && }
>)
}
diff --git a/components/Player.js b/components/Player.js
index 5bb0b70c..f60d76e5 100644
--- a/components/Player.js
+++ b/components/Player.js
@@ -39,7 +39,7 @@ const Player = () => {
fixed="true"
type="playlist"
preload="auto"
- lrc-type="1"
+ lrc-type={BLOG.MUSIC_PLAYER_LRC_TYPE}
autoplay={autoPlay}
order={BLOG.MUSIC_PLAYER_ORDER}
server={BLOG.MUSIC_PLAYER_METING_SERVER}
From 207c3cded88da19a9fe013e43ba3df5f221d7af8 Mon Sep 17 00:00:00 2001
From: tangly1024
Date: Wed, 18 Jan 2023 21:40:27 +0800
Subject: [PATCH 4/5] Meting
---
blog.config.js | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/blog.config.js b/blog.config.js
index a0047f1c..0ad6e76f 100644
--- a/blog.config.js
+++ b/blog.config.js
@@ -83,7 +83,6 @@ const BLOG = {
MUSIC_PLAYER_AUTO_PLAY: process.env.NEXT_PUBLIC_MUSIC_PLAYER_AUTO_PLAY || true, // 是否自动播放,不过自动播放时常不生效(移动设备不支持自动播放)
MUSIC_PLAYER_SHOW_LRC: process.env.NEXT_PUBLIC_MUSIC_PLAYER_SHOW_LRC || false, // 是否展示歌词(前提是有配置歌词路径,对 meting 无效)
MUSIC_PLAYER_CDN_URL: process.env.NEXT_PUBLIC_MUSIC_PLAYER_CDN_URL || 'https://lf9-cdn-tos.bytecdntp.com/cdn/expire-1-M/aplayer/1.10.1/APlayer.min.js',
- MUSIC_PLAYER_LRC_TYPE: process.env.NEXT_PUBLIC_MUSIC_PLAYER_LRC_TYPE || '1', // 可选值: 3 | 1 | 0(0:禁用 lrc 歌词,1:lrc 格式的字符串,3:lrc 文件 url)
MUSIC_PLAYER_ORDER: 'list', // 默认播放方式,顺序 list,随机 random
MUSIC_PLAYER_AUDIO_LIST: [ // 示例音乐列表。除了以下配置外,还可配置歌词,具体配置项看此文档 https://aplayer.js.org/#/zh-Hans/
{
@@ -102,6 +101,7 @@ const BLOG = {
MUSIC_PLAYER_METING: process.env.NEXT_PUBLIC_MUSIC_PLAYER_METING || false, // 是否要开启 MetingJS,从平台获取歌单。会覆盖自定义的 MUSIC_PLAYER_AUDIO_LIST,更多配置信息:https://github.com/metowolf/MetingJS
MUSIC_PLAYER_METING_SERVER: process.env.NEXT_PUBLIC_MUSIC_PLAYER_METING_SERVER || 'netease', // 音乐平台,[netease, tencent, kugou, xiami, baidu]
MUSIC_PLAYER_METING_ID: process.env.NEXT_PUBLIC_MUSIC_PLAYER_METING_ID || '60198', // 对应歌单的 id
+ MUSIC_PLAYER_METING_LRC_TYPE: process.env.NEXT_PUBLIC_MUSIC_PLAYER_METING_LRC_TYPE || '1', // 可选值: 3 | 1 | 0(0:禁用 lrc 歌词,1:lrc 格式的字符串,3:lrc 文件 url)
// ----> 评论互动 可同时开启多个支持 WALINE VALINE GISCUS CUSDIS UTTERRANCES GITALK
From 6f418b98c82b6377fd48f265129c82a3a9b17d90 Mon Sep 17 00:00:00 2001
From: tangly1024
Date: Wed, 18 Jan 2023 21:40:51 +0800
Subject: [PATCH 5/5] MetingJS
---
components/Player.js | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/components/Player.js b/components/Player.js
index f60d76e5..ec0ea461 100644
--- a/components/Player.js
+++ b/components/Player.js
@@ -39,7 +39,7 @@ const Player = () => {
fixed="true"
type="playlist"
preload="auto"
- lrc-type={BLOG.MUSIC_PLAYER_LRC_TYPE}
+ lrc-type={BLOG.MUSIC_PLAYER_METING_LRC_TYPE}
autoplay={autoPlay}
order={BLOG.MUSIC_PLAYER_ORDER}
server={BLOG.MUSIC_PLAYER_METING_SERVER}