mirror of
https://github.com/get-drexa/drive.git
synced 2025-12-01 05:51:39 +00:00
refactor: add import maps for generated code
- Add export mappings in @fileone/convex package.json for cleaner imports - Map @fileone/convex/dataModel to _generated/dataModel.d.ts - Map @fileone/convex/api to _generated/api.js - Map @fileone/convex/server to _generated/server.js - Update all imports across packages/convex and apps/drive-web - Maintain backward compatibility with _generated/* exports Co-authored-by: Ona <no-reply@ona.com>
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
import type { Doc } from "@fileone/convex/_generated/dataModel"
|
||||
import type { Doc } from "@fileone/convex/dataModel"
|
||||
import type { FileSystemItem } from "@fileone/convex/filesystem"
|
||||
import type { DirectoryInfo } from "@fileone/convex/types"
|
||||
import { createContext } from "react"
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import { api } from "@fileone/convex/_generated/api"
|
||||
import { api } from "@fileone/convex/api"
|
||||
import { newFileSystemHandle } from "@fileone/convex/filesystem"
|
||||
import { useMutation } from "@tanstack/react-query"
|
||||
import { useMutation as useContextMutation } from "convex/react"
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import type { Doc } from "@fileone/convex/_generated/dataModel"
|
||||
import type { Doc } from "@fileone/convex/dataModel"
|
||||
import {
|
||||
type DirectoryHandle,
|
||||
type FileHandle,
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import type { Id } from "@fileone/convex/_generated/dataModel"
|
||||
import type { Id } from "@fileone/convex/dataModel"
|
||||
import type {
|
||||
DirectoryHandle,
|
||||
DirectoryPathComponent,
|
||||
@@ -86,6 +86,8 @@ function FilePathBreadcrumbItem({
|
||||
|
||||
const dirName = component.name || rootLabel
|
||||
|
||||
console.log({ dirName, isDraggedOver, dropHandlers })
|
||||
|
||||
return (
|
||||
<Tooltip open={isDraggedOver}>
|
||||
<TooltipTrigger asChild>
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
import { api } from "@fileone/convex/_generated/api"
|
||||
import type { Id } from "@fileone/convex/_generated/dataModel"
|
||||
import { api } from "@fileone/convex/api"
|
||||
import type { Id } from "@fileone/convex/dataModel"
|
||||
import { useMutation } from "@tanstack/react-query"
|
||||
import { useMutation as useContextMutation } from "convex/react"
|
||||
import { useId } from "react"
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import { api } from "@fileone/convex/_generated/api"
|
||||
import { api } from "@fileone/convex/api"
|
||||
import { type FileSystemItem, FileType } from "@fileone/convex/filesystem"
|
||||
import { useMutation } from "@tanstack/react-query"
|
||||
import { useMutation as useContextMutation } from "convex/react"
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
import type { Doc, Id } from "@fileone/convex/_generated/dataModel"
|
||||
import type { FileSystemItem, FileType } from "@fileone/convex/filesystem"
|
||||
import type { Doc, Id } from "@fileone/convex/dataModel"
|
||||
import type { FileSystemItem } from "@fileone/convex/filesystem"
|
||||
import type { RowSelectionState } from "@tanstack/react-table"
|
||||
import { atom } from "jotai"
|
||||
import type { FileDragInfo } from "../../files/use-file-drop"
|
||||
|
||||
Reference in New Issue
Block a user