feat: images upload
This commit is contained in:
@@ -15,12 +15,7 @@ const menuItems = [
|
|||||||
href: "/account/citizenship",
|
href: "/account/citizenship",
|
||||||
label: "Citizenship",
|
label: "Citizenship",
|
||||||
icon: BookOpenTextIcon,
|
icon: BookOpenTextIcon,
|
||||||
},
|
}
|
||||||
{
|
|
||||||
href: "/account/signature",
|
|
||||||
label: "Signature",
|
|
||||||
icon: SignatureIcon,
|
|
||||||
},
|
|
||||||
];
|
];
|
||||||
|
|
||||||
export function AccountMenu() {
|
export function AccountMenu() {
|
||||||
|
|||||||
@@ -25,6 +25,7 @@ export function ApplicationsDialog({ applications }: { applications: Citizenship
|
|||||||
<DialogHeader>
|
<DialogHeader>
|
||||||
<DialogTitle asChild><h3>Citizenship applications</h3></DialogTitle>
|
<DialogTitle asChild><h3>Citizenship applications</h3></DialogTitle>
|
||||||
<DialogDescription>Here are your citizenship applications</DialogDescription>
|
<DialogDescription>Here are your citizenship applications</DialogDescription>
|
||||||
|
</DialogHeader>
|
||||||
<Accordion type="single" collapsible>
|
<Accordion type="single" collapsible>
|
||||||
{applications.map((application, i) => (
|
{applications.map((application, i) => (
|
||||||
<AccordionItem key={application.id} value={application.id}>
|
<AccordionItem key={application.id} value={application.id}>
|
||||||
@@ -55,7 +56,6 @@ export function ApplicationsDialog({ applications }: { applications: Citizenship
|
|||||||
</AccordionItem>
|
</AccordionItem>
|
||||||
))}
|
))}
|
||||||
</Accordion>
|
</Accordion>
|
||||||
</DialogHeader>
|
|
||||||
</DialogContent>
|
</DialogContent>
|
||||||
</Dialog>
|
</Dialog>
|
||||||
);
|
);
|
||||||
|
|||||||
@@ -1,11 +1,13 @@
|
|||||||
"use client";
|
"use client";
|
||||||
|
|
||||||
import { useActionState, useState } from "react";
|
import { useActionState, useEffect, useState } from "react";
|
||||||
|
import { toast } from "sonner";
|
||||||
import { Button } from "@/components/ui/button";
|
import { Button } from "@/components/ui/button";
|
||||||
import {
|
import {
|
||||||
Field,
|
Field,
|
||||||
FieldContent,
|
FieldContent,
|
||||||
FieldDescription,
|
FieldDescription,
|
||||||
|
FieldError,
|
||||||
FieldGroup,
|
FieldGroup,
|
||||||
FieldLabel,
|
FieldLabel,
|
||||||
FieldLegend,
|
FieldLegend,
|
||||||
@@ -21,27 +23,22 @@ import {
|
|||||||
SelectValue,
|
SelectValue,
|
||||||
} from "@/components/ui/select";
|
} from "@/components/ui/select";
|
||||||
import { RadioGroup, RadioGroupItem } from "@/components/ui/radio-group";
|
import { RadioGroup, RadioGroupItem } from "@/components/ui/radio-group";
|
||||||
import {
|
import { Alert, AlertDescription, AlertTitle } from "@/components/ui/alert";
|
||||||
Alert,
|
|
||||||
AlertDescription,
|
|
||||||
AlertTitle,
|
|
||||||
} from "@/components/ui/alert";
|
|
||||||
import { InfoIcon } from "lucide-react";
|
import { InfoIcon } from "lucide-react";
|
||||||
import { submitCitizenshipApplication, type ApplicationState } from "@/lib/citizenship/actions";
|
import { submitCitizenshipApplication } from "@/lib/citizenship/actions";
|
||||||
|
import { initialFormState } from "@/lib/form-action";
|
||||||
import { EYE_COLORS } from "@/lib/citizenship/types";
|
import { EYE_COLORS } from "@/lib/citizenship/types";
|
||||||
import Link from "next/link";
|
|
||||||
import { Spinner } from "@/components/ui/spinner";
|
import { Spinner } from "@/components/ui/spinner";
|
||||||
|
import { ImageUploadField } from "./image-upload-field";
|
||||||
|
|
||||||
type Props = {
|
type Props = {
|
||||||
firstName: string;
|
firstName: string;
|
||||||
secondName: string;
|
secondName: string;
|
||||||
sex: string;
|
sex: string;
|
||||||
birthDate: Date | null;
|
birthDate: Date;
|
||||||
regions: { id: string; name: string }[];
|
regions: { id: string; name: string }[];
|
||||||
};
|
};
|
||||||
|
|
||||||
const initialState: ApplicationState = { success: false, errors: [] };
|
|
||||||
|
|
||||||
function formatDate(d: Date | null): string {
|
function formatDate(d: Date | null): string {
|
||||||
if (!d) return "";
|
if (!d) return "";
|
||||||
return d.toISOString().split("T")[0];
|
return d.toISOString().split("T")[0];
|
||||||
@@ -51,9 +48,17 @@ type AppType = "PREVIOUS_CITIZENSHIP" | "NATURALIZATION";
|
|||||||
|
|
||||||
export function CitizenshipApplicationForm({ firstName, secondName, sex, birthDate, regions }: Props) {
|
export function CitizenshipApplicationForm({ firstName, secondName, sex, birthDate, regions }: Props) {
|
||||||
const [appType, setAppType] = useState<AppType | "">("");
|
const [appType, setAppType] = useState<AppType | "">("");
|
||||||
const [state, formAction, isPending] = useActionState(submitCitizenshipApplication, initialState);
|
const [state, formAction, isPending] = useActionState(submitCitizenshipApplication, initialFormState);
|
||||||
const [isEuResident, setIsEuResident] = useState<boolean | null>(null);
|
const [isEuResident, setIsEuResident] = useState<boolean | null>(null);
|
||||||
|
|
||||||
|
useEffect(() => {
|
||||||
|
if (state.error) {
|
||||||
|
toast.error(state.error);
|
||||||
|
}
|
||||||
|
}, [state.error]);
|
||||||
|
|
||||||
|
const errors = state.fieldErrors ?? {};
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<form action={formAction}>
|
<form action={formAction}>
|
||||||
<FieldGroup>
|
<FieldGroup>
|
||||||
@@ -70,65 +75,42 @@ export function CitizenshipApplicationForm({ firstName, secondName, sex, birthDa
|
|||||||
<FieldGroup>
|
<FieldGroup>
|
||||||
<Field>
|
<Field>
|
||||||
<FieldLabel htmlFor="surname">Surname</FieldLabel>
|
<FieldLabel htmlFor="surname">Surname</FieldLabel>
|
||||||
<Input
|
<Input id="surname" value={secondName} readOnly className="bg-muted text-muted-foreground" />
|
||||||
id="surname"
|
|
||||||
value={secondName}
|
|
||||||
readOnly
|
|
||||||
className="bg-muted text-muted-foreground"
|
|
||||||
/>
|
|
||||||
</Field>
|
</Field>
|
||||||
<Field>
|
<Field>
|
||||||
<FieldLabel htmlFor="givenNames">Given names</FieldLabel>
|
<FieldLabel htmlFor="givenNames">Given names</FieldLabel>
|
||||||
<Input
|
<Input id="givenNames" value={firstName} readOnly className="bg-muted text-muted-foreground" />
|
||||||
id="givenNames"
|
|
||||||
value={firstName}
|
|
||||||
readOnly
|
|
||||||
className="bg-muted text-muted-foreground"
|
|
||||||
/>
|
|
||||||
</Field>
|
</Field>
|
||||||
<div className="grid grid-cols-2 gap-4">
|
<div className="grid grid-cols-2 gap-4">
|
||||||
<Field>
|
<Field>
|
||||||
<FieldLabel htmlFor="sex">Sex</FieldLabel>
|
<FieldLabel htmlFor="sex">Sex</FieldLabel>
|
||||||
<Input
|
<Input id="sex" value={sex === "MALE" ? "Male" : "Female"} readOnly className="bg-muted text-muted-foreground" />
|
||||||
id="sex"
|
|
||||||
value={sex === "MALE" ? "Male" : "Female"}
|
|
||||||
readOnly
|
|
||||||
className="bg-muted text-muted-foreground"
|
|
||||||
/>
|
|
||||||
</Field>
|
</Field>
|
||||||
<Field>
|
<Field>
|
||||||
<FieldLabel htmlFor="birthDate">Date of birth</FieldLabel>
|
<FieldLabel htmlFor="birthDate">Date of birth</FieldLabel>
|
||||||
<Input
|
<Input id="birthDate" value={formatDate(birthDate)} readOnly className="bg-muted text-muted-foreground" />
|
||||||
id="birthDate"
|
|
||||||
value={formatDate(birthDate)}
|
|
||||||
readOnly
|
|
||||||
className="bg-muted text-muted-foreground"
|
|
||||||
/>
|
|
||||||
</Field>
|
</Field>
|
||||||
</div>
|
</div>
|
||||||
</FieldGroup>
|
</FieldGroup>
|
||||||
</FieldSet>
|
</FieldSet>
|
||||||
|
|
||||||
<FieldSet>
|
<FieldSet>
|
||||||
<FieldLegend>Eligibility basis</FieldLegend>
|
<FieldLegend>Eligibility basis</FieldLegend>
|
||||||
<FieldDescription>
|
<FieldDescription>Select the basis on which you are applying for citizenship.</FieldDescription>
|
||||||
Select the basis on which you are applying for citizenship.
|
|
||||||
</FieldDescription>
|
|
||||||
<RadioGroup
|
<RadioGroup
|
||||||
name="applicationType"
|
name="applicationType"
|
||||||
value={appType}
|
value={appType}
|
||||||
onValueChange={(v) => setAppType(v as AppType)}
|
onValueChange={(v) => setAppType(v as AppType)}
|
||||||
|
aria-invalid={!!errors.applicationType?.length}
|
||||||
required
|
required
|
||||||
>
|
>
|
||||||
<FieldLabel htmlFor="prev-citizen">
|
<FieldLabel htmlFor="prev-citizen">
|
||||||
<Field orientation="horizontal">
|
<Field orientation="horizontal">
|
||||||
<RadioGroupItem value="PREVIOUS_CITIZENSHIP" id="prev-citizen" />
|
<RadioGroupItem value="PREVIOUS_CITIZENSHIP" id="prev-citizen" />
|
||||||
<FieldContent>
|
<FieldContent>
|
||||||
<span className="text-sm font-medium">
|
<span className="text-sm font-medium">Previous citizenship holder</span>
|
||||||
Previous citizenship holder
|
|
||||||
</span>
|
|
||||||
<FieldDescription>
|
<FieldDescription>
|
||||||
I held citizenship of the Duspean Republic or the Country of
|
I held citizenship of the Duspean Republic or the Country of Reality on 31 March 2026.
|
||||||
Reality on 31 March 2026.
|
|
||||||
</FieldDescription>
|
</FieldDescription>
|
||||||
</FieldContent>
|
</FieldContent>
|
||||||
</Field>
|
</Field>
|
||||||
@@ -138,22 +120,22 @@ export function CitizenshipApplicationForm({ firstName, secondName, sex, birthDa
|
|||||||
<RadioGroupItem value="NATURALIZATION" id="naturalization" />
|
<RadioGroupItem value="NATURALIZATION" id="naturalization" />
|
||||||
<FieldContent>
|
<FieldContent>
|
||||||
<span className="text-sm font-medium">Naturalisation</span>
|
<span className="text-sm font-medium">Naturalisation</span>
|
||||||
<FieldDescription>
|
<FieldDescription>I am a foreign national seeking naturalisation.</FieldDescription>
|
||||||
I am a foreign national seeking naturalisation.
|
|
||||||
</FieldDescription>
|
|
||||||
</FieldContent>
|
</FieldContent>
|
||||||
</Field>
|
</Field>
|
||||||
</FieldLabel>
|
</FieldLabel>
|
||||||
</RadioGroup>
|
</RadioGroup>
|
||||||
|
{errors.applicationType && <FieldError>{errors.applicationType[0]}</FieldError>}
|
||||||
</FieldSet>
|
</FieldSet>
|
||||||
|
|
||||||
{appType === "PREVIOUS_CITIZENSHIP" && (
|
{appType === "PREVIOUS_CITIZENSHIP" && (
|
||||||
<FieldSet>
|
<FieldSet>
|
||||||
<FieldLegend>Previous citizenship details</FieldLegend>
|
<FieldLegend>Previous citizenship details</FieldLegend>
|
||||||
<FieldGroup>
|
<FieldGroup>
|
||||||
<Field>
|
<Field data-invalid={!!errors.previousCountry?.length}>
|
||||||
<FieldLabel htmlFor="previousCountry">Country</FieldLabel>
|
<FieldLabel htmlFor="previousCountry">Country</FieldLabel>
|
||||||
<Select name="previousCountry" defaultValue="">
|
<Select name="previousCountry" defaultValue="">
|
||||||
<SelectTrigger id="previousCountry">
|
<SelectTrigger id="previousCountry" aria-invalid={!!errors.previousCountry?.length}>
|
||||||
<SelectValue placeholder="Select country" />
|
<SelectValue placeholder="Select country" />
|
||||||
</SelectTrigger>
|
</SelectTrigger>
|
||||||
<SelectContent>
|
<SelectContent>
|
||||||
@@ -161,27 +143,29 @@ export function CitizenshipApplicationForm({ firstName, secondName, sex, birthDa
|
|||||||
<SelectItem value="REA">Country of Reality</SelectItem>
|
<SelectItem value="REA">Country of Reality</SelectItem>
|
||||||
</SelectContent>
|
</SelectContent>
|
||||||
</Select>
|
</Select>
|
||||||
|
{errors.previousCountry && <FieldError>{errors.previousCountry[0]}</FieldError>}
|
||||||
</Field>
|
</Field>
|
||||||
<Field>
|
<Field data-invalid={!!errors.previousRegion?.length}>
|
||||||
<FieldLabel htmlFor="previousRegion">Region of issuance</FieldLabel>
|
<FieldLabel htmlFor="previousRegion">Region of issuance</FieldLabel>
|
||||||
<Input
|
<Input
|
||||||
id="previousRegion"
|
id="previousRegion"
|
||||||
name="previousRegion"
|
name="previousRegion"
|
||||||
placeholder="State, region, or territory"
|
placeholder="State, region, or territory"
|
||||||
|
aria-invalid={!!errors.previousRegion?.length}
|
||||||
required
|
required
|
||||||
/>
|
/>
|
||||||
<FieldDescription>
|
<FieldDescription>The region or authority that issued your previous citizenship.</FieldDescription>
|
||||||
The region or authority that issued your previous citizenship.
|
{errors.previousRegion && <FieldError>{errors.previousRegion[0]}</FieldError>}
|
||||||
</FieldDescription>
|
|
||||||
</Field>
|
</Field>
|
||||||
</FieldGroup>
|
</FieldGroup>
|
||||||
</FieldSet>
|
</FieldSet>
|
||||||
)}
|
)}
|
||||||
|
|
||||||
{appType === "NATURALIZATION" && (
|
{appType === "NATURALIZATION" && (
|
||||||
<FieldSet>
|
<FieldSet>
|
||||||
<FieldLegend>Naturalisation statement</FieldLegend>
|
<FieldLegend>Naturalisation statement</FieldLegend>
|
||||||
<FieldGroup>
|
<FieldGroup>
|
||||||
<Field>
|
<Field data-invalid={!!errors.naturalizationReason?.length}>
|
||||||
<FieldLabel htmlFor="naturalizationReason">
|
<FieldLabel htmlFor="naturalizationReason">
|
||||||
Why do you wish to become a citizen of the European Federation?
|
Why do you wish to become a citizen of the European Federation?
|
||||||
</FieldLabel>
|
</FieldLabel>
|
||||||
@@ -190,24 +174,22 @@ export function CitizenshipApplicationForm({ firstName, secondName, sex, birthDa
|
|||||||
name="naturalizationReason"
|
name="naturalizationReason"
|
||||||
placeholder="Explain your motivation for seeking citizenship..."
|
placeholder="Explain your motivation for seeking citizenship..."
|
||||||
rows={4}
|
rows={4}
|
||||||
|
aria-invalid={!!errors.naturalizationReason?.length}
|
||||||
required
|
required
|
||||||
/>
|
/>
|
||||||
|
{errors.naturalizationReason && <FieldError>{errors.naturalizationReason[0]}</FieldError>}
|
||||||
</Field>
|
</Field>
|
||||||
</FieldGroup>
|
</FieldGroup>
|
||||||
</FieldSet>
|
</FieldSet>
|
||||||
)}
|
)}
|
||||||
|
|
||||||
<FieldSet>
|
<FieldSet>
|
||||||
<FieldLegend>Place of residence</FieldLegend>
|
<FieldLegend>Place of residence</FieldLegend>
|
||||||
<FieldDescription>
|
<FieldDescription>This will appear on your identity document.</FieldDescription>
|
||||||
This will appear on your identity document.
|
|
||||||
</FieldDescription>
|
|
||||||
<FieldGroup>
|
<FieldGroup>
|
||||||
<Field>
|
<Field>
|
||||||
<FieldLabel>Is your residence in the European Federation?</FieldLabel>
|
<FieldLabel>Is your residence in the European Federation?</FieldLabel>
|
||||||
<RadioGroup
|
<RadioGroup name="isEuResident" onValueChange={(v) => setIsEuResident(v === "yes")}>
|
||||||
name="isEuResident"
|
|
||||||
onValueChange={(v) => setIsEuResident(v === "yes")}
|
|
||||||
>
|
|
||||||
<Field orientation="horizontal">
|
<Field orientation="horizontal">
|
||||||
<RadioGroupItem value="yes" id="eu-yes" />
|
<RadioGroupItem value="yes" id="eu-yes" />
|
||||||
<FieldLabel htmlFor="eu-yes">Yes</FieldLabel>
|
<FieldLabel htmlFor="eu-yes">Yes</FieldLabel>
|
||||||
@@ -221,56 +203,56 @@ export function CitizenshipApplicationForm({ firstName, secondName, sex, birthDa
|
|||||||
|
|
||||||
{isEuResident === true && (
|
{isEuResident === true && (
|
||||||
<>
|
<>
|
||||||
<Field>
|
<Field data-invalid={!!errors.regionId?.length}>
|
||||||
<FieldLabel htmlFor="regionId">Region</FieldLabel>
|
<FieldLabel htmlFor="regionId">Region</FieldLabel>
|
||||||
<Select name="regionId" required>
|
<Select name="regionId" required>
|
||||||
<SelectTrigger id="regionId">
|
<SelectTrigger id="regionId" aria-invalid={!!errors.regionId?.length}>
|
||||||
<SelectValue placeholder="Select region" />
|
<SelectValue placeholder="Select region" />
|
||||||
</SelectTrigger>
|
</SelectTrigger>
|
||||||
<SelectContent>
|
<SelectContent>
|
||||||
{regions.map((r) => (
|
{regions.map((r) => (
|
||||||
<SelectItem key={r.id} value={r.id}>
|
<SelectItem key={r.id} value={r.id}>{r.name}</SelectItem>
|
||||||
{r.name}
|
|
||||||
</SelectItem>
|
|
||||||
))}
|
))}
|
||||||
</SelectContent>
|
</SelectContent>
|
||||||
</Select>
|
</Select>
|
||||||
|
{errors.regionId && <FieldError>{errors.regionId[0]}</FieldError>}
|
||||||
</Field>
|
</Field>
|
||||||
<Field>
|
<Field data-invalid={!!errors.city?.length}>
|
||||||
<FieldLabel htmlFor="city">City</FieldLabel>
|
<FieldLabel htmlFor="city">City</FieldLabel>
|
||||||
<Input id="city" name="city" placeholder="City or town" required />
|
<Input id="city" name="city" placeholder="City or town" aria-invalid={!!errors.city?.length} required />
|
||||||
|
{errors.city && <FieldError>{errors.city[0]}</FieldError>}
|
||||||
</Field>
|
</Field>
|
||||||
<Field>
|
<Field data-invalid={!!errors.street?.length}>
|
||||||
<FieldLabel htmlFor="street">Street and house number</FieldLabel>
|
<FieldLabel htmlFor="street">Street and house number</FieldLabel>
|
||||||
<Input id="street" name="street" placeholder="12 Via di Roma" required />
|
<Input id="street" name="street" placeholder="12 Via di Roma" aria-invalid={!!errors.street?.length} required />
|
||||||
|
{errors.street && <FieldError>{errors.street[0]}</FieldError>}
|
||||||
</Field>
|
</Field>
|
||||||
</>
|
</>
|
||||||
)}
|
)}
|
||||||
|
|
||||||
{isEuResident === false && (
|
{isEuResident === false && (
|
||||||
<Field>
|
<Field data-invalid={!!errors.customAddress?.length}>
|
||||||
<FieldLabel htmlFor="customAddress">Full address</FieldLabel>
|
<FieldLabel htmlFor="customAddress">Full address</FieldLabel>
|
||||||
<Input
|
<Input
|
||||||
id="customAddress"
|
id="customAddress"
|
||||||
name="customAddress"
|
name="customAddress"
|
||||||
placeholder="Street, City, Country"
|
placeholder="Street, City, Country"
|
||||||
|
aria-invalid={!!errors.customAddress?.length}
|
||||||
required
|
required
|
||||||
/>
|
/>
|
||||||
<FieldDescription>
|
<FieldDescription>Enter your full address as it should appear on the document.</FieldDescription>
|
||||||
Enter your full address as it should appear on the document.
|
{errors.customAddress && <FieldError>{errors.customAddress[0]}</FieldError>}
|
||||||
</FieldDescription>
|
|
||||||
</Field>
|
</Field>
|
||||||
)}
|
)}
|
||||||
</FieldGroup>
|
</FieldGroup>
|
||||||
</FieldSet>
|
</FieldSet>
|
||||||
|
|
||||||
<FieldSet>
|
<FieldSet>
|
||||||
<FieldLegend>Additional information</FieldLegend>
|
<FieldLegend>Additional information</FieldLegend>
|
||||||
<FieldDescription>
|
<FieldDescription>Provide details required for your identity document.</FieldDescription>
|
||||||
Provide details required for your identity document.
|
|
||||||
</FieldDescription>
|
|
||||||
<FieldGroup>
|
<FieldGroup>
|
||||||
<div className="grid grid-cols-2 gap-4">
|
<div className="grid grid-cols-2 gap-4">
|
||||||
<Field>
|
<Field data-invalid={!!errors.height?.length}>
|
||||||
<FieldLabel htmlFor="height">Height (in cm)</FieldLabel>
|
<FieldLabel htmlFor="height">Height (in cm)</FieldLabel>
|
||||||
<Input
|
<Input
|
||||||
id="height"
|
id="height"
|
||||||
@@ -278,36 +260,50 @@ export function CitizenshipApplicationForm({ firstName, secondName, sex, birthDa
|
|||||||
name="height"
|
name="height"
|
||||||
min={60}
|
min={60}
|
||||||
max={240}
|
max={240}
|
||||||
|
aria-invalid={!!errors.height?.length}
|
||||||
required
|
required
|
||||||
/>
|
/>
|
||||||
|
{errors.height && <FieldError>{errors.height[0]}</FieldError>}
|
||||||
</Field>
|
</Field>
|
||||||
<Field>
|
<Field data-invalid={!!errors.eyeColor?.length}>
|
||||||
<FieldLabel htmlFor="eyeColor">Eye colour</FieldLabel>
|
<FieldLabel htmlFor="eyeColor">Eye colour</FieldLabel>
|
||||||
<Select name="eyeColor" defaultValue="">
|
<Select name="eyeColor" defaultValue="">
|
||||||
<SelectTrigger id="eyeColor">
|
<SelectTrigger id="eyeColor" aria-invalid={!!errors.eyeColor?.length}>
|
||||||
<SelectValue placeholder="Select eye colour" />
|
<SelectValue placeholder="Select eye colour" />
|
||||||
</SelectTrigger>
|
</SelectTrigger>
|
||||||
<SelectContent>
|
<SelectContent>
|
||||||
{EYE_COLORS.map((color) => (
|
{EYE_COLORS.map((color) => (
|
||||||
<SelectItem key={color} value={color}>
|
<SelectItem key={color} value={color}>{color}</SelectItem>
|
||||||
{color}
|
|
||||||
</SelectItem>
|
|
||||||
))}
|
))}
|
||||||
</SelectContent>
|
</SelectContent>
|
||||||
</Select>
|
</Select>
|
||||||
|
{errors.eyeColor && <FieldError>{errors.eyeColor[0]}</FieldError>}
|
||||||
</Field>
|
</Field>
|
||||||
</div>
|
</div>
|
||||||
</FieldGroup>
|
</FieldGroup>
|
||||||
</FieldSet>
|
</FieldSet>
|
||||||
{state.errors.length > 0 && (
|
|
||||||
<Alert className="bg-red-50 p-3 text-red-900">
|
<FieldSet>
|
||||||
<ul className="list-disc pl-4">
|
<FieldLegend>Images</FieldLegend>
|
||||||
{state.errors.map((err, i) => (
|
<FieldDescription>Provide your profile image and your signature for your identity document.</FieldDescription>
|
||||||
<li key={i}>{err}</li>
|
<FieldGroup>
|
||||||
))}
|
<ImageUploadField
|
||||||
</ul>
|
id="profile"
|
||||||
</Alert>
|
name="profile"
|
||||||
)}
|
label="Profile"
|
||||||
|
description="Select a profile image to upload. The image should be taken on a neutral background."
|
||||||
|
error={errors.profile?.[0]}
|
||||||
|
/>
|
||||||
|
<ImageUploadField
|
||||||
|
id="signature"
|
||||||
|
name="signature"
|
||||||
|
label="Signature"
|
||||||
|
description="Select a signature to upload."
|
||||||
|
error={errors.signature?.[0]}
|
||||||
|
/>
|
||||||
|
</FieldGroup>
|
||||||
|
</FieldSet>
|
||||||
|
|
||||||
<Field orientation="horizontal">
|
<Field orientation="horizontal">
|
||||||
<Button type="submit" disabled={isPending}>{isPending && <Spinner />}Submit application</Button>
|
<Button type="submit" disabled={isPending}>{isPending && <Spinner />}Submit application</Button>
|
||||||
</Field>
|
</Field>
|
||||||
|
|||||||
@@ -0,0 +1,80 @@
|
|||||||
|
"use client";
|
||||||
|
|
||||||
|
import { useState } from "react";
|
||||||
|
import { Field, FieldDescription, FieldError, FieldLabel } from "@/components/ui/field";
|
||||||
|
import { Input } from "@/components/ui/input";
|
||||||
|
import { cn } from "@/lib/utils";
|
||||||
|
|
||||||
|
type Props = {
|
||||||
|
id: string;
|
||||||
|
name: string;
|
||||||
|
label: string;
|
||||||
|
description: string;
|
||||||
|
error?: string;
|
||||||
|
};
|
||||||
|
|
||||||
|
export function ImageUploadField({ id, name, label, description, error }: Props) {
|
||||||
|
const [previewUrl, setPreviewUrl] = useState<string | null>(null);
|
||||||
|
const [clientError, setClientError] = useState<string | null>(null);
|
||||||
|
|
||||||
|
const MAX_SIZE = 5 * 1024 * 1024;
|
||||||
|
const ACCEPTED_TYPES = ["image/jpeg", "image/png", "image/webp"];
|
||||||
|
|
||||||
|
function handleChange(e: React.ChangeEvent<HTMLInputElement>) {
|
||||||
|
const file = e.target.files?.[0];
|
||||||
|
if (previewUrl) URL.revokeObjectURL(previewUrl);
|
||||||
|
|
||||||
|
if (!file) {
|
||||||
|
setPreviewUrl(null);
|
||||||
|
setClientError(null);
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
if (!ACCEPTED_TYPES.includes(file.type)) {
|
||||||
|
setClientError("Only JPEG, PNG, or WEBP images are allowed.");
|
||||||
|
setPreviewUrl(null);
|
||||||
|
e.target.value = "";
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
if (file.size > MAX_SIZE) {
|
||||||
|
setClientError("Image must be smaller than 5MB.");
|
||||||
|
setPreviewUrl(null);
|
||||||
|
e.target.value = "";
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
setClientError(null);
|
||||||
|
setPreviewUrl(URL.createObjectURL(file));
|
||||||
|
}
|
||||||
|
|
||||||
|
const displayedError = clientError ?? error;
|
||||||
|
|
||||||
|
return (
|
||||||
|
<Field data-invalid={!!displayedError}>
|
||||||
|
<FieldLabel htmlFor={id}>{label}</FieldLabel>
|
||||||
|
<div className="flex items-center gap-4">
|
||||||
|
{previewUrl && (
|
||||||
|
<img
|
||||||
|
src={previewUrl}
|
||||||
|
alt=""
|
||||||
|
className={cn(
|
||||||
|
"w-16 h-16 rounded-md object-cover ring-1 ring-foreground/10 shrink-0"
|
||||||
|
)}
|
||||||
|
/>
|
||||||
|
)}
|
||||||
|
<Input
|
||||||
|
id={id}
|
||||||
|
name={name}
|
||||||
|
type="file"
|
||||||
|
accept="image/jpeg,image/png,image/webp"
|
||||||
|
aria-invalid={!!displayedError}
|
||||||
|
onChange={handleChange}
|
||||||
|
required
|
||||||
|
/>
|
||||||
|
</div>
|
||||||
|
<FieldDescription>{description}</FieldDescription>
|
||||||
|
{displayedError && <FieldError>{displayedError}</FieldError>}
|
||||||
|
</Field>
|
||||||
|
);
|
||||||
|
}
|
||||||
@@ -4,17 +4,16 @@ import { getCurrentUser } from "@/lib/user";
|
|||||||
import { redirect } from "next/navigation";
|
import { redirect } from "next/navigation";
|
||||||
import { AccountMenu } from "../../account-menu";
|
import { AccountMenu } from "../../account-menu";
|
||||||
import { CitizenshipApplicationForm } from "./form";
|
import { CitizenshipApplicationForm } from "./form";
|
||||||
import { getUserApplications } from "@/lib/citizenship/repository";
|
import { getApplicationEligibility } from "@/lib/citizenship/repository";
|
||||||
import { prisma } from "@/lib/prisma";
|
import { prisma } from "@/lib/prisma";
|
||||||
|
import { Alert, AlertDescription, AlertTitle } from "@/components/ui/alert";
|
||||||
|
import { InfoIcon } from "lucide-react";
|
||||||
|
|
||||||
export default async function CitizenshipApplication() {
|
export default async function CitizenshipApplication() {
|
||||||
const user = await getCurrentUser();
|
const user = await getCurrentUser();
|
||||||
if (!user) redirect("/");
|
if (!user) redirect("/");
|
||||||
|
|
||||||
const applications = await getUserApplications(user.id);
|
const eligibility = await getApplicationEligibility(user.id, user.birthDate);
|
||||||
const canApply = applications.length === 0 || applications.every((a) => a.status === "REJECTED");
|
|
||||||
if (!canApply) redirect("/account/citizenship");
|
|
||||||
|
|
||||||
const regions = await prisma.region.findMany({ orderBy: { name: "asc" } });
|
const regions = await prisma.region.findMany({ orderBy: { name: "asc" } });
|
||||||
|
|
||||||
return (
|
return (
|
||||||
@@ -26,13 +25,21 @@ export default async function CitizenshipApplication() {
|
|||||||
<div className="flex flex-col gap-6">
|
<div className="flex flex-col gap-6">
|
||||||
<h2>Citizenship application</h2>
|
<h2>Citizenship application</h2>
|
||||||
<div className="w-96 flex flex-col gap-6">
|
<div className="w-96 flex flex-col gap-6">
|
||||||
|
{!eligibility.eligible ? (
|
||||||
|
<Alert variant="warning">
|
||||||
|
<InfoIcon />
|
||||||
|
<AlertTitle>Cannot submit application</AlertTitle>
|
||||||
|
<AlertDescription>{eligibility.reason}</AlertDescription>
|
||||||
|
</Alert>
|
||||||
|
) : (
|
||||||
<CitizenshipApplicationForm
|
<CitizenshipApplicationForm
|
||||||
firstName={user.firstName}
|
firstName={user.firstName}
|
||||||
secondName={user.secondName}
|
secondName={user.secondName}
|
||||||
sex={user.sex}
|
sex={user.sex}
|
||||||
birthDate={user.birthDate}
|
birthDate={user.birthDate!}
|
||||||
regions={regions}
|
regions={regions}
|
||||||
/>
|
/>
|
||||||
|
)}
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@@ -0,0 +1,44 @@
|
|||||||
|
import { Alert, AlertDescription, AlertTitle } from "@/components/ui/alert";
|
||||||
|
import IdentityCard from "@/components/identity-card";
|
||||||
|
import { getIdentityCardData } from "@/lib/id/repository";
|
||||||
|
import { TriangleAlertIcon } from "lucide-react";
|
||||||
|
import { RenunciationDialog } from "./renunciation-dialog";
|
||||||
|
import { getActiveCitizenship } from "@/lib/citizenship/repository";
|
||||||
|
|
||||||
|
export async function HasCitizenship({ userId }: { userId: string }) {
|
||||||
|
const identityDocument = await getIdentityCardData(userId);
|
||||||
|
const citizenship = await getActiveCitizenship(userId);
|
||||||
|
|
||||||
|
if (!identityDocument) {
|
||||||
|
return (
|
||||||
|
<Alert variant="warning">
|
||||||
|
<TriangleAlertIcon />
|
||||||
|
<AlertTitle>Identity document unavailable</AlertTitle>
|
||||||
|
<AlertDescription>
|
||||||
|
Your citizenship record exists, but no identity document was found. Contact the competent authority.
|
||||||
|
</AlertDescription>
|
||||||
|
</Alert>
|
||||||
|
);
|
||||||
|
}
|
||||||
|
|
||||||
|
if (!citizenship) {
|
||||||
|
return (
|
||||||
|
<Alert variant="warning">
|
||||||
|
<TriangleAlertIcon />
|
||||||
|
<AlertTitle>Citizenship record unavailable</AlertTitle>
|
||||||
|
<AlertDescription>
|
||||||
|
We couldn't verify your active citizenship record. Contact the competent authority.
|
||||||
|
</AlertDescription>
|
||||||
|
</Alert>
|
||||||
|
);
|
||||||
|
}
|
||||||
|
|
||||||
|
return (
|
||||||
|
<div className="flex flex-col gap-8">
|
||||||
|
<IdentityCard data={identityDocument} />
|
||||||
|
<div className="flex flex-col gap-2">
|
||||||
|
<RenunciationDialog citizenship={citizenship} />
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
);
|
||||||
|
}
|
||||||
@@ -0,0 +1,90 @@
|
|||||||
|
import { Alert, AlertDescription, AlertTitle } from "@/components/ui/alert";
|
||||||
|
import { Button } from "@/components/ui/button";
|
||||||
|
import { InfoIcon } from "lucide-react";
|
||||||
|
import Link from "next/link";
|
||||||
|
import {
|
||||||
|
Accordion,
|
||||||
|
AccordionContent,
|
||||||
|
AccordionItem,
|
||||||
|
AccordionTrigger,
|
||||||
|
} from "@/components/ui/accordion";
|
||||||
|
import { ApplicationsDialog } from "./applications-dialog";
|
||||||
|
import { getUserApplications } from "@/lib/citizenship/repository";
|
||||||
|
|
||||||
|
export async function NoCitizenship({ userId }: { userId: string }) {
|
||||||
|
const applications = await getUserApplications(userId);
|
||||||
|
|
||||||
|
return (
|
||||||
|
<div className="flex flex-col gap-6">
|
||||||
|
<Alert variant="warning">
|
||||||
|
<InfoIcon />
|
||||||
|
<AlertTitle>You are not a citizen of the European Federation</AlertTitle>
|
||||||
|
<AlertDescription>
|
||||||
|
You currently hold non-citizen status. Certain civic services and
|
||||||
|
identity documents are available only to citizens of the European Federation.
|
||||||
|
</AlertDescription>
|
||||||
|
</Alert>
|
||||||
|
|
||||||
|
<div className="flex flex-col gap-3">
|
||||||
|
<div className="flex flex-row gap-3 w-max">
|
||||||
|
<Link href="/page/citizenship">
|
||||||
|
<Button variant="secondary">Learn more about citizenship</Button>
|
||||||
|
</Link>
|
||||||
|
<Link href="/account/citizenship/apply">
|
||||||
|
<Button>Apply for citizenship</Button>
|
||||||
|
</Link>
|
||||||
|
</div>
|
||||||
|
{applications.length > 0 && <ApplicationsDialog applications={applications} />}
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<Accordion type="single" collapsible>
|
||||||
|
<AccordionItem value="eligibility">
|
||||||
|
<AccordionTrigger><h4>Who is eligible for citizenship?</h4></AccordionTrigger>
|
||||||
|
<AccordionContent>
|
||||||
|
Citizenship may be granted to persons born in the European
|
||||||
|
Federation, the former Duspean Republic, or the Country of Reality,
|
||||||
|
as well as to individuals who held citizenship of the Duspean
|
||||||
|
Republic or the Country of Reality on 31 March 2026.
|
||||||
|
<br /><br />
|
||||||
|
Foreign nationals who demonstrate a commitment to the development,
|
||||||
|
prosperity, and values of the European Federation may also be
|
||||||
|
eligible for naturalisation under federal law.
|
||||||
|
</AccordionContent>
|
||||||
|
</AccordionItem>
|
||||||
|
<AccordionItem value="rights">
|
||||||
|
<AccordionTrigger><h4>What rights does citizenship provide?</h4></AccordionTrigger>
|
||||||
|
<AccordionContent>
|
||||||
|
Citizens enjoy all rights and protections guaranteed by the
|
||||||
|
Constitution and laws of the European Federation, including the
|
||||||
|
right to obtain federal identity documents, participate in federal
|
||||||
|
elections, and receive protection from federal authorities.
|
||||||
|
</AccordionContent>
|
||||||
|
</AccordionItem>
|
||||||
|
<AccordionItem value="documents">
|
||||||
|
<AccordionTrigger><h4>What documents are required?</h4></AccordionTrigger>
|
||||||
|
<AccordionContent>
|
||||||
|
Applicants may be asked to provide proof of
|
||||||
|
residence in the European Federation, evidence of eligibility, and any additional documents
|
||||||
|
required by the competent authority.
|
||||||
|
</AccordionContent>
|
||||||
|
</AccordionItem>
|
||||||
|
<AccordionItem value="processing">
|
||||||
|
<AccordionTrigger><h4>How long does the application process take?</h4></AccordionTrigger>
|
||||||
|
<AccordionContent>
|
||||||
|
Processing times vary depending on the complexity of the
|
||||||
|
application and the volume of requests currently under review.
|
||||||
|
Applicants can track the status of their application through their
|
||||||
|
account.
|
||||||
|
</AccordionContent>
|
||||||
|
</AccordionItem>
|
||||||
|
<AccordionItem value="dual">
|
||||||
|
<AccordionTrigger><h4>Is dual citizenship permitted?</h4></AccordionTrigger>
|
||||||
|
<AccordionContent>
|
||||||
|
The European Federation generally permits dual citizenship unless
|
||||||
|
otherwise restricted by federal law or international agreements.
|
||||||
|
</AccordionContent>
|
||||||
|
</AccordionItem>
|
||||||
|
</Accordion>
|
||||||
|
</div>
|
||||||
|
);
|
||||||
|
}
|
||||||
@@ -3,41 +3,18 @@ import Header from "@/components/header";
|
|||||||
import { getCurrentUser } from "@/lib/user";
|
import { getCurrentUser } from "@/lib/user";
|
||||||
import { redirect } from "next/navigation";
|
import { redirect } from "next/navigation";
|
||||||
import { AccountMenu } from "../account-menu";
|
import { AccountMenu } from "../account-menu";
|
||||||
import { InfoIcon } from "lucide-react";
|
|
||||||
import { Alert, AlertDescription, AlertTitle } from "@/components/ui/alert";
|
|
||||||
import { Button } from "@/components/ui/button";
|
import { Button } from "@/components/ui/button";
|
||||||
import Link from "next/link";
|
import Link from "next/link";
|
||||||
import {
|
import { getPendingApplicationsCount, getActiveCitizenship } from "@/lib/citizenship/repository";
|
||||||
Accordion,
|
import { HasCitizenship } from "./has-citizenship";
|
||||||
AccordionContent,
|
import { NoCitizenship } from "./no-citizenship";
|
||||||
AccordionItem,
|
|
||||||
AccordionTrigger,
|
|
||||||
} from "@/components/ui/accordion";
|
|
||||||
import { ApplicationsDialog } from "./applications-dialog";
|
|
||||||
import { getPendingApplicationsCount, getUserApplications } from "@/lib/citizenship/repository";
|
|
||||||
import { prisma } from "@/lib/prisma";
|
|
||||||
import { CitizenshipApplication } from "@/lib/citizenship/types";
|
|
||||||
import { getIdentityCardData, IdentityCardData } from "@/lib/id/repository";
|
|
||||||
import IdCard from "@/components/id-card";
|
|
||||||
|
|
||||||
export default async function Citizenship() {
|
export default async function Citizenship() {
|
||||||
const user = await getCurrentUser()
|
const user = await getCurrentUser()
|
||||||
if (!user) redirect("/")
|
if (!user) redirect("/")
|
||||||
|
|
||||||
const citizenship = await prisma.citizenship.findUnique({ where: { userId: user.id } })
|
const citizenship = await getActiveCitizenship(user.id)
|
||||||
|
const pendingCount = user.isAdmin ? await getPendingApplicationsCount() : 0
|
||||||
let applications: CitizenshipApplication[] = []
|
|
||||||
let pendingCount = 0
|
|
||||||
let identityDocument: IdentityCardData | null = null
|
|
||||||
|
|
||||||
if (citizenship) {
|
|
||||||
identityDocument = await getIdentityCardData(user.id)
|
|
||||||
} else {
|
|
||||||
applications = await getUserApplications(user.id)
|
|
||||||
if (user.isAdmin) {
|
|
||||||
pendingCount = await getPendingApplicationsCount()
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<>
|
<>
|
||||||
@@ -47,32 +24,9 @@ export default async function Citizenship() {
|
|||||||
<div className="flex flex-col gap-8 max-w-lg">
|
<div className="flex flex-col gap-8 max-w-lg">
|
||||||
<div className="flex flex-col gap-6 w-min">
|
<div className="flex flex-col gap-6 w-min">
|
||||||
<h2>Citizenship</h2>
|
<h2>Citizenship</h2>
|
||||||
{citizenship ? (
|
|
||||||
<div className="flex flex-col gap-8">
|
{citizenship ? <HasCitizenship userId={user.id} /> : <NoCitizenship userId={user.id} />}
|
||||||
<IdCard data={identityDocument} />
|
|
||||||
</div>
|
|
||||||
) : (
|
|
||||||
<div className="flex flex-col gap-6 w-min">
|
|
||||||
<Alert variant="warning">
|
|
||||||
<InfoIcon />
|
|
||||||
<AlertTitle>You are not a citizen of the European Federation</AlertTitle>
|
|
||||||
<AlertDescription>
|
|
||||||
You currently hold non-citizen status. Certain civic services and
|
|
||||||
identity documents are available only to citizens of the European Federation.
|
|
||||||
</AlertDescription>
|
|
||||||
</Alert>
|
|
||||||
<div className="flex flex-col gap-3">
|
|
||||||
<div className="flex flex-row gap-3 w-max">
|
|
||||||
<Link href="/page/citizenship">
|
|
||||||
<Button variant="secondary">Learn more about citizenship</Button>
|
|
||||||
</Link>
|
|
||||||
<Link href="/account/citizenship/apply">
|
|
||||||
<Button>Apply for citizenship</Button>
|
|
||||||
</Link>
|
|
||||||
</div>
|
|
||||||
{applications.length > 0 && (
|
|
||||||
<ApplicationsDialog applications={applications} />
|
|
||||||
)}
|
|
||||||
{user.isAdmin && (
|
{user.isAdmin && (
|
||||||
<Link href="/account/citizenship/review">
|
<Link href="/account/citizenship/review">
|
||||||
<Button variant="secondary" className="w-full">
|
<Button variant="secondary" className="w-full">
|
||||||
@@ -84,68 +38,6 @@ export default async function Citizenship() {
|
|||||||
</Link>
|
</Link>
|
||||||
)}
|
)}
|
||||||
</div>
|
</div>
|
||||||
<Accordion type="single" collapsible>
|
|
||||||
<AccordionItem value="eligibility">
|
|
||||||
<AccordionTrigger>
|
|
||||||
<h4>Who is eligible for citizenship?</h4>
|
|
||||||
</AccordionTrigger>
|
|
||||||
<AccordionContent>
|
|
||||||
Citizenship may be granted to persons born in the European
|
|
||||||
Federation, the former Duspean Republic, or the Country of Reality,
|
|
||||||
as well as to individuals who held citizenship of the Duspean
|
|
||||||
Republic or the Country of Reality on 31 March 2026.
|
|
||||||
<br />
|
|
||||||
<br />
|
|
||||||
Foreign nationals who demonstrate a commitment to the development,
|
|
||||||
prosperity, and values of the European Federation may also be
|
|
||||||
eligible for naturalisation under federal law.
|
|
||||||
</AccordionContent>
|
|
||||||
</AccordionItem>
|
|
||||||
<AccordionItem value="rights">
|
|
||||||
<AccordionTrigger>
|
|
||||||
<h4>What rights does citizenship provide?</h4>
|
|
||||||
</AccordionTrigger>
|
|
||||||
<AccordionContent>
|
|
||||||
Citizens enjoy all rights and protections guaranteed by the
|
|
||||||
Constitution and laws of the European Federation, including the
|
|
||||||
right to obtain federal identity documents, participate in federal
|
|
||||||
elections, and receive protection from federal authorities.
|
|
||||||
</AccordionContent>
|
|
||||||
</AccordionItem>
|
|
||||||
<AccordionItem value="documents">
|
|
||||||
<AccordionTrigger>
|
|
||||||
<h4>What documents are required?</h4>
|
|
||||||
</AccordionTrigger>
|
|
||||||
<AccordionContent>
|
|
||||||
Applicants may be asked to provide proof of
|
|
||||||
residence in the European Federation, evidence of eligibility, and any additional documents
|
|
||||||
required by the competent authority.
|
|
||||||
</AccordionContent>
|
|
||||||
</AccordionItem>
|
|
||||||
<AccordionItem value="processing">
|
|
||||||
<AccordionTrigger>
|
|
||||||
<h4>How long does the application process take?</h4>
|
|
||||||
</AccordionTrigger>
|
|
||||||
<AccordionContent>
|
|
||||||
Processing times vary depending on the complexity of the
|
|
||||||
application and the volume of requests currently under review.
|
|
||||||
Applicants can track the status of their application through their
|
|
||||||
account.
|
|
||||||
</AccordionContent>
|
|
||||||
</AccordionItem>
|
|
||||||
<AccordionItem value="dual">
|
|
||||||
<AccordionTrigger>
|
|
||||||
<h4>Is dual citizenship permitted?</h4>
|
|
||||||
</AccordionTrigger>
|
|
||||||
<AccordionContent>
|
|
||||||
The European Federation generally permits dual citizenship unless
|
|
||||||
otherwise restricted by federal law or international agreements.
|
|
||||||
</AccordionContent>
|
|
||||||
</AccordionItem>
|
|
||||||
</Accordion>
|
|
||||||
</div>
|
|
||||||
)}
|
|
||||||
</div>
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<Footer />
|
<Footer />
|
||||||
|
|||||||
@@ -0,0 +1,55 @@
|
|||||||
|
"use client";
|
||||||
|
|
||||||
|
import { useState } from "react";
|
||||||
|
import {
|
||||||
|
Dialog,
|
||||||
|
DialogClose,
|
||||||
|
DialogContent,
|
||||||
|
DialogDescription,
|
||||||
|
DialogFooter,
|
||||||
|
DialogHeader,
|
||||||
|
DialogTitle,
|
||||||
|
DialogTrigger,
|
||||||
|
} from "@/components/ui/dialog";
|
||||||
|
import { Button } from "@/components/ui/button";
|
||||||
|
import { formatDate } from "@/lib/utils";
|
||||||
|
import { useAction } from "@/hooks/useAction";
|
||||||
|
import { renounceCitizenship } from "@/lib/citizenship/actions";
|
||||||
|
import { Spinner } from "@/components/ui/spinner";
|
||||||
|
|
||||||
|
type Citizenship = {
|
||||||
|
id: string;
|
||||||
|
userId: string;
|
||||||
|
issuedAt: Date;
|
||||||
|
};
|
||||||
|
|
||||||
|
export function RenunciationDialog({ citizenship }: { citizenship: Citizenship }) {
|
||||||
|
const [open, setOpen] = useState(false);
|
||||||
|
const { run, isPending } = useAction(renounceCitizenship, {
|
||||||
|
successMessage: "Citizenship renounced",
|
||||||
|
onSuccess: () => setOpen(false),
|
||||||
|
});
|
||||||
|
|
||||||
|
return (
|
||||||
|
<Dialog open={open} onOpenChange={setOpen}>
|
||||||
|
<DialogTrigger asChild><Button variant="secondary">Renunciation of citizenship</Button></DialogTrigger>
|
||||||
|
<DialogContent>
|
||||||
|
<DialogHeader>
|
||||||
|
<DialogTitle asChild><h3>Renunciation of citizenship</h3></DialogTitle>
|
||||||
|
<DialogDescription>
|
||||||
|
This action is permanent and cannot be undone. If you continue, you will lose your citizenship of the European Federation, along with all associated rights and obligations.
|
||||||
|
</DialogDescription>
|
||||||
|
</DialogHeader>
|
||||||
|
<p>You are about to permanently renounce your citizenship of the European Federation, issued on {formatDate(citizenship.issuedAt)}.</p>
|
||||||
|
<DialogFooter>
|
||||||
|
<DialogClose asChild>
|
||||||
|
<Button variant="secondary">Cancel</Button>
|
||||||
|
</DialogClose>
|
||||||
|
<Button variant="destructive" disabled={isPending} onClick={() => run()}>
|
||||||
|
{isPending && <Spinner />}Renounce citizenship
|
||||||
|
</Button>
|
||||||
|
</DialogFooter>
|
||||||
|
</DialogContent>
|
||||||
|
</Dialog>
|
||||||
|
);
|
||||||
|
}
|
||||||
@@ -11,7 +11,9 @@ import { approveApplication, rejectApplication } from "@/lib/citizenship/actions
|
|||||||
import { CitizenshipApplicationWithWarning } from "@/lib/citizenship/types";
|
import { CitizenshipApplicationWithWarning } from "@/lib/citizenship/types";
|
||||||
import { formatDate } from "@/lib/utils";
|
import { formatDate } from "@/lib/utils";
|
||||||
import { TriangleAlertIcon } from "lucide-react";
|
import { TriangleAlertIcon } from "lucide-react";
|
||||||
|
import Image from "next/image";
|
||||||
import { useState } from "react";
|
import { useState } from "react";
|
||||||
|
import { toast } from "sonner";
|
||||||
|
|
||||||
export default function ApplicationCard({ application, onClose }: { application: CitizenshipApplicationWithWarning | undefined, onClose: () => void }) {
|
export default function ApplicationCard({ application, onClose }: { application: CitizenshipApplicationWithWarning | undefined, onClose: () => void }) {
|
||||||
const [rejectOpen, setRejectOpen] = useState(false)
|
const [rejectOpen, setRejectOpen] = useState(false)
|
||||||
@@ -26,20 +28,32 @@ export default function ApplicationCard({ application, onClose }: { application:
|
|||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
const applicationId = application.id;
|
||||||
|
|
||||||
async function handleApprove() {
|
async function handleApprove() {
|
||||||
setIsLoading(true)
|
setIsLoading(true)
|
||||||
await approveApplication(application.id)
|
const result = await approveApplication(applicationId)
|
||||||
setIsLoading(false)
|
setIsLoading(false)
|
||||||
|
if (result.success) {
|
||||||
|
toast.success("Application approved")
|
||||||
onClose()
|
onClose()
|
||||||
|
} else {
|
||||||
|
toast.error(result.error ?? "Failed to approve application")
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
async function handleReject() {
|
async function handleReject() {
|
||||||
if (!reason.trim()) return
|
if (!reason.trim()) return
|
||||||
setIsLoading(true)
|
setIsLoading(true)
|
||||||
await rejectApplication(application.id, reason)
|
const result = await rejectApplication(applicationId, reason)
|
||||||
setIsLoading(false)
|
setIsLoading(false)
|
||||||
|
if (result.success) {
|
||||||
|
toast.success("Application rejected")
|
||||||
setRejectOpen(false)
|
setRejectOpen(false)
|
||||||
onClose()
|
onClose()
|
||||||
|
} else {
|
||||||
|
toast.error(result.error ?? "Failed to reject application")
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
return (
|
return (
|
||||||
@@ -50,6 +64,18 @@ export default function ApplicationCard({ application, onClose }: { application:
|
|||||||
<CardDescription>{application.applicationType === "PREVIOUS_CITIZENSHIP" ? "Previous citizenship application" : "Naturalization application"}</CardDescription>
|
<CardDescription>{application.applicationType === "PREVIOUS_CITIZENSHIP" ? "Previous citizenship application" : "Naturalization application"}</CardDescription>
|
||||||
</CardHeader>
|
</CardHeader>
|
||||||
<CardContent className="max-w-sm">
|
<CardContent className="max-w-sm">
|
||||||
|
<div className="flex flex-row gap-2 mb-2">
|
||||||
|
<img
|
||||||
|
src={application.profileUrl}
|
||||||
|
alt="Profile"
|
||||||
|
className={"w-18 h-24 rounded-md object-cover ring-1 ring-foreground/10 shrink-0"}
|
||||||
|
/>
|
||||||
|
<img
|
||||||
|
src={application.signatureUrl}
|
||||||
|
alt="Profile"
|
||||||
|
className={"w-36 h-18 rounded-md object-cover ring-1 ring-foreground/10 shrink-0"}
|
||||||
|
/>
|
||||||
|
</div>
|
||||||
<div className="flex flex-col gap-1">
|
<div className="flex flex-col gap-1">
|
||||||
<h4 className="mb-1">Personal information</h4>
|
<h4 className="mb-1">Personal information</h4>
|
||||||
{ application.nameMismatch && (
|
{ application.nameMismatch && (
|
||||||
@@ -59,6 +85,13 @@ export default function ApplicationCard({ application, onClose }: { application:
|
|||||||
<AlertDescription className="w-fit max-w-full">The name on this application differs from the applicant's Kotosoft ID. Verify before approving.</AlertDescription>
|
<AlertDescription className="w-fit max-w-full">The name on this application differs from the applicant's Kotosoft ID. Verify before approving.</AlertDescription>
|
||||||
</Alert>
|
</Alert>
|
||||||
)}
|
)}
|
||||||
|
{ application.previousCitizenship && (
|
||||||
|
<Alert className="mb-2" variant="warning">
|
||||||
|
<TriangleAlertIcon />
|
||||||
|
<AlertTitle>Previous citizenship holder</AlertTitle>
|
||||||
|
<AlertDescription className="w-fit max-w-full">This person previously held citizenship of the European Federation. Please verify the reason for renunciation.</AlertDescription>
|
||||||
|
</Alert>
|
||||||
|
)}
|
||||||
<div className="flex flex-row gap-4 items-center">
|
<div className="flex flex-row gap-4 items-center">
|
||||||
<p className="text-muted-foreground">Given names</p>
|
<p className="text-muted-foreground">Given names</p>
|
||||||
<p>{application.givenNames}</p>
|
<p>{application.givenNames}</p>
|
||||||
|
|||||||
@@ -1,13 +1,13 @@
|
|||||||
"use client"
|
"use client"
|
||||||
|
|
||||||
import { CitizenshipApplication } from "@/lib/citizenship/types";
|
import { CitizenshipApplicationWithWarning } from "@/lib/citizenship/types";
|
||||||
import { DataTable } from "./data-table";
|
import { DataTable } from "./data-table";
|
||||||
import { columns } from "./columns";
|
import { columns } from "./columns";
|
||||||
import ApplicationCard from "./application-card";
|
import ApplicationCard from "./application-card";
|
||||||
import { useState } from "react";
|
import { useState } from "react";
|
||||||
|
|
||||||
|
|
||||||
export default function ReviewPageClient({ applications }: { applications: CitizenshipApplication[] }) {
|
export default function ReviewPageClient({ applications }: { applications: CitizenshipApplicationWithWarning[] }) {
|
||||||
const [selectedApplicationId, setSelectedApplicationId] = useState("");
|
const [selectedApplicationId, setSelectedApplicationId] = useState("");
|
||||||
|
|
||||||
return (
|
return (
|
||||||
@@ -17,9 +17,16 @@ export default function ReviewPageClient({ applications }: { applications: Citiz
|
|||||||
<div className="flex flex-col gap-6">
|
<div className="flex flex-col gap-6">
|
||||||
<h2>Review citizenship applications</h2>
|
<h2>Review citizenship applications</h2>
|
||||||
</div>
|
</div>
|
||||||
<DataTable columns={columns} data={applications} onRowClick={(app) => setSelectedApplicationId(app.id)} />
|
<DataTable
|
||||||
|
columns={columns}
|
||||||
|
data={applications}
|
||||||
|
onRowClick={(application) => setSelectedApplicationId(application.id)}
|
||||||
|
/>
|
||||||
</div>
|
</div>
|
||||||
<ApplicationCard application={applications.find((a) => a.id === selectedApplicationId)} onClose={() => setSelectedApplicationId("")} />
|
<ApplicationCard
|
||||||
|
application={applications.find((application) => application.id === selectedApplicationId)}
|
||||||
|
onClose={() => setSelectedApplicationId("")}
|
||||||
|
/>
|
||||||
</div>
|
</div>
|
||||||
</>
|
</>
|
||||||
)
|
)
|
||||||
|
|||||||
@@ -34,7 +34,7 @@ export function DataTable<TData, TValue>({ columns, data, onRowClick }: DataTabl
|
|||||||
))}
|
))}
|
||||||
</TableHeader>
|
</TableHeader>
|
||||||
<TableBody>
|
<TableBody>
|
||||||
{table.getRowCount() === 0 && <h5 className="mt-2 text-muted-foreground">There are no pending applications</h5>}
|
{table.getRowCount() === 0 && <TableRow><TableCell colSpan={columns.length} className="text-center text-muted-foreground">There are no pending applications</TableCell></TableRow>}
|
||||||
{table.getRowModel().rows.map((row) => (
|
{table.getRowModel().rows.map((row) => (
|
||||||
<TableRow key={row.id} className="cursor-pointer" onClick={() => onRowClick?.(row.original)}>
|
<TableRow key={row.id} className="cursor-pointer" onClick={() => onRowClick?.(row.original)}>
|
||||||
{row.getVisibleCells().map((cell) => (
|
{row.getVisibleCells().map((cell) => (
|
||||||
|
|||||||
@@ -5,17 +5,28 @@ import { getCurrentUser } from "@/lib/user";
|
|||||||
import { redirect } from "next/navigation";
|
import { redirect } from "next/navigation";
|
||||||
import { AccountMenu } from "../../account-menu";
|
import { AccountMenu } from "../../account-menu";
|
||||||
import { getPendingApplications } from "@/lib/citizenship/repository";
|
import { getPendingApplications } from "@/lib/citizenship/repository";
|
||||||
|
import { getImageUrl } from "@/lib/image";
|
||||||
|
|
||||||
export default async function ReviewPage() {
|
export default async function ReviewPage() {
|
||||||
const user = await getCurrentUser();
|
const user = await getCurrentUser();
|
||||||
if (!user?.isAdmin) redirect("/account/citizenship");
|
if (!user?.isAdmin) redirect("/account/citizenship");
|
||||||
|
|
||||||
const applications = await getPendingApplications()
|
const applications = await getPendingApplications();
|
||||||
|
|
||||||
const applicationsWithWarning = applications.map((app) => ({
|
const applicationsWithWarning = await Promise.all(
|
||||||
...app,
|
applications.map(async (application) => ({
|
||||||
nameMismatch: app.givenNames !== app.user.firstName || app.surname !== app.user.secondName,
|
...application,
|
||||||
|
profileUrl: await getImageUrl(application.profileKey),
|
||||||
|
signatureUrl: await getImageUrl(application.signatureKey),
|
||||||
|
|
||||||
|
nameMismatch:
|
||||||
|
application.givenNames !== application.user.firstName ||
|
||||||
|
application.surname !== application.user.secondName,
|
||||||
|
|
||||||
|
previousCitizenship:
|
||||||
|
application.user._count.citizenships > 0,
|
||||||
}))
|
}))
|
||||||
|
);
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<>
|
<>
|
||||||
|
|||||||
@@ -1,6 +1,5 @@
|
|||||||
"use client";
|
"use client";
|
||||||
|
|
||||||
import { useTransition } from "react";
|
|
||||||
import {
|
import {
|
||||||
Dialog, DialogClose, DialogContent, DialogDescription,
|
Dialog, DialogClose, DialogContent, DialogDescription,
|
||||||
DialogFooter, DialogHeader, DialogTitle, DialogTrigger,
|
DialogFooter, DialogHeader, DialogTitle, DialogTrigger,
|
||||||
@@ -8,9 +7,10 @@ import {
|
|||||||
import { deleteUserAction } from "@/lib/user/actions";
|
import { deleteUserAction } from "@/lib/user/actions";
|
||||||
import { Button } from "@/components/ui/button";
|
import { Button } from "@/components/ui/button";
|
||||||
import { Spinner } from "@/components/ui/spinner";
|
import { Spinner } from "@/components/ui/spinner";
|
||||||
|
import { useAction } from "@/hooks/useAction";
|
||||||
|
|
||||||
export function DeleteDialog({ userId }: { userId: string }) {
|
export function DeleteDialog() {
|
||||||
const [isPending, startTransition] = useTransition();
|
const { run, isPending } = useAction(deleteUserAction);
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<Dialog>
|
<Dialog>
|
||||||
@@ -33,7 +33,7 @@ export function DeleteDialog({ userId }: { userId: string }) {
|
|||||||
</DialogClose>
|
</DialogClose>
|
||||||
<Button
|
<Button
|
||||||
disabled={isPending}
|
disabled={isPending}
|
||||||
onClick={() => startTransition(() => deleteUserAction(userId))}
|
onClick={() => run()}
|
||||||
>
|
>
|
||||||
{isPending && <Spinner />}Delete
|
{isPending && <Spinner />}Delete
|
||||||
</Button>
|
</Button>
|
||||||
|
|||||||
@@ -1,19 +1,14 @@
|
|||||||
"use client";
|
"use client";
|
||||||
|
|
||||||
import { useTransition } from "react";
|
import { useAction } from "@/hooks/useAction";
|
||||||
|
import { logout } from "@/lib/user/actions";
|
||||||
import { Button } from "@/components/ui/button";
|
import { Button } from "@/components/ui/button";
|
||||||
import { Spinner } from "@/components/ui/spinner";
|
import { Spinner } from "@/components/ui/spinner";
|
||||||
import { logout } from "@/lib/user/actions";
|
|
||||||
|
|
||||||
export function LogoutButton() {
|
export function LogoutButton() {
|
||||||
const [isPending, startTransition] = useTransition();
|
const { run, isPending } = useAction(logout);
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<Button
|
<Button variant="secondary" disabled={isPending} onClick={() => run()}>
|
||||||
variant="secondary"
|
|
||||||
disabled={isPending}
|
|
||||||
onClick={() => startTransition(() => logout())}
|
|
||||||
>
|
|
||||||
{isPending && <Spinner />}Log out
|
{isPending && <Spinner />}Log out
|
||||||
</Button>
|
</Button>
|
||||||
);
|
);
|
||||||
|
|||||||
@@ -64,7 +64,7 @@ export default async function Account() {
|
|||||||
<h4>Delete account</h4>
|
<h4>Delete account</h4>
|
||||||
<p className="text-muted-foreground">Permanently delete your account and all associated data</p>
|
<p className="text-muted-foreground">Permanently delete your account and all associated data</p>
|
||||||
</div>
|
</div>
|
||||||
<DeleteDialog userId={user.id} />
|
<DeleteDialog />
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@@ -1,29 +1,13 @@
|
|||||||
"use client";
|
"use client";
|
||||||
|
import { useAction } from "@/hooks/useAction";
|
||||||
import { useTransition } from "react";
|
|
||||||
import { Button } from "@/components/ui/button";
|
import { Button } from "@/components/ui/button";
|
||||||
import { Spinner } from "@/components/ui/spinner";
|
import { Spinner } from "@/components/ui/spinner";
|
||||||
import { toast } from "sonner";
|
|
||||||
import { updateUserAction } from "@/lib/user/actions";
|
import { updateUserAction } from "@/lib/user/actions";
|
||||||
|
|
||||||
export function UpdateButton() {
|
export function UpdateButton() {
|
||||||
const [isPending, startTransition] = useTransition();
|
const { run, isPending } = useAction(updateUserAction, { successMessage: "Profile updated" });
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<Button
|
<Button variant="secondary" disabled={isPending} onClick={() => run()}>
|
||||||
variant="secondary"
|
|
||||||
disabled={isPending}
|
|
||||||
onClick={() =>
|
|
||||||
startTransition(async () => {
|
|
||||||
try {
|
|
||||||
await updateUserAction();
|
|
||||||
toast.success("Profile updated");
|
|
||||||
} catch {
|
|
||||||
toast.error("Failed to update profile. Your session may have expired. Try signing in again.");
|
|
||||||
}
|
|
||||||
})
|
|
||||||
}
|
|
||||||
>
|
|
||||||
{isPending && <Spinner />}Update
|
{isPending && <Spinner />}Update
|
||||||
</Button>
|
</Button>
|
||||||
);
|
);
|
||||||
|
|||||||
@@ -12,12 +12,14 @@
|
|||||||
"clsx": "^2.1.1",
|
"clsx": "^2.1.1",
|
||||||
"jose": "^6.2.3",
|
"jose": "^6.2.3",
|
||||||
"lucide-react": "^1.20.0",
|
"lucide-react": "^1.20.0",
|
||||||
|
"minio": "^8.0.7",
|
||||||
"next": "16.2.9",
|
"next": "16.2.9",
|
||||||
"pg": "^8.21.0",
|
"pg": "^8.21.0",
|
||||||
"radix-ui": "^1.6.0",
|
"radix-ui": "^1.6.0",
|
||||||
"react": "19.2.4",
|
"react": "19.2.4",
|
||||||
"react-dom": "19.2.4",
|
"react-dom": "19.2.4",
|
||||||
"shadcn": "^4.11.0",
|
"shadcn": "^4.11.0",
|
||||||
|
"sharp": "^0.35.3",
|
||||||
"sonner": "^2.0.7",
|
"sonner": "^2.0.7",
|
||||||
"tailwind-merge": "^3.6.0",
|
"tailwind-merge": "^3.6.0",
|
||||||
"tw-animate-css": "^1.4.0",
|
"tw-animate-css": "^1.4.0",
|
||||||
@@ -157,53 +159,57 @@
|
|||||||
|
|
||||||
"@img/colour": ["@img/[email protected]", "", {}, "sha512-Td76q7j57o/tLVdgS746cYARfSyxk8iEfRxewL9h4OMzYhbW4TAcppl0mT4eyqXddh6L/jwoM75mo7ixa/pCeQ=="],
|
"@img/colour": ["@img/[email protected]", "", {}, "sha512-Td76q7j57o/tLVdgS746cYARfSyxk8iEfRxewL9h4OMzYhbW4TAcppl0mT4eyqXddh6L/jwoM75mo7ixa/pCeQ=="],
|
||||||
|
|
||||||
"@img/sharp-darwin-arm64": ["@img/[email protected]4.5", "", { "optionalDependencies": { "@img/sharp-libvips-darwin-arm64": "1.2.4" }, "os": "darwin", "cpu": "arm64" }, "sha512-imtQ3WMJXbMY4fxb/Ndp6HBTNVtWCUI0WdobyheGf5+ad6xX8VIDO8u2xE4qc/fr08CKG/7dDseFtn6M6g/r3w=="],
|
"@img/sharp-darwin-arm64": ["@img/[email protected]5.3", "", { "optionalDependencies": { "@img/sharp-libvips-darwin-arm64": "1.3.2" }, "os": "darwin", "cpu": "arm64" }, "sha512-RMnFX7YQsMoh7lWfcM4NEHHymBX/rLuKNPVM84XE9ONPcaSCDgE7CHIHpSgPcO2xcRthgBy1HfNO319mwhIAkg=="],
|
||||||
|
|
||||||
"@img/sharp-darwin-x64": ["@img/[email protected]4.5", "", { "optionalDependencies": { "@img/sharp-libvips-darwin-x64": "1.2.4" }, "os": "darwin", "cpu": "x64" }, "sha512-YNEFAF/4KQ/PeW0N+r+aVVsoIY0/qxxikF2SWdp+NRkmMB7y9LBZAVqQ4yhGCm/H3H270OSykqmQMKLBhBJDEw=="],
|
"@img/sharp-darwin-x64": ["@img/[email protected]5.3", "", { "optionalDependencies": { "@img/sharp-libvips-darwin-x64": "1.3.2" }, "os": "darwin", "cpu": "x64" }, "sha512-Xo+5uFBtLN0BKqieTxiFzFPQAUlBbbH5iBKyRX/z1JrbnYsHTfKJnUfL8+p2TPXr1pXqao4eeL4Rl144uDpK9w=="],
|
||||||
|
|
||||||
"@img/sharp-libvips-darwin-arm64": ["@img/[email protected]", "", { "os": "darwin", "cpu": "arm64" }, "sha512-zqjjo7RatFfFoP0MkQ51jfuFZBnVE2pRiaydKJ1G/rHZvnsrHAOcQALIi9sA5co5xenQdTugCvtb1cuf78Vf4g=="],
|
"@img/sharp-freebsd-wasm32": ["@img/[email protected]", "", { "dependencies": { "@img/sharp-wasm32": "0.35.3" }, "os": "freebsd" }, "sha512-lUxcqWIj2wMQ9BrwNjngcr1gWUr5xgaGThBRqPPalIC2n67Cqj1uPh8NnA/ZhAg8hUbKl+kVHKwgUIwe6ZYPrg=="],
|
||||||
|
|
||||||
"@img/sharp-libvips-darwin-x64": ["@img/sharp-libvips-darwin-x64@1.2.4", "", { "os": "darwin", "cpu": "x64" }, "sha512-1IOd5xfVhlGwX+zXv2N93k0yMONvUlANylbJw1eTah8K/Jtpi15KC+WSiaX/nBmbm2HxRM1gZ0nSdjSsrZbGKg=="],
|
"@img/sharp-libvips-darwin-arm64": ["@img/sharp-libvips-darwin-arm64@1.3.2", "", { "os": "darwin", "cpu": "arm64" }, "sha512-9J6ypZFpQBj4YnePGoq/S38w6nz+vqg5WZLrLGY4YuSemdMq47GMLBPO42MzwdGwpg/agZ7xzZcFHa48xlywfg=="],
|
||||||
|
|
||||||
"@img/sharp-libvips-linux-arm": ["@img/sharp-libvips-[email protected]", "", { "os": "linux", "cpu": "arm" }, "sha512-bFI7xcKFELdiNCVov8e44Ia4u2byA+l3XtsAj+Q8tfCwO6BQ8iDojYdvoPMqsKDkuoOo+X6HZA0s0q11ANMQ8A=="],
|
"@img/sharp-libvips-darwin-x64": ["@img/sharp-libvips-[email protected]", "", { "os": "darwin", "cpu": "x64" }, "sha512-m2pW1n6cns9VaubNwsZ+c3CRYjxNQWgJ5gPlnL1nbBcpkBvFm6SCFN5o0psFHI8w9n11NKhFkeEDns98tiqbEw=="],
|
||||||
|
|
||||||
"@img/sharp-libvips-linux-arm64": ["@img/sharp-libvips-linux-arm64@1.2.4", "", { "os": "linux", "cpu": "arm64" }, "sha512-excjX8DfsIcJ10x1Kzr4RcWe1edC9PquDRRPx3YVCvQv+U5p7Yin2s32ftzikXojb1PIFc/9Mt28/y+iRklkrw=="],
|
"@img/sharp-libvips-linux-arm": ["@img/sharp-libvips-linux-arm@1.3.2", "", { "os": "linux", "cpu": "arm" }, "sha512-1eMLzy92I4J6rmi4mAT8yC3HxOtniyGELlzGbNMLLeqe052ahFQ0h6LFq+lh5DsDIdYViIDst08abvSbcEdLXQ=="],
|
||||||
|
|
||||||
"@img/sharp-libvips-linux-ppc64": ["@img/sharp-libvips-linux-ppc64@1.2.4", "", { "os": "linux", "cpu": "ppc64" }, "sha512-FMuvGijLDYG6lW+b/UvyilUWu5Ayu+3r2d1S8notiGCIyYU/76eig1UfMmkZ7vwgOrzKzlQbFSuQfgm7GYUPpA=="],
|
"@img/sharp-libvips-linux-arm64": ["@img/sharp-libvips-linux-arm64@1.3.2", "", { "os": "linux", "cpu": "arm64" }, "sha512-dqVSFynCox4C/J8kT16V7SIFAns0IjgLwkvYT7p8LQVmJ5OS5b6tI9IGflxTeuBS//zXeFIUbwt5dwxyZ17cnA=="],
|
||||||
|
|
||||||
"@img/sharp-libvips-linux-riscv64": ["@img/sharp-libvips-linux-riscv64@1.2.4", "", { "os": "linux", "cpu": "none" }, "sha512-oVDbcR4zUC0ce82teubSm+x6ETixtKZBh/qbREIOcI3cULzDyb18Sr/Wcyx7NRQeQzOiHTNbZFF1UwPS2scyGA=="],
|
"@img/sharp-libvips-linux-ppc64": ["@img/sharp-libvips-linux-ppc64@1.3.2", "", { "os": "linux", "cpu": "ppc64" }, "sha512-3z0NHDxD6n5I9gc05U1eW1AyRm+Gznzq3naMrthPNqE6oYykcogW0l/jfpJdjYnuNl8R7yI9pNbE1XiUeyq0Aw=="],
|
||||||
|
|
||||||
"@img/sharp-libvips-linux-s390x": ["@img/sharp-libvips-linux-[email protected]", "", { "os": "linux", "cpu": "s390x" }, "sha512-qmp9VrzgPgMoGZyPvrQHqk02uyjA0/QrTO26Tqk6l4ZV0MPWIW6LTkqOIov+J1yEu7MbFQaDpwdwJKhbJvuRxQ=="],
|
"@img/sharp-libvips-linux-riscv64": ["@img/sharp-libvips-linux-[email protected]", "", { "os": "linux", "cpu": "none" }, "sha512-bsb4rI+NldGOsXuej2r8OdSS8+zXDVaCWxyWrcv6kneTOlgAHtZABRzBBCwdsPiD90J4myNJuHpg6kA20ImW/w=="],
|
||||||
|
|
||||||
"@img/sharp-libvips-linux-x64": ["@img/sharp-libvips-linux-[email protected]", "", { "os": "linux", "cpu": "x64" }, "sha512-tJxiiLsmHc9Ax1bz3oaOYBURTXGIRDODBqhveVHonrHJ9/+k89qbLl0bcJns+e4t4rvaNBxaEZsFtSfAdquPrw=="],
|
"@img/sharp-libvips-linux-s390x": ["@img/sharp-libvips-linux-[email protected]", "", { "os": "linux", "cpu": "s390x" }, "sha512-/ABshyj8gCpyIrNXnHn4LorDJ0HHm1VhXPBlxZ8zAtfVPAaSafXPGn+sUSIRiwaSBy0mmFjSjiXI5mkcwdChKQ=="],
|
||||||
|
|
||||||
"@img/sharp-libvips-linuxmusl-arm64": ["@img/sharp-libvips-linuxmusl-arm64@1.2.4", "", { "os": "linux", "cpu": "arm64" }, "sha512-FVQHuwx1IIuNow9QAbYUzJ+En8KcVm9Lk5+uGUQJHaZmMECZmOlix9HnH7n1TRkXMS0pGxIJokIVB9SuqZGGXw=="],
|
"@img/sharp-libvips-linux-x64": ["@img/sharp-libvips-linux-x64@1.3.2", "", { "os": "linux", "cpu": "x64" }, "sha512-ITPEtgffGJ0S6G9dRyw/366tJQqFRcHWPHhC+Stpg3Z8AEMrDrTr2lhdz4f/Y/HMbRh//7Z5mBzEpVdi62Oc3w=="],
|
||||||
|
|
||||||
"@img/sharp-libvips-linuxmusl-x64": ["@img/sharp-libvips-linuxmusl-x64@1.2.4", "", { "os": "linux", "cpu": "x64" }, "sha512-+LpyBk7L44ZIXwz/VYfglaX/okxezESc6UxDSoyo2Ks6Jxc4Y7sGjpgU9s4PMgqgjj1gZCylTieNamqA1MF7Dg=="],
|
"@img/sharp-libvips-linuxmusl-arm64": ["@img/sharp-libvips-linuxmusl-arm64@1.3.2", "", { "os": "linux", "cpu": "arm64" }, "sha512-zE9EdiUzUmg5mDT5a1rk5fYJ6GWPloTwWBYDS14naqHsL+EaMpDj1AWnpLgh3u0YCORv2Tt50wrcrpYqkP97Kw=="],
|
||||||
|
|
||||||
"@img/sharp-linux-arm": ["@img/[email protected]", "", { "optionalDependencies": { "@img/sharp-libvips-linux-arm": "1.2.4" }, "os": "linux", "cpu": "arm" }, "sha512-9dLqsvwtg1uuXBGZKsxem9595+ujv0sJ6Vi8wcTANSFpwV/GONat5eCkzQo/1O6zRIkh0m/8+5BjrRr7jDUSZw=="],
|
"@img/sharp-libvips-linuxmusl-x64": ["@img/sharp-libvips-linux[email protected]", "", { "os": "linux", "cpu": "x64" }, "sha512-m0lrLiUt+lBYnCFr8qV/65yMR4E/c7/wf78I5eKTdkEakFAlZ9QlzEM3QIhhAwVeUhLAHLcCq7a7Vszq/oFNZQ=="],
|
||||||
|
|
||||||
"@img/sharp-linux-arm64": ["@img/sharp-linux-arm64@0.34.5", "", { "optionalDependencies": { "@img/sharp-libvips-linux-arm64": "1.2.4" }, "os": "linux", "cpu": "arm64" }, "sha512-bKQzaJRY/bkPOXyKx5EVup7qkaojECG6NLYswgktOZjaXecSAeCWiZwwiFf3/Y+O1HrauiE3FVsGxFg8c24rZg=="],
|
"@img/sharp-linux-arm": ["@img/[email protected]5.3", "", { "optionalDependencies": { "@img/sharp-libvips-linux-arm": "1.3.2" }, "os": "linux", "cpu": "arm" }, "sha512-affVWCTLooy8TSxbDx2qkzuDeaWLNVBA+P//FNBirHsXpP2fuBhk5AuboYUnrDnzoXes8GFjpTx0SBFOCRg+FA=="],
|
||||||
|
|
||||||
"@img/sharp-linux-ppc64": ["@img/sharp-linux-ppc[email protected]4.5", "", { "optionalDependencies": { "@img/sharp-libvips-linux-ppc64": "1.2.4" }, "os": "linux", "cpu": "ppc64" }, "sha512-7zznwNaqW6YtsfrGGDA6BRkISKAAE1Jo0QdpNYXNMHu2+0dTrPflTLNkpc8l7MUP5M16ZJcUvysVWWrMefZquA=="],
|
"@img/sharp-linux-arm64": ["@img/sharp-linux-arm[email protected]5.3", "", { "optionalDependencies": { "@img/sharp-libvips-linux-arm64": "1.3.2" }, "os": "linux", "cpu": "arm64" }, "sha512-QgKDspHPnrU+GQ55XPhGwyhC8acLVOOSyAvo1oVfFmrIXLkDNmGWzAfDZ4xK8oSA1qBQrALcHX0G5UZni/SuFQ=="],
|
||||||
|
|
||||||
"@img/sharp-linux-riscv64": ["@img/sharp-linux-riscv[email protected]4.5", "", { "optionalDependencies": { "@img/sharp-libvips-linux-riscv64": "1.2.4" }, "os": "linux", "cpu": "none" }, "sha512-51gJuLPTKa7piYPaVs8GmByo7/U7/7TZOq+cnXJIHZKavIRHAP77e3N2HEl3dgiqdD/w0yUfiJnII77PuDDFdw=="],
|
"@img/sharp-linux-ppc64": ["@img/sharp-linux-ppc[email protected]5.3", "", { "optionalDependencies": { "@img/sharp-libvips-linux-ppc64": "1.3.2" }, "os": "linux", "cpu": "ppc64" }, "sha512-sMd8rDxmpLOwv/7N44klFjOD5DUO7FLdjiXDI0hoxYaf7Ar262dQIEkosE98bps+5HPLtp/EvNqeqQtOycP/IA=="],
|
||||||
|
|
||||||
"@img/sharp-linux-s390x": ["@img/sharp-linux-s390x@0.34.5", "", { "optionalDependencies": { "@img/sharp-libvips-linux-s390x": "1.2.4" }, "os": "linux", "cpu": "s390x" }, "sha512-nQtCk0PdKfho3eC5MrbQoigJ2gd1CgddUMkabUj+rBevs8tZ2cULOx46E7oyX+04WGfABgIwmMC0VqieTiR4jg=="],
|
"@img/sharp-linux-riscv64": ["@img/sharp-linux-riscv64@0.35.3", "", { "optionalDependencies": { "@img/sharp-libvips-linux-riscv64": "1.3.2" }, "os": "linux", "cpu": "none" }, "sha512-0Eob78yjlYPfL5vMNWAW55l3R9Y6BQS/gOfe0ZcP9mEz9ohhKSt4im1hayiknXgf8AWrFqMvJcKIdmLmEe7yeQ=="],
|
||||||
|
|
||||||
"@img/sharp-linux-x64": ["@img/sharp-linux-x64@0.34.5", "", { "optionalDependencies": { "@img/sharp-libvips-linux-x64": "1.2.4" }, "os": "linux", "cpu": "x64" }, "sha512-MEzd8HPKxVxVenwAa+JRPwEC7QFjoPWuS5NZnBt6B3pu7EG2Ge0id1oLHZpPJdn3OQK+BQDiw9zStiHBTJQQQQ=="],
|
"@img/sharp-linux-s390x": ["@img/sharp-linux-s390x@0.35.3", "", { "optionalDependencies": { "@img/sharp-libvips-linux-s390x": "1.3.2" }, "os": "linux", "cpu": "s390x" }, "sha512-KgAxQ0DxpNOq1rG2t5cgTgShJFGSuU7XO45cqC+1NVOuZnP6tlgZRuSYOfNupGkHID0o3cJOsw4DVeJpMovcGw=="],
|
||||||
|
|
||||||
"@img/sharp-linuxmusl-arm64": ["@img/sharp-linuxmusl-arm[email protected]4.5", "", { "optionalDependencies": { "@img/sharp-libvips-linuxmusl-arm64": "1.2.4" }, "os": "linux", "cpu": "arm64" }, "sha512-fprJR6GtRsMt6Kyfq44IsChVZeGN97gTD331weR1ex1c1rypDEABN6Tm2xa1wE6lYb5DdEnk03NZPqA7Id21yg=="],
|
"@img/sharp-linux-x64": ["@img/sharp-linux-x[email protected]5.3", "", { "optionalDependencies": { "@img/sharp-libvips-linux-x64": "1.3.2" }, "os": "linux", "cpu": "x64" }, "sha512-8pqvxubL2PGdhlPy6GLqzDYMUjyRmKAwKHYKixpdJYBUK7PJ0C029XdsnpFIdgRZG68fZiGdHVWcKPvtiPB4cA=="],
|
||||||
|
|
||||||
"@img/sharp-linuxmusl-x64": ["@img/sharp-linuxmusl-x[email protected]4.5", "", { "optionalDependencies": { "@img/sharp-libvips-linuxmusl-x64": "1.2.4" }, "os": "linux", "cpu": "x64" }, "sha512-Jg8wNT1MUzIvhBFxViqrEhWDGzqymo3sV7z7ZsaWbZNDLXRJZoRGrjulp60YYtV4wfY8VIKcWidjojlLcWrd8Q=="],
|
"@img/sharp-linuxmusl-arm64": ["@img/sharp-linuxmusl-arm[email protected]5.3", "", { "optionalDependencies": { "@img/sharp-libvips-linuxmusl-arm64": "1.3.2" }, "os": "linux", "cpu": "arm64" }, "sha512-Vz0iQjzzcSX3HCbfwFfCSG/9SCIqyO0mH2sXyiHaAYfBk0cRsCWXRyQYX0ovCK/PAQBbTzQ0dsPQHh5MAFL59w=="],
|
||||||
|
|
||||||
|
"@img/sharp-linuxmusl-x64": ["@img/[email protected]", "", { "optionalDependencies": { "@img/sharp-libvips-linuxmusl-x64": "1.3.2" }, "os": "linux", "cpu": "x64" }, "sha512-6O1NPKcDVj9QEdg7Hx549EX8U0rp6yXQERqru6yRN7fGBn32UvIRJUlWnk+8xDCiG76hXVBbX82NZ/ZKr0euIg=="],
|
||||||
|
|
||||||
"@img/sharp-wasm32": ["@img/[email protected]", "", { "dependencies": { "@emnapi/runtime": "^1.7.0" }, "cpu": "none" }, "sha512-OdWTEiVkY2PHwqkbBI8frFxQQFekHaSSkUIJkwzclWZe64O1X4UlUjqqqLaPbUpMOQk6FBu/HtlGXNblIs0huw=="],
|
"@img/sharp-wasm32": ["@img/[email protected]", "", { "dependencies": { "@emnapi/runtime": "^1.7.0" }, "cpu": "none" }, "sha512-OdWTEiVkY2PHwqkbBI8frFxQQFekHaSSkUIJkwzclWZe64O1X4UlUjqqqLaPbUpMOQk6FBu/HtlGXNblIs0huw=="],
|
||||||
|
|
||||||
"@img/sharp-win32-arm64": ["@img/sharp-win32-arm64@0.34.5", "", { "os": "win32", "cpu": "arm64" }, "sha512-WQ3AgWCWYSb2yt+IG8mnC6Jdk9Whs7O0gxphblsLvdhSpSTtmu69ZG1Gkb6NuvxsNACwiPV6cNSZNzt0KPsw7g=="],
|
"@img/sharp-webcontainers-wasm32": ["@img/sharp-webcontainers-wasm32@0.35.3", "", { "dependencies": { "@img/sharp-wasm32": "0.35.3" }, "cpu": "none" }, "sha512-2rnq7bX3NzeR2T4YWgz8qiG4h3TSdMe+vN1iQXpJleSJ3SM5zQ8Fy2SyyXAWlbxpEZ2Y+Z4u1BePgJEYbSy80Q=="],
|
||||||
|
|
||||||
"@img/sharp-win32-ia32": ["@img/sharp-win32-ia32@0.34.5", "", { "os": "win32", "cpu": "ia32" }, "sha512-FV9m/7NmeCmSHDD5j4+4pNI8Cp3aW+JvLoXcTUo0IqyjSfAZJ8dIUmijx1qaJsIiU+Hosw6xM5KijAWRJCSgNg=="],
|
"@img/sharp-win32-arm64": ["@img/sharp-win32-arm64@0.35.3", "", { "os": "win32", "cpu": "arm64" }, "sha512-4bPwFdMbeC4JQ8L8LOyWp6nsHcboP5fxkp6iPOXz2Vg49R42TuMs2whkJ5OAP4/Ul035qOzy0AecOF9VOscn4w=="],
|
||||||
|
|
||||||
"@img/sharp-win32-x64": ["@img/sharp-win32-x64@0.34.5", "", { "os": "win32", "cpu": "x64" }, "sha512-+29YMsqY2/9eFEiW93eqWnuLcWcufowXewwSNIT6UwZdUUCrM3oFjMWH/Z6/TMmb4hlFenmfAVbpWeup2jryCw=="],
|
"@img/sharp-win32-ia32": ["@img/sharp-win32-ia32@0.35.3", "", { "os": "win32", "cpu": "ia32" }, "sha512-r53mXsBN6lFUDiST764SvgwUdHAqM4rPAiDzAmf4fLoB6X/rkfyTrLCg6+g17wJJiCmB3JYgHuUldCWUIRFSXw=="],
|
||||||
|
|
||||||
|
"@img/sharp-win32-x64": ["@img/[email protected]", "", { "os": "win32", "cpu": "x64" }, "sha512-D4y1vNeZrIIJCN+uHaWVtH86B+aCrdMYYjicy9pXHvbGZeGYLLSd3wdVuC37FxVXlU1ARsk84eKWfWMXGYEqvA=="],
|
||||||
|
|
||||||
"@jridgewell/gen-mapping": ["@jridgewell/[email protected]", "", { "dependencies": { "@jridgewell/sourcemap-codec": "^1.5.0", "@jridgewell/trace-mapping": "^0.3.24" } }, "sha512-2kkt/7niJ6MgEPxF0bYdQ6etZaA+fQvDcLKckhy1yIQOzaoKjBBjSj63/aLVjYE3qhRt5dvM+uUyfCg6UKCBbA=="],
|
"@jridgewell/gen-mapping": ["@jridgewell/[email protected]", "", { "dependencies": { "@jridgewell/sourcemap-codec": "^1.5.0", "@jridgewell/trace-mapping": "^0.3.24" } }, "sha512-2kkt/7niJ6MgEPxF0bYdQ6etZaA+fQvDcLKckhy1yIQOzaoKjBBjSj63/aLVjYE3qhRt5dvM+uUyfCg6UKCBbA=="],
|
||||||
|
|
||||||
@@ -247,6 +253,8 @@
|
|||||||
|
|
||||||
"@noble/hashes": ["@noble/[email protected]", "", {}, "sha512-jCs9ldd7NwzpgXDIf6P3+NrHh9/sD6CQdxHyjQI+h/6rDNo88ypBxxz45UDuZHz9r3tNz7N/VInSVoVdtXEI4A=="],
|
"@noble/hashes": ["@noble/[email protected]", "", {}, "sha512-jCs9ldd7NwzpgXDIf6P3+NrHh9/sD6CQdxHyjQI+h/6rDNo88ypBxxz45UDuZHz9r3tNz7N/VInSVoVdtXEI4A=="],
|
||||||
|
|
||||||
|
"@nodable/entities": ["@nodable/[email protected]", "", {}, "sha512-9uGyhaQavEUMC8AIddIjau4NsnsXhou+j5sBAGojCM1oxmQpVKTWR/9JxABD6UAv12vpIms55fPZKFQEhG6uBg=="],
|
||||||
|
|
||||||
"@nodelib/fs.scandir": ["@nodelib/[email protected]", "", { "dependencies": { "@nodelib/fs.stat": "2.0.5", "run-parallel": "^1.1.9" } }, "sha512-vq24Bq3ym5HEQm2NKCr3yXDwjc7vTsEThRDnkp2DK9p1uqLR+DHurm/NOTo0KG7HYHU7eppKZj3MyqYuMBf62g=="],
|
"@nodelib/fs.scandir": ["@nodelib/[email protected]", "", { "dependencies": { "@nodelib/fs.stat": "2.0.5", "run-parallel": "^1.1.9" } }, "sha512-vq24Bq3ym5HEQm2NKCr3yXDwjc7vTsEThRDnkp2DK9p1uqLR+DHurm/NOTo0KG7HYHU7eppKZj3MyqYuMBf62g=="],
|
||||||
|
|
||||||
"@nodelib/fs.stat": ["@nodelib/[email protected]", "", {}, "sha512-RkhPPp2zrqDAQA/2jNhnztcPAlv64XdhIp7a7454A5ovI7Bukxgt7MX7udwAu3zg1DcpPU0rz3VV1SeaqvY4+A=="],
|
"@nodelib/fs.stat": ["@nodelib/[email protected]", "", {}, "sha512-RkhPPp2zrqDAQA/2jNhnztcPAlv64XdhIp7a7454A5ovI7Bukxgt7MX7udwAu3zg1DcpPU0rz3VV1SeaqvY4+A=="],
|
||||||
@@ -549,6 +557,8 @@
|
|||||||
|
|
||||||
"ansi-styles": ["[email protected]", "", { "dependencies": { "color-convert": "^2.0.1" } }, "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg=="],
|
"ansi-styles": ["[email protected]", "", { "dependencies": { "color-convert": "^2.0.1" } }, "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg=="],
|
||||||
|
|
||||||
|
"anynum": ["[email protected]", "", {}, "sha512-N6//FLET/tXYNM/F6ABca1oH6fWB+KlTt909Le28WMDBk8oaT4vY17DCrwg2MvmuqUKt3Ni4N5dGJ/EoBgcO6A=="],
|
||||||
|
|
||||||
"argparse": ["[email protected]", "", {}, "sha512-8+9WqebbFzpX9OR+Wa6O29asIogeRMzcGtAINdpMHHyAg10f05aSFVBbcEqGf/PXw1EjAZ+q2/bEBg3DvurK3Q=="],
|
"argparse": ["[email protected]", "", {}, "sha512-8+9WqebbFzpX9OR+Wa6O29asIogeRMzcGtAINdpMHHyAg10f05aSFVBbcEqGf/PXw1EjAZ+q2/bEBg3DvurK3Q=="],
|
||||||
|
|
||||||
"aria-hidden": ["[email protected]", "", { "dependencies": { "tslib": "^2.0.0" } }, "sha512-ik3ZgC9dY/lYVVM++OISsaYDeg1tb0VtP5uL3ouh1koGOaUMDPpbFIei4JkFimWUFPn90sbMNMXQAIVOlnYKJA=="],
|
"aria-hidden": ["[email protected]", "", { "dependencies": { "tslib": "^2.0.0" } }, "sha512-ik3ZgC9dY/lYVVM++OISsaYDeg1tb0VtP5uL3ouh1koGOaUMDPpbFIei4JkFimWUFPn90sbMNMXQAIVOlnYKJA=="],
|
||||||
@@ -575,6 +585,8 @@
|
|||||||
|
|
||||||
"ast-types-flow": ["[email protected]", "", {}, "sha512-OH/2E5Fg20h2aPrbe+QL8JZQFko0YZaF+j4mnQ7BGhfavO7OpSLa8a0y9sBwomHdSbkhTS8TQNayBfnW5DwbvQ=="],
|
"ast-types-flow": ["[email protected]", "", {}, "sha512-OH/2E5Fg20h2aPrbe+QL8JZQFko0YZaF+j4mnQ7BGhfavO7OpSLa8a0y9sBwomHdSbkhTS8TQNayBfnW5DwbvQ=="],
|
||||||
|
|
||||||
|
"async": ["[email protected]", "", {}, "sha512-htCUDlxyyCLMgaM3xXg0C0LW2xqfuQ6p05pCEIsXuyQ+a1koYKTuBMzRNwmybfLgvJDMd0r1LTn4+E0Ti6C2AA=="],
|
||||||
|
|
||||||
"async-function": ["[email protected]", "", {}, "sha512-hsU18Ae8CDTR6Kgu9DYf0EbCr/a5iGL0rytQDobUcdpYOKokk8LEjVphnXkDkgpi0wYVsqrXuP0bZxJaTqdgoA=="],
|
"async-function": ["[email protected]", "", {}, "sha512-hsU18Ae8CDTR6Kgu9DYf0EbCr/a5iGL0rytQDobUcdpYOKokk8LEjVphnXkDkgpi0wYVsqrXuP0bZxJaTqdgoA=="],
|
||||||
|
|
||||||
"atomically": ["[email protected]", "", {}, "sha512-Xcz9l0z7y9yQ9rdDaxlmaI4uJHf/T8g9hOEzJcsEqX2SjCj4J20uK7+ldkDHMbpJDK76wF7xEIgxc/vSlsfw5w=="],
|
"atomically": ["[email protected]", "", {}, "sha512-Xcz9l0z7y9yQ9rdDaxlmaI4uJHf/T8g9hOEzJcsEqX2SjCj4J20uK7+ldkDHMbpJDK76wF7xEIgxc/vSlsfw5w=="],
|
||||||
@@ -593,14 +605,20 @@
|
|||||||
|
|
||||||
"better-result": ["[email protected]", "", {}, "sha512-WIFoBPCdnTOdk9inkE1ZRvCZ4P0CpSkAiLlchC65N7n9DcjZ3NhqkBOlafzpOVnO8ixyi37kicmSJ3ENhPZl7Q=="],
|
"better-result": ["[email protected]", "", {}, "sha512-WIFoBPCdnTOdk9inkE1ZRvCZ4P0CpSkAiLlchC65N7n9DcjZ3NhqkBOlafzpOVnO8ixyi37kicmSJ3ENhPZl7Q=="],
|
||||||
|
|
||||||
|
"block-stream2": ["[email protected]", "", { "dependencies": { "readable-stream": "^3.4.0" } }, "sha512-suhjmLI57Ewpmq00qaygS8UgEq2ly2PCItenIyhMqVjo4t4pGzqMvfgJuX8iWTeSDdfSSqS6j38fL4ToNL7Pfg=="],
|
||||||
|
|
||||||
"body-parser": ["[email protected]", "", { "dependencies": { "bytes": "^3.1.2", "content-type": "^2.0.0", "debug": "^4.4.3", "http-errors": "^2.0.1", "iconv-lite": "^0.7.2", "on-finished": "^2.4.1", "qs": "^6.15.2", "raw-body": "^3.0.2", "type-is": "^2.1.0" } }, "sha512-2cGmJupaNgg+QUwVLAucDuWuoMZ6EX9iHDRswZ5lsNYEmwPaRknMPCLZz07yTzVq/83p4o/wzbDZbBrTvGGTIw=="],
|
"body-parser": ["[email protected]", "", { "dependencies": { "bytes": "^3.1.2", "content-type": "^2.0.0", "debug": "^4.4.3", "http-errors": "^2.0.1", "iconv-lite": "^0.7.2", "on-finished": "^2.4.1", "qs": "^6.15.2", "raw-body": "^3.0.2", "type-is": "^2.1.0" } }, "sha512-2cGmJupaNgg+QUwVLAucDuWuoMZ6EX9iHDRswZ5lsNYEmwPaRknMPCLZz07yTzVq/83p4o/wzbDZbBrTvGGTIw=="],
|
||||||
|
|
||||||
"brace-expansion": ["[email protected]", "", { "dependencies": { "balanced-match": "^1.0.0", "concat-map": "0.0.1" } }, "sha512-EwOCDEex4quD37XhqM3omwtMoJjr//isUZz1JopUNWms+4Z2ViyM/k1YIRePpoVNnQhENnxtFjLaxNHrT7xIUg=="],
|
"brace-expansion": ["[email protected]", "", { "dependencies": { "balanced-match": "^1.0.0", "concat-map": "0.0.1" } }, "sha512-EwOCDEex4quD37XhqM3omwtMoJjr//isUZz1JopUNWms+4Z2ViyM/k1YIRePpoVNnQhENnxtFjLaxNHrT7xIUg=="],
|
||||||
|
|
||||||
"braces": ["[email protected]", "", { "dependencies": { "fill-range": "^7.1.1" } }, "sha512-yQbXgO/OSZVD2IsiLlro+7Hf6Q18EJrKSEsdoMzKePKXct3gvD8oLcOQdIzGupr5Fj+EDe8gO/lxc1BzfMpxvA=="],
|
"braces": ["[email protected]", "", { "dependencies": { "fill-range": "^7.1.1" } }, "sha512-yQbXgO/OSZVD2IsiLlro+7Hf6Q18EJrKSEsdoMzKePKXct3gvD8oLcOQdIzGupr5Fj+EDe8gO/lxc1BzfMpxvA=="],
|
||||||
|
|
||||||
|
"browser-or-node": ["[email protected]", "", {}, "sha512-8CVjaLJGuSKMVTxJ2DpBl5XnlNDiT4cQFeuCJJrvJmts9YrTZDizTX7PjC2s6W4x+MBGZeEY6dGMrF04/6Hgqg=="],
|
||||||
|
|
||||||
"browserslist": ["[email protected]", "", { "dependencies": { "baseline-browser-mapping": "^2.10.12", "caniuse-lite": "^1.0.30001782", "electron-to-chromium": "^1.5.328", "node-releases": "^2.0.36", "update-browserslist-db": "^1.2.3" }, "bin": { "browserslist": "cli.js" } }, "sha512-48xSriZYYg+8qXna9kwqjIVzuQxi+KYWp2+5nCYnYKPTr0LvD89Jqk2Or5ogxz0NUMfIjhh2lIUX/LyX9B4oIg=="],
|
"browserslist": ["[email protected]", "", { "dependencies": { "baseline-browser-mapping": "^2.10.12", "caniuse-lite": "^1.0.30001782", "electron-to-chromium": "^1.5.328", "node-releases": "^2.0.36", "update-browserslist-db": "^1.2.3" }, "bin": { "browserslist": "cli.js" } }, "sha512-48xSriZYYg+8qXna9kwqjIVzuQxi+KYWp2+5nCYnYKPTr0LvD89Jqk2Or5ogxz0NUMfIjhh2lIUX/LyX9B4oIg=="],
|
||||||
|
|
||||||
|
"buffer-crc32": ["[email protected]", "", {}, "sha512-Db1SbgBS/fg/392AblrMJk97KggmvYhr4pB5ZIMTWtaivCPMWLkmb7m21cJvpvgK+J3nsU2CmmixNBZx4vFj/w=="],
|
||||||
|
|
||||||
"bundle-name": ["[email protected]", "", { "dependencies": { "run-applescript": "^7.0.0" } }, "sha512-tjwM5exMg6BGRI+kNmTntNsvdZS1X8BFYS6tnJ2hdH0kVxM6/eVZ2xy+FqStSWvYmtfFMDLIxurorHwDKfDz5Q=="],
|
"bundle-name": ["[email protected]", "", { "dependencies": { "run-applescript": "^7.0.0" } }, "sha512-tjwM5exMg6BGRI+kNmTntNsvdZS1X8BFYS6tnJ2hdH0kVxM6/eVZ2xy+FqStSWvYmtfFMDLIxurorHwDKfDz5Q=="],
|
||||||
|
|
||||||
"bytes": ["[email protected]", "", {}, "sha512-/Nf7TyzTx6S3yRJObOAV7956r8cr2+Oj8AC5dt8wSP3BQAoeX58NoHyCU8P8zGkNXStjTSi6fzO6F0pBdcYbEg=="],
|
"bytes": ["[email protected]", "", {}, "sha512-/Nf7TyzTx6S3yRJObOAV7956r8cr2+Oj8AC5dt8wSP3BQAoeX58NoHyCU8P8zGkNXStjTSi6fzO6F0pBdcYbEg=="],
|
||||||
@@ -681,6 +699,8 @@
|
|||||||
|
|
||||||
"debug": ["[email protected]", "", { "dependencies": { "ms": "^2.1.3" } }, "sha512-RGwwWnwQvkVfavKVt22FGLw+xYSdzARwm0ru6DhTVA3umU5hZc28V3kO4stgYryrTlLpuvgI9GiijltAjNbcqA=="],
|
"debug": ["[email protected]", "", { "dependencies": { "ms": "^2.1.3" } }, "sha512-RGwwWnwQvkVfavKVt22FGLw+xYSdzARwm0ru6DhTVA3umU5hZc28V3kO4stgYryrTlLpuvgI9GiijltAjNbcqA=="],
|
||||||
|
|
||||||
|
"decode-uri-component": ["[email protected]", "", {}, "sha512-FqUYQ+8o158GyGTrMFJms9qh3CqTKvAqgqsTnkLI8sKu0028orqBhxNMFkFen0zGyg6epACD32pjVk58ngIErQ=="],
|
||||||
|
|
||||||
"dedent": ["[email protected]", "", { "peerDependencies": { "babel-plugin-macros": "^3.1.0" }, "optionalPeers": ["babel-plugin-macros"] }, "sha512-WzMx3mW98SN+zn3hgemf4OzdmyNhhhKz5Ay0pUfQiMQ3e1g+xmTJWp/pKdwKVXhdSkAEGIIzqeuWrL3mV/AXbA=="],
|
"dedent": ["[email protected]", "", { "peerDependencies": { "babel-plugin-macros": "^3.1.0" }, "optionalPeers": ["babel-plugin-macros"] }, "sha512-WzMx3mW98SN+zn3hgemf4OzdmyNhhhKz5Ay0pUfQiMQ3e1g+xmTJWp/pKdwKVXhdSkAEGIIzqeuWrL3mV/AXbA=="],
|
||||||
|
|
||||||
"deep-is": ["[email protected]", "", {}, "sha512-oIPzksmTg4/MriiaYGO+okXDT7ztn/w3Eptv/+gSIdMdKsJo0u4CfYNFJPy+4SKMuCqGw2wxnA+URMg3t8a/bQ=="],
|
"deep-is": ["[email protected]", "", {}, "sha512-oIPzksmTg4/MriiaYGO+okXDT7ztn/w3Eptv/+gSIdMdKsJo0u4CfYNFJPy+4SKMuCqGw2wxnA+URMg3t8a/bQ=="],
|
||||||
@@ -803,6 +823,8 @@
|
|||||||
|
|
||||||
"etag": ["[email protected]", "", {}, "sha512-aIL5Fx7mawVa300al2BnEE4iNvo1qETxLrPI/o05L7z6go7fCw1J6EQmbK4FmJ2AS7kgVF/KEZWufBfdClMcPg=="],
|
"etag": ["[email protected]", "", {}, "sha512-aIL5Fx7mawVa300al2BnEE4iNvo1qETxLrPI/o05L7z6go7fCw1J6EQmbK4FmJ2AS7kgVF/KEZWufBfdClMcPg=="],
|
||||||
|
|
||||||
|
"eventemitter3": ["[email protected]", "", {}, "sha512-mlsTRyGaPBjPedk6Bvw+aqbsXDtoAyAzm5MO7JgU+yVRyMQ5O8bD4Kcci7BS85f93veegeCPkL8R4GLClnjLFw=="],
|
||||||
|
|
||||||
"eventsource": ["[email protected]", "", { "dependencies": { "eventsource-parser": "^3.0.1" } }, "sha512-CRT1WTyuQoD771GW56XEZFQ/ZoSfWid1alKGDYMmkt2yl8UXrVR4pspqWNEcqKvVIzg6PAltWjxcSSPrboA4iA=="],
|
"eventsource": ["[email protected]", "", { "dependencies": { "eventsource-parser": "^3.0.1" } }, "sha512-CRT1WTyuQoD771GW56XEZFQ/ZoSfWid1alKGDYMmkt2yl8UXrVR4pspqWNEcqKvVIzg6PAltWjxcSSPrboA4iA=="],
|
||||||
|
|
||||||
"eventsource-parser": ["[email protected]", "", {}, "sha512-kJezFj9YFAMLeORyi7aCLxLbD5/qWMQnoMVlVPyHIll7lgRJCc3JVln9Vgl9nwQi0YkMnhdGTMNn7CkRRAptMg=="],
|
"eventsource-parser": ["[email protected]", "", {}, "sha512-kJezFj9YFAMLeORyi7aCLxLbD5/qWMQnoMVlVPyHIll7lgRJCc3JVln9Vgl9nwQi0YkMnhdGTMNn7CkRRAptMg=="],
|
||||||
@@ -827,6 +849,10 @@
|
|||||||
|
|
||||||
"fast-uri": ["[email protected]", "", {}, "sha512-rVjf7ArG3LTk+FS6Yw81V1DLuZl1bRbNrev6Tmd/9RaroeeRRJhAt7jg/6YFxbvAQXUCavSoZhPPj6oOx+5KjQ=="],
|
"fast-uri": ["[email protected]", "", {}, "sha512-rVjf7ArG3LTk+FS6Yw81V1DLuZl1bRbNrev6Tmd/9RaroeeRRJhAt7jg/6YFxbvAQXUCavSoZhPPj6oOx+5KjQ=="],
|
||||||
|
|
||||||
|
"fast-xml-builder": ["[email protected]", "", { "dependencies": { "path-expression-matcher": "^1.5.0", "xml-naming": "^0.1.0" } }, "sha512-tPb5TTWfgfVx5BNSi2xV0eLr89POeXXn0dXIsCJ9m1narrWxeIyx6je9d7Rce/3NyXLbvuQmLkxq+RuxMWejvw=="],
|
||||||
|
|
||||||
|
"fast-xml-parser": ["[email protected]", "", { "dependencies": { "@nodable/entities": "^2.2.0", "fast-xml-builder": "^1.2.0", "is-unsafe": "^1.0.1", "path-expression-matcher": "^1.5.0", "strnum": "^2.4.1", "xml-naming": "^0.1.0" }, "bin": { "fxparser": "src/cli/cli.js" } }, "sha512-brCNCeScma/kqa54J4PIDriSSSLssRkuYaUCpvHJulGc3HGI/xxKUCTDcYkAdqJsyb//ydpbxecjC3hB9+tb/g=="],
|
||||||
|
|
||||||
"fastq": ["[email protected]", "", { "dependencies": { "reusify": "^1.0.4" } }, "sha512-GGToxJ/w1x32s/D2EKND7kTil4n8OVk/9mycTc4VDza13lOvpUZTGX3mFSCtV9ksdGBVzvsyAVLM6mHFThxXxw=="],
|
"fastq": ["[email protected]", "", { "dependencies": { "reusify": "^1.0.4" } }, "sha512-GGToxJ/w1x32s/D2EKND7kTil4n8OVk/9mycTc4VDza13lOvpUZTGX3mFSCtV9ksdGBVzvsyAVLM6mHFThxXxw=="],
|
||||||
|
|
||||||
"fdir": ["[email protected]", "", { "peerDependencies": { "picomatch": "^3 || ^4" }, "optionalPeers": ["picomatch"] }, "sha512-tIbYtZbucOs0BRGqPJkshJUYdL+SDH7dVM8gjy+ERp3WAUjLEFJE+02kanyHtwjWOnwrKYBiwAmM0p4kLJAnXg=="],
|
"fdir": ["[email protected]", "", { "peerDependencies": { "picomatch": "^3 || ^4" }, "optionalPeers": ["picomatch"] }, "sha512-tIbYtZbucOs0BRGqPJkshJUYdL+SDH7dVM8gjy+ERp3WAUjLEFJE+02kanyHtwjWOnwrKYBiwAmM0p4kLJAnXg=="],
|
||||||
@@ -839,6 +865,8 @@
|
|||||||
|
|
||||||
"fill-range": ["[email protected]", "", { "dependencies": { "to-regex-range": "^5.0.1" } }, "sha512-YsGpe3WHLK8ZYi4tWDg2Jy3ebRz2rXowDxnld4bkQB00cc/1Zw9AWnC0i9ztDJitivtQvaI9KaLyKrc+hBW0yg=="],
|
"fill-range": ["[email protected]", "", { "dependencies": { "to-regex-range": "^5.0.1" } }, "sha512-YsGpe3WHLK8ZYi4tWDg2Jy3ebRz2rXowDxnld4bkQB00cc/1Zw9AWnC0i9ztDJitivtQvaI9KaLyKrc+hBW0yg=="],
|
||||||
|
|
||||||
|
"filter-obj": ["[email protected]", "", {}, "sha512-8rXg1ZnX7xzy2NGDVkBVaAy+lSlPNwad13BtgSlLuxfIslyt5Vg64U7tFcCt4WS1R0hvtnQybT/IyCkGZ3DpXQ=="],
|
||||||
|
|
||||||
"finalhandler": ["[email protected]", "", { "dependencies": { "debug": "^4.4.0", "encodeurl": "^2.0.0", "escape-html": "^1.0.3", "on-finished": "^2.4.1", "parseurl": "^1.3.3", "statuses": "^2.0.1" } }, "sha512-S8KoZgRZN+a5rNwqTxlZZePjT/4cnm0ROV70LedRHZ0p8u9fRID0hJUZQpkKLzro8LfmC8sx23bY6tVNxv8pQA=="],
|
"finalhandler": ["[email protected]", "", { "dependencies": { "debug": "^4.4.0", "encodeurl": "^2.0.0", "escape-html": "^1.0.3", "on-finished": "^2.4.1", "parseurl": "^1.3.3", "statuses": "^2.0.1" } }, "sha512-S8KoZgRZN+a5rNwqTxlZZePjT/4cnm0ROV70LedRHZ0p8u9fRID0hJUZQpkKLzro8LfmC8sx23bY6tVNxv8pQA=="],
|
||||||
|
|
||||||
"find-up": ["[email protected]", "", { "dependencies": { "locate-path": "^6.0.0", "path-exists": "^4.0.0" } }, "sha512-78/PXT1wlLLDgTzDs7sjq9hzz0vXD+zn+7wypEe4fXQxCmdmqfGsEPQxmiCSQI3ajFV91bVSsvNtrJRiW6nGng=="],
|
"find-up": ["[email protected]", "", { "dependencies": { "locate-path": "^6.0.0", "path-exists": "^4.0.0" } }, "sha512-78/PXT1wlLLDgTzDs7sjq9hzz0vXD+zn+7wypEe4fXQxCmdmqfGsEPQxmiCSQI3ajFV91bVSsvNtrJRiW6nGng=="],
|
||||||
@@ -949,7 +977,7 @@
|
|||||||
|
|
||||||
"ip-address": ["[email protected]", "", {}, "sha512-/+S6j4E9AHvW9SWMSEY9Xfy66O5PWvVEJ08O0y5JGyEKQpojb0K0GKpz/v5HJ/G0vi3D2sjGK78119oXZeE0qA=="],
|
"ip-address": ["[email protected]", "", {}, "sha512-/+S6j4E9AHvW9SWMSEY9Xfy66O5PWvVEJ08O0y5JGyEKQpojb0K0GKpz/v5HJ/G0vi3D2sjGK78119oXZeE0qA=="],
|
||||||
|
|
||||||
"ipaddr.js": ["ipaddr.js@1.9.1", "", {}, "sha512-0KI/607xoxSToH7GjN1FfSbLoU0+btTicjsQSWQlh/hZykN8KpmMf7uYwPW3R+akZ6R/w18ZlXSHBYXiYUPO3g=="],
|
"ipaddr.js": ["ipaddr.js@2.4.0", "", {}, "sha512-9VGk3HGanVE6JoZXHiCpnGy5X0jYDnN4EA4lntFPj+1vIWlFhIylq2CrrCOJH9EAhc5CYhq18F2Av2tgoAPsYQ=="],
|
||||||
|
|
||||||
"is-array-buffer": ["[email protected]", "", { "dependencies": { "call-bind": "^1.0.8", "call-bound": "^1.0.3", "get-intrinsic": "^1.2.6" } }, "sha512-DDfANUiiG2wC1qawP66qlTugJeL5HyzMpfr8lLK+jMQirGzNod0B12cFB/9q838Ru27sBwfw78/rdoU7RERz6A=="],
|
"is-array-buffer": ["[email protected]", "", { "dependencies": { "call-bind": "^1.0.8", "call-bound": "^1.0.3", "get-intrinsic": "^1.2.6" } }, "sha512-DDfANUiiG2wC1qawP66qlTugJeL5HyzMpfr8lLK+jMQirGzNod0B12cFB/9q838Ru27sBwfw78/rdoU7RERz6A=="],
|
||||||
|
|
||||||
@@ -1023,6 +1051,8 @@
|
|||||||
|
|
||||||
"is-unicode-supported": ["[email protected]", "", {}, "sha512-mE00Gnza5EEB3Ds0HfMyllZzbBrmLOX3vfWoj9A9PEnTfratQ/BcaJOuMhnkhjXvb2+FkY3VuHqtAGpTPmglFQ=="],
|
"is-unicode-supported": ["[email protected]", "", {}, "sha512-mE00Gnza5EEB3Ds0HfMyllZzbBrmLOX3vfWoj9A9PEnTfratQ/BcaJOuMhnkhjXvb2+FkY3VuHqtAGpTPmglFQ=="],
|
||||||
|
|
||||||
|
"is-unsafe": ["[email protected]", "", {}, "sha512-CLK2+VdgERgD96EYm5lUQssZYlRg2tkZnbsxZoacmSiRxiFJ4Nk4SzjCl+Ur+v3kXIY9dTIdb3IH22y1mZ56LA=="],
|
||||||
|
|
||||||
"is-weakmap": ["[email protected]", "", {}, "sha512-K5pXYOm9wqY1RgjpL3YTkF39tni1XajUIkawTLUo9EZEVUFga5gSQJF8nNS7ZwJQ02y+1YCNYcMh+HIf1ZqE+w=="],
|
"is-weakmap": ["[email protected]", "", {}, "sha512-K5pXYOm9wqY1RgjpL3YTkF39tni1XajUIkawTLUo9EZEVUFga5gSQJF8nNS7ZwJQ02y+1YCNYcMh+HIf1ZqE+w=="],
|
||||||
|
|
||||||
"is-weakref": ["[email protected]", "", { "dependencies": { "call-bound": "^1.0.3" } }, "sha512-6i9mGWSlqzNMEqpCp93KwRS1uUOodk2OJ6b+sq7ZPDSy2WuI5NFIxp/254TytR8ftefexkWn5xNiHUNpPOfSew=="],
|
"is-weakref": ["[email protected]", "", { "dependencies": { "call-bound": "^1.0.3" } }, "sha512-6i9mGWSlqzNMEqpCp93KwRS1uUOodk2OJ6b+sq7ZPDSy2WuI5NFIxp/254TytR8ftefexkWn5xNiHUNpPOfSew=="],
|
||||||
@@ -1101,6 +1131,8 @@
|
|||||||
|
|
||||||
"locate-path": ["[email protected]", "", { "dependencies": { "p-locate": "^5.0.0" } }, "sha512-iPZK6eYjbxRu3uB4/WZ3EsEIMJFMqAoopl3R+zuq0UjcAm/MO6KCweDgPfP3elTztoKP3KtnVHxTn2NHBSDVUw=="],
|
"locate-path": ["[email protected]", "", { "dependencies": { "p-locate": "^5.0.0" } }, "sha512-iPZK6eYjbxRu3uB4/WZ3EsEIMJFMqAoopl3R+zuq0UjcAm/MO6KCweDgPfP3elTztoKP3KtnVHxTn2NHBSDVUw=="],
|
||||||
|
|
||||||
|
"lodash": ["[email protected]", "", {}, "sha512-dMInicTPVE8d1e5otfwmmjlxkZoUpiVLwyeTdUsi/Caj/gfzzblBcCE5sRHV/AsjuCmxWrte2TNGSYuCeCq+0Q=="],
|
||||||
|
|
||||||
"lodash.merge": ["[email protected]", "", {}, "sha512-0KpjqXRVvrYyCsX1swR/XTK0va6VQkQM6MNo7PqW77ByjAhoARA8EfrP1N4+KlKj8YS0ZUCtRT/YUuhyYDujIQ=="],
|
"lodash.merge": ["[email protected]", "", {}, "sha512-0KpjqXRVvrYyCsX1swR/XTK0va6VQkQM6MNo7PqW77ByjAhoARA8EfrP1N4+KlKj8YS0ZUCtRT/YUuhyYDujIQ=="],
|
||||||
|
|
||||||
"log-symbols": ["[email protected]", "", { "dependencies": { "chalk": "^5.3.0", "is-unicode-supported": "^1.3.0" } }, "sha512-i24m8rpwhmPIS4zscNzK6MSEhk0DUWa/8iYQWxhffV8jkI4Phvs3F+quL5xvS0gdQR0FyTCMMH33Y78dDTzzIw=="],
|
"log-symbols": ["[email protected]", "", { "dependencies": { "chalk": "^5.3.0", "is-unicode-supported": "^1.3.0" } }, "sha512-i24m8rpwhmPIS4zscNzK6MSEhk0DUWa/8iYQWxhffV8jkI4Phvs3F+quL5xvS0gdQR0FyTCMMH33Y78dDTzzIw=="],
|
||||||
@@ -1129,9 +1161,9 @@
|
|||||||
|
|
||||||
"micromatch": ["[email protected]", "", { "dependencies": { "braces": "^3.0.3", "picomatch": "^2.3.1" } }, "sha512-PXwfBhYu0hBCPw8Dn0E+WDYb7af3dSLVWKi3HGv84IdF4TyFoC0ysxFd0Goxw7nSv4T/PzEJQxsYsEiFCKo2BA=="],
|
"micromatch": ["[email protected]", "", { "dependencies": { "braces": "^3.0.3", "picomatch": "^2.3.1" } }, "sha512-PXwfBhYu0hBCPw8Dn0E+WDYb7af3dSLVWKi3HGv84IdF4TyFoC0ysxFd0Goxw7nSv4T/PzEJQxsYsEiFCKo2BA=="],
|
||||||
|
|
||||||
"mime-db": ["[email protected]4.0", "", {}, "sha512-aU5EJuIN2WDemCcAp2vFBfp/m4EAhWJnUNSSw0ixs7/kXbd6Pg64EmwJkNdFhB8aWt1sH2CTXrLxo/iAGV3oPQ=="],
|
"mime-db": ["[email protected]2.0", "", {}, "sha512-sPU4uV7dYlvtWJxwwxHD0PuihVNiE7TyAbQ5SWxDCB9mUYvOgroQOwYQQOKPJ8CIbE+1ETVlOoK1UC2nU3gYvg=="],
|
||||||
|
|
||||||
"mime-types": ["mime-types@3.0.2", "", { "dependencies": { "mime-db": "^1.54.0" } }, "sha512-Lbgzdk0h4juoQ9fCKXW4by0UJqj+nOOrI9MJ1sSj4nI8aI2eo1qmvQEie4VD1glsS250n15LsWsYtCugiStS5A=="],
|
"mime-types": ["mime-types@2.1.35", "", { "dependencies": { "mime-db": "1.52.0" } }, "sha512-ZDY+bPm5zTTF+YpCrAU9nK0UgICYPT0QtT1NZWFv4s++TNkcgVaT0g6+4R2uI4MjQjzysHB1zxuWL50hzaeXiw=="],
|
||||||
|
|
||||||
"mimic-fn": ["[email protected]", "", {}, "sha512-Ysbi9uYW9hFyfrThdDEQuykN4Ey6BuwPD2kpI5ES/nFTDn/98yxYNLZJcgUAKPT/mcrLLKaGzJR9YVxJrIdASQ=="],
|
"mimic-fn": ["[email protected]", "", {}, "sha512-Ysbi9uYW9hFyfrThdDEQuykN4Ey6BuwPD2kpI5ES/nFTDn/98yxYNLZJcgUAKPT/mcrLLKaGzJR9YVxJrIdASQ=="],
|
||||||
|
|
||||||
@@ -1141,6 +1173,8 @@
|
|||||||
|
|
||||||
"minimist": ["[email protected]", "", {}, "sha512-2yyAR8qBkN3YuheJanUpWC5U3bb5osDywNB8RzDVlDwDHbocAJveqqj1u8+SVD7jkWT4yvsHCpWqqWqAxb0zCA=="],
|
"minimist": ["[email protected]", "", {}, "sha512-2yyAR8qBkN3YuheJanUpWC5U3bb5osDywNB8RzDVlDwDHbocAJveqqj1u8+SVD7jkWT4yvsHCpWqqWqAxb0zCA=="],
|
||||||
|
|
||||||
|
"minio": ["[email protected]", "", { "dependencies": { "async": "^3.2.4", "block-stream2": "^2.1.0", "browser-or-node": "^2.1.1", "buffer-crc32": "^1.0.0", "eventemitter3": "^5.0.1", "fast-xml-parser": "^5.3.4", "ipaddr.js": "^2.0.1", "lodash": "^4.17.21", "mime-types": "^2.1.35", "query-string": "^7.1.3", "stream-json": "^1.8.0", "through2": "^4.0.2", "xml2js": "^0.5.0 || ^0.6.2" } }, "sha512-E737MgufW8CeQAsTAtnEMrxZ9scMSf29kkhZoXzDTKj/Jszzo2SfeZUH9wbDQH2Rsq6TCtl/yQL0+XdVKZansQ=="],
|
||||||
|
|
||||||
"ms": ["[email protected]", "", {}, "sha512-6FlzubTLZG3J2a/NVCAleEhjzq5oxgHyaCU9yYXvcLsvoVaHJq/s5xXI6/XXP6tz7R9xAOtHnSO/tXtF3WRTlA=="],
|
"ms": ["[email protected]", "", {}, "sha512-6FlzubTLZG3J2a/NVCAleEhjzq5oxgHyaCU9yYXvcLsvoVaHJq/s5xXI6/XXP6tz7R9xAOtHnSO/tXtF3WRTlA=="],
|
||||||
|
|
||||||
"mysql2": ["[email protected]", "", { "dependencies": { "aws-ssl-profiles": "^1.1.1", "denque": "^2.1.0", "generate-function": "^2.3.1", "iconv-lite": "^0.7.0", "long": "^5.2.1", "lru.min": "^1.0.0", "named-placeholders": "^1.1.3", "seq-queue": "^0.0.5", "sqlstring": "^2.3.2" } }, "sha512-FBrGau0IXmuqg4haEZRBfHNWB5mUARw6hNwPDXXGg0XzVJ50mr/9hb267lvpVMnhZ1FON3qNd4Xfcez1rbFwSg=="],
|
"mysql2": ["[email protected]", "", { "dependencies": { "aws-ssl-profiles": "^1.1.1", "denque": "^2.1.0", "generate-function": "^2.3.1", "iconv-lite": "^0.7.0", "long": "^5.2.1", "lru.min": "^1.0.0", "named-placeholders": "^1.1.3", "seq-queue": "^0.0.5", "sqlstring": "^2.3.2" } }, "sha512-FBrGau0IXmuqg4haEZRBfHNWB5mUARw6hNwPDXXGg0XzVJ50mr/9hb267lvpVMnhZ1FON3qNd4Xfcez1rbFwSg=="],
|
||||||
@@ -1219,6 +1253,8 @@
|
|||||||
|
|
||||||
"path-exists": ["[email protected]", "", {}, "sha512-ak9Qy5Q7jYb2Wwcey5Fpvg2KoAc/ZIhLSLOSBmRmygPsGwkVVt0fZa0qrtMz+m6tJTAHfZQ8FnmB4MG4LWy7/w=="],
|
"path-exists": ["[email protected]", "", {}, "sha512-ak9Qy5Q7jYb2Wwcey5Fpvg2KoAc/ZIhLSLOSBmRmygPsGwkVVt0fZa0qrtMz+m6tJTAHfZQ8FnmB4MG4LWy7/w=="],
|
||||||
|
|
||||||
|
"path-expression-matcher": ["[email protected]", "", {}, "sha512-h7bxdzhHk8Knyc4Tj+jMaa7fEEoUJy7p1qtbVgkYg1Uhpe5Np5VuGXCRZnkZvU+Q42M1vStt0ifa3ueykRJPmQ=="],
|
||||||
|
|
||||||
"path-key": ["[email protected]", "", {}, "sha512-ojmeN0qd+y0jszEtoY48r0Peq5dwMEkIlCOu6Q5f41lfkswXuKtYrhgoTpLnyIcHm24Uhqx+5Tqm2InSwLhE6Q=="],
|
"path-key": ["[email protected]", "", {}, "sha512-ojmeN0qd+y0jszEtoY48r0Peq5dwMEkIlCOu6Q5f41lfkswXuKtYrhgoTpLnyIcHm24Uhqx+5Tqm2InSwLhE6Q=="],
|
||||||
|
|
||||||
"path-parse": ["[email protected]", "", {}, "sha512-LDJzPVEEEPR+y48z93A0Ed0yXb8pAByGWo/k5YYdYgpY2/2EsOsksJrq7lOHxryrVOn1ejG6oAp8ahvOIQD8sw=="],
|
"path-parse": ["[email protected]", "", {}, "sha512-LDJzPVEEEPR+y48z93A0Ed0yXb8pAByGWo/k5YYdYgpY2/2EsOsksJrq7lOHxryrVOn1ejG6oAp8ahvOIQD8sw=="],
|
||||||
@@ -1293,6 +1329,8 @@
|
|||||||
|
|
||||||
"qs": ["[email protected]", "", { "dependencies": { "side-channel": "^1.1.0" } }, "sha512-Rzq0KEyX/w/tEybncDgdkZrJgVUsUMk3xjh3t5bv3S1HTAtg+uOYt72+ZfwiQwKdysThkTBdL/rTi6HDmX9Ddw=="],
|
"qs": ["[email protected]", "", { "dependencies": { "side-channel": "^1.1.0" } }, "sha512-Rzq0KEyX/w/tEybncDgdkZrJgVUsUMk3xjh3t5bv3S1HTAtg+uOYt72+ZfwiQwKdysThkTBdL/rTi6HDmX9Ddw=="],
|
||||||
|
|
||||||
|
"query-string": ["[email protected]", "", { "dependencies": { "decode-uri-component": "^0.2.2", "filter-obj": "^1.1.0", "split-on-first": "^1.0.0", "strict-uri-encode": "^2.0.0" } }, "sha512-hh2WYhq4fi8+b+/2Kg9CEge4fDPvHS534aOOvOZeQ3+Vf2mCFsaFBYj0i+iXcAq6I9Vzp5fjMFBlONvayDC1qg=="],
|
||||||
|
|
||||||
"queue-microtask": ["[email protected]", "", {}, "sha512-NuaNSa6flKT5JaSYQzJok04JzTL1CA6aGhv5rfLW3PgqA+M2ChpZQnAC8h8i4ZFkBS8X5RqkDBHA7r4hej3K9A=="],
|
"queue-microtask": ["[email protected]", "", {}, "sha512-NuaNSa6flKT5JaSYQzJok04JzTL1CA6aGhv5rfLW3PgqA+M2ChpZQnAC8h8i4ZFkBS8X5RqkDBHA7r4hej3K9A=="],
|
||||||
|
|
||||||
"radix-ui": ["[email protected]", "", { "dependencies": { "@radix-ui/primitive": "1.1.4", "@radix-ui/react-accessible-icon": "1.1.10", "@radix-ui/react-accordion": "1.2.14", "@radix-ui/react-alert-dialog": "1.1.17", "@radix-ui/react-arrow": "1.1.10", "@radix-ui/react-aspect-ratio": "1.1.10", "@radix-ui/react-avatar": "1.2.0", "@radix-ui/react-checkbox": "1.3.5", "@radix-ui/react-collapsible": "1.1.14", "@radix-ui/react-collection": "1.1.10", "@radix-ui/react-compose-refs": "1.1.3", "@radix-ui/react-context": "1.1.4", "@radix-ui/react-context-menu": "2.3.1", "@radix-ui/react-dialog": "1.1.17", "@radix-ui/react-direction": "1.1.2", "@radix-ui/react-dismissable-layer": "1.1.13", "@radix-ui/react-dropdown-menu": "2.1.18", "@radix-ui/react-focus-guards": "1.1.4", "@radix-ui/react-focus-scope": "1.1.10", "@radix-ui/react-form": "0.1.10", "@radix-ui/react-hover-card": "1.1.17", "@radix-ui/react-label": "2.1.10", "@radix-ui/react-menu": "2.1.18", "@radix-ui/react-menubar": "1.1.18", "@radix-ui/react-navigation-menu": "1.2.16", "@radix-ui/react-one-time-password-field": "0.1.10", "@radix-ui/react-password-toggle-field": "0.1.5", "@radix-ui/react-popover": "1.1.17", "@radix-ui/react-popper": "1.3.1", "@radix-ui/react-portal": "1.1.12", "@radix-ui/react-presence": "1.1.6", "@radix-ui/react-primitive": "2.1.6", "@radix-ui/react-progress": "1.1.10", "@radix-ui/react-radio-group": "1.4.1", "@radix-ui/react-roving-focus": "1.1.13", "@radix-ui/react-scroll-area": "1.2.12", "@radix-ui/react-select": "2.3.1", "@radix-ui/react-separator": "1.1.10", "@radix-ui/react-slider": "1.4.1", "@radix-ui/react-slot": "1.3.0", "@radix-ui/react-switch": "1.3.1", "@radix-ui/react-tabs": "1.1.15", "@radix-ui/react-toast": "1.2.17", "@radix-ui/react-toggle": "1.1.12", "@radix-ui/react-toggle-group": "1.1.13", "@radix-ui/react-toolbar": "1.1.13", "@radix-ui/react-tooltip": "1.2.10", "@radix-ui/react-use-callback-ref": "1.1.2", "@radix-ui/react-use-controllable-state": "1.2.3", "@radix-ui/react-use-effect-event": "0.0.3", "@radix-ui/react-use-escape-keydown": "1.1.2", "@radix-ui/react-use-is-hydrated": "0.1.1", "@radix-ui/react-use-layout-effect": "1.1.2", "@radix-ui/react-use-size": "1.1.2", "@radix-ui/react-visually-hidden": "1.2.6" }, "peerDependencies": { "@types/react": "*", "@types/react-dom": "*", "react": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc", "react-dom": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc" }, "optionalPeers": ["@types/react", "@types/react-dom"] }, "sha512-EUEC70O03EgxWMP5aoqfBZ6iLC5bczFagGy7zhSYRt8o5DP7IWNiP3ywetse3L9b8843ExB0OGWZvgbYVJuNeg=="],
|
"radix-ui": ["[email protected]", "", { "dependencies": { "@radix-ui/primitive": "1.1.4", "@radix-ui/react-accessible-icon": "1.1.10", "@radix-ui/react-accordion": "1.2.14", "@radix-ui/react-alert-dialog": "1.1.17", "@radix-ui/react-arrow": "1.1.10", "@radix-ui/react-aspect-ratio": "1.1.10", "@radix-ui/react-avatar": "1.2.0", "@radix-ui/react-checkbox": "1.3.5", "@radix-ui/react-collapsible": "1.1.14", "@radix-ui/react-collection": "1.1.10", "@radix-ui/react-compose-refs": "1.1.3", "@radix-ui/react-context": "1.1.4", "@radix-ui/react-context-menu": "2.3.1", "@radix-ui/react-dialog": "1.1.17", "@radix-ui/react-direction": "1.1.2", "@radix-ui/react-dismissable-layer": "1.1.13", "@radix-ui/react-dropdown-menu": "2.1.18", "@radix-ui/react-focus-guards": "1.1.4", "@radix-ui/react-focus-scope": "1.1.10", "@radix-ui/react-form": "0.1.10", "@radix-ui/react-hover-card": "1.1.17", "@radix-ui/react-label": "2.1.10", "@radix-ui/react-menu": "2.1.18", "@radix-ui/react-menubar": "1.1.18", "@radix-ui/react-navigation-menu": "1.2.16", "@radix-ui/react-one-time-password-field": "0.1.10", "@radix-ui/react-password-toggle-field": "0.1.5", "@radix-ui/react-popover": "1.1.17", "@radix-ui/react-popper": "1.3.1", "@radix-ui/react-portal": "1.1.12", "@radix-ui/react-presence": "1.1.6", "@radix-ui/react-primitive": "2.1.6", "@radix-ui/react-progress": "1.1.10", "@radix-ui/react-radio-group": "1.4.1", "@radix-ui/react-roving-focus": "1.1.13", "@radix-ui/react-scroll-area": "1.2.12", "@radix-ui/react-select": "2.3.1", "@radix-ui/react-separator": "1.1.10", "@radix-ui/react-slider": "1.4.1", "@radix-ui/react-slot": "1.3.0", "@radix-ui/react-switch": "1.3.1", "@radix-ui/react-tabs": "1.1.15", "@radix-ui/react-toast": "1.2.17", "@radix-ui/react-toggle": "1.1.12", "@radix-ui/react-toggle-group": "1.1.13", "@radix-ui/react-toolbar": "1.1.13", "@radix-ui/react-tooltip": "1.2.10", "@radix-ui/react-use-callback-ref": "1.1.2", "@radix-ui/react-use-controllable-state": "1.2.3", "@radix-ui/react-use-effect-event": "0.0.3", "@radix-ui/react-use-escape-keydown": "1.1.2", "@radix-ui/react-use-is-hydrated": "0.1.1", "@radix-ui/react-use-layout-effect": "1.1.2", "@radix-ui/react-use-size": "1.1.2", "@radix-ui/react-visually-hidden": "1.2.6" }, "peerDependencies": { "@types/react": "*", "@types/react-dom": "*", "react": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc", "react-dom": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc" }, "optionalPeers": ["@types/react", "@types/react-dom"] }, "sha512-EUEC70O03EgxWMP5aoqfBZ6iLC5bczFagGy7zhSYRt8o5DP7IWNiP3ywetse3L9b8843ExB0OGWZvgbYVJuNeg=="],
|
||||||
@@ -1315,6 +1353,8 @@
|
|||||||
|
|
||||||
"react-style-singleton": ["[email protected]", "", { "dependencies": { "get-nonce": "^1.0.0", "tslib": "^2.0.0" }, "peerDependencies": { "@types/react": "*", "react": "^16.8.0 || ^17.0.0 || ^18.0.0 || ^19.0.0 || ^19.0.0-rc" }, "optionalPeers": ["@types/react"] }, "sha512-b6jSvxvVnyptAiLjbkWLE/lOnR4lfTtDAl+eUC7RZy+QQWc6wRzIV2CE6xBuMmDxc2qIihtDCZD5NPOFl7fRBQ=="],
|
"react-style-singleton": ["[email protected]", "", { "dependencies": { "get-nonce": "^1.0.0", "tslib": "^2.0.0" }, "peerDependencies": { "@types/react": "*", "react": "^16.8.0 || ^17.0.0 || ^18.0.0 || ^19.0.0 || ^19.0.0-rc" }, "optionalPeers": ["@types/react"] }, "sha512-b6jSvxvVnyptAiLjbkWLE/lOnR4lfTtDAl+eUC7RZy+QQWc6wRzIV2CE6xBuMmDxc2qIihtDCZD5NPOFl7fRBQ=="],
|
||||||
|
|
||||||
|
"readable-stream": ["[email protected]", "", { "dependencies": { "inherits": "^2.0.3", "string_decoder": "^1.1.1", "util-deprecate": "^1.0.1" } }, "sha512-9u/sniCrY3D5WdsERHzHE4G2YCXqoG5FTHUiCC4SIbr6XcLZBY05ya9EKjYek9O5xOAwjGq+1JdGBAS7Q9ScoA=="],
|
||||||
|
|
||||||
"readdirp": ["[email protected]", "", {}, "sha512-9u/XQ1pvrQtYyMpZe7DXKv2p5CNvyVwzUB6uhLAnQwHMSgKMBR62lc7AHljaeteeHXn11XTAaLLUVZYVZyuRBQ=="],
|
"readdirp": ["[email protected]", "", {}, "sha512-9u/XQ1pvrQtYyMpZe7DXKv2p5CNvyVwzUB6uhLAnQwHMSgKMBR62lc7AHljaeteeHXn11XTAaLLUVZYVZyuRBQ=="],
|
||||||
|
|
||||||
"recast": ["[email protected]", "", { "dependencies": { "ast-types": "^0.16.1", "esprima": "~4.0.0", "source-map": "~0.6.1", "tiny-invariant": "^1.3.3", "tslib": "^2.0.1" } }, "sha512-YTUo+Flmw4ZXiWfQKGcwwc11KnoRAYgzAE2E7mXKCjSviTKShtxBsN6YUUBB2gtaBzKzeKunxhUwNHQuRryhWA=="],
|
"recast": ["[email protected]", "", { "dependencies": { "ast-types": "^0.16.1", "esprima": "~4.0.0", "source-map": "~0.6.1", "tiny-invariant": "^1.3.3", "tslib": "^2.0.1" } }, "sha512-YTUo+Flmw4ZXiWfQKGcwwc11KnoRAYgzAE2E7mXKCjSviTKShtxBsN6YUUBB2gtaBzKzeKunxhUwNHQuRryhWA=="],
|
||||||
@@ -1347,15 +1387,19 @@
|
|||||||
|
|
||||||
"safe-array-concat": ["[email protected]", "", { "dependencies": { "call-bind": "^1.0.9", "call-bound": "^1.0.4", "get-intrinsic": "^1.3.0", "has-symbols": "^1.1.0", "isarray": "^2.0.5" } }, "sha512-wtZlHyOje6OZTGqAoaDKxFkgRtkF9CnHAVnCHKfuj200wAgL+bSJhdsCD2l0Qx/2ekEXjPWcyKkfGb5CPboslg=="],
|
"safe-array-concat": ["[email protected]", "", { "dependencies": { "call-bind": "^1.0.9", "call-bound": "^1.0.4", "get-intrinsic": "^1.3.0", "has-symbols": "^1.1.0", "isarray": "^2.0.5" } }, "sha512-wtZlHyOje6OZTGqAoaDKxFkgRtkF9CnHAVnCHKfuj200wAgL+bSJhdsCD2l0Qx/2ekEXjPWcyKkfGb5CPboslg=="],
|
||||||
|
|
||||||
|
"safe-buffer": ["[email protected]", "", {}, "sha512-rp3So07KcdmmKbGvgaNxQSJr7bGVSVk5S9Eq1F+ppbRo70+YeaDxkw5Dd8NPN+GD6bjnYm2VuPuCXmpuYvmCXQ=="],
|
||||||
|
|
||||||
"safe-push-apply": ["[email protected]", "", { "dependencies": { "es-errors": "^1.3.0", "isarray": "^2.0.5" } }, "sha512-iKE9w/Z7xCzUMIZqdBsp6pEQvwuEebH4vdpjcDWnyzaI6yl6O9FHvVpmGelvEHNsoY6wGblkxR6Zty/h00WiSA=="],
|
"safe-push-apply": ["[email protected]", "", { "dependencies": { "es-errors": "^1.3.0", "isarray": "^2.0.5" } }, "sha512-iKE9w/Z7xCzUMIZqdBsp6pEQvwuEebH4vdpjcDWnyzaI6yl6O9FHvVpmGelvEHNsoY6wGblkxR6Zty/h00WiSA=="],
|
||||||
|
|
||||||
"safe-regex-test": ["[email protected]", "", { "dependencies": { "call-bound": "^1.0.2", "es-errors": "^1.3.0", "is-regex": "^1.2.1" } }, "sha512-x/+Cz4YrimQxQccJf5mKEbIa1NzeCRNI5Ecl/ekmlYaampdNLPalVyIcCZNNH3MvmqBugV5TMYZXv0ljslUlaw=="],
|
"safe-regex-test": ["[email protected]", "", { "dependencies": { "call-bound": "^1.0.2", "es-errors": "^1.3.0", "is-regex": "^1.2.1" } }, "sha512-x/+Cz4YrimQxQccJf5mKEbIa1NzeCRNI5Ecl/ekmlYaampdNLPalVyIcCZNNH3MvmqBugV5TMYZXv0ljslUlaw=="],
|
||||||
|
|
||||||
"safer-buffer": ["[email protected]", "", {}, "sha512-YZo3K82SD7Riyi0E1EQPojLz7kpepnSQI9IyPbHHg1XXXevb5dJI7tpyN2ADxGcQbHG7vcyRHk0cbwqcQriUtg=="],
|
"safer-buffer": ["[email protected]", "", {}, "sha512-YZo3K82SD7Riyi0E1EQPojLz7kpepnSQI9IyPbHHg1XXXevb5dJI7tpyN2ADxGcQbHG7vcyRHk0cbwqcQriUtg=="],
|
||||||
|
|
||||||
|
"sax": ["[email protected]", "", {}, "sha512-6R3J5M4AcbtLUdZmRv2SygeVaM7IhrLXu9BmnOGmmACak8fiUtOsYNWUS4uK7upbmHIBbLBeFeI//477BKLBzA=="],
|
||||||
|
|
||||||
"scheduler": ["[email protected]", "", {}, "sha512-eNv+WrVbKu1f3vbYJT/xtiF5syA5HPIMtf9IgY/nKg0sWqzAUEvqY/xm7OcZc/qafLx/iO9FgOmeSAp4v5ti/Q=="],
|
"scheduler": ["[email protected]", "", {}, "sha512-eNv+WrVbKu1f3vbYJT/xtiF5syA5HPIMtf9IgY/nKg0sWqzAUEvqY/xm7OcZc/qafLx/iO9FgOmeSAp4v5ti/Q=="],
|
||||||
|
|
||||||
"semver": ["semver@6.3.1", "", { "bin": { "semver": "bin/semver.js" } }, "sha512-BR7VvDCVHO+q2xBEWskxS6DJE1qRnb7DxzUrogb71CWoSficBxYsiAGd+Kl0mmq/MprG9yArRkyrQxTO6XjMzA=="],
|
"semver": ["semver@7.8.5", "", { "bin": { "semver": "bin/semver.js" } }, "sha512-Y7/KDsb8LjooZpwaqGyulO6DQlksgCncchHGk+sZIY4SBvUocMBEFH5Ur1fI4dV+Jvl0w6cjvucaIi40puRioA=="],
|
||||||
|
|
||||||
"send": ["[email protected]", "", { "dependencies": { "debug": "^4.4.3", "encodeurl": "^2.0.0", "escape-html": "^1.0.3", "etag": "^1.8.1", "fresh": "^2.0.0", "http-errors": "^2.0.1", "mime-types": "^3.0.2", "ms": "^2.1.3", "on-finished": "^2.4.1", "range-parser": "^1.2.1", "statuses": "^2.0.2" } }, "sha512-1gnZf7DFcoIcajTjTwjwuDjzuz4PPcY2StKPlsGAQ1+YH20IRVrBaXSWmdjowTJ6u8Rc01PoYOGHXfP1mYcZNQ=="],
|
"send": ["[email protected]", "", { "dependencies": { "debug": "^4.4.3", "encodeurl": "^2.0.0", "escape-html": "^1.0.3", "etag": "^1.8.1", "fresh": "^2.0.0", "http-errors": "^2.0.1", "mime-types": "^3.0.2", "ms": "^2.1.3", "on-finished": "^2.4.1", "range-parser": "^1.2.1", "statuses": "^2.0.2" } }, "sha512-1gnZf7DFcoIcajTjTwjwuDjzuz4PPcY2StKPlsGAQ1+YH20IRVrBaXSWmdjowTJ6u8Rc01PoYOGHXfP1mYcZNQ=="],
|
||||||
|
|
||||||
@@ -1373,7 +1417,7 @@
|
|||||||
|
|
||||||
"shadcn": ["[email protected]", "", { "dependencies": { "@babel/core": "^7.28.0", "@babel/parser": "^7.28.0", "@babel/plugin-transform-typescript": "^7.28.0", "@babel/preset-typescript": "^7.27.1", "@dotenvx/dotenvx": "^1.48.4", "@modelcontextprotocol/sdk": "^1.26.0", "@types/validate-npm-package-name": "^4.0.2", "browserslist": "^4.26.2", "commander": "^14.0.0", "cosmiconfig": "^9.0.0", "dedent": "^1.6.0", "deepmerge": "^4.3.1", "diff": "^8.0.2", "execa": "^9.6.0", "fast-glob": "^3.3.3", "fs-extra": "^11.3.1", "fuzzysort": "^3.1.0", "https-proxy-agent": "^7.0.6", "kleur": "^4.1.5", "node-fetch": "^3.3.2", "open": "^11.0.0", "ora": "^8.2.0", "postcss": "^8.5.6", "postcss-selector-parser": "^7.1.0", "prompts": "^2.4.2", "recast": "^0.23.11", "stringify-object": "^5.0.0", "tailwind-merge": "^3.0.1", "ts-morph": "^26.0.0", "tsconfig-paths": "^4.2.0", "validate-npm-package-name": "^7.0.1", "zod": "^3.24.1", "zod-to-json-schema": "^3.24.6" }, "bin": { "shadcn": "dist/index.js" } }, "sha512-UV0cchFea9hO7poV1CuEP0wvmYjpAqcxCKdy23bndl2Du2ARtDs8A4xdzfhUjDBeOW1nNpJ6lXmsEpsply2SfQ=="],
|
"shadcn": ["[email protected]", "", { "dependencies": { "@babel/core": "^7.28.0", "@babel/parser": "^7.28.0", "@babel/plugin-transform-typescript": "^7.28.0", "@babel/preset-typescript": "^7.27.1", "@dotenvx/dotenvx": "^1.48.4", "@modelcontextprotocol/sdk": "^1.26.0", "@types/validate-npm-package-name": "^4.0.2", "browserslist": "^4.26.2", "commander": "^14.0.0", "cosmiconfig": "^9.0.0", "dedent": "^1.6.0", "deepmerge": "^4.3.1", "diff": "^8.0.2", "execa": "^9.6.0", "fast-glob": "^3.3.3", "fs-extra": "^11.3.1", "fuzzysort": "^3.1.0", "https-proxy-agent": "^7.0.6", "kleur": "^4.1.5", "node-fetch": "^3.3.2", "open": "^11.0.0", "ora": "^8.2.0", "postcss": "^8.5.6", "postcss-selector-parser": "^7.1.0", "prompts": "^2.4.2", "recast": "^0.23.11", "stringify-object": "^5.0.0", "tailwind-merge": "^3.0.1", "ts-morph": "^26.0.0", "tsconfig-paths": "^4.2.0", "validate-npm-package-name": "^7.0.1", "zod": "^3.24.1", "zod-to-json-schema": "^3.24.6" }, "bin": { "shadcn": "dist/index.js" } }, "sha512-UV0cchFea9hO7poV1CuEP0wvmYjpAqcxCKdy23bndl2Du2ARtDs8A4xdzfhUjDBeOW1nNpJ6lXmsEpsply2SfQ=="],
|
||||||
|
|
||||||
"sharp": ["[email protected]4.5", "", { "dependencies": { "@img/colour": "^1.0.0", "detect-libc": "^2.1.2", "semver": "^7.7.3" }, "optionalDependencies": { "@img/sharp-darwin-arm64": "0.34.5", "@img/sharp-darwin-x64": "0.34.5", "@img/sharp-libvips-darwin-arm64": "1.2.4", "@img/sharp-libvips-darwin-x64": "1.2.4", "@img/sharp-libvips-linux-arm": "1.2.4", "@img/sharp-libvips-linux-arm64": "1.2.4", "@img/sharp-libvips-linux-ppc64": "1.2.4", "@img/sharp-libvips-linux-riscv64": "1.2.4", "@img/sharp-libvips-linux-s390x": "1.2.4", "@img/sharp-libvips-linux-x64": "1.2.4", "@img/sharp-libvips-linuxmusl-arm64": "1.2.4", "@img/sharp-libvips-linuxmusl-x64": "1.2.4", "@img/sharp-linux-arm": "0.34.5", "@img/sharp-linux-arm64": "0.34.5", "@img/sharp-linux-ppc64": "0.34.5", "@img/sharp-linux-riscv64": "0.34.5", "@img/sharp-linux-s390x": "0.34.5", "@img/sharp-linux-x64": "0.34.5", "@img/sharp-linuxmusl-arm64": "0.34.5", "@img/sharp-linuxmusl-x64": "0.34.5", "@img/sharp-wasm32": "0.34.5", "@img/sharp-win32-arm64": "0.34.5", "@img/sharp-win32-ia32": "0.34.5", "@img/sharp-win32-x64": "0.34.5" } }, "sha512-Ou9I5Ft9WNcCbXrU9cMgPBcCK8LiwLqcbywW3t4oDV37n1pzpuNLsYiAV8eODnjbtQlSDwZ2cUEeQz4E54Hltg=="],
|
"sharp": ["[email protected]5.3", "", { "dependencies": { "@img/colour": "^1.1.0", "detect-libc": "^2.1.2", "semver": "^7.8.5" }, "optionalDependencies": { "@img/sharp-darwin-arm64": "0.35.3", "@img/sharp-darwin-x64": "0.35.3", "@img/sharp-freebsd-wasm32": "0.35.3", "@img/sharp-libvips-darwin-arm64": "1.3.2", "@img/sharp-libvips-darwin-x64": "1.3.2", "@img/sharp-libvips-linux-arm": "1.3.2", "@img/sharp-libvips-linux-arm64": "1.3.2", "@img/sharp-libvips-linux-ppc64": "1.3.2", "@img/sharp-libvips-linux-riscv64": "1.3.2", "@img/sharp-libvips-linux-s390x": "1.3.2", "@img/sharp-libvips-linux-x64": "1.3.2", "@img/sharp-libvips-linuxmusl-arm64": "1.3.2", "@img/sharp-libvips-linuxmusl-x64": "1.3.2", "@img/sharp-linux-arm": "0.35.3", "@img/sharp-linux-arm64": "0.35.3", "@img/sharp-linux-ppc64": "0.35.3", "@img/sharp-linux-riscv64": "0.35.3", "@img/sharp-linux-s390x": "0.35.3", "@img/sharp-linux-x64": "0.35.3", "@img/sharp-linuxmusl-arm64": "0.35.3", "@img/sharp-linuxmusl-x64": "0.35.3", "@img/sharp-webcontainers-wasm32": "0.35.3", "@img/sharp-win32-arm64": "0.35.3", "@img/sharp-win32-ia32": "0.35.3", "@img/sharp-win32-x64": "0.35.3" } }, "sha512-ej0zVHuZGHCiABXcNxeYhpRnPNPAcvbG8RMdBAhDAxLKkCRVSpK3Iyu7qbqw3JMzoj0REeM6f3tJLtVwl0023Q=="],
|
||||||
|
|
||||||
"shebang-command": ["[email protected]", "", { "dependencies": { "shebang-regex": "^3.0.0" } }, "sha512-kHxr2zZpYtdmrN1qDjrrX/Z1rR1kG8Dx+gkpK1G4eXmvXswmcE1hTWBWYUzlraYw1/yZp6YuDY77YtvbN0dmDA=="],
|
"shebang-command": ["[email protected]", "", { "dependencies": { "shebang-regex": "^3.0.0" } }, "sha512-kHxr2zZpYtdmrN1qDjrrX/Z1rR1kG8Dx+gkpK1G4eXmvXswmcE1hTWBWYUzlraYw1/yZp6YuDY77YtvbN0dmDA=="],
|
||||||
|
|
||||||
@@ -1397,6 +1441,8 @@
|
|||||||
|
|
||||||
"source-map-js": ["[email protected]", "", {}, "sha512-UXWMKhLOwVKb728IUtQPXxfYU+usdybtUrK/8uGE8CQMvrhOpwvzDBwj0QhSL7MQc7vIsISBG8VQ8+IDQxpfQA=="],
|
"source-map-js": ["[email protected]", "", {}, "sha512-UXWMKhLOwVKb728IUtQPXxfYU+usdybtUrK/8uGE8CQMvrhOpwvzDBwj0QhSL7MQc7vIsISBG8VQ8+IDQxpfQA=="],
|
||||||
|
|
||||||
|
"split-on-first": ["[email protected]", "", {}, "sha512-43ZssAJaMusuKWL8sKUBQXHWOpq8d6CfN/u1p4gUzfJkM05C8rxTmYrkIPTXapZpORA6LkkzcUulJ8FqA7Uudw=="],
|
||||||
|
|
||||||
"split2": ["[email protected]", "", {}, "sha512-UcjcJOWknrNkF6PLX83qcHM6KHgVKNkV62Y8a5uYDVv9ydGQVwAHMKqHdJje1VTWpljG0WYpCDhrCdAOYH4TWg=="],
|
"split2": ["[email protected]", "", {}, "sha512-UcjcJOWknrNkF6PLX83qcHM6KHgVKNkV62Y8a5uYDVv9ydGQVwAHMKqHdJje1VTWpljG0WYpCDhrCdAOYH4TWg=="],
|
||||||
|
|
||||||
"sqlstring": ["[email protected]", "", {}, "sha512-qC9iz2FlN7DQl3+wjwn3802RTyjCx7sDvfQEXchwa6CWOx07/WVfh91gBmQ9fahw8snwGEWU3xGzOt4tFyHLxg=="],
|
"sqlstring": ["[email protected]", "", {}, "sha512-qC9iz2FlN7DQl3+wjwn3802RTyjCx7sDvfQEXchwa6CWOx07/WVfh91gBmQ9fahw8snwGEWU3xGzOt4tFyHLxg=="],
|
||||||
@@ -1411,6 +1457,12 @@
|
|||||||
|
|
||||||
"stop-iteration-iterator": ["[email protected]", "", { "dependencies": { "es-errors": "^1.3.0", "internal-slot": "^1.1.0" } }, "sha512-eLoXW/DHyl62zxY4SCaIgnRhuMr6ri4juEYARS8E6sCEqzKpOiE521Ucofdx+KnDZl5xmvGYaaKCk5FEOxJCoQ=="],
|
"stop-iteration-iterator": ["[email protected]", "", { "dependencies": { "es-errors": "^1.3.0", "internal-slot": "^1.1.0" } }, "sha512-eLoXW/DHyl62zxY4SCaIgnRhuMr6ri4juEYARS8E6sCEqzKpOiE521Ucofdx+KnDZl5xmvGYaaKCk5FEOxJCoQ=="],
|
||||||
|
|
||||||
|
"stream-chain": ["[email protected]", "", {}, "sha512-1TJmBx6aSWqZ4tx7aTpBDXK0/e2hhcNSTV8+CbFJtDjbb+I1mZ8lHit0Grw9GRT+6JbIrrDd8esncgBi8aBXGA=="],
|
||||||
|
|
||||||
|
"stream-json": ["[email protected]", "", { "dependencies": { "stream-chain": "^2.2.5" } }, "sha512-uWkjJ+2Nt/LO9Z/JyKZbMusL8Dkh97uUBTv3AJQ74y07lVahLY4eEFsPsE97pxYBwr8nnjMAIch5eqI0gPShyw=="],
|
||||||
|
|
||||||
|
"strict-uri-encode": ["[email protected]", "", {}, "sha512-QwiXZgpRcKkhTj2Scnn++4PKtWsH0kpzZ62L2R6c/LUVYv7hVnZqcg2+sMuT6R7Jusu1vviK/MFsu6kNJfWlEQ=="],
|
||||||
|
|
||||||
"string-width": ["[email protected]", "", { "dependencies": { "emoji-regex": "^10.3.0", "get-east-asian-width": "^1.0.0", "strip-ansi": "^7.1.0" } }, "sha512-tsaTIkKW9b4N+AEj+SVA+WhJzV7/zMhcSu78mLKWSk7cXMOSHsBKFWUs0fWwq8QyK3MgJBQRX6Gbi4kYbdvGkQ=="],
|
"string-width": ["[email protected]", "", { "dependencies": { "emoji-regex": "^10.3.0", "get-east-asian-width": "^1.0.0", "strip-ansi": "^7.1.0" } }, "sha512-tsaTIkKW9b4N+AEj+SVA+WhJzV7/zMhcSu78mLKWSk7cXMOSHsBKFWUs0fWwq8QyK3MgJBQRX6Gbi4kYbdvGkQ=="],
|
||||||
|
|
||||||
"string.prototype.includes": ["[email protected]", "", { "dependencies": { "call-bind": "^1.0.7", "define-properties": "^1.2.1", "es-abstract": "^1.23.3" } }, "sha512-o7+c9bW6zpAdJHTtujeePODAhkuicdAryFsfVKwA+wGw89wJ4GTY484WTucM9hLtDEOpOvI+aHnzqnC5lHp4Rg=="],
|
"string.prototype.includes": ["[email protected]", "", { "dependencies": { "call-bind": "^1.0.7", "define-properties": "^1.2.1", "es-abstract": "^1.23.3" } }, "sha512-o7+c9bW6zpAdJHTtujeePODAhkuicdAryFsfVKwA+wGw89wJ4GTY484WTucM9hLtDEOpOvI+aHnzqnC5lHp4Rg=="],
|
||||||
@@ -1425,6 +1477,8 @@
|
|||||||
|
|
||||||
"string.prototype.trimstart": ["[email protected]", "", { "dependencies": { "call-bind": "^1.0.7", "define-properties": "^1.2.1", "es-object-atoms": "^1.0.0" } }, "sha512-UXSH262CSZY1tfu3G3Secr6uGLCFVPMhIqHjlgCUtCCcgihYc/xKs9djMTMUOb2j1mVSeU8EU6NWc/iQKU6Gfg=="],
|
"string.prototype.trimstart": ["[email protected]", "", { "dependencies": { "call-bind": "^1.0.7", "define-properties": "^1.2.1", "es-object-atoms": "^1.0.0" } }, "sha512-UXSH262CSZY1tfu3G3Secr6uGLCFVPMhIqHjlgCUtCCcgihYc/xKs9djMTMUOb2j1mVSeU8EU6NWc/iQKU6Gfg=="],
|
||||||
|
|
||||||
|
"string_decoder": ["[email protected]", "", { "dependencies": { "safe-buffer": "~5.2.0" } }, "sha512-hkRX8U1WjJFd8LsDJ2yQ/wWWxaopEsABU1XfkM8A+j0+85JAGppt16cr1Whg6KIbb4okU6Mql6BOj+uup/wKeA=="],
|
||||||
|
|
||||||
"stringify-object": ["[email protected]", "", { "dependencies": { "get-own-enumerable-keys": "^1.0.0", "is-obj": "^3.0.0", "is-regexp": "^3.1.0" } }, "sha512-zaJYxz2FtcMb4f+g60KsRNFOpVMUyuJgA51Zi5Z1DOTC3S59+OQiVOzE9GZt0x72uBGWKsQIuBKeF9iusmKFsg=="],
|
"stringify-object": ["[email protected]", "", { "dependencies": { "get-own-enumerable-keys": "^1.0.0", "is-obj": "^3.0.0", "is-regexp": "^3.1.0" } }, "sha512-zaJYxz2FtcMb4f+g60KsRNFOpVMUyuJgA51Zi5Z1DOTC3S59+OQiVOzE9GZt0x72uBGWKsQIuBKeF9iusmKFsg=="],
|
||||||
|
|
||||||
"strip-ansi": ["[email protected]", "", { "dependencies": { "ansi-regex": "^6.2.2" } }, "sha512-yDPMNjp4WyfYBkHnjIRLfca1i6KMyGCtsVgoKe/z1+6vukgaENdgGBZt+ZmKPc4gavvEZ5OgHfHdrazhgNyG7w=="],
|
"strip-ansi": ["[email protected]", "", { "dependencies": { "ansi-regex": "^6.2.2" } }, "sha512-yDPMNjp4WyfYBkHnjIRLfca1i6KMyGCtsVgoKe/z1+6vukgaENdgGBZt+ZmKPc4gavvEZ5OgHfHdrazhgNyG7w=="],
|
||||||
@@ -1435,6 +1489,8 @@
|
|||||||
|
|
||||||
"strip-json-comments": ["[email protected]", "", {}, "sha512-6fPc+R4ihwqP6N/aIv2f1gMH8lOVtWQHoqC4yK6oSDVVocumAsfCqjkXnqiYMhmMwS/mEHLp7Vehlt3ql6lEig=="],
|
"strip-json-comments": ["[email protected]", "", {}, "sha512-6fPc+R4ihwqP6N/aIv2f1gMH8lOVtWQHoqC4yK6oSDVVocumAsfCqjkXnqiYMhmMwS/mEHLp7Vehlt3ql6lEig=="],
|
||||||
|
|
||||||
|
"strnum": ["[email protected]", "", { "dependencies": { "anynum": "^1.0.1" } }, "sha512-M9eUSMT2dCB2cTNPG7UYj6KuK7RJR2SN2+yCV/fTW3xzTCS6EaGZ5pSMgDIjB7r8zSfTGk+dvvn9rTjpVS9Mwg=="],
|
||||||
|
|
||||||
"styled-jsx": ["[email protected]", "", { "dependencies": { "client-only": "0.0.1" }, "peerDependencies": { "react": ">= 16.8.0 || 17.x.x || ^18.0.0-0 || ^19.0.0-0" } }, "sha512-qSVyDTeMotdvQYoHWLNGwRFJHC+i+ZvdBRYosOFgC+Wg1vx4frN2/RG/NA7SYqqvKNLf39P2LSRA2pu6n0XYZA=="],
|
"styled-jsx": ["[email protected]", "", { "dependencies": { "client-only": "0.0.1" }, "peerDependencies": { "react": ">= 16.8.0 || 17.x.x || ^18.0.0-0 || ^19.0.0-0" } }, "sha512-qSVyDTeMotdvQYoHWLNGwRFJHC+i+ZvdBRYosOFgC+Wg1vx4frN2/RG/NA7SYqqvKNLf39P2LSRA2pu6n0XYZA=="],
|
||||||
|
|
||||||
"supports-color": ["[email protected]", "", { "dependencies": { "has-flag": "^4.0.0" } }, "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw=="],
|
"supports-color": ["[email protected]", "", { "dependencies": { "has-flag": "^4.0.0" } }, "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw=="],
|
||||||
@@ -1449,6 +1505,8 @@
|
|||||||
|
|
||||||
"tapable": ["[email protected]", "", {}, "sha512-uxc/zpqFg6x7C8vOE7lh6Lbda8eEL9zmVm/PLeTPBRhh1xCgdWaQ+J1CUieGpIfm2HdtsUpRv+HshiasBMcc6A=="],
|
"tapable": ["[email protected]", "", {}, "sha512-uxc/zpqFg6x7C8vOE7lh6Lbda8eEL9zmVm/PLeTPBRhh1xCgdWaQ+J1CUieGpIfm2HdtsUpRv+HshiasBMcc6A=="],
|
||||||
|
|
||||||
|
"through2": ["[email protected]", "", { "dependencies": { "readable-stream": "3" } }, "sha512-iOqSav00cVxEEICeD7TjLB1sueEL+81Wpzp2bY17uZjZN0pWZPuo4suZ/61VujxmqSGFfgOcNuTZ85QJwNZQpw=="],
|
||||||
|
|
||||||
"tiny-invariant": ["[email protected]", "", {}, "sha512-+FbBPE1o9QAYvviau/qC5SE3caw21q3xkvWKBtja5vgqOWIHHJ3ioaq1VPfn/Szqctz2bU/oYeKd9/z5BL+PVg=="],
|
"tiny-invariant": ["[email protected]", "", {}, "sha512-+FbBPE1o9QAYvviau/qC5SE3caw21q3xkvWKBtja5vgqOWIHHJ3ioaq1VPfn/Szqctz2bU/oYeKd9/z5BL+PVg=="],
|
||||||
|
|
||||||
"tinyglobby": ["[email protected]", "", { "dependencies": { "fdir": "^6.5.0", "picomatch": "^4.0.4" } }, "sha512-wXR/dYpcqKmfWpEdZjiKJOwCNFndD0DMnrW/cYjVGttEkBfVgcLFHoNrlj47mjOVic9yyNu65alsgF4NQyTa2g=="],
|
"tinyglobby": ["[email protected]", "", { "dependencies": { "fdir": "^6.5.0", "picomatch": "^4.0.4" } }, "sha512-wXR/dYpcqKmfWpEdZjiKJOwCNFndD0DMnrW/cYjVGttEkBfVgcLFHoNrlj47mjOVic9yyNu65alsgF4NQyTa2g=="],
|
||||||
@@ -1533,6 +1591,12 @@
|
|||||||
|
|
||||||
"wsl-utils": ["[email protected]", "", { "dependencies": { "is-wsl": "^3.1.0", "powershell-utils": "^0.1.0" } }, "sha512-g/eziiSUNBSsdDJtCLB8bdYEUMj4jR7AGeUo96p/3dTafgjHhpF4RiCFPiRILwjQoDXx5MqkBr4fwWtR3Ky4Wg=="],
|
"wsl-utils": ["[email protected]", "", { "dependencies": { "is-wsl": "^3.1.0", "powershell-utils": "^0.1.0" } }, "sha512-g/eziiSUNBSsdDJtCLB8bdYEUMj4jR7AGeUo96p/3dTafgjHhpF4RiCFPiRILwjQoDXx5MqkBr4fwWtR3Ky4Wg=="],
|
||||||
|
|
||||||
|
"xml-naming": ["[email protected]", "", {}, "sha512-k8KO9hrMyNk6tUWqUfkTEZbezRRpONVOzUTnc97VnCvyj6Tf9lyUR9EDAIeiVLv56jsMcoXEwjW8Kv5yPY52lw=="],
|
||||||
|
|
||||||
|
"xml2js": ["[email protected]", "", { "dependencies": { "sax": ">=0.6.0", "xmlbuilder": "~11.0.0" } }, "sha512-T4rieHaC1EXcES0Kxxj4JWgaUQHDk+qwHcYOCFHfiwKz7tOVPLq7Hjq9dM1WCMhylqMEfP7hMcOIChvotiZegA=="],
|
||||||
|
|
||||||
|
"xmlbuilder": ["[email protected]", "", {}, "sha512-fDlsI/kFEx7gLvbecc0/ohLG50fugQp8ryHzMTuW9vSa1GJ0XYWKnhsUx7oie3G98+r56aTQIUB4kht42R3JvA=="],
|
||||||
|
|
||||||
"xtend": ["[email protected]", "", {}, "sha512-LKYU1iAXJXUgAXn9URjiu+MWhyUXHsvfp7mcuYm9dSUKK0/CjtrUwFAxD82/mCWbtLsGjFIad0wIsod4zrTAEQ=="],
|
"xtend": ["[email protected]", "", {}, "sha512-LKYU1iAXJXUgAXn9URjiu+MWhyUXHsvfp7mcuYm9dSUKK0/CjtrUwFAxD82/mCWbtLsGjFIad0wIsod4zrTAEQ=="],
|
||||||
|
|
||||||
"yallist": ["[email protected]", "", {}, "sha512-a4UGQaWPH59mOXUYnAG2ewncQS4i4F43Tv3JoAM+s2VDAmS9NsK8GpDMLrCHPksFT7h3K6TOoUNn2pb7RoXx4g=="],
|
"yallist": ["[email protected]", "", {}, "sha512-a4UGQaWPH59mOXUYnAG2ewncQS4i4F43Tv3JoAM+s2VDAmS9NsK8GpDMLrCHPksFT7h3K6TOoUNn2pb7RoXx4g=="],
|
||||||
@@ -1551,6 +1615,12 @@
|
|||||||
|
|
||||||
"zod-validation-error": ["[email protected]", "", { "peerDependencies": { "zod": "^3.25.0 || ^4.0.0" } }, "sha512-Q6/nZLe6jxuU80qb/4uJ4t5v2VEZ44lzQjPDhYJNztRQ4wyWc6VF3D3Kb/fAuPetZQnhS3hnajCf9CsWesghLQ=="],
|
"zod-validation-error": ["[email protected]", "", { "peerDependencies": { "zod": "^3.25.0 || ^4.0.0" } }, "sha512-Q6/nZLe6jxuU80qb/4uJ4t5v2VEZ44lzQjPDhYJNztRQ4wyWc6VF3D3Kb/fAuPetZQnhS3hnajCf9CsWesghLQ=="],
|
||||||
|
|
||||||
|
"@babel/core/semver": ["[email protected]", "", { "bin": { "semver": "bin/semver.js" } }, "sha512-BR7VvDCVHO+q2xBEWskxS6DJE1qRnb7DxzUrogb71CWoSficBxYsiAGd+Kl0mmq/MprG9yArRkyrQxTO6XjMzA=="],
|
||||||
|
|
||||||
|
"@babel/helper-compilation-targets/semver": ["[email protected]", "", { "bin": { "semver": "bin/semver.js" } }, "sha512-BR7VvDCVHO+q2xBEWskxS6DJE1qRnb7DxzUrogb71CWoSficBxYsiAGd+Kl0mmq/MprG9yArRkyrQxTO6XjMzA=="],
|
||||||
|
|
||||||
|
"@babel/helper-create-class-features-plugin/semver": ["[email protected]", "", { "bin": { "semver": "bin/semver.js" } }, "sha512-BR7VvDCVHO+q2xBEWskxS6DJE1qRnb7DxzUrogb71CWoSficBxYsiAGd+Kl0mmq/MprG9yArRkyrQxTO6XjMzA=="],
|
||||||
|
|
||||||
"@dotenvx/dotenvx/commander": ["[email protected]", "", {}, "sha512-yPVavfyCcRhmorC7rWlkHn15b4wDVgVmBA7kV4QVBsF7kv/9TKJAbAXVTxvTnwP8HHKjRCJDClKbciiYS7p0DQ=="],
|
"@dotenvx/dotenvx/commander": ["[email protected]", "", {}, "sha512-yPVavfyCcRhmorC7rWlkHn15b4wDVgVmBA7kV4QVBsF7kv/9TKJAbAXVTxvTnwP8HHKjRCJDClKbciiYS7p0DQ=="],
|
||||||
|
|
||||||
"@dotenvx/dotenvx/execa": ["[email protected]", "", { "dependencies": { "cross-spawn": "^7.0.3", "get-stream": "^6.0.0", "human-signals": "^2.1.0", "is-stream": "^2.0.0", "merge-stream": "^2.0.0", "npm-run-path": "^4.0.1", "onetime": "^5.1.2", "signal-exit": "^3.0.3", "strip-final-newline": "^2.0.0" } }, "sha512-8uSpZZocAZRBAPIEINJj3Lo9HyGitllczc27Eh5YYojjMFMn8yHMDMaUHE2Jqfq05D/wucwI4JGURyXt1vchyg=="],
|
"@dotenvx/dotenvx/execa": ["[email protected]", "", { "dependencies": { "cross-spawn": "^7.0.3", "get-stream": "^6.0.0", "human-signals": "^2.1.0", "is-stream": "^2.0.0", "merge-stream": "^2.0.0", "npm-run-path": "^4.0.1", "onetime": "^5.1.2", "signal-exit": "^3.0.3", "strip-final-newline": "^2.0.0" } }, "sha512-8uSpZZocAZRBAPIEINJj3Lo9HyGitllczc27Eh5YYojjMFMn8yHMDMaUHE2Jqfq05D/wucwI4JGURyXt1vchyg=="],
|
||||||
@@ -1563,6 +1633,10 @@
|
|||||||
|
|
||||||
"@eslint/eslintrc/globals": ["[email protected]", "", {}, "sha512-oahGvuMGQlPw/ivIYBjVSrWAfWLBeku5tpPE2fOPLi+WHffIWbuh2tCjhyQhTBPMf5E9jDEH4FOmTYgYwbKwtQ=="],
|
"@eslint/eslintrc/globals": ["[email protected]", "", {}, "sha512-oahGvuMGQlPw/ivIYBjVSrWAfWLBeku5tpPE2fOPLi+WHffIWbuh2tCjhyQhTBPMf5E9jDEH4FOmTYgYwbKwtQ=="],
|
||||||
|
|
||||||
|
"@img/sharp-freebsd-wasm32/@img/sharp-wasm32": ["@img/[email protected]", "", { "dependencies": { "@emnapi/runtime": "^1.11.1" } }, "sha512-cZ0XkcYGpHZkqW6iCkqTcmUC0CD9DhD5d/qeZlZkfRBn6GnHniZXLUo5+9xw8Iv76YE6LQFN9YNBlKREcCG76w=="],
|
||||||
|
|
||||||
|
"@img/sharp-webcontainers-wasm32/@img/sharp-wasm32": ["@img/[email protected]", "", { "dependencies": { "@emnapi/runtime": "^1.11.1" } }, "sha512-cZ0XkcYGpHZkqW6iCkqTcmUC0CD9DhD5d/qeZlZkfRBn6GnHniZXLUo5+9xw8Iv76YE6LQFN9YNBlKREcCG76w=="],
|
||||||
|
|
||||||
"@modelcontextprotocol/sdk/@hono/node-server": ["@hono/[email protected]", "", { "peerDependencies": { "hono": "^4" } }, "sha512-GwtvgtXxnWsucXvbQXkRgqksiH2Qed37H9xHZocE5sA3N8O8O8/8FA3uclQXxXVzc9XBZuEOMK7+r02FmSpHtw=="],
|
"@modelcontextprotocol/sdk/@hono/node-server": ["@hono/[email protected]", "", { "peerDependencies": { "hono": "^4" } }, "sha512-GwtvgtXxnWsucXvbQXkRgqksiH2Qed37H9xHZocE5sA3N8O8O8/8FA3uclQXxXVzc9XBZuEOMK7+r02FmSpHtw=="],
|
||||||
|
|
||||||
"@modelcontextprotocol/sdk/ajv": ["[email protected]", "", { "dependencies": { "fast-deep-equal": "^3.1.3", "fast-uri": "^3.0.1", "json-schema-traverse": "^1.0.0", "require-from-string": "^2.0.2" } }, "sha512-Thbli+OlOj+iMPYFBVBfJ3OmCAnaSyNn4M1vz9T6Gka5Jt9ba/HIR56joy65tY6kx/FCF5VXNB819Y7/GUrBGA=="],
|
"@modelcontextprotocol/sdk/ajv": ["[email protected]", "", { "dependencies": { "fast-deep-equal": "^3.1.3", "fast-uri": "^3.0.1", "json-schema-traverse": "^1.0.0", "require-from-string": "^2.0.2" } }, "sha512-Thbli+OlOj+iMPYFBVBfJ3OmCAnaSyNn4M1vz9T6Gka5Jt9ba/HIR56joy65tY6kx/FCF5VXNB819Y7/GUrBGA=="],
|
||||||
@@ -1605,6 +1679,8 @@
|
|||||||
|
|
||||||
"@unrs/resolver-binding-wasm32-wasi/@emnapi/runtime": ["@emnapi/[email protected]", "", { "dependencies": { "tslib": "^2.4.0" } }, "sha512-ewvYlk86xUoGI0zQRNq/mC+16R1QeDlKQy21Ki3oSYXNgLb45GV1P6A0M+/s6nyCuNDqe5VpaY84BzXGwVbwFA=="],
|
"@unrs/resolver-binding-wasm32-wasi/@emnapi/runtime": ["@emnapi/[email protected]", "", { "dependencies": { "tslib": "^2.4.0" } }, "sha512-ewvYlk86xUoGI0zQRNq/mC+16R1QeDlKQy21Ki3oSYXNgLb45GV1P6A0M+/s6nyCuNDqe5VpaY84BzXGwVbwFA=="],
|
||||||
|
|
||||||
|
"accepts/mime-types": ["[email protected]", "", { "dependencies": { "mime-db": "^1.54.0" } }, "sha512-Lbgzdk0h4juoQ9fCKXW4by0UJqj+nOOrI9MJ1sSj4nI8aI2eo1qmvQEie4VD1glsS250n15LsWsYtCugiStS5A=="],
|
||||||
|
|
||||||
"ajv-formats/ajv": ["[email protected]", "", { "dependencies": { "fast-deep-equal": "^3.1.3", "fast-uri": "^3.0.1", "json-schema-traverse": "^1.0.0", "require-from-string": "^2.0.2" } }, "sha512-Thbli+OlOj+iMPYFBVBfJ3OmCAnaSyNn4M1vz9T6Gka5Jt9ba/HIR56joy65tY6kx/FCF5VXNB819Y7/GUrBGA=="],
|
"ajv-formats/ajv": ["[email protected]", "", { "dependencies": { "fast-deep-equal": "^3.1.3", "fast-uri": "^3.0.1", "json-schema-traverse": "^1.0.0", "require-from-string": "^2.0.2" } }, "sha512-Thbli+OlOj+iMPYFBVBfJ3OmCAnaSyNn4M1vz9T6Gka5Jt9ba/HIR56joy65tY6kx/FCF5VXNB819Y7/GUrBGA=="],
|
||||||
|
|
||||||
"body-parser/content-type": ["[email protected]", "", {}, "sha512-j/O/d7GcZCyNl7/hwZAb606rzqkyvaDctLmckbxLzHvFBzTJHuGEdodATcP3yIRoDrLHkIATJuvzbFlp/ki2cQ=="],
|
"body-parser/content-type": ["[email protected]", "", {}, "sha512-j/O/d7GcZCyNl7/hwZAb606rzqkyvaDctLmckbxLzHvFBzTJHuGEdodATcP3yIRoDrLHkIATJuvzbFlp/ki2cQ=="],
|
||||||
@@ -1627,8 +1703,14 @@
|
|||||||
|
|
||||||
"eslint-plugin-import/debug": ["[email protected]", "", { "dependencies": { "ms": "^2.1.1" } }, "sha512-CFjzYYAi4ThfiQvizrFQevTTXHtnCqWfe7x1AhgEscTz6ZbLbfoLRLPugTQyBth6f8ZERVUSyWHFD/7Wu4t1XQ=="],
|
"eslint-plugin-import/debug": ["[email protected]", "", { "dependencies": { "ms": "^2.1.1" } }, "sha512-CFjzYYAi4ThfiQvizrFQevTTXHtnCqWfe7x1AhgEscTz6ZbLbfoLRLPugTQyBth6f8ZERVUSyWHFD/7Wu4t1XQ=="],
|
||||||
|
|
||||||
|
"eslint-plugin-import/semver": ["[email protected]", "", { "bin": { "semver": "bin/semver.js" } }, "sha512-BR7VvDCVHO+q2xBEWskxS6DJE1qRnb7DxzUrogb71CWoSficBxYsiAGd+Kl0mmq/MprG9yArRkyrQxTO6XjMzA=="],
|
||||||
|
|
||||||
"eslint-plugin-import/tsconfig-paths": ["[email protected]", "", { "dependencies": { "@types/json5": "^0.0.29", "json5": "^1.0.2", "minimist": "^1.2.6", "strip-bom": "^3.0.0" } }, "sha512-2Ac2RgzDe/cn48GvOe3M+o82pEFewD3UPbyoUHHdKasHwJKjds4fLXWf/Ux5kATBKN20oaFGu+jbElp1pos0mg=="],
|
"eslint-plugin-import/tsconfig-paths": ["[email protected]", "", { "dependencies": { "@types/json5": "^0.0.29", "json5": "^1.0.2", "minimist": "^1.2.6", "strip-bom": "^3.0.0" } }, "sha512-2Ac2RgzDe/cn48GvOe3M+o82pEFewD3UPbyoUHHdKasHwJKjds4fLXWf/Ux5kATBKN20oaFGu+jbElp1pos0mg=="],
|
||||||
|
|
||||||
|
"eslint-plugin-react/semver": ["[email protected]", "", { "bin": { "semver": "bin/semver.js" } }, "sha512-BR7VvDCVHO+q2xBEWskxS6DJE1qRnb7DxzUrogb71CWoSficBxYsiAGd+Kl0mmq/MprG9yArRkyrQxTO6XjMzA=="],
|
||||||
|
|
||||||
|
"express/mime-types": ["[email protected]", "", { "dependencies": { "mime-db": "^1.54.0" } }, "sha512-Lbgzdk0h4juoQ9fCKXW4by0UJqj+nOOrI9MJ1sSj4nI8aI2eo1qmvQEie4VD1glsS250n15LsWsYtCugiStS5A=="],
|
||||||
|
|
||||||
"fast-glob/glob-parent": ["[email protected]", "", { "dependencies": { "is-glob": "^4.0.1" } }, "sha512-AOIgSQCepiJYwP3ARnGx+5VnTu2HBYdzbGP45eLw1vr3zB3vZLeyed1sC9hnbcOc9/SrMyM5RPQrkGz4aS9Zow=="],
|
"fast-glob/glob-parent": ["[email protected]", "", { "dependencies": { "is-glob": "^4.0.1" } }, "sha512-AOIgSQCepiJYwP3ARnGx+5VnTu2HBYdzbGP45eLw1vr3zB3vZLeyed1sC9hnbcOc9/SrMyM5RPQrkGz4aS9Zow=="],
|
||||||
|
|
||||||
"is-bun-module/semver": ["[email protected]", "", { "bin": { "semver": "bin/semver.js" } }, "sha512-rUCObTnP32Q08R2uuIrt7r9PlEonuTmtuXYcW6s5kjdlj3xbnwe+21yXptAUYcMAABLkYYTtnmzb3w3EDZfueA=="],
|
"is-bun-module/semver": ["[email protected]", "", { "bin": { "semver": "bin/semver.js" } }, "sha512-rUCObTnP32Q08R2uuIrt7r9PlEonuTmtuXYcW6s5kjdlj3xbnwe+21yXptAUYcMAABLkYYTtnmzb3w3EDZfueA=="],
|
||||||
@@ -1643,6 +1725,10 @@
|
|||||||
|
|
||||||
"next/postcss": ["[email protected]", "", { "dependencies": { "nanoid": "^3.3.6", "picocolors": "^1.0.0", "source-map-js": "^1.0.2" } }, "sha512-PS08Iboia9mts/2ygV3eLpY5ghnUcfLV/EXTOW1E2qYxJKGGBUtNjN76FYHnMs36RmARn41bC0AZmn+rR0OVpQ=="],
|
"next/postcss": ["[email protected]", "", { "dependencies": { "nanoid": "^3.3.6", "picocolors": "^1.0.0", "source-map-js": "^1.0.2" } }, "sha512-PS08Iboia9mts/2ygV3eLpY5ghnUcfLV/EXTOW1E2qYxJKGGBUtNjN76FYHnMs36RmARn41bC0AZmn+rR0OVpQ=="],
|
||||||
|
|
||||||
|
"next/sharp": ["[email protected]", "", { "dependencies": { "@img/colour": "^1.0.0", "detect-libc": "^2.1.2", "semver": "^7.7.3" }, "optionalDependencies": { "@img/sharp-darwin-arm64": "0.34.5", "@img/sharp-darwin-x64": "0.34.5", "@img/sharp-libvips-darwin-arm64": "1.2.4", "@img/sharp-libvips-darwin-x64": "1.2.4", "@img/sharp-libvips-linux-arm": "1.2.4", "@img/sharp-libvips-linux-arm64": "1.2.4", "@img/sharp-libvips-linux-ppc64": "1.2.4", "@img/sharp-libvips-linux-riscv64": "1.2.4", "@img/sharp-libvips-linux-s390x": "1.2.4", "@img/sharp-libvips-linux-x64": "1.2.4", "@img/sharp-libvips-linuxmusl-arm64": "1.2.4", "@img/sharp-libvips-linuxmusl-x64": "1.2.4", "@img/sharp-linux-arm": "0.34.5", "@img/sharp-linux-arm64": "0.34.5", "@img/sharp-linux-ppc64": "0.34.5", "@img/sharp-linux-riscv64": "0.34.5", "@img/sharp-linux-s390x": "0.34.5", "@img/sharp-linux-x64": "0.34.5", "@img/sharp-linuxmusl-arm64": "0.34.5", "@img/sharp-linuxmusl-x64": "0.34.5", "@img/sharp-wasm32": "0.34.5", "@img/sharp-win32-arm64": "0.34.5", "@img/sharp-win32-ia32": "0.34.5", "@img/sharp-win32-x64": "0.34.5" } }, "sha512-Ou9I5Ft9WNcCbXrU9cMgPBcCK8LiwLqcbywW3t4oDV37n1pzpuNLsYiAV8eODnjbtQlSDwZ2cUEeQz4E54Hltg=="],
|
||||||
|
|
||||||
|
"node-exports-info/semver": ["[email protected]", "", { "bin": { "semver": "bin/semver.js" } }, "sha512-BR7VvDCVHO+q2xBEWskxS6DJE1qRnb7DxzUrogb71CWoSficBxYsiAGd+Kl0mmq/MprG9yArRkyrQxTO6XjMzA=="],
|
||||||
|
|
||||||
"npm-run-path/path-key": ["[email protected]", "", {}, "sha512-haREypq7xkM7ErfgIyA0z+Bj4AGKlMSdlQE2jvJo6huWD1EdkKYV+G/T4nq0YEF2vgTT8kqMFKo1uHn950r4SQ=="],
|
"npm-run-path/path-key": ["[email protected]", "", {}, "sha512-haREypq7xkM7ErfgIyA0z+Bj4AGKlMSdlQE2jvJo6huWD1EdkKYV+G/T4nq0YEF2vgTT8kqMFKo1uHn950r4SQ=="],
|
||||||
|
|
||||||
"onetime/mimic-fn": ["[email protected]", "", {}, "sha512-OqbOk5oEQeAZ8WXWydlu9HJjz9WVdEIvamMCcXmuqUYjTknH/sqsWvhQ3vgwKFRR1HpjvNBKQ37nbJgYzGqGcg=="],
|
"onetime/mimic-fn": ["[email protected]", "", {}, "sha512-OqbOk5oEQeAZ8WXWydlu9HJjz9WVdEIvamMCcXmuqUYjTknH/sqsWvhQ3vgwKFRR1HpjvNBKQ37nbJgYzGqGcg=="],
|
||||||
@@ -1657,16 +1743,20 @@
|
|||||||
|
|
||||||
"proper-lockfile/signal-exit": ["[email protected]", "", {}, "sha512-wnD2ZE+l+SPC/uoS0vXeE9L1+0wuaMqKlfz9AMUo38JsyLSBWSFcHR1Rri62LZc12vLr1gb3jl7iwQhgwpAbGQ=="],
|
"proper-lockfile/signal-exit": ["[email protected]", "", {}, "sha512-wnD2ZE+l+SPC/uoS0vXeE9L1+0wuaMqKlfz9AMUo38JsyLSBWSFcHR1Rri62LZc12vLr1gb3jl7iwQhgwpAbGQ=="],
|
||||||
|
|
||||||
|
"proxy-addr/ipaddr.js": ["[email protected]", "", {}, "sha512-0KI/607xoxSToH7GjN1FfSbLoU0+btTicjsQSWQlh/hZykN8KpmMf7uYwPW3R+akZ6R/w18ZlXSHBYXiYUPO3g=="],
|
||||||
|
|
||||||
"restore-cursor/onetime": ["[email protected]", "", { "dependencies": { "mimic-function": "^5.0.0" } }, "sha512-VXJjc87FScF88uafS3JllDgvAm+c/Slfz06lorj2uAY34rlUu0Nt+v8wreiImcrgAjjIHp1rXpTDlLOGw29WwQ=="],
|
"restore-cursor/onetime": ["[email protected]", "", { "dependencies": { "mimic-function": "^5.0.0" } }, "sha512-VXJjc87FScF88uafS3JllDgvAm+c/Slfz06lorj2uAY34rlUu0Nt+v8wreiImcrgAjjIHp1rXpTDlLOGw29WwQ=="],
|
||||||
|
|
||||||
"shadcn/zod": ["[email protected]", "", {}, "sha512-gzUt/qt81nXsFGKIFcC3YnfEAx5NkunCfnDlvuBSSFS02bcXu4Lmea0AFIUwbLWxWPx3d9p8S5QoaujKcNQxcQ=="],
|
"send/mime-types": ["[email protected]", "", { "dependencies": { "mime-db": "^1.54.0" } }, "sha512-Lbgzdk0h4juoQ9fCKXW4by0UJqj+nOOrI9MJ1sSj4nI8aI2eo1qmvQEie4VD1glsS250n15LsWsYtCugiStS5A=="],
|
||||||
|
|
||||||
"sharp/semver": ["[email protected]", "", { "bin": { "semver": "bin/semver.js" } }, "sha512-rUCObTnP32Q08R2uuIrt7r9PlEonuTmtuXYcW6s5kjdlj3xbnwe+21yXptAUYcMAABLkYYTtnmzb3w3EDZfueA=="],
|
"shadcn/zod": ["[email protected]", "", {}, "sha512-gzUt/qt81nXsFGKIFcC3YnfEAx5NkunCfnDlvuBSSFS02bcXu4Lmea0AFIUwbLWxWPx3d9p8S5QoaujKcNQxcQ=="],
|
||||||
|
|
||||||
"string-width/emoji-regex": ["[email protected]", "", {}, "sha512-toUI84YS5YmxW219erniWD0CIVOo46xGKColeNQRgOzDorgBi1v4D71/OFzgD9GO2UGKIv1C3Sp8DAn0+j5w7A=="],
|
"string-width/emoji-regex": ["[email protected]", "", {}, "sha512-toUI84YS5YmxW219erniWD0CIVOo46xGKColeNQRgOzDorgBi1v4D71/OFzgD9GO2UGKIv1C3Sp8DAn0+j5w7A=="],
|
||||||
|
|
||||||
"type-is/content-type": ["[email protected]", "", {}, "sha512-j/O/d7GcZCyNl7/hwZAb606rzqkyvaDctLmckbxLzHvFBzTJHuGEdodATcP3yIRoDrLHkIATJuvzbFlp/ki2cQ=="],
|
"type-is/content-type": ["[email protected]", "", {}, "sha512-j/O/d7GcZCyNl7/hwZAb606rzqkyvaDctLmckbxLzHvFBzTJHuGEdodATcP3yIRoDrLHkIATJuvzbFlp/ki2cQ=="],
|
||||||
|
|
||||||
|
"type-is/mime-types": ["[email protected]", "", { "dependencies": { "mime-db": "^1.54.0" } }, "sha512-Lbgzdk0h4juoQ9fCKXW4by0UJqj+nOOrI9MJ1sSj4nI8aI2eo1qmvQEie4VD1glsS250n15LsWsYtCugiStS5A=="],
|
||||||
|
|
||||||
"wsl-utils/is-wsl": ["[email protected]", "", { "dependencies": { "is-inside-container": "^1.0.0" } }, "sha512-e6rvdUCiQCAuumZslxRJWR/Doq4VpPR82kqclvcS0efgt430SlGIk05vdCN58+VrzgtIcfNODjozVielycD4Sw=="],
|
"wsl-utils/is-wsl": ["[email protected]", "", { "dependencies": { "is-inside-container": "^1.0.0" } }, "sha512-e6rvdUCiQCAuumZslxRJWR/Doq4VpPR82kqclvcS0efgt430SlGIk05vdCN58+VrzgtIcfNODjozVielycD4Sw=="],
|
||||||
|
|
||||||
"@dotenvx/dotenvx/execa/get-stream": ["[email protected]", "", {}, "sha512-ts6Wi+2j3jQjqi70w5AlN8DFnkSwC+MqmxEzdEALB2qXZYV3X/b1CTfgPLGJNMeAWxdPfU8FO1ms3NUfaHCPYg=="],
|
"@dotenvx/dotenvx/execa/get-stream": ["[email protected]", "", {}, "sha512-ts6Wi+2j3jQjqi70w5AlN8DFnkSwC+MqmxEzdEALB2qXZYV3X/b1CTfgPLGJNMeAWxdPfU8FO1ms3NUfaHCPYg=="],
|
||||||
@@ -1701,6 +1791,8 @@
|
|||||||
|
|
||||||
"@typescript-eslint/typescript-estree/minimatch/brace-expansion": ["[email protected]", "", { "dependencies": { "balanced-match": "^4.0.2" } }, "sha512-kLpxurY4Z4r9sgMsyG0Z9uzsBlgiU/EFKhj/h91/8yHu0edo7XuixOIH3VcJ8kkxs6/jPzoI6U9Vj3WqbMQ94g=="],
|
"@typescript-eslint/typescript-estree/minimatch/brace-expansion": ["[email protected]", "", { "dependencies": { "balanced-match": "^4.0.2" } }, "sha512-kLpxurY4Z4r9sgMsyG0Z9uzsBlgiU/EFKhj/h91/8yHu0edo7XuixOIH3VcJ8kkxs6/jPzoI6U9Vj3WqbMQ94g=="],
|
||||||
|
|
||||||
|
"accepts/mime-types/mime-db": ["[email protected]", "", {}, "sha512-aU5EJuIN2WDemCcAp2vFBfp/m4EAhWJnUNSSw0ixs7/kXbd6Pg64EmwJkNdFhB8aWt1sH2CTXrLxo/iAGV3oPQ=="],
|
||||||
|
|
||||||
"ajv-formats/ajv/json-schema-traverse": ["[email protected]", "", {}, "sha512-NM8/P9n3XjXhIZn1lLhkFaACTOURQXjWhV4BA/RnOv8xvgqtqpAX9IO4mRQxSx1Rlo4tqzeqb0sOlruaOy3dug=="],
|
"ajv-formats/ajv/json-schema-traverse": ["[email protected]", "", {}, "sha512-NM8/P9n3XjXhIZn1lLhkFaACTOURQXjWhV4BA/RnOv8xvgqtqpAX9IO4mRQxSx1Rlo4tqzeqb0sOlruaOy3dug=="],
|
||||||
|
|
||||||
"conf/ajv/json-schema-traverse": ["[email protected]", "", {}, "sha512-NM8/P9n3XjXhIZn1lLhkFaACTOURQXjWhV4BA/RnOv8xvgqtqpAX9IO4mRQxSx1Rlo4tqzeqb0sOlruaOy3dug=="],
|
"conf/ajv/json-schema-traverse": ["[email protected]", "", {}, "sha512-NM8/P9n3XjXhIZn1lLhkFaACTOURQXjWhV4BA/RnOv8xvgqtqpAX9IO4mRQxSx1Rlo4tqzeqb0sOlruaOy3dug=="],
|
||||||
@@ -1709,8 +1801,62 @@
|
|||||||
|
|
||||||
"eslint-plugin-import/tsconfig-paths/json5": ["[email protected]", "", { "dependencies": { "minimist": "^1.2.0" }, "bin": { "json5": "lib/cli.js" } }, "sha512-g1MWMLBiz8FKi1e4w0UyVL3w+iJceWAFBAaBnnGKOpNa5f8TLktkbre1+s6oICydWAm+HRUGTmI+//xv2hvXYA=="],
|
"eslint-plugin-import/tsconfig-paths/json5": ["[email protected]", "", { "dependencies": { "minimist": "^1.2.0" }, "bin": { "json5": "lib/cli.js" } }, "sha512-g1MWMLBiz8FKi1e4w0UyVL3w+iJceWAFBAaBnnGKOpNa5f8TLktkbre1+s6oICydWAm+HRUGTmI+//xv2hvXYA=="],
|
||||||
|
|
||||||
|
"express/mime-types/mime-db": ["[email protected]", "", {}, "sha512-aU5EJuIN2WDemCcAp2vFBfp/m4EAhWJnUNSSw0ixs7/kXbd6Pg64EmwJkNdFhB8aWt1sH2CTXrLxo/iAGV3oPQ=="],
|
||||||
|
|
||||||
|
"next/sharp/@img/sharp-darwin-arm64": ["@img/[email protected]", "", { "optionalDependencies": { "@img/sharp-libvips-darwin-arm64": "1.2.4" }, "os": "darwin", "cpu": "arm64" }, "sha512-imtQ3WMJXbMY4fxb/Ndp6HBTNVtWCUI0WdobyheGf5+ad6xX8VIDO8u2xE4qc/fr08CKG/7dDseFtn6M6g/r3w=="],
|
||||||
|
|
||||||
|
"next/sharp/@img/sharp-darwin-x64": ["@img/[email protected]", "", { "optionalDependencies": { "@img/sharp-libvips-darwin-x64": "1.2.4" }, "os": "darwin", "cpu": "x64" }, "sha512-YNEFAF/4KQ/PeW0N+r+aVVsoIY0/qxxikF2SWdp+NRkmMB7y9LBZAVqQ4yhGCm/H3H270OSykqmQMKLBhBJDEw=="],
|
||||||
|
|
||||||
|
"next/sharp/@img/sharp-libvips-darwin-arm64": ["@img/[email protected]", "", { "os": "darwin", "cpu": "arm64" }, "sha512-zqjjo7RatFfFoP0MkQ51jfuFZBnVE2pRiaydKJ1G/rHZvnsrHAOcQALIi9sA5co5xenQdTugCvtb1cuf78Vf4g=="],
|
||||||
|
|
||||||
|
"next/sharp/@img/sharp-libvips-darwin-x64": ["@img/[email protected]", "", { "os": "darwin", "cpu": "x64" }, "sha512-1IOd5xfVhlGwX+zXv2N93k0yMONvUlANylbJw1eTah8K/Jtpi15KC+WSiaX/nBmbm2HxRM1gZ0nSdjSsrZbGKg=="],
|
||||||
|
|
||||||
|
"next/sharp/@img/sharp-libvips-linux-arm": ["@img/[email protected]", "", { "os": "linux", "cpu": "arm" }, "sha512-bFI7xcKFELdiNCVov8e44Ia4u2byA+l3XtsAj+Q8tfCwO6BQ8iDojYdvoPMqsKDkuoOo+X6HZA0s0q11ANMQ8A=="],
|
||||||
|
|
||||||
|
"next/sharp/@img/sharp-libvips-linux-arm64": ["@img/[email protected]", "", { "os": "linux", "cpu": "arm64" }, "sha512-excjX8DfsIcJ10x1Kzr4RcWe1edC9PquDRRPx3YVCvQv+U5p7Yin2s32ftzikXojb1PIFc/9Mt28/y+iRklkrw=="],
|
||||||
|
|
||||||
|
"next/sharp/@img/sharp-libvips-linux-ppc64": ["@img/[email protected]", "", { "os": "linux", "cpu": "ppc64" }, "sha512-FMuvGijLDYG6lW+b/UvyilUWu5Ayu+3r2d1S8notiGCIyYU/76eig1UfMmkZ7vwgOrzKzlQbFSuQfgm7GYUPpA=="],
|
||||||
|
|
||||||
|
"next/sharp/@img/sharp-libvips-linux-riscv64": ["@img/[email protected]", "", { "os": "linux", "cpu": "none" }, "sha512-oVDbcR4zUC0ce82teubSm+x6ETixtKZBh/qbREIOcI3cULzDyb18Sr/Wcyx7NRQeQzOiHTNbZFF1UwPS2scyGA=="],
|
||||||
|
|
||||||
|
"next/sharp/@img/sharp-libvips-linux-s390x": ["@img/[email protected]", "", { "os": "linux", "cpu": "s390x" }, "sha512-qmp9VrzgPgMoGZyPvrQHqk02uyjA0/QrTO26Tqk6l4ZV0MPWIW6LTkqOIov+J1yEu7MbFQaDpwdwJKhbJvuRxQ=="],
|
||||||
|
|
||||||
|
"next/sharp/@img/sharp-libvips-linux-x64": ["@img/[email protected]", "", { "os": "linux", "cpu": "x64" }, "sha512-tJxiiLsmHc9Ax1bz3oaOYBURTXGIRDODBqhveVHonrHJ9/+k89qbLl0bcJns+e4t4rvaNBxaEZsFtSfAdquPrw=="],
|
||||||
|
|
||||||
|
"next/sharp/@img/sharp-libvips-linuxmusl-arm64": ["@img/[email protected]", "", { "os": "linux", "cpu": "arm64" }, "sha512-FVQHuwx1IIuNow9QAbYUzJ+En8KcVm9Lk5+uGUQJHaZmMECZmOlix9HnH7n1TRkXMS0pGxIJokIVB9SuqZGGXw=="],
|
||||||
|
|
||||||
|
"next/sharp/@img/sharp-libvips-linuxmusl-x64": ["@img/[email protected]", "", { "os": "linux", "cpu": "x64" }, "sha512-+LpyBk7L44ZIXwz/VYfglaX/okxezESc6UxDSoyo2Ks6Jxc4Y7sGjpgU9s4PMgqgjj1gZCylTieNamqA1MF7Dg=="],
|
||||||
|
|
||||||
|
"next/sharp/@img/sharp-linux-arm": ["@img/[email protected]", "", { "optionalDependencies": { "@img/sharp-libvips-linux-arm": "1.2.4" }, "os": "linux", "cpu": "arm" }, "sha512-9dLqsvwtg1uuXBGZKsxem9595+ujv0sJ6Vi8wcTANSFpwV/GONat5eCkzQo/1O6zRIkh0m/8+5BjrRr7jDUSZw=="],
|
||||||
|
|
||||||
|
"next/sharp/@img/sharp-linux-arm64": ["@img/[email protected]", "", { "optionalDependencies": { "@img/sharp-libvips-linux-arm64": "1.2.4" }, "os": "linux", "cpu": "arm64" }, "sha512-bKQzaJRY/bkPOXyKx5EVup7qkaojECG6NLYswgktOZjaXecSAeCWiZwwiFf3/Y+O1HrauiE3FVsGxFg8c24rZg=="],
|
||||||
|
|
||||||
|
"next/sharp/@img/sharp-linux-ppc64": ["@img/[email protected]", "", { "optionalDependencies": { "@img/sharp-libvips-linux-ppc64": "1.2.4" }, "os": "linux", "cpu": "ppc64" }, "sha512-7zznwNaqW6YtsfrGGDA6BRkISKAAE1Jo0QdpNYXNMHu2+0dTrPflTLNkpc8l7MUP5M16ZJcUvysVWWrMefZquA=="],
|
||||||
|
|
||||||
|
"next/sharp/@img/sharp-linux-riscv64": ["@img/[email protected]", "", { "optionalDependencies": { "@img/sharp-libvips-linux-riscv64": "1.2.4" }, "os": "linux", "cpu": "none" }, "sha512-51gJuLPTKa7piYPaVs8GmByo7/U7/7TZOq+cnXJIHZKavIRHAP77e3N2HEl3dgiqdD/w0yUfiJnII77PuDDFdw=="],
|
||||||
|
|
||||||
|
"next/sharp/@img/sharp-linux-s390x": ["@img/[email protected]", "", { "optionalDependencies": { "@img/sharp-libvips-linux-s390x": "1.2.4" }, "os": "linux", "cpu": "s390x" }, "sha512-nQtCk0PdKfho3eC5MrbQoigJ2gd1CgddUMkabUj+rBevs8tZ2cULOx46E7oyX+04WGfABgIwmMC0VqieTiR4jg=="],
|
||||||
|
|
||||||
|
"next/sharp/@img/sharp-linux-x64": ["@img/[email protected]", "", { "optionalDependencies": { "@img/sharp-libvips-linux-x64": "1.2.4" }, "os": "linux", "cpu": "x64" }, "sha512-MEzd8HPKxVxVenwAa+JRPwEC7QFjoPWuS5NZnBt6B3pu7EG2Ge0id1oLHZpPJdn3OQK+BQDiw9zStiHBTJQQQQ=="],
|
||||||
|
|
||||||
|
"next/sharp/@img/sharp-linuxmusl-arm64": ["@img/[email protected]", "", { "optionalDependencies": { "@img/sharp-libvips-linuxmusl-arm64": "1.2.4" }, "os": "linux", "cpu": "arm64" }, "sha512-fprJR6GtRsMt6Kyfq44IsChVZeGN97gTD331weR1ex1c1rypDEABN6Tm2xa1wE6lYb5DdEnk03NZPqA7Id21yg=="],
|
||||||
|
|
||||||
|
"next/sharp/@img/sharp-linuxmusl-x64": ["@img/[email protected]", "", { "optionalDependencies": { "@img/sharp-libvips-linuxmusl-x64": "1.2.4" }, "os": "linux", "cpu": "x64" }, "sha512-Jg8wNT1MUzIvhBFxViqrEhWDGzqymo3sV7z7ZsaWbZNDLXRJZoRGrjulp60YYtV4wfY8VIKcWidjojlLcWrd8Q=="],
|
||||||
|
|
||||||
|
"next/sharp/@img/sharp-win32-arm64": ["@img/[email protected]", "", { "os": "win32", "cpu": "arm64" }, "sha512-WQ3AgWCWYSb2yt+IG8mnC6Jdk9Whs7O0gxphblsLvdhSpSTtmu69ZG1Gkb6NuvxsNACwiPV6cNSZNzt0KPsw7g=="],
|
||||||
|
|
||||||
|
"next/sharp/@img/sharp-win32-ia32": ["@img/[email protected]", "", { "os": "win32", "cpu": "ia32" }, "sha512-FV9m/7NmeCmSHDD5j4+4pNI8Cp3aW+JvLoXcTUo0IqyjSfAZJ8dIUmijx1qaJsIiU+Hosw6xM5KijAWRJCSgNg=="],
|
||||||
|
|
||||||
|
"next/sharp/@img/sharp-win32-x64": ["@img/[email protected]", "", { "os": "win32", "cpu": "x64" }, "sha512-+29YMsqY2/9eFEiW93eqWnuLcWcufowXewwSNIT6UwZdUUCrM3oFjMWH/Z6/TMmb4hlFenmfAVbpWeup2jryCw=="],
|
||||||
|
|
||||||
|
"next/sharp/semver": ["[email protected]", "", { "bin": { "semver": "bin/semver.js" } }, "sha512-rUCObTnP32Q08R2uuIrt7r9PlEonuTmtuXYcW6s5kjdlj3xbnwe+21yXptAUYcMAABLkYYTtnmzb3w3EDZfueA=="],
|
||||||
|
|
||||||
"pkg-up/find-up/locate-path": ["[email protected]", "", { "dependencies": { "p-locate": "^3.0.0", "path-exists": "^3.0.0" } }, "sha512-7AO748wWnIhNqAuaty2ZWHkQHRSNfPVIsPIfwEOWO22AmaoVrWavlOcMR5nzTLNYvp36X220/maaRsrec1G65A=="],
|
"pkg-up/find-up/locate-path": ["[email protected]", "", { "dependencies": { "p-locate": "^3.0.0", "path-exists": "^3.0.0" } }, "sha512-7AO748wWnIhNqAuaty2ZWHkQHRSNfPVIsPIfwEOWO22AmaoVrWavlOcMR5nzTLNYvp36X220/maaRsrec1G65A=="],
|
||||||
|
|
||||||
|
"send/mime-types/mime-db": ["[email protected]", "", {}, "sha512-aU5EJuIN2WDemCcAp2vFBfp/m4EAhWJnUNSSw0ixs7/kXbd6Pg64EmwJkNdFhB8aWt1sH2CTXrLxo/iAGV3oPQ=="],
|
||||||
|
|
||||||
|
"type-is/mime-types/mime-db": ["[email protected]", "", {}, "sha512-aU5EJuIN2WDemCcAp2vFBfp/m4EAhWJnUNSSw0ixs7/kXbd6Pg64EmwJkNdFhB8aWt1sH2CTXrLxo/iAGV3oPQ=="],
|
||||||
|
|
||||||
"@prisma/studio-core/@radix-ui/react-toggle/@radix-ui/react-primitive/@radix-ui/react-slot": ["@radix-ui/[email protected]", "", { "dependencies": { "@radix-ui/react-compose-refs": "1.1.2" }, "peerDependencies": { "@types/react": "*", "react": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc" }, "optionalPeers": ["@types/react"] }, "sha512-aeNmHnBxbi2St0au6VBVC7JXFlhLlOnvIIlePNniyUNAClzmtAUEY8/pBiK3iHjufOlwA+c20/8jngo7xcrg8A=="],
|
"@prisma/studio-core/@radix-ui/react-toggle/@radix-ui/react-primitive/@radix-ui/react-slot": ["@radix-ui/[email protected]", "", { "dependencies": { "@radix-ui/react-compose-refs": "1.1.2" }, "peerDependencies": { "@types/react": "*", "react": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc" }, "optionalPeers": ["@types/react"] }, "sha512-aeNmHnBxbi2St0au6VBVC7JXFlhLlOnvIIlePNniyUNAClzmtAUEY8/pBiK3iHjufOlwA+c20/8jngo7xcrg8A=="],
|
||||||
|
|
||||||
"@prisma/studio-core/@radix-ui/react-toggle/@radix-ui/react-use-controllable-state/@radix-ui/react-use-effect-event": ["@radix-ui/[email protected]", "", { "dependencies": { "@radix-ui/react-use-layout-effect": "1.1.1" }, "peerDependencies": { "@types/react": "*", "react": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc" }, "optionalPeers": ["@types/react"] }, "sha512-Qp8WbZOBe+blgpuUT+lw2xheLP8q0oatc9UpmiemEICxGvFLYmHm9QowVZGHtJlGbS6A6yJ3iViad/2cVjnOiA=="],
|
"@prisma/studio-core/@radix-ui/react-toggle/@radix-ui/react-use-controllable-state/@radix-ui/react-use-effect-event": ["@radix-ui/[email protected]", "", { "dependencies": { "@radix-ui/react-use-layout-effect": "1.1.1" }, "peerDependencies": { "@types/react": "*", "react": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc" }, "optionalPeers": ["@types/react"] }, "sha512-Qp8WbZOBe+blgpuUT+lw2xheLP8q0oatc9UpmiemEICxGvFLYmHm9QowVZGHtJlGbS6A6yJ3iViad/2cVjnOiA=="],
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
import { IdentityCardData } from "@/lib/id/repository";
|
import { IdentityCardData } from "@/lib/id/repository";
|
||||||
import { formatDate } from "@/lib/utils";
|
import { cn, formatDate } from "@/lib/utils";
|
||||||
import Image from "next/image";
|
import Image from "next/image";
|
||||||
import { Button } from "./ui/button";
|
import { Button } from "./ui/button";
|
||||||
import { Menu } from "lucide-react";
|
import { Menu } from "lucide-react";
|
||||||
@@ -24,7 +24,6 @@ const DIALOG_FIELDS: DialogField[] = [
|
|||||||
{ key: "issueDate", label: "Date of issue" },
|
{ key: "issueDate", label: "Date of issue" },
|
||||||
{ key: "expiryDate", label: "Date of expiry" },
|
{ key: "expiryDate", label: "Date of expiry" },
|
||||||
{ key: "issuingCountry", label: "Issuing country" },
|
{ key: "issuingCountry", label: "Issuing country" },
|
||||||
{ key: "origin", label: "Place of origin" },
|
|
||||||
{ key: "height", label: "Height" },
|
{ key: "height", label: "Height" },
|
||||||
{ key: "eyeColor", label: "Eye color" },
|
{ key: "eyeColor", label: "Eye color" },
|
||||||
];
|
];
|
||||||
@@ -38,25 +37,38 @@ function formatFieldValue(key: keyof IdentityCardData, value: unknown) {
|
|||||||
return String(value);
|
return String(value);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
function expiryDateClass(date: Date): string {
|
||||||
|
const now = new Date();
|
||||||
|
if (date < now) return "text-red-600";
|
||||||
|
|
||||||
|
const warningThreshold = new Date(now);
|
||||||
|
warningThreshold.setDate(warningThreshold.getDate() + 90);
|
||||||
|
if (date <= warningThreshold) return "text-yellow-600";
|
||||||
|
|
||||||
|
return "";
|
||||||
|
}
|
||||||
|
|
||||||
function CardPattern() {
|
function CardPattern() {
|
||||||
return (
|
return (
|
||||||
<svg className="absolute inset-0 w-full h-full" aria-hidden="true">
|
<svg className="absolute inset-0 w-full h-full" aria-hidden="true">
|
||||||
<defs>
|
<defs>
|
||||||
<pattern id="id-card-waves" width="120" height="16" patternUnits="userSpaceOnUse">
|
<pattern id="identity-card-waves" width="120" height="16" patternUnits="userSpaceOnUse">
|
||||||
<path d="M0 8 Q15 2 30 8 T60 8 T90 8 T120 8" fill="none" stroke="#bfdbfe" strokeWidth="1" />
|
<path d="M0 8 Q15 2 30 8 T60 8 T90 8 T120 8" fill="none" stroke="#bfdbfe" strokeWidth="1" />
|
||||||
</pattern>
|
</pattern>
|
||||||
<pattern id="id-card-dots" width="24" height="24" patternUnits="userSpaceOnUse">
|
<pattern id="identity-card-dots" width="24" height="24" patternUnits="userSpaceOnUse">
|
||||||
<circle cx="4" cy="4" r="1.5" fill="white" />
|
<circle cx="4" cy="4" r="1.5" fill="white" />
|
||||||
<circle cx="16" cy="14" r="1.5" fill="white" />
|
<circle cx="16" cy="14" r="1.5" fill="white" />
|
||||||
</pattern>
|
</pattern>
|
||||||
</defs>
|
</defs>
|
||||||
<rect width="100%" height="100%" fill="url(#id-card-waves)" />
|
<rect width="100%" height="100%" fill="url(#identity-card-waves)" />
|
||||||
<rect width="100%" height="100%" fill="url(#id-card-dots)" />
|
<rect width="100%" height="100%" fill="url(#identity-card-dots)" />
|
||||||
</svg>
|
</svg>
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
export default function IdCard({ data }: { data: IdentityCardData }) {
|
export default function IdentityCard({ data }: { data: IdentityCardData }) {
|
||||||
|
const expiryClass = expiryDateClass(data.expiryDate);
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<div className="relative w-96 bg-blue-50 rounded-lg p-4 overflow-hidden">
|
<div className="relative w-96 bg-blue-50 rounded-lg p-4 overflow-hidden">
|
||||||
<CardPattern />
|
<CardPattern />
|
||||||
@@ -77,7 +89,7 @@ export default function IdCard({ data }: { data: IdentityCardData }) {
|
|||||||
<DialogHeader>
|
<DialogHeader>
|
||||||
<div className="flex flex-row gap-3">
|
<div className="flex flex-row gap-3">
|
||||||
<div className="relative w-12 h-14 shrink-0 rounded overflow-hidden">
|
<div className="relative w-12 h-14 shrink-0 rounded overflow-hidden">
|
||||||
<Image src="/profile.png" fill alt="Profile" className="object-cover" />
|
<img src={data.profileUrl} alt="Profile" className="object-cover" />
|
||||||
</div>
|
</div>
|
||||||
<div className="flex flex-col gap-0 justify-center">
|
<div className="flex flex-col gap-0 justify-center">
|
||||||
<DialogTitle asChild>
|
<DialogTitle asChild>
|
||||||
@@ -91,7 +103,14 @@ export default function IdCard({ data }: { data: IdentityCardData }) {
|
|||||||
{DIALOG_FIELDS.map(({ key, label }) => (
|
{DIALOG_FIELDS.map(({ key, label }) => (
|
||||||
<div className="flex flex-col" key={key}>
|
<div className="flex flex-col" key={key}>
|
||||||
<h5 className="text-blue-500">{label}</h5>
|
<h5 className="text-blue-500">{label}</h5>
|
||||||
<h4 className="leading-6">{formatFieldValue(key, data[key])}</h4>
|
<h4
|
||||||
|
className={cn(
|
||||||
|
"leading-6",
|
||||||
|
key === "expiryDate" && expiryClass
|
||||||
|
)}
|
||||||
|
>
|
||||||
|
{formatFieldValue(key, data[key])}
|
||||||
|
</h4>
|
||||||
</div>
|
</div>
|
||||||
))}
|
))}
|
||||||
<div className="flex flex-col col-span-2">
|
<div className="flex flex-col col-span-2">
|
||||||
@@ -104,12 +123,12 @@ export default function IdCard({ data }: { data: IdentityCardData }) {
|
|||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div className="flex flex-row gap-8 mt-4">
|
<div className="flex flex-row gap-8 mt-4">
|
||||||
<div className="flex flex-col gap-4 w-24 shrink-0">
|
<div className="flex flex-col gap-8 w-24 shrink-0">
|
||||||
<div className="relative w-24 h-28 shrink-0">
|
<div className="relative w-24 h-28 shrink-0">
|
||||||
<Image src="/profile.png" fill alt="Profile" className="object-cover" />
|
<img src={data.profileUrl} alt="Profile" className="object-cover" />
|
||||||
</div>
|
</div>
|
||||||
<div className="relative w-24 h-12 shrink-0">
|
<div className="relative w-24 h-12 shrink-0">
|
||||||
<Image src="/signature.png" fill alt="Signature" className="object-contain" />
|
<img src={data.signatureUrl} alt="Signature" className="object-contain" />
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div className="flex flex-col gap-2">
|
<div className="flex flex-col gap-2">
|
||||||
@@ -150,7 +169,7 @@ export default function IdCard({ data }: { data: IdentityCardData }) {
|
|||||||
</div>
|
</div>
|
||||||
<div className="flex flex-col min-w-fit">
|
<div className="flex flex-col min-w-fit">
|
||||||
<h5 className="text-blue-500">Date of expiry</h5>
|
<h5 className="text-blue-500">Date of expiry</h5>
|
||||||
<h4>{formatDate(data.expiryDate)}</h4>
|
<h4 className={cn(expiryClass)}>{formatDate(data.expiryDate)}</h4>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
@@ -0,0 +1,23 @@
|
|||||||
|
"use client";
|
||||||
|
|
||||||
|
import { useTransition } from "react";
|
||||||
|
import { toast } from "sonner";
|
||||||
|
import type { ActionResult } from "@/lib/action-result";
|
||||||
|
|
||||||
|
export function useAction<Args extends unknown[], T>(action: (...args: Args) => Promise<ActionResult<T>>, options?: { successMessage?: string; onSuccess?: (data: T) => void }) {
|
||||||
|
const [isPending, startTransition] = useTransition();
|
||||||
|
|
||||||
|
function run(...args: Args) {
|
||||||
|
startTransition(async () => {
|
||||||
|
const result = await action(...args);
|
||||||
|
if (result.success) {
|
||||||
|
if (options?.successMessage) toast.success(options.successMessage);
|
||||||
|
options?.onSuccess?.(result.data);
|
||||||
|
} else {
|
||||||
|
toast.error(result.error);
|
||||||
|
}
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
|
return { run, isPending };
|
||||||
|
}
|
||||||
@@ -0,0 +1,12 @@
|
|||||||
|
export type ActionResult<T = void> =
|
||||||
|
| { success: true; data: T }
|
||||||
|
| { success: false; error: string; fieldErrors?: Record<string, string[]> };
|
||||||
|
|
||||||
|
|
||||||
|
export class AppError extends Error {
|
||||||
|
fieldErrors?: Record<string, string[]>;
|
||||||
|
constructor(message: string, fieldErrors?: Record<string, string[]>) {
|
||||||
|
super(message);
|
||||||
|
this.fieldErrors = fieldErrors;
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -0,0 +1,19 @@
|
|||||||
|
export function formatEuAddress(street: string, city: string, regionName: string): string {
|
||||||
|
return `${street}, ${city}, ${regionName}, EU`;
|
||||||
|
}
|
||||||
|
|
||||||
|
export function formatAddress(options: {
|
||||||
|
isEuResident: boolean;
|
||||||
|
street?: string | null;
|
||||||
|
city?: string | null;
|
||||||
|
regionName?: string | null;
|
||||||
|
customAddress?: string | null;
|
||||||
|
}): string {
|
||||||
|
const { isEuResident, street, city, regionName, customAddress } = options;
|
||||||
|
|
||||||
|
if (isEuResident && street && city && regionName) {
|
||||||
|
return formatEuAddress(street, city, regionName);
|
||||||
|
}
|
||||||
|
|
||||||
|
return customAddress ?? "";
|
||||||
|
}
|
||||||
+117
-80
@@ -1,16 +1,17 @@
|
|||||||
"use server";
|
"use server";
|
||||||
|
|
||||||
import { getCurrentUser } from "@/lib/user";
|
|
||||||
import { redirect } from "next/navigation";
|
|
||||||
import { revalidatePath } from "next/cache";
|
import { revalidatePath } from "next/cache";
|
||||||
|
import { redirect } from "next/navigation";
|
||||||
|
import { requireUser, requireAdmin } from "@/lib/user/require";
|
||||||
|
import { runAction, isPrismaError } from "@/lib/run-action";
|
||||||
|
import { AppError, type ActionResult } from "@/lib/action-result";
|
||||||
|
import { formAction } from "@/lib/form-action";
|
||||||
import { citizenshipApplicationSchema } from "./validation";
|
import { citizenshipApplicationSchema } from "./validation";
|
||||||
import { createApplication } from "./repository";
|
import { createApplication, getActiveCitizenship, getApplicationEligibility } from "./repository";
|
||||||
import { prisma } from "../prisma";
|
import { prisma } from "../prisma";
|
||||||
|
import { formatAddress } from "@/lib/address";
|
||||||
export type ApplicationState = {
|
import { Prisma } from "@/lib/generated/prisma/client";
|
||||||
success: boolean;
|
import { uploadImage } from "../image";
|
||||||
errors: string[];
|
|
||||||
};
|
|
||||||
|
|
||||||
function generateDocumentNumber(): string {
|
function generateDocumentNumber(): string {
|
||||||
const letter = () => String.fromCharCode(65 + Math.floor(Math.random() * 26));
|
const letter = () => String.fromCharCode(65 + Math.floor(Math.random() * 26));
|
||||||
@@ -18,117 +19,153 @@ function generateDocumentNumber(): string {
|
|||||||
return `${letter()}${digits}${letter()}`;
|
return `${letter()}${digits}${letter()}`;
|
||||||
}
|
}
|
||||||
|
|
||||||
export async function submitCitizenshipApplication(
|
async function createIdentityDocument(
|
||||||
_prevState: ApplicationState,
|
tx: Prisma.TransactionClient,
|
||||||
formData: FormData
|
data: {
|
||||||
): Promise<ApplicationState> {
|
citizenshipId: string;
|
||||||
const user = await getCurrentUser();
|
address: string;
|
||||||
if (!user) redirect("/");
|
regionId: string | null;
|
||||||
|
city: string | null;
|
||||||
|
street: string | null;
|
||||||
|
customAddress: string | null;
|
||||||
|
issuedAt: Date;
|
||||||
|
expiresAt: Date;
|
||||||
|
}
|
||||||
|
) {
|
||||||
|
const maxAttempts = 5;
|
||||||
|
for (let attempt = 0; attempt < maxAttempts; attempt++) {
|
||||||
|
try {
|
||||||
|
return await tx.identityDocument.create({ data: { ...data, documentNumber: generateDocumentNumber() } });
|
||||||
|
} catch (error) {
|
||||||
|
if (!isPrismaError(error, "P2002") || attempt === maxAttempts - 1) throw error;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
throw new Error("Failed to generate a unique document number");
|
||||||
|
}
|
||||||
|
|
||||||
const applicationType = formData.get("applicationType") as string;
|
export const submitCitizenshipApplication = formAction(citizenshipApplicationSchema,
|
||||||
const isEuResident = formData.get("isEuResident") as string;
|
async (data) => {
|
||||||
|
const user = await requireUser();
|
||||||
|
|
||||||
const raw: Record<string, string> = {
|
const eligibility = await getApplicationEligibility(user.id, user.birthDate);
|
||||||
applicationType,
|
if (!eligibility.eligible) throw new AppError(eligibility.reason!);
|
||||||
height: (formData.get("height") as string) ?? "",
|
|
||||||
eyeColor: (formData.get("eyeColor") as string) ?? "",
|
|
||||||
isEuResident,
|
|
||||||
regionId: (formData.get("regionId") as string) ?? "",
|
|
||||||
city: (formData.get("city") as string) ?? "",
|
|
||||||
street: (formData.get("street") as string) ?? "",
|
|
||||||
customAddress: (formData.get("customAddress") as string) ?? "",
|
|
||||||
};
|
|
||||||
|
|
||||||
if (applicationType === "PREVIOUS_CITIZENSHIP") {
|
const isEuResidentYes = data.isEuResident === "yes";
|
||||||
raw.previousCountry = (formData.get("previousCountry") as string) ?? "";
|
const { profile, signature, isEuResident, ...applicationData } = data;
|
||||||
raw.previousRegion = (formData.get("previousRegion") as string) ?? "";
|
let regionName: string | null = null;
|
||||||
} else if (applicationType === "NATURALIZATION") {
|
|
||||||
raw.naturalizationReason = (formData.get("naturalizationReason") as string) ?? "";
|
if (isEuResidentYes) {
|
||||||
|
const region = await prisma.region.findUnique({ where: { id: data.regionId } });
|
||||||
|
if (!region) {
|
||||||
|
throw new AppError("Selected region is invalid.", { regionId: ["Selected region is invalid."] });
|
||||||
|
}
|
||||||
|
regionName = region.name;
|
||||||
}
|
}
|
||||||
|
|
||||||
const parsed = citizenshipApplicationSchema.safeParse(raw);
|
const address = formatAddress({
|
||||||
if (!parsed.success) {
|
isEuResident: isEuResidentYes,
|
||||||
const fieldErrors = parsed.error.flatten().fieldErrors ?? {};
|
street: data.street,
|
||||||
const messages = Object.values(fieldErrors).flat().filter(Boolean);
|
city: data.city,
|
||||||
return { success: false, errors: messages };
|
regionName,
|
||||||
}
|
customAddress: data.customAddress,
|
||||||
|
});
|
||||||
|
|
||||||
const { isEuResident: _, regionId, city, street, customAddress, ...applicationData } = parsed.data;
|
const profileKey = await uploadImage(profile, "citizenship/profiles");
|
||||||
|
const signatureKey = await uploadImage(signature, "citizenship/signatures");
|
||||||
const address = _ === "yes"
|
|
||||||
? `${street}, ${city}, ${regionId}, EU`
|
|
||||||
: customAddress!;
|
|
||||||
|
|
||||||
await createApplication(user.id, {
|
await createApplication(user.id, {
|
||||||
surname: user.secondName,
|
surname: user.secondName,
|
||||||
givenNames: user.firstName,
|
givenNames: user.firstName,
|
||||||
sex: user.sex,
|
sex: user.sex,
|
||||||
birthDate: user.birthDate ?? new Date(),
|
birthDate: user.birthDate!,
|
||||||
...applicationData,
|
...applicationData,
|
||||||
address,
|
address,
|
||||||
regionId: _ === "yes" ? regionId : null,
|
regionId: isEuResidentYes ? data.regionId! : null,
|
||||||
city: _ === "yes" ? city : null,
|
city: isEuResidentYes ? data.city! : null,
|
||||||
street: _ === "yes" ? street : null,
|
street: isEuResidentYes ? data.street! : null,
|
||||||
customAddress: _ === "yes" ? null : customAddress,
|
customAddress: isEuResidentYes ? null : data.customAddress!,
|
||||||
|
profileKey,
|
||||||
|
signatureKey
|
||||||
});
|
});
|
||||||
|
|
||||||
revalidatePath("/account/citizenship");
|
revalidatePath("/account/citizenship");
|
||||||
return { success: true, errors: [] };
|
redirect("/account/citizenship");
|
||||||
}
|
}
|
||||||
|
);
|
||||||
|
|
||||||
export async function approveApplication(id: string) {
|
export async function approveApplication(id: string): Promise<ActionResult> {
|
||||||
const user = await getCurrentUser();
|
return runAction(async () => {
|
||||||
if (!user) redirect("/");
|
const user = await requireAdmin();
|
||||||
|
|
||||||
const application = await prisma.citizenshipApplication.update({
|
const application = await prisma.citizenshipApplication.findUnique({ where: { id } });
|
||||||
where: { id },
|
if (!application) throw new AppError("Application not found.");
|
||||||
data: {
|
if (application.status !== "PENDING") throw new AppError("This application is no longer pending review.");
|
||||||
status: "APPROVED",
|
if (application.userId === user.id) throw new AppError("You cannot approve your own application.");
|
||||||
reviewedAt: new Date(),
|
|
||||||
reviewedBy: user.id,
|
|
||||||
},
|
|
||||||
});
|
|
||||||
|
|
||||||
const citizenship = await prisma.citizenship.create({
|
const existingCitizenship = await prisma.citizenship.findUnique({ where: { userId: application.userId } });
|
||||||
data: {
|
if (existingCitizenship && !existingCitizenship.revokedAt) {
|
||||||
userId: application.userId,
|
throw new AppError("This applicant is already a citizen.");
|
||||||
applicationId: application.id,
|
}
|
||||||
},
|
|
||||||
});
|
|
||||||
|
|
||||||
const now = new Date();
|
const now = new Date();
|
||||||
const expiresAt = new Date(now);
|
const expiresAt = new Date(now);
|
||||||
expiresAt.setFullYear(expiresAt.getFullYear() + 10);
|
expiresAt.setFullYear(expiresAt.getFullYear() + 10);
|
||||||
|
|
||||||
await prisma.identityDocument.create({
|
await prisma.$transaction(async (tx) => {
|
||||||
data: {
|
await tx.citizenshipApplication.update({
|
||||||
|
where: { id, status: "PENDING" },
|
||||||
|
data: { status: "APPROVED", reviewedAt: now, reviewedBy: user.id },
|
||||||
|
});
|
||||||
|
|
||||||
|
const citizenship = await tx.citizenship.create({
|
||||||
|
data: { userId: application.userId, applicationId: application.id },
|
||||||
|
});
|
||||||
|
|
||||||
|
await createIdentityDocument(tx, {
|
||||||
citizenshipId: citizenship.id,
|
citizenshipId: citizenship.id,
|
||||||
documentNumber: generateDocumentNumber(),
|
address: application.address,
|
||||||
regionId: application.regionId,
|
regionId: application.regionId,
|
||||||
city: application.city,
|
city: application.city,
|
||||||
street: application.street,
|
street: application.street,
|
||||||
customAddress: application.customAddress,
|
customAddress: application.customAddress,
|
||||||
issuedAt: now,
|
issuedAt: now,
|
||||||
expiresAt,
|
expiresAt,
|
||||||
},
|
});
|
||||||
});
|
});
|
||||||
|
|
||||||
revalidatePath("/account/citizenship/review");
|
revalidatePath("/account/citizenship/review");
|
||||||
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
export async function rejectApplication(id: string, reason: string) {
|
export async function rejectApplication(id: string, reason: string): Promise<ActionResult> {
|
||||||
const user = await getCurrentUser();
|
return runAction(async () => {
|
||||||
if (!user) redirect("/");
|
const user = await requireAdmin();
|
||||||
|
|
||||||
|
const application = await prisma.citizenshipApplication.findUnique({ where: { id } });
|
||||||
|
if (!application) throw new AppError("Application not found.");
|
||||||
|
if (application.status !== "PENDING") throw new AppError("This application is no longer pending review.");
|
||||||
|
if (application.userId === user.id) throw new AppError("You cannot reject your own application.");
|
||||||
|
|
||||||
|
const trimmedReason = reason.trim();
|
||||||
|
if (!trimmedReason) throw new AppError("A rejection reason is required.");
|
||||||
|
|
||||||
await prisma.citizenshipApplication.update({
|
await prisma.citizenshipApplication.update({
|
||||||
where: { id },
|
where: { id, status: "PENDING" },
|
||||||
data: {
|
data: { status: "REJECTED", rejectionReason: trimmedReason, reviewedAt: new Date(), reviewedBy: user.id },
|
||||||
status: "REJECTED",
|
|
||||||
rejectionReason: reason,
|
|
||||||
reviewedAt: new Date(),
|
|
||||||
reviewedBy: user.id,
|
|
||||||
},
|
|
||||||
});
|
});
|
||||||
|
|
||||||
revalidatePath("/account/citizenship/review");
|
revalidatePath("/account/citizenship/review");
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
|
export async function renounceCitizenship(): Promise<ActionResult> {
|
||||||
|
return runAction(async () => {
|
||||||
|
const user = await requireUser();
|
||||||
|
|
||||||
|
const citizenship = await getActiveCitizenship(user.id);
|
||||||
|
if (!citizenship) throw new AppError("Citizenship not found.");
|
||||||
|
|
||||||
|
await prisma.citizenship.update({ where: { id: citizenship.id }, data: { revokedAt: new Date() } });
|
||||||
|
revalidatePath("/account/citizenship");
|
||||||
|
});
|
||||||
}
|
}
|
||||||
@@ -1,5 +1,5 @@
|
|||||||
import { prisma } from "@/lib/prisma";
|
import { prisma } from "@/lib/prisma";
|
||||||
import type { ApplicationType } from "./types";
|
import type { ApplicationType, EyeColor } from "./types";
|
||||||
|
|
||||||
type CreateData = {
|
type CreateData = {
|
||||||
surname: string;
|
surname: string;
|
||||||
@@ -9,17 +9,58 @@ type CreateData = {
|
|||||||
applicationType: ApplicationType;
|
applicationType: ApplicationType;
|
||||||
previousCountry?: string | null;
|
previousCountry?: string | null;
|
||||||
previousRegion?: string | null;
|
previousRegion?: string | null;
|
||||||
birthRegion?: string | null;
|
|
||||||
naturalizationReason?: string | null;
|
naturalizationReason?: string | null;
|
||||||
address: string;
|
address: string;
|
||||||
regionId?: string | null;
|
regionId?: string | null;
|
||||||
city?: string | null;
|
city?: string | null;
|
||||||
street?: string | null;
|
street?: string | null;
|
||||||
customAddress?: string | null;
|
customAddress?: string | null;
|
||||||
height: string;
|
height: number;
|
||||||
eyeColor: string;
|
eyeColor: EyeColor;
|
||||||
|
profileKey: string;
|
||||||
|
signatureKey: string;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
export type ApplicationEligibility = {
|
||||||
|
eligible: boolean;
|
||||||
|
reason: string | null;
|
||||||
|
};
|
||||||
|
|
||||||
|
export async function getApplicationEligibility(
|
||||||
|
userId: string,
|
||||||
|
birthDate: Date | null | undefined
|
||||||
|
): Promise<ApplicationEligibility> {
|
||||||
|
if (!birthDate) {
|
||||||
|
return {
|
||||||
|
eligible: false,
|
||||||
|
reason:
|
||||||
|
"Date of birth is required. Update your profile in Kotosoft ID and synchronise your account.",
|
||||||
|
};
|
||||||
|
}
|
||||||
|
|
||||||
|
const citizenship = await prisma.citizenship.findUnique({ where: { userId } });
|
||||||
|
if (citizenship && !citizenship.revokedAt) {
|
||||||
|
return {
|
||||||
|
eligible: false,
|
||||||
|
reason: "You are already a citizen of the European Federation.",
|
||||||
|
};
|
||||||
|
}
|
||||||
|
|
||||||
|
const applications = await prisma.citizenshipApplication.findMany({
|
||||||
|
where: { userId },
|
||||||
|
select: { status: true },
|
||||||
|
});
|
||||||
|
|
||||||
|
if (applications.some((application) => application.status === "PENDING")) {
|
||||||
|
return {
|
||||||
|
eligible: false,
|
||||||
|
reason: "You already have a pending application.",
|
||||||
|
};
|
||||||
|
}
|
||||||
|
|
||||||
|
return { eligible: true, reason: null };
|
||||||
|
}
|
||||||
|
|
||||||
export async function createApplication(userId: string, data: CreateData) {
|
export async function createApplication(userId: string, data: CreateData) {
|
||||||
return prisma.citizenshipApplication.create({
|
return prisma.citizenshipApplication.create({
|
||||||
data: {
|
data: {
|
||||||
@@ -40,10 +81,26 @@ export async function getPendingApplications() {
|
|||||||
return prisma.citizenshipApplication.findMany({
|
return prisma.citizenshipApplication.findMany({
|
||||||
where: { status: "PENDING" },
|
where: { status: "PENDING" },
|
||||||
orderBy: { createdAt: "desc" },
|
orderBy: { createdAt: "desc" },
|
||||||
include: { user: true },
|
include: {
|
||||||
})
|
user: {
|
||||||
|
include: {
|
||||||
|
_count: {
|
||||||
|
select: {
|
||||||
|
citizenships: true,
|
||||||
|
},
|
||||||
|
},
|
||||||
|
},
|
||||||
|
},
|
||||||
|
}
|
||||||
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
export async function getPendingApplicationsCount(): Promise<number> {
|
export async function getPendingApplicationsCount(): Promise<number> {
|
||||||
return prisma.citizenshipApplication.count({ where: { status: "PENDING" } })
|
return prisma.citizenshipApplication.count({ where: { status: "PENDING" } });
|
||||||
|
}
|
||||||
|
|
||||||
|
export async function getActiveCitizenship(userId: string) {
|
||||||
|
const citizenship = await prisma.citizenship.findUnique({ where: { userId } });
|
||||||
|
if (!citizenship || citizenship.revokedAt) return null;
|
||||||
|
return citizenship;
|
||||||
}
|
}
|
||||||
@@ -26,16 +26,23 @@ export type CitizenshipApplication = {
|
|||||||
previousRegion: string | null;
|
previousRegion: string | null;
|
||||||
naturalizationReason: string | null;
|
naturalizationReason: string | null;
|
||||||
address: string;
|
address: string;
|
||||||
height: string;
|
height: number;
|
||||||
eyeColor: string;
|
eyeColor: EyeColor;
|
||||||
status: CitizenshipApplicationStatus;
|
status: CitizenshipApplicationStatus;
|
||||||
rejectionReason: string | null;
|
rejectionReason: string | null;
|
||||||
reviewedAt: Date | null;
|
reviewedAt: Date | null;
|
||||||
reviewedBy: string | null;
|
reviewedBy: string | null;
|
||||||
createdAt: Date;
|
createdAt: Date;
|
||||||
updatedAt: Date;
|
updatedAt: Date;
|
||||||
|
profileKey: string;
|
||||||
|
signatureKey: string;
|
||||||
|
profile: File;
|
||||||
|
signature: File;
|
||||||
};
|
};
|
||||||
|
|
||||||
export type CitizenshipApplicationWithWarning = CitizenshipApplication & {
|
export type CitizenshipApplicationWithWarning = CitizenshipApplication & {
|
||||||
nameMismatch: boolean
|
nameMismatch: boolean;
|
||||||
}
|
previousCitizenship: boolean;
|
||||||
|
profileUrl: string;
|
||||||
|
signatureUrl: string;
|
||||||
|
};
|
||||||
|
|||||||
@@ -1,39 +1,70 @@
|
|||||||
import { z } from "zod";
|
import { z } from "zod";
|
||||||
|
import { EYE_COLORS } from "./types";
|
||||||
|
|
||||||
|
const MAX_FILE_SIZE = 5 * 1024 * 1024;
|
||||||
|
const ACCEPTED_IMAGE_TYPES = ["image/jpeg", "image/png", "image/webp"];
|
||||||
|
|
||||||
|
const imageFileSchema = z
|
||||||
|
.instanceof(File, { error: "A file is required" })
|
||||||
|
.refine((file) => file.size > 0, "A file is required")
|
||||||
|
.refine((file) => file.size <= MAX_FILE_SIZE, "Image must be smaller than 5MB")
|
||||||
|
.refine((file) => ACCEPTED_IMAGE_TYPES.includes(file.type), "Only JPEG, PNG, or WEBP images are allowed");
|
||||||
|
|
||||||
const baseFields = {
|
const baseFields = {
|
||||||
height: z.string().regex(/^\d+$/, "Height must be a number").min(1, "Height is required"),
|
height: z.coerce
|
||||||
eyeColor: z.string().min(1, "Eye colour is required"),
|
.number({ error: "Height is required" })
|
||||||
|
.int("Height must be a whole number")
|
||||||
|
.min(60, "Height must be at least 60 cm")
|
||||||
|
.max(240, "Height must be at most 240 cm"),
|
||||||
|
eyeColor: z.enum(EYE_COLORS, { error: "Eye colour is required" }),
|
||||||
isEuResident: z.enum(["yes", "no"]),
|
isEuResident: z.enum(["yes", "no"]),
|
||||||
regionId: z.string().optional(),
|
regionId: z.string().optional(),
|
||||||
city: z.string().optional(),
|
city: z.string().trim().optional(),
|
||||||
street: z.string().optional(),
|
street: z.string().trim().optional(),
|
||||||
customAddress: z.string().optional(),
|
customAddress: z.string().trim().optional(),
|
||||||
}
|
profile: imageFileSchema,
|
||||||
|
signature: imageFileSchema,
|
||||||
|
};
|
||||||
|
|
||||||
const previousCitizenshipSchema = z.object({
|
const previousCitizenshipSchema = z
|
||||||
|
.object({
|
||||||
applicationType: z.literal("PREVIOUS_CITIZENSHIP"),
|
applicationType: z.literal("PREVIOUS_CITIZENSHIP"),
|
||||||
previousCountry: z.string().min(1, "Country of previous citizenship is required"),
|
previousCountry: z.enum(["DUS", "REA"], { error: "Invalid country of previous citizenship" }),
|
||||||
previousRegion: z.string().min(1, "Region of previous citizenship is required"),
|
previousRegion: z.string().trim().min(1, "Region of previous citizenship is required"),
|
||||||
...baseFields,
|
...baseFields,
|
||||||
}).superRefine(validateAddress)
|
})
|
||||||
|
.superRefine(validateAddress);
|
||||||
|
|
||||||
const naturalizationSchema = z.object({
|
const naturalizationSchema = z
|
||||||
|
.object({
|
||||||
applicationType: z.literal("NATURALIZATION"),
|
applicationType: z.literal("NATURALIZATION"),
|
||||||
naturalizationReason: z.string().min(1, "Reason for naturalisation is required"),
|
naturalizationReason: z.string().trim().min(1, "Reason for naturalisation is required"),
|
||||||
...baseFields,
|
...baseFields,
|
||||||
}).superRefine(validateAddress)
|
})
|
||||||
|
.superRefine(validateAddress);
|
||||||
|
|
||||||
function validateAddress(data: { isEuResident: string, regionId?: string, city?: string, street?: string, customAddress?: string }, ctx: z.RefinementCtx) {
|
function validateAddress(
|
||||||
|
data: {
|
||||||
|
isEuResident: string;
|
||||||
|
regionId?: string;
|
||||||
|
city?: string;
|
||||||
|
street?: string;
|
||||||
|
customAddress?: string;
|
||||||
|
},
|
||||||
|
ctx: z.RefinementCtx
|
||||||
|
) {
|
||||||
if (data.isEuResident === "yes") {
|
if (data.isEuResident === "yes") {
|
||||||
if (!data.regionId) ctx.addIssue({ code: "custom", path: ["regionId"], message: "Region is required" })
|
if (!data.regionId) ctx.addIssue({ code: "custom", path: ["regionId"], message: "Region is required" });
|
||||||
if (!data.city) ctx.addIssue({ code: "custom", path: ["city"], message: "City is required" })
|
if (!data.city) ctx.addIssue({ code: "custom", path: ["city"], message: "City is required" });
|
||||||
if (!data.street) ctx.addIssue({ code: "custom", path: ["street"], message: "Street is required" })
|
if (!data.street) ctx.addIssue({ code: "custom", path: ["street"], message: "Street is required" });
|
||||||
} else {
|
} else {
|
||||||
if (!data.customAddress) ctx.addIssue({ code: "custom", path: ["customAddress"], message: "Address is required" })
|
if (!data.customAddress) {
|
||||||
|
ctx.addIssue({ code: "custom", path: ["customAddress"], message: "Address is required" });
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
export const citizenshipApplicationSchema = z.discriminatedUnion("applicationType", [
|
export const citizenshipApplicationSchema = z.discriminatedUnion("applicationType", [
|
||||||
previousCitizenshipSchema,
|
previousCitizenshipSchema,
|
||||||
naturalizationSchema,
|
naturalizationSchema,
|
||||||
])
|
]);
|
||||||
@@ -0,0 +1,34 @@
|
|||||||
|
import { z } from "zod";
|
||||||
|
import { unstable_rethrow } from "next/navigation";
|
||||||
|
import { AppError } from "./action-result";
|
||||||
|
|
||||||
|
export type FormState = {
|
||||||
|
success: boolean;
|
||||||
|
error?: string;
|
||||||
|
fieldErrors?: Record<string, string[] | undefined>;
|
||||||
|
};
|
||||||
|
|
||||||
|
export const initialFormState: FormState = { success: false };
|
||||||
|
|
||||||
|
export function formAction<Schema extends z.ZodTypeAny>(schema: Schema, handler: (data: z.infer<Schema>, formData: FormData) => Promise<void>) {
|
||||||
|
return async (_prevState: FormState, formData: FormData): Promise<FormState> => {
|
||||||
|
const raw = Object.fromEntries(formData.entries());
|
||||||
|
const parsed = schema.safeParse(raw);
|
||||||
|
|
||||||
|
if (!parsed.success) {
|
||||||
|
return { success: false, fieldErrors: parsed.error.flatten().fieldErrors };
|
||||||
|
}
|
||||||
|
|
||||||
|
try {
|
||||||
|
await handler(parsed.data, formData);
|
||||||
|
return { success: true };
|
||||||
|
} catch (e) {
|
||||||
|
unstable_rethrow(e);
|
||||||
|
if (e instanceof AppError) {
|
||||||
|
return { success: false, error: e.message, fieldErrors: e.fieldErrors };
|
||||||
|
}
|
||||||
|
console.error(e);
|
||||||
|
return { success: false, error: "Something went wrong. Please try again." };
|
||||||
|
}
|
||||||
|
};
|
||||||
|
}
|
||||||
+30
-26
@@ -1,4 +1,6 @@
|
|||||||
import { prisma } from "@/lib/prisma";
|
import { prisma } from "@/lib/prisma";
|
||||||
|
import type { EyeColor } from "@/lib/citizenship/types";
|
||||||
|
import { getImageUrl } from "../image";
|
||||||
|
|
||||||
export type IdentityCardData = {
|
export type IdentityCardData = {
|
||||||
documentNumber: string;
|
documentNumber: string;
|
||||||
@@ -9,27 +11,29 @@ export type IdentityCardData = {
|
|||||||
sex: "M" | "F";
|
sex: "M" | "F";
|
||||||
birthDate: Date;
|
birthDate: Date;
|
||||||
address: string;
|
address: string;
|
||||||
height: string;
|
height: number;
|
||||||
eyeColor: string;
|
eyeColor: EyeColor;
|
||||||
issueDate: Date;
|
issueDate: Date;
|
||||||
expiryDate: Date;
|
expiryDate: Date;
|
||||||
authority: string;
|
authority: string;
|
||||||
origin: string | null;
|
profileUrl: string;
|
||||||
|
signatureUrl: string;
|
||||||
};
|
};
|
||||||
|
|
||||||
export async function getIdentityCardData(userId: string): Promise<IdentityCardData | null> {
|
export async function getIdentityCardData(userId: string): Promise<IdentityCardData | null> {
|
||||||
const doc = await prisma.identityDocument.findFirst({
|
const document = await prisma.identityDocument.findFirst({
|
||||||
where: {
|
where: {
|
||||||
citizenship: { userId },
|
citizenship: {
|
||||||
|
userId,
|
||||||
|
revokedAt: null,
|
||||||
},
|
},
|
||||||
|
},
|
||||||
|
orderBy: { issuedAt: "desc" },
|
||||||
select: {
|
select: {
|
||||||
documentNumber: true,
|
documentNumber: true,
|
||||||
|
address: true,
|
||||||
issuedAt: true,
|
issuedAt: true,
|
||||||
expiresAt: true,
|
expiresAt: true,
|
||||||
regionId: true,
|
|
||||||
city: true,
|
|
||||||
street: true,
|
|
||||||
customAddress: true,
|
|
||||||
region: {
|
region: {
|
||||||
select: { name: true },
|
select: { name: true },
|
||||||
},
|
},
|
||||||
@@ -41,9 +45,10 @@ export async function getIdentityCardData(userId: string): Promise<IdentityCardD
|
|||||||
givenNames: true,
|
givenNames: true,
|
||||||
sex: true,
|
sex: true,
|
||||||
birthDate: true,
|
birthDate: true,
|
||||||
address: true,
|
|
||||||
height: true,
|
height: true,
|
||||||
eyeColor: true,
|
eyeColor: true,
|
||||||
|
profileKey: true,
|
||||||
|
signatureKey: true,
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
@@ -51,26 +56,25 @@ export async function getIdentityCardData(userId: string): Promise<IdentityCardD
|
|||||||
},
|
},
|
||||||
});
|
});
|
||||||
|
|
||||||
if (!doc) return null;
|
if (!document) return null;
|
||||||
|
|
||||||
const app = doc.citizenship.application;
|
const application = document.citizenship.application;
|
||||||
|
|
||||||
return {
|
return {
|
||||||
documentNumber: doc.documentNumber,
|
documentNumber: document.documentNumber,
|
||||||
issuingCountry: "EUR",
|
issuingCountry: "EUR",
|
||||||
nationality: "EUR",
|
nationality: "EUR",
|
||||||
surname: app.surname,
|
surname: application.surname,
|
||||||
givenNames: app.givenNames,
|
givenNames: application.givenNames,
|
||||||
sex: app.sex === "MALE" ? "M" : "F",
|
sex: application.sex === "MALE" ? "M" : "F",
|
||||||
birthDate: app.birthDate,
|
birthDate: application.birthDate,
|
||||||
address: app.address,
|
address: document.address,
|
||||||
height: app.height,
|
height: application.height,
|
||||||
eyeColor: app.eyeColor,
|
eyeColor: application.eyeColor as EyeColor,
|
||||||
issueDate: doc.issuedAt,
|
issueDate: document.issuedAt,
|
||||||
expiryDate: doc.expiresAt,
|
expiryDate: document.expiresAt,
|
||||||
authority: doc.region?.name ?? "European Federation",
|
authority: document.region?.name ?? "European Federation",
|
||||||
origin: doc.regionId && doc.city
|
profileUrl: await getImageUrl(application.profileKey),
|
||||||
? `${doc.city}, ${doc.regionId}, EU`
|
signatureUrl: await getImageUrl(application.signatureKey),
|
||||||
: doc.customAddress ?? null,
|
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
@@ -0,0 +1,61 @@
|
|||||||
|
import crypto from "crypto";
|
||||||
|
import sharp from "sharp";
|
||||||
|
|
||||||
|
import { AppError } from "@/lib/action-result";
|
||||||
|
import { minioClient } from "@/lib/minio";
|
||||||
|
|
||||||
|
const BUCKET = "uploads";
|
||||||
|
|
||||||
|
const MAX_FILE_SIZE = 5 * 1024 * 1024;
|
||||||
|
|
||||||
|
export async function uploadImage(file: File, directory: string): Promise<string> {
|
||||||
|
if (file.size === 0) {
|
||||||
|
throw new AppError("A file is required");
|
||||||
|
}
|
||||||
|
|
||||||
|
if (file.size > MAX_FILE_SIZE) {
|
||||||
|
throw new AppError("Image must be smaller than 5MB");
|
||||||
|
}
|
||||||
|
|
||||||
|
const input = Buffer.from(await file.arrayBuffer());
|
||||||
|
|
||||||
|
let image = sharp(input, {
|
||||||
|
failOn: "error",
|
||||||
|
});
|
||||||
|
|
||||||
|
const metadata = await image.metadata();
|
||||||
|
|
||||||
|
if (!metadata.format) {
|
||||||
|
throw new AppError("Only JPEG, PNG, or WEBP images are allowed");
|
||||||
|
}
|
||||||
|
|
||||||
|
const output = await image
|
||||||
|
.rotate()
|
||||||
|
.webp({
|
||||||
|
quality: 80,
|
||||||
|
effort: 4,
|
||||||
|
})
|
||||||
|
.toBuffer();
|
||||||
|
|
||||||
|
const key = `${directory}/${crypto.randomUUID()}.webp`;
|
||||||
|
|
||||||
|
await minioClient.putObject(
|
||||||
|
BUCKET,
|
||||||
|
key,
|
||||||
|
output,
|
||||||
|
output.length,
|
||||||
|
{
|
||||||
|
"Content-Type": "image/webp",
|
||||||
|
},
|
||||||
|
);
|
||||||
|
|
||||||
|
return key;
|
||||||
|
}
|
||||||
|
|
||||||
|
export async function getImageUrl(key: string): Promise<string> {
|
||||||
|
return minioClient.presignedGetObject(
|
||||||
|
BUCKET,
|
||||||
|
key,
|
||||||
|
60 * 5
|
||||||
|
);
|
||||||
|
}
|
||||||
@@ -0,0 +1,9 @@
|
|||||||
|
import { Client } from "minio";
|
||||||
|
|
||||||
|
export const minioClient = new Client({
|
||||||
|
endPoint: process.env.MINIO_URL!,
|
||||||
|
port: Number(process.env.MINIO_PORT),
|
||||||
|
useSSL: false,
|
||||||
|
accessKey: process.env.MINIO_ACCESS_KEY!,
|
||||||
|
secretKey: process.env.MINIO_SECRET_KEY!
|
||||||
|
})
|
||||||
@@ -0,0 +1,29 @@
|
|||||||
|
import { unstable_rethrow } from "next/navigation";
|
||||||
|
import { Prisma } from "@/lib/generated/prisma/client";
|
||||||
|
import { AppError, type ActionResult } from "./action-result";
|
||||||
|
|
||||||
|
export function isPrismaError(error: unknown, code: string): boolean {
|
||||||
|
return error instanceof Prisma.PrismaClientKnownRequestError && error.code === code;
|
||||||
|
}
|
||||||
|
|
||||||
|
export async function runAction<T>(fn: () => Promise<T>): Promise<ActionResult<T>> {
|
||||||
|
try {
|
||||||
|
const data = await fn();
|
||||||
|
return { success: true, data };
|
||||||
|
} catch (e) {
|
||||||
|
unstable_rethrow(e);
|
||||||
|
|
||||||
|
if (e instanceof AppError) {
|
||||||
|
return { success: false, error: e.message, fieldErrors: e.fieldErrors };
|
||||||
|
}
|
||||||
|
if (isPrismaError(e, "P2025")) {
|
||||||
|
return { success: false, error: "This record was updated by someone else. Please refresh and try again." };
|
||||||
|
}
|
||||||
|
if (isPrismaError(e, "P2002")) {
|
||||||
|
return { success: false, error: "This record already exists." };
|
||||||
|
}
|
||||||
|
|
||||||
|
console.error(e);
|
||||||
|
return { success: false, error: "Something went wrong. Please try again." };
|
||||||
|
}
|
||||||
|
}
|
||||||
+20
-10
@@ -4,16 +4,18 @@ import { generatePkce, generateState } from "@/lib/auth/pkce";
|
|||||||
import { pkceConfig } from "@/lib/cookieConfig";
|
import { pkceConfig } from "@/lib/cookieConfig";
|
||||||
import { cookies } from "next/headers";
|
import { cookies } from "next/headers";
|
||||||
import { redirect } from "next/navigation";
|
import { redirect } from "next/navigation";
|
||||||
import { deleteSession } from "@/lib/auth/session";
|
import { deleteSession, getSessionUserId } from "@/lib/auth/session";
|
||||||
import { deleteUser, updateUser } from "./repository";
|
import { deleteUser, updateUser } from "./repository";
|
||||||
import { getAccessToken } from "@/lib/auth/tokens";
|
import { getAccessToken } from "@/lib/auth/tokens";
|
||||||
import { fetchKotosoftUser } from "@/lib/kotosoft/client";
|
import { fetchKotosoftUser } from "@/lib/kotosoft/client";
|
||||||
import { revalidatePath } from "next/cache";
|
import { revalidatePath } from "next/cache";
|
||||||
|
import { getCurrentUser } from "../user";
|
||||||
|
import { runAction } from "@/lib/run-action";
|
||||||
|
import { AppError, type ActionResult } from "@/lib/action-result";
|
||||||
|
|
||||||
export async function login() {
|
export async function login() {
|
||||||
const { verifier, challenge } = generatePkce();
|
const { verifier, challenge } = generatePkce();
|
||||||
const state = generateState();
|
const state = generateState();
|
||||||
|
|
||||||
const store = await cookies();
|
const store = await cookies();
|
||||||
store.set("pkce_verifier", verifier, pkceConfig);
|
store.set("pkce_verifier", verifier, pkceConfig);
|
||||||
store.set("oauth_state", state, pkceConfig);
|
store.set("oauth_state", state, pkceConfig);
|
||||||
@@ -31,26 +33,33 @@ export async function login() {
|
|||||||
redirect(`${process.env.KOTOSOFT_ID_API_URL}/oauth/authorize?${params}`);
|
redirect(`${process.env.KOTOSOFT_ID_API_URL}/oauth/authorize?${params}`);
|
||||||
}
|
}
|
||||||
|
|
||||||
export async function logout() {
|
export async function logout(): Promise<ActionResult> {
|
||||||
|
return runAction(async () => {
|
||||||
await deleteSession();
|
await deleteSession();
|
||||||
redirect("/");
|
redirect("/");
|
||||||
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
export async function deleteUserAction(userId: string) {
|
export async function deleteUserAction(): Promise<ActionResult> {
|
||||||
await deleteUser(userId);
|
return runAction(async () => {
|
||||||
|
const user = await getCurrentUser();
|
||||||
|
if (!user) throw new AppError("Not authenticated");
|
||||||
|
|
||||||
|
await deleteUser(user.id);
|
||||||
await deleteSession();
|
await deleteSession();
|
||||||
redirect("/");
|
redirect("/");
|
||||||
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
export async function updateUserAction() {
|
export async function updateUserAction(): Promise<ActionResult> {
|
||||||
|
return runAction(async () => {
|
||||||
const accessToken = await getAccessToken();
|
const accessToken = await getAccessToken();
|
||||||
if (!accessToken) throw new Error("Not authenticated");
|
if (!accessToken) throw new AppError("Not authenticated");
|
||||||
|
|
||||||
const kotosoftUser = await fetchKotosoftUser(accessToken);
|
const kotosoftUser = await fetchKotosoftUser(accessToken);
|
||||||
|
|
||||||
const { getSessionUserId } = await import("@/lib/auth/session");
|
|
||||||
const userId = await getSessionUserId();
|
const userId = await getSessionUserId();
|
||||||
if (!userId) throw new Error("Not authenticated");
|
if (!userId) throw new AppError("Not authenticated");
|
||||||
|
|
||||||
await updateUser(userId, {
|
await updateUser(userId, {
|
||||||
email: kotosoftUser.email,
|
email: kotosoftUser.email,
|
||||||
@@ -60,5 +69,6 @@ export async function updateUserAction() {
|
|||||||
birthDate: kotosoftUser.birth_date,
|
birthDate: kotosoftUser.birth_date,
|
||||||
});
|
});
|
||||||
|
|
||||||
revalidatePath("/account")
|
revalidatePath("/account");
|
||||||
|
});
|
||||||
}
|
}
|
||||||
@@ -0,0 +1,15 @@
|
|||||||
|
import { getCurrentUser } from "@/lib/user";
|
||||||
|
import { redirect } from "next/navigation";
|
||||||
|
import { AppError } from "@/lib/action-result";
|
||||||
|
|
||||||
|
export async function requireUser() {
|
||||||
|
const user = await getCurrentUser();
|
||||||
|
if (!user) redirect("/");
|
||||||
|
return user;
|
||||||
|
}
|
||||||
|
|
||||||
|
export async function requireAdmin() {
|
||||||
|
const user = await requireUser();
|
||||||
|
if (!user.isAdmin) throw new AppError("You do not have permission to perform this action.");
|
||||||
|
return user;
|
||||||
|
}
|
||||||
+6
-2
@@ -4,11 +4,15 @@ const nextConfig: NextConfig = {
|
|||||||
images: {
|
images: {
|
||||||
remotePatterns: [
|
remotePatterns: [
|
||||||
{
|
{
|
||||||
protocol: "https",
|
hostname: process.env.MINIO_URL!,
|
||||||
hostname: "**",
|
|
||||||
},
|
},
|
||||||
],
|
],
|
||||||
},
|
},
|
||||||
|
experimental: {
|
||||||
|
serverActions: {
|
||||||
|
bodySizeLimit: "5mb",
|
||||||
|
},
|
||||||
|
},
|
||||||
};
|
};
|
||||||
|
|
||||||
export default nextConfig;
|
export default nextConfig;
|
||||||
|
|||||||
@@ -16,12 +16,14 @@
|
|||||||
"clsx": "^2.1.1",
|
"clsx": "^2.1.1",
|
||||||
"jose": "^6.2.3",
|
"jose": "^6.2.3",
|
||||||
"lucide-react": "^1.20.0",
|
"lucide-react": "^1.20.0",
|
||||||
|
"minio": "^8.0.7",
|
||||||
"next": "16.2.9",
|
"next": "16.2.9",
|
||||||
"pg": "^8.21.0",
|
"pg": "^8.21.0",
|
||||||
"radix-ui": "^1.6.0",
|
"radix-ui": "^1.6.0",
|
||||||
"react": "19.2.4",
|
"react": "19.2.4",
|
||||||
"react-dom": "19.2.4",
|
"react-dom": "19.2.4",
|
||||||
"shadcn": "^4.11.0",
|
"shadcn": "^4.11.0",
|
||||||
|
"sharp": "^0.35.3",
|
||||||
"sonner": "^2.0.7",
|
"sonner": "^2.0.7",
|
||||||
"tailwind-merge": "^3.6.0",
|
"tailwind-merge": "^3.6.0",
|
||||||
"tw-animate-css": "^1.4.0",
|
"tw-animate-css": "^1.4.0",
|
||||||
|
|||||||
+31
@@ -0,0 +1,31 @@
|
|||||||
|
-- CreateEnum
|
||||||
|
CREATE TYPE "EyeColor" AS ENUM ('Blue', 'Green', 'Brown', 'Hazel', 'Gray', 'Amber');
|
||||||
|
|
||||||
|
-- AlterTable: CitizenshipApplication
|
||||||
|
ALTER TABLE "CitizenshipApplication" DROP COLUMN IF EXISTS "birthRegion";
|
||||||
|
|
||||||
|
ALTER TABLE "CitizenshipApplication"
|
||||||
|
ALTER COLUMN "height" TYPE INTEGER USING "height"::integer;
|
||||||
|
|
||||||
|
ALTER TABLE "CitizenshipApplication"
|
||||||
|
ALTER COLUMN "eyeColor" TYPE "EyeColor" USING "eyeColor"::"EyeColor";
|
||||||
|
|
||||||
|
-- AlterTable: IdentityDocument — add address, allow multiple documents per citizenship
|
||||||
|
ALTER TABLE "IdentityDocument" ADD COLUMN "address" TEXT;
|
||||||
|
|
||||||
|
UPDATE "IdentityDocument" AS d
|
||||||
|
SET "address" = a."address"
|
||||||
|
FROM "Citizenship" AS c
|
||||||
|
JOIN "CitizenshipApplication" AS a ON a."id" = c."applicationId"
|
||||||
|
WHERE d."citizenshipId" = c."id";
|
||||||
|
|
||||||
|
ALTER TABLE "IdentityDocument" ALTER COLUMN "address" SET NOT NULL;
|
||||||
|
|
||||||
|
DROP INDEX IF EXISTS "IdentityDocument_citizenshipId_key";
|
||||||
|
|
||||||
|
CREATE INDEX "IdentityDocument_citizenshipId_issuedAt_idx" ON "IdentityDocument"("citizenshipId", "issuedAt");
|
||||||
|
|
||||||
|
-- AddForeignKey: CitizenshipApplication.regionId -> Region
|
||||||
|
ALTER TABLE "CitizenshipApplication"
|
||||||
|
ADD CONSTRAINT "CitizenshipApplication_regionId_fkey"
|
||||||
|
FOREIGN KEY ("regionId") REFERENCES "Region"("id") ON DELETE SET NULL ON UPDATE CASCADE;
|
||||||
+20
-6
@@ -17,6 +17,15 @@ enum Sex {
|
|||||||
FEMALE
|
FEMALE
|
||||||
}
|
}
|
||||||
|
|
||||||
|
enum EyeColor {
|
||||||
|
Blue
|
||||||
|
Green
|
||||||
|
Brown
|
||||||
|
Hazel
|
||||||
|
Gray
|
||||||
|
Amber
|
||||||
|
}
|
||||||
|
|
||||||
model User {
|
model User {
|
||||||
id String @id @default(uuid())
|
id String @id @default(uuid())
|
||||||
kotosoftId String @unique
|
kotosoftId String @unique
|
||||||
@@ -117,15 +126,15 @@ model CitizenshipApplication {
|
|||||||
applicationType ApplicationType
|
applicationType ApplicationType
|
||||||
previousCountry String?
|
previousCountry String?
|
||||||
previousRegion String?
|
previousRegion String?
|
||||||
birthRegion String?
|
|
||||||
naturalizationReason String?
|
naturalizationReason String?
|
||||||
address String
|
address String
|
||||||
regionId String?
|
regionId String?
|
||||||
|
region Region? @relation(fields: [regionId], references: [id])
|
||||||
city String?
|
city String?
|
||||||
street String?
|
street String?
|
||||||
customAddress String?
|
customAddress String?
|
||||||
height String
|
height Int
|
||||||
eyeColor String
|
eyeColor EyeColor
|
||||||
status CitizenshipApplicationStatus @default(PENDING)
|
status CitizenshipApplicationStatus @default(PENDING)
|
||||||
rejectionReason String?
|
rejectionReason String?
|
||||||
reviewedAt DateTime?
|
reviewedAt DateTime?
|
||||||
@@ -133,6 +142,8 @@ model CitizenshipApplication {
|
|||||||
reviewer User? @relation("CitizenshipReviewer", fields: [reviewedBy], references: [id])
|
reviewer User? @relation("CitizenshipReviewer", fields: [reviewedBy], references: [id])
|
||||||
createdAt DateTime @default(now())
|
createdAt DateTime @default(now())
|
||||||
updatedAt DateTime @updatedAt
|
updatedAt DateTime @updatedAt
|
||||||
|
profileKey String
|
||||||
|
signatureKey String
|
||||||
citizenship Citizenship?
|
citizenship Citizenship?
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -144,25 +155,27 @@ model Citizenship {
|
|||||||
application CitizenshipApplication @relation(fields: [applicationId], references: [id])
|
application CitizenshipApplication @relation(fields: [applicationId], references: [id])
|
||||||
issuedAt DateTime @default(now())
|
issuedAt DateTime @default(now())
|
||||||
revokedAt DateTime?
|
revokedAt DateTime?
|
||||||
document IdentityDocument?
|
documents IdentityDocument[]
|
||||||
}
|
}
|
||||||
|
|
||||||
model IdentityDocument {
|
model IdentityDocument {
|
||||||
id String @id @default(uuid())
|
id String @id @default(uuid())
|
||||||
citizenshipId String @unique
|
citizenshipId String
|
||||||
citizenship Citizenship @relation(fields: [citizenshipId], references: [id], onDelete: Cascade)
|
citizenship Citizenship @relation(fields: [citizenshipId], references: [id], onDelete: Cascade)
|
||||||
|
|
||||||
documentNumber String @unique
|
documentNumber String @unique
|
||||||
|
address String
|
||||||
|
|
||||||
regionId String?
|
regionId String?
|
||||||
region Region? @relation(fields: [regionId], references: [id])
|
region Region? @relation(fields: [regionId], references: [id])
|
||||||
city String?
|
city String?
|
||||||
street String?
|
street String?
|
||||||
|
|
||||||
customAddress String?
|
customAddress String?
|
||||||
|
|
||||||
issuedAt DateTime @default(now())
|
issuedAt DateTime @default(now())
|
||||||
expiresAt DateTime
|
expiresAt DateTime
|
||||||
|
|
||||||
|
@@index([citizenshipId, issuedAt])
|
||||||
}
|
}
|
||||||
|
|
||||||
model Region {
|
model Region {
|
||||||
@@ -170,4 +183,5 @@ model Region {
|
|||||||
name String
|
name String
|
||||||
capital String
|
capital String
|
||||||
documents IdentityDocument[]
|
documents IdentityDocument[]
|
||||||
|
applications CitizenshipApplication[]
|
||||||
}
|
}
|
||||||
@@ -1,42 +1,8 @@
|
|||||||
Я разрабатываю сайт государства "European Federation" на Next.js (App Router) + Prisma + Postgres + Tailwind + Shadcn UI.
|
- ID card page design
|
||||||
|
- Forced denaturalization
|
||||||
Это CMS с универсальными "страницами" (тип: NEWS, LAW, DEPARTMENT, FAQ, STATIC).
|
- Expiry
|
||||||
Каждая страница состоит из блоков (PARAGRAPH, HEADING, IMAGE, QUOTE, CALLOUT, DIVIDER, LIST, TABLE).
|
- Admin page
|
||||||
|
- Mobile version
|
||||||
Схема БД (Prisma):
|
- Security bugs
|
||||||
- User { id, kotosoftId, email, firstName, secondName, sex, birthDate, isAdmin }
|
- Photos and signature remove bg, size req
|
||||||
- Page { id, slug, title, type, status (DRAFT/PUBLISHED/ARCHIVED), meta (Json), publishedAt, createdAt, updatedAt, createdBy }
|
- typography: leading
|
||||||
- Block { id, pageId, parentId, type, position (Float), content (Json) }
|
|
||||||
- PageVersion { id, pageId, title, blocks (Json snapshot), createdAt, createdBy }
|
|
||||||
|
|
||||||
TypeScript типы:
|
|
||||||
- PageType = "NEWS"
|
|
||||||
- PageStatus = "DRAFT" | "PUBLISHED" | "ARCHIVED"
|
|
||||||
- BlockContent = discriminated union по type
|
|
||||||
- PageMeta = { description?, ogImage?, location?, tags?, coverUrl?, lawNumber?, signedAt? }
|
|
||||||
|
|
||||||
Архитектура:
|
|
||||||
- /[slug] — публичная страница (SSR), время редактирования видно всем
|
|
||||||
- /[slug]/edit — редактор (только isAdmin), Server Actions для save/publish
|
|
||||||
- /pages — список черновиков в Dialog (только isAdmin)
|
|
||||||
- /news, /laws и т.д. — списки по типу
|
|
||||||
|
|
||||||
Стилистика (важно соблюдать):
|
|
||||||
- p-16 gap-16 на страницах
|
|
||||||
- Заголовки: h1/h2 с underline underline-offset-8 decoration-2
|
|
||||||
- Hover-анимации: hover:underline или hover:gap-4 duration-200
|
|
||||||
- Shadcn компоненты: Field/FieldGroup/FieldSet для форм, InputGroup для инпутов с иконками
|
|
||||||
- Без лишних Card/Panel — минималистично
|
|
||||||
|
|
||||||
Текущие баги:
|
|
||||||
1. Блоки не сохраняются в DRAFT — нужно убрать условие if (status === "PUBLISHED") вокруг createMany
|
|
||||||
2. Теги показывают индексы — .map((i, tag) => tag) перепутано, надо .map((tag) => tag)
|
|
||||||
3. Даты — .toString() надо заменить на toLocaleDateString("en-GB", {...})
|
|
||||||
|
|
||||||
Текущие задачи:
|
|
||||||
1. UI везде говорит "news" — нужно сделать type-aware (заголовки, маршруты, тексты)
|
|
||||||
2. Дореализовать блоки LIST, TABLE, IMAGE в Editor (сейчас "coming soon")
|
|
||||||
3. UI истории версий в редакторе — список версий, кнопка "restore"
|
|
||||||
4. On-demand ISR через revalidatePath при публикации (уже частично есть)
|
|
||||||
|
|
||||||
Цель: чистый, человеческий, безопасный код без бойлерплейта.
|
|
||||||
Reference in New Issue
Block a user