vite-plugin-vue-devtools 0.5.0 → 1.0.0-alpha.1
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/client.d.ts +55 -0
- package/dist/client/assets/{VIcon.vue_vue_type_script_setup_true_lang-6cd486d4.js → Icon.vue_vue_type_script_setup_true_lang-f867c918.js} +2 -2
- package/dist/client/assets/{VIconButton.vue_vue_type_script_setup_true_lang-63abce3f.js → IconButton.vue_vue_type_script_setup_true_lang-74db1ae6.js} +4 -5
- package/dist/client/assets/{VIconTitle.vue_vue_type_script_setup_true_lang-1ad26587.js → IconTitle.vue_vue_type_script_setup_true_lang-d82eff77.js} +2 -2
- package/dist/client/assets/{IframeView.vue_vue_type_script_setup_true_lang-c6f176d1.js → IframeView.vue_vue_type_script_setup_true_lang-778923b2.js} +1 -1
- package/dist/client/assets/{VPanelGrids-4b915e62.js → PanelGrids-93648569.js} +1 -1
- package/dist/client/assets/SectionBlock-0024395a.css +18 -0
- package/dist/client/assets/{VSectionBlock-8dcfb48d.js → SectionBlock-a8928e3c.js} +11 -11
- package/dist/client/assets/{StateFields.vue_vue_type_script_setup_true_lang-617e4d70.js → StateFields.vue_vue_type_script_setup_true_lang-019c8d08.js} +13 -13
- package/dist/client/assets/{VSwitch.vue_vue_type_script_setup_true_lang-ed954339.js → Switch.vue_vue_type_script_setup_true_lang-3e126052.js} +6 -6
- package/dist/client/assets/{VTextInput.vue_vue_type_script_setup_true_lang-5edeb245.js → TextInput.vue_vue_type_script_setup_true_lang-13bb76a1.js} +5 -5
- package/dist/client/assets/{__eyedropper-67c21231.js → __eyedropper-44f84f34.js} +10 -6
- package/dist/client/assets/{assets-bf6dd9e4.js → assets-114c5f0e.js} +27 -28
- package/dist/client/assets/{component-docs-b2752be1.js → component-docs-6d7e057c.js} +9 -10
- package/dist/client/assets/{components-c9aae4bc.js → components-fc711123.js} +134 -21
- package/dist/client/assets/{documentations-e0b483de.js → documentations-4d7aa8fe.js} +4 -5
- package/dist/client/assets/{graph-f081d3a5.js → graph-0860970b.js} +8 -9
- package/dist/client/assets/{index-f977bcde.js → index-95398468.js} +1 -1
- package/dist/client/assets/{index-197edebf.js → index-9f1190d8.js} +475 -121
- package/dist/client/assets/index-d3dcbe9e.css +474 -0
- package/dist/client/assets/{inspect-8d04bb08.js → inspect-6bd0f86e.js} +2 -3
- package/dist/client/assets/{npm-73c6479f.js → npm-ee43d18c.js} +17 -18
- package/dist/client/assets/{overview-edc8c0a8.js → overview-8e63c4fa.js} +15 -16
- package/dist/client/assets/{pages-562d1ae5.js → pages-323386ca.js} +16 -16
- package/dist/client/assets/{pinia-89f6b4c0.js → pinia-58865e70.js} +6 -6
- package/dist/client/assets/{routes-ddddc2d7.js → routes-cd907bae.js} +13 -13
- package/dist/client/assets/{settings-3815e37a.css → settings-7bce89ae.css} +3 -3
- package/dist/client/assets/{settings-7722ba4d.js → settings-b93aee1f.js} +37 -39
- package/dist/client/assets/{splitpanes.es-2f5182b4.js → splitpanes.es-36fe45c8.js} +1 -1
- package/dist/client/assets/{timeline-bc5ea36f.js → timeline-8ce18510.js} +11 -11
- package/dist/client/index.html +2 -2
- package/dist/{index.cjs → vite.cjs} +9 -40
- package/dist/{index.mjs → vite.mjs} +7 -38
- package/package.json +26 -89
- package/src/app.js +4 -0
- package/src/{node/views → views}/ComponentInspector.vue +6 -6
- package/src/{node/views → views}/Main.vue +30 -24
- package/README.md +0 -166
- package/dist/client/assets/VSectionBlock-52804693.css +0 -18
- package/dist/client/assets/index-fb18df65.css +0 -474
- package/dist/client/assets/rpc-b9c94a3a.js +0 -145
- package/src/node/app.js +0 -31
- /package/dist/{index.d.ts → vite.d.ts} +0 -0
- /package/src/{node/views → views}/FrameBox.vue +0 -0
- /package/src/{node/views → views}/composables.ts +0 -0
- /package/src/{node/views → views}/utils.ts +0 -0
package/client.d.ts
ADDED
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
declare type AssetType = 'image' | 'font' | 'video' | 'audio' | 'text' | 'json' | 'other'
|
|
2
|
+
|
|
3
|
+
declare interface AssetInfo {
|
|
4
|
+
path: string
|
|
5
|
+
type: AssetType
|
|
6
|
+
publicPath: string
|
|
7
|
+
filePath: string
|
|
8
|
+
size: number
|
|
9
|
+
mtime: number
|
|
10
|
+
}
|
|
11
|
+
declare interface ImageMeta {
|
|
12
|
+
width: number
|
|
13
|
+
height: number
|
|
14
|
+
orientation?: number
|
|
15
|
+
type?: string
|
|
16
|
+
mimeType?: string
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
declare interface ModuleInfo {
|
|
20
|
+
id: string
|
|
21
|
+
plugins: { name: string; transform?: number; resolveId?: number }[]
|
|
22
|
+
deps: string[]
|
|
23
|
+
virtual: boolean
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
declare interface ExecNpmScriptOptions {
|
|
27
|
+
isDev?: boolean
|
|
28
|
+
cwd?: string
|
|
29
|
+
type?: 'install' | 'uninstall'
|
|
30
|
+
callback?: (type: string, data: string) => void
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
|
|
34
|
+
declare interface RPCFunctions {
|
|
35
|
+
componentGraph(): Promise<ModuleInfo[]>
|
|
36
|
+
inspectClientUrl(): string
|
|
37
|
+
staticAssets(): Promise<AssetInfo[]>
|
|
38
|
+
getImageMeta(path: string): Promise<ImageMeta | undefined>
|
|
39
|
+
getTextAssetContent(path: string): Promise<string | undefined>
|
|
40
|
+
getPackages(): Promise<Record<string, Omit<PackageMeta, 'name'>>>
|
|
41
|
+
getVueSFCList(): Promise<string[]>
|
|
42
|
+
getComponentInfo(filename: string): Promise<Record<string, unknown>>
|
|
43
|
+
onTerminalData(_: { id?: string; data: string }): void
|
|
44
|
+
onTerminalExit(_: { id?: string; data?: string }): void
|
|
45
|
+
installPackage(packages: string[], options?: ExecNpmScriptOptions): Promise<void>
|
|
46
|
+
uninstallPackage(packages: string[], options?: ExecNpmScriptOptions): Promise<void>
|
|
47
|
+
root(): string
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
|
|
51
|
+
declare interface PackageMeta {
|
|
52
|
+
type: string
|
|
53
|
+
version: string
|
|
54
|
+
name: string
|
|
55
|
+
}
|
|
@@ -1,7 +1,7 @@
|
|
|
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-9f1190d8.js';
|
|
2
2
|
|
|
3
3
|
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
4
|
-
__name: "
|
|
4
|
+
__name: "Icon",
|
|
5
5
|
props: {
|
|
6
6
|
icon: {}
|
|
7
7
|
},
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { _ as _sfc_main$1 } from './
|
|
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 './Icon.vue_vue_type_script_setup_true_lang-f867c918.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-9f1190d8.js';
|
|
3
3
|
|
|
4
4
|
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
5
|
-
__name: "
|
|
5
|
+
__name: "IconButton",
|
|
6
6
|
props: {
|
|
7
7
|
to: {},
|
|
8
8
|
icon: {}
|
|
@@ -10,10 +10,9 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
10
10
|
setup(__props) {
|
|
11
11
|
const props = __props;
|
|
12
12
|
return (_ctx, _cache) => {
|
|
13
|
-
const _component_VIcon = _sfc_main$1;
|
|
14
13
|
return openBlock(), createBlock(resolveDynamicComponent(_ctx.to ? "a" : "button"), mergeProps({ href: _ctx.to }, _ctx.$attrs, { class: "n-transition n-icon-button" }), {
|
|
15
14
|
default: withCtx(() => [
|
|
16
|
-
createVNode(
|
|
15
|
+
createVNode(_sfc_main$1, {
|
|
17
16
|
icon: props.icon
|
|
18
17
|
}, null, 8, ["icon"])
|
|
19
18
|
]),
|
|
@@ -1,11 +1,11 @@
|
|
|
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-9f1190d8.js';
|
|
2
2
|
|
|
3
3
|
const _hoisted_1 = {
|
|
4
4
|
flex: "~ gap-3",
|
|
5
5
|
"items-center": ""
|
|
6
6
|
};
|
|
7
7
|
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
8
|
-
__name: "
|
|
8
|
+
__name: "IconTitle",
|
|
9
9
|
props: {
|
|
10
10
|
icon: {},
|
|
11
11
|
text: {}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { v as defineComponent,
|
|
1
|
+
import { v as defineComponent, cn as useColorMode, a$ as ref, a1 as computed, aZ as reactive, co 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-9f1190d8.js';
|
|
2
2
|
|
|
3
3
|
const _hoisted_1 = {
|
|
4
4
|
key: 0,
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { bJ as _export_sfc, o as openBlock, e as createElementBlock, f as renderSlot } from './index-
|
|
1
|
+
import { bJ as _export_sfc, o as openBlock, e as createElementBlock, f as renderSlot } from './index-9f1190d8.js';
|
|
2
2
|
|
|
3
3
|
/* unplugin-vue-components disabled */const _sfc_main = {};
|
|
4
4
|
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
|
|
2
|
+
details[data-v-e966339e] {
|
|
3
|
+
border-style:none;;
|
|
4
|
+
}
|
|
5
|
+
summary[data-v-e966339e] {
|
|
6
|
+
border-style:none;;
|
|
7
|
+
list-style: none;
|
|
8
|
+
}
|
|
9
|
+
details[open] summary[data-v-e966339e] {
|
|
10
|
+
border-style:none;;
|
|
11
|
+
}
|
|
12
|
+
details summary[data-v-e966339e]::-webkit-details-marker {
|
|
13
|
+
display:none;
|
|
14
|
+
}
|
|
15
|
+
details[open] .chevron[data-v-e966339e] {
|
|
16
|
+
transform: rotate(180deg);
|
|
17
|
+
opacity: 0.75;
|
|
18
|
+
}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { _ as _sfc_main$1 } from './
|
|
2
|
-
import { _ as _sfc_main$2 } from './
|
|
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-
|
|
1
|
+
import { _ as _sfc_main$1 } from './IconTitle.vue_vue_type_script_setup_true_lang-d82eff77.js';
|
|
2
|
+
import { _ as _sfc_main$2 } from './Icon.vue_vue_type_script_setup_true_lang-f867c918.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-9f1190d8.js';
|
|
4
4
|
|
|
5
|
-
const _withScopeId = (n) => (pushScopeId("data-v-
|
|
5
|
+
const _withScopeId = (n) => (pushScopeId("data-v-e966339e"), n = n(), popScopeId(), n);
|
|
6
6
|
const _hoisted_1 = ["open"];
|
|
7
7
|
const _hoisted_2 = { "text-base": "" };
|
|
8
8
|
const _hoisted_3 = {
|
|
@@ -13,7 +13,7 @@ const _hoisted_3 = {
|
|
|
13
13
|
const _hoisted_4 = /* @__PURE__ */ _withScopeId(() => /* @__PURE__ */ createBaseVNode("div", { class: "flex-auto" }, null, -1));
|
|
14
14
|
const _hoisted_5 = /* @__PURE__ */ _withScopeId(() => /* @__PURE__ */ createBaseVNode("div", { class: "x-divider" }, null, -1));
|
|
15
15
|
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
16
|
-
__name: "
|
|
16
|
+
__name: "SectionBlock",
|
|
17
17
|
props: {
|
|
18
18
|
icon: {},
|
|
19
19
|
text: {},
|
|
@@ -30,8 +30,8 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
30
30
|
open.value = e.target.open;
|
|
31
31
|
}
|
|
32
32
|
return (_ctx, _cache) => {
|
|
33
|
-
const
|
|
34
|
-
const
|
|
33
|
+
const _component_VDIcon = _sfc_main$2;
|
|
34
|
+
const _component_VDIconTitle = _sfc_main$1;
|
|
35
35
|
const _directive_lazy_show = resolveDirective("lazy-show");
|
|
36
36
|
return openBlock(), createElementBlock(Fragment, null, [
|
|
37
37
|
createBaseVNode("details", {
|
|
@@ -41,7 +41,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
41
41
|
createBaseVNode("summary", {
|
|
42
42
|
class: normalizeClass(["cursor-pointer select-none hover:bg-active p4", _ctx.collapse ? "" : "pointer-events-none"])
|
|
43
43
|
}, [
|
|
44
|
-
createVNode(
|
|
44
|
+
createVNode(_component_VDIconTitle, {
|
|
45
45
|
icon: _ctx.icon,
|
|
46
46
|
text: _ctx.text,
|
|
47
47
|
"text-xl": "",
|
|
@@ -63,7 +63,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
63
63
|
]),
|
|
64
64
|
_hoisted_4,
|
|
65
65
|
renderSlot(_ctx.$slots, "actions", {}, void 0, true),
|
|
66
|
-
_ctx.collapse ? (openBlock(), createBlock(
|
|
66
|
+
_ctx.collapse ? (openBlock(), createBlock(_component_VDIcon, {
|
|
67
67
|
key: 0,
|
|
68
68
|
icon: "carbon-chevron-down",
|
|
69
69
|
class: "chevron",
|
|
@@ -100,10 +100,10 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
100
100
|
|
|
101
101
|
/* Injected with object hook! */
|
|
102
102
|
|
|
103
|
-
/* unplugin-vue-components disabled */const
|
|
103
|
+
/* unplugin-vue-components disabled */const SectionBlock_vue_vue_type_style_index_0_scoped_e966339e_lang = '';
|
|
104
104
|
/* Injected with object hook! */
|
|
105
105
|
|
|
106
|
-
const __unplugin_components_3 = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-
|
|
106
|
+
const __unplugin_components_3 = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-e966339e"]]);
|
|
107
107
|
|
|
108
108
|
/* Injected with object hook! */
|
|
109
109
|
|
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
import { _ as _sfc_main$3 } from './
|
|
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 './
|
|
1
|
+
import { _ as _sfc_main$3 } from './Icon.vue_vue_type_script_setup_true_lang-f867c918.js';
|
|
2
|
+
import { v as defineComponent, o as openBlock, c as createBlock, q as normalizeClass, aC as isRef, bd as toRaw, a1 as computed, cs as useCopy, r as resolveComponent, e as createElementBlock, i as renderList, z as unref, ct as nanoid, x as createBaseVNode, y as toDisplayString, g as createCommentVNode, F as Fragment, a$ as ref, cu as useNotification, u as createVNode, bG as withModifiers, d as withDirectives, bv as vShow } from './index-9f1190d8.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-95398468.js';
|
|
4
|
+
import { _ as _sfc_main$4 } from './IconButton.vue_vue_type_script_setup_true_lang-74db1ae6.js';
|
|
5
5
|
|
|
6
6
|
const _sfc_main$2 = /* @__PURE__ */ defineComponent({
|
|
7
|
-
__name: "
|
|
7
|
+
__name: "ExpandIcon",
|
|
8
8
|
props: {
|
|
9
9
|
value: { type: Boolean }
|
|
10
10
|
},
|
|
11
11
|
setup(__props) {
|
|
12
12
|
return (_ctx, _cache) => {
|
|
13
|
-
const
|
|
14
|
-
return openBlock(), createBlock(
|
|
13
|
+
const _component_VDIcon = _sfc_main$3;
|
|
14
|
+
return openBlock(), createBlock(_component_VDIcon, {
|
|
15
15
|
class: normalizeClass(["material-symbols:arrow-right", {
|
|
16
16
|
"transform rotate-90": _ctx.value
|
|
17
17
|
}]),
|
|
@@ -240,7 +240,7 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
|
|
|
240
240
|
}
|
|
241
241
|
const copy = useCopy();
|
|
242
242
|
return (_ctx, _cache) => {
|
|
243
|
-
const
|
|
243
|
+
const _component_VDExpandIcon = _sfc_main$2;
|
|
244
244
|
const _component_StateFieldsTree = resolveComponent("StateFieldsTree", true);
|
|
245
245
|
return openBlock(true), createElementBlock(Fragment, null, renderList(unref(list), (item, index) => {
|
|
246
246
|
return openBlock(), createElementBlock("code", {
|
|
@@ -255,7 +255,7 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
|
|
|
255
255
|
"items-center": "",
|
|
256
256
|
class: normalizeClass([item?.recursive && "cursor-pointer"])
|
|
257
257
|
}, [
|
|
258
|
-
item?.recursive ? (openBlock(), createBlock(
|
|
258
|
+
item?.recursive ? (openBlock(), createBlock(_component_VDExpandIcon, {
|
|
259
259
|
key: 0,
|
|
260
260
|
value: _ctx.expandedId.includes(`${_ctx.id}-${_ctx.depth}-${index}`),
|
|
261
261
|
onClick: ($event) => item?.recursive && toggleExpand(`${_ctx.id}-${_ctx.depth}-${index}`)
|
|
@@ -337,8 +337,8 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
337
337
|
}
|
|
338
338
|
}
|
|
339
339
|
return (_ctx, _cache) => {
|
|
340
|
-
const
|
|
341
|
-
const
|
|
340
|
+
const _component_VDExpandIcon = _sfc_main$2;
|
|
341
|
+
const _component_VDIconButton = _sfc_main$4;
|
|
342
342
|
const _component_StateFieldsTree = _sfc_main$1;
|
|
343
343
|
return openBlock(), createElementBlock("div", null, [
|
|
344
344
|
createBaseVNode("h3", {
|
|
@@ -352,10 +352,10 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
352
352
|
onClick: toggleExpanded
|
|
353
353
|
}, [
|
|
354
354
|
createBaseVNode("div", null, [
|
|
355
|
-
createVNode(
|
|
355
|
+
createVNode(_component_VDExpandIcon, { value: unref(isExpanded) }, null, 8, ["value"]),
|
|
356
356
|
createBaseVNode("span", _hoisted_1, toDisplayString(_ctx.data.key), 1)
|
|
357
357
|
]),
|
|
358
|
-
createVNode(
|
|
358
|
+
createVNode(_component_VDIconButton, {
|
|
359
359
|
mr2: "",
|
|
360
360
|
"flex-none": "",
|
|
361
361
|
title: `Copy ${_ctx.data.key} to clipboard`,
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { _ as _sfc_main$2 } from './
|
|
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-
|
|
1
|
+
import { _ as _sfc_main$2 } from './Icon.vue_vue_type_script_setup_true_lang-f867c918.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-9f1190d8.js';
|
|
3
3
|
|
|
4
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
5
|
const _hoisted_2$1 = ["disabled"];
|
|
@@ -10,7 +10,7 @@ const _hoisted_3$1 = {
|
|
|
10
10
|
hidden: ""
|
|
11
11
|
};
|
|
12
12
|
const _sfc_main$1 = /* @__PURE__ */ defineComponent({
|
|
13
|
-
__name: "
|
|
13
|
+
__name: "Select",
|
|
14
14
|
props: {
|
|
15
15
|
modelValue: { default: void 0 },
|
|
16
16
|
placeholder: { default: "" },
|
|
@@ -21,10 +21,10 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
|
|
|
21
21
|
const props = __props;
|
|
22
22
|
const input = useVModel(props, "modelValue", emit, { passive: true });
|
|
23
23
|
return (_ctx, _cache) => {
|
|
24
|
-
const
|
|
24
|
+
const _component_VDIcon = _sfc_main$2;
|
|
25
25
|
return openBlock(), createElementBlock("div", _hoisted_1$1, [
|
|
26
26
|
renderSlot(_ctx.$slots, "icon", {}, () => [
|
|
27
|
-
_ctx.icon ? (openBlock(), createBlock(
|
|
27
|
+
_ctx.icon ? (openBlock(), createBlock(_component_VDIcon, {
|
|
28
28
|
key: 0,
|
|
29
29
|
icon: _ctx.icon,
|
|
30
30
|
class: "mr-0.4em text-1.1em op50"
|
|
@@ -53,7 +53,7 @@ const _hoisted_3 = /* @__PURE__ */ createBaseVNode("div", { class: "n-switch-sli
|
|
|
53
53
|
/* @__PURE__ */ createBaseVNode("div", { class: "n-checked:n-switch-thumb-checked n-switch-thumb n-transition" })
|
|
54
54
|
], -1);
|
|
55
55
|
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
56
|
-
__name: "
|
|
56
|
+
__name: "Switch",
|
|
57
57
|
props: {
|
|
58
58
|
modelValue: { type: Boolean, default: false },
|
|
59
59
|
disabled: { type: Boolean, default: false }
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { _ as _sfc_main$1 } from './
|
|
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-
|
|
1
|
+
import { _ as _sfc_main$1 } from './Icon.vue_vue_type_script_setup_true_lang-f867c918.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-9f1190d8.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({
|
|
6
|
-
__name: "
|
|
6
|
+
__name: "TextInput",
|
|
7
7
|
props: {
|
|
8
8
|
modelValue: { default: "" },
|
|
9
9
|
icon: {},
|
|
@@ -15,10 +15,10 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
15
15
|
const props = __props;
|
|
16
16
|
const input = useVModel(props, "modelValue", emit, { passive: true });
|
|
17
17
|
return (_ctx, _cache) => {
|
|
18
|
-
const
|
|
18
|
+
const _component_VDIcon = _sfc_main$1;
|
|
19
19
|
return openBlock(), createElementBlock("div", _hoisted_1, [
|
|
20
20
|
renderSlot(_ctx.$slots, "icon", {}, () => [
|
|
21
|
-
_ctx.icon ? (openBlock(), createBlock(
|
|
21
|
+
_ctx.icon ? (openBlock(), createBlock(_component_VDIcon, {
|
|
22
22
|
key: 0,
|
|
23
23
|
icon: _ctx.icon,
|
|
24
24
|
class: "ml-0.3em mr-0.1em text-1.1em op50"
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { _ as __unplugin_components_0 } from './
|
|
2
|
-
import { v as defineComponent,
|
|
3
|
-
import { h as checkIsSecurityContext } from './index-
|
|
1
|
+
import { _ as __unplugin_components_0 } from './PanelGrids-93648569.js';
|
|
2
|
+
import { v as defineComponent, cB as useRouter, a$ as ref, a1 as computed, cs as useCopy, cc 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, bX as useFrameState, u as createVNode } from './index-9f1190d8.js';
|
|
3
|
+
import { h as checkIsSecurityContext } from './index-95398468.js';
|
|
4
4
|
|
|
5
5
|
const _hoisted_1 = {
|
|
6
6
|
key: 0
|
|
@@ -25,7 +25,7 @@ const _hoisted_6 = [_hoisted_5];
|
|
|
25
25
|
const _sfc_main = /*#__PURE__*/defineComponent({
|
|
26
26
|
__name: '__eyedropper',
|
|
27
27
|
setup(__props) {
|
|
28
|
-
const client =
|
|
28
|
+
const client = useDevToolsClient();
|
|
29
29
|
const frameState = useFrameState();
|
|
30
30
|
const router = useRouter();
|
|
31
31
|
const hexColor = ref('');
|
|
@@ -59,11 +59,15 @@ const _sfc_main = /*#__PURE__*/defineComponent({
|
|
|
59
59
|
hexColor.value = '';
|
|
60
60
|
open().then(res => {
|
|
61
61
|
hexColor.value = res.sRGBHex;
|
|
62
|
+
}).catch(() => {
|
|
63
|
+
close();
|
|
62
64
|
});
|
|
63
65
|
}
|
|
64
66
|
onMounted(() => {
|
|
65
67
|
open().then(res => {
|
|
66
68
|
hexColor.value = res.sRGBHex;
|
|
69
|
+
}).catch(() => {
|
|
70
|
+
close();
|
|
67
71
|
});
|
|
68
72
|
});
|
|
69
73
|
function ErrorBoundary() {
|
|
@@ -86,8 +90,8 @@ const _sfc_main = /*#__PURE__*/defineComponent({
|
|
|
86
90
|
}, [content]);
|
|
87
91
|
}
|
|
88
92
|
return (_ctx, _cache) => {
|
|
89
|
-
const
|
|
90
|
-
return openBlock(), createBlock(
|
|
93
|
+
const _component_VDPanelGrids = __unplugin_components_0;
|
|
94
|
+
return openBlock(), createBlock(_component_VDPanelGrids, {
|
|
91
95
|
"h-screen": "",
|
|
92
96
|
"w-screen": "",
|
|
93
97
|
px5: ""
|
|
@@ -1,12 +1,11 @@
|
|
|
1
|
-
import { _ as __unplugin_components_0 } from './
|
|
2
|
-
import { v as defineComponent, a$ as ref,
|
|
3
|
-
import { _ as _sfc_main$9 } from './
|
|
4
|
-
import {
|
|
5
|
-
import { _ as
|
|
6
|
-
import { _ as _sfc_main$
|
|
7
|
-
import { _ as _sfc_main$c } from './VIcon.vue_vue_type_script_setup_true_lang-6cd486d4.js';
|
|
1
|
+
import { _ as __unplugin_components_0 } from './PanelGrids-93648569.js';
|
|
2
|
+
import { v as defineComponent, a$ as ref, cv as useElementSize, cw 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, cx as useStyleTag, l as normalizeStyle, cy as computedAsync, cs as useCopy, cz as useTimeAgo, F as Fragment, a9 as createTextVNode, c9 as rpc, cl as useDevToolsClient, bL as _sfc_main$a, cA as onKeyDown, aC as isRef, i as renderList, _ as __unplugin_components_7 } from './index-9f1190d8.js';
|
|
3
|
+
import { _ as _sfc_main$9 } from './IconButton.vue_vue_type_script_setup_true_lang-74db1ae6.js';
|
|
4
|
+
import { _ as __unplugin_components_3 } from './SectionBlock-a8928e3c.js';
|
|
5
|
+
import { _ as _sfc_main$b } from './TextInput.vue_vue_type_script_setup_true_lang-13bb76a1.js';
|
|
6
|
+
import { _ as _sfc_main$c } from './Icon.vue_vue_type_script_setup_true_lang-f867c918.js';
|
|
8
7
|
import { F as Fuse } from './fuse.esm-c317b696.js';
|
|
9
|
-
import './
|
|
8
|
+
import './IconTitle.vue_vue_type_script_setup_true_lang-d82eff77.js';
|
|
10
9
|
|
|
11
10
|
const _hoisted_1$7 = {
|
|
12
11
|
relative: "",
|
|
@@ -37,7 +36,7 @@ const _sfc_main$8 = /* @__PURE__ */ defineComponent({
|
|
|
37
36
|
ignore: ["a", "button", "summary"]
|
|
38
37
|
});
|
|
39
38
|
return (_ctx, _cache) => {
|
|
40
|
-
const
|
|
39
|
+
const _component_VDIconButton = _sfc_main$9;
|
|
41
40
|
return openBlock(), createBlock(Transition, {
|
|
42
41
|
"enter-active-class": "duration-200 ease-in",
|
|
43
42
|
"enter-from-class": "transform translate-x-1/1",
|
|
@@ -63,7 +62,7 @@ const _sfc_main$8 = /* @__PURE__ */ defineComponent({
|
|
|
63
62
|
"glass-effect": "",
|
|
64
63
|
style: { top: `${unref(top)}px` }
|
|
65
64
|
}, _ctx.$attrs), [
|
|
66
|
-
createVNode(
|
|
65
|
+
createVNode(_component_VDIconButton, {
|
|
67
66
|
absolute: "",
|
|
68
67
|
"right-2": "",
|
|
69
68
|
"top-2": "",
|
|
@@ -943,12 +942,12 @@ const _sfc_main$4 = /* @__PURE__ */ defineComponent({
|
|
|
943
942
|
"font"
|
|
944
943
|
].includes(props.asset.type);
|
|
945
944
|
});
|
|
946
|
-
const client =
|
|
945
|
+
const client = useDevToolsClient();
|
|
947
946
|
return (_ctx, _cache) => {
|
|
948
947
|
const _component_AssetPreview = _sfc_main$5;
|
|
949
948
|
const _component_FilepathItem = _sfc_main$7;
|
|
950
|
-
const
|
|
951
|
-
const
|
|
949
|
+
const _component_VDIconButton = _sfc_main$9;
|
|
950
|
+
const _component_VDButton = _sfc_main$a;
|
|
952
951
|
return openBlock(), createElementBlock("div", _hoisted_1$4, [
|
|
953
952
|
unref(supportsPreview) ? (openBlock(), createElementBlock(Fragment, { key: 0 }, [
|
|
954
953
|
_hoisted_2$3,
|
|
@@ -976,7 +975,7 @@ const _sfc_main$4 = /* @__PURE__ */ defineComponent({
|
|
|
976
975
|
filepath: _ctx.asset.filePath,
|
|
977
976
|
"text-left": ""
|
|
978
977
|
}, null, 8, ["filepath"]),
|
|
979
|
-
createVNode(
|
|
978
|
+
createVNode(_component_VDIconButton, {
|
|
980
979
|
"flex-none": "",
|
|
981
980
|
title: "Open in Editor",
|
|
982
981
|
icon: "carbon-launch",
|
|
@@ -990,13 +989,13 @@ const _sfc_main$4 = /* @__PURE__ */ defineComponent({
|
|
|
990
989
|
createBaseVNode("td", null, [
|
|
991
990
|
createBaseVNode("div", _hoisted_9, [
|
|
992
991
|
createBaseVNode("div", _hoisted_10, toDisplayString(_ctx.asset.publicPath), 1),
|
|
993
|
-
createVNode(
|
|
992
|
+
createVNode(_component_VDIconButton, {
|
|
994
993
|
"flex-none": "",
|
|
995
994
|
title: "Copy public path",
|
|
996
995
|
icon: "carbon-copy",
|
|
997
996
|
onClick: _cache[1] || (_cache[1] = ($event) => unref(copy)(_ctx.asset.publicPath))
|
|
998
997
|
}),
|
|
999
|
-
createVNode(
|
|
998
|
+
createVNode(_component_VDIconButton, {
|
|
1000
999
|
"flex-none": "",
|
|
1001
1000
|
to: `${unref(origin)}${_ctx.asset.publicPath}`,
|
|
1002
1001
|
icon: "carbon-launch",
|
|
@@ -1035,7 +1034,7 @@ const _sfc_main$4 = /* @__PURE__ */ defineComponent({
|
|
|
1035
1034
|
]),
|
|
1036
1035
|
_hoisted_19,
|
|
1037
1036
|
createBaseVNode("div", _hoisted_20, [
|
|
1038
|
-
createVNode(
|
|
1037
|
+
createVNode(_component_VDButton, {
|
|
1039
1038
|
to: `${unref(origin)}${_ctx.asset.publicPath}`,
|
|
1040
1039
|
download: "",
|
|
1041
1040
|
target: "_blank",
|
|
@@ -1171,7 +1170,7 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
|
|
|
1171
1170
|
emit("update:search", event.target.value);
|
|
1172
1171
|
}
|
|
1173
1172
|
return (_ctx, _cache) => {
|
|
1174
|
-
const
|
|
1173
|
+
const _component_VDTextInput = _sfc_main$b;
|
|
1175
1174
|
return openBlock(), createElementBlock("div", {
|
|
1176
1175
|
flex: "~ col gap2",
|
|
1177
1176
|
border: "b base",
|
|
@@ -1181,7 +1180,7 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
|
|
|
1181
1180
|
}, [
|
|
1182
1181
|
createBaseVNode("div", _hoisted_1$1, [
|
|
1183
1182
|
renderSlot(_ctx.$slots, "search", {}, () => [
|
|
1184
|
-
createVNode(
|
|
1183
|
+
createVNode(_component_VDTextInput, {
|
|
1185
1184
|
placeholder: "Search...",
|
|
1186
1185
|
icon: "carbon-search",
|
|
1187
1186
|
n: "primary",
|
|
@@ -1267,15 +1266,15 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
1267
1266
|
});
|
|
1268
1267
|
const navbar = ref();
|
|
1269
1268
|
return (_ctx, _cache) => {
|
|
1270
|
-
const
|
|
1269
|
+
const _component_VDIcon = _sfc_main$c;
|
|
1271
1270
|
const _component_Navbar = _sfc_main$1;
|
|
1272
1271
|
const _component_AssetGridItem = _sfc_main$2;
|
|
1273
|
-
const
|
|
1272
|
+
const _component_VDSectionBlock = __unplugin_components_3;
|
|
1274
1273
|
const _component_AssetListItem = _sfc_main$3;
|
|
1275
1274
|
const _component_AssetDetails = _sfc_main$4;
|
|
1276
1275
|
const _component_DrawerRight = _sfc_main$8;
|
|
1277
|
-
const
|
|
1278
|
-
const
|
|
1276
|
+
const _component_VDCard = __unplugin_components_7;
|
|
1277
|
+
const _component_VDPanelGrids = __unplugin_components_0;
|
|
1279
1278
|
return unref(assets)?.length ? (openBlock(), createElementBlock("div", _hoisted_1, [
|
|
1280
1279
|
createVNode(_component_Navbar, {
|
|
1281
1280
|
ref_key: "navbar",
|
|
@@ -1290,10 +1289,10 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
1290
1289
|
title: "Toggle view",
|
|
1291
1290
|
onClick: toggleView
|
|
1292
1291
|
}, [
|
|
1293
|
-
unref(view) === "grid" ? (openBlock(), createBlock(
|
|
1292
|
+
unref(view) === "grid" ? (openBlock(), createBlock(_component_VDIcon, {
|
|
1294
1293
|
key: 0,
|
|
1295
1294
|
icon: "i-carbon-list"
|
|
1296
|
-
})) : (openBlock(), createBlock(
|
|
1295
|
+
})) : (openBlock(), createBlock(_component_VDIcon, {
|
|
1297
1296
|
key: 1,
|
|
1298
1297
|
icon: "i-carbon-grid"
|
|
1299
1298
|
}))
|
|
@@ -1310,7 +1309,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
1310
1309
|
}, 8, ["search"]),
|
|
1311
1310
|
unref(view) === "grid" ? (openBlock(), createElementBlock(Fragment, { key: 0 }, [
|
|
1312
1311
|
unref(byFolders).length > 1 ? (openBlock(true), createElementBlock(Fragment, { key: 0 }, renderList(unref(byFolders), ([folder, items]) => {
|
|
1313
|
-
return openBlock(), createBlock(
|
|
1312
|
+
return openBlock(), createBlock(_component_VDSectionBlock, {
|
|
1314
1313
|
key: folder,
|
|
1315
1314
|
text: folder,
|
|
1316
1315
|
description: `${items.length} items`,
|
|
@@ -1364,12 +1363,12 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
1364
1363
|
]),
|
|
1365
1364
|
_: 1
|
|
1366
1365
|
}, 8, ["model-value", "navbar"])
|
|
1367
|
-
])) : (openBlock(), createBlock(
|
|
1366
|
+
])) : (openBlock(), createBlock(_component_VDPanelGrids, {
|
|
1368
1367
|
key: 1,
|
|
1369
1368
|
px5: ""
|
|
1370
1369
|
}, {
|
|
1371
1370
|
default: withCtx(() => [
|
|
1372
|
-
createVNode(
|
|
1371
|
+
createVNode(_component_VDCard, {
|
|
1373
1372
|
flex: "~ col gap2",
|
|
1374
1373
|
"min-w-30": "",
|
|
1375
1374
|
"items-center": "",
|