♻️ (app)

This commit is contained in:
Julien Calixte
2023-08-14 14:08:10 +02:00
parent 111794a40b
commit c0182c7f57
24 changed files with 4281 additions and 2108 deletions

View File

@@ -1,11 +1,11 @@
import { noteEventBus } from '@/bus/noteEventBus'
import { useUserRepoStore } from '@/modules/repo/store/userRepo.store'
import { isExternalLink } from '@/utils/link'
import { ComputedRef, onUnmounted, toValue } from 'vue'
import { ComputedRef, onUnmounted, Ref, toValue } from 'vue'
export const useLinks = (
className: ComputedRef<string> | string,
sha?: string
sha?: Ref<string> | string
) => {
const store = useUserRepoStore()
@@ -31,7 +31,7 @@ export const useLinks = (
noteEventBus.emit({
path: href,
currentNoteSHA: sha,
currentNoteSHA: toValue(sha),
user: store.user,
repo: store.repo
})