Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
mendrik committed Nov 3, 2023
1 parent 63fc114 commit 2b4aa9e
Show file tree
Hide file tree
Showing 28 changed files with 5,036 additions and 50 deletions.
4,838 changes: 4,838 additions & 0 deletions analyse.html

Large diffs are not rendered by default.

1 change: 0 additions & 1 deletion docs/CNAME

This file was deleted.

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

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

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

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

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

12 changes: 6 additions & 6 deletions docs/assets/index-e05abcfd.js → docs/assets/index-16d78148.js

Large diffs are not rendered by default.

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

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

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

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

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

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

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

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

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

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

2 changes: 1 addition & 1 deletion docs/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@

gtag('config', 'G-Z6B0LX1RZ7');
</script>
<script type="module" crossorigin src="/assets/index-e05abcfd.js"></script>
<script type="module" crossorigin src="/assets/index-16d78148.js"></script>
<link rel="stylesheet" href="/assets/index-46ab7935.css">
</head>

Expand Down
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@
"eslint-plugin-unused-imports": "2.0.0",
"postcss": "^8.4.31",
"prettier": "3.0.3",
"rollup-plugin-visualizer": "5.9.2",
"vite": "^4.4.5",
"vite-plugin-svgr": "^4.1.0",
"typescript": "^5.0.2"
Expand Down
129 changes: 125 additions & 4 deletions pnpm-lock.yaml

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

19 changes: 12 additions & 7 deletions src/app.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -16,13 +16,17 @@ import { Output, output } from "./output"
export const editor = signal<E.IStandaloneCodeEditor | null>(null)

/* eslint-disable */
keywords.forEach((k) => {
// @ts-ignore
if (!window[k]) {
// @ts-ignore
window[k] = R[k] ?? RA[k] ?? P[k]
}
})
const exposeGlobals = () => {
keywords.forEach((k: any) => {
if (!window[k]) {
// @ts-ignore
const func = R[k] ?? RA[k] ?? P[k]
if (RA.isFunction(func)) {
window[k] = func
}
}
})
}
/* eslint-enable */

const handleCodeChange = (): void => {
Expand All @@ -31,6 +35,7 @@ const handleCodeChange = (): void => {
const js = transform(editor.value.getValue(), {
transforms: ["typescript"]
})
exposeGlobals()
const result: unknown = eval(js.code)
if (result !== undefined) {
output.value.setValue(
Expand Down
5 changes: 4 additions & 1 deletion src/config/editor.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,5 +20,8 @@ export const editorOptions: E.IStandaloneEditorConstructionOptions = {
language: myLang,
fontFamily: "Fira Code",
fontLigatures: true,
fontSize: 14
fontSize: 14,
scrollbar: {
useShadows: false
}
}
Loading

0 comments on commit 2b4aa9e

Please sign in to comment.