You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
portainer/app/docker/services/execService.js

24 lines
737 B

import { resizeTTY } from '@/react/docker/proxy/queries/useExecResizeTTYMutation';
angular.module('portainer.docker').factory('ExecService', ExecServiceFactory);
/* @ngInject */
function ExecServiceFactory(AngularToReact) {
const { useAxios, injectEnvironmentId } = AngularToReact;
return {
resizeTTY: useAxios(injectEnvironmentId(resizeTTYAngularJS)),
};
/**
* @param {EnvironmentId} environmentId Injected
* @param {string} execId
* @param {number} width
* @param {number} height
* @param timeout DEPRECATED: Previously used in pure AJS implementation
*/
async function resizeTTYAngularJS(environmentId, execId, width, height) {
return resizeTTY(environmentId, execId, { width, height });
}
}