From 4873e944e2788c74cf0aca18d66b7e6eced52694 Mon Sep 17 00:00:00 2001 From: MaysWind Date: Tue, 17 May 2016 23:13:47 +0800 Subject: [PATCH] add aria2 settings links --- app/index.html | 22 ++++++++++++++++++++++ app/scripts/controllers/settings-aria2.js | 7 +++++++ app/scripts/core/router.js | 16 ++++++++++++++++ app/scripts/langs/en-US.js | 5 +++++ app/scripts/langs/zh-CN.js | 5 +++++ app/views/settings-aria2.html | 5 +++++ 6 files changed, 60 insertions(+) create mode 100644 app/scripts/controllers/settings-aria2.js create mode 100644 app/views/settings-aria2.html diff --git a/app/index.html b/app/index.html index 0d57ca7..b786a3d 100644 --- a/app/index.html +++ b/app/index.html @@ -114,6 +114,27 @@
  • AriaNg Settings
  • +
  • + + + Aria2 Settings + + + +
  • @@ -188,6 +209,7 @@ + diff --git a/app/scripts/controllers/settings-aria2.js b/app/scripts/controllers/settings-aria2.js new file mode 100644 index 0000000..9ef060d --- /dev/null +++ b/app/scripts/controllers/settings-aria2.js @@ -0,0 +1,7 @@ +(function () { + 'use strict'; + + angular.module('ariaNg').controller('Aria2SettingsController', ['$scope', 'SweetAlert', 'aria2RpcService', function ($scope, SweetAlert, aria2RpcService) { + + }]); +})(); diff --git a/app/scripts/core/router.js b/app/scripts/core/router.js index 958a42e..385e247 100644 --- a/app/scripts/core/router.js +++ b/app/scripts/core/router.js @@ -19,6 +19,22 @@ templateUrl: 'views/settings-ariang.html', controller: 'AriaNgSettingsController' }) + .when('/settings/aria2/basic', { + templateUrl: 'views/settings-aria2.html', + controller: 'Aria2SettingsController' + }) + .when('/settings/aria2/bt', { + templateUrl: 'views/settings-aria2.html', + controller: 'Aria2SettingsController' + }) + .when('/settings/aria2/rpc', { + templateUrl: 'views/settings-aria2.html', + controller: 'Aria2SettingsController' + }) + .when('/settings/aria2/advanced', { + templateUrl: 'views/settings-aria2.html', + controller: 'Aria2SettingsController' + }) .otherwise({ redirectTo: '/downloading' }); diff --git a/app/scripts/langs/en-US.js b/app/scripts/langs/en-US.js index f9b38cb..772f224 100644 --- a/app/scripts/langs/en-US.js +++ b/app/scripts/langs/en-US.js @@ -20,6 +20,11 @@ 'Downloaded / Stopped': 'Downloaded / Stopped', 'Settings': 'Settings', 'AriaNg Settings': 'AriaNg Settings', + 'Aria2 Settings': 'Aria2 Settings', + 'Basic Settings': 'Basic Settings', + 'BitTorrent Settings': 'BitTorrent Settings', + 'RPC Settings': 'RPC Settings', + 'Advanced Settings': 'Advanced Settings', 'File Name': 'File Name', 'File Size': 'File Size', 'Completed Percent': 'Percent', diff --git a/app/scripts/langs/zh-CN.js b/app/scripts/langs/zh-CN.js index 6e886b5..df2b3a7 100644 --- a/app/scripts/langs/zh-CN.js +++ b/app/scripts/langs/zh-CN.js @@ -20,6 +20,11 @@ 'Downloaded / Stopped': '已完成 / 已停止', 'Settings': '系统设置', 'AriaNg Settings': 'AriaNg 设置', + 'Aria2 Settings': 'Aria2 设置', + 'Basic Settings': '基本设置', + 'BitTorrent Settings': 'BitTorrent 设置', + 'RPC Settings': 'RPC 设置', + 'Advanced Settings': '高级设置', 'File Name': '文件名', 'File Size': '大小', 'Completed Percent': '进度', diff --git a/app/views/settings-aria2.html b/app/views/settings-aria2.html new file mode 100644 index 0000000..465d0d9 --- /dev/null +++ b/app/views/settings-aria2.html @@ -0,0 +1,5 @@ +
    +
    + +
    +