) {
+ let status = Status {
+ version: config::VERSION.to_string(),
+ max_size: *config::LIMIT as u32,
+ max_views: *config::MAX_VIEWS,
+ max_expiration: *config::MAX_EXPIRATION,
+ allow_advanced: *config::ALLOW_ADVANCED,
+ allow_files: *config::ALLOW_FILES,
+ theme_new_note_notice: *config::THEME_NEW_NOTE_NOTICE,
+ theme_image: config::THEME_IMAGE.to_string(),
+ theme_text: config::THEME_TEXT.to_string(),
+ theme_page_title: config::THEME_PAGE_TITLE.to_string(),
+ theme_favicon: config::THEME_FAVICON.to_string(),
+ };
+
+ (StatusCode::OK, Json(status))
+}
diff --git a/packages/backend/src/status/model.rs b/packages/backend/src/status/model.rs
deleted file mode 100644
index 6e77771..0000000
--- a/packages/backend/src/status/model.rs
+++ /dev/null
@@ -1,19 +0,0 @@
-use serde::{Deserialize, Serialize};
-
-#[derive(Serialize, Deserialize)]
-pub struct Status {
- // General
- pub version: String,
- // Config
- pub max_size: u32,
- pub max_views: u32,
- pub max_expiration: u32,
- pub allow_advanced: bool,
- pub allow_files: bool,
- pub theme_new_note_notice: bool,
- // Theme
- pub theme_image: String,
- pub theme_text: String,
- pub theme_page_title: String,
- pub theme_favicon: String,
-}
diff --git a/packages/backend/src/status/routes.rs b/packages/backend/src/status/routes.rs
deleted file mode 100644
index 9f767a6..0000000
--- a/packages/backend/src/status/routes.rs
+++ /dev/null
@@ -1,25 +0,0 @@
-use actix_web::{get, web, HttpResponse, Responder, Scope};
-
-use crate::config;
-use crate::status::Status;
-
-#[get("/")]
-async fn get_status() -> impl Responder {
- return HttpResponse::Ok().json(Status {
- version: config::VERSION.to_string(),
- max_size: *config::LIMIT as u32,
- max_views: *config::MAX_VIEWS,
- max_expiration: *config::MAX_EXPIRATION,
- allow_advanced: *config::ALLOW_ADVANCED,
- allow_files: *config::ALLOW_FILES,
- theme_new_note_notice: *config::THEME_NEW_NOTE_NOTICE,
- theme_image: config::THEME_IMAGE.to_string(),
- theme_text: config::THEME_TEXT.to_string(),
- theme_page_title: config::THEME_PAGE_TITLE.to_string(),
- theme_favicon: config::THEME_FAVICON.to_string(),
- });
-}
-
-pub fn init() -> Scope {
- web::scope("/status").service(get_status)
-}
diff --git a/packages/frontend/src/lib/ui/Icon.svelte b/packages/frontend/src/lib/ui/Icon.svelte
index cfad495..a2cbba4 100644
--- a/packages/frontend/src/lib/ui/Icon.svelte
+++ b/packages/frontend/src/lib/ui/Icon.svelte
@@ -18,19 +18,19 @@
export let icon: keyof typeof map
-
+
+