Tests connexion

This commit is contained in:
2024-08-01 17:55:50 +02:00
parent edf23bdbaa
commit fb58a24170
15 changed files with 222 additions and 135 deletions

View File

@@ -116,7 +116,7 @@ function hidePreview(e: Event) {
}
</script>
<template >
<template>
<template v-if="href !== ''">
<a @mouseenter="(e) => showPreview(e, true)" @mouseleave="hidePreview" v-bind="$attrs"
:href="stringifyParsedURL({ host: '/explorer', pathname: (content?._path ?? href) + (isTag && anchor ? '/' + anchor.substring(1) : ''), hash: !isTag ? anchor : '', search: '' })"
@@ -160,7 +160,7 @@ function hidePreview(e: Event) {
</div>
</Teleport>
</template>
<a v-bind="$attrs" :href="href" :target="target" v-else>
<NuxtLink v-bind="$attrs" :to="href" v-else>
<slot></slot>
</a>
</NuxtLink>
</template>