@scalar/api-client 2.0.53 → 2.0.55
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 +19 -0
- package/dist/components/HttpMethod/HttpMethod.vue.d.ts +2 -2
- package/dist/components/ScalarHotkey.vue.js +2 -2
- 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 +61 -52
- package/dist/components/TopNav/TopNavItem.vue.d.ts +6 -0
- 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 +122 -41
- package/dist/layouts/App/create-api-client-app.d.ts +249 -249
- package/dist/layouts/App/create-api-client-app.d.ts.map +1 -1
- package/dist/layouts/Modal/create-api-client-modal.d.ts +498 -498
- package/dist/layouts/Modal/create-api-client-modal.d.ts.map +1 -1
- package/dist/libs/create-client.d.ts +249 -249
- 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/local-storage.js +1 -1
- package/dist/store/workspace.d.ts +498 -498
- package/dist/store/workspace.d.ts.map +1 -1
- package/dist/style.css +1 -1
- package/package.json +6 -6
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,24 @@
|
|
|
1
1
|
# @scalar/api-client
|
|
2
2
|
|
|
3
|
+
## 2.0.55
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- Updated dependencies [8bde837]
|
|
8
|
+
- Updated dependencies [910b1c2]
|
|
9
|
+
- @scalar/components@0.12.36
|
|
10
|
+
- @scalar/types@0.0.2
|
|
11
|
+
- @scalar/oas-utils@0.2.35
|
|
12
|
+
|
|
13
|
+
## 2.0.54
|
|
14
|
+
|
|
15
|
+
### Patch Changes
|
|
16
|
+
|
|
17
|
+
- 2db9eb8: feat: topnav context menu
|
|
18
|
+
- Updated dependencies [7aa26fb]
|
|
19
|
+
- Updated dependencies [2db9eb8]
|
|
20
|
+
- @scalar/components@0.12.35
|
|
21
|
+
|
|
3
22
|
## 2.0.53
|
|
4
23
|
|
|
5
24
|
### Patch Changes
|
|
@@ -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;
|
|
@@ -9,7 +9,7 @@ const P = /* @__PURE__ */ l({
|
|
|
9
9
|
},
|
|
10
10
|
emits: ["hotkeyPressed"],
|
|
11
11
|
setup(n, { emit: a }) {
|
|
12
|
-
const o = n, i = a, p = t(() => r() ? "⌘" : "⌃"), s = t(() => h().get(o.hotkey)), c = t(() => `${p.value}${o.hotkey}`), m = f({
|
|
12
|
+
const o = n, i = a, p = t(() => r() ? "⌘" : "⌃"), s = t(() => h().get(o.hotkey)), c = t(() => `${p.value} ${o.hotkey}`), m = f({
|
|
13
13
|
passive: !1,
|
|
14
14
|
onEventFired(e) {
|
|
15
15
|
!r() && e.ctrlKey && e.key === s.value && (e.preventDefault(), e.stopPropagation());
|
|
@@ -17,7 +17,7 @@ const P = /* @__PURE__ */ l({
|
|
|
17
17
|
});
|
|
18
18
|
return v(m[`${r() ? "meta" : "control"}_${o.hotkey}`], () => {
|
|
19
19
|
i("hotkeyPressed", s.value || "");
|
|
20
|
-
}), (e, b) => (d(), y("div", k(e.$attrs, { class: "bg-
|
|
20
|
+
}), (e, b) => (d(), y("div", k(e.$attrs, { class: "bg-b-1 border-b-3 inline-block overflow-hidden rounded border-1/2 text-xxs rounded-b px-1 font-medium uppercase" }), u(c.value), 17));
|
|
21
21
|
}
|
|
22
22
|
});
|
|
23
23
|
export {
|
|
@@ -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":";AAkfA,wBAKG"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import o from "./TopNav.vue2.js";
|
|
2
2
|
/* empty css */
|
|
3
3
|
import t from "../../_virtual/_plugin-vue_export-helper.js";
|
|
4
|
-
const
|
|
4
|
+
const f = /* @__PURE__ */ t(o, [["__scopeId", "data-v-dca235f9"]]);
|
|
5
5
|
export {
|
|
6
|
-
|
|
6
|
+
f as default
|
|
7
7
|
};
|
|
@@ -1,84 +1,93 @@
|
|
|
1
|
-
import { defineComponent as
|
|
1
|
+
import { defineComponent as w, reactive as S, ref as U, watch as R, computed as j, onMounted as B, onBeforeUnmount as L, openBlock as s, createElementBlock as v, createElementVNode as u, createVNode as _, unref as g, toDisplayString as A, Fragment as M, renderList as O, createBlock as $, pushScopeId as z, popScopeId as E } from "vue";
|
|
2
2
|
import { ROUTES as V } from "../../constants.js";
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import K from "
|
|
6
|
-
import
|
|
7
|
-
import {
|
|
8
|
-
|
|
3
|
+
import { useClipboard as q } from "../../hooks/useClipboard.js";
|
|
4
|
+
import { ScalarIcon as T } from "@scalar/components";
|
|
5
|
+
import { capitalize as K } from "@scalar/oas-utils/helpers";
|
|
6
|
+
import D from "./TopNavItem.vue.js";
|
|
7
|
+
import { useWorkspace as F } from "../../store/workspace.js";
|
|
8
|
+
import { hotKeyBus as y } from "../../libs/event-busses/hot-keys-bus.js";
|
|
9
|
+
const H = (i) => (z("data-v-dca235f9"), i = i(), E(), i), W = { class: "flex h-10 t-app__top-nav" }, G = /* @__PURE__ */ H(() => /* @__PURE__ */ u("div", { class: "t-app__top-nav-draggable" }, null, -1)), J = { class: "flex h-10 flex-1 items-center justify-center gap-1.5 text-sm font-medium relative" }, P = {
|
|
9
10
|
key: 0,
|
|
10
11
|
class: "flex items-center gap-1 w-full justify-center"
|
|
11
|
-
},
|
|
12
|
+
}, ne = /* @__PURE__ */ w({
|
|
12
13
|
__name: "TopNav",
|
|
13
14
|
setup(i) {
|
|
14
|
-
const { activeRequest: N, router:
|
|
15
|
-
function
|
|
16
|
-
var
|
|
17
|
-
const e = V.find((r) =>
|
|
18
|
-
e && ((e == null ? void 0 : e.name) === "request" ? t[
|
|
19
|
-
label: ((
|
|
20
|
-
path:
|
|
15
|
+
const { activeRequest: N, router: l } = F(), { copyToClipboard: k } = q(), t = S([{ label: "", path: "", icon: "Add" }]), o = U(0);
|
|
16
|
+
function d() {
|
|
17
|
+
var a;
|
|
18
|
+
const e = V.find((r) => l.currentRoute.value.name == r.name);
|
|
19
|
+
e && ((e == null ? void 0 : e.name) === "request" ? t[o.value] = {
|
|
20
|
+
label: ((a = N.value) == null ? void 0 : a.summary) || "",
|
|
21
|
+
path: l.currentRoute.value.path,
|
|
21
22
|
icon: e.icon
|
|
22
|
-
} : t[
|
|
23
|
-
label:
|
|
24
|
-
path:
|
|
23
|
+
} : t[o.value] = {
|
|
24
|
+
label: K(e == null ? void 0 : e.name) || "",
|
|
25
|
+
path: l.currentRoute.value.path,
|
|
25
26
|
icon: e.icon
|
|
26
27
|
});
|
|
27
28
|
}
|
|
28
|
-
function
|
|
29
|
-
|
|
29
|
+
function p() {
|
|
30
|
+
l.push(t[o.value].path);
|
|
30
31
|
}
|
|
31
|
-
function
|
|
32
|
-
t.push({ label: "", path: "", icon: "Add" }),
|
|
32
|
+
function m() {
|
|
33
|
+
t.push({ label: "", path: "", icon: "Add" }), o.value = t.length - 1, d();
|
|
33
34
|
}
|
|
34
|
-
function
|
|
35
|
-
|
|
35
|
+
function c(e) {
|
|
36
|
+
o.value = e, p();
|
|
36
37
|
}
|
|
37
|
-
|
|
38
|
-
() =>
|
|
38
|
+
R(
|
|
39
|
+
() => l.currentRoute.value.path,
|
|
39
40
|
() => {
|
|
40
|
-
|
|
41
|
+
d();
|
|
41
42
|
},
|
|
42
43
|
{ immediate: !0 }
|
|
43
44
|
);
|
|
44
45
|
function f(e) {
|
|
45
|
-
t.splice(e, 1),
|
|
46
|
-
|
|
46
|
+
t.splice(e, 1), o.value = Math.min(
|
|
47
|
+
o.value,
|
|
47
48
|
t.length - 1
|
|
48
|
-
),
|
|
49
|
+
), p();
|
|
49
50
|
}
|
|
50
|
-
const I =
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
51
|
+
const I = (e) => {
|
|
52
|
+
const a = new URL(window.location.href);
|
|
53
|
+
a.pathname = t[e].path, k(a.toString());
|
|
54
|
+
}, C = (e) => {
|
|
55
|
+
t.splice(0, e), t.splice(1), o.value = 0, p();
|
|
56
|
+
}, x = j(() => o.value), b = (e) => {
|
|
57
|
+
if (e.addTopNav && m(), e.closeTopNav && f(o.value), e.navigateTopNavLeft && c(Math.max(o.value - 1, 0)), e.navigateTopNavRight && c(Math.min(o.value + 1, t.length - 1)), e.jumpToTab) {
|
|
58
|
+
const a = Number(e.jumpToTab.key) - 1;
|
|
59
|
+
a >= 0 && a < t.length && c(a);
|
|
54
60
|
}
|
|
55
|
-
e.jumpToLastTab &&
|
|
61
|
+
e.jumpToLastTab && c(t.length - 1);
|
|
56
62
|
};
|
|
57
|
-
return B(() =>
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
t.length === 1 ? (
|
|
61
|
-
|
|
63
|
+
return B(() => y.on(b)), L(() => y.off(b)), (e, a) => (s(), v("nav", W, [
|
|
64
|
+
G,
|
|
65
|
+
u("div", J, [
|
|
66
|
+
t.length === 1 ? (s(), v("div", P, [
|
|
67
|
+
_(g(T), {
|
|
62
68
|
icon: t[0].icon,
|
|
63
69
|
size: "xs",
|
|
64
70
|
thickness: "2.5"
|
|
65
71
|
}, null, 8, ["icon"]),
|
|
66
|
-
|
|
67
|
-
])) : (
|
|
68
|
-
key:
|
|
69
|
-
active:
|
|
70
|
-
hotkey: (
|
|
72
|
+
u("div", null, A(t[0].label), 1)
|
|
73
|
+
])) : (s(!0), v(M, { key: 1 }, O(t, (r, n) => (s(), $(D, {
|
|
74
|
+
key: n,
|
|
75
|
+
active: n === x.value,
|
|
76
|
+
hotkey: (n + 1).toString(),
|
|
71
77
|
icon: r.icon,
|
|
72
78
|
label: r.label,
|
|
73
|
-
onClick: (
|
|
74
|
-
onClose: (
|
|
75
|
-
|
|
76
|
-
|
|
79
|
+
onClick: (h) => c(n),
|
|
80
|
+
onClose: (h) => f(n),
|
|
81
|
+
onCloseOtherTabs: (h) => C(n),
|
|
82
|
+
onCopyUrl: (h) => I(n),
|
|
83
|
+
onNewTab: m
|
|
84
|
+
}, null, 8, ["active", "hotkey", "icon", "label", "onClick", "onClose", "onCloseOtherTabs", "onCopyUrl"]))), 128)),
|
|
85
|
+
u("button", {
|
|
77
86
|
class: "text-c-3 hover:bg-b-3 p-1.5 rounded-lg webkit-app-no-drag",
|
|
78
87
|
type: "button",
|
|
79
|
-
onClick:
|
|
88
|
+
onClick: m
|
|
80
89
|
}, [
|
|
81
|
-
|
|
90
|
+
_(g(T), {
|
|
82
91
|
icon: "Add",
|
|
83
92
|
size: "xs",
|
|
84
93
|
thickness: "2.5"
|
|
@@ -89,5 +98,5 @@ const $ = (i) => (z("data-v-91b3e5a4"), i = i(), E(), i), D = { class: "flex h-1
|
|
|
89
98
|
}
|
|
90
99
|
});
|
|
91
100
|
export {
|
|
92
|
-
|
|
101
|
+
ne as default
|
|
93
102
|
};
|
|
@@ -7,6 +7,9 @@ declare const _default: import("vue").DefineComponent<__VLS_TypePropsToOption<{
|
|
|
7
7
|
}>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
8
8
|
click: () => void;
|
|
9
9
|
close: () => void;
|
|
10
|
+
newTab: () => void;
|
|
11
|
+
copyUrl: () => void;
|
|
12
|
+
closeOtherTabs: () => void;
|
|
10
13
|
}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_TypePropsToOption<{
|
|
11
14
|
hotkey?: string;
|
|
12
15
|
active: boolean;
|
|
@@ -15,6 +18,9 @@ declare const _default: import("vue").DefineComponent<__VLS_TypePropsToOption<{
|
|
|
15
18
|
}>>> & {
|
|
16
19
|
onClick?: (() => any) | undefined;
|
|
17
20
|
onClose?: (() => any) | undefined;
|
|
21
|
+
onNewTab?: (() => any) | undefined;
|
|
22
|
+
onCopyUrl?: (() => any) | undefined;
|
|
23
|
+
onCloseOtherTabs?: (() => any) | undefined;
|
|
18
24
|
}, {}, {}>;
|
|
19
25
|
export default _default;
|
|
20
26
|
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TopNavItem.vue.d.ts","sourceRoot":"","sources":["../../../src/components/TopNav/TopNavItem.vue"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"TopNavItem.vue.d.ts","sourceRoot":"","sources":["../../../src/components/TopNav/TopNavItem.vue"],"names":[],"mappings":"AAwMA,OAAO,EACL,KAAK,IAAI,EAOV,MAAM,oBAAoB,CAAA;;aAKhB,MAAM;YACP,OAAO;WACR,MAAM;UACP,IAAI;;;;;;;;aAHD,MAAM;YACP,OAAO;WACR,MAAM;UACP,IAAI;;;;;;;;AAiaZ,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 "./TopNavItem.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-dff6dda5"]]);
|
|
5
5
|
export {
|
|
6
|
-
|
|
6
|
+
p as default
|
|
7
7
|
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import
|
|
3
|
-
import { ScalarTooltip as
|
|
4
|
-
const
|
|
1
|
+
import { defineComponent as d, openBlock as p, createBlock as k, unref as t, withCtx as i, createVNode as e, createElementVNode as a, normalizeClass as f, toDisplayString as b, createCommentVNode as u, createTextVNode as r } from "vue";
|
|
2
|
+
import m from "../ScalarHotkey.vue.js";
|
|
3
|
+
import { ScalarContextMenu as C, ScalarTooltip as g, ScalarIcon as n, ScalarDropdown as v, ScalarDropdownItem as c, ScalarDropdownDivider as y } from "@scalar/components";
|
|
4
|
+
const T = { class: "nav-item-icon-copy flex flex-1 items-center justify-center gap-1.5" }, $ = { class: "nav-item-copy text-xs" }, N = /* @__PURE__ */ d({
|
|
5
5
|
__name: "TopNavItem",
|
|
6
6
|
props: {
|
|
7
7
|
hotkey: {},
|
|
@@ -9,49 +9,130 @@ const d = { class: "nav-item-icon-copy flex flex-1 items-center justify-center g
|
|
|
9
9
|
label: {},
|
|
10
10
|
icon: {}
|
|
11
11
|
},
|
|
12
|
-
emits: ["click", "close"],
|
|
13
|
-
setup(
|
|
14
|
-
return (
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
12
|
+
emits: ["click", "close", "newTab", "copyUrl", "closeOtherTabs"],
|
|
13
|
+
setup(w) {
|
|
14
|
+
return (o, s) => (p(), k(t(C), { triggerClass: "w-full" }, {
|
|
15
|
+
trigger: i(() => [
|
|
16
|
+
e(t(g), {
|
|
17
|
+
class: "scalar-client",
|
|
18
|
+
delay: 500,
|
|
19
|
+
disableClosingTrigger: !0,
|
|
20
|
+
resize: "",
|
|
21
|
+
sideOffset: 4
|
|
22
|
+
}, {
|
|
23
|
+
trigger: i(() => [
|
|
24
|
+
a("div", {
|
|
25
|
+
class: f(["nav-item webkit-app-no-drag", { "nav-item__active": o.active }]),
|
|
26
|
+
onClick: s[1] || (s[1] = (l) => o.$emit("click"))
|
|
27
|
+
}, [
|
|
28
|
+
a("div", T, [
|
|
29
|
+
e(t(n), {
|
|
30
|
+
icon: o.icon,
|
|
31
|
+
size: "xs",
|
|
32
|
+
thickness: "2.5"
|
|
33
|
+
}, null, 8, ["icon"]),
|
|
34
|
+
a("span", $, b(o.label), 1)
|
|
35
|
+
]),
|
|
36
|
+
a("button", {
|
|
37
|
+
class: "nav-item-close",
|
|
38
|
+
type: "button",
|
|
39
|
+
onClick: s[0] || (s[0] = (l) => o.$emit("close"))
|
|
40
|
+
}, [
|
|
41
|
+
e(t(n), {
|
|
42
|
+
icon: "Close",
|
|
43
|
+
thickness: "1.75"
|
|
44
|
+
})
|
|
45
|
+
])
|
|
46
|
+
], 2)
|
|
32
47
|
]),
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
})
|
|
42
|
-
])
|
|
43
|
-
], 2)
|
|
48
|
+
content: i(() => [
|
|
49
|
+
o.hotkey ? (p(), k(m, {
|
|
50
|
+
key: 0,
|
|
51
|
+
hotkey: o.hotkey
|
|
52
|
+
}, null, 8, ["hotkey"])) : u("", !0)
|
|
53
|
+
]),
|
|
54
|
+
_: 1
|
|
55
|
+
})
|
|
44
56
|
]),
|
|
45
|
-
content:
|
|
46
|
-
e
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
},
|
|
57
|
+
content: i(() => [
|
|
58
|
+
e(t(v), {
|
|
59
|
+
class: "scalar-client",
|
|
60
|
+
static: ""
|
|
61
|
+
}, {
|
|
62
|
+
items: i(() => [
|
|
63
|
+
e(t(c), {
|
|
64
|
+
class: "flex items-center gap-1.5",
|
|
65
|
+
onClick: s[2] || (s[2] = (l) => o.$emit("newTab"))
|
|
66
|
+
}, {
|
|
67
|
+
default: i(() => [
|
|
68
|
+
e(t(n), {
|
|
69
|
+
icon: "AddTab",
|
|
70
|
+
size: "sm",
|
|
71
|
+
thickness: "1.5"
|
|
72
|
+
}),
|
|
73
|
+
r(" New Tab "),
|
|
74
|
+
e(m, {
|
|
75
|
+
class: "bg-b-2 ml-auto",
|
|
76
|
+
hotkey: "T"
|
|
77
|
+
})
|
|
78
|
+
]),
|
|
79
|
+
_: 1
|
|
80
|
+
}),
|
|
81
|
+
e(t(c), {
|
|
82
|
+
class: "flex items-center gap-1.5",
|
|
83
|
+
onClick: s[3] || (s[3] = (l) => o.$emit("copyUrl"))
|
|
84
|
+
}, {
|
|
85
|
+
default: i(() => [
|
|
86
|
+
e(t(n), {
|
|
87
|
+
icon: "Link",
|
|
88
|
+
size: "sm",
|
|
89
|
+
thickness: "1.5"
|
|
90
|
+
}),
|
|
91
|
+
r(" Copy URL ")
|
|
92
|
+
]),
|
|
93
|
+
_: 1
|
|
94
|
+
}),
|
|
95
|
+
e(t(y)),
|
|
96
|
+
e(t(c), {
|
|
97
|
+
class: "flex items-center gap-1.5",
|
|
98
|
+
onClick: s[4] || (s[4] = (l) => o.$emit("close"))
|
|
99
|
+
}, {
|
|
100
|
+
default: i(() => [
|
|
101
|
+
e(t(n), {
|
|
102
|
+
icon: "CloseTab",
|
|
103
|
+
size: "sm",
|
|
104
|
+
thickness: "1.5"
|
|
105
|
+
}),
|
|
106
|
+
r(" Close Tab "),
|
|
107
|
+
e(m, {
|
|
108
|
+
class: "bg-b-2 ml-auto",
|
|
109
|
+
hotkey: "W"
|
|
110
|
+
})
|
|
111
|
+
]),
|
|
112
|
+
_: 1
|
|
113
|
+
}),
|
|
114
|
+
e(t(c), {
|
|
115
|
+
class: "flex items-center gap-1.5",
|
|
116
|
+
onClick: s[5] || (s[5] = (l) => o.$emit("closeOtherTabs"))
|
|
117
|
+
}, {
|
|
118
|
+
default: i(() => [
|
|
119
|
+
e(t(n), {
|
|
120
|
+
icon: "CloseTabs",
|
|
121
|
+
size: "sm",
|
|
122
|
+
thickness: "1.5"
|
|
123
|
+
}),
|
|
124
|
+
r(" Close Other Tabs ")
|
|
125
|
+
]),
|
|
126
|
+
_: 1
|
|
127
|
+
})
|
|
128
|
+
]),
|
|
129
|
+
_: 1
|
|
130
|
+
})
|
|
50
131
|
]),
|
|
51
132
|
_: 1
|
|
52
133
|
}));
|
|
53
134
|
}
|
|
54
135
|
});
|
|
55
136
|
export {
|
|
56
|
-
|
|
137
|
+
N as default
|
|
57
138
|
};
|