Vanha frontend siirretty temp/. Uusi rakenne: - StatusBar.astro, Terminal.astro, Editor.astro, Guide.astro - global.css erillinen - Wasm pääsäikeessä (ei Worker — yksinkertainen, debugattava) - Tab-completion, dropdown, projektikortti, Monaco, GUIDE.md - Ei tokenisointia eikä koodilaboratoriota Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
16 lines
348 B
JavaScript
16 lines
348 B
JavaScript
const webCrypto = globalThis.crypto;
|
|
const subtle = webCrypto.subtle;
|
|
const randomUUID = () => {
|
|
return webCrypto.randomUUID();
|
|
};
|
|
const getRandomValues = (array) => {
|
|
return webCrypto.getRandomValues(array);
|
|
};
|
|
const _crypto = {
|
|
randomUUID,
|
|
getRandomValues,
|
|
subtle
|
|
};
|
|
|
|
export { _crypto as default, getRandomValues, randomUUID, subtle };
|