@scalar/api-client 2.1.18 → 2.1.19
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 +29 -0
- package/dist/components/AddressBar/AddressBar.vue.d.ts +5 -1
- package/dist/components/AddressBar/AddressBar.vue.d.ts.map +1 -1
- package/dist/components/AddressBar/AddressBar.vue.js +2 -2
- package/dist/components/AddressBar/AddressBar.vue2.js +78 -75
- package/dist/components/AddressBar/AddressBarHistory.vue.js +2 -2
- package/dist/components/AddressBar/AddressBarHistory.vue2.js +8 -8
- package/dist/components/AddressBar/AddressBarServer.vue.d.ts.map +1 -1
- package/dist/components/AddressBar/AddressBarServer.vue.js +6 -6
- package/dist/components/CodeInput/CodeInput.vue.d.ts +6 -2
- package/dist/components/CodeInput/CodeInput.vue.d.ts.map +1 -1
- package/dist/components/CodeInput/CodeInput.vue.js +2 -2
- package/dist/components/CodeInput/CodeInput.vue2.js +57 -49
- package/dist/components/CommandPalette/CommandPaletteCollection.vue.d.ts +1 -1
- package/dist/components/CommandPalette/CommandPaletteExample.vue.d.ts +1 -1
- package/dist/components/CommandPalette/CommandPaletteImport.vue.d.ts +1 -1
- package/dist/components/CommandPalette/CommandPaletteRequest.vue.d.ts +1 -1
- package/dist/components/CommandPalette/CommandPaletteServer.vue.d.ts +1 -1
- package/dist/components/CommandPalette/CommandPaletteTag.vue.d.ts +1 -1
- package/dist/components/CommandPalette/CommandPaletteWorkspace.vue.d.ts +1 -1
- package/dist/components/CommandPalette/TheCommandPalette.vue.d.ts +7 -7
- package/dist/components/CommandPalette/TheCommandPalette.vue.d.ts.map +1 -1
- package/dist/components/CommandPalette/TheCommandPalette.vue.js +4 -4
- package/dist/components/CommandPalette/TheCommandPalette.vue2.js +22 -22
- package/dist/components/ContextBar.vue.d.ts.map +1 -1
- package/dist/components/ContextBar.vue.js +2 -2
- package/dist/components/DataTable/DataTableCheckbox.vue.d.ts +19 -3
- package/dist/components/DataTable/DataTableCheckbox.vue.d.ts.map +1 -1
- package/dist/components/DataTable/DataTableCheckbox.vue.js +27 -14
- package/dist/components/EnvironmentSelector/EnvironmentSelector.vue.d.ts.map +1 -1
- package/dist/components/EnvironmentSelector/EnvironmentSelector.vue.js +8 -8
- package/dist/components/HttpMethod/HttpMethod.vue.d.ts +2 -2
- package/dist/components/ImportCurl/ImportCurlModal.vue.d.ts +39 -0
- package/dist/components/ImportCurl/ImportCurlModal.vue.d.ts.map +1 -0
- package/dist/components/ImportCurl/ImportCurlModal.vue.js +7 -0
- package/dist/components/ImportCurl/ImportCurlModal.vue2.js +88 -0
- package/dist/components/SideNav/SideHelp.vue.d.ts.map +1 -1
- package/dist/components/SideNav/SideNav.vue.d.ts.map +1 -1
- package/dist/components/SideNav/SideNav.vue.js +1 -1
- package/dist/components/SideNav/SideNav.vue2.js +37 -26
- package/dist/components/SideNav/SideNavLink.vue.d.ts +2 -2
- package/dist/components/SideNav/SideNavLink.vue.d.ts.map +1 -1
- package/dist/components/SideNav/SideNavLink.vue.js +10 -11
- package/dist/components/Sidebar/Actions/DeleteSidebarListElement.vue.d.ts +1 -1
- package/dist/components/Sidebar/Sidebar.vue.d.ts.map +1 -1
- package/dist/components/Sidebar/Sidebar.vue.js +1 -1
- package/dist/components/Sidebar/Sidebar.vue2.js +1 -1
- package/dist/components/Sidebar/SidebarButton.vue.d.ts.map +1 -1
- package/dist/components/Sidebar/SidebarButton.vue.js +1 -1
- package/dist/components/Sidebar/SidebarListElement.vue.d.ts +24 -3
- package/dist/components/Sidebar/SidebarListElement.vue.d.ts.map +1 -1
- package/dist/components/Sidebar/SidebarListElement.vue.js +2 -2
- package/dist/components/Sidebar/SidebarListElement.vue2.js +26 -22
- package/dist/components/Sidebar/SidebarListElementActions.vue.d.ts +4 -0
- package/dist/components/Sidebar/SidebarListElementActions.vue.d.ts.map +1 -1
- package/dist/components/Sidebar/SidebarListElementActions.vue.js +35 -32
- package/dist/components/TopNav/TopNav.vue.d.ts.map +1 -1
- package/dist/components/TopNav/TopNav.vue.js +1 -1
- package/dist/components/TopNav/TopNav.vue2.js +1 -1
- package/dist/components/ViewLayout/ViewLayout.vue.d.ts.map +1 -1
- package/dist/components/ViewLayout/ViewLayout.vue.js +7 -7
- package/dist/components/ViewLayout/ViewLayoutContent.vue.d.ts.map +1 -1
- package/dist/components/ViewLayout/ViewLayoutContent.vue.js +1 -1
- package/dist/components/ViewLayout/ViewLayoutSection.vue.d.ts.map +1 -1
- package/dist/components/ViewLayout/ViewLayoutSection.vue.js +11 -11
- package/dist/constants.d.ts +4 -0
- package/dist/constants.d.ts.map +1 -1
- package/dist/constants.js +2 -1
- package/dist/hooks/useDarkModeState.d.ts +4 -3
- package/dist/hooks/useDarkModeState.d.ts.map +1 -1
- package/dist/hooks/useDarkModeState.js +36 -21
- package/dist/layouts/App/ApiClientApp.vue.d.ts.map +1 -1
- package/dist/layouts/App/ApiClientApp.vue.js +34 -38
- package/dist/layouts/App/create-api-client-app.d.ts +35 -32
- package/dist/layouts/App/create-api-client-app.d.ts.map +1 -1
- package/dist/layouts/Modal/ApiClientModal.vue.d.ts.map +1 -1
- package/dist/layouts/Modal/ApiClientModal.vue.js +2 -2
- package/dist/layouts/Modal/ApiClientModal.vue2.js +6 -6
- package/dist/layouts/Modal/create-api-client-modal.d.ts +70 -64
- package/dist/layouts/Modal/create-api-client-modal.d.ts.map +1 -1
- package/dist/layouts/Web/ApiClientWeb.vue.d.ts.map +1 -1
- package/dist/layouts/Web/ApiClientWeb.vue.js +35 -39
- package/dist/layouts/Web/create-api-client-web.d.ts +35 -32
- package/dist/layouts/Web/create-api-client-web.d.ts.map +1 -1
- package/dist/libs/create-client.d.ts +35 -32
- package/dist/libs/create-client.d.ts.map +1 -1
- package/dist/libs/event-busses/hot-keys-bus.d.ts +1 -1
- package/dist/libs/importers/curl.d.ts +3 -0
- package/dist/libs/importers/curl.d.ts.map +1 -0
- package/dist/libs/importers/curl.js +61 -0
- package/dist/libs/importers/index.d.ts +2 -0
- package/dist/libs/importers/index.d.ts.map +1 -0
- package/dist/libs/importers/index.js +4 -0
- package/dist/libs/index.d.ts +1 -0
- package/dist/libs/index.d.ts.map +1 -1
- package/dist/libs/index.js +23 -21
- package/dist/libs/parse-curl.d.ts +12 -0
- package/dist/libs/parse-curl.d.ts.map +1 -0
- package/dist/libs/parse-curl.js +70 -0
- package/dist/router.d.ts +2 -1
- package/dist/router.d.ts.map +1 -1
- package/dist/router.js +33 -24
- package/dist/store/collections.d.ts +4 -4
- package/dist/store/cookies.d.ts +4 -4
- package/dist/store/environment.d.ts +4 -4
- package/dist/store/request-example.d.ts +4 -4
- package/dist/store/requests.d.ts +4 -4
- package/dist/store/router-params.d.ts +1 -0
- package/dist/store/router-params.d.ts.map +1 -1
- package/dist/store/router-params.js +2 -1
- package/dist/store/servers.d.ts +4 -4
- package/dist/store/store.d.ts +70 -64
- package/dist/store/store.d.ts.map +1 -1
- package/dist/store/store.js +126 -119
- package/dist/store/tags.d.ts +4 -4
- package/dist/store/workspace.d.ts +4 -4
- package/dist/style.css +1 -1
- package/dist/views/Cookies/Cookies.vue.d.ts.map +1 -1
- package/dist/views/Cookies/Cookies.vue2.js +18 -18
- package/dist/views/Environment/EnvironmentVariableDropdown.vue.d.ts.map +1 -1
- package/dist/views/Environment/EnvironmentVariableDropdown.vue.js +9 -9
- package/dist/views/Request/Request.vue.d.ts.map +1 -1
- package/dist/views/Request/Request.vue.js +1 -1
- package/dist/views/Request/Request.vue2.js +146 -96
- package/dist/views/Request/RequestSection/RequestAuth/RequestAuth.vue.d.ts.map +1 -1
- package/dist/views/Request/RequestSection/RequestAuth/RequestAuth.vue.js +2 -2
- package/dist/views/Request/RequestSection/RequestAuth/RequestAuth.vue2.js +1 -1
- package/dist/views/Request/RequestSection/RequestTableTooltip.vue.d.ts.map +1 -1
- package/dist/views/Request/RequestSection/RequestTableTooltip.vue.js +4 -4
- package/dist/views/Request/RequestSidebar.vue.d.ts.map +1 -1
- package/dist/views/Request/RequestSidebar.vue.js +3 -3
- package/dist/views/Request/RequestSidebar.vue2.js +2 -2
- package/dist/views/Request/RequestSidebarItem.vue.d.ts.map +1 -1
- package/dist/views/Request/RequestSidebarItem.vue.js +1 -1
- package/dist/views/Request/RequestSidebarItem.vue2.js +49 -49
- package/dist/views/Request/RequestSubpageHeader.vue.d.ts +2 -0
- package/dist/views/Request/RequestSubpageHeader.vue.d.ts.map +1 -1
- package/dist/views/Request/RequestSubpageHeader.vue.js +4 -4
- package/dist/views/Request/RequestSubpageHeader.vue2.js +17 -15
- package/dist/views/Request/ResponseSection/ResponseEmpty.vue2.js +1 -1
- package/dist/views/Request/ResponseSection/ResponseLoadingOverlay.vue.d.ts.map +1 -1
- package/dist/views/Request/ResponseSection/ResponseLoadingOverlay.vue.js +1 -1
- package/dist/views/Request/ResponseSection/ResponseLoadingOverlay.vue2.js +1 -1
- package/dist/views/Settings/Settings.vue.d.ts +4 -0
- package/dist/views/Settings/Settings.vue.d.ts.map +1 -0
- package/dist/views/Settings/Settings.vue.js +4 -0
- package/dist/views/Settings/Settings.vue2.js +59 -0
- package/dist/{components/DarkModeToggle/DarkModeIconToggle.vue.d.ts → views/Settings/SettingsGeneral.vue.d.ts} +1 -1
- package/dist/views/Settings/SettingsGeneral.vue.d.ts.map +1 -0
- package/dist/views/Settings/SettingsGeneral.vue.js +124 -0
- package/dist/views/Settings/SettingsGeneral.vue2.js +4 -0
- package/dist/views/Settings/SettingsGeneralMode.vue.d.ts +3 -0
- package/dist/views/Settings/SettingsGeneralMode.vue.d.ts.map +1 -0
- package/dist/views/Settings/SettingsGeneralMode.vue.js +78 -0
- package/dist/views/Settings/SettingsGeneralMode.vue2.js +4 -0
- package/package.json +60 -36
- package/dist/components/DarkModeToggle/DarkModeIconToggle.vue.d.ts.map +0 -1
- package/dist/components/DarkModeToggle/DarkModeIconToggle.vue.js +0 -31
- package/dist/components/DarkModeToggle/DarkModeIconToggle.vue2.js +0 -4
- package/dist/components/DarkModeToggle/index.d.ts +0 -2
- package/dist/components/DarkModeToggle/index.d.ts.map +0 -1
- package/dist/components/DarkModeToggle/index.js +0 -4
- package/dist/components/ScreenReader.vue.js +0 -7
- package/dist/components/ScreenReader.vue2.js +0 -18
|
@@ -2,8 +2,8 @@ declare const _default: import("vue").DefineComponent<{}, {}, {}, {}, {}, import
|
|
|
2
2
|
close: () => void;
|
|
3
3
|
back: (e: KeyboardEvent) => void;
|
|
4
4
|
}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{}>> & {
|
|
5
|
-
onBack?: ((e: KeyboardEvent) => any) | undefined;
|
|
6
5
|
onClose?: (() => any) | undefined;
|
|
6
|
+
onBack?: ((e: KeyboardEvent) => any) | undefined;
|
|
7
7
|
}, {}, {}>;
|
|
8
8
|
export default _default;
|
|
9
9
|
//# sourceMappingURL=CommandPaletteCollection.vue.d.ts.map
|
|
@@ -12,8 +12,8 @@ declare const _default: import("vue").DefineComponent<__VLS_TypePropsToOption<{
|
|
|
12
12
|
itemUid: string;
|
|
13
13
|
};
|
|
14
14
|
}>>> & {
|
|
15
|
-
onBack?: ((e: KeyboardEvent) => any) | undefined;
|
|
16
15
|
onClose?: (() => any) | undefined;
|
|
16
|
+
onBack?: ((e: KeyboardEvent) => any) | undefined;
|
|
17
17
|
}, {}, {}>;
|
|
18
18
|
export default _default;
|
|
19
19
|
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
@@ -2,8 +2,8 @@ declare const _default: import("vue").DefineComponent<{}, {}, {}, {}, {}, import
|
|
|
2
2
|
close: () => void;
|
|
3
3
|
back: (e: KeyboardEvent) => void;
|
|
4
4
|
}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{}>> & {
|
|
5
|
-
onBack?: ((e: KeyboardEvent) => any) | undefined;
|
|
6
5
|
onClose?: (() => any) | undefined;
|
|
6
|
+
onBack?: ((e: KeyboardEvent) => any) | undefined;
|
|
7
7
|
}, {}, {}>;
|
|
8
8
|
export default _default;
|
|
9
9
|
//# sourceMappingURL=CommandPaletteImport.vue.d.ts.map
|
|
@@ -12,8 +12,8 @@ declare const _default: import("vue").DefineComponent<__VLS_TypePropsToOption<{
|
|
|
12
12
|
parentUid: string;
|
|
13
13
|
};
|
|
14
14
|
}>>> & {
|
|
15
|
-
onBack?: ((e: KeyboardEvent) => any) | undefined;
|
|
16
15
|
onClose?: (() => any) | undefined;
|
|
16
|
+
onBack?: ((e: KeyboardEvent) => any) | undefined;
|
|
17
17
|
}, {}, {}>;
|
|
18
18
|
export default _default;
|
|
19
19
|
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
@@ -2,8 +2,8 @@ declare const _default: import("vue").DefineComponent<{}, {}, {}, {}, {}, import
|
|
|
2
2
|
close: () => void;
|
|
3
3
|
back: (e: KeyboardEvent) => void;
|
|
4
4
|
}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{}>> & {
|
|
5
|
-
onBack?: ((e: KeyboardEvent) => any) | undefined;
|
|
6
5
|
onClose?: (() => any) | undefined;
|
|
6
|
+
onBack?: ((e: KeyboardEvent) => any) | undefined;
|
|
7
7
|
}, {}, {}>;
|
|
8
8
|
export default _default;
|
|
9
9
|
//# sourceMappingURL=CommandPaletteServer.vue.d.ts.map
|
|
@@ -2,8 +2,8 @@ declare const _default: import("vue").DefineComponent<{}, {}, {}, {}, {}, import
|
|
|
2
2
|
close: () => void;
|
|
3
3
|
back: (e: KeyboardEvent) => void;
|
|
4
4
|
}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{}>> & {
|
|
5
|
-
onBack?: ((e: KeyboardEvent) => any) | undefined;
|
|
6
5
|
onClose?: (() => any) | undefined;
|
|
6
|
+
onBack?: ((e: KeyboardEvent) => any) | undefined;
|
|
7
7
|
}, {}, {}>;
|
|
8
8
|
export default _default;
|
|
9
9
|
//# sourceMappingURL=CommandPaletteTag.vue.d.ts.map
|
|
@@ -2,8 +2,8 @@ declare const _default: import("vue").DefineComponent<{}, {}, {}, {}, {}, import
|
|
|
2
2
|
close: () => void;
|
|
3
3
|
back: (e: KeyboardEvent) => void;
|
|
4
4
|
}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{}>> & {
|
|
5
|
-
onBack?: ((e: KeyboardEvent) => any) | undefined;
|
|
6
5
|
onClose?: (() => any) | undefined;
|
|
6
|
+
onBack?: ((e: KeyboardEvent) => any) | undefined;
|
|
7
7
|
}, {}, {}>;
|
|
8
8
|
export default _default;
|
|
9
9
|
//# sourceMappingURL=CommandPaletteWorkspace.vue.d.ts.map
|
|
@@ -10,8 +10,8 @@ export declare const PaletteComponents: {
|
|
|
10
10
|
close: () => void;
|
|
11
11
|
back: (e: KeyboardEvent) => void;
|
|
12
12
|
}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{}>> & {
|
|
13
|
-
onBack?: ((e: KeyboardEvent) => any) | undefined;
|
|
14
13
|
onClose?: (() => any) | undefined;
|
|
14
|
+
onBack?: ((e: KeyboardEvent) => any) | undefined;
|
|
15
15
|
}, {}, {}>;
|
|
16
16
|
readonly 'Create Request': import("vue").DefineComponent<{
|
|
17
17
|
metaData: {
|
|
@@ -31,36 +31,36 @@ export declare const PaletteComponents: {
|
|
|
31
31
|
}>;
|
|
32
32
|
};
|
|
33
33
|
}>> & {
|
|
34
|
-
onBack?: ((e: KeyboardEvent) => any) | undefined;
|
|
35
34
|
onClose?: (() => any) | undefined;
|
|
35
|
+
onBack?: ((e: KeyboardEvent) => any) | undefined;
|
|
36
36
|
}, {}, {}>;
|
|
37
37
|
readonly 'Create Workspace': import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
38
38
|
close: () => void;
|
|
39
39
|
back: (e: KeyboardEvent) => void;
|
|
40
40
|
}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{}>> & {
|
|
41
|
-
onBack?: ((e: KeyboardEvent) => any) | undefined;
|
|
42
41
|
onClose?: (() => any) | undefined;
|
|
42
|
+
onBack?: ((e: KeyboardEvent) => any) | undefined;
|
|
43
43
|
}, {}, {}>;
|
|
44
44
|
readonly 'Add Tag': import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
45
45
|
close: () => void;
|
|
46
46
|
back: (e: KeyboardEvent) => void;
|
|
47
47
|
}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{}>> & {
|
|
48
|
-
onBack?: ((e: KeyboardEvent) => any) | undefined;
|
|
49
48
|
onClose?: (() => any) | undefined;
|
|
49
|
+
onBack?: ((e: KeyboardEvent) => any) | undefined;
|
|
50
50
|
}, {}, {}>;
|
|
51
51
|
readonly 'Add Server': import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
52
52
|
close: () => void;
|
|
53
53
|
back: (e: KeyboardEvent) => void;
|
|
54
54
|
}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{}>> & {
|
|
55
|
-
onBack?: ((e: KeyboardEvent) => any) | undefined;
|
|
56
55
|
onClose?: (() => any) | undefined;
|
|
56
|
+
onBack?: ((e: KeyboardEvent) => any) | undefined;
|
|
57
57
|
}, {}, {}>;
|
|
58
58
|
readonly 'Create Collection': import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
59
59
|
close: () => void;
|
|
60
60
|
back: (e: KeyboardEvent) => void;
|
|
61
61
|
}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{}>> & {
|
|
62
|
-
onBack?: ((e: KeyboardEvent) => any) | undefined;
|
|
63
62
|
onClose?: (() => any) | undefined;
|
|
63
|
+
onBack?: ((e: KeyboardEvent) => any) | undefined;
|
|
64
64
|
}, {}, {}>;
|
|
65
65
|
readonly 'Add Example': import("vue").DefineComponent<{
|
|
66
66
|
metaData: {
|
|
@@ -78,8 +78,8 @@ export declare const PaletteComponents: {
|
|
|
78
78
|
}>;
|
|
79
79
|
};
|
|
80
80
|
}>> & {
|
|
81
|
-
onBack?: ((e: KeyboardEvent) => any) | undefined;
|
|
82
81
|
onClose?: (() => any) | undefined;
|
|
82
|
+
onBack?: ((e: KeyboardEvent) => any) | undefined;
|
|
83
83
|
}, {}, {}>;
|
|
84
84
|
};
|
|
85
85
|
/** Infer the types from the commands */
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TheCommandPalette.vue.d.ts","sourceRoot":"","sources":["../../../src/components/CommandPalette/TheCommandPalette.vue"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"TheCommandPalette.vue.d.ts","sourceRoot":"","sources":["../../../src/components/CommandPalette/TheCommandPalette.vue"],"names":[],"mappings":"AAiYA;;;;GAIG;;AACH,wBAybI;AAEJ,eAAO,MAAM,iBAAiB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAQpB,CAAA;AAEV,yCAAyC;AACzC,MAAM,MAAM,YAAY,GAAG,MAAM,OAAO,iBAAiB,CACxD"}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import o from "./TheCommandPalette.vue2.js";
|
|
2
|
-
import { PaletteComponents as
|
|
2
|
+
import { PaletteComponents as f } from "./TheCommandPalette.vue2.js";
|
|
3
3
|
/* empty css */
|
|
4
4
|
import t from "../../_virtual/_plugin-vue_export-helper.js";
|
|
5
|
-
const
|
|
5
|
+
const r = /* @__PURE__ */ t(o, [["__scopeId", "data-v-3d5a686d"]]);
|
|
6
6
|
export {
|
|
7
|
-
|
|
8
|
-
|
|
7
|
+
f as PaletteComponents,
|
|
8
|
+
r as default
|
|
9
9
|
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as F, ref as u, computed as
|
|
1
|
+
import { defineComponent as F, ref as u, computed as I, watch as U, onMounted as G, onBeforeUnmount as Q, openBlock as a, createElementBlock as r, Fragment as d, withDirectives as h, createElementVNode as m, vShow as w, unref as f, createVNode as y, withKeys as g, withModifiers as $, vModelText as j, renderList as P, toDisplayString as K, normalizeClass as J, createTextVNode as O, createCommentVNode as X, createBlock as Y, resolveDynamicComponent as Z, mergeProps as ee, nextTick as M } from "vue";
|
|
2
2
|
import { useModal as oe, ScalarIcon as S } from "@scalar/components";
|
|
3
3
|
import { useRouter as te } from "vue-router";
|
|
4
4
|
import ne from "./CommandPaletteCollection.vue.js";
|
|
@@ -8,10 +8,10 @@ import se from "./CommandPaletteRequest.vue.js";
|
|
|
8
8
|
import re from "./CommandPaletteServer.vue.js";
|
|
9
9
|
import me from "./CommandPaletteTag.vue.js";
|
|
10
10
|
import ce from "./CommandPaletteWorkspace.vue.js";
|
|
11
|
-
import { commandPaletteBus as
|
|
11
|
+
import { commandPaletteBus as T } from "../../libs/event-busses/command-palette-bus.js";
|
|
12
12
|
import { useWorkspace as ie } from "../../store/store.js";
|
|
13
|
-
import { hotKeyBus as
|
|
14
|
-
const ue = { class: "commandmenu custom-scroll" }, de = { class: "bg-b-2 flex items-center rounded-md mb-2.5 pl-2 focus-within:bg-b-1 focus-within:shadow-border" }, fe = { for: "commandmenu" }, pe = ["onKeydown"], ve = ["onClick"], Ce = {
|
|
13
|
+
import { hotKeyBus as V } from "../../libs/event-busses/hot-keys-bus.js";
|
|
14
|
+
const ue = { class: "commandmenu z-overlay custom-scroll" }, de = { class: "bg-b-2 flex items-center rounded-md mb-2.5 pl-2 focus-within:bg-b-1 focus-within:shadow-border" }, fe = { for: "commandmenu" }, pe = ["onKeydown"], ve = ["onClick"], Ce = {
|
|
15
15
|
key: 0,
|
|
16
16
|
class: "text-c-3 text-center text-sm p-2 pt-3"
|
|
17
17
|
}, he = {
|
|
@@ -24,7 +24,7 @@ const ue = { class: "commandmenu custom-scroll" }, de = { class: "bg-b-2 flex it
|
|
|
24
24
|
"Add Server": re,
|
|
25
25
|
"Create Collection": ne,
|
|
26
26
|
"Add Example": ae
|
|
27
|
-
},
|
|
27
|
+
}, Ee = /* @__PURE__ */ F({
|
|
28
28
|
...he,
|
|
29
29
|
setup(be) {
|
|
30
30
|
const A = [
|
|
@@ -76,7 +76,7 @@ const ue = { class: "commandmenu custom-scroll" }, de = { class: "bg-b-2 flex it
|
|
|
76
76
|
}
|
|
77
77
|
]
|
|
78
78
|
}
|
|
79
|
-
], c = oe(), { push:
|
|
79
|
+
], c = oe(), { push: W } = te(), { activeWorkspace: N } = ie(), k = u(), l = u(""), s = u(null), i = u(-1), D = u([]), p = I(
|
|
80
80
|
() => A.reduce((e, o) => {
|
|
81
81
|
const t = o.commands.filter(
|
|
82
82
|
(n) => n.name.toLowerCase().includes(l.value.toLowerCase())
|
|
@@ -86,17 +86,17 @@ const ue = { class: "commandmenu custom-scroll" }, de = { class: "bg-b-2 flex it
|
|
|
86
86
|
), v = () => {
|
|
87
87
|
c.hide(), l.value = "", s.value = null, i.value = -1;
|
|
88
88
|
}, H = (e) => {
|
|
89
|
-
l.value !== "" && (e == null || e.preventDefault()), s.value = null,
|
|
89
|
+
l.value !== "" && (e == null || e.preventDefault()), s.value = null, M(() => {
|
|
90
90
|
var o;
|
|
91
91
|
return (o = b.value) == null ? void 0 : o.focus();
|
|
92
92
|
});
|
|
93
93
|
}, L = (e) => {
|
|
94
|
-
"path" in e ? (
|
|
94
|
+
"path" in e ? (W(`/workspace/${N.value.uid}${e.path}`), v()) : s.value = e.name;
|
|
95
95
|
}, b = u(), R = ({
|
|
96
96
|
commandName: e,
|
|
97
97
|
metaData: o
|
|
98
98
|
} = {}) => {
|
|
99
|
-
s.value = e ?? null, k.value = o, c.show(),
|
|
99
|
+
s.value = e ?? null, k.value = o, c.show(), M(() => {
|
|
100
100
|
var t;
|
|
101
101
|
return (t = b.value) == null ? void 0 : t.focus();
|
|
102
102
|
});
|
|
@@ -113,20 +113,20 @@ const ue = { class: "commandmenu custom-scroll" }, de = { class: "bg-b-2 flex it
|
|
|
113
113
|
behavior: "smooth",
|
|
114
114
|
block: "nearest"
|
|
115
115
|
});
|
|
116
|
-
}, x =
|
|
116
|
+
}, x = I(
|
|
117
117
|
() => p.value[i.value]
|
|
118
118
|
), q = (e) => {
|
|
119
119
|
!x.value || s.value || (e.preventDefault(), e.stopPropagation(), L(x.value));
|
|
120
|
-
},
|
|
120
|
+
}, z = (e) => {
|
|
121
121
|
c.open && e.closeModal && v();
|
|
122
122
|
};
|
|
123
123
|
return G(() => {
|
|
124
|
-
|
|
124
|
+
T.on(R), V.on(z);
|
|
125
125
|
}), Q(() => {
|
|
126
|
-
|
|
126
|
+
T.off(R), V.off(z);
|
|
127
127
|
}), (e, o) => (a(), r(d, null, [
|
|
128
128
|
h(m("div", {
|
|
129
|
-
class: "commandmenu-clickout",
|
|
129
|
+
class: "commandmenu-clickout z-overlay",
|
|
130
130
|
onClick: o[0] || (o[0] = (t) => v())
|
|
131
131
|
}, null, 512), [
|
|
132
132
|
[w, f(c).open]
|
|
@@ -134,7 +134,7 @@ const ue = { class: "commandmenu custom-scroll" }, de = { class: "bg-b-2 flex it
|
|
|
134
134
|
h(m("div", ue, [
|
|
135
135
|
s.value ? (a(), r(d, { key: 1 }, [
|
|
136
136
|
m("button", {
|
|
137
|
-
class: "absolute p-0.75 hover:bg-b-3 rounded text-c-3 active:text-c-1 mr-1.5 my-1.5 z-
|
|
137
|
+
class: "absolute p-0.75 hover:bg-b-3 rounded text-c-3 active:text-c-1 mr-1.5 my-1.5 z-1",
|
|
138
138
|
type: "button",
|
|
139
139
|
onClick: o[4] || (o[4] = (t) => s.value = null)
|
|
140
140
|
}, [
|
|
@@ -177,10 +177,10 @@ const ue = { class: "commandmenu custom-scroll" }, de = { class: "bg-b-2 flex it
|
|
|
177
177
|
[j, l.value]
|
|
178
178
|
])
|
|
179
179
|
]),
|
|
180
|
-
(a(), r(d, null,
|
|
180
|
+
(a(), r(d, null, P(A, (t) => (a(), r(d, {
|
|
181
181
|
key: t.label
|
|
182
182
|
}, [
|
|
183
|
-
h(m("div", { class: "text-c-3 font-medium text-xs px-2 mb-1 mt-2" },
|
|
183
|
+
h(m("div", { class: "text-c-3 font-medium text-xs px-2 mb-1 mt-2" }, K(t.label), 513), [
|
|
184
184
|
[
|
|
185
185
|
w,
|
|
186
186
|
t.commands.filter(
|
|
@@ -188,10 +188,10 @@ const ue = { class: "commandmenu custom-scroll" }, de = { class: "bg-b-2 flex it
|
|
|
188
188
|
).length > 0
|
|
189
189
|
]
|
|
190
190
|
]),
|
|
191
|
-
(a(!0), r(d, null,
|
|
191
|
+
(a(!0), r(d, null, P(t.commands.filter(
|
|
192
192
|
(n) => n.name.toLowerCase().includes(l.value.toLowerCase())
|
|
193
193
|
), (n, C) => {
|
|
194
|
-
var
|
|
194
|
+
var E;
|
|
195
195
|
return a(), r("div", {
|
|
196
196
|
key: n.name,
|
|
197
197
|
ref_for: !0,
|
|
@@ -199,7 +199,7 @@ const ue = { class: "commandmenu custom-scroll" }, de = { class: "bg-b-2 flex it
|
|
|
199
199
|
_ && (D.value[C] = _);
|
|
200
200
|
},
|
|
201
201
|
class: J(["commandmenu-item text-sm flex items-center py-1.5 px-2 rounded hover:bg-b-2 cursor-pointer", {
|
|
202
|
-
"bg-b-2": n.name === ((
|
|
202
|
+
"bg-b-2": n.name === ((E = x.value) == null ? void 0 : E.name)
|
|
203
203
|
}]),
|
|
204
204
|
onClick: (_) => L(n)
|
|
205
205
|
}, [
|
|
@@ -209,7 +209,7 @@ const ue = { class: "commandmenu custom-scroll" }, de = { class: "bg-b-2 flex it
|
|
|
209
209
|
size: "md",
|
|
210
210
|
thickness: "1.5"
|
|
211
211
|
}, null, 8, ["icon"]),
|
|
212
|
-
O(" " +
|
|
212
|
+
O(" " + K(n.name), 1)
|
|
213
213
|
], 10, ve);
|
|
214
214
|
}), 128))
|
|
215
215
|
], 64))), 64)),
|
|
@@ -223,5 +223,5 @@ const ue = { class: "commandmenu custom-scroll" }, de = { class: "bg-b-2 flex it
|
|
|
223
223
|
});
|
|
224
224
|
export {
|
|
225
225
|
ke as PaletteComponents,
|
|
226
|
-
|
|
226
|
+
Ee as default
|
|
227
227
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ContextBar.vue.d.ts","sourceRoot":"","sources":["../../src/components/ContextBar.vue"],"names":[],"mappings":";
|
|
1
|
+
{"version":3,"file":"ContextBar.vue.d.ts","sourceRoot":"","sources":["../../src/components/ContextBar.vue"],"names":[],"mappings":";cA0HY,MAAM,EAAE;mBACH,MAAM;;;;cADX,MAAM,EAAE;mBACH,MAAM;;;;AAqIvB,wBAOG;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"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import o from "./ContextBar.vue2.js";
|
|
2
2
|
/* empty css */
|
|
3
3
|
import t from "../_virtual/_plugin-vue_export-helper.js";
|
|
4
|
-
const
|
|
4
|
+
const p = /* @__PURE__ */ t(o, [["__scopeId", "data-v-10366d6c"]]);
|
|
5
5
|
export {
|
|
6
|
-
|
|
6
|
+
p as default
|
|
7
7
|
};
|
|
@@ -1,15 +1,31 @@
|
|
|
1
|
-
declare const _default: import("vue").DefineComponent<__VLS_TypePropsToOption<{
|
|
1
|
+
declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToOption<{
|
|
2
2
|
modelValue: boolean;
|
|
3
3
|
disabled?: boolean;
|
|
4
|
+
align?: "left" | "center";
|
|
5
|
+
}>, {
|
|
6
|
+
align: string;
|
|
4
7
|
}>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
5
8
|
"update:modelValue": (v: boolean) => void;
|
|
6
|
-
}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_TypePropsToOption<{
|
|
9
|
+
}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToOption<{
|
|
7
10
|
modelValue: boolean;
|
|
8
11
|
disabled?: boolean;
|
|
12
|
+
align?: "left" | "center";
|
|
13
|
+
}>, {
|
|
14
|
+
align: string;
|
|
9
15
|
}>>> & {
|
|
10
16
|
"onUpdate:modelValue"?: ((v: boolean) => any) | undefined;
|
|
11
|
-
}, {
|
|
17
|
+
}, {
|
|
18
|
+
align: "left" | "center";
|
|
19
|
+
}, {}>;
|
|
12
20
|
export default _default;
|
|
21
|
+
type __VLS_WithDefaults<P, D> = {
|
|
22
|
+
[K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
|
|
23
|
+
default: D[K];
|
|
24
|
+
}> : P[K];
|
|
25
|
+
};
|
|
26
|
+
type __VLS_Prettify<T> = {
|
|
27
|
+
[K in keyof T]: T[K];
|
|
28
|
+
} & {};
|
|
13
29
|
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
14
30
|
type __VLS_TypePropsToOption<T> = {
|
|
15
31
|
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DataTableCheckbox.vue.d.ts","sourceRoot":"","sources":["../../../src/components/DataTable/DataTableCheckbox.vue"],"names":[],"mappings":";
|
|
1
|
+
{"version":3,"file":"DataTableCheckbox.vue.d.ts","sourceRoot":"","sources":["../../../src/components/DataTable/DataTableCheckbox.vue"],"names":[],"mappings":";gBA0DgB,OAAO;eACR,OAAO;YACV,MAAM,GAAG,QAAQ;;;;;;gBAFb,OAAO;eACR,OAAO;YACV,MAAM,GAAG,QAAQ;;;;;;WAAjB,MAAM,GAAG,QAAQ;;AAoG7B,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"}
|
|
@@ -1,36 +1,49 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import { ScalarIcon as
|
|
3
|
-
import
|
|
4
|
-
|
|
1
|
+
import { defineComponent as n, openBlock as s, createBlock as c, withCtx as i, createElementVNode as t, normalizeClass as d, unref as r, createVNode as f } from "vue";
|
|
2
|
+
import { ScalarIcon as p } from "@scalar/components";
|
|
3
|
+
import { cva as b } from "cva";
|
|
4
|
+
import m from "./DataTableCell.vue.js";
|
|
5
|
+
const u = ["checked", "disabled"], v = /* @__PURE__ */ n({
|
|
5
6
|
__name: "DataTableCheckbox",
|
|
6
7
|
props: {
|
|
7
8
|
modelValue: { type: Boolean },
|
|
8
|
-
disabled: { type: Boolean }
|
|
9
|
+
disabled: { type: Boolean },
|
|
10
|
+
align: { default: "center" }
|
|
9
11
|
},
|
|
10
12
|
emits: ["update:modelValue"],
|
|
11
|
-
setup(
|
|
12
|
-
|
|
13
|
-
|
|
13
|
+
setup(h) {
|
|
14
|
+
const a = b({
|
|
15
|
+
base: "w-8 h-8 flex items-center justify-center text-border peer-checked:text-c-2 pointer-events-none absolute before:absolute before:opacity-0 group-hover/cell:before:opacity-100 before:border before:rounded before:w-9/12 before:aspect-square before:top-1/2 before:left-1/2 before:transform before:-translate-x-1/2 before:-translate-y-1/2 before:border-[1px]",
|
|
16
|
+
variants: {
|
|
17
|
+
align: {
|
|
18
|
+
left: "left-0",
|
|
19
|
+
center: "centered"
|
|
20
|
+
}
|
|
21
|
+
}
|
|
22
|
+
});
|
|
23
|
+
return (e, o) => (s(), c(m, { class: "group/cell relative flex min-w-8" }, {
|
|
24
|
+
default: i(() => [
|
|
14
25
|
t("input", {
|
|
15
26
|
checked: e.modelValue,
|
|
16
27
|
class: "peer absolute inset-0 opacity-0 cursor-pointer",
|
|
17
28
|
disabled: e.disabled,
|
|
18
29
|
tabindex: "-1",
|
|
19
30
|
type: "checkbox",
|
|
20
|
-
onChange: o[0] || (o[0] = (
|
|
21
|
-
}, null, 40,
|
|
22
|
-
t("div",
|
|
23
|
-
|
|
31
|
+
onChange: o[0] || (o[0] = (l) => e.$emit("update:modelValue", l.target.checked))
|
|
32
|
+
}, null, 40, u),
|
|
33
|
+
t("div", {
|
|
34
|
+
class: d(r(a)({ align: e.align }))
|
|
35
|
+
}, [
|
|
36
|
+
f(r(p), {
|
|
24
37
|
icon: "Checkmark",
|
|
25
38
|
size: "xs",
|
|
26
39
|
thickness: "2.5"
|
|
27
40
|
})
|
|
28
|
-
])
|
|
41
|
+
], 2)
|
|
29
42
|
]),
|
|
30
43
|
_: 1
|
|
31
44
|
}));
|
|
32
45
|
}
|
|
33
46
|
});
|
|
34
47
|
export {
|
|
35
|
-
|
|
48
|
+
v as default
|
|
36
49
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"EnvironmentSelector.vue.d.ts","sourceRoot":"","sources":["../../../src/components/EnvironmentSelector/EnvironmentSelector.vue"],"names":[],"mappings":";
|
|
1
|
+
{"version":3,"file":"EnvironmentSelector.vue.d.ts","sourceRoot":"","sources":["../../../src/components/EnvironmentSelector/EnvironmentSelector.vue"],"names":[],"mappings":";AAkdA,wBAKG"}
|
|
@@ -1,18 +1,18 @@
|
|
|
1
|
-
import { defineComponent as y, computed as S, openBlock as a, createElementBlock as f, createVNode as n, unref as e, withCtx as o, Fragment as N, renderList as D, createBlock as v, withModifiers as h, createElementVNode as r, normalizeClass as
|
|
1
|
+
import { defineComponent as y, computed as S, openBlock as a, createElementBlock as f, createVNode as n, unref as e, withCtx as o, Fragment as N, renderList as D, createBlock as v, withModifiers as h, createElementVNode as r, normalizeClass as w, createTextVNode as l, toDisplayString as x, createCommentVNode as j } from "vue";
|
|
2
2
|
import { ScalarDropdown as z, ScalarDropdownItem as d, ScalarIcon as c, ScalarDropdownDivider as B, ScalarButton as I } from "@scalar/components";
|
|
3
3
|
import { useRouter as V } from "vue-router";
|
|
4
4
|
import { useWorkspace as M } from "../../store/store.js";
|
|
5
|
-
const W = { class: "font-medium m-0 text-sm flex gap-1.5 items-center" }, $ = { class: "flex items-center justify-center h-4 w-4" }, O = /* @__PURE__ */ r("span", { class: "leading-none" }, "Manage Environments", -1), G = /* @__PURE__ */ y({
|
|
5
|
+
const W = { class: "font-medium m-0 text-sm flex gap-1.5 items-center whitespace-nowrap" }, $ = { class: "flex items-center justify-center h-4 w-4" }, O = /* @__PURE__ */ r("span", { class: "leading-none" }, "Manage Environments", -1), G = /* @__PURE__ */ y({
|
|
6
6
|
__name: "EnvironmentSelector",
|
|
7
7
|
setup(R) {
|
|
8
8
|
const {
|
|
9
9
|
environments: u,
|
|
10
10
|
activeWorkspace: s,
|
|
11
|
-
workspaceMutators:
|
|
11
|
+
workspaceMutators: k,
|
|
12
12
|
activeEnvironment: _,
|
|
13
13
|
isReadOnly: g
|
|
14
14
|
} = M(), b = V(), m = (i) => {
|
|
15
|
-
|
|
15
|
+
k.edit(s.value.uid, "activeEnvironmentId", i);
|
|
16
16
|
}, C = () => b.push(`/workspace/${s.value.uid}/environment`), E = S(() => [
|
|
17
17
|
// Always add the default environment
|
|
18
18
|
u.default,
|
|
@@ -28,7 +28,7 @@ const W = { class: "font-medium m-0 text-sm flex gap-1.5 items-center" }, $ = {
|
|
|
28
28
|
}, {
|
|
29
29
|
default: o(() => [
|
|
30
30
|
r("div", {
|
|
31
|
-
class:
|
|
31
|
+
class: w([
|
|
32
32
|
"flex items-center justify-center rounded-full p-[3px] w-4 h-4 group-hover/item:shadow-border",
|
|
33
33
|
e(s).activeEnvironmentId === t.uid ? "bg-blue text-b-1" : "text-transparent"
|
|
34
34
|
])
|
|
@@ -39,7 +39,7 @@ const W = { class: "font-medium m-0 text-sm flex gap-1.5 items-center" }, $ = {
|
|
|
39
39
|
thickness: "3.5"
|
|
40
40
|
})
|
|
41
41
|
], 2),
|
|
42
|
-
l(" " +
|
|
42
|
+
l(" " + x(t.name), 1)
|
|
43
43
|
]),
|
|
44
44
|
_: 2
|
|
45
45
|
}, 1032, ["onClick"]))), 128)),
|
|
@@ -49,7 +49,7 @@ const W = { class: "font-medium m-0 text-sm flex gap-1.5 items-center" }, $ = {
|
|
|
49
49
|
}, {
|
|
50
50
|
default: o(() => [
|
|
51
51
|
r("div", {
|
|
52
|
-
class:
|
|
52
|
+
class: w([
|
|
53
53
|
"flex items-center justify-center rounded-full p-[3px] w-4 h-4 group-hover/item:shadow-border",
|
|
54
54
|
e(s).activeEnvironmentId === "" ? "bg-blue text-b-1" : "text-transparent"
|
|
55
55
|
])
|
|
@@ -92,7 +92,7 @@ const W = { class: "font-medium m-0 text-sm flex gap-1.5 items-center" }, $ = {
|
|
|
92
92
|
var t;
|
|
93
93
|
return [
|
|
94
94
|
r("h2", W, [
|
|
95
|
-
l(
|
|
95
|
+
l(x(((t = e(_)) == null ? void 0 : t.name) ?? "No Environment") + " ", 1),
|
|
96
96
|
n(e(c), {
|
|
97
97
|
class: "size-3",
|
|
98
98
|
icon: "ChevronDown",
|
|
@@ -7,7 +7,7 @@ declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_T
|
|
|
7
7
|
isDisable: boolean;
|
|
8
8
|
isEditable: boolean;
|
|
9
9
|
}>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
10
|
-
change: (value: "
|
|
10
|
+
change: (value: "connect" | "delete" | "get" | "head" | "options" | "patch" | "post" | "put" | "trace") => void;
|
|
11
11
|
}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToOption<{
|
|
12
12
|
isSquare?: boolean;
|
|
13
13
|
method: string;
|
|
@@ -17,7 +17,7 @@ declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_T
|
|
|
17
17
|
isDisable: boolean;
|
|
18
18
|
isEditable: boolean;
|
|
19
19
|
}>>> & {
|
|
20
|
-
onChange?: ((value: "
|
|
20
|
+
onChange?: ((value: "connect" | "delete" | "get" | "head" | "options" | "patch" | "post" | "put" | "trace") => any) | undefined;
|
|
21
21
|
}, {
|
|
22
22
|
isSquare: boolean;
|
|
23
23
|
isEditable: boolean;
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import type { RequestPayload } from '@scalar/oas-utils/entities/spec';
|
|
2
|
+
declare const _default: import("vue").DefineComponent<__VLS_TypePropsToOption<{
|
|
3
|
+
parsedCurl: RequestPayload | null;
|
|
4
|
+
state: {
|
|
5
|
+
open: boolean;
|
|
6
|
+
show: () => void;
|
|
7
|
+
hide: () => void;
|
|
8
|
+
};
|
|
9
|
+
}>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
10
|
+
importCurl: (payload: {
|
|
11
|
+
parsedCurl: RequestPayload;
|
|
12
|
+
requestName: string;
|
|
13
|
+
}) => void;
|
|
14
|
+
close: () => void;
|
|
15
|
+
}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_TypePropsToOption<{
|
|
16
|
+
parsedCurl: RequestPayload | null;
|
|
17
|
+
state: {
|
|
18
|
+
open: boolean;
|
|
19
|
+
show: () => void;
|
|
20
|
+
hide: () => void;
|
|
21
|
+
};
|
|
22
|
+
}>>> & {
|
|
23
|
+
onImportCurl?: ((payload: {
|
|
24
|
+
parsedCurl: RequestPayload;
|
|
25
|
+
requestName: string;
|
|
26
|
+
}) => any) | undefined;
|
|
27
|
+
onClose?: (() => any) | undefined;
|
|
28
|
+
}, {}, {}>;
|
|
29
|
+
export default _default;
|
|
30
|
+
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
31
|
+
type __VLS_TypePropsToOption<T> = {
|
|
32
|
+
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
33
|
+
type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
34
|
+
} : {
|
|
35
|
+
type: import('vue').PropType<T[K]>;
|
|
36
|
+
required: true;
|
|
37
|
+
};
|
|
38
|
+
};
|
|
39
|
+
//# sourceMappingURL=ImportCurlModal.vue.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ImportCurlModal.vue.d.ts","sourceRoot":"","sources":["../../../src/components/ImportCurl/ImportCurlModal.vue"],"names":[],"mappings":"AA6GA,OAAO,KAAK,EAEV,cAAc,EACf,MAAM,iCAAiC,CAAA;;gBAO1B,cAAc,GAAG,IAAI;WAC1B;QAAE,IAAI,EAAE,OAAO,CAAC;QAAC,IAAI,EAAE,MAAM,IAAI,CAAC;QAAC,IAAI,EAAE,MAAM,IAAI,CAAA;KAAE;;;oBAOnC,cAAc;qBAAe,MAAM;;;;gBARhD,cAAc,GAAG,IAAI;WAC1B;QAAE,IAAI,EAAE,OAAO,CAAC;QAAC,IAAI,EAAE,MAAM,IAAI,CAAC;QAAC,IAAI,EAAE,MAAM,IAAI,CAAA;KAAE;;;oBAOnC,cAAc;qBAAe,MAAM;;;;AA0N9D,wBAOG;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"}
|