mirror of
https://github.com/BetterSEQTA/BetterSEQTA-Plus.git
synced 2026-08-28 17:21:05 +00:00
d10fca6c0f
Batch settings storage writes, tier plugin startup, lazy-load heavy UI chunks, and optimize global search indexing. Stop tweening bar height in grade analytics to prevent invalid negative SVG rect values. Co-authored-by: Cursor <cursoragent@cursor.com>
26 lines
703 B
TypeScript
26 lines
703 B
TypeScript
/**
|
|
* Module-level handoff for "open the theme store and highlight this theme".
|
|
*/
|
|
let pendingHighlightThemeId: string | null = null;
|
|
|
|
export function consumePendingHighlightThemeId(): string | null {
|
|
const id = pendingHighlightThemeId;
|
|
pendingHighlightThemeId = null;
|
|
return id;
|
|
}
|
|
|
|
export async function openThemeStoreWithHighlight(themeId: string): Promise<void> {
|
|
pendingHighlightThemeId = themeId;
|
|
|
|
const existing = document.getElementById("store");
|
|
if (existing) {
|
|
window.dispatchEvent(
|
|
new CustomEvent("bsplus:highlight-theme", { detail: { themeId } }),
|
|
);
|
|
return;
|
|
}
|
|
|
|
const { OpenStorePage } = await import("@/seqta/ui/renderStore");
|
|
await OpenStorePage();
|
|
}
|