vite-plugin-vue-devtools 1.0.0-alpha.2 → 1.0.0-beta.0
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 +29 -11
- package/README.zh-CN.md +185 -0
- package/dist/client/assets/{Icon.vue_vue_type_script_setup_true_lang-9344440e.js → Icon.vue_vue_type_script_setup_true_lang-38720372.js} +1 -1
- package/dist/client/assets/{IconButton.vue_vue_type_script_setup_true_lang-f308a32e.js → IconButton.vue_vue_type_script_setup_true_lang-3d53773c.js} +2 -2
- package/dist/client/assets/{IconTitle.vue_vue_type_script_setup_true_lang-4cf300a8.js → IconTitle.vue_vue_type_script_setup_true_lang-968221a7.js} +1 -1
- package/dist/client/assets/{IframeView.vue_vue_type_script_setup_true_lang-a998c802.js → IframeView.vue_vue_type_script_setup_true_lang-1f94d0bf.js} +1 -1
- package/dist/client/assets/{PanelGrids-bf67e36d.js → PanelGrids-e26dc60c.js} +1 -1
- package/dist/client/assets/{SectionBlock-30cd0db7.js → SectionBlock-667aa26c.js} +3 -3
- package/dist/client/assets/{StateFields.vue_vue_type_script_setup_true_lang-f232f911.js → StateFields.vue_vue_type_script_setup_true_lang-0dc54647.js} +4 -4
- package/dist/client/assets/{Switch.vue_vue_type_script_setup_true_lang-ff441d43.js → Switch.vue_vue_type_script_setup_true_lang-cfc899d5.js} +2 -2
- package/dist/client/assets/{TextInput.vue_vue_type_script_setup_true_lang-49fa3d66.js → TextInput.vue_vue_type_script_setup_true_lang-70f3e7d2.js} +2 -2
- package/dist/client/assets/{__eyedropper-04974bae.js → __eyedropper-f3285f90.js} +3 -3
- package/dist/client/assets/{assets-103b7b87.js → assets-64b2ffca.js} +16 -20
- package/dist/client/assets/{component-docs-c0980d29.js → component-docs-1355cb40.js} +4 -4
- package/dist/client/assets/{components-4ea0f479.js → components-cecf8f86.js} +8 -400
- package/dist/client/assets/data-0c1c61ff.js +396 -0
- package/dist/client/assets/dayjs.min-93c9346c.js +13 -0
- package/dist/client/assets/{documentations-81489cc3.js → documentations-6b999162.js} +2 -2
- package/dist/client/assets/{graph-3ab96556.js → graph-0b56328e.js} +81 -46
- package/dist/client/assets/index-5bcfd23e.js +70738 -0
- package/dist/client/assets/{index-cc695468.js → index-7ef2f30b.js} +1 -1
- package/dist/client/assets/{index-d3dcbe9e.css → index-b16c49d4.css} +2 -1
- package/dist/client/assets/{inspect-a4a1ccce.js → inspect-ad782456.js} +2 -2
- package/dist/client/assets/{npm-d82cc33a.js → npm-9609cf07.js} +5 -6
- package/dist/client/assets/{overview-62088e28.js → overview-609f4827.js} +4 -4
- package/dist/client/assets/{pages-b69a68f5.js → pages-2b0994fe.js} +5 -5
- package/dist/client/assets/{pinia-f806031f.js → pinia-924058d4.js} +6 -6
- package/dist/client/assets/rerender-trace-6c5229c1.css +14 -0
- package/dist/client/assets/rerender-trace-7eea1e61.js +369 -0
- package/dist/client/assets/{routes-06a1de65.js → routes-fbe5ad5a.js} +7 -7
- package/dist/client/assets/{settings-a01dd288.js → settings-b014e3df.js} +6 -7
- package/dist/client/assets/{splitpanes.es-87d8571e.js → splitpanes.es-5dbf052f.js} +1 -1
- package/dist/client/assets/{timeline-4af72c7c.js → timeline-486f65de.js} +8 -18
- package/dist/client/index.html +2 -2
- package/dist/vite.cjs +18 -7
- package/dist/vite.d.ts +10 -0
- package/dist/vite.mjs +19 -8
- package/package.json +2 -2
- package/src/views/composables.ts +2 -3
- package/dist/client/assets/_commonjsHelpers-65004790.js +0 -37
- package/dist/client/assets/index-773a455a.js +0 -18422
package/src/views/composables.ts
CHANGED
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { computed, onMounted, reactive, ref, shallowRef, watchEffect } from 'vue'
|
|
2
2
|
import type { CSSProperties, Ref } from 'vue'
|
|
3
|
-
import type { OpenInEditorFn } from '../../types'
|
|
4
3
|
import { clamp, useObjectStorage, useScreenSafeArea, useWindowEventListener, warn } from './utils'
|
|
5
4
|
|
|
6
5
|
interface DevToolsFrameState {
|
|
@@ -62,7 +61,7 @@ export function useIframe(clientUrl: string, onLoad: () => void) {
|
|
|
62
61
|
}
|
|
63
62
|
|
|
64
63
|
// ---- useInspector ----
|
|
65
|
-
type OpenInEditorFnFromPlugin = (baseUrl: string, filePath: string, line?: number, column?: number) =>
|
|
64
|
+
type OpenInEditorFnFromPlugin = (baseUrl: string, filePath: string, line?: number, column?: number) => void
|
|
66
65
|
|
|
67
66
|
export function useInspector() {
|
|
68
67
|
const inspectorEnabled = ref(false)
|
|
@@ -78,7 +77,7 @@ export function useInspector() {
|
|
|
78
77
|
inspectorEnabled.value = false
|
|
79
78
|
}
|
|
80
79
|
|
|
81
|
-
const openInEditor = ref<
|
|
80
|
+
const openInEditor = ref< (filePath: string, line?: number, column?: number) => void>()
|
|
82
81
|
|
|
83
82
|
const getBaseUrl = () => {
|
|
84
83
|
const { protocol, hostname, port } = window.location
|
|
@@ -1,37 +0,0 @@
|
|
|
1
|
-
var commonjsGlobal = typeof globalThis !== 'undefined' ? globalThis : typeof window !== 'undefined' ? window : typeof global !== 'undefined' ? global : typeof self !== 'undefined' ? self : {};
|
|
2
|
-
|
|
3
|
-
function getDefaultExportFromCjs (x) {
|
|
4
|
-
return x && x.__esModule && Object.prototype.hasOwnProperty.call(x, 'default') ? x['default'] : x;
|
|
5
|
-
}
|
|
6
|
-
|
|
7
|
-
function getAugmentedNamespace(n) {
|
|
8
|
-
if (n.__esModule) return n;
|
|
9
|
-
var f = n.default;
|
|
10
|
-
if (typeof f == "function") {
|
|
11
|
-
var a = function a () {
|
|
12
|
-
if (this instanceof a) {
|
|
13
|
-
var args = [null];
|
|
14
|
-
args.push.apply(args, arguments);
|
|
15
|
-
var Ctor = Function.bind.apply(f, args);
|
|
16
|
-
return new Ctor();
|
|
17
|
-
}
|
|
18
|
-
return f.apply(this, arguments);
|
|
19
|
-
};
|
|
20
|
-
a.prototype = f.prototype;
|
|
21
|
-
} else a = {};
|
|
22
|
-
Object.defineProperty(a, '__esModule', {value: true});
|
|
23
|
-
Object.keys(n).forEach(function (k) {
|
|
24
|
-
var d = Object.getOwnPropertyDescriptor(n, k);
|
|
25
|
-
Object.defineProperty(a, k, d.get ? d : {
|
|
26
|
-
enumerable: true,
|
|
27
|
-
get: function () {
|
|
28
|
-
return n[k];
|
|
29
|
-
}
|
|
30
|
-
});
|
|
31
|
-
});
|
|
32
|
-
return a;
|
|
33
|
-
}
|
|
34
|
-
|
|
35
|
-
/* Injected with object hook! */
|
|
36
|
-
|
|
37
|
-
export { getAugmentedNamespace as a, commonjsGlobal as c, getDefaultExportFromCjs as g };
|