mirror of
https://github.com/stashapp/stash.git
synced 2025-12-06 08:26:00 +01:00
Add graphql playground link to tools panel (#5807)
* Add graphql playground link to tools panel * Move to separate section
This commit is contained in:
parent
3af472d3b2
commit
5323d68d3d
2 changed files with 40 additions and 22 deletions
|
|
@ -5,33 +5,49 @@ import { Link } from "react-router-dom";
|
||||||
import { Setting } from "./Inputs";
|
import { Setting } from "./Inputs";
|
||||||
import { SettingSection } from "./SettingSection";
|
import { SettingSection } from "./SettingSection";
|
||||||
import { PatchContainerComponent } from "src/patch";
|
import { PatchContainerComponent } from "src/patch";
|
||||||
|
import { ExternalLink } from "../Shared/ExternalLink";
|
||||||
|
|
||||||
const SettingsToolsSection = PatchContainerComponent("SettingsToolsSection");
|
const SettingsToolsSection = PatchContainerComponent("SettingsToolsSection");
|
||||||
|
|
||||||
export const SettingsToolsPanel: React.FC = () => {
|
export const SettingsToolsPanel: React.FC = () => {
|
||||||
return (
|
return (
|
||||||
<SettingSection headingID="config.tools.scene_tools">
|
<>
|
||||||
<SettingsToolsSection>
|
<SettingSection headingID="config.tools.heading">
|
||||||
<Setting
|
<SettingsToolsSection>
|
||||||
heading={
|
<Setting
|
||||||
<Link to="/sceneFilenameParser">
|
heading={
|
||||||
<Button>
|
<ExternalLink href="/playground">
|
||||||
<FormattedMessage id="config.tools.scene_filename_parser.title" />
|
<Button>
|
||||||
</Button>
|
<FormattedMessage id="config.tools.graphql_playground" />
|
||||||
</Link>
|
</Button>
|
||||||
}
|
</ExternalLink>
|
||||||
/>
|
}
|
||||||
|
/>
|
||||||
|
</SettingsToolsSection>
|
||||||
|
</SettingSection>
|
||||||
|
<SettingSection headingID="config.tools.scene_tools">
|
||||||
|
<SettingsToolsSection>
|
||||||
|
<Setting
|
||||||
|
heading={
|
||||||
|
<Link to="/sceneFilenameParser">
|
||||||
|
<Button>
|
||||||
|
<FormattedMessage id="config.tools.scene_filename_parser.title" />
|
||||||
|
</Button>
|
||||||
|
</Link>
|
||||||
|
}
|
||||||
|
/>
|
||||||
|
|
||||||
<Setting
|
<Setting
|
||||||
heading={
|
heading={
|
||||||
<Link to="/sceneDuplicateChecker">
|
<Link to="/sceneDuplicateChecker">
|
||||||
<Button>
|
<Button>
|
||||||
<FormattedMessage id="config.tools.scene_duplicate_checker" />
|
<FormattedMessage id="config.tools.scene_duplicate_checker" />
|
||||||
</Button>
|
</Button>
|
||||||
</Link>
|
</Link>
|
||||||
}
|
}
|
||||||
/>
|
/>
|
||||||
</SettingsToolsSection>
|
</SettingsToolsSection>
|
||||||
</SettingSection>
|
</SettingSection>
|
||||||
|
</>
|
||||||
);
|
);
|
||||||
};
|
};
|
||||||
|
|
|
||||||
|
|
@ -569,6 +569,8 @@
|
||||||
"set_name_date_details_from_metadata_if_present": "Set name, date, details from embedded file metadata"
|
"set_name_date_details_from_metadata_if_present": "Set name, date, details from embedded file metadata"
|
||||||
},
|
},
|
||||||
"tools": {
|
"tools": {
|
||||||
|
"graphql_playground": "GraphQL playground",
|
||||||
|
"heading": "Tools",
|
||||||
"scene_duplicate_checker": "Scene Duplicate Checker",
|
"scene_duplicate_checker": "Scene Duplicate Checker",
|
||||||
"scene_filename_parser": {
|
"scene_filename_parser": {
|
||||||
"add_field": "Add Field",
|
"add_field": "Add Field",
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue