chore: bump version to v0.2.1

This commit is contained in:
mofeng-git
2026-05-20 00:09:31 +08:00
parent 1f7cfb373c
commit 2e0ca89943
6 changed files with 31 additions and 8 deletions

View File

@@ -149,7 +149,7 @@ fn static_response(path: &str, data: Vec<u8>) -> Response<Body> {
.unwrap()
}
pub fn placeholder_html() -> &'static str {
pub fn placeholder_html() -> String {
r#"<!DOCTYPE html>
<html lang="en">
<head>
@@ -181,8 +181,9 @@ pub fn placeholder_html() -> &'static str {
<h1>One-KVM</h1>
<p>Frontend not built yet.</p>
<p>Please build the frontend or access the API directly.</p>
<div class="version">v0.2.0</div>
<div class="version">v{{VERSION}}</div>
</div>
</body>
</html>"#
.replace("{{VERSION}}", env!("CARGO_PKG_VERSION"))
}