Small fix
This commit is contained in:
@@ -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"`
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -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}
|
||||||
|
|||||||
@@ -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}
|
||||||
>
|
>
|
||||||
|
|||||||
@@ -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: [
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user