From af7627d346725c974b012df8eb6ebc2a630adf4c Mon Sep 17 00:00:00 2001 From: Ilion Beyst Date: Wed, 2 Feb 2022 23:15:55 +0100 Subject: use ace editor for code editing --- web/pw-server/package.json | 5 +++-- web/pw-server/src/app.html | 34 ++++++++++++++++------------------ web/pw-server/src/routes/index.svelte | 25 +++++++++++++++++++++---- 3 files changed, 40 insertions(+), 24 deletions(-) (limited to 'web') diff --git a/web/pw-server/package.json b/web/pw-server/package.json index eafc63f..53a4492 100644 --- a/web/pw-server/package.json +++ b/web/pw-server/package.json @@ -31,10 +31,11 @@ "vite-plugin-wasm-pack": "^0.1.9" }, "dependencies": { + "ace-builds": "^1.4.14", "dayjs": "^1.10.7", - "svelte-select": "^4.4.7", + "planetwars-rs": "file:../planetwars-rs/pkg", "pw-visualizer": "file:../pw-visualizer", - "planetwars-rs": "file:../planetwars-rs/pkg" + "svelte-select": "^4.4.7" }, "type": "module" } diff --git a/web/pw-server/src/app.html b/web/pw-server/src/app.html index 3193582..7460227 100644 --- a/web/pw-server/src/app.html +++ b/web/pw-server/src/app.html @@ -1,22 +1,20 @@ + + + + - - - - + + + + + %svelte.head% + - - - - - %svelte.head% - - - -
%svelte.body%
- - - \ No newline at end of file + +
%svelte.body%
+ + diff --git a/web/pw-server/src/routes/index.svelte b/web/pw-server/src/routes/index.svelte index a2a2e61..0db994c 100644 --- a/web/pw-server/src/routes/index.svelte +++ b/web/pw-server/src/routes/index.svelte @@ -1,17 +1,26 @@

Planetwars

-