@scalar/api-client 2.1.19 → 2.1.21
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 +20 -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 +77 -79
- package/dist/components/AddressBar/AddressBarServer.vue.js +23 -23
- package/dist/components/CommandPalette/CommandPaletteServer.vue.d.ts.map +1 -1
- package/dist/components/CommandPalette/CommandPaletteServer.vue.js +62 -45
- package/dist/components/CommandPalette/TheCommandPalette.vue.d.ts +6 -0
- 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 +89 -91
- package/dist/components/DataTable/DataTableInput.vue.d.ts +1 -1
- package/dist/components/DataTable/DataTableInput.vue.d.ts.map +1 -1
- package/dist/components/ImportCollection/ImportCollectionModal.vue.d.ts.map +1 -1
- package/dist/components/ImportCollection/ImportCollectionModal.vue.js +29 -32
- package/dist/components/TopNav/TopNav.vue.d.ts.map +1 -1
- package/dist/components/TopNav/TopNav.vue.js +3 -3
- package/dist/components/TopNav/TopNav.vue2.js +41 -40
- package/dist/components/ViewLayout/ViewLayoutCollapse.vue.d.ts.map +1 -1
- package/dist/components/ViewLayout/ViewLayoutCollapse.vue.js +1 -1
- package/dist/layouts/App/ApiClientApp.vue.d.ts.map +1 -1
- package/dist/layouts/App/ApiClientApp.vue.js +38 -38
- package/dist/layouts/App/create-api-client-app.d.ts +33 -26
- package/dist/layouts/App/create-api-client-app.d.ts.map +1 -1
- package/dist/layouts/Modal/ApiClientModal.vue.js +1 -1
- package/dist/layouts/Modal/ApiClientModal.vue2.js +15 -15
- package/dist/layouts/Modal/create-api-client-modal.d.ts +66 -52
- 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 +30 -30
- package/dist/layouts/Web/create-api-client-web.d.ts +33 -26
- package/dist/layouts/Web/create-api-client-web.d.ts.map +1 -1
- package/dist/libs/create-client.d.ts +33 -26
- package/dist/libs/create-client.d.ts.map +1 -1
- package/dist/libs/event-bus.d.ts +41 -0
- package/dist/libs/event-bus.d.ts.map +1 -0
- package/dist/libs/event-bus.js +32 -0
- package/dist/libs/{event-busses/hot-keys-bus.d.ts → hot-keys.d.ts} +6 -7
- package/dist/libs/hot-keys.d.ts.map +1 -0
- package/dist/libs/hot-keys.js +45 -0
- package/dist/libs/index.d.ts +3 -1
- package/dist/libs/index.d.ts.map +1 -1
- package/dist/libs/index.js +31 -33
- package/dist/libs/send-request.d.ts +4 -1
- package/dist/libs/send-request.d.ts.map +1 -1
- package/dist/libs/send-request.js +103 -103
- package/dist/store/collections.d.ts +4 -4
- package/dist/store/events.d.ts +29 -0
- package/dist/store/events.d.ts.map +1 -0
- package/dist/store/events.js +31 -0
- package/dist/store/request-example.d.ts +2 -2
- package/dist/store/requests.d.ts +4 -4
- package/dist/store/security-schemes.d.ts +4 -4
- package/dist/store/servers.d.ts +4 -4
- package/dist/store/store.d.ts +66 -52
- package/dist/store/store.d.ts.map +1 -1
- package/dist/store/store.js +75 -73
- 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/Request/Request.vue.d.ts.map +1 -1
- package/dist/views/Request/Request.vue.js +1 -1
- package/dist/views/Request/Request.vue2.js +63 -63
- package/dist/views/Request/RequestSidebar.vue.d.ts.map +1 -1
- package/dist/views/Request/RequestSidebar.vue.js +1 -1
- package/dist/views/Request/RequestSidebar.vue2.js +101 -102
- 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 +76 -76
- package/dist/views/Request/RequestSidebarItemMenu.vue.d.ts.map +1 -1
- package/dist/views/Request/RequestSidebarItemMenu.vue.js +4 -4
- package/dist/views/Request/RequestSidebarItemMenu.vue2.js +33 -34
- package/dist/views/Request/ResponseSection/ResponseBodyVirtual.vue.d.ts +16 -0
- package/dist/views/Request/ResponseSection/ResponseBodyVirtual.vue.d.ts.map +1 -0
- package/dist/views/Request/ResponseSection/ResponseBodyVirtual.vue.js +31 -0
- package/dist/views/Request/ResponseSection/ResponseBodyVirtual.vue3.js +5 -0
- package/dist/views/Request/ResponseSection/ResponseEmpty.vue.d.ts.map +1 -1
- package/dist/views/Request/ResponseSection/ResponseEmpty.vue.js +1 -1
- package/dist/views/Request/ResponseSection/ResponseEmpty.vue2.js +30 -33
- package/dist/views/Request/ResponseSection/ResponseLoadingOverlay.vue.d.ts.map +1 -1
- package/dist/views/Request/ResponseSection/ResponseLoadingOverlay.vue.js +3 -3
- package/dist/views/Request/ResponseSection/ResponseLoadingOverlay.vue2.js +17 -18
- package/dist/views/Request/ResponseSection/ResponseMetaInformation.vue.d.ts.map +1 -1
- package/dist/views/Request/ResponseSection/ResponseMetaInformation.vue.js +20 -20
- package/dist/views/Request/ResponseSection/ResponseSection.vue.d.ts.map +1 -1
- package/dist/views/Request/ResponseSection/ResponseSection.vue.js +68 -56
- package/dist/views/Request/components/WorkspaceDropdown.vue.js +29 -30
- package/package.json +6 -6
- package/dist/libs/event-busses/cancel-request-bus.d.ts +0 -2
- package/dist/libs/event-busses/cancel-request-bus.d.ts.map +0 -1
- package/dist/libs/event-busses/cancel-request-bus.js +0 -5
- package/dist/libs/event-busses/command-palette-bus.d.ts +0 -14
- package/dist/libs/event-busses/command-palette-bus.d.ts.map +0 -1
- package/dist/libs/event-busses/command-palette-bus.js +0 -5
- package/dist/libs/event-busses/execute-request-bus.d.ts +0 -2
- package/dist/libs/event-busses/execute-request-bus.d.ts.map +0 -1
- package/dist/libs/event-busses/execute-request-bus.js +0 -5
- package/dist/libs/event-busses/hot-keys-bus.d.ts.map +0 -1
- package/dist/libs/event-busses/hot-keys-bus.js +0 -47
- package/dist/libs/event-busses/index.d.ts +0 -6
- package/dist/libs/event-busses/index.d.ts.map +0 -1
- package/dist/libs/event-busses/index.js +0 -15
- package/dist/libs/event-busses/request-status-bus.d.ts +0 -5
- package/dist/libs/event-busses/request-status-bus.d.ts.map +0 -1
- package/dist/libs/event-busses/request-status-bus.js +0 -5
|
@@ -1,33 +1,31 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import { useModal as
|
|
3
|
-
import { useRouter as
|
|
4
|
-
import
|
|
5
|
-
import
|
|
6
|
-
import
|
|
7
|
-
import
|
|
8
|
-
import
|
|
9
|
-
import
|
|
10
|
-
import
|
|
11
|
-
import {
|
|
12
|
-
|
|
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 = {
|
|
1
|
+
import { defineComponent as q, ref as u, computed as K, watch as F, onMounted as U, onBeforeUnmount as G, openBlock as a, createElementBlock as r, Fragment as d, withDirectives as k, createElementVNode as m, vShow as y, unref as f, createVNode as g, withKeys as $, withModifiers as S, vModelText as Q, renderList as B, toDisplayString as M, normalizeClass as j, createTextVNode as J, createCommentVNode as O, createBlock as X, resolveDynamicComponent as Y, mergeProps as Z, nextTick as T } from "vue";
|
|
2
|
+
import { useModal as ee, ScalarIcon as A } from "@scalar/components";
|
|
3
|
+
import { useRouter as oe } from "vue-router";
|
|
4
|
+
import te from "./CommandPaletteCollection.vue.js";
|
|
5
|
+
import ne from "./CommandPaletteExample.vue.js";
|
|
6
|
+
import ae from "./CommandPaletteImport.vue.js";
|
|
7
|
+
import le from "./CommandPaletteRequest.vue.js";
|
|
8
|
+
import se from "./CommandPaletteServer.vue.js";
|
|
9
|
+
import re from "./CommandPaletteTag.vue.js";
|
|
10
|
+
import me from "./CommandPaletteWorkspace.vue.js";
|
|
11
|
+
import { useWorkspace as ce } from "../../store/store.js";
|
|
12
|
+
const ie = { class: "commandmenu z-overlay custom-scroll" }, ue = { class: "bg-b-2 flex items-center rounded-md mb-2.5 pl-2 focus-within:bg-b-1 focus-within:shadow-border" }, de = { for: "commandmenu" }, fe = ["onKeydown"], pe = ["onClick"], ve = {
|
|
15
13
|
key: 0,
|
|
16
14
|
class: "text-c-3 text-center text-sm p-2 pt-3"
|
|
17
|
-
},
|
|
15
|
+
}, Ce = {
|
|
18
16
|
name: "TheCommandPalette"
|
|
19
|
-
},
|
|
20
|
-
"Import Collection":
|
|
21
|
-
"Create Request":
|
|
22
|
-
"Create Workspace":
|
|
23
|
-
"Add Tag":
|
|
24
|
-
"Add Server":
|
|
25
|
-
"Create Collection":
|
|
26
|
-
"Add Example":
|
|
27
|
-
},
|
|
28
|
-
...
|
|
29
|
-
setup(
|
|
30
|
-
const
|
|
17
|
+
}, he = {
|
|
18
|
+
"Import Collection": ae,
|
|
19
|
+
"Create Request": le,
|
|
20
|
+
"Create Workspace": me,
|
|
21
|
+
"Add Tag": re,
|
|
22
|
+
"Add Server": se,
|
|
23
|
+
"Create Collection": te,
|
|
24
|
+
"Add Example": ne
|
|
25
|
+
}, Re = /* @__PURE__ */ q({
|
|
26
|
+
...Ce,
|
|
27
|
+
setup(ke) {
|
|
28
|
+
const D = [
|
|
31
29
|
{
|
|
32
30
|
label: "",
|
|
33
31
|
commands: [
|
|
@@ -76,92 +74,92 @@ const ue = { class: "commandmenu z-overlay custom-scroll" }, de = { class: "bg-b
|
|
|
76
74
|
}
|
|
77
75
|
]
|
|
78
76
|
}
|
|
79
|
-
], c =
|
|
80
|
-
() =>
|
|
77
|
+
], c = ee(), { push: V } = oe(), { activeWorkspace: W, events: p } = ce(), b = u(), l = u(""), s = u(null), i = u(-1), L = u([]), v = K(
|
|
78
|
+
() => D.reduce((e, o) => {
|
|
81
79
|
const t = o.commands.filter(
|
|
82
80
|
(n) => n.name.toLowerCase().includes(l.value.toLowerCase())
|
|
83
81
|
);
|
|
84
82
|
return [...e, ...t];
|
|
85
83
|
}, [])
|
|
86
|
-
),
|
|
84
|
+
), C = () => {
|
|
87
85
|
c.hide(), l.value = "", s.value = null, i.value = -1;
|
|
88
|
-
},
|
|
89
|
-
l.value !== "" && (e == null || e.preventDefault()), s.value = null,
|
|
86
|
+
}, N = (e) => {
|
|
87
|
+
l.value !== "" && (e == null || e.preventDefault()), s.value = null, T(() => {
|
|
90
88
|
var o;
|
|
91
|
-
return (o =
|
|
89
|
+
return (o = x.value) == null ? void 0 : o.focus();
|
|
92
90
|
});
|
|
93
|
-
},
|
|
94
|
-
"path" in e ? (
|
|
95
|
-
},
|
|
91
|
+
}, R = (e) => {
|
|
92
|
+
"path" in e ? (V(`/workspace/${W.value.uid}${e.path}`), C()) : s.value = e.name;
|
|
93
|
+
}, x = u(), P = ({
|
|
96
94
|
commandName: e,
|
|
97
95
|
metaData: o
|
|
98
96
|
} = {}) => {
|
|
99
|
-
s.value = e ?? null,
|
|
97
|
+
s.value = e ?? null, b.value = o, c.show(), T(() => {
|
|
100
98
|
var t;
|
|
101
|
-
return (t =
|
|
99
|
+
return (t = x.value) == null ? void 0 : t.focus();
|
|
102
100
|
});
|
|
103
101
|
};
|
|
104
|
-
|
|
105
|
-
e &&
|
|
102
|
+
F(l, (e) => {
|
|
103
|
+
e && v.value.length > 0 && (i.value = 0);
|
|
106
104
|
});
|
|
107
|
-
const
|
|
108
|
-
var
|
|
105
|
+
const z = (e, o) => {
|
|
106
|
+
var h;
|
|
109
107
|
if (!c.open) return;
|
|
110
108
|
o.preventDefault();
|
|
111
|
-
const t = e === "up" ? -1 : 1, n =
|
|
112
|
-
i.value = (i.value + t + n) % n, (
|
|
109
|
+
const t = e === "up" ? -1 : 1, n = v.value.length;
|
|
110
|
+
i.value = (i.value + t + n) % n, (h = L.value[i.value]) == null || h.scrollIntoView({
|
|
113
111
|
behavior: "smooth",
|
|
114
112
|
block: "nearest"
|
|
115
113
|
});
|
|
116
|
-
},
|
|
117
|
-
() =>
|
|
118
|
-
),
|
|
119
|
-
!
|
|
120
|
-
},
|
|
121
|
-
c.open && e.closeModal &&
|
|
114
|
+
}, _ = K(
|
|
115
|
+
() => v.value[i.value]
|
|
116
|
+
), H = (e) => {
|
|
117
|
+
!_.value || s.value || (e.preventDefault(), e.stopPropagation(), R(_.value));
|
|
118
|
+
}, E = (e) => {
|
|
119
|
+
c.open && e != null && e.closeModal && C();
|
|
122
120
|
};
|
|
123
|
-
return
|
|
124
|
-
|
|
125
|
-
}),
|
|
126
|
-
|
|
121
|
+
return U(() => {
|
|
122
|
+
p.commandPalette.on(P), p.hotKeys.on(E);
|
|
123
|
+
}), G(() => {
|
|
124
|
+
p.commandPalette.off(P), p.hotKeys.off(E);
|
|
127
125
|
}), (e, o) => (a(), r(d, null, [
|
|
128
|
-
|
|
126
|
+
k(m("div", {
|
|
129
127
|
class: "commandmenu-clickout z-overlay",
|
|
130
|
-
onClick: o[0] || (o[0] = (t) =>
|
|
128
|
+
onClick: o[0] || (o[0] = (t) => C())
|
|
131
129
|
}, null, 512), [
|
|
132
|
-
[
|
|
130
|
+
[y, f(c).open]
|
|
133
131
|
]),
|
|
134
|
-
|
|
132
|
+
k(m("div", ie, [
|
|
135
133
|
s.value ? (a(), r(d, { key: 1 }, [
|
|
136
134
|
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.
|
|
135
|
+
class: "absolute p-0.75 hover:bg-b-3 rounded text-c-3 active:text-c-1 mr-1.5 my-1.25 z-1",
|
|
138
136
|
type: "button",
|
|
139
137
|
onClick: o[4] || (o[4] = (t) => s.value = null)
|
|
140
138
|
}, [
|
|
141
|
-
|
|
139
|
+
g(f(A), {
|
|
142
140
|
icon: "ChevronLeft",
|
|
143
141
|
size: "md",
|
|
144
142
|
thickness: "1.5"
|
|
145
143
|
})
|
|
146
144
|
]),
|
|
147
|
-
(a(), Y(
|
|
148
|
-
onBack: o[5] || (o[5] = (t) =>
|
|
149
|
-
onClose:
|
|
145
|
+
(a(), X(Y(he[s.value]), Z(b.value ? { metaData: b.value } : {}, {
|
|
146
|
+
onBack: o[5] || (o[5] = (t) => N(t)),
|
|
147
|
+
onClose: C
|
|
150
148
|
}), null, 16))
|
|
151
149
|
], 64)) : (a(), r(d, { key: 0 }, [
|
|
152
|
-
m("div",
|
|
153
|
-
m("label",
|
|
154
|
-
|
|
150
|
+
m("div", ue, [
|
|
151
|
+
m("label", de, [
|
|
152
|
+
g(f(A), {
|
|
155
153
|
class: "text-c-2 mr-2.5",
|
|
156
154
|
icon: "Search",
|
|
157
155
|
size: "md",
|
|
158
156
|
thickness: "1.5"
|
|
159
157
|
})
|
|
160
158
|
]),
|
|
161
|
-
|
|
159
|
+
k(m("input", {
|
|
162
160
|
id: "commandmenu",
|
|
163
161
|
ref_key: "commandInputRef",
|
|
164
|
-
ref:
|
|
162
|
+
ref: x,
|
|
165
163
|
"onUpdate:modelValue": o[1] || (o[1] = (t) => l.value = t),
|
|
166
164
|
autocomplete: "off",
|
|
167
165
|
autofocus: "",
|
|
@@ -169,59 +167,59 @@ const ue = { class: "commandmenu z-overlay custom-scroll" }, de = { class: "bg-b
|
|
|
169
167
|
placeholder: "Search commands...",
|
|
170
168
|
type: "text",
|
|
171
169
|
onKeydown: [
|
|
172
|
-
o[2] || (o[2] =
|
|
173
|
-
|
|
174
|
-
o[3] || (o[3] =
|
|
170
|
+
o[2] || (o[2] = $(S((t) => z("down", t), ["stop"]), ["down"])),
|
|
171
|
+
$(S(H, ["stop"]), ["enter"]),
|
|
172
|
+
o[3] || (o[3] = $(S((t) => z("up", t), ["stop"]), ["up"]))
|
|
175
173
|
]
|
|
176
|
-
}, null, 40,
|
|
177
|
-
[
|
|
174
|
+
}, null, 40, fe), [
|
|
175
|
+
[Q, l.value]
|
|
178
176
|
])
|
|
179
177
|
]),
|
|
180
|
-
(a(), r(d, null,
|
|
178
|
+
(a(), r(d, null, B(D, (t) => (a(), r(d, {
|
|
181
179
|
key: t.label
|
|
182
180
|
}, [
|
|
183
|
-
|
|
181
|
+
k(m("div", { class: "text-c-3 font-medium text-xs px-2 mb-1 mt-2" }, M(t.label), 513), [
|
|
184
182
|
[
|
|
185
|
-
|
|
183
|
+
y,
|
|
186
184
|
t.commands.filter(
|
|
187
185
|
(n) => n.name.toLowerCase().includes(l.value.toLowerCase())
|
|
188
186
|
).length > 0
|
|
189
187
|
]
|
|
190
188
|
]),
|
|
191
|
-
(a(!0), r(d, null,
|
|
189
|
+
(a(!0), r(d, null, B(t.commands.filter(
|
|
192
190
|
(n) => n.name.toLowerCase().includes(l.value.toLowerCase())
|
|
193
|
-
), (n,
|
|
194
|
-
var
|
|
191
|
+
), (n, h) => {
|
|
192
|
+
var I;
|
|
195
193
|
return a(), r("div", {
|
|
196
194
|
key: n.name,
|
|
197
195
|
ref_for: !0,
|
|
198
|
-
ref: (
|
|
199
|
-
|
|
196
|
+
ref: (w) => {
|
|
197
|
+
w && (L.value[h] = w);
|
|
200
198
|
},
|
|
201
|
-
class:
|
|
202
|
-
"bg-b-2": n.name === ((
|
|
199
|
+
class: j(["commandmenu-item text-sm flex items-center py-1.5 px-2 rounded hover:bg-b-2 cursor-pointer", {
|
|
200
|
+
"bg-b-2": n.name === ((I = _.value) == null ? void 0 : I.name)
|
|
203
201
|
}]),
|
|
204
|
-
onClick: (
|
|
202
|
+
onClick: (w) => R(n)
|
|
205
203
|
}, [
|
|
206
|
-
|
|
204
|
+
g(f(A), {
|
|
207
205
|
class: "text-c-2 mr-2.5",
|
|
208
206
|
icon: n.icon,
|
|
209
207
|
size: "md",
|
|
210
208
|
thickness: "1.5"
|
|
211
209
|
}, null, 8, ["icon"]),
|
|
212
|
-
|
|
213
|
-
], 10,
|
|
210
|
+
J(" " + M(n.name), 1)
|
|
211
|
+
], 10, pe);
|
|
214
212
|
}), 128))
|
|
215
213
|
], 64))), 64)),
|
|
216
|
-
|
|
214
|
+
v.value.length ? O("", !0) : (a(), r("div", ve, " No commands found "))
|
|
217
215
|
], 64))
|
|
218
216
|
], 512), [
|
|
219
|
-
[
|
|
217
|
+
[y, f(c).open]
|
|
220
218
|
])
|
|
221
219
|
], 64));
|
|
222
220
|
}
|
|
223
221
|
});
|
|
224
222
|
export {
|
|
225
|
-
|
|
226
|
-
|
|
223
|
+
he as PaletteComponents,
|
|
224
|
+
Re as default
|
|
227
225
|
};
|
|
@@ -49,8 +49,8 @@ declare const __VLS_component: import("vue").DefineComponent<__VLS_WithDefaults<
|
|
|
49
49
|
onSelectVariable?: ((value: string) => any) | undefined;
|
|
50
50
|
}, {
|
|
51
51
|
required: boolean;
|
|
52
|
-
canAddCustomEnumValue: boolean;
|
|
53
52
|
readOnly: boolean;
|
|
53
|
+
canAddCustomEnumValue: boolean;
|
|
54
54
|
}, {}>;
|
|
55
55
|
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, ReturnType<typeof __VLS_template>>;
|
|
56
56
|
export default _default;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DataTableInput.vue.d.ts","sourceRoot":"","sources":["../../../src/components/DataTable/DataTableInput.vue"],"names":[],"mappings":"AAwNA,iBAAS,cAAc;qBAkKM,GAAG;qBACF,GAAG;kBACN,GAAG;EAuB7B;AACD,QAAA,MAAM,eAAe;SAlQZ,MAAM;WACJ,MAAM;IACb,sEAAsE;qBACrD,MAAM;eACZ,OAAO;gBACN,MAAM,GAAG,MAAM;IAC3B,0EAA0E;4BAClD,OAAO;eACpB,OAAO;WACX,MAAM,EAAE;UACT,MAAM;UACN,MAAM;;;;;;;;;;;SAXP,MAAM;WACJ,MAAM;IACb,sEAAsE;qBACrD,MAAM;eACZ,OAAO;gBACN,MAAM,GAAG,MAAM;IAC3B,0EAA0E;4BAClD,OAAO;eACpB,OAAO;WACX,MAAM,EAAE;UACT,MAAM;UACN,MAAM;;;;;;;;;;;cAPD,OAAO;
|
|
1
|
+
{"version":3,"file":"DataTableInput.vue.d.ts","sourceRoot":"","sources":["../../../src/components/DataTable/DataTableInput.vue"],"names":[],"mappings":"AAwNA,iBAAS,cAAc;qBAkKM,GAAG;qBACF,GAAG;kBACN,GAAG;EAuB7B;AACD,QAAA,MAAM,eAAe;SAlQZ,MAAM;WACJ,MAAM;IACb,sEAAsE;qBACrD,MAAM;eACZ,OAAO;gBACN,MAAM,GAAG,MAAM;IAC3B,0EAA0E;4BAClD,OAAO;eACpB,OAAO;WACX,MAAM,EAAE;UACT,MAAM;UACN,MAAM;;;;;;;;;;;SAXP,MAAM;WACJ,MAAM;IACb,sEAAsE;qBACrD,MAAM;eACZ,OAAO;gBACN,MAAM,GAAG,MAAM;IAC3B,0EAA0E;4BAClD,OAAO;eACpB,OAAO;WACX,MAAM,EAAE;UACT,MAAM;UACN,MAAM;;;;;;;;;;;cAPD,OAAO;cAIP,OAAO;2BADM,OAAO;MAkQjC,CAAC;wBACkB,uBAAuB,CAAC,OAAO,eAAe,EAAE,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAAvG,wBAAwG;AAOxG,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,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"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ImportCollectionModal.vue.d.ts","sourceRoot":"","sources":["../../../src/components/ImportCollection/ImportCollectionModal.vue"],"names":[],"mappings":";
|
|
1
|
+
{"version":3,"file":"ImportCollectionModal.vue.d.ts","sourceRoot":"","sources":["../../../src/components/ImportCollection/ImportCollectionModal.vue"],"names":[],"mappings":";YAqKU,MAAM,GAAG,IAAI;;;;YAAb,MAAM,GAAG,IAAI;;;;AAsQvB,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,72 +1,69 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import { useUrlPrefetcher as
|
|
1
|
+
import { defineComponent as C, computed as d, watch as S, openBlock as l, createBlock as I, unref as o, withCtx as z, createElementVNode as t, toDisplayString as f, createVNode as i, createElementBlock as a, Fragment as B, createCommentVNode as h } from "vue";
|
|
2
|
+
import { useUrlPrefetcher as D } from "./hooks/useUrlPrefetcher.js";
|
|
3
3
|
import { getOpenApiDocumentVersion as _ } from "./utils/getOpenApiDocumentVersion.js";
|
|
4
|
-
import { isDocument as
|
|
5
|
-
import { isUrl as
|
|
6
|
-
import { useModal as
|
|
7
|
-
import { normalize as
|
|
8
|
-
import
|
|
9
|
-
import
|
|
10
|
-
import { useWorkspace as
|
|
11
|
-
import { hotKeyBus as O } from "../../libs/event-busses/hot-keys-bus.js";
|
|
4
|
+
import { isDocument as E } from "./utils/isDocument.js";
|
|
5
|
+
import { isUrl as F } from "./utils/isUrl.js";
|
|
6
|
+
import { useModal as U, ScalarModal as V, ScalarIcon as x, ScalarCodeBlock as A } from "@scalar/components";
|
|
7
|
+
import { normalize as M } from "@scalar/openapi-parser";
|
|
8
|
+
import N from "./ImportNowButton.vue.js";
|
|
9
|
+
import $ from "../../views/Request/components/WorkspaceDropdown.vue.js";
|
|
10
|
+
import { useWorkspace as O } from "../../store/store.js";
|
|
12
11
|
const P = { class: "flex gap-5 flex-col my-24" }, W = { class: "text-center text-xl font-medium" }, j = { class: "flex justify-center" }, K = { class: "inline-block bg-b-2 py-1 px-4 rounded" }, R = {
|
|
13
12
|
key: 0,
|
|
14
13
|
class: "flex gap-2 items-center p-3 font-code text-sm border rounded break-words"
|
|
15
14
|
}, T = { class: "break-all" }, q = { class: "flex gap-2 items-center p-3 font-code text-sm border rounded" }, G = /* @__PURE__ */ t("div", null, "This doesn’t look like a valid OpenAPI/Swagger document.", -1), H = { class: "bg-b-2 h-48 border rounded custom-scroll" }, J = {
|
|
16
15
|
key: 2,
|
|
17
16
|
class: "inline-flex flex-col gap-2 items-center mt-2"
|
|
18
|
-
},
|
|
17
|
+
}, ne = /* @__PURE__ */ C({
|
|
19
18
|
__name: "ImportCollectionModal",
|
|
20
19
|
props: {
|
|
21
20
|
source: {}
|
|
22
21
|
},
|
|
23
22
|
emits: ["importFinished"],
|
|
24
23
|
setup(v) {
|
|
25
|
-
const c = v, { activeWorkspace: k } =
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
});
|
|
29
|
-
const b = d(() => {
|
|
24
|
+
const c = v, { activeWorkspace: k, events: g } = O(), { prefetchResult: r, prefetchUrl: b } = D(), s = U();
|
|
25
|
+
g.hotKeys.on(() => s.hide());
|
|
26
|
+
const y = d(() => {
|
|
30
27
|
try {
|
|
31
|
-
return
|
|
28
|
+
return M(
|
|
32
29
|
r.content || c.source || ""
|
|
33
30
|
);
|
|
34
31
|
} catch {
|
|
35
32
|
return;
|
|
36
33
|
}
|
|
37
|
-
}),
|
|
34
|
+
}), w = d(() => {
|
|
38
35
|
var e, n;
|
|
39
|
-
return (n = (e =
|
|
40
|
-
}),
|
|
36
|
+
return (n = (e = y.value) == null ? void 0 : e.info) == null ? void 0 : n.title;
|
|
37
|
+
}), m = d(
|
|
41
38
|
() => _(r.content || c.source || "")
|
|
42
39
|
);
|
|
43
|
-
return
|
|
40
|
+
return S(
|
|
44
41
|
() => c.source,
|
|
45
42
|
(e) => {
|
|
46
|
-
|
|
43
|
+
b(e, k.value.proxyUrl), e && (F(e) || E(e) && _(e)) ? s.show() : s.hide();
|
|
47
44
|
}
|
|
48
|
-
), (e, n) => (l(),
|
|
45
|
+
), (e, n) => (l(), I(o(V), {
|
|
49
46
|
size: "md",
|
|
50
47
|
state: o(s)
|
|
51
48
|
}, {
|
|
52
|
-
default:
|
|
49
|
+
default: z(() => {
|
|
53
50
|
var p, u;
|
|
54
51
|
return [
|
|
55
52
|
t("div", P, [
|
|
56
|
-
t("div", W, f(
|
|
53
|
+
t("div", W, f(w.value ?? "Import Collection"), 1),
|
|
57
54
|
t("div", j, [
|
|
58
55
|
t("div", K, [
|
|
59
|
-
i(o(
|
|
56
|
+
i(o($))
|
|
60
57
|
])
|
|
61
58
|
]),
|
|
62
|
-
o(r).state !== "loading" && o(r).error ? (l(),
|
|
59
|
+
o(r).state !== "loading" && o(r).error ? (l(), a("div", R, [
|
|
63
60
|
i(o(x), {
|
|
64
61
|
class: "text-red flex-shrink-0",
|
|
65
62
|
icon: "Error",
|
|
66
63
|
size: "sm"
|
|
67
64
|
}),
|
|
68
65
|
t("div", T, f(o(r).error), 1)
|
|
69
|
-
])) :
|
|
66
|
+
])) : m.value ? h("", !0) : (l(), a(B, { key: 1 }, [
|
|
70
67
|
t("div", q, [
|
|
71
68
|
i(o(x), {
|
|
72
69
|
class: "text-red",
|
|
@@ -76,14 +73,14 @@ const P = { class: "flex gap-5 flex-col my-24" }, W = { class: "text-center text
|
|
|
76
73
|
G
|
|
77
74
|
]),
|
|
78
75
|
t("div", H, [
|
|
79
|
-
i(o(
|
|
76
|
+
i(o(A), {
|
|
80
77
|
content: ((p = o(r).content) == null ? void 0 : p.trim()) || ((u = c.source) == null ? void 0 : u.trim()) || "",
|
|
81
78
|
copy: !1
|
|
82
79
|
}, null, 8, ["content"])
|
|
83
80
|
])
|
|
84
81
|
], 64)),
|
|
85
|
-
|
|
86
|
-
i(
|
|
82
|
+
m.value ? (l(), a("div", J, [
|
|
83
|
+
i(N, {
|
|
87
84
|
source: e.source,
|
|
88
85
|
variant: "button",
|
|
89
86
|
onImportFinished: n[0] || (n[0] = () => e.$emit("importFinished"))
|
|
@@ -97,5 +94,5 @@ const P = { class: "flex gap-5 flex-col my-24" }, W = { class: "text-center text
|
|
|
97
94
|
}
|
|
98
95
|
});
|
|
99
96
|
export {
|
|
100
|
-
|
|
97
|
+
ne as default
|
|
101
98
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TopNav.vue.d.ts","sourceRoot":"","sources":["../../../src/components/TopNav/TopNav.vue"],"names":[],"mappings":";
|
|
1
|
+
{"version":3,"file":"TopNav.vue.d.ts","sourceRoot":"","sources":["../../../src/components/TopNav/TopNav.vue"],"names":[],"mappings":";gBAoRc;QAAE,IAAI,EAAE,MAAM,CAAC;QAAC,GAAG,EAAE,MAAM,CAAA;KAAE,GAAG,IAAI;;gBAApC;QAAE,IAAI,EAAE,MAAM,CAAC;QAAC,GAAG,EAAE,MAAM,CAAA;KAAE,GAAG,IAAI;;AA2dlD,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,7 +1,7 @@
|
|
|
1
1
|
import o from "./TopNav.vue2.js";
|
|
2
2
|
/* empty css */
|
|
3
|
-
import
|
|
4
|
-
const
|
|
3
|
+
import f from "../../_virtual/_plugin-vue_export-helper.js";
|
|
4
|
+
const a = /* @__PURE__ */ f(o, [["__scopeId", "data-v-f3ff8743"]]);
|
|
5
5
|
export {
|
|
6
|
-
|
|
6
|
+
a as default
|
|
7
7
|
};
|
|
@@ -1,23 +1,22 @@
|
|
|
1
|
-
import { defineComponent as z, reactive as A, ref as
|
|
1
|
+
import { defineComponent as z, reactive as A, ref as M, computed as j, watch as C, onMounted as B, onBeforeUnmount as E, openBlock as d, createElementBlock as g, createElementVNode as h, createVNode as n, unref as l, withCtx as u, toDisplayString as O, createTextVNode as x, Fragment as V, renderList as D, createBlock as K, pushScopeId as q, popScopeId as F } from "vue";
|
|
2
2
|
import H from "../ScalarHotkey.vue.js";
|
|
3
3
|
import { ROUTES as W } from "../../constants.js";
|
|
4
4
|
import { useClipboard as G } from "../../hooks/useClipboard.js";
|
|
5
|
-
import { ScalarContextMenu as J, ScalarIcon as
|
|
5
|
+
import { ScalarContextMenu as J, ScalarIcon as f, ScalarDropdown as P, ScalarDropdownItem as I } from "@scalar/components";
|
|
6
6
|
import { capitalize as Q } from "@scalar/oas-utils/helpers";
|
|
7
7
|
import X from "./TopNavItem.vue.js";
|
|
8
8
|
import { useWorkspace as Y } from "../../store/store.js";
|
|
9
|
-
|
|
10
|
-
const Z = (s) => (K("data-v-33584718"), s = s(), F(), s), ee = { class: "flex h-10 t-app__top-nav" }, te = /* @__PURE__ */ Z(() => /* @__PURE__ */ f("div", { class: "t-app__top-nav-draggable" }, null, -1)), oe = { class: "flex h-10 flex-1 items-center gap-1.5 text-sm font-medium pr-1 relative overflow-hidden" }, ae = {
|
|
9
|
+
const Z = (c) => (q("data-v-f3ff8743"), c = c(), F(), c), ee = { class: "flex h-10 t-app__top-nav" }, te = /* @__PURE__ */ Z(() => /* @__PURE__ */ h("div", { class: "t-app__top-nav-draggable" }, null, -1)), oe = { class: "flex h-10 flex-1 items-center gap-1.5 text-sm font-medium pr-1 relative overflow-hidden" }, ae = {
|
|
11
10
|
key: 0,
|
|
12
11
|
class: "h-full w-full overflow-hidden"
|
|
13
|
-
},
|
|
12
|
+
}, me = /* @__PURE__ */ z({
|
|
14
13
|
__name: "TopNav",
|
|
15
14
|
props: {
|
|
16
15
|
openNewTab: {}
|
|
17
16
|
},
|
|
18
|
-
setup(
|
|
19
|
-
const S =
|
|
20
|
-
function
|
|
17
|
+
setup(c) {
|
|
18
|
+
const S = c, { activeRequest: L, router: i, events: T } = Y(), { copyToClipboard: U } = G(), t = A([{ label: "", path: "", icon: "Add" }]), o = M(0), k = j(() => o.value);
|
|
19
|
+
function _() {
|
|
21
20
|
var a;
|
|
22
21
|
const e = W.find((p) => i.currentRoute.value.name == p.name);
|
|
23
22
|
e && ((e == null ? void 0 : e.name) === "request" ? t[o.value] = {
|
|
@@ -34,35 +33,37 @@ const Z = (s) => (K("data-v-33584718"), s = s(), F(), s), ee = { class: "flex h-
|
|
|
34
33
|
i.push(t[o.value].path);
|
|
35
34
|
}
|
|
36
35
|
function m() {
|
|
37
|
-
t.push({ label: "", path: "", icon: "Add" }), o.value = t.length - 1,
|
|
36
|
+
t.push({ label: "", path: "", icon: "Add" }), o.value = t.length - 1, _();
|
|
38
37
|
}
|
|
39
38
|
function r(e) {
|
|
40
39
|
o.value = e, v();
|
|
41
40
|
}
|
|
42
|
-
|
|
41
|
+
C(
|
|
43
42
|
() => i.currentRoute.value.path,
|
|
44
43
|
() => {
|
|
45
|
-
|
|
44
|
+
_();
|
|
46
45
|
},
|
|
47
46
|
{ immediate: !0 }
|
|
48
47
|
);
|
|
49
|
-
function
|
|
48
|
+
function N(e) {
|
|
50
49
|
t.splice(e, 1), o.value = Math.min(
|
|
51
50
|
o.value,
|
|
52
51
|
t.length - 1
|
|
53
52
|
), v();
|
|
54
53
|
}
|
|
55
|
-
const
|
|
54
|
+
const y = (e) => {
|
|
56
55
|
const a = new URL(window.location.href);
|
|
57
56
|
a.pathname = t[e].path, U(a.toString());
|
|
58
57
|
}, R = (e) => {
|
|
59
58
|
t.splice(0, e), t.splice(1), o.value = 0, v();
|
|
60
59
|
}, w = (e) => {
|
|
61
|
-
if (e
|
|
62
|
-
|
|
63
|
-
|
|
60
|
+
if (e) {
|
|
61
|
+
if (e.addTopNav && m(), e.closeTopNav && N(o.value), e.navigateTopNavLeft && r(Math.max(o.value - 1, 0)), e.navigateTopNavRight && r(Math.min(o.value + 1, t.length - 1)), e.jumpToTab) {
|
|
62
|
+
const a = Number(e.jumpToTab.key) - 1;
|
|
63
|
+
a >= 0 && a < t.length && r(a);
|
|
64
|
+
}
|
|
65
|
+
e.jumpToLastTab && r(t.length - 1);
|
|
64
66
|
}
|
|
65
|
-
e.jumpToLastTab && r(t.length - 1);
|
|
66
67
|
}, $ = (e) => {
|
|
67
68
|
t.push({
|
|
68
69
|
label: e.name,
|
|
@@ -70,24 +71,24 @@ const Z = (s) => (K("data-v-33584718"), s = s(), F(), s), ee = { class: "flex h-
|
|
|
70
71
|
icon: "ExternalLink"
|
|
71
72
|
});
|
|
72
73
|
};
|
|
73
|
-
return
|
|
74
|
+
return C(
|
|
74
75
|
() => S.openNewTab,
|
|
75
76
|
(e) => {
|
|
76
77
|
e && $(e);
|
|
77
78
|
},
|
|
78
79
|
{ immediate: !0 }
|
|
79
|
-
),
|
|
80
|
+
), B(() => T.hotKeys.on(w)), E(() => T.hotKeys.off(w)), (e, a) => (d(), g("nav", ee, [
|
|
80
81
|
te,
|
|
81
|
-
|
|
82
|
+
h("div", oe, [
|
|
82
83
|
t.length === 1 ? (d(), g("div", ae, [
|
|
83
84
|
n(l(J), { triggerClass: "flex custom-scroll gap-1.5 h-full items-center justify-center w-full whitespace-nowrap" }, {
|
|
84
85
|
trigger: u(() => [
|
|
85
|
-
n(l(
|
|
86
|
+
n(l(f), {
|
|
86
87
|
icon: t[0].icon,
|
|
87
88
|
size: "xs",
|
|
88
89
|
thickness: "2.5"
|
|
89
90
|
}, null, 8, ["icon"]),
|
|
90
|
-
|
|
91
|
+
h("span", null, O(t[0].label), 1)
|
|
91
92
|
]),
|
|
92
93
|
content: u(() => [
|
|
93
94
|
n(l(P), {
|
|
@@ -95,17 +96,17 @@ const Z = (s) => (K("data-v-33584718"), s = s(), F(), s), ee = { class: "flex h-
|
|
|
95
96
|
static: ""
|
|
96
97
|
}, {
|
|
97
98
|
items: u(() => [
|
|
98
|
-
n(l(
|
|
99
|
+
n(l(I), {
|
|
99
100
|
class: "flex items-center gap-1.5",
|
|
100
101
|
onClick: m
|
|
101
102
|
}, {
|
|
102
103
|
default: u(() => [
|
|
103
|
-
n(l(
|
|
104
|
+
n(l(f), {
|
|
104
105
|
icon: "AddTab",
|
|
105
106
|
size: "sm",
|
|
106
107
|
thickness: "1.5"
|
|
107
108
|
}),
|
|
108
|
-
|
|
109
|
+
x(" New Tab "),
|
|
109
110
|
n(H, {
|
|
110
111
|
class: "bg-b-2 ml-auto",
|
|
111
112
|
hotkey: "T"
|
|
@@ -113,17 +114,17 @@ const Z = (s) => (K("data-v-33584718"), s = s(), F(), s), ee = { class: "flex h-
|
|
|
113
114
|
]),
|
|
114
115
|
_: 1
|
|
115
116
|
}),
|
|
116
|
-
n(l(
|
|
117
|
+
n(l(I), {
|
|
117
118
|
class: "flex items-center gap-1.5",
|
|
118
|
-
onClick: a[0] || (a[0] = (p) =>
|
|
119
|
+
onClick: a[0] || (a[0] = (p) => y(k.value))
|
|
119
120
|
}, {
|
|
120
121
|
default: u(() => [
|
|
121
|
-
n(l(
|
|
122
|
+
n(l(f), {
|
|
122
123
|
icon: "Link",
|
|
123
124
|
size: "sm",
|
|
124
125
|
thickness: "1.5"
|
|
125
126
|
}),
|
|
126
|
-
|
|
127
|
+
x(" Copy URL ")
|
|
127
128
|
]),
|
|
128
129
|
_: 1
|
|
129
130
|
})
|
|
@@ -133,24 +134,24 @@ const Z = (s) => (K("data-v-33584718"), s = s(), F(), s), ee = { class: "flex h-
|
|
|
133
134
|
]),
|
|
134
135
|
_: 1
|
|
135
136
|
})
|
|
136
|
-
])) : (d(!0), g(V, { key: 1 }, D(t, (p,
|
|
137
|
-
key:
|
|
138
|
-
active:
|
|
139
|
-
hotkey: (
|
|
137
|
+
])) : (d(!0), g(V, { key: 1 }, D(t, (p, s) => (d(), K(X, {
|
|
138
|
+
key: s,
|
|
139
|
+
active: s === k.value,
|
|
140
|
+
hotkey: (s + 1).toString(),
|
|
140
141
|
icon: p.icon,
|
|
141
142
|
label: p.label,
|
|
142
|
-
onClick: (b) => r(
|
|
143
|
-
onClose: (b) =>
|
|
144
|
-
onCloseOtherTabs: (b) => R(
|
|
145
|
-
onCopyUrl: (b) =>
|
|
143
|
+
onClick: (b) => r(s),
|
|
144
|
+
onClose: (b) => N(s),
|
|
145
|
+
onCloseOtherTabs: (b) => R(s),
|
|
146
|
+
onCopyUrl: (b) => y(s),
|
|
146
147
|
onNewTab: m
|
|
147
148
|
}, null, 8, ["active", "hotkey", "icon", "label", "onClick", "onClose", "onCloseOtherTabs", "onCopyUrl"]))), 128)),
|
|
148
|
-
|
|
149
|
+
h("button", {
|
|
149
150
|
class: "text-c-3 hover:bg-b-3 p-1.5 rounded webkit-app-no-drag",
|
|
150
151
|
type: "button",
|
|
151
152
|
onClick: m
|
|
152
153
|
}, [
|
|
153
|
-
n(l(
|
|
154
|
+
n(l(f), {
|
|
154
155
|
icon: "Add",
|
|
155
156
|
size: "xs",
|
|
156
157
|
thickness: "2.5"
|
|
@@ -161,5 +162,5 @@ const Z = (s) => (K("data-v-33584718"), s = s(), F(), s), ee = { class: "flex h-
|
|
|
161
162
|
}
|
|
162
163
|
});
|
|
163
164
|
export {
|
|
164
|
-
|
|
165
|
+
me as default
|
|
165
166
|
};
|