Compare commits
7 Commits
Author | SHA1 | Date | |
---|---|---|---|
![]() |
a483594c4b | ||
![]() |
014fe5ae26 | ||
![]() |
73f3959094 | ||
![]() |
48658701a2 | ||
![]() |
c4e9fb0dcc | ||
![]() |
d51d7ec773 | ||
![]() |
683f58964c |
@@ -26,7 +26,7 @@ steps:
|
|||||||
- name: build
|
- name: build
|
||||||
image: node:lts
|
image: node:lts
|
||||||
commands:
|
commands:
|
||||||
- npm run build
|
- npm run build -- --modern
|
||||||
- tar -czf dist.tar.gz ./dist/*
|
- tar -czf dist.tar.gz ./dist/*
|
||||||
|
|
||||||
- name: release
|
- name: release
|
||||||
|
25
README.md
25
README.md
@@ -5,7 +5,7 @@
|
|||||||
|
|
||||||
[](https://ci.ixarea.com/ix64/unlock-music)
|
[](https://ci.ixarea.com/ix64/unlock-music)
|
||||||
|
|
||||||
## Features
|
# Features
|
||||||
- [x] Unlock in browser 在浏览器中解锁
|
- [x] Unlock in browser 在浏览器中解锁
|
||||||
- [x] QQMusic File QQ音乐格式 (.qmc0/.qmc3/.qmcflac/.qmcogg)
|
- [x] QQMusic File QQ音乐格式 (.qmc0/.qmc3/.qmcflac/.qmcogg)
|
||||||
- [ ] QQMusic New Format QQ音乐新格式
|
- [ ] QQMusic New Format QQ音乐新格式
|
||||||
@@ -19,17 +19,14 @@
|
|||||||
- [x] Complete ID3 for ncm 补全ncm的ID3信息
|
- [x] Complete ID3 for ncm 补全ncm的ID3信息
|
||||||
- [ ] Multi-language 多语言
|
- [ ] Multi-language 多语言
|
||||||
|
|
||||||
## Project setup
|
# 使用方法
|
||||||
```
|
## 下载已构建版本
|
||||||
npm install
|
- 已构建的版本发布在 [GitHub Release](https://github.com/ix64/unlock-music/releases/latest), 下载解压缩后即可部署或本地使用
|
||||||
```
|
|
||||||
|
|
||||||
### Compiles and hot-reloads for development
|
## 自行构建
|
||||||
```
|
- 环境要求
|
||||||
npm run serve
|
- nodejs
|
||||||
```
|
- npm
|
||||||
|
1. 获取项目源代码后执行 `npm install` 安装相关依赖
|
||||||
### Compiles and minifies for production
|
2. 执行 `npm run build` 即可进行构建,构建输出为 dist 目录
|
||||||
```
|
- `npm run serve` 可用于开发
|
||||||
npm run build
|
|
||||||
```
|
|
||||||
|
12
package-lock.json
generated
12
package-lock.json
generated
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "unlock-music",
|
"name": "unlock-music",
|
||||||
"version": "0.2.0",
|
"version": "1.0.1",
|
||||||
"lockfileVersion": 1,
|
"lockfileVersion": 1,
|
||||||
"requires": true,
|
"requires": true,
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
@@ -1774,7 +1774,7 @@
|
|||||||
},
|
},
|
||||||
"async-validator": {
|
"async-validator": {
|
||||||
"version": "1.8.5",
|
"version": "1.8.5",
|
||||||
"resolved": "https://registry.npm.taobao.org/async-validator/download/async-validator-1.8.5.tgz",
|
"resolved": "https://registry.npm.taobao.org/async-validator/download/async-validator-1.8.5.tgz?cache=0&sync_timestamp=1573494332941&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2Fasync-validator%2Fdownload%2Fasync-validator-1.8.5.tgz",
|
||||||
"integrity": "sha1-3D4I7B/Q3dtn5ghC8CwM0c7G1/A=",
|
"integrity": "sha1-3D4I7B/Q3dtn5ghC8CwM0c7G1/A=",
|
||||||
"requires": {
|
"requires": {
|
||||||
"babel-runtime": "6.x"
|
"babel-runtime": "6.x"
|
||||||
@@ -3988,9 +3988,9 @@
|
|||||||
"dev": true
|
"dev": true
|
||||||
},
|
},
|
||||||
"element-ui": {
|
"element-ui": {
|
||||||
"version": "2.12.0",
|
"version": "2.13.0",
|
||||||
"resolved": "https://registry.npm.taobao.org/element-ui/download/element-ui-2.12.0.tgz",
|
"resolved": "https://registry.npm.taobao.org/element-ui/download/element-ui-2.13.0.tgz",
|
||||||
"integrity": "sha1-qJO8Ea5Pfbt+nVQWBvI+ZD8THuQ=",
|
"integrity": "sha1-9rsE5bCnbqX2JGYES3dEB7pOvS0=",
|
||||||
"requires": {
|
"requires": {
|
||||||
"async-validator": "~1.8.1",
|
"async-validator": "~1.8.1",
|
||||||
"babel-helper-vue-jsx-merge-props": "^2.0.0",
|
"babel-helper-vue-jsx-merge-props": "^2.0.0",
|
||||||
@@ -10044,7 +10044,7 @@
|
|||||||
},
|
},
|
||||||
"typedarray-to-buffer": {
|
"typedarray-to-buffer": {
|
||||||
"version": "3.1.5",
|
"version": "3.1.5",
|
||||||
"resolved": "https://registry.npm.taobao.org/typedarray-to-buffer/download/typedarray-to-buffer-3.1.5.tgz",
|
"resolved": "https://registry.npm.taobao.org/typedarray-to-buffer/download/typedarray-to-buffer-3.1.5.tgz?cache=0&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2Ftypedarray-to-buffer%2Fdownload%2Ftypedarray-to-buffer-3.1.5.tgz",
|
||||||
"integrity": "sha1-qX7nqf9CaRufeD/xvFES/j/KkIA=",
|
"integrity": "sha1-qX7nqf9CaRufeD/xvFES/j/KkIA=",
|
||||||
"requires": {
|
"requires": {
|
||||||
"is-typedarray": "^1.0.0"
|
"is-typedarray": "^1.0.0"
|
||||||
|
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "unlock-music",
|
"name": "unlock-music",
|
||||||
"version": "0.2.0",
|
"version": "1.0.2",
|
||||||
"private": true,
|
"private": true,
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"serve": "vue-cli-service serve",
|
"serve": "vue-cli-service serve",
|
||||||
@@ -10,7 +10,7 @@
|
|||||||
"browser-id3-writer": "^4.3.0",
|
"browser-id3-writer": "^4.3.0",
|
||||||
"core-js": "^2.6.10",
|
"core-js": "^2.6.10",
|
||||||
"crypto-js": "^3.1.9-1",
|
"crypto-js": "^3.1.9-1",
|
||||||
"element-ui": "^2.11.1",
|
"element-ui": "^2.13.0",
|
||||||
"music-metadata-browser": "^1.8.1",
|
"music-metadata-browser": "^1.8.1",
|
||||||
"register-service-worker": "^1.6.2",
|
"register-service-worker": "^1.6.2",
|
||||||
"vue": "^2.6.10"
|
"vue": "^2.6.10"
|
||||||
|
@@ -5,7 +5,7 @@
|
|||||||
<meta content="IE=edge" http-equiv="X-UA-Compatible">
|
<meta content="IE=edge" http-equiv="X-UA-Compatible">
|
||||||
<meta content="width=device-width,initial-scale=1.0" name="viewport">
|
<meta content="width=device-width,initial-scale=1.0" name="viewport">
|
||||||
<script>var _paq = window._paq || [];
|
<script>var _paq = window._paq || [];
|
||||||
_paq.push(['trackPageView'], ['enableLinkTracking'], ['setSiteId', '2'],
|
_paq.push(['setRequestMethod', 'POST'], ['trackPageView'], ['enableLinkTracking'], ['setSiteId', '2'],
|
||||||
['setTrackerUrl', 'https://stats.ixarea.com/ixarea-stats/report']);
|
['setTrackerUrl', 'https://stats.ixarea.com/ixarea-stats/report']);
|
||||||
</script>
|
</script>
|
||||||
<script async src="https://stats.ixarea.com/ixarea-stats.js"></script>
|
<script async src="https://stats.ixarea.com/ixarea-stats.js"></script>
|
||||||
|
25
src/App.vue
25
src/App.vue
@@ -6,7 +6,6 @@
|
|||||||
:auto-upload="false"
|
:auto-upload="false"
|
||||||
:on-change="handleFile"
|
:on-change="handleFile"
|
||||||
:show-file-list="false"
|
:show-file-list="false"
|
||||||
accept=".ncm,.qmc0,.qmc3,.qmcflac,.qmcogg,.mflac"
|
|
||||||
action=""
|
action=""
|
||||||
drag
|
drag
|
||||||
multiple>
|
multiple>
|
||||||
@@ -111,9 +110,11 @@
|
|||||||
document.getElementById("loader-mask").remove();
|
document.getElementById("loader-mask").remove();
|
||||||
this.$notify.info({
|
this.$notify.info({
|
||||||
title: '离线使用',
|
title: '离线使用',
|
||||||
message: '我们使用PWA技术,添加到桌面或收藏夹,无网络也能使用。点击查看<a target="_blank" href="https://github.com/ix64/unlock-music/wiki/使用提示">使用提示</a>',
|
message: '我们使用PWA技术,无网络也能使用<br/>' +
|
||||||
|
'最近更新:支持qmcogg,mflac<br/>' +
|
||||||
|
'点击查看 <a target="_blank" href="https://github.com/ix64/unlock-music/wiki/使用提示">使用提示</a>',
|
||||||
dangerouslyUseHTMLString: true,
|
dangerouslyUseHTMLString: true,
|
||||||
duration: 30000,
|
duration: 10000,
|
||||||
position: 'top-left'
|
position: 'top-left'
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
@@ -149,25 +150,21 @@
|
|||||||
this.tableData.push(data);
|
this.tableData.push(data);
|
||||||
this.$notify.success({
|
this.$notify.success({
|
||||||
title: '解锁成功',
|
title: '解锁成功',
|
||||||
message: '成功解锁 ' + data.title
|
message: '成功解锁 ' + data.title,
|
||||||
|
duration: 3000
|
||||||
});
|
});
|
||||||
let _rp_data = {
|
let _rp_data = [data.title, data.artist, data.album];
|
||||||
original: file.name,
|
|
||||||
title: data.title,
|
|
||||||
album: data.album,
|
|
||||||
artist: data.artist,
|
|
||||||
mime: data.mime
|
|
||||||
};
|
|
||||||
console.log(data);
|
console.log(data);
|
||||||
window._paq.push(["trackEvent", "Unlock", "Success", JSON.stringify(_rp_data)]);
|
window._paq.push(["trackEvent", "Unlock", ext + "," + data.mime, JSON.stringify(_rp_data)]);
|
||||||
} else {
|
} else {
|
||||||
this.$notify.error({
|
this.$notify.error({
|
||||||
title: '出现问题',
|
title: '出现问题',
|
||||||
message: data.message + "," + file.name +
|
message: data.message + "," + file.name +
|
||||||
',参考<a target="_blank" href="https://github.com/ix64/unlock-music/wiki/使用提示">使用提示</a>',
|
',参考<a target="_blank" href="https://github.com/ix64/unlock-music/wiki/使用提示">使用提示</a>',
|
||||||
dangerouslyUseHTMLString: true
|
dangerouslyUseHTMLString: true,
|
||||||
|
duration: 6000
|
||||||
});
|
});
|
||||||
window._paq.push(["trackEvent", "Unlock", "Error", file.name]);
|
window._paq.push(["trackEvent", "Error", data.message, file.name]);
|
||||||
}
|
}
|
||||||
})();
|
})();
|
||||||
},
|
},
|
||||||
|
@@ -1,4 +1,4 @@
|
|||||||
module.exports = {
|
module.exports = {
|
||||||
publicPath: '',
|
publicPath: '',
|
||||||
productionSourceMap: false
|
productionSourceMap: true
|
||||||
};
|
};
|
Reference in New Issue
Block a user