vite-plugin-vue-devtools 0.0.5 → 0.0.7

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.
Files changed (26) hide show
  1. package/dist/client/assets/{VCard-8dda4b89.js → VCard-415c7ae5.js} +1 -1
  2. package/dist/client/assets/{VIcon.vue_vue_type_script_setup_true_lang-b9e1052c.js → VIcon.vue_vue_type_script_setup_true_lang-60e8343f.js} +1 -1
  3. package/dist/client/assets/{VIconTitle.vue_vue_type_script_setup_true_lang-ec1b3b7a.js → VIconTitle.vue_vue_type_script_setup_true_lang-e52820ad.js} +1 -1
  4. package/dist/client/assets/{VPanelGrids-eb4fe74d.js → VPanelGrids-155c3f49.js} +1 -1
  5. package/dist/client/assets/{VTextInput.vue_vue_type_script_setup_true_lang-14bfbfbb.js → VTextInput.vue_vue_type_script_setup_true_lang-a7aeaac7.js} +3 -3
  6. package/dist/client/assets/{__inspecting-b8697c3c.js → __inspecting-952b7753.js} +2 -2
  7. package/dist/client/assets/{assets-9ac104fb.js → assets-606d73ab.js} +7 -7
  8. package/dist/client/assets/{components-b3ff2252.js → components-bd34817a.js} +96 -6
  9. package/dist/client/assets/{graph-74eabf92.js → graph-1c1d01ca.js} +2 -2
  10. package/dist/client/assets/{index-e9e51318.js → index-21cc52d6.js} +1 -1
  11. package/dist/client/assets/{index-fceca701.css → index-62a10721.css} +1 -1
  12. package/dist/client/assets/{index-03df0916.js → index-89bcc57b.js} +154 -312
  13. package/dist/client/assets/{inspect-efa81d08.js → inspect-f75be7cc.js} +2 -2
  14. package/dist/client/assets/{overview-642d4475.js → overview-a18b9320.js} +5 -5
  15. package/dist/client/assets/{pages-4f6946a5.js → pages-da50bc3a.js} +4 -4
  16. package/dist/client/assets/{pinia-7b31943d.js → pinia-a857fe5f.js} +4 -4
  17. package/dist/client/assets/{routes-39cb7889.js → routes-012c9d6a.js} +6 -6
  18. package/dist/client/assets/{rpc-c1c125a2.js → rpc-115351a6.js} +1 -1
  19. package/dist/client/assets/{settings-6c9c579a.js → settings-cf21bbcf.js} +32 -16
  20. package/dist/client/assets/{splitpanes.es-00d9608c.js → splitpanes.es-3cb512fa.js} +3 -3
  21. package/dist/client/assets/{timeline-a7dd8994.js → timeline-d187c4c5.js} +6 -6
  22. package/dist/client/index.html +2 -2
  23. package/dist/index.cjs +12 -10
  24. package/dist/index.mjs +9 -7
  25. package/package.json +1 -1
  26. package/src/node/Container.vue +2 -2
@@ -1,5 +1,5 @@
1
- import { v as defineComponent, aa as useColorMode, $ as ref, a0 as computed, ab as reactive, ac as useElementBounding, A as onMounted, n as nextTick, ad as watchEffect, B as onUnmounted, o as openBlock, e as createElementBlock, u as createVNode, z as unref } from './index-03df0916.js';
2
- import { i as inspectClientUrl } from './rpc-c1c125a2.js';
1
+ import { v as defineComponent, ab as useColorMode, a0 as ref, a1 as computed, ac as reactive, ad as useElementBounding, A as onMounted, n as nextTick, ae as watchEffect, B as onUnmounted, o as openBlock, e as createElementBlock, u as createVNode, z as unref } from './index-89bcc57b.js';
2
+ import { i as inspectClientUrl } from './rpc-115351a6.js';
3
3
 
4
4
  const iframeCacheMap = /* @__PURE__ */ new Map();
5
5
  const _sfc_main$1 = /* @__PURE__ */ defineComponent({
@@ -1,9 +1,9 @@
1
- import { _ as __unplugin_components_0$1 } from './VPanelGrids-eb4fe74d.js';
2
- import { $ as ref, a0 as computed, a7 as routes, v as defineComponent, o as openBlock, c as createBlock, h as withCtx, x as createBaseVNode, u as createVNode, y as toDisplayString, z as unref, a8 as vueVersion, Q as createTextVNode, e as createElementBlock, F as Fragment, a9 as __unplugin_components_0, Z as __unplugin_components_1, r as resolveComponent, _ as _sfc_main$1 } from './index-03df0916.js';
3
- import { r as rpc } from './rpc-c1c125a2.js';
4
- import { i as isMacOS } from './index-e9e51318.js';
1
+ import { _ as __unplugin_components_0$1 } from './VPanelGrids-155c3f49.js';
2
+ import { a0 as ref, a1 as computed, a8 as routes, v as defineComponent, o as openBlock, c as createBlock, h as withCtx, x as createBaseVNode, u as createVNode, y as toDisplayString, z as unref, a9 as vueVersion, Q as createTextVNode, e as createElementBlock, F as Fragment, aa as __unplugin_components_0, $ as __unplugin_components_1, r as resolveComponent, S as _sfc_main$1 } from './index-89bcc57b.js';
3
+ import { r as rpc } from './rpc-115351a6.js';
4
+ import { i as isMacOS } from './index-21cc52d6.js';
5
5
 
6
- const version = "0.0.5";
6
+ const version = "0.0.7";
7
7
 
8
8
  /* Injected with object hook! */
9
9
 
@@ -1,7 +1,7 @@
1
- import { _ as _sfc_main$3, a as __unplugin_components_3 } from './VTextInput.vue_vue_type_script_setup_true_lang-14bfbfbb.js';
2
- import { v as defineComponent, $ as ref, a0 as computed, r as resolveComponent, z as unref, o as openBlock, e as createElementBlock, x as createBaseVNode, y as toDisplayString, c as createBlock, h as withCtx, a5 as withModifiers, F as Fragment, i as renderList, g as createCommentVNode, u as createVNode, Q as createTextVNode, q as normalizeClass, _ as _sfc_main$4, Z as __unplugin_components_1, A as onMounted, a6 as currentRoute, U as router, M as isRef, O as withKeys, a7 as routes } from './index-03df0916.js';
3
- import './VIconTitle.vue_vue_type_script_setup_true_lang-ec1b3b7a.js';
4
- import './VIcon.vue_vue_type_script_setup_true_lang-b9e1052c.js';
1
+ import { _ as _sfc_main$3, a as __unplugin_components_3 } from './VTextInput.vue_vue_type_script_setup_true_lang-a7aeaac7.js';
2
+ import { v as defineComponent, a0 as ref, a1 as computed, r as resolveComponent, z as unref, o as openBlock, e as createElementBlock, x as createBaseVNode, y as toDisplayString, c as createBlock, h as withCtx, a6 as withModifiers, F as Fragment, i as renderList, g as createCommentVNode, u as createVNode, Q as createTextVNode, q as normalizeClass, S as _sfc_main$4, $ as __unplugin_components_1, A as onMounted, a7 as currentRoute, V as router, M as isRef, O as withKeys, a8 as routes } from './index-89bcc57b.js';
3
+ import './VIconTitle.vue_vue_type_script_setup_true_lang-e52820ad.js';
4
+ import './VIcon.vue_vue_type_script_setup_true_lang-60e8343f.js';
5
5
 
6
6
  const _hoisted_1$2 = {
7
7
  block: "",
@@ -1,7 +1,7 @@
1
- import { g, M, _ as _sfc_main$1 } from './splitpanes.es-00d9608c.js';
2
- import { v as defineComponent, $ as ref, a0 as computed, a1 as piniaStoresCategory, a2 as toRaw, a3 as piniaState, a4 as piniaGetters, z as unref, o as openBlock, e as createElementBlock, u as createVNode, h as withCtx, x as createBaseVNode, F as Fragment, i as renderList, q as normalizeClass, y as toDisplayString, c as createBlock } from './index-03df0916.js';
3
- import { p as pick } from './index-e9e51318.js';
4
- import './VIcon.vue_vue_type_script_setup_true_lang-b9e1052c.js';
1
+ import { g, M, _ as _sfc_main$1 } from './splitpanes.es-3cb512fa.js';
2
+ import { v as defineComponent, a0 as ref, a1 as computed, a2 as piniaStoresCategory, a3 as toRaw, a4 as piniaState, a5 as piniaGetters, z as unref, o as openBlock, e as createElementBlock, u as createVNode, h as withCtx, x as createBaseVNode, F as Fragment, i as renderList, q as normalizeClass, y as toDisplayString, c as createBlock } from './index-89bcc57b.js';
3
+ import { p as pick } from './index-21cc52d6.js';
4
+ import './VIcon.vue_vue_type_script_setup_true_lang-60e8343f.js';
5
5
 
6
6
  const _hoisted_1 = {
7
7
  "h-screen": "",
@@ -1,9 +1,9 @@
1
- import { _ as __unplugin_components_0 } from './VPanelGrids-eb4fe74d.js';
2
- import { _ as __unplugin_components_7 } from './VCard-8dda4b89.js';
3
- import { v as defineComponent, z as unref, U as router, o as openBlock, e as createElementBlock, u as createVNode, h as withCtx, x as createBaseVNode, F as Fragment, i as renderList, V as routeRecordMatcherState, W as activeRouteRecordMatcherState, c as createBlock, T as _sfc_main$2, q as normalizeClass, X as activeRouteRecordIndex, Y as toggleRouteRecordMatcher, Q as createTextVNode, y as toDisplayString, l as normalizeStyle, g as createCommentVNode, Z as __unplugin_components_1 } from './index-03df0916.js';
4
- import { g, M, _ as _sfc_main$1 } from './splitpanes.es-00d9608c.js';
5
- import './VIcon.vue_vue_type_script_setup_true_lang-b9e1052c.js';
6
- import './index-e9e51318.js';
1
+ import { _ as __unplugin_components_0 } from './VPanelGrids-155c3f49.js';
2
+ import { _ as __unplugin_components_7 } from './VCard-415c7ae5.js';
3
+ import { v as defineComponent, z as unref, V as router, o as openBlock, e as createElementBlock, u as createVNode, h as withCtx, x as createBaseVNode, F as Fragment, i as renderList, W as routeRecordMatcherState, X as activeRouteRecordMatcherState, c as createBlock, U as _sfc_main$2, q as normalizeClass, Y as activeRouteRecordIndex, Z as toggleRouteRecordMatcher, Q as createTextVNode, y as toDisplayString, l as normalizeStyle, g as createCommentVNode, $ as __unplugin_components_1 } from './index-89bcc57b.js';
4
+ import { g, M, _ as _sfc_main$1 } from './splitpanes.es-3cb512fa.js';
5
+ import './VIcon.vue_vue_type_script_setup_true_lang-60e8343f.js';
6
+ import './index-21cc52d6.js';
7
7
 
8
8
  const _hoisted_1 = {
9
9
  key: 0,
@@ -1,4 +1,4 @@
1
- import { aG as __vitePreload } from './index-03df0916.js';
1
+ import { ay as __vitePreload } from './index-89bcc57b.js';
2
2
 
3
3
  const DEFAULT_TIMEOUT = 6e4;
4
4
  function defaultSerialize(i) {
@@ -1,6 +1,6 @@
1
- import { _ as _sfc_main$3 } from './VIcon.vue_vue_type_script_setup_true_lang-b9e1052c.js';
2
- import { v as defineComponent, K as useVModel, o as openBlock, e as createElementBlock, f as renderSlot, d as withDirectives, L as vModelSelect, z as unref, x as createBaseVNode, y as toDisplayString, g as createCommentVNode, M as isRef, c as createBlock, N as vModelCheckbox, O as withKeys, P as useCategorizedTabs, u as createVNode, F as Fragment, i as renderList, h as withCtx, Q as createTextVNode, R as useDevToolsSettings, _ as _sfc_main$5, S as _sfc_main$6, q as normalizeClass, T as _sfc_main$7 } from './index-03df0916.js';
3
- import { _ as _sfc_main$4 } from './VIconTitle.vue_vue_type_script_setup_true_lang-ec1b3b7a.js';
1
+ import { _ as _sfc_main$3 } from './VIcon.vue_vue_type_script_setup_true_lang-60e8343f.js';
2
+ import { v as defineComponent, K as useVModel, o as openBlock, e as createElementBlock, f as renderSlot, d as withDirectives, L as vModelSelect, z as unref, x as createBaseVNode, y as toDisplayString, g as createCommentVNode, M as isRef, c as createBlock, N as vModelCheckbox, O as withKeys, P as useCategorizedTabs, u as createVNode, F as Fragment, i as renderList, h as withCtx, Q as createTextVNode, R as useDevToolsSettings, _ as _sfc_main$5, S as _sfc_main$6, T as _sfc_main$7, q as normalizeClass, U as _sfc_main$8 } from './index-89bcc57b.js';
3
+ import { _ as _sfc_main$4 } from './VIconTitle.vue_vue_type_script_setup_true_lang-e52820ad.js';
4
4
 
5
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
6
  const _hoisted_2$2 = ["disabled"];
@@ -128,21 +128,30 @@ const _hoisted_8 = {
128
128
  const _hoisted_9 = /* @__PURE__ */ createBaseVNode("h3", {
129
129
  mb1: "",
130
130
  "text-lg": ""
131
+ }, " Position ", -1);
132
+ const _hoisted_10 = {
133
+ py3: "",
134
+ flex: "~ col gap-1",
135
+ border: "b base"
136
+ };
137
+ const _hoisted_11 = /* @__PURE__ */ createBaseVNode("h3", {
138
+ mb1: "",
139
+ "text-lg": ""
131
140
  }, " Appearance ", -1);
132
- const _hoisted_10 = /* @__PURE__ */ createBaseVNode("div", {
141
+ const _hoisted_12 = /* @__PURE__ */ createBaseVNode("div", {
133
142
  "carbon-sun": "",
134
- "translate-y--1px": "",
135
- "dark:carbon-moon": ""
143
+ "dark:carbon-moon": "",
144
+ "translate-y--1px": ""
136
145
  }, null, -1);
137
- const _hoisted_11 = {
146
+ const _hoisted_13 = {
138
147
  py3: "",
139
148
  flex: "~ col gap-1"
140
149
  };
141
- const _hoisted_12 = /* @__PURE__ */ createBaseVNode("h3", {
150
+ const _hoisted_14 = /* @__PURE__ */ createBaseVNode("h3", {
142
151
  mb1: "",
143
152
  "text-lg": ""
144
153
  }, " UI Scale ", -1);
145
- const _hoisted_13 = ["value"];
154
+ const _hoisted_15 = ["value"];
146
155
  const _sfc_main = /* @__PURE__ */ defineComponent({
147
156
  __name: "settings",
148
157
  setup(__props) {
@@ -174,9 +183,10 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
174
183
  return (_ctx, _cache) => {
175
184
  const _component_VIconTitle = _sfc_main$4;
176
185
  const _component_VSwitch = _sfc_main$1;
177
- const _component_TabIcon = _sfc_main$7;
178
- const _component_VButton = _sfc_main$5;
179
- const _component_VDarkToggle = _sfc_main$6;
186
+ const _component_TabIcon = _sfc_main$8;
187
+ const _component_VPanelPosition = _sfc_main$5;
188
+ const _component_VButton = _sfc_main$6;
189
+ const _component_VDarkToggle = _sfc_main$7;
180
190
  const _component_VSelect = _sfc_main$2;
181
191
  return openBlock(), createElementBlock("div", _hoisted_1, [
182
192
  createVNode(_component_VIconTitle, {
@@ -248,6 +258,12 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
248
258
  createBaseVNode("div", null, [
249
259
  createBaseVNode("div", _hoisted_8, [
250
260
  _hoisted_9,
261
+ createBaseVNode("div", null, [
262
+ createVNode(_component_VPanelPosition)
263
+ ])
264
+ ]),
265
+ createBaseVNode("div", _hoisted_10, [
266
+ _hoisted_11,
251
267
  createBaseVNode("div", null, [
252
268
  createVNode(_component_VDarkToggle, null, {
253
269
  default: withCtx(({ toggle, isDark }) => [
@@ -256,7 +272,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
256
272
  onClick: ($event) => toggle()
257
273
  }, {
258
274
  default: withCtx(() => [
259
- _hoisted_10,
275
+ _hoisted_12,
260
276
  createTextVNode(" " + toDisplayString(isDark.value ? "Dark" : "Light"), 1)
261
277
  ]),
262
278
  _: 2
@@ -266,8 +282,8 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
266
282
  })
267
283
  ])
268
284
  ]),
269
- createBaseVNode("div", _hoisted_11, [
270
- _hoisted_12,
285
+ createBaseVNode("div", _hoisted_13, [
286
+ _hoisted_14,
271
287
  createVNode(_component_VSelect, {
272
288
  modelValue: unref(scale),
273
289
  "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => isRef(scale) ? scale.value = $event : null),
@@ -278,7 +294,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
278
294
  return createBaseVNode("option", {
279
295
  key: i[0],
280
296
  value: i[1]
281
- }, toDisplayString(i[0]), 9, _hoisted_13);
297
+ }, toDisplayString(i[0]), 9, _hoisted_15);
282
298
  }), 64))
283
299
  ]),
284
300
  _: 1
@@ -1,6 +1,6 @@
1
- import { _ as _sfc_main$3 } from './VIcon.vue_vue_type_script_setup_true_lang-b9e1052c.js';
2
- import { v as defineComponent, o as openBlock, c as createBlock, q as normalizeClass, M as isRef, a2 as toRaw, a0 as computed, r as resolveComponent, e as createElementBlock, i as renderList, z as unref, au as nanoid, x as createBaseVNode, y as toDisplayString, g as createCommentVNode, F as Fragment, $ as ref, u as createVNode, d as withDirectives, av as vShow, aw as h, f as renderSlot, l as normalizeStyle } from './index-03df0916.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-e9e51318.js';
1
+ import { _ as _sfc_main$3 } from './VIcon.vue_vue_type_script_setup_true_lang-60e8343f.js';
2
+ import { v as defineComponent, o as openBlock, c as createBlock, q as normalizeClass, M as isRef, a3 as toRaw, a1 as computed, r as resolveComponent, e as createElementBlock, i as renderList, z as unref, am as nanoid, x as createBaseVNode, y as toDisplayString, g as createCommentVNode, F as Fragment, a0 as ref, u as createVNode, d as withDirectives, an as vShow, ao as h, f as renderSlot, l as normalizeStyle } from './index-89bcc57b.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-21cc52d6.js';
4
4
 
5
5
  const _sfc_main$2 = /* @__PURE__ */ defineComponent({
6
6
  __name: "VExpandIcon",
@@ -1,9 +1,9 @@
1
- import { g, M, _ as _sfc_main$2 } from './splitpanes.es-00d9608c.js';
2
- import { _ as __unplugin_components_0 } from './VPanelGrids-eb4fe74d.js';
3
- import { _ as __unplugin_components_7 } from './VCard-8dda4b89.js';
4
- 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, A as onMounted, B as onUnmounted, C as timelineLayer, D as activeTimelineEvents, E as activeTimelineEventIndex, G as toggleTimelineEventIndex, H as timelineEventDetails, I as activeLayerId, J as toggleTimelineLayer } from './index-03df0916.js';
5
- import './VIcon.vue_vue_type_script_setup_true_lang-b9e1052c.js';
6
- import './index-e9e51318.js';
1
+ import { g, M, _ as _sfc_main$2 } from './splitpanes.es-3cb512fa.js';
2
+ import { _ as __unplugin_components_0 } from './VPanelGrids-155c3f49.js';
3
+ import { _ as __unplugin_components_7 } from './VCard-415c7ae5.js';
4
+ 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, A as onMounted, B as onUnmounted, C as timelineLayer, D as activeTimelineEvents, E as activeTimelineEventIndex, G as toggleTimelineEventIndex, H as timelineEventDetails, I as activeLayerId, J as toggleTimelineLayer } from './index-89bcc57b.js';
5
+ import './VIcon.vue_vue_type_script_setup_true_lang-60e8343f.js';
6
+ import './index-21cc52d6.js';
7
7
 
8
8
  var commonjsGlobal = typeof globalThis !== 'undefined' ? globalThis : typeof window !== 'undefined' ? window : typeof global !== 'undefined' ? global : typeof self !== 'undefined' ? self : {};
9
9
 
@@ -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-03df0916.js"></script>
9
- <link rel="stylesheet" href="./assets/index-fceca701.css">
8
+ <script type="module" crossorigin src="./assets/index-89bcc57b.js"></script>
9
+ <link rel="stylesheet" href="./assets/index-62a10721.css">
10
10
  </head>
11
11
  <body>
12
12
  <div id="app"></div>
package/dist/index.cjs CHANGED
@@ -1,7 +1,7 @@
1
1
  'use strict';
2
2
 
3
3
  const node_url = require('node:url');
4
- const path$a = require('node:path');
4
+ const p = require('node:path');
5
5
  const vite = require('vite');
6
6
  const sirv = require('sirv');
7
7
  const Inspect = require('vite-plugin-inspect');
@@ -16,7 +16,7 @@ const require$$0$3 = require('fs');
16
16
 
17
17
  function _interopDefaultCompat (e) { return e && typeof e === 'object' && 'default' in e ? e.default : e; }
18
18
 
19
- const path__default = /*#__PURE__*/_interopDefaultCompat(path$a);
19
+ const p__default = /*#__PURE__*/_interopDefaultCompat(p);
20
20
  const sirv__default = /*#__PURE__*/_interopDefaultCompat(sirv);
21
21
  const Inspect__default = /*#__PURE__*/_interopDefaultCompat(Inspect);
22
22
  const VueInspector__default = /*#__PURE__*/_interopDefaultCompat(VueInspector);
@@ -192,8 +192,8 @@ function createRPCServer(name, ws, functions) {
192
192
  return group.broadcast;
193
193
  }
194
194
 
195
- const DIR_DIST = typeof __dirname !== "undefined" ? __dirname : path$a.dirname(node_url.fileURLToPath((typeof document === 'undefined' ? require('u' + 'rl').pathToFileURL(__filename).href : (document.currentScript && document.currentScript.src || new URL('index.cjs', document.baseURI).href))));
196
- const DIR_CLIENT = path$a.resolve(DIR_DIST, "../dist/client");
195
+ const DIR_DIST = typeof __dirname !== "undefined" ? __dirname : p.dirname(node_url.fileURLToPath((typeof document === 'undefined' ? require('u' + 'rl').pathToFileURL(__filename).href : (document.currentScript && document.currentScript.src || new URL('index.cjs', document.baseURI).href))));
196
+ const DIR_CLIENT = p.resolve(DIR_DIST, "../dist/client");
197
197
 
198
198
  async function getComponentsRelationships(rpc) {
199
199
  const list = await rpc.list();
@@ -7634,13 +7634,13 @@ function guessType(path) {
7634
7634
  return "other";
7635
7635
  }
7636
7636
  async function getStaticAssets(config) {
7637
- const dir = resolve(config.root, config.publicDir);
7637
+ const dir = resolve(config.root);
7638
7638
  const baseURL = config.base;
7639
7639
  const files = await fg([
7640
7640
  // image
7641
7641
  "**/*.(png|jpe?g|gif|svg|webp|avif|ico|bmp|tiff)",
7642
7642
  // video
7643
- "**/*.(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)",
7643
+ "**/*.(mp4|webm|ogv|mov|avi|flv|wmv|mpg|mpeg|mkv|3gp|3g2|m2ts|vob|ogm|ogx|rm|rmvb|asf|amv|divx|m4v|svi|viv|f4v|f4p|f4a|f4b)",
7644
7644
  // audio
7645
7645
  "**/*.(mp3|wav|ogg|flac|aac|wma|alac|ape|ac3|dts|tta|opus|amr|aiff|au|mid|midi|ra|rm|wv|weba|dss|spx|vox|tak|dsf|dff|dsd|cda)",
7646
7646
  // font
@@ -7650,15 +7650,17 @@ async function getStaticAssets(config) {
7650
7650
  ], {
7651
7651
  cwd: dir,
7652
7652
  onlyFiles: true,
7653
- ignore: ["**/node_modules/**"]
7653
+ ignore: ["**/node_modules/**", "**/dist/**"]
7654
7654
  });
7655
7655
  return await Promise.all(files.map(async (path) => {
7656
7656
  const filePath = resolve(dir, path);
7657
7657
  const stat = await fs__default.lstat(filePath);
7658
+ const publicDirname = p__default.relative(config.root, config.publicDir);
7659
+ const normalizedPath = publicDirname === p__default.basename(p__default.dirname(path)) ? path.replace(publicDirname, "") : path;
7658
7660
  return {
7659
- path,
7661
+ path: normalizedPath,
7660
7662
  filePath,
7661
- publicPath: join(baseURL, path),
7663
+ publicPath: join(baseURL, normalizedPath),
7662
7664
  type: guessType(path),
7663
7665
  size: stat.size,
7664
7666
  mtime: stat.mtimeMs
@@ -7690,7 +7692,7 @@ async function getTextAssetContent(filepath, limit = 300) {
7690
7692
 
7691
7693
  const NAME = "vite-plugin-vue-devtools";
7692
7694
  function getVueDevtoolsPath() {
7693
- const pluginPath = vite.normalizePath(path__default.dirname(node_url.fileURLToPath((typeof document === 'undefined' ? require('u' + 'rl').pathToFileURL(__filename).href : (document.currentScript && document.currentScript.src || new URL('index.cjs', document.baseURI).href)))));
7695
+ const pluginPath = vite.normalizePath(p__default.dirname(node_url.fileURLToPath((typeof document === 'undefined' ? require('u' + 'rl').pathToFileURL(__filename).href : (document.currentScript && document.currentScript.src || new URL('index.cjs', document.baseURI).href)))));
7694
7696
  return pluginPath.replace(/\/dist$/, "//src/node");
7695
7697
  }
7696
7698
  function PluginVueDevtools() {
package/dist/index.mjs CHANGED
@@ -1,5 +1,5 @@
1
1
  import { fileURLToPath } from 'node:url';
2
- import path$a, { dirname, resolve as resolve$1 } from 'node:path';
2
+ import p, { dirname, resolve as resolve$1 } from 'node:path';
3
3
  import { normalizePath } from 'vite';
4
4
  import sirv from 'sirv';
5
5
  import Inspect from 'vite-plugin-inspect';
@@ -7618,13 +7618,13 @@ function guessType(path) {
7618
7618
  return "other";
7619
7619
  }
7620
7620
  async function getStaticAssets(config) {
7621
- const dir = resolve(config.root, config.publicDir);
7621
+ const dir = resolve(config.root);
7622
7622
  const baseURL = config.base;
7623
7623
  const files = await fg([
7624
7624
  // image
7625
7625
  "**/*.(png|jpe?g|gif|svg|webp|avif|ico|bmp|tiff)",
7626
7626
  // video
7627
- "**/*.(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)",
7627
+ "**/*.(mp4|webm|ogv|mov|avi|flv|wmv|mpg|mpeg|mkv|3gp|3g2|m2ts|vob|ogm|ogx|rm|rmvb|asf|amv|divx|m4v|svi|viv|f4v|f4p|f4a|f4b)",
7628
7628
  // audio
7629
7629
  "**/*.(mp3|wav|ogg|flac|aac|wma|alac|ape|ac3|dts|tta|opus|amr|aiff|au|mid|midi|ra|rm|wv|weba|dss|spx|vox|tak|dsf|dff|dsd|cda)",
7630
7630
  // font
@@ -7634,15 +7634,17 @@ async function getStaticAssets(config) {
7634
7634
  ], {
7635
7635
  cwd: dir,
7636
7636
  onlyFiles: true,
7637
- ignore: ["**/node_modules/**"]
7637
+ ignore: ["**/node_modules/**", "**/dist/**"]
7638
7638
  });
7639
7639
  return await Promise.all(files.map(async (path) => {
7640
7640
  const filePath = resolve(dir, path);
7641
7641
  const stat = await fs$8.lstat(filePath);
7642
+ const publicDirname = p.relative(config.root, config.publicDir);
7643
+ const normalizedPath = publicDirname === p.basename(p.dirname(path)) ? path.replace(publicDirname, "") : path;
7642
7644
  return {
7643
- path,
7645
+ path: normalizedPath,
7644
7646
  filePath,
7645
- publicPath: join(baseURL, path),
7647
+ publicPath: join(baseURL, normalizedPath),
7646
7648
  type: guessType(path),
7647
7649
  size: stat.size,
7648
7650
  mtime: stat.mtimeMs
@@ -7674,7 +7676,7 @@ async function getTextAssetContent(filepath, limit = 300) {
7674
7676
 
7675
7677
  const NAME = "vite-plugin-vue-devtools";
7676
7678
  function getVueDevtoolsPath() {
7677
- const pluginPath = normalizePath(path$a.dirname(fileURLToPath(import.meta.url)));
7679
+ const pluginPath = normalizePath(p.dirname(fileURLToPath(import.meta.url)));
7678
7680
  return pluginPath.replace(/\/dist$/, "//src/node");
7679
7681
  }
7680
7682
  function PluginVueDevtools() {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "vite-plugin-vue-devtools",
3
- "version": "0.0.5",
3
+ "version": "0.0.7",
4
4
  "packageManager": "pnpm@8.4.0",
5
5
  "description": "A vite plugin for Vue Devtools",
6
6
  "author": "webfansplz",
@@ -47,8 +47,8 @@ const panelStyle = computed(() => {
47
47
  bottom: `${PANEL_PADDING}px`,
48
48
  left: '50%',
49
49
  transform: 'translateX(-50%)',
50
- height,
51
- width,
50
+ height: '80px',
51
+ width: '400px',
52
52
  }
53
53
  }
54
54