2023-07-27 05:31:52 +00:00
|
|
|
<!--
|
2024-02-13 15:59:27 +00:00
|
|
|
SPDX-FileCopyrightText: syuilo and misskey-project
|
2023-07-27 05:31:52 +00:00
|
|
|
SPDX-License-Identifier: AGPL-3.0-only
|
|
|
|
-->
|
|
|
|
|
2020-07-11 01:13:11 +00:00
|
|
|
<template>
|
2023-11-10 08:49:09 +00:00
|
|
|
<XColumn :column="column" :isStacked="isStacked" :refresher="() => reloadTimeline()">
|
2023-09-30 19:53:52 +00:00
|
|
|
<template #header><i class="ph-at ph-bold ph-lg" style="margin-right: 8px;"></i>{{ column.name }}</template>
|
2020-07-11 01:13:11 +00:00
|
|
|
|
2023-11-10 08:49:09 +00:00
|
|
|
<MkNotes ref="tlComponent" :pagination="pagination"/>
|
2020-10-17 11:12:00 +00:00
|
|
|
</XColumn>
|
2020-07-11 01:13:11 +00:00
|
|
|
</template>
|
|
|
|
|
2022-01-12 17:29:27 +00:00
|
|
|
<script lang="ts" setup>
|
2023-12-07 05:42:09 +00:00
|
|
|
import { ref } from 'vue';
|
2020-07-11 01:13:11 +00:00
|
|
|
import XColumn from './column.vue';
|
2023-09-19 07:37:43 +00:00
|
|
|
import { Column } from './deck-store.js';
|
2023-02-22 02:00:34 +00:00
|
|
|
import MkNotes from '@/components/MkNotes.vue';
|
2020-07-11 01:13:11 +00:00
|
|
|
|
2022-03-20 18:11:14 +00:00
|
|
|
defineProps<{
|
|
|
|
column: Column;
|
2022-01-12 17:29:27 +00:00
|
|
|
isStacked: boolean;
|
|
|
|
}>();
|
2020-07-11 01:13:11 +00:00
|
|
|
|
2023-12-07 05:42:09 +00:00
|
|
|
const tlComponent = ref<InstanceType<typeof MkNotes>>();
|
2023-11-10 08:49:09 +00:00
|
|
|
|
|
|
|
function reloadTimeline() {
|
|
|
|
return new Promise<void>((res) => {
|
2023-12-07 05:42:09 +00:00
|
|
|
tlComponent.value.pagingComponent?.reload().then(() => {
|
2023-11-10 08:49:09 +00:00
|
|
|
res();
|
|
|
|
});
|
|
|
|
});
|
|
|
|
}
|
|
|
|
|
2022-01-12 17:29:27 +00:00
|
|
|
const pagination = {
|
|
|
|
endpoint: 'notes/mentions' as const,
|
|
|
|
limit: 10,
|
|
|
|
};
|
2020-07-11 01:13:11 +00:00
|
|
|
</script>
|