Fix import paths and module exports in frontends/nextjs

Co-authored-by: johndoe6345789 <224850594+johndoe6345789@users.noreply.github.com>
This commit is contained in:
copilot-swe-agent[bot]
2026-01-05 23:43:53 +00:00
parent 167e3910df
commit ee79514830
16 changed files with 23 additions and 22 deletions

View File

@@ -4,7 +4,7 @@
*/
import type { AppConfiguration } from '@/lib/types/level-types'
import { prisma } from '../../prisma'
import { prisma } from '@/lib/config/prisma'
/**
* Get the application configuration

View File

@@ -4,7 +4,7 @@
*/
import type { AppConfiguration } from '@/lib/types/level-types'
import { prisma } from '../../prisma'
import { prisma } from '@/lib/config/prisma'
/**
* Set the application configuration

View File

@@ -4,7 +4,7 @@
*/
import type { Comment } from '@/lib/types/level-types'
import { prisma } from '../../prisma'
import { prisma } from '@/lib/config/prisma'
/**
* Add a new comment

View File

@@ -3,7 +3,7 @@
* Deletes a comment from database
*/
import { prisma } from '../../prisma'
import { prisma } from '@/lib/config/prisma'
/**
* Delete a comment

View File

@@ -4,7 +4,7 @@
*/
import type { Comment } from '@/lib/types/level-types'
import { prisma } from '../../prisma'
import { prisma } from '@/lib/config/prisma'
/**
* Get all comments

View File

@@ -4,7 +4,7 @@
*/
import type { Comment } from '@/lib/types/level-types'
import { prisma } from '../../prisma'
import { prisma } from '@/lib/config/prisma'
/**
* Set all comments (replaces existing)

View File

@@ -4,7 +4,7 @@
*/
import type { Comment } from '@/lib/types/level-types'
import { prisma } from '../../prisma'
import { prisma } from '@/lib/config/prisma'
type CommentUpdateData = {
content?: string

View File

@@ -3,8 +3,8 @@
* Exports all comment functions
*/
export { addComment } from './add-comment'
export { deleteComment } from './delete-comment'
export { getComments } from './get-comments'
export { setComments } from './set-comments'
export { updateComment } from './update-comment'
export { addComment } from './crud/add-comment'
export { deleteComment } from './crud/delete-comment'
export { getComments } from './crud/get-comments'
export { setComments } from './crud/set-comments'
export { updateComment } from './crud/update-comment'

View File

@@ -3,8 +3,8 @@
* Adds a new component node to hierarchy
*/
import { prisma } from '../../prisma'
import type { ComponentNode } from './types'
import { prisma } from '@/lib/config/prisma'
import type { ComponentNode } from '../hierarchy/types'
/**
* Add a component node

View File

@@ -3,7 +3,7 @@
* Deletes a component node from hierarchy
*/
import { prisma } from '../../prisma'
import { prisma } from '@/lib/config/prisma'
/**
* Delete a component node

View File

@@ -3,8 +3,8 @@
* Updates an existing component node
*/
import { prisma } from '../../prisma'
import type { ComponentNode } from './types'
import { prisma } from '@/lib/config/prisma'
import type { ComponentNode } from '../hierarchy/types'
/**
* Update a component node

View File

@@ -3,7 +3,7 @@
* Retrieves component configurations from database
*/
import { prisma } from '../../prisma'
import { prisma } from '@/lib/config/prisma'
import type { ComponentConfig } from './types'
/**

View File

@@ -3,7 +3,7 @@
* Retrieves component hierarchy from database
*/
import { prisma } from '../../prisma'
import { prisma } from '@/lib/config/prisma'
import type { ComponentNode } from './types'
/**

View File

@@ -3,7 +3,7 @@
* Replaces all component hierarchy in database
*/
import { prisma } from '../../prisma'
import { prisma } from '@/lib/config/prisma'
import type { ComponentNode } from './types'
/**

View File

@@ -1,5 +1,5 @@
import { getAdapter } from '../../core/dbal-client'
import { type PackageSeedData } from '../../packages/core/package-types'
import { type PackageSeedData } from '@/lib/package-types'
/**
* Set package data (upsert)

View File

@@ -1,6 +1,7 @@
// DBAL (Database Abstraction Layer) exports
// export { createDBALClient } from './dbal-client' // Not yet implemented
export { DBALClient } from './dbal-client'
export { dbal, DBALIntegration } from './dbal-integration'
export { dbal } from './dbal-integration'
export type { DBALIntegration } from './dbal-integration'
export { DBALClient as DBALRealClient } from '@/dbal'
export type { DBALConfig } from '@/dbal/runtime/config'