mirror of
https://github.com/idanoo/autobrr
synced 2025-07-22 16:29:12 +00:00
feat(lists): read Plaintext from file on disk (#2031)
* feat(lists): read Plaintext from file on disk * feat(lists): add tooltip to plaintext url field
This commit is contained in:
parent
40aa3b404b
commit
a8c4114d6d
2 changed files with 73 additions and 28 deletions
|
@ -63,6 +63,7 @@ import { DocsTooltip } from "@components/tooltips/DocsTooltip";
|
|||
import { MultiSelect as RMSC } from "react-multi-select-component";
|
||||
import { useToggle } from "@hooks/hooks.ts";
|
||||
import { DeleteModal } from "@components/modals";
|
||||
import {DocsLink} from "@components/ExternalLink.tsx";
|
||||
|
||||
interface ListAddFormValues {
|
||||
name: string;
|
||||
|
@ -729,6 +730,16 @@ function ListTypePlainText() {
|
|||
label="List URL"
|
||||
help="URL to a plain text file with one item per line"
|
||||
placeholder="https://example.com/list.txt"
|
||||
tooltip={
|
||||
<div>
|
||||
<p>Plaintext list can read from both http urls and local files on disk.</p>
|
||||
<br />
|
||||
<p>Remote: https://service.com/file.txt</p>
|
||||
<br />
|
||||
<p>Local: file:///home/username/file.txt</p>
|
||||
<DocsLink href="https://autobrr.com/filters/lists" />
|
||||
</div>
|
||||
}
|
||||
/>
|
||||
|
||||
<div className="space-y-1">
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue