mirror of
https://github.com/johndoe6345789/docker-swarm-termina.git
synced 2026-05-01 09:05:03 +00:00
Backend changes: - Added flask-socketio and python-socketio for WebSocket support - Implemented WebSocket endpoint /terminal for interactive terminal sessions - Added bidirectional communication between client and container PTY - Enabled full bash shell with stdin support for interactive commands - Updated server startup to use socketio.run Frontend changes: - Added xterm.js (@xterm/xterm) and socket.io-client dependencies - Added FitAddon for responsive terminal sizing - Implemented mode toggle between "Simple" and "Interactive" modes - Created interactive terminal with full PTY support using xterm.js - Connected WebSocket to backend for real-time command execution - Added empty directory detection for ls commands in simple mode - Terminal now defaults to interactive mode for better UX Features: - Interactive mode supports sudo with password prompts - Full support for interactive editors (nano, vim, emacs) - Proper terminal emulation with color support and control sequences - Responsive terminal sizing and window resize handling - Empty folder detection shows "(empty directory)" message - Mode toggle allows switching between simple and interactive modes https://claude.ai/code/session_01UFVy14uUD5Q7DjkUSgUFXC
34 lines
766 B
JSON
34 lines
766 B
JSON
{
|
|
"name": "frontend",
|
|
"version": "0.1.0",
|
|
"private": true,
|
|
"scripts": {
|
|
"dev": "next dev",
|
|
"build": "next build",
|
|
"start": "next start",
|
|
"lint": "eslint"
|
|
},
|
|
"dependencies": {
|
|
"@emotion/react": "^11.14.0",
|
|
"@emotion/styled": "^11.14.1",
|
|
"@mui/icons-material": "^7.3.7",
|
|
"@mui/material": "^7.3.7",
|
|
"@xterm/xterm": "^5.5.0",
|
|
"@xterm/addon-fit": "^0.10.0",
|
|
"next": "16.1.5",
|
|
"react": "19.2.3",
|
|
"react-dom": "19.2.3",
|
|
"socket.io-client": "^4.8.1"
|
|
},
|
|
"devDependencies": {
|
|
"@tailwindcss/postcss": "^4",
|
|
"@types/node": "^20",
|
|
"@types/react": "^19",
|
|
"@types/react-dom": "^19",
|
|
"eslint": "^9",
|
|
"eslint-config-next": "16.1.1",
|
|
"tailwindcss": "^4",
|
|
"typescript": "^5"
|
|
}
|
|
}
|