@for (tab of tabs; track tab.key; let i = $index) {

{{ tab.description }}

@for (setting of tab.settings; track setting.key) { @if (setting.type === "Object") {

{{ setting.displayName }}

}
@if (setting.type !== "Boolean" && setting.type !== "Object") { } @switch (setting.type) { @case ("String") {
} @case ("Int32") {
} @case ("Boolean") { } @case ("Enum") {
} @case ("Object") {} @default {
Invalid setting type {{ setting.type }}
} }

@if (setting.key === "DownloadClient:Aria2cSecret") { @if (testAria2cConnectionError) {
Could connect to Aria2 client
{{ testAria2cConnectionError }}
} @if (testAria2cConnectionSuccess) {
Found Aria2 client version {{ testAria2cConnectionSuccess }}
} }
}
} @if (activeTab === 99) {
@if (!testPathError && !testPathSuccess) { } @if (testPathError) {
Could not test your download path
{{ testPathError }}
} @if (testPathSuccess) {
Your download path looks good!
}
This will check if the download folder has write permissions.
@if (testDownloadSpeedError) {
Could not test your download speed
{{ testDownloadSpeedError }}
} @else if (testDownloadSpeedSuccess) {
Download speed {{ testDownloadSpeedSuccess | filesize }}/s
} @else { }
This will attempt to download a 10GB file from Real-Debrid. When 50MB has been downloaded the test will stop.
@if (testWriteSpeedError) {
Could not test your download speed
{{ testWriteSpeedError }}
} @else if (testWriteSpeedSuccess) {
Write speed {{ testWriteSpeedSuccess | filesize }}/s
} @else { }
This will write a small file to your download folder to see how fast it can write to it.
}
@if (error?.length > 0) {
Error saving settings: {{ error }}
}
@if (activeTab === 0) {

@if (canRegisterMagnetHandler) { This will attempt to register the client as your browser's default handler for magnet links and automatically open them in the new torrent screen for downloading. } @else { Magnet link registration is unavailable. Your browser may not support this feature , or the client is not being served in a secure context . }

} @if (activeTab < 99) {
}