feat(web): added local timeline
This commit is contained in:
parent
292cfe9011
commit
3e7d6adeb8
2 changed files with 3 additions and 0 deletions
|
@ -21,6 +21,7 @@ pub fn App() -> impl IntoView {
|
|||
.unwrap_or_default();
|
||||
let home_tl = Timeline::new(format!("{URL_BASE}/users/{username}/inbox/page"));
|
||||
let server_tl = Timeline::new(format!("{URL_BASE}/inbox/page"));
|
||||
let local_tl = Timeline::new(format!("{URL_BASE}/outbox/page"));
|
||||
let user_tl = Timeline::new(format!("{URL_BASE}/users/{username}/outbox/page"));
|
||||
let context_tl = Timeline::new(format!("{URL_BASE}/outbox/page"));
|
||||
|
||||
|
@ -120,6 +121,7 @@ pub fn App() -> impl IntoView {
|
|||
|
||||
<Route path="/web/home" view=move || view! { <TimelinePage name="home" tl=home_tl /> } />
|
||||
<Route path="/web/server" view=move || view! { <TimelinePage name="server" tl=server_tl /> } />
|
||||
<Route path="/web/local" view=move || view! { <TimelinePage name="server" tl=local_tl /> } />
|
||||
|
||||
<Route path="/web/about" view=AboutPage />
|
||||
<Route path="/web/config" view=move || view! { <ConfigPage setter=set_config /> } />
|
||||
|
|
|
@ -39,6 +39,7 @@ pub fn Navigator() -> impl IntoView {
|
|||
<table class="align w-100">
|
||||
<tr><td colspan="2"><a href="/web/home"><input class="w-100" type="submit" class:hidden=move || !auth.present() value="home timeline" /></a></td></tr>
|
||||
<tr><td colspan="2"><a href="/web/server"><input class="w-100" type="submit" value="server timeline" /></a></td></tr>
|
||||
<tr><td colspan="2"><a href="/web/local"><input class="w-100" type="submit" value="local timeline" /></a></td></tr>
|
||||
<tr>
|
||||
<td class="w-50"><a href="/web/about"><input class="w-100" type="submit" value="about" /></a></td>
|
||||
<td class="w-50"><a href="/web/config"><input class="w-100" type="submit" value="config" /></a></td>
|
||||
|
|
Loading…
Reference in a new issue