vite-plugin-vue-devtools 0.4.10 → 0.4.12
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/README.md +9 -2
- package/dist/client/assets/{IframeView.vue_vue_type_script_setup_true_lang-e86027e5.js → IframeView.vue_vue_type_script_setup_true_lang-97a0e754.js} +1 -1
- package/dist/client/assets/{StateFields.vue_vue_type_script_setup_true_lang-a78e5cb0.js → StateFields.vue_vue_type_script_setup_true_lang-dd6974e1.js} +8 -8
- package/dist/client/assets/{VIcon.vue_vue_type_script_setup_true_lang-82a30fea.js → VIcon.vue_vue_type_script_setup_true_lang-4dcb121c.js} +1 -1
- package/dist/client/assets/{VIconButton.vue_vue_type_script_setup_true_lang-fe1578eb.js → VIconButton.vue_vue_type_script_setup_true_lang-4054707d.js} +2 -2
- package/dist/client/assets/{VIconTitle.vue_vue_type_script_setup_true_lang-53c720d3.js → VIconTitle.vue_vue_type_script_setup_true_lang-4531a0e4.js} +1 -1
- package/dist/client/assets/{VPanelGrids-dc69b639.js → VPanelGrids-ea9ac4bd.js} +1 -1
- package/dist/client/assets/{VSectionBlock-57ec7b68.js → VSectionBlock-0d870ae2.js} +3 -3
- package/dist/client/assets/VSwitch.vue_vue_type_script_setup_true_lang-dc4a336f.js +88 -0
- package/dist/client/assets/{VTextInput.vue_vue_type_script_setup_true_lang-c7c2878d.js → VTextInput.vue_vue_type_script_setup_true_lang-cd591fdb.js} +2 -2
- package/dist/client/assets/__eyedropper-41422dc8.js +132 -0
- package/dist/client/assets/{assets-2b8518ac.js → assets-fc847d7b.js} +17 -10
- package/dist/client/assets/component-docs-b0456b1b.js +1748 -0
- package/dist/client/assets/{components-433e30b5.js → components-41827ea5.js} +7 -7
- package/dist/client/assets/{documentations-a41234ba.js → documentations-e948ad25.js} +3 -3
- package/dist/client/assets/{graph-d61217d6.js → graph-ed9ec08f.js} +2422 -61
- package/dist/client/assets/index-8135098e.css +474 -0
- package/dist/client/assets/{index-b8a9099c.js → index-d268ce4d.js} +1019 -2617
- package/dist/client/assets/{index-07396aec.js → index-fb7e673c.js} +5 -2
- package/dist/client/assets/{inspect-2b7bf157.js → inspect-4e046378.js} +3 -3
- package/dist/client/assets/npm-81f351e2.js +537 -0
- package/dist/client/assets/{npm-125f4259.css → npm-832f3f2c.css} +20 -2
- package/dist/client/assets/{overview-95247458.js → overview-9d7f0c3c.js} +5 -5
- package/dist/client/assets/{pages-72e88bdb.js → pages-7d46ae82.js} +5 -5
- package/dist/client/assets/{pinia-55c3fcd8.js → pinia-c576b594.js} +6 -6
- package/dist/client/assets/{routes-ab38a14f.js → routes-56017e0a.js} +7 -7
- package/dist/client/assets/{rpc-cf3bd0fc.js → rpc-6c4cc8d5.js} +1 -1
- package/dist/client/assets/{settings-c390240d.js → settings-4e36485a.js} +36 -119
- package/dist/client/assets/{splitpanes.es-dd27b7fe.js → splitpanes.es-db7e975b.js} +1 -1
- package/dist/client/assets/{timeline-5fa02442.js → timeline-0fd22aff.js} +8 -8
- package/dist/client/index.html +2 -2
- package/dist/index.cjs +1238 -1162
- package/dist/index.mjs +1235 -1159
- package/package.json +35 -31
- package/src/node/views/Main.vue +9 -2
- package/src/node/views/composables.ts +26 -1
- package/src/node/views/utils.ts +4 -0
- package/dist/client/assets/__eyedropper-c3a23916.js +0 -112
- package/dist/client/assets/component-docs-e06030af.js +0 -1748
- package/dist/client/assets/index-5221558c.css +0 -472
- package/dist/client/assets/npm-62fb6b03.js +0 -537
package/README.md
CHANGED
|
@@ -8,8 +8,8 @@ Vue DevTools <sup>Preview</sup>
|
|
|
8
8
|
|
|
9
9
|
<p align="center">
|
|
10
10
|
<a href="https://www.npmjs.com/package/vite-plugin-vue-devtools" target="_blank" rel="noopener noreferrer"><img src="https://badgen.net/npm/v/vite-plugin-vue-devtools" alt="NPM Version" /></a>
|
|
11
|
-
|
|
12
|
-
|
|
11
|
+
<a href="https://www.npmjs.com/package/vite-plugin-vue-devtools" target="_blank" rel="noopener noreferrer"><img src="https://badgen.net/npm/dt/vite-plugin-vue-devtools" alt="NPM Downloads" /></a>
|
|
12
|
+
<a href="https://github.com/webfansplz/vite-plugin-vue-devtools/blob/main/LICENSE" target="_blank" rel="noopener noreferrer"><img src="https://badgen.net/github/license/webfansplz/vite-plugin-vue-devtools" alt="License" /></a>
|
|
13
13
|
</p>
|
|
14
14
|
|
|
15
15
|
<p align="center">
|
|
@@ -153,6 +153,13 @@ interface VitePluginVueDevToolsOptions {
|
|
|
153
153
|
|
|
154
154
|
- [vuejs/devtools](https://github.com/vuejs/devtools)
|
|
155
155
|
|
|
156
|
+
|
|
157
|
+
## 👨💻 Contributors
|
|
158
|
+
|
|
159
|
+
<a href="https://github.com/webfansplz/vite-plugin-vue-devtools/graphs/contributors">
|
|
160
|
+
<img src="https://contrib.rocks/image?repo=webfansplz/vite-plugin-vue-devtools" />
|
|
161
|
+
</a>
|
|
162
|
+
|
|
156
163
|
## 📄 License
|
|
157
164
|
|
|
158
165
|
[MIT LICENSE](./LICENSE)
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { v as defineComponent,
|
|
1
|
+
import { v as defineComponent, cm as useColorMode, a$ as ref, a1 as computed, aZ as reactive, cn as useElementBounding, aP as onMounted, n as nextTick, bz as watchEffect, aU as onUnmounted, o as openBlock, e as createElementBlock, z as unref, g as createCommentVNode, x as createBaseVNode } from './index-d268ce4d.js';
|
|
2
2
|
|
|
3
3
|
const _hoisted_1 = {
|
|
4
4
|
key: 0,
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { _ as _sfc_main$3 } from './VIcon.vue_vue_type_script_setup_true_lang-
|
|
2
|
-
import { v as defineComponent, o as openBlock, c as createBlock, q as normalizeClass, aC as isRef, bd as toRaw, a1 as computed,
|
|
3
|
-
import { a as isComputed, b as isArray, c as isMap, d as isSet, e as isRegExp, t as toRawType, f as isPlainObject, g as escape } from './index-
|
|
4
|
-
import { _ as _sfc_main$4 } from './VIconButton.vue_vue_type_script_setup_true_lang-
|
|
1
|
+
import { _ as _sfc_main$3 } from './VIcon.vue_vue_type_script_setup_true_lang-4dcb121c.js';
|
|
2
|
+
import { v as defineComponent, o as openBlock, c as createBlock, q as normalizeClass, aC as isRef, bd as toRaw, a1 as computed, cq as useCopy, r as resolveComponent, e as createElementBlock, i as renderList, z as unref, cr as nanoid, x as createBaseVNode, y as toDisplayString, g as createCommentVNode, F as Fragment, a$ as ref, u as createVNode, bG as withModifiers, d as withDirectives, bv as vShow } from './index-d268ce4d.js';
|
|
3
|
+
import { a as isComputed, b as isArray, c as isMap, d as isSet, e as isRegExp, t as toRawType, f as isPlainObject, g as escape } from './index-fb7e673c.js';
|
|
4
|
+
import { _ as _sfc_main$4 } from './VIconButton.vue_vue_type_script_setup_true_lang-4054707d.js';
|
|
5
5
|
|
|
6
6
|
const _sfc_main$2 = /* @__PURE__ */ defineComponent({
|
|
7
7
|
__name: "VExpandIcon",
|
|
@@ -25,7 +25,7 @@ const _sfc_main$2 = /* @__PURE__ */ defineComponent({
|
|
|
25
25
|
|
|
26
26
|
/* Injected with object hook! */
|
|
27
27
|
|
|
28
|
-
function
|
|
28
|
+
function getFunctionDetails(func) {
|
|
29
29
|
let string = "";
|
|
30
30
|
let matches = null;
|
|
31
31
|
try {
|
|
@@ -65,7 +65,7 @@ function formatStateType(value) {
|
|
|
65
65
|
return {
|
|
66
66
|
rawType: "function",
|
|
67
67
|
recursive: false,
|
|
68
|
-
value:
|
|
68
|
+
value: getFunctionDetails(value)
|
|
69
69
|
};
|
|
70
70
|
} else if (typeof value === "bigint") {
|
|
71
71
|
const stringifiedBigInt = BigInt.prototype.toString.call(value);
|
|
@@ -81,13 +81,13 @@ function formatStateType(value) {
|
|
|
81
81
|
recursive: false,
|
|
82
82
|
value: "NaN"
|
|
83
83
|
};
|
|
84
|
-
} else if (value ===
|
|
84
|
+
} else if (value === Number.POSITIVE_INFINITY) {
|
|
85
85
|
return {
|
|
86
86
|
rawType: "literal",
|
|
87
87
|
recursive: false,
|
|
88
88
|
value: "Infinity"
|
|
89
89
|
};
|
|
90
|
-
} else if (value ===
|
|
90
|
+
} else if (value === Number.NEGATIVE_INFINITY) {
|
|
91
91
|
return {
|
|
92
92
|
rawType: "literal",
|
|
93
93
|
recursive: false,
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { v as defineComponent, o as openBlock, e as createElementBlock, q as normalizeClass } from './index-
|
|
1
|
+
import { v as defineComponent, o as openBlock, e as createElementBlock, q as normalizeClass } from './index-d268ce4d.js';
|
|
2
2
|
|
|
3
3
|
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
4
4
|
__name: "VIcon",
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { _ as _sfc_main$1 } from './VIcon.vue_vue_type_script_setup_true_lang-
|
|
2
|
-
import { v as defineComponent, o as openBlock, c as createBlock, h as withCtx, u as createVNode, k as mergeProps, j as resolveDynamicComponent } from './index-
|
|
1
|
+
import { _ as _sfc_main$1 } from './VIcon.vue_vue_type_script_setup_true_lang-4dcb121c.js';
|
|
2
|
+
import { v as defineComponent, o as openBlock, c as createBlock, h as withCtx, u as createVNode, k as mergeProps, j as resolveDynamicComponent } from './index-d268ce4d.js';
|
|
3
3
|
|
|
4
4
|
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
5
5
|
__name: "VIconButton",
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { v as defineComponent, o as openBlock, e as createElementBlock, q as normalizeClass, g as createCommentVNode, f as renderSlot, x as createBaseVNode, y as toDisplayString } from './index-
|
|
1
|
+
import { v as defineComponent, o as openBlock, e as createElementBlock, q as normalizeClass, g as createCommentVNode, f as renderSlot, x as createBaseVNode, y as toDisplayString } from './index-d268ce4d.js';
|
|
2
2
|
|
|
3
3
|
const _hoisted_1 = {
|
|
4
4
|
flex: "~ gap-3",
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { bJ as _export_sfc, o as openBlock, e as createElementBlock, f as renderSlot } from './index-d268ce4d.js';
|
|
2
2
|
|
|
3
3
|
/* unplugin-vue-components disabled */const _sfc_main = {};
|
|
4
4
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { _ as _sfc_main$1 } from './VIconTitle.vue_vue_type_script_setup_true_lang-
|
|
2
|
-
import { _ as _sfc_main$2 } from './VIcon.vue_vue_type_script_setup_true_lang-
|
|
3
|
-
import { v as defineComponent,
|
|
1
|
+
import { _ as _sfc_main$1 } from './VIconTitle.vue_vue_type_script_setup_true_lang-4531a0e4.js';
|
|
2
|
+
import { _ as _sfc_main$2 } from './VIcon.vue_vue_type_script_setup_true_lang-4dcb121c.js';
|
|
3
|
+
import { v as defineComponent, bK as useVModel, b as resolveDirective, o as openBlock, e as createElementBlock, x as createBaseVNode, q as normalizeClass, u as createVNode, h as withCtx, f as renderSlot, g as createCommentVNode, c as createBlock, z as unref, d as withDirectives, F as Fragment, a9 as createTextVNode, y as toDisplayString, p as pushScopeId, a as popScopeId, bJ as _export_sfc } from './index-d268ce4d.js';
|
|
4
4
|
|
|
5
5
|
const _withScopeId = (n) => (pushScopeId("data-v-cf2e46eb"), n = n(), popScopeId(), n);
|
|
6
6
|
const _hoisted_1 = ["open"];
|
|
@@ -0,0 +1,88 @@
|
|
|
1
|
+
import { _ as _sfc_main$2 } from './VIcon.vue_vue_type_script_setup_true_lang-4dcb121c.js';
|
|
2
|
+
import { v as defineComponent, bK as useVModel, o as openBlock, e as createElementBlock, f as renderSlot, d as withDirectives, bt as vModelSelect, z as unref, x as createBaseVNode, y as toDisplayString, g as createCommentVNode, aC as isRef, c as createBlock, bq as vModelCheckbox, bE as withKeys } from './index-d268ce4d.js';
|
|
3
|
+
|
|
4
|
+
const _hoisted_1$1 = { 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" };
|
|
5
|
+
const _hoisted_2$1 = ["disabled"];
|
|
6
|
+
const _hoisted_3$1 = {
|
|
7
|
+
key: 0,
|
|
8
|
+
value: "",
|
|
9
|
+
disabled: "",
|
|
10
|
+
hidden: ""
|
|
11
|
+
};
|
|
12
|
+
const _sfc_main$1 = /* @__PURE__ */ defineComponent({
|
|
13
|
+
__name: "VSelect",
|
|
14
|
+
props: {
|
|
15
|
+
modelValue: { default: void 0 },
|
|
16
|
+
placeholder: { default: "" },
|
|
17
|
+
icon: { default: "" },
|
|
18
|
+
disabled: { type: Boolean, default: false }
|
|
19
|
+
},
|
|
20
|
+
setup(__props, { emit }) {
|
|
21
|
+
const props = __props;
|
|
22
|
+
const input = useVModel(props, "modelValue", emit, { passive: true });
|
|
23
|
+
return (_ctx, _cache) => {
|
|
24
|
+
const _component_VIcon = _sfc_main$2;
|
|
25
|
+
return openBlock(), createElementBlock("div", _hoisted_1$1, [
|
|
26
|
+
renderSlot(_ctx.$slots, "icon", {}, () => [
|
|
27
|
+
_ctx.icon ? (openBlock(), createBlock(_component_VIcon, {
|
|
28
|
+
key: 0,
|
|
29
|
+
icon: _ctx.icon,
|
|
30
|
+
class: "mr-0.4em text-1.1em op50"
|
|
31
|
+
}, null, 8, ["icon"])) : createCommentVNode("", true)
|
|
32
|
+
]),
|
|
33
|
+
withDirectives(createBaseVNode("select", {
|
|
34
|
+
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => isRef(input) ? input.value = $event : null),
|
|
35
|
+
disabled: _ctx.disabled,
|
|
36
|
+
class: "w-full flex-auto n-bg-base !outline-none"
|
|
37
|
+
}, [
|
|
38
|
+
_ctx.placeholder ? (openBlock(), createElementBlock("option", _hoisted_3$1, toDisplayString(_ctx.placeholder), 1)) : createCommentVNode("", true),
|
|
39
|
+
renderSlot(_ctx.$slots, "default")
|
|
40
|
+
], 8, _hoisted_2$1), [
|
|
41
|
+
[vModelSelect, unref(input)]
|
|
42
|
+
])
|
|
43
|
+
]);
|
|
44
|
+
};
|
|
45
|
+
}
|
|
46
|
+
});
|
|
47
|
+
|
|
48
|
+
/* Injected with object hook! */
|
|
49
|
+
|
|
50
|
+
const _hoisted_1 = ["checked", "disabled"];
|
|
51
|
+
const _hoisted_2 = ["disabled"];
|
|
52
|
+
const _hoisted_3 = /* @__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" }, [
|
|
53
|
+
/* @__PURE__ */ createBaseVNode("div", { class: "n-checked:n-switch-thumb-checked n-switch-thumb n-transition" })
|
|
54
|
+
], -1);
|
|
55
|
+
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
56
|
+
__name: "VSwitch",
|
|
57
|
+
props: {
|
|
58
|
+
modelValue: { type: Boolean, default: false },
|
|
59
|
+
disabled: { type: Boolean, default: false }
|
|
60
|
+
},
|
|
61
|
+
setup(__props, { emit }) {
|
|
62
|
+
const props = __props;
|
|
63
|
+
const checked = useVModel(props, "modelValue", emit, { passive: true });
|
|
64
|
+
return (_ctx, _cache) => {
|
|
65
|
+
return openBlock(), createElementBlock("label", {
|
|
66
|
+
class: "n-switch n-switch-base cursor-pointer n-disabled:n-disabled",
|
|
67
|
+
checked: unref(checked) || null,
|
|
68
|
+
disabled: _ctx.disabled || null
|
|
69
|
+
}, [
|
|
70
|
+
withDirectives(createBaseVNode("input", {
|
|
71
|
+
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => isRef(checked) ? checked.value = $event : null),
|
|
72
|
+
type: "checkbox",
|
|
73
|
+
class: "peer absolute op0",
|
|
74
|
+
disabled: _ctx.disabled,
|
|
75
|
+
onKeypress: _cache[1] || (_cache[1] = withKeys(($event) => checked.value = !unref(checked), ["enter"]))
|
|
76
|
+
}, null, 40, _hoisted_2), [
|
|
77
|
+
[vModelCheckbox, unref(checked)]
|
|
78
|
+
]),
|
|
79
|
+
_hoisted_3,
|
|
80
|
+
renderSlot(_ctx.$slots, "default")
|
|
81
|
+
], 8, _hoisted_1);
|
|
82
|
+
};
|
|
83
|
+
}
|
|
84
|
+
});
|
|
85
|
+
|
|
86
|
+
/* Injected with object hook! */
|
|
87
|
+
|
|
88
|
+
export { _sfc_main as _, _sfc_main$1 as a };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { _ as _sfc_main$1 } from './VIcon.vue_vue_type_script_setup_true_lang-
|
|
2
|
-
import { v as defineComponent,
|
|
1
|
+
import { _ as _sfc_main$1 } from './VIcon.vue_vue_type_script_setup_true_lang-4dcb121c.js';
|
|
2
|
+
import { v as defineComponent, bK as useVModel, o as openBlock, e as createElementBlock, f as renderSlot, d as withDirectives, br as vModelDynamic, z as unref, x as createBaseVNode, k as mergeProps, aC as isRef, c as createBlock, g as createCommentVNode } from './index-d268ce4d.js';
|
|
3
3
|
|
|
4
4
|
const _hoisted_1 = { class: "n-text-input flex flex items-center border n-border-base rounded py-1 pl-1 pr-2 focus-within:n-focus-base focus-within:border-context n-bg-base" };
|
|
5
5
|
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
@@ -0,0 +1,132 @@
|
|
|
1
|
+
import { _ as __unplugin_components_0 } from './VPanelGrids-ea9ac4bd.js';
|
|
2
|
+
import { v as defineComponent, cz as useRouter, a$ as ref, cd as useEventListener, aP as onMounted, o as openBlock, c as createBlock, h as withCtx, x as createBaseVNode, z as unref, e as createElementBlock, l as normalizeStyle, a9 as createTextVNode, y as toDisplayString, cl as useDevtoolsClient, bY as useFrameState, u as createVNode } from './index-d268ce4d.js';
|
|
3
|
+
import { h as checkIsSecurityContext } from './index-fb7e673c.js';
|
|
4
|
+
|
|
5
|
+
const _hoisted_1 = {
|
|
6
|
+
key: 0
|
|
7
|
+
};
|
|
8
|
+
const _hoisted_2 = {
|
|
9
|
+
key: 0
|
|
10
|
+
};
|
|
11
|
+
const _hoisted_3 = {
|
|
12
|
+
key: 1,
|
|
13
|
+
flex: "",
|
|
14
|
+
"items-center": ""
|
|
15
|
+
};
|
|
16
|
+
const _hoisted_4 = {
|
|
17
|
+
flex: "",
|
|
18
|
+
"items-center": ""
|
|
19
|
+
};
|
|
20
|
+
const _hoisted_5 = /*#__PURE__*/createBaseVNode("i", {
|
|
21
|
+
class: "i-mdi:eyedropper",
|
|
22
|
+
"text-3": ""
|
|
23
|
+
}, null, -1);
|
|
24
|
+
const _hoisted_6 = [_hoisted_5];
|
|
25
|
+
const _sfc_main = /*#__PURE__*/defineComponent({
|
|
26
|
+
__name: '__eyedropper',
|
|
27
|
+
setup(__props) {
|
|
28
|
+
const client = useDevtoolsClient();
|
|
29
|
+
const frameState = useFrameState();
|
|
30
|
+
const router = useRouter();
|
|
31
|
+
const color = ref('');
|
|
32
|
+
useEventListener('keydown', e => {
|
|
33
|
+
if (e.key === 'Escape') close();
|
|
34
|
+
});
|
|
35
|
+
function close() {
|
|
36
|
+
client.value?.panel?.toggleViewMode();
|
|
37
|
+
router.replace(frameState.route.value);
|
|
38
|
+
}
|
|
39
|
+
const inSecurityContext = checkIsSecurityContext();
|
|
40
|
+
// @ts-expect-error missing types
|
|
41
|
+
const supportEyeDropper = !!window.EyeDropper;
|
|
42
|
+
const isSupported = inSecurityContext && supportEyeDropper;
|
|
43
|
+
async function open() {
|
|
44
|
+
if (!isSupported) return;
|
|
45
|
+
// @ts-expect-error missing types?
|
|
46
|
+
const eyeDropper = new EyeDropper();
|
|
47
|
+
return eyeDropper.open();
|
|
48
|
+
}
|
|
49
|
+
async function restart() {
|
|
50
|
+
color.value = '';
|
|
51
|
+
open().then(res => {
|
|
52
|
+
color.value = res.sRGBHex;
|
|
53
|
+
});
|
|
54
|
+
}
|
|
55
|
+
onMounted(() => {
|
|
56
|
+
open().then(res => {
|
|
57
|
+
color.value = res.sRGBHex;
|
|
58
|
+
});
|
|
59
|
+
});
|
|
60
|
+
function ErrorBoundary() {
|
|
61
|
+
let content = createVNode("div", null, null);
|
|
62
|
+
if (!inSecurityContext) {
|
|
63
|
+
content = createVNode("p", null, [createTextVNode("EyeDropper is not available due to "), createVNode("a", {
|
|
64
|
+
"class": "text-primary transition-colors hover:text-primary/80",
|
|
65
|
+
"href": "https://developer.mozilla.org/en-US/docs/Web/Security/Secure_Contexts",
|
|
66
|
+
"target": '_blank'
|
|
67
|
+
}, [createTextVNode("secure context")]), createTextVNode(" restrict.")]);
|
|
68
|
+
} else if (!supportEyeDropper) {
|
|
69
|
+
content = createVNode("p", null, [createTextVNode("Your browser doesn't support\xA0"), createVNode("a", {
|
|
70
|
+
"class": "text-primary transition-colors hover:text-primary/80",
|
|
71
|
+
"href": "https://developer.mozilla.org/en-US/docs/Web/API/EyeDropper#browser_compatibility",
|
|
72
|
+
"target": '_blank'
|
|
73
|
+
}, [createTextVNode("EyeDropper")]), createTextVNode(".")]);
|
|
74
|
+
}
|
|
75
|
+
return createVNode("div", {
|
|
76
|
+
"class": "flex items-center justify-center text-12px"
|
|
77
|
+
}, [content]);
|
|
78
|
+
}
|
|
79
|
+
return (_ctx, _cache) => {
|
|
80
|
+
const _component_VPanelGrids = __unplugin_components_0;
|
|
81
|
+
return openBlock(), createBlock(_component_VPanelGrids, {
|
|
82
|
+
"h-screen": "",
|
|
83
|
+
"w-screen": "",
|
|
84
|
+
px5: ""
|
|
85
|
+
}, {
|
|
86
|
+
default: withCtx(() => [createBaseVNode("div", {
|
|
87
|
+
absolute: "",
|
|
88
|
+
"right-0": "",
|
|
89
|
+
"top-0": "",
|
|
90
|
+
p2: ""
|
|
91
|
+
}, [createBaseVNode("button", {
|
|
92
|
+
"carbon-close": "",
|
|
93
|
+
ma: "",
|
|
94
|
+
"text-xl": "",
|
|
95
|
+
op50: "",
|
|
96
|
+
"hover:op100": "",
|
|
97
|
+
onClick: close
|
|
98
|
+
})]), unref(isSupported) ? (openBlock(), createElementBlock("div", _hoisted_1, [!unref(color) ? (openBlock(), createElementBlock("div", _hoisted_2, " Launching EyeDropper ")) : (openBlock(), createElementBlock("div", _hoisted_3, [createBaseVNode("span", _hoisted_4, [createBaseVNode("em", {
|
|
99
|
+
"mr-2": "",
|
|
100
|
+
"inline-block": "",
|
|
101
|
+
"h-5": "",
|
|
102
|
+
"w-5": "",
|
|
103
|
+
border: "",
|
|
104
|
+
"border-base": "",
|
|
105
|
+
rounded: "",
|
|
106
|
+
style: normalizeStyle({
|
|
107
|
+
backgroundColor: unref(color)
|
|
108
|
+
})
|
|
109
|
+
}, null, 4), createTextVNode(" : " + toDisplayString(unref(color)), 1)]), createBaseVNode("span", {
|
|
110
|
+
"ml-2": "",
|
|
111
|
+
flex: "",
|
|
112
|
+
"cursor-pointer": "",
|
|
113
|
+
"items-center": "",
|
|
114
|
+
border: "",
|
|
115
|
+
"border-base": "",
|
|
116
|
+
"rounded-10": "",
|
|
117
|
+
"p-2": "",
|
|
118
|
+
hover: "bg-active",
|
|
119
|
+
onClick: restart
|
|
120
|
+
}, _hoisted_6)]))])) : (openBlock(), createBlock(ErrorBoundary, {
|
|
121
|
+
key: 1
|
|
122
|
+
}))]),
|
|
123
|
+
_: 1
|
|
124
|
+
});
|
|
125
|
+
};
|
|
126
|
+
}
|
|
127
|
+
});
|
|
128
|
+
/* Injected with object hook! */
|
|
129
|
+
|
|
130
|
+
/* Injected with object hook! */
|
|
131
|
+
|
|
132
|
+
export { _sfc_main as default };
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import { _ as __unplugin_components_0 } from './VPanelGrids-
|
|
2
|
-
import { v as defineComponent, a$ as ref,
|
|
3
|
-
import { _ as _sfc_main$9 } from './VIconButton.vue_vue_type_script_setup_true_lang-
|
|
4
|
-
import { r as rpc } from './rpc-
|
|
5
|
-
import { _ as __unplugin_components_3 } from './VSectionBlock-
|
|
6
|
-
import { _ as _sfc_main$b } from './VTextInput.vue_vue_type_script_setup_true_lang-
|
|
7
|
-
import { _ as _sfc_main$c } from './VIcon.vue_vue_type_script_setup_true_lang-
|
|
1
|
+
import { _ as __unplugin_components_0 } from './VPanelGrids-ea9ac4bd.js';
|
|
2
|
+
import { v as defineComponent, a$ as ref, cs as useElementSize, ct as onClickOutside, o as openBlock, c as createBlock, h as withCtx, e as createElementBlock, u as createVNode, x as createBaseVNode, f as renderSlot, k as mergeProps, z as unref, g as createCommentVNode, P as Transition, a1 as computed, y as toDisplayString, q as normalizeClass, cu as useStyleTag, l as normalizeStyle, cv as computedAsync, cq as useCopy, cw as useTimeAgo, F as Fragment, a9 as createTextVNode, cl as useDevtoolsClient, bL as _sfc_main$a, cx as onKeyDown, aC as isRef, i as renderList, _ as __unplugin_components_7 } from './index-d268ce4d.js';
|
|
3
|
+
import { _ as _sfc_main$9 } from './VIconButton.vue_vue_type_script_setup_true_lang-4054707d.js';
|
|
4
|
+
import { r as rpc } from './rpc-6c4cc8d5.js';
|
|
5
|
+
import { _ as __unplugin_components_3 } from './VSectionBlock-0d870ae2.js';
|
|
6
|
+
import { _ as _sfc_main$b } from './VTextInput.vue_vue_type_script_setup_true_lang-cd591fdb.js';
|
|
7
|
+
import { _ as _sfc_main$c } from './VIcon.vue_vue_type_script_setup_true_lang-4dcb121c.js';
|
|
8
8
|
import { F as Fuse } from './fuse.esm-c317b696.js';
|
|
9
|
-
import './VIconTitle.vue_vue_type_script_setup_true_lang-
|
|
9
|
+
import './VIconTitle.vue_vue_type_script_setup_true_lang-4531a0e4.js';
|
|
10
10
|
|
|
11
11
|
const _hoisted_1$7 = {
|
|
12
12
|
relative: "",
|
|
@@ -943,6 +943,7 @@ const _sfc_main$4 = /* @__PURE__ */ defineComponent({
|
|
|
943
943
|
"font"
|
|
944
944
|
].includes(props.asset.type);
|
|
945
945
|
});
|
|
946
|
+
const client = useDevtoolsClient();
|
|
946
947
|
return (_ctx, _cache) => {
|
|
947
948
|
const _component_AssetPreview = _sfc_main$5;
|
|
948
949
|
const _component_FilepathItem = _sfc_main$7;
|
|
@@ -974,7 +975,13 @@ const _sfc_main$4 = /* @__PURE__ */ defineComponent({
|
|
|
974
975
|
createVNode(_component_FilepathItem, {
|
|
975
976
|
filepath: _ctx.asset.filePath,
|
|
976
977
|
"text-left": ""
|
|
977
|
-
}, null, 8, ["filepath"])
|
|
978
|
+
}, null, 8, ["filepath"]),
|
|
979
|
+
createVNode(_component_VIconButton, {
|
|
980
|
+
"flex-none": "",
|
|
981
|
+
title: "Open in Editor",
|
|
982
|
+
icon: "carbon-launch",
|
|
983
|
+
onClick: _cache[0] || (_cache[0] = ($event) => unref(client).openInEditor(_ctx.asset.filePath))
|
|
984
|
+
})
|
|
978
985
|
])
|
|
979
986
|
])
|
|
980
987
|
]),
|
|
@@ -987,7 +994,7 @@ const _sfc_main$4 = /* @__PURE__ */ defineComponent({
|
|
|
987
994
|
"flex-none": "",
|
|
988
995
|
title: "Copy public path",
|
|
989
996
|
icon: "carbon-copy",
|
|
990
|
-
onClick: _cache[
|
|
997
|
+
onClick: _cache[1] || (_cache[1] = ($event) => unref(copy)(_ctx.asset.publicPath))
|
|
991
998
|
}),
|
|
992
999
|
createVNode(_component_VIconButton, {
|
|
993
1000
|
"flex-none": "",
|