16 Commits
1.1.0 ... 1.1.3

Author SHA1 Message Date
MengYX
05cdd7b896 Merge branch 'ix-master' 2020-02-05 02:08:08 +08:00
MengYX
91ba19d878 Bump Version 2020-02-05 01:58:53 +08:00
MengYX
a7c7b6cbfa Add instant download to avoid memory occupation 2020-02-05 01:53:58 +08:00
MengYX
50fbb69394 Merge branch 'pull/17'
# Conflicts:
#	src/App.vue
2020-02-05 01:38:34 +08:00
MengYX
402fb184f7 Add Web Worker 2020-02-05 00:30:44 +08:00
MengYX
0766e2fcb0 Merge pull request #16 from smtop/dev
增加歌曲命名格式选项
2020-02-04 19:41:01 +08:00
1519715742@qq.com
92bd0f6be3 Performance improvement in multiple files 2020-02-04 19:12:44 +08:00
smdev
9c6af8ff9c 增加歌曲命名格式选项 2020-02-04 18:24:53 +08:00
MengYX
8094f3ad58 Update CI 2020-02-01 12:05:00 +08:00
MengYX
e6a81f8546 Edit index.html Upgrade Dependencies 2020-01-31 11:47:16 +08:00
MengYX
211b4e0206 #9 Add QQ Music tkm Format 2020-01-27 18:02:39 +08:00
MengYX
4cd5b45986 Fix QMC filename error 2020-01-27 16:43:40 +08:00
MengYX
60445b7ed9 #11 Add Moo Music Format 2020-01-27 14:06:45 +08:00
MengYX
4e499b2deb Merge branch 'master' of github.com:ix64/unlock-music 2020-01-21 20:00:20 +08:00
MengYX
51a5a8a44f Update README.md 2019-12-23 19:09:24 +08:00
MengYX
2fb5aecdb2 Update README.md 2019-12-16 19:01:56 +08:00
13 changed files with 496 additions and 396 deletions

View File

@@ -16,9 +16,9 @@ steps:
image: node:lts image: node:lts
commands: commands:
- npm run build - npm run build
- tar -czf legacy.tar.gz ./dist/* - tar -czf legacy.tar.gz -C ./dist .
- npm run build -- --modern - npm run build -- --modern
- tar -czf morden.tar.gz ./dist/* - tar -czf morden.tar.gz -C ./dist .
- name: release - name: release
@@ -44,11 +44,21 @@ steps:
secret_key: secret_key:
from_secret: aws_secret_access_key from_secret: aws_secret_access_key
source: dist/**/* source: dist/**/*
target: / strip_prefix: dist/
target: /public
path_style: true path_style: true
endpoint: https://fs.sz2.ixarea.com endpoint: https://fs.sz2.ixarea.com
volumes:
- name: cache - name: upload
host: image: plugins/s3
path: /tmp/cache settings:
bucket: unlock-music
access_key:
from_secret: aws_access_key_id
secret_key:
from_secret: aws_secret_access_key
source: ./*.tar.gz
target: /build/${DRONE_BUILD_NUMBER}
path_style: true
endpoint: https://fs.sz2.ixarea.com

View File

@@ -1,14 +1,16 @@
# Unlock Music 音乐解锁 # Unlock Music 音乐解锁
- Unlock encrypted music file in browser. - Unlock encrypted music file in browser.
- 在浏览器中解锁加密的音乐文件。 - 在浏览器中解锁加密的音乐文件。
- [Online Demo](https://tool.ixarea.com/music) - unlock-music项目是以学习和技术研究的初衷创建的。
- 由于存在可能的法律风险以及滥用风险不再提供Demo服务。
[![Build Status](https://ci.ixarea.com/api/badges/ix64/unlock-music/status.svg)](https://ci.ixarea.com/ix64/unlock-music) [![Build Status](https://ci.ixarea.com/api/badges/ix64/unlock-music/status.svg)](https://ci.ixarea.com/ix64/unlock-music)
# Features # Features
- [x] Unlock in browser 在浏览器中解锁 - [x] Unlock in browser 在浏览器中解锁
- [x] QQMusic Format QQ音乐格式 (.qmc0/.qmc3/.qmcflac/.qmcogg) - [x] QQMusic Format QQ音乐格式 (.qmc0/.qmc3/.qmcflac/.qmcogg/.tkm)
- [x] QQMusic Tm Format QQ音乐 (.tm0/.tm2/.tm3/.tm6) - [x] MooMusic Format Moo音乐格式 ([.bkcmp3/.bkcflac](https://github.com/ix64/unlock-music/issues/11))
- [x] QQMusic Tm Format QQ音乐Tm格式 (.tm0/.tm2/.tm3/.tm6)
- [ ] QQMusic New Format QQ音乐新格式 - [ ] QQMusic New Format QQ音乐新格式
- [x] .mflac (Partial 部分支持) - [x] .mflac (Partial 部分支持)
- [ ] .mgg - [ ] .mgg
@@ -18,7 +20,6 @@
- [x] Batch unlocking 批量解锁 - [x] Batch unlocking 批量解锁
- [x] Progressive Web App 渐进式Web应用 - [x] Progressive Web App 渐进式Web应用
- [x] Complete ID3 for ncm 补全ncm的ID3信息 - [x] Complete ID3 for ncm 补全ncm的ID3信息
- [ ] Multi-language 多语言
# 使用方法 # 使用方法
## 下载已构建版本 ## 下载已构建版本

581
package-lock.json generated

File diff suppressed because it is too large Load Diff

View File

@@ -1,6 +1,6 @@
{ {
"name": "unlock-music", "name": "unlock-music",
"version": "1.1.0", "version": "1.1.3",
"private": true, "private": true,
"scripts": { "scripts": {
"serve": "vue-cli-service serve", "serve": "vue-cli-service serve",
@@ -11,7 +11,7 @@
"core-js": "^3.6.4", "core-js": "^3.6.4",
"crypto-js": "^3.1.9-1", "crypto-js": "^3.1.9-1",
"element-ui": "^2.13.0", "element-ui": "^2.13.0",
"music-metadata-browser": "^1.10.0", "music-metadata-browser": "^2.0.3",
"register-service-worker": "^1.6.2", "register-service-worker": "^1.6.2",
"vue": "^2.6.11" "vue": "^2.6.11"
}, },
@@ -21,6 +21,7 @@
"@vue/cli-service": "^4.1.2", "@vue/cli-service": "^4.1.2",
"babel-plugin-component": "^1.1.1", "babel-plugin-component": "^1.1.1",
"vue-cli-plugin-element": "^1.0.1", "vue-cli-plugin-element": "^1.0.1",
"vue-template-compiler": "^2.6.11" "vue-template-compiler": "^2.6.11",
"workerize-loader": "^1.1.0"
} }
} }

View File

@@ -12,43 +12,7 @@
<title>音乐解锁 - By IXarea</title> <title>音乐解锁 - By IXarea</title>
<meta content="音乐,解锁,ncm,qmc,qmc0,qmc3,qmcflac,qmcogg,mflac,qq音乐,网易云音乐,加密" name="keywords"/> <meta content="音乐,解锁,ncm,qmc,qmc0,qmc3,qmcflac,qmcogg,mflac,qq音乐,网易云音乐,加密" name="keywords"/>
<meta content="音乐解锁 - 在任何设备上解锁已购的加密音乐!" name="description"/> <meta content="音乐解锁 - 在任何设备上解锁已购的加密音乐!" name="description"/>
<style> <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 #3498db;width:120px;height:120px;animation:spin 2s linear infinite}@keyframes spin{0%{transform:rotate(0deg)}100%{transform:rotate(360deg)}}#loader-mask{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)}</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 #3498db;
width: 120px;
height: 120px;
animation: spin 2s linear infinite;
}
@keyframes spin {
0% {
transform: rotate(0deg);
}
100% {
transform: rotate(360deg);
}
}
#loader-mask {
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);
}
</style>
</head> </head>
<body> <body>
@@ -62,6 +26,7 @@
<strong>音乐解锁采用了一些新特性!建议使用 <strong>音乐解锁采用了一些新特性!建议使用
<a href="https://www.google.cn/chrome/" target="_blank">Google Chrome</a> <a href="https://www.google.cn/chrome/" target="_blank">Google Chrome</a>
<a href="https://www.firefox.com.cn/" target="_blank">Mozilla Firefox</a> <a href="https://www.firefox.com.cn/" target="_blank">Mozilla Firefox</a>
<a href="https://www.microsoftedgeinsider.com/zh-cn/download" target="_blank">Mozilla Firefox</a>
| <a href="https://github.com/ix64/unlock-music/wiki/使用提示" target="_blank">使用提示</a> | <a href="https://github.com/ix64/unlock-music/wiki/使用提示" target="_blank">使用提示</a>
</strong> </strong>
</div> </div>

View File

@@ -9,18 +9,26 @@
action="" action=""
drag drag
multiple> multiple>
<i class="el-icon-upload"></i> <i class="el-icon-upload"/>
<div class="el-upload__text">将文件拖到此处<em>点击选择</em></div> <div class="el-upload__text">将文件拖到此处<em>点击选择</em></div>
<div class="el-upload__tip" slot="tip">本工具仅在浏览器内对文件进行解锁无需消耗流量</div> <div class="el-upload__tip" slot="tip">本工具仅在浏览器内对文件进行解锁无需消耗流量</div>
</el-upload> </el-upload>
<el-row id="app-control"> <el-row id="app-control">
<el-row style="padding-bottom: 1em; font-size: 14px">
歌曲命名格式
<el-radio name="format" v-model="format" label="1">歌曲名</el-radio>
<el-radio name="format" v-model="format" label="2">歌手-歌曲名</el-radio>
<el-radio name="format" v-model="format" label="3">歌曲名-歌手</el-radio>
<el-checkbox v-model="instantDownload" border>立即保存</el-checkbox>
</el-row>
<el-button @click="handleDownloadAll" icon="el-icon-download" plain>下载全部</el-button> <el-button @click="handleDownloadAll" icon="el-icon-download" plain>下载全部</el-button>
<el-button @click="handleDeleteAll" icon="el-icon-delete" plain type="danger">删除全部</el-button> <el-button @click="handleDeleteAll" icon="el-icon-delete" plain type="danger">删除全部</el-button>
</el-row> </el-row>
<audio :autoplay="playing_auto" :src="playing_url" controls></audio> <audio :autoplay="playing_auto" :src="playing_url" controls/>
<el-table :data="tableData" style="width: 100%"> <el-table :data="tableData" style="width: 100%">
@@ -67,7 +75,8 @@
<el-footer id="app-footer"> <el-footer id="app-footer">
<el-row> <el-row>
音乐解锁移除已购音乐的加密保护 音乐解锁移除已购音乐的加密保护
目前支持网易云音乐(ncm)QQ音乐(qmc0, qmc3, qmcflac, qmcogg, mflac) 目前支持网易云音乐(ncm)QQ音乐(qmc, mflac, tkm)以及
<a href="https://github.com/ix64/unlock-music/blob/master/README.md" target="_blank">其他格式</a>
<a href="https://github.com/ix64/unlock-music/wiki/使用提示" target="_blank">使用提示</a> <a href="https://github.com/ix64/unlock-music/wiki/使用提示" target="_blank">使用提示</a>
</el-row> </el-row>
<el-row> <el-row>
@@ -84,8 +93,11 @@
</template> </template>
<script> <script>
// 严格模式 用于尾调用优化
"use strict";
const dec = require("./decrypt/common"); const worker = require("workerize-loader!./decrypt/common");
const dec = require('./decrypt/common');
export default { export default {
name: 'app', name: 'app',
components: {}, components: {},
@@ -95,12 +107,40 @@
tableData: [], tableData: [],
playing_url: "", playing_url: "",
playing_auto: false, playing_auto: false,
format: '2',
instantDownload: false,
workCount: 0,
cacheQueue: [],
cacheQueueOption: {
push: (element) => {
this.cacheQueue.push(element);
},
pop: () => {
return this.cacheQueue.shift();
},
size: () => {
return this.cacheQueue.length;
}
},
workers: [],
idle_workers: [],
thread_num: 1
} }
}, },
mounted() { mounted() {
this.$nextTick(function () { this.$nextTick(function () {
this.finishLoad(); this.finishLoad();
}); });
if (document.location.host !== "") {
this.thread_num = Math.max(navigator.hardwareConcurrency, 1);
for (let i = 0; i < this.thread_num; i++) {
this.workers.push(worker().CommonDecrypt);
this.idle_workers.push(i);
}
} else {
this.workers.push(dec.CommonDecrypt);
this.idle_workers.push(0)
}
}, },
methods: { methods: {
finishLoad() { finishLoad() {
@@ -108,7 +148,7 @@
this.$notify.info({ this.$notify.info({
title: '离线使用', title: '离线使用',
message: '我们使用PWA技术无网络也能使用<br/>' + message: '我们使用PWA技术无网络也能使用<br/>' +
'最近更新:支持tm0/2/3/6<br/>' + '最近更新:支持bkcmp3/bkcflac/tkm<br/>' +
'点击查看 <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: 10000, duration: 10000,
@@ -116,16 +156,37 @@
}); });
}, },
handleFile(file) { handleFile(file) {
// 有空闲worker 立刻处理文件
(async () => { if (this.idle_workers.length > 0) {
let data =await dec.CommonDecrypt(file); this.handleDoFile(file, this.idle_workers.shift());
}
// 无空闲worker 则放入缓存队列
else {
this.cacheQueueOption.push(file);
}
},
handleCacheQueue(worker_id) {
// 调用方法消费缓存队列中的数据
if (this.cacheQueue.length === 0) {
this.idle_workers.push(worker_id);
return
}
this.handleDoFile(this.cacheQueueOption.pop(), worker_id);
},
handleDoFile(file, worker_id) {
this.workers[worker_id](file).then(data => {
if (data.status) { if (data.status) {
if (this.instantDownload) {
this.handleDownload(data);
this.handleDelete(null, data);
} else {
this.tableData.push(data); this.tableData.push(data);
this.$notify.success({ this.$notify.success({
title: '解锁成功', title: '解锁成功',
message: '成功解锁 ' + data.title, message: '成功解锁 ' + data.title,
duration: 3000 duration: 3000
}); });
}
let _rp_data = [data.title, data.artist, data.album]; let _rp_data = [data.title, data.artist, data.album];
window._paq.push(["trackEvent", "Unlock", data.rawExt + "," + data.mime, JSON.stringify(_rp_data)]); window._paq.push(["trackEvent", "Unlock", data.rawExt + "," + data.mime, JSON.stringify(_rp_data)]);
} else { } else {
@@ -138,7 +199,13 @@
}); });
window._paq.push(["trackEvent", "Error", data.message, file.name]); window._paq.push(["trackEvent", "Error", data.message, file.name]);
} }
})(); // 完成之后 执行新任务 todo: 可能导致call stack过长
this.handleCacheQueue(worker_id);
}).catch(err => {
console.error(err, file);
window._paq.push(["trackEvent", "Error", err, file.name]);
this.handleCacheQueue(worker_id);
})
}, },
handlePlay(index, row) { handlePlay(index, row) {
this.playing_url = row.file; this.playing_url = row.file;
@@ -147,12 +214,27 @@
handleDelete(index, row) { handleDelete(index, row) {
URL.revokeObjectURL(row.file); URL.revokeObjectURL(row.file);
URL.revokeObjectURL(row.picture); URL.revokeObjectURL(row.picture);
if (index != null) {
this.tableData.splice(index, 1); this.tableData.splice(index, 1);
}
}, },
handleDownload(row) { handleDownload(row) {
let a = document.createElement('a'); let a = document.createElement('a');
a.href = row.file; a.href = row.file;
switch (this.format) {
case "1":
a.download = row.title + "." + row.ext;
break;
case "2":
a.download = row.artist + " - " + row.title + "." + row.ext;
break;
case "3":
a.download = row.title + " - " + row.artist + "." + row.ext;
break;
default:
a.download = row.filename; a.download = row.filename;
break;
}
document.body.append(a); document.body.append(a);
a.click(); a.click();
a.remove(); a.remove();
@@ -193,8 +275,8 @@
} }
#app-footer a { #app-footer a {
padding-left: 0.5em; padding-left: 0.2em;
padding-right: 0.5em; padding-right: 0.2em;
} }
#app-footer { #app-footer {
@@ -202,6 +284,7 @@
font-size: small; font-size: small;
} }
/*noinspection CssUnusedSymbol*/
.el-upload-dragger { .el-upload-dragger {
width: 80vw !important; width: 80vw !important;
} }

View File

@@ -4,9 +4,8 @@ const RawDecrypt = require("./raw");
const MFlacDecrypt = require("./mflac"); const MFlacDecrypt = require("./mflac");
const TmDecrypt = require("./tm"); const TmDecrypt = require("./tm");
export {CommonDecrypt}
async function CommonDecrypt(file) { export async function CommonDecrypt(file) {
let raw_ext = file.name.substring(file.name.lastIndexOf(".") + 1, file.name.length).toLowerCase(); let raw_ext = file.name.substring(file.name.lastIndexOf(".") + 1, file.name.length).toLowerCase();
let raw_filename = file.name.substring(0, file.name.lastIndexOf(".")); let raw_filename = file.name.substring(0, file.name.lastIndexOf("."));
let rt_data; let rt_data;
@@ -16,7 +15,8 @@ async function CommonDecrypt(file) {
break; break;
case "mp3":// Raw Mp3 case "mp3":// Raw Mp3
case "flac"://Raw Flac case "flac"://Raw Flac
case "m4a":// todo: Raw M4A case "m4a":// Raw M4a
case "ogg":// Raw Ogg
rt_data = await RawDecrypt.Decrypt(file.raw, raw_filename, raw_ext); rt_data = await RawDecrypt.Decrypt(file.raw, raw_filename, raw_ext);
break; break;
case "tm0":// QQ Music IOS Mp3 case "tm0":// QQ Music IOS Mp3
@@ -27,13 +27,16 @@ async function CommonDecrypt(file) {
case "qmc0"://QQ Music Android Mp3 case "qmc0"://QQ Music Android Mp3
case "qmcflac"://QQ Music Android Flac case "qmcflac"://QQ Music Android Flac
case "qmcogg"://QQ Music Android Ogg case "qmcogg"://QQ Music Android Ogg
case "tkm"://QQ Music Accompaniment M4a
case "bkcmp3"://Moo Music Mp3
case "bkcflac"://Moo Music Flac
rt_data = await QmcDecrypt.Decrypt(file.raw, raw_filename, raw_ext); rt_data = await QmcDecrypt.Decrypt(file.raw, raw_filename, raw_ext);
break; break;
case "mflac"://QQ Music Desktop Flac case "mflac"://QQ Music Desktop Flac
rt_data = await MFlacDecrypt.Decrypt(file.raw, raw_filename, raw_ext); rt_data = await MFlacDecrypt.Decrypt(file.raw, raw_filename, raw_ext);
break; break;
case "tm2":// todo: QQ Music IOS M4A case "tm2":// QQ Music IOS M4a
case "tm6":// todo: QQ Music IOS M4A case "tm6":// QQ Music IOS M4a
rt_data = await TmDecrypt.Decrypt(file.raw, raw_filename); rt_data = await TmDecrypt.Decrypt(file.raw, raw_filename);
break; break;
default: default:

View File

@@ -36,6 +36,7 @@ async function Decrypt(file, raw_filename, raw_ext) {
filename: info.filename, filename: info.filename,
title: info.title, title: info.title,
artist: info.artist, artist: info.artist,
ext: 'flac',
album: tag.common.album, album: tag.common.album,
picture: picUrl, picture: picUrl,
file: musicUrl, file: musicUrl,

View File

@@ -56,6 +56,7 @@ async function Decrypt(file) {
filename: filename, filename: filename,
title: musicMeta.musicName, title: musicMeta.musicName,
artist: artists.join(" & "), artist: artists.join(" & "),
ext: musicMeta.format,
album: musicMeta.album, album: musicMeta.album,
picture: musicMeta.albumPic, picture: musicMeta.albumPic,
file: musicUrl, file: musicUrl,

View File

@@ -11,24 +11,22 @@ const SEED_MAP = [
[0x0e, 0x74, 0xbb, 0x90, 0xbc, 0x3f, 0x92], [0x0e, 0x74, 0xbb, 0x90, 0xbc, 0x3f, 0x92],
[0x00, 0x09, 0x5b, 0x9f, 0x62, 0x66, 0xa1]]; [0x00, 0x09, 0x5b, 0x9f, 0x62, 0x66, 0xa1]];
const OriginalExtMap = {
"qmc0": "mp3",
"qmc3": "mp3",
"qmcogg": "ogg",
"qmcflac": "flac",
"bkcmp3": "mp3",
"bkcflac": "flac",
"tkm": "m4a"
};
async function Decrypt(file, raw_filename, raw_ext) { async function Decrypt(file, raw_filename, raw_ext) {
// 获取扩展名 // 获取扩展名
let new_ext; if (!(raw_ext in OriginalExtMap)) {
switch (raw_ext) {
case "qmc0":
case "qmc3":
new_ext = "mp3";
break;
case "qmcogg":
new_ext = "ogg";
break;
case "qmcflac":
new_ext = "flac";
break;
default:
return {status: false, message: "File type is incorrect!"} return {status: false, message: "File type is incorrect!"}
} }
let new_ext = OriginalExtMap[raw_ext];
const mime = util.AudioMimeType[new_ext]; const mime = util.AudioMimeType[new_ext];
// 读取文件 // 读取文件
const fileBuffer = await util.GetArrayBuffer(file); const fileBuffer = await util.GetArrayBuffer(file);
@@ -43,7 +41,7 @@ async function Decrypt(file, raw_filename, raw_ext) {
const musicUrl = URL.createObjectURL(musicData); const musicUrl = URL.createObjectURL(musicData);
// 读取Meta // 读取Meta
let tag = await musicMetadata.parseBlob(musicData); let tag = await musicMetadata.parseBlob(musicData);
const info = util.GetFileInfo(tag.common.artist, tag.common.title, raw_filename, raw_ext); const info = util.GetFileInfo(tag.common.artist, tag.common.title, raw_filename, new_ext);
let picUrl = util.GetCoverURL(tag); let picUrl = util.GetCoverURL(tag);
// 返回 // 返回
@@ -52,6 +50,7 @@ async function Decrypt(file, raw_filename, raw_ext) {
filename: info.filename, filename: info.filename,
title: info.title, title: info.title,
artist: info.artist, artist: info.artist,
ext: new_ext,
album: tag.common.album, album: tag.common.album,
picture: picUrl, picture: picUrl,
file: musicUrl, file: musicUrl,

View File

@@ -17,6 +17,7 @@ async function Decrypt(file, raw_filename, raw_ext) {
filename: info.filename, filename: info.filename,
title: info.title, title: info.title,
artist: info.artist, artist: info.artist,
ext: raw_ext,
album: tag.common.album, album: tag.common.album,
picture: picUrl, picture: picUrl,
file: fileUrl, file: fileUrl,

View File

@@ -1,7 +1,40 @@
import Vue from 'vue' import Vue from 'vue'
import App from './App.vue' import App from './App.vue'
import './registerServiceWorker' import './registerServiceWorker'
import './plugins/element.js' import {
Button,
Col,
Container,
Footer,
Icon,
Image,
Link,
Main,
Notification,
Row,
Table,
TableColumn,
Upload,
Radio,
Checkbox
} from 'element-ui';
import 'element-ui/lib/theme-chalk/index.css'
Vue.use(Link);
Vue.use(Image);
Vue.use(Button);
Vue.use(Table);
Vue.use(TableColumn);
Vue.use(Main);
Vue.use(Footer);
Vue.use(Container);
Vue.use(Icon);
Vue.use(Row);
Vue.use(Col);
Vue.use(Upload);
Vue.use(Checkbox);
Vue.use(Radio);
Vue.prototype.$notify = Notification;
// only if your build system can import css, otherwise import it wherever you would import your css. // only if your build system can import css, otherwise import it wherever you would import your css.
Vue.config.productionTip = false; Vue.config.productionTip = false;

View File

@@ -1,31 +0,0 @@
import Vue from 'vue'
import {
Button,
Col,
Container,
Footer,
Icon,
Image,
Link,
Main,
Notification,
Row,
Table,
TableColumn,
Upload
} from 'element-ui';
import 'element-ui/lib/theme-chalk/index.css'
Vue.use(Link);
Vue.use(Image);
Vue.use(Button);
Vue.use(Table);
Vue.use(TableColumn);
Vue.use(Main);
Vue.use(Footer);
Vue.use(Container);
Vue.use(Icon);
Vue.use(Row);
Vue.use(Col);
Vue.use(Upload);
Vue.prototype.$notify = Notification;