Remove old terminal

This commit is contained in:
Johannes Zellner
2023-07-18 17:26:13 +02:00
parent 9399b430d6
commit ac33570645
6 changed files with 2 additions and 671 deletions

View File

@@ -961,15 +961,6 @@ angular.module('Application').service('Client', ['$http', '$interval', '$timeout
});
};
Client.prototype.createExec = function (id, options, callback) {
post('/api/v1/apps/' + id + '/exec', options, null, function (error, data, status) {
if (error) return callback(error);
if (status !== 200) return callback(new ClientError(status, data));
callback(null, data.id);
});
};
Client.prototype.version = function (callback) {
get('/api/v1/cloudron/status', null, function (error, data, status) {
if (error) return callback(error);
@@ -2766,40 +2757,6 @@ angular.module('Application').service('Client', ['$http', '$interval', '$timeout
});
};
Client.prototype.uploadFile = function (appId, file, progressCallback, callback) {
var fd = new FormData();
fd.append('file', file);
var config = {
headers: { 'Content-Type': undefined },
transformRequest: angular.identity,
uploadEventHandlers: {
progress: progressCallback
}
};
post('/api/v1/apps/' + appId + '/upload?file=' + encodeURIComponent('/tmp/' + file.name), fd, config, function (error, data, status) {
if (error) return callback(error);
if (status !== 202) return callback(new ClientError(status, data));
callback(null);
});
};
Client.prototype.checkDownloadableFile = function (appId, filePath, callback) {
var config = {
headers: { 'Content-Type': undefined }
};
head('/api/v1/apps/' + appId + '/download?file=' + encodeURIComponent(filePath), config, function (error, data, status) {
if (error) return callback(error);
if (status !== 200) return callback(new ClientError(status, data));
callback(null);
});
};
Client.prototype.sendTestMail = function (domain, to, callback) {
var data = {
to: to