add aria2 settings links

This commit is contained in:
MaysWind 2016-05-17 23:13:47 +08:00
parent 65175624b7
commit 4873e944e2
6 changed files with 60 additions and 0 deletions

View file

@ -114,6 +114,27 @@
<li data-href-match="/settings/ariang"> <li data-href-match="/settings/ariang">
<a href="#/settings/ariang"><i class="fa fa-cog"></i> <span translate>AriaNg Settings</span></a> <a href="#/settings/ariang"><i class="fa fa-cog"></i> <span translate>AriaNg Settings</span></a>
</li> </li>
<li class="treeview">
<a href="javascript:void(0);">
<i class="fa fa-cogs"></i>
<span translate>Aria2 Settings</span>
<i class="fa fa-angle-left pull-right"></i>
</a>
<ul class="treeview-menu">
<li data-href-match="/settings/aria2/basic">
<a href="#/settings/aria2/basic"><i class="fa fa-circle-o"></i> <span translate>Basic Settings</span></a>
</li>
<li data-href-match="/settings/aria2/bt">
<a href="#/settings/aria2/bt"><i class="fa fa-circle-o"></i> <span translate>BitTorrent Settings</span></a>
</li>
<li data-href-match="/settings/aria2/rpc">
<a href="#/settings/aria2/rpc"><i class="fa fa-circle-o"></i> <span translate>RPC Settings</span></a>
</li>
<li data-href-match="/settings/aria2/advanced">
<a href="#/settings/aria2/advanced"><i class="fa fa-circle-o"></i> <span translate>Advanced Settings</span></a>
</li>
</ul>
</li>
</ul> </ul>
</section> </section>
</aside> </aside>
@ -188,6 +209,7 @@
<script src="scripts/core/utils.js"></script> <script src="scripts/core/utils.js"></script>
<script src="scripts/controllers/list.js"></script> <script src="scripts/controllers/list.js"></script>
<script src="scripts/controllers/main.js"></script> <script src="scripts/controllers/main.js"></script>
<script src="scripts/controllers/settings-aria2.js"></script>
<script src="scripts/controllers/settings-ariang.js"></script> <script src="scripts/controllers/settings-ariang.js"></script>
<script src="scripts/filters/dateDuration.js"></script> <script src="scripts/filters/dateDuration.js"></script>
<script src="scripts/filters/percent.js"></script> <script src="scripts/filters/percent.js"></script>

View file

@ -0,0 +1,7 @@
(function () {
'use strict';
angular.module('ariaNg').controller('Aria2SettingsController', ['$scope', 'SweetAlert', 'aria2RpcService', function ($scope, SweetAlert, aria2RpcService) {
}]);
})();

View file

@ -19,6 +19,22 @@
templateUrl: 'views/settings-ariang.html', templateUrl: 'views/settings-ariang.html',
controller: 'AriaNgSettingsController' 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({ .otherwise({
redirectTo: '/downloading' redirectTo: '/downloading'
}); });

View file

@ -20,6 +20,11 @@
'Downloaded / Stopped': 'Downloaded / Stopped', 'Downloaded / Stopped': 'Downloaded / Stopped',
'Settings': 'Settings', 'Settings': 'Settings',
'AriaNg Settings': 'AriaNg 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 Name': 'File Name',
'File Size': 'File Size', 'File Size': 'File Size',
'Completed Percent': 'Percent', 'Completed Percent': 'Percent',

View file

@ -20,6 +20,11 @@
'Downloaded / Stopped': '已完成 / 已停止', 'Downloaded / Stopped': '已完成 / 已停止',
'Settings': '系统设置', 'Settings': '系统设置',
'AriaNg Settings': 'AriaNg 设置', 'AriaNg Settings': 'AriaNg 设置',
'Aria2 Settings': 'Aria2 设置',
'Basic Settings': '基本设置',
'BitTorrent Settings': 'BitTorrent 设置',
'RPC Settings': 'RPC 设置',
'Advanced Settings': '高级设置',
'File Name': '文件名', 'File Name': '文件名',
'File Size': '大小', 'File Size': '大小',
'Completed Percent': '进度', 'Completed Percent': '进度',

View file

@ -0,0 +1,5 @@
<section class="content no-padding">
<div class="settings-table">
</div>
</section>