-
@@ -339,20 +308,23 @@
max-height: calc(100vh - 186px);
overflow: auto;
}
+.gqlRunQuery {
+ margin-bottom: 12px;
+}
diff --git a/store/mutations.js b/store/mutations.js
index acc84471a..a978c957f 100644
--- a/store/mutations.js
+++ b/store/mutations.js
@@ -7,6 +7,12 @@ export default {
gql[attribute] = value;
},
+ setCollapsedSection({ theme }, value) {
+ theme.collapsedSections.includes(value)
+ ? (theme.collapsedSections = theme.collapsedSections.filter(section => section !== value))
+ : theme.collapsedSections.push(value)
+ },
+
addGQLHeader({ gql }, object) {
gql.headers.push(object);
},
diff --git a/store/state.js b/store/state.js
index 271cf48ef..be29cd6a2 100644
--- a/store/state.js
+++ b/store/state.js
@@ -1,40 +1,43 @@
export default () => ({
request: {
- method: 'GET',
- url: 'https://httpbin.org',
- path: '/get',
- label: '',
- auth: 'None',
- httpUser: '',
- httpPassword: '',
- passwordFieldType: 'password',
- bearerToken: '',
+ method: "GET",
+ url: "https://httpbin.org",
+ path: "/get",
+ label: "",
+ auth: "None",
+ httpUser: "",
+ httpPassword: "",
+ passwordFieldType: "password",
+ bearerToken: "",
headers: [],
params: [],
bodyParams: [],
- rawParams: '',
+ rawParams: "",
rawInput: false,
- requestType: '',
- contentType: '',
+ requestType: "",
+ contentType: "",
},
gql: {
- url: 'https://rickandmortyapi.com/graphql',
+ url: "https://rickandmortyapi.com/graphql",
headers: [],
- schema: '',
- variablesJSONString: '{}',
- query: '',
- response: ''
+ schema: "",
+ variablesJSONString: "{}",
+ query: "",
+ response: "",
+ },
+ theme: {
+ collapsedSections: [],
},
oauth2: {
tokens: [],
tokenReqs: [],
- tokenReqSelect: '',
- tokenReqName: '',
- accessTokenName: '',
- oidcDiscoveryUrl: '',
- authUrl: '',
- accessTokenUrl: '',
- clientId: '',
- scope: '',
+ tokenReqSelect: "",
+ tokenReqName: "",
+ accessTokenName: "",
+ oidcDiscoveryUrl: "",
+ authUrl: "",
+ accessTokenUrl: "",
+ clientId: "",
+ scope: "",
},
-})
\ No newline at end of file
+})