Skip to content

Commit

Permalink
准备合并 2.0-dev 分支
Browse files Browse the repository at this point in the history
  • Loading branch information
Steve-xmh committed Apr 8, 2023
2 parents 7ba5d53 + d77b64e commit 2461dfd
Show file tree
Hide file tree
Showing 113 changed files with 5,440 additions and 2,513 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ node_modules/
*.log
*.map
*.plugin
src/**/*.css
lyrics/
/index.js
/lyric-test.js
Expand Down
21 changes: 16 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,12 +1,21 @@
<div align=center>

![](./src/assets/amll-icon.svg)

# Apple Music-like Lyrics

一个基于 [BetterNCM](https://github.com/MicroCBer/BetterNCM) 的类 Apple Music 歌词显示插件
一个基于 [BetterNCM](https://github.com/MicroCBer/BetterNCM)/[MRBNCM](https://github.com/Steve-xmh/mrbncm)/[MMBNCM](https://github.com/Steve-xmh/mmbncm) 的类 Apple Music 歌词显示插件

这是你能在网易云上见到的最像 iPad Apple Music 的播放页面了。

https://user-images.githubusercontent.com/39523898/212098052-86421fa1-558a-481f-b433-b2d1b3ccf3e4.mp4
![](https://user-images.githubusercontent.com/39523898/230704437-9dd0a7f3-adcb-42e4-a19e-797e8abceb74.png)
![](https://user-images.githubusercontent.com/39523898/230704176-610d4a64-b33f-4d3e-934a-4387bd9c81f5.png)
![](https://user-images.githubusercontent.com/39523898/230704540-1b45fdab-be21-4285-a0f6-5abca75103e5.png)
![](https://user-images.githubusercontent.com/39523898/230705199-002402ca-b18a-48d2-b4e7-54054d604af9.png)
![](https://user-images.githubusercontent.com/39523898/230705314-44f28376-c3d8-4119-8482-f441565574db.png)
![](https://user-images.githubusercontent.com/39523898/230705260-79b3c1cb-992f-4388-b3d0-cfb047155d4c.png)

![](./assets/demo0.png)
![](./assets/demo1.png)
</div>

## 安装说明

Expand All @@ -20,7 +29,7 @@ https://user-images.githubusercontent.com/39523898/212098052-86421fa1-558a-481f-

## 开发/构建/打包流程

推荐将本仓库克隆到 BetterNCM 插件目录下的 `plugins_dev` 文件夹内,可以获得自动重载的能力。
安装好 `nodejs``yarn`,克隆本仓库到任意文件夹后在终端输入以下指令即可构建:

```bash
yarn
Expand All @@ -32,5 +41,7 @@ yarn dist # 在发行构建的基础上打包 .plugin 插件文件
## 鸣谢

- [MicroCBer/BetterNCM](https://github.com/MicroCBer/BetterNCM)
- [Steve-xmh/mrbncm](https://github.com/Steve-xmh/mrbncm)
- [Steve-xmh/mmbncm](https://github.com/Steve-xmh/mmbncm)
- [solstice23/refined-now-playing-netease](https://github.com/solstice23/refined-now-playing-netease)
- [Barba828/color-quantize](https://github.com/Barba828/color-quantize)
65 changes: 0 additions & 65 deletions assets/thumbnail.svg

This file was deleted.

9 changes: 8 additions & 1 deletion build.mjs
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import { build, serve } from "esbuild";
import { sassPlugin } from "esbuild-sass-plugin";
import { glsl } from "esbuild-plugin-glsl";
import svgrPlugin from "esbuild-plugin-svgr";
import JSZip from "jszip";
import fs from "fs";
import path from "path";
Expand Down Expand Up @@ -33,6 +34,7 @@ manifest.commit = getCommitHash();
/** @type {any[]} */
const plugins = [
sassPlugin(),
svgrPlugin(),
glsl({
minify: !IS_DEV,
}),
Expand Down Expand Up @@ -69,7 +71,7 @@ const buildOption = {
bundle: true,
sourcemap: IS_DEV ? "inline" : false,
legalComments: "external",
minify: !IS_DEV || process.argv.includes("--dist"),
minify: true,
outdir: process.argv.includes("--dist") ? "dist" : devPath,
target: "safari11",
logOverride: {
Expand Down Expand Up @@ -159,6 +161,11 @@ if (IS_DEV && process.argv.includes("--lyric-test")) {
},
});
output.pipe(fs.createWriteStream("Apple Music-like lyrics.plugin"));
output.pipe(
fs.createWriteStream(
`Apple Music-like lyrics-${getCommitHash()}.plugin`,
),
);
fs.writeFileSync(
"dist/manifest.json",
JSON.stringify(manifest, null, "\t"),
Expand Down
2 changes: 1 addition & 1 deletion dist/index.css

Large diffs are not rendered by default.

62 changes: 31 additions & 31 deletions dist/index.js

Large diffs are not rendered by default.

20 changes: 10 additions & 10 deletions dist/index.js.LEGAL.txt
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,16 @@ react-is/cjs/react-is.production.min.js:
* LICENSE file in the root directory of this source tree.
*/

pangu/dist/browser/pangu.min.js:
/*!
* pangu.js
* --------
* @version: 4.0.7
* @homepage: https://github.com/vinta/pangu.js
* @license: MIT
* @author: Vinta Chen <[email protected]> (https://github.com/vinta)
*/

jszip/dist/jszip.min.js:
/*!

Expand Down Expand Up @@ -76,13 +86,3 @@ prismjs/components/prism-core.js:
* @namespace
* @public
*/

pangu/dist/browser/pangu.min.js:
/*!
* pangu.js
* --------
* @version: 4.0.7
* @homepage: https://github.com/vinta/pangu.js
* @license: MIT
* @author: Vinta Chen <[email protected]> (https://github.com/vinta)
*/
23 changes: 4 additions & 19 deletions dist/manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,21 +7,12 @@
"https://github.com/Steve-xmh",
"https://github.com/Steve-xmh/applemusic-like-lyrics"
],
"description": "一个基于 BetterNCM 的类 Apple Music 歌词显示插件",
"description": "类 Apple Music 歌词页面插件|近乎完美的 Apple Music 歌词体验",
"preview": "preview.svg",
"version": "1.8.7",
"commit": "b693939cf34f83f296b346d40dab6aa849052acd",
"version": "2.0.0",
"commit": "095abeacefce0ede5f1478977e71bc2f81fb1e58",
"type": "extension",
"noDevReload": true,
"requirements": [
"libsonginfo",
"liblyric"
],
"loadAfter": [
"LibSongInfo",
"LibLyric",
"LibFrontendPlay"
],
"incompatible": [
"RefinedNowPlaying"
],
Expand All @@ -34,13 +25,7 @@
]
},
"hijacks": {
">= 2.10.4 <= 2.10.6": {
"orpheus://orpheus/pub/core.": {
"type": "replace",
"id": "core-js-fake-function",
"from": "=Function.prototype;",
"to": "=window.FakeFunction||Function.prototype;"
},
">= 1.0.0": {
"orpheus://orpheus/pub/app.html": {
"type": "replace",
"id": "csp-worker",
Expand Down
Loading

0 comments on commit 2461dfd

Please sign in to comment.