Skip to content

Commit

Permalink
Switch to Bevy (#4)
Browse files Browse the repository at this point in the history
* a snapshot

* a snapshot with bugs

* no compile errors

* an attempt

* another snapshot still buggy

* clean up

* a snapshot

* use loop for building components

* tiny tweaks

* switch to Bevy
- modified:   Cargo.toml
- new file:   assets/fonts/NotoSansCJKjp-Regular.otf
- modified:   src/main.rs

* modified:   Cargo.toml; modified:   src/main.rs

* add button from examples/ui/button.rs

* add async stuff

* add async data fetcher

* tiny changes

* add some memo

* change labels to buttons

* desktop mode; fix some glitches

* add some interaction

* switch to reqwest

* use a modified copy of https://github.com/TotalKrill/bevy_mod_reqwest

* clean up

* written massively

* add Timeline component

* refactor Components and Resources

* update display with recieved data

* UI

* cargo clippy:   src/reqwest_plugin.rs

* try to make contents wider and wrapped

* revise layout settings

* editorial design

* more UI tweaks

* ditto

* UI tweaks and refactoring

* modified:   Cargo.toml

* adapt to auto-reflow text by bevyengine/bevy#7779 (comment)

* mention https://github.com/TotalKrill/bevy_mod_reqwest
  • Loading branch information
shnarazk authored Apr 17, 2023
1 parent d6f9b2e commit 8ff2dcb
Show file tree
Hide file tree
Showing 5 changed files with 569 additions and 223 deletions.
11 changes: 6 additions & 5 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,10 @@ edition = "2021"
[dependencies]
chrono = { version = "^0.4" }
clap = { version = "^4.1", features = ["derive", "env"] }
dioxus = { version = "^0.3" }
dioxus-desktop = { version = "^0.3" }
hyper = { version = "^0.14", features = ["full"] }
hyper-tls = { version = "^0.5" }
bevy = { git = "https://github.com/bevyengine/bevy.git", branch = "main" }
reqwest = "0.11.16"
serde_json = { version = "^1.0" }
tokio = { version = "^1.26", features = ["full"] }
futures-lite = "1.13.0"
async-compat = "0.2.1"
bytes = "1.4.0"
serde = "1.0.159"
Binary file added assets/fonts/NotoSansCJKjp-Regular.otf
Binary file not shown.
1 change: 1 addition & 0 deletions src/lib.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
pub mod reqwest_plugin;
Loading

0 comments on commit 8ff2dcb

Please sign in to comment.