Fetch the current pairing code from GET /admin/paircode (localhost-only) and display it in both the initial PairingDialog and the /pairing management page. Users no longer need to check the terminal to find the 6-digit code — it appears directly in the web UI. Falls back gracefully when the admin endpoint is unreachable (e.g. non-localhost access), showing the original "check your terminal" prompt. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com> |
||
|---|---|---|
| .. | ||
| components/layout | ||
| hooks | ||
| lib | ||
| pages | ||
| types | ||
| App.tsx | ||
| index.css | ||
| main.tsx | ||
| vite-env.d.ts | ||