Merge pull request #130 from dcoomber/bugfix/request-dialog-terminology

Proposed adjustment to terminology on requests
This commit is contained in:
Anoop M D 2023-03-21 01:34:19 +05:30 committed by GitHub
commit ee8a3eae8c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 7 additions and 7 deletions

View File

@ -32,7 +32,7 @@ const useGraphqlSchema = (endpoint, environment) => {
setSchema(buildClientSchema(s.data)); setSchema(buildClientSchema(s.data));
setIsLoading(false); setIsLoading(false);
localStorage.setItem(localStorageKey, JSON.stringify(s.data)); localStorage.setItem(localStorageKey, JSON.stringify(s.data));
toast.success('Graphql Schema loaded successfully'); toast.success('GraphQL Schema loaded successfully');
} else { } else {
return Promise.reject(new Error('An error occurred while introspecting schema')); return Promise.reject(new Error('An error occurred while introspecting schema'));
} }
@ -40,7 +40,7 @@ const useGraphqlSchema = (endpoint, environment) => {
.catch((err) => { .catch((err) => {
setIsLoading(false); setIsLoading(false);
setError(err); setError(err);
toast.error('Error occured while loading Graphql Schema'); toast.error('Error occured while loading GraphQL Schema');
}); });
}; };

View File

@ -52,7 +52,7 @@ const RequestBodyMode = ({ item, collection }) => {
onModeChange('formUrlEncoded'); onModeChange('formUrlEncoded');
}} }}
> >
Form Url Encoded Form URL Encoded
</div> </div>
<div className="label-item font-medium">Raw</div> <div className="label-item font-medium">Raw</div>
<div <div

View File

@ -102,7 +102,7 @@ const NewRequest = ({ collection, item, isEphermal, onClose }) => {
checked={formik.values.requestType === 'http-request'} checked={formik.values.requestType === 'http-request'}
/> />
<label htmlFor="http-request" className="ml-1 cursor-pointer select-none"> <label htmlFor="http-request" className="ml-1 cursor-pointer select-none">
Http HTTP
</label> </label>
<input <input
@ -118,7 +118,7 @@ const NewRequest = ({ collection, item, isEphermal, onClose }) => {
checked={formik.values.requestType === 'graphql-request'} checked={formik.values.requestType === 'graphql-request'}
/> />
<label htmlFor="graphql-request" className="ml-1 cursor-pointer select-none"> <label htmlFor="graphql-request" className="ml-1 cursor-pointer select-none">
Graphql GraphQL
</label> </label>
</div> </div>
</div> </div>
@ -145,7 +145,7 @@ const NewRequest = ({ collection, item, isEphermal, onClose }) => {
<div className="mt-4"> <div className="mt-4">
<label htmlFor="request-url" className="block font-semibold"> <label htmlFor="request-url" className="block font-semibold">
Url URL
</label> </label>
<div className="flex items-center mt-2 "> <div className="flex items-center mt-2 ">

View File

@ -433,7 +433,7 @@ export const humanizeRequestBodyMode = (mode) => {
break; break;
} }
case 'formUrlEncoded': { case 'formUrlEncoded': {
label = 'Form Url Encoded'; label = 'Form URL Encoded';
break; break;
} }
case 'multipartForm': { case 'multipartForm': {