diff --git a/packages/path/tsconfig.json b/packages/path/tsconfig.json
index bfa0fea..146fe4e 100644
--- a/packages/path/tsconfig.json
+++ b/packages/path/tsconfig.json
@@ -1,29 +1,29 @@
{
- "compilerOptions": {
- // Environment setup & latest features
- "lib": ["ESNext"],
- "target": "ESNext",
- "module": "Preserve",
- "moduleDetection": "force",
- "jsx": "react-jsx",
- "allowJs": true,
+ "compilerOptions": {
+ // Environment setup & latest features
+ "lib": ["ESNext"],
+ "target": "ESNext",
+ "module": "Preserve",
+ "moduleDetection": "force",
+ "jsx": "react-jsx",
+ "allowJs": true,
- // Bundler mode
- "moduleResolution": "bundler",
- "allowImportingTsExtensions": true,
- "verbatimModuleSyntax": true,
- "noEmit": true,
+ // Bundler mode
+ "moduleResolution": "bundler",
+ "allowImportingTsExtensions": true,
+ "verbatimModuleSyntax": true,
+ "noEmit": true,
- // Best practices
- "strict": true,
- "skipLibCheck": true,
- "noFallthroughCasesInSwitch": true,
- "noUncheckedIndexedAccess": true,
- "noImplicitOverride": true,
+ // Best practices
+ "strict": true,
+ "skipLibCheck": true,
+ "noFallthroughCasesInSwitch": true,
+ "noUncheckedIndexedAccess": true,
+ "noImplicitOverride": true,
- // Some stricter flags (disabled by default)
- "noUnusedLocals": false,
- "noUnusedParameters": false,
- "noPropertyAccessFromIndexSignature": false
- }
+ // Some stricter flags (disabled by default)
+ "noUnusedLocals": false,
+ "noUnusedParameters": false,
+ "noPropertyAccessFromIndexSignature": false
+ }
}
diff --git a/packages/web/bun-env.d.ts b/packages/web/bun-env.d.ts
index 72f1c26..2380a69 100644
--- a/packages/web/bun-env.d.ts
+++ b/packages/web/bun-env.d.ts
@@ -1,17 +1,17 @@
// Generated by `bun init`
declare module "*.svg" {
- /**
- * A path to the SVG file
- */
- const path: `${string}.svg`;
- export = path;
+ /**
+ * A path to the SVG file
+ */
+ const path: `${string}.svg`
+ export = path
}
declare module "*.module.css" {
- /**
- * A record of class names to their corresponding CSS module classes
- */
- const classes: { readonly [key: string]: string };
- export = classes;
+ /**
+ * A record of class names to their corresponding CSS module classes
+ */
+ const classes: { readonly [key: string]: string }
+ export = classes
}
diff --git a/packages/web/src/components/ui/breadcrumb.tsx b/packages/web/src/components/ui/breadcrumb.tsx
index eb88f32..4b95252 100644
--- a/packages/web/src/components/ui/breadcrumb.tsx
+++ b/packages/web/src/components/ui/breadcrumb.tsx
@@ -1,109 +1,109 @@
-import * as React from "react"
import { Slot } from "@radix-ui/react-slot"
import { ChevronRight, MoreHorizontal } from "lucide-react"
+import type * as React from "react"
import { cn } from "@/lib/utils"
function Breadcrumb({ ...props }: React.ComponentProps<"nav">) {
- return
+ return
}
function BreadcrumbList({ className, ...props }: React.ComponentProps<"ol">) {
- return (
-
- )
+ return (
+
+ )
}
function BreadcrumbItem({ className, ...props }: React.ComponentProps<"li">) {
- return (
-
- )
+ return (
+
+ )
}
function BreadcrumbLink({
- asChild,
- className,
- ...props
+ asChild,
+ className,
+ ...props
}: React.ComponentProps<"a"> & {
- asChild?: boolean
+ asChild?: boolean
}) {
- const Comp = asChild ? Slot : "a"
+ const Comp = asChild ? Slot : "a"
- return (
-
- )
+ return (
+
+ )
}
function BreadcrumbPage({ className, ...props }: React.ComponentProps<"span">) {
- return (
-
- )
+ return (
+
+ )
}
function BreadcrumbSeparator({
- children,
- className,
- ...props
+ children,
+ className,
+ ...props
}: React.ComponentProps<"li">) {
- return (
- svg]:size-3.5", className)}
- {...props}
- >
- {children ?? }
-
- )
+ return (
+ svg]:size-3.5", className)}
+ {...props}
+ >
+ {children ?? }
+
+ )
}
function BreadcrumbEllipsis({
- className,
- ...props
+ className,
+ ...props
}: React.ComponentProps<"span">) {
- return (
-
-
- More
-
- )
+ return (
+
+
+ More
+
+ )
}
export {
- Breadcrumb,
- BreadcrumbList,
- BreadcrumbItem,
- BreadcrumbLink,
- BreadcrumbPage,
- BreadcrumbSeparator,
- BreadcrumbEllipsis,
+ Breadcrumb,
+ BreadcrumbList,
+ BreadcrumbItem,
+ BreadcrumbLink,
+ BreadcrumbPage,
+ BreadcrumbSeparator,
+ BreadcrumbEllipsis,
}
diff --git a/packages/web/src/components/ui/checkbox.tsx b/packages/web/src/components/ui/checkbox.tsx
index defeb01..620e30d 100644
--- a/packages/web/src/components/ui/checkbox.tsx
+++ b/packages/web/src/components/ui/checkbox.tsx
@@ -1,30 +1,30 @@
-import * as React from "react"
import * as CheckboxPrimitive from "@radix-ui/react-checkbox"
import { CheckIcon } from "lucide-react"
+import type * as React from "react"
import { cn } from "@/lib/utils"
function Checkbox({
- className,
- ...props
+ className,
+ ...props
}: React.ComponentProps) {
- return (
-
-
-
-
-
- )
+ return (
+
+
+
+
+
+ )
}
export { Checkbox }
diff --git a/packages/web/src/components/ui/input.tsx b/packages/web/src/components/ui/input.tsx
index 03295ca..51c3047 100644
--- a/packages/web/src/components/ui/input.tsx
+++ b/packages/web/src/components/ui/input.tsx
@@ -1,21 +1,21 @@
-import * as React from "react"
+import type * as React from "react"
import { cn } from "@/lib/utils"
function Input({ className, type, ...props }: React.ComponentProps<"input">) {
- return (
-
- )
+ return (
+
+ )
}
export { Input }
diff --git a/packages/web/src/components/ui/separator.tsx b/packages/web/src/components/ui/separator.tsx
index bb3ad74..56214ba 100644
--- a/packages/web/src/components/ui/separator.tsx
+++ b/packages/web/src/components/ui/separator.tsx
@@ -1,26 +1,26 @@
-import * as React from "react"
import * as SeparatorPrimitive from "@radix-ui/react-separator"
+import type * as React from "react"
import { cn } from "@/lib/utils"
function Separator({
- className,
- orientation = "horizontal",
- decorative = true,
- ...props
+ className,
+ orientation = "horizontal",
+ decorative = true,
+ ...props
}: React.ComponentProps) {
- return (
-
- )
+ return (
+
+ )
}
export { Separator }
diff --git a/packages/web/src/components/ui/sheet.tsx b/packages/web/src/components/ui/sheet.tsx
index 84649ad..05dd980 100644
--- a/packages/web/src/components/ui/sheet.tsx
+++ b/packages/web/src/components/ui/sheet.tsx
@@ -1,139 +1,139 @@
"use client"
-import * as React from "react"
import * as SheetPrimitive from "@radix-ui/react-dialog"
import { XIcon } from "lucide-react"
+import type * as React from "react"
import { cn } from "@/lib/utils"
function Sheet({ ...props }: React.ComponentProps) {
- return
+ return
}
function SheetTrigger({
- ...props
+ ...props
}: React.ComponentProps) {
- return
+ return
}
function SheetClose({
- ...props
+ ...props
}: React.ComponentProps) {
- return
+ return
}
function SheetPortal({
- ...props
+ ...props
}: React.ComponentProps) {
- return
+ return
}
function SheetOverlay({
- className,
- ...props
+ className,
+ ...props
}: React.ComponentProps) {
- return (
-
- )
+ return (
+
+ )
}
function SheetContent({
- className,
- children,
- side = "right",
- ...props
+ className,
+ children,
+ side = "right",
+ ...props
}: React.ComponentProps & {
- side?: "top" | "right" | "bottom" | "left"
+ side?: "top" | "right" | "bottom" | "left"
}) {
- return (
-
-
-
- {children}
-
-
- Close
-
-
-
- )
+ return (
+
+
+
+ {children}
+
+
+ Close
+
+
+
+ )
}
function SheetHeader({ className, ...props }: React.ComponentProps<"div">) {
- return (
-
- )
+ return (
+
+ )
}
function SheetFooter({ className, ...props }: React.ComponentProps<"div">) {
- return (
-
- )
+ return (
+
+ )
}
function SheetTitle({
- className,
- ...props
+ className,
+ ...props
}: React.ComponentProps) {
- return (
-
- )
+ return (
+
+ )
}
function SheetDescription({
- className,
- ...props
+ className,
+ ...props
}: React.ComponentProps) {
- return (
-
- )
+ return (
+
+ )
}
export {
- Sheet,
- SheetTrigger,
- SheetClose,
- SheetContent,
- SheetHeader,
- SheetFooter,
- SheetTitle,
- SheetDescription,
+ Sheet,
+ SheetTrigger,
+ SheetClose,
+ SheetContent,
+ SheetHeader,
+ SheetFooter,
+ SheetTitle,
+ SheetDescription,
}
diff --git a/packages/web/src/components/ui/sidebar.tsx b/packages/web/src/components/ui/sidebar.tsx
index f076c6c..ef80253 100644
--- a/packages/web/src/components/ui/sidebar.tsx
+++ b/packages/web/src/components/ui/sidebar.tsx
@@ -92,7 +92,7 @@ function SidebarProvider({
return isMobile
? setOpenMobile((open) => !open)
: setOpen((open) => !open)
- }, [isMobile, setOpen, setOpenMobile])
+ }, [isMobile, setOpen])
// Adds a keyboard shortcut to toggle the sidebar.
React.useEffect(() => {
@@ -124,15 +124,7 @@ function SidebarProvider({
setOpenMobile,
toggleSidebar,
}),
- [
- state,
- open,
- setOpen,
- isMobile,
- openMobile,
- setOpenMobile,
- toggleSidebar,
- ],
+ [state, open, setOpen, isMobile, openMobile, toggleSidebar],
)
return (
diff --git a/packages/web/src/components/ui/skeleton.tsx b/packages/web/src/components/ui/skeleton.tsx
index 32ea0ef..eb12f81 100644
--- a/packages/web/src/components/ui/skeleton.tsx
+++ b/packages/web/src/components/ui/skeleton.tsx
@@ -1,13 +1,13 @@
import { cn } from "@/lib/utils"
function Skeleton({ className, ...props }: React.ComponentProps<"div">) {
- return (
-
- )
+ return (
+
+ )
}
export { Skeleton }
diff --git a/packages/web/src/components/ui/tooltip.tsx b/packages/web/src/components/ui/tooltip.tsx
index 71ee0fe..3a84ae1 100644
--- a/packages/web/src/components/ui/tooltip.tsx
+++ b/packages/web/src/components/ui/tooltip.tsx
@@ -1,59 +1,59 @@
-import * as React from "react"
import * as TooltipPrimitive from "@radix-ui/react-tooltip"
+import type * as React from "react"
import { cn } from "@/lib/utils"
function TooltipProvider({
- delayDuration = 0,
- ...props
+ delayDuration = 0,
+ ...props
}: React.ComponentProps) {
- return (
-
- )
+ return (
+
+ )
}
function Tooltip({
- ...props
+ ...props
}: React.ComponentProps) {
- return (
-
-
-
- )
+ return (
+
+
+
+ )
}
function TooltipTrigger({
- ...props
+ ...props
}: React.ComponentProps) {
- return
+ return
}
function TooltipContent({
- className,
- sideOffset = 0,
- children,
- ...props
+ className,
+ sideOffset = 0,
+ children,
+ ...props
}: React.ComponentProps) {
- return (
-
-
- {children}
-
-
-
- )
+ return (
+
+
+ {children}
+
+
+
+ )
}
export { Tooltip, TooltipTrigger, TooltipContent, TooltipProvider }
diff --git a/packages/web/src/directories/directory-page/directory-page.tsx b/packages/web/src/directories/directory-page/directory-page.tsx
index d0e8c6e..3f6e420 100644
--- a/packages/web/src/directories/directory-page/directory-page.tsx
+++ b/packages/web/src/directories/directory-page/directory-page.tsx
@@ -7,7 +7,7 @@ import {
import { useMutation } from "@tanstack/react-query"
import { Link } from "@tanstack/react-router"
import { useMutation as useConvexMutation } from "convex/react"
-import { useAtom, useAtomValue, useSetAtom } from "jotai"
+import { useAtom } from "jotai"
import {
ChevronDownIcon,
Loader2Icon,
@@ -87,7 +87,7 @@ function FilePathBreadcrumb() {
const breadcrumbItems: React.ReactNode[] = []
for (let i = 1; i < directory.path.length - 1; i++) {
breadcrumbItems.push(
-
+
,
diff --git a/packages/web/src/directories/directory-page/skeleton-demo.tsx b/packages/web/src/directories/directory-page/skeleton-demo.tsx
index a2e85cf..74509a2 100644
--- a/packages/web/src/directories/directory-page/skeleton-demo.tsx
+++ b/packages/web/src/directories/directory-page/skeleton-demo.tsx
@@ -10,33 +10,37 @@ export function SkeletonDemo() {
return (
-
-
-
+
{showPageSkeleton && (
-
Directory Page Skeleton
+
+ Directory Page Skeleton
+
)}
-
+
{showTableSkeleton && (
-
Directory Content Table Skeleton
+
+ Directory Content Table Skeleton
+
)}
)
-}
\ No newline at end of file
+}
diff --git a/packages/web/src/directories/directory-page/state.ts b/packages/web/src/directories/directory-page/state.ts
index 03377f4..744c7dc 100644
--- a/packages/web/src/directories/directory-page/state.ts
+++ b/packages/web/src/directories/directory-page/state.ts
@@ -1,5 +1,4 @@
import type { Doc, Id } from "@fileone/convex/_generated/dataModel"
-import type { DirectoryItemKind } from "@fileone/convex/model/directories"
import type { FileSystemItem, FileType } from "@fileone/convex/model/filesystem"
import type { RowSelectionState } from "@tanstack/react-table"
import { atom } from "jotai"
diff --git a/packages/web/src/hooks/use-mobile.ts b/packages/web/src/hooks/use-mobile.ts
index 2b0fe1d..c932a86 100644
--- a/packages/web/src/hooks/use-mobile.ts
+++ b/packages/web/src/hooks/use-mobile.ts
@@ -3,17 +3,19 @@ import * as React from "react"
const MOBILE_BREAKPOINT = 768
export function useIsMobile() {
- const [isMobile, setIsMobile] = React.useState(undefined)
+ const [isMobile, setIsMobile] = React.useState(
+ undefined,
+ )
- React.useEffect(() => {
- const mql = window.matchMedia(`(max-width: ${MOBILE_BREAKPOINT - 1}px)`)
- const onChange = () => {
- setIsMobile(window.innerWidth < MOBILE_BREAKPOINT)
- }
- mql.addEventListener("change", onChange)
- setIsMobile(window.innerWidth < MOBILE_BREAKPOINT)
- return () => mql.removeEventListener("change", onChange)
- }, [])
+ React.useEffect(() => {
+ const mql = window.matchMedia(`(max-width: ${MOBILE_BREAKPOINT - 1}px)`)
+ const onChange = () => {
+ setIsMobile(window.innerWidth < MOBILE_BREAKPOINT)
+ }
+ mql.addEventListener("change", onChange)
+ setIsMobile(window.innerWidth < MOBILE_BREAKPOINT)
+ return () => mql.removeEventListener("change", onChange)
+ }, [])
- return !!isMobile
+ return !!isMobile
}
diff --git a/packages/web/src/routes/_authenticated/_sidebar-layout.tsx b/packages/web/src/routes/_authenticated/_sidebar-layout.tsx
index a16a9a6..73159bb 100644
--- a/packages/web/src/routes/_authenticated/_sidebar-layout.tsx
+++ b/packages/web/src/routes/_authenticated/_sidebar-layout.tsx
@@ -1,5 +1,4 @@
import { createFileRoute, Outlet } from "@tanstack/react-router"
-import { useQuery as useConvexQuery } from "convex/react"
import { SidebarInset, SidebarProvider } from "@/components/ui/sidebar"
import { Toaster } from "@/components/ui/sonner"
import { DashboardSidebar } from "@/dashboard/dashboard-sidebar"