From fb0d0cab38b44396507f090c2cfe87c13236739a Mon Sep 17 00:00:00 2001
From: liukai <659801@qq.com>
Date: Wed, 21 Jun 2017 12:41:03 +0800
Subject: [PATCH] =?UTF-8?q?1.=20=E6=8F=92=E4=BB=B6=E6=8C=89=E9=92=AE?=
=?UTF-8?q?=E5=A2=9E=E5=8A=A0badge=E6=98=BE=E7=A4=BA=E6=AD=A3=E5=9C=A8?=
=?UTF-8?q?=E8=BF=9B=E8=A1=8C=E4=BB=BB=E5=8A=A1=E6=95=B0=202.=20=E5=A2=9E?=
=?UTF-8?q?=E5=8A=A0=E7=99=BE=E5=BA=A6=E4=BA=91=E5=A4=A7=E6=96=87=E4=BB=B6?=
=?UTF-8?q?=E6=94=AF=E6=8C=81=EF=BC=88=E9=9C=80=E8=A6=81=E4=BD=BF=E7=94=A8?=
=?UTF-8?q?wap=E7=89=88=E7=99=BE=E5=BA=A6=E4=BA=91:[wap=E7=99=BE=E5=BA=A6?=
=?UTF-8?q?=E4=BA=91](https://pan.baidu.com/wap/home)=EF=BC=89=203.=20?=
=?UTF-8?q?=E7=BB=84=E4=BB=B6=E9=80=9A=E4=BF=A1=E9=80=BB=E8=BE=91=E4=BC=98?=
=?UTF-8?q?=E5=8C=96?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
CHANGELOG.md | 6 +-
README.md | 3 +-
build/webpack.prod.conf.js | 18 +--
package.json | 3 +-
safari2aria.safariextension/Info.plist | 7 +-
safari2aria.safariextension/global.html | 2 +-
safari2aria.safariextension/options.html | 2 +-
safari2aria.safariextension/popover.html | 2 +-
.../static/js/global.0f5ed04e5bb8ca01b993.js | 1 -
.../static/js/global.ed886d46523a268a49f6.js | 1 +
.../static/js/manifest.js | 2 +-
.../static/js/options.576f289ab1f061754dec.js | 1 -
.../static/js/options.a05384552c46ff4627d9.js | 1 +
.../static/js/popover.2ebf69b15ae9a5309c2c.js | 1 +
.../static/js/popover.f52620ba98e63674ef88.js | 1 -
.../static/js/startscript.js | 1 +
...44b5.js => vendor.c45c6a5d207bec568155.js} | 10 +-
safari2aria.safariextz | Bin 231096 -> 231160 bytes
src/js/endscript/index.js | 2 -
src/js/startscript/index.js | 37 ++++++
src/pages/global/index.js | 118 +++++-------------
src/pages/popover/components/index.vue | 40 ++++--
src/pages/popover/components/taskLine.vue | 7 +-
src/pages/popover/config/index.js | 52 +++++++-
src/pages/popover/index.js | 3 +
src/pages/popover/store/index.js | 40 +++---
26 files changed, 209 insertions(+), 152 deletions(-)
delete mode 100644 safari2aria.safariextension/static/js/global.0f5ed04e5bb8ca01b993.js
create mode 100644 safari2aria.safariextension/static/js/global.ed886d46523a268a49f6.js
delete mode 100644 safari2aria.safariextension/static/js/options.576f289ab1f061754dec.js
create mode 100644 safari2aria.safariextension/static/js/options.a05384552c46ff4627d9.js
create mode 100644 safari2aria.safariextension/static/js/popover.2ebf69b15ae9a5309c2c.js
delete mode 100644 safari2aria.safariextension/static/js/popover.f52620ba98e63674ef88.js
create mode 100644 safari2aria.safariextension/static/js/startscript.js
rename safari2aria.safariextension/static/js/{vendor.48f962ed222e6e9444b5.js => vendor.c45c6a5d207bec568155.js} (74%)
create mode 100644 src/js/startscript/index.js
diff --git a/CHANGELOG.md b/CHANGELOG.md
index 2805d6c..78da3b8 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -1,9 +1,13 @@
+### v2.1:
+1. 插件按钮增加badge显示正在进行任务数
+2. 增加百度云大文件支持(需要使用wap版百度云:[wap百度云](https://pan.baidu.com/wap/home))
+3. 组件通信逻辑优化
+
### v2.0:
1. **下载队列列表**
2. **下载状态控制:开始、暂停、删除**
3. **aria2全局速度配置**
-
## v1.5:
1. 增加推送,下载成功后推送成功通知
2. aria2支持ws
diff --git a/README.md b/README.md
index b389f19..3eb02f5 100644
--- a/README.md
+++ b/README.md
@@ -10,12 +10,13 @@
1. 拦截指定后缀文件下载
2. 多aria2c服务支持
3. 右键菜单指定aria2c服务
-4. 支持百度云和迅雷离线导出
+4. 支持百度云([wap](https://pan.baidu.com/wap/home))和迅雷离线导出
5. 全局拦截模式
6. 可配置下载成功后是否推送通知提醒
7. **下载队列列表**
8. **下载状态控制:开始、暂停、删除**
9. **aria2全局速度配置**
+10. 扩展按钮展示正在下载任务数量
### 全局捷键:
diff --git a/build/webpack.prod.conf.js b/build/webpack.prod.conf.js
index de99ed2..960c1e8 100644
--- a/build/webpack.prod.conf.js
+++ b/build/webpack.prod.conf.js
@@ -30,12 +30,6 @@ var webpackConfig = merge(baseWebpackConfig, {
new webpack.DefinePlugin({
'process.env': env
}),
- new webpack.optimize.UglifyJsPlugin({
- compress: {
- warnings: false
- },
- sourceMap: true
- }),
// extract css into its own file
new ExtractTextPlugin({
filename: utils.assetsPath('css/[name].[contenthash].css')
@@ -105,6 +99,17 @@ var webpackConfig = merge(baseWebpackConfig, {
]
})
+if(!process.env.npm_config_big){
+ webpackConfig.plugins.push(
+ new webpack.optimize.UglifyJsPlugin({
+ compress: {
+ warnings: false
+ },
+ sourceMap: true
+ })
+ )
+}
+
if(config.build.pages){
config.build.pages.forEach(function (page) {
webpackConfig.plugins.push(
@@ -126,7 +131,6 @@ if(config.build.pages){
)
})
}
-
if(config.build.js){
config.build.js.forEach(function (js) {
webpackConfig.plugins.push(
diff --git a/package.json b/package.json
index 62d6b4f..ae6b96c 100644
--- a/package.json
+++ b/package.json
@@ -6,7 +6,8 @@
"private": true,
"scripts": {
"dev": "node build/dev-server.js",
- "build": "node build/build.js"
+ "build": "node build/build.js",
+ "build_big": "npm run build --big"
},
"dependencies": {
"fastclick": "^1.0.6",
diff --git a/safari2aria.safariextension/Info.plist b/safari2aria.safariextension/Info.plist
index fc09c2d..e7f8104 100644
--- a/safari2aria.safariextension/Info.plist
+++ b/safari2aria.safariextension/Info.plist
@@ -13,9 +13,9 @@