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

@@ -35,18 +35,5 @@ window.moonlight = {
(document.head || document.documentElement).appendChild(scriptElement);
}
},
utils: {
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);
}
}
};