mirror of
https://github.com/stashapp/stash.git
synced 2026-04-17 04:24:07 +02:00
Plugin API - React Font Awesome library (#6487)
* ReactFontAwesome added to plugin API libraries * ReactFontAwesome added to plugin API export
This commit is contained in:
parent
9b709ef614
commit
cf3489efdc
2 changed files with 3 additions and 0 deletions
1
ui/v2.5/src/pluginApi.d.ts
vendored
1
ui/v2.5/src/pluginApi.d.ts
vendored
|
|
@ -617,6 +617,7 @@ declare namespace PluginApi {
|
|||
const FontAwesomeBrands: typeof import("@fortawesome/free-brands-svg-icons");
|
||||
const Intl: typeof import("react-intl");
|
||||
const Mousetrap: typeof import("mousetrap");
|
||||
const ReactFontAwesome: typeof import("@fortawesome/react-fontawesome");
|
||||
const ReactSelect: typeof import("react-select");
|
||||
|
||||
// @ts-expect-error
|
||||
|
|
|
|||
|
|
@ -12,6 +12,7 @@ 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 FontAwesomeBrands from "@fortawesome/free-brands-svg-icons";
|
||||
import * as ReactFontAwesome from "@fortawesome/react-fontawesome";
|
||||
import * as ReactSelect from "react-select";
|
||||
import { useSpriteInfo } from "./hooks/sprite";
|
||||
import { useToast } from "./hooks/Toast";
|
||||
|
|
@ -78,6 +79,7 @@ export const PluginApi = {
|
|||
FontAwesomeBrands,
|
||||
Mousetrap,
|
||||
MousetrapPause,
|
||||
ReactFontAwesome,
|
||||
ReactSelect,
|
||||
},
|
||||
register: {
|
||||
|
|
|
|||
Loading…
Reference in a new issue