@nuxt/devtools-nightly 4.0.0-alpha.7-29745040.0d4de4d → 4.0.0-alpha.8-29746352.239ab85
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 +2 -2
- package/dist/chunks/analyze-build.mjs +4 -1
- package/dist/chunks/code-server.mjs +76 -0
- package/dist/chunks/module-main.mjs +268 -190
- package/dist/chunks/vite-inspect.mjs +4 -1
- package/dist/client/200.html +1 -1
- package/dist/client/404.html +1 -1
- package/dist/client/_nuxt/__blank-mr7fdmv7.js +1 -0
- package/dist/client/_nuxt/analyze-build-nemej5kd.js +1 -0
- package/dist/client/_nuxt/assets-cl372mus.js +6 -0
- package/dist/client/_nuxt/{auth-required-panel-b6vs83kj.js → auth-required-panel-gdnspumn.js} +1 -1
- package/dist/client/_nuxt/builds/latest.json +1 -1
- package/dist/client/_nuxt/builds/meta/5b649301-c235-4d04-b88b-03991a6cba68.json +1 -0
- package/dist/client/_nuxt/{client-otdlvsyg.js → client-ngo84kjy.js} +1 -1
- package/dist/client/_nuxt/{code-diff-cwv03hre.js → code-diff-lkyoam09.js} +3 -3
- package/dist/client/_nuxt/code-snippets-hxwvpad4.js +1 -0
- package/dist/client/_nuxt/components-f9ckplr6.js +1 -0
- package/dist/client/_nuxt/composable-item-kchrxdzu.js +1 -0
- package/dist/client/_nuxt/composables-in7qtp0e.js +1 -0
- package/dist/client/_nuxt/custom-_name_-i8pdh231.js +1 -0
- package/dist/client/_nuxt/data-schema-button-jy2w2afg.js +1 -0
- package/dist/client/_nuxt/{data-schema-drawer-jqx0h0q8.js → data-schema-drawer-liuhj385.js} +2 -2
- package/dist/client/_nuxt/debug-inf9k7rz.js +1 -0
- package/dist/client/_nuxt/{default-cpmtsy11.js → default-dgqm22gk.js} +1 -1
- package/dist/client/_nuxt/dist-cwkxp5t4.js +1 -0
- package/dist/client/_nuxt/dist-das2ggjj.js +1 -0
- package/dist/client/_nuxt/dist-hhnji3pn.js +1 -0
- package/dist/client/_nuxt/{duration-display-ihd42kih.js → duration-display-m84jv0cg.js} +1 -1
- package/dist/client/_nuxt/entry.css-ivisc4pv.css +1 -0
- package/dist/client/_nuxt/error-404-eoz73pl9.js +1 -0
- package/dist/client/_nuxt/error-404.css-i7pin5fo.css +1 -0
- package/dist/client/_nuxt/error-500-h0agvsjp.js +1 -0
- package/dist/client/_nuxt/error-500.css-4ikva5xr.css +1 -0
- package/dist/client/_nuxt/error-h5jfp4d9.js +9 -0
- package/dist/client/_nuxt/{filepath-item-c7uegiaa.js → filepath-item-b7ye3und.js} +1 -1
- package/dist/client/_nuxt/full-bc145h1r.js +1 -0
- package/dist/client/_nuxt/{help-fab-jisygb6y.js → help-fab-l6k9jkcj.js} +1 -1
- package/dist/client/_nuxt/hooks-ce5n3mpx.js +1 -0
- package/dist/client/_nuxt/imports-ib3kw7ns.js +1 -0
- package/dist/client/_nuxt/k75m1ljk.js +4 -0
- package/dist/client/_nuxt/launch-page-f3nbtoc4.js +1 -0
- package/dist/client/_nuxt/modules-gf4tkhai.js +1 -0
- package/dist/client/_nuxt/nbadge-254fd0s4.js +1 -0
- package/dist/client/_nuxt/{ncheckbox-cd89m7vw.js → ncheckbox-jr3c6e4e.js} +1 -1
- package/dist/client/_nuxt/ncode-block-jv3jk7c5.js +2 -0
- package/dist/client/_nuxt/{ndrawer-flnxaerl.js → ndrawer-myfvks89.js} +1 -1
- package/dist/client/_nuxt/{ndropdown-fhsar2c4.js → ndropdown-jnrvla1s.js} +1 -1
- package/dist/client/_nuxt/{nicon-title-jhzdz352.js → nicon-title-66kg2f9l.js} +1 -1
- package/dist/client/_nuxt/{nlink-ivp2fbiu.js → nlink-gej31v24.js} +1 -1
- package/dist/client/_nuxt/{nmarkdown-d9s7c1r3.js → nmarkdown-nskcr8pg.js} +1 -1
- package/dist/client/_nuxt/{nnavbar-nzxl9pku.js → nnavbar-bvq6rk5u.js} +1 -1
- package/dist/client/_nuxt/none-fcxnfo1z.js +1 -0
- package/dist/client/_nuxt/{nsection-block-e6henssm.js → nsection-block-illvvuef.js} +1 -1
- package/dist/client/_nuxt/{nselect-fq0i2yeb.js → nselect-hlo7a40m.js} +1 -1
- package/dist/client/_nuxt/nselect-tabs-f47fcdsg.js +1 -0
- package/dist/client/_nuxt/nswitch-iey7gi9t.js +1 -0
- package/dist/client/_nuxt/{ntip-okl09yvw.js → ntip-kpuxzuo5.js} +1 -1
- package/dist/client/_nuxt/nuxt-hqfu72u1.js +2 -0
- package/dist/client/_nuxt/open-graph-dxl6801u.js +3 -0
- package/dist/client/_nuxt/overview-ou5ei2jm.js +1 -0
- package/dist/client/_nuxt/pages-ddqyzugj.js +1 -0
- package/dist/client/_nuxt/pages-n0i7aw4m.js +1 -0
- package/dist/client/_nuxt/payload-d6h8l8l2.js +1 -0
- package/dist/client/_nuxt/pinia-dl2li4zl.js +1 -0
- package/dist/client/_nuxt/plugins-nhvbpqrg.js +1 -0
- package/dist/client/_nuxt/ready-if1s6ugr.js +1 -0
- package/dist/client/_nuxt/render-tree-h0xpx3p4.js +1 -0
- package/dist/client/_nuxt/rpc-jaaujnev.js +1 -0
- package/dist/client/_nuxt/runtime-configs-o91gwu2q.js +1 -0
- package/dist/client/_nuxt/server-route-inputs-ej6h9rh8.js +1 -0
- package/dist/client/_nuxt/server-routes-ocltmxje.js +7 -0
- package/dist/client/_nuxt/server-tasks-hhkstkby.js +1 -0
- package/dist/client/_nuxt/settings-i2ld0c8q.js +1 -0
- package/dist/client/_nuxt/stacktrace-list-epxhdumx.js +1 -0
- package/dist/client/_nuxt/{state-components-j3zfj0i6.js → state-components-eipbhsbn.js} +1 -1
- package/dist/client/_nuxt/{state-editor-crmg0v71.js → state-editor-ogobz58w.js} +1 -1
- package/dist/client/_nuxt/state-modules-egymhwqw.js +1 -0
- package/dist/client/_nuxt/storage-cciny388.js +1 -0
- package/dist/client/_nuxt/{storage-options-iwszwhs9.js → storage-options-g42elkwy.js} +1 -1
- package/dist/client/_nuxt/timeline-oese6i7t.js +31 -0
- package/dist/client/_nuxt/{unocss-runtime-u6rlfeqe.js → unocss-runtime-dh4insrr.js} +1 -1
- package/dist/client/_nuxt/utils-h3uzf8s7.js +2 -0
- package/dist/client/_nuxt/vendor/{json-editor-vue-dqdvn8dy.js → json-editor-vue-c7zwcfg4.js} +94 -94
- package/dist/client/_nuxt/vendor/{unocss-l2fj7cws.js → unocss-maavuy8p.js} +3 -3
- package/dist/client/_nuxt/virtual-files-pd2s0ff2.js +1 -0
- package/dist/client/_nuxt/vue-devtools-bxffe3ae.js +4 -0
- package/dist/client/_nuxt/vue-router-mro49nyg.js +1 -0
- package/dist/client/index.html +1 -1
- package/dist/module.json +1 -1
- package/dist/module.mjs +1 -1
- package/dist/shared/{devtools-nightly.B9TxdMuu.mjs → devtools-nightly.BoMxxBHR.mjs} +2 -5
- package/dist/types.d.mts +1 -5
- package/package.json +22 -26
- package/.discoveryrc.cjs +0 -13
- package/dist/chunks/vscode.mjs +0 -169
- package/dist/client/_nuxt/__blank-53few99l.js +0 -1
- package/dist/client/_nuxt/analyze-build-nklgj891.js +0 -1
- package/dist/client/_nuxt/assets-j7wwjukb.js +0 -6
- package/dist/client/_nuxt/builds/meta/309c144f-101a-4355-a34f-c7a0af0ea0cb.json +0 -1
- package/dist/client/_nuxt/code-snippets-bk0a6341.js +0 -1
- package/dist/client/_nuxt/components-k7bgt9y7.js +0 -1
- package/dist/client/_nuxt/composable-item-gkpcv20r.js +0 -1
- package/dist/client/_nuxt/custom-_name_-hb9h6sd9.js +0 -1
- package/dist/client/_nuxt/data-schema-button-fnc5tqn2.js +0 -1
- package/dist/client/_nuxt/debug-l1jpdmej.js +0 -1
- package/dist/client/_nuxt/dist-l07sxtw0.js +0 -1
- package/dist/client/_nuxt/entry.css-jv3imi7n.css +0 -1
- package/dist/client/_nuxt/error-404-eg2k665w.js +0 -1
- package/dist/client/_nuxt/error-404.css-kt2b6q82.css +0 -1
- package/dist/client/_nuxt/error-500-dhb7gisx.js +0 -1
- package/dist/client/_nuxt/error-500.css-lzv1km1s.css +0 -1
- package/dist/client/_nuxt/error-l6yv7f84.js +0 -9
- package/dist/client/_nuxt/full-o5traho8.js +0 -1
- package/dist/client/_nuxt/hooks-gc6lo3xs.js +0 -1
- package/dist/client/_nuxt/imports-n8wfcu3a.js +0 -1
- package/dist/client/_nuxt/k8et2pmu.js +0 -4
- package/dist/client/_nuxt/launch-page-krlyw5tj.js +0 -1
- package/dist/client/_nuxt/modules-jewm1kew.js +0 -1
- package/dist/client/_nuxt/nbadge-jc4v6ym9.js +0 -1
- package/dist/client/_nuxt/ncode-block-ckqwlxff.js +0 -2
- package/dist/client/_nuxt/none-or9h2zq3.js +0 -1
- package/dist/client/_nuxt/nselect-tabs-nuesabr9.js +0 -1
- package/dist/client/_nuxt/nswitch-bw81lfyl.js +0 -1
- package/dist/client/_nuxt/nuxt-krm6uln9.js +0 -1
- package/dist/client/_nuxt/open-graph-hqi7drlr.js +0 -3
- package/dist/client/_nuxt/overview-lv3oqjic.js +0 -1
- package/dist/client/_nuxt/pages-ctn75119.js +0 -1
- package/dist/client/_nuxt/pages-jtg5j5l6.js +0 -1
- package/dist/client/_nuxt/payload-g1lv364q.js +0 -1
- package/dist/client/_nuxt/pinia-baizjq5x.js +0 -1
- package/dist/client/_nuxt/plugins-j1r4crl5.js +0 -1
- package/dist/client/_nuxt/ready-nen2jn0n.js +0 -1
- package/dist/client/_nuxt/render-tree-jooc4n4t.js +0 -1
- package/dist/client/_nuxt/rpc-ixz4fjux.js +0 -2
- package/dist/client/_nuxt/runtime-configs-my3miyp3.js +0 -1
- package/dist/client/_nuxt/server-discovery-ixbx3g0g.js +0 -1
- package/dist/client/_nuxt/server-route-inputs-jicqwvcj.js +0 -1
- package/dist/client/_nuxt/server-routes-habjzed3.js +0 -7
- package/dist/client/_nuxt/server-tasks-gctwz9sm.js +0 -1
- package/dist/client/_nuxt/settings-enfhlzj8.js +0 -1
- package/dist/client/_nuxt/stacktrace-list-hiixfqgs.js +0 -1
- package/dist/client/_nuxt/state-modules-m22n61s8.js +0 -1
- package/dist/client/_nuxt/storage-xk2w4h0f.js +0 -1
- package/dist/client/_nuxt/timeline-oaqfizxi.js +0 -31
- package/dist/client/_nuxt/utils-cz4yum9q.js +0 -2
- package/dist/client/_nuxt/virtual-files-zxy68gka.js +0 -1
- package/dist/client/_nuxt/vue-devtools-exv5psiz.js +0 -4
- package/dist/client/_nuxt/vue-router-kdlawv8o.js +0 -1
- package/dist/client/discovery/index.html +0 -611
package/README.md
CHANGED
|
@@ -150,8 +150,8 @@ export default defineNuxtConfig({
|
|
|
150
150
|
devtools: {
|
|
151
151
|
// Enable devtools (default: true)
|
|
152
152
|
enabled: true,
|
|
153
|
-
//
|
|
154
|
-
|
|
153
|
+
// Coder code-server options (enabled by default)
|
|
154
|
+
codeServer: {},
|
|
155
155
|
// ...other options
|
|
156
156
|
}
|
|
157
157
|
})
|
|
@@ -9,10 +9,12 @@ import 'node:os';
|
|
|
9
9
|
import 'consola/utils';
|
|
10
10
|
import 'sirv';
|
|
11
11
|
import 'vite';
|
|
12
|
-
import '../shared/devtools-nightly.
|
|
12
|
+
import '../shared/devtools-nightly.BoMxxBHR.mjs';
|
|
13
13
|
import '../dirs.mjs';
|
|
14
14
|
import 'node:path';
|
|
15
15
|
import 'node:url';
|
|
16
|
+
import '@devframes/plugin-data-inspector';
|
|
17
|
+
import '@vitejs/devtools-kit/node';
|
|
16
18
|
import 'tinyexec';
|
|
17
19
|
import 'tinyglobby';
|
|
18
20
|
import 'image-meta';
|
|
@@ -30,6 +32,7 @@ import 'local-pkg';
|
|
|
30
32
|
import 'magicast';
|
|
31
33
|
import 'magicast/helpers';
|
|
32
34
|
import 'verkit';
|
|
35
|
+
import '@vitejs/devtools-kit/constants';
|
|
33
36
|
import 'unstorage';
|
|
34
37
|
|
|
35
38
|
async function getFolderSize(dir) {
|
|
@@ -0,0 +1,76 @@
|
|
|
1
|
+
import { createCodeServerDevframe } from '@devframes/plugin-code-server';
|
|
2
|
+
import { setupCodeServer } from '@devframes/plugin-code-server/node';
|
|
3
|
+
import { deprecate, onDevtoolsReady, NUXT_DEVTOOLS_GROUP_ID } from '@nuxt/devtools-kit';
|
|
4
|
+
import { mountDevframe } from '@vitejs/devtools-kit/node';
|
|
5
|
+
|
|
6
|
+
const RESERVED_ARGS = ["--auth", "--bind-addr", "--cookie-suffix"];
|
|
7
|
+
const RESERVED_ENV = ["PASSWORD", "HASHED_PASSWORD"];
|
|
8
|
+
function matchesOption(arg, option) {
|
|
9
|
+
return arg === option || arg.startsWith(`${option}=`);
|
|
10
|
+
}
|
|
11
|
+
function resolveCodeServerOptions(options, rootDir) {
|
|
12
|
+
const args = options?.args;
|
|
13
|
+
const reservedArg = args?.find((arg) => RESERVED_ARGS.some((option) => matchesOption(arg, option)));
|
|
14
|
+
if (reservedArg) {
|
|
15
|
+
throw new Error(
|
|
16
|
+
`[Nuxt DevTools] codeServer.args cannot override ${reservedArg.split("=")[0]}. Configure host and cookieSuffix through their dedicated codeServer options; authentication is managed automatically.`
|
|
17
|
+
);
|
|
18
|
+
}
|
|
19
|
+
const env = options?.env;
|
|
20
|
+
const reservedEnv = RESERVED_ENV.find((key) => Object.hasOwn(env ?? {}, key));
|
|
21
|
+
if (reservedEnv) {
|
|
22
|
+
throw new Error(
|
|
23
|
+
`[Nuxt DevTools] codeServer.env cannot set ${reservedEnv}. Code Server authentication credentials are generated and managed automatically.`
|
|
24
|
+
);
|
|
25
|
+
}
|
|
26
|
+
return {
|
|
27
|
+
// The 0.7 plugin also knows about Microsoft's serve-web and tunnels. Nuxt
|
|
28
|
+
// intentionally exposes only Coder code-server for this integration.
|
|
29
|
+
backend: "code-server",
|
|
30
|
+
bin: options?.bin,
|
|
31
|
+
cwd: options?.cwd ?? rootDir,
|
|
32
|
+
serverPort: options?.serverPort,
|
|
33
|
+
host: options?.host,
|
|
34
|
+
args,
|
|
35
|
+
env,
|
|
36
|
+
cookieSuffix: options?.cookieSuffix,
|
|
37
|
+
startTimeout: options?.startTimeout
|
|
38
|
+
};
|
|
39
|
+
}
|
|
40
|
+
function setup(ctx) {
|
|
41
|
+
const { nuxt, options } = ctx;
|
|
42
|
+
if (options.vscode !== void 0) {
|
|
43
|
+
deprecate(nuxt, "NDT_DEP_0008", {
|
|
44
|
+
api: "devtools.vscode",
|
|
45
|
+
replacement: "devtools.codeServer"
|
|
46
|
+
});
|
|
47
|
+
}
|
|
48
|
+
if (options.codeServer?.enabled === false)
|
|
49
|
+
return;
|
|
50
|
+
const codeServerOptions = resolveCodeServerOptions(options.codeServer, nuxt.options.rootDir);
|
|
51
|
+
const definition = createCodeServerDevframe(codeServerOptions);
|
|
52
|
+
let supervisor;
|
|
53
|
+
let setupPromise;
|
|
54
|
+
const mountedDefinition = {
|
|
55
|
+
...definition,
|
|
56
|
+
async setup(devframeCtx) {
|
|
57
|
+
setupPromise = setupCodeServer(devframeCtx, codeServerOptions);
|
|
58
|
+
supervisor = await setupPromise;
|
|
59
|
+
}
|
|
60
|
+
};
|
|
61
|
+
nuxt.hook("close", async () => {
|
|
62
|
+
await setupPromise;
|
|
63
|
+
supervisor?.dispose();
|
|
64
|
+
});
|
|
65
|
+
onDevtoolsReady((kit) => {
|
|
66
|
+
return mountDevframe(kit, mountedDefinition, {
|
|
67
|
+
dock: {
|
|
68
|
+
groupId: NUXT_DEVTOOLS_GROUP_ID,
|
|
69
|
+
category: "framework",
|
|
70
|
+
defaultOrder: -200
|
|
71
|
+
}
|
|
72
|
+
});
|
|
73
|
+
}, nuxt);
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
export { resolveCodeServerOptions, setup };
|