Compare commits
3 commits
af994da294
...
d59f48aa1d
Author | SHA1 | Date | |
---|---|---|---|
d59f48aa1d | |||
3c5c229045 | |||
6ce842fe54 |
8 changed files with 7 additions and 7 deletions
|
@ -1,5 +1,5 @@
|
||||||
[workspace]
|
[workspace]
|
||||||
members = ["apb", "web", "mdhtml", "uriproxy"]
|
members = ["apb", "web", "utils/mdhtml", "utils/uriproxy"]
|
||||||
|
|
||||||
[package]
|
[package]
|
||||||
name = "upub"
|
name = "upub"
|
||||||
|
@ -28,8 +28,8 @@ serde_json = "1"
|
||||||
serde_default = "0.1"
|
serde_default = "0.1"
|
||||||
serde-inline-default = "0.2"
|
serde-inline-default = "0.2"
|
||||||
toml = "0.8"
|
toml = "0.8"
|
||||||
mdhtml = { path = "mdhtml", features = ["markdown"] }
|
mdhtml = { path = "utils/mdhtml", features = ["markdown"] }
|
||||||
uriproxy = { path = "uriproxy" }
|
uriproxy = { path = "utils/uriproxy" }
|
||||||
jrd = "0.1"
|
jrd = "0.1"
|
||||||
tracing = "0.1"
|
tracing = "0.1"
|
||||||
tracing-subscriber = "0.3"
|
tracing-subscriber = "0.3"
|
||||||
|
|
|
@ -120,7 +120,7 @@ pub use types::{
|
||||||
},
|
},
|
||||||
document::{Document, DocumentMut, DocumentType},
|
document::{Document, DocumentMut, DocumentType},
|
||||||
place::{Place, PlaceMut},
|
place::{Place, PlaceMut},
|
||||||
// profile::Profile,
|
profile::Profile,
|
||||||
relationship::{Relationship, RelationshipMut},
|
relationship::{Relationship, RelationshipMut},
|
||||||
tombstone::{Tombstone, TombstoneMut},
|
tombstone::{Tombstone, TombstoneMut},
|
||||||
},
|
},
|
||||||
|
|
|
@ -28,11 +28,11 @@ leptos_router = { version = "0.6", features = ["csr"] }
|
||||||
leptos-use = { version = "0.10", features = ["serde"] }
|
leptos-use = { version = "0.10", features = ["serde"] }
|
||||||
reqwest = { version = "0.12", features = ["json"] }
|
reqwest = { version = "0.12", features = ["json"] }
|
||||||
apb = { path = "../apb", features = ["unstructured", "activitypub-fe", "activitypub-counters", "litepub"] }
|
apb = { path = "../apb", features = ["unstructured", "activitypub-fe", "activitypub-counters", "litepub"] }
|
||||||
uriproxy = { path = "../uriproxy/" }
|
uriproxy = { path = "../utils/uriproxy/" }
|
||||||
futures = "0.3.30"
|
futures = "0.3.30"
|
||||||
lazy_static = "1.4"
|
lazy_static = "1.4"
|
||||||
chrono = { version = "0.4", features = ["serde"] }
|
chrono = { version = "0.4", features = ["serde"] }
|
||||||
web-sys = { version = "0.3", features = ["Screen"] }
|
web-sys = { version = "0.3", features = ["Screen"] }
|
||||||
mdhtml = { path = "../mdhtml/" }
|
mdhtml = { path = "../utils/mdhtml/" }
|
||||||
jrd = "0.1"
|
jrd = "0.1"
|
||||||
tld = "2.35"
|
tld = "2.35"
|
||||||
|
|
|
@ -151,7 +151,7 @@ pub fn TimelineFeed(tl: Timeline) -> impl IntoView {
|
||||||
move || (scroll_debounced.get(), height.get()),
|
move || (scroll_debounced.get(), height.get()),
|
||||||
move |(s, h)| async move {
|
move |(s, h)| async move {
|
||||||
if !config.get().infinite_scroll { return }
|
if !config.get().infinite_scroll { return }
|
||||||
if s > 0.0 && h - s < view_height && !tl.loading.get() {
|
if !tl.loading.get() && h - s < view_height {
|
||||||
if let Err(e) = tl.more(auth).await {
|
if let Err(e) = tl.more(auth).await {
|
||||||
tracing::error!("auto load failed: {e}");
|
tracing::error!("auto load failed: {e}");
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue