mirror of
https://github.com/stashapp/stash.git
synced 2025-12-17 12:24:38 +03:00
Plugin api improvements (#5703)
* Add ReactSelect to PluginApi.libraries * Make Performer tabs patchable * Make PerformerCard patchable * Use registration pattern for HoverPopover, TagLink and LoadingIndicator Initialising the components map to include these was causing an initialisation error. * Add showZero property to PopoverCountButton * Make TagCard patchable * Make ScenePage and ScenePlayer patchable * Pass properties to container components * Add example for scene tabs * Make FrontPage patchable * Add FrontPage example
This commit is contained in:
@@ -11,6 +11,7 @@ import * as Bootstrap from "react-bootstrap";
|
||||
import * as Intl from "react-intl";
|
||||
import * as FontAwesomeSolid from "@fortawesome/free-solid-svg-icons";
|
||||
import * as FontAwesomeRegular from "@fortawesome/free-regular-svg-icons";
|
||||
import * as ReactSelect from "react-select";
|
||||
import { useSpriteInfo } from "./hooks/sprite";
|
||||
import { useToast } from "./hooks/Toast";
|
||||
import Event from "./hooks/event";
|
||||
@@ -73,6 +74,7 @@ export const PluginApi = {
|
||||
FontAwesomeSolid,
|
||||
Mousetrap,
|
||||
MousetrapPause,
|
||||
ReactSelect,
|
||||
},
|
||||
register: {
|
||||
// register a route to be added to the main router
|
||||
|
||||
Reference in New Issue
Block a user