Frontend uudelleenrakennettu: Astro-komponentit, Wasm pääsäikeessä, ei Workeria
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>
This commit is contained in:
19
network-poc/frontend/node_modules/iron-webcrypto/dist/example.js
generated
vendored
Normal file
19
network-poc/frontend/node_modules/iron-webcrypto/dist/example.js
generated
vendored
Normal file
@@ -0,0 +1,19 @@
|
||||
const { webcrypto } = require('node:crypto')
|
||||
const Iron = require('iron-webcrypto')
|
||||
|
||||
const obj = {
|
||||
a: 1,
|
||||
b: 2,
|
||||
c: [3, 4, 5],
|
||||
d: {
|
||||
e: 'f'
|
||||
}
|
||||
}
|
||||
|
||||
const password = 'a_password_having_at_least_32_chars'
|
||||
|
||||
const sealed = await Iron.seal(webcrypto, obj, password, Iron.defaults)
|
||||
console.log({ sealed })
|
||||
|
||||
const unsealed = await Iron.unseal(webcrypto, sealed, password, Iron.defaults)
|
||||
console.log({ unsealed })
|
||||
Reference in New Issue
Block a user