2020-07-11 10:13:11 +09:00
|
|
|
<template>
|
|
|
|
<x-column :name="name" :column="column" :is-stacked="isStacked" :menu="menu">
|
|
|
|
<template #header><fa :icon="faEnvelope" style="margin-right: 8px;"/>{{ column.name }}</template>
|
|
|
|
|
2020-07-23 13:07:27 +09:00
|
|
|
<x-notes :pagination="pagination" @before="before()" @after="after()"/>
|
2020-07-11 10:13:11 +09:00
|
|
|
</x-column>
|
|
|
|
</template>
|
|
|
|
|
|
|
|
<script lang="ts">
|
|
|
|
import Vue from 'vue';
|
|
|
|
import { faEnvelope } from '@fortawesome/free-solid-svg-icons';
|
2020-07-23 13:07:27 +09:00
|
|
|
import Progress from '../../scripts/loading';
|
2020-07-11 10:13:11 +09:00
|
|
|
import XColumn from './column.vue';
|
2020-07-23 13:07:27 +09:00
|
|
|
import XNotes from '../notes.vue';
|
2020-07-11 10:13:11 +09:00
|
|
|
|
|
|
|
export default Vue.extend({
|
|
|
|
components: {
|
|
|
|
XColumn,
|
2020-07-23 13:07:27 +09:00
|
|
|
XNotes
|
2020-07-11 10:13:11 +09:00
|
|
|
},
|
|
|
|
|
|
|
|
props: {
|
|
|
|
column: {
|
|
|
|
type: Object,
|
|
|
|
required: true
|
|
|
|
},
|
|
|
|
isStacked: {
|
|
|
|
type: Boolean,
|
|
|
|
required: true
|
|
|
|
}
|
|
|
|
},
|
|
|
|
|
|
|
|
data() {
|
|
|
|
return {
|
|
|
|
menu: null,
|
2020-07-23 13:07:27 +09:00
|
|
|
pagination: {
|
|
|
|
endpoint: 'notes/mentions',
|
|
|
|
limit: 10,
|
|
|
|
params: () => ({
|
|
|
|
visibility: 'specified'
|
|
|
|
})
|
|
|
|
},
|
2020-07-11 10:13:11 +09:00
|
|
|
faEnvelope
|
|
|
|
}
|
|
|
|
},
|
2020-07-23 13:07:27 +09:00
|
|
|
|
|
|
|
methods: {
|
|
|
|
before() {
|
|
|
|
Progress.start();
|
|
|
|
},
|
|
|
|
|
|
|
|
after() {
|
|
|
|
Progress.done();
|
|
|
|
}
|
|
|
|
}
|
2020-07-11 10:13:11 +09:00
|
|
|
});
|
|
|
|
</script>
|