@nuxt/devtools 0.1.0 → 0.1.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +3 -2
- package/dist/chunks/module-main.mjs +1 -1
- package/dist/chunks/vscode.mjs +1 -1
- package/dist/cli.mjs +26 -6
- 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/{ComponentItem.f7b53cb0.js → ComponentItem.e70cb817.js} +1 -1
- package/dist/client/_nuxt/{ComponentItem.vue.d48d83d8.js → ComponentItem.vue.b2907459.js} +1 -1
- package/dist/client/_nuxt/{ComponentsGraph.94420499.js → ComponentsGraph.80197dea.js} +1 -1
- package/dist/client/_nuxt/{ComponentsGraph.vue.687b60ce.js → ComponentsGraph.vue.4984fec1.js} +1 -1
- package/dist/client/_nuxt/{ComponentsList.27e171d0.js → ComponentsList.d795349a.js} +1 -1
- package/dist/client/_nuxt/{ComponentsList.vue.24e7149d.js → ComponentsList.vue.e6afcbfb.js} +1 -1
- package/dist/client/_nuxt/{ComposableItem.a0f590b3.js → ComposableItem.d63f347f.js} +1 -1
- package/dist/client/_nuxt/{ComposableItem.vue.645a2668.js → ComposableItem.vue.63bbac89.js} +1 -1
- package/dist/client/_nuxt/{ComposableTree.08cf808f.js → ComposableTree.fc74024a.js} +1 -1
- package/dist/client/_nuxt/{ComposableTree.vue.a160c715.js → ComposableTree.vue.c7f41864.js} +1 -1
- package/dist/client/_nuxt/{Drawer.6d261f16.js → Drawer.71f7d62d.js} +1 -1
- package/dist/client/_nuxt/{Drawer.vue.4d7d190a.js → Drawer.vue.61472665.js} +1 -1
- package/dist/client/_nuxt/{FilepathItem.6f861b0b.js → FilepathItem.f0424391.js} +1 -1
- package/dist/client/_nuxt/{FilepathItem.vue.fcbe3a7a.js → FilepathItem.vue.3e647321.js} +1 -1
- package/dist/client/_nuxt/{IframeView.d58e614f.js → IframeView.78e9c8e5.js} +1 -1
- package/dist/client/_nuxt/{IframeView.vue.46f9c325.js → IframeView.vue.54f89e7f.js} +1 -1
- package/dist/client/_nuxt/{LaunchPage.7f56830a.js → LaunchPage.aef7119a.js} +1 -1
- package/dist/client/_nuxt/{LaunchPage.vue.29133098.js → LaunchPage.vue.520a72f3.js} +1 -1
- package/dist/client/_nuxt/{ModuleItem.9523008d.js → ModuleItem.ac19d5c9.js} +1 -1
- package/dist/client/_nuxt/{ModuleItem.vue.07190cb3.js → ModuleItem.vue.68a7fefd.js} +1 -1
- package/dist/client/_nuxt/{NButton.d5a0d397.js → NButton.fb93b328.js} +1 -1
- package/dist/client/_nuxt/{NButton.vue.3df758c5.js → NButton.vue.e1b8a843.js} +1 -1
- package/dist/client/_nuxt/{NDropdown.d94508d4.js → NDropdown.3b66cf14.js} +1 -1
- package/dist/client/_nuxt/{NLink.34fc60fd.js → NLink.873d3d79.js} +1 -1
- package/dist/client/_nuxt/{NLink.vue.17c2cd3a.js → NLink.vue.c3ddaba8.js} +1 -1
- package/dist/client/_nuxt/{NuxtExampleLayout.904da69e.js → NuxtExampleLayout.4569dcf8.js} +1 -1
- package/dist/client/_nuxt/PluginItem.b3be3a58.js +1 -0
- package/dist/client/_nuxt/{PluginItem.vue.a18a8580.js → PluginItem.vue.eaf5eab2.js} +1 -1
- package/dist/client/_nuxt/{RoutePathItem.77ebd238.js → RoutePathItem.8db2ae7e.js} +1 -1
- package/dist/client/_nuxt/{RoutePathItem.vue.a16a2a5a.js → RoutePathItem.vue.04745c20.js} +1 -1
- package/dist/client/_nuxt/{RoutesTable.3a51b11e.js → RoutesTable.6b9eefe0.js} +1 -1
- package/dist/client/_nuxt/{RoutesTable.vue.66423aa5.js → RoutesTable.vue.af7acfb0.js} +1 -1
- package/dist/client/_nuxt/{components.238910b6.js → components.67fd2b98.js} +1 -1
- package/dist/client/_nuxt/{components.client.73756aea.js → components.client.bfee0e6a.js} +2 -2
- package/dist/client/_nuxt/{custom-_name_.3a92fd5f.js → custom-_name_.2acc77aa.js} +1 -1
- package/dist/client/_nuxt/{default.d86039a2.js → default.7612ba66.js} +1 -1
- package/dist/client/_nuxt/{editor.9a00fe97.js → editor.f69d200c.js} +1 -1
- package/dist/client/_nuxt/{entry.1076cab0.js → entry.d7169bac.js} +1 -1
- package/dist/client/_nuxt/{error-component.916ef420.js → error-component.2d0a1159.js} +1 -1
- package/dist/client/_nuxt/{hooks.03df1882.js → hooks.d96e987b.js} +1 -1
- package/dist/client/_nuxt/{imports.0ab9b18e.js → imports.57b0481d.js} +1 -1
- package/dist/client/_nuxt/{index.adfbbcc3.js → index.0977b63e.js} +1 -1
- package/dist/client/_nuxt/{layout.50e89109.js → layout.27c704cb.js} +1 -1
- package/dist/client/_nuxt/{layouts.22623cd4.js → layouts.cd5cbb48.js} +1 -1
- package/dist/client/_nuxt/{modules.4e9ddad7.js → modules.36a5839f.js} +1 -1
- package/dist/client/_nuxt/{overview.dca34e56.js → overview.7473aa92.js} +1 -1
- package/dist/client/_nuxt/{pages.bdf1c147.js → pages.02ef0472.js} +1 -1
- package/dist/client/_nuxt/{plugins.bb7d1e18.js → plugins.50899071.js} +1 -1
- package/dist/client/_nuxt/rpc.990da39b.js +1 -0
- package/dist/client/_nuxt/{runtime-configs.e1c67255.js → runtime-configs.d1fe4f1d.js} +1 -1
- package/dist/client/_nuxt/{state.68f6a8e0.js → state.90201abf.js} +1 -1
- package/dist/client/_nuxt/{unocss-runtime.cde2ffdd.js → unocss-runtime.2da03436.js} +1 -1
- package/dist/client/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/layouts/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/virtual-files/index.html +2 -2
- package/dist/module.json +1 -1
- package/dist/shared/{devtools.7127abb3.mjs → devtools.210fc042.mjs} +1 -1
- package/module.cjs +15 -0
- package/package.json +12 -11
- package/dist/client/_nuxt/PluginItem.78f70695.js +0 -1
- package/dist/client/_nuxt/rpc.65a41b65.js +0 -1
package/README.md
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
<img width="1200" alt="Nuxt DevTools" src="https://user-images.githubusercontent.com/
|
|
1
|
+
<img width="1200" alt="Nuxt DevTools" src="https://user-images.githubusercontent.com/904724/217796838-597625f1-3f5a-4fb1-9720-68fd1c7d6615.jpg">
|
|
2
2
|
|
|
3
3
|
<br>
|
|
4
4
|
<br>
|
|
@@ -33,7 +33,7 @@ You can opt-in Nuxt DevTools per-project by going to the project root and run:
|
|
|
33
33
|
npx nuxi@latest devtools enable
|
|
34
34
|
```
|
|
35
35
|
|
|
36
|
-
Restart your Nuxt server and open your app in browser. Click the Nuxt icon on the bottom (or press
|
|
36
|
+
Restart your Nuxt server and open your app in browser. Click the Nuxt icon on the bottom (or press <kbd>Alt</kbd> / <kbd>⌥ Option</kbd> + <kbd>D</kbd>) to toggle the DevTools.
|
|
37
37
|
|
|
38
38
|
When you run `nuxi devtools enable`, Nuxt DevTools will be installed as a global module and only activated for the projects you enabled. The configuration will be saved in your local `~/.nuxtrc` file, so it doesn't affect your team unless they also opt-in.
|
|
39
39
|
|
|
@@ -236,6 +236,7 @@ const router = computed(() => devtoolsClient.value?.host?.nuxt.vueApp.config.glo
|
|
|
236
236
|
- VueUse adds a docs tab: https://github.com/vueuse/vueuse/blob/6158e660367b4417896926984670c5b91133c7c3/packages/nuxt/index.ts#L89-L99.
|
|
237
237
|
- UnoCSS Inspector: https://github.com/unocss/unocss/blob/25021a751494e99e85cfd82cca3855cdf78f6a12/packages/nuxt/src/index.ts#L81-L94
|
|
238
238
|
- Nuxt Vitest runner: https://github.com/danielroe/nuxt-vitest/blob/7bac68d96f27dea6c30c198b7caaaf0b495574ab/packages/nuxt-vitest/src/module.ts#L139-L181
|
|
239
|
+
- Nuxt OG Image Playground: https://github.com/harlan-zw/nuxt-og-image/blob/main/src/module.ts#L136
|
|
239
240
|
|
|
240
241
|
## License
|
|
241
242
|
|
|
@@ -15,7 +15,7 @@ import require$$0$6 from 'url';
|
|
|
15
15
|
import * as qs from 'querystring';
|
|
16
16
|
import require$$0$7 from 'tty';
|
|
17
17
|
import { i as isInstalledGlobally } from '../shared/devtools.34d9e53a.mjs';
|
|
18
|
-
import { v as version } from '../shared/devtools.
|
|
18
|
+
import { v as version } from '../shared/devtools.210fc042.mjs';
|
|
19
19
|
import { createBirpcGroup } from 'birpc';
|
|
20
20
|
import { resolvePreset } from 'unimport';
|
|
21
21
|
import { join as join$1, dirname, resolve as resolve$1 } from 'pathe';
|
package/dist/chunks/vscode.mjs
CHANGED
|
@@ -23,7 +23,7 @@ import 'events';
|
|
|
23
23
|
import 'querystring';
|
|
24
24
|
import '../shared/devtools.34d9e53a.mjs';
|
|
25
25
|
import '../shared/devtools.861712a3.mjs';
|
|
26
|
-
import '../shared/devtools.
|
|
26
|
+
import '../shared/devtools.210fc042.mjs';
|
|
27
27
|
import 'birpc';
|
|
28
28
|
import 'unimport';
|
|
29
29
|
import 'pathe';
|
package/dist/cli.mjs
CHANGED
|
@@ -4,14 +4,18 @@ import { execa } from 'execa';
|
|
|
4
4
|
import { readUser, writeUser } from 'rc9';
|
|
5
5
|
import { g as globalDirs } from './shared/devtools.861712a3.mjs';
|
|
6
6
|
import { resolve } from 'pathe';
|
|
7
|
-
import { n as name } from './shared/devtools.
|
|
7
|
+
import { n as name } from './shared/devtools.210fc042.mjs';
|
|
8
8
|
import 'path';
|
|
9
9
|
import 'os';
|
|
10
10
|
|
|
11
11
|
const RC_PATH = ".nuxtrc";
|
|
12
|
-
function enable(path, modulePath) {
|
|
12
|
+
function enable(path, modulePath, removePath) {
|
|
13
13
|
const rc = readUser(RC_PATH);
|
|
14
14
|
let changed = false;
|
|
15
|
+
if (removePath && rc.modules?.includes(removePath)) {
|
|
16
|
+
rc.modules = rc.modules.filter((p) => p !== removePath);
|
|
17
|
+
changed = true;
|
|
18
|
+
}
|
|
15
19
|
if (!rc.modules?.includes(modulePath)) {
|
|
16
20
|
rc.modules = [...rc.modules || [], modulePath];
|
|
17
21
|
changed = true;
|
|
@@ -37,27 +41,43 @@ function disable(path) {
|
|
|
37
41
|
}
|
|
38
42
|
return false;
|
|
39
43
|
}
|
|
44
|
+
function remove(paths) {
|
|
45
|
+
const rc = readUser(RC_PATH);
|
|
46
|
+
rc.modules = (rc.modules || []).filter((p) => paths.includes(p));
|
|
47
|
+
writeUser(rc, RC_PATH);
|
|
48
|
+
return true;
|
|
49
|
+
}
|
|
40
50
|
async function run() {
|
|
41
51
|
const args = process.argv.slice(2);
|
|
42
52
|
const command = args[0];
|
|
43
53
|
const cwd = process.cwd();
|
|
54
|
+
const esmPath = resolve(globalDirs.npm.packages, name, "dist", "module.mjs");
|
|
55
|
+
const cjsPath = resolve(globalDirs.npm.packages, name, "module.cjs");
|
|
44
56
|
if (command === "enable") {
|
|
45
57
|
consola.info("Installed Nuxt Devtools...");
|
|
46
58
|
await execa("npm", ["install", "-g", `${name}@latest`], { stdio: "inherit" });
|
|
47
|
-
|
|
48
|
-
if (!require$$0__default.existsSync(modulePath))
|
|
59
|
+
if (!require$$0__default.existsSync(cjsPath))
|
|
49
60
|
throw new Error("Failed to locate the global Nuxt Devtools module. You may try it again");
|
|
50
|
-
if (enable(cwd,
|
|
61
|
+
if (enable(cwd, cjsPath, esmPath))
|
|
51
62
|
consola.info("Nuxt Devtools enabled! Restart your Nuxt app to start using it.");
|
|
52
63
|
else
|
|
53
64
|
consola.warn("Nuxt Devtools is already enabled for this project.");
|
|
54
65
|
} else if (command === "disable") {
|
|
66
|
+
const isRemove = args.includes("--remove");
|
|
55
67
|
if (disable(cwd))
|
|
56
68
|
consola.success("Nuxt Devtools disabled for this project.");
|
|
57
|
-
else
|
|
69
|
+
else if (!isRemove)
|
|
58
70
|
consola.warn("Nuxt Devtools is not enabled for this project.");
|
|
71
|
+
if (isRemove) {
|
|
72
|
+
remove([esmPath, cjsPath]);
|
|
73
|
+
consola.success("Nuxt Devtools is removed globally");
|
|
74
|
+
}
|
|
75
|
+
} else if (!command) {
|
|
76
|
+
console.log(`npx ${name} enable|disable`);
|
|
77
|
+
process.exit(1);
|
|
59
78
|
} else {
|
|
60
79
|
consola.log(`Unknown command "${command}"`);
|
|
80
|
+
process.exit(1);
|
|
61
81
|
}
|
|
62
82
|
}
|
|
63
83
|
run().catch((err) => {
|
package/dist/client/200.html
CHANGED
|
@@ -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.d7169bac.js"><link rel="preload" as="style" href="/__nuxt_devtools__/client/_nuxt/entry.53569115.css"><link rel="modulepreload" as="script" crossorigin href="/__nuxt_devtools__/client/_nuxt/runtime-dom.esm-bundler.b0076367.js"><link rel="modulepreload" as="script" crossorigin href="/__nuxt_devtools__/client/_nuxt/runtime-core.esm-bundler.5019e930.js"><link rel="modulepreload" as="script" crossorigin href="/__nuxt_devtools__/client/_nuxt/index.6cafd97e.js"><link rel="modulepreload" as="script" crossorigin href="/__nuxt_devtools__/client/_nuxt/nuxt-link.724f8a66.js"><link rel="modulepreload" as="script" crossorigin href="/__nuxt_devtools__/client/_nuxt/app.config.a09258b3.js"><link rel="modulepreload" as="script" crossorigin href="/__nuxt_devtools__/client/_nuxt/utils.3921fcc0.js"><link rel="modulepreload" as="script" crossorigin href="/__nuxt_devtools__/client/_nuxt/error.10b092f1.js"><link rel="modulepreload" as="script" crossorigin href="/__nuxt_devtools__/client/_nuxt/state.5364a68a.js"><link rel="modulepreload" as="script" crossorigin href="/__nuxt_devtools__/client/_nuxt/layout.27c704cb.js"><link rel="modulepreload" as="script" crossorigin href="/__nuxt_devtools__/client/_nuxt/storage.82519452.js"><link rel="modulepreload" as="script" crossorigin href="/__nuxt_devtools__/client/_nuxt/index.96e42b53.js"><link rel="modulepreload" as="script" crossorigin href="/__nuxt_devtools__/client/_nuxt/index.7c6751e3.js"><link rel="modulepreload" as="script" crossorigin href="/__nuxt_devtools__/client/_nuxt/color-mode-options.00c15dd1.js"><link rel="modulepreload" as="script" crossorigin href="/__nuxt_devtools__/client/_nuxt/client.ef9805ed.js"><link rel="modulepreload" as="script" crossorigin href="/__nuxt_devtools__/client/_nuxt/rpc.990da39b.js"><link rel="modulepreload" as="script" crossorigin href="/__nuxt_devtools__/client/_nuxt/nuxt-loading-indicator.494ea32c.js"><link rel="modulepreload" as="script" crossorigin href="/__nuxt_devtools__/client/_nuxt/page.8df04ed4.js"><link rel="modulepreload" as="script" crossorigin href="/__nuxt_devtools__/client/_nuxt/composables.3d6ee8a2.js"><link rel="prefetch" as="script" crossorigin href="/__nuxt_devtools__/client/_nuxt/unocss-runtime.2da03436.js"><link rel="prefetch" as="script" crossorigin href="/__nuxt_devtools__/client/_nuxt/error-component.2d0a1159.js"><link rel="stylesheet" href="/__nuxt_devtools__/client/_nuxt/entry.53569115.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:""}},data:{},state:{}}</script><script type="module" src="/__nuxt_devtools__/client/_nuxt/entry.
|
|
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:""}},data:{},state:{}}</script><script type="module" src="/__nuxt_devtools__/client/_nuxt/entry.d7169bac.js" crossorigin></script></body>
|
|
7
7
|
</html>
|
package/dist/client/404.html
CHANGED
|
@@ -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.d7169bac.js"><link rel="preload" as="style" href="/__nuxt_devtools__/client/_nuxt/entry.53569115.css"><link rel="modulepreload" as="script" crossorigin href="/__nuxt_devtools__/client/_nuxt/runtime-dom.esm-bundler.b0076367.js"><link rel="modulepreload" as="script" crossorigin href="/__nuxt_devtools__/client/_nuxt/runtime-core.esm-bundler.5019e930.js"><link rel="modulepreload" as="script" crossorigin href="/__nuxt_devtools__/client/_nuxt/index.6cafd97e.js"><link rel="modulepreload" as="script" crossorigin href="/__nuxt_devtools__/client/_nuxt/nuxt-link.724f8a66.js"><link rel="modulepreload" as="script" crossorigin href="/__nuxt_devtools__/client/_nuxt/app.config.a09258b3.js"><link rel="modulepreload" as="script" crossorigin href="/__nuxt_devtools__/client/_nuxt/utils.3921fcc0.js"><link rel="modulepreload" as="script" crossorigin href="/__nuxt_devtools__/client/_nuxt/error.10b092f1.js"><link rel="modulepreload" as="script" crossorigin href="/__nuxt_devtools__/client/_nuxt/state.5364a68a.js"><link rel="modulepreload" as="script" crossorigin href="/__nuxt_devtools__/client/_nuxt/layout.27c704cb.js"><link rel="modulepreload" as="script" crossorigin href="/__nuxt_devtools__/client/_nuxt/storage.82519452.js"><link rel="modulepreload" as="script" crossorigin href="/__nuxt_devtools__/client/_nuxt/index.96e42b53.js"><link rel="modulepreload" as="script" crossorigin href="/__nuxt_devtools__/client/_nuxt/index.7c6751e3.js"><link rel="modulepreload" as="script" crossorigin href="/__nuxt_devtools__/client/_nuxt/color-mode-options.00c15dd1.js"><link rel="modulepreload" as="script" crossorigin href="/__nuxt_devtools__/client/_nuxt/client.ef9805ed.js"><link rel="modulepreload" as="script" crossorigin href="/__nuxt_devtools__/client/_nuxt/rpc.990da39b.js"><link rel="modulepreload" as="script" crossorigin href="/__nuxt_devtools__/client/_nuxt/nuxt-loading-indicator.494ea32c.js"><link rel="modulepreload" as="script" crossorigin href="/__nuxt_devtools__/client/_nuxt/page.8df04ed4.js"><link rel="modulepreload" as="script" crossorigin href="/__nuxt_devtools__/client/_nuxt/composables.3d6ee8a2.js"><link rel="prefetch" as="script" crossorigin href="/__nuxt_devtools__/client/_nuxt/unocss-runtime.2da03436.js"><link rel="prefetch" as="script" crossorigin href="/__nuxt_devtools__/client/_nuxt/error-component.2d0a1159.js"><link rel="stylesheet" href="/__nuxt_devtools__/client/_nuxt/entry.53569115.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:""}},data:{},state:{}}</script><script type="module" src="/__nuxt_devtools__/client/_nuxt/entry.
|
|
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:""}},data:{},state:{}}</script><script type="module" src="/__nuxt_devtools__/client/_nuxt/entry.d7169bac.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.d7169bac.js"><link rel="preload" as="style" href="/__nuxt_devtools__/client/_nuxt/entry.53569115.css"><link rel="modulepreload" as="script" crossorigin href="/__nuxt_devtools__/client/_nuxt/runtime-dom.esm-bundler.b0076367.js"><link rel="modulepreload" as="script" crossorigin href="/__nuxt_devtools__/client/_nuxt/runtime-core.esm-bundler.5019e930.js"><link rel="modulepreload" as="script" crossorigin href="/__nuxt_devtools__/client/_nuxt/index.6cafd97e.js"><link rel="modulepreload" as="script" crossorigin href="/__nuxt_devtools__/client/_nuxt/nuxt-link.724f8a66.js"><link rel="modulepreload" as="script" crossorigin href="/__nuxt_devtools__/client/_nuxt/app.config.a09258b3.js"><link rel="modulepreload" as="script" crossorigin href="/__nuxt_devtools__/client/_nuxt/utils.3921fcc0.js"><link rel="modulepreload" as="script" crossorigin href="/__nuxt_devtools__/client/_nuxt/error.10b092f1.js"><link rel="modulepreload" as="script" crossorigin href="/__nuxt_devtools__/client/_nuxt/state.5364a68a.js"><link rel="modulepreload" as="script" crossorigin href="/__nuxt_devtools__/client/_nuxt/layout.27c704cb.js"><link rel="modulepreload" as="script" crossorigin href="/__nuxt_devtools__/client/_nuxt/storage.82519452.js"><link rel="modulepreload" as="script" crossorigin href="/__nuxt_devtools__/client/_nuxt/index.96e42b53.js"><link rel="modulepreload" as="script" crossorigin href="/__nuxt_devtools__/client/_nuxt/index.7c6751e3.js"><link rel="modulepreload" as="script" crossorigin href="/__nuxt_devtools__/client/_nuxt/color-mode-options.00c15dd1.js"><link rel="modulepreload" as="script" crossorigin href="/__nuxt_devtools__/client/_nuxt/client.ef9805ed.js"><link rel="modulepreload" as="script" crossorigin href="/__nuxt_devtools__/client/_nuxt/rpc.990da39b.js"><link rel="modulepreload" as="script" crossorigin href="/__nuxt_devtools__/client/_nuxt/nuxt-loading-indicator.494ea32c.js"><link rel="modulepreload" as="script" crossorigin href="/__nuxt_devtools__/client/_nuxt/page.8df04ed4.js"><link rel="modulepreload" as="script" crossorigin href="/__nuxt_devtools__/client/_nuxt/composables.3d6ee8a2.js"><link rel="prefetch" as="script" crossorigin href="/__nuxt_devtools__/client/_nuxt/unocss-runtime.2da03436.js"><link rel="prefetch" as="script" crossorigin href="/__nuxt_devtools__/client/_nuxt/error-component.2d0a1159.js"><link rel="stylesheet" href="/__nuxt_devtools__/client/_nuxt/entry.53569115.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:""}},data:{},state:{}}</script><script type="module" src="/__nuxt_devtools__/client/_nuxt/entry.
|
|
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:""}},data:{},state:{}}</script><script type="module" src="/__nuxt_devtools__/client/_nuxt/entry.d7169bac.js" crossorigin></script></body>
|
|
7
7
|
</html>
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{_ as o}from"./ComponentItem.vue.
|
|
1
|
+
import{_ as o}from"./ComponentItem.vue.b2907459.js";import"./Badge.23dc2d8f.js";import"./_plugin-vue_export-helper.c27b6911.js";import"./runtime-core.esm-bundler.5019e930.js";import"./FilepathItem.vue.3e647321.js";import"./state.90201abf.js";import"./client.ef9805ed.js";import"./nuxt-link.724f8a66.js";import"./state.5364a68a.js";import"./app.config.a09258b3.js";import"./utils.c2a3506b.js";import"./asyncData.0d07d609.js";import"./error.10b092f1.js";import"./rpc.990da39b.js";import"./index.6cafd97e.js";import"./editor.f69d200c.js";import"./context.dc73232e.js";import"./index.96e42b53.js";import"./index.7c6751e3.js";export{o as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import v from"./Badge.23dc2d8f.js";import{_ as y}from"./FilepathItem.vue.
|
|
1
|
+
import v from"./Badge.23dc2d8f.js";import{_ as y}from"./FilepathItem.vue.3e647321.js";import{u as C}from"./editor.f69d200c.js";import{h as x,c as m,j as u,l as g,A as l,af as _,H as b,u as k,k as f,B as d,m as B}from"./runtime-core.esm-bundler.5019e930.js";const S=/\d/,N=["-","_","/","."];function R(e=""){if(!S.test(e))return e.toUpperCase()===e}function U(e,a){const c=a??N,n=[];if(!e||typeof e!="string")return n;let t="",o,p;for(const s of e){const i=c.includes(s);if(i===!0){n.push(t),t="",o=void 0;continue}const r=R(s);if(p===!1){if(o===!1&&r===!0){n.push(t),t=s,o=r;continue}if(o===!0&&r===!1&&t.length>1){const h=t[t.length-1];n.push(t.slice(0,Math.max(0,t.length-1))),t=h+s,o=r;continue}}t+=s,o=r,p=i}return n.push(t),n}function $(e){return e?e[0].toUpperCase()+e.slice(1):""}function A(e){return e?(Array.isArray(e)?e:U(e)).map(a=>$(a)).join(""):""}const E={rounded:"",px2:"",py1:"",hover:"bg-gray/10",class:"group",flex:"~ gap2","w-full":"","items-center":""},T={"font-mono":"","text-sm":""},I=l("span",{op20:"",mr1:""},"<",-1),P=l("span",{op20:"",ml1:""},"/>",-1),M=x({__name:"ComponentItem",props:{component:null},setup(e){const a=m(()=>e.component.pascalName||A(e.component.name||e.component.__name||e.component.kebabName||"")),c=m(()=>e.component.filePath||e.component.file||e.component.__file||""),n=C();return(t,o)=>{const p=v,s=y;return u(),g("div",E,[l("button",{"hover:text-primary":"",onClick:o[0]||(o[0]=i=>k(n)(`<${a.value}></${a.value}>`))},[l("code",T,[I,_(b(a.value),1),P])]),e.component.global?(u(),f(p,{key:0,"bg-green-400:10":"","text-green-400":"",title:"Registered at runtime as a global component",textContent:"runtime"})):d("",!0),B(t.$slots,"default"),c.value?(u(),f(s,{key:1,filepath:c.value,"text-sm":"",op25:"","group-hover:op75":""},null,8,["filepath"])):d("",!0)])}}});export{M as _};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{_ as o}from"./ComponentsGraph.vue.
|
|
1
|
+
import{_ as o}from"./ComponentsGraph.vue.4984fec1.js";import"./NCheckbox.vue.25b386b6.js";import"./NIcon.vue.2481694f.js";import"./runtime-core.esm-bundler.5019e930.js";import"./runtime-dom.esm-bundler.b0076367.js";import"./index.96e42b53.js";import"./index.7c6751e3.js";import"./FilepathItem.vue.3e647321.js";import"./state.90201abf.js";import"./client.ef9805ed.js";import"./nuxt-link.724f8a66.js";import"./state.5364a68a.js";import"./app.config.a09258b3.js";import"./utils.c2a3506b.js";import"./asyncData.0d07d609.js";import"./error.10b092f1.js";import"./rpc.990da39b.js";import"./index.6cafd97e.js";import"./editor.f69d200c.js";import"./context.dc73232e.js";import"./NButton.vue.e1b8a843.js";import"./components.client.bfee0e6a.js";import"./layout.27c704cb.js";import"./utils.3921fcc0.js";import"./storage.82519452.js";/* empty css */import"./client-only.57dcb5bd.js";import"./StateEditor.vue.4c95ce8f.js";/* empty css */import"./nuxt-error-boundary.fc4d7c25.js";import"./dev-only.fb81821a.js";import"./server-placeholder.735ae8e9.js";import"./nuxt-loading-indicator.494ea32c.js";import"./page.8df04ed4.js";import"./components.bcdd3ff8.js";import"./composables.3d6ee8a2.js";import"./composables.7fd231ea.js";export{o as default};
|
package/dist/client/_nuxt/{ComponentsGraph.vue.687b60ce.js → ComponentsGraph.vue.4984fec1.js}
RENAMED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{_ as A}from"./NCheckbox.vue.25b386b6.js";import{_ as E}from"./FilepathItem.vue.
|
|
1
|
+
import{_ as A}from"./NCheckbox.vue.25b386b6.js";import{_ as E}from"./FilepathItem.vue.3e647321.js";import{_ as R}from"./NButton.vue.e1b8a843.js";import{u as T}from"./composables.7fd231ea.js";import{a as U,b as D,c as j}from"./state.90201abf.js";import{d as q}from"./storage.82519452.js";import{N as I}from"./components.client.bfee0e6a.js";import{h as H,r as b,c as V,a7 as J,a as K,l as g,A as l,E as c,D as _,u as d,b as y,af as C,B as N,F as O,j as w}from"./runtime-core.esm-bundler.5019e930.js";const Q={border:"b base",flex:"~ gap4",py1:"","items-center":"",px4:"","h-10":"","flex-none":""},W=l("span",{op75:""},"Show pages",-1),X=l("span",{op75:""},"Show layouts",-1),Y=l("span",{op75:""},"Show node_modules",-1),Z=l("div",{"i-carbon-close":""},null,-1),ee={"w-full":"",relative:"",style:{height:"calc(100vh - 115px)"}},oe={key:0,border:"~ base",flex:"~ col gap-1","text-sm":"",rounded:"",absolute:"","right-4":"","top-4":"","bg-base":"",shadow:"",p2:"","items-end":""},de=H({__name:"ComponentsGraph",props:{components:null},setup(S){const $=S,x=b(),F=T(),i=b(),M=U(),B=D(),G=j(),{componentsGraphShowNodeModules:m,componentsGraphShowPages:f,componentsGraphShowLayouts:h}=q,r=b(),k=V(()=>{const a=G.value||[];if(r.value){let o=function(t){!t||e.has(t)||(e.add(t),t.deps.forEach(n=>{o(a.find(s=>s.id===n))}))};const e=new Set;return a.find(t=>t.id===i.value?.id),o(r.value),Array.from(e)}return a}),v=V(()=>{const a=k.value.map(e=>{const t=$.components.find(p=>p.filePath===e.id),n=M.value?.find(p=>p.file===e.id),s=B.value?.find(p=>p.file===e.id),P=e.id.replace(/\?.*$/,"").replace(/\#.*$/,""),u=e.id.includes("/node_modules/")?"lib":t?"user":s?"layout":n?"page":"unknown";if(!m.value&&u==="lib"||!f.value&&u==="page"||!h.value&&u==="layout")return null;const z=u==="layout"?"hexagon":u==="page"?"square":"dot";return{id:e.id,label:P.split("/").splice(-1)[0].replace(/\.\w+$/,""),group:u,shape:z,size:15+Math.min(e.deps.length/2,8),font:{color:F.value==="dark"?"white":"black"},color:r.value?.id===e.id?"#82c742":void 0,extra:{id:e.id,component:t,page:n,layout:s,relationship:e}}}).filter(e=>!!e),o=k.value.flatMap(e=>e.deps.map(t=>({from:e.id,to:t,arrows:{to:{enabled:!0,scaleFactor:.8}}})));return{nodes:a,edges:o}});J(()=>{const a={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"}}},o=new I(x.value,v.value,a);o.on("click",e=>{const t=e.nodes?.[0],n=v.value.nodes?.find(s=>s.id===t)?.extra;n&&(i.value=n)}),K(v,()=>{o.setData(v.value)})});function L(){r.value=i.value?.relationship,i.value=void 0}return(a,o)=>{const e=A,t=E,n=R;return w(),g(O,null,[l("div",Q,[c(e,{modelValue:d(f),"onUpdate:modelValue":o[0]||(o[0]=s=>y(f)?f.value=s:null),n:"primary sm"},{default:_(()=>[W]),_:1},8,["modelValue"]),c(e,{modelValue:d(h),"onUpdate:modelValue":o[1]||(o[1]=s=>y(h)?h.value=s:null),n:"primary sm"},{default:_(()=>[X]),_:1},8,["modelValue"]),c(e,{modelValue:d(m),"onUpdate:modelValue":o[2]||(o[2]=s=>y(m)?m.value=s:null),n:"primary sm"},{default:_(()=>[Y]),_:1},8,["modelValue"]),d(r)?(w(),g("button",{key:0,flex:"~ gap-1","items-center":"",py1:"","bg-gray:20":"",pl3:"",pr2:"","rounded-full":"","text-xs":"",op50:"","hover:op100":"",onClick:o[3]||(o[3]=s=>r.value=void 0)},[C(" Clear filter "),Z])):N("",!0)]),l("div",ee,[l("div",{ref_key:"container",ref:x,"w-full":"","h-full":""},null,512),d(i)?(w(),g("div",oe,[c(t,{filepath:d(i).id},null,8,["filepath"]),c(n,{n:"primary solid",onClick:o[4]||(o[4]=s=>L())},{default:_(()=>[C(" Filter to this component ")]),_:1})])):N("",!0)])],64)}}});export{de as _};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{_ as o}from"./ComponentsList.vue.
|
|
1
|
+
import{_ as o}from"./ComponentsList.vue.e6afcbfb.js";import"./ComponentItem.vue.b2907459.js";import"./Badge.23dc2d8f.js";import"./_plugin-vue_export-helper.c27b6911.js";import"./runtime-core.esm-bundler.5019e930.js";import"./FilepathItem.vue.3e647321.js";import"./state.90201abf.js";import"./client.ef9805ed.js";import"./nuxt-link.724f8a66.js";import"./state.5364a68a.js";import"./app.config.a09258b3.js";import"./utils.c2a3506b.js";import"./asyncData.0d07d609.js";import"./error.10b092f1.js";import"./rpc.990da39b.js";import"./index.6cafd97e.js";import"./editor.f69d200c.js";import"./context.dc73232e.js";import"./index.96e42b53.js";import"./index.7c6751e3.js";import"./SectionBlock.6bf10c9f.js";import"./NIcon.vue.2481694f.js";import"./IconTitle.vue.909d2a6b.js";/* empty css */import"./fuse.esm.88e2763d.js";export{o as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{_ as g}from"./ComponentItem.vue.
|
|
1
|
+
import{_ as g}from"./ComponentItem.vue.b2907459.js";import x from"./SectionBlock.6bf10c9f.js";import{_ as P}from"./IconTitle.vue.909d2a6b.js";import{i as y,g as $}from"./utils.c2a3506b.js";import{F as B}from"./fuse.esm.88e2763d.js";import{h as N,c as b,l as u,k as r,D as _,B as d,F as c,j as e,aj as p,E as C,A as F}from"./runtime-core.esm-bundler.5019e930.js";const T={pl4:""},I=N({__name:"ComponentsList",props:{components:null,search:null},setup(k){const f=k,v=b(()=>new B(f.components,{keys:["pascalName","filePath","kebabName"]})),t=b(()=>{const h=[],m=new Map,s=[],i=[],a={user:0,lib:0,builtin:0,runtime:0};return(f.search?v.value.search(f.search).map(n=>n.item):f.components).forEach(n=>{if(n.global){i.push(n),a.runtime++;return}if(n.filePath&&y(n.filePath)){const l=$(n.filePath);if(!l)return;l==="nuxt"?(s.push(n),a.builtin++):(m.has(l)||m.set(l,[]),m.get(l).push(n),a.lib++)}else h.push(n),a.user++}),{count:a,user:h,builtin:s,lib:m,runtime:i}});return(h,m)=>{const s=g,i=x,a=P;return e(),u(c,null,[t.value.user.length?(e(),r(i,{key:0,icon:"carbon-nominal",text:"User components",description:`Total components: ${t.value.count.user}`},{default:_(()=>[(e(!0),u(c,null,p(t.value.user,o=>(e(),r(s,{key:o.filePath,"ml--5":"",component:o},null,8,["component"]))),128))]),_:1},8,["description"])):d("",!0),t.value.runtime.length?(e(),r(i,{key:1,icon:"i-carbon-load-balancer-global",text:"Runtime components",description:`Total components: ${t.value.count.runtime}`},{default:_(()=>[(e(!0),u(c,null,p(t.value.runtime,o=>(e(),r(s,{key:o.filePath,"ml--5":"",component:o},null,8,["component"]))),128))]),_:1},8,["description"])):d("",!0),t.value.builtin.length?(e(),r(i,{key:2,icon:"tabler-brand-nuxt",text:"Built-in components",description:`Total components: ${t.value.count.builtin}`},{default:_(()=>[(e(!0),u(c,null,p(t.value.builtin,o=>(e(),r(s,{key:o.filePath,"ml--5":"",component:o},null,8,["component"]))),128))]),_:1},8,["description"])):d("",!0),t.value.lib.size?(e(),r(i,{key:3,icon:"carbon-3d-mpr-toggle",text:"Components from libraries",description:`${t.value.count.lib} components from ${t.value.lib.size} packages`},{default:_(()=>[(e(!0),u(c,null,p(t.value.lib.entries(),([o,n])=>(e(),u("div",{key:o},[C(a,{text:`${o} (${n.length})`,op50:"",py1:""},null,8,["text"]),F("div",T,[(e(!0),u(c,null,p(n,l=>(e(),r(s,{key:l.filePath,component:l},null,8,["component"]))),128))])]))),128))]),_:1},8,["description"])):d("",!0)],64)}}});export{I as _};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{_ as o}from"./ComposableItem.vue.
|
|
1
|
+
import{_ as o}from"./ComposableItem.vue.63bbac89.js";import"./NButton.vue.e1b8a843.js";import"./NIcon.vue.2481694f.js";import"./runtime-core.esm-bundler.5019e930.js";import"./components.client.bfee0e6a.js";import"./layout.27c704cb.js";import"./runtime-dom.esm-bundler.b0076367.js";import"./utils.3921fcc0.js";import"./nuxt-link.724f8a66.js";import"./app.config.a09258b3.js";import"./client.ef9805ed.js";import"./state.5364a68a.js";import"./rpc.990da39b.js";import"./storage.82519452.js";import"./index.96e42b53.js";import"./index.7c6751e3.js";/* empty css */import"./client-only.57dcb5bd.js";import"./StateEditor.vue.4c95ce8f.js";/* empty css */import"./nuxt-error-boundary.fc4d7c25.js";import"./dev-only.fb81821a.js";import"./server-placeholder.735ae8e9.js";import"./nuxt-loading-indicator.494ea32c.js";import"./page.8df04ed4.js";import"./components.bcdd3ff8.js";import"./composables.3d6ee8a2.js";import"./FilepathItem.vue.3e647321.js";import"./state.90201abf.js";import"./utils.c2a3506b.js";import"./asyncData.0d07d609.js";import"./error.10b092f1.js";import"./index.6cafd97e.js";import"./editor.f69d200c.js";import"./context.dc73232e.js";export{o as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{_ as g}from"./NButton.vue.
|
|
1
|
+
import{_ as g}from"./NButton.vue.e1b8a843.js";import{_ as C}from"./FilepathItem.vue.3e647321.js";import{u as w,o as I}from"./editor.f69d200c.js";import{r as B}from"./components.client.bfee0e6a.js";import{h as N,c as f,z as V,j as o,k as l,D as n,A as t,l as s,u as v,B as c,E as D,af as u,H as h,F as y,aj as E,x as M}from"./runtime-core.esm-bundler.5019e930.js";const j={"hover:text-primary":""},U={key:0,"text-primary":""},$={"max-w-100":""},F={"text-sm":"",px4:"",py3:""},H=["innerHTML"],L={flex:"~ gap2",n:"primary xs"},T={border:"t base",px4:"",py3:""},z={"text-sm":""},S=t("span",{op50:""},"It has been referenced ",-1),A={"text-primary":""},q=t("span",{op50:""}," times by:",-1),G={flex:"~ col gap-2","text-sm":"","items-start":"",pt3:""},J={key:1,op50:"","text-sm":""},W=N({__name:"ComposableItem",props:{import:null,metadata:null,filepath:null},setup(e){const k=w(),i=f(()=>e.import.as||e.import.name),a=f(()=>e.metadata?.injectionUsage?.[i.value]?.count||0),x=f(()=>e.metadata?.injectionUsage?.[i.value]?.moduleIds||[]);return(r,d)=>{const p=g,_=C,b=V("VDropdown");return o(),l(b,{disabled:!e.metadata},{popper:n(()=>[t("div",$,[t("div",F,[e.import.meta?.description?(o(),s("div",{key:0,class:"markdown-body","text-sm":"",pb3:"",innerHTML:("renderMarkdown"in r?r.renderMarkdown:v(B))(e.import.meta.description)},null,8,H)):c("",!0),t("div",L,[D(p,{"n-solid":"",onClick:d[0]||(d[0]=m=>v(k)(i.value))},{default:n(()=>[u(" Copy ")]),_:1}),e.filepath?(o(),l(p,{key:0,"n-solid":"",onClick:d[1]||(d[1]=m=>e.filepath&&("openInEditor"in r?r.openInEditor:v(I))(e.filepath))},{default:n(()=>[u(" Source ")]),_:1})):c("",!0),e.import.meta?.docsUrl?(o(),l(p,{key:1,"n-solid":"",to:e.import.meta?.docsUrl,target:"_blank"},{default:n(()=>[u(" Docs ")]),_:1},8,["to"])):c("",!0)])]),t("div",T,[a.value?(o(),s(y,{key:0},[t("div",z,[S,t("strong",A,h(a.value),1),q]),t("div",G,[(o(!0),s(y,null,E(x.value,m=>(o(),l(_,{key:m,filepath:m},null,8,["filepath"]))),128))])],64)):(o(),s("div",J," Not in use via auto import. "))])])]),default:n(()=>[t("button",j,[t("code",{px2:"",py1:"",rounded:"","font-mono":"","text-sm":"","bg-gray:5":"",class:M(e.metadata&&!a.value?"op30 hover:op100":"")},[u(h(i.value)+" ",1),a.value?(o(),s("sup",U,"x"+h(a.value),1)):c("",!0)],2)])]),_:1},8,["disabled"])}}});export{W as _};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{_ as o}from"./ComposableTree.vue.
|
|
1
|
+
import{_ as o}from"./ComposableTree.vue.c7f41864.js";import"./FilepathItem.vue.3e647321.js";import"./state.90201abf.js";import"./client.ef9805ed.js";import"./nuxt-link.724f8a66.js";import"./runtime-core.esm-bundler.5019e930.js";import"./state.5364a68a.js";import"./app.config.a09258b3.js";import"./utils.c2a3506b.js";import"./asyncData.0d07d609.js";import"./error.10b092f1.js";import"./rpc.990da39b.js";import"./index.6cafd97e.js";import"./editor.f69d200c.js";import"./context.dc73232e.js";import"./index.96e42b53.js";import"./index.7c6751e3.js";import"./ComposableItem.vue.63bbac89.js";import"./NButton.vue.e1b8a843.js";import"./NIcon.vue.2481694f.js";import"./components.client.bfee0e6a.js";import"./layout.27c704cb.js";import"./runtime-dom.esm-bundler.b0076367.js";import"./utils.3921fcc0.js";import"./storage.82519452.js";/* empty css */import"./client-only.57dcb5bd.js";import"./StateEditor.vue.4c95ce8f.js";/* empty css */import"./nuxt-error-boundary.fc4d7c25.js";import"./dev-only.fb81821a.js";import"./server-placeholder.735ae8e9.js";import"./nuxt-loading-indicator.494ea32c.js";import"./page.8df04ed4.js";import"./components.bcdd3ff8.js";import"./composables.3d6ee8a2.js";export{o as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{_ as i}from"./FilepathItem.vue.
|
|
1
|
+
import{_ as i}from"./FilepathItem.vue.3e647321.js";import{_ as c}from"./ComposableItem.vue.63bbac89.js";import{h as _,j as e,l as t,F as r,aj as l,E as u,A as d,k as f}from"./runtime-core.esm-bundler.5019e930.js";const h={flex:"~ wrap gap2",p2:"",pl4:""},b=_({__name:"ComposableTree",props:{map:null,root:null,metadata:null},setup(o){return(v,B)=>{const m=i,s=c;return e(),t("div",null,[(e(!0),t(r,null,l(o.map.entries(),([a,p])=>(e(),t("div",{key:a},[u(m,{filepath:a,op50:"","hover:underline":""},null,8,["filepath"]),d("div",h,[(e(!0),t(r,null,l(p,n=>(e(),f(s,{key:n.as,import:n,metadata:o.metadata,filepath:a.match(/^[\w@]/)?void 0:a},null,8,["import","metadata","filepath"]))),128))])]))),128))])}}});export{b as _};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{_ as o}from"./Drawer.vue.
|
|
1
|
+
import{_ as o}from"./Drawer.vue.61472665.js";import"./NuxtLogo.acbeec62.js";import"./_plugin-vue_export-helper.c27b6911.js";import"./runtime-core.esm-bundler.5019e930.js";import"./Settings.vue.6d6be237.js";import"./NCheckbox.vue.25b386b6.js";import"./NIcon.vue.2481694f.js";import"./runtime-dom.esm-bundler.b0076367.js";import"./index.96e42b53.js";import"./index.7c6751e3.js";import"./storage.82519452.js";import"./NDarkToggle.vue.c227b1bd.js";import"./component.vue3.70214810.js";import"./client-only.57dcb5bd.js";import"./color-mode-options.00c15dd1.js";import"./composables.7fd231ea.js";import"./nuxt-link.724f8a66.js";import"./state.5364a68a.js";import"./app.config.a09258b3.js";import"./DrawerItem.vue.30f032f8.js";import"./TabIcon.vue.8a3fdf6c.js";import"./client.ef9805ed.js";import"./state.90201abf.js";import"./utils.c2a3506b.js";import"./asyncData.0d07d609.js";import"./error.10b092f1.js";import"./rpc.990da39b.js";import"./index.6cafd97e.js";export{o as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import k from"./NuxtLogo.acbeec62.js";import{_ as x}from"./Settings.vue.6d6be237.js";import{_ as C}from"./NDarkToggle.vue.c227b1bd.js";import{_ as w}from"./DrawerItem.vue.30f032f8.js";import{u as y,s as D}from"./client.ef9805ed.js";import{e as T}from"./state.
|
|
1
|
+
import k from"./NuxtLogo.acbeec62.js";import{_ as x}from"./Settings.vue.6d6be237.js";import{_ as C}from"./NDarkToggle.vue.c227b1bd.js";import{_ as w}from"./DrawerItem.vue.30f032f8.js";import{u as y,s as D}from"./client.ef9805ed.js";import{e as T}from"./state.90201abf.js";import{a as N}from"./storage.82519452.js";import{h as B,z as S,j as t,l as n,A as s,E as r,D as c,x as V,u as e,B as m,F as u,aj as _,k as f}from"./runtime-core.esm-bundler.5019e930.js";const $={border:"r base",flex:"~ col","h-full":""},j={flex:"~ gap1",pl3:"",pr2:"","items-center":"",py2:"",border:"b base"},W=s("div",{hidden:"","lg:block":"","flex-auto":""},null,-1),z=["onClick"],E=s("div",{"text-xs":"",p1:"","lg:p2":"","text-hex-888":"","text-center":"",uppercase:"","tracking-widest":"",border:"b base"},[s("span",{hidden:"","lg:inline":""},"Modules")],-1),F=s("div",{"flex-auto":""},null,-1),L={key:0,px4:"",hidden:"","theme-banner-yellow":"","justify-center":"","lg:flex":"",gap3:""},Q=B({__name:"Drawer",setup(A){const a=y(),i=T();return(l,d)=>{const h=k,b=x,g=S("VDropdown"),v=C,p=w;return t(),n("div",$,[s("div",j,[r(g,{placement:"left-start",distance:20},{popper:c(()=>[r(b)]),default:c(()=>[r(h,{"h-8":"",hidden:"","lg:block":"",class:V(e(a)?"":"saturate-0"),title:e(a)?"Nuxt DevTools":"DevTools Client not connected, try open it in iframe mode"},null,8,["class","title"])]),_:1}),W,r(v,null,{default:c(({toggle:o})=>[s("button",{"text-sm":"",op50:"","hover:op100":"","carbon-sun":"","dark:carbon-moon":"",class:"hidden! lg:block!",onClick:I=>o()},null,8,z)]),_:1}),e(a)?(t(),n("button",{key:0,op50:"","hover:op100":"","carbon-close":"","text-xl":"",ma:"",onClick:d[0]||(d[0]=o=>e(a).closeDevTools())})):m("",!0)]),(t(!0),n(u,null,_(e(i).builtin.value,o=>(t(),f(p,{key:o.name,tab:o},null,8,["tab"]))),128)),e(i).custom.value.length&&("devToolsSettings"in l?l.devToolsSettings:e(N)).customTabs?(t(),n(u,{key:0},[E,(t(!0),n(u,null,_(e(i).custom.value,o=>(t(),f(p,{key:o.name,tab:o},null,8,["tab"]))),128)),F,("showConnectionWarning"in l?l.showConnectionWarning:e(D))?(t(),n("div",L," Server data only ")):m("",!0)],64)):m("",!0)])}}});export{Q as _};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{_ as o}from"./FilepathItem.vue.
|
|
1
|
+
import{_ as o}from"./FilepathItem.vue.3e647321.js";import"./state.90201abf.js";import"./client.ef9805ed.js";import"./nuxt-link.724f8a66.js";import"./runtime-core.esm-bundler.5019e930.js";import"./state.5364a68a.js";import"./app.config.a09258b3.js";import"./utils.c2a3506b.js";import"./asyncData.0d07d609.js";import"./error.10b092f1.js";import"./rpc.990da39b.js";import"./index.6cafd97e.js";import"./editor.f69d200c.js";import"./context.dc73232e.js";import"./index.96e42b53.js";import"./index.7c6751e3.js";export{o as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{d as i}from"./state.
|
|
1
|
+
import{d as i}from"./state.90201abf.js";import{a as l}from"./utils.c2a3506b.js";import{o as s}from"./editor.f69d200c.js";import{h as f,c as p,j as m,l as u,H as h,u as r}from"./runtime-core.esm-bundler.5019e930.js";const I=f({__name:"FilepathItem",props:{filepath:null},setup(o){const e=i(),a=p(()=>o.filepath&&e.value?l(o.filepath,e.value.rootDir):o.filepath);return(t,n)=>(m(),u("button",{"font-mono":"","hover:underline":"","ws-nowrap":"","of-hidden":"",onClick:n[0]||(n[0]=d=>("openInEditor"in t?t.openInEditor:r(s))(o.filepath))},h(r(a)),1))}});export{I as _};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{_ as o}from"./IframeView.vue.
|
|
1
|
+
import{_ as o}from"./IframeView.vue.54f89e7f.js";import"./client.ef9805ed.js";import"./nuxt-link.724f8a66.js";import"./runtime-core.esm-bundler.5019e930.js";import"./state.5364a68a.js";import"./app.config.a09258b3.js";import"./composables.7fd231ea.js";import"./index.96e42b53.js";import"./index.7c6751e3.js";import"./rpc.990da39b.js";export{o as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{u as p}from"./client.ef9805ed.js";import{u as h}from"./composables.7fd231ea.js";import{c as y}from"./index.96e42b53.js";import{r as w}from"./rpc.
|
|
1
|
+
import{u as p}from"./client.ef9805ed.js";import{u as h}from"./composables.7fd231ea.js";import{c as y}from"./index.96e42b53.js";import{r as w}from"./rpc.990da39b.js";import{h as g,r as d,c as _,d as x,a7 as b,n as k,w as i,ah as C,l as E,j as M}from"./runtime-core.esm-bundler.5019e930.js";const s=new Map,O=g({__name:"IframeView",props:{tab:null},setup(c){const m=p(),u=h(),r=d(),o=_(()=>c.tab.name);let e=d();const a=x(y(r));b(()=>{const t=c.tab.view,l=t.persistent!==!1;if(s.get(o.value)&&l)e.value=s.get(o.value),e.value.style.visibility="visible";else{e.value=document.createElement("iframe"),l&&s.set(o.value,e.value),e.value.src=t.src;try{e.value.style.opacity="0.01",e.value.onload=()=>{v(),n(),e.value.style.opacity="1"}}catch{e.value.style.opacity="1"}document.body.appendChild(e.value),k(f)}setTimeout(n,100)}),i(f),i(n),i(v),C(()=>{e.value&&(e.value.style.visibility="hidden")});function n(){if(!(!e.value||!e.value.contentWindow))try{const t=e.value.contentWindow.document.querySelector("html");t?.classList.toggle("dark",u.value==="dark"),t?.classList.toggle("light",u.value==="dark")}catch{}}function v(){if(!(!e.value||!e.value.contentWindow))try{e.value.contentWindow.__NUXT_DEVTOOLS__={host:m.value,devtools:{rpc:w}}}catch{}}function f(){e.value&&Object.assign(e.value.style,{position:"fixed",left:`${a.left}px`,top:`${a.top}px`,width:`${a.width}px`,height:`${a.height}px`,outline:"none"})}return(t,l)=>(M(),E("div",{ref_key:"anchor",ref:r,"w-full":"","h-full":""},null,512))}});export{O as _};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{_ as o}from"./LaunchPage.vue.
|
|
1
|
+
import{_ as o}from"./LaunchPage.vue.520a72f3.js";import"./TabIcon.vue.8a3fdf6c.js";import"./runtime-core.esm-bundler.5019e930.js";import"./NIcon.vue.2481694f.js";import"./NButton.vue.e1b8a843.js";import"./components.client.bfee0e6a.js";import"./layout.27c704cb.js";import"./runtime-dom.esm-bundler.b0076367.js";import"./utils.3921fcc0.js";import"./nuxt-link.724f8a66.js";import"./app.config.a09258b3.js";import"./client.ef9805ed.js";import"./state.5364a68a.js";import"./rpc.990da39b.js";import"./storage.82519452.js";import"./index.96e42b53.js";import"./index.7c6751e3.js";/* empty css */import"./client-only.57dcb5bd.js";import"./StateEditor.vue.4c95ce8f.js";/* empty css */import"./nuxt-error-boundary.fc4d7c25.js";import"./dev-only.fb81821a.js";import"./server-placeholder.735ae8e9.js";import"./nuxt-loading-indicator.494ea32c.js";import"./page.8df04ed4.js";import"./components.bcdd3ff8.js";import"./composables.3d6ee8a2.js";export{o as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{_ as f}from"./TabIcon.vue.8a3fdf6c.js";import{_}from"./NIcon.vue.2481694f.js";import{_ as p}from"./NButton.vue.
|
|
1
|
+
import{_ as f}from"./TabIcon.vue.8a3fdf6c.js";import{_}from"./NIcon.vue.2481694f.js";import{_ as p}from"./NButton.vue.e1b8a843.js";import{r as k}from"./components.client.bfee0e6a.js";import{h,l as a,E as b,A as i,H as s,u as g,B as c,F as x,aj as y,j as n,k as l,D as w,af as B,I as N}from"./runtime-core.esm-bundler.5019e930.js";const C={flex:"~ col gap2","h-full":"","items-center":"","justify-center":""},M={"text-xl":""},v=["innerHTML"],L={flex:"~ gap2 wrap"},D=h({__name:"LaunchPage",props:{icon:null,title:null,description:null,actions:null},emits:["action"],setup(e){return(o,T)=>{const d=f,m=_,u=p;return n(),a("div",C,[b(d,{"text-5xl":"",mb4:"",icon:e.icon||e.icon,title:e.title},null,8,["icon","title"]),i("h1",M,s(e.title),1),e.description?(n(),a("div",{key:0,op50:"","text-center":"","text-base":"","mt--1":"",mb2:"",class:"markdown-body",innerHTML:("renderMarkdown"in o?o.renderMarkdown:g(k))(e.description)},null,8,v)):c("",!0),i("div",L,[(n(!0),a(x,null,y(e.actions,(t,r)=>(n(),l(u,N({key:r,n:"solid primary",disabled:t.pending,to:t.src,target:t.src?"_blank":void 0},t.attrs,{onClick:()=>{t.handle?.(),o.$emit("action",r)}}),{default:w(()=>[t.pending?(n(),l(m,{key:0,icon:"carbon-circle-dash","animate-spin":""})):c("",!0),B(" "+s(t.label),1)]),_:2},1040,["disabled","to","target","onClick"]))),128))])])}}});export{D as _};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{_ as o}from"./ModuleItem.vue.
|
|
1
|
+
import{_ as o}from"./ModuleItem.vue.68a7fefd.js";import"./nuxt-link.724f8a66.js";import"./runtime-core.esm-bundler.5019e930.js";import"./FilepathItem.vue.3e647321.js";import"./state.90201abf.js";import"./client.ef9805ed.js";import"./state.5364a68a.js";import"./app.config.a09258b3.js";import"./utils.c2a3506b.js";import"./asyncData.0d07d609.js";import"./error.10b092f1.js";import"./rpc.990da39b.js";import"./index.6cafd97e.js";import"./editor.f69d200c.js";import"./context.dc73232e.js";import"./index.96e42b53.js";import"./index.7c6751e3.js";export{o as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{_ as j}from"./nuxt-link.724f8a66.js";import{_ as C}from"./FilepathItem.vue.
|
|
1
|
+
import{_ as j}from"./nuxt-link.724f8a66.js";import{_ as C}from"./FilepathItem.vue.3e647321.js";import{d as D,h as M}from"./state.90201abf.js";import{i as F,g as I,a as V}from"./utils.c2a3506b.js";import{r as E}from"./rpc.990da39b.js";import{h as S,c as p,al as A,j as t,l as o,A as n,k as y,D as c,af as v,H as s,u as L,B as i,E as _,F as $,aj as H}from"./runtime-core.esm-bundler.5019e930.js";const O={border:"~ base",p4:"",flex:"~ gap2"},T={flex:"~ col gap2","flex-auto":"","of-hidden":"",px1:""},q={"text-lg":"","of-hidden":"","ws-nowrap":"","text-ellipsis":""},z={key:2},G={key:0,op50:"","text-sm":"","mt--1":""},J=n("div",{"flex-auto":""},null,-1),K={key:1,flex:"~ gap-2",title:"Documentation"},Q=n("span",{"text-lg":"",op50:"","i-carbon-link":""},null,-1),R={key:2,flex:"~ gap-2"},U=n("span",{"text-lg":"",op50:"","i-carbon-logo-github":""},null,-1),W={key:3,flex:"~ gap-2",title:"Open on filesystem"},X=n("span",{"text-lg":"",op50:"","i-carbon-folder-move-to":""},null,-1),Y={flex:"~ col"},Z={key:0,p4:"",rounded:"","flex-none":"","h-20":"","w-20":"","bg-gray:3":"",flex:""},ee=["src","alt"],te=n("div",{op50:"",ma:"","i-carbon-circle-dash":"","text-4xl":""},null,-1),ae={key:1,flex:"~","items-end":"","flex-auto":"",mt2:"","justify-end":""},oe=["src"],de=S({__name:"ModuleItem",props:{mod:null},async setup(a){let u,f;const g=D(),h=p(()=>a.mod.entryPath&&F(a.mod.entryPath)),d=p(()=>a.mod.meta?.name?a.mod.meta.name:a.mod.entryPath?h.value?I(a.mod.entryPath):g.value?.rootDir?V(a.mod.entryPath,g.value?.rootDir):"":""),b=([u,f]=A(()=>M()),u=await u,f(),u),e=p(()=>({name:d.value,...a.mod?.meta,...(b||[]).find?.(l=>l.npm===d.value||l.name===d.value)})),k="https://api.nuxtjs.org/api/ipx/s_80,f_webp/gh/nuxt/modules/main/icons/",w="https://api.nuxtjs.org/api/ipx/s_44,f_webp/gh_avatar/",P="https://github.com/",B="https://www.npmjs.com/package/";return(l,x)=>{const m=j,N=C;return t(),o("div",O,[n("div",T,[n("div",q,[h.value?(t(),y(m,{key:0,to:B+(e.value.npm||e.value.name),target:"_blank",hover:"underline text-primary"},{default:c(()=>[v(s(e.value.name),1)]),_:1},8,["to"])):a.mod.entryPath?(t(),o("a",{key:1,hover:"underline text-primary",onClick:x[0]||(x[0]=r=>("rpc"in l?l.rpc:L(E)).openInEditor(a.mod.entryPath))},s(e.value.name),1)):(t(),o("span",z,s(e.value.name),1))]),e.value.description?(t(),o("div",G,s(e.value.description),1)):i("",!0),J,e.value.website?(t(),o("div",K,[Q,_(m,{to:e.value.website,target:"_blank","text-sm":"",op50:"",hover:"op100 underline text-primary"},{default:c(()=>[v(s(e.value.website.replace(/^https?:\/\//,"")),1)]),_:1},8,["to"])])):i("",!0),e.value.github?(t(),o("div",R,[U,_(m,{to:e.value.github,target:"_blank","text-sm":"",op50:"",hover:"op100 underline text-primary"},{default:c(()=>[v(s(e.value.github.replace(/^https?:\/\/github.com\//,"")),1)]),_:1},8,["to"])])):i("",!0),a.mod.entryPath?(t(),o("div",W,[X,_(N,{filepath:a.mod.entryPath,"text-sm":"",op50:"",hover:"text-primary op100"},null,8,["filepath"])])):i("",!0)]),n("div",Y,[e.value.icon||h.value?(t(),o("div",Z,[e.value.icon?(t(),o("img",{key:0,src:k+e.value.icon,alt:d.value,ma:""},null,8,ee)):i("",!0),te])):i("",!0),e.value.maintainers?.length?(t(),o("div",ae,[(t(!0),o($,null,H(e.value.maintainers,r=>(t(),y(m,{key:r.name,target:"_blank",to:P+r.github,title:r.name},{default:c(()=>[n("img",{src:w+r.github,"rounded-full":"","w-6":"","h-6":""},null,8,oe)]),_:2},1032,["to","title"]))),128))])):i("",!0)])])}}});export{de as _};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{_ as o}from"./NButton.vue.
|
|
1
|
+
import{_ as o}from"./NButton.vue.e1b8a843.js";import"./NIcon.vue.2481694f.js";import"./runtime-core.esm-bundler.5019e930.js";import"./components.client.bfee0e6a.js";import"./layout.27c704cb.js";import"./runtime-dom.esm-bundler.b0076367.js";import"./utils.3921fcc0.js";import"./nuxt-link.724f8a66.js";import"./app.config.a09258b3.js";import"./client.ef9805ed.js";import"./state.5364a68a.js";import"./rpc.990da39b.js";import"./storage.82519452.js";import"./index.96e42b53.js";import"./index.7c6751e3.js";/* empty css */import"./client-only.57dcb5bd.js";import"./StateEditor.vue.4c95ce8f.js";/* empty css */import"./nuxt-error-boundary.fc4d7c25.js";import"./dev-only.fb81821a.js";import"./server-placeholder.735ae8e9.js";import"./nuxt-loading-indicator.494ea32c.js";import"./page.8df04ed4.js";import"./components.bcdd3ff8.js";import"./composables.3d6ee8a2.js";export{o as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{_ as c}from"./NIcon.vue.2481694f.js";import"./components.client.
|
|
1
|
+
import{_ as c}from"./NIcon.vue.2481694f.js";import"./components.client.bfee0e6a.js";import{_ as i}from"./nuxt-link.724f8a66.js";import{h as r,k as t,D as u,I as l,ag as m,u as b,j as e,m as s,B as f}from"./runtime-core.esm-bundler.5019e930.js";const k=r({__name:"NButton",props:{to:null,icon:null},setup(n){return(o,d)=>{const a=c;return e(),t(m(n.to?b(i):"button"),l({to:n.to},o.$attrs,{class:"n-button n-transition n-button-base hover:n-button-hover active:n-button-active focus-visible:n-focus-base n-disabled:n-disabled"}),{default:u(()=>[s(o.$slots,"icon",{},()=>[n.icon?(e(),t(a,{key:0,icon:n.icon,class:"n-button-icon"},null,8,["icon"])):f("",!0)]),s(o.$slots,"default")]),_:3},16,["to"])}}});export{k as _};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{_ as l}from"./NButton.vue.
|
|
1
|
+
import{_ as l}from"./NButton.vue.e1b8a843.js";import{a as d,o as u}from"./index.96e42b53.js";import{h as f,r as c,j as v,l as b,m as a,E as _,D as k,af as C,u as t,A as V,x as B}from"./runtime-core.esm-bundler.5019e930.js";import"./NIcon.vue.2481694f.js";import"./components.client.bfee0e6a.js";import"./layout.27c704cb.js";import"./runtime-dom.esm-bundler.b0076367.js";import"./utils.3921fcc0.js";import"./nuxt-link.724f8a66.js";import"./app.config.a09258b3.js";import"./client.ef9805ed.js";import"./state.5364a68a.js";import"./rpc.990da39b.js";import"./storage.82519452.js";import"./index.7c6751e3.js";/* empty css */import"./client-only.57dcb5bd.js";import"./StateEditor.vue.4c95ce8f.js";/* empty css */import"./nuxt-error-boundary.fc4d7c25.js";import"./dev-only.fb81821a.js";import"./server-placeholder.735ae8e9.js";import"./nuxt-loading-indicator.494ea32c.js";import"./page.8df04ed4.js";import"./components.bcdd3ff8.js";import"./composables.3d6ee8a2.js";const U=f({__name:"NDropdown",props:{modelValue:{type:Boolean}},setup(p,{emit:i}){const o=d(p,"modelValue",i,{passive:!0}),r=c();return u(r,()=>{o.value=!1}),(s,e)=>{const n=l;return v(),b("div",{ref_key:"el",ref:r,class:"relative"},[a(s.$slots,"trigger",{enabled:t(o),onClick:e[0]||(e[0]=m=>o.value=!t(o))},()=>[_(n,{onClick:e[1]||(e[1]=m=>o.value=!t(o))},{default:k(()=>[C(" Dropdown ")]),_:1})]),V("div",{class:B(["absolute z-10 n-transition n-bg-base border n-border-base rounded shadow",[t(o)?"op-100":"op0 pointer-events-none -translate-y-1"]])},[a(s.$slots,"default")],2)],512)}}});export{U as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{_ as o}from"./NLink.vue.
|
|
1
|
+
import{_ as o}from"./NLink.vue.c3ddaba8.js";import"./components.client.bfee0e6a.js";import"./layout.27c704cb.js";import"./runtime-dom.esm-bundler.b0076367.js";import"./runtime-core.esm-bundler.5019e930.js";import"./utils.3921fcc0.js";import"./nuxt-link.724f8a66.js";import"./app.config.a09258b3.js";import"./client.ef9805ed.js";import"./state.5364a68a.js";import"./rpc.990da39b.js";import"./storage.82519452.js";import"./index.96e42b53.js";import"./index.7c6751e3.js";/* empty css */import"./client-only.57dcb5bd.js";import"./StateEditor.vue.4c95ce8f.js";/* empty css */import"./nuxt-error-boundary.fc4d7c25.js";import"./dev-only.fb81821a.js";import"./server-placeholder.735ae8e9.js";import"./nuxt-loading-indicator.494ea32c.js";import"./page.8df04ed4.js";import"./components.bcdd3ff8.js";import"./composables.3d6ee8a2.js";export{o as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import"./components.client.
|
|
1
|
+
import"./components.client.bfee0e6a.js";import{_ as o}from"./nuxt-link.724f8a66.js";import{h as r,j as t,k as a,D as s,m as l,I as i,ag as m,u as p}from"./runtime-core.esm-bundler.5019e930.js";const h=r({__name:"NLink",props:{to:null,href:null,target:null},setup(e){return(n,u)=>(t(),a(m(e.href||e.target?"a":p(o)),i(n.$props,{class:"n-link n-link-base hover:n-link-hover n-transition"}),{default:s(()=>[l(n.$slots,"default")]),_:3},16))}});export{h as _};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{_ as $}from"./NLink.vue.
|
|
1
|
+
import{_ as $}from"./NLink.vue.c3ddaba8.js";import{_ as g}from"./NButton.vue.e1b8a843.js";import{_ as k}from"./NDarkToggle.vue.c227b1bd.js";import b from"./NCard.47038127.js";import{_ as r}from"./NIcon.vue.2481694f.js";import{_ as C}from"./_plugin-vue_export-helper.c27b6911.js";import{j as l,l as c,A as o,h as w,m as n,k as m,E as s,D as a,af as h,H as y,x as d,B as N}from"./runtime-core.esm-bundler.5019e930.js";import V from"./NuxtContentLogo.1ca13565.js";import"./components.client.bfee0e6a.js";import"./layout.27c704cb.js";import"./runtime-dom.esm-bundler.b0076367.js";import"./utils.3921fcc0.js";import"./nuxt-link.724f8a66.js";import"./app.config.a09258b3.js";import"./client.ef9805ed.js";import"./state.5364a68a.js";import"./rpc.990da39b.js";import"./storage.82519452.js";import"./index.96e42b53.js";import"./index.7c6751e3.js";/* empty css */import"./client-only.57dcb5bd.js";import"./StateEditor.vue.4c95ce8f.js";/* empty css */import"./nuxt-error-boundary.fc4d7c25.js";import"./dev-only.fb81821a.js";import"./server-placeholder.735ae8e9.js";import"./nuxt-loading-indicator.494ea32c.js";import"./page.8df04ed4.js";import"./components.bcdd3ff8.js";import"./composables.3d6ee8a2.js";import"./component.vue3.70214810.js";import"./color-mode-options.00c15dd1.js";import"./composables.7fd231ea.js";const B={},E={viewBox:"0 0 221 65",fill:"none",xmlns:"http://www.w3.org/2000/svg"},Z=o("g",{"clip-path":"url(#a)"},[o("path",{fill:"currentColor",d:"M82.562 18.57h7.302l15.474 24.742V18.571h6.741v35.057h-7.252l-15.525-24.69v24.69h-6.74V18.57Zm59.645 35.058h-6.282v-3.916c-1.429 2.756-4.339 4.308-8.015 4.308-5.822 0-9.603-4.107-9.603-10.018V28.385h6.282V42.71c0 3.456 2.146 5.859 5.362 5.859 3.524 0 5.974-2.704 5.974-6.41V28.385h6.282v25.243Zm21.857-.4-6.026-8.413-6.027 8.414h-6.69l9.296-13.172-8.58-12.071h6.843l5.158 7.264 5.106-7.264h6.895l-8.632 12.07 9.295 13.173h-6.638Zm19.405-32.455v7.611h7.149v5.16h-7.149v12.53c0 .421.17.825.473 1.123.303.298.715.465 1.144.466h5.532v5.955h-4.137c-5.617 0-9.293-3.206-9.293-8.811V33.548h-5.056v-5.164h3.172c1.479 0 2.34-.864 2.34-2.293v-5.318h5.825Z"}),o("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M30.119 11.546c-1.886-3.242-6.6-3.242-8.484 0L1.087 46.875c-1.885 3.241.472 7.293 4.242 7.293h16.04c-1.61-1.408-2.207-3.844-.988-5.934L35.942 21.56l-5.824-10.013Z",fill:"#80EEC0"}),o("path",{d:"M43.137 19.295c1.56-2.652 5.461-2.652 7.022 0l17.004 28.906c1.56 2.652-.39 5.968-3.51 5.968h-34.01c-3.12 0-5.07-3.316-3.51-5.968l17.004-28.906ZM209.174 53.8h-10.691c0-1.85.067-3.452 0-6.02h10.641c1.868 0 3.353.1 4.354-.935 1-1.034 1.501-2.335 1.501-3.903 0-1.834-.667-3.219-2.002-4.153-1.301-.967-2.985-1.451-5.054-1.451h-2.601v-5.254h2.652c1.701 0 3.119-.4 4.253-1.2 1.134-.801 1.701-1.986 1.701-3.553 0-1.301-.434-2.336-1.301-3.103-.834-.8-2.001-1.2-3.503-1.2-1.634 0-2.918.483-3.853 1.45-.9.968-1.401 2.152-1.501 3.553h-6.254c.133-3.236 1.251-5.788 3.352-7.656 2.135-1.868 4.887-2.802 8.256-2.802 2.402 0 4.42.434 6.055 1.301 1.668.834 2.919 1.952 3.753 3.353.867 1.4 1.301 2.952 1.301 4.653 0 1.968-.551 3.636-1.651 5.004-1.068 1.334-2.402 2.235-4.004 2.702 1.969.4 3.57 1.368 4.804 2.902 1.234 1.501 1.852 3.403 1.852 5.705 0 1.934-.468 3.702-1.402 5.304-.934 1.6-2.301 2.885-4.103 3.852-1.768.968-3.953 1.452-6.555 1.452Z",fill:"#00DC82"})],-1),L=[Z];function D(t,p){return l(),c("svg",E,L)}const M=C(B,[["render",D]]),T={class:"relative font-sans",n:"green6"},I={class:"container max-w-200 mx-auto py-10 px-4"},P={class:"flex flex-wrap items-end gap-3 mb-4 relative"},S={class:"text-xl flex"},j=o("div",{class:"op-50"}," examples/ ",-1),z=o("div",{"flex-auto":""},null,-1),A={class:"op20 hover:op-100 n-transition -mb-2 -mr-1"},b1=w({__name:"NuxtExampleLayout",props:{example:null,showTips:{type:Boolean},class:null,openPath:null,repo:{default:"nuxt/framework"}},setup(t){const p=t,f=()=>{fetch(`/__open-in-editor?file=${encodeURIComponent(p.openPath||"app.vue")}`)};return(e,H)=>{const _=$,i=g,u=k,x=b;return l(),c("div",T,[o("div",I,[o("div",P,[n(e.$slots,"logo",{},()=>[t.repo==="nuxt/content"?(l(),m(V,{key:0,class:"h-10"})):(l(),m(M,{key:1,class:"h-10"}))]),o("div",S,[j,n(e.$slots,"name",{},()=>[s(_,{href:`https://github.com/${t.repo}/tree/main/examples/${t.example}`,target:"_blank"},{default:a(()=>[h(y(t.example),1)]),_:1},8,["href"])])]),z,o("div",A,[s(i,{n:"borderless lg",class:"p-2 op50",to:`https://github.com/${t.repo}/tree/main/examples/${t.example}`,target:"_blank"},{default:a(()=>[s(r,{icon:"carbon-code"})]),_:1},8,["to"]),s(u,null,{default:a(({toggle:v})=>[s(i,{n:"borderless lg","p-2":"",op50:"",onClick:v},{default:a(()=>[s(r,{icon:"dark:carbon-moon carbon-sun"})]),_:2},1032,["onClick"])]),_:1})])]),n(e.$slots,"subtitle"),n(e.$slots,"nav"),s(x,{class:d(["p-6 flex flex-col gap-2 text-center",e.$props.class])},{default:a(()=>[n(e.$slots,"default")]),_:3},8,["class"]),e.$slots.tips?(l(),c("div",{key:0,class:d([t.showTips?"opacity-100":"opacity-0","transition py-5 flex items-center gap-2 text-gray-400"])},[s(r,{icon:"carbon-idea",class:"text-xl flex-none"}),n(e.$slots,"tips"),s(i,{icon:"carbon-edit",class:"flex-none",onClick:f},{default:a(()=>[h(" Open in Editor ")]),_:1})],2)):N("",!0),n(e.$slots,"footer")])])}}});export{b1 as default};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{_ as o}from"./PluginItem.vue.eaf5eab2.js";import"./Badge.23dc2d8f.js";import"./_plugin-vue_export-helper.c27b6911.js";import"./runtime-core.esm-bundler.5019e930.js";import"./state.90201abf.js";import"./client.ef9805ed.js";import"./nuxt-link.724f8a66.js";import"./state.5364a68a.js";import"./app.config.a09258b3.js";import"./utils.c2a3506b.js";import"./asyncData.0d07d609.js";import"./error.10b092f1.js";import"./rpc.990da39b.js";import"./index.6cafd97e.js";import"./editor.f69d200c.js";import"./context.dc73232e.js";import"./index.96e42b53.js";import"./index.7c6751e3.js";export{o as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import g from"./Badge.23dc2d8f.js";import{d as v}from"./state.
|
|
1
|
+
import g from"./Badge.23dc2d8f.js";import{d as v}from"./state.90201abf.js";import{a as x}from"./utils.c2a3506b.js";import{o as f}from"./editor.f69d200c.js";import{h as _,c as p,j as e,l as h,A as r,H as d,x as k,u as C,k as s,B as i}from"./runtime-core.esm-bundler.5019e930.js";const y={flex:"~ gap2","items-center":""},B={op25:"","text-right":"","text-sm":"",w8:""},b={"font-mono":"","text-sm":""},D=_({__name:"PluginItem",props:{plugin:null,index:null},setup(l){const a=l,u=v(),t=p(()=>typeof a.plugin=="string"?{src:a.plugin}:a.plugin),o=p(()=>u.value?x(t.value.src,u.value.rootDir,!0):"");return(m,c)=>{const n=g;return e(),h("div",y,[r("div",B,d(l.index),1),r("button",{"hover:underline":"",class:k(o.value.startsWith(".")?"":"op50"),onClick:c[0]||(c[0]=E=>("openInEditor"in m?m.openInEditor:C(f))(t.value.src))},[r("code",b,d(o.value),1)],2),r("div",null,[o.value.startsWith("#")?(e(),s(n,{key:0,"bg-rose-400:10":"","text-rose-400":"",textContent:"virtual"})):o.value.startsWith(".")?i("",!0):(e(),s(n,{key:1,"bg-gray-400:10":"","text-gray-400":"",textContent:"module"})),t.value.mode==="server"?(e(),s(n,{key:2,"bg-teal-400:10":"","text-teal-400":"",textContent:"server"})):i("",!0),t.value.mode==="client"?(e(),s(n,{key:3,"bg-orange-400:10":"","text-orange-400":"",textContent:"client"})):i("",!0)])])}}});export{D as _};
|