@nuxt/devtools 1.0.7 → 1.1.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/dist/chunks/module-main.mjs +53 -34
- package/dist/chunks/vite-inspect.mjs +1 -1
- package/dist/chunks/vscode.mjs +1 -1
- package/dist/chunks/vue-devtools.mjs +30 -0
- package/dist/client/200.html +35 -35
- package/dist/client/404.html +35 -35
- package/dist/client/_nuxt/3oGDMuFq.js +1 -0
- package/dist/client/_nuxt/6jtm0BF9.js +1 -0
- package/dist/client/_nuxt/7hiTR5PB.js +1 -0
- package/dist/client/_nuxt/A1WiD9SJ.js +1 -0
- package/dist/client/_nuxt/B5zbF1Ns.js +1 -0
- package/dist/client/_nuxt/{error.2PxdKqsT.js → B6I8sub5.js} +1 -1
- package/dist/client/_nuxt/BC8B3cgI.js +1 -0
- package/dist/client/_nuxt/BEahU4zN.js +1 -0
- package/dist/client/_nuxt/BF8Kd9Mz.js +1 -0
- package/dist/client/_nuxt/BGDH87KL.js +1 -0
- package/dist/client/_nuxt/{modules.z6wgZaun.js → BH7H7KuD.js} +2 -2
- package/dist/client/_nuxt/BSuPiGtT.js +1 -0
- package/dist/client/_nuxt/BUvXV4QM.js +1 -0
- package/dist/client/_nuxt/BV6PKaGl.js +1 -0
- package/dist/client/_nuxt/BVD70z6r.js +1 -0
- package/dist/client/_nuxt/BVYGtwfP.js +982 -0
- package/dist/client/_nuxt/BVYSsK7b.js +1 -0
- package/dist/client/_nuxt/{components.cp8uehQU.js → BVujVKxG.js} +1 -1
- package/dist/client/_nuxt/BajVyxOZ.js +16 -0
- package/dist/client/_nuxt/Bcl6uqaN.js +1 -0
- package/dist/client/_nuxt/BcogkuZh.js +1 -0
- package/dist/client/_nuxt/BkBsf4fV.js +1 -0
- package/dist/client/_nuxt/Blr6EMNg.js +16 -0
- package/dist/client/_nuxt/BrmerHXk.js +105 -0
- package/dist/client/_nuxt/{open-graph.ovVmSUH6.js → BrtgKGBY.js} +2 -2
- package/dist/client/_nuxt/C5gCGmDW.js +200 -0
- package/dist/client/_nuxt/CBSPSh67.js +1 -0
- package/dist/client/_nuxt/{terminals.XRY8ruVV.js → CDDcSnPK.js} +1 -1
- package/dist/client/_nuxt/CFm3KZee.js +1 -0
- package/dist/client/_nuxt/CIkrQBKj.js +48 -0
- package/dist/client/_nuxt/CJ5q8Tg7.js +1 -0
- package/dist/client/_nuxt/CTFc8btY.js +1 -0
- package/dist/client/_nuxt/CbViG2Xw.js +74 -0
- package/dist/client/_nuxt/{css.a-KJtBLB.js → CbYhyuC0.js} +347 -347
- package/dist/client/_nuxt/CblUgwwa.js +1 -0
- package/dist/client/_nuxt/{vue.c6DnC5ch.js → Cd6DbZRp.js} +1518 -1518
- package/dist/client/_nuxt/CdS8XaBJ.js +1 -0
- package/dist/client/_nuxt/Ci1dPZGg.js +1 -0
- package/dist/client/_nuxt/Cjc4f2ev.js +1 -0
- package/dist/client/_nuxt/CkT2yc6U.js +1 -0
- package/dist/client/_nuxt/Coo6pmwX.js +1 -0
- package/dist/client/_nuxt/{onig.mBJmD8D5.js → CsTmP73Z.js} +1 -1
- package/dist/client/_nuxt/CupVZNk8.js +25 -0
- package/dist/client/_nuxt/CzWzoIFD.js +1 -0
- package/dist/client/_nuxt/D2q6OHSI.js +1 -0
- package/dist/client/_nuxt/D7YqW8lP.js +1 -0
- package/dist/client/_nuxt/{typescript.b1Nw_bQe.js → DC8MraHL.js} +489 -489
- package/dist/client/_nuxt/DOpbjCYu.js +1 -0
- package/dist/client/_nuxt/DPQLghlB.js +1 -0
- package/dist/client/_nuxt/DSo8oaHs.js +1 -0
- package/dist/client/_nuxt/DV66A8GP.js +1 -0
- package/dist/client/_nuxt/DXVvxk8K.js +1 -0
- package/dist/client/_nuxt/Dc1Hsvcx.js +1 -0
- package/dist/client/_nuxt/{javascript.Of8SnKfU.js → Dch3xQiY.js} +509 -509
- package/dist/client/_nuxt/DfFJQbG4.js +8 -0
- package/dist/client/_nuxt/DggdVF2v.js +1 -0
- package/dist/client/_nuxt/DhaiECBd.js +1 -0
- package/dist/client/_nuxt/DjUutLiq.js +1 -0
- package/dist/client/_nuxt/DmbtNPqq.js +1 -0
- package/dist/client/_nuxt/DnNA5yXt.js +1 -0
- package/dist/client/_nuxt/Dt7Jhe5U.js +1 -0
- package/dist/client/_nuxt/Dw-ZU76y.js +2 -0
- package/dist/client/_nuxt/Dw1fJENz.js +1 -0
- package/dist/client/_nuxt/Dx8eINec.js +1 -0
- package/dist/client/_nuxt/DyLVKLu8.js +1 -0
- package/dist/client/_nuxt/Wx9V_rRD.js +1 -0
- package/dist/client/_nuxt/XUyCDlLU.js +1 -0
- package/dist/client/_nuxt/builds/latest.json +1 -1
- package/dist/client/_nuxt/builds/meta/34470db4-655e-46f1-a42f-a96f6eee9135.json +1 -0
- package/dist/client/_nuxt/entry.C4Fmc-BV.css +1 -0
- package/dist/client/_nuxt/k_A0nJhK.js +30 -0
- package/dist/client/_nuxt/pinia.BBoKCg80.css +1 -0
- package/dist/client/_nuxt/tdLlBApQ.js +9 -0
- package/dist/client/_nuxt/wFhhlbUq.js +1 -0
- package/dist/client/_nuxt/xLS-vzkA.js +1 -0
- package/dist/client/_nuxt/yRzYTuKL.js +2 -0
- package/dist/client/_nuxt/z_0T7nNf.js +1 -0
- package/dist/client/_nuxt/z_5JL1Zh.js +4 -0
- package/dist/client/index.html +35 -35
- package/dist/module.json +1 -1
- package/dist/module.mjs +1 -1
- package/dist/runtime/plugins/view/FrameBox.vue +26 -25
- package/dist/runtime/plugins/view/client.mjs +15 -24
- package/dist/runtime/vue-devtools/overlay.d.mts +1 -0
- package/dist/runtime/vue-devtools/overlay.mjs +6 -0
- package/dist/shared/{devtools.fc176ede.mjs → devtools.68e43ed6.mjs} +10 -0
- package/package.json +45 -41
- package/dist/client/_nuxt/CodeDiff.vue._dCq5f_z.js +0 -3
- package/dist/client/_nuxt/ComposableItem.vue.xjjgcokF.js +0 -1
- package/dist/client/_nuxt/DataSchemaButton.vue.xvehQ20c.js +0 -1
- package/dist/client/_nuxt/DataSchemaDrawer.IkoxYN9B.js +0 -1000
- package/dist/client/_nuxt/DurationDisplay.vue.EcbbfLCJ.js +0 -1
- package/dist/client/_nuxt/FilepathItem.vue.KRS5685n.js +0 -1
- package/dist/client/_nuxt/HelpFab.vue.K4yHYYQx.js +0 -1
- package/dist/client/_nuxt/LaunchPage.vue.TOWJvQ6t.js +0 -1
- package/dist/client/_nuxt/NBadge.IQAZmm2D.js +0 -1
- package/dist/client/_nuxt/NCheckbox.vue._sgKubGr.js +0 -1
- package/dist/client/_nuxt/NCodeBlock.vue.2w5Cy5b6.js +0 -2
- package/dist/client/_nuxt/NDrawer.vue.16o-RaPU.js +0 -1
- package/dist/client/_nuxt/NDropdown.vue.ZtGr97L2.js +0 -1
- package/dist/client/_nuxt/NIconTitle.vue.WxyT9iC2.js +0 -1
- package/dist/client/_nuxt/NLink.vue.R78P2sWn.js +0 -1
- package/dist/client/_nuxt/NMarkdown.vue.cV8rBrR_.js +0 -1
- package/dist/client/_nuxt/NNavbar.vue._6IXF0Xt.js +0 -1
- package/dist/client/_nuxt/NSectionBlock.o39x0IHF.js +0 -1
- package/dist/client/_nuxt/NSelect.vue.-sTE6wwQ.js +0 -1
- package/dist/client/_nuxt/NSelectTabs.vue.fSn-iFey.js +0 -1
- package/dist/client/_nuxt/NSwitch.vue.hSNKFLMl.js +0 -1
- package/dist/client/_nuxt/StacktraceList.vue.Gb_bhKzx.js +0 -1
- package/dist/client/_nuxt/StateEditor.vue.uD82H9Pv.js +0 -1
- package/dist/client/_nuxt/__blank.rg_1bnXo.js +0 -1
- package/dist/client/_nuxt/analyze-build.JxJ_8lFN.js +0 -1
- package/dist/client/_nuxt/assets.1FyMcY8L.js +0 -16
- package/dist/client/_nuxt/builds/meta/08fd0fd8-5cfa-4695-8e27-78457d182dae.json +0 -1
- package/dist/client/_nuxt/client.eqvAG3u2.js +0 -1
- package/dist/client/_nuxt/custom-_name_.djPre3b7.js +0 -1
- package/dist/client/_nuxt/default.7wQj6c36.js +0 -1
- package/dist/client/_nuxt/entry.AC_HBPW1.css +0 -1
- package/dist/client/_nuxt/entry.a1BLIhrc.js +0 -48
- package/dist/client/_nuxt/error-404.3dfc8fFE.js +0 -1
- package/dist/client/_nuxt/error-500.qvz9zIUY.js +0 -1
- package/dist/client/_nuxt/full.w5ioE28h.js +0 -1
- package/dist/client/_nuxt/hooks.13fp5T8X.js +0 -1
- package/dist/client/_nuxt/html.0DSFJ4KV.js +0 -74
- package/dist/client/_nuxt/imports.E-T17-Mp.js +0 -1
- package/dist/client/_nuxt/index.9SQHhWq3.js +0 -16
- package/dist/client/_nuxt/index.ctUdIrWg.js +0 -1
- package/dist/client/_nuxt/json-editor-vue.C3M8qDH6.js +0 -105
- package/dist/client/_nuxt/json.t1qiHl76.js +0 -25
- package/dist/client/_nuxt/none.UJDcJL42.js +0 -1
- package/dist/client/_nuxt/overview.RtevshhZ.js +0 -1
- package/dist/client/_nuxt/pages.jN1YZniN.js +0 -1
- package/dist/client/_nuxt/payload.QEY7GKAn.js +0 -1
- package/dist/client/_nuxt/plugins.OPV4346K.js +0 -1
- package/dist/client/_nuxt/runtime-configs.BdJla29K.js +0 -1
- package/dist/client/_nuxt/server-routes.7v7M6BNy.js +0 -9
- package/dist/client/_nuxt/settings.yb3IRCgQ.js +0 -1
- package/dist/client/_nuxt/shellscript.h1L64xId.js +0 -4
- package/dist/client/_nuxt/state-components.7HYELvqe.js +0 -1
- package/dist/client/_nuxt/state-modules.oo9Oe5GR.js +0 -1
- package/dist/client/_nuxt/storage-options.fwiCb1uI.js +0 -1
- package/dist/client/_nuxt/storage.DlSn8HWp.js +0 -1
- package/dist/client/_nuxt/timeline.AZ4Ag11k.js +0 -30
- package/dist/client/_nuxt/unocss-runtime.NnHejI5X.js +0 -2
- package/dist/client/_nuxt/vanilla-picker-NKbIFE8h.vtyeXros.js +0 -8
- package/dist/client/_nuxt/virtual-files.dM-a5WY-.js +0 -1
- package/dist/client/_nuxt/vitesse-dark.5VceXvs6.js +0 -1
- package/dist/client/_nuxt/vitesse-light.HOMMxGxw.js +0 -1
- package/dist/client/_nuxt/vue-html.KfgsLQjp.js +0 -1
- package/dist/client/_nuxt/yaml.FtfhlYqU.js +0 -200
- /package/dist/client/_nuxt/{constants.jFgWOlQV.js → BcJws1i5.js} +0 -0
- /package/dist/client/_nuxt/{nuxt-docs.83FO1Cbd.js → D5r6TWiw.js} +0 -0
- /package/dist/client/_nuxt/{diff.-l9-nN5b.js → DvyTQcux.js} +0 -0
- /package/dist/client/_nuxt/{HelpFab.x07F_IqA.css → HelpFab.DHTsX8io.css} +0 -0
- /package/dist/client/_nuxt/{NCodeBlock.XH4dGkTz.css → NCodeBlock.Bcfh0aRP.css} +0 -0
- /package/dist/client/_nuxt/{NSectionBlock.a3MwpCxg.css → NSectionBlock.BrczCkLG.css} +0 -0
- /package/dist/client/_nuxt/{assets.xk970LH3.css → assets.DGT3vQsf.css} +0 -0
- /package/dist/client/_nuxt/{error-404.m36D2jj-.css → error-404.CbfoPaOP.css} +0 -0
- /package/dist/client/_nuxt/{error-500.oAiyMzGs.css → error-500.CgCLIzMa.css} +0 -0
- /package/dist/client/_nuxt/{open-graph.PgUMoob_.css → open-graph.-BQyihv8.css} +0 -0
- /package/dist/client/_nuxt/{terminals.GzwV8rXv.css → terminals.bPBXyte9.css} +0 -0
- /package/dist/client/_nuxt/{timeline.7wyW2pbe.css → timeline.DvDJbalt.css} +0 -0
- /package/dist/client/_nuxt/{virtual-files.lmRDNyeH.css → virtual-files.CWZEM3J4.css} +0 -0
|
@@ -57,10 +57,8 @@ useEventListener(window, 'mousedown', (e: MouseEvent) => {
|
|
|
57
57
|
state.value.open = false
|
|
58
58
|
})
|
|
59
59
|
|
|
60
|
-
|
|
61
|
-
if (!isResizing.value)
|
|
62
|
-
return
|
|
63
|
-
if (!state.value.open)
|
|
60
|
+
function handleResize(e: MouseEvent | TouchEvent) {
|
|
61
|
+
if (!isResizing.value || !state.value.open)
|
|
64
62
|
return
|
|
65
63
|
|
|
66
64
|
const iframe = props.client.getIframe()
|
|
@@ -69,36 +67,31 @@ useEventListener(window, 'mousemove', (e: MouseEvent) => {
|
|
|
69
67
|
|
|
70
68
|
const box = iframe.getBoundingClientRect()
|
|
71
69
|
|
|
70
|
+
let widthPx: number, heightPx: number
|
|
72
71
|
if (isResizing.value.right) {
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
state.value.width = Math.min(PANEL_MAX, Math.max(PANEL_MIN, width))
|
|
72
|
+
widthPx = Math.abs(e instanceof MouseEvent ? e.clientX : e.touches[0].clientX - (box?.left || 0))
|
|
73
|
+
state.value.width = Math.min(PANEL_MAX, Math.max(PANEL_MIN, widthPx / window.innerWidth * 100))
|
|
76
74
|
}
|
|
77
75
|
else if (isResizing.value.left) {
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
state.value.width = Math.min(PANEL_MAX, Math.max(PANEL_MIN, width))
|
|
76
|
+
widthPx = Math.abs((box?.right || 0) - (e instanceof MouseEvent ? e.clientX : e.touches[0].clientX))
|
|
77
|
+
state.value.width = Math.min(PANEL_MAX, Math.max(PANEL_MIN, widthPx / window.innerWidth * 100))
|
|
81
78
|
}
|
|
82
79
|
|
|
83
80
|
if (isResizing.value.top) {
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
state.value.height = Math.min(PANEL_MAX, Math.max(PANEL_MIN, height))
|
|
81
|
+
heightPx = Math.abs((box?.bottom || 0) - (e instanceof MouseEvent ? e.clientY : e.touches[0].clientY))
|
|
82
|
+
state.value.height = Math.min(PANEL_MAX, Math.max(PANEL_MIN, heightPx / window.innerHeight * 100))
|
|
87
83
|
}
|
|
88
84
|
else if (isResizing.value.bottom) {
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
state.value.height = Math.min(PANEL_MAX, Math.max(PANEL_MIN, height))
|
|
85
|
+
heightPx = Math.abs(e instanceof MouseEvent ? e.clientY : e.touches[0].clientY - (box?.top || 0))
|
|
86
|
+
state.value.height = Math.min(PANEL_MAX, Math.max(PANEL_MIN, heightPx / window.innerHeight * 100))
|
|
92
87
|
}
|
|
93
|
-
}
|
|
94
|
-
|
|
95
|
-
useEventListener(window, 'mouseup', () => {
|
|
96
|
-
isResizing.value = false
|
|
97
|
-
})
|
|
88
|
+
}
|
|
98
89
|
|
|
99
|
-
useEventListener(window, '
|
|
100
|
-
|
|
101
|
-
|
|
90
|
+
useEventListener(window, 'mousemove', handleResize)
|
|
91
|
+
useEventListener(window, 'touchmove', handleResize)
|
|
92
|
+
useEventListener(window, 'mouseup', () => isResizing.value = false)
|
|
93
|
+
useEventListener(window, 'touchend', () => isResizing.value = false)
|
|
94
|
+
useEventListener(window, 'mouseleave', () => isResizing.value = false)
|
|
102
95
|
</script>
|
|
103
96
|
|
|
104
97
|
<template>
|
|
@@ -112,49 +105,57 @@ useEventListener(window, 'mouseleave', () => {
|
|
|
112
105
|
v-show="state.position !== 'top'"
|
|
113
106
|
class="nuxt-devtools-resize-handle nuxt-devtools-resize-handle-horizontal"
|
|
114
107
|
:style="{ top: 0 }"
|
|
115
|
-
@mousedown.prevent="
|
|
108
|
+
@mousedown.prevent="isResizing = { top: true }"
|
|
109
|
+
@touchstart="() => isResizing = { top: true }"
|
|
116
110
|
/>
|
|
117
111
|
<div
|
|
118
112
|
v-show="state.position !== 'bottom'"
|
|
119
113
|
class="nuxt-devtools-resize-handle nuxt-devtools-resize-handle-horizontal"
|
|
120
114
|
:style="{ bottom: 0 }"
|
|
121
115
|
@mousedown.prevent="() => isResizing = { bottom: true }"
|
|
116
|
+
@touchstart="() => isResizing = { bottom: true }"
|
|
122
117
|
/>
|
|
123
118
|
<div
|
|
124
119
|
v-show="state.position !== 'left'"
|
|
125
120
|
class="nuxt-devtools-resize-handle nuxt-devtools-resize-handle-vertical"
|
|
126
121
|
:style="{ left: 0 }"
|
|
127
122
|
@mousedown.prevent="() => isResizing = { left: true }"
|
|
123
|
+
@touchstart="() => isResizing = { left: true }"
|
|
128
124
|
/>
|
|
129
125
|
<div
|
|
130
126
|
v-show="state.position !== 'right'"
|
|
131
127
|
class="nuxt-devtools-resize-handle nuxt-devtools-resize-handle-vertical"
|
|
132
128
|
:style="{ right: 0 }"
|
|
133
129
|
@mousedown.prevent="() => isResizing = { right: true }"
|
|
130
|
+
@touchstart="() => isResizing = { right: true }"
|
|
134
131
|
/>
|
|
135
132
|
<div
|
|
136
133
|
v-show="state.position !== 'top' && state.position !== 'left'"
|
|
137
134
|
class="nuxt-devtools-resize-handle nuxt-devtools-resize-handle-corner"
|
|
138
135
|
:style="{ top: 0, left: 0, cursor: 'nwse-resize' }"
|
|
139
136
|
@mousedown.prevent="() => isResizing = { top: true, left: true }"
|
|
137
|
+
@touchstart="() => isResizing = { top: true, left: true }"
|
|
140
138
|
/>
|
|
141
139
|
<div
|
|
142
140
|
v-show="state.position !== 'top' && state.position !== 'right'"
|
|
143
141
|
class="nuxt-devtools-resize-handle nuxt-devtools-resize-handle-corner"
|
|
144
142
|
:style="{ top: 0, right: 0, cursor: 'nesw-resize' }"
|
|
145
143
|
@mousedown.prevent="() => isResizing = { top: true, right: true }"
|
|
144
|
+
@touchstart="() => isResizing = { top: true, right: true }"
|
|
146
145
|
/>
|
|
147
146
|
<div
|
|
148
147
|
v-show="state.position !== 'bottom' && state.position !== 'left'"
|
|
149
148
|
class="nuxt-devtools-resize-handle nuxt-devtools-resize-handle-corner"
|
|
150
149
|
:style="{ bottom: 0, left: 0, cursor: 'nesw-resize' }"
|
|
151
150
|
@mousedown.prevent="() => isResizing = { bottom: true, left: true }"
|
|
151
|
+
@touchstart="() => isResizing = { bottom: true, left: true }"
|
|
152
152
|
/>
|
|
153
153
|
<div
|
|
154
154
|
v-show="state.position !== 'bottom' && state.position !== 'right'"
|
|
155
155
|
class="nuxt-devtools-resize-handle nuxt-devtools-resize-handle-corner"
|
|
156
156
|
:style="{ bottom: 0, right: 0, cursor: 'nwse-resize' }"
|
|
157
157
|
@mousedown.prevent="() => isResizing = { bottom: true, right: true }"
|
|
158
|
+
@touchstart="() => isResizing = { bottom: true, right: true }"
|
|
158
159
|
/>
|
|
159
160
|
</div>
|
|
160
161
|
</template>
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { computed, createApp, h, markRaw,
|
|
1
|
+
import { computed, createApp, h, markRaw, ref, shallowReactive, shallowRef, watch } from "vue";
|
|
2
2
|
import { createHooks } from "hookable";
|
|
3
3
|
import { debounce } from "perfect-debounce";
|
|
4
4
|
import { initTimelineMetrics } from "../../function-metrics-helpers.mjs";
|
|
@@ -45,9 +45,6 @@ export async function setupDevToolsClient({
|
|
|
45
45
|
if (state.value.open)
|
|
46
46
|
return;
|
|
47
47
|
state.value.open = true;
|
|
48
|
-
return nextTick(() => {
|
|
49
|
-
client.syncClient();
|
|
50
|
-
});
|
|
51
48
|
},
|
|
52
49
|
async navigate(path) {
|
|
53
50
|
if (!state.value.open)
|
|
@@ -96,25 +93,20 @@ export async function setupDevToolsClient({
|
|
|
96
93
|
const runtimeConfig = useRuntimeConfig();
|
|
97
94
|
const CLIENT_PATH = `${runtimeConfig.app.baseURL}/__nuxt_devtools__/client`.replace(/\/+/g, "/");
|
|
98
95
|
const initialUrl = CLIENT_PATH + state.value.route;
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
}
|
|
114
|
-
};
|
|
115
|
-
} catch (e) {
|
|
116
|
-
console.error(e);
|
|
117
|
-
}
|
|
96
|
+
iframe = document.createElement("iframe");
|
|
97
|
+
for (const [key, value] of Object.entries(runtimeConfig.app.devtools?.iframeProps || {}))
|
|
98
|
+
iframe.setAttribute(key, String(value));
|
|
99
|
+
iframe.id = "nuxt-devtools-iframe";
|
|
100
|
+
iframe.src = initialUrl;
|
|
101
|
+
iframe.onload = async () => {
|
|
102
|
+
try {
|
|
103
|
+
await waitForClientInjection();
|
|
104
|
+
client.syncClient();
|
|
105
|
+
} catch (e) {
|
|
106
|
+
console.error("Nuxt DevTools client injection failed");
|
|
107
|
+
console.error(e);
|
|
108
|
+
}
|
|
109
|
+
};
|
|
118
110
|
}
|
|
119
111
|
return iframe;
|
|
120
112
|
}
|
|
@@ -222,7 +214,6 @@ export async function setupDevToolsClient({
|
|
|
222
214
|
});
|
|
223
215
|
};
|
|
224
216
|
}
|
|
225
|
-
client.syncClient();
|
|
226
217
|
const holder = document.createElement("div");
|
|
227
218
|
holder.id = "nuxt-devtools-container";
|
|
228
219
|
holder.setAttribute("data-v-inspector-ignore", "true");
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -51,6 +51,16 @@ const defaultTabOptions = {
|
|
|
51
51
|
},
|
|
52
52
|
sendFrom: "app"
|
|
53
53
|
},
|
|
54
|
+
serverTasks: {
|
|
55
|
+
enabled: false,
|
|
56
|
+
selectedTask: null,
|
|
57
|
+
view: "list",
|
|
58
|
+
inputDefaults: {
|
|
59
|
+
query: [],
|
|
60
|
+
body: [],
|
|
61
|
+
headers: [{ active: true, key: "Content-Type", value: "application/json", type: "string" }]
|
|
62
|
+
}
|
|
63
|
+
},
|
|
54
64
|
assets: {
|
|
55
65
|
view: "grid"
|
|
56
66
|
}
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nuxt/devtools",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "1.0
|
|
4
|
+
"version": "1.1.0",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"homepage": "https://devtools.nuxt.com",
|
|
7
7
|
"repository": {
|
|
@@ -35,83 +35,87 @@
|
|
|
35
35
|
},
|
|
36
36
|
"dependencies": {
|
|
37
37
|
"@antfu/utils": "^0.7.7",
|
|
38
|
-
"@nuxt/kit": "^3.
|
|
39
|
-
"
|
|
38
|
+
"@nuxt/kit": "^3.11.1",
|
|
39
|
+
"@vue/devtools-applet": "^7.0.19",
|
|
40
|
+
"@vue/devtools-core": "^7.0.19",
|
|
41
|
+
"@vue/devtools-kit": "^7.0.19",
|
|
42
|
+
"birpc": "^0.2.17",
|
|
40
43
|
"consola": "^3.2.3",
|
|
41
|
-
"
|
|
44
|
+
"cronstrue": "^2.48.0",
|
|
45
|
+
"destr": "^2.0.3",
|
|
42
46
|
"error-stack-parser-es": "^0.1.1",
|
|
43
47
|
"execa": "^7.2.0",
|
|
44
48
|
"fast-glob": "^3.3.2",
|
|
45
|
-
"flatted": "^3.
|
|
49
|
+
"flatted": "^3.3.1",
|
|
46
50
|
"get-port-please": "^3.1.2",
|
|
47
51
|
"hookable": "^5.5.3",
|
|
48
52
|
"image-meta": "^0.2.0",
|
|
49
53
|
"is-installed-globally": "^1.0.0",
|
|
50
54
|
"launch-editor": "^2.6.1",
|
|
51
55
|
"local-pkg": "^0.5.0",
|
|
52
|
-
"magicast": "^0.3.
|
|
53
|
-
"nypm": "^0.3.
|
|
56
|
+
"magicast": "^0.3.3",
|
|
57
|
+
"nypm": "^0.3.8",
|
|
54
58
|
"ohash": "^1.1.3",
|
|
55
|
-
"pacote": "^17.0.
|
|
59
|
+
"pacote": "^17.0.6",
|
|
56
60
|
"pathe": "^1.1.2",
|
|
57
61
|
"perfect-debounce": "^1.0.0",
|
|
58
62
|
"pkg-types": "^1.0.3",
|
|
59
63
|
"rc9": "^2.1.1",
|
|
60
|
-
"scule": "^1.
|
|
61
|
-
"semver": "^7.
|
|
62
|
-
"simple-git": "^3.
|
|
64
|
+
"scule": "^1.3.0",
|
|
65
|
+
"semver": "^7.6.0",
|
|
66
|
+
"simple-git": "^3.23.0",
|
|
63
67
|
"sirv": "^2.0.4",
|
|
64
68
|
"unimport": "^3.7.1",
|
|
65
|
-
"vite-plugin-inspect": "^0.8.
|
|
69
|
+
"vite-plugin-inspect": "^0.8.3",
|
|
66
70
|
"vite-plugin-vue-inspector": "^4.0.2",
|
|
67
71
|
"which": "^3.0.1",
|
|
68
72
|
"ws": "^8.16.0",
|
|
69
|
-
"@nuxt/devtools-
|
|
70
|
-
"@nuxt/devtools-
|
|
73
|
+
"@nuxt/devtools-kit": "1.1.0",
|
|
74
|
+
"@nuxt/devtools-wizard": "1.1.0"
|
|
71
75
|
},
|
|
72
76
|
"devDependencies": {
|
|
73
77
|
"@iconify-json/bxl": "^1.1.10",
|
|
74
|
-
"@iconify-json/carbon": "^1.1.
|
|
78
|
+
"@iconify-json/carbon": "^1.1.31",
|
|
75
79
|
"@iconify-json/logos": "^1.1.42",
|
|
76
|
-
"@iconify-json/ri": "^1.1.
|
|
77
|
-
"@iconify-json/simple-icons": "^1.1.
|
|
78
|
-
"@iconify-json/tabler": "^1.1.
|
|
79
|
-
"@nuxt/content": "^2.
|
|
80
|
+
"@iconify-json/ri": "^1.1.20",
|
|
81
|
+
"@iconify-json/simple-icons": "^1.1.96",
|
|
82
|
+
"@iconify-json/tabler": "^1.1.109",
|
|
83
|
+
"@nuxt/content": "^2.12.1",
|
|
80
84
|
"@nuxt/test-utils": "3.9.0",
|
|
81
|
-
"@nuxtjs/color-mode": "^3.3.
|
|
82
|
-
"@parcel/watcher": "^2.
|
|
85
|
+
"@nuxtjs/color-mode": "^3.3.3",
|
|
86
|
+
"@parcel/watcher": "^2.4.1",
|
|
83
87
|
"@types/markdown-it-link-attributes": "^3.0.4",
|
|
84
88
|
"@types/ua-parser-js": "^0.7.39",
|
|
85
|
-
"@unocss/nuxt": "^0.58.
|
|
86
|
-
"@unocss/preset-icons": "^0.58.
|
|
87
|
-
"@unocss/preset-uno": "^0.58.
|
|
88
|
-
"@unocss/runtime": "^0.58.
|
|
89
|
-
"@vitest/ui": "^1.
|
|
90
|
-
"@vueuse/nuxt": "^10.
|
|
91
|
-
"esno": "^4.
|
|
89
|
+
"@unocss/nuxt": "^0.58.6",
|
|
90
|
+
"@unocss/preset-icons": "^0.58.6",
|
|
91
|
+
"@unocss/preset-uno": "^0.58.6",
|
|
92
|
+
"@unocss/runtime": "^0.58.6",
|
|
93
|
+
"@vitest/ui": "^1.4.0",
|
|
94
|
+
"@vueuse/nuxt": "^10.9.0",
|
|
95
|
+
"esno": "^4.7.0",
|
|
92
96
|
"floating-vue": "5.0.2",
|
|
93
97
|
"fuse.js": "^7.0.0",
|
|
94
|
-
"json-editor-vue": "^0.
|
|
95
|
-
"markdown-it": "^14.
|
|
98
|
+
"json-editor-vue": "^0.12.0",
|
|
99
|
+
"markdown-it": "^14.1.0",
|
|
96
100
|
"markdown-it-link-attributes": "^4.0.1",
|
|
97
|
-
"nanoid": "^5.0.
|
|
98
|
-
"nitropack": "^2.
|
|
99
|
-
"nuxt": "^3.
|
|
101
|
+
"nanoid": "^5.0.6",
|
|
102
|
+
"nitropack": "^2.9.4",
|
|
103
|
+
"nuxt": "^3.11.1",
|
|
100
104
|
"ofetch": "^1.3.3",
|
|
101
|
-
"quicktype-core": "^23.0.
|
|
102
|
-
"
|
|
103
|
-
"theme-vitesse": "^0.7.
|
|
105
|
+
"quicktype-core": "^23.0.107",
|
|
106
|
+
"shiki": "^1.2.0",
|
|
107
|
+
"theme-vitesse": "^0.7.7",
|
|
104
108
|
"ua-parser-js": "^1.0.37",
|
|
105
|
-
"unocss": "^0.58.
|
|
106
|
-
"unplugin-vue-markdown": "^0.
|
|
107
|
-
"vanilla-jsoneditor": "^0.
|
|
109
|
+
"unocss": "^0.58.6",
|
|
110
|
+
"unplugin-vue-markdown": "^0.26.0",
|
|
111
|
+
"vanilla-jsoneditor": "^0.23.0",
|
|
108
112
|
"vis-data": "^7.1.9",
|
|
109
113
|
"vis-network": "^9.1.9",
|
|
110
|
-
"vue-tsc": "^
|
|
114
|
+
"vue-tsc": "^2.0.7",
|
|
111
115
|
"vue-virtual-scroller": "2.0.0-beta.8",
|
|
112
116
|
"xterm": "^5.3.0",
|
|
113
117
|
"xterm-addon-fit": "^0.8.0",
|
|
114
|
-
"@nuxt/devtools": "1.0
|
|
118
|
+
"@nuxt/devtools": "1.1.0"
|
|
115
119
|
},
|
|
116
120
|
"scripts": {
|
|
117
121
|
"build": "pnpm dev:prepare && pnpm build:module && pnpm build:client && esno scripts/prepare.ts",
|
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
import{_ as R}from"./NCodeBlock.vue.2w5Cy5b6.js";import{d as _,a as N,r as F,an as W,bG as A,o as B,h as J,f as V}from"./entry.a1BLIhrc.js";function m(){}m.prototype={diff:function(e,t){var o=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},f=o.callback;typeof o=="function"&&(f=o,o={}),this.options=o;var r=this;function l(c){return f?(setTimeout(function(){f(void 0,c)},0),!0):c}e=this.castInput(e),t=this.castInput(t),e=this.removeEmpty(this.tokenize(e)),t=this.removeEmpty(this.tokenize(t));var i=t.length,s=e.length,u=1,d=i+s;o.maxEditLength&&(d=Math.min(d,o.maxEditLength));var a=[{newPos:-1,components:[]}],p=this.extractCommon(a[0],t,e,0);if(a[0].newPos+1>=i&&p+1>=s)return l([{value:this.join(t),count:t.length}]);function v(){for(var c=-1*u;c<=u;c+=2){var h=void 0,w=a[c-1],C=a[c+1],g=(C?C.newPos:0)-c;w&&(a[c-1]=void 0);var q=w&&w.newPos+1<i,$=C&&0<=g&&g<s;if(!q&&!$){a[c]=void 0;continue}if(!q||$&&w.newPos<C.newPos?(h=G(C),r.pushComponent(h.components,void 0,!0)):(h=w,h.newPos++,r.pushComponent(h.components,!0,void 0)),g=r.extractCommon(h,t,e,c),h.newPos+1>=i&&g+1>=s)return l(M(r,h.components,t,e,r.useLongestToken));a[c]=h}u++}if(f)(function c(){setTimeout(function(){if(u>d)return f();v()||c()},0)})();else for(;u<=d;){var y=v();if(y)return y}},pushComponent:function(e,t,o){var f=e[e.length-1];f&&f.added===t&&f.removed===o?e[e.length-1]={count:f.count+1,added:t,removed:o}:e.push({count:1,added:t,removed:o})},extractCommon:function(e,t,o,f){for(var r=t.length,l=o.length,i=e.newPos,s=i-f,u=0;i+1<r&&s+1<l&&this.equals(t[i+1],o[s+1]);)i++,s++,u++;return u&&e.components.push({count:u}),e.newPos=i,s},equals:function(e,t){return this.options.comparator?this.options.comparator(e,t):e===t||this.options.ignoreCase&&e.toLowerCase()===t.toLowerCase()},removeEmpty:function(e){for(var t=[],o=0;o<e.length;o++)e[o]&&t.push(e[o]);return t},castInput:function(e){return e},tokenize:function(e){return e.split("")},join:function(e){return e.join("")}};function M(n,e,t,o,f){for(var r=0,l=e.length,i=0,s=0;r<l;r++){var u=e[r];if(u.removed){if(u.value=n.join(o.slice(s,s+u.count)),s+=u.count,r&&e[r-1].added){var a=e[r-1];e[r-1]=e[r],e[r]=a}}else{if(!u.added&&f){var d=t.slice(i,i+u.count);d=d.map(function(v,y){var c=o[s+y];return c.length>v.length?c:v}),u.value=n.join(d)}else u.value=n.join(t.slice(i,i+u.count));i+=u.count,u.added||(s+=u.count)}}var p=e[l-1];return l>1&&typeof p.value=="string"&&(p.added||p.removed)&&n.equals("",p.value)&&(e[l-2].value+=p.value,e.pop()),e}function G(n){return{newPos:n.newPos,components:n.components.slice(0)}}var I=/^[A-Za-z\xC0-\u02C6\u02C8-\u02D7\u02DE-\u02FF\u1E00-\u1EFF]+$/,T=/\S/,O=new m;O.equals=function(n,e){return this.options.ignoreCase&&(n=n.toLowerCase(),e=e.toLowerCase()),n===e||this.options.ignoreWhitespace&&!T.test(n)&&!T.test(e)};O.tokenize=function(n){for(var e=n.split(/([^\S\r\n]+|[()[\]{}'"\r\n]|\b)/),t=0;t<e.length-1;t++)!e[t+1]&&e[t+2]&&I.test(e[t])&&I.test(e[t+2])&&(e[t]+=e[t+2],e.splice(t+1,2),t--);return e};var D=new m;D.tokenize=function(n){var e=[],t=n.split(/(\n|\r\n)/);t[t.length-1]||t.pop();for(var o=0;o<t.length;o++){var f=t[o];o%2&&!this.options.newlineIsToken?e[e.length-1]+=f:(this.options.ignoreWhitespace&&(f=f.trim()),e.push(f))}return e};function Z(n,e,t){return D.diff(n,e,t)}var k=new m;k.tokenize=function(n){return n.split(/(\S.+?[.!?])(?=\s+|$)/)};var H=new m;H.tokenize=function(n){return n.split(/([{}:;,]|\s+)/)};function z(n){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?z=function(e){return typeof e}:z=function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},z(n)}var Q=Object.prototype.toString,L=new m;L.useLongestToken=!0;L.tokenize=D.tokenize;L.castInput=function(n){var e=this.options,t=e.undefinedReplacement,o=e.stringifyReplacer,f=o===void 0?function(r,l){return typeof l>"u"?t:l}:o;return typeof n=="string"?n:JSON.stringify(E(n,null,null,f),f," ")};L.equals=function(n,e){return m.prototype.equals.call(L,n.replace(/,([\r\n])/g,"$1"),e.replace(/,([\r\n])/g,"$1"))};function E(n,e,t,o,f){e=e||[],t=t||[],o&&(n=o(f,n));var r;for(r=0;r<e.length;r+=1)if(e[r]===n)return t[r];var l;if(Q.call(n)==="[object Array]"){for(e.push(n),l=new Array(n.length),t.push(l),r=0;r<n.length;r+=1)l[r]=E(n[r],e,t,o,f);return e.pop(),t.pop(),l}if(n&&n.toJSON&&(n=n.toJSON()),z(n)==="object"&&n!==null){e.push(n),l={},t.push(l);var i=[],s;for(s in n)n.hasOwnProperty(s)&&i.push(s);for(i.sort(),r=0;r<i.length;r+=1)s=i[r],l[s]=E(n[s],e,t,o,s);e.pop(),t.pop()}else l=n;return l}var x=new m;x.tokenize=function(n){return n.slice()};x.join=x.removeEmpty=function(n){return n};const Y=_({__name:"CodeDiff",props:{from:{},to:{},lang:{}},setup(n){const e=n;function t(i,s){const u=Z(i.trim(),s.trim()),d=[],a=[],p=[];for(const v of u){const y=v.value.trimEnd().split(`
|
|
2
|
-
`);for(const c of y)v.added?(d.push(p.length),p.push(c)):(v.removed&&a.push(p.length),p.push(c))}return{added:d,removed:a,result:p.join(`
|
|
3
|
-
`)}}const o=N(()=>t(e.from,e.to));function f(i){let s=0;return i.replace(/class="shiki/,'class="shiki diff').replace(/class="line"/g,u=>(s++,o.value.added.includes(s-1)?'class="line line-added"':o.value.removed.includes(s-1)?'class="line line-removed"':u))}const r=F();W(l);function l(){const i=A(r);i&&i.querySelector(".line-added,.line-removed")?.scrollIntoView()}return(i,s)=>{const u=R;return B(),J(u,{ref_key:"elRef",ref:r,code:V(o).result,lang:i.lang,"transform-rendered":f,onLoaded:l},null,8,["code","lang"])}}});export{Y as _};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{_ as I}from"./NMarkdown.vue.cV8rBrR_.js";import{d as V,e as D,ac as U,a as c,ap as $,o as s,h as r,j as i,n as l,f as e,v as u,i as j,p as o,F as v,t as h,m as E,l as _,G as F,_ as S}from"./entry.a1BLIhrc.js";import{_ as z}from"./FilepathItem.vue.KRS5685n.js";import{C as x}from"./constants.jFgWOlQV.js";const G={"hover:text-primary":""},L={key:0,"text-primary":""},M={"max-w-100":""},O={px4:"",py3:"","text-sm":""},T={flex:"~ gap2",n:"primary xs"},W={border:"t base","max-h-60":"","of-auto":"",px4:"",py3:""},q={"text-sm":""},A=o("span",{op50:""},"It has been referenced ",-1),H={"text-primary":""},J=o("span",{op50:""}," times by:",-1),K={flex:"~ col gap-2","items-start":"",pt3:"","text-sm":"",op75:""},P={key:1,"text-sm":"",op50:""},Z=V({__name:"ComposableItem",props:{item:{},metadata:{},filepath:{},counter:{type:Boolean,default:!0},classes:{default:"px2 py1 text-sm bg-gray:5 "}},setup(k){const t=k,b=D(),g=U(),m=c(()=>t.item.as||t.item.name),n=c(()=>t.metadata?.injectionUsage?.[m.value]?.count||0),C=c(()=>(t.metadata?.injectionUsage?.[m.value]?.moduleIds||[]).filter(a=>!a.endsWith("?macro=true"))),y=c(()=>{if(t.item.meta?.docsUrl)return t.item.meta.docsUrl;if(["nuxt","#app","nuxt3"].includes(t.item.from))return x.nuxt[t.item.name];if(t.item.from==="vue")return x.vue[t.item.name]});return(a,p)=>{const w=I,f=S,N=z,B=$("VDropdown");return s(),r(B,{disabled:!t.metadata},{popper:i(()=>[o("div",M,[o("div",O,[a.item.meta?.description?(s(),r(w,{key:0,tag:"div",pb3:"","text-sm":"",markdown:a.item.meta.description},null,8,["markdown"])):l("",!0),o("div",T,[j(f,{icon:"carbon-copy",onClick:p[0]||(p[0]=d=>e(b)(e(m),"imports-name"))},{default:i(()=>[u(" Copy ")]),_:1}),a.filepath?(s(),r(f,{key:0,icon:"carbon-code",onClick:p[1]||(p[1]=d=>a.filepath&&e(g)(a.filepath))},{default:i(()=>[u(" Source ")]),_:1})):l("",!0),e(y)?(s(),r(f,{key:1,icon:"carbon-catalog",to:e(y),target:"_blank"},{default:i(()=>[u(" Docs ")]),_:1},8,["to"])):l("",!0)])]),o("div",W,[e(n)?(s(),_(v,{key:0},[o("div",q,[A,o("strong",H,h(e(n)),1),J]),o("div",K,[(s(!0),_(v,null,E(e(C),d=>(s(),r(N,{key:d,filepath:d},null,8,["filepath"]))),128))])],64)):(s(),_("div",P," Not in use via auto import. "))])])]),default:i(()=>[o("button",G,[o("code",{rounded:"","font-mono":"",class:F([a.metadata&&!e(n)?"op30 hover:op100":"",a.classes])},[u(h(e(m))+" ",1),e(n)&&a.counter?(s(),_("sup",L,"x"+h(e(n)),1)):l("",!0)],2)])]),_:1},8,["disabled"])}}});export{Z as _};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{d as r,u as s,a2 as c,I as i,o as p,h as _,_ as u}from"./entry.a1BLIhrc.js";const f=r({__name:"DataSchemaButton",props:{getter:{type:Function}},setup(l){const t=s();return(n,e)=>{const o=u,a=c("tooltip");return i((p(),_(o,{title:"Generate Data Schema",icon:"carbon:container-services",border:!1,onClick:e[0]||(e[0]=m=>t.value=n.getter())},null,512)),[[a,"Generate Data Schema"]])}}});export{f as _};
|