mirror of
https://git.joinsharkey.org/Sharkey/Sharkey.git
synced 2024-11-15 17:23:08 +02:00
11349561d6
* wip * wip * wip * wip * wip * wip * wip * wip * wip * Update yarn.lock * wip * wip
55 lines
950 B
Vue
55 lines
950 B
Vue
<template>
|
|
<XColumn :column="column" :is-stacked="isStacked">
|
|
<template #header><i class="fas fa-envelope" style="margin-right: 8px;"></i>{{ column.name }}</template>
|
|
|
|
<XNotes :pagination="pagination" @before="before()" @after="after()"/>
|
|
</XColumn>
|
|
</template>
|
|
|
|
<script lang="ts">
|
|
import { defineComponent } from 'vue';
|
|
import Progress from '@client/scripts/loading';
|
|
import XColumn from './column.vue';
|
|
import XNotes from '@client/components/notes.vue';
|
|
import * as os from '@client/os';
|
|
|
|
export default defineComponent({
|
|
components: {
|
|
XColumn,
|
|
XNotes
|
|
},
|
|
|
|
props: {
|
|
column: {
|
|
type: Object,
|
|
required: true
|
|
},
|
|
isStacked: {
|
|
type: Boolean,
|
|
required: true
|
|
}
|
|
},
|
|
|
|
data() {
|
|
return {
|
|
pagination: {
|
|
endpoint: 'notes/mentions',
|
|
limit: 10,
|
|
params: () => ({
|
|
visibility: 'specified'
|
|
})
|
|
},
|
|
}
|
|
},
|
|
|
|
methods: {
|
|
before() {
|
|
Progress.start();
|
|
},
|
|
|
|
after() {
|
|
Progress.done();
|
|
}
|
|
}
|
|
});
|
|
</script>
|