feat: parallele Proxy-Segmentdownloads

This commit is contained in:
Sucukdeluxe
2026-08-31 12:49:15 +02:00
parent 50f04b2761
commit 17ac99d373
20 changed files with 1275 additions and 52 deletions
+37
View File
@@ -642,6 +642,43 @@ describe("settings views", () => {
});
});
it("projects proxy segmentation controls with safe defaults and connection totals", () => {
const form = buildSettingsFormViewModel({
settings: {
...createRendererSettings({
...defaultSettings(),
maxParallel: 5,
proxyDownloadEnabled: true,
proxyListPath: "C:\\proxy-list.txt",
proxyConnectionsPerDownload: 16
}),
archivePasswordList: "",
notifyUrl: ""
},
section: "speed",
speedLimitInput: "0",
scheduleSpeedInputs: {}
});
const proxyGroup = form.groups.find((group) => group.id === "speed-proxy");
expect(proxyGroup?.fields.map((field) => field.id)).toEqual([
"proxyDownloadEnabled",
"proxyListPath",
"proxyConnectionsPerDownload"
]);
expect(proxyGroup?.fields.find((field) => field.id === "proxyListPath")).toEqual(expect.objectContaining({
value: "C:\\proxy-list.txt",
actionLabel: "Datei wählen",
disabled: false
}));
expect(proxyGroup?.fields.find((field) => field.id === "proxyConnectionsPerDownload")).toEqual(expect.objectContaining({
value: "16",
min: 2,
max: 32,
help: expect.stringContaining("80 Proxy-Verbindungen")
}));
});
it("projects every notification control in the required order with exact bounds", () => {
const form = buildSettingsFormViewModel({
settings: {