Add profile view

This commit is contained in:
Paul Frazee 2022-07-21 19:55:04 -05:00
parent 29ed3d2ecf
commit cc8a170204
14 changed files with 319 additions and 27 deletions

View file

@ -72,12 +72,15 @@ export class PostThreadViewPostModel implements bsky.PostThreadView.Post {
const UNLOADED_THREAD = new PostThreadViewPostModel('')
export class PostThreadViewModel implements bsky.PostThreadView.Response {
// state
isLoading = false
isRefreshing = false
hasLoaded = false
error = ''
resolvedUri = ''
params: bsky.PostThreadView.Params
// data
thread: PostThreadViewPostModel = UNLOADED_THREAD
constructor(
@ -167,7 +170,7 @@ export class PostThreadViewModel implements bsky.PostThreadView.Response {
private async _refresh() {
this._xLoading(true)
// TODO: refetch and update items
await new Promise(r => setTimeout(r, 1e3)) // DEBUG
await new Promise(r => setTimeout(r, 250)) // DEBUG
this._xIdle()
}