vite-plugin-vue-devtools 0.0.1-alpha.0 → 0.0.1-alpha.2
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/VCard-07e53519.js +15 -0
- package/dist/client/assets/VIcon.vue_vue_type_script_setup_true_lang-c622c694.js +19 -0
- package/dist/client/assets/VIconTitle.vue_vue_type_script_setup_true_lang-5f26c7d7.js +30 -0
- package/dist/client/assets/VPanelGrids-2e4d7603.js +15 -0
- package/dist/client/assets/VTextInput-52804693.css +18 -0
- package/dist/client/assets/VTextInput.vue_vue_type_script_setup_true_lang-11aa9678.js +145 -0
- package/dist/client/assets/__inspecting-ca212e33.js +51 -0
- package/dist/client/assets/assets-7d94be21.js +1403 -0
- package/dist/client/assets/components-f04eb68e.js +699 -0
- package/dist/client/assets/fuse.esm-c317b696.js +1782 -0
- package/dist/client/assets/graph-b9e504aa.js +52260 -0
- package/dist/client/assets/index-ab9e9151.js +15372 -0
- package/dist/client/assets/index-f0fa9f81.css +454 -0
- package/dist/client/assets/inspect-d697adb8.js +96 -0
- package/dist/client/assets/overview-afb7d69a.js +305 -0
- package/dist/client/assets/pages-43ddf646.js +21 -0
- package/dist/client/assets/pages-4aa45253.js +320 -0
- package/dist/client/assets/pinia-178be7b6.js +139 -0
- package/dist/client/assets/routes-cd4e8e50.js +129 -0
- package/dist/client/assets/rpc-c07563d7.js +136 -0
- package/dist/client/assets/settings-c9f4467d.js +299 -0
- package/dist/client/assets/splitpanes.es-f2ab0d30.js +725 -0
- package/dist/client/assets/timeline-6da2fbae.js +209 -0
- package/dist/client/index.html +23 -0
- package/dist/index.cjs +7764 -0
- package/dist/index.d.ts +5 -0
- package/dist/index.mjs +7748 -0
- package/package.json +92 -8
- package/src/node/Container.vue +298 -0
- package/src/node/app.js +41 -0
|
@@ -0,0 +1,136 @@
|
|
|
1
|
+
import { aC as __vitePreload } from './index-ab9e9151.js';
|
|
2
|
+
|
|
3
|
+
const DEFAULT_TIMEOUT = 6e4;
|
|
4
|
+
function defaultSerialize(i) {
|
|
5
|
+
return i;
|
|
6
|
+
}
|
|
7
|
+
const defaultDeserialize = defaultSerialize;
|
|
8
|
+
const { setTimeout } = globalThis;
|
|
9
|
+
function createBirpc(functions, options) {
|
|
10
|
+
const {
|
|
11
|
+
post,
|
|
12
|
+
on,
|
|
13
|
+
eventNames = [],
|
|
14
|
+
serialize = defaultSerialize,
|
|
15
|
+
deserialize = defaultDeserialize,
|
|
16
|
+
resolver,
|
|
17
|
+
timeout = DEFAULT_TIMEOUT
|
|
18
|
+
} = options;
|
|
19
|
+
const rpcPromiseMap = /* @__PURE__ */ new Map();
|
|
20
|
+
let _promise;
|
|
21
|
+
const rpc = new Proxy({}, {
|
|
22
|
+
get(_, method) {
|
|
23
|
+
if (method === "$functions")
|
|
24
|
+
return functions;
|
|
25
|
+
const sendEvent = (...args) => {
|
|
26
|
+
post(serialize({ m: method, a: args, t: "q" }));
|
|
27
|
+
};
|
|
28
|
+
if (eventNames.includes(method)) {
|
|
29
|
+
sendEvent.asEvent = sendEvent;
|
|
30
|
+
return sendEvent;
|
|
31
|
+
}
|
|
32
|
+
const sendCall = async (...args) => {
|
|
33
|
+
await _promise;
|
|
34
|
+
return new Promise((resolve, reject) => {
|
|
35
|
+
const id = nanoid();
|
|
36
|
+
rpcPromiseMap.set(id, { resolve, reject });
|
|
37
|
+
post(serialize({ m: method, a: args, i: id, t: "q" }));
|
|
38
|
+
if (timeout >= 0) {
|
|
39
|
+
setTimeout(() => {
|
|
40
|
+
reject(new Error(`[birpc] timeout on calling "${method}"`));
|
|
41
|
+
rpcPromiseMap.delete(id);
|
|
42
|
+
}, timeout);
|
|
43
|
+
}
|
|
44
|
+
});
|
|
45
|
+
};
|
|
46
|
+
sendCall.asEvent = sendEvent;
|
|
47
|
+
return sendCall;
|
|
48
|
+
}
|
|
49
|
+
});
|
|
50
|
+
_promise = on(async (data, ...extra) => {
|
|
51
|
+
const msg = deserialize(data);
|
|
52
|
+
if (msg.t === "q") {
|
|
53
|
+
const { m: method, a: args } = msg;
|
|
54
|
+
let result, error;
|
|
55
|
+
const fn = resolver ? resolver(method, functions[method]) : functions[method];
|
|
56
|
+
if (!fn) {
|
|
57
|
+
error = new Error(`[birpc] function "${method}" not found`);
|
|
58
|
+
} else {
|
|
59
|
+
try {
|
|
60
|
+
result = await fn.apply(rpc, args);
|
|
61
|
+
} catch (e) {
|
|
62
|
+
error = e;
|
|
63
|
+
}
|
|
64
|
+
}
|
|
65
|
+
if (msg.i) {
|
|
66
|
+
if (error && options.onError)
|
|
67
|
+
options.onError(error, method, args);
|
|
68
|
+
post(serialize({ t: "s", i: msg.i, r: result, e: error }), ...extra);
|
|
69
|
+
}
|
|
70
|
+
} else {
|
|
71
|
+
const { i: ack, r: result, e: error } = msg;
|
|
72
|
+
const promise = rpcPromiseMap.get(ack);
|
|
73
|
+
if (promise) {
|
|
74
|
+
if (error)
|
|
75
|
+
promise.reject(error);
|
|
76
|
+
else
|
|
77
|
+
promise.resolve(result);
|
|
78
|
+
}
|
|
79
|
+
rpcPromiseMap.delete(ack);
|
|
80
|
+
}
|
|
81
|
+
});
|
|
82
|
+
return rpc;
|
|
83
|
+
}
|
|
84
|
+
const urlAlphabet = "useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict";
|
|
85
|
+
function nanoid(size = 21) {
|
|
86
|
+
let id = "";
|
|
87
|
+
let i = size;
|
|
88
|
+
while (i--)
|
|
89
|
+
id += urlAlphabet[Math.random() * 64 | 0];
|
|
90
|
+
return id;
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
/* Injected with object hook! */
|
|
94
|
+
|
|
95
|
+
function createRPCClient(name, hot, functions = {}) {
|
|
96
|
+
const event = `${name}:rpc`;
|
|
97
|
+
return createBirpc(
|
|
98
|
+
functions,
|
|
99
|
+
{
|
|
100
|
+
on: async (fn) => {
|
|
101
|
+
(await hot).on(event, fn);
|
|
102
|
+
},
|
|
103
|
+
post: async (data) => {
|
|
104
|
+
(await hot).send(event, data);
|
|
105
|
+
}
|
|
106
|
+
}
|
|
107
|
+
);
|
|
108
|
+
}
|
|
109
|
+
|
|
110
|
+
/* Injected with object hook! */
|
|
111
|
+
|
|
112
|
+
async function getViteClient(base = "/", warning = true) {
|
|
113
|
+
try {
|
|
114
|
+
return await __vitePreload(() => import(
|
|
115
|
+
/* @vite-ignore */
|
|
116
|
+
`${base}@vite/client`
|
|
117
|
+
),true?[]:void 0,import.meta.url);
|
|
118
|
+
} catch {
|
|
119
|
+
if (warning)
|
|
120
|
+
console.error(`[vite-plugin-hot] Failed to import "${base}@vite/client"`);
|
|
121
|
+
}
|
|
122
|
+
return void 0;
|
|
123
|
+
}
|
|
124
|
+
async function createHotContext(path = "/____", base = "/") {
|
|
125
|
+
const viteClient = await getViteClient(base);
|
|
126
|
+
return viteClient?.createHotContext(path);
|
|
127
|
+
}
|
|
128
|
+
|
|
129
|
+
/* Injected with object hook! */
|
|
130
|
+
|
|
131
|
+
const rpc = createRPCClient("vite-plugin-vue-devtools", await createHotContext("/___", `${location.pathname.split("/__devtools")[0] || ""}/`.replace(/\/\//g, "/")));
|
|
132
|
+
const inspectClientUrl = await rpc.inspectClientUrl();
|
|
133
|
+
|
|
134
|
+
/* Injected with object hook! */
|
|
135
|
+
|
|
136
|
+
export { inspectClientUrl as i, rpc as r };
|
|
@@ -0,0 +1,299 @@
|
|
|
1
|
+
import { _ as _sfc_main$3 } from './VIcon.vue_vue_type_script_setup_true_lang-c622c694.js';
|
|
2
|
+
import { d as defineComponent, s as useVModel, o as openBlock, c as createElementBlock, v as renderSlot, x as withDirectives, y as vModelSelect, u as unref, e as createBaseVNode, t as toDisplayString, m as createCommentVNode, z as isRef, a as createBlock, A as vModelCheckbox, B as withKeys, C as useTabs, D as useCategorizedTabs, b as createVNode, F as Fragment, r as renderList, w as withCtx, E as createTextVNode, G as useDevToolsSettings, _ as _sfc_main$5, H as _sfc_main$6, n as normalizeClass, I as _sfc_main$7 } from './index-ab9e9151.js';
|
|
3
|
+
import { _ as _sfc_main$4 } from './VIconTitle.vue_vue_type_script_setup_true_lang-5f26c7d7.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
|
+
__props.icon ? (openBlock(), createBlock(_component_VIcon, {
|
|
29
|
+
key: 0,
|
|
30
|
+
icon: __props.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: __props.disabled,
|
|
37
|
+
class: "w-full flex-auto n-bg-base !outline-none"
|
|
38
|
+
}, [
|
|
39
|
+
__props.placeholder ? (openBlock(), createElementBlock("option", _hoisted_3$2, toDisplayString(__props.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 n-disabled:n-disabled",
|
|
68
|
+
checked: unref(checked) || null,
|
|
69
|
+
disabled: __props.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: __props.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
|
+
py3: "",
|
|
125
|
+
flex: "~ col gap-1",
|
|
126
|
+
border: "b base"
|
|
127
|
+
};
|
|
128
|
+
const _hoisted_9 = /* @__PURE__ */ createBaseVNode("h3", {
|
|
129
|
+
mb1: "",
|
|
130
|
+
"text-lg": ""
|
|
131
|
+
}, " Appearance ", -1);
|
|
132
|
+
const _hoisted_10 = /* @__PURE__ */ createBaseVNode("div", {
|
|
133
|
+
"carbon-sun": "",
|
|
134
|
+
"dark:carbon-moon": "",
|
|
135
|
+
"translate-y--1px": ""
|
|
136
|
+
}, null, -1);
|
|
137
|
+
const _hoisted_11 = {
|
|
138
|
+
py3: "",
|
|
139
|
+
flex: "~ col gap-1"
|
|
140
|
+
};
|
|
141
|
+
const _hoisted_12 = /* @__PURE__ */ createBaseVNode("h3", {
|
|
142
|
+
mb1: "",
|
|
143
|
+
"text-lg": ""
|
|
144
|
+
}, " UI Scale ", -1);
|
|
145
|
+
const _hoisted_13 = ["value"];
|
|
146
|
+
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
147
|
+
__name: "settings",
|
|
148
|
+
setup(__props) {
|
|
149
|
+
useTabs();
|
|
150
|
+
const {
|
|
151
|
+
scale,
|
|
152
|
+
hiddenTabs,
|
|
153
|
+
hiddenTabCategories
|
|
154
|
+
} = useDevToolsSettings();
|
|
155
|
+
const scaleOptions = [
|
|
156
|
+
["Tiny", 12 / 15],
|
|
157
|
+
["Small", 14 / 15],
|
|
158
|
+
["Normal", 1],
|
|
159
|
+
["Large", 16 / 15],
|
|
160
|
+
["Huge", 18 / 15]
|
|
161
|
+
];
|
|
162
|
+
const categories = useCategorizedTabs(false);
|
|
163
|
+
function toggleTab(name, v) {
|
|
164
|
+
if (v)
|
|
165
|
+
hiddenTabs.value = hiddenTabs.value.filter((i) => i !== name);
|
|
166
|
+
else
|
|
167
|
+
hiddenTabs.value.push(name);
|
|
168
|
+
}
|
|
169
|
+
function toggleTabCategory(name, v) {
|
|
170
|
+
if (v)
|
|
171
|
+
hiddenTabCategories.value = hiddenTabCategories.value.filter((i) => i !== name);
|
|
172
|
+
else
|
|
173
|
+
hiddenTabCategories.value.push(name);
|
|
174
|
+
}
|
|
175
|
+
return (_ctx, _cache) => {
|
|
176
|
+
const _component_VIconTitle = _sfc_main$4;
|
|
177
|
+
const _component_VSwitch = _sfc_main$1;
|
|
178
|
+
const _component_TabIcon = _sfc_main$7;
|
|
179
|
+
const _component_VButton = _sfc_main$5;
|
|
180
|
+
const _component_VDarkToggle = _sfc_main$6;
|
|
181
|
+
const _component_VSelect = _sfc_main$2;
|
|
182
|
+
return openBlock(), createElementBlock("div", _hoisted_1, [
|
|
183
|
+
createVNode(_component_VIconTitle, {
|
|
184
|
+
class: "mb-5 text-xl op75",
|
|
185
|
+
icon: "i-carbon-settings",
|
|
186
|
+
text: "DevTools Settings"
|
|
187
|
+
}),
|
|
188
|
+
createBaseVNode("div", _hoisted_2, [
|
|
189
|
+
createBaseVNode("div", _hoisted_3, [
|
|
190
|
+
_hoisted_4,
|
|
191
|
+
(openBlock(true), createElementBlock(Fragment, null, renderList(unref(categories), ([name, tabs2]) => {
|
|
192
|
+
return openBlock(), createElementBlock(Fragment, { key: name }, [
|
|
193
|
+
tabs2.length ? (openBlock(), createElementBlock("div", {
|
|
194
|
+
key: 0,
|
|
195
|
+
flex: "~ col gap-1",
|
|
196
|
+
"mx--1": "",
|
|
197
|
+
class: normalizeClass(unref(hiddenTabCategories).includes(name) ? "op50 grayscale" : ""),
|
|
198
|
+
"pt-2": ""
|
|
199
|
+
}, [
|
|
200
|
+
createVNode(_component_VSwitch, {
|
|
201
|
+
flex: "~ row-reverse",
|
|
202
|
+
px2: "",
|
|
203
|
+
py1: "",
|
|
204
|
+
"n-lime": "",
|
|
205
|
+
"model-value": !unref(hiddenTabCategories).includes(name),
|
|
206
|
+
"onUpdate:modelValue": (v) => toggleTabCategory(name, v)
|
|
207
|
+
}, {
|
|
208
|
+
default: withCtx(() => [
|
|
209
|
+
createBaseVNode("div", _hoisted_5, [
|
|
210
|
+
createBaseVNode("span", _hoisted_6, toDisplayString(name), 1)
|
|
211
|
+
])
|
|
212
|
+
]),
|
|
213
|
+
_: 2
|
|
214
|
+
}, 1032, ["model-value", "onUpdate:modelValue"]),
|
|
215
|
+
createBaseVNode("div", _hoisted_7, [
|
|
216
|
+
(openBlock(true), createElementBlock(Fragment, null, renderList(tabs2, (tab) => {
|
|
217
|
+
return openBlock(), createBlock(_component_VSwitch, {
|
|
218
|
+
key: tab.name,
|
|
219
|
+
flex: "~ row-reverse",
|
|
220
|
+
py1: "",
|
|
221
|
+
"n-primary": "",
|
|
222
|
+
"model-value": !unref(hiddenTabs).includes(tab.title),
|
|
223
|
+
"onUpdate:modelValue": (v) => toggleTab(tab.title, v)
|
|
224
|
+
}, {
|
|
225
|
+
default: withCtx(() => [
|
|
226
|
+
createBaseVNode("div", {
|
|
227
|
+
flex: "~ gap-2",
|
|
228
|
+
"flex-auto": "",
|
|
229
|
+
"items-center": "",
|
|
230
|
+
"justify-start": "",
|
|
231
|
+
class: normalizeClass(unref(hiddenTabs).includes(tab.title) ? "op25" : "")
|
|
232
|
+
}, [
|
|
233
|
+
createVNode(_component_TabIcon, {
|
|
234
|
+
"text-xl": "",
|
|
235
|
+
icon: tab.icon,
|
|
236
|
+
title: tab.title
|
|
237
|
+
}, null, 8, ["icon", "title"]),
|
|
238
|
+
createBaseVNode("span", null, toDisplayString(tab.title), 1)
|
|
239
|
+
], 2)
|
|
240
|
+
]),
|
|
241
|
+
_: 2
|
|
242
|
+
}, 1032, ["model-value", "onUpdate:modelValue"]);
|
|
243
|
+
}), 128))
|
|
244
|
+
])
|
|
245
|
+
], 2)) : createCommentVNode("", true)
|
|
246
|
+
], 64);
|
|
247
|
+
}), 128))
|
|
248
|
+
]),
|
|
249
|
+
createBaseVNode("div", null, [
|
|
250
|
+
createBaseVNode("div", _hoisted_8, [
|
|
251
|
+
_hoisted_9,
|
|
252
|
+
createBaseVNode("div", null, [
|
|
253
|
+
createVNode(_component_VDarkToggle, null, {
|
|
254
|
+
default: withCtx(({ toggle, isDark }) => [
|
|
255
|
+
createVNode(_component_VButton, {
|
|
256
|
+
n: "primary",
|
|
257
|
+
onClick: ($event) => toggle()
|
|
258
|
+
}, {
|
|
259
|
+
default: withCtx(() => [
|
|
260
|
+
_hoisted_10,
|
|
261
|
+
createTextVNode(" " + toDisplayString(isDark.value ? "Dark" : "Light"), 1)
|
|
262
|
+
]),
|
|
263
|
+
_: 2
|
|
264
|
+
}, 1032, ["onClick"])
|
|
265
|
+
]),
|
|
266
|
+
_: 1
|
|
267
|
+
})
|
|
268
|
+
])
|
|
269
|
+
]),
|
|
270
|
+
createBaseVNode("div", _hoisted_11, [
|
|
271
|
+
_hoisted_12,
|
|
272
|
+
createVNode(_component_VSelect, {
|
|
273
|
+
modelValue: unref(scale),
|
|
274
|
+
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => isRef(scale) ? scale.value = $event : null),
|
|
275
|
+
n: "primary"
|
|
276
|
+
}, {
|
|
277
|
+
default: withCtx(() => [
|
|
278
|
+
(openBlock(), createElementBlock(Fragment, null, renderList(scaleOptions, (i) => {
|
|
279
|
+
return createBaseVNode("option", {
|
|
280
|
+
key: i[0],
|
|
281
|
+
value: i[1]
|
|
282
|
+
}, toDisplayString(i[0]), 9, _hoisted_13);
|
|
283
|
+
}), 64))
|
|
284
|
+
]),
|
|
285
|
+
_: 1
|
|
286
|
+
}, 8, ["modelValue"])
|
|
287
|
+
])
|
|
288
|
+
])
|
|
289
|
+
])
|
|
290
|
+
]);
|
|
291
|
+
};
|
|
292
|
+
}
|
|
293
|
+
});
|
|
294
|
+
|
|
295
|
+
/* Injected with object hook! */
|
|
296
|
+
|
|
297
|
+
/* Injected with object hook! */
|
|
298
|
+
|
|
299
|
+
export { _sfc_main as default };
|