first push
This commit is contained in:
commit
2a81b4a502
845 files changed
+356635
No files matched your search
@@ -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;
|
||||
}
|
||||
Reference in new issue
Block a user