diff --git a/package-lock.json b/package-lock.json index fc46f38..f2f13c8 100644 --- a/package-lock.json +++ b/package-lock.json @@ -10906,7 +10906,7 @@ "unplugin-vue-components": "^0.27.4", "unplugin-vue-router": "^0.10.8", "url-template": "^3.1.1", - "vite": "^6.2.4", + "vite": "^6.3.5", "vite-plugin-node-polyfills": "^0.23.0", "vite-plugin-vuetify": "^2.1.0", "vue": "^3.5.13", diff --git a/ui/dts/typed-router.d.ts b/ui/dts/typed-router.d.ts index b1fe928..331ee51 100644 --- a/ui/dts/typed-router.d.ts +++ b/ui/dts/typed-router.d.ts @@ -19,6 +19,5 @@ declare module 'vue-router/auto-routes' { */ export interface RouteNamedMap { '/': RouteRecordInfo<'/', '/', Record, Record>, - '/dev': RouteRecordInfo<'/dev', '/dev', Record, Record>, } } diff --git a/ui/package.json b/ui/package.json index b14bca8..da226a6 100644 --- a/ui/package.json +++ b/ui/package.json @@ -34,7 +34,7 @@ "unplugin-vue-components": "^0.27.4", "unplugin-vue-router": "^0.10.8", "url-template": "^3.1.1", - "vite": "^6.2.4", + "vite": "^6.3.5", "vite-plugin-node-polyfills": "^0.23.0", "vite-plugin-vuetify": "^2.1.0", "vue": "^3.5.13", diff --git a/ui/src/components/operation.vue b/ui/src/components/operation.vue index c5121f2..ca1f7f4 100644 --- a/ui/src/components/operation.vue +++ b/ui/src/components/operation.vue @@ -253,7 +253,17 @@ async function executeRequest () { body = formData } else { headers['Content-Type'] = contentType - body = endpointQueryValues.value.body.value + const rawBody = endpointQueryValues.value.body.value + // JSON minification to reduce payload size (remove unnecessary spaces/indentations) + if (rawBody != null && (contentType.startsWith('application/json') || contentType.includes('+json'))) { + try { + body = JSON.stringify(JSON.parse(rawBody)) + } catch (e) { // If JSON parsing fails, use the raw body + body = rawBody.trim() + } + } else { + body = rawBody + } } }