@nuxt/devtools-assets-nightly 0.0.0 → 4.0.0-29884683.7500671
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/LICENSE +21 -0
- package/README.md +167 -0
- package/dist/200.html +1 -0
- package/dist/404.html +1 -0
- package/dist/_nuxt/__blank-ddcrmv5c.js +1 -0
- package/dist/_nuxt/_plugin-vue_export-helper-d9irwgla.js +1 -0
- package/dist/_nuxt/analyze-build-edjuvmen.js +1 -0
- package/dist/_nuxt/browser-agent-rpc-bxho-sh1z-n8pic0el.js +1 -0
- package/dist/_nuxt/builds/latest.json +1 -0
- package/dist/_nuxt/builds/meta/da713f8f-797b-476f-aed0-624f1b06308a.json +1 -0
- package/dist/_nuxt/client-o12wrvuh.js +1 -0
- package/dist/_nuxt/code-diff-cllxmlzn.js +8 -0
- package/dist/_nuxt/color-abaog8vc.js +1 -0
- package/dist/_nuxt/components-f7ufmv52.js +1 -0
- package/dist/_nuxt/composable-item-cvm5bou5.js +1 -0
- package/dist/_nuxt/constants-g2z8m4rs.js +1 -0
- package/dist/_nuxt/custom-_name_-jnj2332q.js +1 -0
- package/dist/_nuxt/data-schema-button-jfup3jkm.js +1 -0
- package/dist/_nuxt/data-schema-drawer-n72nmdnb.js +2 -0
- package/dist/_nuxt/debug-fvh49mb4.js +1 -0
- package/dist/_nuxt/default-mrcqn5mn.js +1 -0
- package/dist/_nuxt/dist-das2ggjj.js +1 -0
- package/dist/_nuxt/duration-display-cbezy2qj.js +1 -0
- package/dist/_nuxt/entry.css-dsrtaear.css +1 -0
- package/dist/_nuxt/error-404-b0qmyum0.js +1 -0
- package/dist/_nuxt/error-404.css-i3smqrpa.css +1 -0
- package/dist/_nuxt/error-500-oyzlyaxz.js +1 -0
- package/dist/_nuxt/error-500.css-gwm3hrat.css +1 -0
- package/dist/_nuxt/error-pa9d2x0l.js +9 -0
- package/dist/_nuxt/filepath-item-le1tf1cv.js +1 -0
- package/dist/_nuxt/full-lbk4rf9i.js +1 -0
- package/dist/_nuxt/help-fab-oevh6fu6.js +1 -0
- package/dist/_nuxt/help-fab.css-ms50khsu.css +1 -0
- package/dist/_nuxt/hooks-oh6bepvu.js +1 -0
- package/dist/_nuxt/imports-fv5wpxqj.js +1 -0
- package/dist/_nuxt/j8rt5j1z.js +4 -0
- package/dist/_nuxt/launch-page-edghmj3u.js +1 -0
- package/dist/_nuxt/modules-g5v4acwy.js +1 -0
- package/dist/_nuxt/nanoid-kujw2c73.js +1 -0
- package/dist/_nuxt/nbadge-qxiqdejh.js +1 -0
- package/dist/_nuxt/ncard-f5hsx5qg.js +1 -0
- package/dist/_nuxt/ncheckbox-b1g9gqr9.js +1 -0
- package/dist/_nuxt/ncode-block-emvsl3dj.js +2 -0
- package/dist/_nuxt/ncode-block.css-ivoxtfjk.css +1 -0
- package/dist/_nuxt/ndrawer-nv0fovj4.js +1 -0
- package/dist/_nuxt/ndropdown-ewq47ntq.js +1 -0
- package/dist/_nuxt/nicon-fggc28m9.js +6 -0
- package/dist/_nuxt/nicon-title-b4ony5s9.js +1 -0
- package/dist/_nuxt/nlink-oopuo8yw.js +1 -0
- package/dist/_nuxt/nmarkdown-l6kyrv69.js +1 -0
- package/dist/_nuxt/nnavbar-g4ablrbq.js +1 -0
- package/dist/_nuxt/none-ouu1dkb1.js +1 -0
- package/dist/_nuxt/npanel-grids-dgypja2z.js +1 -0
- package/dist/_nuxt/nsection-block-ih9c04mv.js +1 -0
- package/dist/_nuxt/nsection-block.css-h1lgpwgm.css +1 -0
- package/dist/_nuxt/nselect-nt99qamb.js +1 -0
- package/dist/_nuxt/nselect-tabs-l7v6qhzj.js +1 -0
- package/dist/_nuxt/nsplit-pane-lw36ud7g.js +1 -0
- package/dist/_nuxt/nsplit-pane.css-ejck9ujc.css +1 -0
- package/dist/_nuxt/ntip-ipazo7j4.js +1 -0
- package/dist/_nuxt/nuxt-fe4hkk1m.js +1 -0
- package/dist/_nuxt/nuxt-link-f8q70nfj.js +1 -0
- package/dist/_nuxt/overview-dxaulee7.js +1 -0
- package/dist/_nuxt/pages-go7p532k.js +1 -0
- package/dist/_nuxt/pages-klmhfhaa.js +1 -0
- package/dist/_nuxt/pages-oclxpiil.js +1 -0
- package/dist/_nuxt/payload-jber3hxj.js +1 -0
- package/dist/_nuxt/plugins-ou9d1371.js +1 -0
- package/dist/_nuxt/ready-h577ja1k.js +2 -0
- package/dist/_nuxt/rolldown-runtime-d720z368.js +1 -0
- package/dist/_nuxt/runtime-configs-npir0ikd.js +1 -0
- package/dist/_nuxt/server-route-inputs-gzwem3vc.js +1 -0
- package/dist/_nuxt/server-routes-buhxzhd5.js +7 -0
- package/dist/_nuxt/server-tasks-k907dhjs.js +1 -0
- package/dist/_nuxt/settings-bu1qwwml.js +1 -0
- package/dist/_nuxt/stacktrace-list-gpqt5gfq.js +1 -0
- package/dist/_nuxt/state-components-b7c7h92g.js +1 -0
- package/dist/_nuxt/state-editor-hkt21uqu.js +1 -0
- package/dist/_nuxt/state-modules-ba62gs9q.js +1 -0
- package/dist/_nuxt/state-tabs-fm7jexwd.js +1 -0
- package/dist/_nuxt/storage-f0w2ii3w.js +1 -0
- package/dist/_nuxt/timeline-ob2yog6u.js +31 -0
- package/dist/_nuxt/timeline.css-m03aec2q.css +1 -0
- package/dist/_nuxt/utils-hyqnohx4.js +1 -0
- package/dist/_nuxt/vendor/json-editor-vue-e51gef8e.js +3862 -0
- package/dist/_nuxt/vendor/json-editor-vue.css-lb1ewor6.css +1 -0
- package/dist/_nuxt/vendor/markdown-exit-kxhrfg06.js +12 -0
- package/dist/_nuxt/vendor/quicktype-core-ldbgqon5.js +927 -0
- package/dist/_nuxt/vendor/shiki-eep5l02u.js +152 -0
- package/dist/_nuxt/vendor/unocss-hu24292r.js +1 -0
- package/dist/_nuxt/vendor/unocss.css-ekbl8926.css +1 -0
- package/dist/_nuxt/vendor/vis-bybujgcl.js +29 -0
- package/dist/_nuxt/virtual-files-hd731ygc.js +1 -0
- package/dist/_nuxt/virtual-files.css-l97kh4kx.css +1 -0
- package/dist/_nuxt/virtual_nuxt_node_modules_.cache_nuxt_.nuxt_fetch.client-higuz0yc.js +1 -0
- package/dist/index.html +1 -0
- package/dist/manifest.json +999 -0
- package/dist/nuxt.svg +3 -0
- package/package.json +20 -2
package/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2022-PRESENT Nuxt Team
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
package/README.md
ADDED
|
@@ -0,0 +1,167 @@
|
|
|
1
|
+
<a href="https://devtools.nuxt.com"><img width="1200" alt="Nuxt DevTools" src="https://github-production-user-asset-6210df.s3.amazonaws.com/904724/261577617-a10567bd-ad33-48cc-9bda-9e37dbe1929f.png"></a>
|
|
2
|
+
<br>
|
|
3
|
+
|
|
4
|
+
<h1>
|
|
5
|
+
Nuxt DevTools
|
|
6
|
+
</h1>
|
|
7
|
+
|
|
8
|
+
[![npm version][npm-version-src]][npm-version-href]
|
|
9
|
+
[![npm downloads][npm-downloads-src]][npm-downloads-href]
|
|
10
|
+
[![License][license-src]][license-href]
|
|
11
|
+
[![Nuxt][nuxt-src]][nuxt-href]
|
|
12
|
+
[![Volta][volta-src]][volta-href]
|
|
13
|
+
|
|
14
|
+
<p>
|
|
15
|
+
Unleash Nuxt Developer Experience.
|
|
16
|
+
<br>Nuxt DevTools is a set of visual tools that help you to know your app better.
|
|
17
|
+
</p>
|
|
18
|
+
|
|
19
|
+
<p>
|
|
20
|
+
<a href="https://nuxt.com/blog/nuxt-devtools-v1-0">👋 Introduction</a> |
|
|
21
|
+
<a href="https://github.com/nuxt/devtools/discussions/29">💡 Ideas & Suggestions</a> |
|
|
22
|
+
<a href="https://github.com/nuxt/devtools/discussions/31">🗺️ Project Roadmap</a> |
|
|
23
|
+
<a href="https://devtools.nuxt.com/">📚 Documentation</a>
|
|
24
|
+
</p>
|
|
25
|
+
|
|
26
|
+
> [!NOTE]
|
|
27
|
+
> You are at the `main` branch for v4. The v3 branch is [`v3`](https://github.com/nuxt/devtools/tree/v3).
|
|
28
|
+
|
|
29
|
+
<br>
|
|
30
|
+
|
|
31
|
+
## Installation
|
|
32
|
+
|
|
33
|
+
> Nuxt DevTools v4 requires **Nuxt v4.5.0 or higher** (Vite 8). It is built on [Vite DevTools](https://github.com/vitejs/devtools) and shows up as the `Nuxt` group inside the Vite DevTools panel.
|
|
34
|
+
|
|
35
|
+
Nuxt DevTools is **enabled by default**. You can press <kbd>Shift</kbd> + <kbd>Alt</kbd> / <kbd>⇧ Shift</kbd> + <kbd>⌥ Option</kbd> + <kbd>D</kbd> in your app to open it up.
|
|
36
|
+
|
|
37
|
+
If you want to explicitly enable or disable Nuxt DevTools, you can update your `nuxt.config` with:
|
|
38
|
+
|
|
39
|
+
```js
|
|
40
|
+
export default defineNuxtConfig({
|
|
41
|
+
devtools: {
|
|
42
|
+
enabled: true // or false to disable
|
|
43
|
+
}
|
|
44
|
+
})
|
|
45
|
+
```
|
|
46
|
+
|
|
47
|
+
### Nuxt 4
|
|
48
|
+
|
|
49
|
+
Nuxt 5 ships with Nuxt DevTools v4. Nuxt 4.5+ still bundles v3; override `@nuxt/devtools` to `^4.0.0` with your package manager (`overrides` for npm and pnpm, `resolutions` for yarn), remove your lockfile and reinstall. See the [upgrade guide](https://devtools.nuxt.com/guide/upgrading-to-v4) for details and for what changed.
|
|
50
|
+
|
|
51
|
+
### Nightly Release Channel
|
|
52
|
+
|
|
53
|
+
Similar to [Nuxt's Nightly Channel](https://nuxt.com/docs/guide/going-further/nightly-release-channel), DevTools also offers a nightly release channel, that automatically releases for every commit to `main` branch.
|
|
54
|
+
|
|
55
|
+
You can opt-in to the nightly release channel by using package manager resolutions:
|
|
56
|
+
|
|
57
|
+
<details>
|
|
58
|
+
<summary>npm</summary>
|
|
59
|
+
|
|
60
|
+
```json
|
|
61
|
+
{
|
|
62
|
+
"overrides": {
|
|
63
|
+
"@nuxt/devtools": "npm:@nuxt/devtools-nightly@latest"
|
|
64
|
+
}
|
|
65
|
+
}
|
|
66
|
+
```
|
|
67
|
+
|
|
68
|
+
</details>
|
|
69
|
+
|
|
70
|
+
<details>
|
|
71
|
+
<summary>yarn</summary>
|
|
72
|
+
|
|
73
|
+
```json
|
|
74
|
+
{
|
|
75
|
+
"resolutions": {
|
|
76
|
+
"@nuxt/devtools": "npm:@nuxt/devtools-nightly@latest"
|
|
77
|
+
}
|
|
78
|
+
}
|
|
79
|
+
```
|
|
80
|
+
|
|
81
|
+
</details>
|
|
82
|
+
|
|
83
|
+
<details>
|
|
84
|
+
<summary>pnpm</summary>
|
|
85
|
+
|
|
86
|
+
```json
|
|
87
|
+
{
|
|
88
|
+
"pnpm": {
|
|
89
|
+
"overrides": {
|
|
90
|
+
"@nuxt/devtools": "npm:@nuxt/devtools-nightly@latest"
|
|
91
|
+
}
|
|
92
|
+
}
|
|
93
|
+
}
|
|
94
|
+
```
|
|
95
|
+
|
|
96
|
+
</details>
|
|
97
|
+
|
|
98
|
+
Remove lockfile (`package-lock.json`, `yarn.lock`, or `pnpm-lock.yaml`) and reinstall dependencies.
|
|
99
|
+
|
|
100
|
+
### Module Options
|
|
101
|
+
|
|
102
|
+
To configure Nuxt DevTools, you can pass the `devtools` options.
|
|
103
|
+
|
|
104
|
+
```ts
|
|
105
|
+
// nuxt.config.ts
|
|
106
|
+
export default defineNuxtConfig({
|
|
107
|
+
devtools: {
|
|
108
|
+
// Enable devtools (default: true)
|
|
109
|
+
enabled: true,
|
|
110
|
+
// Coder code-server options (enabled by default)
|
|
111
|
+
codeServer: {},
|
|
112
|
+
// ...other options
|
|
113
|
+
}
|
|
114
|
+
})
|
|
115
|
+
```
|
|
116
|
+
|
|
117
|
+
For all options available, please refer to TSDocs in your IDE, or the [type definition file](https://github.com/nuxt/devtools/blob/main/packages/devtools-kit/src/_types/options.ts).
|
|
118
|
+
|
|
119
|
+
## Features
|
|
120
|
+
|
|
121
|
+
Read the [**Announcement Blog Post 🎊**](https://nuxt.com/blog/nuxt-devtools-v1-0) for why we built Nuxt DevTools and what it can do!
|
|
122
|
+
|
|
123
|
+
## Module Authors
|
|
124
|
+
|
|
125
|
+
Please refer to the [Module Authors Guide](https://devtools.nuxt.com/module/guide).
|
|
126
|
+
|
|
127
|
+
## Contribution Guide
|
|
128
|
+
|
|
129
|
+
Please refer to the [Contribution Guide](https://devtools.nuxt.com/development/contributing).
|
|
130
|
+
|
|
131
|
+
## Anonymous Usage Analytics
|
|
132
|
+
|
|
133
|
+
Nuxt DevTools collects anonymous telemetry data about general usage. This helps us to accurately gauge feature usage and customization across all our users. This data will let us better understand how each features in Nuxt DevTools are used, measuring improvements made (DX and performances) and their relevance. It would also help us to prioritize our efforts and focus on the features that matter the most to our users.
|
|
134
|
+
|
|
135
|
+
Nuxt DevTools' telemetry data is piped through [Nuxt Telemetry](https://github.com/nuxt/telemetry), meaning that Nuxt DevTools will respect your local and global Nuxt Telemetry settings. You can also opt-out Nuxt DevTools' telemetry in the Nuxt DevTools settings.
|
|
136
|
+
|
|
137
|
+
Nuxt DevTools also respects the [`DO_NOT_TRACK`](https://donottrack.sh/) environment variable convention — set `DO_NOT_TRACK=1` in your environment to disable Nuxt DevTools telemetry regardless of any other setting.
|
|
138
|
+
|
|
139
|
+
The data we collect is completely anonymous, not traceable to the source (using hash+seed), and only meaningful in aggregate form. No data we collect is personally identifiable or trackable.
|
|
140
|
+
|
|
141
|
+
### Events
|
|
142
|
+
|
|
143
|
+
On top of the [default Nuxt Telemetry events](https://github.com/nuxt/telemetry#events), Nuxt DevTools also collects the following events:
|
|
144
|
+
|
|
145
|
+
- Versions of Nuxt DevTools
|
|
146
|
+
- Navigations between tabs/feature
|
|
147
|
+
- This helps us to understand which features are used the most to prioritize our efforts.
|
|
148
|
+
- Browser and OS names and versions
|
|
149
|
+
- This helps us improve compatibility across different browsers and operating systems.
|
|
150
|
+
- Click event on some action buttons
|
|
151
|
+
|
|
152
|
+
## License
|
|
153
|
+
|
|
154
|
+
[MIT](./LICENSE)
|
|
155
|
+
|
|
156
|
+
<!-- Badges -->
|
|
157
|
+
|
|
158
|
+
[npm-version-src]: https://img.shields.io/npm/v/@nuxt/devtools/latest.svg?style=flat&colorA=18181B&colorB=28CF8D
|
|
159
|
+
[npm-version-href]: https://npmjs.com/package/@nuxt/devtools
|
|
160
|
+
[npm-downloads-src]: https://img.shields.io/npm/dm/@nuxt/devtools.svg?style=flat&colorA=18181B&colorB=28CF8D
|
|
161
|
+
[npm-downloads-href]: https://npm.chart.dev/@nuxt/devtools
|
|
162
|
+
[license-src]: https://img.shields.io/npm/l/@nuxt/devtools.svg?style=flat&colorA=18181B&colorB=28CF8D
|
|
163
|
+
[license-href]: https://npmjs.com/package/@nuxt/devtools
|
|
164
|
+
[nuxt-src]: https://img.shields.io/badge/Nuxt-18181B?logo=nuxt
|
|
165
|
+
[nuxt-href]: https://nuxt.com
|
|
166
|
+
[volta-src]: https://user-images.githubusercontent.com/904724/209143798-32345f6c-3cf8-4e06-9659-f4ace4a6acde.svg
|
|
167
|
+
[volta-href]: https://volta.net/nuxt/devtools?utm_source=nuxt_devtools_readme
|
package/dist/200.html
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
<!DOCTYPE html><html><head><meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1"><script type="importmap">{"imports":{"#entry":"./_nuxt/j8rt5j1z.js"}}</script><link rel="stylesheet" href="./_nuxt/entry.css-dsrtaear.css" crossorigin><link rel="stylesheet" href="./_nuxt/vendor/json-editor-vue.css-lb1ewor6.css" crossorigin><link rel="stylesheet" href="./_nuxt/vendor/unocss.css-ekbl8926.css" crossorigin><link rel="modulepreload" as="script" crossorigin href="./_nuxt/j8rt5j1z.js"><link rel="modulepreload" as="script" crossorigin href="./_nuxt/nuxt-fe4hkk1m.js"><link rel="modulepreload" as="script" crossorigin href="./_nuxt/vendor/json-editor-vue-e51gef8e.js"><link rel="modulepreload" as="script" crossorigin href="./_nuxt/rolldown-runtime-d720z368.js"><link rel="modulepreload" as="script" crossorigin href="./_nuxt/nicon-fggc28m9.js"><link rel="modulepreload" as="script" crossorigin href="./_nuxt/ready-h577ja1k.js"><link rel="modulepreload" as="script" crossorigin href="./_nuxt/nanoid-kujw2c73.js"><link rel="modulepreload" as="script" crossorigin href="./_nuxt/vendor/shiki-eep5l02u.js"><link rel="modulepreload" as="script" crossorigin href="./_nuxt/vendor/unocss-hu24292r.js"><link rel="modulepreload" as="script" crossorigin href="./_nuxt/nuxt-link-f8q70nfj.js"><link rel="modulepreload" as="script" crossorigin href="./_nuxt/virtual_nuxt_node_modules_.cache_nuxt_.nuxt_fetch.client-higuz0yc.js"><link rel="modulepreload" as="script" crossorigin href="./_nuxt/utils-hyqnohx4.js"><link rel="modulepreload" as="script" crossorigin href="./_nuxt/_plugin-vue_export-helper-d9irwgla.js"><link rel="modulepreload" as="script" crossorigin href="./_nuxt/ncard-f5hsx5qg.js"><link rel="modulepreload" as="script" crossorigin href="./_nuxt/state-tabs-fm7jexwd.js"><script type="module" src="./_nuxt/j8rt5j1z.js" crossorigin></script><link rel="prefetch" as="script" crossorigin href="./_nuxt/default-mrcqn5mn.js"><link rel="prefetch" as="script" crossorigin href="./_nuxt/full-lbk4rf9i.js"><link rel="prefetch" as="script" crossorigin href="./_nuxt/none-ouu1dkb1.js"><link rel="prefetch" as="style" crossorigin href="./_nuxt/ncode-block.css-ivoxtfjk.css"><link rel="prefetch" as="script" crossorigin href="./_nuxt/data-schema-drawer-n72nmdnb.js"><link rel="prefetch" as="script" crossorigin href="./_nuxt/nselect-nt99qamb.js"><link rel="prefetch" as="script" crossorigin href="./_nuxt/ndropdown-ewq47ntq.js"><link rel="prefetch" as="script" crossorigin href="./_nuxt/ncode-block-emvsl3dj.js"><link rel="prefetch" as="script" crossorigin href="./_nuxt/client-o12wrvuh.js"><link rel="prefetch" as="script" crossorigin href="./_nuxt/ndrawer-nv0fovj4.js"><link rel="prefetch" as="script" crossorigin href="./_nuxt/vendor/quicktype-core-ldbgqon5.js"><link rel="prefetch" as="style" crossorigin href="./_nuxt/error-404.css-i3smqrpa.css"><link rel="prefetch" as="script" crossorigin href="./_nuxt/error-404-b0qmyum0.js"><link rel="prefetch" as="style" crossorigin href="./_nuxt/error-500.css-gwm3hrat.css"><link rel="prefetch" as="script" crossorigin href="./_nuxt/error-500-oyzlyaxz.js"></head><body><div id="__nuxt"></div><div id="teleports"></div><script>window.__NUXT__={};window.__NUXT__.config={public:{},app:{baseURL:location.pathname.replace(/[^/]*$/,""),buildId:"da713f8f-797b-476f-aed0-624f1b06308a",buildAssetsDir:"/_nuxt/",cdnURL:""}}</script><script type="application/json" data-nuxt-data="nuxt-app" data-ssr="false" id="__NUXT_DATA__">[{"prerenderedAt":1,"serverRendered":2},1793081018276,false]</script></body></html>
|
package/dist/404.html
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
<!DOCTYPE html><html><head><meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1"><script type="importmap">{"imports":{"#entry":"./_nuxt/j8rt5j1z.js"}}</script><link rel="stylesheet" href="./_nuxt/entry.css-dsrtaear.css" crossorigin><link rel="stylesheet" href="./_nuxt/vendor/json-editor-vue.css-lb1ewor6.css" crossorigin><link rel="stylesheet" href="./_nuxt/vendor/unocss.css-ekbl8926.css" crossorigin><link rel="modulepreload" as="script" crossorigin href="./_nuxt/j8rt5j1z.js"><link rel="modulepreload" as="script" crossorigin href="./_nuxt/nuxt-fe4hkk1m.js"><link rel="modulepreload" as="script" crossorigin href="./_nuxt/vendor/json-editor-vue-e51gef8e.js"><link rel="modulepreload" as="script" crossorigin href="./_nuxt/rolldown-runtime-d720z368.js"><link rel="modulepreload" as="script" crossorigin href="./_nuxt/nicon-fggc28m9.js"><link rel="modulepreload" as="script" crossorigin href="./_nuxt/ready-h577ja1k.js"><link rel="modulepreload" as="script" crossorigin href="./_nuxt/nanoid-kujw2c73.js"><link rel="modulepreload" as="script" crossorigin href="./_nuxt/vendor/shiki-eep5l02u.js"><link rel="modulepreload" as="script" crossorigin href="./_nuxt/vendor/unocss-hu24292r.js"><link rel="modulepreload" as="script" crossorigin href="./_nuxt/nuxt-link-f8q70nfj.js"><link rel="modulepreload" as="script" crossorigin href="./_nuxt/virtual_nuxt_node_modules_.cache_nuxt_.nuxt_fetch.client-higuz0yc.js"><link rel="modulepreload" as="script" crossorigin href="./_nuxt/utils-hyqnohx4.js"><link rel="modulepreload" as="script" crossorigin href="./_nuxt/_plugin-vue_export-helper-d9irwgla.js"><link rel="modulepreload" as="script" crossorigin href="./_nuxt/ncard-f5hsx5qg.js"><link rel="modulepreload" as="script" crossorigin href="./_nuxt/state-tabs-fm7jexwd.js"><script type="module" src="./_nuxt/j8rt5j1z.js" crossorigin></script><link rel="prefetch" as="script" crossorigin href="./_nuxt/default-mrcqn5mn.js"><link rel="prefetch" as="script" crossorigin href="./_nuxt/full-lbk4rf9i.js"><link rel="prefetch" as="script" crossorigin href="./_nuxt/none-ouu1dkb1.js"><link rel="prefetch" as="style" crossorigin href="./_nuxt/ncode-block.css-ivoxtfjk.css"><link rel="prefetch" as="script" crossorigin href="./_nuxt/data-schema-drawer-n72nmdnb.js"><link rel="prefetch" as="script" crossorigin href="./_nuxt/nselect-nt99qamb.js"><link rel="prefetch" as="script" crossorigin href="./_nuxt/ndropdown-ewq47ntq.js"><link rel="prefetch" as="script" crossorigin href="./_nuxt/ncode-block-emvsl3dj.js"><link rel="prefetch" as="script" crossorigin href="./_nuxt/client-o12wrvuh.js"><link rel="prefetch" as="script" crossorigin href="./_nuxt/ndrawer-nv0fovj4.js"><link rel="prefetch" as="script" crossorigin href="./_nuxt/vendor/quicktype-core-ldbgqon5.js"><link rel="prefetch" as="style" crossorigin href="./_nuxt/error-404.css-i3smqrpa.css"><link rel="prefetch" as="script" crossorigin href="./_nuxt/error-404-b0qmyum0.js"><link rel="prefetch" as="style" crossorigin href="./_nuxt/error-500.css-gwm3hrat.css"><link rel="prefetch" as="script" crossorigin href="./_nuxt/error-500-oyzlyaxz.js"></head><body><div id="__nuxt"></div><div id="teleports"></div><script>window.__NUXT__={};window.__NUXT__.config={public:{},app:{baseURL:location.pathname.replace(/[^/]*$/,""),buildId:"da713f8f-797b-476f-aed0-624f1b06308a",buildAssetsDir:"/_nuxt/",cdnURL:""}}</script><script type="application/json" data-nuxt-data="nuxt-app" data-ssr="false" id="__NUXT_DATA__">[{"prerenderedAt":1,"serverRendered":2},1793081018292,false]</script></body></html>
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{C as e,H as t,h as n}from"./vendor/json-editor-vue-e51gef8e.js";import{t as r}from"./pages-oclxpiil.js";var i={"h-screen":``,"w-screen":``,"bg-black":``},a=e({__name:`__blank`,setup(e){return r({layout:`none`}),(e,r)=>(t(),n(`div`,i))}});export{a as default};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
var e=(e,t)=>{let n=e.__vccOpts||e;for(let[e,r]of t)n[e]=r;return n};export{e as t};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{o as e}from"./nuxt-fe4hkk1m.js";import{S as t,g as n,x as r}from"./nicon-fggc28m9.js";import{C as i,Et as a,G as o,Gt as s,H as c,Jt as l,_t as u,a as d,b as f,d as p,f as m,h,m as g,ot as _,p as v,st as y,x as b}from"./vendor/json-editor-vue-e51gef8e.js";import{Vt as x}from"./ready-h577ja1k.js";import{g as S,h as C}from"./utils-hyqnohx4.js";import{t as w}from"./_plugin-vue_export-helper-d9irwgla.js";import{_ as T,f as E,h as D,i as O,m as k,x as A}from"#entry";import{t as j}from"./ncode-block-emvsl3dj.js";import{t as M}from"./pages-oclxpiil.js";import{t as N}from"./filepath-item-le1tf1cv.js";import{t as P}from"./npanel-grids-dgypja2z.js";import{t as F}from"./nsplit-pane-lw36ud7g.js";import{t as I}from"./ntip-ipazo7j4.js";import{t as L}from"./ncheckbox-b1g9gqr9.js";import{t as R}from"./help-fab-oevh6fu6.js";var z={"h-full":``,grid:`~ rows-[max-content_1fr]`},B={flex:`~ wrap`,"w-full":``},V=[`onClick`],H={key:0,flex:`~ col gap-4 items-center justify-center`,p4:``},U={grid:`~ cols-[30px_1fr] gap-x-2 gap-y-3 items-center justify-center`,"w-100":``},W=`/__nuxt_devtools__/client`,G=Object.assign(i({__name:`BuildAnalyzeDetails`,props:{current:{},prev:{}},setup(r){let i=r,v=`${e().app.baseURL.replace(W,`/`)}/__nuxt_devtools__/analyze/`.replace(/\/+/g,`/`),S=p(()=>{let e=[{name:`Overview`,id:`overview`}];return i.current.features.bundleClient&&e.push({name:`Client Bundle`,id:`bundle-client`}),i.current.features.bundleNitro&&e.push({name:`Nitro Bundle`,id:`bundle-nitro`}),i.current.features.viteInspect&&e.push({name:`Vite Inspect`,id:`vite-inspect`}),e}),C=u(S.value[0]);function w(e){return`${((e.endTime-e.startTime)/1e3).toFixed(1)}s`}function T(e){return e<1024?`${e}B`:e<1048576?`${(e/1024).toFixed(1)}KB`:e<1073741824?`${(e/1024/1024).toFixed(1)}MB`:`${(e/1024/1024/1024).toFixed(1)}GB`}async function E(e){return n.clearAnalyzeBuilds([e])}return(e,n)=>{let i=N,u=D;return c(),h(`div`,z,[m(`div`,B,[(c(!0),h(d,null,o(S.value,(e,t)=>(c(),h(`button`,{key:t,px4:``,py2:``,border:`r base`,hover:`bg-active`,class:s(e.id===C.value?.id?``:`border-b`),onClick:t=>C.value=e},[m(`div`,{class:s(e.id===C.value?.id?``:`op30`)},l(e.name),3)],10,V))),128)),n[1]||=m(`div`,{border:`b base`,"flex-auto":``},null,-1)]),C.value?.id===`overview`?(c(),h(`div`,H,[n[15]||=m(`div`,{"flex-auto":``},null,-1),m(`div`,U,[n[10]||=m(`div`,{"i-carbon-commit":``,"text-xl":``},null,-1),m(`div`,null,[n[2]||=m(`div`,{"text-sm":``,op50:``},` Name `,-1),m(`div`,null,l(r.current.name),1)]),n[11]||=m(`div`,{"i-carbon-time":``,"text-xl":``},null,-1),m(`div`,null,[n[3]||=m(`div`,{"text-sm":``,op50:``},` Build duration `,-1),m(`div`,null,l(w(r.current)),1)]),r.current.size?.clientBundle?(c(),h(d,{key:0},[n[5]||=m(`div`,{"i-carbon-cics-program":``,"text-xl":``},null,-1),m(`div`,null,[n[4]||=m(`div`,{"text-sm":``,op50:``},` Client bundle size `,-1),m(`div`,null,l(T(r.current.size.clientBundle)),1)])],64)):g(``,!0),r.current.size?.nitroBundle?(c(),h(d,{key:1},[n[7]||=m(`div`,{"i-carbon-bare-metal-server":``,"text-xl":``},null,-1),m(`div`,null,[n[6]||=m(`div`,{"text-sm":``,op50:``},` Nitro bundle size `,-1),m(`div`,null,l(T(r.current.size.nitroBundle)),1)])],64)):g(``,!0),n[12]||=m(`div`,{"i-carbon-edge-node":``,"text-xl":``},null,-1),m(`div`,null,[n[8]||=m(`div`,{"text-sm":``,op50:``},` Built `,-1),m(`div`,null,l(a(t)(new Date(r.current.endTime))),1)]),n[13]||=m(`div`,{"i-carbon:folder-parent":``,"text-xl":``},null,-1),m(`div`,null,[n[9]||=m(`div`,{"text-sm":``,op50:``},` Report Path `,-1),b(i,{filepath:r.current.analyzeDir},null,8,[`filepath`])])]),n[16]||=m(`div`,{"flex-auto":``},null,-1),b(u,{n:`rose`,icon:`carbon-delete`,onClick:n[0]||=e=>E(r.current.name)},{default:_(()=>[...n[14]||=[f(` Delete this report `,-1)]]),_:1})])):g(``,!0),n._lazyshow1||C.value?.id===`bundle-client`?(n._lazyshow1=!0,c(),h(d,null,[y(m(`iframe`,{src:`${a(v)}${r.current.slug}/client.html`,"h-full":``,"w-full":``},null,8,[`src`]),[[x,C.value?.id===`bundle-client`]])],64)):g(`v-show-if`,!0),n._lazyshow2||C.value?.id===`bundle-nitro`?(n._lazyshow2=!0,c(),h(d,null,[y(m(`iframe`,{src:`${a(v)}${r.current.slug}/nitro.html`,"h-full":``,"w-full":``},null,8,[`src`]),[[x,C.value?.id===`bundle-nitro`]])],64)):g(`v-show-if`,!0),n._lazyshow3||C.value?.id===`vite-inspect`?(n._lazyshow3=!0,c(),h(d,null,[y(m(`iframe`,{src:`${a(v)}${r.current.slug}/.vite-inspect/`,"h-full":``,"w-full":``},null,8,[`src`]),[[x,C.value?.id===`vite-inspect`]])],64)):g(`v-show-if`,!0)])}}}),{__name:`BuildAnalyzeDetails`}),K={},q={class:`markdown-body`};function J(e,t){return c(),h(`div`,q,[...t[0]||=[m(`template`,null,[m(`div`,{class:`markdown-body`},[m(`h1`,null,`Build Analyze`),m(`p`,null,[f(`DevTools provides a build analyze tool to help you understand the size of your app in production. Whenever you start a new build, it runs the command `),m(`code`,{"v-pre":``},`nuxt build --analyze`),f(` and present the output data directly in DevTools for easy browsing and comparing.`)])])],-1)]])}var Y=w(K,[[`render`,J]]),X={flex:`~ col`},Z=[`onClick`],Q={flex:`~ gap-1 items-center wrap`,"w-full":``,"text-sm":``,op60:``},$={flex:`~ items-center justify-center wrap`,p4:``},ee={flex:`~ col gap-1`,"w-250":``,p4:``},te={flex:`~ gap-3`,mt2:``,"justify-end":``},ne=i({__name:`analyze-build`,setup(e){M({icon:`carbon-edge-node`,title:`Build Analyze`,layout:`full`,category:`analyze`,show(){return A(`^3.5.0`)}});let i=r(),y=S(),x=C(`analyze-build:slug`,``),w=p(()=>y.value?.builds.find(e=>e.slug===x.value)??y.value?.builds[0]),N=u(!1),z=u(``),B=p(()=>y.value?.builds.some(e=>e.name===z.value.trim()));async function V(){if(z.value=await n.generateAnalyzeBuildName(),!await i.start())return;O(`analyze-build:start`);let e=await n.startAnalyzeBuild(z.value);N.value&&n.revealTerminal(e)}function H(e){return`${((e.endTime-e.startTime)/1e3).toFixed(1)}s`}function U(){y.value?.activeSessionId&&n.revealTerminal(y.value.activeSessionId)}return E(()=>[{id:`action:analyze-build: start`,title:`Start a new analyze build`,icon:`i-carbon-edge-node`,action:V}]),(e,n)=>{let r=D,u=G,p=P,S=F,C=T,E=I,O=j,A=L,M=k,W=Y,K=R;return c(),h(d,null,[b(S,{"left-size":30},{left:_(()=>[m(`div`,X,[(c(!0),h(d,null,o(a(y)?.builds,e=>(c(),h(d,{key:e.slug},[m(`button`,{flex:`~ col gap1`,p3:``,"hover:bg-active":``,class:s(e.slug===w.value?.slug?`text-primary bg-active`:``),onClick:t=>x.value=e.slug},[m(`code`,null,l(e.name),1),m(`div`,Q,[n[4]||=m(`div`,{"i-carbon-time":``},null,-1),m(`span`,null,l(H(e)),1),n[5]||=m(`div`,{"flex-auto":``},null,-1),m(`span`,null,l(a(t)(new Date(e.endTime))),1)])],10,Z),n[6]||=m(`div`,{"x-divider":``},null,-1)],64))),128)),m(`div`,$,[a(y)?.isBuilding?(c(),v(r,{key:1,n:`primary`,icon:`carbon-circle-dash animate-spin`,title:`Open the output in the Terminals dock`,onClick:n[1]||=e=>U()},{default:_(()=>[...n[8]||=[f(` Building... `,-1)]]),_:1})):(c(),v(r,{key:0,n:`primary`,icon:`carbon-edge-node`,onClick:n[0]||=e=>V()},{default:_(()=>[...n[7]||=[f(` Start a new build `,-1)]]),_:1}))])])]),right:_(()=>[w.value?(c(),v(u,{key:0,current:w.value},null,8,[`current`])):(c(),v(p,{key:1}))]),_:1}),b(a(i),null,{default:_(({resolve:e})=>[b(M,{"model-value":!0,onClose:t=>e(!1)},{default:_(()=>[m(`div`,ee,[n[13]||=m(`h3`,{class:`text-lg font-medium leading-6`,mb2:``},` Start analyze build? `,-1),n[14]||=m(`p`,{op50:``},` Enter the name of the build: `,-1),b(C,{modelValue:z.value,"onUpdate:modelValue":n[2]||=e=>z.value=e,placeholder:`Build name`},null,8,[`modelValue`]),B.value?(c(),v(E,{key:0,"n-orange":``},{default:_(()=>[...n[9]||=[f(` A build with the same name already exists, continue would overrides the previous build result. `,-1)]]),_:1})):g(``,!0),n[15]||=m(`div`,{my3:``,"x-divider":``},null,-1),n[16]||=m(`p`,{op50:``},` The following command will be executed in your terminal: `,-1),b(O,{code:`npx nuxi analyze --no-serve --name=${z.value}`,lang:`bash`,px4:``,py2:``,border:`~ base rounded`,lines:!1},null,8,[`code`]),b(A,{modelValue:N.value,"onUpdate:modelValue":n[3]||=e=>N.value=e,mt2:``,n:`primary`},{default:_(()=>[...n[10]||=[f(` Open the Terminals dock `,-1)]]),_:1},8,[`modelValue`]),m(`div`,te,[b(r,{onClick:t=>e(!1)},{default:_(()=>[...n[11]||=[f(` Cancel `,-1)]]),_:1},8,[`onClick`]),b(r,{n:`solid primary`,onClick:t=>e(!0)},{default:_(()=>[...n[12]||=[f(` Start `,-1)]]),_:1},8,[`onClick`])])])]),_:2},1032,[`onClose`])]),_:1}),b(K,null,{default:_(()=>[b(W)]),_:1})],64)}}});export{ne as default};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{t as e}from"./nanoid-kujw2c73.js";var t=Symbol.for(`devframe:browser-agent-registry`),{tools:n,listeners:r}=globalThis[t]??={tools:new Map,listeners:new Set};function i(){return[...n.values()]}function a(e){return r.add(e),()=>r.delete(e)}var o=`devframe:client-id`,s;function c(t=globalThis.window){try{let n=t?.sessionStorage;if(n){let t=n.getItem(o);return t||(t=e(),n.setItem(o,t)),t}}catch{}return s??=e(),s}function l(e){e.client.register({name:`devframe:agent:invoke-client-tool`,type:`action`,jsonSerializable:!0,handler:async(e,t)=>{let n=i().find(t=>t.id===e);if(!n)throw Error(`[devframe/agent] browser tool "${e}" not found`);return await n.invoke(t)}});let t=!1,n=!1,r=0,o=()=>{t||n||(t=!0,queueMicrotask(async()=>{if(t=!1,n)return;let a=i().map(({invoke:e,...t})=>t);(a.length!==0||r!==0)&&(r=a.length,await e.callOptional(`devframe:agent:sync-client-tools`,c(),a).catch(()=>{}))}))},s=a(o),l=e.events.on(`connection:status`,e=>{e===`connected`&&o()});return o(),()=>{n=!0,s(),l()}}export{l as setupBrowserAgentRpcBridge};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"id":"da713f8f-797b-476f-aed0-624f1b06308a","timestamp":1793081001952}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"id":"da713f8f-797b-476f-aed0-624f1b06308a","timestamp":1793081001952,"prerendered":[]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{Tt as e,bt as t}from"./vendor/json-editor-vue-e51gef8e.js";var n,r=[];function i(e){if(r.push(e),typeof window<`u`)return window.__NUXT_DEVTOOLS__&&r.forEach(e=>e(window.__NUXT_DEVTOOLS__)),Object.defineProperty(window,"__NUXT_DEVTOOLS__",{set(e){e&&r.forEach(t=>t(e))},get(){return n.value},configurable:!0}),()=>{r.splice(r.indexOf(e),1)}}function a(){n||(n=t(),i(a));function r(){n&&e(n)}function a(e){n.value=e,e.host&&e.host.hooks.hook(`host:update:reactivity`,r)}return n}var o=a();export{o as t};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import{w as e}from"./nicon-fggc28m9.js";import{C as t,H as n,_t as r,d as i,p as a,z as o}from"./vendor/json-editor-vue-e51gef8e.js";import{t as s}from"./ncode-block-emvsl3dj.js";var c=class{diff(e,t,n={}){let r;typeof n==`function`?(r=n,n={}):`callback`in n&&(r=n.callback);let i=this.castInput(e,n),a=this.castInput(t,n),o=this.removeEmpty(this.tokenize(i,n)),s=this.removeEmpty(this.tokenize(a,n));return this.diffWithOptionsObj(o,s,n,r)}diffWithOptionsObj(e,t,n,r){let i=e=>{if(e=this.postProcess(e,n),r)setTimeout(function(){r(e)},0);else return e},a=t.length,o=e.length,s=1,c=a+o;n.maxEditLength!=null&&(c=Math.min(c,n.maxEditLength));let l=n.timeout??1/0,u=Date.now()+l,d=[{oldPos:-1,lastComponent:void 0}],f=this.extractCommon(d[0],t,e,0,n);if(d[0].oldPos+1>=o&&f+1>=a)return i(this.buildValues(d[0].lastComponent,t,e));let p=-1/0,m=1/0,h=()=>{for(let r=Math.max(p,-s);r<=Math.min(m,s);r+=2){let s,c=d[r-1],l=d[r+1];c&&(d[r-1]=void 0);let u=!1;if(l){let e=l.oldPos-r;u=l&&0<=e&&e<a}let h=c&&c.oldPos+1<o;if(!u&&!h)d[r]=void 0;else{if(s=!h||u&&c.oldPos<l.oldPos?this.addToPath(l,!0,!1,0,n):this.addToPath(c,!1,!0,1,n),f=this.extractCommon(s,t,e,r,n),s.oldPos+1>=o&&f+1>=a)return i(this.buildValues(s.lastComponent,t,e))||!0;d[r]=s,s.oldPos+1>=o&&(m=Math.min(m,r-1)),f+1>=a&&(p=Math.max(p,r+1))}}s++};if(r)(function e(){setTimeout(function(){if(s>c||Date.now()>u)return r(void 0);h()||e()},0)})();else for(;s<=c&&Date.now()<=u;){let e=h();if(e)return e}}addToPath(e,t,n,r,i){let a=e.lastComponent;return a&&!i.oneChangePerToken&&a.added===t&&a.removed===n?{oldPos:e.oldPos+r,lastComponent:{count:a.count+1,added:t,removed:n,previousComponent:a.previousComponent}}:{oldPos:e.oldPos+r,lastComponent:{count:1,added:t,removed:n,previousComponent:a}}}extractCommon(e,t,n,r,i){let a=t.length,o=n.length,s=e.oldPos,c=s-r,l=0;for(;c+1<a&&s+1<o&&this.equals(n[s+1],t[c+1],i);)c++,s++,l++,i.oneChangePerToken&&(e.lastComponent={count:1,previousComponent:e.lastComponent,added:!1,removed:!1});return l&&!i.oneChangePerToken&&(e.lastComponent={count:l,previousComponent:e.lastComponent,added:!1,removed:!1}),e.oldPos=s,c}equals(e,t,n){return n.comparator?n.comparator(e,t):e===t||!!n.ignoreCase&&e.toLowerCase()===t.toLowerCase()}removeEmpty(e){let t=[];for(let n=0;n<e.length;n++)e[n]&&t.push(e[n]);return t}castInput(e,t){return e}tokenize(e,t){return Array.from(e)}join(e){return e.join(``)}postProcess(e,t){return e}get useLongestToken(){return!1}buildValues(e,t,n){let r=[],i;for(;e;)r.push(e),i=e.previousComponent,delete e.previousComponent,e=i;r.reverse();let a=r.length,o=0,s=0,c=0;for(;o<a;o++){let e=r[o];if(e.removed)e.value=this.join(n.slice(c,c+e.count)),c+=e.count;else{if(!e.added&&this.useLongestToken){let r=t.slice(s,s+e.count);r=r.map(function(e,t){let r=n[c+t];return r.length>e.length?r:e}),e.value=this.join(r)}else e.value=this.join(t.slice(s,s+e.count));s+=e.count,e.added||(c+=e.count)}}return r}};new class extends c{};function l(e,t){let n=0;for(;n<e.length&&n<t.length;n++)if(e[n]!=t[n])return e.slice(0,n);return e.slice(0,n)}function u(e,t){let n;if(!e||!t||e[e.length-1]!=t[t.length-1])return``;for(n=0;n<e.length&&n<t.length;n++)if(e[e.length-(n+1)]!=t[t.length-(n+1)])return e.slice(-n);return e.slice(-n)}function d(e,t,n){if(e.slice(0,t.length)!=t)throw Error(`string ${JSON.stringify(e)} doesn't start with prefix ${JSON.stringify(t)}; this is a bug`);return n+e.slice(t.length)}function f(e,t,n){if(!t)return e+n;if(e.slice(-t.length)!=t)throw Error(`string ${JSON.stringify(e)} doesn't end with suffix ${JSON.stringify(t)}; this is a bug`);return e.slice(0,-t.length)+n}function p(e,t){return d(e,t,``)}function m(e,t){return f(e,t,``)}function h(e,t){return t.slice(0,g(e,t))}function g(e,t){let n=0;e.length>t.length&&(n=e.length-t.length);let r=t.length;e.length<t.length&&(r=e.length);let i=Array(r),a=0;i[0]=0;for(let e=1;e<r;e++){for(t[e]==t[a]?i[e]=i[a]:i[e]=a;a>0&&t[e]!=t[a];)a=i[a];t[e]==t[a]&&a++}a=0;for(let r=n;r<e.length;r++){for(;a>0&&e[r]!=t[a];)a=i[a];e[r]==t[a]&&a++}return a}function _(e,t){let n=[];for(let r of Array.from(t.segment(e))){let e=r.segment;n.length&&/\s/.test(n[n.length-1])&&/\s/.test(e)?n[n.length-1]+=e:n.push(e)}return n}function v(e,t){if(t)return b(e,t)[1];let n;for(n=e.length-1;n>=0&&e[n].match(/\s/);n--);return e.substring(n+1)}function y(e,t){if(t)return b(e,t)[0];let n=e.match(/^\s*/);return n?n[0]:``}function b(e,t){if(!t)return[y(e),v(e)];if(t.resolvedOptions().granularity!=`word`)throw Error(`The segmenter passed must have a granularity of "word"`);let n=_(e,t),r=n[0],i=n[n.length-1];return[/\s/.test(r)?r:``,/\s/.test(i)?i:``]}var x=`a-zA-Z0-9_\\u{AD}\\u{C0}-\\u{D6}\\u{D8}-\\u{F6}\\u{F8}-\\u{2C6}\\u{2C8}-\\u{2D7}\\u{2DE}-\\u{2FF}\\u{1E00}-\\u{1EFF}`,S=RegExp(`[${x}]+|\\s+|[^${x}]`,`ug`);new class extends c{equals(e,t,n){return n.ignoreCase&&(e=e.toLowerCase(),t=t.toLowerCase()),e.trim()===t.trim()}tokenize(e,t={}){let n;if(t.intlSegmenter){let r=t.intlSegmenter;if(r.resolvedOptions().granularity!=`word`)throw Error(`The segmenter passed must have a granularity of "word"`);n=_(e,r)}else n=e.match(S)||[];let r=[],i=null;return n.forEach(e=>{/\s/.test(e)?i==null?r.push(e):r.push(r.pop()+e):i!=null&&/\s/.test(i)?r[r.length-1]==i?r.push(r.pop()+e):r.push(i+e):r.push(e),i=e}),r}join(e){return e.map((e,t)=>t==0?e:e.replace(/^\s+/,``)).join(``)}postProcess(e,t){if(!e||t.oneChangePerToken)return e;let n=null,r=null,i=null;return e.forEach(e=>{e.added?r=e:e.removed?i=e:((r||i)&&C(n,i,r,e,t.intlSegmenter),n=e,r=null,i=null)}),(r||i)&&C(n,i,r,null,t.intlSegmenter),e}};function C(e,t,n,r,i){if(t&&n){let[a,o]=b(t.value,i),[s,c]=b(n.value,i);if(e){let r=l(a,s);e.value=f(e.value,s,r),t.value=p(t.value,r),n.value=p(n.value,r)}if(r){let e=u(o,c);r.value=d(r.value,c,e),t.value=m(t.value,e),n.value=m(n.value,e)}}else if(n){if(e){let e=y(n.value,i);n.value=n.value.substring(e.length)}if(r){let e=y(r.value,i);r.value=r.value.substring(e.length)}}else if(e&&r){let n=y(r.value,i),[a,o]=b(t.value,i),s=l(n,a);t.value=p(t.value,s);let c=u(p(n,s),o);t.value=m(t.value,c),r.value=d(r.value,n,c),e.value=f(e.value,n,n.slice(0,n.length-c.length))}else if(r){let e=y(r.value,i),n=h(v(t.value,i),e);t.value=m(t.value,n)}else if(e){let n=h(v(e.value,i),y(t.value,i));t.value=p(t.value,n)}}new class extends c{tokenize(e){let t=RegExp(`(\\r?\\n)|[${x}]+|[^\\S\\n\\r]+|[^${x}]`,`ug`);return e.match(t)||[]}};var w=new class extends c{constructor(){super(...arguments),this.tokenize=E}equals(e,t,n){return n.ignoreWhitespace?(n.newlineIsToken&&e.includes(`
|
|
2
|
+
`)||(e=e.trim()),n.newlineIsToken&&t.includes(`
|
|
3
|
+
`)||(t=t.trim())):n.ignoreNewlineAtEof&&!n.newlineIsToken&&(e.endsWith(`
|
|
4
|
+
`)&&(e=e.slice(0,-1)),t.endsWith(`
|
|
5
|
+
`)&&(t=t.slice(0,-1))),super.equals(e,t,n)}};function T(e,t,n){return w.diff(e,t,n)}function E(e,t){t.stripTrailingCr&&(e=e.replace(/\r\n/g,`
|
|
6
|
+
`));let n=[],r=e.split(/(\n|\r\n)/);r[r.length-1]||r.pop();for(let e=0;e<r.length;e++){let i=r[e];e%2&&!t.newlineIsToken?n[n.length-1]+=i:n.push(i)}return n}function D(e){return e==`.`||e==`!`||e==`?`}new class extends c{tokenize(e){let t=[],n=0;for(let r=0;r<e.length;r++){if(r==e.length-1){t.push(e.slice(n));break}if(D(e[r])&&e[r+1].match(/\s/)){for(t.push(e.slice(n,r+1)),r=n=r+1;e[r+1]?.match(/\s/);)r++;t.push(e.slice(n,r+1)),n=r+1}}return t}},new class extends c{tokenize(e){return e.split(/([{}:;,]|\s+)/)}},new class extends c{constructor(){super(...arguments),this.tokenize=E}get useLongestToken(){return!0}castInput(e,t){let{undefinedReplacement:n,stringifyReplacer:r=(e,t)=>t===void 0?n:t}=t;return typeof e==`string`?e:JSON.stringify(O(e,null,null,r),null,` `)}equals(e,t,n){return super.equals(e.replace(/,([\r\n])/g,`$1`),t.replace(/,([\r\n])/g,`$1`),n)}};function O(e,t,n,r,i){t||=[],n||=[],r&&(e=r(i===void 0?``:i,e));let a=0;for(;a<t.length;a+=1)if(t[a]===e)return n[a];let o;if(Object.prototype.toString.call(e)===`[object Array]`){for(t.push(e),o=Array(e.length),n.push(o),a=0;a<e.length;a+=1)o[a]=O(e[a],t,n,r,String(a));return t.pop(),n.pop(),o}if(e&&e.toJSON&&(e=e.toJSON()),typeof e==`object`&&e){t.push(e),o={},n.push(o);let i=[],s;for(s in e)Object.prototype.hasOwnProperty.call(e,s)&&i.push(s);for(i.sort(),a=0;a<i.length;a+=1)s=i[a],o[s]=O(e[s],t,n,r,s);t.pop(),n.pop()}else o=e;return o}new class extends c{tokenize(e){return e.slice()}join(e){return e}removeEmpty(e){return e}};var k=Object.assign(t({__name:`CodeDiff`,props:{from:{},to:{},lang:{}},setup(t){let c=t,l=/class="shiki/,u=/class="line"/g;function d(e,t){let n=T(e.trim(),t.trim()),r=[],i=[],a=[];for(let e of n){let t=e.value.trimEnd().split(`
|
|
7
|
+
`);for(let n of t)e.added?(r.push(a.length),a.push(n)):(e.removed&&i.push(a.length),a.push(n))}return{added:r,removed:i,result:a.join(`
|
|
8
|
+
`)}}let f=i(()=>d(c.from,c.to));function p(e){let t=0;return e.replace(l,`class="shiki diff`).replace(u,e=>(t++,f.value.added.includes(t-1)?`class="line line-added"`:f.value.removed.includes(t-1)?`class="line line-removed"`:e))}let m=r();o(h);function h(){let t=e(m);t&&t.querySelector(`.line-added,.line-removed`)?.scrollIntoView()}return(e,r)=>{let i=s;return n(),a(i,{ref_key:`elRef`,ref:m,code:f.value.result,lang:t.lang,"transform-rendered":p,onLoaded:h},null,8,[`code`,`lang`])}}}),{__name:`CodeDiff`});export{k as t};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
function e(e,t=65,n=50,r=1){let i=0;for(let t=0;t<e.length;t++)i=e.charCodeAt(t)+((i<<5)-i);return`hsla(${i%360}, ${t}%, ${n}%, ${r})`}export{e as t};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{L as e,i as t,r as n,s as r,t as i}from"./nicon-fggc28m9.js";import{C as a,Et as o,G as s,Gt as c,H as l,J as u,Jt as d,K as f,M as p,Y as m,_t as h,a as g,b as _,bt as ee,d as v,f as y,ft as b,h as x,m as S,ot as C,p as w,q as T,rt as te,st as E,x as D,z as ne}from"./vendor/json-editor-vue-e51gef8e.js";import{C as O,E as k,c as A,i as j,n as M,s as N,y as P}from"./utils-hyqnohx4.js";import{t as F}from"./_plugin-vue_export-helper-d9irwgla.js";import{t as I}from"./ncard-f5hsx5qg.js";import{h as L,n as R,p as z}from"#entry";import{t as re}from"./ndrawer-nv0fovj4.js";import{t as B}from"./pages-oclxpiil.js";import{t as V}from"./filepath-item-le1tf1cv.js";import{t as ie}from"./ncheckbox-b1g9gqr9.js";import{t as H}from"./help-fab-oevh6fu6.js";import{t as U}from"./nnavbar-g4ablrbq.js";import{n as W}from"./dist-das2ggjj.js";import{t as G}from"./nbadge-qxiqdejh.js";import{n as K,t as q}from"./vendor/vis-bybujgcl.js";import{t as J}from"./nselect-tabs-l7v6qhzj.js";import{t as Y}from"./nicon-title-b4ony5s9.js";import{t as X}from"./nsection-block-ih9c04mv.js";import{n as ae,t as oe}from"./state-components-b7c7h92g.js";var se={},ce={class:`markdown-body`};function le(e,t){return l(),x(`div`,ce,[...t[0]||=[y(`template`,null,[y(`div`,{class:`markdown-body`},[y(`h1`,null,`Components`),y(`p`,null,`Vue Components allow us to split the UI into independent and reusable pieces, and think about each piece in isolation. This is very similar to how we nest native HTML elements, but Vue implements its own component model that allow us to encapsulate custom content and logic in each component.`),y(`p`,null,`Components placed in the components/ directory are automatically registered by Nuxt. They can be used in your templates without importing them.`),y(`p`,null,[y(`a`,{href:`https://nuxt.com/docs/guide/directory-structure/components`,target:`_blank`,rel:`noopener`},`Learn more in the documentation`)])])],-1)]])}var ue=F(se,[[`render`,le]]),de={"text-sm":``,"font-mono":``},Z=Object.assign(a({__name:`ComponentName`,props:{component:{}},setup(e){let t=e,n=v(()=>t.component.pascalName||W(t.component.name||t.component.__name||t.component.kebabName||``));return(e,t)=>(l(),x(`code`,de,[t[0]||=y(`span`,{mr1:``,op20:``},`<`,-1),_(d(n.value),1),t[1]||=y(`span`,{ml1:``,op20:``},`/>`,-1)]))}}),{__name:`ComponentName`}),Q={flex:`~ col gap1`,"items-start":``,"of-hidden":``},fe={flex:`~ gap2 items-center`,px3:``},pe={px3:``,pb2:``},me={key:0,border:`t base`,"max-h-60":``,"w-full":``,"of-auto":``,px3:``,py3:``},he={"text-sm":``},ge={"text-primary":``},_e={key:0,flex:`~ col gap-2`,"items-start":``,pt3:``,"text-sm":``,op75:``},ve={key:1,border:`t base`,"max-h-60":``,"w-full":``,"of-auto":``,px3:``,py3:``},ye={"text-sm":``},be={"text-primary":``},xe={key:0,flex:`~ col gap-2`,"items-start":``,pt3:``,"text-sm":``,op75:``},$=Object.assign(a({__name:`ComponentDetails`,props:{component:{},dependencies:{},dependents:{}},setup(e){let t=e,n=v(()=>t.component.pascalName||W(t.component.name||t.component.__name||t.component.kebabName||``)),r=v(()=>t.component.filePath||t.component.file||t.component.__file||``),i=R();return(t,a)=>{let c=Z,u=L,p=G,m=V;return l(),x(`div`,Q,[y(`div`,fe,[D(c,{component:e.component},null,8,[`component`]),e.component.meta?.docs&&typeof e.component.meta.docs==`string`?(l(),w(u,{key:0,title:`Open docs`,"flex-none":``,n:`xs`,to:e.component.meta.docs,target:`_blank`,icon:`carbon-catalog`},{default:C(()=>[...a[1]||=[_(` Docs `,-1)]]),_:1},8,[`to`])):S(``,!0),D(u,{title:`Copy name`,"flex-none":``,n:`xs`,icon:`carbon-copy`,onClick:a[0]||=e=>o(i)(`<${n.value}></${n.value}>`,`component-name`)},{default:C(()=>[...a[2]||=[_(` Copy `,-1)]]),_:1}),e.component.global?(l(),w(p,{key:1,n:`green`,title:`Registered at runtime as a global component`,textContent:`runtime`})):S(``,!0)]),y(`div`,pe,[r.value?(l(),w(m,{key:0,filepath:r.value,"w-full":``,"text-sm":``,op40:``,"group-hover:op75":``},null,8,[`filepath`])):S(``,!0)]),e.dependents?(l(),x(`div`,me,[y(`div`,he,[y(`strong`,ge,d(e.dependents.length),1),a[3]||=y(`span`,{op50:``},` references`,-1)]),e.dependents.length?(l(),x(`div`,_e,[(l(!0),x(g,null,s(e.dependents,e=>(l(),w(m,{key:e,filepath:e},null,8,[`filepath`]))),128))])):S(``,!0)])):S(``,!0),e.dependencies?(l(),x(`div`,ve,[y(`div`,ye,[y(`strong`,be,d(e.dependencies.length),1),a[4]||=y(`span`,{op50:``},` dependencies`,-1)]),e.dependencies.length?(l(),x(`div`,xe,[(l(!0),x(g,null,s(e.dependencies,e=>(l(),w(m,{key:e,filepath:e},null,8,[`filepath`]))),128))])):S(``,!0)])):S(``,!0),f(t.$slots,`default`)])}}}),{__name:`ComponentDetails`}),Se={flex:`~ gap-x-3 gap-y-1 wrap`,"w-full":``},Ce={relative:``,"h-full":``,"w-full":``},we={key:0,py4:``,pt3:``,flex:`~ col`},Te={border:`t base`,p4:``},Ee=Object.assign(a({__name:`ComponentsGraph`,props:{components:{},relationships:{}},setup(r){let i=r,a=h(),s=h(),c=t(),u=ee(),d=k(),p=O(),m=P(),{componentsGraphShowNodeModules:w,componentsGraphShowGlobalComponents:T,componentsGraphShowPages:E,componentsGraphShowLayouts:A,componentsGraphShowWorkspace:j}=n(`ui`),M=h(),N=h(``),F=e(N,300),R=v(()=>{let e=i.relationships||[];if(M.value){let t=new Set;function n(r){r&&!t.has(r)&&(t.add(r),r.deps.forEach(t=>{n(e.find(e=>e.id===t))}))}return n(M.value),[...t]}return e}),z=v(()=>{let e=R.value.map(e=>{let t=i.components.find(t=>t.filePath===e.id),n=d.value?.find(t=>t.file===e.id),r=m.value?.find(t=>t.file===e.id),a=e.id.includes(`/node_modules/`)?`lib`:t?t.global?`global`:`user`:r?`layout`:n?`page`:`unknown`;if(!w.value&&a===`lib`||!E.value&&a===`page`||!A.value&&a===`layout`||!j.value&&a===`user`&&p.value&&!e.id.startsWith(p.value.rootDir)||!T.value&&a===`global`)return null;let o=a===`layout`?`hexagon`:a===`page`?`square`:`dot`,s=F.value&&!e.id.toLowerCase().includes(F.value.toLowerCase());return{id:e.id,label:Y(e.id),group:a,shape:o,size:15+Math.min(e.deps.length/2,8),font:{color:s?`#8885`:c.value===`dark`?`white`:`black`},color:s?`#8885`:M.value?.id===e.id?`#82c742`:void 0,extra:{id:e.id,component:t,page:n,layout:r,relationship:e}}}).filter(e=>!!e),t=R.value.flatMap(e=>e.deps.map(t=>({from:e.id,to:t,arrows:{to:{enabled:!0,scaleFactor:.8}}})));return{nodes:new K(e),edges:t}}),B=v(()=>u.value?.component?(i.relationships?.find(e=>e.id===u.value?.component?.filePath)?.deps)?.map(e=>i.relationships?.find(t=>t.id===e)?.id).filter(Boolean):[]),V=v(()=>u.value?.component?(i.relationships?.filter(e=>e.deps.includes(u.value.component.filePath)))?.map(e=>i.relationships?.find(t=>t.id===e.id)?.id).filter(Boolean):[]);ne(()=>{let e=new q(a.value,z.value,{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`}}});e.on(`click`,e=>{let t=e.nodes?.[0],n=z.value.nodes.get(t).extra;u.value=n}),te(z,()=>{e.setData(z.value)})});function H(){u.value=void 0}let W=/.*\/components\//,G=/\.vue$/,J=/\/index$/;function Y(e){let t=i.components.find(t=>t.filePath===e);return t?t.pascalName:e.replace(W,``).replace(G,``).replace(J,``).split(`/`).map(e=>e.charAt(0).toUpperCase()+e.slice(1)).join(``)}function X(){M.value=u.value?.relationship,u.value=void 0}return(e,t)=>{let n=ie,r=U,i=I,c=$,d=L,p=re;return l(),x(g,null,[D(r,{ref_key:`navbar`,ref:s,search:N.value,"onUpdate:search":t[6]||=e=>N.value=e,absolute:``,"left-0":``,"right-0":``,"top-0":``},{actions:C(()=>[y(`div`,Se,[D(n,{modelValue:o(E),"onUpdate:modelValue":t[0]||=e=>b(E)?E.value=e:null,n:`primary sm`},{default:C(()=>[...t[8]||=[y(`span`,{op75:``},`Show pages`,-1)]]),_:1},8,[`modelValue`]),D(n,{modelValue:o(A),"onUpdate:modelValue":t[1]||=e=>b(A)?A.value=e:null,n:`primary sm`},{default:C(()=>[...t[9]||=[y(`span`,{op75:``},`Show layouts`,-1)]]),_:1},8,[`modelValue`]),D(n,{modelValue:o(j),"onUpdate:modelValue":t[2]||=e=>b(j)?j.value=e:null,n:`primary sm`},{default:C(()=>[...t[10]||=[y(`span`,{op75:``},`Show workspace`,-1)]]),_:1},8,[`modelValue`]),D(n,{modelValue:o(w),"onUpdate:modelValue":t[3]||=e=>b(w)?w.value=e:null,n:`primary sm`},{default:C(()=>[...t[11]||=[y(`span`,{op75:``},`Show node_modules`,-1)]]),_:1},8,[`modelValue`]),D(n,{modelValue:o(T),"onUpdate:modelValue":t[4]||=e=>b(T)?T.value=e:null,n:`primary sm`},{default:C(()=>[...t[12]||=[y(`span`,{op75:``},`Show global components`,-1)]]),_:1},8,[`modelValue`])]),M.value?(l(),x(`button`,{key:0,flex:`~ gap-1`,"flex-none":``,"items-center":``,"rounded-full":``,"bg-gray:20":``,py1:``,pl3:``,pr2:``,"text-xs":``,op50:``,"hover:op100":``,onClick:t[5]||=e=>M.value=void 0},[...t[13]||=[_(` Clear filter `,-1),y(`div`,{"i-carbon-close":``},null,-1)]])):S(``,!0),t[14]||=y(`div`,{"flex-auto":``},null,-1),f(e.$slots,`default`)]),_:3},8,[`search`]),y(`div`,Ce,[y(`div`,{ref_key:`container`,ref:a,"h-full":``,"w-full":``},null,512),D(i,{absolute:``,"bottom-3":``,"left-3":``,"border-0":``,"n-glass-effect":``,p2:``,px3:``,"text-sm":``},{default:C(()=>[...t[15]||=[y(`div`,{grid:`~ cols-[20px_1fr] items-center gap-y-1`},[y(`div`,{"h-3":``,"w-3":``,"rounded-full":``,"bg-hex-42b883":``}),y(`div`,{op50:``},` Component `),y(`div`,{"h-3":``,"w-3":``,"rounded-full":``,"bg-hex-97c2fc":``}),y(`div`,{op50:``},` Global Component `),y(`div`,{"h-3":``,"w-3":``,"bg-hex-42b2b8":``}),y(`div`,{op50:``},` Page `),y(`svg`,{xmlns:`http://www.w3.org/2000/svg`,viewBox:`0 0 726 628`,"ml--1px":``,"h-3":``},[y(`path`,{fill:`#4256b8`,"stroke-width":`4`,d:`M723 314 543 625.8H183L3 314 183 2.2h360L723 314z`})]),y(`div`,{op50:``},` Layout `),y(`div`,{"h-3":``,"w-3":``,"rounded-full":``,"bg-hex-b4b842":``}),y(`div`,{op50:``},` Library Component `),y(`div`,{"h-3":``,"w-3":``,"rounded-full":``,"bg-hex-b86542":``}),y(`div`,{op50:``},` Unknown `)],-1)]]),_:1}),D(p,{"model-value":!!(u.value&&u.value.component),top:s.value,border:`t l base`,"w-80":``,onClose:H},{default:C(()=>[u.value&&u.value.component?(l(),x(`div`,we,[D(c,{component:u.value.component,dependencies:B.value,dependents:V.value},null,8,[`component`,`dependencies`,`dependents`]),y(`div`,Te,[D(d,{n:`primary solid`,onClick:t[7]||=e=>X()},{default:C(()=>[...t[16]||=[_(` Filter to this component `,-1)]]),_:1})])])):S(``,!0)]),_:1},8,[`model-value`,`top`])])],64)}}}),{__name:`ComponentsGraph`}),De={hover:`bg-active`,class:`group`,flex:`~ gap2`,"w-full":``,"items-center":``,rounded:``,px2:``,py1:``},Oe={key:0,"ml--1":``,"text-primary":``},ke=Object.assign(a({__name:`ComponentItem`,props:{component:{},dependencies:{},dependents:{}},setup(e){let t=e,n=v(()=>t.component.filePath||t.component.file||t.component.__file||``);return(t,r)=>{let i=Z,a=$,o=T(`VDropdown`),s=G,u=V;return l(),x(`div`,De,[D(o,null,{popper:C(()=>[D(a,{component:e.component,dependencies:e.dependencies,dependents:e.dependents,"w-100":``,pt3:``},null,8,[`component`,`dependencies`,`dependents`])]),default:C(()=>[y(`button`,{"hover:text-primary":``,class:c(e.dependents&&e.dependents.length===0?`op50`:``)},[D(i,{component:e.component},null,8,[`component`])],2)]),_:1}),e.dependents?.length?(l(),x(`sup`,Oe,` x`+d(e.dependents?.length),1)):S(``,!0),e.component.global?(l(),w(s,{key:1,n:`green`,title:`Registered at runtime as a global component`,textContent:`runtime`})):S(``,!0),f(t.$slots,`default`),n.value?(l(),w(u,{key:2,filepath:n.value,"text-sm":``,op25:``,"group-hover:op75":``},null,8,[`filepath`])):S(``,!0)])}}}),{__name:`ComponentItem`}),Ae={flex:`~ gap-2 items-center`},je={pl4:``},Me=Object.assign(a({__name:`ComponentsList`,props:{components:{},relationships:{}},setup(e){let t=e,n=h(``),r=h(`all`),a=v(()=>{let e=t.components.map(e=>M(e,t.relationships));return r.value===`using`?e.filter(e=>e.dependents?.length):r.value===`not-used`?e.filter(e=>!e.dependents?.length):e}),c={ClientOnly:`https://nuxt.com/docs/api/components/client-only`,DevOnly:`https://nuxt.com/docs/api/components/dev-only`,NuxtClientFallback:`https://nuxt.com/docs/api/components/nuxt-client-fallback`,NuxtPicture:`https://nuxt.com/docs/api/components/nuxt-picture`,NuxtRouteAnnouncer:`https://nuxt.com/docs/api/components/nuxt-route-announcer`,NuxtTime:`https://nuxt.com/docs/api/components/nuxt-time`,NuxtPage:`https://nuxt.com/docs/api/components/nuxt-page`,NuxtLayout:`https://nuxt.com/docs/api/components/nuxt-layout`,NuxtLink:`https://nuxt.com/docs/api/components/nuxt-link`,NuxtLoadingIndicator:`https://nuxt.com/docs/api/components/nuxt-loading-indicator`,NuxtErrorBoundary:`https://nuxt.com/docs/api/components/nuxt-error-boundary`,NuxtWelcome:`https://nuxt.com/docs/api/components/nuxt-welcome`,NuxtIsland:`https://nuxt.com/docs/api/components/nuxt-island`,NuxtImg:`https://nuxt.com/docs/api/components/nuxt-img`},u=v(()=>new z(a.value,{keys:[`component.pascalName`,`component.filePath`,`component.kebabName`]})),d=v(()=>{let e=[],t=new Map,r=[],i=[],o={user:0,lib:0,builtin:0,runtime:0};return(n.value?u.value.search(n.value).map(e=>e.item):a.value).forEach(n=>{let a=n.component;if(a.filePath&&N(a.filePath)){let e=j(a.filePath);if(!e)return;A(e)?(a.meta??={},a.meta.docs??=c?.[a.pascalName],r.push(n),o.builtin++):(t.has(e)||t.set(e,[]),t.get(e).push(n),o.lib++)}else a.global&&!a.filePath?(i.push(n),o.runtime++):(e.push(n),o.user++)}),{count:o,user:e,builtin:r,lib:t,runtime:i}});return(e,t)=>{let a=i,c=J,u=U,m=ke,h=X,_=Y;return l(),x(g,null,[D(u,{search:n.value,"onUpdate:search":t[1]||=e=>n.value=e,pb3:``},{actions:C(()=>[f(e.$slots,`default`)]),default:C(()=>[y(`div`,Ae,[D(a,{icon:`carbon-filter`,op50:``}),D(c,{modelValue:r.value,"onUpdate:modelValue":t[0]||=e=>r.value=e,n:`primary sm`,options:[{label:`All`,value:`all`},{label:`Using`,value:`using`},{label:`Not used`,value:`not-used`}]},null,8,[`modelValue`])])]),_:3},8,[`search`]),d.value.user.length?(l(),w(h,{key:0,icon:`carbon-nominal`,text:`User components`,open:d.value.user.length<=o(50),description:`Total components: ${d.value.count.user}`},{default:C(()=>[(l(!0),x(g,null,s(d.value.user,e=>(l(),w(m,p({key:e.component.filePath},{ref_for:!0},e),null,16))),128))]),_:1},8,[`open`,`description`])):S(``,!0),d.value.runtime.length?(l(),w(h,{key:1,icon:`carbon-load-balancer-global`,open:d.value.runtime.length<=o(50),text:`Runtime components`,description:`Total components: ${d.value.count.runtime}`},{default:C(()=>[(l(!0),x(g,null,s(d.value.runtime,e=>(l(),w(m,p({key:e.component.filePath},{ref_for:!0},e),null,16))),128))]),_:1},8,[`open`,`description`])):S(``,!0),d.value.builtin.length?(l(),w(h,{key:2,icon:`simple-icons-nuxtdotjs`,text:`Built-in components`,description:`Total components: ${d.value.count.builtin}`},{default:C(()=>[(l(!0),x(g,null,s(d.value.builtin,e=>(l(),w(m,p({key:e.component.filePath},{ref_for:!0},e),null,16))),128))]),_:1},8,[`description`])):S(``,!0),d.value.lib.size?(l(),w(h,{key:3,open:d.value.count.lib<=o(50),icon:`carbon-3d-mpr-toggle`,text:`Components from libraries`,description:`${d.value.count.lib} components from ${d.value.lib.size} packages`},{default:C(()=>[(l(!0),x(g,null,s(d.value.lib.entries(),([e,t])=>(l(),x(`div`,{key:e,"ml-2":``},[D(_,{text:`${e} (${t.length})`,py1:``,op50:``},null,8,[`text`]),y(`div`,je,[(l(!0),x(g,null,s(t,e=>(l(),w(m,p({key:e.component.filePath},{ref_for:!0},e),null,16))),128))])]))),128))]),_:1},8,[`open`,`description`])):S(``,!0)],64)}}}),{__name:`ComponentsList`}),Ne={relative:``,"h-full":``,"of-auto":``},Pe={"flex-none":``,flex:`~ gap3`},Fe=a({__name:`components`,setup(e){B({icon:`i-carbon-assembly-cluster`,title:`Components`,order:2});let t=r(),i=oe(),a=ae(),{componentsView:s}=n(`ui`);function c(){t.value?.inspector?.enable()}function d(){s.value=s.value===`list`?`graph`:`list`}return(e,n)=>{let r=L,f=ue,p=H,h=u(`tooltip`);return l(),x(g,null,[y(`div`,Ne,[(l(),w(m(o(s)===`list`?Me:Ee),{components:o(i),relationships:o(a)},{default:C(()=>[y(`div`,Pe,[E(D(r,{"text-lg":``,border:!1,icon:o(s)===`graph`?`i-carbon-list`:`i-carbon-network-4`,title:`Toggle view`,onClick:d},null,8,[`icon`]),[[h,`Toggle View`,void 0,{"bottom-end":!0}]]),o(t)?.inspector?.isAvailable?E((l(),w(r,{key:0,"text-lg":``,border:!1,icon:`i-tabler-focus-2`,title:`Inspect Vue components`,onClick:c},null,512)),[[h,`Inspect Vue components`,void 0,{"bottom-end":!0}]]):S(``,!0)])]),_:1},8,[`components`,`relationships`]))]),D(p,null,{default:C(()=>[D(f)]),_:1})],64)}}});export{Fe as default};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{t as e}from"./nicon-fggc28m9.js";import{C as t,Et as n,G as r,Gt as i,H as a,Jt as o,a as s,b as c,d as l,f as u,h as d,m as f,ot as p,p as m,q as h,x as g}from"./vendor/json-editor-vue-e51gef8e.js";import{h as _,n as v,r as y}from"#entry";import{t as b}from"./filepath-item-le1tf1cv.js";import{t as x}from"./dist-das2ggjj.js";import{t as S}from"./constants-g2z8m4rs.js";import{t as C}from"./nmarkdown-l6kyrv69.js";var w={rounded:``,"font-mono":``},T={key:0,"text-primary":``},E={key:0},D={title:`Vue Directive`},O={"max-w-100":``},k={px4:``,py3:``,"text-sm":``},A={flex:`~ gap2`,n:`primary xs`},j={border:`t base`,"max-h-60":``,"of-auto":``,px4:``,py3:``},M={"text-sm":``},N={"text-primary":``},P={flex:`~ col gap-2`,"items-start":``,pt3:``,"text-sm":``,op75:``},F={key:1,"text-sm":``,op50:``},I=Object.assign(t({__name:`ComposableItem`,props:{item:{},isDirective:{type:Boolean,default:!1},metadata:{},filepath:{},counter:{type:Boolean,default:!0},classes:{default:`px2 py1 text-sm bg-gray:5 `}},setup(t){let I=t,L=v(),R=y(),z=l(()=>I.item.as||I.item.name),B=l(()=>{let e=z.value;return I.isDirective&&(e[0]!==`v`&&(e=`v${e}`),e=x(e)),e}),V=l(()=>I.metadata?.injectionsUsageMap?.get(z.value)?.count||0),H=l(()=>(I.metadata?.injectionsUsageMap?.get(z.value)?.moduleIds||[]).filter(e=>!e.endsWith(`?macro=true`))),U=l(()=>I.item.meta?.docsUrl?I.item.meta.docsUrl:[`nuxt`,`#app`,`nuxt3`].includes(I.item.from)?S.nuxt[I.item.name]:I.item.from===`vue`?S.vue[I.item.name]:null);return(l,v)=>{let y=e,x=C,S=_,W=b,G=h(`VDropdown`);return a(),m(G,{disabled:!I.metadata},{popper:p(()=>[u(`div`,O,[u(`div`,k,[t.item.meta?.description?(a(),m(x,{key:0,tag:`div`,pb3:``,"text-sm":``,markdown:t.item.meta.description},null,8,[`markdown`])):f(``,!0),u(`div`,A,[g(S,{icon:`carbon-copy`,onClick:v[0]||=e=>n(L)(B.value,`imports-name`)},{default:p(()=>[...v[2]||=[c(` Copy `,-1)]]),_:1}),t.filepath?(a(),m(S,{key:0,icon:`carbon-code`,onClick:v[1]||=e=>t.filepath&&n(R)(t.filepath)},{default:p(()=>[...v[3]||=[c(` Source `,-1)]]),_:1})):f(``,!0),U.value?(a(),m(S,{key:1,icon:`carbon-catalog`,to:U.value,target:`_blank`},{default:p(()=>[...v[4]||=[c(` Docs `,-1)]]),_:1},8,[`to`])):f(``,!0)])]),u(`div`,j,[V.value?(a(),d(s,{key:0},[u(`div`,M,[v[5]||=u(`span`,{op50:``},`It has been referenced `,-1),u(`strong`,N,o(V.value),1),v[6]||=u(`span`,{op50:``},` times by:`,-1)]),u(`div`,P,[(a(!0),d(s,null,r(H.value,e=>(a(),m(W,{key:e,filepath:e},null,8,[`filepath`]))),128))])],64)):(a(),d(`div`,F,` Not in use via auto import. `))])])]),default:p(()=>[u(`button`,{"hover:text-primary":``,class:i([t.metadata&&!V.value?`op30 hover:op100`:``,t.classes])},[u(`code`,w,[c(o(z.value)+` `,1),V.value&&t.counter?(a(),d(`sup`,T,`x`+o(V.value),1)):f(``,!0)]),t.isDirective?(a(),d(`sup`,E,[u(`abbr`,D,[g(y,{icon:`tabler:hexagon-letter-d`})])])):f(``,!0)],2)]),_:1},8,[`disabled`])}}}),{__name:`ComposableItem`});export{I as t};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
var e={nuxt:{useAppConfig:`https://nuxt.com/docs/api/composables/use-app-config`,useAsyncData:`https://nuxt.com/docs/api/composables/use-async-data`,useCookie:`https://nuxt.com/docs/api/composables/use-cookie`,useError:`https://nuxt.com/docs/api/composables/use-error`,useFetch:`https://nuxt.com/docs/api/composables/use-fetch`,useHead:`https://nuxt.com/docs/api/composables/use-head`,useHeadSafe:`https://nuxt.com/docs/api/composables/use-head-safe`,useLazyAsyncData:`https://nuxt.com/docs/api/composables/use-lazy-async-data`,useLazyFetch:`https://nuxt.com/docs/api/composables/use-lazy-fetch`,useNuxtApp:`https://nuxt.com/docs/api/composables/use-nuxt-app`,useRoute:`https://nuxt.com/docs/api/composables/use-route`,useRouter:`https://nuxt.com/docs/api/composables/use-router`,useRuntimeConfig:`https://nuxt.com/docs/api/composables/use-runtime-config`,useState:`https://nuxt.com/docs/api/composables/use-state`,$fetch:`https://nuxt.com/docs/api/utils/dollarfetch`,abortNavigation:`https://nuxt.com/docs/api/utils/abort-navigation`,createError:`https://nuxt.com/docs/api/utils/create-error`,defineNuxtComponent:`https://nuxt.com/docs/api/utils/define-nuxt-component`,definePageMeta:`https://nuxt.com/docs/api/utils/define-page-meta`,navigateTo:`https://nuxt.com/docs/api/utils/navigate-to#navigateto`,onBeforeRouteLeave:`https://nuxt.com/docs/api/utils/on-before-route-leave`,onBeforeRouteUpdate:`https://nuxt.com/docs/api/utils/on-before-route-update`,updateAppConfig:`https://nuxt.com/docs/api/utils/update-app-config`},vue:{ref:`https://vuejs.org/api/reactivity-core.html#ref`,computed:`https://vuejs.org/api/reactivity-core.html#computed`,reactive:`https://vuejs.org/api/reactivity-core.html#reactive`,watch:`https://vuejs.org/api/reactivity-core.html#watch`,watchEffect:`https://vuejs.org/api/reactivity-core.html#watcheffect`,watchPostEffect:`https://vuejs.org/api/reactivity-core.html#watchposteffect`,watchSyncEffect:`https://vuejs.org/api/reactivity-core.html#watchsynceffect`,onMounted:`https://vuejs.org/api/composition-api-lifecycle.html#onmounted`,onUnmounted:`https://vuejs.org/api/composition-api-lifecycle.html#onunmounted`,onActivated:`https://vuejs.org/api/composition-api-lifecycle.html#onactivated`,onDeactivated:`https://vuejs.org/api/composition-api-lifecycle.html#ondeactivated`,onBeforeMount:`https://vuejs.org/api/composition-api-lifecycle.html#onbeforemount`,onBeforeUnmount:`https://vuejs.org/api/composition-api-lifecycle.html#onbeforeunmount`,onUpdated:`https://vuejs.org/api/composition-api-lifecycle.html#onupdated`,onBeforeUpdate:`https://vuejs.org/api/composition-api-lifecycle.html#onbeforeupdate`,nextTick:`https://vuejs.org/api/general.html#nexttick`}},t={snippet:`i-carbon-code`,headers:`i-carbon-html-reference`,cookies:`i-carbon-cookie`,params:`i-carbon-text-selection`,query:`i-carbon-help`,body:`i-carbon-document`};export{t as n,e as t};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{E as e,a as t,g as n,i as r,u as i}from"./nicon-fggc28m9.js";import{B as a,C as o,H as s,Jt as c,N as l,Y as u,_t as d,b as f,d as p,f as m,h,ht as g,it as _,ot as v,p as y,x as b,z as x}from"./vendor/json-editor-vue-e51gef8e.js";import{lt as S,ut as C}from"./ready-h577ja1k.js";import{t as w}from"./ncard-f5hsx5qg.js";import{n as T}from"./state-tabs-fm7jexwd.js";import{t as E}from"./pages-oclxpiil.js";import{t as D}from"./npanel-grids-dgypja2z.js";import{t as O}from"./launch-page-edghmj3u.js";var k=new Map,A=new WeakSet,j=Object.assign(o({__name:`IframeView`,props:{tab:{}},setup(n){let o=n,c=r(),u=d(),f=p(()=>o.tab.name),m=d(),v=g(e(u));x(()=>{let e=o.tab.view,t=e.persistent!==!1,n=[`clipboard-write`,`clipboard-read`,...e.permissions||[]];if(k.get(f.value)&&t)m.value=k.get(f.value),m.value.style.visibility=`visible`;else{m.value=document.createElement(`iframe`),m.value.setAttribute(`allow`,n.join(`; `)),m.value.setAttribute(`aria-label`,`Nuxt Devtools`),t&&k.set(f.value,m.value),m.value.src=e.src;try{m.value.style.opacity=`0.01`,m.value.onload=()=>{S(),y(),m.value.style.opacity=`1`}}catch{m.value.style.opacity=`1`}document.body.appendChild(m.value),l(C)}setTimeout(y,100)}),_(C),_(y),_(S),a(()=>{m.value&&(m.value.style.visibility=`hidden`)});function y(){if(m.value&&m.value.contentWindow)try{let e=m.value.contentWindow.document.querySelector(`html`);if(!e)return;let n=c.value===`dark`;if(e.classList.toggle(`dark`,n),e.classList.toggle(`light`,!n),A.has(e))return;A.add(e),new MutationObserver(()=>{let n=e.classList.contains(`dark`)?`dark`:`light`;n!==c.value&&t(n)}).observe(e,{attributes:!0,attributeFilter:[`class`]})}catch{}}let b=i();function S(){if(m.value&&m.value.contentWindow)try{m.value.contentWindow.__NUXT_DEVTOOLS__=b.value}catch{}}function C(){m.value&&Object.assign(m.value.style,{position:`fixed`,left:`${v.left}px`,top:`${v.top}px`,width:`${v.width}px`,height:`${v.height}px`,outline:`none`})}return(e,t)=>(s(),h(`div`,{ref_key:`anchor`,ref:u,"h-full":``,"w-full":``},null,512))}}),{__name:`IframeView`}),M={flex:`~ col gap2`,mxa:``,"items-center":``},N={"text-xl":``},P={"text-rose":``},F=o({__name:`custom-[name]`,props:{name:{}},setup(e){let t=e;E({layout:`full`});let r=S(),i=C(),a=p(()=>t.name??r.params.name),o=T(),l=p(()=>o.value.find(e=>e.name===a.value));function d(e){if(l.value)return n.customTabAction(l.value.name,e)}return x(()=>{l.value||setTimeout(()=>{l.value||i.push(`/modules/overview`)},2e3)}),(e,t)=>{let n=D,r=j,i=O,o=w;return l.value?l.value.view.type===`iframe`?(s(),y(r,{key:1,tab:l.value},null,8,[`tab`])):l.value.view.type===`vnode`?(s(),y(u(l.value.view.vnode),{key:2})):l.value.view.type===`launch`?(s(),y(i,{key:3,name:`custom-${l.value.name}`,icon:l.value.view.icon||l.value.icon,title:l.value.view.title||l.value.title,description:l.value.view.description,actions:l.value.view.actions,onAction:d},null,8,[`name`,`icon`,`title`,`description`,`actions`])):(s(),y(n,{key:4},{default:v(()=>[b(o,{flex:`~ col`,"h-full":``,"items-center":``,"justify-center":``},{default:v(()=>[f(` Unknown tab type `+c(l.value.view),1)]),_:1})]),_:1})):(s(),y(n,{key:0},{default:v(()=>[m(`div`,M,[t[2]||=m(`div`,{"i-carbon-queued":``,mb2:``,"text-5xl":``,op50:``},null,-1),m(`p`,N,[t[0]||=f(` Tab `,-1),m(`code`,P,c(a.value),1),t[1]||=f(` not found `,-1)]),t[3]||=m(`p`,{op50:``},` It might because the module contributing this tab is not installed or enabled `,-1),t[4]||=m(`p`,{mt8:``,"animate-pulse":``},` Redirecting to overview page... `,-1)])]),_:1}))}}});export{F as default};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{C as e,H as t,J as n,p as r,st as i}from"./vendor/json-editor-vue-e51gef8e.js";import{h as a,t as o}from"#entry";var s=Object.assign(e({__name:`DataSchemaButton`,props:{getter:{type:Function}},setup(e){let s=o();return(o,c)=>{let l=a,u=n(`tooltip`);return i((t(),r(l,{title:`Generate Data Schema`,icon:`carbon:container-services`,border:!1,onClick:c[0]||=t=>s.value=e.getter()},null,512)),[[u,`Generate Data Schema`]])}}}),{__name:`DataSchemaButton`});export{s as t};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{y as e}from"./nicon-fggc28m9.js";import{C as t,Et as n,G as r,H as i,Jt as a,K as o,_t as s,a as c,c as l,d as u,et as d,f,h as p,j as m,m as h,ot as g,p as _,rt as v,st as y,x as b}from"./vendor/json-editor-vue-e51gef8e.js";import{Ht as x,It as S}from"./ready-h577ja1k.js";import{h as C,n as w,t as T}from"#entry";import{t as E}from"./nselect-nt99qamb.js";import{t as D}from"./ndropdown-ewq47ntq.js";import{t as O}from"./ncode-block-emvsl3dj.js";import{t as k}from"./ndrawer-nv0fovj4.js";import{n as A,t as j}from"./vendor/quicktype-core-ldbgqon5.js";var M=[`checked`,`disabled`],N=[`disabled`],P=Object.assign(t({__name:`NSwitch`,props:m({disabled:{type:Boolean,default:!1}},{modelValue:{type:Boolean,default:!1},modelModifiers:{}}),emits:[`update:modelValue`],setup(e){let t=d(e,`modelValue`);return(n,r)=>(i(),p(`label`,{class:`n-switch n-switch-base hover:n-switch-hover n-disabled:n-disabled`,checked:t.value||null,disabled:e.disabled||null},[y(f(`input`,{"onUpdate:modelValue":r[0]||=e=>t.value=e,type:`checkbox`,class:`peer absolute op0`,disabled:e.disabled,onKeypress:r[1]||=x(e=>t.value=!t.value,[`enter`])},null,40,N),[[S,t.value]]),r[2]||=f(`div`,{class:`n-switch-slider n-transition n-checked:n-switch-slider-checked peer-active:n-active-base peer-focus-visible:n-focus-base`},[f(`div`,{class:`n-switch-thumb n-transition n-checked:n-switch-thumb-checked`})],-1),o(n.$slots,`default`)],8,M))}}),{__name:`NSwitch`}),F=j(),I=A(),L={border:`b base`,flex:`~ items-center gap-2`,sticky:``,"left-0":``,"right-0":``,"top-0":``,"z-1":``,"bg-base":``,p3:``},R={key:0,flex:`~ items-center justify-center`,absolute:``,"bottom--1":``,"right--2":``,"h-4":``,"w-4":``,"rounded-full":``,"bg-lime:30":``,"text-8px":``},z={flex:`~ col`,"w-100":``,"of-auto":``,py2:``},B={"text-xs":``,capitalize:``,op75:``},V=Object.assign(t({__name:`DataSchemaDrawer`,setup(t){let o=T(),d=s(0),m=s(`TypeScript`),y=u(()=>I.all.find(e=>e.displayName===m.value)),x=s(y.value?.optionDefinitions.filter(e=>typeof e.defaultValue==`boolean`)),S=e(async()=>{if(d.value,!o.value)return``;let e=(0,F.jsonInputForTargetLanguage)(m.value);await e.addSource({name:o.value.name??`Data`,samples:[o.value.input]});let t=new F.InputData;return t.addInput(e),(await(0,F.quicktype)({inputData:t,lang:m.value,rendererOptions:x.value?.reduce((e,t)=>(e[t.name]=t.defaultValue,e),{})})).lines.join(`
|
|
2
|
+
`)}),A=u(()=>{let e=m.value.toLocaleLowerCase();return e.startsWith(`javascript`)?`javascript`:e.startsWith(`json`)?`json`:e.startsWith(`typescript`)?`typescript`:e});v(x,()=>{d.value++},{deep:!0}),v(m,()=>{x.value=y.value?.optionDefinitions.filter(e=>typeof e.defaultValue==`boolean`)});let j=w();function M(){j(S.value||``)}return(e,t)=>{let s=E,u=C,d=P,v=D,w=O,T=k;return y.value?(i(),_(l,{key:0,to:`body`},[b(T,{"model-value":!!n(o)?.input,"auto-close":``,"max-w-screen":``,"w-2xl":``,"n-code-block":``,onClose:t[2]||=e=>o.value=null},{default:g(()=>[f(`div`,L,[t[3]||=f(`p`,{"mr-2":``},` Schema `,-1),b(s,{modelValue:m.value,"onUpdate:modelValue":t[0]||=e=>m.value=e,n:`xs primary`},{default:g(()=>[(i(!0),p(c,null,r(n(I.all),e=>(i(),p(`option`,{key:e.displayName},a(e.displayName),1))),128))]),_:1},8,[`modelValue`]),x.value?.length?(i(),_(v,{key:0,n:`sm lime`},{trigger:g(({click:e})=>[b(u,{icon:`carbon-settings`,"h-full":``,onClick:t=>e()},null,8,[`onClick`]),x.value?(i(),p(`span`,R,a(x.value.length),1)):h(``,!0)]),default:g(()=>[f(`div`,z,[(i(!0),p(c,null,r(x.value,(e,t)=>(i(),_(d,{key:e.name,modelValue:x.value[t].defaultValue,"onUpdate:modelValue":e=>x.value[t].defaultValue=e,flex:`~ gap-2`,rounded:``,px2:``,py2:``},{default:g(()=>[f(`span`,B,a(e.description),1)]),_:2},1032,[`modelValue`,`onUpdate:modelValue`]))),128))])]),_:1})):h(``,!0),t[4]||=f(`div`,{"flex-auto":``},null,-1),b(u,{icon:`carbon-copy`,"mr-6":``,"h-full":``,onClick:t[1]||=e=>M()})]),n(S)?(i(),_(w,{key:0,lang:A.value,code:n(S)},null,8,[`lang`,`code`])):h(``,!0)]),_:1},8,[`model-value`])])):h(``,!0)}}}),{__name:`DataSchemaDrawer`});export{V as default};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{C as e,Et as t,G as n,Gt as r,H as i,Jt as a,K as o,_t as s,a as c,b as l,d as u,f as d,h as f,m as p,ot as m,p as h,qt as g,x as _}from"./vendor/json-editor-vue-e51gef8e.js";import{w as v}from"./utils-hyqnohx4.js";import{h as y}from"#entry";import{t as b}from"./ncode-block-emvsl3dj.js";import{t as x}from"./pages-oclxpiil.js";import{t as S}from"./filepath-item-le1tf1cv.js";import{t as C}from"./ncheckbox-b1g9gqr9.js";import{t as w}from"./nbadge-qxiqdejh.js";import{t as T}from"./nsection-block-ih9c04mv.js";import{t as E}from"./color-abaog8vc.js";var D=Object.assign(e({__name:`NBadgeHashed`,props:{text:{}},setup(e){let t=e,n=u(()=>({color:E(t.text,50,60),background:E(t.text,50,60,.05)}));return(t,r)=>(i(),h(w,{style:g(n.value)},{default:m(()=>[l(a(e.text),1),o(t.$slots,`default`)]),_:3},8,[`style`]))}}),{__name:`NBadgeHashed`}),O={flex:`~ gap-2 col`,mb4:``},k={flex:`~ gap-3 items-center`},A={key:0,flex:`~ gap-1`,"items-center":``,p1:``,border:`~ base rounded`},j={"max-w-full":``,"of-auto":``},M={"text-center":``,op50:``},N={flex:`~`,px4:``},P={key:0,op50:``},F={px2:``,"text-center":``},I={"of-auto":``},L=Object.assign(e({__name:`DebugModuleMutationRecords`,props:{moduleMutationRecords:{}},setup(e){let t=e,o=/^[a-z]:[\\/]/i;function l(e){return e.startsWith(`/`)||e.match(o)}let g=s(!1),v=s(!1),x=s(!1),w=s(!1),T=s(!1),E=s(``),L=u(()=>{let e=t.moduleMutationRecords;return g.value||(e=e.filter(e=>!e.name.startsWith(`nuxt:`)&&e.name!==`@nuxt/devtools`)),v.value||(e=e.filter(e=>e.keys.join(`.`)!==`build.templates`)),x.value||(e=e.filter(e=>e.keys.join(`.`)!==`build.transpile`)),w.value||(e=e.filter(e=>e.keys.join(`.`)!==`plugins`)),T.value||(e=e.filter(e=>e.method||e.value!==`[]`&&e.value!==`{}`)),E.value&&(e=e.filter(e=>e.name===E.value)),e});return(t,o)=>{let s=C,u=D,R=y,z=S,B=b;return i(),f(c,null,[d(`div`,O,[d(`div`,k,[_(s,{modelValue:g.value,"onUpdate:modelValue":o[0]||=e=>g.value=e,n:`primary`},{default:m(()=>[...o[6]||=[d(`span`,{"ws-nowrap":``,op75:``},`Builtin Modules`,-1)]]),_:1},8,[`modelValue`]),_(s,{modelValue:v.value,"onUpdate:modelValue":o[1]||=e=>v.value=e,n:`primary`},{default:m(()=>[...o[7]||=[d(`span`,{"ws-nowrap":``,op75:``},`Templates`,-1)]]),_:1},8,[`modelValue`]),_(s,{modelValue:x.value,"onUpdate:modelValue":o[2]||=e=>x.value=e,n:`primary`},{default:m(()=>[...o[8]||=[d(`span`,{"ws-nowrap":``,op75:``},`Transpile`,-1)]]),_:1},8,[`modelValue`]),_(s,{modelValue:w.value,"onUpdate:modelValue":o[3]||=e=>w.value=e,n:`primary`},{default:m(()=>[...o[9]||=[d(`span`,{"ws-nowrap":``,op75:``},`Plugins`,-1)]]),_:1},8,[`modelValue`]),_(s,{modelValue:T.value,"onUpdate:modelValue":o[4]||=e=>T.value=e,n:`primary`},{default:m(()=>[...o[10]||=[d(`span`,{"ws-nowrap":``,op75:``},`Empty Initial`,-1)]]),_:1},8,[`modelValue`]),E.value?(i(),f(`div`,A,[_(u,{"font-mono":``,text:E.value},null,8,[`text`]),_(R,{icon:`carbon-close`,border:!1,onClick:o[5]||=e=>E.value=``})])):p(``,!0)])]),d(`table`,j,[o[11]||=d(`thead`,{border:`b base`},[d(`tr`,null,[d(`th`,{"ws-nowrap":``,p1:``,"text-center":``,"font-bold":``},` Index `),d(`th`,{"ws-nowrap":``,p1:``,"text-center":``,"font-bold":``},` Module `),d(`th`,{"ws-nowrap":``,p1:``,"text-center":``,"font-bold":``},` Key Path `),d(`th`,{"ws-nowrap":``,p1:``,"text-center":``,"font-bold":``},` Method `),d(`th`,{"ws-nowrap":``,p1:``,"text-center":``,"font-bold":``},` Value `)])],-1),d(`tbody`,null,[(i(!0),f(c,null,n(L.value,t=>(i(),f(`tr`,{key:e.moduleMutationRecords.indexOf(t),border:`b dashed transparent hover:base`},[d(`td`,M,[d(`div`,null,a(e.moduleMutationRecords.indexOf(t)+1),1)]),d(`td`,null,[t.name&&l(t.name)?(i(),h(z,{key:0,filepath:t.name},null,8,[`filepath`])):(i(),h(u,{key:1,role:`button`,"font-mono":``,text:t.name,onClick:e=>E.value=t.name},null,8,[`text`,`onClick`]))]),d(`td`,null,[d(`code`,N,[(i(!0),f(c,null,n(t.keys,(e,n)=>(i(),f(c,{key:n},[d(`span`,null,a(e),1),n<t.keys.length-1?(i(),f(`span`,P,` . `)):p(``,!0)],64))),128))])]),d(`td`,F,[_(u,{"font-mono":``,text:t.method||`=`,class:r(t.method?``:`saturate-0`)},null,8,[`text`,`class`])]),d(`td`,I,[_(B,{code:String(t.value),lang:`ts`,"grammar-context-code":`let a = `,"ws-normal":``,"break-all":``,py1:``,lines:!1,inline:!0},null,8,[`code`])])]))),128))])])],64)}}}),{__name:`DebugModuleMutationRecords`}),R={key:0,p6:``},z={key:1},B=e({__name:`debug`,setup(e){x({icon:`i-carbon-debug`,title:`Debug`,category:`advanced`});let n=v();return(e,r)=>{let a=T;return t(n)?(i(),f(`div`,z,[_(a,{icon:`carbon-container-image-push-pull`,text:`Module Mutation Records`,description:`Records of module mutations to nuxt options`},{default:m(()=>[_(L,{"module-mutation-records":t(n).moduleMutationRecords||[]},null,8,[`module-mutation-records`])]),_:1})])):(i(),f(`div`,R,[...r[0]||=[d(`div`,null,`No Debug Context Found`,-1),d(`div`,null,"Set `debug: true` in your nuxt.config.ts to enable this panel",-1)]]))}}});export{B as default};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{H as e,K as t,f as n,h as r}from"./vendor/json-editor-vue-e51gef8e.js";import{t as i}from"./_plugin-vue_export-helper-d9irwgla.js";var a={},o={"h-full":``,"of-auto":``,"n-panel-grids":``},s={"h-full":``,"bg-base":``};function c(i,a){return e(),r(`div`,o,[n(`div`,s,[t(i.$slots,`default`)])])}var l=i(a,[[`render`,c]]);export{l as default};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
var e=/\d/,t=[`-`,`_`,`/`,`.`];function n(t=``){if(!e.test(t))return t!==t.toLowerCase()}function r(e,r){let i=r??t,a=[];if(!e||typeof e!=`string`)return a;let o=``,s,c;for(let t of e){let e=i.includes(t);if(e===!0){a.push(o),o=``,s=void 0;continue}let r=n(t);if(c===!1){if(s===!1&&r===!0){a.push(o),o=t,s=r;continue}if(s===!0&&r===!1&&o.length>1){let e=o.at(-1);a.push(o.slice(0,Math.max(0,o.length-1))),o=e+t,s=r;continue}}o+=t,s=r,c=e}return a.push(o),a}function i(e){return e?e[0].toUpperCase()+e.slice(1):``}function a(e,t){return e?(Array.isArray(e)?e:r(e)).map(e=>i(t?.normalize?e.toLowerCase():e)).join(``):``}function o(e,t){return e?(Array.isArray(e)?e:r(e)).map(e=>e.toLowerCase()).join(t??`-`):``}export{a as n,o as t};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{C as e,Gt as t,H as n,Jt as r,K as i,b as a,d as o,f as s,h as c}from"./vendor/json-editor-vue-e51gef8e.js";var l={"ml-1":``,"text-xs":``,op50:``},u=Object.assign(e({__name:`DurationDisplay`,props:{duration:{},factor:{default:1},color:{type:Boolean,default:!0}},setup(e){let u=e;function d(e){return u.color?e?(e*=u.factor,e<.5?`text-gray:50`:e>1e3?`text-red-400`:e>500?`text-orange-400`:e>200?`text-yellow-400`:``):`text-gray-400`:``}let f=o(()=>!u.duration||u.duration<1?[`<1`,`ms`]:u.duration<1e3?[u.duration.toFixed(0),`ms`]:u.duration<6e4?[(u.duration/1e3).toFixed(1),`s`]:[(u.duration/1e3/60).toFixed(1),`min`]);return(o,u)=>(n(),c(`div`,{class:t(d(e.duration))},[i(o.$slots,`before`),a(` `+r(f.value[0]),1),s(`span`,l,r(f.value[1]),1),i(o.$slots,`after`)],2))}}),{__name:`DurationDisplay`});export{u as t};
|