mirror of
https://github.com/blakeblackshear/frigate.git
synced 2026-02-02 01:05:20 +03:00
chore: refactor config naming
This commit is contained in:
parent
875c74686d
commit
4f28c51a0f
@ -44,7 +44,7 @@ class DetectorConfig(FrigateBaseModel):
|
|||||||
num_threads: int = Field(default=3, title="Number of detection threads")
|
num_threads: int = Field(default=3, title="Number of detection threads")
|
||||||
|
|
||||||
class UIConfig(FrigateBaseModel):
|
class UIConfig(FrigateBaseModel):
|
||||||
useExperimentalUI: bool = Field(default=False, title="Experimental UI")
|
use_experimental: bool = Field(default=False, title="Experimental UI")
|
||||||
|
|
||||||
class MqttConfig(FrigateBaseModel):
|
class MqttConfig(FrigateBaseModel):
|
||||||
host: str = Field(title="MQTT Host")
|
host: str = Field(title="MQTT Host")
|
||||||
|
|||||||
@ -11,7 +11,7 @@ import { FetchStatus, useConfig } from './api';
|
|||||||
|
|
||||||
export default function App() {
|
export default function App() {
|
||||||
const { status, data: config } = useConfig();
|
const { status, data: config } = useConfig();
|
||||||
const cameraComponent = config && config.ui.useExperimentalUI ? Routes.getCameraV2 : Routes.getCamera;
|
const cameraComponent = config && config.ui.use_experimental ? Routes.getCameraV2 : Routes.getCamera;
|
||||||
return (
|
return (
|
||||||
<DarkModeProvider>
|
<DarkModeProvider>
|
||||||
<DrawerProvider>
|
<DrawerProvider>
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user