mirror of
https://github.com/stashapp/stash.git
synced 2025-12-17 12:24:38 +03: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:
@@ -5,11 +5,26 @@ 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.heading">
|
||||||
|
<SettingsToolsSection>
|
||||||
|
<Setting
|
||||||
|
heading={
|
||||||
|
<ExternalLink href="/playground">
|
||||||
|
<Button>
|
||||||
|
<FormattedMessage id="config.tools.graphql_playground" />
|
||||||
|
</Button>
|
||||||
|
</ExternalLink>
|
||||||
|
}
|
||||||
|
/>
|
||||||
|
</SettingsToolsSection>
|
||||||
|
</SettingSection>
|
||||||
<SettingSection headingID="config.tools.scene_tools">
|
<SettingSection headingID="config.tools.scene_tools">
|
||||||
<SettingsToolsSection>
|
<SettingsToolsSection>
|
||||||
<Setting
|
<Setting
|
||||||
@@ -33,5 +48,6 @@ export const SettingsToolsPanel: React.FC = () => {
|
|||||||
/>
|
/>
|
||||||
</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",
|
||||||
|
|||||||
Reference in New Issue
Block a user