first push

This commit is contained in:
jhartworks committed 2026-11-09 10:37:41 +01:00
commit 2a81b4a502
845 files changed
+356635

No files matched your search

+12
View File
@@ -0,0 +1,12 @@
// Loads the card's visual editor only when the dashboard opens it (it defines <nextfloor-card-editor>).
/** Content hash of the card editor bundle, set by the build (see build.mjs). */
declare const __NF_CARD_EDITOR_HASH__: string;
let loading: Promise<unknown> | undefined;
export function loadCardEditor(): Promise<unknown> {
const url = new URL(`./nextfloor-card-editor.js?v=${__NF_CARD_EDITOR_HASH__}`, new URL(import.meta.url)).href;
loading ??= import(/* @vite-ignore */ url);
return loading;
}