chore(web): remove unused stuff
This commit is contained in:
parent
a09795246b
commit
d6756ef44d
4 changed files with 1 additions and 15 deletions
|
@ -9,7 +9,6 @@ use apb::Collection;
|
||||||
#[component]
|
#[component]
|
||||||
pub fn FollowList(outgoing: bool) -> impl IntoView {
|
pub fn FollowList(outgoing: bool) -> impl IntoView {
|
||||||
let follow___ = if outgoing { "following" } else { "followers" };
|
let follow___ = if outgoing { "following" } else { "followers" };
|
||||||
let symbol = if outgoing { "👥" } else { "📢" };
|
|
||||||
let params = use_params::<IdParam>();
|
let params = use_params::<IdParam>();
|
||||||
let auth = use_context::<Auth>().expect("missing auth context");
|
let auth = use_context::<Auth>().expect("missing auth context");
|
||||||
let resource = create_local_resource(
|
let resource = create_local_resource(
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
use leptos::*;
|
use leptos::*;
|
||||||
use leptos_router::*;
|
use leptos_router::*;
|
||||||
use crate::{app::FeedRoute, getters::Getter, prelude::*, FALLBACK_IMAGE_URL};
|
use crate::{app::FeedRoute, prelude::*, FALLBACK_IMAGE_URL};
|
||||||
|
|
||||||
use apb::{ActivityMut, Actor, Base, Object, ObjectMut, Shortcuts};
|
use apb::{ActivityMut, Actor, Base, Object, ObjectMut, Shortcuts};
|
||||||
|
|
||||||
|
|
|
@ -1,11 +0,0 @@
|
||||||
|
|
||||||
pub trait Getter<T: Default> {
|
|
||||||
/// .ok().unwrap_or_default()
|
|
||||||
fn want(self) -> T;
|
|
||||||
}
|
|
||||||
|
|
||||||
impl<T: Default> Getter<T> for apb::Field<T> {
|
|
||||||
fn want(self) -> T {
|
|
||||||
self.ok().unwrap_or_default()
|
|
||||||
}
|
|
||||||
}
|
|
|
@ -9,8 +9,6 @@ mod activities;
|
||||||
mod objects;
|
mod objects;
|
||||||
mod timeline;
|
mod timeline;
|
||||||
|
|
||||||
mod getters;
|
|
||||||
|
|
||||||
pub use app::App;
|
pub use app::App;
|
||||||
pub use config::Config;
|
pub use config::Config;
|
||||||
pub use auth::Auth;
|
pub use auth::Auth;
|
||||||
|
|
Loading…
Reference in a new issue