Skip to content

Commit

Permalink
v1.0.1
Browse files Browse the repository at this point in the history
  • Loading branch information
fangying committed Aug 18, 2022
1 parent e1d0a95 commit 7c48e53
Show file tree
Hide file tree
Showing 5 changed files with 12 additions and 25 deletions.
25 changes: 6 additions & 19 deletions Cargo.lock

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

2 changes: 1 addition & 1 deletion client/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
[package]
edition = "2021"
name = "stat_client"
version = "0.9.9"
version = "1.0.1"

rust-version = "1.63.0"

Expand Down
2 changes: 1 addition & 1 deletion common/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ repository = "https://github.com/airene/server-status"
[dependencies]
bytes = { version = "1", features = ["serde"] }
serde = { version = "1.0", default-features = false, features = ["derive", "alloc"] }
serde_json = { version = "1.0", default-features = false, features = ["alloc"] }
#serde_json = { version = "1.0", default-features = false, features = ["alloc"] }
tokio = { version = "1", features = ["full"] }
tonic = { version = "0.8", features = ["tokio-rustls"] }
prost = "0.11"
Expand Down
6 changes: 3 additions & 3 deletions server/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
[package]
edition = "2021"
name = "stat_server"
version = "0.9.9"
version = "1.0.0"

rust-version = "1.63.0"

Expand Down Expand Up @@ -32,7 +32,7 @@ once_cell = "1"
pretty_env_logger = "0.4"
# prettytable-rs = "^0.8"
prost = "0.11"
reqwest = { version = "0.11", features = ["json", "rustls-tls"], default-features = false }
#reqwest = { version = "0.11", features = ["json", "rustls-tls"], default-features = false }
#rhai = {version = "1.8.0", features = ["sync", "metadata", "decimal", "no_function", "no_module", "no_closure", "unchecked"]}
rust-embed = "6.4"
serde = { version = "1.0", default-features = false, features = ["derive", "alloc"] }
Expand All @@ -42,4 +42,4 @@ tokio = { version = "1", features = ["full"] }
toml = "0.5"
tonic = { version = "0.8", features = ["tokio-rustls"] }
#url = "2.2.2"
uuid = { version = "1.1", default-features = false, features = ["serde", "v4"] }
#uuid = { version = "1.1", default-features = false, features = ["serde", "v4"] }
2 changes: 1 addition & 1 deletion web/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -180,7 +180,7 @@ <h1>
setup() {
let host_list = ref([])
setInterval(() => {
fetch('http://192.168.1.90:9879/json/stats.json').then(res => res.json()).then((data) => {
fetch('/json/stats.json').then(res => res.json()).then((data) => {
host_list.value = data.servers
});
}, 2000);
Expand Down

0 comments on commit 7c48e53

Please sign in to comment.