feat(client): poll highlights in explore page
This commit is contained in:
parent
afe0d9a266
commit
01d5a97a4f
2 changed files with 17 additions and 2 deletions
|
@ -24,6 +24,7 @@ You should also include the user name that made the change.
|
||||||
- Client: Add instance-cloud widget @syuilo
|
- Client: Add instance-cloud widget @syuilo
|
||||||
- Client: Add rss-marquee widget @syuilo
|
- Client: Add rss-marquee widget @syuilo
|
||||||
- Client: Removing entries from a clip @futchitwo
|
- Client: Removing entries from a clip @futchitwo
|
||||||
|
- Client: Poll highlights in explore page @syuilo
|
||||||
- Make possible to delete an account by admin @syuilo
|
- Make possible to delete an account by admin @syuilo
|
||||||
- Improve player detection in URL preview @mei23
|
- Improve player detection in URL preview @mei23
|
||||||
- Add Badge Image to Push Notification #8012 @tamaina
|
- Add Badge Image to Push Notification #8012 @tamaina
|
||||||
|
|
|
@ -1,16 +1,30 @@
|
||||||
<template>
|
<template>
|
||||||
<MkSpacer :content-max="800">
|
<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>
|
</MkSpacer>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script lang="ts" setup>
|
<script lang="ts" setup>
|
||||||
import XNotes from '@/components/notes.vue';
|
import XNotes from '@/components/notes.vue';
|
||||||
|
import MkTab from '@/components/tab.vue';
|
||||||
import { i18n } from '@/i18n';
|
import { i18n } from '@/i18n';
|
||||||
|
|
||||||
const pagination = {
|
const paginationForNotes = {
|
||||||
endpoint: 'notes/featured' as const,
|
endpoint: 'notes/featured' as const,
|
||||||
limit: 10,
|
limit: 10,
|
||||||
offsetMode: true,
|
offsetMode: true,
|
||||||
};
|
};
|
||||||
|
|
||||||
|
const paginationForPolls = {
|
||||||
|
endpoint: 'notes/polls/recommendation' as const,
|
||||||
|
limit: 10,
|
||||||
|
offsetMode: true,
|
||||||
|
};
|
||||||
|
|
||||||
|
let tab = $ref('notes');
|
||||||
</script>
|
</script>
|
||||||
|
|
Loading…
Reference in a new issue