$
// home —
@{currentUser.handle}
{#if timelineError}
err: {timelineError}
{/if}
{#if timelineLoading && userPosts.length === 0}
// timeline is empty. compose your first post →
{:else}
{#if threadRoot}
err: {threadError}
{:else if threadRoot}
{#if threadParent && threadParent.uri !== threadRoot.uri}
$
// compose —
@{currentUser.handle}
$
// profile —
@{currentUser.handle}
{#if profileLoading && !profile}
err: {profileError}
{:else if profile}
{displayHandle(profile.handle)}
{profile.did}
- followers
- {profile.followers}
- following
- {profile.following}
- posts
- {profile.posts.length}
// no posts yet — compose your first one
{:else}
// recent posts
{#each profile.posts as p (p.uri)}
$
// settings
// account
- handle
- @{currentUser?.handle ?? "?"}
- did
- {currentUser?.did ?? "?"}
- posts in cache
- {userPosts.length}
// actions
// about
- app
- maarcadetweet
- version
- 0.1.0
- backend
- {pdsBase()}
- appview
- {appviewBase()}
$
// search
{#if searchError}
err: {searchError}
{/if}
{#if searchLoading}
// type to search…
{:else if searchResults.length === 0}
// no posts match "{searchQuery}"
{:else}
{#each searchResults as p (p.uri)}