mirror of
https://github.com/stashapp/stash.git
synced 2025-12-18 04:44:37 +03:00
UI Plugin API (#4256)
* Add page registration * Add example plugin * First version of proper react plugins * Make reference react plugin * Add patching functions * Add tools link poc * NavItem poc * Add loading hook for lazily loaded components * Add documentation
This commit is contained in:
@@ -4,11 +4,14 @@ import { FormattedMessage } from "react-intl";
|
||||
import { Link } from "react-router-dom";
|
||||
import { Setting } from "./Inputs";
|
||||
import { SettingSection } from "./SettingSection";
|
||||
import { PatchContainerComponent } from "src/pluginApi";
|
||||
|
||||
const SettingsToolsSection = PatchContainerComponent("SettingsToolsSection");
|
||||
|
||||
export const SettingsToolsPanel: React.FC = () => {
|
||||
return (
|
||||
<>
|
||||
<SettingSection headingID="config.tools.scene_tools">
|
||||
<SettingSection headingID="config.tools.scene_tools">
|
||||
<SettingsToolsSection>
|
||||
<Setting
|
||||
heading={
|
||||
<Link to="/sceneFilenameParser">
|
||||
@@ -28,7 +31,7 @@ export const SettingsToolsPanel: React.FC = () => {
|
||||
</Link>
|
||||
}
|
||||
/>
|
||||
</SettingSection>
|
||||
</>
|
||||
</SettingsToolsSection>
|
||||
</SettingSection>
|
||||
);
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user