* Initial UI refactor - move raw and key-value body to components and tabs * Delete package-lock.json * deps * Add multipart/form-data as a content type * fix: add default contentType value * Allow http body param request body with multipart/form-data * Add form data to vuex * move raw body components to 'Raw Request Body' tab * Add files addition logic * Set Dockerfile to run nuxt in dev mode * Set Dockerfile to run nuxt in dev mode * Draft version of file upload * refactor: clean up * Add file chip to denote file input * Remove console.log * refactor(ui): matching styles * refactor(ui): matching styles * fix(ui): mobile responsiveness * fix(ui): mobile responsiveness * refactor: minor cleanup * Remove file from any form of persistence * Add warning that form data files will not be saved to local storage * Add remove file functionality * Prevent file from being saved to collections * Remove console.log * fix active toggle on multipart/form-data + cleanup * auto import components Co-authored-by: nelsontky <nelson@ccb.wtf>
16 lines
347 B
JavaScript
16 lines
347 B
JavaScript
export const knownContentTypes = [
|
|
"application/json",
|
|
"application/ld+json",
|
|
"application/hal+json",
|
|
"application/vnd.api+json",
|
|
"application/xml",
|
|
"application/x-www-form-urlencoded",
|
|
"multipart/form-data",
|
|
"text/html",
|
|
"text/plain",
|
|
]
|
|
|
|
export function isJSONContentType(contentType) {
|
|
return /\bjson\b/i.test(contentType)
|
|
}
|