Files
claude-code-usage-bubble/ui/bubble.html
T
tiennm99 83f60d1c1c feat: run the app on a Tauri runtime with shared state and commands
run() keeps the pre-builder order: diagnostic log, the Windows WebView2 guard
(a message box with the download link, then exit 0), the --wait-pid wait
capped at 15 s, GDK_BACKEND=x11 under Wayland when Xwayland is present, and
the single-instance plugin registered first with a no-op callback.

setup() loads the settings, drops positions on missing monitors, reads the
theme, cleans up after earlier updates, starts the scheduler and polls. The
state sits behind one mutex reached only through with_state, so no Tauri call
runs under the lock. The poll worker keeps the in-flight gate, applies the
results, runs the CLI credential refresh and pushes bubble payloads from the
main thread.

Commands: get_bubble_state, get_strings, log_js and bubble_ready. Bubble
windows ignore close requests; Restart saves the settings and exits only once
the new instance spawned. The scaffold window now renders its payload as JSON.

The Win32 app module is removed.
2026-10-21 13:20:15 +07:00

28 lines
589 B
HTML

<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>Claude Code Usage Bubble</title>
<style>
html,
body {
margin: 0;
background: #1f1f1f;
color: #eaeaea;
font: 12px ui-monospace, "Cascadia Mono", Consolas, monospace;
}
pre {
margin: 0;
padding: 8px;
white-space: pre-wrap;
word-break: break-word;
}
</style>
<script type="module" src="bubble.js"></script>
</head>
<body>
<pre id="payload">Waiting for the first payload...</pre>
</body>
</html>