mirror of
https://github.com/QwenLM/qwen-code.git
synced 2025-12-22 09:47:47 +00:00
141 lines
7.0 KiB
HTML
141 lines
7.0 KiB
HTML
<!DOCTYPE html>
|
|
<html lang="en">
|
|
<head>
|
|
<meta charset="UTF-8">
|
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
<title>Qwen CLI Bridge</title>
|
|
<link rel="stylesheet" href="sidepanel.css">
|
|
</head>
|
|
<body>
|
|
<div class="container">
|
|
<!-- Header -->
|
|
<header class="header">
|
|
<div class="logo">
|
|
<svg class="icon" viewBox="0 0 24 24" fill="none" stroke="currentColor">
|
|
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M13 10V3L4 14h7v7l9-11h-7z" />
|
|
</svg>
|
|
<h1>Qwen CLI Bridge</h1>
|
|
</div>
|
|
<div class="status-indicator" id="statusIndicator">
|
|
<span class="status-dot"></span>
|
|
<span class="status-text">Disconnected</span>
|
|
</div>
|
|
</header>
|
|
|
|
<!-- Connection Section -->
|
|
<section class="section connection-section">
|
|
<h2>Connection</h2>
|
|
<div class="connection-controls">
|
|
<button id="connectBtn" class="btn btn-primary">
|
|
Connect to Qwen CLI
|
|
</button>
|
|
<button id="startQwenBtn" class="btn btn-secondary" disabled>
|
|
Start Qwen CLI
|
|
</button>
|
|
</div>
|
|
<div id="connectionError" class="error-message" style="display: none;"></div>
|
|
</section>
|
|
|
|
<!-- Actions Section -->
|
|
<section class="section actions-section">
|
|
<h2>Quick Actions</h2>
|
|
<div class="action-buttons">
|
|
<button id="extractDataBtn" class="action-btn" disabled>
|
|
<svg class="action-icon" viewBox="0 0 24 24" fill="none" stroke="currentColor">
|
|
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M9 12h6m-6 4h6m2 5H7a2 2 0 01-2-2V5a2 2 0 012-2h5.586a1 1 0 01.707.293l5.414 5.414a1 1 0 01.293.707V19a2 2 0 01-2 2z" />
|
|
</svg>
|
|
Extract Page Data
|
|
</button>
|
|
|
|
<button id="captureScreenBtn" class="action-btn" disabled>
|
|
<svg class="action-icon" viewBox="0 0 24 24" fill="none" stroke="currentColor">
|
|
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M3 9a2 2 0 012-2h.93a2 2 0 001.664-.89l.812-1.22A2 2 0 0110.07 4h3.86a2 2 0 011.664.89l.812 1.22A2 2 0 0018.07 7H19a2 2 0 012 2v9a2 2 0 01-2 2H5a2 2 0 01-2-2V9z" />
|
|
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M15 13a3 3 0 11-6 0 3 3 0 016 0z" />
|
|
</svg>
|
|
Capture Screenshot
|
|
</button>
|
|
|
|
<button id="analyzePageBtn" class="action-btn" disabled>
|
|
<svg class="action-icon" viewBox="0 0 24 24" fill="none" stroke="currentColor">
|
|
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M9.663 17h4.673M12 3v1m6.364 1.636l-.707.707M21 12h-1M4 12H3m3.343-5.657l-.707-.707m2.828 9.9a5 5 0 117.072 0l-.548.547A3.374 3.374 0 0014 18.469V19a2 2 0 11-4 0v-.531c0-.895-.356-1.754-.988-2.386l-.548-.547z" />
|
|
</svg>
|
|
Analyze with AI
|
|
</button>
|
|
|
|
<button id="getSelectedBtn" class="action-btn" disabled>
|
|
<svg class="action-icon" viewBox="0 0 24 24" fill="none" stroke="currentColor">
|
|
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M8 16H6a2 2 0 01-2-2V6a2 2 0 012-2h8a2 2 0 012 2v2m-6 12h8a2 2 0 002-2v-8a2 2 0 00-2-2h-8a2 2 0 00-2 2v8a2 2 0 002 2z" />
|
|
</svg>
|
|
Send Selected Text
|
|
</button>
|
|
|
|
<button id="networkLogsBtn" class="action-btn" disabled>
|
|
<svg class="action-icon" viewBox="0 0 24 24" fill="none" stroke="currentColor">
|
|
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M8.111 16.404a5.5 5.5 0 017.778 0M12 20h.01m-7.08-7.071c3.904-3.905 10.236-3.905 14.141 0M1.394 9.393c5.857-5.857 15.355-5.857 21.213 0" />
|
|
</svg>
|
|
Network Logs
|
|
</button>
|
|
|
|
<button id="consoleLogsBtn" class="action-btn" disabled>
|
|
<svg class="action-icon" viewBox="0 0 24 24" fill="none" stroke="currentColor">
|
|
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M8 9l3 3-3 3m5 0h3M5 20h14a2 2 0 002-2V6a2 2 0 00-2-2H5a2 2 0 00-2 2v12a2 2 0 002 2z" />
|
|
</svg>
|
|
Console Logs
|
|
</button>
|
|
</div>
|
|
</section>
|
|
|
|
<!-- Response Section -->
|
|
<section class="section response-section" id="responseSection" style="display: none;">
|
|
<h2>Response</h2>
|
|
<div class="response-container">
|
|
<div class="response-header">
|
|
<span id="responseType" class="response-type"></span>
|
|
<button id="copyResponseBtn" class="btn-icon" title="Copy to clipboard">
|
|
<svg viewBox="0 0 24 24" fill="none" stroke="currentColor">
|
|
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M8 16H6a2 2 0 01-2-2V6a2 2 0 012-2h8a2 2 0 012 2v2m-6 12h8a2 2 0 002-2v-8a2 2 0 00-2-2h-8a2 2 0 00-2 2v8a2 2 0 002 2z" />
|
|
</svg>
|
|
</button>
|
|
</div>
|
|
<pre id="responseContent" class="response-content"></pre>
|
|
</div>
|
|
</section>
|
|
|
|
<!-- Settings Section -->
|
|
<section class="section settings-section">
|
|
<details>
|
|
<summary>Advanced Settings</summary>
|
|
<div class="settings-content">
|
|
<div class="setting-item">
|
|
<label for="mcpServers">MCP Servers:</label>
|
|
<input type="text" id="mcpServers" placeholder="chrome-devtools,playwright" />
|
|
</div>
|
|
<div class="setting-item">
|
|
<label for="httpPort">HTTP Port:</label>
|
|
<input type="number" id="httpPort" placeholder="8080" value="8080" />
|
|
</div>
|
|
<div class="setting-item">
|
|
<label for="autoConnect">
|
|
<input type="checkbox" id="autoConnect" />
|
|
Auto-connect on startup
|
|
</label>
|
|
</div>
|
|
<button id="saveSettingsBtn" class="btn btn-small">Save Settings</button>
|
|
</div>
|
|
</details>
|
|
</section>
|
|
|
|
<!-- Footer -->
|
|
<footer class="footer">
|
|
<a href="#" id="openOptionsBtn">Options</a>
|
|
<span>•</span>
|
|
<a href="#" id="helpBtn">Help</a>
|
|
<span>•</span>
|
|
<span class="version">v1.0.0</span>
|
|
</footer>
|
|
</div>
|
|
|
|
<script src="sidepanel.js"></script>
|
|
</body>
|
|
</html>
|