🎉 创世提交

This commit is contained in:
柚子
2025-01-22 01:48:07 +08:00
commit 5d3481b9ea
92 changed files with 11705 additions and 0 deletions

View File

@@ -0,0 +1,14 @@
use crate::handlers::server::get_img_server_url;
pub mod search;
pub const UA: &str = concat!("Spark-Store/", env!("CARGO_PKG_VERSION"));
#[tauri::command]
pub fn get_user_agent() -> String {
UA.into()
}
pub fn format_icon_url(category: &str, pkgname: &str) -> String {
format!("{}{}/{}/icon.png", get_img_server_url(), category, pkgname)
}