feat: request variables (#3825)
Co-authored-by: jamesgeorge007 <jamesgeorge998001@gmail.com>
This commit is contained in:
@@ -290,7 +290,12 @@ const widgets: Widget[] = [
|
||||
},
|
||||
]
|
||||
|
||||
type EmbedTabs = "params" | "bodyParams" | "headers" | "authorization"
|
||||
type EmbedTabs =
|
||||
| "params"
|
||||
| "bodyParams"
|
||||
| "headers"
|
||||
| "authorization"
|
||||
| "requestVariables"
|
||||
|
||||
type EmbedOption = {
|
||||
selectedTab: EmbedTabs
|
||||
|
||||
@@ -56,7 +56,12 @@ import { useI18n } from "~/composables/i18n"
|
||||
|
||||
const t = useI18n()
|
||||
|
||||
type EmbedTabs = "params" | "bodyParams" | "headers" | "authorization"
|
||||
type EmbedTabs =
|
||||
| "params"
|
||||
| "bodyParams"
|
||||
| "headers"
|
||||
| "authorization"
|
||||
| "requestVariables"
|
||||
|
||||
type EmbedOption = {
|
||||
selectedTab: EmbedTabs
|
||||
|
||||
@@ -173,6 +173,11 @@ const embedOptions = ref<EmbedOption>({
|
||||
label: t("tab.authorization"),
|
||||
enabled: false,
|
||||
},
|
||||
{
|
||||
value: "requestVariables",
|
||||
label: t("tab.variables"),
|
||||
enabled: false,
|
||||
},
|
||||
],
|
||||
theme: "system",
|
||||
})
|
||||
@@ -223,7 +228,12 @@ const currentUser = useReadonlyStream(
|
||||
|
||||
const step = ref(1)
|
||||
|
||||
type EmbedTabs = "params" | "bodyParams" | "headers" | "authorization"
|
||||
type EmbedTabs =
|
||||
| "params"
|
||||
| "bodyParams"
|
||||
| "headers"
|
||||
| "authorization"
|
||||
| "requestVariables"
|
||||
|
||||
type EmbedOption = {
|
||||
selectedTab: EmbedTabs
|
||||
@@ -369,6 +379,11 @@ const displayCustomizeRequestModal = (
|
||||
label: t("tab.authorization"),
|
||||
enabled: false,
|
||||
},
|
||||
{
|
||||
value: "requestVariables",
|
||||
label: t("tab.variables"),
|
||||
enabled: false,
|
||||
},
|
||||
],
|
||||
theme: "system",
|
||||
}
|
||||
|
||||
@@ -28,7 +28,7 @@
|
||||
</button>
|
||||
</div>
|
||||
<div
|
||||
class="flex"
|
||||
class="flex overflow-x-scroll"
|
||||
:class="[{ 'border-b pt-2 ': !noActiveTab }, embedColours]"
|
||||
>
|
||||
<span
|
||||
@@ -57,7 +57,12 @@ import { computed } from "vue"
|
||||
|
||||
import { useI18n } from "~/composables/i18n"
|
||||
|
||||
type Tabs = "params" | "bodyParams" | "headers" | "authorization"
|
||||
type Tabs =
|
||||
| "params"
|
||||
| "bodyParams"
|
||||
| "headers"
|
||||
| "authorization"
|
||||
| "requestVariables"
|
||||
|
||||
type EmbedOption = {
|
||||
selectedTab: Tabs
|
||||
|
||||
Reference in New Issue
Block a user