abd
abd
Explore posts from servers
NNuxt
Created by abd on 8/7/2024 in #❓・help
nuxt/content api calls?
@IsraelOrtuno who is calling this endpoint?
7 replies
NNuxt
Created by abd on 8/6/2024 in #❓・help
How to make a page height = the viewport height
@isakwang I am using nuxt with layouts. this is layout/default.vue
<template>
<Header />
<NuxtPage />
<Footer />
</template>
<template>
<Header />
<NuxtPage />
<Footer />
</template>
How do i manage it if i have the header and footer separated from the page comopnent that is rendering the page itself
12 replies
NNuxt
Created by abd on 8/4/2024 in #❓・help
useFetch && $fetch
thank you
6 replies
NNuxt
Created by abd on 8/6/2024 in #❓・help
How to make a page height = the viewport height
@isakwang margin where?
12 replies
NNuxt
Created by abd on 8/7/2024 in #❓・help
nuxt/content api calls?
@mathieu thanks but im not asking about the encoding. I am asking what part of nuxt or nuxt/content is exposing this api/_content path?
7 replies
NNuxt
Created by abd on 8/6/2024 in #❓・help
How to make a page height = the viewport height
@∂Max h-screen doesnt seem to work. parts of my page still fall below the viewport
12 replies
NNuxt
Created by abd on 8/3/2024 in #❓・help
tailwind dark mode reactive logo
ok thanks!
7 replies
NNuxt
Created by abd on 8/3/2024 in #❓・help
tailwind dark mode reactive logo
<template>
<NuxtImg
fetchpriority="high"
decoding="async"
style="color: transparent"
:src="srcSet[0].src"
:srcset="srcset"
:alt="alt"
:class="imgClass"
/>
<NuxtImg
fetchpriority="high"
decoding="async"
style="color: transparent"
:src="darkSet[0].src"
:srcset="darkSet"
:alt="alt"
:class="imgClass"
/>
</template>
<template>
<NuxtImg
fetchpriority="high"
decoding="async"
style="color: transparent"
:src="srcSet[0].src"
:srcset="srcset"
:alt="alt"
:class="imgClass"
/>
<NuxtImg
fetchpriority="high"
decoding="async"
style="color: transparent"
:src="darkSet[0].src"
:srcset="darkSet"
:alt="alt"
:class="imgClass"
/>
</template>
how would i implement that logic?
7 replies
NNuxt
Created by abd on 8/3/2024 in #❓・help
tailwind dark mode reactive logo
@isakwang how would you define that in CSS?
7 replies
NNuxt
Created by abd on 8/2/2024 in #❓・help
nuxt/content doesnt allow mixing vue components with markdown?
@dwol 🤦‍♂️ thank you so much!
3 replies
NNuxt
Created by abd on 5/23/2024 in #❓・help
Supabase server-routes RLS authentication
sure lemme know
8 replies
NNuxt
Created by abd on 5/23/2024 in #❓・help
Supabase server-routes RLS authentication
You can DM me if you want help on the rls policy I just built a tester to really learn all about it and finished with my schema for all tables
8 replies
NNuxt
Created by abd on 5/23/2024 in #❓・help
Supabase server-routes RLS authentication
The ‘what they’re allowed access to’ is entirely dependent on how you setup the rls. But you will have their auth.id there available so very easy to just define the policy you need
8 replies
NNuxt
Created by abd on 5/23/2024 in #❓・help
Supabase server-routes RLS authentication
@Scripted Pixels so from my testing / understanding: 1. Since supabase is setting cookies under the top level domain, the server routes will receive all cookies when requested. 2. Nuxt is using nitro which wraps h3 for the web server powering server routes, which gives you the event argument passed to each route handler 3. Inside of the event object you have the headers property. 4. You pass the event object to supabase when initializing its objects and it will get the token from there and I guess unencode it to get the user information
export default defineEventHandler(async (event) => {
const user = await serverSupabaseUser(event)
const client = await serverSupabaseClient(event)
export default defineEventHandler(async (event) => {
const user = await serverSupabaseUser(event)
const client = await serverSupabaseClient(event)
8 replies
NNuxt
Created by abd on 5/23/2024 in #❓・help
Noob question about hydration in SSR
@Likonima thanks for the reply: 1. duh. I dont have await on the function call itself 2. why not use usefetch inside a function? 3. why asynData vs. usefetch? I understood that useFetch is just a syntax wrapper around asyndata?
5 replies
NNuxt
Created by abd on 5/23/2023 in #❓・help
How to add custom fonts project wide
@taunoha I would like to be able to add a custom font that I can then use in any component template
4 replies
NNuxt
Created by abd on 5/15/2023 in #❓・help
Installation failure
@Jay this is why people wanted federated package ecosystems, to avoid single point of failures like NPM
6 replies