From f35e850b02b318dee88d6d185e7bf11685efdb7f Mon Sep 17 00:00:00 2001 From: ThatOneCalculator Date: Mon, 14 Nov 2022 17:58:45 -0800 Subject: [PATCH] revert as test for problem --- package.json | 2 +- packages/client/src/pages/explore.users.vue | 63 +++++++++------------ 2 files changed, 28 insertions(+), 37 deletions(-) diff --git a/package.json b/package.json index 93afe3f759..4b6a62764c 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "calckey", - "version": "12.119.0-calc.13-rc.5", + "version": "12.119.0-calc.13-rc.6", "codename": "aqua", "repository": { "type": "git", diff --git a/packages/client/src/pages/explore.users.vue b/packages/client/src/pages/explore.users.vue index 331812580d..dd4115cf26 100644 --- a/packages/client/src/pages/explore.users.vue +++ b/packages/client/src/pages/explore.users.vue @@ -6,50 +6,50 @@
- +
- {{ t.tag }} - {{ t.tag }} + {{ tag.tag }} + {{ tag.tag }}
- + @@ -65,27 +65,21 @@ import MkTab from '@/components/MkTab.vue'; import number from '@/filters/number'; import * as os from '@/os'; import { i18n } from '@/i18n'; -import { $i } from '@/account'; import { instance } from '@/instance'; const props = defineProps<{ - tag?: string; -}>(); + tag?: string; + }>(); let origin = $ref('local'); let tagsEl = $ref>(); let tagsLocal = $ref([]); let tagsRemote = $ref([]); -let thereArePinnedUsers = $ref(false); watch(() => props.tag, () => { if (tagsEl) tagsEl.toggleContent(props.tag == null); }); -watch(() => pinnedUsersList, () => { - if (pinnedUsersList?.length > 0) thereArePinnedUsers = true; -}); - const tagUsers = $computed(() => ({ endpoint: 'hashtags/users' as const, limit: 30, @@ -96,11 +90,7 @@ const tagUsers = $computed(() => ({ }, })); -const pinnedUsersList = await os.api('pinned-users'); - -if (pinnedUsersList?.length > 0) { thereArePinnedUsers = true; } - -const pinnedUsers = { endpoint: 'pinned-users', limit: 10 }; +const pinnedUsers = { endpoint: 'pinned-users' }; const popularUsers = { endpoint: 'users', limit: 10, noPaging: true, params: { state: 'alive', origin: 'local', @@ -145,14 +135,15 @@ os.api('hashtags/list', { }); - + +