@scalar/api-client 2.0.24 → 2.0.26
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 +39 -0
- 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 +79 -83
- package/dist/components/AddressBar/AddressBarHistory.vue.d.ts.map +1 -1
- package/dist/components/AddressBar/AddressBarHistory.vue.js +38 -38
- package/dist/components/AddressBar/AddressBarServer.vue.d.ts.map +1 -1
- package/dist/components/CodeInput/CodeInput.vue.d.ts +10 -0
- package/dist/components/CodeInput/CodeInput.vue.d.ts.map +1 -1
- package/dist/components/CodeInput/CodeInput.vue.js +2 -1
- package/dist/components/CodeInput/CodeInput.vue2.js +43 -38
- package/dist/components/CodeInput/codeDropdownWidget.d.ts +24 -0
- package/dist/components/CodeInput/codeDropdownWidget.d.ts.map +1 -0
- package/dist/components/CodeInput/codeDropdownWidget.js +110 -0
- package/dist/components/CodeInput/codeVariableWidget.d.ts +8 -0
- package/dist/components/CodeInput/codeVariableWidget.d.ts.map +1 -0
- package/dist/components/CodeInput/codeVariableWidget.js +124 -0
- package/dist/components/CommandPalette/CommandPaletteCollection.vue.d.ts +2 -15
- package/dist/components/CommandPalette/CommandPaletteCollection.vue.d.ts.map +1 -1
- package/dist/components/CommandPalette/CommandPaletteCollection.vue.js +51 -54
- package/dist/components/CommandPalette/CommandPaletteExample.vue.d.ts +4 -2
- package/dist/components/CommandPalette/CommandPaletteExample.vue.d.ts.map +1 -1
- package/dist/components/CommandPalette/CommandPaletteExample.vue.js +106 -92
- package/dist/components/CommandPalette/CommandPaletteFolder.vue.d.ts +2 -15
- package/dist/components/CommandPalette/CommandPaletteFolder.vue.d.ts.map +1 -1
- package/dist/components/CommandPalette/CommandPaletteFolder.vue.js +68 -74
- package/dist/components/CommandPalette/CommandPaletteImport.vue.d.ts +2 -15
- package/dist/components/CommandPalette/CommandPaletteImport.vue.d.ts.map +1 -1
- package/dist/components/CommandPalette/CommandPaletteImport.vue.js +56 -62
- package/dist/components/CommandPalette/CommandPaletteRequest.vue.d.ts +2 -15
- package/dist/components/CommandPalette/CommandPaletteRequest.vue.d.ts.map +1 -1
- package/dist/components/CommandPalette/CommandPaletteRequest.vue.js +106 -99
- package/dist/components/CommandPalette/CommandPaletteWorkspace.vue.d.ts +7 -0
- package/dist/components/CommandPalette/CommandPaletteWorkspace.vue.d.ts.map +1 -0
- package/dist/components/CommandPalette/CommandPaletteWorkspace.vue.js +57 -0
- package/dist/components/CommandPalette/CommandPaletteWorkspace.vue2.js +4 -0
- package/dist/components/CommandPalette/TheCommandPalette.vue.d.ts +50 -0
- package/dist/components/CommandPalette/TheCommandPalette.vue.d.ts.map +1 -0
- package/dist/components/CommandPalette/TheCommandPalette.vue.js +9 -0
- package/dist/components/CommandPalette/TheCommandPalette.vue2.js +198 -0
- package/dist/components/CommandPalette/index.d.ts +2 -0
- package/dist/components/CommandPalette/index.d.ts.map +1 -0
- package/dist/components/CommandPalette/index.js +4 -0
- package/dist/components/ContextBar.vue.js +4 -4
- package/dist/components/DataTable/DataTableInput.vue.d.ts +1 -1
- package/dist/components/DataTable/DataTableInput.vue.d.ts.map +1 -1
- package/dist/components/DataTable/DataTableInput.vue.js +3 -3
- package/dist/components/DataTable/DataTableInput.vue2.js +36 -49
- package/dist/components/SideNav/SideNav.vue.d.ts.map +1 -1
- package/dist/components/SideNav/SideNav.vue.js +26 -23
- package/dist/components/SideNav/SideNavLink.vue.d.ts +3 -2
- package/dist/components/SideNav/SideNavLink.vue.d.ts.map +1 -1
- package/dist/components/SideNav/SideNavLink.vue.js +5 -5
- package/dist/components/Sidebar/Sidebar.vue.d.ts +15 -2
- package/dist/components/Sidebar/Sidebar.vue.d.ts.map +1 -1
- package/dist/components/Sidebar/Sidebar.vue.js +14 -12
- package/dist/components/Sidebar/SidebarButton.vue.d.ts.map +1 -1
- package/dist/components/Sidebar/SidebarButton.vue.js +5 -5
- package/dist/components/TopNav/TopNav.vue.d.ts.map +1 -1
- package/dist/components/TopNav/TopNav.vue.js +2 -2
- package/dist/components/TopNav/TopNav.vue2.js +31 -28
- package/dist/components/TopNav/TopNavItem.vue.d.ts +7 -3
- package/dist/components/TopNav/TopNavItem.vue.d.ts.map +1 -1
- package/dist/components/TopNav/TopNavItem.vue.js +2 -2
- package/dist/components/TopNav/TopNavItem.vue2.js +16 -15
- package/dist/components/ViewLayout/ViewLayout.vue.d.ts.map +1 -1
- package/dist/components/ViewLayout/ViewLayout.vue.js +1 -1
- package/dist/components/ViewLayout/ViewLayoutCollapse.vue.d.ts.map +1 -1
- package/dist/components/ViewLayout/ViewLayoutCollapse.vue.js +2 -1
- package/dist/constants.d.ts +13 -7
- package/dist/constants.d.ts.map +1 -1
- package/dist/constants.js +4 -4
- package/dist/index.d.ts +3 -4
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +14 -16
- package/dist/layouts/App/ApiClientApp.vue.d.ts.map +1 -0
- package/dist/layouts/App/ApiClientApp.vue.js +72 -0
- package/dist/{App → layouts/App}/createApiClientApp.d.ts +1 -1
- package/dist/layouts/App/createApiClientApp.d.ts.map +1 -0
- package/dist/{App → layouts/App}/createApiClientApp.js +2 -2
- package/dist/layouts/App/index.d.ts.map +1 -0
- package/dist/{Modal → layouts/Modal}/ApiClientModal.vue.d.ts +1 -0
- package/dist/layouts/Modal/ApiClientModal.vue.d.ts.map +1 -0
- package/dist/{Modal → layouts/Modal}/ApiClientModal.vue.js +2 -2
- package/dist/{Modal → layouts/Modal}/api-client-modal.d.ts +1 -1
- package/dist/layouts/Modal/api-client-modal.d.ts.map +1 -0
- package/dist/{Modal → layouts/Modal}/api-client-modal.js +42 -42
- package/dist/layouts/Modal/index.d.ts.map +1 -0
- package/dist/libs/eventBusses/command-palette.d.ts +14 -0
- package/dist/libs/eventBusses/command-palette.d.ts.map +1 -0
- package/dist/libs/eventBusses/command-palette.js +5 -0
- package/dist/libs/local-storage.d.ts +1 -1
- package/dist/libs/local-storage.d.ts.map +1 -1
- package/dist/libs/local-storage.js +19 -19
- package/dist/router.d.ts +5 -10
- package/dist/router.d.ts.map +1 -1
- package/dist/router.js +23 -19
- package/dist/store/topNav.d.ts +94 -82
- package/dist/store/topNav.d.ts.map +1 -1
- package/dist/store/topNav.js +21 -20
- package/dist/store/workspace.d.ts +348 -94
- package/dist/store/workspace.d.ts.map +1 -1
- package/dist/store/workspace.js +314 -221
- package/dist/style.css +1 -1
- package/dist/views/Collection/Collection.vue.d.ts.map +1 -1
- package/dist/views/Components/Schemas/Schemas.vue.d.ts.map +1 -1
- package/dist/views/Cookies/Cookies.vue.d.ts.map +1 -1
- package/dist/views/Cookies/Cookies.vue2.js +27 -30
- package/dist/views/Environment/Environment.vue.d.ts.map +1 -1
- package/dist/views/Environment/Environment.vue2.js +22 -25
- package/dist/views/Environment/EnvironmentVariableDropdown.vue.d.ts.map +1 -1
- package/dist/views/Environment/EnvironmentVariableDropdown.vue.js +38 -47
- 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 +130 -109
- package/dist/views/Request/RequestSection/RequestAuthDataTableInput.vue.d.ts +1 -1
- package/dist/views/Request/RequestSection/RequestAuthDataTableInput.vue.d.ts.map +1 -1
- package/dist/views/Request/RequestSection/RequestSection.vue.d.ts.map +1 -1
- package/dist/views/Request/RequestSection/RequestSection.vue.js +5 -4
- package/dist/views/Request/RequestSection/RequestTable.vue.d.ts.map +1 -1
- package/dist/views/Request/RequestSection/RequestTable.vue.js +1 -1
- package/dist/views/Request/RequestSection/RequestTable.vue2.js +19 -19
- package/dist/views/Request/RequestSection/RequestTableTooltip.vue.d.ts.map +1 -1
- package/dist/views/Request/RequestSection/RequestTableTooltip.vue.js +6 -5
- package/dist/views/Request/RequestSidebarItem.vue.d.ts.map +1 -1
- package/dist/views/Request/RequestSidebarItem.vue.js +2 -2
- package/dist/views/Request/RequestSidebarItem.vue2.js +78 -81
- package/dist/views/Request/RequestSidebarItemMenu.vue.d.ts.map +1 -1
- package/dist/views/Request/RequestSidebarItemMenu.vue.js +60 -42
- package/dist/views/Request/ResponseSection/ResponseSection.vue.d.ts.map +1 -1
- package/dist/views/Request/ResponseSection/ResponseSection.vue.js +6 -5
- package/dist/views/Request/components/OAuth2.vue.d.ts.map +1 -1
- package/dist/views/Request/components/OAuth2.vue.js +2 -0
- package/dist/{App.vue.d.ts → views/Request/components/WorkspaceDropdown.vue.d.ts} +1 -2
- package/dist/views/Request/components/WorkspaceDropdown.vue.d.ts.map +1 -0
- package/dist/views/Request/components/WorkspaceDropdown.vue.js +80 -0
- package/dist/views/Request/components/WorkspaceDropdown.vue2.js +4 -0
- package/dist/views/Request/components/index.d.ts +1 -0
- package/dist/views/Request/components/index.d.ts.map +1 -1
- package/dist/views/Request/components/index.js +4 -2
- package/dist/views/Servers/Servers.vue.d.ts.map +1 -1
- package/dist/views/Servers/Servers.vue2.js +12 -15
- package/package.json +22 -18
- package/dist/App/ApiClientApp.vue.d.ts.map +0 -1
- package/dist/App/ApiClientApp.vue.js +0 -56
- package/dist/App/createApiClientApp.d.ts.map +0 -1
- package/dist/App/index.d.ts.map +0 -1
- package/dist/App.vue.d.ts.map +0 -1
- package/dist/App.vue.js +0 -77
- package/dist/App.vue3.js +0 -5
- package/dist/Modal/ApiClientModal.vue.d.ts.map +0 -1
- package/dist/Modal/api-client-modal.d.ts.map +0 -1
- package/dist/Modal/index.d.ts.map +0 -1
- package/dist/components/AddressBar/AddressBarServer.vue.js +0 -113
- package/dist/components/AddressBar/AddressBarServer.vue2.js +0 -4
- package/dist/components/CommandPalette/CommandPalette.vue.d.ts +0 -17
- package/dist/components/CommandPalette/CommandPalette.vue.d.ts.map +0 -1
- package/dist/components/CommandPalette/CommandPalette.vue.js +0 -7
- package/dist/components/CommandPalette/CommandPalette.vue2.js +0 -185
- package/dist/main.d.ts +0 -2
- package/dist/main.d.ts.map +0 -1
- /package/dist/{App → layouts/App}/ApiClientApp.vue.d.ts +0 -0
- /package/dist/{App → layouts/App}/ApiClientApp.vue3.js +0 -0
- /package/dist/{App → layouts/App}/index.d.ts +0 -0
- /package/dist/{App → layouts/App}/index.js +0 -0
- /package/dist/{Modal → layouts/Modal}/ApiClientModal.vue2.js +0 -0
- /package/dist/{Modal → layouts/Modal}/index.d.ts +0 -0
- /package/dist/{Modal → layouts/Modal}/index.js +0 -0
package/package.json
CHANGED
|
@@ -18,7 +18,7 @@
|
|
|
18
18
|
"rest",
|
|
19
19
|
"testing"
|
|
20
20
|
],
|
|
21
|
-
"version": "2.0.
|
|
21
|
+
"version": "2.0.26",
|
|
22
22
|
"engines": {
|
|
23
23
|
"node": ">=18"
|
|
24
24
|
},
|
|
@@ -45,6 +45,14 @@
|
|
|
45
45
|
"import": "./dist/libs/eventBusses/index.js",
|
|
46
46
|
"types": "./dist/libs/eventBusses/index.d.ts"
|
|
47
47
|
},
|
|
48
|
+
"./layouts/Modal": {
|
|
49
|
+
"import": "./dist/layouts/Modal/index.js",
|
|
50
|
+
"types": "./dist/layouts/Modal/index.d.ts"
|
|
51
|
+
},
|
|
52
|
+
"./layouts/App": {
|
|
53
|
+
"import": "./dist/layouts/App/index.js",
|
|
54
|
+
"types": "./dist/layouts/App/index.d.ts"
|
|
55
|
+
},
|
|
48
56
|
"./hooks": {
|
|
49
57
|
"import": "./dist/hooks/index.js",
|
|
50
58
|
"types": "./dist/hooks/index.d.ts"
|
|
@@ -73,18 +81,14 @@
|
|
|
73
81
|
"import": "./dist/components/DarkModeToggle/index.js",
|
|
74
82
|
"types": "./dist/components/DarkModeToggle/index.d.ts"
|
|
75
83
|
},
|
|
84
|
+
"./components/CommandPalette": {
|
|
85
|
+
"import": "./dist/components/CommandPalette/index.js",
|
|
86
|
+
"types": "./dist/components/CommandPalette/index.d.ts"
|
|
87
|
+
},
|
|
76
88
|
"./components/AddressBar": {
|
|
77
89
|
"import": "./dist/components/AddressBar/index.js",
|
|
78
90
|
"types": "./dist/components/AddressBar/index.d.ts"
|
|
79
91
|
},
|
|
80
|
-
"./Modal": {
|
|
81
|
-
"import": "./dist/Modal/index.js",
|
|
82
|
-
"types": "./dist/Modal/index.d.ts"
|
|
83
|
-
},
|
|
84
|
-
"./App": {
|
|
85
|
-
"import": "./dist/App/index.js",
|
|
86
|
-
"types": "./dist/App/index.d.ts"
|
|
87
|
-
},
|
|
88
92
|
"./css/*.css": {
|
|
89
93
|
"import": "./dist/css/*.css",
|
|
90
94
|
"require": "./dist/css/*.css"
|
|
@@ -114,14 +118,14 @@
|
|
|
114
118
|
"vue": "^3.4.29",
|
|
115
119
|
"vue-router": "^4.3.0",
|
|
116
120
|
"zod": "^3.22.4",
|
|
117
|
-
"@scalar/components": "0.12.
|
|
118
|
-
"@scalar/object-utils": "1.1.4",
|
|
119
|
-
"@scalar/themes": "0.9.14",
|
|
121
|
+
"@scalar/components": "0.12.17",
|
|
120
122
|
"@scalar/draggable": "0.1.3",
|
|
121
|
-
"@scalar/
|
|
122
|
-
"@scalar/
|
|
123
|
-
"@scalar/
|
|
124
|
-
"@scalar/use-
|
|
123
|
+
"@scalar/object-utils": "1.1.4",
|
|
124
|
+
"@scalar/oas-utils": "0.2.16",
|
|
125
|
+
"@scalar/themes": "0.9.15",
|
|
126
|
+
"@scalar/use-codemirror": "0.11.7",
|
|
127
|
+
"@scalar/use-tooltip": "1.0.2",
|
|
128
|
+
"@scalar/use-toasts": "0.7.4"
|
|
125
129
|
},
|
|
126
130
|
"devDependencies": {
|
|
127
131
|
"@types/content-type": "^1.1.8",
|
|
@@ -138,11 +142,11 @@
|
|
|
138
142
|
"vite-svg-loader": "^5.1.0",
|
|
139
143
|
"vitest": "^1.6.0",
|
|
140
144
|
"vue-tsc": "^2.0.13",
|
|
141
|
-
"@scalar/build-tooling": "0.1.
|
|
145
|
+
"@scalar/build-tooling": "0.1.10"
|
|
142
146
|
},
|
|
143
147
|
"scripts": {
|
|
144
148
|
"build": "vite build && pnpm types:build && tsc-alias -p tsconfig.build.json",
|
|
145
|
-
"dev": "
|
|
149
|
+
"dev": "pnpm playground:app",
|
|
146
150
|
"lint:check": "eslint .",
|
|
147
151
|
"lint:fix": "eslint . --fix",
|
|
148
152
|
"playground:app": "vite ./playground/app -c ./vite.config.ts",
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"ApiClientApp.vue.d.ts","sourceRoot":"","sources":["../../src/App/ApiClientApp.vue"],"names":[],"mappings":";AAgOA,wBAKG"}
|
|
@@ -1,56 +0,0 @@
|
|
|
1
|
-
import { defineComponent as n, onMounted as l, watchEffect as m, onBeforeMount as i, computed as d, openBlock as p, createElementBlock as f, Fragment as u, createElementVNode as o, createVNode as t, unref as a } from "vue";
|
|
2
|
-
import _ from "../components/SideNav/SideNav.vue.js";
|
|
3
|
-
import k from "../components/TopNav/TopNav.vue.js";
|
|
4
|
-
import { useWorkspace as y } from "../store/workspace.js";
|
|
5
|
-
import { addScalarClassesToHeadless as h } from "@scalar/components";
|
|
6
|
-
import { createWorkspace as x } from "@scalar/oas-utils/entities/workspace";
|
|
7
|
-
import { getThemeStyles as M } from "@scalar/themes";
|
|
8
|
-
import { ScalarToasts as g } from "@scalar/use-toasts";
|
|
9
|
-
import { RouterView as v } from "vue-router";
|
|
10
|
-
import { useDarkModeState as T } from "../hooks/useDarkModeState.js";
|
|
11
|
-
const w = ["innerHTML"], S = { class: "flex min-h-0 flex-1" }, L = { class: "flex flex-1 flex-col min-w-0" }, R = /* @__PURE__ */ n({
|
|
12
|
-
__name: "ApiClientApp",
|
|
13
|
-
setup(B) {
|
|
14
|
-
l(() => {
|
|
15
|
-
m(() => {
|
|
16
|
-
document.body.classList.toggle("dark-mode", r.value), document.body.classList.toggle("light-mode", !r.value);
|
|
17
|
-
});
|
|
18
|
-
});
|
|
19
|
-
const { isDark: r } = T(), e = y();
|
|
20
|
-
i(async () => {
|
|
21
|
-
const s = x({
|
|
22
|
-
uid: "default",
|
|
23
|
-
// TODO: Make this configurable
|
|
24
|
-
proxyUrl: "https://proxy.scalar.com"
|
|
25
|
-
});
|
|
26
|
-
e.workspaceMutators.add(s), e.collectionMutators.add({
|
|
27
|
-
uid: "drafts",
|
|
28
|
-
spec: {
|
|
29
|
-
info: {
|
|
30
|
-
title: "Drafts"
|
|
31
|
-
}
|
|
32
|
-
}
|
|
33
|
-
}), e.requestMutators.add({ summary: "My First Request" }, "drafts"), h();
|
|
34
|
-
});
|
|
35
|
-
const c = d(
|
|
36
|
-
() => `<style>
|
|
37
|
-
${M(e.activeWorkspace.value.themeId, {
|
|
38
|
-
fonts: !0
|
|
39
|
-
})}</style>`
|
|
40
|
-
);
|
|
41
|
-
return (s, C) => (p(), f(u, null, [
|
|
42
|
-
o("div", { innerHTML: c.value }, null, 8, w),
|
|
43
|
-
t(k),
|
|
44
|
-
o("main", S, [
|
|
45
|
-
t(_),
|
|
46
|
-
o("div", L, [
|
|
47
|
-
t(a(v))
|
|
48
|
-
])
|
|
49
|
-
]),
|
|
50
|
-
t(a(g))
|
|
51
|
-
], 64));
|
|
52
|
-
}
|
|
53
|
-
});
|
|
54
|
-
export {
|
|
55
|
-
R as default
|
|
56
|
-
};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"createApiClientApp.d.ts","sourceRoot":"","sources":["../../src/App/createApiClientApp.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,SAAS,CAAA;AAGlD,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,mBAAmB,CAAA;AAM1D;;GAEG;AACH,eAAO,MAAM,kBAAkB,OAEzB,WAAW,GAAG,IAAI,UAEd,mBAAmB;IAiEzB,+DAA+D;;IAE/D,mCAAmC;4BACX,mBAAmB;IAQ3C,uEAAuE;uBACpD,iBAAiB;IAapC,8CAA8C;;EAGjD,CAAA"}
|
package/dist/App/index.d.ts.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/App/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,IAAI,YAAY,EAAE,MAAM,oBAAoB,CAAA;AAC5D,cAAc,sBAAsB,CAAA"}
|
package/dist/App.vue.d.ts.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"App.vue.d.ts","sourceRoot":"","sources":["../src/App.vue"],"names":[],"mappings":";AAiTA,wBAKG;AAEH,eAAO,MAAM,sBAAsB,IAAK,CAAC;AACzC,OAAO,CAAC,MAAM,CAAC;IAEd,KAAK,uBAAuB,GAAG,gBAAgB,CAAC,OAAO,iBAAiB,EAAE,GAAG,CAAC,iBAAiB,EAAE,gBAAgB,CAAC,UAAU,CAAC,GAAG,CAAC,iBAAiB,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC,CAAC,CAAC;IAE1K,KAAK,aAAa,GAAG,gBAAgB,CAAC,OAAO,iBAAiB,EAAE,GAAG,CAAC,OAAO,EAAE,UAAU,CAAC,GAAG,CAAC,OAAO,CAAC,CAAC;IAErG,KAAK,sBAAsB,GAAG,gBAAgB,CAAC,OAAO,KAAK,EAAE,gBAAgB,EAAE,EAAE,CAAC,GAAG,gBAAgB,CAAC,OAAO,mBAAmB,EAAE,gBAAgB,EAAE,EAAE,CAAC,GAAG,gBAAgB,CAAC,OAAO,kBAAkB,EAAE,gBAAgB,EAAE,EAAE,CAAC,GAAG,IAAI,CAAC,cAAc,KAAK,CAAC,EAAE,YAAY,GAAG,iBAAiB,GAAG,WAAW,GAAG,UAAU,GAAG,UAAU,CAAC,CAAC;IACnU,KAAK,wBAAwB,GAC5B,gBAAgB,CAAC,OAAO,KAAK,EAAE,UAAU,EAAE,EAAE,CAAC,GAC5C,gBAAgB,CAAC,OAAO,KAAK,EAAE,qBAAqB,EAAE,EAAE,CAAC,GACzD,gBAAgB,CAAC,OAAO,KAAK,EAAE,oBAAoB,EAAE,EA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,GAAG,KAAK;KACtE,CACD,CACD,CAAC;IACF,KAAK,oBAAoB,CAAC,CAAC,IAAI;SAAG,CAAC,IAAI,MAAM,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;KAAG,GAAG,EAAE,CAAC;CAC9D;AACD,eAAO,MAAM,oBAAoB,IAAK,CAAC"}
|
package/dist/App.vue.js
DELETED
|
@@ -1,77 +0,0 @@
|
|
|
1
|
-
import { defineComponent as f, onMounted as p, watchEffect as u, onBeforeMount as _, computed as g, openBlock as s, createElementBlock as h, Fragment as y, createElementVNode as c, createVNode as a, unref as i, withCtx as k, createBlock as m, KeepAlive as x, resolveDynamicComponent as S } from "vue";
|
|
2
|
-
import v from "./components/SideNav/SideNav.vue.js";
|
|
3
|
-
import M from "./components/TopNav/TopNav.vue.js";
|
|
4
|
-
import { useWorkspace as T } from "./store/workspace.js";
|
|
5
|
-
import { addScalarClassesToHeadless as w } from "@scalar/components";
|
|
6
|
-
import { createWorkspace as b } from "@scalar/oas-utils/entities/workspace";
|
|
7
|
-
import { LS_KEYS as B } from "@scalar/object-utils/mutator-record";
|
|
8
|
-
import { getThemeStyles as L } from "@scalar/themes";
|
|
9
|
-
import { ScalarToasts as C } from "@scalar/use-toasts";
|
|
10
|
-
import { RouterView as E } from "vue-router";
|
|
11
|
-
import { loadAllResources as K } from "./libs/local-storage.js";
|
|
12
|
-
import { useDarkModeState as R } from "./hooks/useDarkModeState.js";
|
|
13
|
-
const A = ["innerHTML"], D = { class: "flex min-h-0 flex-1" }, F = { class: "flex flex-1 flex-col min-w-0" }, G = /* @__PURE__ */ f({
|
|
14
|
-
__name: "App",
|
|
15
|
-
setup(W) {
|
|
16
|
-
p(() => {
|
|
17
|
-
u(() => {
|
|
18
|
-
document.body.classList.toggle("dark-mode", n.value), document.body.classList.toggle("light-mode", !n.value);
|
|
19
|
-
});
|
|
20
|
-
});
|
|
21
|
-
const { isDark: n } = R(), t = T();
|
|
22
|
-
_(async () => {
|
|
23
|
-
if (localStorage.getItem(`${B.WORKSPACE}default`)) {
|
|
24
|
-
console.info("Remove this before going live, but here are the stats: ");
|
|
25
|
-
const e = {};
|
|
26
|
-
let l = 0, o = 0, r = "";
|
|
27
|
-
for (r in localStorage)
|
|
28
|
-
Object.prototype.hasOwnProperty.call(localStorage, r) && (o = (localStorage[r].length + r.length) * 2, l += o, e[r] = (o / 1024).toFixed(2) + " KB");
|
|
29
|
-
e.Total = (l / 1024).toFixed(2) + " KB", console.table(e), K(t);
|
|
30
|
-
} else {
|
|
31
|
-
const e = b({
|
|
32
|
-
uid: "default",
|
|
33
|
-
proxyUrl: "https://proxy.scalar.com"
|
|
34
|
-
});
|
|
35
|
-
t.workspaceMutators.add(e), t.collectionMutators.add({
|
|
36
|
-
uid: "drafts",
|
|
37
|
-
spec: {
|
|
38
|
-
info: {
|
|
39
|
-
title: "Drafts"
|
|
40
|
-
}
|
|
41
|
-
}
|
|
42
|
-
}), t.requestMutators.add(
|
|
43
|
-
{ summary: "My First Request" },
|
|
44
|
-
"drafts"
|
|
45
|
-
);
|
|
46
|
-
}
|
|
47
|
-
w();
|
|
48
|
-
});
|
|
49
|
-
const d = g(
|
|
50
|
-
() => `<style>
|
|
51
|
-
${L(t.activeWorkspace.value.themeId, {
|
|
52
|
-
fonts: !0
|
|
53
|
-
})}</style>`
|
|
54
|
-
);
|
|
55
|
-
return (e, l) => (s(), h(y, null, [
|
|
56
|
-
c("div", { innerHTML: d.value }, null, 8, A),
|
|
57
|
-
a(M),
|
|
58
|
-
c("main", D, [
|
|
59
|
-
a(v),
|
|
60
|
-
c("div", F, [
|
|
61
|
-
a(i(E), null, {
|
|
62
|
-
default: k(({ Component: o }) => [
|
|
63
|
-
(s(), m(x, null, [
|
|
64
|
-
(s(), m(S(o)))
|
|
65
|
-
], 1024))
|
|
66
|
-
]),
|
|
67
|
-
_: 1
|
|
68
|
-
})
|
|
69
|
-
])
|
|
70
|
-
]),
|
|
71
|
-
a(i(C))
|
|
72
|
-
], 64));
|
|
73
|
-
}
|
|
74
|
-
});
|
|
75
|
-
export {
|
|
76
|
-
G as default
|
|
77
|
-
};
|
package/dist/App.vue3.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"ApiClientModal.vue.d.ts","sourceRoot":"","sources":["../../src/Modal/ApiClientModal.vue"],"names":[],"mappings":"AAsLA,OAAO,EAA8B,KAAK,QAAQ,EAAE,MAAM,oBAAoB,CAAA;;IAQ5E,6CAA6C;gBACjC,UAAU,CAAC,OAAO,QAAQ,CAAC;;IADvC,6CAA6C;gBACjC,UAAU,CAAC,OAAO,QAAQ,CAAC;;AAiHzC,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"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"api-client-modal.d.ts","sourceRoot":"","sources":["../../src/Modal/api-client-modal.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,mBAAmB,EAAE,iBAAiB,EAAE,MAAM,mBAAmB,CAAA;AAG/E,OAAO,EAAE,KAAK,aAAa,EAAe,MAAM,2BAA2B,CAAA;AAG3E,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,gBAAgB,CAAA;AAM7C,sDAAsD;AACtD,MAAM,MAAM,mBAAmB,GAAG;IAChC,yCAAyC;IACzC,IAAI,EAAE,iBAAiB,CAAA;IACvB,wCAAwC;IACxC,QAAQ,CAAC,EAAE,MAAM,CAAA;IACjB,iCAAiC;IACjC,OAAO,CAAC,EAAE,OAAO,CAAA;IACjB,kCAAkC;IAClC,WAAW,CAAC,EAAE,OAAO,CAAA;IACrB,4DAA4D;IAE5D,mFAAmF;IACnF,YAAY,CAAC,EACT,GAAG,GACH,GAAG,GACH,GAAG,GACH,GAAG,GACH,GAAG,GACH,GAAG,GACH,GAAG,GACH,GAAG,GACH,GAAG,GACH,GAAG,GACH,GAAG,GACH,GAAG,GACH,GAAG,GACH,GAAG,GACH,GAAG,GACH,GAAG,GACH,GAAG,GACH,GAAG,GACH,GAAG,GACH,GAAG,GACH,GAAG,GACH,GAAG,GACH,GAAG,GACH,GAAG,GACH,GAAG,GACH,GAAG,CAAA;CACR,CAAA;AAED,MAAM,MAAM,iBAAiB,GAAG;IAAE,IAAI,EAAE,MAAM,CAAC;IAAC,MAAM,EAAE,aAAa,CAAA;CAAE,CAAA;AAEvE,yCAAyC;AACzC,eAAO,MAAM,oBAAoB,OAE3B,WAAW,GAAG,IAAI,UAEd,mBAAmB;IAyEzB,+DAA+D;;IAE/D,mCAAmC;4BACX,mBAAmB;IAQ3C;;;OAGG;iCAC0B,MAAM;IAMnC;;;OAGG;uBACgB,mBAAmB;IAyEtC,uEAAuE;uBACpD,iBAAiB;IAapC,iCAAiC;qBAChB,iBAAiB;IAalC,8CAA8C;;;;;;;EAIjD,CAAA"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/Modal/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,IAAI,cAAc,EAAE,MAAM,sBAAsB,CAAA;AAChE,cAAc,oBAAoB,CAAA"}
|
|
@@ -1,113 +0,0 @@
|
|
|
1
|
-
import { defineComponent as U, computed as h, resolveComponent as A, unref as s, openBlock as p, createBlock as k, withCtx as a, createElementBlock as S, Fragment as L, renderList as N, createElementVNode as d, normalizeClass as R, createVNode as i, toDisplayString as m, withModifiers as V, createCommentVNode as j } from "vue";
|
|
2
|
-
import { useWorkspace as E } from "../../store/workspace.js";
|
|
3
|
-
import { ScalarDropdown as I, ScalarDropdownItem as g, ScalarIcon as C, ScalarDropdownDivider as M } from "@scalar/components";
|
|
4
|
-
const O = { class: "whitespace-nowrap text-ellipsis overflow-hidden" }, W = { class: "flex items-center justify-center h-4 w-4" }, $ = /* @__PURE__ */ d("span", null, "Add Server", -1), F = {
|
|
5
|
-
key: 1,
|
|
6
|
-
class: "flex whitespace-nowrap items-center font-code lg:text-sm text-xs"
|
|
7
|
-
}, K = /* @__PURE__ */ U({
|
|
8
|
-
__name: "AddressBarServer",
|
|
9
|
-
setup(q) {
|
|
10
|
-
const {
|
|
11
|
-
activeCollection: l,
|
|
12
|
-
activeWorkspace: y,
|
|
13
|
-
isReadOnly: b,
|
|
14
|
-
servers: f,
|
|
15
|
-
collectionMutators: z
|
|
16
|
-
} = E(), u = h(
|
|
17
|
-
() => {
|
|
18
|
-
var e, t;
|
|
19
|
-
return (t = (e = l.value) == null ? void 0 : e.spec.serverUids) == null ? void 0 : t.map((n) => ({
|
|
20
|
-
id: n,
|
|
21
|
-
label: f[n].url
|
|
22
|
-
}));
|
|
23
|
-
}
|
|
24
|
-
), B = (e) => {
|
|
25
|
-
l.value && z.edit(
|
|
26
|
-
l.value.uid,
|
|
27
|
-
"selectedServerUid",
|
|
28
|
-
e
|
|
29
|
-
);
|
|
30
|
-
}, D = (e) => {
|
|
31
|
-
var t;
|
|
32
|
-
return ((t = l.value) == null ? void 0 : t.selectedServerUid) === e;
|
|
33
|
-
}, v = h(() => {
|
|
34
|
-
var c;
|
|
35
|
-
const e = f[((c = l.value) == null ? void 0 : c.selectedServerUid) ?? ""], t = e == null ? void 0 : e.url, n = /{\s*([\w.-]+)\s*}/g;
|
|
36
|
-
return t == null ? void 0 : t.replace(n, (r, x) => {
|
|
37
|
-
var _, w;
|
|
38
|
-
const o = (_ = e == null ? void 0 : e.variables) == null ? void 0 : _[x];
|
|
39
|
-
return (o == null ? void 0 : o.value) || (o == null ? void 0 : o.default) || ((w = o == null ? void 0 : o.enum) == null ? void 0 : w[0]) || r;
|
|
40
|
-
});
|
|
41
|
-
});
|
|
42
|
-
return (e, t) => {
|
|
43
|
-
var c;
|
|
44
|
-
const n = A("RouterLink");
|
|
45
|
-
return u.value && u.value.length > 0 && !s(b) ? (p(), k(s(I), {
|
|
46
|
-
key: 0,
|
|
47
|
-
options: u.value,
|
|
48
|
-
resize: "",
|
|
49
|
-
teleport: "#scalar-client",
|
|
50
|
-
value: (c = s(l)) == null ? void 0 : c.selectedServerUid
|
|
51
|
-
}, {
|
|
52
|
-
items: a(() => [
|
|
53
|
-
(p(!0), S(L, null, N(u.value, (r) => (p(), k(s(g), {
|
|
54
|
-
key: r.id,
|
|
55
|
-
class: "flex !gap-1.5 group font-code text-xxs whitespace-nowrap text-ellipsis overflow-hidden",
|
|
56
|
-
value: r.id,
|
|
57
|
-
onClick: (x) => B(r.id)
|
|
58
|
-
}, {
|
|
59
|
-
default: a(() => [
|
|
60
|
-
d("div", {
|
|
61
|
-
class: R([
|
|
62
|
-
"flex size-4 items-center justify-center rounded-full p-[3px] group-hover:shadow-border",
|
|
63
|
-
D(r.id) ? "bg-blue text-b-1" : "text-transparent"
|
|
64
|
-
])
|
|
65
|
-
}, [
|
|
66
|
-
i(s(C), {
|
|
67
|
-
class: "relative top-[0.5px] size-2.5",
|
|
68
|
-
icon: "Checkmark",
|
|
69
|
-
thickness: "3.5"
|
|
70
|
-
})
|
|
71
|
-
], 2),
|
|
72
|
-
d("span", O, m(r.label), 1)
|
|
73
|
-
]),
|
|
74
|
-
_: 2
|
|
75
|
-
}, 1032, ["value", "onClick"]))), 128)),
|
|
76
|
-
i(s(M)),
|
|
77
|
-
i(s(g), null, {
|
|
78
|
-
default: a(() => [
|
|
79
|
-
i(n, {
|
|
80
|
-
class: "font-code text-xxs flex items-center gap-1.5",
|
|
81
|
-
to: `/workspace/${s(y).uid}/servers`
|
|
82
|
-
}, {
|
|
83
|
-
default: a(() => [
|
|
84
|
-
d("div", W, [
|
|
85
|
-
i(s(C), {
|
|
86
|
-
class: "h-2.5",
|
|
87
|
-
icon: "Add"
|
|
88
|
-
})
|
|
89
|
-
]),
|
|
90
|
-
$
|
|
91
|
-
]),
|
|
92
|
-
_: 1
|
|
93
|
-
}, 8, ["to"])
|
|
94
|
-
]),
|
|
95
|
-
_: 1
|
|
96
|
-
})
|
|
97
|
-
]),
|
|
98
|
-
default: a(() => [
|
|
99
|
-
d("button", {
|
|
100
|
-
class: "font-code lg:text-sm text-xs whitespace-nowrap border border-b-3 border-solid rounded px-1.5 text-c-2 z-[1]",
|
|
101
|
-
type: "button",
|
|
102
|
-
onClick: t[0] || (t[0] = V(() => {
|
|
103
|
-
}, ["stop"]))
|
|
104
|
-
}, m(v.value), 1)
|
|
105
|
-
]),
|
|
106
|
-
_: 1
|
|
107
|
-
}, 8, ["options", "value"])) : v.value ? (p(), S("div", F, m(v.value), 1)) : j("", !0);
|
|
108
|
-
};
|
|
109
|
-
}
|
|
110
|
-
});
|
|
111
|
-
export {
|
|
112
|
-
K as default
|
|
113
|
-
};
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import { type ModalState } from '@scalar/components';
|
|
2
|
-
declare const _default: import("vue").DefineComponent<__VLS_TypePropsToOption<{
|
|
3
|
-
state: ModalState;
|
|
4
|
-
}>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_TypePropsToOption<{
|
|
5
|
-
state: ModalState;
|
|
6
|
-
}>>>, {}, {}>;
|
|
7
|
-
export default _default;
|
|
8
|
-
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
9
|
-
type __VLS_TypePropsToOption<T> = {
|
|
10
|
-
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
11
|
-
type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
12
|
-
} : {
|
|
13
|
-
type: import('vue').PropType<T[K]>;
|
|
14
|
-
required: true;
|
|
15
|
-
};
|
|
16
|
-
};
|
|
17
|
-
//# sourceMappingURL=CommandPalette.vue.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"CommandPalette.vue.d.ts","sourceRoot":"","sources":["../../../src/components/CommandPalette/CommandPalette.vue"],"names":[],"mappings":"AA4TA,OAAO,EAAa,KAAK,UAAU,EAAc,MAAM,oBAAoB,CAAA;;WAclE,UAAU;;WAAV,UAAU;;AAgYnB,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"}
|
|
@@ -1,185 +0,0 @@
|
|
|
1
|
-
import { defineComponent as I, ref as f, computed as B, openBlock as r, createElementBlock as s, Fragment as m, withDirectives as p, createElementVNode as a, vShow as A, createVNode as y, unref as g, vModelText as D, renderList as $, toDisplayString as E, normalizeClass as F, createTextVNode as q, createBlock as M, resolveDynamicComponent as N } from "vue";
|
|
2
|
-
import { ScalarIcon as L } from "@scalar/components";
|
|
3
|
-
import { useMagicKeys as P, whenever as C } from "@vueuse/core";
|
|
4
|
-
import { useRouter as T } from "vue-router";
|
|
5
|
-
import U from "./CommandPaletteCollection.vue.js";
|
|
6
|
-
import G from "./CommandPaletteExample.vue.js";
|
|
7
|
-
import H from "./CommandPaletteFolder.vue.js";
|
|
8
|
-
import K from "./CommandPaletteImport.vue.js";
|
|
9
|
-
import Q from "./CommandPaletteRequest.vue.js";
|
|
10
|
-
const W = { class: "commandmenu" }, j = { class: "bg-b-2 flex items-center rounded mb-2 pl-2 focus-within:bg-b-1 focus-within:shadow-border" }, J = { for: "commandmenu" }, O = ["onClick"], se = /* @__PURE__ */ I({
|
|
11
|
-
__name: "CommandPalette",
|
|
12
|
-
props: {
|
|
13
|
-
state: {}
|
|
14
|
-
},
|
|
15
|
-
setup(V) {
|
|
16
|
-
const i = V, h = T(), z = {
|
|
17
|
-
"Import Collection": K,
|
|
18
|
-
"Create Request": Q,
|
|
19
|
-
"Add Folder": H,
|
|
20
|
-
"Create Collection": U,
|
|
21
|
-
"Add Example": G
|
|
22
|
-
}, b = [
|
|
23
|
-
{
|
|
24
|
-
label: "Add to Request Sidebar",
|
|
25
|
-
commands: [
|
|
26
|
-
{
|
|
27
|
-
name: "Create Request",
|
|
28
|
-
icon: "ExternalLink"
|
|
29
|
-
},
|
|
30
|
-
{
|
|
31
|
-
name: "Import Collection",
|
|
32
|
-
icon: "Import"
|
|
33
|
-
},
|
|
34
|
-
{
|
|
35
|
-
name: "Add Folder",
|
|
36
|
-
icon: "Folder"
|
|
37
|
-
},
|
|
38
|
-
{
|
|
39
|
-
name: "Create Collection",
|
|
40
|
-
icon: "Collection"
|
|
41
|
-
},
|
|
42
|
-
{
|
|
43
|
-
name: "Add Example",
|
|
44
|
-
icon: "Example"
|
|
45
|
-
}
|
|
46
|
-
]
|
|
47
|
-
},
|
|
48
|
-
{
|
|
49
|
-
label: "More Actions",
|
|
50
|
-
commands: [
|
|
51
|
-
{
|
|
52
|
-
name: "Add Server",
|
|
53
|
-
icon: "Brackets",
|
|
54
|
-
overloadAction: () => h.push("/servers")
|
|
55
|
-
},
|
|
56
|
-
{
|
|
57
|
-
name: "Add Environment",
|
|
58
|
-
icon: "Server",
|
|
59
|
-
overloadAction: () => h.push("/environment")
|
|
60
|
-
},
|
|
61
|
-
{
|
|
62
|
-
name: "Add Cookie",
|
|
63
|
-
icon: "Cookie",
|
|
64
|
-
overloadAction: () => h.push("/cookies")
|
|
65
|
-
}
|
|
66
|
-
]
|
|
67
|
-
}
|
|
68
|
-
], d = P(), c = f(""), u = f(""), t = f(0), w = f([]), k = B(
|
|
69
|
-
() => b.reduce((e, n) => {
|
|
70
|
-
const l = n.commands.filter(
|
|
71
|
-
(v) => v.name.toLowerCase().includes(c.value.toLowerCase())
|
|
72
|
-
);
|
|
73
|
-
return [...e, ...l];
|
|
74
|
-
}, [])
|
|
75
|
-
);
|
|
76
|
-
C(d.escape, () => {
|
|
77
|
-
i.state.open && i.state.hide();
|
|
78
|
-
});
|
|
79
|
-
function S() {
|
|
80
|
-
i.state.hide(), c.value = "", u.value = "";
|
|
81
|
-
}
|
|
82
|
-
return C(d.enter, () => {
|
|
83
|
-
var n;
|
|
84
|
-
if (!i.state.open || !window)
|
|
85
|
-
return;
|
|
86
|
-
const e = k.value[t.value];
|
|
87
|
-
((n = e == null ? void 0 : e.overloadAction) == null ? void 0 : n.call(e)) ?? (u.value = e.name);
|
|
88
|
-
}), C(d.ArrowDown, () => {
|
|
89
|
-
var e;
|
|
90
|
-
i.state.open && window && (t.value < k.value.length - 1 ? t.value++ : t.value = 0, (e = w.value[t.value]) == null || e.scrollIntoView({
|
|
91
|
-
behavior: "smooth",
|
|
92
|
-
block: "center"
|
|
93
|
-
}));
|
|
94
|
-
}), C(d.ArrowUp, () => {
|
|
95
|
-
var e;
|
|
96
|
-
i.state.open && window && (t.value > 0 ? t.value-- : t.value = k.value.length - 1, (e = w.value[t.value]) == null || e.scrollIntoView({
|
|
97
|
-
behavior: "smooth",
|
|
98
|
-
block: "center"
|
|
99
|
-
}));
|
|
100
|
-
}), (e, n) => (r(), s(m, null, [
|
|
101
|
-
p(a("div", {
|
|
102
|
-
class: "commandmenu-clickout",
|
|
103
|
-
onClick: n[0] || (n[0] = (l) => S())
|
|
104
|
-
}, null, 512), [
|
|
105
|
-
[A, e.state.open]
|
|
106
|
-
]),
|
|
107
|
-
p(a("div", W, [
|
|
108
|
-
u.value ? (r(), s(m, { key: 1 }, [
|
|
109
|
-
a("button", {
|
|
110
|
-
class: "absolute p-1 hover:bg-b-3 rounded text-c-3 active:text-c-1 m-1.5 z-10",
|
|
111
|
-
type: "button",
|
|
112
|
-
onClick: n[2] || (n[2] = (l) => u.value = "")
|
|
113
|
-
}, [
|
|
114
|
-
y(g(L), {
|
|
115
|
-
icon: "ChevronLeft",
|
|
116
|
-
size: "sm"
|
|
117
|
-
})
|
|
118
|
-
]),
|
|
119
|
-
(r(), M(N(z[u.value]), { onClose: S }, null, 32))
|
|
120
|
-
], 64)) : (r(), s(m, { key: 0 }, [
|
|
121
|
-
a("div", j, [
|
|
122
|
-
a("label", J, [
|
|
123
|
-
y(g(L), {
|
|
124
|
-
class: "text-c-1 mr-2.5",
|
|
125
|
-
icon: "Search",
|
|
126
|
-
size: "sm",
|
|
127
|
-
thickness: "1.5"
|
|
128
|
-
})
|
|
129
|
-
]),
|
|
130
|
-
p(a("input", {
|
|
131
|
-
id: "commandmenu",
|
|
132
|
-
"onUpdate:modelValue": n[1] || (n[1] = (l) => c.value = l),
|
|
133
|
-
class: "w-full rounded bg-none border-none py-1.5 text-sm focus:outline-none",
|
|
134
|
-
placeholder: "Search commands...",
|
|
135
|
-
type: "text"
|
|
136
|
-
}, null, 512), [
|
|
137
|
-
[D, c.value]
|
|
138
|
-
])
|
|
139
|
-
]),
|
|
140
|
-
(r(), s(m, null, $(b, (l, v) => (r(), s(m, {
|
|
141
|
-
key: l.label
|
|
142
|
-
}, [
|
|
143
|
-
p(a("div", { class: "text-c-3 font-medium text-xs mt-2" }, E(l.label), 513), [
|
|
144
|
-
[
|
|
145
|
-
A,
|
|
146
|
-
l.commands.filter(
|
|
147
|
-
(o) => o.name.toLowerCase().includes(c.value.toLowerCase())
|
|
148
|
-
).length > 0
|
|
149
|
-
]
|
|
150
|
-
]),
|
|
151
|
-
(r(!0), s(m, null, $(l.commands.filter(
|
|
152
|
-
(o) => o.name.toLowerCase().includes(c.value.toLowerCase())
|
|
153
|
-
), (o, _) => (r(), s("div", {
|
|
154
|
-
key: o.name,
|
|
155
|
-
ref_for: !0,
|
|
156
|
-
ref: (x) => {
|
|
157
|
-
x && (w.value[_] = x);
|
|
158
|
-
},
|
|
159
|
-
class: F(["commandmenu-item text-sm flex items-center py-1.5 px-2 rounded hover:bg-b-2 cursor-pointer", {
|
|
160
|
-
"bg-b-2": v > 0 ? t.value === _ + b[v - 1].commands.length : t.value === _
|
|
161
|
-
}]),
|
|
162
|
-
onClick: (x) => {
|
|
163
|
-
var R;
|
|
164
|
-
return ((R = o == null ? void 0 : o.overloadAction) == null ? void 0 : R.call(o)) ?? (u.value = o.name);
|
|
165
|
-
}
|
|
166
|
-
}, [
|
|
167
|
-
y(g(L), {
|
|
168
|
-
class: "text-c-1 mr-2.5",
|
|
169
|
-
icon: o.icon,
|
|
170
|
-
size: "md",
|
|
171
|
-
thickness: "1.5"
|
|
172
|
-
}, null, 8, ["icon"]),
|
|
173
|
-
q(" " + E(o.name), 1)
|
|
174
|
-
], 10, O))), 128))
|
|
175
|
-
], 64))), 64))
|
|
176
|
-
], 64))
|
|
177
|
-
], 512), [
|
|
178
|
-
[A, e.state.open]
|
|
179
|
-
])
|
|
180
|
-
], 64));
|
|
181
|
-
}
|
|
182
|
-
});
|
|
183
|
-
export {
|
|
184
|
-
se as default
|
|
185
|
-
};
|
package/dist/main.d.ts
DELETED
package/dist/main.d.ts.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"main.d.ts","sourceRoot":"","sources":["../src/main.ts"],"names":[],"mappings":""}
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|