fix: imports

This commit is contained in:
2026-03-12 11:29:26 +01:00
parent 7a6a4a43c5
commit 49a80e8d91
12 changed files with 30 additions and 28 deletions

View File

@@ -5,7 +5,7 @@
import React, { useEffect } from 'react'
import { useParams } from 'react-router-dom'
import { CanvasPage } from './CanvasPage'
import { usePlatform } from '../kosmos/KosmosContext'
import { usePlatform } from '@/app/kosmos/KosmosContext'
export function CanvasRoute() {
const { projectId } = useParams<{ projectId: string }>()

View File

@@ -5,8 +5,8 @@
import React, { createContext, useCallback, useContext, useMemo, useState } from 'react'
import type { Project } from './types'
import { saveGraphToStorage } from '../pleroma/projectGraphStorage'
import { PROJECT_VERSION } from '../pleroma/projectGraphStorage'
import { saveGraphToStorage } from '@/app/pleroma/projectGraphStorage'
import { PROJECT_VERSION } from '@/app/pleroma/projectGraphStorage'
const STORAGE_KEY = 'zui_platform_projects'
const ORDER_STORAGE_KEY = 'zui_platform_project_order'

View File

@@ -21,7 +21,7 @@ import { Plus, Settings, Triangle } from 'lucide-react'
import { Tooltip, TooltipContent, TooltipTrigger } from '@/components/ui/tooltip'
import { useSidebar } from '@/components/ui/sidebar'
import { usePlatform } from './KosmosContext'
import { getProjectIcon } from '../../lib/iconMap'
import { getProjectIcon } from '@/lib/iconMap'
import { NewProjectDialog } from './NewProjectDialog'
import { SettingsDialog } from './SettingsDialog'
import type { Project } from './types'

View File

@@ -17,7 +17,7 @@ import { Input } from '@/components/ui/input'
import { Select, SelectContent, SelectItem, SelectTrigger, SelectValue } from '@/components/ui/select'
import { Plus } from 'lucide-react'
import { PROJECT_ICON_IDS, type Project, type ProjectIconId } from './types'
import { getProjectIcon } from '../../lib/iconMap'
import { getProjectIcon } from '@/lib/iconMap'
type NewProjectDialogProps = {
onCreate: (project: Project) => void

View File

@@ -55,8 +55,8 @@ import {
Copy,
} from 'lucide-react'
import { Checkbox } from '@/components/ui/checkbox'
import { usePlatform } from '../kosmos/KosmosContext'
import { getProjectIcon } from '../../lib/iconMap'
import { usePlatform } from '@/app/kosmos/KosmosContext'
import { getProjectIcon } from '@/lib/iconMap'
import {
loadGraphFromStorage,
saveGraphToStorage,
@@ -65,9 +65,9 @@ import {
PROJECT_VERSION,
} from './projectGraphStorage'
import { toast } from 'sonner'
import { NewProjectDialog } from '../kosmos/NewProjectDialog'
import { NewProjectDialog } from '@/app/kosmos/NewProjectDialog'
import { ProjectsPageBackground } from './ProjectsPageBackground'
import type { Project } from '../kosmos/types'
import type { Project } from '@/app/kosmos/types'
const PAGE_SIZE_OPTIONS = [10, 25, 50] as const
type SortKey = 'lastEdited' | 'name' | 'created'