@scalar/api-reference 1.24.20 → 1.24.23
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +48 -0
- package/dist/browser/standalone.js +22673 -23143
- package/dist/browser/webpack-stats.json +1 -1
- package/dist/components/ApiClientModal.vue.d.ts.map +1 -1
- package/dist/components/ApiClientModal.vue.js +19 -18
- package/dist/components/ApiClientModal.vue3.js +5 -0
- package/dist/components/ApiReference.vue.js +14 -14
- package/dist/components/ApiReferenceLayout.vue.d.ts +2 -2
- package/dist/components/ApiReferenceLayout.vue.d.ts.map +1 -1
- package/dist/components/ApiReferenceLayout.vue.js +2 -2
- package/dist/components/ApiReferenceLayout.vue2.js +123 -155
- package/dist/components/Content/Authentication/Authentication.vue.d.ts.map +1 -1
- package/dist/components/Content/Authentication/Authentication.vue.js +2 -2
- package/dist/components/Content/Authentication/Authentication.vue2.js +20 -18
- package/dist/components/Content/Content.vue.d.ts +3 -3
- package/dist/components/Content/Content.vue.d.ts.map +1 -1
- package/dist/components/Content/Content.vue.js +2 -2
- package/dist/components/Content/Content.vue2.js +72 -93
- package/dist/components/Content/Lazy/Loading.vue.js +1 -1
- package/dist/components/Content/Operation/CustomRequestExamples.vue.d.ts.map +1 -1
- package/dist/components/Content/Operation/CustomRequestExamples.vue.js +1 -1
- package/dist/components/Content/Operation/CustomRequestExamples.vue2.js +19 -19
- package/dist/components/Content/Operation/ExampleRequest.vue.d.ts.map +1 -1
- package/dist/components/Content/Operation/ExampleRequest.vue.js +2 -2
- package/dist/components/Content/Operation/ExampleRequest.vue2.js +63 -59
- package/dist/components/Content/Operation/OperationAccordion.vue.d.ts.map +1 -1
- package/dist/components/Content/Operation/OperationAccordion.vue.js +1 -1
- package/dist/components/Content/Operation/OperationAccordion.vue2.js +26 -26
- package/dist/components/Content/Operation/TestRequestButton.vue.d.ts.map +1 -1
- package/dist/components/Content/Operation/TestRequestButton.vue.js +2 -2
- package/dist/components/Content/Operation/TestRequestButton.vue2.js +18 -36
- package/dist/components/Content/Schema/Schema.vue.d.ts +2 -2
- package/dist/components/Content/Schema/SchemaHeading.vue.d.ts +2 -2
- package/dist/components/Content/Tag/Endpoints.vue.d.ts.map +1 -1
- package/dist/components/Content/Tag/Endpoints.vue.js +2 -2
- package/dist/components/Content/Tag/Endpoints.vue2.js +23 -23
- package/dist/components/HttpMethod/HttpMethod.vue.d.ts +42 -0
- package/dist/components/HttpMethod/HttpMethod.vue.d.ts.map +1 -0
- package/dist/components/HttpMethod/HttpMethod.vue.js +28 -0
- package/dist/components/HttpMethod/HttpMethod.vue2.js +4 -0
- package/dist/components/HttpMethod/constants.d.ts +9 -0
- package/dist/components/HttpMethod/constants.d.ts.map +1 -0
- package/dist/components/HttpMethod/constants.js +36 -0
- package/dist/components/HttpMethod/index.d.ts +2 -0
- package/dist/components/HttpMethod/index.d.ts.map +1 -0
- package/dist/components/HttpMethod/utils/isRequestMethod.d.ts +4 -0
- package/dist/components/HttpMethod/utils/isRequestMethod.d.ts.map +1 -0
- package/dist/components/HttpMethod/utils/isRequestMethod.js +7 -0
- package/dist/components/Sidebar/SidebarHttpBadge.vue.js +1 -1
- package/dist/components/Sidebar/SidebarHttpBadge.vue2.js +6 -6
- package/dist/components/api-client-bus.d.ts +1 -1
- package/dist/components/api-client-bus.d.ts.map +1 -1
- package/dist/features/BaseUrl/BaseUrl.vue.d.ts +40 -0
- package/dist/features/BaseUrl/BaseUrl.vue.d.ts.map +1 -0
- package/dist/features/BaseUrl/BaseUrl.vue.js +97 -0
- package/dist/features/BaseUrl/BaseUrl.vue2.js +4 -0
- package/dist/features/BaseUrl/ServerForm.vue.d.ts +41 -0
- package/dist/features/BaseUrl/ServerForm.vue.d.ts.map +1 -0
- package/dist/features/BaseUrl/ServerForm.vue.js +7 -0
- package/dist/features/BaseUrl/ServerForm.vue2.js +66 -0
- package/dist/{components/Content/BaseUrl/ServerItem.vue.d.ts → features/BaseUrl/ServerUrl.vue.d.ts} +6 -6
- package/dist/features/BaseUrl/ServerUrl.vue.d.ts.map +1 -0
- package/dist/features/BaseUrl/ServerUrl.vue.js +8 -0
- package/dist/features/BaseUrl/ServerUrl.vue2.js +29 -0
- package/dist/{components/ApiClientModalOld.vue.d.ts → features/BaseUrl/ServerUrlSelect.vue.d.ts} +9 -15
- package/dist/features/BaseUrl/ServerUrlSelect.vue.d.ts.map +1 -0
- package/dist/features/BaseUrl/ServerUrlSelect.vue.js +7 -0
- package/dist/features/BaseUrl/ServerUrlSelect.vue2.js +56 -0
- package/dist/features/BaseUrl/ServerVariablesForm.vue.d.ts +23 -0
- package/dist/features/BaseUrl/ServerVariablesForm.vue.d.ts.map +1 -0
- package/dist/features/BaseUrl/ServerVariablesForm.vue.js +7 -0
- package/dist/features/BaseUrl/ServerVariablesForm.vue2.js +53 -0
- package/dist/{components/Content/BaseUrl/ServerVariableSelect.vue.d.ts → features/BaseUrl/ServerVariablesSelect.vue.d.ts} +1 -1
- package/dist/features/BaseUrl/ServerVariablesSelect.vue.d.ts.map +1 -0
- package/dist/features/BaseUrl/ServerVariablesSelect.vue.js +7 -0
- package/dist/{components/Content/BaseUrl/ServerVariableSelect.vue2.js → features/BaseUrl/ServerVariablesSelect.vue2.js} +1 -1
- package/dist/{components/Content/BaseUrl/ServerVariableTextbox.vue.d.ts → features/BaseUrl/ServerVariablesTextbox.vue.d.ts} +1 -1
- package/dist/features/BaseUrl/ServerVariablesTextbox.vue.d.ts.map +1 -0
- package/dist/features/BaseUrl/ServerVariablesTextbox.vue.js +7 -0
- package/dist/{components/Content/BaseUrl/ServerVariableTextbox.vue2.js → features/BaseUrl/ServerVariablesTextbox.vue2.js} +6 -6
- package/dist/features/BaseUrl/index.d.ts +3 -0
- package/dist/features/BaseUrl/index.d.ts.map +1 -0
- package/dist/features/BaseUrl/types.d.ts +10 -0
- package/dist/features/BaseUrl/types.d.ts.map +1 -0
- package/dist/features/BaseUrl/utils/getServers.d.ts +15 -0
- package/dist/features/BaseUrl/utils/getServers.d.ts.map +1 -0
- package/dist/features/BaseUrl/utils/getServers.js +29 -0
- package/dist/features/BaseUrl/utils/index.d.ts +2 -0
- package/dist/features/BaseUrl/utils/index.d.ts.map +1 -0
- package/dist/helpers/createEmptySpecification.d.ts +1 -1
- package/dist/helpers/createEmptySpecification.d.ts.map +1 -1
- package/dist/helpers/createEmptySpecification.js +5 -4
- package/dist/helpers/getApiClientRequest.d.ts +1 -1
- package/dist/helpers/getApiClientRequest.d.ts.map +1 -1
- package/dist/helpers/getApiClientRequest.js +12 -11
- package/dist/helpers/getModels.d.ts +1 -1
- package/dist/helpers/index.d.ts +1 -1
- package/dist/helpers/index.d.ts.map +1 -1
- package/dist/helpers/openClientFor.js +10 -7
- package/dist/helpers/parse.d.ts.map +1 -1
- package/dist/helpers/parse.js +33 -31
- package/dist/hooks/useReactiveSpec.d.ts +9 -9
- package/dist/hooks/useSidebar.js +18 -17
- package/dist/index.d.ts +0 -2
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +101 -102
- package/dist/legacy/components/CardForm.vue.d.ts +10 -0
- package/dist/legacy/components/CardForm.vue.d.ts.map +1 -0
- package/dist/legacy/components/CardForm.vue.js +13 -0
- package/dist/legacy/components/CardFormButton.vue.d.ts +12 -0
- package/dist/legacy/components/CardFormButton.vue.d.ts.map +1 -0
- package/dist/legacy/components/CardFormButton.vue.js +7 -0
- package/dist/legacy/components/CardFormButton.vue2.js +18 -0
- package/dist/legacy/components/CardFormGroup.vue.d.ts +10 -0
- package/dist/legacy/components/CardFormGroup.vue.d.ts.map +1 -0
- package/dist/legacy/components/CardFormGroup.vue.js +13 -0
- package/dist/legacy/components/CardFormRows.vue.d.ts +10 -0
- package/dist/legacy/components/CardFormRows.vue.d.ts.map +1 -0
- package/dist/legacy/components/CardFormRows.vue.js +13 -0
- package/dist/legacy/components/CardFormTextInput.vue.d.ts +25 -0
- package/dist/legacy/components/CardFormTextInput.vue.d.ts.map +1 -0
- package/dist/legacy/components/CardFormTextInput.vue.js +7 -0
- package/dist/legacy/components/CardFormTextInput.vue2.js +37 -0
- package/dist/{components/Content/BaseUrl/ServerVariables.vue.d.ts → legacy/components/SecurityScheme.vue.d.ts} +6 -4
- package/dist/legacy/components/SecurityScheme.vue.d.ts.map +1 -0
- package/dist/legacy/components/SecurityScheme.vue.js +7 -0
- package/dist/legacy/components/SecurityScheme.vue2.js +364 -0
- package/dist/legacy/components/SecuritySchemeScopes.vue.d.ts +26 -0
- package/dist/legacy/components/SecuritySchemeScopes.vue.d.ts.map +1 -0
- package/dist/legacy/components/SecuritySchemeScopes.vue.js +7 -0
- package/dist/legacy/components/SecuritySchemeScopes.vue2.js +91 -0
- package/dist/legacy/components/SecuritySchemeSelector.vue.d.ts +25 -0
- package/dist/legacy/components/SecuritySchemeSelector.vue.d.ts.map +1 -0
- package/dist/legacy/components/SecuritySchemeSelector.vue.js +7 -0
- package/dist/legacy/components/SecuritySchemeSelector.vue2.js +64 -0
- package/dist/legacy/fixtures/httpHeaders.d.ts +6 -0
- package/dist/legacy/fixtures/httpHeaders.d.ts.map +1 -0
- package/dist/legacy/fixtures/httpRequestMethods.d.ts +10 -0
- package/dist/legacy/fixtures/httpRequestMethods.d.ts.map +1 -0
- package/dist/legacy/fixtures/httpRequestMethods.js +18 -0
- package/dist/legacy/fixtures/index.d.ts +3 -0
- package/dist/legacy/fixtures/index.d.ts.map +1 -0
- package/dist/legacy/helpers/createPlaceholderRequest.d.ts +6 -0
- package/dist/legacy/helpers/createPlaceholderRequest.d.ts.map +1 -0
- package/dist/legacy/helpers/createPlaceholderRequest.js +14 -0
- package/dist/legacy/helpers/encodeStringAsBase64.d.ts +5 -0
- package/dist/legacy/helpers/encodeStringAsBase64.d.ts.map +1 -0
- package/dist/legacy/helpers/encodeStringAsBase64.js +6 -0
- package/dist/legacy/helpers/getRequestFromAuthentication.d.ts +10 -0
- package/dist/legacy/helpers/getRequestFromAuthentication.d.ts.map +1 -0
- package/dist/legacy/helpers/getRequestFromAuthentication.js +83 -0
- package/dist/legacy/helpers/getUrlFromServerState.d.ts +6 -0
- package/dist/legacy/helpers/getUrlFromServerState.d.ts.map +1 -0
- package/dist/legacy/helpers/getUrlFromServerState.js +9 -0
- package/dist/legacy/helpers/humanDiff.d.ts +5 -0
- package/dist/legacy/helpers/humanDiff.d.ts.map +1 -0
- package/dist/legacy/helpers/index.d.ts +12 -0
- package/dist/legacy/helpers/index.d.ts.map +1 -0
- package/dist/legacy/helpers/mapFromArray.d.ts +5 -0
- package/dist/legacy/helpers/mapFromArray.d.ts.map +1 -0
- package/dist/legacy/helpers/normalizeHeaders.d.ts +9 -0
- package/dist/legacy/helpers/normalizeHeaders.d.ts.map +1 -0
- package/dist/legacy/helpers/normalizePath.d.ts +5 -0
- package/dist/legacy/helpers/normalizePath.d.ts.map +1 -0
- package/dist/legacy/helpers/normalizeRequestMethod.d.ts +6 -0
- package/dist/legacy/helpers/normalizeRequestMethod.d.ts.map +1 -0
- package/dist/legacy/helpers/normalizeRequestMethod.js +14 -0
- package/dist/legacy/helpers/normalizeUrl.d.ts +5 -0
- package/dist/legacy/helpers/normalizeUrl.d.ts.map +1 -0
- package/dist/legacy/helpers/prepareClientRequestConfig.d.ts +24 -0
- package/dist/legacy/helpers/prepareClientRequestConfig.d.ts.map +1 -0
- package/dist/legacy/index.d.ts +5 -0
- package/dist/legacy/index.d.ts.map +1 -0
- package/dist/legacy/stores/index.d.ts +6 -0
- package/dist/legacy/stores/index.d.ts.map +1 -0
- package/dist/legacy/stores/useApiClientStore.d.ts +18 -0
- package/dist/legacy/stores/useApiClientStore.d.ts.map +1 -0
- package/dist/legacy/stores/useApiClientStore.js +32 -0
- package/dist/legacy/stores/useAuthenticationStore.d.ts +59 -0
- package/dist/legacy/stores/useAuthenticationStore.d.ts.map +1 -0
- package/dist/legacy/stores/useAuthenticationStore.js +36 -0
- package/dist/legacy/stores/useOpenApiStore.d.ts +95 -0
- package/dist/legacy/stores/useOpenApiStore.d.ts.map +1 -0
- package/dist/legacy/stores/useOpenApiStore.js +23 -0
- package/dist/legacy/stores/useRequestStore.d.ts +58 -0
- package/dist/legacy/stores/useRequestStore.d.ts.map +1 -0
- package/dist/legacy/stores/useRequestStore.js +33 -0
- package/dist/legacy/stores/useServerStore.d.ts +18 -0
- package/dist/legacy/stores/useServerStore.d.ts.map +1 -0
- package/dist/legacy/stores/useServerStore.js +18 -0
- package/dist/legacy/types.d.ts +117 -0
- package/dist/legacy/types.d.ts.map +1 -0
- package/dist/stores/index.d.ts +1 -0
- package/dist/stores/index.d.ts.map +1 -1
- package/dist/style.css +1 -1
- package/dist/types.d.ts +8 -11
- package/dist/types.d.ts.map +1 -1
- package/package.json +16 -15
- package/dist/components/ApiClientModal.vue2.js +0 -4
- package/dist/components/ApiClientModalOld.vue.d.ts.map +0 -1
- package/dist/components/ApiClientModalOld.vue.js +0 -7
- package/dist/components/ApiClientModalOld.vue2.js +0 -88
- package/dist/components/Content/BaseUrl/BaseUrl.vue.d.ts +0 -3
- package/dist/components/Content/BaseUrl/BaseUrl.vue.d.ts.map +0 -1
- package/dist/components/Content/BaseUrl/BaseUrl.vue.js +0 -7
- package/dist/components/Content/BaseUrl/BaseUrl.vue2.js +0 -90
- package/dist/components/Content/BaseUrl/ServerItem.vue.d.ts.map +0 -1
- package/dist/components/Content/BaseUrl/ServerItem.vue.js +0 -8
- package/dist/components/Content/BaseUrl/ServerItem.vue2.js +0 -35
- package/dist/components/Content/BaseUrl/ServerVariableSelect.vue.d.ts.map +0 -1
- package/dist/components/Content/BaseUrl/ServerVariableSelect.vue.js +0 -7
- package/dist/components/Content/BaseUrl/ServerVariableTextbox.vue.d.ts.map +0 -1
- package/dist/components/Content/BaseUrl/ServerVariableTextbox.vue.js +0 -7
- package/dist/components/Content/BaseUrl/ServerVariables.vue.d.ts.map +0 -1
- package/dist/components/Content/BaseUrl/ServerVariables.vue.js +0 -7
- package/dist/components/Content/BaseUrl/ServerVariables.vue2.js +0 -47
- package/dist/components/Content/BaseUrl/index.d.ts +0 -2
- package/dist/components/Content/BaseUrl/index.d.ts.map +0 -1
- package/dist/components/Content/Schema/SchemaProperty.spec.d.ts +0 -2
- package/dist/components/Content/Schema/SchemaProperty.spec.d.ts.map +0 -1
- package/dist/features.d.ts +0 -8
- package/dist/features.d.ts.map +0 -1
- package/dist/features.js +0 -5
- package/dist/standalone.spec.d.ts +0 -2
- package/dist/standalone.spec.d.ts.map +0 -1
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import { type Component } from 'vue';
|
|
2
|
+
declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__VLS_TypePropsToOption<{
|
|
3
|
+
/** The type of element to render as, defaults to `span` */
|
|
4
|
+
as?: string | Component | undefined;
|
|
5
|
+
/** The css style property or variable that will be set to the request method color, defaults to `color` */
|
|
6
|
+
property?: string | undefined;
|
|
7
|
+
/** Whether or not to abbreviated the slot content */
|
|
8
|
+
short?: boolean | undefined;
|
|
9
|
+
/** The HTTP method to show */
|
|
10
|
+
method: string;
|
|
11
|
+
}>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_TypePropsToOption<{
|
|
12
|
+
/** The type of element to render as, defaults to `span` */
|
|
13
|
+
as?: string | Component | undefined;
|
|
14
|
+
/** The css style property or variable that will be set to the request method color, defaults to `color` */
|
|
15
|
+
property?: string | undefined;
|
|
16
|
+
/** Whether or not to abbreviated the slot content */
|
|
17
|
+
short?: boolean | undefined;
|
|
18
|
+
/** The HTTP method to show */
|
|
19
|
+
method: string;
|
|
20
|
+
}>>>, {}, {}>, {
|
|
21
|
+
default?(_: {
|
|
22
|
+
normalized: string;
|
|
23
|
+
abbreviated: string;
|
|
24
|
+
color: string;
|
|
25
|
+
}): any;
|
|
26
|
+
}>;
|
|
27
|
+
export default _default;
|
|
28
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
29
|
+
new (): {
|
|
30
|
+
$slots: S;
|
|
31
|
+
};
|
|
32
|
+
};
|
|
33
|
+
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
34
|
+
type __VLS_TypePropsToOption<T> = {
|
|
35
|
+
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
36
|
+
type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
37
|
+
} : {
|
|
38
|
+
type: import('vue').PropType<T[K]>;
|
|
39
|
+
required: true;
|
|
40
|
+
};
|
|
41
|
+
};
|
|
42
|
+
//# sourceMappingURL=HttpMethod.vue.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"HttpMethod.vue.d.ts","sourceRoot":"","sources":["../../../src/components/HttpMethod/HttpMethod.vue"],"names":[],"mappings":"AA0CA,OAAO,EAAE,KAAK,SAAS,EAAY,MAAM,KAAK,CAAA;;IAQ5C,2DAA2D;;IAE3D,2GAA2G;;IAE3G,qDAAqD;;IAErD,8BAA8B;;;IAN9B,2DAA2D;;IAE3D,2GAA2G;;IAE3G,qDAAqD;;IAErD,8BAA8B;;;;;;;;;AA+EhC,wBAAwG;AAOxG,KAAK,uBAAuB,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IACpC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KAEV,CAAA;CACD,CAAC;AAEN,KAAK,sBAAsB,CAAC,CAAC,IAAI,CAAC,SAAS,SAAS,GAAG,KAAK,GAAG,CAAC,CAAC;AAC5D,KAAK,uBAAuB,CAAC,CAAC,IAAI;KAChC,CAAC,IAAI,MAAM,CAAC,CAAC,CAAC,GAAG,EAAE,SAAS,IAAI,CAAC,CAAC,EAAE,CAAC,CAAC,GACpC;QAAE,IAAI,EAAE,OAAO,KAAK,EAAE,QAAQ,CAAC,sBAAsB,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAA;KAAE,GAC9D;QAAE,IAAI,EAAE,OAAO,KAAK,EAAE,QAAQ,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;QAAC,QAAQ,EAAE,IAAI,CAAA;KAAE;CACzD,CAAC"}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { defineComponent as u, computed as r, openBlock as p, createBlock as i, resolveDynamicComponent as m, normalizeStyle as c, withCtx as d, renderSlot as v, normalizeProps as h, guardReactiveProps as f, createTextVNode as y, toDisplayString as b } from "vue";
|
|
2
|
+
import { requestMethodAbbreviations as C, requestMethodColors as z } from "./constants.js";
|
|
3
|
+
import { isRequestMethod as l } from "./utils/isRequestMethod.js";
|
|
4
|
+
const S = /* @__PURE__ */ u({
|
|
5
|
+
__name: "HttpMethod",
|
|
6
|
+
props: {
|
|
7
|
+
as: {},
|
|
8
|
+
property: {},
|
|
9
|
+
short: { type: Boolean },
|
|
10
|
+
method: {}
|
|
11
|
+
},
|
|
12
|
+
setup(s) {
|
|
13
|
+
const n = s, e = r(() => n.method.trim().toUpperCase()), t = r(() => l(e.value) ? C[e.value] : e.value.slice(0, 4)), a = r(() => l(e.value) ? z[e.value] : "var(--scalar-color-ghost)");
|
|
14
|
+
return (o, M) => (p(), i(m(o.as ?? "span"), {
|
|
15
|
+
style: c({ [o.property || "color"]: a.value })
|
|
16
|
+
}, {
|
|
17
|
+
default: d(() => [
|
|
18
|
+
v(o.$slots, "default", h(f({ normalized: e.value, abbreviated: t.value, color: a.value })), () => [
|
|
19
|
+
y(b(o.short ? t.value : e.value), 1)
|
|
20
|
+
])
|
|
21
|
+
]),
|
|
22
|
+
_: 3
|
|
23
|
+
}, 8, ["style"]));
|
|
24
|
+
}
|
|
25
|
+
});
|
|
26
|
+
export {
|
|
27
|
+
S as default
|
|
28
|
+
};
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
export declare const validRequestMethods: readonly ["GET", "POST", "PUT", "HEAD", "DELETE", "PATCH", "OPTIONS", "CONNECT", "TRACE"];
|
|
2
|
+
export type RequestMethod = (typeof validRequestMethods)[number];
|
|
3
|
+
export declare const requestMethodColors: {
|
|
4
|
+
[x in RequestMethod]: string;
|
|
5
|
+
};
|
|
6
|
+
export declare const requestMethodAbbreviations: {
|
|
7
|
+
[x in RequestMethod]: string;
|
|
8
|
+
};
|
|
9
|
+
//# sourceMappingURL=constants.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../../../src/components/HttpMethod/constants.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,mBAAmB,2FAUtB,CAAA;AAEV,MAAM,MAAM,aAAa,GAAG,CAAC,OAAO,mBAAmB,CAAC,CAAC,MAAM,CAAC,CAAA;AAEhE,eAAO,MAAM,mBAAmB,EAAE;KAAG,CAAC,IAAI,aAAa,GAAG,MAAM;CAU/D,CAAA;AAED,eAAO,MAAM,0BAA0B,EAAE;KAAG,CAAC,IAAI,aAAa,GAAG,MAAM;CAUtE,CAAA"}
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
const r = [
|
|
2
|
+
"GET",
|
|
3
|
+
"POST",
|
|
4
|
+
"PUT",
|
|
5
|
+
"HEAD",
|
|
6
|
+
"DELETE",
|
|
7
|
+
"PATCH",
|
|
8
|
+
"OPTIONS",
|
|
9
|
+
"CONNECT",
|
|
10
|
+
"TRACE"
|
|
11
|
+
], a = {
|
|
12
|
+
POST: "var(--scalar-color-green)",
|
|
13
|
+
DELETE: "var(--scalar-color-red)",
|
|
14
|
+
PATCH: "var(--scalar-color-yellow)",
|
|
15
|
+
GET: "var(--scalar-color-blue)",
|
|
16
|
+
PUT: "var(--scalar-color-orange)",
|
|
17
|
+
OPTIONS: "var(--scalar-color-purple)",
|
|
18
|
+
HEAD: "var(--scalar-color-2)",
|
|
19
|
+
CONNECT: "var(--scalar-color-2)",
|
|
20
|
+
TRACE: "var(--scalar-color-2)"
|
|
21
|
+
}, o = {
|
|
22
|
+
POST: "POST",
|
|
23
|
+
DELETE: "DEL",
|
|
24
|
+
PATCH: "PATCH",
|
|
25
|
+
GET: "GET",
|
|
26
|
+
PUT: "PUT",
|
|
27
|
+
OPTIONS: "OPTS",
|
|
28
|
+
HEAD: "HEAD",
|
|
29
|
+
CONNECT: "CONN",
|
|
30
|
+
TRACE: "TRACE"
|
|
31
|
+
};
|
|
32
|
+
export {
|
|
33
|
+
o as requestMethodAbbreviations,
|
|
34
|
+
a as requestMethodColors,
|
|
35
|
+
r as validRequestMethods
|
|
36
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/HttpMethod/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,IAAI,UAAU,EAAE,MAAM,kBAAkB,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"isRequestMethod.d.ts","sourceRoot":"","sources":["../../../../src/components/HttpMethod/utils/isRequestMethod.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,aAAa,EAAuB,MAAM,cAAc,CAAA;AAEtE,sEAAsE;AACtE,wBAAgB,eAAe,CAAC,CAAC,EAAE,MAAM,GAAG,CAAC,IAAI,aAAa,CAE7D"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import t from "./SidebarHttpBadge.vue2.js";
|
|
2
2
|
/* empty css */
|
|
3
3
|
import o from "../../_virtual/_plugin-vue_export-helper.js";
|
|
4
|
-
const p = /* @__PURE__ */ o(t, [["__scopeId", "data-v-
|
|
4
|
+
const p = /* @__PURE__ */ o(t, [["__scopeId", "data-v-f51e2805"]]);
|
|
5
5
|
export {
|
|
6
6
|
p as default
|
|
7
7
|
};
|
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import
|
|
3
|
-
const
|
|
1
|
+
import { defineComponent as o, openBlock as t, createBlock as a, unref as r, normalizeClass as n } from "vue";
|
|
2
|
+
import p from "../HttpMethod/HttpMethod.vue.js";
|
|
3
|
+
const d = /* @__PURE__ */ o({
|
|
4
4
|
__name: "SidebarHttpBadge",
|
|
5
5
|
props: {
|
|
6
6
|
active: { type: Boolean },
|
|
7
7
|
method: {}
|
|
8
8
|
},
|
|
9
9
|
setup(s) {
|
|
10
|
-
return (e,
|
|
11
|
-
class:
|
|
10
|
+
return (e, i) => (t(), a(r(p), {
|
|
11
|
+
class: n(["sidebar-heading-type", { "sidebar-heading-type-active": e.active }]),
|
|
12
12
|
method: e.method,
|
|
13
13
|
property: "--method-color",
|
|
14
14
|
short: ""
|
|
@@ -16,5 +16,5 @@ const c = /* @__PURE__ */ t({
|
|
|
16
16
|
}
|
|
17
17
|
});
|
|
18
18
|
export {
|
|
19
|
-
|
|
19
|
+
d as default
|
|
20
20
|
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { OpenClientPayload } from '@scalar/api-client
|
|
1
|
+
import type { OpenClientPayload } from '@scalar/api-client';
|
|
2
2
|
import type { AuthenticationState } from '@scalar/oas-utils';
|
|
3
3
|
import type { RequireAtLeastOne } from 'type-fest';
|
|
4
4
|
type ApiClientEvents = RequireAtLeastOne<{
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"api-client-bus.d.ts","sourceRoot":"","sources":["../../src/components/api-client-bus.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"api-client-bus.d.ts","sourceRoot":"","sources":["../../src/components/api-client-bus.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,oBAAoB,CAAA;AAE3D,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,mBAAmB,CAAA;AAE5D,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,WAAW,CAAA;AAElD,KAAK,eAAe,GAAG,iBAAiB,CAAC;IACvC,IAAI,CAAC,EAAE,iBAAiB,CAAA;IACxB,UAAU,CAAC,EAAE,mBAAmB,CAAA;CACjC,CAAC,CAAA;AAIF;;;;;GAKG;AACH,eAAO,MAAM,YAAY,gEAA+B,CAAA;AACxD,eAAO,MAAM,aAAa;;;;OAAyC,CAAA"}
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import type { Spec } from '@scalar/oas-utils';
|
|
2
|
+
import type { Server } from './types';
|
|
3
|
+
declare const _default: import("vue").DefineComponent<__VLS_TypePropsToOption<{
|
|
4
|
+
/**
|
|
5
|
+
* The specification to get the servers from
|
|
6
|
+
*/
|
|
7
|
+
specification?: Spec | undefined;
|
|
8
|
+
/**
|
|
9
|
+
* The fallback server URL to use if no servers are found in the specification
|
|
10
|
+
*/
|
|
11
|
+
defaultServerUrl?: string | undefined;
|
|
12
|
+
/**
|
|
13
|
+
* Overwrite the list of servers
|
|
14
|
+
*/
|
|
15
|
+
servers?: Server[] | undefined;
|
|
16
|
+
}>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_TypePropsToOption<{
|
|
17
|
+
/**
|
|
18
|
+
* The specification to get the servers from
|
|
19
|
+
*/
|
|
20
|
+
specification?: Spec | undefined;
|
|
21
|
+
/**
|
|
22
|
+
* The fallback server URL to use if no servers are found in the specification
|
|
23
|
+
*/
|
|
24
|
+
defaultServerUrl?: string | undefined;
|
|
25
|
+
/**
|
|
26
|
+
* Overwrite the list of servers
|
|
27
|
+
*/
|
|
28
|
+
servers?: Server[] | undefined;
|
|
29
|
+
}>>>, {}, {}>;
|
|
30
|
+
export default _default;
|
|
31
|
+
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
32
|
+
type __VLS_TypePropsToOption<T> = {
|
|
33
|
+
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
34
|
+
type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
35
|
+
} : {
|
|
36
|
+
type: import('vue').PropType<T[K]>;
|
|
37
|
+
required: true;
|
|
38
|
+
};
|
|
39
|
+
};
|
|
40
|
+
//# sourceMappingURL=BaseUrl.vue.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"BaseUrl.vue.d.ts","sourceRoot":"","sources":["../../../src/features/BaseUrl/BaseUrl.vue"],"names":[],"mappings":"AAmIA,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,mBAAmB,CAAA;AAK7C,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,SAAS,CAAA;;IAMnC;;OAEG;;IAEH;;OAEG;;IAEH;;OAEG;;;IAVH;;OAEG;;IAEH;;OAEG;;IAEH;;OAEG;;;AAwKL,wBAMG;AAOH,KAAK,sBAAsB,CAAC,CAAC,IAAI,CAAC,SAAS,SAAS,GAAG,KAAK,GAAG,CAAC,CAAC;AAC5D,KAAK,uBAAuB,CAAC,CAAC,IAAI;KAChC,CAAC,IAAI,MAAM,CAAC,CAAC,CAAC,GAAG,EAAE,SAAS,IAAI,CAAC,CAAC,EAAE,CAAC,CAAC,GACpC;QAAE,IAAI,EAAE,OAAO,KAAK,EAAE,QAAQ,CAAC,sBAAsB,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAA;KAAE,GAC9D;QAAE,IAAI,EAAE,OAAO,KAAK,EAAE,QAAQ,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;QAAC,QAAQ,EAAE,IAAI,CAAA;KAAE;CACzD,CAAC"}
|
|
@@ -0,0 +1,97 @@
|
|
|
1
|
+
import { defineComponent as b, ref as S, watch as c, openBlock as U, createBlock as g, unref as u } from "vue";
|
|
2
|
+
import j from "./ServerForm.vue.js";
|
|
3
|
+
import { getServers as E } from "./utils/getServers.js";
|
|
4
|
+
import { createEmptySpecification as O } from "../../helpers/createEmptySpecification.js";
|
|
5
|
+
import { useServerStore as _ } from "../../legacy/stores/useServerStore.js";
|
|
6
|
+
const w = /* @__PURE__ */ b({
|
|
7
|
+
__name: "BaseUrl",
|
|
8
|
+
props: {
|
|
9
|
+
specification: {},
|
|
10
|
+
defaultServerUrl: {},
|
|
11
|
+
servers: {}
|
|
12
|
+
},
|
|
13
|
+
setup(f) {
|
|
14
|
+
const a = f, { server: i, setServer: o } = _(), s = S(0);
|
|
15
|
+
c(
|
|
16
|
+
s,
|
|
17
|
+
() => o({
|
|
18
|
+
selectedServer: s.value
|
|
19
|
+
}),
|
|
20
|
+
{
|
|
21
|
+
immediate: !0
|
|
22
|
+
}
|
|
23
|
+
), c(
|
|
24
|
+
() => a.specification,
|
|
25
|
+
() => {
|
|
26
|
+
var r;
|
|
27
|
+
const t = (
|
|
28
|
+
// Use the specification
|
|
29
|
+
a.servers === void 0 ? a.specification : (
|
|
30
|
+
// Or create an empty one with the specified servers list
|
|
31
|
+
O({
|
|
32
|
+
servers: a.servers
|
|
33
|
+
})
|
|
34
|
+
)
|
|
35
|
+
), e = E(t, {
|
|
36
|
+
defaultServerUrl: a.defaultServerUrl
|
|
37
|
+
});
|
|
38
|
+
o({
|
|
39
|
+
servers: e,
|
|
40
|
+
variables: {
|
|
41
|
+
// Set the initial values for the variables
|
|
42
|
+
...m(
|
|
43
|
+
((r = e[s.value]) == null ? void 0 : r.variables) ?? {}
|
|
44
|
+
),
|
|
45
|
+
// Don’t overwrite existing values, but filter out non-existing variables
|
|
46
|
+
...p(
|
|
47
|
+
i.variables,
|
|
48
|
+
e[s.value]
|
|
49
|
+
)
|
|
50
|
+
}
|
|
51
|
+
});
|
|
52
|
+
},
|
|
53
|
+
{ deep: !0, immediate: !0 }
|
|
54
|
+
);
|
|
55
|
+
function m(t) {
|
|
56
|
+
return Object.fromEntries(
|
|
57
|
+
Object.entries(t ?? {}).map(([e, r]) => {
|
|
58
|
+
var n, l, v;
|
|
59
|
+
return [
|
|
60
|
+
e,
|
|
61
|
+
// 1) Default
|
|
62
|
+
((n = r.default) == null ? void 0 : n.toString()) ?? // 2) First enum value
|
|
63
|
+
((v = (l = r.enum) == null ? void 0 : l[0]) == null ? void 0 : v.toString()) ?? // 3) Empty string
|
|
64
|
+
""
|
|
65
|
+
];
|
|
66
|
+
})
|
|
67
|
+
);
|
|
68
|
+
}
|
|
69
|
+
function p(t, e) {
|
|
70
|
+
return Object.fromEntries(
|
|
71
|
+
Object.entries(t).filter(
|
|
72
|
+
([r]) => r in (e.variables ?? {})
|
|
73
|
+
)
|
|
74
|
+
);
|
|
75
|
+
}
|
|
76
|
+
function d(t, e) {
|
|
77
|
+
o({
|
|
78
|
+
variables: {
|
|
79
|
+
...i.variables,
|
|
80
|
+
[t]: e
|
|
81
|
+
}
|
|
82
|
+
});
|
|
83
|
+
}
|
|
84
|
+
return (t, e) => (U(), g(j, {
|
|
85
|
+
selected: s.value,
|
|
86
|
+
servers: u(i).servers,
|
|
87
|
+
variables: u(i).variables,
|
|
88
|
+
"onUpdate:selected": e[0] || (e[0] = (r) => {
|
|
89
|
+
s.value = r;
|
|
90
|
+
}),
|
|
91
|
+
"onUpdate:variable": d
|
|
92
|
+
}, null, 8, ["selected", "servers", "variables"]));
|
|
93
|
+
}
|
|
94
|
+
});
|
|
95
|
+
export {
|
|
96
|
+
w as default
|
|
97
|
+
};
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
import type { Server, ServerVariableValues } from './types';
|
|
2
|
+
declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToOption<{
|
|
3
|
+
selected?: string | number | undefined;
|
|
4
|
+
servers?: Server[] | undefined;
|
|
5
|
+
variables?: ServerVariableValues | undefined;
|
|
6
|
+
}>, {
|
|
7
|
+
selected: number;
|
|
8
|
+
}>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
9
|
+
"update:selected": (v: number) => void;
|
|
10
|
+
"update:variable": (name: string, value: string) => void;
|
|
11
|
+
}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToOption<{
|
|
12
|
+
selected?: string | number | undefined;
|
|
13
|
+
servers?: Server[] | undefined;
|
|
14
|
+
variables?: ServerVariableValues | undefined;
|
|
15
|
+
}>, {
|
|
16
|
+
selected: number;
|
|
17
|
+
}>>> & {
|
|
18
|
+
"onUpdate:variable"?: ((name: string, value: string) => any) | undefined;
|
|
19
|
+
"onUpdate:selected"?: ((v: number) => any) | undefined;
|
|
20
|
+
}, {
|
|
21
|
+
selected: string | number;
|
|
22
|
+
}, {}>;
|
|
23
|
+
export default _default;
|
|
24
|
+
type __VLS_WithDefaults<P, D> = {
|
|
25
|
+
[K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
|
|
26
|
+
default: D[K];
|
|
27
|
+
}> : P[K];
|
|
28
|
+
};
|
|
29
|
+
type __VLS_Prettify<T> = {
|
|
30
|
+
[K in keyof T]: T[K];
|
|
31
|
+
} & {};
|
|
32
|
+
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
33
|
+
type __VLS_TypePropsToOption<T> = {
|
|
34
|
+
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
35
|
+
type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
36
|
+
} : {
|
|
37
|
+
type: import('vue').PropType<T[K]>;
|
|
38
|
+
required: true;
|
|
39
|
+
};
|
|
40
|
+
};
|
|
41
|
+
//# sourceMappingURL=ServerForm.vue.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ServerForm.vue.d.ts","sourceRoot":"","sources":["../../../src/features/BaseUrl/ServerForm.vue"],"names":[],"mappings":"AAoHA,OAAO,KAAK,EAAE,MAAM,EAAE,oBAAoB,EAAE,MAAM,SAAS,CAAA;;;;;;;;;;;;;;;;;;;;;;AA8K3D,wBAOG;AAOH,KAAK,kBAAkB,CAAC,CAAC,EAAE,CAAC,IAAI;KAC1B,CAAC,IAAI,MAAM,IAAI,CAAC,CAAC,EAAE,MAAM,CAAC,CAAC,GAAG,CAAC,SAAS,MAAM,CAAC,GAC7C,cAAc,CAAC,CAAC,CAAC,CAAC,CAAC,GAAG;QAAE,OAAO,EAAE,CAAC,CAAC,CAAC,CAAC,CAAA;KAAC,CAAC,GACvC,CAAC,CAAC,CAAC,CAAC;CACP,CAAC;AAEN,KAAK,cAAc,CAAC,CAAC,IAAI;KAAG,CAAC,IAAI,MAAM,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;CAAG,GAAG,EAAE,CAAC;AAExD,KAAK,sBAAsB,CAAC,CAAC,IAAI,CAAC,SAAS,SAAS,GAAG,KAAK,GAAG,CAAC,CAAC;AAC5D,KAAK,uBAAuB,CAAC,CAAC,IAAI;KAChC,CAAC,IAAI,MAAM,CAAC,CAAC,CAAC,GAAG,EAAE,SAAS,IAAI,CAAC,CAAC,EAAE,CAAC,CAAC,GACpC;QAAE,IAAI,EAAE,OAAO,KAAK,EAAE,QAAQ,CAAC,sBAAsB,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAA;KAAE,GAC9D;QAAE,IAAI,EAAE,OAAO,KAAK,EAAE,QAAQ,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;QAAC,QAAQ,EAAE,IAAI,CAAA;KAAE;CACzD,CAAC"}
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
import { defineComponent as S, toRef as I, computed as k, openBlock as c, createElementBlock as u, createElementVNode as t, createVNode as o, withCtx as w, unref as C, createCommentVNode as p, pushScopeId as N, popScopeId as U } from "vue";
|
|
2
|
+
import { ScalarMarkdown as V } from "@scalar/components";
|
|
3
|
+
import B from "./ServerUrl.vue.js";
|
|
4
|
+
import R from "./ServerUrlSelect.vue.js";
|
|
5
|
+
import g from "./ServerVariablesForm.vue.js";
|
|
6
|
+
const y = (r) => (N("data-v-1bd31bc3"), r = r(), U(), r), E = { key: 0 }, F = /* @__PURE__ */ y(() => /* @__PURE__ */ t("span", { class: "server-form-title" }, "Base URL", -1)), L = { class: "server-form" }, M = { class: "server-form-container" }, $ = { class: "server-item" }, j = {
|
|
7
|
+
key: 0,
|
|
8
|
+
muted: ""
|
|
9
|
+
}, q = { class: "description" }, H = /* @__PURE__ */ S({
|
|
10
|
+
__name: "ServerForm",
|
|
11
|
+
props: {
|
|
12
|
+
selected: { default: 0 },
|
|
13
|
+
servers: {},
|
|
14
|
+
variables: {}
|
|
15
|
+
},
|
|
16
|
+
emits: ["update:selected", "update:variable"],
|
|
17
|
+
setup(r, { emit: m }) {
|
|
18
|
+
const i = r, f = m, l = I(Number(i.selected)), b = (e) => {
|
|
19
|
+
const s = parseInt(e, 10);
|
|
20
|
+
f("update:selected", s), l.value = s;
|
|
21
|
+
}, a = k(() => {
|
|
22
|
+
var e;
|
|
23
|
+
return (e = i.servers) == null ? void 0 : e[l.value];
|
|
24
|
+
});
|
|
25
|
+
return (e, s) => {
|
|
26
|
+
var v, d, n;
|
|
27
|
+
return (v = e.servers) != null && v.length ? (c(), u("div", E, [
|
|
28
|
+
F,
|
|
29
|
+
t("div", L, [
|
|
30
|
+
t("div", M, [
|
|
31
|
+
t("div", $, [
|
|
32
|
+
o(R, {
|
|
33
|
+
options: e.servers,
|
|
34
|
+
value: l.value,
|
|
35
|
+
onChange: b
|
|
36
|
+
}, {
|
|
37
|
+
default: w(() => [
|
|
38
|
+
o(B, {
|
|
39
|
+
server: a.value,
|
|
40
|
+
variables: e.variables
|
|
41
|
+
}, null, 8, ["server", "variables"])
|
|
42
|
+
]),
|
|
43
|
+
_: 1
|
|
44
|
+
}, 8, ["options", "value"])
|
|
45
|
+
]),
|
|
46
|
+
o(g, {
|
|
47
|
+
values: e.variables,
|
|
48
|
+
variables: (d = a.value) == null ? void 0 : d.variables,
|
|
49
|
+
"onUpdate:variable": s[0] || (s[0] = (_, h) => e.$emit("update:variable", _, h))
|
|
50
|
+
}, null, 8, ["values", "variables"])
|
|
51
|
+
])
|
|
52
|
+
]),
|
|
53
|
+
(n = a.value) != null && n.description ? (c(), u("div", j, [
|
|
54
|
+
t("div", q, [
|
|
55
|
+
o(C(V), {
|
|
56
|
+
value: a.value.description
|
|
57
|
+
}, null, 8, ["value"])
|
|
58
|
+
])
|
|
59
|
+
])) : p("", !0)
|
|
60
|
+
])) : p("", !0);
|
|
61
|
+
};
|
|
62
|
+
}
|
|
63
|
+
});
|
|
64
|
+
export {
|
|
65
|
+
H as default
|
|
66
|
+
};
|
package/dist/{components/Content/BaseUrl/ServerItem.vue.d.ts → features/BaseUrl/ServerUrl.vue.d.ts}
RENAMED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import type { Server, ServerVariableValues } from './types';
|
|
2
2
|
declare const _default: import("vue").DefineComponent<__VLS_TypePropsToOption<{
|
|
3
|
-
|
|
4
|
-
variables?:
|
|
3
|
+
server?: Server | undefined;
|
|
4
|
+
variables?: ServerVariableValues | undefined;
|
|
5
5
|
}>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_TypePropsToOption<{
|
|
6
|
-
|
|
7
|
-
variables?:
|
|
6
|
+
server?: Server | undefined;
|
|
7
|
+
variables?: ServerVariableValues | undefined;
|
|
8
8
|
}>>>, {}, {}>;
|
|
9
9
|
export default _default;
|
|
10
10
|
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
@@ -16,4 +16,4 @@ type __VLS_TypePropsToOption<T> = {
|
|
|
16
16
|
required: true;
|
|
17
17
|
};
|
|
18
18
|
};
|
|
19
|
-
//# sourceMappingURL=
|
|
19
|
+
//# sourceMappingURL=ServerUrl.vue.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ServerUrl.vue.d.ts","sourceRoot":"","sources":["../../../src/features/BaseUrl/ServerUrl.vue"],"names":[],"mappings":"AA+DA,OAAO,KAAK,EAAE,MAAM,EAAE,oBAAoB,EAAE,MAAM,SAAS,CAAA;;;;;;;;AAuE3D,wBAMG;AAOH,KAAK,sBAAsB,CAAC,CAAC,IAAI,CAAC,SAAS,SAAS,GAAG,KAAK,GAAG,CAAC,CAAC;AAC5D,KAAK,uBAAuB,CAAC,CAAC,IAAI;KAChC,CAAC,IAAI,MAAM,CAAC,CAAC,CAAC,GAAG,EAAE,SAAS,IAAI,CAAC,CAAC,EAAE,CAAC,CAAC,GACpC;QAAE,IAAI,EAAE,OAAO,KAAK,EAAE,QAAQ,CAAC,sBAAsB,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAA;KAAE,GAC9D;QAAE,IAAI,EAAE,OAAO,KAAK,EAAE,QAAQ,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;QAAC,QAAQ,EAAE,IAAI,CAAA;KAAE;CACzD,CAAC"}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { defineComponent as u, computed as i, openBlock as p, createElementBlock as m, createCommentVNode as v } from "vue";
|
|
2
|
+
import { replaceVariables as d } from "@scalar/oas-utils/helpers";
|
|
3
|
+
const f = ["title", "innerHTML"], k = /* @__PURE__ */ u({
|
|
4
|
+
__name: "ServerUrl",
|
|
5
|
+
props: {
|
|
6
|
+
server: {},
|
|
7
|
+
variables: {}
|
|
8
|
+
},
|
|
9
|
+
setup(a) {
|
|
10
|
+
const r = a, c = i(() => {
|
|
11
|
+
var s;
|
|
12
|
+
const t = (((s = r.server) == null ? void 0 : s.url) ?? "").replace(/(<([^>]+)>)/gi, "");
|
|
13
|
+
return d(t, (n) => {
|
|
14
|
+
var o;
|
|
15
|
+
const l = ((o = r.variables) == null ? void 0 : o[n]) ?? "";
|
|
16
|
+
return `<span class="base-url-variable">${l !== "" ? l : `{${n}}`}</span>`;
|
|
17
|
+
});
|
|
18
|
+
});
|
|
19
|
+
return (e, t) => e.server ? (p(), m("a", {
|
|
20
|
+
key: 0,
|
|
21
|
+
class: "base-url",
|
|
22
|
+
title: e.server.description,
|
|
23
|
+
innerHTML: c.value
|
|
24
|
+
}, null, 8, f)) : v("", !0);
|
|
25
|
+
}
|
|
26
|
+
});
|
|
27
|
+
export {
|
|
28
|
+
k as default
|
|
29
|
+
};
|
package/dist/{components/ApiClientModalOld.vue.d.ts → features/BaseUrl/ServerUrlSelect.vue.d.ts}
RENAMED
|
@@ -1,22 +1,16 @@
|
|
|
1
|
-
import type {
|
|
2
|
-
import type { ThemeId } from '@scalar/themes';
|
|
1
|
+
import type { Server } from './types';
|
|
3
2
|
declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__VLS_TypePropsToOption<{
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
proxyUrl?: string | undefined;
|
|
7
|
-
theme?: ThemeId | undefined;
|
|
3
|
+
options: Server[];
|
|
4
|
+
value: number;
|
|
8
5
|
}>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
9
|
-
|
|
6
|
+
change: (v: string) => void;
|
|
10
7
|
}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_TypePropsToOption<{
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
proxyUrl?: string | undefined;
|
|
14
|
-
theme?: ThemeId | undefined;
|
|
8
|
+
options: Server[];
|
|
9
|
+
value: number;
|
|
15
10
|
}>>> & {
|
|
16
|
-
|
|
11
|
+
onChange?: ((v: string) => any) | undefined;
|
|
17
12
|
}, {}, {}>, {
|
|
18
|
-
|
|
19
|
-
"sidebar-start"?(_: {}): any;
|
|
13
|
+
default?(_: {}): any;
|
|
20
14
|
}>;
|
|
21
15
|
export default _default;
|
|
22
16
|
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
@@ -33,4 +27,4 @@ type __VLS_TypePropsToOption<T> = {
|
|
|
33
27
|
required: true;
|
|
34
28
|
};
|
|
35
29
|
};
|
|
36
|
-
//# sourceMappingURL=
|
|
30
|
+
//# sourceMappingURL=ServerUrlSelect.vue.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ServerUrlSelect.vue.d.ts","sourceRoot":"","sources":["../../../src/features/BaseUrl/ServerUrlSelect.vue"],"names":[],"mappings":"AAmFA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,SAAS,CAAA;;;;;;;;;;;;;;AAmIrC,wBAAwG;AAOxG,KAAK,uBAAuB,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IACpC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KAEV,CAAA;CACD,CAAC;AAEN,KAAK,sBAAsB,CAAC,CAAC,IAAI,CAAC,SAAS,SAAS,GAAG,KAAK,GAAG,CAAC,CAAC;AAC5D,KAAK,uBAAuB,CAAC,CAAC,IAAI;KAChC,CAAC,IAAI,MAAM,CAAC,CAAC,CAAC,GAAG,EAAE,SAAS,IAAI,CAAC,CAAC,EAAE,CAAC,CAAC,GACpC;QAAE,IAAI,EAAE,OAAO,KAAK,EAAE,QAAQ,CAAC,sBAAsB,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAA;KAAE,GAC9D;QAAE,IAAI,EAAE,OAAO,KAAK,EAAE,QAAQ,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;QAAC,QAAQ,EAAE,IAAI,CAAA;KAAE;CACzD,CAAC"}
|