b374k
m1n1 1.01
Apache/2.4.41 (Ubuntu)
Linux vmi616275.contaboserver.net 5.4.0-84-generic #94-Ubuntu SMP Thu Aug 26 20:27:37 UTC 2021 x86_64
uid=33(www-data) gid=33(www-data) groups=33(www-data)
server ip : 62.171.164.128 | your ip : 127.0.0.1
safemode OFF
 >  / home / a / home / dev2.destoffenstraat.com / update / pub / js /
Filename/home/a/home/dev2.destoffenstraat.com/update/pub/js/status.js
Size2.76 kb
Permissionrw-r--r--
Ownerroot : root
Create time21-Aug-2025 12:26
Last modified06-Apr-2021 18:06
Last accessed22-Aug-2025 13:58
Actionsedit | rename | delete | download (gzip)
Viewtext | code | image
/**
* Copyright © 2013-2017 Magento, Inc. All rights reserved.
* See COPYING.txt for license details.
*/
'use strict';
angular.module('status', ['ngStorage'])
.controller('statusController', ['$scope', '$interval', '$sce', '$timeout', '$localStorage', '$rootScope', '$http', function ($scope, $interval, $sce, $timeout, $localStorage, $rootScope, $http) {
$scope.isConsole = true;
$scope.isShowCleanUpBox = false;
$scope.error = false;
$scope.rollbackStarted = false;
$scope.nextButton = false;

$scope.toggleConsole = function () {
$scope.isConsole = $scope.isConsole === false;
};
$scope.rollback = function () {
$http.post('index.php/rollback');
$scope.error = true;
$scope.rollbackStarted = true;
};
$scope.goToSuccessPage = function () {
window.location.href = '../setup/index.php#/updater-success';
};

$interval(
function () {
$http.post('index.php/status')
.success(function (result) {
if (result['complete']) {
$localStorage.rollbackStarted = $scope.rollbackStarted;
if ($scope.rollbackStarted === true) {
$scope.nextButton = true;
} else {
$scope.goToSuccessPage();
}
}
if (result.statusMessage) {
$('#console').html(result.statusMessage);
}
var statusText = "";
if (result.isUpdateInProgress) {
statusText = "Update application is running";
} else if (result.pending) {
statusText = "Update pending";
} else {
statusText = "Update application is not running";
}
$('#status').html(statusText);
if (result['error'] || $scope.error) {
$scope.error = true;
}
})
.error(function (result) {
$scope.error = true;
$scope.rollbackStarted = false;
});
},
3000
);
$interval(
function () {
$http.post('../setup/index.php/session/prolong')
.success(function (result) {
})
.error(function (result) {
});
},
120000
);
}]);