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"`
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"`
}

View File

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

View File

@@ -24,6 +24,10 @@ export default function YouTubeEmbed({
return (
<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`}
onClick={_loadIframe}
>

View File

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