RainyDev
RainyDev
Explore posts from servers
NNuxt
Created by RainyDev on 3/12/2025 in #❓・help
getRequestIP returns nothing
Hi there, I need to get the clients IP in a API Route. Currently I'm trying this:
const ip = getRequestIP(event)
const ip = getRequestIP(event)
I've found this somewhere in the docs. But it returns undefined in Dev (nuxt dev) and on NuxtHub aswell.. Unfortunately I need the IP so are there any workarounds?
11 replies
NNuxt
Created by RainyDev on 3/12/2025 in #❓・help
Content within <DashboardLayout> not scrollable
Hi there, I have a weird issue. When I use the <DashboardLayout> to create a sidebar and then have content within the <Slot /> the content is not scrollable (eg. my table). When I dont use <DashboardLayout> it works. Why? Code:
<template>
<UDashboardLayout>
<UDashboardPanel :width="250" :resizable="{ min: 200, max: 300 }" collapsible>
<UDashboardNavbar>
<template #right>
<UAvatar :src="user.avatar.src" :alt="user.avatar.alt" size="md" class="mr-2" />
<UDropdown
:items="items"
:content="{ align: 'center', collisionPadding: 12 }"
:ui="{ content: 'w-48' }"
>
<UButton
v-bind="{
...user.avatar,
label: user.name,
trailingIcon: 'i-lucide-chevrons-up-down',
}"
variant="ghost"
block
class="data-[state=open]:bg-(--ui-bg-elevated)"
:ui="{
trailingIcon: 'text-(--ui-text-dimmed)',
}"
/>
</UDropdown>
</template>
</UDashboardNavbar>

<UDashboardSidebar>
<UDashboardSidebarLinks :links="[
{ label: 'Home', icon: 'i-lucide-home', to: '/admin' },
{ label: 'Licenses', icon: 'i-lucide-key', to: '/admin/licenses' },
{ label: 'Settings', icon: 'i-lucide-settings', to: '/admin/settings' },
]" />
</UDashboardSidebar>
</UDashboardPanel>

<slot />

</UDashboardLayout>
</template>
<template>
<UDashboardLayout>
<UDashboardPanel :width="250" :resizable="{ min: 200, max: 300 }" collapsible>
<UDashboardNavbar>
<template #right>
<UAvatar :src="user.avatar.src" :alt="user.avatar.alt" size="md" class="mr-2" />
<UDropdown
:items="items"
:content="{ align: 'center', collisionPadding: 12 }"
:ui="{ content: 'w-48' }"
>
<UButton
v-bind="{
...user.avatar,
label: user.name,
trailingIcon: 'i-lucide-chevrons-up-down',
}"
variant="ghost"
block
class="data-[state=open]:bg-(--ui-bg-elevated)"
:ui="{
trailingIcon: 'text-(--ui-text-dimmed)',
}"
/>
</UDropdown>
</template>
</UDashboardNavbar>

<UDashboardSidebar>
<UDashboardSidebarLinks :links="[
{ label: 'Home', icon: 'i-lucide-home', to: '/admin' },
{ label: 'Licenses', icon: 'i-lucide-key', to: '/admin/licenses' },
{ label: 'Settings', icon: 'i-lucide-settings', to: '/admin/settings' },
]" />
</UDashboardSidebar>
</UDashboardPanel>

<slot />

</UDashboardLayout>
</template>
21 replies
CCoder.com
Created by RainyDev on 9/21/2024 in #help
Golang Template
Hi there, does anyone have a golang template with go version 1.22 or 1.23? The base golang image from coder has a too old version for me and I haven't figured out yet how to install a newer version in the coder workspace Thanks in advance!
39 replies
FFilament
Created by RainyDev on 8/3/2024 in #❓┊help
Question regarding Media Library Manager Pricing
Hey @ralphjsmit sorry for the ping. Few questions: I really like the plugin from what I could see in the description but: - Filament Plugin page says $49 but it seems like it costs 89$ for a Single Project? You might wan't to update that if its not intended. - Is it possible to upgrade the license to a higher "tier" at a later moment? Best regards @𝕽𝖆𝖎𝖓𝖞𝕯𝖊𝖛
5 replies