- Freeleech may be announced as a binary true/false value or as a
- percentage (less likely), depending on the indexer. Use one or the other.
- The Freeleech toggle overrides this field if it is toggled/true.
-
-
-
- Refer to our documentation for more details:{" "}
-
-
- Freeleech may be announced as a binary true/false value (more likely) or as a
- percentage, depending on the indexer. Use one or the other.
- This field overrides Freeleech percent if it is toggled/true.
+ Freeleech may be announced as a binary true/false value or as a
+ percentage (less likely), depending on the indexer. Use one or the other.
+ The Freeleech toggle overrides this field if it is toggled/true.
- See who uses what in the documentation:{" "}
+ Refer to our documentation for more details:{" "}
+ Freeleech may be announced as a binary true/false value (more likely) or as a
+ percentage, depending on the indexer. Use one or the other.
+ This field overrides Freeleech percent if it is toggled/true.
+
+
+
+ See who uses what in the documentation:{" "}
+
+
+
+ }
+ />
+
+
+ );
+}
-const FeedSpecific = ({ values }: ValueConsumer) => (
- These options are only for Feeds such as RSS, Torznab and Newznab>
- }
- >
-
- {
+ const { values } = useFormikContext();
+ return (
+ These options are only for Feeds such as RSS, Torznab and Newznab>
+ }
+ >
+
+
+
+
+
+
This field has full regex support (Golang flavour).
+
+
+
+
Remember to tick Use Regex below if using more than * and ?.
+
+ }
/>
-
+
+
This field has full regex support (Golang flavour).
+
+
+
+
Remember to tick Use Regex below if using more than * and ?.
+
+ }
+ />
+
+
Number of min seeders as specified by the respective unit. Only for Torznab
+
+
+ }
+ />
+
+
Number of max seeders as specified by the respective unit. Only for Torznab
+
+
+ }
+ />
+
+
Number of min leechers as specified by the respective unit. Only for Torznab
+
+
+ }
+ />
+
+
Number of max leechers as specified by the respective unit. Only for Torznab
This field has full regex support (Golang flavour).
-
-
-
-
Remember to tick Use Regex below if using more than * and ?.
-
- }
- />
-
-
This field has full regex support (Golang flavour).
-
-
-
-
Remember to tick Use Regex below if using more than * and ?.
-
- }
- />
-
-
Number of min seeders as specified by the respective unit. Only for Torznab
-
-
- }
- />
-
-
Number of max seeders as specified by the respective unit. Only for Torznab
-
-
- }
- />
-
-
Number of min leechers as specified by the respective unit. Only for Torznab
-
-
- }
- />
-
-
Number of max leechers as specified by the respective unit. Only for Torznab
-
-
+ return (
+
+ Advanced users only
+ {": "}This is the raw releaseTags string from the announce.
+ >
}
- />
-
-);
+ >
+ These might not be what you think they are. For very advanced users who know how things are parsed.>
+ }
+ />
-const RawReleaseTags = ({ values }: ValueConsumer) => (
-
- Advanced users only
- {": "}This is the raw releaseTags string from the announce.
- >
- }
- >
- These might not be what you think they are. For very advanced users who know how things are parsed.>
- }
- />
+
+
+
-
-
-
-
-
-
-
-);
+
+
+ );
+}
-export const Advanced = ({ values }: { values: FormikValues; }) => (
-
-
-
-
-
-
-
-
-
-
-
-
-);
+export const Advanced = () => {
+ return (
+
+
+
+
+
+
+
+
+
+
+
+
+ );
+}
diff --git a/web/src/screens/filters/sections/General.tsx b/web/src/screens/filters/sections/General.tsx
index 0f608aaa75..7785f03c90 100644
--- a/web/src/screens/filters/sections/General.tsx
+++ b/web/src/screens/filters/sections/General.tsx
@@ -1,25 +1,23 @@
-import { useQuery } from "@tanstack/react-query";
+import { useSuspenseQuery } from "@tanstack/react-query";
-import { APIClient } from "@api/APIClient";
import { downloadsPerUnitOptions } from "@domain/constants";
+import { IndexersOptionsQueryOptions } from "@api/queries";
import { DocsLink } from "@components/ExternalLink";
import * as Input from "@components/inputs";
import * as Components from "./_components";
+
const MapIndexer = (indexer: Indexer) => (
{ label: indexer.name, value: indexer.id } as Input.MultiSelectOption
);
export const General = () => {
- const { isLoading, data } = useQuery({
- queryKey: ["filters", "indexer_list"],
- queryFn: APIClient.indexers.getOptions,
- refetchOnWindowFocus: false
- });
+ const indexersQuery = useSuspenseQuery(IndexersOptionsQueryOptions())
+ const indexerOptions = indexersQuery.data && indexersQuery.data.map(MapIndexer)
- const indexerOptions = data?.map(MapIndexer) ?? [];
+ // const indexerOptions = data?.map(MapIndexer) ?? [];
return (
@@ -27,9 +25,9 @@ export const General = () => {
- {!isLoading && (
+ {/*{!isLoading && (*/}
- )}
+ {/*)}*/}
diff --git a/web/src/screens/filters/sections/Music.tsx b/web/src/screens/filters/sections/Music.tsx
index c1830c19b3..31c62b013a 100644
--- a/web/src/screens/filters/sections/Music.tsx
+++ b/web/src/screens/filters/sections/Music.tsx
@@ -1,4 +1,4 @@
-import type { FormikValues } from "formik";
+import { useFormikContext } from "formik";
import { DocsLink } from "@components/ExternalLink";
import * as Input from "@components/inputs";
@@ -6,182 +6,186 @@ import * as Input from "@components/inputs";
import * as CONSTS from "@domain/constants";
import * as Components from "./_components";
-export const Music = ({ values }: { values: FormikValues; }) => (
-
-
-
-
-
You can use basic filtering like wildcards * or replace single characters with ?
-
-
- }
- />
-
-
You can use basic filtering like wildcards * or replace single characters with ?