File tree Expand file tree Collapse file tree 2 files changed +1
-18
lines changed
java/io/sentrius/sso/controllers/api
resources/templates/sso/ssh Expand file tree Collapse file tree 2 files changed +1
-18
lines changed Original file line number Diff line number Diff line change @@ -59,13 +59,12 @@ protected TerminalApiController(
5959 public ResponseEntity <String > resize (@ RequestParam ("sessionId" ) String sessionId , @ RequestParam ("width" ) double cols ,
6060 @ RequestParam (
6161 "height" ) double rows ) throws GeneralSecurityException {
62- log .info ("resize" );
6362 var sessionIdStr = cryptoService .decrypt (sessionId );
6463 var sessionIdLong = Long .parseLong (sessionIdStr );
6564
6665 sessionTrackingService .resize (sessionIdLong , cols , rows );
6766
68- return ResponseEntity .ok (sessionId );
67+ return ResponseEntity .ok ("resized" );
6968 }
7069
7170 @ GetMapping ("/list" )
Original file line number Diff line number Diff line change 528528 '&height=' + height ,
529529 cache : false
530530 } ) ;
531- // $('#terminal .terminal').toggleClass('fullscreen');
532531 fitMap [ id ] . fit ( ) ;
533532 }
534533
799798 function setTerminalEvents ( element , id ) {
800799 // Ensure `element` is a jQuery object
801800 const $element = $ ( element ) ;
802- /*
803- $element.mousedown(function (event) {
804- event.preventDefault(); // Prevent default mousedown behavior
805-
806- // Dynamically get the correct helper textarea for the given terminal instance
807- const helperTextarea = document.querySelector(`#sentrius_term_${id} .xterm-helper-textarea`);
808-
809- if (helperTextarea) {
810- helperTextarea.focus(); // Explicitly focus the terminal input field
811- } else {
812- console.warn("Helper textarea not found for terminal ID:", id);
813- }
814801
815- console.log("mousedown on terminal", id);
816- });
817- */
818802
819803 }
820804
You can’t perform that action at this time.
0 commit comments