split home page and flux note page

This commit is contained in:
Julien Calixte
2023-08-06 18:58:59 +02:00
parent 47b4adc576
commit af421042ad
9 changed files with 44 additions and 41 deletions

View File

@@ -0,0 +1,16 @@
<script setup lang="ts">
import FluxNote from '@/components/FluxNote.vue'
import { useComputeBacklinks } from '@/hooks/useComputeBacklinks.hook'
import { useQueryStackedNotes } from '@/hooks/useQueryStackedNotes.hook'
import { computed } from 'vue'
useQueryStackedNotes()
useComputeBacklinks()
const props = defineProps<{ user: string; repo: string }>()
const routeKey = computed(() => `${props.user}-${props.repo}`)
</script>
<template>
<flux-note :key="routeKey" :user="user" :repo="repo" />
</template>