mirror of
https://github.com/johndoe6345789/metabuilder.git
synced 2026-04-24 13:54:57 +00:00
fix: standardize import formatting across multiple files
- Adjusted import statements to ensure consistent spacing and formatting in various test files, utility files, and component files. - Updated type imports to maintain uniformity in spacing. - Ensured that all import statements follow the same style for better readability and maintainability.
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
import { beforeEach,describe, expect, it, vi } from 'vitest'
|
||||
import { beforeEach, describe, expect, it, vi } from 'vitest'
|
||||
|
||||
const mockCreate = vi.fn()
|
||||
const mockAdapter = { create: mockCreate }
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import { beforeEach,describe, expect, it, vi } from 'vitest'
|
||||
import { beforeEach, describe, expect, it, vi } from 'vitest'
|
||||
|
||||
const mockDelete = vi.fn()
|
||||
const mockAdapter = { delete: mockDelete }
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import { beforeEach,describe, expect, it, vi } from 'vitest'
|
||||
import { beforeEach, describe, expect, it, vi } from 'vitest'
|
||||
|
||||
const mockUpdate = vi.fn()
|
||||
const mockAdapter = { update: mockUpdate }
|
||||
|
||||
@@ -10,10 +10,10 @@ export { DB_KEYS } from './types'
|
||||
|
||||
// DBAL Client
|
||||
export type { DBALAdapter, ListOptions, ListResult } from './dbal-client'
|
||||
export { closeAdapter,getAdapter } from './dbal-client'
|
||||
export { closeAdapter, getAdapter } from './dbal-client'
|
||||
|
||||
// Operations
|
||||
export { Database,hashPassword, initializeDatabase, verifyPassword } from './operations'
|
||||
export { Database, hashPassword, initializeDatabase, verifyPassword } from './operations'
|
||||
|
||||
// Domain re-exports
|
||||
export * from './entities'
|
||||
|
||||
@@ -1,2 +1,2 @@
|
||||
export { closeAdapter,getAdapter } from '../core/dbal-client'
|
||||
export { closeAdapter, getAdapter } from '../core/dbal-client'
|
||||
export type { DBALAdapter, ListOptions, ListResult } from '../core/dbal-client/types'
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import { beforeEach,describe, expect, it, vi } from 'vitest'
|
||||
import { beforeEach, describe, expect, it, vi } from 'vitest'
|
||||
|
||||
const mockCreate = vi.fn()
|
||||
const mockAdapter = { create: mockCreate }
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import { beforeEach,describe, expect, it, vi } from 'vitest'
|
||||
import { beforeEach, describe, expect, it, vi } from 'vitest'
|
||||
|
||||
const mockList = vi.fn()
|
||||
const mockAdapter = { list: mockList }
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import { beforeEach,describe, expect, it, vi } from 'vitest'
|
||||
import { beforeEach, describe, expect, it, vi } from 'vitest'
|
||||
|
||||
const mockCreate = vi.fn()
|
||||
const mockAdapter = { create: mockCreate }
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import { beforeEach,describe, expect, it, vi } from 'vitest'
|
||||
import { beforeEach, describe, expect, it, vi } from 'vitest'
|
||||
|
||||
const mockDelete = vi.fn()
|
||||
const mockAdapter = { delete: mockDelete }
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import { beforeEach,describe, expect, it, vi } from 'vitest'
|
||||
import { beforeEach, describe, expect, it, vi } from 'vitest'
|
||||
|
||||
const mockUpdate = vi.fn()
|
||||
const mockAdapter = { update: mockUpdate }
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import { beforeEach,describe, expect, it, vi } from 'vitest'
|
||||
import { beforeEach, describe, expect, it, vi } from 'vitest'
|
||||
|
||||
const mockList = vi.fn()
|
||||
const mockAdapter = { list: mockList }
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import { beforeEach,describe, expect, it, vi } from 'vitest'
|
||||
import { beforeEach, describe, expect, it, vi } from 'vitest'
|
||||
|
||||
const mockList = vi.fn()
|
||||
const mockDelete = vi.fn()
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import { beforeEach,describe, expect, it, vi } from 'vitest'
|
||||
import { beforeEach, describe, expect, it, vi } from 'vitest'
|
||||
|
||||
const mockDelete = vi.fn()
|
||||
const mockAdapter = { delete: mockDelete }
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import { beforeEach,describe, expect, it, vi } from 'vitest'
|
||||
import { beforeEach, describe, expect, it, vi } from 'vitest'
|
||||
|
||||
const mockFindFirst = vi.fn()
|
||||
const mockAdapter = { findFirst: mockFindFirst }
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import { beforeEach,describe, expect, it, vi } from 'vitest'
|
||||
import { beforeEach, describe, expect, it, vi } from 'vitest'
|
||||
|
||||
const mockUpsert = vi.fn()
|
||||
const mockAdapter = { upsert: mockUpsert }
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import { beforeEach,describe, expect, it, vi } from 'vitest'
|
||||
import { beforeEach, describe, expect, it, vi } from 'vitest'
|
||||
|
||||
const mockUpdate = vi.fn()
|
||||
const mockAdapter = { update: mockUpdate }
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import { beforeEach,describe, expect, it, vi } from 'vitest'
|
||||
import { beforeEach, describe, expect, it, vi } from 'vitest'
|
||||
|
||||
const mockFindFirst = vi.fn()
|
||||
const mockCreate = vi.fn()
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import { beforeEach,describe, expect, it, vi } from 'vitest'
|
||||
import { beforeEach, describe, expect, it, vi } from 'vitest'
|
||||
|
||||
const mockDelete = vi.fn()
|
||||
const mockAdapter = { delete: mockDelete }
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import { beforeEach,describe, expect, it, vi } from 'vitest'
|
||||
import { beforeEach, describe, expect, it, vi } from 'vitest'
|
||||
|
||||
const mockList = vi.fn()
|
||||
const mockAdapter = { list: mockList }
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import { beforeEach,describe, expect, it, vi } from 'vitest'
|
||||
import { beforeEach, describe, expect, it, vi } from 'vitest'
|
||||
|
||||
const mockCreate = vi.fn()
|
||||
const mockAdapter = { create: mockCreate }
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import { beforeEach,describe, expect, it, vi } from 'vitest'
|
||||
import { beforeEach, describe, expect, it, vi } from 'vitest'
|
||||
|
||||
const mockDelete = vi.fn()
|
||||
const mockAdapter = { delete: mockDelete }
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import { beforeEach,describe, expect, it, vi } from 'vitest'
|
||||
import { beforeEach, describe, expect, it, vi } from 'vitest'
|
||||
|
||||
const mockList = vi.fn()
|
||||
const mockAdapter = { list: mockList }
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import { beforeEach,describe, expect, it, vi } from 'vitest'
|
||||
import { beforeEach, describe, expect, it, vi } from 'vitest'
|
||||
|
||||
const mockList = vi.fn()
|
||||
const mockDelete = vi.fn()
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import { beforeEach,describe, expect, it, vi } from 'vitest'
|
||||
import { beforeEach, describe, expect, it, vi } from 'vitest'
|
||||
|
||||
const mockUpdate = vi.fn()
|
||||
const mockAdapter = { update: mockUpdate }
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import { describe, expect,it } from 'vitest'
|
||||
import { describe, expect, it } from 'vitest'
|
||||
|
||||
import { hashPassword } from './hash-password'
|
||||
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import { describe, expect,it } from 'vitest'
|
||||
import { describe, expect, it } from 'vitest'
|
||||
|
||||
import { hashPassword } from './hash-password'
|
||||
import { verifyPassword } from './verify-password'
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import { beforeEach,describe, expect, it, vi } from 'vitest'
|
||||
import { beforeEach, describe, expect, it, vi } from 'vitest'
|
||||
|
||||
const mockCreate = vi.fn()
|
||||
const mockAdapter = { create: mockCreate }
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import { beforeEach,describe, expect, it, vi } from 'vitest'
|
||||
import { beforeEach, describe, expect, it, vi } from 'vitest'
|
||||
|
||||
const mockDelete = vi.fn()
|
||||
const mockAdapter = { delete: mockDelete }
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import { beforeEach,describe, expect, it, vi } from 'vitest'
|
||||
import { beforeEach, describe, expect, it, vi } from 'vitest'
|
||||
|
||||
const mockList = vi.fn()
|
||||
const mockAdapter = { list: mockList }
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import { beforeEach,describe, expect, it, vi } from 'vitest'
|
||||
import { beforeEach, describe, expect, it, vi } from 'vitest'
|
||||
|
||||
const mockList = vi.fn()
|
||||
const mockDelete = vi.fn()
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import { beforeEach,describe, expect, it, vi } from 'vitest'
|
||||
import { beforeEach, describe, expect, it, vi } from 'vitest'
|
||||
|
||||
const mockUpdate = vi.fn()
|
||||
const mockAdapter = { update: mockUpdate }
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import { afterEach,beforeEach, describe, expect, it, vi } from 'vitest'
|
||||
import { afterEach, beforeEach, describe, expect, it, vi } from 'vitest'
|
||||
|
||||
const mockCreate = vi.fn()
|
||||
const mockAdapter = { create: mockCreate }
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import { beforeEach,describe, expect, it, vi } from 'vitest'
|
||||
import { beforeEach, describe, expect, it, vi } from 'vitest'
|
||||
|
||||
const mockList = vi.fn()
|
||||
const mockDelete = vi.fn()
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import { beforeEach,describe, expect, it, vi } from 'vitest'
|
||||
import { beforeEach, describe, expect, it, vi } from 'vitest'
|
||||
|
||||
const mockDelete = vi.fn()
|
||||
const mockAdapter = { delete: mockDelete }
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import { beforeEach,describe, expect, it, vi } from 'vitest'
|
||||
import { beforeEach, describe, expect, it, vi } from 'vitest'
|
||||
|
||||
const mockUpdate = vi.fn()
|
||||
const mockAdapter = { update: mockUpdate }
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import { afterEach,beforeEach, describe, expect, it, vi } from 'vitest'
|
||||
import { afterEach, beforeEach, describe, expect, it, vi } from 'vitest'
|
||||
|
||||
const mockList = vi.fn()
|
||||
const mockDelete = vi.fn()
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import { afterEach,beforeEach, describe, expect, it, vi } from 'vitest'
|
||||
import { afterEach, beforeEach, describe, expect, it, vi } from 'vitest'
|
||||
|
||||
const mockList = vi.fn()
|
||||
const mockAdapter = { list: mockList }
|
||||
|
||||
@@ -4,5 +4,5 @@ export { deleteSessionByToken } from './crud/delete/delete-session-by-token'
|
||||
export { getSessionById } from './getters/get-session-by-id'
|
||||
export { getSessionByToken } from './getters/get-session-by-token'
|
||||
export { listSessions } from './getters/list-sessions'
|
||||
export type { CreateSessionInput, ListSessionsOptions,Session, UpdateSessionInput } from './types'
|
||||
export type { CreateSessionInput, ListSessionsOptions, Session, UpdateSessionInput } from './types'
|
||||
export { updateSession } from './update-session'
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import { beforeEach,describe, expect, it, vi } from 'vitest'
|
||||
import { beforeEach, describe, expect, it, vi } from 'vitest'
|
||||
|
||||
const mockCreate = vi.fn()
|
||||
const mockAdapter = { create: mockCreate }
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import { beforeEach,describe, expect, it, vi } from 'vitest'
|
||||
import { beforeEach, describe, expect, it, vi } from 'vitest'
|
||||
|
||||
const mockDelete = vi.fn()
|
||||
const mockAdapter = { delete: mockDelete }
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import { beforeEach,describe, expect, it, vi } from 'vitest'
|
||||
import { beforeEach, describe, expect, it, vi } from 'vitest'
|
||||
|
||||
const mockUpdate = vi.fn()
|
||||
const mockAdapter = { update: mockUpdate }
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import { beforeEach,describe, expect, it, vi } from 'vitest'
|
||||
import { beforeEach, describe, expect, it, vi } from 'vitest'
|
||||
|
||||
const mockRead = vi.fn()
|
||||
const mockFindFirst = vi.fn()
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import { beforeEach,describe, expect, it, vi } from 'vitest'
|
||||
import { beforeEach, describe, expect, it, vi } from 'vitest'
|
||||
|
||||
const mockList = vi.fn()
|
||||
const mockAdapter = { list: mockList }
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import { beforeEach,describe, expect, it, vi } from 'vitest'
|
||||
import { beforeEach, describe, expect, it, vi } from 'vitest'
|
||||
|
||||
const mockList = vi.fn()
|
||||
const mockDelete = vi.fn()
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import { beforeEach,describe, expect, it, vi } from 'vitest'
|
||||
import { beforeEach, describe, expect, it, vi } from 'vitest'
|
||||
|
||||
const mockList = vi.fn()
|
||||
const mockAdapter = { list: mockList }
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import { beforeEach,describe, expect, it, vi } from 'vitest'
|
||||
import { beforeEach, describe, expect, it, vi } from 'vitest'
|
||||
|
||||
// Mock the get-dbal module to prevent server-only imports
|
||||
vi.mock('@/lib/dbal/database-dbal/core/get-dbal.server', () => ({
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import { beforeEach,describe, expect, it, vi } from 'vitest'
|
||||
import { beforeEach, describe, expect, it, vi } from 'vitest'
|
||||
|
||||
const mockCreate = vi.fn()
|
||||
const mockAdapter = { create: mockCreate }
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import { beforeEach,describe, expect, it, vi } from 'vitest'
|
||||
import { beforeEach, describe, expect, it, vi } from 'vitest'
|
||||
|
||||
const mockDelete = vi.fn()
|
||||
const mockAdapter = { delete: mockDelete }
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import { beforeEach,describe, expect, it, vi } from 'vitest'
|
||||
import { beforeEach, describe, expect, it, vi } from 'vitest'
|
||||
|
||||
const mockList = vi.fn()
|
||||
const mockAdapter = { list: mockList }
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import { beforeEach,describe, expect, it, vi } from 'vitest'
|
||||
import { beforeEach, describe, expect, it, vi } from 'vitest'
|
||||
|
||||
const mockList = vi.fn()
|
||||
const mockDelete = vi.fn()
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import { beforeEach,describe, expect, it, vi } from 'vitest'
|
||||
import { beforeEach, describe, expect, it, vi } from 'vitest'
|
||||
|
||||
const mockUpdate = vi.fn()
|
||||
const mockAdapter = { update: mockUpdate }
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
// DBAL (Database Abstraction Layer) exports
|
||||
export { createDBALClient,DBALClient } from './dbal-client'
|
||||
export { dbal,DBALIntegration } from './dbal-integration'
|
||||
export { createDBALClient, DBALClient } from './dbal-client'
|
||||
export { dbal, DBALIntegration } from './dbal-integration'
|
||||
export { DBALClient as DBALRealClient } from '@/dbal'
|
||||
export type { DBALConfig } from '@/dbal/runtime/config'
|
||||
|
||||
@@ -2,7 +2,7 @@ import { parseWorkflowRuns, WorkflowRunLike } from './parser'
|
||||
import { formatWorkflowRunAnalysis, summarizeWorkflowRuns, WorkflowRunSummary } from './stats'
|
||||
|
||||
export type { WorkflowRunLike, WorkflowRunSummary }
|
||||
export { formatWorkflowRunAnalysis,parseWorkflowRuns, summarizeWorkflowRuns }
|
||||
export { formatWorkflowRunAnalysis, parseWorkflowRuns, summarizeWorkflowRuns }
|
||||
|
||||
export function analyzeWorkflowRuns(
|
||||
runs: unknown[],
|
||||
|
||||
@@ -44,5 +44,5 @@ export class LuaEngine {
|
||||
}
|
||||
|
||||
// Re-export individual functions for direct imports
|
||||
export { executeLuaCode,setupContextAPI } from '../../functions'
|
||||
export { executeLuaCode, setupContextAPI } from '../../functions'
|
||||
export { fromLua, pushToLua, tableToJS } from '../../functions/converters'
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
import { afterEach,beforeEach, describe, expect, it } from 'vitest'
|
||||
import { afterEach, beforeEach, describe, expect, it } from 'vitest'
|
||||
|
||||
import { createLuaEngine,LuaEngine } from '../lua-engine'
|
||||
import { createLuaEngine, LuaEngine } from '../lua-engine'
|
||||
|
||||
describe('lua-engine events', () => {
|
||||
let engine: LuaEngine
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import { afterEach,beforeEach, describe, expect, it } from 'vitest'
|
||||
import { afterEach, beforeEach, describe, expect, it } from 'vitest'
|
||||
|
||||
import { createLuaEngine, LuaEngine, type LuaExecutionContext } from '../lua-engine'
|
||||
|
||||
|
||||
@@ -2,7 +2,7 @@ import { getLuaExampleCode } from './get-lua-example-code'
|
||||
import { getLuaExamplesList } from './get-lua-examples-list'
|
||||
import { LUA_EXAMPLES, type LuaExampleKey } from './lua-examples-data'
|
||||
|
||||
export { getLuaExampleCode, getLuaExamplesList,LUA_EXAMPLES, type LuaExampleKey }
|
||||
export { getLuaExampleCode, getLuaExamplesList, LUA_EXAMPLES, type LuaExampleKey }
|
||||
|
||||
export const luaExamples = LUA_EXAMPLES
|
||||
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
import { executeLuaCode } from '../execution/execute-lua-code'
|
||||
import type { LuaEngineState,LuaExecutionContext, LuaExecutionResult } from '../types'
|
||||
import type { LuaEngineState, LuaExecutionContext, LuaExecutionResult } from '../types'
|
||||
|
||||
/**
|
||||
* Execute Lua code with a context
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import { describe, expect,it } from 'vitest'
|
||||
import { describe, expect, it } from 'vitest'
|
||||
|
||||
import { enforceMaxMemory } from './enforce-max-memory'
|
||||
import type { SandboxedLuaEngineState } from './types'
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
'use client'
|
||||
|
||||
// Component Registry - Maps Lua component types to React components
|
||||
import { Box, Button, Stack, TextField,Typography } from '@mui/material'
|
||||
import { Box, Button, Stack, TextField, Typography } from '@mui/material'
|
||||
import React from 'react'
|
||||
|
||||
import type { LuaUIComponent } from './types/lua-ui-package'
|
||||
|
||||
@@ -4,12 +4,7 @@ import * as fengari from 'fengari-web'
|
||||
import { createLuaEngine } from '@/lib/lua/engine/core/create-lua-engine'
|
||||
import { pushToLua } from '@/lib/lua/functions/converters/push-to-lua'
|
||||
import { fromLua } from '@/lib/lua/functions/converters/from-lua'
|
||||
import type {
|
||||
LuaUIManifest,
|
||||
LuaUIPackage,
|
||||
LuaUIPage,
|
||||
LuaUIComponent,
|
||||
} from './types/lua-ui-package'
|
||||
import type { LuaUIManifest, LuaUIPackage, LuaUIPage, LuaUIComponent } from './types/lua-ui-package'
|
||||
|
||||
const lua = fengari.lua
|
||||
const lauxlib = fengari.lauxlib
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import { describe, expect,it } from 'bun:test'
|
||||
import { describe, expect, it } from 'bun:test'
|
||||
|
||||
import { createLuaEngine } from '@/lib/lua/engine/core/create-lua-engine'
|
||||
import { executeLuaCode } from '@/lib/lua/functions/execution/execute-lua-code'
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import { afterEach,describe, expect, it } from 'vitest'
|
||||
import { afterEach, describe, expect, it } from 'vitest'
|
||||
|
||||
import {
|
||||
AUTH_TOKEN_HEADER,
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import { describe, expect,it } from 'vitest'
|
||||
import { describe, expect, it } from 'vitest'
|
||||
|
||||
import { appendExportPath } from './append-export-path'
|
||||
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import { describe, expect,it } from 'vitest'
|
||||
import { describe, expect, it } from 'vitest'
|
||||
|
||||
import { findFirstFile } from './find-first-file'
|
||||
import type { FileNode } from './types'
|
||||
|
||||
@@ -4,7 +4,7 @@ export { buildZipFromFileTree } from './builders/package/build-zip-from-file-tre
|
||||
export { appendExportPath } from './file-operations/export/append-export-path'
|
||||
export { findFirstFile } from './file-operations/export/find-first-file'
|
||||
export { collectFileEntries } from './file-operations/tree/collect-file-entries'
|
||||
export { FileTreeOperations,fileTreeOperations } from './file-operations/tree/file-tree-operations'
|
||||
export { FileTreeOperations, fileTreeOperations } from './file-operations/tree/file-tree-operations'
|
||||
export { getLanguageFromFilename } from './get-language-from-filename'
|
||||
export { createFileNode } from './nodes/create/create-file-node'
|
||||
export { createFolderNode } from './nodes/create/create-folder-node'
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
// Package system exports
|
||||
export { PACKAGE_CATALOG } from './package-catalog'
|
||||
export * from './package-export'
|
||||
export { getPackageGlue,packageGlue } from './package-glue'
|
||||
export { getPackageRegistry,initializePackageSystem } from './package-loader'
|
||||
export { getPackageGlue, packageGlue } from './package-glue'
|
||||
export { getPackageRegistry, initializePackageSystem } from './package-loader'
|
||||
export * from './package-types'
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import type { PackageContent,PackageManifest } from './types'
|
||||
import type { PackageContent, PackageManifest } from './types'
|
||||
|
||||
export function generateReadme(manifest: PackageManifest, content: PackageContent): string {
|
||||
return `# ${manifest.name}
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import type { PackageContent,PackageManifest } from '../package-types'
|
||||
import type { PackageContent, PackageManifest } from '../package-types'
|
||||
|
||||
export interface ExportPackageOptions {
|
||||
includeAssets?: boolean
|
||||
@@ -21,4 +21,4 @@ export interface AssetFile {
|
||||
type: AssetType
|
||||
}
|
||||
|
||||
export type { PackageContent,PackageManifest }
|
||||
export type { PackageContent, PackageManifest }
|
||||
|
||||
@@ -1,3 +1,3 @@
|
||||
import { type PackageGlue,packageGlue } from '../../package-glue'
|
||||
import { type PackageGlue, packageGlue } from '../../package-glue'
|
||||
|
||||
export const getPackageGlue = (): PackageGlue => packageGlue
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
export { loadPackageComponents } from './components/load-package-components'
|
||||
export { getDeclarativeRenderer } from './renderer/get-declarative-renderer'
|
||||
export { DeclarativeComponentRenderer } from './renderer/renderer-class'
|
||||
export type { DeclarativeComponentConfig, LuaScriptDefinition,MessageFormat } from './types'
|
||||
export type { DeclarativeComponentConfig, LuaScriptDefinition, MessageFormat } from './types'
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import { describe, expect,it } from 'vitest'
|
||||
import { describe, expect, it } from 'vitest'
|
||||
|
||||
import type { SchemaConfig } from '@/lib/schema-types'
|
||||
import { findModel, getModelKey, getRecordsKey } from '@/lib/schema-utils'
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import { beforeEach,describe, expect, it } from 'vitest'
|
||||
import { beforeEach, describe, expect, it } from 'vitest'
|
||||
|
||||
import type { FieldSchema, ModelSchema } from '@/lib/schema-types'
|
||||
import {
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import { describe, expect,it } from 'vitest'
|
||||
import { describe, expect, it } from 'vitest'
|
||||
|
||||
import type { FieldSchema, ModelSchema } from '@/lib/schema-types'
|
||||
import { validateField, validateRecord } from '@/lib/schema-utils'
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import { describe, expect,it } from 'vitest'
|
||||
import { describe, expect, it } from 'vitest'
|
||||
|
||||
import { ScreenshotAnalysisService } from './screenshot-analysis-service'
|
||||
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
*/
|
||||
|
||||
// Types
|
||||
export type { SecurityIssue, SecurityPattern,SecurityScanResult } from './types'
|
||||
export type { SecurityIssue, SecurityPattern, SecurityScanResult } from './types'
|
||||
|
||||
// Patterns
|
||||
export { JAVASCRIPT_PATTERNS } from './patterns/javascript-patterns'
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
* Scans HTML for security vulnerabilities like XSS
|
||||
*/
|
||||
|
||||
import type { SecurityIssue,SecurityScanResult } from '../../types'
|
||||
import type { SecurityIssue, SecurityScanResult } from '../../types'
|
||||
import { calculateOverallSeverity } from '../../utils/calculate-severity'
|
||||
|
||||
/**
|
||||
|
||||
@@ -5,7 +5,7 @@
|
||||
|
||||
import { JAVASCRIPT_PATTERNS } from '../../patterns/javascript-patterns'
|
||||
import { SQL_INJECTION_PATTERNS } from '../../patterns/sql-patterns'
|
||||
import type { SecurityIssue,SecurityScanResult } from '../../types'
|
||||
import type { SecurityIssue, SecurityScanResult } from '../../types'
|
||||
import { calculateOverallSeverity } from '../../utils/calculate-severity'
|
||||
import { getLineNumber } from '../../utils/get-line-number'
|
||||
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
* Scans JSON for security vulnerabilities like prototype pollution
|
||||
*/
|
||||
|
||||
import type { SecurityIssue,SecurityScanResult } from '../../types'
|
||||
import type { SecurityIssue, SecurityScanResult } from '../../types'
|
||||
import { calculateOverallSeverity } from '../../utils/calculate-severity'
|
||||
|
||||
/**
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
*/
|
||||
|
||||
import { LUA_PATTERNS } from '../../patterns/lua-patterns'
|
||||
import type { SecurityIssue,SecurityScanResult } from '../../types'
|
||||
import type { SecurityIssue, SecurityScanResult } from '../../types'
|
||||
import { calculateOverallSeverity } from '../../utils/calculate-severity'
|
||||
import { getLineNumber } from '../../utils/get-line-number'
|
||||
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// Security utilities exports
|
||||
export * from './secure-db'
|
||||
export type { SecurityIssue, SecurityPattern,SecurityScanResult } from './security-scanner'
|
||||
export { scanForVulnerabilities,SecurityScanner, securityScanner } from './security-scanner'
|
||||
export type { SecurityIssue, SecurityPattern, SecurityScanResult } from './security-scanner'
|
||||
export { scanForVulnerabilities, SecurityScanner, securityScanner } from './security-scanner'
|
||||
|
||||
@@ -10,7 +10,7 @@
|
||||
*/
|
||||
|
||||
// Types
|
||||
export type { SecurityIssue, SecurityPattern,SecurityScanResult } from './functions/types'
|
||||
export type { SecurityIssue, SecurityPattern, SecurityScanResult } from './functions/types'
|
||||
|
||||
// Import individual lambda functions
|
||||
import { getSeverityColor } from '../functions/helpers/get-severity-color'
|
||||
@@ -45,4 +45,4 @@ export const securityScanner = new SecurityScanner()
|
||||
export { getSeverityColor, getSeverityIcon }
|
||||
|
||||
// Re-export individual functions for direct use
|
||||
export { sanitizeInput,scanForVulnerabilities, scanHTML, scanJavaScript, scanJSON, scanLua }
|
||||
export { sanitizeInput, scanForVulnerabilities, scanHTML, scanJavaScript, scanJSON, scanLua }
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
import { addAuditLog } from './audit-log-store'
|
||||
import type { AuditLog,OperationType, ResourceType, SecurityContext } from './types'
|
||||
import type { AuditLog, OperationType, ResourceType, SecurityContext } from './types'
|
||||
|
||||
/**
|
||||
* Log an operation for audit trail
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
// Types
|
||||
export type { AccessRule,AuditLog, OperationType, ResourceType, SecurityContext } from './types'
|
||||
export type { AccessRule, AuditLog, OperationType, ResourceType, SecurityContext } from './types'
|
||||
|
||||
// Core functions
|
||||
export { logOperation } from './audit/log-operation'
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
import { afterEach, beforeEach, describe, expect, it, vi } from 'vitest'
|
||||
|
||||
import { getLoginLockoutInfo } from './get-login-lockout-info'
|
||||
import { DEFAULT_AUTH_LOCKOUT_MAX_ATTEMPTS,loginAttemptTracker } from './login-attempt-tracker'
|
||||
import { DEFAULT_AUTH_LOCKOUT_MAX_ATTEMPTS, loginAttemptTracker } from './login-attempt-tracker'
|
||||
|
||||
describe('getLoginLockoutInfo', () => {
|
||||
beforeEach(() => {
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
import { ACCESS_RULES } from './access-rules'
|
||||
import type { OperationType, ResourceType,SecurityContext } from './types'
|
||||
import type { OperationType, ResourceType, SecurityContext } from './types'
|
||||
|
||||
/**
|
||||
* Check if user has access to perform operation on resource
|
||||
|
||||
@@ -2,7 +2,7 @@ import { checkRateLimit } from '../rate-limiting/check-rate-limit'
|
||||
import { checkAccess } from './check-access'
|
||||
import { logOperation } from './log-operation'
|
||||
import { loadRateLimitConfig } from './rate-limit-store'
|
||||
import type { OperationType, ResourceType,SecurityContext } from './types'
|
||||
import type { OperationType, ResourceType, SecurityContext } from './types'
|
||||
|
||||
/**
|
||||
* Execute a secure database query with rate limiting, access control, and audit logging
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import { describe, expect,it } from 'vitest'
|
||||
import { describe, expect, it } from 'vitest'
|
||||
|
||||
import { getErrorMessage } from './get-error-message'
|
||||
import { hasProperty } from './has-property'
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import { describe, expect,it } from 'vitest'
|
||||
import { describe, expect, it } from 'vitest'
|
||||
|
||||
import { cn } from '@/lib/utils'
|
||||
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import { type ClassValue,clsx } from 'clsx'
|
||||
import { type ClassValue, clsx } from 'clsx'
|
||||
|
||||
/**
|
||||
* Utility function to merge class names
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
import { render, screen } from '@testing-library/react'
|
||||
import { describe, expect,it } from 'vitest'
|
||||
import { describe, expect, it } from 'vitest'
|
||||
|
||||
import { NotificationSummaryCard } from '@/components/misc/data/NotificationSummaryCard'
|
||||
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import { describe, expect,it } from 'vitest'
|
||||
import { describe, expect, it } from 'vitest'
|
||||
|
||||
import adminDialogMetadata from '../../../../packages/admin_dialog/seed/metadata.json'
|
||||
import dashboardMetadata from '../../../../packages/dashboard/seed/metadata.json'
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import { alpha,ThemeOptions } from '@mui/material/styles'
|
||||
import { alpha, ThemeOptions } from '@mui/material/styles'
|
||||
|
||||
import { colors } from './base/colors'
|
||||
import { fonts } from './base/fonts'
|
||||
|
||||
@@ -6,5 +6,5 @@ export { fonts } from './fonts'
|
||||
export { layout } from './layout'
|
||||
export { lightTheme } from './light-theme'
|
||||
export { typography } from './typography'
|
||||
export type { SxProps,Theme } from '@mui/material/styles'
|
||||
export { alpha,styled, useTheme } from '@mui/material/styles'
|
||||
export type { SxProps, Theme } from '@mui/material/styles'
|
||||
export { alpha, styled, useTheme } from '@mui/material/styles'
|
||||
|
||||
Reference in New Issue
Block a user