- Showing {pageIndex * pageSize + 1} to {Math.min((pageIndex + 1) * pageSize, actualTotal)} of{" "}
- {actualTotal} documents
+ Showing {pageIndex * pageSize + 1} to {Math.min((pageIndex + 1) * pageSize, actualTotal)}{" "}
+ of {actualTotal} documents
Page
- {pageIndex + 1}
- of
- {Math.ceil(actualTotal / pageSize)}
-
+
{pageIndex + 1}
+
of
+
{Math.ceil(actualTotal / pageSize)}
+
diff --git a/surfsense_web/components/sources/YouTubeTab.tsx b/surfsense_web/components/sources/YouTubeTab.tsx
index 0a51d0dca..4bdaf2d37 100644
--- a/surfsense_web/components/sources/YouTubeTab.tsx
+++ b/surfsense_web/components/sources/YouTubeTab.tsx
@@ -2,12 +2,12 @@
import { IconBrandYoutube } from "@tabler/icons-react";
import { TagInput, type Tag as TagType } from "emblor";
+import { useAtom } from "jotai";
import { Loader2 } from "lucide-react";
import { motion } from "motion/react";
import { useRouter } from "next/navigation";
import { useTranslations } from "next-intl";
import { useState } from "react";
-import { useAtom } from "jotai";
import { toast } from "sonner";
import { createDocumentMutationAtom } from "@/atoms/documents/document-mutation.atoms";
diff --git a/surfsense_web/contracts/types/document.types.ts b/surfsense_web/contracts/types/document.types.ts
index ae755f5f3..abffc68a5 100644
--- a/surfsense_web/contracts/types/document.types.ts
+++ b/surfsense_web/contracts/types/document.types.ts
@@ -161,7 +161,7 @@ export const deleteDocumentResponse = z.object({
message: z.literal("Document deleted successfully"),
});
-export type Document = z.infer
+export type Document = z.infer;
export type GetDocumentsRequest = z.infer;
export type GetDocumentsResponse = z.infer;
export type GetDocumentRequest = z.infer;
@@ -180,4 +180,4 @@ export type UpdateDocumentRequest = z.infer;
export type UpdateDocumentResponse = z.infer;
export type DeleteDocumentRequest = z.infer;
export type DeleteDocumentResponse = z.infer;
-export type DocumentTypeEnum = z.infer
+export type DocumentTypeEnum = z.infer;
diff --git a/surfsense_web/lib/query-client/cache-keys.ts b/surfsense_web/lib/query-client/cache-keys.ts
index 72fac6dc5..033f7563b 100644
--- a/surfsense_web/lib/query-client/cache-keys.ts
+++ b/surfsense_web/lib/query-client/cache-keys.ts
@@ -15,7 +15,8 @@ export const cacheKeys = {
documents: {
globalQueryParams: (queries: GetDocumentsRequest["queryParams"]) =>
["documents", ...(queries ? Object.values(queries) : [])] as const,
- withQueryParams :(queries: GetDocumentsRequest["queryParams"]) => ["documents-with-queries", ...(queries ? Object.values(queries) : [])] as const,
+ withQueryParams: (queries: GetDocumentsRequest["queryParams"]) =>
+ ["documents-with-queries", ...(queries ? Object.values(queries) : [])] as const,
document: (documentId: string) => ["document", documentId] as const,
typeCounts: (searchSpaceId?: string) => ["documents", "type-counts", searchSpaceId] as const,
byChunk: (chunkId: string) => ["documents", "by-chunk", chunkId] as const,