Release v1.3.1: Added PowerShell support and fixed theme issues

This commit is contained in:
2026-01-31 11:06:25 +01:00
parent d398c34aa5
commit 57371feeb0
8 changed files with 168 additions and 57 deletions

View File

@@ -31,6 +31,10 @@ function App() {
// Load theme from localStorage or default to 'auto'
return localStorage.getItem("theme") || "auto";
});
const [shellType, setShellType] = useState(() => {
// Load shell type from localStorage or default to 'bash'
return localStorage.getItem("jmespath-shell-type") || "bash";
});
const [showReloadButton, setShowReloadButton] = useState(false);
const [currentStateGuid, setCurrentStateGuid] = useState(null);
const [jmespathExpression, setJmespathExpression] =
@@ -81,6 +85,11 @@ function App() {
localStorage.setItem("theme", theme);
}, [theme]);
// Shell type management
useEffect(() => {
localStorage.setItem("jmespath-shell-type", shellType);
}, [shellType]);
// Get headers for API requests
const getApiHeaders = () => {
return {
@@ -163,7 +172,7 @@ function App() {
};
return (
<div className="container-fluid vh-100 d-flex flex-column">
<div className="vh-100 d-flex flex-column">
<Header
theme={theme}
onThemeChange={handleThemeChange}
@@ -187,7 +196,12 @@ function App() {
setJsonData={setJsonData}
/>
) : (
<ApiKeyPage apiKey={apiKey} onRegenerateApiKey={regenerateApiKey} />
<ApiKeyPage
apiKey={apiKey}
onRegenerateApiKey={regenerateApiKey}
shellType={shellType}
onShellTypeChange={setShellType}
/>
)}
</div>