fix: remove // from key on disabled bulk edit entries
This commit is contained in:
@@ -181,7 +181,9 @@
|
|||||||
class="
|
class="
|
||||||
bg-transparent
|
bg-transparent
|
||||||
border-b border-dividerLight
|
border-b border-dividerLight
|
||||||
flex flex-1
|
flex
|
||||||
|
font-mono
|
||||||
|
flex-1
|
||||||
py-2
|
py-2
|
||||||
px-4
|
px-4
|
||||||
whitespace-pre
|
whitespace-pre
|
||||||
@@ -368,8 +370,8 @@ export default defineComponent({
|
|||||||
watch(bulkHeaders, () => {
|
watch(bulkHeaders, () => {
|
||||||
try {
|
try {
|
||||||
const transformation = bulkHeaders.value.split("\n").map((item) => ({
|
const transformation = bulkHeaders.value.split("\n").map((item) => ({
|
||||||
key: item.substr(0, item.indexOf(":")).trim(),
|
key: item.substring(0, item.indexOf(":")).trim().replace(/^\/\//, ""),
|
||||||
value: item.substr(item.indexOf(":") + 1).trim(),
|
value: item.substring(item.indexOf(":") + 1).trim(),
|
||||||
active: !item.trim().startsWith("//"),
|
active: !item.trim().startsWith("//"),
|
||||||
}))
|
}))
|
||||||
setGQLHeaders(transformation)
|
setGQLHeaders(transformation)
|
||||||
|
|||||||
@@ -55,7 +55,9 @@
|
|||||||
class="
|
class="
|
||||||
bg-transparent
|
bg-transparent
|
||||||
border-b border-dividerLight
|
border-b border-dividerLight
|
||||||
flex flex-1
|
flex
|
||||||
|
font-mono
|
||||||
|
flex-1
|
||||||
py-2
|
py-2
|
||||||
px-4
|
px-4
|
||||||
whitespace-pre
|
whitespace-pre
|
||||||
@@ -225,8 +227,8 @@ export default defineComponent({
|
|||||||
watch(bulkHeaders, () => {
|
watch(bulkHeaders, () => {
|
||||||
try {
|
try {
|
||||||
const transformation = bulkHeaders.value.split("\n").map((item) => ({
|
const transformation = bulkHeaders.value.split("\n").map((item) => ({
|
||||||
key: item.substr(0, item.indexOf(":")).trim(),
|
key: item.substring(0, item.indexOf(":")).trim().replace(/^\/\//, ""),
|
||||||
value: item.substr(item.indexOf(":") + 1).trim(),
|
value: item.substring(item.indexOf(":") + 1).trim(),
|
||||||
active: !item.trim().startsWith("//"),
|
active: !item.trim().startsWith("//"),
|
||||||
}))
|
}))
|
||||||
setRESTHeaders(transformation)
|
setRESTHeaders(transformation)
|
||||||
|
|||||||
@@ -5,7 +5,7 @@
|
|||||||
<textarea-autosize
|
<textarea-autosize
|
||||||
id="import-curl"
|
id="import-curl"
|
||||||
v-model="curl"
|
v-model="curl"
|
||||||
class="textarea floating-input"
|
class="font-mono textarea floating-input"
|
||||||
autofocus
|
autofocus
|
||||||
rows="8"
|
rows="8"
|
||||||
placeholder=" "
|
placeholder=" "
|
||||||
|
|||||||
@@ -55,7 +55,9 @@
|
|||||||
class="
|
class="
|
||||||
bg-transparent
|
bg-transparent
|
||||||
border-b border-dividerLight
|
border-b border-dividerLight
|
||||||
flex flex-1
|
flex
|
||||||
|
font-mono font-medium
|
||||||
|
flex-1
|
||||||
py-2
|
py-2
|
||||||
px-4
|
px-4
|
||||||
whitespace-pre
|
whitespace-pre
|
||||||
@@ -233,8 +235,8 @@ export default defineComponent({
|
|||||||
watch(bulkParams, () => {
|
watch(bulkParams, () => {
|
||||||
try {
|
try {
|
||||||
const transformation = bulkParams.value.split("\n").map((item) => ({
|
const transformation = bulkParams.value.split("\n").map((item) => ({
|
||||||
key: item.substr(0, item.indexOf(":")).trim(),
|
key: item.substring(0, item.indexOf(":")).trim().replace(/^\/\//, ""),
|
||||||
value: item.substr(item.indexOf(":") + 1).trim(),
|
value: item.substring(item.indexOf(":") + 1).trim(),
|
||||||
active: !item.trim().startsWith("//"),
|
active: !item.trim().startsWith("//"),
|
||||||
}))
|
}))
|
||||||
setRESTParams(transformation)
|
setRESTParams(transformation)
|
||||||
|
|||||||
@@ -214,7 +214,7 @@ export default {
|
|||||||
families: {
|
families: {
|
||||||
Inter: [400, 500, 600, 700, 800],
|
Inter: [400, 500, 600, 700, 800],
|
||||||
"Material+Icons": true,
|
"Material+Icons": true,
|
||||||
"Roboto+Mono": true,
|
"Roboto+Mono": [500],
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user