Performer tags (#1132)

* Add scraping support for performer tags
* Add performer count to tag cards
* Refactor sqlite test setup
* Add performer tag filtering in gallery and image
* Add bulk update performer
* Add Performers tab to tag page
* Add count filters and sort bys for tags
* Move scene count to icon in performer card #1148
This commit is contained in:
WithoutPants
2021-03-10 12:25:51 +11:00
committed by GitHub
parent 698e21a04f
commit a0676d5c30
65 changed files with 2548 additions and 475 deletions

View File

@@ -32,6 +32,7 @@ interface ITypeProps {
| "parent_studios"
| "tags"
| "sceneTags"
| "performerTags"
| "movies";
}
interface IFilterProps {
@@ -43,6 +44,7 @@ interface IFilterProps {
isMulti?: boolean;
isClearable?: boolean;
isDisabled?: boolean;
menuPortalTarget?: HTMLElement | null;
}
interface ISelectProps<T extends boolean> {
className?: string;
@@ -60,6 +62,7 @@ interface ISelectProps<T extends boolean> {
placeholder?: string;
showDropdown?: boolean;
groupHeader?: string;
menuPortalTarget?: HTMLElement | null;
closeMenuOnSelect?: boolean;
noOptionsMessage?: string | null;
}
@@ -109,6 +112,7 @@ const SelectComponent = <T extends boolean>({
placeholder,
showDropdown = true,
groupHeader,
menuPortalTarget,
closeMenuOnSelect = true,
noOptionsMessage = type !== "tags" ? "None" : null,
}: ISelectProps<T> & ITypeProps) => {
@@ -158,6 +162,7 @@ const SelectComponent = <T extends boolean>({
isLoading,
styles,
closeMenuOnSelect,
menuPortalTarget,
components: {
IndicatorSeparator: () => null,
...((!showDropdown || isDisabled) && { DropdownIndicator: () => null }),