2020-07-11 10:13:11 +09:00
|
|
|
<template>
|
2022-03-21 03:11:14 +09:00
|
|
|
<XColumn :column="column" :is-stacked="isStacked" @parent-focus="$event => emit('parent-focus', $event)">
|
2022-12-19 19:01:30 +09:00
|
|
|
<template #header><i class="ti ti-mail" style="margin-right: 8px;"></i>{{ column.name }}</template>
|
2020-07-11 10:13:11 +09:00
|
|
|
|
2022-01-13 02:29:27 +09:00
|
|
|
<XNotes :pagination="pagination"/>
|
2020-10-17 20:12:00 +09:00
|
|
|
</XColumn>
|
2020-07-11 10:13:11 +09:00
|
|
|
</template>
|
|
|
|
|
2022-01-13 02:29:27 +09:00
|
|
|
<script lang="ts" setup>
|
2022-03-21 03:11:14 +09:00
|
|
|
import { } from 'vue';
|
2020-07-11 10:13:11 +09:00
|
|
|
import XColumn from './column.vue';
|
2022-08-31 00:24:33 +09:00
|
|
|
import XNotes from '@/components/MkNotes.vue';
|
2022-03-21 03:11:14 +09:00
|
|
|
import { Column } from './deck-store';
|
2020-07-11 10:13:11 +09:00
|
|
|
|
2022-03-21 03:11:14 +09:00
|
|
|
defineProps<{
|
|
|
|
column: Column;
|
2022-01-13 02:29:27 +09:00
|
|
|
isStacked: boolean;
|
|
|
|
}>();
|
2020-07-11 10:13:11 +09:00
|
|
|
|
2022-03-21 03:11:14 +09:00
|
|
|
const emit = defineEmits<{
|
2022-05-19 17:35:43 +09:00
|
|
|
(ev: 'parent-focus', direction: 'up' | 'down' | 'left' | 'right'): void;
|
2022-03-21 03:11:14 +09:00
|
|
|
}>();
|
|
|
|
|
2022-01-13 02:29:27 +09:00
|
|
|
const pagination = {
|
2022-03-21 03:11:14 +09:00
|
|
|
endpoint: 'notes/mentions' as const,
|
2022-01-13 02:29:27 +09:00
|
|
|
limit: 10,
|
2022-03-21 03:11:14 +09:00
|
|
|
params: {
|
|
|
|
visibility: 'specified'
|
|
|
|
},
|
2022-01-13 02:29:27 +09:00
|
|
|
};
|
2020-07-11 10:13:11 +09:00
|
|
|
</script>
|