use apb::{Actor, Base, Collection, Object}; use leptos::*; use leptos_router::*; use crate::prelude::*; #[component] pub fn AboutPage() -> impl IntoView { view! {
μpub
" is a micro social network powered by "ActivityPub
loading...
}.into_view(), Some(None) => view! {error loading
{ dissolve::strip_html_tags(x.summary().unwrap_or("")) .into_iter() .map(|x| view! {
{x}
}) .collect_view() }type
" "{x.actor_type().unwrap_or(apb::ActorType::Person).as_ref().to_string()}following
" "{x.following().get().map(|x| x.total_items().unwrap_or(0))}followers
" "{x.followers().get().map(|x| x.total_items().unwrap_or(0))}created
" "{x.published().map(|x| x.to_rfc3339())}loading failed
loading ...
}.into_view(), }}