diff --git a/components/common/CommonPaginator.vue b/components/common/CommonPaginator.vue
index fcb10b9a..1a27d177 100644
--- a/components/common/CommonPaginator.vue
+++ b/components/common/CommonPaginator.vue
@@ -22,7 +22,9 @@ const {
defineSlots<{
default: {
+ items: T[]
item: T
+ index: number
active?: boolean
older?: T
newer?: T // newer is undefined when index === 0
@@ -61,6 +63,8 @@ const { items, prevItems, update, state, endAnchor, error } = usePaginator(pagin
:active="active"
:older="items[index + 1]"
:newer="items[index - 1]"
+ :index="index"
+ :items="items"
/>
@@ -71,6 +75,8 @@ const { items, prevItems, update, state, endAnchor, error } = usePaginator(pagin
:item="item"
:older="items[index + 1]"
:newer="items[index - 1]"
+ :index="index"
+ :items="items"
/>
diff --git a/components/status/edit/StatusEditHistory.vue b/components/status/edit/StatusEditHistory.vue
index 3935cca7..c5d29343 100644
--- a/components/status/edit/StatusEditHistory.vue
+++ b/components/status/edit/StatusEditHistory.vue
@@ -6,38 +6,43 @@ const { status } = defineProps<{
status: mastodon.v1.Status
}>()
-const masto = useMasto()
-const { data: statusEdits } = useAsyncData(`status:history:${status.id}`, () => masto.v1.statuses.listHistory(status.id).then(res => res.reverse()))
+const paginator = useMasto().v1.statuses.listHistory(status.id)
const showHistory = (edit: mastodon.v1.StatusEdit) => {
openEditHistoryDialog(edit)
}
const timeAgoOptions = useTimeAgoOptions()
+
+const reverseHistory = (items: mastodon.v1.StatusEdit[]) =>
+ [...items].reverse()
-
-
- {{ getDisplayName(edit.account) }}
+
+
+
+ {{ getDisplayName(item.account) }}
-
-
- {{ formatTimeAgo(new Date(edit.createdAt), timeAgoOptions) }}
+
+
+ {{ formatTimeAgo(new Date(item.createdAt), timeAgoOptions) }}
+
+
+
+ {{ formatTimeAgo(new Date(item.createdAt), timeAgoOptions) }}
-
-
-
- {{ formatTimeAgo(new Date(edit.createdAt), timeAgoOptions) }}
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
+
diff --git a/components/status/edit/StatusEditHistorySkeleton.vue b/components/status/edit/StatusEditHistorySkeleton.vue
new file mode 100644
index 00000000..96a0bfbb
--- /dev/null
+++ b/components/status/edit/StatusEditHistorySkeleton.vue
@@ -0,0 +1,3 @@
+
+
+