mirror of
https://github.com/blakeblackshear/frigate.git
synced 2026-03-21 15:48:22 +03:00
Tweaks (#22552)
* add weblate to contributing docs * show vertex points in dialog only in motion search
This commit is contained in:
parent
23820718ee
commit
34a06ac77b
@ -122,6 +122,17 @@ docs/ # Documentation site
|
|||||||
migrations/ # Database migrations
|
migrations/ # Database migrations
|
||||||
```
|
```
|
||||||
|
|
||||||
|
## Translations
|
||||||
|
|
||||||
|
Frigate uses [Weblate](https://hosted.weblate.org/projects/frigate-nvr/) for managing language translations. If you'd like to help translate Frigate into your language:
|
||||||
|
|
||||||
|
1. Visit the [Frigate project on Weblate](https://hosted.weblate.org/projects/frigate-nvr/).
|
||||||
|
2. Create an account or log in.
|
||||||
|
3. Browse the available languages and select the one you'd like to contribute to, or request a new language.
|
||||||
|
4. Translate strings directly in the Weblate interface — no code changes or pull requests needed.
|
||||||
|
|
||||||
|
Translation contributions through Weblate are automatically synced to the repository. Please do not submit pull requests for translation changes — use Weblate instead so that translations are properly tracked and coordinated.
|
||||||
|
|
||||||
## Resources
|
## Resources
|
||||||
|
|
||||||
- [Documentation](https://docs.frigate.video)
|
- [Documentation](https://docs.frigate.video)
|
||||||
|
|||||||
@ -372,24 +372,25 @@ export default function MotionSearchROICanvas({
|
|||||||
/>
|
/>
|
||||||
)}
|
)}
|
||||||
|
|
||||||
{/* Vertex points */}
|
{/* Vertex points (only shown in interactive/dialog mode) */}
|
||||||
{scaledPoints.map((point, index) => (
|
{isInteractive &&
|
||||||
<Circle
|
scaledPoints.map((point, index) => (
|
||||||
key={index}
|
<Circle
|
||||||
name={`point-${index}`}
|
key={index}
|
||||||
x={point[0]}
|
name={`point-${index}`}
|
||||||
y={point[1]}
|
x={point[0]}
|
||||||
radius={vertexRadius}
|
y={point[1]}
|
||||||
fill={polygonColorString}
|
radius={vertexRadius}
|
||||||
stroke="white"
|
fill={polygonColorString}
|
||||||
strokeWidth={2}
|
stroke="white"
|
||||||
draggable={!isDrawing && isInteractive}
|
strokeWidth={2}
|
||||||
onDragMove={(e) => handlePointDragMove(e, index)}
|
draggable={!isDrawing}
|
||||||
onMouseOver={(e) => handleMouseOverPoint(e, index)}
|
onDragMove={(e) => handlePointDragMove(e, index)}
|
||||||
onMouseOut={(e) => handleMouseOutPoint(e, index)}
|
onMouseOver={(e) => handleMouseOverPoint(e, index)}
|
||||||
onContextMenu={(e) => handleContextMenu(e, index)}
|
onMouseOut={(e) => handleMouseOutPoint(e, index)}
|
||||||
/>
|
onContextMenu={(e) => handleContextMenu(e, index)}
|
||||||
))}
|
/>
|
||||||
|
))}
|
||||||
</Layer>
|
</Layer>
|
||||||
</Stage>
|
</Stage>
|
||||||
)}
|
)}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user