Some checks failed
Beta Release / beta (push) Failing after 48s
Adds a WXT-based browser extension that replaces manual JS snippet injection for AI-driven browser testing. The extension auto-connects to the Muyue server via WebSocket on every page, using the exact same protocol as the existing snippet — zero backend changes needed. - Chrome/Edge (MV3) + Firefox (MV2) from single codebase via WXT - Content script: auto-connect WS, console capture, URL tracking, RPC - Background service worker: token management, screenshots, badge - Popup + side panel with server status, sessions, URL config - CI workflows: build extension, attach .zip to releases - Makefile targets: ext, ext-chrome, ext-firefox, ext-zip - Version bumped to 0.8.0 Assisted-by: GLM-5.1 via Crush <crush@charm.land>
56 lines
1.5 KiB
HTML
56 lines
1.5 KiB
HTML
<!DOCTYPE html>
|
|
<html lang="en">
|
|
<head>
|
|
<meta charset="UTF-8" />
|
|
<meta name="viewport" content="width=320" />
|
|
</head>
|
|
<body>
|
|
<div class="panel">
|
|
<header>
|
|
<img src="/icon/32.png" alt="Muyue" />
|
|
<h1>Muyue</h1>
|
|
</header>
|
|
|
|
<div class="status-card">
|
|
<div class="status-row">
|
|
<span class="status-label">Server</span>
|
|
<span class="status-value" id="server-status">
|
|
<span class="dot dot-yellow"></span>Checking…
|
|
</span>
|
|
</div>
|
|
<div class="status-row">
|
|
<span class="status-label">Active sessions</span>
|
|
<span class="status-value" id="session-count">—</span>
|
|
</div>
|
|
<div class="status-row">
|
|
<span class="status-label">Console errors</span>
|
|
<span class="status-value" id="error-count">0</span>
|
|
</div>
|
|
</div>
|
|
|
|
<div class="actions">
|
|
<a id="btn-dashboard" href="#" class="btn btn-primary" target="_blank">
|
|
Open Dashboard
|
|
</a>
|
|
<button id="btn-sidepanel" class="btn">
|
|
Open Side Panel
|
|
</button>
|
|
</div>
|
|
|
|
<div class="settings-section">
|
|
<label>Server URL</label>
|
|
<div class="input-row">
|
|
<input type="text" id="server-url" placeholder="http://127.0.0.1:8080" />
|
|
<button id="btn-save-url">Save</button>
|
|
</div>
|
|
</div>
|
|
|
|
<div class="footer">
|
|
<span>Muyue</span> browser extension v0.1.0
|
|
</div>
|
|
</div>
|
|
|
|
<script src="./main.js" type="module"></script>
|
|
</body>
|
|
</html>
|