♻️ (fleeting notes)

This commit is contained in:
Julien Calixte
2023-07-18 00:13:57 +02:00
parent 0cbbfd7273
commit 9d85abbc64

View File

@@ -1,3 +1,13 @@
<script lang="ts" setup>
import FluxNote from '@/components/FluxNote.vue'
import { useFolderNotes } from '@/modules/note/hooks/useFolderNotes'
const FLEETING_NOTES_FOLDER = ['inbox', '_inbox']
defineProps<{ user: string; repo: string }>()
const { content } = useFolderNotes(FLEETING_NOTES_FOLDER)
</script>
<template>
<div class="fleeting-notes">
<flux-note
@@ -11,33 +21,6 @@
</div>
</template>
<script lang="ts">
import { useFolderNotes } from '@/modules/note/hooks/useFolderNotes'
import { defineAsyncComponent, defineComponent } from 'vue'
const FluxNote = defineAsyncComponent(() => import('@/components/FluxNote.vue'))
const FLEETING_NOTES_FOLDER = ['inbox', '_inbox']
export default defineComponent({
name: 'FleetingNotes',
components: {
FluxNote
},
props: {
user: { type: String, required: true },
repo: { type: String, required: true }
},
setup() {
const { content } = useFolderNotes(FLEETING_NOTES_FOLDER)
return {
content
}
}
})
</script>
<style scoped lang="scss">
.fleeting-notes {
display: flex;