diff --git a/web/src/routes/System.jsx b/web/src/routes/System.jsx index 8010b9139..fd0c458d6 100644 --- a/web/src/routes/System.jsx +++ b/web/src/routes/System.jsx @@ -7,7 +7,7 @@ import { useWs } from '../api/ws'; import useSWR from 'swr'; import axios from 'axios'; import { Table, Tbody, Thead, Tr, Th, Td } from '../components/Table'; -import { useCallback, useState } from 'preact/hooks'; +import { useState } from 'preact/hooks'; import Dialog from '../components/Dialog'; const emptyObject = Object.freeze({}); @@ -34,13 +34,6 @@ export default function System() { const gpuNames = Object.keys(gpu_usages || emptyObject); const cameraNames = Object.keys(cameras || emptyObject); - const handleCopyConfig = useCallback(() => { - async function copy() { - await window.navigator.clipboard.writeText(JSON.stringify(config, null, 2)); - } - copy(); - }, [config]); - const onHandleFfprobe = async (camera, e) => { if (e) { e.stopPropagation(); @@ -267,16 +260,6 @@ export default function System() {

System stats update automatically every {config.mqtt.stats_interval} seconds.

)} - -
- Config - -
-          {JSON.stringify(config, null, 2)}
-        
-
); }