mirror of
https://github.com/idanoo/autobrr
synced 2025-07-23 16:59:12 +00:00
Fix: update download client (#23)
* feat: use password fields * fix: update download client and better logs
This commit is contained in:
parent
d4aa2027c0
commit
f78ca85df2
4 changed files with 91 additions and 64 deletions
|
@ -1,12 +1,12 @@
|
|||
import { Fragment } from "react";
|
||||
import { SwitchGroup, TextFieldWide } from "../../../components/inputs";
|
||||
import { NumberFieldWide } from "../../../components/inputs/wide";
|
||||
import { NumberFieldWide, PasswordFieldWide } from "../../../components/inputs/wide";
|
||||
import { useField } from "react-final-form";
|
||||
|
||||
function FormFieldsDefault() {
|
||||
return (
|
||||
<Fragment>
|
||||
<TextFieldWide name="host" label="Host" />
|
||||
<TextFieldWide name="host" label="Host" help="Url domain.ltd/client" />
|
||||
|
||||
<NumberFieldWide name="port" label="Port" />
|
||||
|
||||
|
@ -15,7 +15,7 @@ function FormFieldsDefault() {
|
|||
</div>
|
||||
|
||||
<TextFieldWide name="username" label="Username" />
|
||||
<TextFieldWide name="password" label="Password" />
|
||||
<PasswordFieldWide name="password" label="Password" />
|
||||
</Fragment>
|
||||
);
|
||||
}
|
||||
|
@ -24,9 +24,9 @@ function FormFieldsArr() {
|
|||
const { input } = useField("settings.basic.auth");
|
||||
return (
|
||||
<Fragment>
|
||||
<TextFieldWide name="host" label="Host" />
|
||||
<TextFieldWide name="host" label="Host" help="Full url like http(s)://domain.ltd/" />
|
||||
|
||||
<TextFieldWide name="settings.apikey" label="API key" />
|
||||
<PasswordFieldWide name="settings.apikey" label="API key" />
|
||||
|
||||
<div className="py-6 px-6 space-y-6 sm:py-0 sm:space-y-0 sm:divide-y sm:divide-gray-200">
|
||||
<SwitchGroup name="settings.basic.auth" label="Basic auth" />
|
||||
|
@ -35,7 +35,7 @@ function FormFieldsArr() {
|
|||
{input.value === true && (
|
||||
<Fragment>
|
||||
<TextFieldWide name="settings.basic.username" label="Username" />
|
||||
<TextFieldWide name="settings.basic.password" label="Password" />
|
||||
<PasswordFieldWide name="settings.basic.password" label="Password" />
|
||||
</Fragment>
|
||||
)}
|
||||
</Fragment>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue