Skip to content

Commit

Permalink
feat: display shell code exporter at the top
Browse files Browse the repository at this point in the history
  • Loading branch information
helloanoop committed Sep 15, 2024
1 parent 7dd6391 commit 3dfb27d
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ const StyledWrapper = styled.div`
.generate-code-sidebar {
background-color: ${(props) => props.theme.collection.environment.settings.sidebar.bg};
border-right: solid 1px ${(props) => props.theme.collection.environment.settings.sidebar.borderRight};
max-height: 90vh;
max-height: 80vh;
height: 100%;
overflow-y: auto;
}
Expand Down
8 changes: 8 additions & 0 deletions packages/bruno-app/src/utils/codegenerator/targets.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,14 @@ export const getLanguages = () => {
client
}));
allLanguages.push(...languages);

// Move "Shell-curl" to the top of the array
const shellCurlIndex = allLanguages.findIndex(lang => lang.name === "Shell-curl");
if (shellCurlIndex !== -1) {
const [shellCurl] = allLanguages.splice(shellCurlIndex, 1);
allLanguages.unshift(shellCurl);
}
}

return allLanguages;
};

0 comments on commit 3dfb27d

Please sign in to comment.