@nuxt/devtools 0.3.2 → 0.4.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/chunks/module-main.mjs +151 -3
- package/dist/client/200.html +2 -2
- package/dist/client/404.html +2 -2
- package/dist/client/__inspecting/index.html +2 -2
- package/dist/client/_nuxt/Badge.18a1faa1.js +1 -0
- package/dist/client/_nuxt/CodeSnippets.vue.93d86055.js +1 -0
- package/dist/client/_nuxt/DrawerRight.vue.753ffedf.js +1 -0
- package/dist/client/_nuxt/{DurationDisplay.vue.0d7e7768.js → DurationDisplay.vue.2e10a9ab.js} +1 -1
- package/dist/client/_nuxt/FilepathItem.vue.17a1ef3b.js +1 -0
- package/dist/client/_nuxt/LaunchPage.vue.d669f6a6.js +1 -0
- package/dist/client/_nuxt/NCheckbox.vue.e9f99715.js +1 -0
- package/dist/client/_nuxt/NCodeBlock.vue.bac56013.js +2 -0
- package/dist/client/_nuxt/NIconButton.vue.dc045a77.js +1 -0
- package/dist/client/_nuxt/NIconTitle.vue.20baf9ca.js +1 -0
- package/dist/client/_nuxt/{NMarkdown.vue.ae60adfb.js → NMarkdown.vue.04a4db38.js} +1 -1
- package/dist/client/_nuxt/NPanelGrids.02a70c97.js +1 -0
- package/dist/client/_nuxt/NSectionBlock.a11f230b.js +1 -0
- package/dist/client/_nuxt/NSelect.vue.ee701084.js +1 -0
- package/dist/client/_nuxt/NSwitch.vue.57428898.js +1 -0
- package/dist/client/_nuxt/NTextInput.vue.321edbfc.js +1 -0
- package/dist/client/_nuxt/NTip.vue.6b28ea49.js +1 -0
- package/dist/client/_nuxt/{NpmVersionCheck.vue.2469b5b3.js → NpmVersionCheck.vue.cf2f92dc.js} +1 -1
- package/dist/client/_nuxt/{NuxtLogo.7b90e5d5.js → NuxtLogo.9393be93.js} +1 -1
- package/dist/client/_nuxt/{PanelLeftRight.vue.73b30819.js → PanelLeftRight.vue.9f476475.js} +1 -1
- package/dist/client/_nuxt/StateEditor.vue.780bea4b.js +1 -0
- package/dist/client/_nuxt/__inspecting.dca08c99.js +1 -0
- package/dist/client/_nuxt/assets.32f43d91.js +16 -0
- package/dist/client/_nuxt/components.cf2ad6d8.js +1 -0
- package/dist/client/_nuxt/constants.126da185.js +1 -0
- package/dist/client/_nuxt/custom-_name_.02a0e7a4.js +1 -0
- package/dist/client/_nuxt/default.15ad6f94.js +1 -0
- package/dist/client/_nuxt/editor.21c0f631.js +1 -0
- package/dist/client/_nuxt/entry.573eb475.js +259 -0
- package/dist/client/_nuxt/entry.7a4bae62.css +32 -0
- package/dist/client/_nuxt/{error-404.d7646546.js → error-404.362e6f4b.js} +1 -1
- package/dist/client/_nuxt/{error-500.6cac56ab.js → error-500.333947d6.js} +1 -1
- package/dist/client/_nuxt/{error-component.a8114c77.js → error-component.9b2b9ea0.js} +2 -2
- package/dist/client/_nuxt/full.11c5f922.js +1 -0
- package/dist/client/_nuxt/fuse.esm.dd081c31.js +1 -0
- package/dist/client/_nuxt/{hooks.196bb064.js → hooks.5ac5215b.js} +1 -1
- package/dist/client/_nuxt/imports.a42ed4e0.js +1 -0
- package/dist/client/_nuxt/{index.6a39516e.js → index.207404a1.js} +1 -1
- package/dist/client/_nuxt/{middleware.6a82419a.js → middleware.8446ef05.js} +1 -1
- package/dist/client/_nuxt/modules.7af01df4.js +1 -0
- package/dist/client/_nuxt/{none.c8faecb4.js → none.a6f40eb7.js} +1 -1
- package/dist/client/_nuxt/overview.57469504.js +1 -0
- package/dist/client/_nuxt/pages.e7c45d03.js +1 -0
- package/dist/client/_nuxt/payload.45880f90.js +1 -0
- package/dist/client/_nuxt/plugins.c2b464a0.js +1 -0
- package/dist/client/_nuxt/runtime-configs.c3bb5842.js +1 -0
- package/dist/client/_nuxt/server-routes.39ca7aaf.js +9 -0
- package/dist/client/_nuxt/settings.63e9273e.js +1 -0
- package/dist/client/_nuxt/storage.997cf777.js +1 -0
- package/dist/client/_nuxt/terminals.c017f557.js +1 -0
- package/dist/client/_nuxt/unocss-runtime.32a65eb2.js +2 -0
- package/dist/client/_nuxt/virtual-files.554fde6c.js +1 -0
- package/dist/client/index.html +2 -2
- package/dist/client/modules/assets/index.html +2 -2
- package/dist/client/modules/components/index.html +2 -2
- package/dist/client/modules/hooks/index.html +2 -2
- package/dist/client/modules/imports/index.html +2 -2
- package/dist/client/modules/middleware/index.html +2 -2
- package/dist/client/modules/modules/index.html +2 -2
- package/dist/client/modules/overview/index.html +2 -2
- package/dist/client/modules/pages/index.html +2 -2
- package/dist/client/modules/payload/index.html +2 -2
- package/dist/client/modules/plugins/index.html +2 -2
- package/dist/client/modules/runtime-configs/index.html +2 -2
- package/dist/client/modules/server-routes/index.html +2 -2
- package/dist/client/modules/storage/index.html +2 -2
- package/dist/client/modules/terminals/index.html +2 -2
- package/dist/client/modules/virtual-files/index.html +2 -2
- package/dist/client/settings/index.html +2 -2
- package/dist/module.json +1 -1
- package/package.json +23 -24
- package/dist/client/_nuxt/Badge.b694092e.js +0 -1
- package/dist/client/_nuxt/DrawerRight.vue.f3060893.js +0 -1
- package/dist/client/_nuxt/FilepathItem.vue.c7d65dc2.js +0 -1
- package/dist/client/_nuxt/LaunchPage.vue.b1763741.js +0 -1
- package/dist/client/_nuxt/NCheckbox.vue.f03c4497.js +0 -1
- package/dist/client/_nuxt/NCodeBlock.vue.f41a0d29.js +0 -1
- package/dist/client/_nuxt/NIconButton.vue.8aefaa88.js +0 -1
- package/dist/client/_nuxt/NIconTitle.vue.6c944aa7.js +0 -1
- package/dist/client/_nuxt/NSectionBlock.cef5b3bf.js +0 -1
- package/dist/client/_nuxt/NSelect.vue.bd089297.js +0 -1
- package/dist/client/_nuxt/NSwitch.vue.ce97ebe7.js +0 -1
- package/dist/client/_nuxt/NTextInput.vue.188f5529.js +0 -1
- package/dist/client/_nuxt/NTip.vue.2f192405.js +0 -1
- package/dist/client/_nuxt/StateEditor.vue.96fdf802.js +0 -1
- package/dist/client/_nuxt/TabIcon.vue.ee21be15.js +0 -1
- package/dist/client/_nuxt/__inspecting.6125f0dc.js +0 -1
- package/dist/client/_nuxt/assets.3fa6901a.js +0 -16
- package/dist/client/_nuxt/components.5589dfe1.js +0 -1
- package/dist/client/_nuxt/context.10127184.js +0 -1
- package/dist/client/_nuxt/custom-_name_.3535f298.js +0 -1
- package/dist/client/_nuxt/default.20732cb9.js +0 -1
- package/dist/client/_nuxt/editor.58d10855.js +0 -1
- package/dist/client/_nuxt/entry.2594199e.css +0 -32
- package/dist/client/_nuxt/entry.e1ce6ad4.js +0 -259
- package/dist/client/_nuxt/fuse.esm.88e2763d.js +0 -1
- package/dist/client/_nuxt/imports.0af9087e.js +0 -1
- package/dist/client/_nuxt/layouts.f9116de3.js +0 -1
- package/dist/client/_nuxt/modules.44c94367.js +0 -1
- package/dist/client/_nuxt/overview.8e443c04.js +0 -1
- package/dist/client/_nuxt/pages.0df70537.js +0 -1
- package/dist/client/_nuxt/payload.a31b3317.js +0 -1
- package/dist/client/_nuxt/plugins.4a0a667e.js +0 -1
- package/dist/client/_nuxt/runtime-configs.2e7a9840.js +0 -1
- package/dist/client/_nuxt/server-routes.47766769.js +0 -1
- package/dist/client/_nuxt/settings.d06b4aaf.js +0 -1
- package/dist/client/_nuxt/storage.eb42392f.js +0 -1
- package/dist/client/_nuxt/terminals.1710aa98.js +0 -1
- package/dist/client/_nuxt/unocss-runtime.4fc34dc6.js +0 -2
- package/dist/client/_nuxt/virtual-files.1b4b12ba.js +0 -1
- package/dist/client/modules/layouts/index.html +0 -7
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
<!DOCTYPE html>
|
|
2
2
|
<html >
|
|
3
3
|
<head><meta charset="utf-8">
|
|
4
|
-
<meta name="viewport" content="width=device-width, initial-scale=1"><link rel="modulepreload" as="script" crossorigin href="/__nuxt_devtools__/client/_nuxt/entry.
|
|
4
|
+
<meta name="viewport" content="width=device-width, initial-scale=1"><link rel="modulepreload" as="script" crossorigin href="/__nuxt_devtools__/client/_nuxt/entry.573eb475.js"><link rel="preload" as="style" href="/__nuxt_devtools__/client/_nuxt/entry.7a4bae62.css"><link rel="prefetch" as="script" crossorigin href="/__nuxt_devtools__/client/_nuxt/index.ce8efa93.js"><link rel="prefetch" as="script" crossorigin href="/__nuxt_devtools__/client/_nuxt/default.15ad6f94.js"><link rel="prefetch" as="script" crossorigin href="/__nuxt_devtools__/client/_nuxt/full.11c5f922.js"><link rel="prefetch" as="script" crossorigin href="/__nuxt_devtools__/client/_nuxt/none.a6f40eb7.js"><link rel="prefetch" as="script" crossorigin href="/__nuxt_devtools__/client/_nuxt/unocss-runtime.32a65eb2.js"><link rel="prefetch" as="script" crossorigin href="/__nuxt_devtools__/client/_nuxt/error-component.9b2b9ea0.js"><link rel="stylesheet" href="/__nuxt_devtools__/client/_nuxt/entry.7a4bae62.css"><script>"use strict";const w=window,de=document.documentElement,knownColorSchemes=["dark","light"],preference=window.localStorage.getItem("nuxt-color-mode")||"system";let value=preference==="system"?getColorScheme():preference;const forcedColorMode=de.getAttribute("data-color-mode-forced");forcedColorMode&&(value=forcedColorMode),addColorScheme(value),w["__NUXT_COLOR_MODE__"]={preference,value,getColorScheme,addColorScheme,removeColorScheme};function addColorScheme(e){const o=""+e+"",t="";de.classList?de.classList.add(o):de.className+=" "+o,t&&de.setAttribute("data-"+t,e)}function removeColorScheme(e){const o=""+e+"",t="";de.classList?de.classList.remove(o):de.className=de.className.replace(new RegExp(o,"g"),""),t&&de.removeAttribute("data-"+t)}function prefersColorScheme(e){return w.matchMedia("(prefers-color-scheme"+e+")")}function getColorScheme(){if(w.matchMedia&&prefersColorScheme("").media!=="not all"){for(const e of knownColorSchemes)if(prefersColorScheme(":"+e).matches)return e}return"light"}
|
|
5
5
|
</script></head>
|
|
6
|
-
<body ><div id="__nuxt"></div><script>window.__NUXT__={serverRendered:false,config:{public:{fixture4:"public runtime config from nuxt.config.ts"},app:{baseURL:"\u002F__nuxt_devtools__\u002Fclient",buildAssetsDir:"\u002F_nuxt\u002F",cdnURL:""}}
|
|
6
|
+
<body ><div id="__nuxt"></div><script>window.__NUXT__={_errors:{},serverRendered:false,data:{},state:{},config:{public:{fixture4:"public runtime config from nuxt.config.ts"},app:{baseURL:"\u002F__nuxt_devtools__\u002Fclient",buildAssetsDir:"\u002F_nuxt\u002F",cdnURL:""}}}</script><script type="module" src="/__nuxt_devtools__/client/_nuxt/entry.573eb475.js" crossorigin></script></body>
|
|
7
7
|
</html>
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
<!DOCTYPE html>
|
|
2
2
|
<html >
|
|
3
3
|
<head><meta charset="utf-8">
|
|
4
|
-
<meta name="viewport" content="width=device-width, initial-scale=1"><link rel="modulepreload" as="script" crossorigin href="/__nuxt_devtools__/client/_nuxt/entry.
|
|
4
|
+
<meta name="viewport" content="width=device-width, initial-scale=1"><link rel="modulepreload" as="script" crossorigin href="/__nuxt_devtools__/client/_nuxt/entry.573eb475.js"><link rel="preload" as="style" href="/__nuxt_devtools__/client/_nuxt/entry.7a4bae62.css"><link rel="prefetch" as="script" crossorigin href="/__nuxt_devtools__/client/_nuxt/index.ce8efa93.js"><link rel="prefetch" as="script" crossorigin href="/__nuxt_devtools__/client/_nuxt/default.15ad6f94.js"><link rel="prefetch" as="script" crossorigin href="/__nuxt_devtools__/client/_nuxt/full.11c5f922.js"><link rel="prefetch" as="script" crossorigin href="/__nuxt_devtools__/client/_nuxt/none.a6f40eb7.js"><link rel="prefetch" as="script" crossorigin href="/__nuxt_devtools__/client/_nuxt/unocss-runtime.32a65eb2.js"><link rel="prefetch" as="script" crossorigin href="/__nuxt_devtools__/client/_nuxt/error-component.9b2b9ea0.js"><link rel="stylesheet" href="/__nuxt_devtools__/client/_nuxt/entry.7a4bae62.css"><script>"use strict";const w=window,de=document.documentElement,knownColorSchemes=["dark","light"],preference=window.localStorage.getItem("nuxt-color-mode")||"system";let value=preference==="system"?getColorScheme():preference;const forcedColorMode=de.getAttribute("data-color-mode-forced");forcedColorMode&&(value=forcedColorMode),addColorScheme(value),w["__NUXT_COLOR_MODE__"]={preference,value,getColorScheme,addColorScheme,removeColorScheme};function addColorScheme(e){const o=""+e+"",t="";de.classList?de.classList.add(o):de.className+=" "+o,t&&de.setAttribute("data-"+t,e)}function removeColorScheme(e){const o=""+e+"",t="";de.classList?de.classList.remove(o):de.className=de.className.replace(new RegExp(o,"g"),""),t&&de.removeAttribute("data-"+t)}function prefersColorScheme(e){return w.matchMedia("(prefers-color-scheme"+e+")")}function getColorScheme(){if(w.matchMedia&&prefersColorScheme("").media!=="not all"){for(const e of knownColorSchemes)if(prefersColorScheme(":"+e).matches)return e}return"light"}
|
|
5
5
|
</script></head>
|
|
6
|
-
<body ><div id="__nuxt"></div><script>window.__NUXT__={serverRendered:false,config:{public:{fixture4:"public runtime config from nuxt.config.ts"},app:{baseURL:"\u002F__nuxt_devtools__\u002Fclient",buildAssetsDir:"\u002F_nuxt\u002F",cdnURL:""}}
|
|
6
|
+
<body ><div id="__nuxt"></div><script>window.__NUXT__={_errors:{},serverRendered:false,data:{},state:{},config:{public:{fixture4:"public runtime config from nuxt.config.ts"},app:{baseURL:"\u002F__nuxt_devtools__\u002Fclient",buildAssetsDir:"\u002F_nuxt\u002F",cdnURL:""}}}</script><script type="module" src="/__nuxt_devtools__/client/_nuxt/entry.573eb475.js" crossorigin></script></body>
|
|
7
7
|
</html>
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
<!DOCTYPE html>
|
|
2
2
|
<html >
|
|
3
3
|
<head><meta charset="utf-8">
|
|
4
|
-
<meta name="viewport" content="width=device-width, initial-scale=1"><link rel="modulepreload" as="script" crossorigin href="/__nuxt_devtools__/client/_nuxt/entry.
|
|
4
|
+
<meta name="viewport" content="width=device-width, initial-scale=1"><link rel="modulepreload" as="script" crossorigin href="/__nuxt_devtools__/client/_nuxt/entry.573eb475.js"><link rel="preload" as="style" href="/__nuxt_devtools__/client/_nuxt/entry.7a4bae62.css"><link rel="prefetch" as="script" crossorigin href="/__nuxt_devtools__/client/_nuxt/index.ce8efa93.js"><link rel="prefetch" as="script" crossorigin href="/__nuxt_devtools__/client/_nuxt/default.15ad6f94.js"><link rel="prefetch" as="script" crossorigin href="/__nuxt_devtools__/client/_nuxt/full.11c5f922.js"><link rel="prefetch" as="script" crossorigin href="/__nuxt_devtools__/client/_nuxt/none.a6f40eb7.js"><link rel="prefetch" as="script" crossorigin href="/__nuxt_devtools__/client/_nuxt/unocss-runtime.32a65eb2.js"><link rel="prefetch" as="script" crossorigin href="/__nuxt_devtools__/client/_nuxt/error-component.9b2b9ea0.js"><link rel="stylesheet" href="/__nuxt_devtools__/client/_nuxt/entry.7a4bae62.css"><script>"use strict";const w=window,de=document.documentElement,knownColorSchemes=["dark","light"],preference=window.localStorage.getItem("nuxt-color-mode")||"system";let value=preference==="system"?getColorScheme():preference;const forcedColorMode=de.getAttribute("data-color-mode-forced");forcedColorMode&&(value=forcedColorMode),addColorScheme(value),w["__NUXT_COLOR_MODE__"]={preference,value,getColorScheme,addColorScheme,removeColorScheme};function addColorScheme(e){const o=""+e+"",t="";de.classList?de.classList.add(o):de.className+=" "+o,t&&de.setAttribute("data-"+t,e)}function removeColorScheme(e){const o=""+e+"",t="";de.classList?de.classList.remove(o):de.className=de.className.replace(new RegExp(o,"g"),""),t&&de.removeAttribute("data-"+t)}function prefersColorScheme(e){return w.matchMedia("(prefers-color-scheme"+e+")")}function getColorScheme(){if(w.matchMedia&&prefersColorScheme("").media!=="not all"){for(const e of knownColorSchemes)if(prefersColorScheme(":"+e).matches)return e}return"light"}
|
|
5
5
|
</script></head>
|
|
6
|
-
<body ><div id="__nuxt"></div><script>window.__NUXT__={serverRendered:false,config:{public:{fixture4:"public runtime config from nuxt.config.ts"},app:{baseURL:"\u002F__nuxt_devtools__\u002Fclient",buildAssetsDir:"\u002F_nuxt\u002F",cdnURL:""}}
|
|
6
|
+
<body ><div id="__nuxt"></div><script>window.__NUXT__={_errors:{},serverRendered:false,data:{},state:{},config:{public:{fixture4:"public runtime config from nuxt.config.ts"},app:{baseURL:"\u002F__nuxt_devtools__\u002Fclient",buildAssetsDir:"\u002F_nuxt\u002F",cdnURL:""}}}</script><script type="module" src="/__nuxt_devtools__/client/_nuxt/entry.573eb475.js" crossorigin></script></body>
|
|
7
7
|
</html>
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
<!DOCTYPE html>
|
|
2
2
|
<html >
|
|
3
3
|
<head><meta charset="utf-8">
|
|
4
|
-
<meta name="viewport" content="width=device-width, initial-scale=1"><link rel="modulepreload" as="script" crossorigin href="/__nuxt_devtools__/client/_nuxt/entry.
|
|
4
|
+
<meta name="viewport" content="width=device-width, initial-scale=1"><link rel="modulepreload" as="script" crossorigin href="/__nuxt_devtools__/client/_nuxt/entry.573eb475.js"><link rel="preload" as="style" href="/__nuxt_devtools__/client/_nuxt/entry.7a4bae62.css"><link rel="prefetch" as="script" crossorigin href="/__nuxt_devtools__/client/_nuxt/index.ce8efa93.js"><link rel="prefetch" as="script" crossorigin href="/__nuxt_devtools__/client/_nuxt/default.15ad6f94.js"><link rel="prefetch" as="script" crossorigin href="/__nuxt_devtools__/client/_nuxt/full.11c5f922.js"><link rel="prefetch" as="script" crossorigin href="/__nuxt_devtools__/client/_nuxt/none.a6f40eb7.js"><link rel="prefetch" as="script" crossorigin href="/__nuxt_devtools__/client/_nuxt/unocss-runtime.32a65eb2.js"><link rel="prefetch" as="script" crossorigin href="/__nuxt_devtools__/client/_nuxt/error-component.9b2b9ea0.js"><link rel="stylesheet" href="/__nuxt_devtools__/client/_nuxt/entry.7a4bae62.css"><script>"use strict";const w=window,de=document.documentElement,knownColorSchemes=["dark","light"],preference=window.localStorage.getItem("nuxt-color-mode")||"system";let value=preference==="system"?getColorScheme():preference;const forcedColorMode=de.getAttribute("data-color-mode-forced");forcedColorMode&&(value=forcedColorMode),addColorScheme(value),w["__NUXT_COLOR_MODE__"]={preference,value,getColorScheme,addColorScheme,removeColorScheme};function addColorScheme(e){const o=""+e+"",t="";de.classList?de.classList.add(o):de.className+=" "+o,t&&de.setAttribute("data-"+t,e)}function removeColorScheme(e){const o=""+e+"",t="";de.classList?de.classList.remove(o):de.className=de.className.replace(new RegExp(o,"g"),""),t&&de.removeAttribute("data-"+t)}function prefersColorScheme(e){return w.matchMedia("(prefers-color-scheme"+e+")")}function getColorScheme(){if(w.matchMedia&&prefersColorScheme("").media!=="not all"){for(const e of knownColorSchemes)if(prefersColorScheme(":"+e).matches)return e}return"light"}
|
|
5
5
|
</script></head>
|
|
6
|
-
<body ><div id="__nuxt"></div><script>window.__NUXT__={serverRendered:false,config:{public:{fixture4:"public runtime config from nuxt.config.ts"},app:{baseURL:"\u002F__nuxt_devtools__\u002Fclient",buildAssetsDir:"\u002F_nuxt\u002F",cdnURL:""}}
|
|
6
|
+
<body ><div id="__nuxt"></div><script>window.__NUXT__={_errors:{},serverRendered:false,data:{},state:{},config:{public:{fixture4:"public runtime config from nuxt.config.ts"},app:{baseURL:"\u002F__nuxt_devtools__\u002Fclient",buildAssetsDir:"\u002F_nuxt\u002F",cdnURL:""}}}</script><script type="module" src="/__nuxt_devtools__/client/_nuxt/entry.573eb475.js" crossorigin></script></body>
|
|
7
7
|
</html>
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
<!DOCTYPE html>
|
|
2
2
|
<html >
|
|
3
3
|
<head><meta charset="utf-8">
|
|
4
|
-
<meta name="viewport" content="width=device-width, initial-scale=1"><link rel="modulepreload" as="script" crossorigin href="/__nuxt_devtools__/client/_nuxt/entry.
|
|
4
|
+
<meta name="viewport" content="width=device-width, initial-scale=1"><link rel="modulepreload" as="script" crossorigin href="/__nuxt_devtools__/client/_nuxt/entry.573eb475.js"><link rel="preload" as="style" href="/__nuxt_devtools__/client/_nuxt/entry.7a4bae62.css"><link rel="prefetch" as="script" crossorigin href="/__nuxt_devtools__/client/_nuxt/index.ce8efa93.js"><link rel="prefetch" as="script" crossorigin href="/__nuxt_devtools__/client/_nuxt/default.15ad6f94.js"><link rel="prefetch" as="script" crossorigin href="/__nuxt_devtools__/client/_nuxt/full.11c5f922.js"><link rel="prefetch" as="script" crossorigin href="/__nuxt_devtools__/client/_nuxt/none.a6f40eb7.js"><link rel="prefetch" as="script" crossorigin href="/__nuxt_devtools__/client/_nuxt/unocss-runtime.32a65eb2.js"><link rel="prefetch" as="script" crossorigin href="/__nuxt_devtools__/client/_nuxt/error-component.9b2b9ea0.js"><link rel="stylesheet" href="/__nuxt_devtools__/client/_nuxt/entry.7a4bae62.css"><script>"use strict";const w=window,de=document.documentElement,knownColorSchemes=["dark","light"],preference=window.localStorage.getItem("nuxt-color-mode")||"system";let value=preference==="system"?getColorScheme():preference;const forcedColorMode=de.getAttribute("data-color-mode-forced");forcedColorMode&&(value=forcedColorMode),addColorScheme(value),w["__NUXT_COLOR_MODE__"]={preference,value,getColorScheme,addColorScheme,removeColorScheme};function addColorScheme(e){const o=""+e+"",t="";de.classList?de.classList.add(o):de.className+=" "+o,t&&de.setAttribute("data-"+t,e)}function removeColorScheme(e){const o=""+e+"",t="";de.classList?de.classList.remove(o):de.className=de.className.replace(new RegExp(o,"g"),""),t&&de.removeAttribute("data-"+t)}function prefersColorScheme(e){return w.matchMedia("(prefers-color-scheme"+e+")")}function getColorScheme(){if(w.matchMedia&&prefersColorScheme("").media!=="not all"){for(const e of knownColorSchemes)if(prefersColorScheme(":"+e).matches)return e}return"light"}
|
|
5
5
|
</script></head>
|
|
6
|
-
<body ><div id="__nuxt"></div><script>window.__NUXT__={serverRendered:false,config:{public:{fixture4:"public runtime config from nuxt.config.ts"},app:{baseURL:"\u002F__nuxt_devtools__\u002Fclient",buildAssetsDir:"\u002F_nuxt\u002F",cdnURL:""}}
|
|
6
|
+
<body ><div id="__nuxt"></div><script>window.__NUXT__={_errors:{},serverRendered:false,data:{},state:{},config:{public:{fixture4:"public runtime config from nuxt.config.ts"},app:{baseURL:"\u002F__nuxt_devtools__\u002Fclient",buildAssetsDir:"\u002F_nuxt\u002F",cdnURL:""}}}</script><script type="module" src="/__nuxt_devtools__/client/_nuxt/entry.573eb475.js" crossorigin></script></body>
|
|
7
7
|
</html>
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
<!DOCTYPE html>
|
|
2
2
|
<html >
|
|
3
3
|
<head><meta charset="utf-8">
|
|
4
|
-
<meta name="viewport" content="width=device-width, initial-scale=1"><link rel="modulepreload" as="script" crossorigin href="/__nuxt_devtools__/client/_nuxt/entry.
|
|
4
|
+
<meta name="viewport" content="width=device-width, initial-scale=1"><link rel="modulepreload" as="script" crossorigin href="/__nuxt_devtools__/client/_nuxt/entry.573eb475.js"><link rel="preload" as="style" href="/__nuxt_devtools__/client/_nuxt/entry.7a4bae62.css"><link rel="prefetch" as="script" crossorigin href="/__nuxt_devtools__/client/_nuxt/index.ce8efa93.js"><link rel="prefetch" as="script" crossorigin href="/__nuxt_devtools__/client/_nuxt/default.15ad6f94.js"><link rel="prefetch" as="script" crossorigin href="/__nuxt_devtools__/client/_nuxt/full.11c5f922.js"><link rel="prefetch" as="script" crossorigin href="/__nuxt_devtools__/client/_nuxt/none.a6f40eb7.js"><link rel="prefetch" as="script" crossorigin href="/__nuxt_devtools__/client/_nuxt/unocss-runtime.32a65eb2.js"><link rel="prefetch" as="script" crossorigin href="/__nuxt_devtools__/client/_nuxt/error-component.9b2b9ea0.js"><link rel="stylesheet" href="/__nuxt_devtools__/client/_nuxt/entry.7a4bae62.css"><script>"use strict";const w=window,de=document.documentElement,knownColorSchemes=["dark","light"],preference=window.localStorage.getItem("nuxt-color-mode")||"system";let value=preference==="system"?getColorScheme():preference;const forcedColorMode=de.getAttribute("data-color-mode-forced");forcedColorMode&&(value=forcedColorMode),addColorScheme(value),w["__NUXT_COLOR_MODE__"]={preference,value,getColorScheme,addColorScheme,removeColorScheme};function addColorScheme(e){const o=""+e+"",t="";de.classList?de.classList.add(o):de.className+=" "+o,t&&de.setAttribute("data-"+t,e)}function removeColorScheme(e){const o=""+e+"",t="";de.classList?de.classList.remove(o):de.className=de.className.replace(new RegExp(o,"g"),""),t&&de.removeAttribute("data-"+t)}function prefersColorScheme(e){return w.matchMedia("(prefers-color-scheme"+e+")")}function getColorScheme(){if(w.matchMedia&&prefersColorScheme("").media!=="not all"){for(const e of knownColorSchemes)if(prefersColorScheme(":"+e).matches)return e}return"light"}
|
|
5
5
|
</script></head>
|
|
6
|
-
<body ><div id="__nuxt"></div><script>window.__NUXT__={serverRendered:false,config:{public:{fixture4:"public runtime config from nuxt.config.ts"},app:{baseURL:"\u002F__nuxt_devtools__\u002Fclient",buildAssetsDir:"\u002F_nuxt\u002F",cdnURL:""}}
|
|
6
|
+
<body ><div id="__nuxt"></div><script>window.__NUXT__={_errors:{},serverRendered:false,data:{},state:{},config:{public:{fixture4:"public runtime config from nuxt.config.ts"},app:{baseURL:"\u002F__nuxt_devtools__\u002Fclient",buildAssetsDir:"\u002F_nuxt\u002F",cdnURL:""}}}</script><script type="module" src="/__nuxt_devtools__/client/_nuxt/entry.573eb475.js" crossorigin></script></body>
|
|
7
7
|
</html>
|
package/dist/module.json
CHANGED
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nuxt/devtools",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "0.
|
|
4
|
+
"version": "0.4.1",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"repository": "nuxt/devtools",
|
|
7
7
|
"exports": {
|
|
@@ -30,50 +30,50 @@
|
|
|
30
30
|
"vite": "*"
|
|
31
31
|
},
|
|
32
32
|
"dependencies": {
|
|
33
|
-
"@nuxt/kit": "^3.
|
|
34
|
-
"birpc": "^0.2.
|
|
35
|
-
"consola": "^
|
|
33
|
+
"@nuxt/kit": "^3.4.1",
|
|
34
|
+
"birpc": "^0.2.11",
|
|
35
|
+
"consola": "^3.1.0",
|
|
36
36
|
"execa": "^7.1.1",
|
|
37
37
|
"fast-glob": "^3.2.12",
|
|
38
38
|
"get-port-please": "^3.0.1",
|
|
39
39
|
"global-dirs": "^3.0.1",
|
|
40
40
|
"h3": "^1.6.4",
|
|
41
|
-
"hookable": "^5.5.
|
|
41
|
+
"hookable": "^5.5.3",
|
|
42
42
|
"image-meta": "^0.1.1",
|
|
43
43
|
"is-installed-globally": "^0.4.0",
|
|
44
44
|
"launch-editor": "^2.6.0",
|
|
45
45
|
"local-pkg": "^0.4.3",
|
|
46
|
-
"nypm": "^0.
|
|
46
|
+
"nypm": "^0.2.0",
|
|
47
47
|
"pacote": "^15.1.1",
|
|
48
48
|
"pathe": "^1.1.0",
|
|
49
49
|
"picocolors": "^1.0.0",
|
|
50
50
|
"pkg-types": "^1.0.2",
|
|
51
|
-
"rc9": "^2.0
|
|
52
|
-
"semver": "^7.
|
|
51
|
+
"rc9": "^2.1.0",
|
|
52
|
+
"semver": "^7.5.0",
|
|
53
53
|
"sirv": "^2.0.2",
|
|
54
54
|
"tinyws": "^0.1.0",
|
|
55
|
-
"unimport": "^3.0.
|
|
56
|
-
"vite-plugin-inspect": "^0.7.
|
|
55
|
+
"unimport": "^3.0.6",
|
|
56
|
+
"vite-plugin-inspect": "^0.7.22",
|
|
57
57
|
"vite-plugin-vue-inspector": "^3.4.0",
|
|
58
58
|
"wait-on": "^7.0.1",
|
|
59
59
|
"which": "^3.0.0",
|
|
60
60
|
"ws": "^8.13.0",
|
|
61
|
-
"@nuxt/devtools-kit": "0.
|
|
62
|
-
"@nuxt/devtools-wizard": "0.
|
|
61
|
+
"@nuxt/devtools-kit": "0.4.1",
|
|
62
|
+
"@nuxt/devtools-wizard": "0.4.1"
|
|
63
63
|
},
|
|
64
64
|
"devDependencies": {
|
|
65
65
|
"@antfu/utils": "^0.7.2",
|
|
66
66
|
"@iconify-json/carbon": "^1.1.16",
|
|
67
67
|
"@iconify-json/logos": "^1.1.24",
|
|
68
68
|
"@iconify-json/mdi": "^1.1.50",
|
|
69
|
-
"@iconify-json/ri": "^1.1.
|
|
70
|
-
"@iconify-json/tabler": "^1.1.
|
|
69
|
+
"@iconify-json/ri": "^1.1.8",
|
|
70
|
+
"@iconify-json/tabler": "^1.1.73",
|
|
71
71
|
"@nuxtjs/color-mode": "^3.2.0",
|
|
72
|
-
"@unocss/nuxt": "^0.
|
|
73
|
-
"@unocss/preset-icons": "^0.
|
|
74
|
-
"@unocss/preset-uno": "^0.
|
|
75
|
-
"@unocss/runtime": "^0.
|
|
76
|
-
"@vueuse/nuxt": "^
|
|
72
|
+
"@unocss/nuxt": "^0.51.4",
|
|
73
|
+
"@unocss/preset-icons": "^0.51.4",
|
|
74
|
+
"@unocss/preset-uno": "^0.51.4",
|
|
75
|
+
"@unocss/runtime": "^0.51.4",
|
|
76
|
+
"@vueuse/nuxt": "^10.0.2",
|
|
77
77
|
"esno": "^0.16.3",
|
|
78
78
|
"flatted": "^3.2.7",
|
|
79
79
|
"floating-vue": "2.0.0-beta.20",
|
|
@@ -81,7 +81,7 @@
|
|
|
81
81
|
"json-editor-vue": "^0.10.5",
|
|
82
82
|
"markdown-it": "^13.0.1",
|
|
83
83
|
"nanoid": "^4.0.2",
|
|
84
|
-
"nuxt": "^3.
|
|
84
|
+
"nuxt": "^3.4.1",
|
|
85
85
|
"nuxt-vitest": "^0.6.9",
|
|
86
86
|
"ofetch": "^1.0.1",
|
|
87
87
|
"ohash": "^1.0.0",
|
|
@@ -89,15 +89,14 @@
|
|
|
89
89
|
"shiki-es": "^0.2.0",
|
|
90
90
|
"splitpanes": "^3.1.5",
|
|
91
91
|
"theme-vitesse": "^0.6.4",
|
|
92
|
-
"unocss": "^0.
|
|
93
|
-
"vanilla-jsoneditor": "^0.
|
|
92
|
+
"unocss": "^0.51.4",
|
|
93
|
+
"vanilla-jsoneditor": "^0.17.1",
|
|
94
94
|
"vis-data": "^7.1.6",
|
|
95
95
|
"vis-network": "^9.1.6",
|
|
96
|
-
"vue-template-promise": "^0.1.3",
|
|
97
96
|
"vue-tsc": "^1.2.0",
|
|
98
97
|
"xterm": "^5.1.0",
|
|
99
98
|
"xterm-addon-fit": "^0.7.0",
|
|
100
|
-
"@nuxt/devtools": "0.
|
|
99
|
+
"@nuxt/devtools": "0.4.1"
|
|
101
100
|
},
|
|
102
101
|
"scripts": {
|
|
103
102
|
"build": "pnpm dev:prepare && pnpm build:module && pnpm build:client && esno scripts/prepare.ts",
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{al as n,o,f as s,L as t}from"./entry.e1ce6ad4.js";const c={},r={class:"text-xs rounded whitespace-nowrap px-1.5 py-0.5 mx-0.5 select-none"};function a(e,_){return o(),s("span",r,[t(e.$slots,"default")])}const l=n(c,[["render",a]]);export{l as _};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{_ as i}from"./NIconButton.vue.8aefaa88.js";import{a as u,D as m,a0 as f,a1 as d,o as l,c as p,w as _,a2 as b,f as v,i as h,h as x,L as y,a3 as g,u as k,y as B}from"./entry.e1ce6ad4.js";const C={"w-full":"","of-auto":"","h-full":"",relative:""},V={inheritAttrs:!1},N=u({...V,__name:"DrawerRight",props:{modelValue:{type:Boolean},navbar:null,autoClose:{type:Boolean}},emits:["close"],setup(a,{emit:r}){const e=a,o=m(),{height:n}=f(()=>e.navbar,void 0,{box:"border-box"});return d(o,()=>{e.modelValue&&e.autoClose&&r("close")},{ignore:["a","button","summary"]}),(t,s)=>{const c=i;return l(),p(b,{"enter-active-class":"duration-200 ease-in","enter-from-class":"transform translate-x-1/1","enter-to-class":"opacity-100","leave-active-class":"duration-200 ease-out","leave-from-class":"opacity-100","leave-to-class":"transform translate-x-1/1"},{default:_(()=>[a.modelValue?(l(),v("div",g({key:0,ref_key:"el",ref:o,border:"l base",flex:"~ col gap-1","text-sm":"",absolute:"","of-auto":"","right-0":"","bottom-0":"","glass-effect":"","z-10":"","z-20":"",style:{top:`${k(n)}px`}},t.$attrs),[h(c,{absolute:"","z-20":"","text-xl":"","right-2":"","top-2":"",icon:"carbon-close",onClick:s[0]||(s[0]=$=>t.$emit("close"))}),x("div",C,[y(t.$slots,"default")])],16)):B("",!0)]),_:3})}}});export{N as _};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{a as u,A as d,m as h,ae as c,o,f as n,u as e,F as m,h as f,t as l,y as k,l as y,x as B}from"./entry.e1ce6ad4.js";import{o as N}from"./editor.58d10855.js";const g=["title"],v={key:0,op50:""},I=u({__name:"FilepathItem",props:{filepath:null,lineBreak:{type:Boolean},subpath:{type:Boolean}},setup(a){const s=a,i=d(),t=h(()=>s.filepath&&i.value?c(s.filepath,i.value.rootDir):{path:s.filepath});return(r,p)=>(o(),n("button",{"font-mono":"","hover:underline":"",class:B(a.lineBreak?"":"ws-nowrap of-hidden truncate"),title:a.filepath,onClick:p[0]||(p[0]=C=>("openInEditor"in r?r.openInEditor:e(N))(a.filepath))},[e(t).moduleName?(o(),n(m,{key:0},[f("span",null,l(e(t).moduleName),1),a.subpath?(o(),n("span",v,l(e(t).path.slice(e(t).moduleName.length)),1)):k("",!0)],64)):(o(),n(m,{key:1},[y(l(e(t).path),1)],64))],10,g))}});export{I as _};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{_ as f}from"./TabIcon.vue.ee21be15.js";import{_ as p}from"./NMarkdown.vue.ae60adfb.js";import{a as k,o as n,f as s,i as h,h as c,t as i,c as a,y as l,F as g,v as x,w as b,l as y,a3 as N,H as w,k as B}from"./entry.e1ce6ad4.js";const C={flex:"~ col gap2","h-full":"","items-center":"","justify-center":""},$={"text-xl":""},v={flex:"~ gap2 wrap"},P=k({__name:"LaunchPage",props:{icon:null,title:null,description:null,actions:null},emits:["action"],setup(e){return(r,V)=>{const m=f,d=p,_=w,u=B;return n(),s("div",C,[h(m,{"text-5xl":"",mb4:"",icon:e.icon||e.icon,title:e.title},null,8,["icon","title"]),c("h1",$,i(e.title),1),e.description?(n(),a(d,{key:0,op50:"","text-center":"","text-base":"","mt--1":"",mb2:"",markdown:e.description},null,8,["markdown"])):l("",!0),c("div",v,[(n(!0),s(g,null,x(e.actions,(t,o)=>(n(),a(u,N({key:o,n:"solid primary",disabled:t.pending,to:t.src,target:t.src?"_blank":void 0},t.attrs,{onClick:()=>{t.handle?.(),r.$emit("action",o)}}),{default:b(()=>[t.pending?(n(),a(_,{key:0,icon:"carbon-circle-dash","animate-spin":""})):l("",!0),y(" "+i(t.label),1)]),_:2},1040,["disabled","to","target","onClick"]))),128))])])}}});export{P as _};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{a as i,aA as r,o as b,f as p,aD as u,aP as h,u as a,h as n,K as k,ax as f,i as m,L as x,x as v,H as _}from"./entry.e1ce6ad4.js";const V=["checked","disabled"],y=["disabled"],B={class:"n-transition n-checkbox-box n-checked:n-checkbox-box-checked peer-active:n-active-base peer-focus-visible:n-focus-base"},K=i({__name:"NCheckbox",props:{modelValue:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1}},setup(o,{emit:l}){const e=r(o,"modelValue",l,{passive:!0});return(t,s)=>{const d=_;return b(),p("label",{class:"items-center select-none n-disabled:n-disabled n-checkbox hover:n-checkbox-hover",checked:a(e)||null,disabled:o.disabled||null},[u(n("input",{"onUpdate:modelValue":s[0]||(s[0]=c=>k(e)?e.value=c:null),type:"checkbox",class:"absolute op0 peer",disabled:o.disabled,onKeypress:s[1]||(s[1]=f(c=>e.value=!a(e),["enter"]))},null,40,y),[[h,a(e)]]),n("span",B,[m(d,{class:"n-transition op0 n-checkbox-icon transform scale-0 n-checked:op100 n-checked:scale-100"})]),n("span",{class:v([a(e)?"":"op50","n-transition"])},[x(t.$slots,"default")],2)],8,V)}}});export{K as _};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{a,m as d,ay as r,u as l,o as t,f as s,x as c,t as i}from"./entry.e1ce6ad4.js";const u=["innerHTML"],p=["textContent"],C=a({__name:"NCodeBlock",props:{code:null,lang:null,lines:{type:Boolean,default:!0}},setup(e){const n=e,o=d(()=>r.value?.devtools.renderCodeHighlight(n.code,n.lang)||{code:n.code,supported:!1});return(k,m)=>e.lang&&l(o).supported?(t(),s("pre",{key:0,class:c(["n-code-block",e.lines?"n-code-block-lines":""]),innerHTML:l(o).code},null,10,u)):(t(),s("pre",{key:1,class:c(["n-code-block",e.lines?"n-code-block-lines":""]),textContent:i(e.code)},null,10,p))}});export{C as _};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{a as e,o as c,c as s,w as r,i,a3 as u,Z as l,u as m,ah as _,H as p}from"./entry.e1ce6ad4.js";const h=e({__name:"NIconButton",props:{to:null,icon:null},setup(n){const o=n;return(t,f)=>{const a=p;return c(),s(l(n.to?m(_):"button"),u({to:n.to},t.$attrs,{class:"n-transition n-icon-button"}),{default:r(()=>[i(a,{icon:o.icon},null,8,["icon"])]),_:1},16,["to"])}}});export{h as _};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{a as s,o as t,f as a,x as l,y as o,L as c,h as i,t as r}from"./entry.e1ce6ad4.js";const m={class:"items-center flex flex-gap2"},f=s({__name:"NIconTitle",props:{icon:null,text:null},setup(e){return(n,d)=>(t(),a("div",m,[e.icon?(t(),a("div",{key:0,class:l(e.icon)},null,2)):o("",!0),c(n.$slots,"default",{},()=>[i("div",null,r(e.text),1)])]))}});export{f as _};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{a as g,aA as h,o as a,f as i,h as s,x as l,i as y,w as $,aD as B,u as c,L as o,F as _,aE as N,l as r,t as d,y as u,c as S,aF as k,aG as C,H as I,al as w}from"./entry.e1ce6ad4.js";import{_ as V}from"./NIconTitle.vue.6c944aa7.js";const p=e=>(k("data-v-e59ffc78"),e=e(),C(),e),b=["open"],D={key:0,class:"op50 text-sm"},z=p(()=>s("div",{class:"flex-auto"},null,-1)),F=p(()=>s("div",{class:"x-divider"},null,-1)),T=g({__name:"NSectionBlock",props:{icon:null,text:null,description:null,containerClass:{default:""},collapse:{type:Boolean,default:!0},open:{type:Boolean,default:!0},padding:{type:[Boolean,String],default:!0}},setup(e){const n=h(e,"open",void 0,{passive:!0});function f(t){n.value=t.target.open}return(t,A)=>{const v=I,m=V,x=N("lazy-if");return a(),i(_,null,[s("details",{open:c(n),onToggle:f},[s("summary",{class:l(["select-none cursor-pointer p4 hover:bg-active",e.collapse?"":"pointer-events-none"])},[y(m,{icon:e.icon,text:e.text,class:"text-xl op75"},{default:$(()=>[s("div",null,[o(t.$slots,"text",{},()=>[r(d(e.text),1)],!0),e.description||t.$slots.description?(a(),i("div",D,[o(t.$slots,"description",{},()=>[r(d(e.description),1)],!0)])):u("",!0)]),z,o(t.$slots,"actions",{},void 0,!0),e.collapse?(a(),S(v,{key:0,icon:"carbon-chevron-down",class:"op50 cursor-pointer text-base transition duration-500 place-self-start chevron"})):u("",!0)]),_:3},8,["icon","text"])],2),B((a(),i("div",{class:l(["flex flex-col flex-gap2 pt2 pb6",typeof e.padding=="string"?e.padding:e.padding?"px8":""])},[o(t.$slots,"details",{},void 0,!0),s("div",{class:l([e.containerClass,"mt1"])},[o(t.$slots,"default",{},void 0,!0)],2),o(t.$slots,"footer",{},void 0,!0)],2)),[[x,c(n)]])],40,b),F],64)}}}),L=w(T,[["__scopeId","data-v-e59ffc78"]]);export{L as _};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{a as r,aA as f,o as s,f as l,L as n,aD as m,aQ as p,u as b,h,t as v,y as d,K as x,c as y,H as V}from"./entry.e1ce6ad4.js";const k={class:"flex items-center flex n-bg-base rounded py-1 border n-border-base px-2 n-text-input focus-within:n-focus-base focus-within:border-context"},B=["disabled"],w={key:0,value:"",disabled:"",hidden:""},g=r({__name:"NSelect",props:{modelValue:{default:void 0},placeholder:{default:""},icon:{default:""},disabled:{type:Boolean,default:!1}},setup(e,{emit:c}){const o=f(e,"modelValue",c,{passive:!0});return(t,a)=>{const i=V;return s(),l("div",k,[n(t.$slots,"icon",{},()=>[e.icon?(s(),y(i,{key:0,icon:e.icon,class:"op50 mr-0.4em text-1.1em"},null,8,["icon"])):d("",!0)]),m(h("select",{"onUpdate:modelValue":a[0]||(a[0]=u=>x(o)?o.value=u:null),disabled:e.disabled,class:"n-bg-base flex-auto w-full !outline-none"},[e.placeholder?(s(),l("option",w,v(e.placeholder),1)):d("",!0),n(t.$slots,"default")],8,B),[[p,b(o)]])])}}});export{g as _};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{a as o,aA as c,o as u,f as r,aD as h,aP as b,u as t,h as l,K as p,ax as f,L as k}from"./entry.e1ce6ad4.js";const m=["checked","disabled"],v=["disabled"],w=l("div",{class:"n-transition peer-active:n-active-base peer-focus-visible:n-focus-base n-switch-slider n-checked:n-switch-slider-checked"},[l("div",{class:"n-transition n-switch-thumb n-checked:n-switch-thumb-checked"})],-1),V=o({__name:"NSwitch",props:{modelValue:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1}},setup(a,{emit:d}){const e=c(a,"modelValue",d,{passive:!0});return(i,s)=>(u(),r("label",{class:"n-disabled:n-disabled n-switch n-switch-base",checked:t(e)||null,disabled:a.disabled||null},[h(l("input",{"onUpdate:modelValue":s[0]||(s[0]=n=>p(e)?e.value=n:null),type:"checkbox",class:"absolute op0 peer",disabled:a.disabled,onKeypress:s[1]||(s[1]=f(n=>e.value=!t(e),["enter"]))},null,40,v),[[b,t(e)]]),w,k(i.$slots,"default")],8,m))}});export{V as _};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{a as d,aA as i,o as a,f as u,L as r,aD as p,aO as f,u as m,h as b,K as x,c as h,y,H as V}from"./entry.e1ce6ad4.js";const v={class:"n-bg-base rounded py-1 border n-border-base flex items-center flex n-text-input focus-within:n-focus-base focus-within:border-context px-2"},B=["type","disabled","placeholder"],N=d({__name:"NTextInput",props:{modelValue:{default:""},placeholder:null,icon:null,disabled:{type:Boolean,default:!1},type:{default:"text"}},setup(e,{emit:n}){const t=i(e,"modelValue",n,{passive:!0});return(l,o)=>{const s=V;return a(),u("div",v,[r(l.$slots,"icon",{},()=>[e.icon?(a(),h(s,{key:0,icon:e.icon,class:"op50 mr-0.4em text-1.1em"},null,8,["icon"])):y("",!0)]),p(b("input",{"onUpdate:modelValue":o[0]||(o[0]=c=>x(t)?t.value=c:null),class:"flex-auto n-bg-base w-full !outline-none",type:e.type,disabled:e.disabled,placeholder:e.placeholder},null,8,B),[[f,m(t)]])])}}});export{N as _};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{a as t,o,f as a,L as s,h as i,c as l,y as r,H as m}from"./entry.e1ce6ad4.js";const p={class:"n-tip n-tip-base"},u=t({__name:"NTip",props:{icon:null},setup(e){return(n,_)=>{const c=m;return o(),a("div",p,[s(n.$slots,"icon",{},()=>[e.icon?(o(),l(c,{key:0,icon:e.icon,class:"n-tip-icon"},null,8,["icon"])):r("",!0)]),i("div",null,[s(n.$slots,"default")])])}}});export{u as _};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{_ as h}from"./NIconButton.vue.8aefaa88.js";import{a as N,aA as B,N as S,D as x,aB as C,o as i,f as c,h as u,x as d,u as s,t as O,y as m,L as V,n as w,g as j,c as v,F as J,a3 as P,K as $,aC as z,a6 as A}from"./entry.e1ce6ad4.js";const M=["open"],R={flex:"~ gap2","select-none":"","items-center":"",px4:""},D={key:1,p5:"","bg-active":"",italic:""},E=u("span",{op50:""},"No data",-1),F=[E],L=N({__name:"StateEditor",props:{name:null,open:{type:Boolean},state:null,readonly:{type:Boolean}},emits:["update:open"],setup(t,{emit:k}){const r=t,n=B(r,"open",k,{passive:!0}),g=S(),l=x();l.value=JSON.parse(JSON.stringify(r.state));const p=C(l,e=>{y(e,r.state)},{deep:!0});function y(e,o){for(const a in e)e[a]===null?o[a]=null:Array.isArray(e[a])?o[a]=e[a].slice():typeof e[a]=="object"?y(e[a],o[a]):o[a]=e[a]}async function b(){p.pause(),l.value=JSON.parse(JSON.stringify(r.state)),await A(),p.resume()}return(e,o)=>{const a=h;return i(),c("div",{class:"state-editor-details",open:t.name?s(n):!0},[u("div",R,[t.name?(i(),c("button",{key:0,flex:"~","items-center":"","cursor-pointer":"",class:d(s(n)?"":"op50"),onClick:o[0]||(o[0]=f=>n.value=!s(n))},[u("div",{transition:"","i-carbon-chevron-right":"",class:d(s(n)?"rotate-90 op0":"")},null,2),u("code",{py1:"","font-mono":"",px3:"",class:d(s(n)?"bg-[#8881] rounded-t":"rounded hover:bg-active")},O(t.name),3)],2)):m("",!0),V(e.$slots,"actions",w(j({isOpen:s(n),name:t.name,state:t.state}))),s(n)?(i(),v(a,{key:1,title:"Refresh View",icon:"carbon-renew",onClick:b})):m("",!0)]),s(n)||!t.name?(i(),c(J,{key:0},[t.state&&Object.keys(t.state).length>0?(i(),v(s(z),P({key:0,modelValue:s(l),"onUpdate:modelValue":o[1]||(o[1]=f=>$(l)?l.value=f:null)},e.$attrs,{class:["json-editor-vue",[s(g).value==="dark"?"jse-theme-dark":"",(t.name,"")]],"main-menu-bar":!1,"navigation-bar":!1,"status-bar":!1,"read-only":t.readonly,indentation:2,"tab-size":2}),null,16,["modelValue","class","read-only"])):(i(),c("div",D,F))],64)):m("",!0)],8,M)}}});export{L as _};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{a as l,o as n,f as i,a3 as a}from"./entry.e1ce6ad4.js";const c=["src","alt"],o=["title"],m=l({__name:"TabIcon",props:{icon:null,title:null},setup(t){return(e,s)=>t.icon&&(t.icon.startsWith("/")||t.icon.match(/^https?:/))?(n(),i("img",a({key:0,style:{width:"1em",height:"1em"}},e.$attrs,{src:t.icon,alt:t.title}),null,16,c)):(n(),i("div",a({key:1,style:{width:"1em",height:"1em"}},e.$attrs,{class:t.icon||"carbon-bring-forward",title:t.title}),null,16,o))}});export{m as _};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{a as o,b as c,e as a,o as i,f as r,h as e}from"./entry.e1ce6ad4.js";const p={flex:"~","items-center":"","justify-center":"","bg-base":"","h-screen":"",px5:""},l=e("div",null," Inspecting Vue components ",-1),f=o({__name:"__inspecting",setup(_){const s=c();a("keydown",n=>{n.key==="Escape"&&t()});function t(){s.value?.inspector?.disable()}return(n,u)=>(i(),r("div",p,[e("div",{absolute:"","right-0":"","top-0":"",p2:""},[e("button",{"text-xl":"",op50:"","hover:op100":"",ma:"","carbon-close":"",onClick:t})]),l]))}});export{f as default};
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import{_ as H}from"./NTextInput.vue.188f5529.js";import{a as B,m as w,p as te,o as n,f as l,q as ne,u as t,c as x,h as e,t as g,s as oe,r as se,F as A,v as U,x as G,w as j,l as z,y as $,k as q,z as Z,A as ae,B as ie,i as m,C as K,D as R,e as M,E as le,G as re,H as J,I as ce,J as de,K as ue}from"./entry.e1ce6ad4.js";import{_ as W}from"./NIconButton.vue.8aefaa88.js";import{u as pe}from"./context.10127184.js";import{h as me}from"./index.c769634a.js";import{_ as fe}from"./NSectionBlock.cef5b3bf.js";import{_ as he}from"./FilepathItem.vue.c7d65dc2.js";import{_ as _e}from"./NCodeBlock.vue.f41a0d29.js";import{u as Q,o as ve}from"./editor.58d10855.js";import{_ as ge}from"./DrawerRight.vue.f3060893.js";import{F as xe}from"./fuse.esm.88e2763d.js";import"./NIconTitle.vue.6c944aa7.js";const be=B({__name:"AssetFontPreview",props:{asset:null},setup(a){const s=a,o=w(()=>`devtools-assets-${me(s.asset)}`);return te(w(()=>`
|
|
2
|
-
@font-face {
|
|
3
|
-
font-family: '${o.value}';
|
|
4
|
-
src: url('${s.asset.publicPath}');
|
|
5
|
-
}
|
|
6
|
-
`)),(_,f)=>(n(),l("div",{"of-hidden":"",style:ne({fontFamily:`'${t(o)}'`})}," Aa Bb Cc Dd Ee Ff Gg Hh Ii Jj Kk Ll Mm Nn Oo Pp Qq Rr Ss Tt Uu Vv Ww Xx Yy Zz ",4))}}),ye={"items-center":"","of-hidden":"","justify-center":"",flex:"",p1:"","bg-active":"","object-cover":""},we=["src"],$e={key:2,op20:"","text-3xl":"","i-carbon-document":""},ke={key:3,"w-full":"",p4:"","self-start":""},Ce=["textContent"],Fe={key:4,op20:"","text-3xl":"","i-carbon-help":""},X=B({__name:"AssetPreview",props:{asset:null,textContent:null},setup(a){return(s,o)=>{const _=be;return n(),l("div",ye,[a.asset.type==="image"?(n(),l("img",{key:0,src:a.asset.publicPath},null,8,we)):a.asset.type==="font"?(n(),x(_,{key:a.asset.publicPath,asset:a.asset,p2:"","self-stretch":"","text-2xl":""},null,8,["asset"])):a.asset.type==="text"&&!a.textContent?(n(),l("div",$e)):a.asset.type==="text"&&a.textContent?(n(),l("div",ke,[e("pre",{"of-hidden":"","font-mono":"","text-xs":"","max-h-10rem":"",textContent:g(a.textContent)},null,8,Ce)])):(n(),l("div",Fe))])}}}),Pe={key:0,"n-code-block":"",relative:""},Ne={flex:"~ wrap","w-full":""},De=["onClick"],Ae=e("div",{"flex-auto":""},null,-1),Ie=e("div",{"x-divider":""},null,-1),Se=B({__name:"CodeSnippets",props:{codeSnippets:null},setup(a){const s=a,o=oe(s.codeSnippets[0]),_=Q();return se(()=>{s.codeSnippets.includes(o.value)||(o.value=s.codeSnippets[0])}),(f,y)=>{const c=q,C=_e;return a.codeSnippets.length?(n(),l("div",Pe,[e("div",Ne,[(n(!0),l(A,null,U(a.codeSnippets,(k,I)=>(n(),l("button",{key:I,p2:"",border:"r base",hover:"bg-active",class:G(k===t(o)?"bg-active":""),onClick:E=>o.value=k},[e("div",{class:G(k===t(o)?"":"op50")},g(k.name),3)],10,De))),128)),Ae,t(o)?.docs?(n(),x(c,{key:0,to:t(o).docs,target:"_blank",icon:"carbon-help",n:"sm primary",border:"none",my1:"","px-2":""},{default:j(()=>[z(" Docs ")]),_:1},8,["to"])):$("",!0),t(o)?(n(),x(c,{key:1,icon:"carbon-copy",n:"sm primary",border:"none","px-2":"",my1:"",mr1:"",onClick:y[0]||(y[0]=k=>t(_)(t(o).code))},{default:j(()=>[z(" Copy ")]),_:1})):$("",!0)]),Ie,t(o)?(n(),x(C,{key:0,code:t(o).code,lang:t(o).lang,lines:!1,"w-full":"","of-auto":"",p3:""},null,8,["code","lang"])):$("",!0)])):$("",!0)}}}),ze={flex:"~ col gap-4","w-full":"","of-hidden":"","min-h-full":"",p4:""},je=e("div",{flex:"~ gap2",op50:"","items-center":"","mb--2":""},[e("div",{"x-divider":""}),e("div",{"flex-none":""}," Preview "),e("div",{"x-divider":""})],-1),Be={flex:"~","items-center":"","justify-center":""},Ee=e("div",{op50:"","mb--2":"",flex:"~ gap2","items-center":""},[e("div",{"x-divider":""}),e("div",{"flex-none":""}," Details "),e("div",{"x-divider":""})],-1),Te={"w-full":"","max-w-full":"","table-fixed":""},Le=e("td",{op50:"","text-right":"",pr5:"","ws-nowrap":"","w-30":""}," Filepath ",-1),Re={flex:"~ gap-1","items-center":"","w-full":""},Ue=e("td",{"text-right":"",op50:"",pr5:"","w-30":"","ws-nowrap":""}," Public Path ",-1),Ve={flex:"~ gap-1","items-center":"","w-full":"","of-hidden":""},Oe={"of-hidden":"","font-mono":"","flex-auto":"","ws-pre":"",truncate:""},Me=e("td",{"text-right":"",op50:"",pr5:"","w-30":"","ws-nowrap":""}," Type ",-1),Ge={capitalize:""},Ke=e("td",{"text-right":"",op50:"",pr5:"","w-30":"","ws-nowrap":""}," Image Size ",-1),qe={key:0},Ze=e("td",{"text-right":"",op50:"",pr5:"","w-30":"","ws-nowrap":""}," Aspect Ratio ",-1),He=e("td",{"text-right":"",op50:"",pr5:"","w-30":"","ws-nowrap":""}," File size ",-1),Je=e("td",{"text-right":"",op50:"",pr5:"","w-30":"","ws-nowrap":""}," Last modified ",-1),We={op70:""},Qe=e("div",{op50:"","mb--2":"",flex:"~ gap2","items-center":""},[e("div",{"x-divider":""}),e("div",{"flex-none":""}," Actions "),e("div",{"x-divider":""})],-1),Xe={flex:"~ gap2 wrap"},Ye=e("div",{"flex-auto":""},null,-1),et=B({__name:"AssetDetails",props:{asset:null},setup(a){const s=a,o=Z(()=>{if(s.asset.type==="image")return K.getImageMeta(s.asset.filePath)}),_=Z(()=>{if(s.asset.type==="text")return K.getTextAssetContent(s.asset.filePath)}),f=ae(),y=w(()=>(f.value?._installedModules||[]).some(u=>u.meta?.name==="@nuxt/image"||u.meta?.name==="@nuxt/image-edge")),c=w(()=>{const i=[];if(s.asset.type==="image"){const u=o.value?.width?`
|
|
7
|
-
width="${o.value.width}"
|
|
8
|
-
height="${o.value.height}" `:" ";return i.push({lang:"vue-html",code:`<img${u}
|
|
9
|
-
src="${s.asset.publicPath}"
|
|
10
|
-
/>`,name:"Plain Image"}),y.value&&i.push({lang:"vue-html",code:`<NuxtImage${u}
|
|
11
|
-
src="${s.asset.publicPath}"
|
|
12
|
-
/>`,name:"Nuxt Image",docs:"https://image.nuxtjs.org/components/nuxt-img"},{lang:"vue-html",code:`<NuxtPicture${u}
|
|
13
|
-
src="${s.asset.publicPath}"
|
|
14
|
-
/>`,name:"Nuxt Picture",docs:"https://image.nuxtjs.org/components/nuxt-picture"}),i}return i.push({lang:"html",code:`<a download href="${s.asset.publicPath}">
|
|
15
|
-
Download ${s.asset.path.split("/").slice(-1)[0]}
|
|
16
|
-
</a>`,name:"Download link"}),i}),C=Q(),k=ie(()=>s.asset.mtime),I=w(()=>{const i=s.asset.size;return i<1024?`${i} B`:i<1024*1024?`${(i/1024).toFixed(2)} KB`:`${(i/1024/1024).toFixed(2)} MB`}),E=w(()=>{if(!o.value?.width||!o.value?.height)return"";const i=(P,N)=>N?i(N,P%N):P,u=i(o.value.width,o.value.height);return u>3?`${o.value.width/u}:${o.value.height/u}`:""}),F=w(()=>["image","text","video","font"].includes(s.asset.type));return(i,u)=>{const P=X,N=he,S=W,T=q,L=Se;return n(),l("div",ze,[t(F)?(n(),l(A,{key:0},[je,e("div",Be,[m(P,{rounded:"","max-h-80":"","w-auto":"","min-h-20":"","min-w-20":"",border:"~ base",asset:a.asset,"text-content":t(_)},null,8,["asset","text-content"])])],64)):$("",!0),Ee,e("table",Te,[e("tbody",null,[e("tr",null,[Le,e("td",null,[e("div",Re,[m(N,{filepath:a.asset.filePath,"text-left":""},null,8,["filepath"]),m(S,{"flex-none":"",title:"Open in Editor",icon:"carbon-launch",onClick:u[0]||(u[0]=r=>("openInEditor"in i?i.openInEditor:t(ve))(a.asset.filePath))})])])]),e("tr",null,[Ue,e("td",null,[e("div",Ve,[e("div",Oe,g(a.asset.publicPath),1),m(S,{"flex-none":"",title:"Copy public path",icon:"carbon-copy",onClick:u[1]||(u[1]=r=>t(C)(a.asset.publicPath))}),m(S,{"flex-none":"",to:a.asset.publicPath,icon:"carbon-launch",target:"_blank",title:"Open in browser"},null,8,["to"])])])]),e("tr",null,[Me,e("td",Ge,g(a.asset.type),1)]),t(o)?.width?(n(),l(A,{key:0},[e("tr",null,[Ke,e("td",null,g(t(o).width)+" x "+g(t(o).height),1)]),t(E)?(n(),l("tr",qe,[Ze,e("td",null,g(t(E)),1)])):$("",!0)],64)):$("",!0),e("tr",null,[He,e("td",null,g(t(I)),1)]),e("tr",null,[Je,e("td",null,[z(g(new Date(a.asset.mtime).toLocaleString())+" ",1),e("span",We,"("+g(t(k))+")",1)])])])]),Qe,e("div",Xe,[m(T,{to:a.asset.publicPath,download:"",target:"_blank",icon:"carbon-download"},{default:j(()=>[z(" Download ")]),_:1},8,["to"]),a.asset.type==="image"?(n(),x(T,{key:0,disabled:"",icon:"carbon-image-service"},{default:j(()=>[z(" Optimize image (Coming soon) ")]),_:1})):$("",!0)]),Ye,t(c).length?(n(),x(L,{key:1,border:"t base","mx--4":"","mb--4":"","code-snippets":t(c)},null,8,["code-snippets"])):$("",!0)])}}}),tt={flex:"~ col gap-1",hover:"bg-active",rounded:"","of-hidden":"","items-center":"",p2:""},nt={"of-hidden":"","w-full":"","ws-nowrap":"",truncate:"","text-center":"","text-xs":""},ot=B({__name:"AssetGridItem",props:{asset:null,folder:null},setup(a){const s=a,o=w(()=>s.folder&&s.asset.path.startsWith(s.folder)?s.asset.path.slice(s.folder.length):s.asset.path);return(_,f)=>{const y=X;return n(),l("button",tt,[m(y,{rounded:"","w-30":"","h-30":"",border:"~ base",asset:a.asset},null,8,["asset"]),e("div",nt,g(t(o)),1)])}}}),st={flex:"~ gap-1","w-full":"","items-center":"",hover:"bg-active",rounded:"",px4:"",py2:""},at={"text-center":"","ws-nowrap":"","of-hidden":"",truncate:""},it=B({__name:"AssetListItem",props:{asset:null},setup(a){const s=a,o=w(()=>s.asset.type==="image"?"i-carbon-image":s.asset.type==="video"?"i-carbon-video":s.asset.type==="audio"?"i-carbon-volume-up":s.asset.type==="font"?"i-carbon-text-small-caps":s.asset.type==="text"?"i-carbon-document":s.asset.type==="json"?"i-carbon-json":"i-carbon-document-blank");return(_,f)=>(n(),l("button",st,[e("div",{class:G(t(o))},null,2),e("div",at,g(a.asset.path),1)]))}}),lt={key:0,"items-center":"","w-full":"",flex:"","justify-center":"","h-full":""},rt={for:"drop-zone-input","text-3xl":""},ct={key:1,"h-full":"","w-full":"",relative:"",grid:"~ rows-[max-content_1fr_max-content]"},dt=e("div",{px6:"",py6:""},[e("h1",{"text-2xl":""}," Upload "),e("p",{"text-sm":"",op50:""}," Drag and drop files to upload ")],-1),ut={grid:"~ cols-minmax-8rem","overflow-auto":"",p6:""},pt={"items-center":"","justify-center":"",flex:"","of-hidden":"",rounded:"","object-cover":"","bg-active":"","rounded-t-lg":"",class:"aspect-1/1",border:"~ base"},mt=["src"],ft={flex:"~ gap1","items-center":""},ht={flex:"~ gap-2","items-center":"","justify-center":"",p8:""},_t=B({__name:"DropZone",props:{folder:{type:String,required:!0}},emits:["uploaded"],setup(a,{emit:s}){const o=a,_=pe(),f=R(!1),y=R(),c=R([]),C=["image","video"];function k(r){y.value=r.target,f.value=!0}function I(r){r.target===y.value&&(f.value=!1)}function E(r){r.preventDefault()}function F(r){r.preventDefault(),i(r.dataTransfer.files)}function i(r){const v=Array.from(r||[]);if(v.length){const d=[],h=c.value.map(p=>p.name);for(const p of v)if(h.includes(p.name)){let b=1;const[D,O]=p.name.split(".");for(;h.includes(`${D} (${b}).${O}`);)b++;const V=`${D}-${b}.${O}`,Y=new Blob([p],{type:p.type}),ee=new File([Y],V,{lastModified:Date.now()});d.push(ee),h.push(V)}else p.type===""?_("Folders are not supported yet","carbon:face-dissatisfied"):C.some(b=>p.type.includes(b))?d.push(p):_(`"${p.type}" file type is not allowed`,"carbon:face-dizzy");c.value=[...c.value,...d]}}async function u(){if(le.value||re.value)return;const r=[];for(const v of c.value){const d=new FileReader;d.readAsDataURL(v);const p=(await new Promise(b=>{d.onload=()=>b(d.result)})).split(";base64,").pop();r.push({name:v.name,data:p})}await K.writeStaticAssets([...r],o.folder).then(()=>{s("uploaded"),L(),_("Files uploaded successfully!","carbon:face-cool")}).catch(v=>{console.error(v),L(),_("Upload failed!","carbon:face-dizzy")}),f.value=!1}function P(r){c.value?.splice(r,1)}function N(r){return URL.createObjectURL(r)}function S(r,v){const[d,h]=r.name.split("."),p=v.replace(/\.\w+$/,""),b=`${p}.${h}`;return p.length===0?(alert("File name must be at least 1 characters long"),d):(Object.defineProperty(r,"name",{value:b,writable:!1}),c.value.splice(c.value.indexOf(r),1,r),r)}function T(){c.value=[]}function L(){f.value=!1,T()}return M("dragenter",k),M("dragleave",I),M("dragover",E),M("drop",F),(r,v)=>{const d=W,h=J,p=H,b=q;return n(),l("div",{fixed:"","top-0":"","right-0":"","bottom-0":"","z-10":"","transition-all":"","left-13":"","backdrop-blur-20":"",class:G(t(f)?"opacity-100 visible":"opacity-0 invisible")},[m(d,{icon:"carbon-close",absolute:"","z-20":"","text-xl":"","top-5":"","right-5":"",onClick:L}),t(c)?.length?(n(),l("div",ct,[dt,e("div",ut,[(n(!0),l(A,null,U(t(c),(D,O)=>(n(),l("div",{key:D.name,flex:"~ col gap-2",relative:"","items-center":"","w-40":"","h-50":""},[e("div",pt,[e("img",{"w-full":"","h-full":"","rounded-t-lg":"","object-cover":"",src:N(D)},null,8,mt)]),e("div",ft,[m(p,{n:"xs","flex-auto":"","model-value":D.name,"onUpdate:modelValue":V=>S(D,V.target.value)},null,8,["model-value","onUpdate:modelValue"]),m(d,{icon:"carbon-delete","flex-none":"",title:"Remove file",onClick:V=>P(O)},null,8,["onClick"])])]))),128))]),e("div",ht,[t(c).length?(n(),x(b,{key:0,n:"red",onClick:T},{default:j(()=>[m(h,{icon:"carbon-clean"}),z(" Clear ")]),_:1})):$("",!0),m(b,{disabled:!t(c).length,n:"primary solid",onClick:u},{default:j(()=>[m(h,{icon:"carbon-cloud-upload"}),z(" Upload ")]),_:1},8,["disabled"])])])):(n(),l("div",lt,[e("label",rt,[m(h,{icon:"carbon-cloud-upload","mr-2":""}),z(" Drop files here or click to select ")]),e("input",{id:"drop-zone-input",type:"file",multiple:"",hidden:"",onChange:v[0]||(v[0]=D=>i(D.target.files))},null,32)]))],2)}}}),vt={"h-full":"","of-auto":""},gt={flex:"~ gap4"},xt={"flex-none":"",flex:"~ gap4"},bt={op50:""},yt={key:0},wt={px2:"","mt--4":"",grid:"~ cols-minmax-8rem"},$t={key:1,p2:"",grid:"~ cols-minmax-8rem"},kt={key:1},Tt=B({__name:"assets",setup(a){const s=ce(),o=R(""),_=w(()=>new xe(s.value||[],{keys:["path"]})),f=w(()=>o.value?_.value.search(o.value).map(i=>i.item):s.value||[]),y=w(()=>{const F={};for(const i of f.value){const u=`${i.path.split("/").slice(0,-1).join("/")}/`;F[u]||(F[u]=[]),F[u].push(i)}return Object.entries(F).sort(([i],[u])=>i.localeCompare(u))}),c=R(),C=R("grid");function k(){C.value=C.value==="list"?"grid":"list"}de("Escape",()=>{c.value=void 0});const I=R();function E(){}return(F,i)=>{const u=H,P=J,N=_t,S=ot,T=fe,L=it,r=et,v=ge;return n(),l("div",vt,[e("div",{ref_key:"navbar",ref:I,flex:"~ col gap-2",border:"b base",p4:"","navbar-glass":"","flex-1":"",pb2:""},[e("div",gt,[m(u,{modelValue:t(o),"onUpdate:modelValue":i[0]||(i[0]=d=>ue(o)?o.value=d:null),placeholder:"Search...",icon:"carbon-search","flex-auto":"",p:"x5 y2",n:"primary"},null,8,["modelValue"]),e("div",xt,[e("button",{title:"Toggle view",onClick:k},[t(C)==="grid"?(n(),x(P,{key:0,icon:"i-carbon-list"})):(n(),x(P,{key:1,icon:"i-carbon-grid"}))])])]),e("div",bt,[t(o)?(n(),l("span",yt,g(t(f).length)+" matched · ",1)):$("",!0),e("span",null,g(t(s)?.length)+" assets in total",1)])],512),m(N,{folder:"/",onUploaded:E}),t(C)==="grid"?(n(),l(A,{key:0},[t(y).length>1?(n(!0),l(A,{key:0},U(t(y),([d,h])=>(n(),x(T,{key:d,text:d,description:`${h.length} items`,open:h.length<30,padding:!1},{default:j(()=>[e("div",wt,[(n(!0),l(A,null,U(h,p=>(n(),x(S,{key:p.path,asset:p,folder:d,onClick:b=>c.value=p},null,8,["asset","folder","onClick"]))),128))])]),_:2},1032,["text","description","open"]))),128)):(n(),l("div",$t,[(n(!0),l(A,null,U(t(f),d=>(n(),x(S,{key:d.path,asset:d,onClick:h=>c.value=d},null,8,["asset","onClick"]))),128))]))],64)):(n(),l("div",kt,[(n(!0),l(A,null,U(t(f),d=>(n(),x(L,{key:d.path,asset:d,onClick:h=>c.value=d},null,8,["asset","onClick"]))),128))])),m(v,{"model-value":!!t(c),"w-120":"","auto-close":"",navbar:t(I),onClose:i[1]||(i[1]=d=>c.value=void 0)},{default:j(()=>[t(c)?(n(),x(r,{key:0,asset:t(c)},null,8,["asset"])):$("",!0)]),_:1},8,["model-value","navbar"])])}}});export{Tt as default};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{a as T,m as S,o as s,f as b,l as E,t as X,u as o,h as d,i as g,c as v,y as w,L as A,M as Y,w as x,D as F,N as Z,O as J,A as ee,P as oe,Q as ne,R as te,S as se,T as le,K as I,F as M,U as z,k as ae,V as ie,W as re,v as D,b as ce,X as ue,Y as pe,Z as me,H as de}from"./entry.e1ce6ad4.js";import{_ as fe}from"./NCheckbox.vue.f03c4497.js";import{_ as _e}from"./NIconButton.vue.8aefaa88.js";import{_ as W}from"./Badge.b694092e.js";import{_ as j}from"./FilepathItem.vue.c7d65dc2.js";import{u as he}from"./editor.58d10855.js";import{_ as ve}from"./DrawerRight.vue.f3060893.js";import{_ as be}from"./NTextInput.vue.188f5529.js";import{_ as ge}from"./NSectionBlock.cef5b3bf.js";import{_ as ye}from"./NIconTitle.vue.6c944aa7.js";import{F as xe}from"./fuse.esm.88e2763d.js";import"./context.10127184.js";const ke=/\d/,$e=["-","_","/","."];function we(n=""){if(!ke.test(n))return n.toUpperCase()===n}function Ce(n,l){const u=l??$e,p=[];if(!n||typeof n!="string")return p;let e="",a,m;for(const f of n){const _=u.includes(f);if(_===!0){p.push(e),e="",a=void 0;continue}const r=we(f);if(m===!1){if(a===!1&&r===!0){p.push(e),e=f,a=r;continue}if(a===!0&&r===!1&&e.length>1){const $=e[e.length-1];p.push(e.slice(0,Math.max(0,e.length-1))),e=$+f,a=r;continue}}e+=f,a=r,m=_}return p.push(e),p}function Ne(n){return n?n[0].toUpperCase()+n.slice(1):""}function H(n){return n?(Array.isArray(n)?n:Ce(n)).map(l=>Ne(l)).join(""):""}const Ve={"text-sm":"","font-mono":""},Se=d("span",{op20:"",mr1:""},"<",-1),Pe=d("span",{op20:"",ml1:""},"/>",-1),q=T({__name:"ComponentName",props:{component:null},setup(n){const l=n,u=S(()=>l.component.pascalName||H(l.component.name||l.component.__name||l.component.kebabName||""));return(p,e)=>(s(),b("code",Ve,[Se,E(X(o(u)),1),Pe]))}}),Be={flex:"~ col gap1","of-hidden":"","items-start":""},Me={flex:"~ gap2"},K=T({__name:"ComponentDetails",props:{component:null},setup(n){const l=n,u=S(()=>l.component.pascalName||H(l.component.name||l.component.__name||l.component.kebabName||"")),p=S(()=>l.component.filePath||l.component.file||l.component.__file||""),e=he();return(a,m)=>{const f=q,_=_e,r=W,$=j;return s(),b("div",Be,[d("div",Me,[g(f,{component:n.component},null,8,["component"]),g(_,{title:"Copy name","flex-none":"",icon:"carbon-copy",onClick:m[0]||(m[0]=t=>o(e)(`<${o(u)}></${o(u)}>`))}),n.component.global?(s(),v(r,{key:0,"bg-green-400:10":"","text-green-400":"",title:"Registered at runtime as a global component",textContent:"runtime"})):w("",!0)]),d("div",null,[o(p)?(s(),v($,{key:0,filepath:o(p),"w-full":"","text-sm":"",op25:"","group-hover:op75":""},null,8,["filepath"])):w("",!0)]),A(a.$slots,"default")])}}}),Re={hover:"bg-active",class:"group",flex:"~ gap2",rounded:"","w-full":"","items-center":"",px2:"",py1:""},Te={"hover:text-primary":""},Ue=T({__name:"ComponentItem",props:{component:null},setup(n){const l=n,u=S(()=>l.component.filePath||l.component.file||l.component.__file||"");return(p,e)=>{const a=q,m=K,f=Y("VDropdown"),_=W,r=j;return s(),b("div",Re,[g(f,null,{popper:x(()=>[g(m,{component:n.component,p4:""},null,8,["component"])]),default:x(()=>[d("button",Te,[g(a,{component:n.component},null,8,["component"])])]),_:1}),n.component.global?(s(),v(_,{key:0,"bg-green-400:10":"","text-green-400":"",title:"Registered at runtime as a global component",textContent:"runtime"})):w("",!0),A(p.$slots,"default"),o(u)?(s(),v(r,{key:1,filepath:o(u),"text-sm":"",op25:"","group-hover:op75":""},null,8,["filepath"])):w("",!0)])}}}),De=d("span",{op75:""},"Show pages",-1),Fe=d("span",{op75:""},"Show layouts",-1),Ie=d("span",{op75:""},"Show workspace",-1),Le=d("span",{op75:""},"Show node_modules",-1),Ae=d("div",{"i-carbon-close":""},null,-1),Ee=d("div",{"flex-auto":""},null,-1),Ge={"w-full":"",relative:"","h-full":""},ze={key:0,p4:"",pr10:"",pt4:"",flex:"~ col gap4"},We=T({__name:"ComponentsGraph",props:{components:null},setup(n){const l=n,u=F(),p=F(),e=Z(),a=F(),m=J(),f=ee(),_=oe(),r=ne(),{componentsGraphShowNodeModules:$,componentsGraphShowPages:t,componentsGraphShowLayouts:y,componentsGraphShowWorkspace:P}=z(),R=F(),G=S(()=>{const C=r.value||[];if(R.value){let c=function(h){!h||i.has(h)||(i.add(h),h.deps.forEach(N=>{c(C.find(V=>V.id===N))}))};const i=new Set;return C.find(h=>h.id===a.value?.id),c(R.value),Array.from(i)}return C}),L=S(()=>{const C=G.value.map(i=>{const h=l.components.find(U=>U.filePath===i.id),N=m.value?.find(U=>U.file===i.id),V=_.value?.find(U=>U.file===i.id),k=i.id.replace(/\?.*$/,"").replace(/\#.*$/,""),B=i.id.includes("/node_modules/")?"lib":h?"user":V?"layout":N?"page":"unknown";if(!$.value&&B==="lib"||!t.value&&B==="page"||!y.value&&B==="layout"||!P.value&&B==="user"&&f.value&&!i.id.startsWith(f.value.rootDir))return null;const Q=B==="layout"?"hexagon":B==="page"?"square":"dot";return{id:i.id,label:k.split("/").splice(-1)[0].replace(/\.\w+$/,""),group:B,shape:Q,size:15+Math.min(i.deps.length/2,8),font:{color:e.value==="dark"?"white":"black"},color:R.value?.id===i.id?"#82c742":void 0,extra:{id:i.id,component:h,page:N,layout:V,relationship:i}}}).filter(i=>!!i),c=G.value.flatMap(i=>i.deps.map(h=>({from:i.id,to:h,arrows:{to:{enabled:!0,scaleFactor:.8}}})));return{nodes:C,edges:c}});te(()=>{const C={nodes:{shape:"dot",size:16},physics:{repulsion:{centralGravity:.7,springLength:100,springConstant:.01},maxVelocity:146,solver:"forceAtlas2Based",timestep:.35,stabilization:{enabled:!0,iterations:200}},groups:{user:{color:"#42b883"},unknown:{color:"#b86542"},lib:{color:"#b4b842"},page:{color:"#42b2b8"},layout:{color:"#4256b8"}}},c=new se(u.value,L.value,C);c.on("click",i=>{const h=i.nodes?.[0],N=L.value.nodes?.find(V=>V.id===h)?.extra;N&&(a.value=N)}),le(L,()=>{c.setData(L.value)})});function O(){R.value=a.value?.relationship,a.value=void 0}return(C,c)=>{const i=fe,h=K,N=ae,V=ve;return s(),b(M,null,[d("div",{ref_key:"navbar",ref:p,flex:"~ gap4",border:"b base",p4:"",absolute:"","flex-1":"","navbar-glass":"","left-0":"","top-0":"","right-0":""},[g(i,{modelValue:o(t),"onUpdate:modelValue":c[0]||(c[0]=k=>I(t)?t.value=k:null),n:"primary sm"},{default:x(()=>[De]),_:1},8,["modelValue"]),g(i,{modelValue:o(y),"onUpdate:modelValue":c[1]||(c[1]=k=>I(y)?y.value=k:null),n:"primary sm"},{default:x(()=>[Fe]),_:1},8,["modelValue"]),g(i,{modelValue:o(P),"onUpdate:modelValue":c[2]||(c[2]=k=>I(P)?P.value=k:null),n:"primary sm"},{default:x(()=>[Ie]),_:1},8,["modelValue"]),g(i,{modelValue:o($),"onUpdate:modelValue":c[3]||(c[3]=k=>I($)?$.value=k:null),n:"primary sm"},{default:x(()=>[Le]),_:1},8,["modelValue"]),o(R)?(s(),b("button",{key:0,flex:"~ gap-1","items-center":"",op50:"","text-xs":"",py1:"","bg-gray:20":"",pl3:"",pr2:"","rounded-full":"","hover:op100":"",onClick:c[4]||(c[4]=k=>R.value=void 0)},[E(" Clear filter "),Ae])):w("",!0),Ee,A(C.$slots,"default")],512),d("div",Ge,[d("div",{ref_key:"container",ref:u,"w-full":"","h-full":""},null,512),g(V,{"model-value":!!(o(a)&&o(a).component),navbar:o(p),"w-80":"",onClose:c[6]||(c[6]=k=>a.value=void 0)},{default:x(()=>[o(a)&&o(a).component?(s(),b("div",ze,[g(h,{component:o(a).component},null,8,["component"]),d("div",null,[g(N,{n:"primary solid",onClick:c[5]||(c[5]=k=>O())},{default:x(()=>[E(" Filter to this component ")]),_:1})])])):w("",!0)]),_:1},8,["model-value","navbar"])])],64)}}}),je={p4:"",flex:"~ gap4","flex-1":"",border:"b base","navbar-glass":""},He={pl4:""},qe=T({__name:"ComponentsList",props:{components:null},setup(n){const l=n,u=F(""),p=S(()=>new xe(l.components,{keys:["pascalName","filePath","kebabName"]})),e=S(()=>{const a=[],m=new Map,f=[],_=[],r={user:0,lib:0,builtin:0,runtime:0};return(u.value?p.value.search(u.value).map(t=>t.item):l.components).forEach(t=>{if(t.filePath&&ie(t.filePath)){const y=re(t.filePath);if(!y)return;y==="nuxt"?(f.push(t),r.builtin++):(m.has(y)||m.set(y,[]),m.get(y).push(t),r.lib++)}else t.global&&!t.filePath?(_.push(t),r.runtime++):(a.push(t),r.user++)}),{count:r,user:a,builtin:f,lib:m,runtime:_}});return(a,m)=>{const f=be,_=Ue,r=ge,$=ye;return s(),b(M,null,[d("div",je,[g(f,{modelValue:o(u),"onUpdate:modelValue":m[0]||(m[0]=t=>I(u)?u.value=t:null),placeholder:"Search...",icon:"carbon-search",p:"x5 y2",n:"primary","flex-auto":"","bg-base":"","border-base":""},null,8,["modelValue"]),A(a.$slots,"default")]),o(e).user.length?(s(),v(r,{key:0,icon:"carbon-nominal",text:"User components",description:`Total components: ${o(e).count.user}`},{default:x(()=>[(s(!0),b(M,null,D(o(e).user,t=>(s(),v(_,{key:t.filePath,"ml--5":"",component:t},null,8,["component"]))),128))]),_:1},8,["description"])):w("",!0),o(e).runtime.length?(s(),v(r,{key:1,icon:"carbon-load-balancer-global",text:"Runtime components",description:`Total components: ${o(e).count.runtime}`},{default:x(()=>[(s(!0),b(M,null,D(o(e).runtime,t=>(s(),v(_,{key:t.filePath,"ml--5":"",component:t},null,8,["component"]))),128))]),_:1},8,["description"])):w("",!0),o(e).builtin.length?(s(),v(r,{key:2,icon:"simple-icons-nuxtdotjs",text:"Built-in components",description:`Total components: ${o(e).count.builtin}`},{default:x(()=>[(s(!0),b(M,null,D(o(e).builtin,t=>(s(),v(_,{key:t.filePath,"ml--5":"",component:t},null,8,["component"]))),128))]),_:1},8,["description"])):w("",!0),o(e).lib.size?(s(),v(r,{key:3,icon:"carbon-3d-mpr-toggle",text:"Components from libraries",description:`${o(e).count.lib} components from ${o(e).lib.size} packages`},{default:x(()=>[(s(!0),b(M,null,D(o(e).lib.entries(),([t,y])=>(s(),b("div",{key:t},[g($,{text:`${t} (${y.length})`,op50:"",py1:""},null,8,["text"]),d("div",He,[(s(!0),b(M,null,D(y,P=>(s(),v(_,{key:P.filePath,component:P},null,8,["component"]))),128))])]))),128))]),_:1},8,["description"])):w("",!0)],64)}}}),Ke={"h-full":"","of-auto":"",relative:""},Oe={"flex-none":"",flex:"~ gap4"},io=T({__name:"components",setup(n){const l=ce(),u=ue(),p=pe(),{componentsView:e}=z();function a(){l.value?.inspector?.instance&&(l.value.inspector.enable(),u.push("/__inspecting"))}function m(){e.value=e.value==="list"?"graph":"list"}return(f,_)=>{const r=de;return s(),b("div",Ke,[(s(),v(me(o(e)==="list"?qe:We),{components:o(p)},{default:x(()=>[d("div",Oe,[d("button",{title:"Toggle view",onClick:m},[o(e)==="graph"?(s(),v(r,{key:0,icon:"i-carbon-list"})):(s(),v(r,{key:1,icon:"i-carbon-network-4"}))]),o(l)?.inspector?.instance?(s(),b("button",{key:0,title:"Inspect Vue components",onClick:a},[g(r,{icon:"i-carbon-select-window"})])):w("",!0)])]),_:1},8,["components"]))])}}});export{io as default};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{aU as e,aV as i}from"./entry.e1ce6ad4.js";function r(){const t=Symbol("singleton");return[function(n){e()?.appContext.app.provide(t,n)},function(n){return i(t,n)}]}const[c,p]=r();export{c as p,p as u};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{a as C,N as j,D as g,m as y,a4 as B,a5 as E,R as T,a6 as M,r as f,a7 as $,a8 as I,o as i,f as w,a9 as V,X as D,aa as L,u as t,h as l,l as x,t as k,c as _,Z as N,C as R}from"./entry.e1ce6ad4.js";import{_ as W}from"./LaunchPage.vue.b1763741.js";import"./TabIcon.vue.ee21be15.js";import"./NMarkdown.vue.ae60adfb.js";const h=new Map,O=C({__name:"IframeView",props:{tab:null},setup(b){const u=b,r=j(),s=g(),c=y(()=>u.tab.name),e=g(),n=B(E(s));T(()=>{const o=u.tab.view,m=o.persistent!==!1;if(h.get(c.value)&&m)e.value=h.get(c.value),e.value.style.visibility="visible";else{e.value=document.createElement("iframe"),m&&h.set(c.value,e.value),e.value.src=o.src;try{e.value.style.opacity="0.01",e.value.onload=()=>{d(),a(),e.value.style.opacity="1"}}catch{e.value.style.opacity="1"}document.body.appendChild(e.value),M(p)}setTimeout(a,100)}),f(p),f(a),f(d),$(()=>{e.value&&(e.value.style.visibility="hidden")});function a(){if(!(!e.value||!e.value.contentWindow))try{const o=e.value.contentWindow.document.querySelector("html");o?.classList.toggle("dark",r.value==="dark"),o?.classList.toggle("light",r.value==="dark")}catch{}}const v=I();function d(){if(!(!e.value||!e.value.contentWindow))try{e.value.contentWindow.__NUXT_DEVTOOLS__=v.value}catch{}}function p(){e.value&&Object.assign(e.value.style,{position:"fixed",left:`${n.left}px`,top:`${n.top}px`,width:`${n.width}px`,height:`${n.height}px`,outline:"none"})}return(o,m)=>(i(),w("div",{ref_key:"anchor",ref:s,"w-full":"","h-full":""},null,512))}}),S={key:0,flex:"~ col gap-2","h-full":"","items-center":"","justify-center":""},U=l("div",{op50:"","text-5xl":"",mb2:"","i-carbon-queued":""},null,-1),q={"text-xl":""},A={"text-rose":""},P=l("p",{op50:""}," It might because the module contributing this tab is not installed or enabled ",-1),X=l("p",{"animate-pulse":"",mt8:""}," Redirecting to overview page... ",-1),Z={key:4,flex:"~ col","h-full":"","items-center":"","justify-center":""},K=C({__name:"custom-[name]",setup(b){const u=V(),r=D(),s=y(()=>u.params.name),c=L(),e=y(()=>c.all.value.find(n=>n.name===s.value));return T(()=>{e.value||setTimeout(()=>{e.value||r.push("/modules/overview")},2e3)}),(n,a)=>{const v=O,d=W;return t(e)?t(e).view.type==="iframe"?(i(),_(v,{key:1,tab:t(e)},null,8,["tab"])):t(e).view.type==="vnode"?(i(),_(N(t(e).view.vnode),{key:2})):t(e).view.type==="launch"?(i(),_(d,{key:3,icon:t(e).view.icon||t(e).icon,title:t(e).view.title||t(e).title,description:t(e).view.description,actions:t(e).view.actions,onAction:a[0]||(a[0]=p=>("rpc"in n?n.rpc:t(R)).customTabAction(t(e).name,p))},null,8,["icon","title","description","actions"])):(i(),w("div",Z," Unknown tab type "+k(t(e).view),1)):(i(),w("div",S,[U,l("p",q,[x(" Tab "),l("code",A,k(t(s)),1),x(" not found ")]),P,X]))}}});export{K as default};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{p as z}from"./context.10127184.js";import{a as h,D as k,R as L,f as d,al as w,aR as B,o as i,c as b,w as u,L as y,N as R,m as T,aS as F,n as I,g as M,b as $,am as O,u as n,h as o,x as m,y as x,i as f,l as v,t as D,aT as j,k as q,q as A,M as V,Z as E,U as H,ah as U,aa as W,F as N,v as S,ak as Y}from"./entry.e1ce6ad4.js";import{_ as Z}from"./TabIcon.vue.ee21be15.js";const G=h({name:"ClientOnly",inheritAttrs:!1,props:["fallback","placeholder","placeholderTag","fallbackTag"],setup(a,{slots:e,attrs:t}){const c=k(!1);return L(()=>{c.value=!0}),r=>{if(c.value)return e.default?.();const s=e.fallback||e.placeholder;if(s)return s();const p=r.fallback||r.placeholder||"",l=r.fallbackTag||r.placeholderTag||"span";return d(l,t,p)}}}),J={name:B,props:{placeholder:String,tag:{type:String,default:"span"}}};function K(a,e,t,c,r,s){const p=G;return i(),b(p,{placeholder:t.placeholder,"placeholder-tag":t.tag},{default:u(()=>[y(a.$slots,"default")]),_:3},8,["placeholder","placeholder-tag"])}const Q=w(J,[["render",K]]),X=h({__name:"NDarkToggle",setup(a){const e=R(),t=T({get(){return e.value==="dark"},set(){e.preference=t.value?"light":"dark"}}),c=F(t),r={mode:e,isDark:t,toggle:c};return(s,p)=>{const l=Q;return i(),b(l,{tag:"span"},{default:u(()=>[y(s.$slots,"default",I(M(r)))]),_:3})}}}),ee={key:0,py2:"",px3:"",border:"b base",flex:"~ col gap-1"},te=o("div",{"text-sm":"",op50:""}," Dock devtools to ",-1),ne={flex:"~ gap-1","text-lg":""},oe={px3:"",py2:"",border:"b base",flex:"~ gap-2"},ae=o("div",{"carbon-sun":"","dark:carbon-moon":"","translate-y--1px":""},null,-1),se=o("div",{"translate-y--1px":"","carbon-settings":""},null,-1),le={px3:"",py2:"",flex:"~ gap2"},ie=h({__name:"DockingPanel",setup(a){const e=j(),t=$(),c=O();function r(){c.hooks.callHookParallel("app:data:refresh",Object.keys(c.payload.data)),t.value&&(t.value={...t.value})}function s(){location.reload()}return(p,l)=>{const _=q,C=X;return i(),d("div",null,[n(t)?(i(),d("div",ee,[te,o("div",ne,[o("button",{"i-carbon-open-panel-filled-bottom":"",class:m(n(e).position==="bottom"?"text-primary":"op50"),onClick:l[0]||(l[0]=g=>n(e).position="bottom")},null,2),o("button",{"i-carbon-open-panel-filled-right":"",class:m(n(e).position==="right"?"text-primary":"op50"),onClick:l[1]||(l[1]=g=>n(e).position="right")},null,2),o("button",{"i-carbon-open-panel-filled-left":"",class:m(n(e).position==="left"?"text-primary":"op50"),onClick:l[2]||(l[2]=g=>n(e).position="left")},null,2),o("button",{"i-carbon-open-panel-filled-top":"",class:m(n(e).position==="top"?"text-primary":"op50"),onClick:l[3]||(l[3]=g=>n(e).position="top")},null,2)])])):x("",!0),o("div",oe,[f(C,null,{default:u(({toggle:g,isDark:P})=>[f(_,{n:"sm primary",onClick:De=>g()},{default:u(()=>[ae,v(" "+D(P.value?"Dark":"Light"),1)]),_:2},1032,["onClick"])]),_:1}),f(_,{n:"sm primary",to:"/settings"},{default:u(()=>[se,v(" Settings ")]),_:1})]),o("div",le,[f(_,{n:"solid primary xs",onClick:r},{default:u(()=>[v(" Refetch Data ")]),_:1}),f(_,{n:"solid primary xs",onClick:s},{default:u(()=>[v(" Refresh Page ")]),_:1})])])}}}),ce=h({__name:"Notification",setup(a){const e=k(!1),t=k(),c=k();return z((r,s,p=1500)=>{c.value=r,t.value=s,e.value=!0,setTimeout(()=>{e.value=!1},p)}),(r,s)=>(i(),d("div",{"text-center":"","top-0":"","right-0":"",fixed:"","left-0":"","z-50":"",class:m(n(e)?"":"pointer-events-none overflow-hidden")},[o("div",{border:"~ base",flex:"~ inline gap2",rounded:"","items-center":"","transition-all":"","bg-base":"","text-primary":"","px-4":"","py-1":"","inline-block":"","m-3":"","duration-300":"",style:A(n(e)?{}:{transform:"translateY(-300%)"}),class:m(n(e)?"shadow":"shadow-none")},[n(t)?(i(),d("div",{key:0,class:m(n(t))},null,2)):x("",!0),o("div",null,D(n(c)),1)],6)],2))}}),re={key:0,hidden:"","lg:block":""},ue=h({__name:"SideNavItem",props:{tab:null},setup(a){const e=a,t=H(),c=$(),r=T(()=>{const s=e.tab;return!(s.shouldShow&&!s.shouldShow()||s.requireClient&&!c.value||t.hiddenTabs.value.includes(s.name))});return(s,p)=>{const l=Z,_=U,C=V("VTooltip");return n(r)?(i(),b(C,{key:0,placement:"right"},{popper:u(()=>[o("div",null,D(a.tab.title),1),"extraTabVNode"in a.tab&&a.tab.extraTabVNode?(i(),d("div",re,[(i(),b(E(a.tab.extraTabVNode)))])):x("",!0)]),default:u(()=>[f(_,{to:"path"in a.tab?a.tab.path:`/modules/custom-${a.tab.name}`,flex:"~",hover:"bg-active","select-none":"","items-center":"","justify-center":"",p1:"","w-10":"","text-secondary":"","rounded-xl":"","h-10":"","exact-active-class":"!text-primary bg-active"},{default:u(()=>[f(l,{"text-xl":"",icon:a.tab.icon,title:a.tab.title},null,8,["icon","title"])]),_:1},8,["to"])]),_:1})):x("",!0)}}}),de={border:"r base",flex:"~ col gap-0.5","h-full":"","items-center":"","bg-base":"","z-100":"",class:"no-scrollbar"},pe={flex:"~ col","items-center":"","bg-base":"","top-0":"",pt3:"",sticky:"","z-1":"",mb1:""},_e=["title"],fe=o("div",{"h-1px":"","w-8":"","mt-2":"",border:"b base"},null,-1),me=o("div",{"h-1px":"","w-8":"",my1:"",border:"b base"},null,-1),be=o("div",{"flex-auto":""},null,-1),he=h({__name:"SideNav",setup(a){const e=$(),t=W();return(c,r)=>{const s=ie,p=V("VDropdown"),l=ue;return i(),d("div",de,[o("div",pe,[f(p,{placement:"left-start",distance:20},{popper:u(()=>[f(s)]),default:u(()=>[o("button",{"text-lg":"","w-6":"","h-6":"","i-logos-nuxt-icon":"",class:m(n(e)?"":"saturate-0"),title:n(e)?"Nuxt DevTools":"DevTools Client not connected, try open it in iframe mode"},null,10,_e)]),_:1}),fe]),(i(!0),d(N,null,S(n(t).builtin.value,_=>(i(),b(l,{key:_.name,tab:_},null,8,["tab"]))),128)),n(t).custom.value.length?(i(),d(N,{key:0},[me,(i(!0),d(N,null,S(n(t).custom.value,_=>(i(),b(l,{key:_.name,tab:_},null,8,["tab"]))),128)),be],64)):x("",!0)])}}}),ve={},ge={class:"n-loading"},xe={class:"flex flex-col items-center text-lg animate-pulse"},ke=o("div",{class:"text-4xl op50 i-carbon-circle-dash animate-spin"},null,-1);function ye(a,e){return i(),d("div",ge,[o("div",xe,[ke,y(a.$slots,"default",{},()=>[v(" Loading... ")])])])}const $e=w(ve,[["render",ye]]),Ce={"bg-base":"","of-hidden":"","h-screen":"","font-sans":""},Ne={key:1,grid:"~ cols-[50px_1fr]","of-hidden":"","h-full":""},Te={"h-full":"","of-auto":""},Pe=h({__name:"default",setup(a){const e=$(),t=T(()=>!e.value&&!Y.value);return(c,r)=>{const s=ce,p=$e,l=he;return i(),d("div",Ce,[f(s),n(t)?(i(),b(p,{key:0},{default:u(()=>[v(" Connecting.... ")]),_:1})):(i(),d("div",Ne,[f(l,{"of-x-hidden":"","of-y-auto":""}),o("div",Te,[y(c.$slots,"default")])]))])}}});export{Pe as default};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{C as t,az as n}from"./entry.e1ce6ad4.js";import{u as r}from"./context.10127184.js";async function s(o){await t.openInEditor(o)}function e(){const o=n(),i=r();return a=>{o.copy(a),i("Copied to clipboard","carbon-checkmark")}}export{s as o,e as u};
|