Skip to content

Commit

Permalink
feat(ui): Request Panel / Folder Panel > Headers > Content Type autoc…
Browse files Browse the repository at this point in the history
…omplete (#286)
  • Loading branch information
kobenguyent authored Oct 17, 2024
1 parent 0e549aa commit a66ec7a
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
4 changes: 3 additions & 1 deletion packages/ui/src/components/RequestPanelHeaders.vue
Original file line number Diff line number Diff line change
Expand Up @@ -103,8 +103,10 @@ const isConfirmingDelete = ref(false)
// eslint-disable-next-line no-undef
let confirmationTimeout: NodeJS.Timeout | null = null
const valueAutocompleteOptions = Object.values(constants.MIME_TYPE)
const tagAutocompletions = computed(() => {
return constants.AUTOCOMPLETIONS.TAGS
return [...constants.AUTOCOMPLETIONS.TAGS, ...valueAutocompleteOptions]
})
const toggleBulkEdit = () => {
Expand Down
4 changes: 3 additions & 1 deletion packages/ui/src/constants.ts
Original file line number Diff line number Diff line change
Expand Up @@ -252,9 +252,11 @@ export default {
FORM_DATA: 'multipart/form-data',
TEXT_PLAIN: 'text/plain',
JSON: 'application/json',
JAVASCRIPT: 'application/javascript',
GRAPHQL: 'application/graphql',
OCTET_STREAM: 'application/octet-stream',
XML: 'application/xml'
XML: 'application/xml',
TEXT_CSV: 'text/csv',
},
STATUS_CODE_TEXT_MAPPING: {
'100': 'Continue',
Expand Down

0 comments on commit a66ec7a

Please sign in to comment.