mirror of
https://github.com/blakeblackshear/frigate.git
synced 2025-07-30 13:48:07 +02:00
Face setup wizard (#17203)
* Fix login page * Increase face image size and add time ago * Add component for indicating steps in a wizard * Split out form inputs from dialog * Add wizard for adding new face to library * Simplify dialog * Translations * Fix scaling bug * Fix key missing * Improve multi select * Adjust wording and spacing * Add tip for face training * Fix padding * Remove text for buttons on mobile
This commit is contained in:
parent
fad62b996a
commit
ff8e145b90
@ -227,6 +227,8 @@ class FaceRealTimeProcessor(RealTimeProcessorApi):
|
|||||||
scale_factor = MAX_DETECTION_HEIGHT / input.shape[0]
|
scale_factor = MAX_DETECTION_HEIGHT / input.shape[0]
|
||||||
new_width = int(scale_factor * input.shape[1])
|
new_width = int(scale_factor * input.shape[1])
|
||||||
input = cv2.resize(input, (new_width, MAX_DETECTION_HEIGHT))
|
input = cv2.resize(input, (new_width, MAX_DETECTION_HEIGHT))
|
||||||
|
else:
|
||||||
|
scale_factor = 1
|
||||||
|
|
||||||
self.face_detector.setInputSize((input.shape[1], input.shape[0]))
|
self.face_detector.setInputSize((input.shape[1], input.shape[0]))
|
||||||
faces = self.face_detector.detect(input)
|
faces = self.face_detector.detect(input)
|
||||||
@ -241,10 +243,10 @@ class FaceRealTimeProcessor(RealTimeProcessorApi):
|
|||||||
continue
|
continue
|
||||||
|
|
||||||
raw_bbox = potential_face[0:4].astype(np.uint16)
|
raw_bbox = potential_face[0:4].astype(np.uint16)
|
||||||
x: int = max(raw_bbox[0], 0)
|
x: int = int(max(raw_bbox[0], 0) / scale_factor)
|
||||||
y: int = max(raw_bbox[1], 0)
|
y: int = int(max(raw_bbox[1], 0) / scale_factor)
|
||||||
w: int = raw_bbox[2]
|
w: int = int(raw_bbox[2] / scale_factor)
|
||||||
h: int = raw_bbox[3]
|
h: int = int(raw_bbox[3] / scale_factor)
|
||||||
bbox = (x, y, x + w, y + h)
|
bbox = (x, y, x + w, y + h)
|
||||||
|
|
||||||
if face is None or area(bbox) > area(face):
|
if face is None or area(bbox) > area(face):
|
||||||
|
@ -64,6 +64,7 @@
|
|||||||
"button": {
|
"button": {
|
||||||
"apply": "Apply",
|
"apply": "Apply",
|
||||||
"reset": "Reset",
|
"reset": "Reset",
|
||||||
|
"done": "Done",
|
||||||
"enabled": "Enabled",
|
"enabled": "Enabled",
|
||||||
"enable": "Enable",
|
"enable": "Enable",
|
||||||
"disabled": "Disabled",
|
"disabled": "Disabled",
|
||||||
@ -94,7 +95,8 @@
|
|||||||
"play": "Play",
|
"play": "Play",
|
||||||
"unselect": "Unselect",
|
"unselect": "Unselect",
|
||||||
"export": "Export",
|
"export": "Export",
|
||||||
"deleteNow": "Delete Now"
|
"deleteNow": "Delete Now",
|
||||||
|
"next": "Next"
|
||||||
},
|
},
|
||||||
"menu": {
|
"menu": {
|
||||||
"system": "System",
|
"system": "System",
|
||||||
|
@ -1,4 +1,7 @@
|
|||||||
{
|
{
|
||||||
|
"description": {
|
||||||
|
"addFace": "Walk through adding a new face to the Face Library."
|
||||||
|
},
|
||||||
"documentTitle": "Face Library - Frigate",
|
"documentTitle": "Face Library - Frigate",
|
||||||
"uploadFaceImage": {
|
"uploadFaceImage": {
|
||||||
"title": "Upload Face Image",
|
"title": "Upload Face Image",
|
||||||
@ -6,7 +9,8 @@
|
|||||||
},
|
},
|
||||||
"createFaceLibrary": {
|
"createFaceLibrary": {
|
||||||
"title": "Create Face Library",
|
"title": "Create Face Library",
|
||||||
"desc": "Create a new face library"
|
"desc": "Create a new face library",
|
||||||
|
"nextSteps": "It is recommended to use the Train tab to select and train images for each person as they are detected. When building a strong foundation it is strongly recommended to only train on images that are straight-on. Ignore images from cameras that recognize faces from an angle."
|
||||||
},
|
},
|
||||||
"train": {
|
"train": {
|
||||||
"title": "Train",
|
"title": "Train",
|
||||||
@ -19,12 +23,13 @@
|
|||||||
"uploadImage": "Upload Image",
|
"uploadImage": "Upload Image",
|
||||||
"reprocessFace": "Reprocess Face"
|
"reprocessFace": "Reprocess Face"
|
||||||
},
|
},
|
||||||
|
"readTheDocs": "Read the documentation to view more details on refining images for the Face Library",
|
||||||
"trainFaceAs": "Train Face as:",
|
"trainFaceAs": "Train Face as:",
|
||||||
"trainFaceAsPerson": "Train Face as Person",
|
"trainFaceAsPerson": "Train Face as Person",
|
||||||
"toast": {
|
"toast": {
|
||||||
"success": {
|
"success": {
|
||||||
"uploadedImage": "Successfully uploaded image.",
|
"uploadedImage": "Successfully uploaded image.",
|
||||||
"addFaceLibrary": "Successfully add face library.",
|
"addFaceLibrary": "{{name}} has successfully been added to the Face Library!",
|
||||||
"deletedFace": "Successfully deleted face.",
|
"deletedFace": "Successfully deleted face.",
|
||||||
"trainedFace": "Successfully trained face.",
|
"trainedFace": "Successfully trained face.",
|
||||||
"updatedFaceScore": "Successfully updated face score."
|
"updatedFaceScore": "Successfully updated face score."
|
||||||
|
28
web/src/components/indicators/StepIndicator.tsx
Normal file
28
web/src/components/indicators/StepIndicator.tsx
Normal file
@ -0,0 +1,28 @@
|
|||||||
|
import { cn } from "@/lib/utils";
|
||||||
|
|
||||||
|
type StepIndicatorProps = {
|
||||||
|
steps: string[];
|
||||||
|
currentStep: number;
|
||||||
|
};
|
||||||
|
export default function StepIndicator({
|
||||||
|
steps,
|
||||||
|
currentStep,
|
||||||
|
}: StepIndicatorProps) {
|
||||||
|
return (
|
||||||
|
<div className="flex flex-row justify-evenly">
|
||||||
|
{steps.map((name, idx) => (
|
||||||
|
<div className="flex flex-col items-center gap-2">
|
||||||
|
<div
|
||||||
|
className={cn(
|
||||||
|
"flex size-16 items-center justify-center rounded-full",
|
||||||
|
currentStep == idx ? "bg-selected" : "border-2 border-selected",
|
||||||
|
)}
|
||||||
|
>
|
||||||
|
{idx + 1}
|
||||||
|
</div>
|
||||||
|
<div className="w-24 text-center md:w-24">{name}</div>
|
||||||
|
</div>
|
||||||
|
))}
|
||||||
|
</div>
|
||||||
|
);
|
||||||
|
}
|
58
web/src/components/input/ImageEntry.tsx
Normal file
58
web/src/components/input/ImageEntry.tsx
Normal file
@ -0,0 +1,58 @@
|
|||||||
|
import { Form, FormControl, FormField, FormItem } from "@/components/ui/form";
|
||||||
|
import { Input } from "@/components/ui/input";
|
||||||
|
import { zodResolver } from "@hookform/resolvers/zod";
|
||||||
|
import React, { useCallback } from "react";
|
||||||
|
import { useForm } from "react-hook-form";
|
||||||
|
|
||||||
|
import { z } from "zod";
|
||||||
|
|
||||||
|
type ImageEntryProps = {
|
||||||
|
onSave: (file: File) => void;
|
||||||
|
children?: React.ReactNode;
|
||||||
|
};
|
||||||
|
export default function ImageEntry({ onSave, children }: ImageEntryProps) {
|
||||||
|
const formSchema = z.object({
|
||||||
|
file: z.instanceof(FileList, { message: "Please select an image file." }),
|
||||||
|
});
|
||||||
|
|
||||||
|
const form = useForm<z.infer<typeof formSchema>>({
|
||||||
|
resolver: zodResolver(formSchema),
|
||||||
|
});
|
||||||
|
const fileRef = form.register("file");
|
||||||
|
|
||||||
|
// upload handler
|
||||||
|
|
||||||
|
const onSubmit = useCallback(
|
||||||
|
(data: z.infer<typeof formSchema>) => {
|
||||||
|
if (!data["file"] || Object.keys(data.file).length == 0) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
onSave(data["file"]["0"]);
|
||||||
|
},
|
||||||
|
[onSave],
|
||||||
|
);
|
||||||
|
|
||||||
|
return (
|
||||||
|
<Form {...form}>
|
||||||
|
<form onSubmit={form.handleSubmit(onSubmit)}>
|
||||||
|
<FormField
|
||||||
|
control={form.control}
|
||||||
|
name="file"
|
||||||
|
render={() => (
|
||||||
|
<FormItem>
|
||||||
|
<FormControl>
|
||||||
|
<Input
|
||||||
|
className="aspect-video h-40 w-full"
|
||||||
|
type="file"
|
||||||
|
{...fileRef}
|
||||||
|
/>
|
||||||
|
</FormControl>
|
||||||
|
</FormItem>
|
||||||
|
)}
|
||||||
|
/>
|
||||||
|
{children}
|
||||||
|
</form>
|
||||||
|
</Form>
|
||||||
|
);
|
||||||
|
}
|
68
web/src/components/input/TextEntry.tsx
Normal file
68
web/src/components/input/TextEntry.tsx
Normal file
@ -0,0 +1,68 @@
|
|||||||
|
import { Form, FormControl, FormField, FormItem } from "@/components/ui/form";
|
||||||
|
import { Input } from "@/components/ui/input";
|
||||||
|
import { zodResolver } from "@hookform/resolvers/zod";
|
||||||
|
import React, { useCallback } from "react";
|
||||||
|
import { useForm } from "react-hook-form";
|
||||||
|
|
||||||
|
import { z } from "zod";
|
||||||
|
|
||||||
|
type TextEntryProps = {
|
||||||
|
defaultValue?: string;
|
||||||
|
placeholder?: string;
|
||||||
|
allowEmpty?: boolean;
|
||||||
|
onSave: (text: string) => void;
|
||||||
|
children?: React.ReactNode;
|
||||||
|
};
|
||||||
|
export default function TextEntry({
|
||||||
|
defaultValue,
|
||||||
|
placeholder,
|
||||||
|
allowEmpty,
|
||||||
|
onSave,
|
||||||
|
children,
|
||||||
|
}: TextEntryProps) {
|
||||||
|
const formSchema = z.object({
|
||||||
|
text: z.string(),
|
||||||
|
});
|
||||||
|
|
||||||
|
const form = useForm<z.infer<typeof formSchema>>({
|
||||||
|
resolver: zodResolver(formSchema),
|
||||||
|
defaultValues: { text: defaultValue },
|
||||||
|
});
|
||||||
|
const fileRef = form.register("text");
|
||||||
|
|
||||||
|
// upload handler
|
||||||
|
|
||||||
|
const onSubmit = useCallback(
|
||||||
|
(data: z.infer<typeof formSchema>) => {
|
||||||
|
if (!allowEmpty && !data["text"]) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
onSave(data["text"]);
|
||||||
|
},
|
||||||
|
[onSave, allowEmpty],
|
||||||
|
);
|
||||||
|
|
||||||
|
return (
|
||||||
|
<Form {...form}>
|
||||||
|
<form onSubmit={form.handleSubmit(onSubmit)}>
|
||||||
|
<FormField
|
||||||
|
control={form.control}
|
||||||
|
name="text"
|
||||||
|
render={() => (
|
||||||
|
<FormItem>
|
||||||
|
<FormControl>
|
||||||
|
<Input
|
||||||
|
className="aspect-video h-8 w-full"
|
||||||
|
placeholder={placeholder}
|
||||||
|
type="text"
|
||||||
|
{...fileRef}
|
||||||
|
/>
|
||||||
|
</FormControl>
|
||||||
|
</FormItem>
|
||||||
|
)}
|
||||||
|
/>
|
||||||
|
{children}
|
||||||
|
</form>
|
||||||
|
</Form>
|
||||||
|
);
|
||||||
|
}
|
168
web/src/components/overlay/detail/FaceCreateWizardDialog.tsx
Normal file
168
web/src/components/overlay/detail/FaceCreateWizardDialog.tsx
Normal file
@ -0,0 +1,168 @@
|
|||||||
|
import StepIndicator from "@/components/indicators/StepIndicator";
|
||||||
|
import ImageEntry from "@/components/input/ImageEntry";
|
||||||
|
import TextEntry from "@/components/input/TextEntry";
|
||||||
|
import {
|
||||||
|
MobilePage,
|
||||||
|
MobilePageContent,
|
||||||
|
MobilePageDescription,
|
||||||
|
MobilePageHeader,
|
||||||
|
MobilePageTitle,
|
||||||
|
} from "@/components/mobile/MobilePage";
|
||||||
|
import { Button } from "@/components/ui/button";
|
||||||
|
import {
|
||||||
|
Dialog,
|
||||||
|
DialogContent,
|
||||||
|
DialogDescription,
|
||||||
|
DialogHeader,
|
||||||
|
DialogTitle,
|
||||||
|
} from "@/components/ui/dialog";
|
||||||
|
import { cn } from "@/lib/utils";
|
||||||
|
import axios from "axios";
|
||||||
|
import { useCallback, useState } from "react";
|
||||||
|
import { isDesktop } from "react-device-detect";
|
||||||
|
import { useTranslation } from "react-i18next";
|
||||||
|
import { LuExternalLink } from "react-icons/lu";
|
||||||
|
import { Link } from "react-router-dom";
|
||||||
|
import { toast } from "sonner";
|
||||||
|
|
||||||
|
const STEPS = ["Enter Face Name", "Upload Face Image", "Next Steps"];
|
||||||
|
|
||||||
|
type CreateFaceWizardDialogProps = {
|
||||||
|
open: boolean;
|
||||||
|
setOpen: (open: boolean) => void;
|
||||||
|
onFinish: () => void;
|
||||||
|
};
|
||||||
|
export default function CreateFaceWizardDialog({
|
||||||
|
open,
|
||||||
|
setOpen,
|
||||||
|
onFinish,
|
||||||
|
}: CreateFaceWizardDialogProps) {
|
||||||
|
const { t } = useTranslation("views/faceLibrary");
|
||||||
|
|
||||||
|
// wizard
|
||||||
|
|
||||||
|
const [step, setStep] = useState(0);
|
||||||
|
const [name, setName] = useState("");
|
||||||
|
|
||||||
|
const handleReset = useCallback(() => {
|
||||||
|
setStep(0);
|
||||||
|
setName("");
|
||||||
|
setOpen(false);
|
||||||
|
}, [setOpen]);
|
||||||
|
|
||||||
|
// data handling
|
||||||
|
|
||||||
|
const onUploadImage = useCallback(
|
||||||
|
(file: File) => {
|
||||||
|
const formData = new FormData();
|
||||||
|
formData.append("file", file);
|
||||||
|
axios
|
||||||
|
.post(`faces/${name}/register`, formData, {
|
||||||
|
headers: {
|
||||||
|
"Content-Type": "multipart/form-data",
|
||||||
|
},
|
||||||
|
})
|
||||||
|
.then((resp) => {
|
||||||
|
if (resp.status == 200) {
|
||||||
|
setStep(2);
|
||||||
|
toast.success(t("toast.success.uploadedImage"), {
|
||||||
|
position: "top-center",
|
||||||
|
});
|
||||||
|
}
|
||||||
|
})
|
||||||
|
.catch((error) => {
|
||||||
|
const errorMessage =
|
||||||
|
error.response?.data?.message ||
|
||||||
|
error.response?.data?.detail ||
|
||||||
|
"Unknown error";
|
||||||
|
toast.error(t("toast.error.uploadingImageFailed", { errorMessage }), {
|
||||||
|
position: "top-center",
|
||||||
|
});
|
||||||
|
});
|
||||||
|
},
|
||||||
|
[name, t],
|
||||||
|
);
|
||||||
|
|
||||||
|
// layout
|
||||||
|
|
||||||
|
const Overlay = isDesktop ? Dialog : MobilePage;
|
||||||
|
const Content = isDesktop ? DialogContent : MobilePageContent;
|
||||||
|
const Header = isDesktop ? DialogHeader : MobilePageHeader;
|
||||||
|
const Title = isDesktop ? DialogTitle : MobilePageTitle;
|
||||||
|
const Description = isDesktop ? DialogDescription : MobilePageDescription;
|
||||||
|
|
||||||
|
return (
|
||||||
|
<Overlay
|
||||||
|
open={open}
|
||||||
|
onOpenChange={(open) => {
|
||||||
|
if (!open) {
|
||||||
|
handleReset();
|
||||||
|
}
|
||||||
|
}}
|
||||||
|
>
|
||||||
|
<Content
|
||||||
|
className={cn("flex flex-col gap-4", isDesktop ? "max-w-[50%]" : "p-4")}
|
||||||
|
>
|
||||||
|
<Header>
|
||||||
|
<Title>{t("button.addFace")}</Title>
|
||||||
|
{isDesktop && <Description>{t("description.addFace")}</Description>}
|
||||||
|
</Header>
|
||||||
|
<StepIndicator steps={STEPS} currentStep={step} />
|
||||||
|
{step == 0 && (
|
||||||
|
<TextEntry
|
||||||
|
placeholder="Enter Face Name"
|
||||||
|
onSave={(name) => {
|
||||||
|
setName(name);
|
||||||
|
setStep(1);
|
||||||
|
}}
|
||||||
|
>
|
||||||
|
<div className="flex justify-end py-2">
|
||||||
|
<Button variant="select" type="submit">
|
||||||
|
{t("button.next", { ns: "common" })}
|
||||||
|
</Button>
|
||||||
|
</div>
|
||||||
|
</TextEntry>
|
||||||
|
)}
|
||||||
|
{step == 1 && (
|
||||||
|
<ImageEntry onSave={onUploadImage}>
|
||||||
|
<div className="flex justify-end py-2">
|
||||||
|
<Button variant="select" type="submit">
|
||||||
|
{t("button.next", { ns: "common" })}
|
||||||
|
</Button>
|
||||||
|
</div>
|
||||||
|
</ImageEntry>
|
||||||
|
)}
|
||||||
|
{step == 2 && (
|
||||||
|
<div>
|
||||||
|
{t("toast.success.addFaceLibrary", { name })}
|
||||||
|
<p className="py-4 text-sm text-secondary-foreground">
|
||||||
|
{t("createFaceLibrary.nextSteps")}
|
||||||
|
</p>
|
||||||
|
<div className="text-s my-4 flex items-center text-primary">
|
||||||
|
<Link
|
||||||
|
to="https://docs.frigate.video/configuration/face_recognition"
|
||||||
|
target="_blank"
|
||||||
|
rel="noopener noreferrer"
|
||||||
|
className="inline"
|
||||||
|
>
|
||||||
|
{t("readTheDocs")}
|
||||||
|
<LuExternalLink className="ml-2 inline-flex size-3" />
|
||||||
|
</Link>
|
||||||
|
</div>
|
||||||
|
<div className="flex justify-end">
|
||||||
|
<Button
|
||||||
|
variant="select"
|
||||||
|
onClick={() => {
|
||||||
|
onFinish();
|
||||||
|
handleReset();
|
||||||
|
}}
|
||||||
|
>
|
||||||
|
{t("button.done", { ns: "common" })}
|
||||||
|
</Button>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
)}
|
||||||
|
</Content>
|
||||||
|
</Overlay>
|
||||||
|
);
|
||||||
|
}
|
@ -1,3 +1,4 @@
|
|||||||
|
import TextEntry from "@/components/input/TextEntry";
|
||||||
import { Button } from "@/components/ui/button";
|
import { Button } from "@/components/ui/button";
|
||||||
import {
|
import {
|
||||||
Dialog,
|
Dialog,
|
||||||
@ -7,15 +8,8 @@ import {
|
|||||||
DialogHeader,
|
DialogHeader,
|
||||||
DialogTitle,
|
DialogTitle,
|
||||||
} from "@/components/ui/dialog";
|
} from "@/components/ui/dialog";
|
||||||
import { Form, FormControl, FormField, FormItem } from "@/components/ui/form";
|
|
||||||
import { Input } from "@/components/ui/input";
|
|
||||||
import { zodResolver } from "@hookform/resolvers/zod";
|
|
||||||
import { useCallback, useEffect } from "react";
|
|
||||||
import { useForm } from "react-hook-form";
|
|
||||||
import { useTranslation } from "react-i18next";
|
import { useTranslation } from "react-i18next";
|
||||||
|
|
||||||
import { z } from "zod";
|
|
||||||
|
|
||||||
type TextEntryDialogProps = {
|
type TextEntryDialogProps = {
|
||||||
open: boolean;
|
open: boolean;
|
||||||
title: string;
|
title: string;
|
||||||
@ -35,35 +29,7 @@ export default function TextEntryDialog({
|
|||||||
defaultValue = "",
|
defaultValue = "",
|
||||||
allowEmpty = false,
|
allowEmpty = false,
|
||||||
}: TextEntryDialogProps) {
|
}: TextEntryDialogProps) {
|
||||||
const formSchema = z.object({
|
const { t } = useTranslation("common");
|
||||||
text: z.string(),
|
|
||||||
});
|
|
||||||
|
|
||||||
const { t } = useTranslation("components/dialog");
|
|
||||||
|
|
||||||
const form = useForm<z.infer<typeof formSchema>>({
|
|
||||||
resolver: zodResolver(formSchema),
|
|
||||||
defaultValues: { text: defaultValue },
|
|
||||||
});
|
|
||||||
const fileRef = form.register("text");
|
|
||||||
|
|
||||||
// upload handler
|
|
||||||
|
|
||||||
const onSubmit = useCallback(
|
|
||||||
(data: z.infer<typeof formSchema>) => {
|
|
||||||
if (!allowEmpty && !data["text"]) {
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
onSave(data["text"]);
|
|
||||||
},
|
|
||||||
[onSave, allowEmpty],
|
|
||||||
);
|
|
||||||
|
|
||||||
useEffect(() => {
|
|
||||||
if (open) {
|
|
||||||
form.reset({ text: defaultValue });
|
|
||||||
}
|
|
||||||
}, [open, defaultValue, form]);
|
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<Dialog open={open} defaultOpen={false} onOpenChange={setOpen}>
|
<Dialog open={open} defaultOpen={false} onOpenChange={setOpen}>
|
||||||
@ -72,33 +38,20 @@ export default function TextEntryDialog({
|
|||||||
<DialogTitle>{title}</DialogTitle>
|
<DialogTitle>{title}</DialogTitle>
|
||||||
{description && <DialogDescription>{description}</DialogDescription>}
|
{description && <DialogDescription>{description}</DialogDescription>}
|
||||||
</DialogHeader>
|
</DialogHeader>
|
||||||
<Form {...form}>
|
<TextEntry
|
||||||
<form onSubmit={form.handleSubmit(onSubmit)}>
|
defaultValue={defaultValue}
|
||||||
<FormField
|
allowEmpty={allowEmpty}
|
||||||
control={form.control}
|
onSave={onSave}
|
||||||
name="text"
|
>
|
||||||
render={() => (
|
<DialogFooter className="pt-4">
|
||||||
<FormItem>
|
<Button type="button" onClick={() => setOpen(false)}>
|
||||||
<FormControl>
|
{t("button.cancel")}
|
||||||
<Input
|
</Button>
|
||||||
className="aspect-video h-8 w-full"
|
<Button variant="select" type="submit">
|
||||||
type="text"
|
{t("button.save")}
|
||||||
{...fileRef}
|
</Button>
|
||||||
/>
|
</DialogFooter>
|
||||||
</FormControl>
|
</TextEntry>
|
||||||
</FormItem>
|
|
||||||
)}
|
|
||||||
/>
|
|
||||||
<DialogFooter className="pt-4">
|
|
||||||
<Button type="button" onClick={() => setOpen(false)}>
|
|
||||||
{t("button.cancel", { ns: "common" })}
|
|
||||||
</Button>
|
|
||||||
<Button variant="select" type="submit">
|
|
||||||
{t("button.save", { ns: "common" })}
|
|
||||||
</Button>
|
|
||||||
</DialogFooter>
|
|
||||||
</form>
|
|
||||||
</Form>
|
|
||||||
</DialogContent>
|
</DialogContent>
|
||||||
</Dialog>
|
</Dialog>
|
||||||
);
|
);
|
||||||
|
@ -1,3 +1,4 @@
|
|||||||
|
import ImageEntry from "@/components/input/ImageEntry";
|
||||||
import { Button } from "@/components/ui/button";
|
import { Button } from "@/components/ui/button";
|
||||||
import {
|
import {
|
||||||
Dialog,
|
Dialog,
|
||||||
@ -7,12 +8,7 @@ import {
|
|||||||
DialogHeader,
|
DialogHeader,
|
||||||
DialogTitle,
|
DialogTitle,
|
||||||
} from "@/components/ui/dialog";
|
} from "@/components/ui/dialog";
|
||||||
import { Form, FormControl, FormField, FormItem } from "@/components/ui/form";
|
import { useTranslation } from "react-i18next";
|
||||||
import { Input } from "@/components/ui/input";
|
|
||||||
import { zodResolver } from "@hookform/resolvers/zod";
|
|
||||||
import { useCallback } from "react";
|
|
||||||
import { useForm } from "react-hook-form";
|
|
||||||
import { z } from "zod";
|
|
||||||
|
|
||||||
type UploadImageDialogProps = {
|
type UploadImageDialogProps = {
|
||||||
open: boolean;
|
open: boolean;
|
||||||
@ -28,27 +24,7 @@ export default function UploadImageDialog({
|
|||||||
setOpen,
|
setOpen,
|
||||||
onSave,
|
onSave,
|
||||||
}: UploadImageDialogProps) {
|
}: UploadImageDialogProps) {
|
||||||
const formSchema = z.object({
|
const { t } = useTranslation("common");
|
||||||
file: z.instanceof(FileList, { message: "Please select an image file." }),
|
|
||||||
});
|
|
||||||
|
|
||||||
const form = useForm<z.infer<typeof formSchema>>({
|
|
||||||
resolver: zodResolver(formSchema),
|
|
||||||
});
|
|
||||||
const fileRef = form.register("file");
|
|
||||||
|
|
||||||
// upload handler
|
|
||||||
|
|
||||||
const onSubmit = useCallback(
|
|
||||||
(data: z.infer<typeof formSchema>) => {
|
|
||||||
if (!data["file"] || Object.keys(data.file).length == 0) {
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
|
|
||||||
onSave(data["file"]["0"]);
|
|
||||||
},
|
|
||||||
[onSave],
|
|
||||||
);
|
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<Dialog open={open} defaultOpen={false} onOpenChange={setOpen}>
|
<Dialog open={open} defaultOpen={false} onOpenChange={setOpen}>
|
||||||
@ -57,31 +33,14 @@ export default function UploadImageDialog({
|
|||||||
<DialogTitle>{title}</DialogTitle>
|
<DialogTitle>{title}</DialogTitle>
|
||||||
{description && <DialogDescription>{description}</DialogDescription>}
|
{description && <DialogDescription>{description}</DialogDescription>}
|
||||||
</DialogHeader>
|
</DialogHeader>
|
||||||
<Form {...form}>
|
<ImageEntry onSave={onSave}>
|
||||||
<form onSubmit={form.handleSubmit(onSubmit)}>
|
<DialogFooter className="pt-4">
|
||||||
<FormField
|
<Button onClick={() => setOpen(false)}>{t("button.cancel")}</Button>
|
||||||
control={form.control}
|
<Button variant="select" type="submit">
|
||||||
name="file"
|
{t("button.save")}
|
||||||
render={() => (
|
</Button>
|
||||||
<FormItem>
|
</DialogFooter>
|
||||||
<FormControl>
|
</ImageEntry>
|
||||||
<Input
|
|
||||||
className="aspect-video h-40 w-full"
|
|
||||||
type="file"
|
|
||||||
{...fileRef}
|
|
||||||
/>
|
|
||||||
</FormControl>
|
|
||||||
</FormItem>
|
|
||||||
)}
|
|
||||||
/>
|
|
||||||
<DialogFooter className="pt-4">
|
|
||||||
<Button onClick={() => setOpen(false)}>Cancel</Button>
|
|
||||||
<Button variant="select" type="submit">
|
|
||||||
Save
|
|
||||||
</Button>
|
|
||||||
</DialogFooter>
|
|
||||||
</form>
|
|
||||||
</Form>
|
|
||||||
</DialogContent>
|
</DialogContent>
|
||||||
</Dialog>
|
</Dialog>
|
||||||
);
|
);
|
||||||
|
@ -1,7 +1,8 @@
|
|||||||
import { baseUrl } from "@/api/baseUrl";
|
import { baseUrl } from "@/api/baseUrl";
|
||||||
|
import TimeAgo from "@/components/dynamic/TimeAgo";
|
||||||
import AddFaceIcon from "@/components/icons/AddFaceIcon";
|
import AddFaceIcon from "@/components/icons/AddFaceIcon";
|
||||||
import ActivityIndicator from "@/components/indicators/activity-indicator";
|
import ActivityIndicator from "@/components/indicators/activity-indicator";
|
||||||
import TextEntryDialog from "@/components/overlay/dialog/TextEntryDialog";
|
import CreateFaceWizardDialog from "@/components/overlay/detail/FaceCreateWizardDialog";
|
||||||
import UploadImageDialog from "@/components/overlay/dialog/UploadImageDialog";
|
import UploadImageDialog from "@/components/overlay/dialog/UploadImageDialog";
|
||||||
import { Button } from "@/components/ui/button";
|
import { Button } from "@/components/ui/button";
|
||||||
import {
|
import {
|
||||||
@ -25,6 +26,7 @@ import { cn } from "@/lib/utils";
|
|||||||
import { FrigateConfig } from "@/types/frigateConfig";
|
import { FrigateConfig } from "@/types/frigateConfig";
|
||||||
import axios from "axios";
|
import axios from "axios";
|
||||||
import { useCallback, useEffect, useMemo, useRef, useState } from "react";
|
import { useCallback, useEffect, useMemo, useRef, useState } from "react";
|
||||||
|
import { isDesktop } from "react-device-detect";
|
||||||
import { useTranslation } from "react-i18next";
|
import { useTranslation } from "react-i18next";
|
||||||
import { LuImagePlus, LuRefreshCw, LuScanFace, LuTrash2 } from "react-icons/lu";
|
import { LuImagePlus, LuRefreshCw, LuScanFace, LuTrash2 } from "react-icons/lu";
|
||||||
import { toast } from "sonner";
|
import { toast } from "sonner";
|
||||||
@ -115,42 +117,16 @@ export default function FaceLibrary() {
|
|||||||
[pageToggle, refreshFaces, t],
|
[pageToggle, refreshFaces, t],
|
||||||
);
|
);
|
||||||
|
|
||||||
const onAddName = useCallback(
|
|
||||||
(name: string) => {
|
|
||||||
axios
|
|
||||||
.post(`faces/${name}/create`, {
|
|
||||||
headers: {
|
|
||||||
"Content-Type": "multipart/form-data",
|
|
||||||
},
|
|
||||||
})
|
|
||||||
.then((resp) => {
|
|
||||||
if (resp.status == 200) {
|
|
||||||
setAddFace(false);
|
|
||||||
refreshFaces();
|
|
||||||
toast.success(t("toast.success.addFaceLibrary"), {
|
|
||||||
position: "top-center",
|
|
||||||
});
|
|
||||||
}
|
|
||||||
})
|
|
||||||
.catch((error) => {
|
|
||||||
const errorMessage =
|
|
||||||
error.response?.data?.message ||
|
|
||||||
error.response?.data?.detail ||
|
|
||||||
"Unknown error";
|
|
||||||
toast.error(t("toast.error.addFaceLibraryFailed", { errorMessage }), {
|
|
||||||
position: "top-center",
|
|
||||||
});
|
|
||||||
});
|
|
||||||
},
|
|
||||||
[refreshFaces, t],
|
|
||||||
);
|
|
||||||
|
|
||||||
// face multiselect
|
// face multiselect
|
||||||
|
|
||||||
const [selectedFaces, setSelectedFaces] = useState<string[]>([]);
|
const [selectedFaces, setSelectedFaces] = useState<string[]>([]);
|
||||||
|
|
||||||
const onClickFace = useCallback(
|
const onClickFace = useCallback(
|
||||||
(imageId: string) => {
|
(imageId: string, ctrl: boolean) => {
|
||||||
|
if (selectedFaces.length == 0 && !ctrl) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
const index = selectedFaces.indexOf(imageId);
|
const index = selectedFaces.indexOf(imageId);
|
||||||
|
|
||||||
if (index != -1) {
|
if (index != -1) {
|
||||||
@ -172,33 +148,42 @@ export default function FaceLibrary() {
|
|||||||
[selectedFaces, setSelectedFaces],
|
[selectedFaces, setSelectedFaces],
|
||||||
);
|
);
|
||||||
|
|
||||||
const onDelete = useCallback(() => {
|
const onDelete = useCallback(
|
||||||
axios
|
(name: string, ids: string[]) => {
|
||||||
.post(`/faces/train/delete`, { ids: selectedFaces })
|
axios
|
||||||
.then((resp) => {
|
.post(`/faces/${name}/delete`, { ids })
|
||||||
setSelectedFaces([]);
|
.then((resp) => {
|
||||||
|
setSelectedFaces([]);
|
||||||
|
|
||||||
if (resp.status == 200) {
|
if (resp.status == 200) {
|
||||||
toast.success(t("toast.success.deletedFace"), {
|
toast.success(t("toast.success.deletedFace"), {
|
||||||
|
position: "top-center",
|
||||||
|
});
|
||||||
|
|
||||||
|
if (faceImages.length == 1) {
|
||||||
|
// face has been deleted
|
||||||
|
setPageToggle("");
|
||||||
|
}
|
||||||
|
|
||||||
|
refreshFaces();
|
||||||
|
}
|
||||||
|
})
|
||||||
|
.catch((error) => {
|
||||||
|
const errorMessage =
|
||||||
|
error.response?.data?.message ||
|
||||||
|
error.response?.data?.detail ||
|
||||||
|
"Unknown error";
|
||||||
|
toast.error(t("toast.error.deleteFaceFailed", { errorMessage }), {
|
||||||
position: "top-center",
|
position: "top-center",
|
||||||
});
|
});
|
||||||
refreshFaces();
|
|
||||||
}
|
|
||||||
})
|
|
||||||
.catch((error) => {
|
|
||||||
const errorMessage =
|
|
||||||
error.response?.data?.message ||
|
|
||||||
error.response?.data?.detail ||
|
|
||||||
"Unknown error";
|
|
||||||
toast.error(t("toast.error.deleteFaceFailed", { errorMessage }), {
|
|
||||||
position: "top-center",
|
|
||||||
});
|
});
|
||||||
});
|
},
|
||||||
}, [selectedFaces, refreshFaces, t]);
|
[faceImages, refreshFaces, setPageToggle, t],
|
||||||
|
);
|
||||||
|
|
||||||
// keyboard
|
// keyboard
|
||||||
|
|
||||||
useKeyboardListener(["a"], (key, modifiers) => {
|
useKeyboardListener(["a", "Escape"], (key, modifiers) => {
|
||||||
if (modifiers.repeat || !modifiers.down) {
|
if (modifiers.repeat || !modifiers.down) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
@ -209,6 +194,9 @@ export default function FaceLibrary() {
|
|||||||
setSelectedFaces([...trainImages]);
|
setSelectedFaces([...trainImages]);
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
|
case "Escape":
|
||||||
|
setSelectedFaces([]);
|
||||||
|
break;
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
@ -228,12 +216,10 @@ export default function FaceLibrary() {
|
|||||||
onSave={onUploadImage}
|
onSave={onUploadImage}
|
||||||
/>
|
/>
|
||||||
|
|
||||||
<TextEntryDialog
|
<CreateFaceWizardDialog
|
||||||
title={t("createFaceLibrary.title")}
|
|
||||||
description={t("createFaceLibrary.desc")}
|
|
||||||
open={addFace}
|
open={addFace}
|
||||||
setOpen={setAddFace}
|
setOpen={setAddFace}
|
||||||
onSave={onAddName}
|
onFinish={refreshFaces}
|
||||||
/>
|
/>
|
||||||
|
|
||||||
<div className="relative mb-2 flex h-11 w-full items-center justify-between">
|
<div className="relative mb-2 flex h-11 w-full items-center justify-between">
|
||||||
@ -283,21 +269,24 @@ export default function FaceLibrary() {
|
|||||||
</ScrollArea>
|
</ScrollArea>
|
||||||
{selectedFaces?.length > 0 ? (
|
{selectedFaces?.length > 0 ? (
|
||||||
<div className="flex items-center justify-center gap-2">
|
<div className="flex items-center justify-center gap-2">
|
||||||
<Button className="flex gap-2" onClick={() => onDelete()}>
|
<Button
|
||||||
|
className="flex gap-2"
|
||||||
|
onClick={() => onDelete("train", selectedFaces)}
|
||||||
|
>
|
||||||
<LuTrash2 className="size-7 rounded-md p-1 text-secondary-foreground" />
|
<LuTrash2 className="size-7 rounded-md p-1 text-secondary-foreground" />
|
||||||
{t("button.deleteFaceAttempts")}
|
{isDesktop && t("button.deleteFaceAttempts")}
|
||||||
</Button>
|
</Button>
|
||||||
</div>
|
</div>
|
||||||
) : (
|
) : (
|
||||||
<div className="flex items-center justify-center gap-2">
|
<div className="flex items-center justify-center gap-2">
|
||||||
<Button className="flex gap-2" onClick={() => setAddFace(true)}>
|
<Button className="flex gap-2" onClick={() => setAddFace(true)}>
|
||||||
<LuScanFace className="size-7 rounded-md p-1 text-secondary-foreground" />
|
<LuScanFace className="size-7 rounded-md p-1 text-secondary-foreground" />
|
||||||
{t("button.addFace")}
|
{isDesktop && t("button.addFace")}
|
||||||
</Button>
|
</Button>
|
||||||
{pageToggle != "train" && (
|
{pageToggle != "train" && (
|
||||||
<Button className="flex gap-2" onClick={() => setUpload(true)}>
|
<Button className="flex gap-2" onClick={() => setUpload(true)}>
|
||||||
<LuImagePlus className="size-7 rounded-md p-1 text-secondary-foreground" />
|
<LuImagePlus className="size-7 rounded-md p-1 text-secondary-foreground" />
|
||||||
{t("button.uploadImage")}
|
{isDesktop && t("button.uploadImage")}
|
||||||
</Button>
|
</Button>
|
||||||
)}
|
)}
|
||||||
</div>
|
</div>
|
||||||
@ -317,7 +306,7 @@ export default function FaceLibrary() {
|
|||||||
<FaceGrid
|
<FaceGrid
|
||||||
faceImages={faceImages}
|
faceImages={faceImages}
|
||||||
pageToggle={pageToggle}
|
pageToggle={pageToggle}
|
||||||
onRefresh={refreshFaces}
|
onDelete={onDelete}
|
||||||
/>
|
/>
|
||||||
))}
|
))}
|
||||||
</div>
|
</div>
|
||||||
@ -329,7 +318,7 @@ type TrainingGridProps = {
|
|||||||
attemptImages: string[];
|
attemptImages: string[];
|
||||||
faceNames: string[];
|
faceNames: string[];
|
||||||
selectedFaces: string[];
|
selectedFaces: string[];
|
||||||
onClickFace: (image: string) => void;
|
onClickFace: (image: string, ctrl: boolean) => void;
|
||||||
onRefresh: () => void;
|
onRefresh: () => void;
|
||||||
};
|
};
|
||||||
function TrainingGrid({
|
function TrainingGrid({
|
||||||
@ -349,7 +338,7 @@ function TrainingGrid({
|
|||||||
faceNames={faceNames}
|
faceNames={faceNames}
|
||||||
threshold={config.face_recognition.recognition_threshold}
|
threshold={config.face_recognition.recognition_threshold}
|
||||||
selected={selectedFaces.includes(image)}
|
selected={selectedFaces.includes(image)}
|
||||||
onClick={() => onClickFace(image)}
|
onClick={(meta) => onClickFace(image, meta)}
|
||||||
onRefresh={onRefresh}
|
onRefresh={onRefresh}
|
||||||
/>
|
/>
|
||||||
))}
|
))}
|
||||||
@ -362,7 +351,7 @@ type FaceAttemptProps = {
|
|||||||
faceNames: string[];
|
faceNames: string[];
|
||||||
threshold: number;
|
threshold: number;
|
||||||
selected: boolean;
|
selected: boolean;
|
||||||
onClick: () => void;
|
onClick: (meta: boolean) => void;
|
||||||
onRefresh: () => void;
|
onRefresh: () => void;
|
||||||
};
|
};
|
||||||
function FaceAttempt({
|
function FaceAttempt({
|
||||||
@ -378,6 +367,7 @@ function FaceAttempt({
|
|||||||
const parts = image.split("-");
|
const parts = image.split("-");
|
||||||
|
|
||||||
return {
|
return {
|
||||||
|
timestamp: Number.parseFloat(parts[0]),
|
||||||
eventId: `${parts[0]}-${parts[1]}`,
|
eventId: `${parts[0]}-${parts[1]}`,
|
||||||
name: parts[2],
|
name: parts[2],
|
||||||
score: parts[3],
|
score: parts[3],
|
||||||
@ -439,10 +429,13 @@ function FaceAttempt({
|
|||||||
? "shadow-selected outline-selected"
|
? "shadow-selected outline-selected"
|
||||||
: "outline-transparent duration-500",
|
: "outline-transparent duration-500",
|
||||||
)}
|
)}
|
||||||
onClick={onClick}
|
onClick={(e) => onClick(e.metaKey || e.ctrlKey)}
|
||||||
>
|
>
|
||||||
<div className="w-full overflow-hidden rounded-t-lg border border-t-0 *:text-card-foreground">
|
<div className="relative w-full overflow-hidden rounded-t-lg border border-t-0 *:text-card-foreground">
|
||||||
<img className="size-40" src={`${baseUrl}clips/faces/train/${image}`} />
|
<img className="size-44" src={`${baseUrl}clips/faces/train/${image}`} />
|
||||||
|
<div className="absolute bottom-1 right-1 z-10 rounded-lg bg-black/50 px-2 py-1 text-xs text-white">
|
||||||
|
<TimeAgo time={data.timestamp * 1000} dense />
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div className="rounded-b-lg bg-card p-2">
|
<div className="rounded-b-lg bg-card p-2">
|
||||||
<div className="flex w-full flex-row items-center justify-between gap-2">
|
<div className="flex w-full flex-row items-center justify-between gap-2">
|
||||||
@ -500,9 +493,9 @@ function FaceAttempt({
|
|||||||
type FaceGridProps = {
|
type FaceGridProps = {
|
||||||
faceImages: string[];
|
faceImages: string[];
|
||||||
pageToggle: string;
|
pageToggle: string;
|
||||||
onRefresh: () => void;
|
onDelete: (name: string, ids: string[]) => void;
|
||||||
};
|
};
|
||||||
function FaceGrid({ faceImages, pageToggle, onRefresh }: FaceGridProps) {
|
function FaceGrid({ faceImages, pageToggle, onDelete }: FaceGridProps) {
|
||||||
return (
|
return (
|
||||||
<div className="scrollbar-container flex flex-wrap gap-2 overflow-y-scroll">
|
<div className="scrollbar-container flex flex-wrap gap-2 overflow-y-scroll">
|
||||||
{faceImages.map((image: string) => (
|
{faceImages.map((image: string) => (
|
||||||
@ -510,7 +503,7 @@ function FaceGrid({ faceImages, pageToggle, onRefresh }: FaceGridProps) {
|
|||||||
key={image}
|
key={image}
|
||||||
name={pageToggle}
|
name={pageToggle}
|
||||||
image={image}
|
image={image}
|
||||||
onRefresh={onRefresh}
|
onDelete={onDelete}
|
||||||
/>
|
/>
|
||||||
))}
|
))}
|
||||||
</div>
|
</div>
|
||||||
@ -520,31 +513,10 @@ function FaceGrid({ faceImages, pageToggle, onRefresh }: FaceGridProps) {
|
|||||||
type FaceImageProps = {
|
type FaceImageProps = {
|
||||||
name: string;
|
name: string;
|
||||||
image: string;
|
image: string;
|
||||||
onRefresh: () => void;
|
onDelete: (name: string, ids: string[]) => void;
|
||||||
};
|
};
|
||||||
function FaceImage({ name, image, onRefresh }: FaceImageProps) {
|
function FaceImage({ name, image, onDelete }: FaceImageProps) {
|
||||||
const { t } = useTranslation(["views/faceLibrary"]);
|
const { t } = useTranslation(["views/faceLibrary"]);
|
||||||
const onDelete = useCallback(() => {
|
|
||||||
axios
|
|
||||||
.post(`/faces/${name}/delete`, { ids: [image] })
|
|
||||||
.then((resp) => {
|
|
||||||
if (resp.status == 200) {
|
|
||||||
toast.success(t("toast.success.deletedFace"), {
|
|
||||||
position: "top-center",
|
|
||||||
});
|
|
||||||
onRefresh();
|
|
||||||
}
|
|
||||||
})
|
|
||||||
.catch((error) => {
|
|
||||||
const errorMessage =
|
|
||||||
error.response?.data?.message ||
|
|
||||||
error.response?.data?.detail ||
|
|
||||||
"Unknown error";
|
|
||||||
toast.error(t("toast.error.deleteFaceFailed", { errorMessage }), {
|
|
||||||
position: "top-center",
|
|
||||||
});
|
|
||||||
});
|
|
||||||
}, [name, image, onRefresh, t]);
|
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<div className="relative flex flex-col rounded-lg">
|
<div className="relative flex flex-col rounded-lg">
|
||||||
@ -561,7 +533,7 @@ function FaceImage({ name, image, onRefresh }: FaceImageProps) {
|
|||||||
<TooltipTrigger>
|
<TooltipTrigger>
|
||||||
<LuTrash2
|
<LuTrash2
|
||||||
className="size-5 cursor-pointer text-primary-variant hover:text-primary"
|
className="size-5 cursor-pointer text-primary-variant hover:text-primary"
|
||||||
onClick={onDelete}
|
onClick={() => onDelete(name, [image])}
|
||||||
/>
|
/>
|
||||||
</TooltipTrigger>
|
</TooltipTrigger>
|
||||||
<TooltipContent>{t("button.deleteFaceAttempts")}</TooltipContent>
|
<TooltipContent>{t("button.deleteFaceAttempts")}</TooltipContent>
|
||||||
|
@ -1,20 +1,24 @@
|
|||||||
import { UserAuthForm } from "@/components/auth/AuthForm";
|
import { UserAuthForm } from "@/components/auth/AuthForm";
|
||||||
import Logo from "@/components/Logo";
|
import Logo from "@/components/Logo";
|
||||||
import { ThemeProvider } from "@/context/theme-provider";
|
import { ThemeProvider } from "@/context/theme-provider";
|
||||||
|
import "@/utils/i18n";
|
||||||
|
import { LanguageProvider } from "@/context/language-provider";
|
||||||
|
|
||||||
function LoginPage() {
|
function LoginPage() {
|
||||||
return (
|
return (
|
||||||
<ThemeProvider defaultTheme="system" storageKey="frigate-ui-theme">
|
<ThemeProvider defaultTheme="system" storageKey="frigate-ui-theme">
|
||||||
<div className="size-full overflow-hidden">
|
<LanguageProvider>
|
||||||
<div className="p-8">
|
<div className="size-full overflow-hidden">
|
||||||
<div className="mx-auto flex w-full flex-col justify-center space-y-6 sm:w-[350px]">
|
<div className="p-8">
|
||||||
<div className="flex flex-col items-center space-y-2">
|
<div className="mx-auto flex w-full flex-col justify-center space-y-6 sm:w-[350px]">
|
||||||
<Logo className="mb-6 h-8 w-8" />
|
<div className="flex flex-col items-center space-y-2">
|
||||||
|
<Logo className="mb-6 h-8 w-8" />
|
||||||
|
</div>
|
||||||
|
<UserAuthForm />
|
||||||
</div>
|
</div>
|
||||||
<UserAuthForm />
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</LanguageProvider>
|
||||||
</ThemeProvider>
|
</ThemeProvider>
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user