This commit is contained in:
Josh Hawkins 2025-12-06 00:01:57 +00:00 committed by GitHub
commit 3b017150ad
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
11 changed files with 17 additions and 21 deletions

2
.github/copilot-instructions.md vendored Normal file
View File

@ -0,0 +1,2 @@
Never write strings in the frontend directly, always write to and reference the relevant translations file.
Always conform new and refactored code to the existing coding style in the project.

View File

@ -116,4 +116,4 @@ Along with individual review item summaries, Generative AI provides the ability
Review reports can be requested via the [API](/integrations/api#review-summarization) by sending a POST request to `/api/review/summarize/start/{start_ts}/end/{end_ts}` with Unix timestamps. Review reports can be requested via the [API](/integrations/api#review-summarization) by sending a POST request to `/api/review/summarize/start/{start_ts}/end/{end_ts}` with Unix timestamps.
For Home Assistant users, there is a built-in service (`frigate.generate_review_summary`) that makes it easy to request review reports as part of automations or scripts. This allows you to automatically generate daily summaries, vacation reports, or custom time period reports based on your specific needs. For Home Assistant users, there is a built-in service (`frigate.review_summarize`) that makes it easy to request review reports as part of automations or scripts. This allows you to automatically generate daily summaries, vacation reports, or custom time period reports based on your specific needs.

View File

@ -28,7 +28,6 @@ To create a poly mask:
5. Click the plus icon under the type of mask or zone you would like to create 5. Click the plus icon under the type of mask or zone you would like to create
6. Click on the camera's latest image to create the points for a masked area. Click the first point again to close the polygon. 6. Click on the camera's latest image to create the points for a masked area. Click the first point again to close the polygon.
7. When you've finished creating your mask, press Save. 7. When you've finished creating your mask, press Save.
8. Restart Frigate to apply your changes.
Your config file will be updated with the relative coordinates of the mask/zone: Your config file will be updated with the relative coordinates of the mask/zone:

View File

@ -1002,10 +1002,6 @@ ui:
# full: 8:15:22 PM Mountain Standard Time # full: 8:15:22 PM Mountain Standard Time
# (default: shown below). # (default: shown below).
time_style: medium time_style: medium
# Optional: Ability to manually override the date / time styling to use strftime format
# https://www.gnu.org/software/libc/manual/html_node/Formatting-Calendar-Time.html
# possible values are shown above (default: not set)
strftime_fmt: "%Y/%m/%d %H:%M"
# Optional: Set the unit system to either "imperial" or "metric" (default: metric) # Optional: Set the unit system to either "imperial" or "metric" (default: metric)
# Used in the UI and in MQTT topics # Used in the UI and in MQTT topics
unit_system: metric unit_system: metric

View File

@ -37,9 +37,6 @@ class UIConfig(FrigateBaseModel):
time_style: DateTimeStyleEnum = Field( time_style: DateTimeStyleEnum = Field(
default=DateTimeStyleEnum.medium, title="Override UI timeStyle." default=DateTimeStyleEnum.medium, title="Override UI timeStyle."
) )
strftime_fmt: Optional[str] = Field(
default=None, title="Override date and time format using strftime syntax."
)
unit_system: UnitSystemEnum = Field( unit_system: UnitSystemEnum = Field(
default=UnitSystemEnum.metric, title="The unit system to use for measurements." default=UnitSystemEnum.metric, title="The unit system to use for measurements."
) )

View File

@ -13,9 +13,6 @@
"time_style": { "time_style": {
"label": "Override UI timeStyle." "label": "Override UI timeStyle."
}, },
"strftime_fmt": {
"label": "Override date and time format using strftime syntax."
},
"unit_system": { "unit_system": {
"label": "The unit system to use for measurements." "label": "The unit system to use for measurements."
} }

View File

@ -1,5 +1,5 @@
{ {
"documentTitle": "Classification Models", "documentTitle": "Classification Models - Frigate",
"details": { "details": {
"scoreInfo": "Score represents the average classification confidence across all detections of this object." "scoreInfo": "Score represents the average classification confidence across all detections of this object."
}, },

View File

@ -77,7 +77,7 @@
"millisecondsToOffset": "Milliseconds to offset detect annotations by. <em>Default: 0</em>", "millisecondsToOffset": "Milliseconds to offset detect annotations by. <em>Default: 0</em>",
"tips": "Lower the value if the video playback is ahead of the boxes and path points, and increase the value if the video playback is behind them. This value can be negative.", "tips": "Lower the value if the video playback is ahead of the boxes and path points, and increase the value if the video playback is behind them. This value can be negative.",
"toast": { "toast": {
"success": "Annotation offset for {{camera}} has been saved to the config file. Restart Frigate to apply your changes." "success": "Annotation offset for {{camera}} has been saved to the config file."
} }
} }
}, },

View File

@ -534,7 +534,7 @@
} }
}, },
"toast": { "toast": {
"success": "Zone ({{zoneName}}) has been saved. Restart Frigate to apply changes." "success": "Zone ({{zoneName}}) has been saved."
} }
}, },
"motionMasks": { "motionMasks": {
@ -558,8 +558,8 @@
}, },
"toast": { "toast": {
"success": { "success": {
"title": "{{polygonName}} has been saved. Restart Frigate to apply changes.", "title": "{{polygonName}} has been saved.",
"noName": "Motion Mask has been saved. Restart Frigate to apply changes." "noName": "Motion Mask has been saved."
} }
} }
}, },
@ -583,8 +583,8 @@
}, },
"toast": { "toast": {
"success": { "success": {
"title": "{{polygonName}} has been saved. Restart Frigate to apply changes.", "title": "{{polygonName}} has been saved.",
"noName": "Object Mask has been saved. Restart Frigate to apply changes." "noName": "Object Mask has been saved."
} }
} }
} }

View File

@ -6,7 +6,6 @@ export interface UiConfig {
time_format?: "browser" | "12hour" | "24hour"; time_format?: "browser" | "12hour" | "24hour";
date_style?: "full" | "long" | "medium" | "short"; date_style?: "full" | "long" | "medium" | "short";
time_style?: "full" | "long" | "medium" | "short"; time_style?: "full" | "long" | "medium" | "short";
strftime_fmt?: string;
dashboard: boolean; dashboard: boolean;
order: number; order: number;
unit_system?: "metric" | "imperial"; unit_system?: "metric" | "imperial";

View File

@ -84,6 +84,12 @@ export default function ModelTrainingView({ model }: ModelTrainingViewProps) {
const [page, setPage] = useState<string>("train"); const [page, setPage] = useState<string>("train");
const [pageToggle, setPageToggle] = useOptimisticState(page, setPage, 100); const [pageToggle, setPageToggle] = useOptimisticState(page, setPage, 100);
// title
useEffect(() => {
document.title = `${model.name} - ${t("documentTitle")}`;
}, [model.name, t]);
// model state // model state
const [wasTraining, setWasTraining] = useState(false); const [wasTraining, setWasTraining] = useState(false);