mirror of
https://github.com/blakeblackshear/frigate.git
synced 2026-04-28 23:06:13 +02:00
Fixes (#18055)
* frigate+ pane i18n fix * catch more exceptions * explore search result tooltip i18n fix * i18n fix * remove comments about deprecated strftime_fmt * Catch producers exists but is None * Formatting * fix live camera view i18n * Add default role config for proxy users This allows users to specify a default role for users when using a proxy for auth. This can be useful for users who can't/don't want to define a header mapping for the remote-role header. * update reference config and auth docs * clarify face rec camera level config * clarify auth docs * Fix onnx not working with openvino * Update openvino to fix failed npu plugin check --------- Co-authored-by: Nicolas Mowen <nickmowen213@gmail.com>
This commit is contained in:
@@ -33,5 +33,6 @@
|
||||
},
|
||||
"selected_one": "{{count}} selected",
|
||||
"selected_other": "{{count}} selected",
|
||||
"camera": "Camera"
|
||||
"camera": "Camera",
|
||||
"detected": "detected"
|
||||
}
|
||||
|
||||
@@ -190,6 +190,7 @@
|
||||
"trackedObjectsCount_one": "{{count}} tracked object ",
|
||||
"trackedObjectsCount_other": "{{count}} tracked objects ",
|
||||
"searchResult": {
|
||||
"tooltip": "Matched {{type}} at {{confidence}}%",
|
||||
"deleteTrackedObject": {
|
||||
"toast": {
|
||||
"success": "Tracked object deleted successfully.",
|
||||
|
||||
@@ -229,7 +229,7 @@ export function AnimatedEventCard({
|
||||
.map((text) => text.charAt(0).toUpperCase() + text.substring(1))
|
||||
.sort()
|
||||
.join(", ")
|
||||
.replaceAll("-verified", "")} detected`}
|
||||
.replaceAll("-verified", "")} ` + t("detected")}
|
||||
</TooltipContent>
|
||||
</Tooltip>
|
||||
);
|
||||
|
||||
@@ -1167,9 +1167,9 @@ export function ObjectSnapshotTab({
|
||||
ns="components/dialog"
|
||||
values={{
|
||||
untranslatedLabel: search?.label,
|
||||
translatedLabel: t(
|
||||
"filter.label." + search?.label,
|
||||
),
|
||||
translatedLabel: t(search?.label, {
|
||||
ns: "objects",
|
||||
}),
|
||||
}}
|
||||
>
|
||||
explore.plus.review.question.ask_full
|
||||
|
||||
@@ -28,9 +28,6 @@ export const getNowYesterdayInLong = (): number => {
|
||||
* The `timezone` option allows you to specify a specific timezone for the output, otherwise the user's browser timezone will be used.
|
||||
* The `use12hour` option allows you to display time in a 12-hour format if true, and 24-hour format if false.
|
||||
* The `dateStyle` and `timeStyle` options allow you to specify pre-defined formats for displaying the date and time.
|
||||
* The `strftime_fmt` option allows you to specify a custom format using the strftime syntax.
|
||||
*
|
||||
* If both `strftime_fmt` and `dateStyle`/`timeStyle` are provided, `strftime_fmt` takes precedence.
|
||||
*
|
||||
* @param unixTimestamp The Unix timestamp to format
|
||||
* @param config An object containing the configuration options for date/time display
|
||||
|
||||
@@ -531,11 +531,9 @@ export default function LiveCameraView({
|
||||
Icon={mic ? FaMicrophone : FaMicrophoneSlash}
|
||||
isActive={mic}
|
||||
title={
|
||||
(mic
|
||||
? t("button.disable", { ns: "common" })
|
||||
: t("button.enable", { ns: "common" })) +
|
||||
" " +
|
||||
t("button.twoWayTalk", { ns: "common" })
|
||||
mic
|
||||
? t("twoWayTalk.disable", { ns: "views/live" })
|
||||
: t("twoWayTalk.enable", { ns: "views/live" })
|
||||
}
|
||||
onClick={() => {
|
||||
setMic(!mic);
|
||||
@@ -553,11 +551,9 @@ export default function LiveCameraView({
|
||||
Icon={audio ? GiSpeaker : GiSpeakerOff}
|
||||
isActive={audio ?? false}
|
||||
title={
|
||||
(audio
|
||||
? t("button.disable", { ns: "common" })
|
||||
: t("button.enable", { ns: "common" })) +
|
||||
" " +
|
||||
t("button.cameraAudio", { ns: "common" })
|
||||
audio
|
||||
? t("cameraAudio.disable", { ns: "views/live" })
|
||||
: t("cameraAudio.enable", { ns: "views/live" })
|
||||
}
|
||||
onClick={() => setAudio(!audio)}
|
||||
disabled={!cameraEnabled}
|
||||
|
||||
@@ -31,7 +31,7 @@ import {
|
||||
import Chip from "@/components/indicators/Chip";
|
||||
import { TooltipPortal } from "@radix-ui/react-tooltip";
|
||||
import SearchActionGroup from "@/components/filter/SearchActionGroup";
|
||||
import { useTranslation } from "react-i18next";
|
||||
import { Trans, useTranslation } from "react-i18next";
|
||||
|
||||
type SearchViewProps = {
|
||||
search: string;
|
||||
@@ -608,8 +608,21 @@ export default function SearchView({
|
||||
</TooltipTrigger>
|
||||
<TooltipPortal>
|
||||
<TooltipContent>
|
||||
Matched {value.search_source} at{" "}
|
||||
{zScoreToConfidence(value.search_distance)}%
|
||||
<Trans
|
||||
ns="views/explore"
|
||||
values={{
|
||||
type: t(
|
||||
"filter.searchType." +
|
||||
value.search_source,
|
||||
{ ns: "views/search" },
|
||||
),
|
||||
confidence: zScoreToConfidence(
|
||||
value.search_distance,
|
||||
),
|
||||
}}
|
||||
>
|
||||
searchResult.tooltip
|
||||
</Trans>
|
||||
</TooltipContent>
|
||||
</TooltipPortal>
|
||||
</Tooltip>
|
||||
|
||||
Reference in New Issue
Block a user