mirror of
https://github.com/usebruno/bruno.git
synced 2026-06-28 15:14:06 +00:00
feat: display shell code exporter at the top
This commit is contained in:
@@ -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;
|
||||
};
|
||||
Reference in New Issue
Block a user