Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
LIU9293 committed Jun 26, 2023
1 parent 72e1e61 commit 9710739
Show file tree
Hide file tree
Showing 6 changed files with 13 additions and 5 deletions.
Binary file modified .DS_Store
Binary file not shown.
4 changes: 2 additions & 2 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -13,5 +13,5 @@ Cargo.lock
# Added by cargo

/target

/dist
/dist
.vercel
1 change: 0 additions & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ edition = "2021"
[dependencies]
dioxus = "0.3.0"
dioxus-web = "0.3.0"
log = "0.4.6"
wasm-logger = "0.2.0"
console_error_panic_hook = "0.1.7"
rand = "0.8.5"
Expand Down
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
## 2048 Game in Disxus

Live Demo -> https://rust-2048.vercel.app/

### Test and run (Web)
```
dioxus serve
Expand Down
7 changes: 7 additions & 0 deletions build.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y

source "$HOME/.cargo/env"

cargo install dioxus-cli

dioxus build --release
4 changes: 2 additions & 2 deletions src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ use crate::components::board::Board;

fn main() {
// init debug tool for WebAssembly
wasm_logger::init(wasm_logger::Config::default());
console_error_panic_hook::set_once();
// wasm_logger::init(wasm_logger::Config::default());
// console_error_panic_hook::set_once();
dioxus_web::launch(app);
}

Expand Down

0 comments on commit 9710739

Please sign in to comment.