chore: add Justfile, apply clippy fixes, add frontend type checking

- Add Justfile with comprehensive development workflow commands (check,
lint, build, docker, etc.)
- Add @astrojs/check and typescript dependencies for frontend type
checking
This commit is contained in:
2025-12-11 12:15:15 -06:00
parent 8129975ecc
commit 006055cb7f
12 changed files with 719 additions and 41 deletions

View File

@@ -35,7 +35,7 @@ fn main() -> Result<(), Box<dyn Error>> {
};
let json_data = serde_json::to_string(&key_data)?;
write!(f, "{}", json_data.to_string())?;
write!(f, "{}", json_data)?;
Ok(())
}

View File

@@ -9,8 +9,8 @@ struct KeyData<'a> {
compile_time: String,
}
static KEY: &'static str = include_str!(concat!(env!("OUT_DIR"), "/key.json"));
const HOST_INFO: (&'static str, &'static str) = match option_env!("RAILWAY_PUBLIC_DOMAIN") {
static KEY: &str = include_str!(concat!(env!("OUT_DIR"), "/key.json"));
const HOST_INFO: (&str, &str) = match option_env!("RAILWAY_PUBLIC_DOMAIN") {
Some(domain) => ("https", domain),
None => ("http", "localhost:5800"),
};
@@ -67,7 +67,7 @@ fn main() {
fn request(token: u32) {
let client = reqwest::blocking::Client::new();
let response = client
.post(&format!(
.post(format!(
"{}://{}/notify?key=0x{:08X}",
HOST_INFO.0, HOST_INFO.1, token
))