@nuxt/devtools 1.0.0-beta.3 → 1.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +6 -28
- package/dist/chunks/module-main.mjs +12 -13
- package/dist/client/200.html +17 -17
- package/dist/client/404.html +17 -17
- package/dist/client/__blank/index.html +17 -17
- package/dist/client/_nuxt/{CodeDiff.vue.4fcef1e4.js → CodeDiff.vue.72250861.js} +1 -1
- package/dist/client/_nuxt/{ComposableItem.vue.b4d03c6d.js → ComposableItem.vue.5fcac467.js} +1 -1
- package/dist/client/_nuxt/{DataSchemaButton.vue.18fef0d4.js → DataSchemaButton.vue.b4fc42f9.js} +1 -1
- package/dist/client/_nuxt/{DataSchemaDrawer.714650a4.js → DataSchemaDrawer.ecd92b92.js} +5 -4
- package/dist/client/_nuxt/{DurationDisplay.vue.dd0f91f1.js → DurationDisplay.vue.7b02ae9f.js} +1 -1
- package/dist/client/_nuxt/{FilepathItem.vue.a1b71b8d.js → FilepathItem.vue.6cdabcd4.js} +1 -1
- package/dist/client/_nuxt/{HelpFab.vue.f0924b60.js → HelpFab.vue.31b87f2a.js} +1 -1
- package/dist/client/_nuxt/LaunchPage.vue.06fcb257.js +1 -0
- package/dist/client/_nuxt/{NBadge.ff27dca2.js → NBadge.681f2fb6.js} +1 -1
- package/dist/client/_nuxt/NCheckbox.vue.23790c32.js +1 -0
- package/dist/client/_nuxt/NCodeBlock.vue.7cb5f01d.js +2 -0
- package/dist/client/_nuxt/NDrawer.vue.15b4d748.js +1 -0
- package/dist/client/_nuxt/NDropdown.vue.54157271.js +1 -0
- package/dist/client/_nuxt/{NIconTitle.vue.7b846ffe.js → NIconTitle.vue.2d1e44fb.js} +1 -1
- package/dist/client/_nuxt/{NLink.vue.9859bf11.js → NLink.vue.e913f358.js} +1 -1
- package/dist/client/_nuxt/{NMarkdown.vue.79860402.js → NMarkdown.vue.20899182.js} +1 -1
- package/dist/client/_nuxt/NNavbar.vue.c506a970.js +1 -0
- package/dist/client/_nuxt/{NSectionBlock.acf7c6ed.js → NSectionBlock.d66bb8c4.js} +1 -1
- package/dist/client/_nuxt/{NSelect.vue.04805728.js → NSelect.vue.9e5ebac9.js} +1 -1
- package/dist/client/_nuxt/NSelectTabs.vue.9bf6517b.js +1 -0
- package/dist/client/_nuxt/NSwitch.vue.2e265fe1.js +1 -0
- package/dist/client/_nuxt/{NTip.vue.c98a31a2.js → NTip.vue.51a4b91d.js} +1 -1
- package/dist/client/_nuxt/StateEditor.vue.420289e1.js +1 -0
- package/dist/client/_nuxt/{__blank.eaeade3a.js → __blank.95ba7574.js} +1 -1
- package/dist/client/_nuxt/{analyze-build.92ac65df.js → analyze-build.5b09c13b.js} +1 -1
- package/dist/client/_nuxt/assets.f0ad2218.js +16 -0
- package/dist/client/_nuxt/builds/latest.json +1 -0
- package/dist/client/_nuxt/builds/meta/10bb1edc-fde3-4c52-91c9-404c411ae86d.json +1 -0
- package/dist/client/_nuxt/client.b2473ec3.js +1 -0
- package/dist/client/_nuxt/components.dcc368d1.js +98 -0
- package/dist/client/_nuxt/{custom-_name_.b17c1362.js → custom-_name_.129bf0b8.js} +1 -1
- package/dist/client/_nuxt/{default.201686e7.js → default.b857d80c.js} +1 -1
- package/dist/client/_nuxt/entry.7cb87d02.js +27 -0
- package/dist/client/_nuxt/{entry.aac067b6.css → entry.aa8c94e8.css} +1 -1
- package/dist/client/_nuxt/{error-404.18967c67.js → error-404.6518563d.js} +1 -1
- package/dist/client/_nuxt/{error-500.dcd91098.js → error-500.94c551da.js} +1 -1
- package/dist/client/_nuxt/{full.a9db422e.js → full.169e4977.js} +1 -1
- package/dist/client/_nuxt/{hooks.ad5f725f.js → hooks.f1018405.js} +1 -1
- package/dist/client/_nuxt/{imports.468b0281.js → imports.dda10442.js} +1 -1
- package/dist/client/_nuxt/{index.dacd63c3.js → index.02ce2a44.js} +1 -1
- package/dist/client/_nuxt/{index.86b321d0.js → index.05d4e5a2.js} +1 -1
- package/dist/client/_nuxt/json-editor-vue.b5b3ad21.js +129 -0
- package/dist/client/_nuxt/modules.25c79d85.js +2 -0
- package/dist/client/_nuxt/{none.37b64ac4.js → none.cebdb11e.js} +1 -1
- package/dist/client/_nuxt/{open-graph.03011848.js → open-graph.4871f819.js} +1 -1
- package/dist/client/_nuxt/overview.a8b5c91e.js +1 -0
- package/dist/client/_nuxt/pages.b6c85de5.js +1 -0
- package/dist/client/_nuxt/{payload.b7f38f74.js → payload.5d97df2d.js} +1 -1
- package/dist/client/_nuxt/{plugins.59bd86e7.js → plugins.f3bd0c25.js} +1 -1
- package/dist/client/_nuxt/{runtime-configs.aaa20729.js → runtime-configs.92408de9.js} +1 -1
- package/dist/client/_nuxt/server-routes.90d653e7.js +9 -0
- package/dist/client/_nuxt/{settings.12ae4ad7.js → settings.9790bb1a.js} +1 -1
- package/dist/client/_nuxt/{state-components.a78445e5.js → state-components.ca15f9b7.js} +1 -1
- package/dist/client/_nuxt/{state-modules.199ca5da.js → state-modules.c1654bb7.js} +1 -1
- package/dist/client/_nuxt/{storage-options.aeaf572e.js → storage-options.035e7403.js} +1 -1
- package/dist/client/_nuxt/{storage.f2e2d671.js → storage.c7339fe7.js} +1 -1
- package/dist/client/_nuxt/{terminals.091a556d.js → terminals.41bf8c60.js} +1 -1
- package/dist/client/_nuxt/timeline.ed636d87.js +29 -0
- package/dist/client/_nuxt/unocss-runtime.16c4cc56.js +2 -0
- package/dist/client/_nuxt/virtual-files.7d0bcad0.js +1 -0
- package/dist/client/index.html +17 -17
- package/dist/client/modules/analyze-build/index.html +17 -17
- package/dist/client/modules/assets/index.html +17 -17
- package/dist/client/modules/components/index.html +17 -17
- package/dist/client/modules/hooks/index.html +17 -17
- package/dist/client/modules/imports/index.html +17 -17
- package/dist/client/modules/modules/index.html +17 -17
- package/dist/client/modules/open-graph/index.html +17 -17
- package/dist/client/modules/overview/index.html +17 -17
- package/dist/client/modules/pages/index.html +17 -17
- package/dist/client/modules/payload/index.html +17 -17
- package/dist/client/modules/plugins/index.html +17 -17
- package/dist/client/modules/runtime-configs/index.html +17 -17
- package/dist/client/modules/server-routes/index.html +17 -17
- package/dist/client/modules/storage/index.html +17 -17
- package/dist/client/modules/terminals/index.html +17 -17
- package/dist/client/modules/timeline/index.html +17 -17
- package/dist/client/modules/virtual-files/index.html +17 -17
- package/dist/client/settings/index.html +17 -17
- package/dist/module.json +1 -1
- package/dist/runtime/plugins/devtools.server.mjs +1 -2
- package/dist/runtime/plugins/view/FrameBox.vue +3 -0
- package/dist/runtime/plugins/view/Main.vue +21 -17
- package/dist/runtime/plugins/view/utils.d.ts +14 -0
- package/dist/runtime/plugins/view/utils.mjs +71 -1
- package/package.json +43 -39
- package/dist/client/_nuxt/LaunchPage.vue.c617b6d5.js +0 -1
- package/dist/client/_nuxt/NCheckbox.vue.b56304c9.js +0 -1
- package/dist/client/_nuxt/NCodeBlock.vue.9ce69690.js +0 -2
- package/dist/client/_nuxt/NDrawer.vue.2b176b54.js +0 -1
- package/dist/client/_nuxt/NDropdown.vue.e90fcd0b.js +0 -1
- package/dist/client/_nuxt/NNavbar.vue.737ef1b1.js +0 -1
- package/dist/client/_nuxt/NSelectTabs.vue.626ecbdd.js +0 -1
- package/dist/client/_nuxt/NSwitch.vue.ff927669.js +0 -1
- package/dist/client/_nuxt/StateEditor.vue.1c34496c.js +0 -1
- package/dist/client/_nuxt/assets.c6f47fab.js +0 -16
- package/dist/client/_nuxt/client.17f79a3c.js +0 -1
- package/dist/client/_nuxt/components.80a04311.js +0 -98
- package/dist/client/_nuxt/entry.909ad6c7.js +0 -27
- package/dist/client/_nuxt/json-editor-vue.8a771ed0.js +0 -129
- package/dist/client/_nuxt/modules.dc1dbdef.js +0 -2
- package/dist/client/_nuxt/overview.acf4105d.js +0 -1
- package/dist/client/_nuxt/pages.061895e9.js +0 -1
- package/dist/client/_nuxt/server-routes.c8d34f99.js +0 -9
- package/dist/client/_nuxt/timeline.1210bb98.js +0 -29
- package/dist/client/_nuxt/unocss-runtime.c55f86fd.js +0 -2
- package/dist/client/_nuxt/virtual-files.7767a81f.js +0 -1
package/README.md
CHANGED
|
@@ -27,36 +27,15 @@ Unleash Nuxt Developer Experience.
|
|
|
27
27
|
|
|
28
28
|
> Nuxt DevTools requires **Nuxt v3.1.0 or higher**.
|
|
29
29
|
|
|
30
|
-
|
|
30
|
+
Nuxt DevTools is **enabled by default** in Nuxt v3.8.0. 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.
|
|
31
31
|
|
|
32
|
-
|
|
33
|
-
npx nuxi@latest devtools enable
|
|
34
|
-
```
|
|
35
|
-
|
|
36
|
-
Restart your Nuxt server and open your app in browser. Click the Nuxt icon on the bottom (or press <kbd>Shift</kbd> + <kbd>Alt</kbd> / <kbd>⇧ Shift</kbd> + <kbd>⌥ Option</kbd> + <kbd>D</kbd>) to toggle the DevTools.
|
|
37
|
-
|
|
38
|
-
> **Note**: If you using `nvm` or other Node version managers, we suggest to run the enable command again after switching Node version.
|
|
39
|
-
|
|
40
|
-
Similarly, you can disable it per project by running:
|
|
41
|
-
|
|
42
|
-
```bash
|
|
43
|
-
npx nuxi@latest devtools disable
|
|
44
|
-
```
|
|
45
|
-
|
|
46
|
-
### Install Manually
|
|
47
|
-
|
|
48
|
-
Nuxt DevTools is currently provided as a module (might be changed in the future). If you prefer, you can also install it locally, which will be activated for all your team members.
|
|
32
|
+
If you want to explicitly enable or disable Nuxt DevTools, you can update your `nuxt.config` with:
|
|
49
33
|
|
|
50
|
-
```
|
|
51
|
-
npm i -D @nuxt/devtools
|
|
52
|
-
```
|
|
53
|
-
|
|
54
|
-
```ts
|
|
55
|
-
// nuxt.config.ts
|
|
34
|
+
```js
|
|
56
35
|
export default defineNuxtConfig({
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
36
|
+
devtools: {
|
|
37
|
+
enabled: true // or false to disable
|
|
38
|
+
}
|
|
60
39
|
})
|
|
61
40
|
```
|
|
62
41
|
|
|
@@ -77,7 +56,6 @@ You can opt-in to the edge release channel by running:
|
|
|
77
56
|
|
|
78
57
|
Remove lockfile (`package-lock.json`, `yarn.lock`, or `pnpm-lock.yaml`) and reinstall dependencies.
|
|
79
58
|
|
|
80
|
-
|
|
81
59
|
### Module Options
|
|
82
60
|
|
|
83
61
|
To configure Nuxt DevTools, you can pass the `devtools` options.
|
|
@@ -30,7 +30,7 @@ import Git from 'simple-git';
|
|
|
30
30
|
import { hash } from 'ohash';
|
|
31
31
|
import { runtimeDir, clientDir, packageDir, isGlobalInstall } from '../dirs.mjs';
|
|
32
32
|
|
|
33
|
-
const version = "1.0.
|
|
33
|
+
const version = "1.0.1";
|
|
34
34
|
|
|
35
35
|
let token;
|
|
36
36
|
async function getDevAuthToken() {
|
|
@@ -196,7 +196,7 @@ function setupAssetsRPC({ nuxt, ensureDevAuthToken, refresh, options }) {
|
|
|
196
196
|
let finalPath = resolve(baseDir, path);
|
|
197
197
|
const { ext } = parse(finalPath);
|
|
198
198
|
if (extensions !== "*") {
|
|
199
|
-
if (!extensions.includes(ext.toLowerCase()))
|
|
199
|
+
if (!extensions.includes(ext.toLowerCase().slice(1)))
|
|
200
200
|
throw new Error(`File extension ${ext} is not allowed to upload, allowed extensions are: ${extensions.join(", ")}
|
|
201
201
|
You can configure it in Nuxt config at \`devtools.assets.uploadExtensions\`.`);
|
|
202
202
|
}
|
|
@@ -274,7 +274,7 @@ function setupNpmRPC({ nuxt, ensureDevAuthToken }) {
|
|
|
274
274
|
let detectPromise;
|
|
275
275
|
const updatesPromise = /* @__PURE__ */ new Map();
|
|
276
276
|
function getPackageManager() {
|
|
277
|
-
detectPromise
|
|
277
|
+
detectPromise ||= detectPackageManager(nuxt.options.rootDir);
|
|
278
278
|
return detectPromise;
|
|
279
279
|
}
|
|
280
280
|
async function getNpmCommand(command, packageName, options = {}) {
|
|
@@ -389,7 +389,7 @@ function setupNpmRPC({ nuxt, ensureDevAuthToken }) {
|
|
|
389
389
|
const generated = await magicastGuard(async () => {
|
|
390
390
|
const mod = parseModule(source, { sourceFileName: filepath });
|
|
391
391
|
const config = getDefaultExportOptions(mod);
|
|
392
|
-
config.modules
|
|
392
|
+
config.modules ||= [];
|
|
393
393
|
if (config.modules.includes(name)) {
|
|
394
394
|
Object.values(config.modules).forEach((value, index) => {
|
|
395
395
|
if (value === name)
|
|
@@ -668,7 +668,7 @@ function setupGeneralRPC({ nuxt, options, refresh, openInEditorHooks }) {
|
|
|
668
668
|
if (options.disableAuthorization)
|
|
669
669
|
return;
|
|
670
670
|
const token = await getDevAuthToken();
|
|
671
|
-
origin
|
|
671
|
+
origin ||= `${nuxt.options.devServer.https ? "https" : "http"}://${nuxt.options.devServer.host === "::" ? "localhost" : nuxt.options.devServer.host || "localhost"}:${nuxt.options.devServer.port}`;
|
|
672
672
|
const message = [
|
|
673
673
|
`A browser is requesting permissions of ${colors.bold(colors.yellow("writing files and running commands"))} from the DevTools UI.`,
|
|
674
674
|
colors.bold(info),
|
|
@@ -759,7 +759,7 @@ function setupTerminalRPC({ nuxt, rpc, refresh, ensureDevAuthToken }) {
|
|
|
759
759
|
const terminal = terminals.get(id);
|
|
760
760
|
if (!terminal)
|
|
761
761
|
return false;
|
|
762
|
-
terminal.buffer
|
|
762
|
+
terminal.buffer ||= "";
|
|
763
763
|
terminal.buffer += data;
|
|
764
764
|
rpc.broadcast.onTerminalData.asEvent({ id, data });
|
|
765
765
|
return true;
|
|
@@ -1306,15 +1306,14 @@ window.__NUXT_DEVTOOLS_TIME_METRIC__.appInit = Date.now()
|
|
|
1306
1306
|
const clientDirExists = existsSync(clientDir);
|
|
1307
1307
|
const analyzeDir = join$1(nuxt.options.rootDir, ".nuxt/analyze");
|
|
1308
1308
|
nuxt.hook("vite:extendConfig", (config) => {
|
|
1309
|
-
|
|
1310
|
-
config.server
|
|
1311
|
-
|
|
1312
|
-
(_b = config.server.fs).allow || (_b.allow = [
|
|
1309
|
+
config.server ||= {};
|
|
1310
|
+
config.server.fs ||= {};
|
|
1311
|
+
config.server.fs.allow ||= [
|
|
1313
1312
|
searchForWorkspaceRoot(process.cwd())
|
|
1314
|
-
]
|
|
1313
|
+
];
|
|
1315
1314
|
config.server.fs.allow.push(packageDir);
|
|
1316
|
-
|
|
1317
|
-
|
|
1315
|
+
config.server.watch ||= {};
|
|
1316
|
+
config.server.watch.ignored ||= [];
|
|
1318
1317
|
if (!Array.isArray(config.server.watch.ignored))
|
|
1319
1318
|
config.server.watch.ignored = [config.server.watch.ignored];
|
|
1320
1319
|
config.server.watch.ignored.push("**/.nuxt/analyze/**");
|
package/dist/client/200.html
CHANGED
|
@@ -2,9 +2,9 @@
|
|
|
2
2
|
<html >
|
|
3
3
|
<head><meta charset="utf-8">
|
|
4
4
|
<meta name="viewport" content="width=device-width, initial-scale=1">
|
|
5
|
-
<link rel="stylesheet" href="/__nuxt_devtools__/client/_nuxt/entry.
|
|
6
|
-
<link rel="modulepreload" as="script" crossorigin href="/__nuxt_devtools__/client/_nuxt/entry.
|
|
7
|
-
<link rel="prefetch" as="script" crossorigin href="/__nuxt_devtools__/client/_nuxt/index.
|
|
5
|
+
<link rel="stylesheet" href="/__nuxt_devtools__/client/_nuxt/entry.aa8c94e8.css">
|
|
6
|
+
<link rel="modulepreload" as="script" crossorigin href="/__nuxt_devtools__/client/_nuxt/entry.7cb87d02.js">
|
|
7
|
+
<link rel="prefetch" as="script" crossorigin href="/__nuxt_devtools__/client/_nuxt/index.02ce2a44.js">
|
|
8
8
|
<link rel="prefetch" as="script" crossorigin href="/__nuxt_devtools__/client/_nuxt/onig.0c57a370.js">
|
|
9
9
|
<link rel="prefetch" as="script" crossorigin href="/__nuxt_devtools__/client/_nuxt/vitesse-dark.ff0e7dcb.js">
|
|
10
10
|
<link rel="prefetch" as="script" crossorigin href="/__nuxt_devtools__/client/_nuxt/vitesse-light.c6996724.js">
|
|
@@ -18,24 +18,24 @@
|
|
|
18
18
|
<link rel="prefetch" as="script" crossorigin href="/__nuxt_devtools__/client/_nuxt/vue-html.88dda4a8.js">
|
|
19
19
|
<link rel="prefetch" as="script" crossorigin href="/__nuxt_devtools__/client/_nuxt/diff.22e0b108.js">
|
|
20
20
|
<link rel="prefetch" as="script" crossorigin href="/__nuxt_devtools__/client/_nuxt/shellscript.e25d1410.js">
|
|
21
|
-
<link rel="prefetch" as="script" crossorigin href="/__nuxt_devtools__/client/_nuxt/default.
|
|
22
|
-
<link rel="prefetch" as="script" crossorigin href="/__nuxt_devtools__/client/_nuxt/full.
|
|
23
|
-
<link rel="prefetch" as="script" crossorigin href="/__nuxt_devtools__/client/_nuxt/none.
|
|
21
|
+
<link rel="prefetch" as="script" crossorigin href="/__nuxt_devtools__/client/_nuxt/default.b857d80c.js">
|
|
22
|
+
<link rel="prefetch" as="script" crossorigin href="/__nuxt_devtools__/client/_nuxt/full.169e4977.js">
|
|
23
|
+
<link rel="prefetch" as="script" crossorigin href="/__nuxt_devtools__/client/_nuxt/none.cebdb11e.js">
|
|
24
24
|
<link rel="prefetch" as="script" crossorigin href="/__nuxt_devtools__/client/_nuxt/nuxt-docs.100caa70.js">
|
|
25
25
|
<link rel="prefetch" as="style" href="/__nuxt_devtools__/client/_nuxt/NCodeBlock.6994516c.css">
|
|
26
|
-
<link rel="prefetch" as="script" crossorigin href="/__nuxt_devtools__/client/_nuxt/DataSchemaDrawer.
|
|
27
|
-
<link rel="prefetch" as="script" crossorigin href="/__nuxt_devtools__/client/_nuxt/NSelect.vue.
|
|
28
|
-
<link rel="prefetch" as="script" crossorigin href="/__nuxt_devtools__/client/_nuxt/NSwitch.vue.
|
|
29
|
-
<link rel="prefetch" as="script" crossorigin href="/__nuxt_devtools__/client/_nuxt/NDropdown.vue.
|
|
30
|
-
<link rel="prefetch" as="script" crossorigin href="/__nuxt_devtools__/client/_nuxt/NCodeBlock.vue.
|
|
31
|
-
<link rel="prefetch" as="script" crossorigin href="/__nuxt_devtools__/client/_nuxt/client.
|
|
32
|
-
<link rel="prefetch" as="script" crossorigin href="/__nuxt_devtools__/client/_nuxt/NDrawer.vue.
|
|
33
|
-
<link rel="prefetch" as="script" crossorigin href="/__nuxt_devtools__/client/_nuxt/unocss-runtime.
|
|
26
|
+
<link rel="prefetch" as="script" crossorigin href="/__nuxt_devtools__/client/_nuxt/DataSchemaDrawer.ecd92b92.js">
|
|
27
|
+
<link rel="prefetch" as="script" crossorigin href="/__nuxt_devtools__/client/_nuxt/NSelect.vue.9e5ebac9.js">
|
|
28
|
+
<link rel="prefetch" as="script" crossorigin href="/__nuxt_devtools__/client/_nuxt/NSwitch.vue.2e265fe1.js">
|
|
29
|
+
<link rel="prefetch" as="script" crossorigin href="/__nuxt_devtools__/client/_nuxt/NDropdown.vue.54157271.js">
|
|
30
|
+
<link rel="prefetch" as="script" crossorigin href="/__nuxt_devtools__/client/_nuxt/NCodeBlock.vue.7cb5f01d.js">
|
|
31
|
+
<link rel="prefetch" as="script" crossorigin href="/__nuxt_devtools__/client/_nuxt/client.b2473ec3.js">
|
|
32
|
+
<link rel="prefetch" as="script" crossorigin href="/__nuxt_devtools__/client/_nuxt/NDrawer.vue.15b4d748.js">
|
|
33
|
+
<link rel="prefetch" as="script" crossorigin href="/__nuxt_devtools__/client/_nuxt/unocss-runtime.16c4cc56.js">
|
|
34
34
|
<link rel="prefetch" as="style" href="/__nuxt_devtools__/client/_nuxt/error-404.82ac0ec5.css">
|
|
35
|
-
<link rel="prefetch" as="script" crossorigin href="/__nuxt_devtools__/client/_nuxt/error-404.
|
|
35
|
+
<link rel="prefetch" as="script" crossorigin href="/__nuxt_devtools__/client/_nuxt/error-404.6518563d.js">
|
|
36
36
|
<link rel="prefetch" as="style" href="/__nuxt_devtools__/client/_nuxt/error-500.ff959f66.css">
|
|
37
|
-
<link rel="prefetch" as="script" crossorigin href="/__nuxt_devtools__/client/_nuxt/error-500.
|
|
38
|
-
<script type="module" src="/__nuxt_devtools__/client/_nuxt/entry.
|
|
37
|
+
<link rel="prefetch" as="script" crossorigin href="/__nuxt_devtools__/client/_nuxt/error-500.94c551da.js">
|
|
38
|
+
<script type="module" src="/__nuxt_devtools__/client/_nuxt/entry.7cb87d02.js" crossorigin></script><script>"use strict";(()=>{const a=window,e=document.documentElement,m=["dark","light"],c=window.localStorage.getItem("nuxt-color-mode")||"system";let n=c==="system"?f():c;const l=e.getAttribute("data-color-mode-forced");l&&(n=l),i(n),a["__NUXT_COLOR_MODE__"]={preference:c,value:n,getColorScheme:f,addColorScheme:i,removeColorScheme:d};function i(o){const t=""+o+"",s="";e.classList?e.classList.add(t):e.className+=" "+t,s&&e.setAttribute("data-"+s,o)}function d(o){const t=""+o+"",s="";e.classList?e.classList.remove(t):e.className=e.className.replace(new RegExp(t,"g"),""),s&&e.removeAttribute("data-"+s)}function r(o){return a.matchMedia("(prefers-color-scheme"+o+")")}function f(){if(a.matchMedia&&r("").media!=="not all"){for(const o of m)if(r(":"+o).matches)return o}return"light"}})();
|
|
39
39
|
</script></head>
|
|
40
40
|
<body ><div id="__nuxt"></div><script type="application/json" id="__NUXT_DATA__" data-ssr="false">[{"_errors":1,"serverRendered":2,"data":3,"state":4},{},false,{},{}]</script>
|
|
41
41
|
<script>window.__NUXT__={};window.__NUXT__.config={public:{fixture4:"public runtime config from nuxt.config.ts"},app:{baseURL:"/__nuxt_devtools__/client",buildAssetsDir:"/_nuxt/",cdnURL:""}}</script></body>
|
package/dist/client/404.html
CHANGED
|
@@ -2,9 +2,9 @@
|
|
|
2
2
|
<html >
|
|
3
3
|
<head><meta charset="utf-8">
|
|
4
4
|
<meta name="viewport" content="width=device-width, initial-scale=1">
|
|
5
|
-
<link rel="stylesheet" href="/__nuxt_devtools__/client/_nuxt/entry.
|
|
6
|
-
<link rel="modulepreload" as="script" crossorigin href="/__nuxt_devtools__/client/_nuxt/entry.
|
|
7
|
-
<link rel="prefetch" as="script" crossorigin href="/__nuxt_devtools__/client/_nuxt/index.
|
|
5
|
+
<link rel="stylesheet" href="/__nuxt_devtools__/client/_nuxt/entry.aa8c94e8.css">
|
|
6
|
+
<link rel="modulepreload" as="script" crossorigin href="/__nuxt_devtools__/client/_nuxt/entry.7cb87d02.js">
|
|
7
|
+
<link rel="prefetch" as="script" crossorigin href="/__nuxt_devtools__/client/_nuxt/index.02ce2a44.js">
|
|
8
8
|
<link rel="prefetch" as="script" crossorigin href="/__nuxt_devtools__/client/_nuxt/onig.0c57a370.js">
|
|
9
9
|
<link rel="prefetch" as="script" crossorigin href="/__nuxt_devtools__/client/_nuxt/vitesse-dark.ff0e7dcb.js">
|
|
10
10
|
<link rel="prefetch" as="script" crossorigin href="/__nuxt_devtools__/client/_nuxt/vitesse-light.c6996724.js">
|
|
@@ -18,24 +18,24 @@
|
|
|
18
18
|
<link rel="prefetch" as="script" crossorigin href="/__nuxt_devtools__/client/_nuxt/vue-html.88dda4a8.js">
|
|
19
19
|
<link rel="prefetch" as="script" crossorigin href="/__nuxt_devtools__/client/_nuxt/diff.22e0b108.js">
|
|
20
20
|
<link rel="prefetch" as="script" crossorigin href="/__nuxt_devtools__/client/_nuxt/shellscript.e25d1410.js">
|
|
21
|
-
<link rel="prefetch" as="script" crossorigin href="/__nuxt_devtools__/client/_nuxt/default.
|
|
22
|
-
<link rel="prefetch" as="script" crossorigin href="/__nuxt_devtools__/client/_nuxt/full.
|
|
23
|
-
<link rel="prefetch" as="script" crossorigin href="/__nuxt_devtools__/client/_nuxt/none.
|
|
21
|
+
<link rel="prefetch" as="script" crossorigin href="/__nuxt_devtools__/client/_nuxt/default.b857d80c.js">
|
|
22
|
+
<link rel="prefetch" as="script" crossorigin href="/__nuxt_devtools__/client/_nuxt/full.169e4977.js">
|
|
23
|
+
<link rel="prefetch" as="script" crossorigin href="/__nuxt_devtools__/client/_nuxt/none.cebdb11e.js">
|
|
24
24
|
<link rel="prefetch" as="script" crossorigin href="/__nuxt_devtools__/client/_nuxt/nuxt-docs.100caa70.js">
|
|
25
25
|
<link rel="prefetch" as="style" href="/__nuxt_devtools__/client/_nuxt/NCodeBlock.6994516c.css">
|
|
26
|
-
<link rel="prefetch" as="script" crossorigin href="/__nuxt_devtools__/client/_nuxt/DataSchemaDrawer.
|
|
27
|
-
<link rel="prefetch" as="script" crossorigin href="/__nuxt_devtools__/client/_nuxt/NSelect.vue.
|
|
28
|
-
<link rel="prefetch" as="script" crossorigin href="/__nuxt_devtools__/client/_nuxt/NSwitch.vue.
|
|
29
|
-
<link rel="prefetch" as="script" crossorigin href="/__nuxt_devtools__/client/_nuxt/NDropdown.vue.
|
|
30
|
-
<link rel="prefetch" as="script" crossorigin href="/__nuxt_devtools__/client/_nuxt/NCodeBlock.vue.
|
|
31
|
-
<link rel="prefetch" as="script" crossorigin href="/__nuxt_devtools__/client/_nuxt/client.
|
|
32
|
-
<link rel="prefetch" as="script" crossorigin href="/__nuxt_devtools__/client/_nuxt/NDrawer.vue.
|
|
33
|
-
<link rel="prefetch" as="script" crossorigin href="/__nuxt_devtools__/client/_nuxt/unocss-runtime.
|
|
26
|
+
<link rel="prefetch" as="script" crossorigin href="/__nuxt_devtools__/client/_nuxt/DataSchemaDrawer.ecd92b92.js">
|
|
27
|
+
<link rel="prefetch" as="script" crossorigin href="/__nuxt_devtools__/client/_nuxt/NSelect.vue.9e5ebac9.js">
|
|
28
|
+
<link rel="prefetch" as="script" crossorigin href="/__nuxt_devtools__/client/_nuxt/NSwitch.vue.2e265fe1.js">
|
|
29
|
+
<link rel="prefetch" as="script" crossorigin href="/__nuxt_devtools__/client/_nuxt/NDropdown.vue.54157271.js">
|
|
30
|
+
<link rel="prefetch" as="script" crossorigin href="/__nuxt_devtools__/client/_nuxt/NCodeBlock.vue.7cb5f01d.js">
|
|
31
|
+
<link rel="prefetch" as="script" crossorigin href="/__nuxt_devtools__/client/_nuxt/client.b2473ec3.js">
|
|
32
|
+
<link rel="prefetch" as="script" crossorigin href="/__nuxt_devtools__/client/_nuxt/NDrawer.vue.15b4d748.js">
|
|
33
|
+
<link rel="prefetch" as="script" crossorigin href="/__nuxt_devtools__/client/_nuxt/unocss-runtime.16c4cc56.js">
|
|
34
34
|
<link rel="prefetch" as="style" href="/__nuxt_devtools__/client/_nuxt/error-404.82ac0ec5.css">
|
|
35
|
-
<link rel="prefetch" as="script" crossorigin href="/__nuxt_devtools__/client/_nuxt/error-404.
|
|
35
|
+
<link rel="prefetch" as="script" crossorigin href="/__nuxt_devtools__/client/_nuxt/error-404.6518563d.js">
|
|
36
36
|
<link rel="prefetch" as="style" href="/__nuxt_devtools__/client/_nuxt/error-500.ff959f66.css">
|
|
37
|
-
<link rel="prefetch" as="script" crossorigin href="/__nuxt_devtools__/client/_nuxt/error-500.
|
|
38
|
-
<script type="module" src="/__nuxt_devtools__/client/_nuxt/entry.
|
|
37
|
+
<link rel="prefetch" as="script" crossorigin href="/__nuxt_devtools__/client/_nuxt/error-500.94c551da.js">
|
|
38
|
+
<script type="module" src="/__nuxt_devtools__/client/_nuxt/entry.7cb87d02.js" crossorigin></script><script>"use strict";(()=>{const a=window,e=document.documentElement,m=["dark","light"],c=window.localStorage.getItem("nuxt-color-mode")||"system";let n=c==="system"?f():c;const l=e.getAttribute("data-color-mode-forced");l&&(n=l),i(n),a["__NUXT_COLOR_MODE__"]={preference:c,value:n,getColorScheme:f,addColorScheme:i,removeColorScheme:d};function i(o){const t=""+o+"",s="";e.classList?e.classList.add(t):e.className+=" "+t,s&&e.setAttribute("data-"+s,o)}function d(o){const t=""+o+"",s="";e.classList?e.classList.remove(t):e.className=e.className.replace(new RegExp(t,"g"),""),s&&e.removeAttribute("data-"+s)}function r(o){return a.matchMedia("(prefers-color-scheme"+o+")")}function f(){if(a.matchMedia&&r("").media!=="not all"){for(const o of m)if(r(":"+o).matches)return o}return"light"}})();
|
|
39
39
|
</script></head>
|
|
40
40
|
<body ><div id="__nuxt"></div><script type="application/json" id="__NUXT_DATA__" data-ssr="false">[{"_errors":1,"serverRendered":2,"data":3,"state":4},{},false,{},{}]</script>
|
|
41
41
|
<script>window.__NUXT__={};window.__NUXT__.config={public:{fixture4:"public runtime config from nuxt.config.ts"},app:{baseURL:"/__nuxt_devtools__/client",buildAssetsDir:"/_nuxt/",cdnURL:""}}</script></body>
|
|
@@ -2,9 +2,9 @@
|
|
|
2
2
|
<html >
|
|
3
3
|
<head><meta charset="utf-8">
|
|
4
4
|
<meta name="viewport" content="width=device-width, initial-scale=1">
|
|
5
|
-
<link rel="stylesheet" href="/__nuxt_devtools__/client/_nuxt/entry.
|
|
6
|
-
<link rel="modulepreload" as="script" crossorigin href="/__nuxt_devtools__/client/_nuxt/entry.
|
|
7
|
-
<link rel="prefetch" as="script" crossorigin href="/__nuxt_devtools__/client/_nuxt/index.
|
|
5
|
+
<link rel="stylesheet" href="/__nuxt_devtools__/client/_nuxt/entry.aa8c94e8.css">
|
|
6
|
+
<link rel="modulepreload" as="script" crossorigin href="/__nuxt_devtools__/client/_nuxt/entry.7cb87d02.js">
|
|
7
|
+
<link rel="prefetch" as="script" crossorigin href="/__nuxt_devtools__/client/_nuxt/index.02ce2a44.js">
|
|
8
8
|
<link rel="prefetch" as="script" crossorigin href="/__nuxt_devtools__/client/_nuxt/onig.0c57a370.js">
|
|
9
9
|
<link rel="prefetch" as="script" crossorigin href="/__nuxt_devtools__/client/_nuxt/vitesse-dark.ff0e7dcb.js">
|
|
10
10
|
<link rel="prefetch" as="script" crossorigin href="/__nuxt_devtools__/client/_nuxt/vitesse-light.c6996724.js">
|
|
@@ -18,24 +18,24 @@
|
|
|
18
18
|
<link rel="prefetch" as="script" crossorigin href="/__nuxt_devtools__/client/_nuxt/vue-html.88dda4a8.js">
|
|
19
19
|
<link rel="prefetch" as="script" crossorigin href="/__nuxt_devtools__/client/_nuxt/diff.22e0b108.js">
|
|
20
20
|
<link rel="prefetch" as="script" crossorigin href="/__nuxt_devtools__/client/_nuxt/shellscript.e25d1410.js">
|
|
21
|
-
<link rel="prefetch" as="script" crossorigin href="/__nuxt_devtools__/client/_nuxt/default.
|
|
22
|
-
<link rel="prefetch" as="script" crossorigin href="/__nuxt_devtools__/client/_nuxt/full.
|
|
23
|
-
<link rel="prefetch" as="script" crossorigin href="/__nuxt_devtools__/client/_nuxt/none.
|
|
21
|
+
<link rel="prefetch" as="script" crossorigin href="/__nuxt_devtools__/client/_nuxt/default.b857d80c.js">
|
|
22
|
+
<link rel="prefetch" as="script" crossorigin href="/__nuxt_devtools__/client/_nuxt/full.169e4977.js">
|
|
23
|
+
<link rel="prefetch" as="script" crossorigin href="/__nuxt_devtools__/client/_nuxt/none.cebdb11e.js">
|
|
24
24
|
<link rel="prefetch" as="script" crossorigin href="/__nuxt_devtools__/client/_nuxt/nuxt-docs.100caa70.js">
|
|
25
25
|
<link rel="prefetch" as="style" href="/__nuxt_devtools__/client/_nuxt/NCodeBlock.6994516c.css">
|
|
26
|
-
<link rel="prefetch" as="script" crossorigin href="/__nuxt_devtools__/client/_nuxt/DataSchemaDrawer.
|
|
27
|
-
<link rel="prefetch" as="script" crossorigin href="/__nuxt_devtools__/client/_nuxt/NSelect.vue.
|
|
28
|
-
<link rel="prefetch" as="script" crossorigin href="/__nuxt_devtools__/client/_nuxt/NSwitch.vue.
|
|
29
|
-
<link rel="prefetch" as="script" crossorigin href="/__nuxt_devtools__/client/_nuxt/NDropdown.vue.
|
|
30
|
-
<link rel="prefetch" as="script" crossorigin href="/__nuxt_devtools__/client/_nuxt/NCodeBlock.vue.
|
|
31
|
-
<link rel="prefetch" as="script" crossorigin href="/__nuxt_devtools__/client/_nuxt/client.
|
|
32
|
-
<link rel="prefetch" as="script" crossorigin href="/__nuxt_devtools__/client/_nuxt/NDrawer.vue.
|
|
33
|
-
<link rel="prefetch" as="script" crossorigin href="/__nuxt_devtools__/client/_nuxt/unocss-runtime.
|
|
26
|
+
<link rel="prefetch" as="script" crossorigin href="/__nuxt_devtools__/client/_nuxt/DataSchemaDrawer.ecd92b92.js">
|
|
27
|
+
<link rel="prefetch" as="script" crossorigin href="/__nuxt_devtools__/client/_nuxt/NSelect.vue.9e5ebac9.js">
|
|
28
|
+
<link rel="prefetch" as="script" crossorigin href="/__nuxt_devtools__/client/_nuxt/NSwitch.vue.2e265fe1.js">
|
|
29
|
+
<link rel="prefetch" as="script" crossorigin href="/__nuxt_devtools__/client/_nuxt/NDropdown.vue.54157271.js">
|
|
30
|
+
<link rel="prefetch" as="script" crossorigin href="/__nuxt_devtools__/client/_nuxt/NCodeBlock.vue.7cb5f01d.js">
|
|
31
|
+
<link rel="prefetch" as="script" crossorigin href="/__nuxt_devtools__/client/_nuxt/client.b2473ec3.js">
|
|
32
|
+
<link rel="prefetch" as="script" crossorigin href="/__nuxt_devtools__/client/_nuxt/NDrawer.vue.15b4d748.js">
|
|
33
|
+
<link rel="prefetch" as="script" crossorigin href="/__nuxt_devtools__/client/_nuxt/unocss-runtime.16c4cc56.js">
|
|
34
34
|
<link rel="prefetch" as="style" href="/__nuxt_devtools__/client/_nuxt/error-404.82ac0ec5.css">
|
|
35
|
-
<link rel="prefetch" as="script" crossorigin href="/__nuxt_devtools__/client/_nuxt/error-404.
|
|
35
|
+
<link rel="prefetch" as="script" crossorigin href="/__nuxt_devtools__/client/_nuxt/error-404.6518563d.js">
|
|
36
36
|
<link rel="prefetch" as="style" href="/__nuxt_devtools__/client/_nuxt/error-500.ff959f66.css">
|
|
37
|
-
<link rel="prefetch" as="script" crossorigin href="/__nuxt_devtools__/client/_nuxt/error-500.
|
|
38
|
-
<script type="module" src="/__nuxt_devtools__/client/_nuxt/entry.
|
|
37
|
+
<link rel="prefetch" as="script" crossorigin href="/__nuxt_devtools__/client/_nuxt/error-500.94c551da.js">
|
|
38
|
+
<script type="module" src="/__nuxt_devtools__/client/_nuxt/entry.7cb87d02.js" crossorigin></script><script>"use strict";(()=>{const a=window,e=document.documentElement,m=["dark","light"],c=window.localStorage.getItem("nuxt-color-mode")||"system";let n=c==="system"?f():c;const l=e.getAttribute("data-color-mode-forced");l&&(n=l),i(n),a["__NUXT_COLOR_MODE__"]={preference:c,value:n,getColorScheme:f,addColorScheme:i,removeColorScheme:d};function i(o){const t=""+o+"",s="";e.classList?e.classList.add(t):e.className+=" "+t,s&&e.setAttribute("data-"+s,o)}function d(o){const t=""+o+"",s="";e.classList?e.classList.remove(t):e.className=e.className.replace(new RegExp(t,"g"),""),s&&e.removeAttribute("data-"+s)}function r(o){return a.matchMedia("(prefers-color-scheme"+o+")")}function f(){if(a.matchMedia&&r("").media!=="not all"){for(const o of m)if(r(":"+o).matches)return o}return"light"}})();
|
|
39
39
|
</script></head>
|
|
40
40
|
<body ><div id="__nuxt"></div><script type="application/json" id="__NUXT_DATA__" data-ssr="false">[{"_errors":1,"serverRendered":2,"data":3,"state":4},{},false,{},{}]</script>
|
|
41
41
|
<script>window.__NUXT__={};window.__NUXT__.config={public:{fixture4:"public runtime config from nuxt.config.ts"},app:{baseURL:"/__nuxt_devtools__/client",buildAssetsDir:"/_nuxt/",cdnURL:""}}</script></body>
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import{_ as R}from"./NCodeBlock.vue.
|
|
1
|
+
import{_ as R}from"./NCodeBlock.vue.7cb5f01d.js";import{d as _,a as N,r as F,al as W,bD as A,o as B,h as J,f as V}from"./entry.7cb87d02.js";function m(){}m.prototype={diff:function(e,t){var o=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},f=o.callback;typeof o=="function"&&(f=o,o={}),this.options=o;var r=this;function l(c){return f?(setTimeout(function(){f(void 0,c)},0),!0):c}e=this.castInput(e),t=this.castInput(t),e=this.removeEmpty(this.tokenize(e)),t=this.removeEmpty(this.tokenize(t));var i=t.length,s=e.length,u=1,d=i+s;o.maxEditLength&&(d=Math.min(d,o.maxEditLength));var a=[{newPos:-1,components:[]}],p=this.extractCommon(a[0],t,e,0);if(a[0].newPos+1>=i&&p+1>=s)return l([{value:this.join(t),count:t.length}]);function v(){for(var c=-1*u;c<=u;c+=2){var h=void 0,w=a[c-1],C=a[c+1],g=(C?C.newPos:0)-c;w&&(a[c-1]=void 0);var q=w&&w.newPos+1<i,$=C&&0<=g&&g<s;if(!q&&!$){a[c]=void 0;continue}if(!q||$&&w.newPos<C.newPos?(h=Z(C),r.pushComponent(h.components,void 0,!0)):(h=w,h.newPos++,r.pushComponent(h.components,!0,void 0)),g=r.extractCommon(h,t,e,c),h.newPos+1>=i&&g+1>=s)return l(M(r,h.components,t,e,r.useLongestToken));a[c]=h}u++}if(f)(function c(){setTimeout(function(){if(u>d)return f();v()||c()},0)})();else for(;u<=d;){var y=v();if(y)return y}},pushComponent:function(e,t,o){var f=e[e.length-1];f&&f.added===t&&f.removed===o?e[e.length-1]={count:f.count+1,added:t,removed:o}:e.push({count:1,added:t,removed:o})},extractCommon:function(e,t,o,f){for(var r=t.length,l=o.length,i=e.newPos,s=i-f,u=0;i+1<r&&s+1<l&&this.equals(t[i+1],o[s+1]);)i++,s++,u++;return u&&e.components.push({count:u}),e.newPos=i,s},equals:function(e,t){return this.options.comparator?this.options.comparator(e,t):e===t||this.options.ignoreCase&&e.toLowerCase()===t.toLowerCase()},removeEmpty:function(e){for(var t=[],o=0;o<e.length;o++)e[o]&&t.push(e[o]);return t},castInput:function(e){return e},tokenize:function(e){return e.split("")},join:function(e){return e.join("")}};function M(n,e,t,o,f){for(var r=0,l=e.length,i=0,s=0;r<l;r++){var u=e[r];if(u.removed){if(u.value=n.join(o.slice(s,s+u.count)),s+=u.count,r&&e[r-1].added){var a=e[r-1];e[r-1]=e[r],e[r]=a}}else{if(!u.added&&f){var d=t.slice(i,i+u.count);d=d.map(function(v,y){var c=o[s+y];return c.length>v.length?c:v}),u.value=n.join(d)}else u.value=n.join(t.slice(i,i+u.count));i+=u.count,u.added||(s+=u.count)}}var p=e[l-1];return l>1&&typeof p.value=="string"&&(p.added||p.removed)&&n.equals("",p.value)&&(e[l-2].value+=p.value,e.pop()),e}function Z(n){return{newPos:n.newPos,components:n.components.slice(0)}}var I=/^[A-Za-z\xC0-\u02C6\u02C8-\u02D7\u02DE-\u02FF\u1E00-\u1EFF]+$/,T=/\S/,O=new m;O.equals=function(n,e){return this.options.ignoreCase&&(n=n.toLowerCase(),e=e.toLowerCase()),n===e||this.options.ignoreWhitespace&&!T.test(n)&&!T.test(e)};O.tokenize=function(n){for(var e=n.split(/([^\S\r\n]+|[()[\]{}'"\r\n]|\b)/),t=0;t<e.length-1;t++)!e[t+1]&&e[t+2]&&I.test(e[t])&&I.test(e[t+2])&&(e[t]+=e[t+2],e.splice(t+1,2),t--);return e};var D=new m;D.tokenize=function(n){var e=[],t=n.split(/(\n|\r\n)/);t[t.length-1]||t.pop();for(var o=0;o<t.length;o++){var f=t[o];o%2&&!this.options.newlineIsToken?e[e.length-1]+=f:(this.options.ignoreWhitespace&&(f=f.trim()),e.push(f))}return e};function k(n,e,t){return D.diff(n,e,t)}var G=new m;G.tokenize=function(n){return n.split(/(\S.+?[.!?])(?=\s+|$)/)};var H=new m;H.tokenize=function(n){return n.split(/([{}:;,]|\s+)/)};function z(n){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?z=function(e){return typeof e}:z=function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},z(n)}var Q=Object.prototype.toString,L=new m;L.useLongestToken=!0;L.tokenize=D.tokenize;L.castInput=function(n){var e=this.options,t=e.undefinedReplacement,o=e.stringifyReplacer,f=o===void 0?function(r,l){return typeof l>"u"?t:l}:o;return typeof n=="string"?n:JSON.stringify(E(n,null,null,f),f," ")};L.equals=function(n,e){return m.prototype.equals.call(L,n.replace(/,([\r\n])/g,"$1"),e.replace(/,([\r\n])/g,"$1"))};function E(n,e,t,o,f){e=e||[],t=t||[],o&&(n=o(f,n));var r;for(r=0;r<e.length;r+=1)if(e[r]===n)return t[r];var l;if(Q.call(n)==="[object Array]"){for(e.push(n),l=new Array(n.length),t.push(l),r=0;r<n.length;r+=1)l[r]=E(n[r],e,t,o,f);return e.pop(),t.pop(),l}if(n&&n.toJSON&&(n=n.toJSON()),z(n)==="object"&&n!==null){e.push(n),l={},t.push(l);var i=[],s;for(s in n)n.hasOwnProperty(s)&&i.push(s);for(i.sort(),r=0;r<i.length;r+=1)s=i[r],l[s]=E(n[s],e,t,o,s);e.pop(),t.pop()}else l=n;return l}var x=new m;x.tokenize=function(n){return n.slice()};x.join=x.removeEmpty=function(n){return n};const Y=_({__name:"CodeDiff",props:{from:{},to:{},lang:{}},setup(n){const e=n;function t(i,s){const u=k(i.trim(),s.trim()),d=[],a=[],p=[];for(const v of u){const y=v.value.trimEnd().split(`
|
|
2
2
|
`);for(const c of y)v.added?(d.push(p.length),p.push(c)):(v.removed&&a.push(p.length),p.push(c))}return{added:d,removed:a,result:p.join(`
|
|
3
3
|
`)}}const o=N(()=>t(e.from,e.to));function f(i){let s=0;return i.replace(/class="shiki/,'class="shiki diff').replace(/class="line"/g,u=>(s++,o.value.added.includes(s-1)?'class="line line-added"':o.value.removed.includes(s-1)?'class="line line-removed"':u))}const r=F();W(l);function l(){const i=A(r);i&&i.querySelector(".line-added,.line-removed")?.scrollIntoView()}return(i,s)=>{const u=R;return B(),J(u,{ref_key:"elRef",ref:r,code:V(o).result,lang:i.lang,"transform-rendered":f,onLoaded:l},null,8,["code","lang"])}}});export{Y as _};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{_ as I}from"./NMarkdown.vue.
|
|
1
|
+
import{_ as I}from"./NMarkdown.vue.20899182.js";import{d as V,e as D,a9 as U,a as c,an as $,o as s,h as r,j as i,k as o,p as l,i as j,f as e,v as u,m as _,F as v,t as h,n as E,G as F,_ as S}from"./entry.7cb87d02.js";import{_ as z}from"./FilepathItem.vue.6cdabcd4.js";import{C as k}from"./constants.2cc6e981.js";const G={"hover:text-primary":""},L={key:0,"text-primary":""},M={"max-w-100":""},O={px4:"",py3:"","text-sm":""},T={flex:"~ gap2",n:"primary xs"},W={border:"t base","max-h-60":"","of-auto":"",px4:"",py3:""},q={"text-sm":""},A=o("span",{op50:""},"It has been referenced ",-1),H={"text-primary":""},J=o("span",{op50:""}," times by:",-1),K={flex:"~ col gap-2","items-start":"",pt3:"","text-sm":"",op75:""},P={key:1,"text-sm":"",op50:""},Z=V({__name:"ComposableItem",props:{item:{},metadata:{},filepath:{},counter:{type:Boolean,default:!0},classes:{default:"px2 py1 text-sm bg-gray:5 "}},setup(x){const t=x,b=D(),g=U(),m=c(()=>t.item.as||t.item.name),n=c(()=>t.metadata?.injectionUsage?.[m.value]?.count||0),C=c(()=>(t.metadata?.injectionUsage?.[m.value]?.moduleIds||[]).filter(a=>!a.endsWith("?macro=true"))),y=c(()=>{if(t.item.meta?.docsUrl)return t.item.meta.docsUrl;if(["nuxt","#app","nuxt3"].includes(t.item.from))return k.nuxt[t.item.name];if(t.item.from==="vue")return k.vue[t.item.name]});return(a,p)=>{const w=I,f=S,N=z,B=$("VDropdown");return s(),r(B,{disabled:!t.metadata},{popper:i(()=>[o("div",M,[o("div",O,[a.item.meta?.description?(s(),r(w,{key:0,tag:"div",pb3:"","text-sm":"",markdown:a.item.meta.description},null,8,["markdown"])):l("",!0),o("div",T,[j(f,{icon:"carbon-copy",onClick:p[0]||(p[0]=d=>e(b)(e(m),"imports-name"))},{default:i(()=>[u(" Copy ")]),_:1}),a.filepath?(s(),r(f,{key:0,icon:"carbon-code",onClick:p[1]||(p[1]=d=>a.filepath&&e(g)(a.filepath))},{default:i(()=>[u(" Source ")]),_:1})):l("",!0),e(y)?(s(),r(f,{key:1,icon:"carbon-catalog",to:e(y),target:"_blank"},{default:i(()=>[u(" Docs ")]),_:1},8,["to"])):l("",!0)])]),o("div",W,[e(n)?(s(),_(v,{key:0},[o("div",q,[A,o("strong",H,h(e(n)),1),J]),o("div",K,[(s(!0),_(v,null,E(e(C),d=>(s(),r(N,{key:d,filepath:d},null,8,["filepath"]))),128))])],64)):(s(),_("div",P," Not in use via auto import. "))])])]),default:i(()=>[o("button",G,[o("code",{rounded:"","font-mono":"",class:F([a.metadata&&!e(n)?"op30 hover:op100":"",a.classes])},[u(h(e(m))+" ",1),e(n)&&a.counter?(s(),_("sup",L,"x"+h(e(n)),1)):l("",!0)],2)])]),_:1},8,["disabled"])}}});export{Z as _};
|
package/dist/client/_nuxt/{DataSchemaButton.vue.18fef0d4.js → DataSchemaButton.vue.b4fc42f9.js}
RENAMED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{d as r,u as s,a0 as c,I as i,o as p,h as _,_ as u}from"./entry.
|
|
1
|
+
import{d as r,u as s,a0 as c,I as i,o as p,h as _,_ as u}from"./entry.7cb87d02.js";const f=r({__name:"DataSchemaButton",props:{getter:{type:Function}},setup(l){const t=s();return(n,e)=>{const o=u,a=c("tooltip");return i((p(),_(o,{title:"Generate Data Schema",icon:"carbon:container-services",border:!1,onClick:e[0]||(e[0]=m=>t.value=n.getter())},null,512)),[[a,"Generate Data Schema"]])}}});export{f as _};
|