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 useSWR from "swr";
import ActivityIndicator from "../ui/activity-indicator";
import { useResizeObserver } from "@/hooks";
import { useResizeObserver } from "@/hooks/resize-observer";
type CameraImageProps = {
camera: string;

View File

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

View File

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