mirror of
https://github.com/paricafe/misskey.git
synced 2024-11-30 00:06:43 -06:00
69869307bf
Resolve #9986
30 lines
783 B
Vue
30 lines
783 B
Vue
<template>
|
|
<MkSpacer :content-max="800">
|
|
<MkTab v-model="tab" style="margin-bottom: var(--margin);">
|
|
<option value="notes">{{ i18n.ts.notes }}</option>
|
|
<option value="polls">{{ i18n.ts.poll }}</option>
|
|
</MkTab>
|
|
<MkNotes v-if="tab === 'notes'" :pagination="paginationForNotes"/>
|
|
<MkNotes v-else-if="tab === 'polls'" :pagination="paginationForPolls"/>
|
|
</MkSpacer>
|
|
</template>
|
|
|
|
<script lang="ts" setup>
|
|
import MkNotes from '@/components/MkNotes.vue';
|
|
import MkTab from '@/components/MkTab.vue';
|
|
import { i18n } from '@/i18n';
|
|
|
|
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>
|