From d6f36eaecfdf3ed6bbec57dd7092906bf5b494ca Mon Sep 17 00:00:00 2001 From: Jesse Wierzbinski Date: Fri, 28 Jun 2024 17:05:50 -1000 Subject: [PATCH] refactor: :recycle: Rewrite timeline rendering code --- bun.lockb | Bin 653156 -> 653156 bytes components/composer/composer.vue | 2 +- components/sidebars/collapsible-aside.vue | 2 +- .../social-elements/notes/note-content.vue | 2 +- components/social-elements/notes/note.vue | 8 +- .../social-elements/notifications/notif.vue | 43 ++- components/timelines/account.vue | 33 ++- components/timelines/home.vue | 30 ++- components/timelines/local.vue | 30 ++- components/timelines/notifications.vue | 55 ++-- components/timelines/public.vue | 30 ++- components/timelines/timeline-item.vue | 26 ++ components/timelines/timeline.vue | 125 +++++---- composables/AccountTimeline.ts | 41 +-- composables/HomeTimeline.ts | 30 +-- composables/LocalTimeline.ts | 32 +-- composables/NotificationTimeline.ts | 32 +-- composables/PublicTimeline.ts | 30 +-- composables/Timeline.ts | 254 +++++++----------- package.json | 2 +- pages/[username]/[uuid].vue | 6 +- pages/[username]/index.vue | 2 +- pages/notifications.vue | 2 +- settings.ts | 10 + 24 files changed, 392 insertions(+), 435 deletions(-) create mode 100644 components/timelines/timeline-item.vue diff --git a/bun.lockb b/bun.lockb index 51cfdaee45bc43194f23bbeabd4291c256c7fa7d..f811f3ac02daac325eea2bf5817b1c683c7fb9c2 100755 GIT binary patch delta 187 zcmaFzPW{O{^$B_kIiZqAOEZ^whC8qSZ=hCj_0SgQPtxDQja4@V+da!arP=7W)sL~O zd2+-7gLaM7yi*TeOg!*qi}uQLNN%XZQ0tXF0-8nwSF mU;|=yAm-Tqs({m*h1E!}B)w{SUMZ*K^lz^@q_+cE-x>iR%TwF{ delta 187 zcmaFzPW{O{^$B_k2KN~1*wmTaBvx6^s8P*y`?*tENH5}~P~XyUGycFk&l>%<`Z0Dj zPmZWHXy<5Q1Y)M`94*XegB%2JPZwIV^GM^OM4t3w-5L>rztZ+8jD`!Rgr;+IR1_LH z&kg#voPFxS`D<&XCb`a%-aIXf_elbe%f@eyPhPB8x29e6Ix`TnY!|)GdSxb~Vf(8B mHXvpPVvg;v3OK!4SPk_`(yONDm2yf>|Mr?gdOMKytq}k!(@tan diff --git a/components/composer/composer.vue b/components/composer/composer.vue index 4838ebf..5596d71 100644 --- a/components/composer/composer.vue +++ b/components/composer/composer.vue @@ -1,7 +1,7 @@