chore: import upstream snapshot with attribution
This commit is contained in:
@@ -0,0 +1,23 @@
|
||||
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 });
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user