From 77a87af46a2a13ab372e338e95c7c0f850c2a90a Mon Sep 17 00:00:00 2001 From: Anthony Fu Date: Sun, 27 Nov 2022 13:02:19 +0800 Subject: [PATCH] feat: loading skeleton --- components/common/CommonPaginator.vue | 10 ++++++---- components/status/StatusCardSkeleton.vue | 15 +++++++++++++++ components/timeline/TimelinePaginator.vue | 6 ++++++ styles/global.css | 15 +++++++++++++++ 4 files changed, 42 insertions(+), 4 deletions(-) create mode 100644 components/status/StatusCardSkeleton.vue diff --git a/components/common/CommonPaginator.vue b/components/common/CommonPaginator.vue index fbe286c6..f4e3d4a9 100644 --- a/components/common/CommonPaginator.vue +++ b/components/common/CommonPaginator.vue @@ -27,10 +27,12 @@ const { items, state, endAnchor, error } = usePaginator(paginator) />
-
-
- Loading... -
+ +
+
+ Loading... +
+
End of the list
diff --git a/components/status/StatusCardSkeleton.vue b/components/status/StatusCardSkeleton.vue new file mode 100644 index 00000000..c623de75 --- /dev/null +++ b/components/status/StatusCardSkeleton.vue @@ -0,0 +1,15 @@ + diff --git a/components/timeline/TimelinePaginator.vue b/components/timeline/TimelinePaginator.vue index 520b8c25..fb21e17b 100644 --- a/components/timeline/TimelinePaginator.vue +++ b/components/timeline/TimelinePaginator.vue @@ -1,4 +1,5 @@