Small fix

This commit is contained in:
cdricms
2025-01-31 18:52:49 +01:00
parent c90e2a8844
commit 0595f5dba7
4 changed files with 8 additions and 2 deletions

View File

@@ -12,6 +12,6 @@ type PermissionToRole struct {
PermissionResource string `bun:"resource,pk"` PermissionResource string `bun:"resource,pk"`
RoleID uuid.UUID `bun:"type:uuid,pk"` RoleID uuid.UUID `bun:"type:uuid,pk"`
Permission *Permission `bun:"rel:belongs-to,join:resource=resource,action=action"` Permission *Permission `bun:"rel:belongs-to"`
Role *Role `bun:"rel:belongs-to,join:role_id=id"` Role *Role `bun:"rel:belongs-to,join:role_id=id"`
} }

View File

@@ -136,7 +136,6 @@ function RoleCard({ role, onDelete, permissions }: RoleCardProps) {
</CardHeader> </CardHeader>
<CardContent> <CardContent>
{Object.entries(permissions).map(([res, actions]) => { {Object.entries(permissions).map(([res, actions]) => {
console.log(role.permissions);
return ( return (
<ResourceSection <ResourceSection
key={res} key={res}

View File

@@ -24,6 +24,10 @@ export default function YouTubeEmbed({
return ( return (
<div <div
style={{
width: width === "full" ? "100%" : `${width}px`,
height: height === "full" ? "100%" : `${height}px`,
}}
className={`relative w-${width === "full" ? width : "[" + width + "px]"} h-${height === "full" ? height : "[" + height + "px]"} cursor-pointer`} className={`relative w-${width === "full" ? width : "[" + width + "px]"} h-${height === "full" ? height : "[" + height + "px]"} cursor-pointer`}
onClick={_loadIframe} onClick={_loadIframe}
> >

View File

@@ -8,6 +8,9 @@ const apiUrl =
const nextConfig: NextConfig = { const nextConfig: NextConfig = {
/* config options here */ /* config options here */
output: "standalone", output: "standalone",
compiler: {
removeConsole: process.env.NODE_ENV === "production",
},
images: { images: {
remotePatterns: [ remotePatterns: [
{ {