Patrik
Patrik
Explore posts from servers
KPCKevin Powell - Community
Created by Patrik on 9/13/2024 in #front-end
z-index for animation
hello there, seems to be easy but i cannot figure that out. i have hover effect on items little tooltip pops up, but when u hover higher element he's lost z-index https://codepen.io/melasculla/pen/ExBJORV
2 replies
KPCKevin Powell - Community
Created by Patrik on 8/31/2024 in #front-end
How should i make it?
No description
8 replies
KPCKevin Powell - Community
Created by Patrik on 8/13/2024 in #front-end
Shape Outside for envelope
No description
34 replies
KPCKevin Powell - Community
Created by Patrik on 8/9/2024 in #front-end
better way to make this note
No description
20 replies
NNuxt
Created by Patrik on 7/20/2024 in #❓・help
Render images from api via fs
hello im using fs storage with folder in root directory (/images) also have endpoint to render images
// /server/api/test.ts
setHeader(event, 'content-type', 'image/jpeg')
return await useStorage('images').getItemRaw("123.jpg")
// /server/api/test.ts
setHeader(event, 'content-type', 'image/jpeg')
return await useStorage('images').getItemRaw("123.jpg")
i can render it inside template and it works
// /app.vue
<NuxtImg src="http://localhost:3000/api/test?image=123.jpg"/>
// /app.vue
<NuxtImg src="http://localhost:3000/api/test?image=123.jpg"/>
but i always need to set http(s) path to host where i reach that: like 127.0.0.1:3000 or 192.168.1.100:3000 or other ip web server i think u got me the question is what can i do to avoid hardcoding path and make dynamic i cant make a repro for some reason but here is repo https://github.com/melasculla/first-nuxt-crud/tree/image-test
2 replies