chore: lint and fmt
This commit is contained in:
@@ -1,17 +1,18 @@
|
||||
import { computedAsync } from "@vueuse/core"
|
||||
import { computed, Ref, ref, watch } from "vue"
|
||||
|
||||
import { Author, getAuthors } from "@/modules/atproto/getAuthor"
|
||||
import { PublicNoteListItem } from "@/modules/note/models/Note"
|
||||
import { computedAsync } from "@vueuse/core"
|
||||
import { computed, ref, Ref, watch } from "vue"
|
||||
|
||||
export function useFollowingNoteList(
|
||||
dids: Ref<Set<string>>,
|
||||
enabled: Ref<boolean>,
|
||||
enabled: Ref<boolean>
|
||||
) {
|
||||
const isLoading = ref(false)
|
||||
const notes = ref<PublicNoteListItem[]>([])
|
||||
const cursor = ref<string | null | undefined>(null)
|
||||
const canLoadMore = computed(
|
||||
() => dids.value.size > 0 && cursor.value !== undefined,
|
||||
() => dids.value.size > 0 && cursor.value !== undefined
|
||||
)
|
||||
|
||||
const onLoadMore = async () => {
|
||||
@@ -22,7 +23,7 @@ export function useFollowingNoteList(
|
||||
|
||||
const body: { dids: string[]; limit: number; cursor?: string } = {
|
||||
dids: [...dids.value],
|
||||
limit: 20,
|
||||
limit: 20
|
||||
}
|
||||
|
||||
if (cursor.value) {
|
||||
@@ -32,7 +33,7 @@ export function useFollowingNoteList(
|
||||
const response = await fetch("https://api.remanso.space/notes/feed", {
|
||||
method: "POST",
|
||||
headers: { "Content-Type": "application/json" },
|
||||
body: JSON.stringify(body),
|
||||
body: JSON.stringify(body)
|
||||
})
|
||||
|
||||
const data: { notes: PublicNoteListItem[]; cursor?: string } =
|
||||
|
||||
Reference in New Issue
Block a user