Reorder definitions (duh)
This commit is contained in:
parent
cd799c3387
commit
e1a38c0d5d
@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "calckey",
|
"name": "calckey",
|
||||||
"version": "12.119.0-calc.13-rc.8",
|
"version": "12.119.0-calc.13-rc.9",
|
||||||
"codename": "aqua",
|
"codename": "aqua",
|
||||||
"repository": {
|
"repository": {
|
||||||
"type": "git",
|
"type": "git",
|
||||||
|
@ -6,19 +6,19 @@
|
|||||||
</MkTab>
|
</MkTab>
|
||||||
<div v-if="origin === 'local'">
|
<div v-if="origin === 'local'">
|
||||||
<template v-if="tag == null">
|
<template v-if="tag == null">
|
||||||
<MkFolder v-show="thereArePinnedUsers != null && thereArePinnedUsers == true" class="_gap" persist-key="explore-pinned-users">
|
<MkFolder v-show="thereArePinnedUsers != null && 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>
|
<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"/>
|
<XUserList :pagination="pinnedUsers"/>
|
||||||
</MkFolder>
|
</MkFolder>
|
||||||
<MkFolder class="_gap" persist-key="explore-popular-users">
|
<MkFolder v-if="$i != null" class="_gap" persist-key="explore-popular-users">
|
||||||
<template #header><i class="ph-chart-line-up-bold ph-lg ph-fw ph-lg" style="margin-right: 0.5em;"></i>{{ i18n.ts.popularUsers }}</template>
|
<template #header><i class="ph-chart-line-up-bold ph-lg ph-fw ph-lg" style="margin-right: 0.5em;"></i>{{ i18n.ts.popularUsers }}</template>
|
||||||
<XUserList :pagination="popularUsers"/>
|
<XUserList :pagination="popularUsers"/>
|
||||||
</MkFolder>
|
</MkFolder>
|
||||||
<MkFolder class="_gap" persist-key="explore-recently-updated-users">
|
<MkFolder v-if="$i != null" class="_gap" persist-key="explore-recently-updated-users">
|
||||||
<template #header><i class="ph-chat-bold ph-lg ph-fw ph-lg" style="margin-right: 0.5em;"></i>{{ i18n.ts.recentlyUpdatedUsers }}</template>
|
<template #header><i class="ph-chat-bold ph-lg ph-fw ph-lg" style="margin-right: 0.5em;"></i>{{ i18n.ts.recentlyUpdatedUsers }}</template>
|
||||||
<XUserList :pagination="recentlyUpdatedUsers"/>
|
<XUserList :pagination="recentlyUpdatedUsers"/>
|
||||||
</MkFolder>
|
</MkFolder>
|
||||||
<MkFolder class="_gap" persist-key="explore-recently-registered-users">
|
<MkFolder v-if="$i != null" class="_gap" persist-key="explore-recently-registered-users">
|
||||||
<template #header><i class="ph-plus-bold ph-lg ph-fw ph-lg" style="margin-right: 0.5em;"></i>{{ i18n.ts.recentlyRegisteredUsers }}</template>
|
<template #header><i class="ph-plus-bold ph-lg ph-fw ph-lg" style="margin-right: 0.5em;"></i>{{ i18n.ts.recentlyRegisteredUsers }}</template>
|
||||||
<XUserList :pagination="recentlyRegisteredUsers"/>
|
<XUserList :pagination="recentlyRegisteredUsers"/>
|
||||||
</MkFolder>
|
</MkFolder>
|
||||||
@ -29,8 +29,8 @@
|
|||||||
<template #header><i class="ph-hash-bold ph-lg ph-fw ph-lg" style="margin-right: 0.5em;"></i>{{ i18n.ts.popularTags }}</template>
|
<template #header><i class="ph-hash-bold ph-lg ph-fw ph-lg" style="margin-right: 0.5em;"></i>{{ i18n.ts.popularTags }}</template>
|
||||||
|
|
||||||
<div class="vxjfqztj">
|
<div class="vxjfqztj">
|
||||||
<MkA v-for="t in tagsLocal" :key="'local:' + t.tag" :to="`/tags/${t.tag}`" class="local">{{ t.tag }}</MkA>
|
<MkA v-for="t in tagsLocal" :key="'local:' + t.tag" :to="`/explore/tags/${t.tag}`" class="local">{{ t.tag }}</MkA>
|
||||||
<MkA v-for="t in tagsRemote" :key="'remote:' + t.tag" :to="`/tags/${t.tag}`">{{ t.tag }}</MkA>
|
<MkA v-for="t in tagsRemote" :key="'remote:' + t.tag" :to="`/explore/tags/${t.tag}`">{{ t.tag }}</MkA>
|
||||||
</div>
|
</div>
|
||||||
</MkFolder>
|
</MkFolder>
|
||||||
|
|
||||||
@ -76,6 +76,10 @@ let tagsLocal = $ref([]);
|
|||||||
let tagsRemote = $ref([]);
|
let tagsRemote = $ref([]);
|
||||||
let thereArePinnedUsers = $ref(false);
|
let thereArePinnedUsers = $ref(false);
|
||||||
|
|
||||||
|
const pinnedUsersList = await os.api('pinned-users');
|
||||||
|
|
||||||
|
if (pinnedUsersList?.length > 0) { thereArePinnedUsers = true; }
|
||||||
|
|
||||||
watch(() => props.tag, () => {
|
watch(() => props.tag, () => {
|
||||||
if (tagsEl) tagsEl.toggleContent(props.tag == null);
|
if (tagsEl) tagsEl.toggleContent(props.tag == null);
|
||||||
});
|
});
|
||||||
@ -94,11 +98,7 @@ const tagUsers = $computed(() => ({
|
|||||||
},
|
},
|
||||||
}));
|
}));
|
||||||
|
|
||||||
const pinnedUsersList = await os.api('pinned-users');
|
const pinnedUsers = { endpoint: 'pinned-users' };
|
||||||
|
|
||||||
if (pinnedUsersList?.length > 0) { thereArePinnedUsers = true; }
|
|
||||||
|
|
||||||
const pinnedUsers = { endpoint: 'pinned-users', limit: 10 };
|
|
||||||
const popularUsers = { endpoint: 'users', limit: 10, noPaging: true, params: {
|
const popularUsers = { endpoint: 'users', limit: 10, noPaging: true, params: {
|
||||||
state: 'alive',
|
state: 'alive',
|
||||||
origin: 'local',
|
origin: 'local',
|
||||||
|
Loading…
Reference in New Issue
Block a user