2020-01-29 19:37:25 +00:00
|
|
|
<template>
|
2022-07-24 06:41:06 +00:00
|
|
|
<MkStickyContainer>
|
|
|
|
<template #header><MkPageHeader :actions="headerActions" :tabs="headerTabs"/></template>
|
|
|
|
<MkSpacer :content-max="800">
|
2023-02-22 02:00:34 +00:00
|
|
|
<MkNotes class="" :pagination="pagination"/>
|
2022-07-24 06:41:06 +00:00
|
|
|
</MkSpacer>
|
|
|
|
</MkStickyContainer>
|
2020-01-29 19:37:25 +00:00
|
|
|
</template>
|
|
|
|
|
2022-01-12 17:21:43 +00:00
|
|
|
<script lang="ts" setup>
|
|
|
|
import { computed } from 'vue';
|
2023-02-22 02:00:34 +00:00
|
|
|
import MkNotes from '@/components/MkNotes.vue';
|
2022-06-20 08:38:49 +00:00
|
|
|
import { definePageMetadata } from '@/scripts/page-metadata';
|
2020-01-29 19:37:25 +00:00
|
|
|
|
2022-01-12 17:21:43 +00:00
|
|
|
const props = defineProps<{
|
|
|
|
tag: string;
|
|
|
|
}>();
|
2020-01-29 19:37:25 +00:00
|
|
|
|
2022-01-12 17:21:43 +00:00
|
|
|
const pagination = {
|
2022-01-12 17:26:10 +00:00
|
|
|
endpoint: 'notes/search-by-tag' as const,
|
2022-01-12 17:21:43 +00:00
|
|
|
limit: 10,
|
|
|
|
params: computed(() => ({
|
|
|
|
tag: props.tag,
|
|
|
|
})),
|
|
|
|
};
|
2020-10-24 16:21:41 +00:00
|
|
|
|
2022-06-20 08:38:49 +00:00
|
|
|
const headerActions = $computed(() => []);
|
|
|
|
|
|
|
|
const headerTabs = $computed(() => []);
|
|
|
|
|
|
|
|
definePageMetadata(computed(() => ({
|
|
|
|
title: props.tag,
|
2022-12-19 10:01:30 +00:00
|
|
|
icon: 'ti ti-hash',
|
2022-06-20 08:38:49 +00:00
|
|
|
})));
|
2020-01-29 19:37:25 +00:00
|
|
|
</script>
|