mirror of
https://github.com/blakeblackshear/frigate.git
synced 2026-02-11 05:35:25 +03:00
Fix formatting
This commit is contained in:
parent
dc17791758
commit
b63ec42942
@ -116,7 +116,7 @@ export default function Statusbar() {
|
||||
);
|
||||
})}
|
||||
</div>
|
||||
<div className="flex h-full items-center gap-2 max-w-[50%] overflow-x-auto no-scrollbar">
|
||||
<div className="no-scrollbar flex h-full max-w-[50%] items-center gap-2 overflow-x-auto">
|
||||
{Object.entries(messages).length === 0 ? (
|
||||
<div className="flex items-center gap-2 text-sm">
|
||||
<FaCheck className="size-3 text-green-500" />
|
||||
@ -129,7 +129,7 @@ export default function Statusbar() {
|
||||
const message = (
|
||||
<div
|
||||
key={text}
|
||||
className={`flex items-center gap-2 text-sm whitespace-nowrap ${link ? "cursor-pointer hover:underline" : ""}`}
|
||||
className={`flex items-center gap-2 whitespace-nowrap text-sm ${link ? "cursor-pointer hover:underline" : ""}`}
|
||||
>
|
||||
<IoIosWarning
|
||||
className={`size-5 ${color || "text-danger"}`}
|
||||
|
||||
@ -82,10 +82,10 @@ export default function PreviewPlayer({
|
||||
}
|
||||
|
||||
return (
|
||||
<div className="size-full flex items-center justify-center rounded-lg text-white md:rounded-2xl">
|
||||
<div className="flex size-full items-center justify-center rounded-lg text-white md:rounded-2xl">
|
||||
No Preview Found
|
||||
</div>
|
||||
)
|
||||
);
|
||||
}
|
||||
|
||||
export abstract class PreviewController {
|
||||
|
||||
@ -51,7 +51,7 @@ export default function useStats(stats: FrigateStats | undefined) {
|
||||
return;
|
||||
}
|
||||
|
||||
if (config.cameras[name].enabled && (cam["camera_fps"] == 0)) {
|
||||
if (config.cameras[name].enabled && cam["camera_fps"] == 0) {
|
||||
problems.push({
|
||||
text: `${capitalizeFirstLetter(name.replaceAll("_", " "))} is offline`,
|
||||
color: "text-danger",
|
||||
|
||||
@ -101,7 +101,9 @@ export default function LiveCameraView({ camera }: LiveCameraViewProps) {
|
||||
return (
|
||||
cameraMetadata.producers.find(
|
||||
(prod) =>
|
||||
prod.medias && prod.medias.find((media) => media.includes("audio, sendonly")) != undefined,
|
||||
prod.medias &&
|
||||
prod.medias.find((media) => media.includes("audio, sendonly")) !=
|
||||
undefined,
|
||||
) != undefined
|
||||
);
|
||||
}, [cameraMetadata]);
|
||||
@ -113,10 +115,12 @@ export default function LiveCameraView({ camera }: LiveCameraViewProps) {
|
||||
return (
|
||||
cameraMetadata.producers.find(
|
||||
(prod) =>
|
||||
prod.medias && prod.medias.find((media) => media.includes("audio, recvonly")) != undefined,
|
||||
prod.medias &&
|
||||
prod.medias.find((media) => media.includes("audio, recvonly")) !=
|
||||
undefined,
|
||||
) != undefined
|
||||
);
|
||||
}, [cameraMetadata])
|
||||
}, [cameraMetadata]);
|
||||
|
||||
// click overlay for ptzs
|
||||
|
||||
@ -351,14 +355,16 @@ export default function LiveCameraView({ camera }: LiveCameraViewProps) {
|
||||
onClick={() => setMic(!mic)}
|
||||
/>
|
||||
)}
|
||||
{supportsAudioOutput && <CameraFeatureToggle
|
||||
className="p-2 md:p-0"
|
||||
variant={fullscreen ? "overlay" : "primary"}
|
||||
Icon={audio ? GiSpeaker : GiSpeakerOff}
|
||||
isActive={audio}
|
||||
title={`${audio ? "Disable" : "Enable"} Camera Audio`}
|
||||
onClick={() => setAudio(!audio)}
|
||||
/>}
|
||||
{supportsAudioOutput && (
|
||||
<CameraFeatureToggle
|
||||
className="p-2 md:p-0"
|
||||
variant={fullscreen ? "overlay" : "primary"}
|
||||
Icon={audio ? GiSpeaker : GiSpeakerOff}
|
||||
isActive={audio}
|
||||
title={`${audio ? "Disable" : "Enable"} Camera Audio`}
|
||||
onClick={() => setAudio(!audio)}
|
||||
/>
|
||||
)}
|
||||
<FrigateCameraFeatures
|
||||
camera={camera.name}
|
||||
audioDetectEnabled={camera.audio.enabled_in_config}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user