mirror of
https://github.com/blakeblackshear/frigate.git
synced 2026-02-02 17:25:22 +03:00
Formatting
This commit is contained in:
parent
1c5fdf9081
commit
83f50a7318
@ -22,11 +22,11 @@ export default function Sidebar() {
|
|||||||
<Fragment>
|
<Fragment>
|
||||||
<Separator />
|
<Separator />
|
||||||
{Object.entries(cameras)
|
{Object.entries(cameras)
|
||||||
.filter(([cam, conf]) => conf.gui.show)
|
.filter(([_, conf]) => conf.gui.show)
|
||||||
.sort(([aCam, aConf], [bCam, bConf]) => aConf.gui.order === bConf.gui.order ? 0 : (aConf.gui.order > bConf.gui.order ? 1 : -1))
|
.sort(([_, aConf], [_, bConf]) => aConf.gui.order === bConf.gui.order ? 0 : (aConf.gui.order > bConf.gui.order ? 1 : -1))
|
||||||
.map(([camera]) => (
|
.map(([camera]) => (
|
||||||
<Destination key={camera} href={`/cameras/${camera}`} text={camera} />
|
<Destination key={camera} href={`/cameras/${camera}`} text={camera} />
|
||||||
))}
|
))}
|
||||||
<Separator />
|
<Separator />
|
||||||
</Fragment>
|
</Fragment>
|
||||||
) : null
|
) : null
|
||||||
@ -38,21 +38,21 @@ export default function Sidebar() {
|
|||||||
<Fragment>
|
<Fragment>
|
||||||
<Separator />
|
<Separator />
|
||||||
{Object.entries(cameras)
|
{Object.entries(cameras)
|
||||||
.filter(([cam, conf]) => conf.gui.show)
|
.filter(([_, conf]) => conf.gui.show)
|
||||||
.sort(([aCam, aConf], [bCam, bConf]) => aConf.gui.order === bConf.gui.order ? 0 : (aConf.gui.order > bConf.gui.order ? 1 : -1))
|
.sort(([_, aConf], [_, bConf]) => aConf.gui.order === bConf.gui.order ? 0 : (aConf.gui.order > bConf.gui.order ? 1 : -1))
|
||||||
.map(([camera, conf]) => {
|
.map(([camera, conf]) => {
|
||||||
if (conf.record.enabled) {
|
if (conf.record.enabled) {
|
||||||
return (
|
return (
|
||||||
<Destination
|
<Destination
|
||||||
key={camera}
|
key={camera}
|
||||||
path={`/recording/${camera}/:date?/:hour?/:seconds?`}
|
path={`/recording/${camera}/:date?/:hour?/:seconds?`}
|
||||||
href={`/recording/${camera}`}
|
href={`/recording/${camera}`}
|
||||||
text={camera}
|
text={camera}
|
||||||
/>
|
/>
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
return null;
|
return null;
|
||||||
})}
|
})}
|
||||||
<Separator />
|
<Separator />
|
||||||
</Fragment>
|
</Fragment>
|
||||||
) : null
|
) : null
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user