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:
2025-12-29 22:49:05 +00:00
parent 3265d06737
commit 3f5f9d66cc
94 changed files with 102 additions and 107 deletions

View File

@@ -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 }

View File

@@ -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 }

View File

@@ -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 }

View File

@@ -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'

View File

@@ -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'

View File

@@ -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 }

View File

@@ -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 }

View File

@@ -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 }

View File

@@ -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 }

View File

@@ -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 }

View File

@@ -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 }

View File

@@ -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()

View File

@@ -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 }

View File

@@ -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 }

View File

@@ -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 }

View File

@@ -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 }

View File

@@ -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()

View File

@@ -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 }

View File

@@ -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 }

View File

@@ -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 }

View File

@@ -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 }

View File

@@ -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 }

View File

@@ -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()

View File

@@ -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 }

View File

@@ -1,4 +1,4 @@
import { describe, expect,it } from 'vitest'
import { describe, expect, it } from 'vitest'
import { hashPassword } from './hash-password'

View File

@@ -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'

View File

@@ -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 }

View File

@@ -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 }

View File

@@ -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 }

View File

@@ -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()

View File

@@ -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 }

View File

@@ -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 }

View File

@@ -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()

View File

@@ -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 }

View File

@@ -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 }

View File

@@ -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()

View File

@@ -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 }

View File

@@ -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'

View File

@@ -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 }

View File

@@ -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 }

View File

@@ -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 }

View File

@@ -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()

View File

@@ -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 }

View File

@@ -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()

View File

@@ -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 }

View File

@@ -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', () => ({

View File

@@ -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 }

View File

@@ -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 }

View File

@@ -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 }

View File

@@ -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()

View File

@@ -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 }

View File

@@ -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'

View File

@@ -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[],

View File

@@ -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'

View File

@@ -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

View File

@@ -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'

View File

@@ -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

View File

@@ -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

View File

@@ -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'

View File

@@ -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'

View File

@@ -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

View File

@@ -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'

View File

@@ -1,4 +1,4 @@
import { afterEach,describe, expect, it } from 'vitest'
import { afterEach, describe, expect, it } from 'vitest'
import {
AUTH_TOKEN_HEADER,

View File

@@ -1,4 +1,4 @@
import { describe, expect,it } from 'vitest'
import { describe, expect, it } from 'vitest'
import { appendExportPath } from './append-export-path'

View File

@@ -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'

View File

@@ -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'

View File

@@ -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'

View File

@@ -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}

View File

@@ -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 }

View File

@@ -1,3 +1,3 @@
import { type PackageGlue,packageGlue } from '../../package-glue'
import { type PackageGlue, packageGlue } from '../../package-glue'
export const getPackageGlue = (): PackageGlue => packageGlue

View File

@@ -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'

View File

@@ -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'

View File

@@ -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 {

View File

@@ -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'

View File

@@ -1,4 +1,4 @@
import { describe, expect,it } from 'vitest'
import { describe, expect, it } from 'vitest'
import { ScreenshotAnalysisService } from './screenshot-analysis-service'

View File

@@ -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'

View File

@@ -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'
/**

View File

@@ -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'

View File

@@ -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'
/**

View File

@@ -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'

View File

@@ -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'

View File

@@ -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 }

View File

@@ -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

View File

@@ -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'

View File

@@ -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(() => {

View File

@@ -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

View File

@@ -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

View File

@@ -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'

View File

@@ -1,4 +1,4 @@
import { describe, expect,it } from 'vitest'
import { describe, expect, it } from 'vitest'
import { cn } from '@/lib/utils'

View File

@@ -1,4 +1,4 @@
import { type ClassValue,clsx } from 'clsx'
import { type ClassValue, clsx } from 'clsx'
/**
* Utility function to merge class names

View File

@@ -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'

View File

@@ -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'

View File

@@ -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'

View File

@@ -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'