Skip to content

Commit

Permalink
1. 插件按钮增加badge显示正在进行任务数
Browse files Browse the repository at this point in the history
2. 增加百度云大文件支持(需要使用wap版百度云:[wap百度云](https://pan.baidu.com/wap/home))
3. 组件通信逻辑优化
  • Loading branch information
miniers committed Jun 21, 2017
1 parent 1321f4d commit fb0d0ca
Show file tree
Hide file tree
Showing 26 changed files with 209 additions and 152 deletions.
6 changes: 5 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -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
Expand Down
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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. 扩展按钮展示正在下载任务数量


### 全局捷键:
Expand Down
18 changes: 11 additions & 7 deletions build/webpack.prod.conf.js
Original file line number Diff line number Diff line change
Expand Up @@ -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')
Expand Down Expand Up @@ -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(
Expand All @@ -126,7 +131,6 @@ if(config.build.pages){
)
})
}

if(config.build.js){
config.build.js.forEach(function (js) {
webpackConfig.plugins.push(
Expand Down
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
7 changes: 4 additions & 3 deletions safari2aria.safariextension/Info.plist
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,9 @@
<key>CFBundleInfoDictionaryVersion</key>
<string>1.0</string>
<key>CFBundleShortVersionString</key>
<string>2.0</string>
<string>2.1</string>
<key>CFBundleVersion</key>
<string>2.0</string>
<string>2.1</string>
<key>Chrome</key>
<dict>
<key>Database Quota</key>
Expand Down Expand Up @@ -64,6 +64,7 @@
<key>Start</key>
<array>
<string>static/js/manifest.js</string>
<string>static/js/startscript.js</string>
</array>
</dict>
</dict>
Expand All @@ -86,7 +87,7 @@
<key>Update From Gallery</key>
<true/>
<key>Update Manifest URL</key>
<string>https://miniers.github.io/safari2aria/update.plist?t=2.0</string>
<string>https://miniers.github.io/safari2aria/update.plist?t=2.1</string>
<key>Website</key>
<string>https://github.com/miniers/safari2aria</string>
</dict>
Expand Down
2 changes: 1 addition & 1 deletion safari2aria.safariextension/global.html
Original file line number Diff line number Diff line change
Expand Up @@ -8,5 +8,5 @@
<body>
<div id="app-box"></div>
<!-- built files will be auto injected -->
<script type="text/javascript" src="static/js/manifest.js"></script><script type="text/javascript" src="static/js/vendor.48f962ed222e6e9444b5.js"></script><script type="text/javascript" src="static/js/global.0f5ed04e5bb8ca01b993.js"></script></body>
<script type="text/javascript" src="static/js/manifest.js"></script><script type="text/javascript" src="static/js/vendor.c45c6a5d207bec568155.js"></script><script type="text/javascript" src="static/js/global.ed886d46523a268a49f6.js"></script></body>
</html>
2 changes: 1 addition & 1 deletion safari2aria.safariextension/options.html
Original file line number Diff line number Diff line change
Expand Up @@ -8,5 +8,5 @@
<body>
<div id="app-box"></div>
<!-- built files will be auto injected -->
<script type="text/javascript" src="static/js/manifest.js"></script><script type="text/javascript" src="static/js/vendor.48f962ed222e6e9444b5.js"></script><script type="text/javascript" src="static/js/options.576f289ab1f061754dec.js"></script></body>
<script type="text/javascript" src="static/js/manifest.js"></script><script type="text/javascript" src="static/js/vendor.c45c6a5d207bec568155.js"></script><script type="text/javascript" src="static/js/options.a05384552c46ff4627d9.js"></script></body>
</html>
2 changes: 1 addition & 1 deletion safari2aria.safariextension/popover.html
Original file line number Diff line number Diff line change
Expand Up @@ -8,5 +8,5 @@
<body>
<div id="app-box"></div>
<!-- built files will be auto injected -->
<script type="text/javascript" src="static/js/manifest.js"></script><script type="text/javascript" src="static/js/vendor.48f962ed222e6e9444b5.js"></script><script type="text/javascript" src="static/js/popover.f52620ba98e63674ef88.js"></script></body>
<script type="text/javascript" src="static/js/manifest.js"></script><script type="text/javascript" src="static/js/vendor.c45c6a5d207bec568155.js"></script><script type="text/javascript" src="static/js/popover.2ebf69b15ae9a5309c2c.js"></script></body>
</html>

This file was deleted.

Loading

0 comments on commit fb0d0ca

Please sign in to comment.