mirror of
https://github.com/shishantbiswas/bknd-examples.git
synced 2026-02-27 03:51:17 +00:00
fix: link triggers on admin paths
This commit is contained in:
@@ -14,11 +14,11 @@ const pathname = computed(() => route.path)
|
|||||||
{{ pathname === '/' ? 'User' : 'Home' }}
|
{{ pathname === '/' ? 'User' : 'Home' }}
|
||||||
</NuxtLink>
|
</NuxtLink>
|
||||||
|
|
||||||
<!-- a tag is required to hit the middleware in place -->
|
<!-- external is required to hit the middleware in place -->
|
||||||
<a class="flex items-center gap-2 hover:underline hover:underline-offset-4" href="/admin">
|
<NuxtLink external class="flex items-center gap-2 hover:underline hover:underline-offset-4" href="/admin">
|
||||||
<img aria-hidden src="/window.svg" alt="Window icon" width="16" height="16" />
|
<img aria-hidden src="/window.svg" alt="Window icon" width="16" height="16" />
|
||||||
Admin
|
Admin
|
||||||
</a>
|
</NuxtLink>
|
||||||
|
|
||||||
<a class="flex items-center gap-2 hover:underline hover:underline-offset-4" href="https://bknd.io" target="_blank"
|
<a class="flex items-center gap-2 hover:underline hover:underline-offset-4" href="https://bknd.io" target="_blank"
|
||||||
rel="noopener noreferrer">
|
rel="noopener noreferrer">
|
||||||
|
|||||||
@@ -18,8 +18,6 @@ async function handleSubmit(event: Event) {
|
|||||||
</script>
|
</script>
|
||||||
|
|
||||||
<template>
|
<template>
|
||||||
<!-- <div v-if="pending">Loading...</div> -->
|
|
||||||
|
|
||||||
<div v-if="todos !== undefined"
|
<div v-if="todos !== undefined"
|
||||||
class="grid grid-rows-[20px_1fr_20px] items-center justify-items-center min-h-screen p-8 pb-20 gap-16 sm:p-20">
|
class="grid grid-rows-[20px_1fr_20px] items-center justify-items-center min-h-screen p-8 pb-20 gap-16 sm:p-20">
|
||||||
<main class="flex flex-col gap-8 row-start-2 items-center sm:items-start">
|
<main class="flex flex-col gap-8 row-start-2 items-center sm:items-start">
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
import { em, entity, text, boolean, libsql } from "bknd";
|
import { em, entity, text, boolean, libsql } from "bknd";
|
||||||
import { RuntimeBkndConfig } from "bknd/adapter";
|
import { type RuntimeBkndConfig } from "bknd/adapter";
|
||||||
import { registerLocalMediaAdapter } from "bknd/adapter/node";
|
import { registerLocalMediaAdapter } from "bknd/adapter/node";
|
||||||
|
|
||||||
const local = registerLocalMediaAdapter();
|
const local = registerLocalMediaAdapter();
|
||||||
|
|||||||
Reference in New Issue
Block a user