Added new mooncore js dependencies. Added ace editor build

This commit is contained in:
2025-02-05 16:50:35 +01:00
parent b6b488edf6
commit 2e5d0dcd73
432 changed files with 3530 additions and 13 deletions

View File

@@ -0,0 +1,13 @@
window.moonCoreDownloadService = {
download: async function (fileName, contentStreamReference) {
const arrayBuffer = await contentStreamReference.arrayBuffer();
const blob = new Blob([arrayBuffer]);
const url = URL.createObjectURL(blob);
const anchorElement = document.createElement('a');
anchorElement.href = url;
anchorElement.download = fileName ?? '';
anchorElement.click();
anchorElement.remove();
URL.revokeObjectURL(url);
}
}