Skip to content

Commit

Permalink
v1.4.0 - 支持打开下载路径和在文件管理器中显示文件
Browse files Browse the repository at this point in the history
  • Loading branch information
Xmader committed Sep 26, 2018
1 parent 5a63385 commit 2b71d5d
Show file tree
Hide file tree
Showing 14 changed files with 100 additions and 329 deletions.
4 changes: 0 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,6 @@

> 一个 Aria2 图形界面客户端
[![构建状态](https://dev.azure.com/xmader/aria-ng-gui/_apis/build/status/aria-ng-gui-darwin)](https://dev.azure.com/xmader/aria-ng-gui/_build/latest?definitionId=1)

![](https://aria-ng.xmader.com/Screenshot1.png)

## 特性
Expand All @@ -30,8 +28,6 @@

> An Aria2 GUI for Windows & Linux & MacOS
[![Build Status](https://dev.azure.com/xmader/aria-ng-gui/_apis/build/status/aria-ng-gui-darwin)](https://dev.azure.com/xmader/aria-ng-gui/_build/latest?definitionId=1)

![](https://aria-ng.xmader.com/en/Screenshot1.png)

## Features
Expand Down
6 changes: 5 additions & 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.1",
"version": "1.4.0",
"private": true,
"description": "AriaNg GUI",
"main": "app.js",
Expand All @@ -9,6 +9,10 @@
"type": "git",
"url": "https://github.com/Xmader/aria-ng-gui"
},
"homepage": "https://aria-ng.xmader.com/",
"bugs": {
"url": "https://github.com/Xmader/aria-ng-gui/issues"
},
"scripts": {
"dev": "electron . dev",
"start": "electron .",
Expand Down
File renamed without changes.
18 changes: 18 additions & 0 deletions app/pages/css/plugins-acd93e5a25.min.css

Large diffs are not rendered by default.

18 changes: 0 additions & 18 deletions app/pages/css/plugins-e572f65c7f.min.css

This file was deleted.

193 changes: 1 addition & 192 deletions app/pages/index.html

Large diffs are not rendered by default.

10 changes: 5 additions & 5 deletions app/pages/index.manifest
Original file line number Diff line number Diff line change
@@ -1,16 +1,16 @@
CACHE MANIFEST

CACHE:
css/aria-ng-7cdcf46491.min.css
css/aria-ng-c609d5bccb.min.css
css/bootstrap-3.3.7.min.css
css/plugins-e572f65c7f.min.css
css/plugins-acd93e5a25.min.css
js/angular-packages-1.6.10.min.js
js/aria-ng-46df9fae24.min.js
js/aria-ng-f649286704.min.js
js/bootstrap-3.3.7.min.js
js/echarts-common-3.8.5.min.js
js/jquery-3.3.1.min.js
js/moment-with-locales-2.22.2.min.js
js/plugins-cb1060364a.min.js
js/plugins-225e0232de.min.js
fonts/fontawesome-webfont.woff2
index.html

Expand All @@ -20,4 +20,4 @@ NETWORK:
SETTINGS:
prefer-online

# hash: 3d0f063531310cc89199942659317a101dac9498ce42aa16cdcb55300199f32c
# hash: ac0bff2b1a093c112d2f2c9d44672a92f805d4723c002d5ca832f5bbc4568f97
12 changes: 0 additions & 12 deletions app/pages/js/aria-ng-46df9fae24.min.js

This file was deleted.

49 changes: 0 additions & 49 deletions app/pages/js/aria-ng-download.js

This file was deleted.

12 changes: 12 additions & 0 deletions app/pages/js/aria-ng-f649286704.min.js

Large diffs are not rendered by default.

9 changes: 0 additions & 9 deletions app/pages/js/download-url-setting.js

This file was deleted.

30 changes: 0 additions & 30 deletions app/pages/js/open_download_folder.js

This file was deleted.

Large diffs are not rendered by default.

29 changes: 27 additions & 2 deletions app/pre.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,10 @@
*
*/

const { ipcRenderer } = require('electron');
const { ipcRenderer, shell, remote: { app } } = require('electron');
const check_update = require('./check_update.js')

// 添加右键菜单
window.addEventListener('contextmenu', (e) => {
e.preventDefault();

Expand All @@ -24,4 +25,28 @@ window.addEventListener('contextmenu', (e) => {
}
});

check_update() // 检查版本更新
// 检查版本更新
check_update()

// 打开下载路径
const open_download_dir = (dir) => {
shell.openItem(dir)
shell.beep()
}

window.open_download_dir = open_download_dir

// 在文件管理器中显示文件
const show_file = (path) => {
shell.showItemInFolder(path)
shell.beep()
}

window.show_file = show_file

// 显示AriaNg GUI的版本号
window.onload = () => {
const version = app.getVersion()
let logo = document.getElementById("aria-ng-logo")
logo.title = `AriaNg GUI v${version} | ${logo.title}`
}

0 comments on commit 2b71d5d

Please sign in to comment.