1
0
mirror of https://github.com/MisskeyIO/misskey synced 2024-11-23 14:46:40 +09:00

feat(client): poll highlights in explore page

This commit is contained in:
syuilo 2022-07-01 23:42:03 +09:00
parent afe0d9a266
commit 01d5a97a4f
2 changed files with 17 additions and 2 deletions

View File

@ -24,6 +24,7 @@ You should also include the user name that made the change.
- Client: Add instance-cloud widget @syuilo
- Client: Add rss-marquee widget @syuilo
- Client: Removing entries from a clip @futchitwo
- Client: Poll highlights in explore page @syuilo
- Make possible to delete an account by admin @syuilo
- Improve player detection in URL preview @mei23
- Add Badge Image to Push Notification #8012 @tamaina

View File

@ -1,16 +1,30 @@
<template>
<MkSpacer :content-max="800">
<XNotes ref="notes" :pagination="pagination"/>
<MkTab v-model="tab">
<option value="notes">{{ i18n.ts.notes }}</option>
<option value="polls">{{ i18n.ts.poll }}</option>
</MkTab>
<XNotes v-if="tab === 'notes'" :pagination="paginationForNotes"/>
<XNotes v-else-if="tab === 'polls'" :pagination="paginationForPolls"/>
</MkSpacer>
</template>
<script lang="ts" setup>
import XNotes from '@/components/notes.vue';
import MkTab from '@/components/tab.vue';
import { i18n } from '@/i18n';
const pagination = {
const paginationForNotes = {
endpoint: 'notes/featured' as const,
limit: 10,
offsetMode: true,
};
const paginationForPolls = {
endpoint: 'notes/polls/recommendation' as const,
limit: 10,
offsetMode: true,
};
let tab = $ref('notes');
</script>