@scalar/api-client 2.0.59 → 2.0.62
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 +47 -0
- package/dist/components/CodeInput/CodeInput.vue.js +2 -2
- package/dist/components/CodeInput/CodeInput.vue2.js +16 -15
- package/dist/components/CodeInput/codeVariableWidget.d.ts.map +1 -1
- package/dist/components/CodeInput/codeVariableWidget.js +35 -30
- package/dist/components/EnvironmentSelector/EnvironmentSelector.vue.d.ts +3 -0
- package/dist/components/EnvironmentSelector/EnvironmentSelector.vue.d.ts.map +1 -0
- package/dist/components/EnvironmentSelector/EnvironmentSelector.vue.js +114 -0
- package/dist/components/EnvironmentSelector/EnvironmentSelector.vue2.js +4 -0
- 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 +112 -64
- package/dist/layouts/App/create-api-client-app.d.ts +153 -129
- package/dist/layouts/App/create-api-client-app.d.ts.map +1 -1
- package/dist/layouts/Modal/create-api-client-modal.d.ts +306 -258
- package/dist/layouts/Modal/create-api-client-modal.d.ts.map +1 -1
- package/dist/libs/create-client.d.ts +153 -129
- 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/libs/normalizeHeaders.d.ts +1 -2
- package/dist/libs/normalizeHeaders.d.ts.map +1 -1
- package/dist/libs/sendRequest.d.ts +4 -5
- package/dist/libs/sendRequest.d.ts.map +1 -1
- package/dist/libs/sendRequest.js +104 -86
- package/dist/store/workspace.d.ts +302 -257
- package/dist/store/workspace.d.ts.map +1 -1
- package/dist/store/workspace.js +219 -216
- package/dist/style.css +1 -1
- package/dist/views/Environment/Environment.vue2.js +12 -12
- package/dist/views/Environment/EnvironmentVariableDropdown.vue.d.ts.map +1 -1
- package/dist/views/Environment/EnvironmentVariableDropdown.vue.js +54 -52
- package/dist/views/Request/Request.vue.d.ts.map +1 -1
- package/dist/views/Request/Request.vue.js +4 -4
- package/dist/views/Request/Request.vue2.js +91 -89
- package/dist/views/Request/RequestSection/RequestTable.vue.d.ts.map +1 -1
- package/dist/views/Request/RequestSection/RequestTable.vue.js +2 -2
- package/dist/views/Request/RequestSection/RequestTable.vue2.js +1 -1
- 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 +82 -80
- package/dist/views/Request/ResponseSection/ResponseBody.vue.d.ts +2 -2
- package/dist/views/Request/ResponseSection/ResponseBody.vue.d.ts.map +1 -1
- package/dist/views/Request/ResponseSection/ResponseBody.vue.js +20 -20
- package/dist/views/Request/ResponseSection/ResponseSection.vue.d.ts.map +1 -1
- package/dist/views/Request/ResponseSection/ResponseSection.vue.js +47 -42
- package/package.json +8 -8
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,52 @@
|
|
|
1
1
|
# @scalar/api-client
|
|
2
2
|
|
|
3
|
+
## 2.0.62
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- Updated dependencies [5bd8337]
|
|
8
|
+
- Updated dependencies [f931ac7]
|
|
9
|
+
- @scalar/openapi-parser@0.8.1
|
|
10
|
+
- @scalar/oas-utils@0.2.41
|
|
11
|
+
|
|
12
|
+
## 2.0.61
|
|
13
|
+
|
|
14
|
+
### Patch Changes
|
|
15
|
+
|
|
16
|
+
- 4b52f29: fix: request sidebar item ellipsis menu events
|
|
17
|
+
- 294ba08: fix: variable removal breaking line
|
|
18
|
+
- e67f5a8: chore(api-client): removed axios dependency
|
|
19
|
+
- 044fd7d: fix: strip variable from functio name and cta
|
|
20
|
+
- 152c016: feat: add environment selector to addressbar
|
|
21
|
+
- Updated dependencies [b4f9f97]
|
|
22
|
+
- Updated dependencies [0afb293]
|
|
23
|
+
- Updated dependencies [b4f9f97]
|
|
24
|
+
- Updated dependencies [e67f5a8]
|
|
25
|
+
- Updated dependencies [b4f9f97]
|
|
26
|
+
- Updated dependencies [b4f9f97]
|
|
27
|
+
- Updated dependencies [b63be39]
|
|
28
|
+
- Updated dependencies [b231e7d]
|
|
29
|
+
- Updated dependencies [152c016]
|
|
30
|
+
- Updated dependencies [b4f9f97]
|
|
31
|
+
- @scalar/openapi-parser@0.8.0
|
|
32
|
+
- @scalar/oas-utils@0.2.40
|
|
33
|
+
- @scalar/openapi-types@0.1.0
|
|
34
|
+
- @scalar/components@0.12.42
|
|
35
|
+
- @scalar/types@0.0.6
|
|
36
|
+
|
|
37
|
+
## 2.0.60
|
|
38
|
+
|
|
39
|
+
### Patch Changes
|
|
40
|
+
|
|
41
|
+
- c02202c: feat: main topnav context menu
|
|
42
|
+
- Updated dependencies [9e8d40d]
|
|
43
|
+
- Updated dependencies [80a3c46]
|
|
44
|
+
- Updated dependencies [c02202c]
|
|
45
|
+
- @scalar/components@0.12.41
|
|
46
|
+
- @scalar/themes@0.9.28
|
|
47
|
+
- @scalar/oas-utils@0.2.39
|
|
48
|
+
- @scalar/types@0.0.5
|
|
49
|
+
|
|
3
50
|
## 2.0.59
|
|
4
51
|
|
|
5
52
|
### Patch Changes
|
|
@@ -2,7 +2,7 @@ import o from "./CodeInput.vue2.js";
|
|
|
2
2
|
/* empty css */
|
|
3
3
|
/* empty css */
|
|
4
4
|
import t from "../../_virtual/_plugin-vue_export-helper.js";
|
|
5
|
-
const
|
|
5
|
+
const _ = /* @__PURE__ */ t(o, [["__scopeId", "data-v-d0793c7f"]]);
|
|
6
6
|
export {
|
|
7
|
-
|
|
7
|
+
_ as default
|
|
8
8
|
};
|
|
@@ -40,7 +40,7 @@ const J = ["id"], K = {
|
|
|
40
40
|
emits: ["submit", "update:modelValue"],
|
|
41
41
|
setup(k, { expose: w, emit: C }) {
|
|
42
42
|
var b;
|
|
43
|
-
const e = k,
|
|
43
|
+
const e = k, n = C, d = q(), _ = d.id || `id-${j()}`, p = y(!1), {
|
|
44
44
|
activeWorkspace: x,
|
|
45
45
|
activeParsedEnvironments: c,
|
|
46
46
|
isReadOnly: F,
|
|
@@ -48,26 +48,27 @@ const J = ["id"], K = {
|
|
|
48
48
|
router: S
|
|
49
49
|
} = H();
|
|
50
50
|
function P(l) {
|
|
51
|
-
return l === e.modelValue ? null : e.handleFieldChange ? e.handleFieldChange(l) :
|
|
51
|
+
return l === e.modelValue ? null : e.handleFieldChange ? e.handleFieldChange(l) : n("update:modelValue", l);
|
|
52
52
|
}
|
|
53
53
|
function O(l) {
|
|
54
|
-
return e.handleFieldSubmit ? e.handleFieldSubmit(l) :
|
|
54
|
+
return e.handleFieldSubmit ? e.handleFieldSubmit(l) : n("submit", l);
|
|
55
55
|
}
|
|
56
56
|
function R(l) {
|
|
57
57
|
p.value = !1, e.emitOnBlur && e.modelValue && O(l);
|
|
58
58
|
}
|
|
59
|
-
const
|
|
60
|
-
e.colorPicker &&
|
|
59
|
+
const r = [];
|
|
60
|
+
e.colorPicker && r.push(W), e.withVariables && !x.value.isReadOnly && r.push(
|
|
61
61
|
z({
|
|
62
62
|
withServers: e.withServers,
|
|
63
63
|
activeParsedEnvironments: c,
|
|
64
64
|
environments: m,
|
|
65
65
|
router: S
|
|
66
66
|
})
|
|
67
|
-
),
|
|
68
|
-
D({ environments: m, activeParsedEnvironments: c, isReadOnly: F })
|
|
69
|
-
|
|
70
|
-
|
|
67
|
+
), r.push(
|
|
68
|
+
D({ environments: m, activeParsedEnvironments: c, isReadOnly: F }),
|
|
69
|
+
G
|
|
70
|
+
);
|
|
71
|
+
const f = y(null), { codeMirror: a } = U({
|
|
71
72
|
content: o(
|
|
72
73
|
() => e.modelValue !== void 0 ? String(e.modelValue) : ""
|
|
73
74
|
),
|
|
@@ -81,11 +82,11 @@ const J = ["id"], K = {
|
|
|
81
82
|
lineNumbers: o(() => e.lineNumbers),
|
|
82
83
|
language: o(() => e.language),
|
|
83
84
|
lint: o(() => e.lint),
|
|
84
|
-
extensions:
|
|
85
|
+
extensions: r,
|
|
85
86
|
placeholder: o(() => e.placeholder)
|
|
86
87
|
});
|
|
87
|
-
(b =
|
|
88
|
-
|
|
88
|
+
(b = a.value) == null || b.focus(), I(a, () => {
|
|
89
|
+
a.value && Object.prototype.hasOwnProperty.call(d, "autofocus") && a.value.focus();
|
|
89
90
|
});
|
|
90
91
|
const $ = M(() => {
|
|
91
92
|
var l;
|
|
@@ -94,7 +95,7 @@ const J = ["id"], K = {
|
|
|
94
95
|
return w({
|
|
95
96
|
focus: () => {
|
|
96
97
|
var l;
|
|
97
|
-
(l =
|
|
98
|
+
(l = a.value) == null || l.focus();
|
|
98
99
|
}
|
|
99
100
|
}), (l, u) => {
|
|
100
101
|
var h;
|
|
@@ -103,12 +104,12 @@ const J = ["id"], K = {
|
|
|
103
104
|
key: 0,
|
|
104
105
|
modelValue: e.modelValue,
|
|
105
106
|
value: e.enum,
|
|
106
|
-
"onUpdate:modelValue": u[0] || (u[0] = (i) =>
|
|
107
|
+
"onUpdate:modelValue": u[0] || (u[0] = (i) => n("update:modelValue", i))
|
|
107
108
|
}, null, 8, ["modelValue", "value"])) : e.type === "boolean" || (h = e.type) != null && h.includes("boolean") ? (t(), v(V, {
|
|
108
109
|
key: 1,
|
|
109
110
|
modelValue: e.modelValue,
|
|
110
111
|
value: $.value,
|
|
111
|
-
"onUpdate:modelValue": u[1] || (u[1] = (i) =>
|
|
112
|
+
"onUpdate:modelValue": u[1] || (u[1] = (i) => n("update:modelValue", i))
|
|
112
113
|
}, null, 8, ["modelValue", "value"])) : (t(), s("div", T({
|
|
113
114
|
key: 2,
|
|
114
115
|
id: A(_)
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"codeVariableWidget.d.ts","sourceRoot":"","sources":["../../../src/components/CodeInput/codeVariableWidget.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,mBAAmB,CAAA;AAEvD,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,kDAAkD,CAAA;AACnF,OAAO,EACL,UAAU,EACV,KAAK,aAAa,EAClB,UAAU,EAEV,UAAU,EACV,KAAK,UAAU,EAEhB,MAAM,wBAAwB,CAAA;AAuB/B,KAAK,wBAAwB,GAAG,cAAc,CAAC,0BAA0B,CAAC,CAAA;AAC1E,KAAK,UAAU,GAAG,cAAc,CAAC,YAAY,CAAC,CAAA;AA2G9C,eAAO,MAAM,UAAU,UAAW;IAChC,YAAY,EAAE,MAAM,CAAC,MAAM,EAAE,WAAW,CAAC,CAAA;IACzC,wBAAwB,EAAE,wBAAwB,CAAA;IAClD,UAAU,EAAE,UAAU,CAAA;CACvB;iBAGkB,aAAa;mBAMX,UAAU;2BAMF,UAAU;EAkCpC,CAAA;AAEH,eAAO,MAAM,gBAAgB,
|
|
1
|
+
{"version":3,"file":"codeVariableWidget.d.ts","sourceRoot":"","sources":["../../../src/components/CodeInput/codeVariableWidget.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,mBAAmB,CAAA;AAEvD,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,kDAAkD,CAAA;AACnF,OAAO,EACL,UAAU,EACV,KAAK,aAAa,EAClB,UAAU,EAEV,UAAU,EACV,KAAK,UAAU,EAEhB,MAAM,wBAAwB,CAAA;AAuB/B,KAAK,wBAAwB,GAAG,cAAc,CAAC,0BAA0B,CAAC,CAAA;AAC1E,KAAK,UAAU,GAAG,cAAc,CAAC,YAAY,CAAC,CAAA;AA2G9C,eAAO,MAAM,UAAU,UAAW;IAChC,YAAY,EAAE,MAAM,CAAC,MAAM,EAAE,WAAW,CAAC,CAAA;IACzC,wBAAwB,EAAE,wBAAwB,CAAA;IAClD,UAAU,EAAE,UAAU,CAAA;CACvB;iBAGkB,aAAa;mBAMX,UAAU;2BAMF,UAAU;EAkCpC,CAAA;AAEH,eAAO,MAAM,gBAAgB,uCA8B3B,CAAA"}
|
|
@@ -1,33 +1,33 @@
|
|
|
1
|
-
var
|
|
2
|
-
var
|
|
3
|
-
var r = (n, e, t) =>
|
|
1
|
+
var p = Object.defineProperty;
|
|
2
|
+
var v = (n, e, t) => e in n ? p(n, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : n[e] = t;
|
|
3
|
+
var r = (n, e, t) => v(n, typeof e != "symbol" ? e + "" : e, t);
|
|
4
4
|
import { ScalarButton as f, ScalarIcon as g, ScalarTooltip as b } from "@scalar/components";
|
|
5
|
-
import { ViewPlugin as x, RangeSetBuilder as
|
|
6
|
-
import { defineComponent as C, h as
|
|
7
|
-
const
|
|
5
|
+
import { ViewPlugin as x, RangeSetBuilder as y, Decoration as w, EditorView as N, WidgetType as E } from "@scalar/use-codemirror";
|
|
6
|
+
import { defineComponent as C, h as i, createApp as D } from "vue";
|
|
7
|
+
const S = (n, e) => "_scalarEnvId" in n ? `bg-${e[n._scalarEnvId].color}` : "bg-grey";
|
|
8
8
|
class d extends E {
|
|
9
|
-
constructor(t,
|
|
9
|
+
constructor(t, a, s, o) {
|
|
10
10
|
super();
|
|
11
11
|
r(this, "app");
|
|
12
12
|
r(this, "environments");
|
|
13
13
|
r(this, "activeParsedEnvironments");
|
|
14
14
|
r(this, "isReadOnly");
|
|
15
|
-
this.variableName = t, this.variableName = t, this.environments =
|
|
15
|
+
this.variableName = t, this.variableName = t, this.environments = a, this.activeParsedEnvironments = s, this.isReadOnly = o;
|
|
16
16
|
}
|
|
17
17
|
toDOM() {
|
|
18
18
|
const t = document.createElement("span");
|
|
19
19
|
t.className = "cm-pill", t.textContent = `${this.variableName}`;
|
|
20
|
-
const
|
|
20
|
+
const a = C({
|
|
21
21
|
props: { variableName: { type: String, default: null } },
|
|
22
22
|
render: () => {
|
|
23
23
|
const s = this.activeParsedEnvironments.value.find(
|
|
24
24
|
(c) => c.key === this.variableName
|
|
25
25
|
);
|
|
26
|
-
s && (t.className += ` ${
|
|
27
|
-
const o = s ?
|
|
28
|
-
|
|
29
|
-
!this.isReadOnly &&
|
|
30
|
-
|
|
26
|
+
s && (t.className += ` ${S(s, this.environments)}`);
|
|
27
|
+
const o = s ? i("div", { class: "p-2" }, s.value) : i("div", { class: "divide-y divide-1/2 grid" }, [
|
|
28
|
+
i("span", { class: "p-2" }, "Variable not found"),
|
|
29
|
+
!this.isReadOnly && i("div", { class: "p-1" }, [
|
|
30
|
+
i(
|
|
31
31
|
f,
|
|
32
32
|
{
|
|
33
33
|
class: "gap-1.5 justify-start font-normal px-1 py-1.5 h-auto transition-colors rounded no-underline text-xxs w-full hover:bg-b-2",
|
|
@@ -37,13 +37,13 @@ class d extends E {
|
|
|
37
37
|
}
|
|
38
38
|
},
|
|
39
39
|
[
|
|
40
|
-
|
|
40
|
+
i(g, { class: "w-2", icon: "Add", size: "xs" }),
|
|
41
41
|
"Add variable"
|
|
42
42
|
]
|
|
43
43
|
)
|
|
44
44
|
])
|
|
45
45
|
]);
|
|
46
|
-
return
|
|
46
|
+
return i(
|
|
47
47
|
b,
|
|
48
48
|
{
|
|
49
49
|
align: "start",
|
|
@@ -53,8 +53,8 @@ class d extends E {
|
|
|
53
53
|
sideOffset: 6
|
|
54
54
|
},
|
|
55
55
|
{
|
|
56
|
-
trigger: () =>
|
|
57
|
-
content: () =>
|
|
56
|
+
trigger: () => i("span", `${this.variableName}`),
|
|
57
|
+
content: () => i(
|
|
58
58
|
"div",
|
|
59
59
|
{
|
|
60
60
|
class: "w-content shadow-lg rounded bg-b-1 text-xxs leading-5 text-c-1"
|
|
@@ -65,7 +65,7 @@ class d extends E {
|
|
|
65
65
|
);
|
|
66
66
|
}
|
|
67
67
|
});
|
|
68
|
-
return this.app =
|
|
68
|
+
return this.app = D(a, { variableName: this.variableName }), this.app.mount(t), t;
|
|
69
69
|
}
|
|
70
70
|
destroy() {
|
|
71
71
|
this.app && this.app.unmount();
|
|
@@ -87,18 +87,18 @@ const $ = (n) => x.fromClass(
|
|
|
87
87
|
(e.docChanged || e.viewportChanged) && (this.decorations = this.buildDecorations(e.view));
|
|
88
88
|
}
|
|
89
89
|
buildDecorations(e) {
|
|
90
|
-
const t = new
|
|
91
|
-
for (const { from:
|
|
92
|
-
const o = e.state.doc.sliceString(
|
|
90
|
+
const t = new y();
|
|
91
|
+
for (const { from: a, to: s } of e.visibleRanges) {
|
|
92
|
+
const o = e.state.doc.sliceString(a, s), c = /{{(.*?)}}/g;
|
|
93
93
|
let l;
|
|
94
94
|
for (; (l = c.exec(o)) !== null; ) {
|
|
95
|
-
const m =
|
|
95
|
+
const m = a + l.index, u = m + l[0].length, h = l[1];
|
|
96
96
|
t.add(
|
|
97
97
|
m,
|
|
98
|
-
|
|
99
|
-
|
|
98
|
+
u,
|
|
99
|
+
w.widget({
|
|
100
100
|
widget: new d(
|
|
101
|
-
|
|
101
|
+
h,
|
|
102
102
|
n.environments,
|
|
103
103
|
n.activeParsedEnvironments,
|
|
104
104
|
n.isReadOnly
|
|
@@ -117,11 +117,16 @@ const $ = (n) => x.fromClass(
|
|
|
117
117
|
), A = N.domEventHandlers({
|
|
118
118
|
keydown(n, e) {
|
|
119
119
|
if (n.key === "Backspace") {
|
|
120
|
-
const { state: t } = e, { from:
|
|
121
|
-
if (
|
|
120
|
+
const { state: t } = e, { from: a, to: s } = t.selection.main;
|
|
121
|
+
if (a === 0 && s === t.doc.length)
|
|
122
122
|
return e.dispatch({
|
|
123
|
-
changes: { from:
|
|
124
|
-
selection: { anchor:
|
|
123
|
+
changes: { from: 0, to: t.doc.length },
|
|
124
|
+
selection: { anchor: 0 }
|
|
125
|
+
}), n.preventDefault(), !0;
|
|
126
|
+
if (a === s && a > 0 && t.doc.sliceString(a - 2, a) === "}}")
|
|
127
|
+
return e.dispatch({
|
|
128
|
+
changes: { from: a - 2, to: s },
|
|
129
|
+
selection: { anchor: a - 2 }
|
|
125
130
|
}), n.preventDefault(), !0;
|
|
126
131
|
}
|
|
127
132
|
return !1;
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
declare const _default: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}, {}>;
|
|
2
|
+
export default _default;
|
|
3
|
+
//# sourceMappingURL=EnvironmentSelector.vue.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"EnvironmentSelector.vue.d.ts","sourceRoot":"","sources":["../../../src/components/EnvironmentSelector/EnvironmentSelector.vue"],"names":[],"mappings":";AAgdA,wBAKG"}
|
|
@@ -0,0 +1,114 @@
|
|
|
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 x, createTextVNode as l, toDisplayString as k, createCommentVNode as j } from "vue";
|
|
2
|
+
import { useWorkspace as z } from "../../store/workspace.js";
|
|
3
|
+
import { ScalarDropdown as B, ScalarDropdownItem as d, ScalarIcon as c, ScalarDropdownDivider as I, ScalarButton as V } from "@scalar/components";
|
|
4
|
+
import { useRouter as M } from "vue-router";
|
|
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({
|
|
6
|
+
__name: "EnvironmentSelector",
|
|
7
|
+
setup(R) {
|
|
8
|
+
const {
|
|
9
|
+
environments: u,
|
|
10
|
+
activeWorkspace: s,
|
|
11
|
+
workspaceMutators: w,
|
|
12
|
+
activeEnvironment: _,
|
|
13
|
+
isReadOnly: g
|
|
14
|
+
} = z(), b = M(), m = (i) => {
|
|
15
|
+
w.edit(s.value.uid, "activeEnvironmentId", i);
|
|
16
|
+
}, C = () => b.push(`/workspace/${s.value.uid}/environment`), E = S(() => [
|
|
17
|
+
// Always add the default environment
|
|
18
|
+
u.default,
|
|
19
|
+
...Object.values(u).filter((i) => i.uid !== "default")
|
|
20
|
+
]);
|
|
21
|
+
return (i, p) => (a(), f("div", null, [
|
|
22
|
+
n(e(B), null, {
|
|
23
|
+
items: o(() => [
|
|
24
|
+
(a(!0), f(N, null, D(E.value, (t) => (a(), v(e(d), {
|
|
25
|
+
key: t.uid,
|
|
26
|
+
class: "flex gap-1.5 group/item items-center whitespace-nowrap text-ellipsis overflow-hidden",
|
|
27
|
+
onClick: h((F) => m(t.uid), ["stop"])
|
|
28
|
+
}, {
|
|
29
|
+
default: o(() => [
|
|
30
|
+
r("div", {
|
|
31
|
+
class: x([
|
|
32
|
+
"flex items-center justify-center rounded-full p-[3px] w-4 h-4 group-hover/item:shadow-border",
|
|
33
|
+
e(s).activeEnvironmentId === t.uid ? "bg-blue text-b-1" : "text-transparent"
|
|
34
|
+
])
|
|
35
|
+
}, [
|
|
36
|
+
n(e(c), {
|
|
37
|
+
class: "size-2.5",
|
|
38
|
+
icon: "Checkmark",
|
|
39
|
+
thickness: "3.5"
|
|
40
|
+
})
|
|
41
|
+
], 2),
|
|
42
|
+
l(" " + k(t.name), 1)
|
|
43
|
+
]),
|
|
44
|
+
_: 2
|
|
45
|
+
}, 1032, ["onClick"]))), 128)),
|
|
46
|
+
n(e(d), {
|
|
47
|
+
class: "flex gap-1.5 group/item items-center whitespace-nowrap text-ellipsis overflow-hidden",
|
|
48
|
+
onClick: p[0] || (p[0] = h((t) => m(""), ["stop"]))
|
|
49
|
+
}, {
|
|
50
|
+
default: o(() => [
|
|
51
|
+
r("div", {
|
|
52
|
+
class: x([
|
|
53
|
+
"flex items-center justify-center rounded-full p-[3px] w-4 h-4 group-hover/item:shadow-border",
|
|
54
|
+
e(s).activeEnvironmentId === "" ? "bg-blue text-b-1" : "text-transparent"
|
|
55
|
+
])
|
|
56
|
+
}, [
|
|
57
|
+
n(e(c), {
|
|
58
|
+
class: "size-2.5",
|
|
59
|
+
icon: "Checkmark",
|
|
60
|
+
thickness: "3.5"
|
|
61
|
+
})
|
|
62
|
+
], 2),
|
|
63
|
+
l(" No Environment ")
|
|
64
|
+
]),
|
|
65
|
+
_: 1
|
|
66
|
+
}),
|
|
67
|
+
n(e(I)),
|
|
68
|
+
e(g) ? j("", !0) : (a(), v(e(d), {
|
|
69
|
+
key: 0,
|
|
70
|
+
class: "flex items-center gap-1.5",
|
|
71
|
+
onClick: C
|
|
72
|
+
}, {
|
|
73
|
+
default: o(() => [
|
|
74
|
+
r("div", $, [
|
|
75
|
+
n(e(c), {
|
|
76
|
+
icon: "Brackets",
|
|
77
|
+
size: "sm"
|
|
78
|
+
})
|
|
79
|
+
]),
|
|
80
|
+
O
|
|
81
|
+
]),
|
|
82
|
+
_: 1
|
|
83
|
+
}))
|
|
84
|
+
]),
|
|
85
|
+
default: o(() => [
|
|
86
|
+
n(e(V), {
|
|
87
|
+
class: "font-normal h-auto justify-start py-1.5 px-1.5 text-c-1 hover:bg-b-2 text-c-2 w-fit",
|
|
88
|
+
fullWidth: "",
|
|
89
|
+
variant: "ghost"
|
|
90
|
+
}, {
|
|
91
|
+
default: o(() => {
|
|
92
|
+
var t;
|
|
93
|
+
return [
|
|
94
|
+
r("h2", W, [
|
|
95
|
+
l(k(((t = e(_)) == null ? void 0 : t.name) ?? "No Environment") + " ", 1),
|
|
96
|
+
n(e(c), {
|
|
97
|
+
class: "size-2.5",
|
|
98
|
+
icon: "ChevronDown",
|
|
99
|
+
thickness: "3.5"
|
|
100
|
+
})
|
|
101
|
+
])
|
|
102
|
+
];
|
|
103
|
+
}),
|
|
104
|
+
_: 1
|
|
105
|
+
})
|
|
106
|
+
]),
|
|
107
|
+
_: 1
|
|
108
|
+
})
|
|
109
|
+
]));
|
|
110
|
+
}
|
|
111
|
+
});
|
|
112
|
+
export {
|
|
113
|
+
G as default
|
|
114
|
+
};
|
|
@@ -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":";gBAsQc;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;;AAqdlD,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
3
|
import t from "../../_virtual/_plugin-vue_export-helper.js";
|
|
4
|
-
const
|
|
4
|
+
const a = /* @__PURE__ */ t(o, [["__scopeId", "data-v-53f7f946"]]);
|
|
5
5
|
export {
|
|
6
|
-
|
|
6
|
+
a as default
|
|
7
7
|
};
|