diff --git a/web/src/components/settings/Step1NameCamera.tsx b/web/src/components/settings/Step1NameCamera.tsx index b0fceb4e1..c99b3ba04 100644 --- a/web/src/components/settings/Step1NameCamera.tsx +++ b/web/src/components/settings/Step1NameCamera.tsx @@ -38,6 +38,7 @@ import { StreamConfig, } from "@/types/cameraWizard"; import { FaCircleCheck } from "react-icons/fa6"; +import { Card, CardContent, CardTitle } from "../ui/card"; type Step1NameCameraProps = { wizardData: Partial; @@ -109,7 +110,7 @@ export default function Step1NameCamera({ wizardData.brandTemplate && CAMERA_BRAND_VALUES.includes(wizardData.brandTemplate as CameraBrand) ? (wizardData.brandTemplate as CameraBrand) - : "hikvision", + : "dahua", customUrl: wizardData.customUrl || "", }, mode: "onChange", @@ -357,10 +358,8 @@ export default function Step1NameCamera({ (brand) => brand.value === field.value, ); return selectedBrand ? ( - -
- {selectedBrand.exampleUrl} -
+ + {selectedBrand.exampleUrl} ) : null; })()} @@ -492,43 +491,51 @@ export default function Step1NameCamera({ )} -
- {t("cameraWizard.step1.streamDetails")} -
-
- {testResult.resolution && ( -
- - {t("cameraWizard.testResultLabels.resolution")}: - {" "} - {testResult.resolution} -
- )} - {testResult.videoCodec && ( -
- - {t("cameraWizard.testResultLabels.video")}: - {" "} - {testResult.videoCodec} -
- )} - {testResult.audioCodec && ( -
- - {t("cameraWizard.testResultLabels.audio")}: - {" "} - {testResult.audioCodec} -
- )} - {testResult.fps && ( -
- - {t("cameraWizard.testResultLabels.fps")}: - {" "} - {testResult.fps} -
- )} -
+ + + {t("cameraWizard.step1.streamDetails")} + + + {testResult.resolution && ( +
+ + {t("cameraWizard.testResultLabels.resolution")}: + {" "} + + {testResult.resolution} + +
+ )} + {testResult.videoCodec && ( +
+ + {t("cameraWizard.testResultLabels.video")}: + {" "} + + {testResult.videoCodec} + +
+ )} + {testResult.audioCodec && ( +
+ + {t("cameraWizard.testResultLabels.audio")}: + {" "} + + {testResult.audioCodec} + +
+ )} + {testResult.fps && ( +
+ + {t("cameraWizard.testResultLabels.fps")}: + {" "} + {testResult.fps} +
+ )} +
+
)} diff --git a/web/src/components/settings/Step2StreamConfig.tsx b/web/src/components/settings/Step2StreamConfig.tsx index 2bb88bb78..4f0d938d0 100644 --- a/web/src/components/settings/Step2StreamConfig.tsx +++ b/web/src/components/settings/Step2StreamConfig.tsx @@ -247,8 +247,8 @@ export default function Step2StreamConfig({ )} {stream.testResult && !stream.testResult.success && (
- - + + {t("cameraWizard.step2.notConnected")}
@@ -301,7 +301,7 @@ export default function Step2StreamConfig({ {stream.testResult && !stream.testResult.success && stream.userTested && ( -
+
{t("cameraWizard.step2.testFailedTitle")}
@@ -340,7 +340,7 @@ export default function Step2StreamConfig({