Skip to content

Commit

Permalink
site up typescript
Browse files Browse the repository at this point in the history
  • Loading branch information
mio-19 committed Dec 7, 2024
1 parent b983b07 commit a609e4c
Show file tree
Hide file tree
Showing 3 changed files with 45 additions and 41 deletions.
6 changes: 5 additions & 1 deletion site/app/[locale]/playground/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,11 @@ x`);
const updateUrlHash = (code: string) => {
if (typeof window !== 'undefined') {
const compressed = deflate(code);
const encodedCode = base64Encode(compressed.buffer);
// Create a new ArrayBuffer with the compressed data
const arrayBuffer = new ArrayBuffer(compressed.length);
const view = new Uint8Array(arrayBuffer);
view.set(compressed);
const encodedCode = base64Encode(arrayBuffer);
window.location.hash = encodedCode;
}
};
Expand Down
2 changes: 1 addition & 1 deletion site/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,6 @@
"postcss": "^8.4.49",
"prettier": "^3.4.2",
"tailwindcss": "^3.4.16",
"typescript": "5.6.3"
"typescript": "^5.7.2"
}
}
78 changes: 39 additions & 39 deletions site/pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit a609e4c

Please sign in to comment.