Skip to content

Commit

Permalink
Proxy
Browse files Browse the repository at this point in the history
  • Loading branch information
pontusab committed Dec 13, 2023
1 parent 414254a commit 9cc1015
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 17 deletions.
24 changes: 10 additions & 14 deletions apps/dashboard/src/components/attachments.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -24,27 +24,23 @@ const Item = ({ file, onDelete, id }) => {
<HoverCard openDelay={300}>
<HoverCardTrigger>
<div className="rounded-md border w-[40px] h-[40px] flex items-center justify-center overflow-hidden cursor-pointer">
{file.path && (
<embed
src={`/api/proxy?filePath=vault/${file.path}#toolbar=0`}
title={file.name}
className="w-[40px] h-[40px] pointer-none"
/>
)}
<iframe
src={`/api/proxy?filePath=vault/${file.path}#toolbar=0`}
title={file.name}
className="w-[40px] h-[40px] pointer-none"
/>
</div>
</HoverCardTrigger>
<HoverCardContent
className="w-70 h-[350px]"
side="left"
sideOffset={55}
>
{file.path && (
<embed
src={`/api/proxy?filePath=vault/${file.path}#toolbar=0`}
title={file.name}
className="w-80 h-full"
/>
)}
<iframe
src={`/api/proxy?filePath=vault/${file.path}#toolbar=0`}
title={file.name}
className="w-80 h-full"
/>
</HoverCardContent>
</HoverCard>

Expand Down
Binary file modified bun.lockb
Binary file not shown.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,6 @@
"typescript": "^5.3.3"
},
"devDependencies": {
"vercel": "32.7.1"
"vercel": "32.7.2"
}
}
4 changes: 2 additions & 2 deletions packages/notification/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,9 @@
"check:types": "tsc --noEmit"
},
"dependencies": {
"@novu/node": "^0.21.0"
"@novu/node": "^0.22.0"
},
"devDependencies": {
"typescript": "^5.3.2"
"typescript": "^5.3.3"
}
}

0 comments on commit 9cc1015

Please sign in to comment.