diff options
author | Ilion Beyst <ilion.beyst@gmail.com> | 2022-02-07 21:36:54 +0100 |
---|---|---|
committer | Ilion Beyst <ilion.beyst@gmail.com> | 2022-02-07 21:36:54 +0100 |
commit | dc415a81259dba1afdc3570c9882288940bd3c29 (patch) | |
tree | 655767587169ff47016d28dad2300d175024b336 /web/pw-server/src/lib/components/Editor.svelte | |
parent | 4feebe50430236a331b439c31af13d0d390be805 (diff) | |
download | planetwars.dev-dc415a81259dba1afdc3570c9882288940bd3c29.tar.xz planetwars.dev-dc415a81259dba1afdc3570c9882288940bd3c29.zip |
cleanup editor code
Diffstat (limited to 'web/pw-server/src/lib/components/Editor.svelte')
-rw-r--r-- | web/pw-server/src/lib/components/Editor.svelte | 27 |
1 files changed, 0 insertions, 27 deletions
diff --git a/web/pw-server/src/lib/components/Editor.svelte b/web/pw-server/src/lib/components/Editor.svelte deleted file mode 100644 index 5acbca5..0000000 --- a/web/pw-server/src/lib/components/Editor.svelte +++ /dev/null @@ -1,27 +0,0 @@ -<script lang="ts"> - import type { Ace } from "ace-builds"; - import ace from "ace-builds/src-noconflict/ace?client"; - import * as aceGithubTheme from "ace-builds/src-noconflict/theme-github?client"; - - import { onMount } from "svelte"; - - export let editSession: Ace.EditSession; - - let editorDiv: HTMLDivElement | undefined; - let editor: Ace.Editor | undefined; - - onMount(async () => { - let renderer = new ace.VirtualRenderer(editorDiv); - editor = new ace.Editor(renderer, editSession); - editor.setTheme(aceGithubTheme); - }); -</script> - -<div bind:this={editorDiv} class="editor" /> - -<style> - .editor { - width: 100%; - height: 100%; - } -</style> |