Use mcschema hooks beta and watch things explode

This commit is contained in:
Misode
2020-10-09 00:55:18 +02:00
parent ff6e02fb36
commit 8c610b99e0
9 changed files with 406 additions and 13 deletions

7
src/app/utils.ts Normal file
View File

@@ -0,0 +1,7 @@
const dec2hex = (dec: number) => ('0' + dec.toString(16)).substr(-2)
export function hexId(length = 12) {
var arr = new Uint8Array(length / 2)
window.crypto.getRandomValues(arr)
return Array.from(arr, dec2hex).join('')
}