mirror of
https://github.com/johndoe6345789/metabuilder.git
synced 2026-04-24 13:54:57 +00:00
Fix import paths and module exports in frontends/nextjs
Co-authored-by: johndoe6345789 <224850594+johndoe6345789@users.noreply.github.com>
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
* Deletes a comment from database
|
||||
*/
|
||||
|
||||
import { prisma } from '../../prisma'
|
||||
import { prisma } from '@/lib/config/prisma'
|
||||
|
||||
/**
|
||||
* Delete a comment
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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)
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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'
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
* Deletes a component node from hierarchy
|
||||
*/
|
||||
|
||||
import { prisma } from '../../prisma'
|
||||
import { prisma } from '@/lib/config/prisma'
|
||||
|
||||
/**
|
||||
* Delete a component node
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
* Retrieves component configurations from database
|
||||
*/
|
||||
|
||||
import { prisma } from '../../prisma'
|
||||
import { prisma } from '@/lib/config/prisma'
|
||||
import type { ComponentConfig } from './types'
|
||||
|
||||
/**
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
* Retrieves component hierarchy from database
|
||||
*/
|
||||
|
||||
import { prisma } from '../../prisma'
|
||||
import { prisma } from '@/lib/config/prisma'
|
||||
import type { ComponentNode } from './types'
|
||||
|
||||
/**
|
||||
|
||||
@@ -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'
|
||||
|
||||
/**
|
||||
|
||||
@@ -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)
|
||||
|
||||
@@ -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'
|
||||
|
||||
Reference in New Issue
Block a user