Skip to content

Commit

Permalink
优化windows/linux界面,去掉标题栏。
Browse files Browse the repository at this point in the history
添加单实例判断
  • Loading branch information
wapznw committed Apr 13, 2018
1 parent c122446 commit 3ba486c
Show file tree
Hide file tree
Showing 7 changed files with 272 additions and 163 deletions.
61 changes: 61 additions & 0 deletions public/about.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,61 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>About Aria2Desktop</title>
<style>
html {
height: 100%;
}
body {
background-color: #eeeeee;
-webkit-app-region: drag;
display: flex;
justify-content: center;
align-items: center;
height: 100%;
padding: 0;
overflow: hidden;
color: #666666;
}
.container {
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
}
.appName {
line-height: 30px;
font-size: 20px;
margin-top: 20px;
}
span[id^="cnzz_stat_icon"] {
display: none;
}
</style>
</head>
<body>
<div class="container">
<img src="aria2icon.png" style="width: 200px;" alt="">
<div class="appName">About Aria2Desktop</div>
<span id="version"></span>
<div>
source: <a href="javascript:openSource();">aria2desktop</a>
</div>
</div>
<script>
try {
var ver = navigator.userAgent.match(/aria2-desktop\/([\d.]+)/)[1]
document.getElementById('version').innerHTML = 'aria2-desktop/' + ver + ' &copy; 2018 '
}catch (e) {

}
function openSource(e) {
window.require('electron').shell.openExternal('https://github.com/wapznw/aria2desktop')
e.stopPropagation()
e.preventDefault()
}
</script>
<script type="text/javascript">var cnzz_protocol = (("https:" == document.location.protocol) ? " https://" : " http://");document.write(unescape("%3Cspan id='cnzz_stat_icon_1273415074'%3E%3C/span%3E%3Cscript src='" + cnzz_protocol + "s22.cnzz.com/stat.php%3Fid%3D1273415074%26show%3Dpic' type='text/javascript'%3E%3C/script%3E"));</script>
</body>
</html>
6 changes: 3 additions & 3 deletions public/aria2cli/aria2.conf
Original file line number Diff line number Diff line change
Expand Up @@ -20,14 +20,14 @@
## 下载连接相关 ##

# 最大同时下载任务数, 运行时可修改, 默认:5
#@max-concurrent-downloads=10
max-concurrent-downloads=10
# 同一服务器连接数, 添加时可指定, 默认:1
#@max-connection-per-server=15
max-connection-per-server=16
# 最小文件分片大小, 添加时可指定, 取值范围1M -1024M, 默认:20M
# 假定size=10M, 文件为20MiB 则使用两个来源下载; 文件为15MiB 则使用一个来源下载
#@min-split-size=10M
# 单个任务最大线程数, 添加时可指定, 默认:5
#@split=15
split=16
# 整体下载速度限制, 运行时可修改, 默认:0
#@max-overall-download-limit=0
# 单个任务下载速度限制, 默认:0
Expand Down
6 changes: 6 additions & 0 deletions public/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,11 @@
}
}
</script>
<style>
span[id^="cnzz_stat_icon"] {
display: none;
}
</style>
<!--
Notice the use of %PUBLIC_URL% in the tags above.
It will be replaced with the URL of the `public` folder during the build.
Expand All @@ -46,5 +51,6 @@
To begin the development, run `npm start` or `yarn start`.
To create a production bundle, use `npm run build` or `yarn build`.
-->
<script type="text/javascript">var cnzz_protocol = (("https:" == document.location.protocol) ? " https://" : " http://");document.write(unescape("%3Cspan id='cnzz_stat_icon_1273415074'%3E%3C/span%3E%3Cscript src='" + cnzz_protocol + "s22.cnzz.com/stat.php%3Fid%3D1273415074%26show%3Dpic' type='text/javascript'%3E%3C/script%3E"));</script>
</body>
</html>
Loading

0 comments on commit 3ba486c

Please sign in to comment.