@nuxt/devtools 4.0.0-alpha.15 → 4.0.0-alpha.17

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 (80) hide show
  1. package/dist/_nuxt/AuthRequiredPanel-znjaI7oT.js.map.json +1 -0
  2. package/dist/_nuxt/CodeDiff-DgjeLx6z.js.map.json +1 -0
  3. package/dist/_nuxt/CodeSnippets-CgfcaS4Z.js.map.json +1 -0
  4. package/dist/_nuxt/ComposableItem-BWQR7_fI.js.map.json +1 -0
  5. package/dist/_nuxt/DataSchemaButton-CqEfc2TV.js.map.json +1 -0
  6. package/dist/_nuxt/DataSchemaDrawer-Xj8YzNJN.js.map.json +1 -0
  7. package/dist/_nuxt/DurationDisplay-Dzweg1by.js.map.json +1 -0
  8. package/dist/_nuxt/FilepathItem-D75bkTSa.js.map.json +1 -0
  9. package/dist/_nuxt/HelpFab-CH7NlsDf.js.map.json +1 -0
  10. package/dist/_nuxt/LaunchPage-ByG-3KVi.js.map.json +1 -0
  11. package/dist/_nuxt/NBadge-BNJzHbtD.js.map.json +1 -0
  12. package/dist/_nuxt/NCard-mHVN2GYZ.js.map.json +1 -0
  13. package/dist/_nuxt/NCheckbox-OMIu_LTG.js.map.json +1 -0
  14. package/dist/_nuxt/NCodeBlock-C2Ewa6VO.js.map.json +1 -0
  15. package/dist/_nuxt/NDrawer-C6Opm19C.js.map.json +1 -0
  16. package/dist/_nuxt/NDropdown-DseEG3tA.js.map.json +1 -0
  17. package/dist/_nuxt/NIcon-cjduOh_B.js.map.json +1 -0
  18. package/dist/_nuxt/NIconTitle-C75MU0px.js.map.json +1 -0
  19. package/dist/_nuxt/NLink-Rsxlt1NN.js.map.json +1 -0
  20. package/dist/_nuxt/NMarkdown-DFwJ-ppZ.js.map.json +1 -0
  21. package/dist/_nuxt/NNavbar-CS-Z1Cle.js.map.json +1 -0
  22. package/dist/_nuxt/NPanelGrids-CEorXUWJ.js.map.json +1 -0
  23. package/dist/_nuxt/NSectionBlock-C7kcMkbf.js.map.json +1 -0
  24. package/dist/_nuxt/NSelect-geGP1eOG.js.map.json +1 -0
  25. package/dist/_nuxt/NSelectTabs-nUMnNQy-.js.map.json +1 -0
  26. package/dist/_nuxt/NSplitPane-Bh0o_t5e.js.map.json +1 -0
  27. package/dist/_nuxt/NTip-DRnTpLjG.js.map.json +1 -0
  28. package/dist/_nuxt/ServerRouteInputs-BhIrPxPN.js.map.json +1 -0
  29. package/dist/_nuxt/StacktraceList-B-ehJIQ-.js.map.json +1 -0
  30. package/dist/_nuxt/StateEditor-Yqdbqk_c.js.map.json +1 -0
  31. package/dist/_nuxt/__blank-BM2yOFO6.js.map.json +1 -0
  32. package/dist/_nuxt/analyze-build-Cemp_oBq.js.map.json +1 -0
  33. package/dist/_nuxt/assets-rTFAaows.js.map.json +1 -0
  34. package/dist/_nuxt/client-r5qP-99Q.js.map.json +1 -0
  35. package/dist/_nuxt/color-BL_mIEWV.js.map.json +1 -0
  36. package/dist/_nuxt/components-BJnHweOE.js.map.json +1 -0
  37. package/dist/_nuxt/constants-D9kP6ji9.js.map.json +1 -0
  38. package/dist/_nuxt/custom-_name_-DI8dnRDD.js.map.json +1 -0
  39. package/dist/_nuxt/debug-BcJZ8M6i.js.map.json +1 -0
  40. package/dist/_nuxt/default-Bzh4dZQ5.js.map.json +1 -0
  41. package/dist/_nuxt/entry-DZwY6FLS.js.map.json +1 -0
  42. package/dist/_nuxt/error-404-dySA7T2P.js.map.json +1 -0
  43. package/dist/_nuxt/error-500-2Ody89Er.js.map.json +1 -0
  44. package/dist/_nuxt/error-hGc4cWUU.js.map.json +1 -0
  45. package/dist/_nuxt/full-CvSnaO29.js.map.json +1 -0
  46. package/dist/_nuxt/head-BTCtirw3.js.map.json +1 -0
  47. package/dist/_nuxt/hooks-BVzlIVXR.js.map.json +1 -0
  48. package/dist/_nuxt/imports-B3k4BZF7.js.map.json +1 -0
  49. package/dist/_nuxt/modules-Ck915TxZ.js.map.json +1 -0
  50. package/dist/_nuxt/none-Df66KJph.js.map.json +1 -0
  51. package/dist/_nuxt/nuxt-C5VITehY.js.map.json +1 -0
  52. package/dist/_nuxt/nuxt-link-C-BBeF5l.js.map.json +1 -0
  53. package/dist/_nuxt/open-graph-ll_bjX_m.js.map.json +1 -0
  54. package/dist/_nuxt/overview-CyqDmfdE.js.map.json +1 -0
  55. package/dist/_nuxt/pages-BddDWJsZ.js.map.json +1 -0
  56. package/dist/_nuxt/pages-CrUWMxGz.js.map.json +1 -0
  57. package/dist/_nuxt/pages-DWELoQlh.js.map.json +1 -0
  58. package/dist/_nuxt/payload-29bFuqLh.js.map.json +1 -0
  59. package/dist/_nuxt/plugins-fmmRaH-S.js.map.json +1 -0
  60. package/dist/_nuxt/ready-BQ1fhXgL.js.map.json +1 -0
  61. package/dist/_nuxt/runtime-configs-iL68LNkj.js.map.json +1 -0
  62. package/dist/_nuxt/server-routes-Dy5_Ljmu.js.map.json +1 -0
  63. package/dist/_nuxt/server-tasks-CD-7IPFD.js.map.json +1 -0
  64. package/dist/_nuxt/settings-Qa45tU8e.js.map.json +1 -0
  65. package/dist/_nuxt/state-components-CksF081b.js.map.json +1 -0
  66. package/dist/_nuxt/state-modules-CyH4hWeN.js.map.json +1 -0
  67. package/dist/_nuxt/state-tabs-m1o-BX5R.js.map.json +1 -0
  68. package/dist/_nuxt/storage-BylO3p9r.js.map.json +1 -0
  69. package/dist/_nuxt/timeline-Dukbqafi.js.map.json +1 -0
  70. package/dist/_nuxt/utils-BfB0tRbX.js.map.json +1 -0
  71. package/dist/_nuxt/virtual-files-BQJM45QE.js.map.json +1 -0
  72. package/dist/chunks/module-main.mjs +1 -1
  73. package/dist/dirs.d.cts +1 -0
  74. package/dist/index.mjs.map.json +1 -0
  75. package/dist/module.d.cts +2 -0
  76. package/dist/module.json +1 -1
  77. package/dist/server.mjs.map.json +1 -0
  78. package/dist/types.d.cts +2 -0
  79. package/dist/webcomponents/index.d.cts +1 -0
  80. package/package.json +30 -30
@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BAAoB,kBAAkB;MAC1C,MAAM;MACN,UAAU;MACV,gBAAgB;MAChB,kBAAkB;KACpB,GAAG;MACD,SAAS,SAAU,GAAG,OAAO,SAAS,aAAa;OACjD,IAAI,OACF,MAAM,qBAAqB,eAAgB,IAAI,MAAM,IAAI,GAAG;YAE5D,OAAO,CACL,gBAAiB,uBAAuB,gBAAiB,IAAI,MAAM,IAAI,GAAG,CAAC,CAC7E;MAEJ,CAAC;MACD,GAAG;KACL,GAAG,SAAS,QAAQ,CAAC;UAErB,OAAO,CACL,YAAa,kBAAkB;MAC7B,MAAM;MACN,UAAU;MACV,gBAAgB;MAChB,kBAAkB;KACpB,GAAG;MACD,SAAS,cAAe,CACtB,gBAAiB,uBAAuB,gBAAiB,IAAI,MAAM,IAAI,GAAG,CAAC,CAC7E,CAAC;MACD,GAAG;KACL,CAAC,CACH;IAEJ,CAAC;IACD,GAAG;GACL,GAAG,OAAO,CAAC;EAEf;CACA;AAEA,CAAC","names":[],"sources":["../../../../../../../../components/IframeView.vue?vue&type=script&setup=true&lang.ts","../../../../../../../../components/IframeView.vue","../../../../../../../../pages/modules/custom-[name].vue?vue&type=script&setup=true&lang.ts","../../../../../../../../pages/modules/custom-[name].vue"],"sourcesContent":["import { defineComponent as _defineComponent } from 'vue'\nimport { mergeProps as _mergeProps } from \"vue\"\nimport { ssrRenderAttrs as _ssrRenderAttrs } from \"vue/server-renderer\"\n\nimport type { ModuleCustomTab, ModuleIframeView } from '~/../src/types'\n\n\nimport { useElementBounding } from '@vueuse/core'\nimport { computed, nextTick, onMounted, onUnmounted, reactive, ref, watchEffect } from 'vue'\nimport { getColorMode, setEmbedderColorMode, useInjectionClient } from '~/composables/client'\n\nconst iframeCacheMap = new Map<string, HTMLIFrameElement>()\nconst observedDocuments = new WeakSet<HTMLElement>()\n\nexport default /*@__PURE__*/_defineComponent({\n __name: 'IframeView',\n __ssrInlineRender: true,\n props: {\n tab: {}\n },\n setup(__props: any) {\n\n// eslint-disable-next-line import/first\nconst props = __props\n\nconst colorMode = getColorMode()\nconst anchor = ref<HTMLDivElement>()\nconst key = computed(() => props.tab.name)\nconst iframeEl = ref<HTMLIFrameElement>()\nconst box = reactive(useElementBounding(anchor))\n\nonMounted(() => {\n const view = props.tab.view as ModuleIframeView\n const isPersistent = view.persistent !== false\n const allowedPermissions = ['clipboard-write', 'clipboard-read', ...(view.permissions || [])]\n\n if (iframeCacheMap.get(key.value) && isPersistent) {\n iframeEl.value = iframeCacheMap.get(key.value)!\n iframeEl.value.style.visibility = 'visible'\n }\n else {\n iframeEl.value = document.createElement('iframe')\n iframeEl.value.setAttribute('allow', allowedPermissions.join('; '))\n iframeEl.value.setAttribute('aria-label', 'Nuxt Devtools')\n\n if (isPersistent)\n iframeCacheMap.set(key.value, iframeEl.value)\n iframeEl.value.src = view.src\n // CORS\n try {\n iframeEl.value.style.opacity = '0.01'\n iframeEl.value.onload = () => {\n injectClient()\n syncColorMode()\n iframeEl.value!.style.opacity = '1'\n }\n }\n catch (e) {\n iframeEl.value.style.opacity = '1'\n }\n document.body.appendChild(iframeEl.value)\n nextTick(updateIframeBox)\n }\n setTimeout(syncColorMode, 100)\n})\n\nwatchEffect(updateIframeBox)\nwatchEffect(syncColorMode)\nwatchEffect(injectClient)\n\nonUnmounted(() => {\n if (iframeEl.value)\n iframeEl.value.style.visibility = 'hidden'\n})\n\nfunction syncColorMode() {\n if (!iframeEl.value || !iframeEl.value.contentWindow)\n return\n try {\n const html = iframeEl.value.contentWindow.document.querySelector('html')\n if (!html)\n return\n\n const isDark = colorMode.value === 'dark'\n html.classList.toggle('dark', isDark)\n html.classList.toggle('light', !isDark)\n\n // Iframes are cached and this runs from a watcher, an `onload` and a timer —\n // observe each document once instead of stacking observers on it.\n if (observedDocuments.has(html))\n return\n observedDocuments.add(html)\n\n const ob = new MutationObserver(() => {\n const tabScheme = html.classList.contains('dark') ? 'dark' : 'light'\n // The push above trips this observer too. Only a *divergence* from what we\n // render means the tab picked a scheme of its own; treating our own write\n // as a choice would pin the UI to it and stop it following the OS.\n if (tabScheme !== colorMode.value)\n setEmbedderColorMode(tabScheme)\n })\n ob.observe(html, { attributes: true, attributeFilter: ['class'] })\n }\n catch (e) {\n }\n}\n\nconst injectionClient = useInjectionClient()\n\nfunction injectClient() {\n if (!iframeEl.value || !iframeEl.value.contentWindow)\n return\n try {\n iframeEl.value.contentWindow.__NUXT_DEVTOOLS__ = injectionClient.value\n }\n catch (e) {\n }\n}\n\nfunction updateIframeBox() {\n if (!iframeEl.value)\n return\n Object.assign(iframeEl.value.style, {\n position: 'fixed',\n left: `${box.left}px`,\n top: `${box.top}px`,\n width: `${box.width}px`,\n height: `${box.height}px`,\n outline: 'none',\n })\n}\n\nreturn (_ctx: any,_push: any,_parent: any,_attrs: any) => {\n _push(`<div${_ssrRenderAttrs(_mergeProps({\n ref_key: \"anchor\",\n ref: anchor,\n \"h-full\": \"\",\n \"w-full\": \"\"\n }, _attrs))}></div>`)\n}\n}\n\n})","<script lang=\"ts\">\nimport { useElementBounding } from '@vueuse/core'\nimport { computed, nextTick, onMounted, onUnmounted, reactive, ref, watchEffect } from 'vue'\nimport { getColorMode, setEmbedderColorMode, useInjectionClient } from '~/composables/client'\n\nconst iframeCacheMap = new Map<string, HTMLIFrameElement>()\nconst observedDocuments = new WeakSet<HTMLElement>()\n</script>\n\n<script setup lang=\"ts\">\n// eslint-disable-next-line import/first\nimport type { ModuleCustomTab, ModuleIframeView } from '~/../src/types'\n\nconst props = defineProps<{\n tab: ModuleCustomTab\n}>()\n\nconst colorMode = getColorMode()\nconst anchor = ref<HTMLDivElement>()\nconst key = computed(() => props.tab.name)\nconst iframeEl = ref<HTMLIFrameElement>()\nconst box = reactive(useElementBounding(anchor))\n\nonMounted(() => {\n const view = props.tab.view as ModuleIframeView\n const isPersistent = view.persistent !== false\n const allowedPermissions = ['clipboard-write', 'clipboard-read', ...(view.permissions || [])]\n\n if (iframeCacheMap.get(key.value) && isPersistent) {\n iframeEl.value = iframeCacheMap.get(key.value)!\n iframeEl.value.style.visibility = 'visible'\n }\n else {\n iframeEl.value = document.createElement('iframe')\n iframeEl.value.setAttribute('allow', allowedPermissions.join('; '))\n iframeEl.value.setAttribute('aria-label', 'Nuxt Devtools')\n\n if (isPersistent)\n iframeCacheMap.set(key.value, iframeEl.value)\n iframeEl.value.src = view.src\n // CORS\n try {\n iframeEl.value.style.opacity = '0.01'\n iframeEl.value.onload = () => {\n injectClient()\n syncColorMode()\n iframeEl.value!.style.opacity = '1'\n }\n }\n catch (e) {\n iframeEl.value.style.opacity = '1'\n }\n document.body.appendChild(iframeEl.value)\n nextTick(updateIframeBox)\n }\n setTimeout(syncColorMode, 100)\n})\n\nwatchEffect(updateIframeBox)\nwatchEffect(syncColorMode)\nwatchEffect(injectClient)\n\nonUnmounted(() => {\n if (iframeEl.value)\n iframeEl.value.style.visibility = 'hidden'\n})\n\nfunction syncColorMode() {\n if (!iframeEl.value || !iframeEl.value.contentWindow)\n return\n try {\n const html = iframeEl.value.contentWindow.document.querySelector('html')\n if (!html)\n return\n\n const isDark = colorMode.value === 'dark'\n html.classList.toggle('dark', isDark)\n html.classList.toggle('light', !isDark)\n\n // Iframes are cached and this runs from a watcher, an `onload` and a timer —\n // observe each document once instead of stacking observers on it.\n if (observedDocuments.has(html))\n return\n observedDocuments.add(html)\n\n const ob = new MutationObserver(() => {\n const tabScheme = html.classList.contains('dark') ? 'dark' : 'light'\n // The push above trips this observer too. Only a *divergence* from what we\n // render means the tab picked a scheme of its own; treating our own write\n // as a choice would pin the UI to it and stop it following the OS.\n if (tabScheme !== colorMode.value)\n setEmbedderColorMode(tabScheme)\n })\n ob.observe(html, { attributes: true, attributeFilter: ['class'] })\n }\n catch (e) {\n }\n}\n\nconst injectionClient = useInjectionClient()\n\nfunction injectClient() {\n if (!iframeEl.value || !iframeEl.value.contentWindow)\n return\n try {\n iframeEl.value.contentWindow.__NUXT_DEVTOOLS__ = injectionClient.value\n }\n catch (e) {\n }\n}\n\nfunction updateIframeBox() {\n if (!iframeEl.value)\n return\n Object.assign(iframeEl.value.style, {\n position: 'fixed',\n left: `${box.left}px`,\n top: `${box.top}px`,\n width: `${box.width}px`,\n height: `${box.height}px`,\n outline: 'none',\n })\n}\n</script>\n\n<template>\n <div ref=\"anchor\" h-full w-full />\n</template>\n","import { defineComponent as _defineComponent } from 'vue'\nimport { resolveComponent as _resolveComponent, withCtx as _withCtx, createVNode as _createVNode, toDisplayString as _toDisplayString, createTextVNode as _createTextVNode, unref as _unref, mergeProps as _mergeProps, resolveDynamicComponent as _resolveDynamicComponent } from \"vue\"\nimport { ssrRenderComponent as _ssrRenderComponent, ssrRenderVNode as _ssrRenderVNode, ssrInterpolate as _ssrInterpolate } from \"vue/server-renderer\"\n\nimport type { ModuleCustomTab } from '~/../src/types'\nimport { computed, onMounted } from 'vue'\nimport { useRoute, useRouter } from '#app/composables/router'\nimport { definePageMeta } from '#imports'\nimport { isDevAuthed, requestForAuth } from '~/composables/dev-auth'\nimport { rpc } from '~/composables/rpc'\nimport { useAllTabs } from '~/composables/state-tabs'\n\n\nexport default /*@__PURE__*/_defineComponent({\n __name: 'custom-[name]',\n __ssrInlineRender: true,\n props: {\n name: {}\n },\n setup(__props: any) {\n\nconst props = __props\n\ndefinePageMeta({\n layout: 'full',\n})\n\nconst route = useRoute()\nconst router = useRouter()\nconst name = computed(() => props.name ?? route.params.name)\nconst tabs = useAllTabs()\nconst tab = computed(() => tabs.value.find(i => i.name === name.value) as ModuleCustomTab | undefined)\n\nonMounted(() => {\n // if the tab is not found and passed a certain timeout, redirect to the overview page\n if (!tab.value) {\n setTimeout(() => {\n if (!tab.value)\n router.push('/modules/overview')\n }, 2000)\n }\n else if (tab.value.requireAuth && !isDevAuthed.value) {\n requestForAuth()\n }\n})\n\nreturn (_ctx: any,_push: any,_parent: any,_attrs: any) => {\n const _component_NPanelGrids = _resolveComponent(\"NPanelGrids\")!\n const _component_AuthRequiredPanel = _resolveComponent(\"AuthRequiredPanel\")!\n const _component_IframeView = _resolveComponent(\"IframeView\")!\n const _component_LaunchPage = _resolveComponent(\"LaunchPage\")!\n const _component_NCard = _resolveComponent(\"NCard\")!\n\n if (!tab.value) {\n _push(_ssrRenderComponent(_component_NPanelGrids, _attrs, {\n default: _withCtx((_, _push, _parent, _scopeId) => {\n if (_push) {\n _push(`<div flex=\"~ col gap2\" mxa items-center${\n _scopeId\n }><div i-carbon-queued mb2 text-5xl op50${\n _scopeId\n }></div><p text-xl${\n _scopeId\n }> Tab <code text-rose${\n _scopeId\n }>${\n _ssrInterpolate(name.value)\n }</code> not found </p><p op50${\n _scopeId\n }> It might because the module contributing this tab is not installed or enabled </p><p mt8 animate-pulse${\n _scopeId\n }> Redirecting to overview page... </p></div>`)\n } else {\n return [\n _createVNode(\"div\", {\n flex: \"~ col gap2\",\n mxa: \"\",\n \"items-center\": \"\"\n }, [\n _createVNode(\"div\", {\n \"i-carbon-queued\": \"\",\n mb2: \"\",\n \"text-5xl\": \"\",\n op50: \"\"\n }),\n _createVNode(\"p\", { \"text-xl\": \"\" }, [\n _createTextVNode(\" Tab \"),\n _createVNode(\"code\", { \"text-rose\": \"\" }, _toDisplayString(name.value), 1),\n _createTextVNode(\" not found \")\n ]),\n _createVNode(\"p\", { op50: \"\" }, \" It might because the module contributing this tab is not installed or enabled \"),\n _createVNode(\"p\", {\n mt8: \"\",\n \"animate-pulse\": \"\"\n }, \" Redirecting to overview page... \")\n ])\n ]\n }\n }),\n _: 1\n }, _parent))\n } else if (tab.value.requireAuth && !_unref(isDevAuthed)) {\n _push(_ssrRenderComponent(_component_AuthRequiredPanel, _attrs, null, _parent))\n } else if (tab.value.view.type === 'iframe') {\n _push(_ssrRenderComponent(_component_IframeView, _mergeProps({ tab: tab.value }, _attrs), null, _parent))\n } else if (tab.value.view.type === 'vnode') {\n _ssrRenderVNode(_push, _createVNode(_resolveDynamicComponent(tab.value.view.vnode), _attrs, null), _parent)\n } else if (tab.value.view.type === 'launch') {\n _push(_ssrRenderComponent(_component_LaunchPage, _mergeProps({\n name: `custom-${tab.value.name}`,\n icon: tab.value.view.icon || tab.value.icon,\n title: tab.value.view.title || tab.value.title,\n description: tab.value.view.description,\n actions: tab.value.view.actions,\n onAction: idx => _unref(rpc).customTabAction(tab.value!.name, idx)\n }, _attrs), null, _parent))\n } else {\n _push(_ssrRenderComponent(_component_NPanelGrids, _attrs, {\n default: _withCtx((_, _push, _parent, _scopeId) => {\n if (_push) {\n _push(_ssrRenderComponent(_component_NCard, {\n flex: \"~ col\",\n \"h-full\": \"\",\n \"items-center\": \"\",\n \"justify-center\": \"\"\n }, {\n default: _withCtx((_, _push, _parent, _scopeId) => {\n if (_push) {\n _push(` Unknown tab type ${_ssrInterpolate(tab.value.view)}`)\n } else {\n return [\n _createTextVNode(\" Unknown tab type \" + _toDisplayString(tab.value.view), 1)\n ]\n }\n }),\n _: 1\n }, _parent, _scopeId))\n } else {\n return [\n _createVNode(_component_NCard, {\n flex: \"~ col\",\n \"h-full\": \"\",\n \"items-center\": \"\",\n \"justify-center\": \"\"\n }, {\n default: _withCtx(() => [\n _createTextVNode(\" Unknown tab type \" + _toDisplayString(tab.value.view), 1)\n ]),\n _: 1\n })\n ]\n }\n }),\n _: 1\n }, _parent))\n }\n}\n}\n\n})","<script setup lang=\"ts\">\nimport type { ModuleCustomTab } from '~/../src/types'\nimport { computed, onMounted } from 'vue'\nimport { useRoute, useRouter } from '#app/composables/router'\nimport { definePageMeta } from '#imports'\nimport { isDevAuthed, requestForAuth } from '~/composables/dev-auth'\nimport { rpc } from '~/composables/rpc'\nimport { useAllTabs } from '~/composables/state-tabs'\n\nconst props = defineProps<{\n name?: string\n}>()\n\ndefinePageMeta({\n layout: 'full',\n})\n\nconst route = useRoute()\nconst router = useRouter()\nconst name = computed(() => props.name ?? route.params.name)\nconst tabs = useAllTabs()\nconst tab = computed(() => tabs.value.find(i => i.name === name.value) as ModuleCustomTab | undefined)\n\nonMounted(() => {\n // if the tab is not found and passed a certain timeout, redirect to the overview page\n if (!tab.value) {\n setTimeout(() => {\n if (!tab.value)\n router.push('/modules/overview')\n }, 2000)\n }\n else if (tab.value.requireAuth && !isDevAuthed.value) {\n requestForAuth()\n }\n})\n</script>\n\n<template>\n <template v-if=\"!tab\">\n <NPanelGrids>\n <div flex=\"~ col gap2\" mxa items-center>\n <div i-carbon-queued mb2 text-5xl op50 />\n <p text-xl>\n Tab <code text-rose>{{ name }}</code> not found\n </p>\n <p op50>\n It might because the module contributing this tab is not installed or enabled\n </p>\n <p mt8 animate-pulse>\n Redirecting to overview page...\n </p>\n </div>\n </NPanelGrids>\n </template>\n <template v-else-if=\"tab.requireAuth && !isDevAuthed\">\n <AuthRequiredPanel />\n </template>\n <template v-else-if=\"tab.view.type === 'iframe'\">\n <IframeView :tab=\"tab\" />\n </template>\n <template v-else-if=\"tab.view.type === 'vnode'\">\n <Component :is=\"tab.view.vnode\" />\n </template>\n <template v-else-if=\"tab.view.type === 'launch'\">\n <LaunchPage\n :name=\"`custom-${tab.name}`\"\n :icon=\"tab.view.icon || tab.icon\"\n :title=\"tab.view.title || tab.title\"\n :description=\"tab.view.description\"\n :actions=\"tab.view.actions\"\n @action=\"idx => rpc.customTabAction(tab!.name, idx)\"\n />\n </template>\n <template v-else>\n <NPanelGrids>\n <NCard flex=\"~ col\" h-full items-center justify-center>\n Unknown tab type {{ tab.view }}\n </NCard>\n </NPanelGrids>\n </template>\n</template>\n"],"version":3}
@@ -0,0 +1 @@
1
+ {"file":"debug-BcJZ8M6i.js","mappings":";;;;;;;;;;;;AASA,IAAA,2DAA4B,8BAAiB;CAC3C,QAAQ;CACR,mBAAmB;CACnB,OAAO,EACL,MAAM,CAAC,EACT;CACA,MAAM,SAAc;EAEtB,MAAM,QAAQ;EAEd,MAAM,QAAQ,eAAe;GAG3B,OAAO;IAAE,OAFU,0BAA0B,MAAM,MAAM,IAAI,EAE7C;IAAY,YADT,0BAA0B,MAAM,MAAM,IAAI,IAAI,GACrC;GAAW;EACzC,CAAC;EAED,QAAQ,MAAU,OAAW,SA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AC5K;IACL,MAAM,OAAO,eAAgB,MAAM,EAAE,EAAE;IACvC,MAAM,mBAAoB,0BAA0B;KAClD,MAAM;KACN,MAAM;KACN,aAAa;IACf,GAAG;KACD,SAAS,SAAU,GAAG,OAAO,SAAS,aAAa;MACjD,IAAI,OACF,MAAM,mBAAoB,oCAA4B,EACpD,2BAA2B,MAAO,OAAO,CAAC,CAAC,yBAAyB,CAAC,EACvE,GAAG,MAAM,SAAS,QAAQ,CAAC;WAE3B,OAAO,CACL,YAAa,oCAA4B,EACvC,2BAA2B,MAAO,OAAO,CAAC,CAAC,yBAAyB,CAAC,EACvE,GAAG,MAAM,GAAG,CAAC,yBAAyB,CAAC,CACzC;KAEJ,CAAC;KACD,GAAG;IACL,GAAG,OAAO,CAAC;IACX,MAAM,QAAQ;GAChB;EACF;CACA;AAEA,CAAC","names":[],"sources":["../../../../../../../../../../devtools-ui-kit/src/components/NBadgeHashed.vue?vue&type=script&setup=true&lang.ts","../../../../../../../../../../devtools-ui-kit/src/components/NBadgeHashed.vue","../../../../../../../../components/DebugModuleMutationRecords.vue?vue&type=script&setup=true&lang.ts","../../../../../../../../components/DebugModuleMutationRecords.vue","../../../../../../../../pages/modules/debug.vue?vue&type=script&setup=true&lang.ts","../../../../../../../../pages/modules/debug.vue"],"sourcesContent":["import { defineComponent as _defineComponent } from 'vue'\nimport { withCtx as _withCtx, toDisplayString as _toDisplayString, renderSlot as _renderSlot, createTextVNode as _createTextVNode, mergeProps as _mergeProps } from \"vue\"\nimport { ssrRenderSlot as _ssrRenderSlot, ssrRenderComponent as _ssrRenderComponent, ssrInterpolate as _ssrInterpolate } from \"vue/server-renderer\"\n\nimport { computed } from 'vue'\nimport { getHslColorFromStringHash } from '../composables/color'\nimport NBadge from './NBadge.vue'\n\n\nexport default /*@__PURE__*/_defineComponent({\n __name: 'NBadgeHashed',\n __ssrInlineRender: true,\n props: {\n text: {}\n },\n setup(__props: any) {\n\nconst props = __props\n\nconst color = computed(() => {\n const foreground = getHslColorFromStringHash(props.text, 50, 60)\n const background = getHslColorFromStringHash(props.text, 50, 60, 0.05)\n return { color: foreground, background }\n})\n\nreturn (_ctx: any,_push: any,_parent: any,_attrs: any) => {\n _push(_ssrRenderComponent(NBadge, _mergeProps({ style: color.value }, _attrs), {\n default: _withCtx((_, _push, _parent, _scopeId) => {\n if (_push) {\n _push(`${_ssrInterpolate(__props.text)}`)\n _ssrRenderSlot(_ctx.$slots, \"default\", {}, null, _push, _parent, _scopeId)\n } else {\n return [\n _createTextVNode(_toDisplayString(__props.text), 1),\n _renderSlot(_ctx.$slots, \"default\")\n ]\n }\n }),\n _: 3\n }, _parent))\n}\n}\n\n})","<script setup lang=\"ts\">\nimport { computed } from 'vue'\nimport { getHslColorFromStringHash } from '../composables/color'\nimport NBadge from './NBadge.vue'\n\nconst props = defineProps<{\n text: string\n}>()\n\nconst color = computed(() => {\n const foreground = getHslColorFromStringHash(props.text, 50, 60)\n const background = getHslColorFromStringHash(props.text, 50, 60, 0.05)\n return { color: foreground, background }\n})\n</script>\n\n<template>\n <NBadge :style=\"color\">\n {{ text }}<slot />\n </NBadge>\n</template>\n","import { defineComponent as _defineComponent } from 'vue'\nimport { resolveComponent as _resolveComponent, withCtx as _withCtx, createVNode as _createVNode } from \"vue\"\nimport { ssrRenderComponent as _ssrRenderComponent, ssrInterpolate as _ssrInterpolate, ssrRenderList as _ssrRenderList } from \"vue/server-renderer\"\n\nimport type { ServerDebugModuleMutationRecord } from '@nuxt/devtools-kit/types'\nimport { computed, ref } from 'vue'\n\n\nexport default /*@__PURE__*/_defineComponent({\n __name: 'DebugModuleMutationRecords',\n __ssrInlineRender: true,\n props: {\n moduleMutationRecords: {}\n },\n setup(__props: any) {\n\nconst props = __props\n\nconst WINDOWS_DRIVE_RE = /^[a-z]:[\\\\/]/i\n\nfunction isPath(path: string) {\n return path.startsWith('/') || path.match(WINDOWS_DRIVE_RE)\n}\n\n// const search = ref('')\nconst showBuiltin = ref(false)\nconst showTemplates = ref(false)\nconst showTranspile = ref(false)\nconst showPlugins = ref(false)\nconst showEmptyInitial = ref(false)\nconst moduleFilter = ref('')\n\nconst items = computed(() => {\n let arr = props.moduleMutationRecords\n if (!showBuiltin.value) {\n arr = arr.filter(i => !i.name.startsWith('nuxt:') && i.name !== '@nuxt/devtools')\n }\n if (!showTemplates.value) {\n arr = arr.filter(i => i.keys.join('.') !== 'build.templates')\n }\n if (!showTranspile.value) {\n arr = arr.filter(i => i.keys.join('.') !== 'build.transpile')\n }\n if (!showPlugins.value) {\n arr = arr.filter(i => i.keys.join('.') !== 'plugins')\n }\n if (!showEmptyInitial.value) {\n arr = arr.filter(i => i.method || (i.value !== '[]' && i.value !== '{}'))\n }\n if (moduleFilter.value) {\n arr = arr.filter(i => i.name === moduleFilter.value)\n }\n return arr\n})\n\nreturn (_ctx: any,_push: any,_parent: any,_attrs: any) => {\n const _component_NCheckbox = _resolveComponent(\"NCheckbox\")!\n const _component_NBadgeHashed = _resolveComponent(\"NBadgeHashed\")!\n const _component_NButton = _resolveComponent(\"NButton\")!\n const _component_FilepathItem = _resolveComponent(\"FilepathItem\")!\n const _component_NCodeBlock = _resolveComponent(\"NCodeBlock\")!\n\n _push(`<!--[--><div flex=\"~ gap-2 col\" mb4><div flex=\"~ gap-3 items-center\">`)\n _push(_ssrRenderComponent(_component_NCheckbox, {\n modelValue: showBuiltin.value,\n \"onUpdate:modelValue\": ($event: any) => ((showBuiltin).value = $event),\n n: \"primary\"\n }, {\n default: _withCtx((_, _push, _parent, _scopeId) => {\n if (_push) {\n _push(`<span ws-nowrap op75${_scopeId}>Builtin Modules</span>`)\n } else {\n return [\n _createVNode(\"span\", {\n \"ws-nowrap\": \"\",\n op75: \"\"\n }, \"Builtin Modules\")\n ]\n }\n }),\n _: 1\n }, _parent))\n _push(_ssrRenderComponent(_component_NCheckbox, {\n modelValue: showTemplates.value,\n \"onUpdate:modelValue\": ($event: any) => ((showTemplates).value = $event),\n n: \"primary\"\n }, {\n default: _withCtx((_, _push, _parent, _scopeId) => {\n if (_push) {\n _push(`<span ws-nowrap op75${_scopeId}>Templates</span>`)\n } else {\n return [\n _createVNode(\"span\", {\n \"ws-nowrap\": \"\",\n op75: \"\"\n }, \"Templates\")\n ]\n }\n }),\n _: 1\n }, _parent))\n _push(_ssrRenderComponent(_component_NCheckbox, {\n modelValue: showTranspile.value,\n \"onUpdate:modelValue\": ($event: any) => ((showTranspile).value = $event),\n n: \"primary\"\n }, {\n default: _withCtx((_, _push, _parent, _scopeId) => {\n if (_push) {\n _push(`<span ws-nowrap op75${_scopeId}>Transpile</span>`)\n } else {\n return [\n _createVNode(\"span\", {\n \"ws-nowrap\": \"\",\n op75: \"\"\n }, \"Transpile\")\n ]\n }\n }),\n _: 1\n }, _parent))\n _push(_ssrRenderComponent(_component_NCheckbox, {\n modelValue: showPlugins.value,\n \"onUpdate:modelValue\": ($event: any) => ((showPlugins).value = $event),\n n: \"primary\"\n }, {\n default: _withCtx((_, _push, _parent, _scopeId) => {\n if (_push) {\n _push(`<span ws-nowrap op75${_scopeId}>Plugins</span>`)\n } else {\n return [\n _createVNode(\"span\", {\n \"ws-nowrap\": \"\",\n op75: \"\"\n }, \"Plugins\")\n ]\n }\n }),\n _: 1\n }, _parent))\n _push(_ssrRenderComponent(_component_NCheckbox, {\n modelValue: showEmptyInitial.value,\n \"onUpdate:modelValue\": ($event: any) => ((showEmptyInitial).value = $event),\n n: \"primary\"\n }, {\n default: _withCtx((_, _push, _parent, _scopeId) => {\n if (_push) {\n _push(`<span ws-nowrap op75${_scopeId}>Empty Initial</span>`)\n } else {\n return [\n _createVNode(\"span\", {\n \"ws-nowrap\": \"\",\n op75: \"\"\n }, \"Empty Initial\")\n ]\n }\n }),\n _: 1\n }, _parent))\n if (moduleFilter.value) {\n _push(`<div flex=\"~ gap-1\" items-center p1 border=\"~ base rounded\">`)\n _push(_ssrRenderComponent(_component_NBadgeHashed, {\n \"font-mono\": \"\",\n text: moduleFilter.value\n }, null, _parent))\n _push(_ssrRenderComponent(_component_NButton, {\n icon: \"carbon-close\",\n border: false,\n onClick: ($event: any) => (moduleFilter.value = '')\n }, null, _parent))\n _push(`</div>`)\n } else {\n _push(`<!---->`)\n }\n _push(`</div></div><table max-w-full of-auto><thead border=\"b base\"><tr><th ws-nowrap p1 text-center font-bold> Index </th><th ws-nowrap p1 text-center font-bold> Module </th><th ws-nowrap p1 text-center font-bold> Key Path </th><th ws-nowrap p1 text-center font-bold> Method </th><th ws-nowrap p1 text-center font-bold> Value </th></tr></thead><tbody><!--[-->`)\n _ssrRenderList(items.value, (record) => {\n _push(`<tr border=\"b dashed transparent hover:base\"><td text-center op50><div>${_ssrInterpolate(__props.moduleMutationRecords.indexOf(record) + 1)}</div></td><td>`)\n if (record.name && isPath(record.name)) {\n _push(_ssrRenderComponent(_component_FilepathItem, {\n filepath: record.name\n }, null, _parent))\n } else {\n _push(_ssrRenderComponent(_component_NBadgeHashed, {\n role: \"button\",\n \"font-mono\": \"\",\n text: record.name,\n onClick: ($event: any) => (moduleFilter.value = record.name)\n }, null, _parent))\n }\n _push(`</td><td><code flex=\"~\" px4><!--[-->`)\n _ssrRenderList(record.keys, (key, idy) => {\n _push(`<!--[--><span>${_ssrInterpolate(key)}</span>`)\n if (idy < record.keys.length - 1) {\n _push(`<span op50> . </span>`)\n } else {\n _push(`<!---->`)\n }\n _push(`<!--]-->`)\n })\n _push(`<!--]--></code></td><td px2 text-center>`)\n _push(_ssrRenderComponent(_component_NBadgeHashed, {\n \"font-mono\": \"\",\n text: record.method || '=',\n class: record.method ? '' : 'saturate-0'\n }, null, _parent))\n _push(`</td><td of-auto>`)\n _push(_ssrRenderComponent(_component_NCodeBlock, {\n code: String(record.value),\n lang: \"ts\",\n \"grammar-context-code\": \"let a = \",\n \"ws-normal\": \"\",\n \"break-all\": \"\",\n py1: \"\",\n lines: false,\n inline: true\n }, null, _parent))\n _push(`</td></tr>`)\n })\n _push(`<!--]--></tbody></table><!--]-->`)\n}\n}\n\n})","<script setup lang=\"ts\">\nimport type { ServerDebugModuleMutationRecord } from '@nuxt/devtools-kit/types'\nimport { computed, ref } from 'vue'\n\nconst props = defineProps<{\n moduleMutationRecords: ServerDebugModuleMutationRecord[]\n}>()\n\nconst WINDOWS_DRIVE_RE = /^[a-z]:[\\\\/]/i\n\nfunction isPath(path: string) {\n return path.startsWith('/') || path.match(WINDOWS_DRIVE_RE)\n}\n\n// const search = ref('')\nconst showBuiltin = ref(false)\nconst showTemplates = ref(false)\nconst showTranspile = ref(false)\nconst showPlugins = ref(false)\nconst showEmptyInitial = ref(false)\nconst moduleFilter = ref('')\n\nconst items = computed(() => {\n let arr = props.moduleMutationRecords\n if (!showBuiltin.value) {\n arr = arr.filter(i => !i.name.startsWith('nuxt:') && i.name !== '@nuxt/devtools')\n }\n if (!showTemplates.value) {\n arr = arr.filter(i => i.keys.join('.') !== 'build.templates')\n }\n if (!showTranspile.value) {\n arr = arr.filter(i => i.keys.join('.') !== 'build.transpile')\n }\n if (!showPlugins.value) {\n arr = arr.filter(i => i.keys.join('.') !== 'plugins')\n }\n if (!showEmptyInitial.value) {\n arr = arr.filter(i => i.method || (i.value !== '[]' && i.value !== '{}'))\n }\n if (moduleFilter.value) {\n arr = arr.filter(i => i.name === moduleFilter.value)\n }\n return arr\n})\n</script>\n\n<template>\n <div flex=\"~ gap-2 col\" mb4>\n <!-- <NTextInput v-model=\"search\" placeholder=\"Search\" w-full /> -->\n <div flex=\"~ gap-3 items-center\">\n <NCheckbox v-model=\"showBuiltin\" n=\"primary\">\n <span ws-nowrap op75>Builtin Modules</span>\n </NCheckbox>\n <NCheckbox v-model=\"showTemplates\" n=\"primary\">\n <span ws-nowrap op75>Templates</span>\n </NCheckbox>\n <NCheckbox v-model=\"showTranspile\" n=\"primary\">\n <span ws-nowrap op75>Transpile</span>\n </NCheckbox>\n <NCheckbox v-model=\"showPlugins\" n=\"primary\">\n <span ws-nowrap op75>Plugins</span>\n </NCheckbox>\n <NCheckbox v-model=\"showEmptyInitial\" n=\"primary\">\n <span ws-nowrap op75>Empty Initial</span>\n </NCheckbox>\n <div v-if=\"moduleFilter\" flex=\"~ gap-1\" items-center p1 border=\"~ base rounded\">\n <NBadgeHashed font-mono :text=\"moduleFilter\" />\n <NButton icon=\"carbon-close\" :border=\"false\" @click=\"moduleFilter = ''\" />\n </div>\n </div>\n </div>\n <table max-w-full of-auto>\n <thead border=\"b base\">\n <tr>\n <th ws-nowrap p1 text-center font-bold>\n Index\n </th>\n <th ws-nowrap p1 text-center font-bold>\n Module\n </th>\n <th ws-nowrap p1 text-center font-bold>\n Key Path\n </th>\n <th ws-nowrap p1 text-center font-bold>\n Method\n </th>\n <th ws-nowrap p1 text-center font-bold>\n Value\n </th>\n </tr>\n </thead>\n <tbody>\n <tr\n v-for=\"record of items\"\n :key=\"moduleMutationRecords.indexOf(record)\"\n border=\"b dashed transparent hover:base\"\n >\n <td text-center op50>\n <div>{{ moduleMutationRecords.indexOf(record) + 1 }}</div>\n </td>\n <td>\n <FilepathItem v-if=\"record.name && isPath(record.name)\" :filepath=\"record.name\" />\n <NBadgeHashed\n v-else\n role=\"button\" font-mono\n :text=\"record.name\"\n @click=\"moduleFilter = record.name\"\n />\n </td>\n <td>\n <code flex=\"~\" px4>\n <template v-for=\"key, idy of record.keys\" :key=\"idy\">\n <span>{{ key }}</span>\n <span v-if=\"idy < record.keys.length - 1\" op50>\n .\n </span>\n </template>\n </code>\n </td>\n <td px2 text-center>\n <NBadgeHashed font-mono :text=\"record.method || '='\" :class=\"record.method ? '' : 'saturate-0'\" />\n </td>\n <td of-auto>\n <NCodeBlock\n :code=\"String(record.value)\"\n lang=\"ts\"\n grammar-context-code=\"let a = \"\n ws-normal break-all py1\n :lines=\"false\" :inline=\"true\"\n />\n </td>\n </tr>\n </tbody>\n </table>\n</template>\n","import { defineComponent as _defineComponent } from 'vue'\nimport { unref as _unref, mergeProps as _mergeProps, resolveComponent as _resolveComponent, withCtx as _withCtx, createVNode as _createVNode } from \"vue\"\nimport { ssrRenderAttrs as _ssrRenderAttrs, ssrRenderComponent as _ssrRenderComponent } from \"vue/server-renderer\"\n\nimport { definePageMeta } from '#imports'\nimport DebugModuleMutationRecords from '~/components/DebugModuleMutationRecords.vue'\nimport { useServerDebugContext } from '~/composables/state'\n\n\nexport default /*@__PURE__*/_defineComponent({\n __name: 'debug',\n __ssrInlineRender: true,\n setup(__props) {\n\ndefinePageMeta({\n icon: 'i-carbon-debug',\n title: 'Debug',\n category: 'advanced',\n})\n\nconst context = useServerDebugContext()\n\nreturn (_ctx: any,_push: any,_parent: any,_attrs: any) => {\n const _component_NSectionBlock = _resolveComponent(\"NSectionBlock\")!\n\n if (!_unref(context)) {\n _push(`<div${_ssrRenderAttrs(_mergeProps({ p6: \"\" }, _attrs))}><div>No Debug Context Found</div><div>Set \\`debug: true\\` in your nuxt.config.ts to enable this panel</div></div>`)\n } else {\n _push(`<div${_ssrRenderAttrs(_attrs)}>`)\n _push(_ssrRenderComponent(_component_NSectionBlock, {\n icon: \"carbon-container-image-push-pull\",\n text: \"Module Mutation Records\",\n description: \"Records of module mutations to nuxt options\"\n }, {\n default: _withCtx((_, _push, _parent, _scopeId) => {\n if (_push) {\n _push(_ssrRenderComponent(DebugModuleMutationRecords, {\n \"module-mutation-records\": _unref(context).moduleMutationRecords || []\n }, null, _parent, _scopeId))\n } else {\n return [\n _createVNode(DebugModuleMutationRecords, {\n \"module-mutation-records\": _unref(context).moduleMutationRecords || []\n }, null, 8, [\"module-mutation-records\"])\n ]\n }\n }),\n _: 1\n }, _parent))\n _push(`</div>`)\n }\n}\n}\n\n})","<script setup lang=\"ts\">\nimport { definePageMeta } from '#imports'\nimport DebugModuleMutationRecords from '~/components/DebugModuleMutationRecords.vue'\nimport { useServerDebugContext } from '~/composables/state'\n\ndefinePageMeta({\n icon: 'i-carbon-debug',\n title: 'Debug',\n category: 'advanced',\n})\n\nconst context = useServerDebugContext()\n</script>\n\n<template>\n <div v-if=\"!context\" p6>\n <div>No Debug Context Found</div>\n <div>Set `debug: true` in your nuxt.config.ts to enable this panel</div>\n </div>\n <div v-else>\n <NSectionBlock\n icon=\"carbon-container-image-push-pull\"\n text=\"Module Mutation Records\"\n description=\"Records of module mutations to nuxt options\"\n >\n <DebugModuleMutationRecords\n :module-mutation-records=\"context.moduleMutationRecords || []\"\n />\n </NSectionBlock>\n </div>\n</template>\n"],"version":3}
@@ -0,0 +1 @@
1
+ {"file":"default-Bzh4dZQ5.js","mappings":"","names":[],"sources":["../../../../../../../../layouts/default.vue"],"sourcesContent":["<template>\n <div h-full of-auto n-panel-grids>\n <div h-full bg-base>\n <slot />\n </div>\n </div>\n</template>\n"],"version":3}