(backlinks) init backlinks

This commit is contained in:
Julien Calixte
2021-06-05 16:38:53 +02:00
parent ececcc2391
commit 203db4c00a
6 changed files with 42 additions and 0 deletions

View File

@@ -0,0 +1,19 @@
<template>
<div class="linked-notes"></div>
</template>
<script lang="ts">
import { defineComponent } from 'vue'
export default defineComponent({
name: 'LinkedNotes',
props: {
sha: { type: String, required: true }
}
})
</script>
<style scoped lang="scss">
.linked-notes {
}
</style>

View File

@@ -23,6 +23,7 @@
</router-link>
</div>
<section class="note-content" v-html="content"></section>
<linked-notes v-if="content" :sha="sha" />
</div>
</template>
@@ -33,9 +34,13 @@ import { useLinks } from '@/hooks/useLinks.hook'
import { useNoteOverlay } from '@/hooks/useNoteOverlay.hook'
import { useFocus } from '@/hooks/useFocus.hook'
import { useImages } from '@/hooks/useImages.hook'
import LinkedNotes from '@/components/LinkedNotes.vue'
export default defineComponent({
name: 'StackedNote',
components: {
LinkedNotes
},
props: {
user: { type: String, required: true },
repo: { type: String, required: true },