mirror of
https://github.com/kjanat/livedash-node.git
synced 2026-01-16 17:12:10 +01:00
feat: add repository pattern, service layer architecture, and scheduler management
- Implement repository pattern for data access layer - Add comprehensive service layer for business logic - Create scheduler management system with health monitoring - Add bounded buffer utility for memory management - Enhance security audit logging with retention policies
This commit is contained in:
@ -5,7 +5,7 @@ import { useEffect, useId, useState } from "react";
|
||||
interface DateRangePickerProps {
|
||||
minDate: string;
|
||||
maxDate: string;
|
||||
onDateRangeChange: (_startDate: string, _endDate: string) => void;
|
||||
onDateRangeChange: (startDate: string, endDate: string) => void;
|
||||
initialStartDate?: string;
|
||||
initialEndDate?: string;
|
||||
}
|
||||
|
||||
@ -32,7 +32,7 @@ function renderMessageBubble(
|
||||
rehypePlugins={[rehypeRaw]}
|
||||
components={{
|
||||
p: "span",
|
||||
a: ({ node: _node, ...props }) => (
|
||||
a: ({ node, ...props }) => (
|
||||
<a
|
||||
className="text-sky-600 hover:text-sky-800 underline"
|
||||
{...props}
|
||||
|
||||
@ -15,7 +15,7 @@ interface CSRFProtectedFormProps {
|
||||
children: ReactNode;
|
||||
action: string;
|
||||
method?: "POST" | "PUT" | "DELETE" | "PATCH";
|
||||
onSubmit?: (_formData: FormData) => Promise<void> | void;
|
||||
onSubmit?: (formData: FormData) => Promise<void> | void;
|
||||
className?: string;
|
||||
encType?: string;
|
||||
}
|
||||
|
||||
@ -21,7 +21,7 @@ import {
|
||||
import { Button } from "@/components/ui/button";
|
||||
|
||||
type Api = {
|
||||
fire: (_options?: ConfettiOptions) => void;
|
||||
fire: (options?: ConfettiOptions) => void;
|
||||
};
|
||||
|
||||
type Props = React.ComponentPropsWithRef<"canvas"> & {
|
||||
|
||||
@ -22,10 +22,10 @@ interface CSRFContextType {
|
||||
loading: boolean;
|
||||
error: string | null;
|
||||
refreshToken: () => Promise<void>;
|
||||
addTokenToFetch: (_options: RequestInit) => RequestInit;
|
||||
addTokenToFormData: (_formData: FormData) => FormData;
|
||||
addTokenToFetch: (options: RequestInit) => RequestInit;
|
||||
addTokenToFormData: (formData: FormData) => FormData;
|
||||
addTokenToObject: <T extends Record<string, unknown>>(
|
||||
_obj: T
|
||||
obj: T
|
||||
) => T & { csrfToken: string };
|
||||
}
|
||||
|
||||
|
||||
@ -29,7 +29,7 @@ interface SecurityAlert {
|
||||
|
||||
interface SecurityAlertsTableProps {
|
||||
alerts: SecurityAlert[];
|
||||
onAcknowledge: (_alertId: string) => void;
|
||||
onAcknowledge: (alertId: string) => void;
|
||||
}
|
||||
|
||||
export function SecurityAlertsTable({
|
||||
|
||||
Reference in New Issue
Block a user