Skip to content

Commit

Permalink
lint
Browse files Browse the repository at this point in the history
  • Loading branch information
harsh-mahajan-yral committed Jan 30, 2025
1 parent 7fc19fa commit e3b8428
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 15 deletions.
24 changes: 12 additions & 12 deletions ssr/src/component/head.rs
Original file line number Diff line number Diff line change
@@ -1,30 +1,30 @@
use leptos::*;
use crate::utils::host::get_host;
use crate::utils::app::get_app_config;
use crate::utils::host::get_host;
use leptos::*;

#[component]
pub fn Head() -> impl IntoView {
let host = get_host();
let app_config = get_app_config(&host);

view! {
<>
<link rel="manifest" href="/app.webmanifest"/>
<link
rel="icon"
type="image/png"
sizes="192x192"
<link
rel="icon"
type="image/png"
sizes="192x192"
href=format!("/img/{}/android-chrome-192x192.png", app_config.id)
/>
<link
rel="icon"
type="image/png"
sizes="384x384"
<link
rel="icon"
type="image/png"
sizes="384x384"
href=format!("/img/{}/android-chrome-384x384.png", app_config.id)
/>
<meta name="theme-color" content=app_config.theme_color/>
<meta name="application-name" content=app_config.name/>
<meta name="description" content=app_config.description/>
</>
}
}
}
2 changes: 1 addition & 1 deletion ssr/src/component/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ pub mod connect;
pub mod content_upload;
pub mod dashbox;
pub mod feed_popup;
pub mod head;
pub mod hn_icons;
pub mod ic_symbol;
pub mod icons;
Expand All @@ -32,4 +33,3 @@ pub mod toggle;
pub mod token_confetti_symbol;
pub mod token_logo_sanitize;
pub mod video_player;
pub mod head;
2 changes: 1 addition & 1 deletion ssr/src/utils/app.rs
Original file line number Diff line number Diff line change
Expand Up @@ -31,4 +31,4 @@ pub fn get_app_config(host: &str) -> AppConfig {
theme_color: "#E20479",
},
}
}
}
2 changes: 1 addition & 1 deletion ssr/src/utils/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ use leptos::{create_memo, Resource, Serializable, Signal, SignalStream, SignalWi
use serde::{Deserialize, Serialize};

pub mod ab_testing;
pub mod app;
pub mod event_streaming;
pub mod host;
pub mod icon;
Expand All @@ -19,7 +20,6 @@ pub mod token;
pub mod types;
pub mod user;
pub mod web;
pub mod app;

/// Wrapper for PartialEq that always returns false
/// this is currently only used for resources
Expand Down

0 comments on commit e3b8428

Please sign in to comment.