diff --git a/decnet_web/src/components/DeckyFleet.tsx b/decnet_web/src/components/DeckyFleet.tsx index 43bcce2..a6f99a9 100644 --- a/decnet_web/src/components/DeckyFleet.tsx +++ b/decnet_web/src/components/DeckyFleet.tsx @@ -1,7 +1,7 @@ import React, { useEffect, useState } from 'react'; import api from '../utils/api'; import './Dashboard.css'; // Re-use common dashboard styles -import { Server, Cpu, Globe, Database, Clock, RefreshCw } from 'lucide-react'; +import { Server, Cpu, Globe, Database, Clock, RefreshCw, Upload } from 'lucide-react'; interface Decky { name: string; @@ -80,6 +80,18 @@ const DeckyFleet: React.FC = () => { } }; + const handleFileUpload = (e: React.ChangeEvent) => { + const file = e.target.files?.[0]; + if (!file) return; + + const reader = new FileReader(); + reader.onload = (event) => { + const content = event.target?.result as string; + setIniContent(content); + }; + reader.readAsText(file); + }; + useEffect(() => { fetchDeckies(); const _interval = setInterval(fetchDeckies, 10000); // Fleet state updates less frequently than logs @@ -105,7 +117,33 @@ const DeckyFleet: React.FC = () => { {showDeploy && (
-

Deploy via INI Configuration

+
+

Deploy via INI Configuration

+
+ + +
+