Skip to content
This repository has been archived by the owner on Aug 23, 2023. It is now read-only.

Commit

Permalink
Add dev messages functionality
Browse files Browse the repository at this point in the history
  • Loading branch information
NGnius committed Jul 4, 2023
1 parent 4909ccf commit 33e8c7c
Show file tree
Hide file tree
Showing 19 changed files with 727 additions and 633 deletions.
539 changes: 236 additions & 303 deletions backend/Cargo.lock

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion backend/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ limits_core = { version = "2", path = "./limits_core" }
regex = "1"
libryzenadj = { version = "0.12" }
# ureq's tls feature does not like musl targets
ureq = { version = "2.5", features = ["json", "gzip", "brotli", "charset"], default-features = false, optional = true }
ureq = { version = "2", features = ["json", "gzip", "brotli", "charset"], default-features = false, optional = true }

[features]
default = ["online", "decky"]
Expand Down
38 changes: 19 additions & 19 deletions backend/limits_core/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 backend/limits_core/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "limits_core"
version = "2.0.0"
version = "2.0.1"
edition = "2021"

# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
Expand Down
9 changes: 8 additions & 1 deletion backend/limits_core/src/json/base.rs
Original file line number Diff line number Diff line change
Expand Up @@ -170,7 +170,14 @@ impl Default for Base {
]
}
],
messages: Vec::new(),
messages: vec![
super::DeveloperMessage {
id: 1,
title: "Welcome".to_owned(),
body: "Thanks for installing PowerTools! For more information, please check the wiki. For bugs and requests, please create an issue on GitHub.".to_owned(),
url: Some("https://github.com/NGnius/PowerTools/wiki".to_owned()),
}
],
refresh: Some("http://limits.ngni.us:45000/powertools/v1".to_owned())
}
}
Expand Down
Loading

0 comments on commit 33e8c7c

Please sign in to comment.