From c51a5bb8603c049727825eb1abda71728d780309 Mon Sep 17 00:00:00 2001 From: alemi Date: Wed, 17 Jul 2024 21:54:15 +0200 Subject: [PATCH] feat(web): show upub version in frontend --- web/src/app.rs | 2 +- web/src/lib.rs | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/web/src/app.rs b/web/src/app.rs index c15a6ba..0a9cb3d 100644 --- a/web/src/app.rs +++ b/web/src/app.rs @@ -162,7 +162,7 @@ pub fn App() -> impl IntoView { } diff --git a/web/src/lib.rs b/web/src/lib.rs index b0bde30..c2f2af2 100644 --- a/web/src/lib.rs +++ b/web/src/lib.rs @@ -24,6 +24,7 @@ pub const URL_SENSITIVE: &str = "https://cdn.alemi.dev/social/nsfw.png"; pub const DEFAULT_AVATAR_URL: &str = "https://cdn.alemi.dev/social/gradient.png"; pub const NAME: &str = "μ"; pub const DEFAULT_COLOR: &str = "#BF616A"; +pub const VERSION: &str = env!("CARGO_PKG_VERSION"); use std::{ops::Deref, sync::Arc}; use uriproxy::UriClass;