mirror of
https://iceshrimp.dev/crimekillz/iceshrimp-161sh.git
synced 2024-11-22 04:03:49 +01:00
me when the
This commit is contained in:
parent
7953100ec2
commit
b79b5a3b3f
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "calckey",
|
||||
"version": "12.119.0-calc.12.4",
|
||||
"version": "12.119.0-calc.12.5",
|
||||
"codename": "aqua",
|
||||
"repository": {
|
||||
"type": "git",
|
||||
|
@ -6,7 +6,7 @@
|
||||
</MkTab>
|
||||
<div v-if="origin === 'local'">
|
||||
<template v-if="tag == null">
|
||||
<MkFolder v-if="pinnedUsersList.length > 0" class="_gap" persist-key="explore-pinned-users">
|
||||
<MkFolder v-show="thereArePinnedUsers" class="_gap" persist-key="explore-pinned-users">
|
||||
<template #header><i class="ph-bookmark-simple-bold ph-lg ph-fw ph-lg" style="margin-right: 0.5em;"></i>{{ i18n.ts.pinnedUsers }}</template>
|
||||
<XUserList :pagination="pinnedUsers"/>
|
||||
</MkFolder>
|
||||
@ -75,11 +75,16 @@ let origin = $ref('local');
|
||||
let tagsEl = $ref<InstanceType<typeof MkFolder>>();
|
||||
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,
|
||||
@ -90,8 +95,9 @@ const tagUsers = $computed(() => ({
|
||||
},
|
||||
}));
|
||||
|
||||
const pinnedUsersList = os.api('pinned-users');
|
||||
console.log(pinnedUsersList);
|
||||
const pinnedUsersList = await os.api('pinned-users');
|
||||
|
||||
if (pinnedUsersList?.length > 0) { thereArePinnedUsers = true; }
|
||||
|
||||
const pinnedUsers = { endpoint: 'pinned-users' };
|
||||
const popularUsers = { endpoint: 'users', limit: 10, noPaging: true, params: {
|
||||
|
Loading…
Reference in New Issue
Block a user