Update AppImage

This commit is contained in:
MacRimi
2025-10-26 14:31:10 +01:00
parent e4b57e6ca3
commit 6e2348eb06
3 changed files with 123 additions and 162 deletions

View File

@@ -1,26 +0,0 @@
import { Card, CardHeader, CardTitle, CardContent } from "@/components/ui/card"
import { NetworkTrafficChart } from "@/components/charts/network-traffic-chart"
const Page = ({ params }) => {
const { id } = params
const timeframe = "1h" // Example value, you may need to adjust this based on your application logic
return (
<div>
{/* Other components or code here */}
<Card>
<CardHeader>
<CardTitle>Network Traffic</CardTitle>
</CardHeader>
<CardContent>
<NetworkTrafficChart timeframe={timeframe} interfaceName={id} refreshInterval={30000} />
</CardContent>
</Card>
{/* Other components or code here */}
</div>
)
}
export default Page

View File

@@ -1,28 +0,0 @@
import { Card, CardHeader, CardTitle, CardContent } from "@/components/ui/card"
import NetworkTrafficChart from "@/components/NetworkTrafficChart" // Ensure this path is correct
const timeframe = "1h" // Declare timeframe variable
const handleTotalsCalculated = (totals) => {
console.log("Totals calculated:", totals)
} // Declare handleTotalsCalculated function
export default function Page({ id }) {
return (
<>
{/* ... other code here ... */}
<Card>
<CardHeader>
<CardTitle>Network Traffic</CardTitle>
</CardHeader>
<CardContent>
<NetworkTrafficChart
timeframe={timeframe}
onTotalsCalculated={handleTotalsCalculated}
refreshInterval={30000}
/>
</CardContent>
</Card>
{/* ... rest of code here ... */}
</>
)
}