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