agent v0.3.15: mode proxy auto/manuel, correction auto-update et conservation systray, animation UI update

This commit is contained in:
EduBox Dev
2026-06-28 19:53:19 +00:00
parent 33d89c66c0
commit adab165274
13 changed files with 444 additions and 55 deletions
+8 -3
View File
@@ -1,10 +1,15 @@
import { Card, CardHeader, CardTitle, CardContent } from "@/components/ui/card";
import { getAgentVersionInfo } from "@/lib/agent-version";
import { getAgentVersionInfo, getBaseUrlFromRequest } from "@/lib/agent-version";
import { headers } from "next/headers";
export const dynamic = "force-dynamic";
export default function DownloadPage() {
const info = getAgentVersionInfo();
export default async function DownloadPage() {
const h = await headers();
const proto = h.get("x-forwarded-proto") ?? "https";
const host = h.get("x-forwarded-host") ?? h.get("host") ?? "";
const baseUrl = host ? `${proto}://${host}` : undefined;
const info = getAgentVersionInfo(baseUrl);
const { version, downloadUrls } = info;
return (