vite-plugin-vue-devtools 0.4.7 → 0.4.10
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/dist/client/assets/{IframeView.vue_vue_type_script_setup_true_lang-4c77817b.js → IframeView.vue_vue_type_script_setup_true_lang-e86027e5.js} +1 -1
- package/dist/client/assets/{StateFields.vue_vue_type_script_setup_true_lang-6969f024.js → StateFields.vue_vue_type_script_setup_true_lang-a78e5cb0.js} +4 -4
- package/dist/client/assets/{VIcon.vue_vue_type_script_setup_true_lang-41c110ef.js → VIcon.vue_vue_type_script_setup_true_lang-82a30fea.js} +1 -1
- package/dist/client/assets/{VIconButton.vue_vue_type_script_setup_true_lang-a89f6c88.js → VIconButton.vue_vue_type_script_setup_true_lang-fe1578eb.js} +2 -2
- package/dist/client/assets/{VIconTitle.vue_vue_type_script_setup_true_lang-d3431291.js → VIconTitle.vue_vue_type_script_setup_true_lang-53c720d3.js} +1 -1
- package/dist/client/assets/{VPanelGrids-24560813.js → VPanelGrids-dc69b639.js} +1 -1
- package/dist/client/assets/{VSectionBlock-ba31730a.js → VSectionBlock-57ec7b68.js} +3 -3
- package/dist/client/assets/{VTextInput.vue_vue_type_script_setup_true_lang-5373326c.js → VTextInput.vue_vue_type_script_setup_true_lang-c7c2878d.js} +2 -2
- package/dist/client/assets/{__eyedropper-8e124d1e.js → __eyedropper-c3a23916.js} +2 -2
- package/dist/client/assets/_commonjsHelpers-65004790.js +37 -0
- package/dist/client/assets/{assets-136b5c5e.js → assets-2b8518ac.js} +8 -8
- package/dist/client/assets/{component-docs-49ee42b3.js → component-docs-e06030af.js} +5 -5
- package/dist/client/assets/{components-f31cfed4.js → components-433e30b5.js} +11 -8
- package/dist/client/assets/{documentations-99f74693.js → documentations-a41234ba.js} +3 -3
- package/dist/client/assets/{graph-65afb14a.js → graph-d61217d6.js} +2 -2
- package/dist/client/assets/{index-8d0405da.js → index-07396aec.js} +1 -1
- package/dist/client/assets/{index-7c5b746a.css → index-5221558c.css} +1 -1
- package/dist/client/assets/{index-233a79fb.js → index-b8a9099c.js} +2383 -241
- package/dist/client/assets/{inspect-4188d5cc.js → inspect-2b7bf157.js} +3 -3
- package/dist/client/assets/{npm-6d9ce0f4.js → npm-62fb6b03.js} +7 -7
- package/dist/client/assets/{overview-aef80b27.js → overview-95247458.js} +5 -5
- package/dist/client/assets/{pages-f80c7a3e.js → pages-72e88bdb.js} +5 -5
- package/dist/client/assets/{pinia-8c6ed567.js → pinia-55c3fcd8.js} +6 -6
- package/dist/client/assets/{routes-64dbd0f9.js → routes-ab38a14f.js} +7 -7
- package/dist/client/assets/{rpc-358fc96c.js → rpc-cf3bd0fc.js} +1 -1
- package/dist/client/assets/settings-3815e37a.css +11 -0
- package/dist/client/assets/settings-c390240d.js +9699 -0
- package/dist/client/assets/{splitpanes.es-2be998f1.js → splitpanes.es-dd27b7fe.js} +1 -1
- package/dist/client/assets/{timeline-0c017176.js → timeline-5fa02442.js} +8 -8
- package/dist/client/index.html +2 -2
- package/dist/index.cjs +1 -1
- package/dist/index.mjs +1 -1
- package/package.json +2 -1
- package/src/node/views/Main.vue +5 -5
- package/dist/client/assets/_commonjsHelpers-c0d8ada0.js +0 -9
- package/dist/client/assets/settings-5fd1add1.js +0 -337
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { ar as h, o as openBlock, e as createElementBlock, f as renderSlot, l as normalizeStyle } from './index-b8a9099c.js';
|
|
2
2
|
|
|
3
3
|
const M = {
|
|
4
4
|
name: "splitpanes",
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { _ as _sfc_main$2 } from './StateFields.vue_vue_type_script_setup_true_lang-
|
|
2
|
-
import { _ as __unplugin_components_0 } from './VPanelGrids-
|
|
3
|
-
import { p as pushScopeId, a as popScopeId, n as nextTick, o as openBlock, c as createBlock, w as withScopeId, m as markRaw, s as shallowReactive, r as resolveComponent, b as resolveDirective, d as withDirectives, e as createElementBlock, f as renderSlot, g as createCommentVNode, h as withCtx, F as Fragment, i as renderList, j as resolveDynamicComponent, k as mergeProps, t as toHandlers, l as normalizeStyle, q as normalizeClass, u as createVNode, v as defineComponent, x as createBaseVNode, y as toDisplayString, z as unref, _ as __unplugin_components_7, A as timelineLayer, B as activeTimelineEvents, C as activeTimelineEventIndex, D as toggleTimelineEventIndex, E as timelineEventDetails, G as activeLayerId, H as toggleTimelineLayer } from './index-
|
|
4
|
-
import { c as commonjsGlobal, g as getDefaultExportFromCjs } from './_commonjsHelpers-
|
|
5
|
-
import { g, M } from './splitpanes.es-
|
|
6
|
-
import './VIcon.vue_vue_type_script_setup_true_lang-
|
|
7
|
-
import './index-
|
|
8
|
-
import './VIconButton.vue_vue_type_script_setup_true_lang-
|
|
1
|
+
import { _ as _sfc_main$2 } from './StateFields.vue_vue_type_script_setup_true_lang-a78e5cb0.js';
|
|
2
|
+
import { _ as __unplugin_components_0 } from './VPanelGrids-dc69b639.js';
|
|
3
|
+
import { p as pushScopeId, a as popScopeId, n as nextTick, o as openBlock, c as createBlock, w as withScopeId, m as markRaw, s as shallowReactive, r as resolveComponent, b as resolveDirective, d as withDirectives, e as createElementBlock, f as renderSlot, g as createCommentVNode, h as withCtx, F as Fragment, i as renderList, j as resolveDynamicComponent, k as mergeProps, t as toHandlers, l as normalizeStyle, q as normalizeClass, u as createVNode, v as defineComponent, x as createBaseVNode, y as toDisplayString, z as unref, _ as __unplugin_components_7, A as timelineLayer, B as activeTimelineEvents, C as activeTimelineEventIndex, D as toggleTimelineEventIndex, E as timelineEventDetails, G as activeLayerId, H as toggleTimelineLayer } from './index-b8a9099c.js';
|
|
4
|
+
import { c as commonjsGlobal, g as getDefaultExportFromCjs } from './_commonjsHelpers-65004790.js';
|
|
5
|
+
import { g, M } from './splitpanes.es-dd27b7fe.js';
|
|
6
|
+
import './VIcon.vue_vue_type_script_setup_true_lang-82a30fea.js';
|
|
7
|
+
import './index-07396aec.js';
|
|
8
|
+
import './VIconButton.vue_vue_type_script_setup_true_lang-fe1578eb.js';
|
|
9
9
|
|
|
10
10
|
var dayjs_min = {exports: {}};/* Injected with object hook! */
|
|
11
11
|
|
package/dist/client/index.html
CHANGED
|
@@ -5,8 +5,8 @@
|
|
|
5
5
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
6
6
|
<link rel="icon" href="/favicon.svg" type="image/svg+xml">
|
|
7
7
|
<title>Vue DevTools</title>
|
|
8
|
-
<script type="module" crossorigin src="./assets/index-
|
|
9
|
-
<link rel="stylesheet" href="./assets/index-
|
|
8
|
+
<script type="module" crossorigin src="./assets/index-b8a9099c.js"></script>
|
|
9
|
+
<link rel="stylesheet" href="./assets/index-5221558c.css">
|
|
10
10
|
</head>
|
|
11
11
|
<body>
|
|
12
12
|
<div id="app"></div>
|
package/dist/index.cjs
CHANGED
|
@@ -7509,7 +7509,7 @@ function imageMeta(input) {
|
|
|
7509
7509
|
|
|
7510
7510
|
const _imageMetaCache = /* @__PURE__ */ new Map();
|
|
7511
7511
|
function guessType(path) {
|
|
7512
|
-
if (/\.(a?png|jpe?g|gif|svg|webp|avif|ico|bmp|tiff?)$/i.test(path))
|
|
7512
|
+
if (/\.(a?png|jpe?g|jxl|gif|svg|webp|avif|ico|bmp|tiff?)$/i.test(path))
|
|
7513
7513
|
return "image";
|
|
7514
7514
|
if (/\.(mp4|webm|ogv|mov|avi|flv|wmv|mpg|mpeg|mkv|3gp|3g2|ts|mts|m2ts|vob|ogm|ogx|rm|rmvb|asf|amv|divx|m4v|svi|viv|f4v|f4p|f4a|f4b)$/i.test(path))
|
|
7515
7515
|
return "video";
|
package/dist/index.mjs
CHANGED
|
@@ -7483,7 +7483,7 @@ function imageMeta(input) {
|
|
|
7483
7483
|
|
|
7484
7484
|
const _imageMetaCache = /* @__PURE__ */ new Map();
|
|
7485
7485
|
function guessType(path) {
|
|
7486
|
-
if (/\.(a?png|jpe?g|gif|svg|webp|avif|ico|bmp|tiff?)$/i.test(path))
|
|
7486
|
+
if (/\.(a?png|jpe?g|jxl|gif|svg|webp|avif|ico|bmp|tiff?)$/i.test(path))
|
|
7487
7487
|
return "image";
|
|
7488
7488
|
if (/\.(mp4|webm|ogv|mov|avi|flv|wmv|mpg|mpeg|mkv|3gp|3g2|ts|mts|m2ts|vob|ogm|ogx|rm|rmvb|asf|amv|divx|m4v|svi|viv|f4v|f4p|f4a|f4b)$/i.test(path))
|
|
7489
7489
|
return "video";
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "vite-plugin-vue-devtools",
|
|
3
|
-
"version": "0.4.
|
|
3
|
+
"version": "0.4.10",
|
|
4
4
|
"packageManager": "pnpm@8.4.0",
|
|
5
5
|
"description": "A vite plugin for Vue Devtools",
|
|
6
6
|
"author": "webfansplz",
|
|
@@ -71,6 +71,7 @@
|
|
|
71
71
|
"vite-plugin-inspect": "^0.7.28",
|
|
72
72
|
"vite-plugin-vue-inspector": "^3.4.2",
|
|
73
73
|
"vue-router": "^4.2.2",
|
|
74
|
+
"vuedraggable": "^4.1.0",
|
|
74
75
|
"xterm": "^5.1.0",
|
|
75
76
|
"xterm-addon-fit": "^0.7.0"
|
|
76
77
|
},
|
package/src/node/views/Main.vue
CHANGED
|
@@ -229,7 +229,7 @@ collectHookBuffer()
|
|
|
229
229
|
<!-- toggle button -->
|
|
230
230
|
<div v-if="!checkIsSafari()" class="vue-devtools-glowing" :style="isDragging ? 'opacity: 0.6 !important' : ''" />
|
|
231
231
|
<div ref="panelEl" class="vue-devtools-button-panel" @pointerdown="onPointerDown">
|
|
232
|
-
<
|
|
232
|
+
<div
|
|
233
233
|
class="vue-devtools-icon-button vue-devtools-vue-button"
|
|
234
234
|
title="Toggle Vue DevTools" aria-label="Toggle devtools panel"
|
|
235
235
|
:style="panelVisible ? '' : 'filter:saturate(0)'"
|
|
@@ -240,9 +240,9 @@ collectHookBuffer()
|
|
|
240
240
|
<path fill="#41B883" d="m0 0l128 220.8L256 0h-51.2L128 132.48L50.56 0H0Z" />
|
|
241
241
|
<path fill="#35495E" d="M50.56 0L128 133.12L204.8 0h-47.36L128 51.2L97.92 0H50.56Z" />
|
|
242
242
|
</svg>
|
|
243
|
-
</
|
|
243
|
+
</div>
|
|
244
244
|
<div style="border-left: 1px solid #8883;width:1px;height:10px;" />
|
|
245
|
-
<
|
|
245
|
+
<div
|
|
246
246
|
class="vue-devtools-icon-button vue-devtools-inspector-button"
|
|
247
247
|
:class="{ disabled: !inspectorLoaded }"
|
|
248
248
|
:disabled="!inspectorLoaded"
|
|
@@ -256,7 +256,7 @@ collectHookBuffer()
|
|
|
256
256
|
>
|
|
257
257
|
<g fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"><circle cx="12" cy="12" r=".5" fill="currentColor" /><path d="M5 12a7 7 0 1 0 14 0a7 7 0 1 0-14 0m7-9v2m-9 7h2m7 7v2m7-9h2" /></g>
|
|
258
258
|
</svg>
|
|
259
|
-
</
|
|
259
|
+
</div>
|
|
260
260
|
</div>
|
|
261
261
|
<!-- iframe -->
|
|
262
262
|
<Frame
|
|
@@ -282,7 +282,7 @@ collectHookBuffer()
|
|
|
282
282
|
transform: translate(-50%, -50%) rotate(0);
|
|
283
283
|
}
|
|
284
284
|
|
|
285
|
-
#vue-devtools-anchor button {
|
|
285
|
+
#vue-devtools-anchor .vue-devtools-icon-button {
|
|
286
286
|
border: none;
|
|
287
287
|
background: none;
|
|
288
288
|
padding: 0;
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
var commonjsGlobal = typeof globalThis !== 'undefined' ? globalThis : typeof window !== 'undefined' ? window : typeof global !== 'undefined' ? global : typeof self !== 'undefined' ? self : {};
|
|
2
|
-
|
|
3
|
-
function getDefaultExportFromCjs (x) {
|
|
4
|
-
return x && x.__esModule && Object.prototype.hasOwnProperty.call(x, 'default') ? x['default'] : x;
|
|
5
|
-
}
|
|
6
|
-
|
|
7
|
-
/* Injected with object hook! */
|
|
8
|
-
|
|
9
|
-
export { commonjsGlobal as c, getDefaultExportFromCjs as g };
|
|
@@ -1,337 +0,0 @@
|
|
|
1
|
-
import { _ as _sfc_main$3 } from './VIcon.vue_vue_type_script_setup_true_lang-41c110ef.js';
|
|
2
|
-
import { v as defineComponent, I as useVModel, o as openBlock, e as createElementBlock, f as renderSlot, d as withDirectives, J as vModelSelect, z as unref, x as createBaseVNode, y as toDisplayString, g as createCommentVNode, K as isRef, c as createBlock, L as vModelCheckbox, M as withKeys, N as useCategorizedTabs, u as createVNode, F as Fragment, i as renderList, O as isInPopup, h as withCtx, P as createTextVNode, Q as useDevToolsSettings, R as useFrameState, S as _sfc_main$5, T as _sfc_main$6, U as _sfc_main$7, q as normalizeClass, V as _sfc_main$8 } from './index-233a79fb.js';
|
|
3
|
-
import { _ as _sfc_main$4 } from './VIconTitle.vue_vue_type_script_setup_true_lang-d3431291.js';
|
|
4
|
-
|
|
5
|
-
const _hoisted_1$2 = { class: "n-text-input flex flex items-center border n-border-base rounded px-2 py-1 focus-within:n-focus-base focus-within:border-context n-bg-base" };
|
|
6
|
-
const _hoisted_2$2 = ["disabled"];
|
|
7
|
-
const _hoisted_3$2 = {
|
|
8
|
-
key: 0,
|
|
9
|
-
value: "",
|
|
10
|
-
disabled: "",
|
|
11
|
-
hidden: ""
|
|
12
|
-
};
|
|
13
|
-
const _sfc_main$2 = /* @__PURE__ */ defineComponent({
|
|
14
|
-
__name: "VSelect",
|
|
15
|
-
props: {
|
|
16
|
-
modelValue: { default: void 0 },
|
|
17
|
-
placeholder: { default: "" },
|
|
18
|
-
icon: { default: "" },
|
|
19
|
-
disabled: { type: Boolean, default: false }
|
|
20
|
-
},
|
|
21
|
-
setup(__props, { emit }) {
|
|
22
|
-
const props = __props;
|
|
23
|
-
const input = useVModel(props, "modelValue", emit, { passive: true });
|
|
24
|
-
return (_ctx, _cache) => {
|
|
25
|
-
const _component_VIcon = _sfc_main$3;
|
|
26
|
-
return openBlock(), createElementBlock("div", _hoisted_1$2, [
|
|
27
|
-
renderSlot(_ctx.$slots, "icon", {}, () => [
|
|
28
|
-
_ctx.icon ? (openBlock(), createBlock(_component_VIcon, {
|
|
29
|
-
key: 0,
|
|
30
|
-
icon: _ctx.icon,
|
|
31
|
-
class: "mr-0.4em text-1.1em op50"
|
|
32
|
-
}, null, 8, ["icon"])) : createCommentVNode("", true)
|
|
33
|
-
]),
|
|
34
|
-
withDirectives(createBaseVNode("select", {
|
|
35
|
-
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => isRef(input) ? input.value = $event : null),
|
|
36
|
-
disabled: _ctx.disabled,
|
|
37
|
-
class: "w-full flex-auto n-bg-base !outline-none"
|
|
38
|
-
}, [
|
|
39
|
-
_ctx.placeholder ? (openBlock(), createElementBlock("option", _hoisted_3$2, toDisplayString(_ctx.placeholder), 1)) : createCommentVNode("", true),
|
|
40
|
-
renderSlot(_ctx.$slots, "default")
|
|
41
|
-
], 8, _hoisted_2$2), [
|
|
42
|
-
[vModelSelect, unref(input)]
|
|
43
|
-
])
|
|
44
|
-
]);
|
|
45
|
-
};
|
|
46
|
-
}
|
|
47
|
-
});
|
|
48
|
-
|
|
49
|
-
/* Injected with object hook! */
|
|
50
|
-
|
|
51
|
-
const _hoisted_1$1 = ["checked", "disabled"];
|
|
52
|
-
const _hoisted_2$1 = ["disabled"];
|
|
53
|
-
const _hoisted_3$1 = /* @__PURE__ */ createBaseVNode("div", { class: "n-switch-slider n-checked:n-switch-slider-checked peer-active:n-active-base peer-focus-visible:n-focus-base n-transition" }, [
|
|
54
|
-
/* @__PURE__ */ createBaseVNode("div", { class: "n-checked:n-switch-thumb-checked n-switch-thumb n-transition" })
|
|
55
|
-
], -1);
|
|
56
|
-
const _sfc_main$1 = /* @__PURE__ */ defineComponent({
|
|
57
|
-
__name: "VSwitch",
|
|
58
|
-
props: {
|
|
59
|
-
modelValue: { type: Boolean, default: false },
|
|
60
|
-
disabled: { type: Boolean, default: false }
|
|
61
|
-
},
|
|
62
|
-
setup(__props, { emit }) {
|
|
63
|
-
const props = __props;
|
|
64
|
-
const checked = useVModel(props, "modelValue", emit, { passive: true });
|
|
65
|
-
return (_ctx, _cache) => {
|
|
66
|
-
return openBlock(), createElementBlock("label", {
|
|
67
|
-
class: "n-switch n-switch-base cursor-pointer n-disabled:n-disabled",
|
|
68
|
-
checked: unref(checked) || null,
|
|
69
|
-
disabled: _ctx.disabled || null
|
|
70
|
-
}, [
|
|
71
|
-
withDirectives(createBaseVNode("input", {
|
|
72
|
-
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => isRef(checked) ? checked.value = $event : null),
|
|
73
|
-
type: "checkbox",
|
|
74
|
-
class: "peer absolute op0",
|
|
75
|
-
disabled: _ctx.disabled,
|
|
76
|
-
onKeypress: _cache[1] || (_cache[1] = withKeys(($event) => checked.value = !unref(checked), ["enter"]))
|
|
77
|
-
}, null, 40, _hoisted_2$1), [
|
|
78
|
-
[vModelCheckbox, unref(checked)]
|
|
79
|
-
]),
|
|
80
|
-
_hoisted_3$1,
|
|
81
|
-
renderSlot(_ctx.$slots, "default")
|
|
82
|
-
], 8, _hoisted_1$1);
|
|
83
|
-
};
|
|
84
|
-
}
|
|
85
|
-
});
|
|
86
|
-
|
|
87
|
-
/* Injected with object hook! */
|
|
88
|
-
|
|
89
|
-
const _hoisted_1 = {
|
|
90
|
-
"overflow-scroll": "",
|
|
91
|
-
px6: "",
|
|
92
|
-
py6: ""
|
|
93
|
-
};
|
|
94
|
-
const _hoisted_2 = {
|
|
95
|
-
grid: "~ md:cols-2 gap-x-10 gap-y-3",
|
|
96
|
-
"max-w-300": ""
|
|
97
|
-
};
|
|
98
|
-
const _hoisted_3 = {
|
|
99
|
-
flex: "~ col gap-1",
|
|
100
|
-
py3: ""
|
|
101
|
-
};
|
|
102
|
-
const _hoisted_4 = /* @__PURE__ */ createBaseVNode("h3", {
|
|
103
|
-
mb1: "",
|
|
104
|
-
"text-lg": ""
|
|
105
|
-
}, " Tabs ", -1);
|
|
106
|
-
const _hoisted_5 = {
|
|
107
|
-
flex: "~ gap-2",
|
|
108
|
-
"flex-auto": "",
|
|
109
|
-
"items-center": "",
|
|
110
|
-
"justify-start": ""
|
|
111
|
-
};
|
|
112
|
-
const _hoisted_6 = {
|
|
113
|
-
capitalize: "",
|
|
114
|
-
op75: ""
|
|
115
|
-
};
|
|
116
|
-
const _hoisted_7 = {
|
|
117
|
-
flex: "~ col gap-1",
|
|
118
|
-
border: "~ base rounded",
|
|
119
|
-
py3: "",
|
|
120
|
-
pl4: "",
|
|
121
|
-
pr2: ""
|
|
122
|
-
};
|
|
123
|
-
const _hoisted_8 = {
|
|
124
|
-
key: 0,
|
|
125
|
-
py3: "",
|
|
126
|
-
flex: "~ col gap-1",
|
|
127
|
-
border: "b base"
|
|
128
|
-
};
|
|
129
|
-
const _hoisted_9 = /* @__PURE__ */ createBaseVNode("h3", {
|
|
130
|
-
mb1: "",
|
|
131
|
-
"text-lg": ""
|
|
132
|
-
}, " Position ", -1);
|
|
133
|
-
const _hoisted_10 = {
|
|
134
|
-
py3: "",
|
|
135
|
-
flex: "~ col gap-1",
|
|
136
|
-
border: "b base"
|
|
137
|
-
};
|
|
138
|
-
const _hoisted_11 = /* @__PURE__ */ createBaseVNode("h3", {
|
|
139
|
-
mb1: "",
|
|
140
|
-
"text-lg": ""
|
|
141
|
-
}, " Appearance ", -1);
|
|
142
|
-
const _hoisted_12 = /* @__PURE__ */ createBaseVNode("div", {
|
|
143
|
-
"carbon-sun": "",
|
|
144
|
-
"translate-y--1px": "",
|
|
145
|
-
"dark:carbon-moon": ""
|
|
146
|
-
}, null, -1);
|
|
147
|
-
const _hoisted_13 = {
|
|
148
|
-
py3: "",
|
|
149
|
-
flex: "~ col gap-1"
|
|
150
|
-
};
|
|
151
|
-
const _hoisted_14 = /* @__PURE__ */ createBaseVNode("h3", {
|
|
152
|
-
mb1: "",
|
|
153
|
-
"text-lg": ""
|
|
154
|
-
}, " UI Scale ", -1);
|
|
155
|
-
const _hoisted_15 = ["value"];
|
|
156
|
-
const _hoisted_16 = {
|
|
157
|
-
py3: "",
|
|
158
|
-
flex: "~ justify-between gap-1"
|
|
159
|
-
};
|
|
160
|
-
const _hoisted_17 = /* @__PURE__ */ createBaseVNode("h3", {
|
|
161
|
-
mb1: "",
|
|
162
|
-
"text-lg": ""
|
|
163
|
-
}, " Close DevTools when clicking outside ", -1);
|
|
164
|
-
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
165
|
-
__name: "settings",
|
|
166
|
-
setup(__props) {
|
|
167
|
-
const {
|
|
168
|
-
scale,
|
|
169
|
-
hiddenTabs,
|
|
170
|
-
hiddenTabCategories
|
|
171
|
-
} = useDevToolsSettings();
|
|
172
|
-
const { closeOnOutsideClick } = useFrameState();
|
|
173
|
-
const scaleOptions = [
|
|
174
|
-
["Tiny", 12 / 15],
|
|
175
|
-
["Small", 14 / 15],
|
|
176
|
-
["Normal", 1],
|
|
177
|
-
["Large", 16 / 15],
|
|
178
|
-
["Huge", 18 / 15]
|
|
179
|
-
];
|
|
180
|
-
const categories = useCategorizedTabs(false);
|
|
181
|
-
function toggleTab(name, v) {
|
|
182
|
-
if (v)
|
|
183
|
-
hiddenTabs.value = hiddenTabs.value.filter((i) => i !== name);
|
|
184
|
-
else
|
|
185
|
-
hiddenTabs.value.push(name);
|
|
186
|
-
}
|
|
187
|
-
function toggleTabCategory(name, v) {
|
|
188
|
-
if (v)
|
|
189
|
-
hiddenTabCategories.value = hiddenTabCategories.value.filter((i) => i !== name);
|
|
190
|
-
else
|
|
191
|
-
hiddenTabCategories.value.push(name);
|
|
192
|
-
}
|
|
193
|
-
function toggleClickOutside() {
|
|
194
|
-
closeOnOutsideClick.value = !closeOnOutsideClick.value;
|
|
195
|
-
}
|
|
196
|
-
return (_ctx, _cache) => {
|
|
197
|
-
const _component_VIconTitle = _sfc_main$4;
|
|
198
|
-
const _component_VSwitch = _sfc_main$1;
|
|
199
|
-
const _component_TabIcon = _sfc_main$8;
|
|
200
|
-
const _component_PanelPosition = _sfc_main$5;
|
|
201
|
-
const _component_VButton = _sfc_main$6;
|
|
202
|
-
const _component_VDarkToggle = _sfc_main$7;
|
|
203
|
-
const _component_VSelect = _sfc_main$2;
|
|
204
|
-
return openBlock(), createElementBlock("div", _hoisted_1, [
|
|
205
|
-
createVNode(_component_VIconTitle, {
|
|
206
|
-
class: "mb-5 text-xl op75",
|
|
207
|
-
icon: "i-carbon-settings",
|
|
208
|
-
text: "DevTools Settings"
|
|
209
|
-
}),
|
|
210
|
-
createBaseVNode("div", _hoisted_2, [
|
|
211
|
-
createBaseVNode("div", _hoisted_3, [
|
|
212
|
-
_hoisted_4,
|
|
213
|
-
(openBlock(true), createElementBlock(Fragment, null, renderList(unref(categories), ([name, tabs]) => {
|
|
214
|
-
return openBlock(), createElementBlock(Fragment, { key: name }, [
|
|
215
|
-
tabs.length ? (openBlock(), createElementBlock("div", {
|
|
216
|
-
key: 0,
|
|
217
|
-
flex: "~ col gap-1",
|
|
218
|
-
"mx--1": "",
|
|
219
|
-
class: normalizeClass(unref(hiddenTabCategories).includes(name) ? "op50 grayscale" : ""),
|
|
220
|
-
"pt-2": ""
|
|
221
|
-
}, [
|
|
222
|
-
createVNode(_component_VSwitch, {
|
|
223
|
-
flex: "~ row-reverse",
|
|
224
|
-
px2: "",
|
|
225
|
-
py1: "",
|
|
226
|
-
"n-lime": "",
|
|
227
|
-
"model-value": !unref(hiddenTabCategories).includes(name),
|
|
228
|
-
"onUpdate:modelValue": (v) => toggleTabCategory(name, v)
|
|
229
|
-
}, {
|
|
230
|
-
default: withCtx(() => [
|
|
231
|
-
createBaseVNode("div", _hoisted_5, [
|
|
232
|
-
createBaseVNode("span", _hoisted_6, toDisplayString(name), 1)
|
|
233
|
-
])
|
|
234
|
-
]),
|
|
235
|
-
_: 2
|
|
236
|
-
}, 1032, ["model-value", "onUpdate:modelValue"]),
|
|
237
|
-
createBaseVNode("div", _hoisted_7, [
|
|
238
|
-
(openBlock(true), createElementBlock(Fragment, null, renderList(tabs, (tab) => {
|
|
239
|
-
return openBlock(), createBlock(_component_VSwitch, {
|
|
240
|
-
key: tab.name,
|
|
241
|
-
flex: "~ row-reverse",
|
|
242
|
-
py1: "",
|
|
243
|
-
"n-primary": "",
|
|
244
|
-
"model-value": !unref(hiddenTabs).includes(tab.title),
|
|
245
|
-
"onUpdate:modelValue": (v) => toggleTab(tab.title, v)
|
|
246
|
-
}, {
|
|
247
|
-
default: withCtx(() => [
|
|
248
|
-
createBaseVNode("div", {
|
|
249
|
-
flex: "~ gap-2",
|
|
250
|
-
"flex-auto": "",
|
|
251
|
-
"items-center": "",
|
|
252
|
-
"justify-start": "",
|
|
253
|
-
class: normalizeClass(unref(hiddenTabs).includes(tab.title) ? "op25" : "")
|
|
254
|
-
}, [
|
|
255
|
-
createVNode(_component_TabIcon, {
|
|
256
|
-
"text-xl": "",
|
|
257
|
-
icon: tab.icon,
|
|
258
|
-
title: tab.title
|
|
259
|
-
}, null, 8, ["icon", "title"]),
|
|
260
|
-
createBaseVNode("span", null, toDisplayString(tab.title), 1)
|
|
261
|
-
], 2)
|
|
262
|
-
]),
|
|
263
|
-
_: 2
|
|
264
|
-
}, 1032, ["model-value", "onUpdate:modelValue"]);
|
|
265
|
-
}), 128))
|
|
266
|
-
])
|
|
267
|
-
], 2)) : createCommentVNode("", true)
|
|
268
|
-
], 64);
|
|
269
|
-
}), 128))
|
|
270
|
-
]),
|
|
271
|
-
createBaseVNode("div", null, [
|
|
272
|
-
!unref(isInPopup) ? (openBlock(), createElementBlock("div", _hoisted_8, [
|
|
273
|
-
_hoisted_9,
|
|
274
|
-
createBaseVNode("div", null, [
|
|
275
|
-
createVNode(_component_PanelPosition)
|
|
276
|
-
])
|
|
277
|
-
])) : createCommentVNode("", true),
|
|
278
|
-
createBaseVNode("div", _hoisted_10, [
|
|
279
|
-
_hoisted_11,
|
|
280
|
-
createBaseVNode("div", null, [
|
|
281
|
-
createVNode(_component_VDarkToggle, null, {
|
|
282
|
-
default: withCtx(({ toggle, isDark }) => [
|
|
283
|
-
createVNode(_component_VButton, {
|
|
284
|
-
n: "primary",
|
|
285
|
-
onClick: toggle
|
|
286
|
-
}, {
|
|
287
|
-
default: withCtx(() => [
|
|
288
|
-
_hoisted_12,
|
|
289
|
-
createTextVNode(" " + toDisplayString(isDark.value ? "Dark" : "Light"), 1)
|
|
290
|
-
]),
|
|
291
|
-
_: 2
|
|
292
|
-
}, 1032, ["onClick"])
|
|
293
|
-
]),
|
|
294
|
-
_: 1
|
|
295
|
-
})
|
|
296
|
-
])
|
|
297
|
-
]),
|
|
298
|
-
createBaseVNode("div", _hoisted_13, [
|
|
299
|
-
_hoisted_14,
|
|
300
|
-
createVNode(_component_VSelect, {
|
|
301
|
-
modelValue: unref(scale),
|
|
302
|
-
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => isRef(scale) ? scale.value = $event : null),
|
|
303
|
-
n: "primary"
|
|
304
|
-
}, {
|
|
305
|
-
default: withCtx(() => [
|
|
306
|
-
(openBlock(), createElementBlock(Fragment, null, renderList(scaleOptions, (i) => {
|
|
307
|
-
return createBaseVNode("option", {
|
|
308
|
-
key: i[0],
|
|
309
|
-
value: i[1]
|
|
310
|
-
}, toDisplayString(i[0]), 9, _hoisted_15);
|
|
311
|
-
}), 64))
|
|
312
|
-
]),
|
|
313
|
-
_: 1
|
|
314
|
-
}, 8, ["modelValue"])
|
|
315
|
-
]),
|
|
316
|
-
createBaseVNode("div", _hoisted_16, [
|
|
317
|
-
_hoisted_17,
|
|
318
|
-
createVNode(_component_VSwitch, {
|
|
319
|
-
flex: "~ row-reverse",
|
|
320
|
-
py1: "",
|
|
321
|
-
"n-primary": "",
|
|
322
|
-
"model-value": unref(closeOnOutsideClick),
|
|
323
|
-
"onUpdate:modelValue": toggleClickOutside
|
|
324
|
-
}, null, 8, ["model-value"])
|
|
325
|
-
])
|
|
326
|
-
])
|
|
327
|
-
])
|
|
328
|
-
]);
|
|
329
|
-
};
|
|
330
|
-
}
|
|
331
|
-
});
|
|
332
|
-
|
|
333
|
-
/* Injected with object hook! */
|
|
334
|
-
|
|
335
|
-
/* Injected with object hook! */
|
|
336
|
-
|
|
337
|
-
export { _sfc_main as default };
|