chore: deprecating descriptions temporarily in key value pairs

This commit is contained in:
Anoop M D 2023-01-21 01:26:40 +05:30
parent ae70680ceb
commit 19f4f3c1a5
4 changed files with 0 additions and 68 deletions

View File

@ -30,10 +30,6 @@ const FormUrlEncodedParams = ({ item, collection }) => {
param.value = e.target.value; param.value = e.target.value;
break; break;
} }
case 'description': {
param.description = e.target.value;
break;
}
case 'enabled': { case 'enabled': {
param.enabled = e.target.checked; param.enabled = e.target.checked;
break; break;
@ -65,7 +61,6 @@ const FormUrlEncodedParams = ({ item, collection }) => {
<tr> <tr>
<td>Key</td> <td>Key</td>
<td>Value</td> <td>Value</td>
<td>Description</td>
<td></td> <td></td>
</tr> </tr>
</thead> </thead>
@ -98,18 +93,6 @@ const FormUrlEncodedParams = ({ item, collection }) => {
onChange={(e) => handleParamChange(e, param, 'value')} onChange={(e) => handleParamChange(e, param, 'value')}
/> />
</td> </td>
<td>
<input
type="text"
autoComplete="off"
autoCorrect="off"
autoCapitalize="off"
spellCheck="false"
value={param.description}
className="mousetrap"
onChange={(e) => handleParamChange(e, param, 'description')}
/>
</td>
<td> <td>
<div className="flex items-center"> <div className="flex items-center">
<input type="checkbox" checked={param.enabled} className="mr-3 mousetrap" onChange={(e) => handleParamChange(e, param, 'enabled')} /> <input type="checkbox" checked={param.enabled} className="mr-3 mousetrap" onChange={(e) => handleParamChange(e, param, 'enabled')} />

View File

@ -30,10 +30,6 @@ const MultipartFormParams = ({ item, collection }) => {
param.value = e.target.value; param.value = e.target.value;
break; break;
} }
case 'description': {
param.description = e.target.value;
break;
}
case 'enabled': { case 'enabled': {
param.enabled = e.target.checked; param.enabled = e.target.checked;
break; break;
@ -65,7 +61,6 @@ const MultipartFormParams = ({ item, collection }) => {
<tr> <tr>
<td>Key</td> <td>Key</td>
<td>Value</td> <td>Value</td>
<td>Description</td>
<td></td> <td></td>
</tr> </tr>
</thead> </thead>
@ -98,18 +93,6 @@ const MultipartFormParams = ({ item, collection }) => {
onChange={(e) => handleParamChange(e, param, 'value')} onChange={(e) => handleParamChange(e, param, 'value')}
/> />
</td> </td>
<td>
<input
type="text"
autoComplete="off"
autoCorrect="off"
autoCapitalize="off"
spellCheck="false"
value={param.description}
className="mousetrap"
onChange={(e) => handleParamChange(e, param, 'description')}
/>
</td>
<td> <td>
<div className="flex items-center"> <div className="flex items-center">
<input type="checkbox" checked={param.enabled} className="mr-3 mousetrap" onChange={(e) => handleParamChange(e, param, 'enabled')} /> <input type="checkbox" checked={param.enabled} className="mr-3 mousetrap" onChange={(e) => handleParamChange(e, param, 'enabled')} />

View File

@ -32,10 +32,6 @@ const QueryParams = ({ item, collection }) => {
param.value = e.target.value; param.value = e.target.value;
break; break;
} }
case 'description': {
param.description = e.target.value;
break;
}
case 'enabled': { case 'enabled': {
param.enabled = e.target.checked; param.enabled = e.target.checked;
break; break;
@ -68,7 +64,6 @@ const QueryParams = ({ item, collection }) => {
<tr> <tr>
<td>Key</td> <td>Key</td>
<td>Value</td> <td>Value</td>
<td>Description</td>
<td></td> <td></td>
</tr> </tr>
</thead> </thead>
@ -101,18 +96,6 @@ const QueryParams = ({ item, collection }) => {
onChange={(e) => handleParamChange(e, param, 'value')} onChange={(e) => handleParamChange(e, param, 'value')}
/> />
</td> </td>
<td>
<input
type="text"
autoComplete="off"
autoCorrect="off"
autoCapitalize="off"
spellCheck="false"
value={param.description}
className="mousetrap"
onChange={(e) => handleParamChange(e, param, 'description')}
/>
</td>
<td> <td>
<div className="flex items-center"> <div className="flex items-center">
<input type="checkbox" checked={param.enabled} className="mr-3 mousetrap" onChange={(e) => handleParamChange(e, param, 'enabled')} /> <input type="checkbox" checked={param.enabled} className="mr-3 mousetrap" onChange={(e) => handleParamChange(e, param, 'enabled')} />

View File

@ -30,10 +30,6 @@ const RequestHeaders = ({ item, collection }) => {
header.value = e.target.value; header.value = e.target.value;
break; break;
} }
case 'description': {
header.description = e.target.value;
break;
}
case 'enabled': { case 'enabled': {
header.enabled = e.target.checked; header.enabled = e.target.checked;
break; break;
@ -65,7 +61,6 @@ const RequestHeaders = ({ item, collection }) => {
<tr> <tr>
<td>Key</td> <td>Key</td>
<td>Value</td> <td>Value</td>
<td>Description</td>
<td></td> <td></td>
</tr> </tr>
</thead> </thead>
@ -98,18 +93,6 @@ const RequestHeaders = ({ item, collection }) => {
onChange={(e) => handleHeaderValueChange(e, header, 'value')} onChange={(e) => handleHeaderValueChange(e, header, 'value')}
/> />
</td> </td>
<td>
<input
type="text"
autoComplete="off"
autoCorrect="off"
autoCapitalize="off"
spellCheck="false"
value={header.description}
className="mousetrap"
onChange={(e) => handleHeaderValueChange(e, header, 'description')}
/>
</td>
<td> <td>
<div className="flex items-center"> <div className="flex items-center">
<input type="checkbox" checked={header.enabled} className="mr-3 mousetrap" onChange={(e) => handleHeaderValueChange(e, header, 'enabled')} /> <input type="checkbox" checked={header.enabled} className="mr-3 mousetrap" onChange={(e) => handleHeaderValueChange(e, header, 'enabled')} />