From 6f405b5e06279c0aced7e80b7a7c562ad5a95a88 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=B2=81=E6=A0=91=E4=BA=BA?= Date: Sat, 15 Jul 2023 20:10:07 +0100 Subject: [PATCH 1/2] chore: replace url to old github project (fix #53) --- extension-manifest.json | 8 ++- package.json | 4 +- public/index.html | 106 ++++++++++++++++++++++-------- src/App.vue | 10 +-- src/component/ConfigDialog.vue | 4 +- src/decrypt/__test__/joox.test.ts | 2 +- src/view/Home.vue | 23 +++++-- 7 files changed, 110 insertions(+), 47 deletions(-) diff --git a/extension-manifest.json b/extension-manifest.json index eaa9512..b31cb73 100644 --- a/extension-manifest.json +++ b/extension-manifest.json @@ -6,11 +6,13 @@ "128": "./img/icons/msapplication-icon-144x144.png" }, "description": "在任何设备上解锁已购的加密音乐!", - "permissions": ["storage"], + "permissions": [ + "storage" + ], "offline_enabled": true, "options_page": "./index.html", - "homepage_url": "https://github.com/ix64/unlock-music", + "homepage_url": "https://git.unlock-music.dev/um/web", "browser_action": { "default_popup": "./popup.html" } -} +} \ No newline at end of file diff --git a/package.json b/package.json index 1d4549b..271a267 100644 --- a/package.json +++ b/package.json @@ -7,7 +7,7 @@ "description": "Unlock encrypted music file in browser.", "repository": { "type": "git", - "url": "https://github.com/ix64/unlock-music" + "url": "https://git.unlock-music.dev/um/web" }, "private": true, "scripts": { @@ -57,4 +57,4 @@ "vue-cli-plugin-element": "^1.0.1", "vue-template-compiler": "^2.6.14" } -} +} \ No newline at end of file diff --git a/public/index.html b/public/index.html index 0b295d7..16ced03 100644 --- a/public/index.html +++ b/public/index.html @@ -1,39 +1,89 @@ - - - - - + + + + + 音乐解锁 - - - - - - - + + + + -
-
-
+
+ + diff --git a/src/App.vue b/src/App.vue index 176b755..c52a138 100644 --- a/src/App.vue +++ b/src/App.vue @@ -5,19 +5,19 @@ - 音乐解锁({{ version }}) + 音乐解锁({{ version }}) :移除已购音乐的加密保护。 - 使用提示 + 使用提示 目前支持 网易云音乐(ncm), QQ音乐(qmc, mflac, mgg), 酷狗音乐(kgm), 虾米音乐(xm), 酷我音乐(.kwm) - 更多。 + 更多 Copyright © 2019 - {{ new Date().getFullYear() }} MengYX 音乐解锁使用 - MIT许可协议 + MIT许可协议 开放源代码 @@ -77,7 +77,7 @@ export default {
最近更新
${config.updateInfo}
- 使用提示 + 使用提示 `, dangerouslyUseHTMLString: true, duration: 10000, diff --git a/src/component/ConfigDialog.vue b/src/component/ConfigDialog.vue index 8523f02..b0e4155 100644 --- a/src/component/ConfigDialog.vue +++ b/src/component/ConfigDialog.vue @@ -43,7 +43,9 @@ form >>> input { 下载该加密文件的 JOOX 应用所记录的设备唯一识别码。
参见: - + 获取设备 UUID · unlock-music/joox-crypto Wiki

diff --git a/src/decrypt/__test__/joox.test.ts b/src/decrypt/__test__/joox.test.ts index dd0af1d..3960549 100644 --- a/src/decrypt/__test__/joox.test.ts +++ b/src/decrypt/__test__/joox.test.ts @@ -22,7 +22,7 @@ describe('decrypt/joox', () => { album: 'unused', blob: blob, artist: 'unused', - imgUrl: 'https://github.com/unlock-music', + imgUrl: 'https://example.unlock-music.dev/', }; }); diff --git a/src/view/Home.vue b/src/view/Home.vue index 69a6f5d..579e574 100644 --- a/src/view/Home.vue +++ b/src/view/Home.vue @@ -18,7 +18,9 @@ :album="editing_data.album" :albumartist="editing_data.albumartist" :genre="editing_data.genre" - @cancel="showEditDialog = false" @ok="handleEdit"> + @cancel="showEditDialog = false" + @ok="handleEdit" + >
@@ -37,14 +39,20 @@ 开启后,解锁结果将不会存留于浏览器中,防止内存不足。
- 立即保存 + 立即保存