From 9341f0b38fb53849d86f398c23d4a1ab382f6b5b Mon Sep 17 00:00:00 2001 From: Daniel Supernault Date: Fri, 30 Apr 2021 23:48:36 -0600 Subject: [PATCH] Update components, remove like counts --- .../js/components/DiscoverComponent.vue | 14 +++--------- resources/assets/js/components/Hashtag.vue | 10 ++------- resources/assets/js/components/Profile.vue | 22 ++++++------------- 3 files changed, 12 insertions(+), 34 deletions(-) diff --git a/resources/assets/js/components/DiscoverComponent.vue b/resources/assets/js/components/DiscoverComponent.vue index b16bf3375..4b94f970b 100644 --- a/resources/assets/js/components/DiscoverComponent.vue +++ b/resources/assets/js/components/DiscoverComponent.vue @@ -41,7 +41,7 @@ />
- +
- - - {{formatCount(s.favourites_count)}} - {{formatCount(s.reply_count)}} @@ -106,7 +102,7 @@ />
- +
- - - {{formatCount(s.favourites_count)}} - {{formatCount(s.reply_count)}} @@ -239,4 +231,4 @@ } } } - \ No newline at end of file + diff --git a/resources/assets/js/components/Hashtag.vue b/resources/assets/js/components/Hashtag.vue index 0a792998f..a319d6d8b 100644 --- a/resources/assets/js/components/Hashtag.vue +++ b/resources/assets/js/components/Hashtag.vue @@ -48,9 +48,6 @@
- - {{tag.status.like_count}} - {{tag.status.share_count}} @@ -92,9 +89,6 @@
- - {{tag.status.favourites_count}} - {{tag.status.reply_count}} @@ -227,8 +221,8 @@ }).then(res => { this.following = false; }); - }, + }, } } - \ No newline at end of file + diff --git a/resources/assets/js/components/Profile.vue b/resources/assets/js/components/Profile.vue index 50e5b0745..5cae79fd1 100644 --- a/resources/assets/js/components/Profile.vue +++ b/resources/assets/js/components/Profile.vue @@ -13,7 +13,7 @@
- {{this.profileUsername}} + {{this.profileUsername}}
@@ -121,7 +121,7 @@ - +
@@ -199,7 +199,7 @@ />
- +
- - - {{formatCount(s.favourites_count)}} - {{formatCount(s.reply_count)}} @@ -260,10 +256,6 @@
- - - {{s.favourites_count}} - {{s.reblogs_count}} @@ -707,7 +699,7 @@ if(forceMetro == true || u.has('ui') && u.get('ui') == 'metro' && this.layout != 'metro') { this.layout = 'metro'; } - + if(this.layout == 'metro' && u.has('t')) { if(this.modes.indexOf(u.get('t')) != -1) { if(u.get('t') == 'bookmarks') { @@ -813,7 +805,7 @@ if(self.ids.indexOf(d.id) == -1) { self.timeline.push(d); self.ids.push(d.id); - } + } }); let max = Math.min(...this.ids); if(max == this.max_id) { @@ -1305,8 +1297,8 @@ this.followingModalSearch = null; } if(q.length > 0) { - let url = '/api/pixelfed/v1/accounts/' + - self.profileId + '/following?page=1&fbu=' + + let url = '/api/pixelfed/v1/accounts/' + + self.profileId + '/following?page=1&fbu=' + q; axios.get(url).then(res => {