mirror of
https://github.com/taobataoma/meanTorrent.git
synced 2026-01-20 22:32:31 +01:00
34 lines
845 B
JavaScript
34 lines
845 B
JavaScript
(function () {
|
|
'use strict';
|
|
|
|
angular
|
|
.module('about')
|
|
.controller('AboutController', AboutController);
|
|
|
|
AboutController.$inject = ['$scope', 'getStorageLangService', 'MeanTorrentConfig', 'AdminService'];
|
|
|
|
function AboutController($scope, getStorageLangService, MeanTorrentConfig, AdminService) {
|
|
var vm = this;
|
|
vm.lang = getStorageLangService.getLang();
|
|
vm.blackListConfig = MeanTorrentConfig.meanTorrentConfig.clientBlackList;
|
|
vm.appConfig = MeanTorrentConfig.meanTorrentConfig.app;
|
|
vm.announce = MeanTorrentConfig.meanTorrentConfig.announce;
|
|
|
|
vm.init = function () {
|
|
|
|
};
|
|
|
|
/**
|
|
* getOperList
|
|
*/
|
|
vm.getOperList = function () {
|
|
AdminService.get({
|
|
isOper: true,
|
|
isAdmin: true
|
|
}, function (data) {
|
|
vm.operList = data.rows;
|
|
});
|
|
};
|
|
}
|
|
}());
|