Skip to content

Commit

Permalink
v1.3.1 - 更改工具栏上的帮助按钮的链接
Browse files Browse the repository at this point in the history
  • Loading branch information
Xmader committed Sep 25, 2018
1 parent c422f19 commit 5a63385
Show file tree
Hide file tree
Showing 7 changed files with 270 additions and 3 deletions.
12 changes: 11 additions & 1 deletion app/app.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,13 @@
/*!
* AriaNg GUI
*
* Copyright (c) 2018 Xmader
* Released under the MIT license
*
* Source Code: https://github.com/Xmader/aria-ng-gui
*
*/

const os = require('os');
const electron = require('electron');
const path = require('path');
Expand Down Expand Up @@ -60,7 +70,7 @@ app.on('ready', function () {
const aria2_dir = path.join(__dirname, "aria2", platform, aria2_bin)

const conf_path = path.join(__dirname, "aria2", "aria2.conf")
edit_conf() // 根据用户的操作系统动态编辑aria2配置文件
edit_conf() // 根据用户的操作系统动态编辑aria2的配置文件

//打开主程序
fs.chmodSync(aria2_dir, 0o777)
Expand Down
12 changes: 12 additions & 0 deletions app/check_update.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,15 @@
/*!
* AriaNg GUI
*
* Copyright (c) 2018 Xmader
* Released under the MIT license
*
* Source Code: https://github.com/Xmader/aria-ng-gui
*
* check_update.js - 检查更新
*
*/

const path = require('path');
const { dialog, shell, app } = require('electron').remote

Expand Down
12 changes: 12 additions & 0 deletions app/edit_conf.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,15 @@
/*!
* AriaNg GUI
*
* Copyright (c) 2018 Xmader
* Released under the MIT license
*
* Source Code: https://github.com/Xmader/aria-ng-gui
*
* edit_conf.js - 根据用户的操作系统动态编辑aria2的配置文件
*
*/

const os = require('os');
const fs = require('fs')
const path = require('path')
Expand Down
2 changes: 1 addition & 1 deletion app/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "ariang-gui",
"version": "1.3.0",
"version": "1.3.1",
"private": true,
"description": "AriaNg GUI",
"main": "app.js",
Expand Down
193 changes: 192 additions & 1 deletion app/pages/index.html

Large diffs are not rendered by default.

30 changes: 30 additions & 0 deletions app/pages/js/open_download_folder.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
/*!
* AriaNg GUI
*
* Copyright (c) 2018 Xmader
* Released under the MIT license
*
* Source Code: https://github.com/Xmader/aria-ng-gui
*
*/

// 更改工具栏上的帮助按钮的链接
const toolbars = $(".toolbar")
toolbars[toolbars.length - 1].href = "https://github.com/Xmader/aria-ng-gui"

const init = () => {
// 判断是否是 已完成/已停止 页面
const hash = location.hash.split("/")[1];
if (hash == "stopped") {

}
else {


}
}

// 检测浏览器是否支持onhashchange事件
if (("onhashchange" in window) && ((typeof document.documentMode === "undefined") || document.documentMode == 8)) {
window.onhashchange = init;
}
12 changes: 12 additions & 0 deletions app/pre.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,15 @@
/*!
* AriaNg GUI
*
* Copyright (c) 2018 Xmader
* Released under the MIT license
*
* Source Code: https://github.com/Xmader/aria-ng-gui
*
* pre.js - 用于内置的AriaNg页面的预加载脚本
*
*/

const { ipcRenderer } = require('electron');
const check_update = require('./check_update.js')

Expand Down

0 comments on commit 5a63385

Please sign in to comment.