Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -59,13 +59,12 @@ protected TerminalApiController(
public ResponseEntity<String> resize(@RequestParam("sessionId") String sessionId, @RequestParam("width") double cols,
@RequestParam(
"height") double rows) throws GeneralSecurityException {
log.info("resize");
var sessionIdStr = cryptoService.decrypt(sessionId);
var sessionIdLong = Long.parseLong(sessionIdStr);

sessionTrackingService.resize(sessionIdLong, cols, rows);

return ResponseEntity.ok(sessionId);
return ResponseEntity.ok("resized");
}

@GetMapping("/list")
Expand Down
16 changes: 0 additions & 16 deletions api/src/main/resources/templates/sso/ssh/sso.html
Original file line number Diff line number Diff line change
Expand Up @@ -528,7 +528,6 @@
'&height=' + height,
cache: false
});
// $('#terminal .terminal').toggleClass('fullscreen');
fitMap[id].fit();
}

Expand Down Expand Up @@ -799,22 +798,7 @@
function setTerminalEvents(element, id) {
// Ensure `element` is a jQuery object
const $element = $(element);
/*
$element.mousedown(function (event) {
event.preventDefault(); // Prevent default mousedown behavior

// Dynamically get the correct helper textarea for the given terminal instance
const helperTextarea = document.querySelector(`#sentrius_term_${id} .xterm-helper-textarea`);

if (helperTextarea) {
helperTextarea.focus(); // Explicitly focus the terminal input field
} else {
console.warn("Helper textarea not found for terminal ID:", id);
}

console.log("mousedown on terminal", id);
});
*/

}

Expand Down