Cleanup hooks

This commit is contained in:
Nick Mowen 2023-12-15 14:13:19 -07:00
parent 692812bdb6
commit da245fbf6e
5 changed files with 8 additions and 8 deletions

View File

@ -2,7 +2,7 @@ import { useApiHost } from "@/api";
import { useCallback, useEffect, useMemo, useRef, useState } from "react"; import { useCallback, useEffect, useMemo, useRef, useState } from "react";
import useSWR from "swr"; import useSWR from "swr";
import ActivityIndicator from "../ui/activity-indicator"; import ActivityIndicator from "../ui/activity-indicator";
import { useResizeObserver } from "@/hooks"; import { useResizeObserver } from "@/hooks/resize-observer";
type CameraImageProps = { type CameraImageProps = {
camera: string; camera: string;

View File

@ -10,7 +10,7 @@ import {
DropdownMenuTrigger, DropdownMenuTrigger,
} from "@/components/ui/dropdown-menu"; } from "@/components/ui/dropdown-menu";
import Heading from "@/components/ui/heading"; import Heading from "@/components/ui/heading";
import { usePersistence } from "@/context/use-persistence"; import { usePersistence } from "@/hooks/use-persistence";
import { FrigateConfig } from "@/types/frigateConfig"; import { FrigateConfig } from "@/types/frigateConfig";
import { useMemo, useState } from "react"; import { useMemo, useState } from "react";
import useSWR from "swr"; import useSWR from "swr";

View File

@ -12,24 +12,24 @@ export default defineConfig({
server: { server: {
proxy: { proxy: {
'/api': { '/api': {
target: 'http://192.168.50.106:5000', target: 'http://localhost:5000',
ws: true, ws: true,
}, },
'/vod': { '/vod': {
target: 'http://192.168.50.106:5000' target: 'http://localhost:5000'
}, },
'/clips': { '/clips': {
target: 'http://192.168.50.106:5000' target: 'http://localhost:5000'
}, },
'/exports': { '/exports': {
target: 'http://192.168.50.106:5000' target: 'http://localhost:5000'
}, },
'/ws': { '/ws': {
target: 'ws://192.168.50.106:5000', target: 'ws://localhost:5000',
ws: true, ws: true,
}, },
'/live': { '/live': {
target: 'ws://192.168.50.106:5000', target: 'ws://localhost:5000',
changeOrigin: true, changeOrigin: true,
ws: true, ws: true,
}, },