From 0e434cbd1c1b98e7d86805e2e2845aa072962b76 Mon Sep 17 00:00:00 2001 From: MacRimi Date: Sat, 22 Nov 2025 18:15:12 +0100 Subject: [PATCH] Update AppImage --- AppImage/components/terminal-panel.tsx | 36 +++++++++++------ AppImage/scripts/flask_terminal_routes.py | 48 ++++++++++------------- 2 files changed, 44 insertions(+), 40 deletions(-) diff --git a/AppImage/components/terminal-panel.tsx b/AppImage/components/terminal-panel.tsx index 7c9fd8d..04ddbbf 100644 --- a/AppImage/components/terminal-panel.tsx +++ b/AppImage/components/terminal-panel.tsx @@ -654,21 +654,33 @@ export const TerminalPanel: React.FC = ({ websocketUrl, onCl
{searchResults.length > 0 ? ( - searchResults.map((result, index) => ( -
sendToActiveTerminal(result.command)} - className="p-4 rounded-lg border border-zinc-700 bg-zinc-800/50 hover:bg-zinc-800 hover:border-blue-500 transition-colors group" - > -
-
- {result.command} - {result.description &&

{result.description}

} + <> + {searchResults.map((result, index) => ( +
+ {result.description && ( +

# {result.description}

+ )} +
sendToActiveTerminal(result.command)} + className="flex items-start justify-between gap-2 cursor-pointer group hover:bg-zinc-800/50 rounded p-2 -m-2" + > + {result.command} +
-
+ ))} + + {/* Powered by cheat.sh */} +
+

+ + Powered by cheat.sh +

- )) + ) : filteredCommands.length > 0 && !useOnline ? ( filteredCommands.map((item, index) => (
2: - examples.append({ - 'description': '', - 'command': line - }) + # Si es un comentario + if stripped.startswith('#'): + # Acumular descripciones + current_description.append(stripped[1:].strip()) + # Si no es comentario, es un comando + elif stripped and not stripped.startswith('http'): + # Unir las descripciones acumuladas + description = ' '.join(current_description) if current_description else '' + + examples.append({ + 'description': description, + 'command': stripped + }) + + # Resetear descripciones para el siguiente comando + current_description = [] return jsonify({ 'success': True, - 'examples': examples, - 'raw_content': content + 'examples': examples }) else: return jsonify({