iceshrimp-legacy/packages/client/src/pages/tag.vue

36 lines
786 B
Vue
Raw Normal View History

<template>
2022-07-24 08:41:06 +02:00
<MkStickyContainer>
<template #header><MkPageHeader :actions="headerActions" :tabs="headerTabs"/></template>
<MkSpacer :content-max="800">
<XNotes class="_content" :pagination="pagination"/>
</MkSpacer>
</MkStickyContainer>
</template>
<script lang="ts" setup>
import { computed } from 'vue';
import XNotes from '@/components/MkNotes.vue';
import { definePageMetadata } from '@/scripts/page-metadata';
const props = defineProps<{
tag: string;
}>();
const pagination = {
2022-01-12 18:26:10 +01:00
endpoint: 'notes/search-by-tag' as const,
limit: 10,
params: computed(() => ({
tag: props.tag,
})),
};
const headerActions = $computed(() => []);
const headerTabs = $computed(() => []);
definePageMetadata(computed(() => ({
title: props.tag,
2022-11-07 03:49:47 +01:00
icon: 'ph-hash-bold ph-lg',
})));
</script>