Skip to content

Commit

Permalink
fit new codearea to fix bugs
Browse files Browse the repository at this point in the history
  • Loading branch information
tiye committed Oct 11, 2021
1 parent e4577d3 commit c9cc999
Show file tree
Hide file tree
Showing 4 changed files with 127 additions and 126 deletions.
4 changes: 2 additions & 2 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ edition = "2018"
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html

[dependencies]
# calcit_runner = { path="../calcit-runner.rs" }
calcit_runner = "0.5.0-a6"
calcit_runner = { path="../calcit-runner.rs" }
# calcit_runner = "0.5.0-a6"
wasm-bindgen = "*"
im = "15.0.0"
console_error_panic_hook = "*"
Expand Down
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@
"author": "jiyinyiyong <[email protected]>",
"license": "MIT",
"devDependencies": {
"vite": "^2.6.2"
"vite": "^2.6.7"
},
"dependencies": {
"@mvc-works/codearea": "^0.0.2"
"@mvc-works/codearea": "^0.0.3"
}
}
3 changes: 2 additions & 1 deletion script/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ import { codearea } from "@mvc-works/codearea";

let codeEl = document.querySelector(".code");
let resultEl = document.querySelector(".result");

codearea(codeEl);

init().then((w) => {
Expand All @@ -28,7 +29,7 @@ let run = () => {
document.querySelector(".run").addEventListener("click", run);

codeEl.addEventListener("keydown", (event) => {
if (event.keyCode === 13 && event.metaKey) {
if (event.keyCode === 13 && event.metaKey && event.shiftKey) {
run();
event.preventDefault();
}
Expand Down
242 changes: 121 additions & 121 deletions yarn.lock

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

0 comments on commit c9cc999

Please sign in to comment.