chore: releaes prep

This commit is contained in:
LukeGus
2026-05-26 22:36:45 -05:00
parent 9c12a84a91
commit c5b9467186
26 changed files with 24 additions and 58 deletions
+2 -2
View File
@@ -391,7 +391,7 @@ export function NetworkGraphCard({
const applyStyle = useCallback((cy: cytoscape.Core) => {
const edgeColor = resolveCssVar("--border", "#4a4a4e");
const mutedFg = resolveCssVar("--muted-foreground", "#94a3b8");
const foreground = resolveCssVar("--foreground", "#f1f5f9");
cy.style()
.selector("node")
.style({
@@ -422,7 +422,7 @@ export function NetworkGraphCard({
"text-valign": "top",
"text-halign": "center",
"text-margin-y": -6,
color: mutedFg,
color: foreground,
"font-size": "13px",
"font-weight": "bold",
shape: "rectangle",
@@ -3,11 +3,9 @@ import { Document, Page, pdfjs } from "react-pdf";
import { AlertCircle, Download } from "lucide-react";
import { Button } from "@/components/button.tsx";
import { useTranslation } from "react-i18next";
import pdfjsWorkerUrl from "pdfjs-dist/build/pdf.worker.min.mjs?url";
pdfjs.GlobalWorkerOptions.workerSrc = new URL(
"pdfjs-dist/build/pdf.worker.min.mjs",
import.meta.url,
).toString();
pdfjs.GlobalWorkerOptions.workerSrc = pdfjsWorkerUrl;
interface PdfPreviewProps {
content: string;
@@ -88,10 +86,10 @@ export function PdfPreview({
{pdfError ? (
<div className="text-center text-muted-foreground p-8">
<AlertCircle className="w-16 h-16 mx-auto mb-4 text-muted-foreground/50" />
<h3 className="text-lg font-medium mb-2">Cannot load PDF</h3>
<p className="text-sm mb-4">
There was an error loading this PDF file.
</p>
<h3 className="text-lg font-medium mb-2">
{t("fileManager.cannotLoadPdf")}
</h3>
<p className="text-sm mb-4">{t("fileManager.pdfLoadError")}</p>
{onDownload && (
<Button
variant="outline"
@@ -123,7 +121,7 @@ export function PdfPreview({
<div className="text-center p-8">
<div className="animate-spin rounded-full h-8 w-8 border-b-2 border-blue-500 mx-auto mb-2"></div>
<p className="text-sm text-muted-foreground">
Loading PDF...
{t("fileManager.loadingPdf")}
</p>
</div>
}
@@ -136,7 +134,7 @@ export function PdfPreview({
<div className="text-center p-4">
<div className="animate-spin rounded-full h-6 w-6 border-b-2 border-blue-500 mx-auto mb-2"></div>
<p className="text-xs text-muted-foreground">
Loading page...
{t("fileManager.loadingPage")}
</p>
</div>
}
+5 -1
View File
@@ -1080,7 +1080,11 @@
"disk": "Disk",
"used": "Used",
"of": "of",
"toggleSidebar": "Toggle Sidebar"
"toggleSidebar": "Toggle Sidebar",
"cannotLoadPdf": "Cannot load PDF",
"pdfLoadError": "There was an error loading this PDF file.",
"loadingPdf": "Loading PDF...",
"loadingPage": "Loading page..."
},
"tunnels": {
"noSshTunnels": "No SSH Tunnels",