feat(panel): upgrade modular dashboard UI, 6-segment context meter, and consumption analytics

This commit is contained in:
yuhuan2498281558
2026-10-15 19:02:53 +09:00
parent f6cbd92fdb
commit 10a002afbe
42 changed files with 11102 additions and 1960 deletions
+30
View File
@@ -0,0 +1,30 @@
/**
* @fileoverview Async entry point for Antigravity Usage & Speed Monitor.
*/
import { App } from './App.js';
import { startAsyncTelemetryLoop } from './store/telemetryStore.js';
export async function bootstrapApp(mountTarget = document.getElementById('app-root')) {
if (!mountTarget) return null;
const appInstance = App();
mountTarget.appendChild(appInstance.el);
const stopPolling = startAsyncTelemetryLoop(2000);
return {
appInstance,
stopPolling,
};
}
export function init() {
if (typeof document === 'undefined') return;
if (document.readyState === 'loading' && typeof document.addEventListener === 'function') {
document.addEventListener('DOMContentLoaded', () => {
bootstrapApp();
});
} else {
bootstrapApp();
}
}
init();