improved git file changes

This commit is contained in:
Usman Nasir
2020-03-13 20:41:50 +05:00
parent 0e31305dae
commit 59683599f4
9 changed files with 33 additions and 66 deletions

View File

@@ -2,10 +2,8 @@
* Created by usman on 7/24/17.
*/
/* Utilities */
function getCookie(name) {
var cookieValue = null;
if (document.cookie && document.cookie !== '') {
@@ -34,18 +32,15 @@ function randomPassword(length) {
/* Utilities ends here */
/* Java script code to monitor system status */
var app = angular.module('CyberCP', []);
app.config(['$interpolateProvider', function($interpolateProvider) {
$interpolateProvider.startSymbol('{$');
$interpolateProvider.endSymbol('$}');
}]);
app.filter('getwebsitename', function() {
return function(domain, uppercase) {
@@ -93,13 +88,8 @@ app.controller('systemStatusInfo', function($scope,$http,$timeout) {
}
});
/* Admin status */
app.controller('adminController', function($scope,$http,$timeout) {
url = "/base/getAdminStatus";
@@ -315,11 +305,8 @@ app.controller('adminController', function($scope,$http,$timeout) {
function cantLoadInitialData(response) {}
});
/* Load average */
app.controller('loadAvg', function($scope,$http,$timeout) {
//getStuff();
@@ -350,13 +337,8 @@ app.controller('loadAvg', function($scope,$http,$timeout) {
}
});
/// home page system status
app.controller('homePageStatus', function($scope,$http,$timeout) {
getStuff();
@@ -472,9 +454,6 @@ app.controller('homePageStatus', function($scope,$http,$timeout) {
}
});
////////////
function increment(){
@@ -488,11 +467,8 @@ function increment(){
increment();
////////////
app.controller('versionManagment', function($scope,$http,$timeout) {
$scope.upgradeLoading = true;