mirror of
https://github.com/usebruno/bruno.git
synced 2024-11-07 08:34:15 +01:00
feat: display shell code exporter at the top
This commit is contained in:
parent
7dd639192c
commit
3dfb27d447
@ -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;
|
||||
}
|
||||
|
@ -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;
|
||||
};
|
Loading…
Reference in New Issue
Block a user