4 Commits

Author SHA1 Message Date
鲁树人
f0d16e3341 chore: replace leftover links to old repo
Some checks failed
Build / build (push) Has been cancelled
2025-09-03 21:01:11 +09:00
鲁树人
b8f236a962 fix: replace url to old git repo 2025-09-03 20:55:31 +09:00
鲁树人
b6ac6ac4c2 ci: trigger build 2025-09-03 20:13:15 +09:00
鲁树人
f39d6e0e02 build: fix build issue with new git repo 2025-09-03 20:11:41 +09:00
12 changed files with 122 additions and 118 deletions

1
.gitignore vendored
View File

@@ -3,6 +3,7 @@ node_modules
/dist /dist
/build /build
/coverage /coverage
/build
# local env files # local env files
.env.local .env.local

2
.npmrc
View File

@@ -1 +1 @@
@unlock-music:registry=https://git.unlock-music.dev/api/packages/um/npm/ @unlock-music:registry=https://git.um-react.app/api/packages/um/npm/

2
.nvmrc
View File

@@ -1 +1 @@
v16.18.1 v24.7.0

View File

@@ -1,6 +1,6 @@
# Unlock Music 音乐解锁 # Unlock Music 音乐解锁
[![Build Status](https://git.unlock-music.dev/um/web/actions/workflows/build.yml/badge.svg)][ci] [![Build Status](https://git.um-react.app/um/web/actions/workflows/build.yml/badge.svg)][ci]
- 在浏览器中解锁加密的音乐文件。 Unlock encrypted music file in the browser. - 在浏览器中解锁加密的音乐文件。 Unlock encrypted music file in the browser.
- Unlock Music 项目是以学习和技术研究的初衷创建的,修改、再分发时请遵循[授权协议]。 - Unlock Music 项目是以学习和技术研究的初衷创建的,修改、再分发时请遵循[授权协议]。
@@ -11,10 +11,10 @@
> **WARNING** > **WARNING**
> 在本站 fork 不会起到备份的作用,只会浪费服务器储存空间。如无必要请勿 fork 该仓库。 > 在本站 fork 不会起到备份的作用,只会浪费服务器储存空间。如无必要请勿 fork 该仓库。
[授权协议]: https://git.unlock-music.dev/um/web/src/branch/main/LICENSE [授权协议]: https://git.um-react.app/um/web/src/branch/main/LICENSE
[unlock-music/cli]: https://git.unlock-music.dev/um/cli [unlock-music/cli]: https://git.um-react.app/um/cli
[`@unlock_music_chat`]: https://t.me/unlock_music_chat [`@unlock_music_chat`]: https://t.me/unlock_music_chat
[ci]: https://git.unlock-music.dev/um/web/actions?workflow=build.yml [ci]: https://git.um-react.app/um/web/actions?workflow=build.yml
## 特性 ## 特性
@@ -49,7 +49,7 @@
- :warning: 本地使用请下载`legacy版本``modern版本`只能通过 **http(s)协议** 访问) - :warning: 本地使用请下载`legacy版本``modern版本`只能通过 **http(s)协议** 访问)
- 解压缩后即可部署或本地使用(**请勿直接运行源代码** - 解压缩后即可部署或本地使用(**请勿直接运行源代码**
[release]: https://git.unlock-music.dev/um/web/releases/latest [release]: https://git.um-react.app/um/web/releases/latest
### 自行构建 ### 自行构建

View File

@@ -15,7 +15,7 @@
"permissions": ["storage"], "permissions": ["storage"],
"offline_enabled": true, "offline_enabled": true,
"options_page": "index.html", "options_page": "index.html",
"homepage_url": "https://git.unlock-music.dev/um/web", "homepage_url": "https://git.um-react.app/um/web",
"action": { "action": {
"default_icon": "img/icons/favicon-32x32.png", "default_icon": "img/icons/favicon-32x32.png",
"default_popup": "./popup.html" "default_popup": "./popup.html"
@@ -26,4 +26,4 @@
"strict_min_version": "128.0" "strict_min_version": "128.0"
} }
} }
} }

14
package-lock.json generated
View File

@@ -11,7 +11,7 @@
"license": "MIT", "license": "MIT",
"dependencies": { "dependencies": {
"@babel/preset-typescript": "^7.16.5", "@babel/preset-typescript": "^7.16.5",
"@unlock-music/joox-crypto": "^0.0.1", "@unlock-music/joox-crypto": "^0.0.2",
"@xhacker/kgmwasm": "^1.0.0", "@xhacker/kgmwasm": "^1.0.0",
"@xhacker/qmcwasm": "^1.0.0", "@xhacker/qmcwasm": "^1.0.0",
"base64-js": "^1.5.1", "base64-js": "^1.5.1",
@@ -3484,9 +3484,9 @@
"dev": true "dev": true
}, },
"node_modules/@unlock-music/joox-crypto": { "node_modules/@unlock-music/joox-crypto": {
"version": "0.0.1", "version": "0.0.2",
"resolved": "https://git.unlock-music.dev/api/packages/um/npm/%40unlock-music%2Fjoox-crypto/-/0.0.1/joox-crypto-0.0.1.tgz", "resolved": "https://git.um-react.app/api/packages/um/npm/%40unlock-music%2Fjoox-crypto/-/0.0.2/joox-crypto-0.0.2.tgz",
"integrity": "sha512-bj7UcA4/KSqK07PPmoRYJ+3s4h3P45RGUVAMspptMYXobhVkDlB1ArTYNlyIlrF/P0EMy7JkfEdOgUz0nD7EAg==", "integrity": "sha512-TjyT6B3rYL/p4L0ndwlA8uNuFZaC4AXMd1dy90nbwuDVT0OWZMX/RvD4+ue54gfF8+rucdhJJrf7I+snndsywQ==",
"license": "MIT", "license": "MIT",
"dependencies": { "dependencies": {
"crypto-js": "^4.2.0" "crypto-js": "^4.2.0"
@@ -23668,9 +23668,9 @@
"dev": true "dev": true
}, },
"@unlock-music/joox-crypto": { "@unlock-music/joox-crypto": {
"version": "0.0.1", "version": "0.0.2",
"resolved": "https://git.unlock-music.dev/api/packages/um/npm/%40unlock-music%2Fjoox-crypto/-/0.0.1/joox-crypto-0.0.1.tgz", "resolved": "https://git.um-react.app/api/packages/um/npm/%40unlock-music%2Fjoox-crypto/-/0.0.2/joox-crypto-0.0.2.tgz",
"integrity": "sha512-bj7UcA4/KSqK07PPmoRYJ+3s4h3P45RGUVAMspptMYXobhVkDlB1ArTYNlyIlrF/P0EMy7JkfEdOgUz0nD7EAg==", "integrity": "sha512-TjyT6B3rYL/p4L0ndwlA8uNuFZaC4AXMd1dy90nbwuDVT0OWZMX/RvD4+ue54gfF8+rucdhJJrf7I+snndsywQ==",
"requires": { "requires": {
"crypto-js": "^4.2.0" "crypto-js": "^4.2.0"
} }

View File

@@ -7,7 +7,7 @@
"description": "Unlock encrypted music file in browser.", "description": "Unlock encrypted music file in browser.",
"repository": { "repository": {
"type": "git", "type": "git",
"url": "https://git.unlock-music.dev/um/web" "url": "https://git.um-react.app/um/web.git"
}, },
"private": true, "private": true,
"scripts": { "scripts": {
@@ -22,7 +22,7 @@
}, },
"dependencies": { "dependencies": {
"@babel/preset-typescript": "^7.16.5", "@babel/preset-typescript": "^7.16.5",
"@unlock-music/joox-crypto": "^0.0.1", "@unlock-music/joox-crypto": "^0.0.2",
"@xhacker/kgmwasm": "^1.0.0", "@xhacker/kgmwasm": "^1.0.0",
"@xhacker/qmcwasm": "^1.0.0", "@xhacker/qmcwasm": "^1.0.0",
"base64-js": "^1.5.1", "base64-js": "^1.5.1",
@@ -58,4 +58,4 @@
"vue-cli-plugin-element": "^1.0.1", "vue-cli-plugin-element": "^1.0.1",
"vue-template-compiler": "^2.6.14" "vue-template-compiler": "^2.6.14"
} }
} }

View File

@@ -1,89 +1,98 @@
<!DOCTYPE html> <!DOCTYPE html>
<html lang="zh-CN"> <html lang="zh-CN">
<head>
<meta charset="utf-8" />
<meta content="webkit" name="renderer" />
<meta content="IE=edge,chrome=1" http-equiv="X-UA-Compatible" />
<meta content="width=device-width,initial-scale=1.0" name="viewport" />
<title>音乐解锁</title>
<meta content="音乐,解锁,ncm,qmc,mgg,mflac,qq音乐,网易云音乐,加密" name="keywords" />
<meta content="音乐解锁 - 在任何设备上解锁已购的加密音乐!" name="description" />
<style>
#loader {
position: absolute;
left: 50%;
top: 50%;
z-index: 1010;
margin: -75px 0 0 -75px;
border: 16px solid #f3f3f3;
border-radius: 50%;
border-top: 16px solid #1db1ff;
width: 120px;
height: 120px;
animation: spin 2s linear infinite;
}
@keyframes spin {
0% {
transform: rotate(0);
}
100% {
transform: rotate(360deg);
}
}
#loader-mask {
text-align: center;
position: absolute;
width: 100%;
height: 100%;
bottom: 0;
left: 0;
right: 0;
top: 0;
z-index: 1009;
background-color: rgba(242, 246, 252, 0.88);
}
@media (prefers-color-scheme: dark) {
#loader-mask {
color: #fff;
background-color: rgba(0, 0, 0, 0.85);
}
#loader-mask a {
color: #ddd;
}
#loader-mask a:hover {
color: #1db1ff;
}
}
#loader-source {
font-size: 1.5rem;
}
#loader-tips-timeout {
font-size: 1.2rem;
}
</style>
</head>
<body> <head>
<div id="loader-mask"> <meta charset="utf-8" />
<div id="loader"></div> <meta content="webkit" name="renderer" />
<noscript> <meta content="IE=edge,chrome=1" http-equiv="X-UA-Compatible" />
<h3 id="loader-js">请启用JavaScript</h3> <meta content="width=device-width,initial-scale=1.0" name="viewport" />
</noscript> <title>音乐解锁</title>
<h3 id="loader-source">请勿直接运行源代码!</h3> <meta content="音乐,解锁,ncm,qmc,mgg,mflac,qq音乐,网易云音乐,加密" name="keywords" />
<div id="loader-tips-outdated" hidden> <meta content="音乐解锁 - 在任何设备上解锁已购的加密音乐!" name="description" />
<h2>您可能在使用不受支持的<span style="color: #f00">过时</span>浏览器,这可能导致此应用无法正常工作。</h2> <style>
<h3>如果您使用双核浏览器,您可以尝试切换到 <span style="color: #f00">“极速模式”</span> 解决此问题。</h3> #loader {
<h3>或者,您可以尝试更换下方的几个浏览器之一。</h3> position: absolute;
</div> left: 50%;
<h3 id="loader-tips-timeout" hidden> top: 50%;
音乐解锁采用了一些新特性!建议使用 z-index: 1010;
<a href="https://www.microsoft.com/zh-cn/edge" target="_blank">Microsoft Edge Chromium</a> margin: -75px 0 0 -75px;
<a href="https://www.google.cn/chrome/" target="_blank">Google Chrome</a> border: 16px solid #f3f3f3;
<a href="https://www.firefox.com.cn/" target="_blank">Mozilla Firefox</a> border-radius: 50%;
| <a href="https://git.unlock-music.dev/um/web/wiki/使用提示" target="_blank">使用提示</a> border-top: 16px solid #1db1ff;
</h3> width: 120px;
height: 120px;
animation: spin 2s linear infinite;
}
@keyframes spin {
0% {
transform: rotate(0);
}
100% {
transform: rotate(360deg);
}
}
#loader-mask {
text-align: center;
position: absolute;
width: 100%;
height: 100%;
bottom: 0;
left: 0;
right: 0;
top: 0;
z-index: 1009;
background-color: rgba(242, 246, 252, 0.88);
}
@media (prefers-color-scheme: dark) {
#loader-mask {
color: #fff;
background-color: rgba(0, 0, 0, 0.85);
}
#loader-mask a {
color: #ddd;
}
#loader-mask a:hover {
color: #1db1ff;
}
}
#loader-source {
font-size: 1.5rem;
}
#loader-tips-timeout {
font-size: 1.2rem;
}
</style>
</head>
<body>
<div id="loader-mask">
<div id="loader"></div>
<noscript>
<h3 id="loader-js">请启用JavaScript</h3>
</noscript>
<h3 id="loader-source">请勿直接运行源代码!</h3>
<div id="loader-tips-outdated" hidden>
<h2>您可能在使用不受支持的<span style="color: #f00">过时</span>浏览器,这可能导致此应用无法正常工作。</h2>
<h3>如果您使用双核浏览器,您可以尝试切换到 <span style="color: #f00">“极速模式”</span> 解决此问题。</h3>
<h3>或者,您可以尝试更换下方的几个浏览器之一。</h3>
</div> </div>
<div id="app"></div> <h3 id="loader-tips-timeout" hidden>
<script src="./loader.js"></script> 音乐解锁采用了一些新特性!建议使用
</body> <a href="https://www.microsoft.com/zh-cn/edge" target="_blank">Microsoft Edge Chromium</a>
</html> <a href="https://www.google.cn/chrome/" target="_blank">Google Chrome</a>
<a href="https://www.firefox.com.cn/" target="_blank">Mozilla Firefox</a>
</h3>
</div>
<div id="app"></div>
<script src="./loader.js"></script>
</body>
</html>

View File

@@ -5,19 +5,17 @@
</el-main> </el-main>
<el-footer id="app-footer"> <el-footer id="app-footer">
<div> <div>
<a href="https://git.unlock-music.dev/um/web" target="_blank">音乐解锁</a>({{ version }}) <a href="https://git.um-react.app/um/web" target="_blank">音乐解锁</a>({{ version }}) 移除已购音乐的加密保护
移除已购音乐的加密保护
<a href="https://git.unlock-music.dev/um/web/wiki/使用提示" target="_blank">使用提示</a>
</div> </div>
<div> <div>
目前支持 网易云音乐(ncm), QQ音乐(qmc, mflac, mgg), 酷狗音乐(kgm), 虾米音乐(xm), 酷我音乐(.kwm) 目前支持 网易云音乐(ncm), QQ音乐(qmc, mflac, mgg), 酷狗音乐(kgm), 虾米音乐(xm), 酷我音乐(.kwm)
<a href="https://git.unlock-music.dev/um/web/src/branch/main/README.md" target="_blank">更多</a> <a href="https://git.um-react.app/um/web/src/branch/main/README.md" target="_blank">更多</a>
</div> </div>
<div> <div>
<!--如果进行二次开发此行版权信息不得移除且应明显地标注于页面上--> <!--如果进行二次开发此行版权信息不得移除且应明显地标注于页面上-->
<span>Copyright &copy; 2019 - {{ new Date().getFullYear() }} MengYX</span> <span>Copyright &copy; 2019 - {{ new Date().getFullYear() }} MengYX</span>
音乐解锁使用 音乐解锁使用
<a href="https://git.unlock-music.dev/um/web/src/branch/main/LICENSE" target="_blank">MIT许可协议</a> <a href="https://git.um-react.app/um/web/src/branch/main/LICENSE" target="_blank">MIT许可协议</a>
开放源代码 开放源代码
</div> </div>
</el-footer> </el-footer>
@@ -77,7 +75,6 @@ export default {
<div class="update-title">最近更新</div> <div class="update-title">最近更新</div>
<div class="update-content"> ${config.updateInfo} </div> <div class="update-content"> ${config.updateInfo} </div>
</div> </div>
<a target="_blank" href="https://git.unlock-music.dev/um/web/wiki/使用提示">使用提示</a>
</div>`, </div>`,
dangerouslyUseHTMLString: true, dangerouslyUseHTMLString: true,
duration: 10000, duration: 10000,

View File

@@ -34,7 +34,7 @@ form >>> input {
<br /> <br />
参见 参见
<a <a
href="https://git.unlock-music.dev/um/joox-crypto/wiki/%E8%8E%B7%E5%8F%96%E8%AE%BE%E5%A4%87-UUID#%E5%89%8D%E8%A8%80" href="https://git.um-react.app/um/joox-crypto/wiki/%E8%8E%B7%E5%8F%96%E8%AE%BE%E5%A4%87-UUID#%E5%89%8D%E8%A8%80"
> >
获取设备 UUID · unlock-music/joox-crypto Wiki</a 获取设备 UUID · unlock-music/joox-crypto Wiki</a
> >

View File

@@ -103,7 +103,7 @@ export async function Decrypt(file: FileInfo, config: Record<string, any>): Prom
rt_data = await XimalayaDecrypt(file.raw, raw.name, raw.ext); rt_data = await XimalayaDecrypt(file.raw, raw.name, raw.ext);
break; break;
case 'mflach': //QQ Music New Flac case 'mflach': //QQ Music New Flac
throw '网页版无法解锁,请使用<a target="_blank" href="https://git.unlock-music.dev/um/cli">CLI版本</a>' throw '网页版无法解锁,请使用<a target="_blank" href="https://git.um-react.app/um/cli">CLI版本</a>';
default: default:
throw '不支持此文件格式'; throw '不支持此文件格式';
} }

View File

@@ -52,7 +52,8 @@
:table-data="tableData" :table-data="tableData"
@download="saveFile" @download="saveFile"
@edit="editFile" @edit="editFile"
@play="changePlaying" /> @play="changePlaying"
/>
</div> </div>
</template> </template>
@@ -115,11 +116,7 @@ export default {
console.error(errInfo, filename); console.error(errInfo, filename);
this.$notify.error({ this.$notify.error({
title: '出现问题', title: '出现问题',
message: message: errInfo + '' + filename + '。',
errInfo +
'' +
filename +
',参考<a target="_blank" href="https://git.unlock-music.dev/um/web/wiki/使用提示">使用提示</a>',
dangerouslyUseHTMLString: true, dangerouslyUseHTMLString: true,
duration: 6000, duration: 6000,
}); });