From 3cadc234d0dc1db03ff1e66479cfa9056cde57cc Mon Sep 17 00:00:00 2001 From: n0099 Date: Wed, 13 Mar 2024 00:26:29 +0800 Subject: [PATCH] - prop `postIDSelector` in favor of using the generic component to restrict the type of other props @ `` - prop `badgeColor` in favor of adding class in its usages @ `` @ badges * fix still attempting to scroll viewport down for showing element even if it has already reached the end of `` or the element has been removed from document * now will stop any further attempts after ten seconds @ `scrollToPostListItem()@index.ts` * add class `ms-1` for all `` @ `` @ renderers/list @ components/Post + param `spid` to replace `pidOrSpid` for its usage in `` @ `tiebaPostLink()` - inline exported function `emitEventWithNumberValidator()` to its only usages in `components/widgets/` @ shared/index.ts` @ fe --- .../components/Post/badges/BadgePostTime.vue | 7 +++-- .../badges/PostCommonMetadataIconLinks.vue | 27 +++++++++---------- .../Post/renderers/list/ReplyItem.vue | 4 +-- .../Post/renderers/list/SubReplyGroup.vue | 5 ++-- .../Post/renderers/list/ThreadItem.vue | 10 +++---- .../components/Post/renderers/list/index.ts | 15 ++++++++--- fe/src/components/widgets/TimeRange.vue | 6 ++--- fe/src/shared/index.ts | 9 ++++--- 8 files changed, 44 insertions(+), 39 deletions(-) diff --git a/fe/src/components/Post/badges/BadgePostTime.vue b/fe/src/components/Post/badges/BadgePostTime.vue index b1d2afc7..2d80def6 100644 --- a/fe/src/components/Post/badges/BadgePostTime.vue +++ b/fe/src/components/Post/badges/BadgePostTime.vue @@ -1,18 +1,17 @@