@nuxt/devtools 2.6.3 → 2.6.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/chunks/module-main.mjs +26 -14
- package/dist/client/200.html +23 -22
- package/dist/client/404.html +23 -22
- package/dist/client/_nuxt/__blank-oybwb9u0.js +1 -0
- package/dist/client/_nuxt/analyze-build-exflnuwi.js +1 -0
- package/dist/client/_nuxt/{assets-fwzpm7nx.js → assets-jmd1acsq.js} +1 -1
- package/dist/client/_nuxt/builds/latest.json +1 -1
- package/dist/client/_nuxt/builds/meta/50d38183-21be-4c6a-b93c-9aad9dacb71b.json +1 -0
- package/dist/client/_nuxt/ch41giyg.js +15 -0
- package/dist/client/_nuxt/{client-hkqvtzyx.js → client-kvgyopwa.js} +1 -1
- package/dist/client/_nuxt/code-diff.vue-bq8bth0l.js +8 -0
- package/dist/client/_nuxt/code-snippets.vue-i2momvvn.js +1 -0
- package/dist/client/_nuxt/components-hke3x7rv.js +1 -0
- package/dist/client/_nuxt/composable-item.vue-bd0qe28q.js +1 -0
- package/dist/client/_nuxt/custom-_name_-vk6sxnjq.js +1 -0
- package/dist/client/_nuxt/data-schema-button.vue-hwc5uuo4.js +1 -0
- package/dist/client/_nuxt/{data-schema-drawer-c7c346do.js → data-schema-drawer-l8t0dpro.js} +1 -1
- package/dist/client/_nuxt/debug-kzd6td4c.js +1 -0
- package/dist/client/_nuxt/default-hdlt6j4k.js +1 -0
- package/dist/client/_nuxt/{duration-display.vue-l0zz5iex.js → duration-display.vue-juecltgn.js} +1 -1
- package/dist/client/_nuxt/entry.css-bgro2w4m.css +1 -0
- package/dist/client/_nuxt/error-404-i1es9hcq.js +1 -0
- package/dist/client/_nuxt/error-404.css-nxlugf5l.css +1 -0
- package/dist/client/_nuxt/error-500-du8psod2.js +1 -0
- package/dist/client/_nuxt/error-500.css-bcokcrit.css +1 -0
- package/dist/client/_nuxt/{error-mb5ek223.js → error-ghvu2n3h.js} +1 -1
- package/dist/client/_nuxt/filepath-item.vue-e693vfym.js +1 -0
- package/dist/client/_nuxt/full-duvrk1v3.js +1 -0
- package/dist/client/_nuxt/help-fab.vue-le7iybnb.js +1 -0
- package/dist/client/_nuxt/hooks-jnw6sgbe.js +1 -0
- package/dist/client/_nuxt/imports-n9gtts3r.js +1 -0
- package/dist/client/_nuxt/index-ltaw282l.js +1 -0
- package/dist/client/_nuxt/launch-page.vue-mubr1qiq.js +1 -0
- package/dist/client/_nuxt/modules-oshl858b.js +1 -0
- package/dist/client/_nuxt/nbadge-hbh0pw7g.js +1 -0
- package/dist/client/_nuxt/ncheckbox.vue-cowm3nmm.js +1 -0
- package/dist/client/_nuxt/{ncode-block.vue-j1bpwykw.js → ncode-block.vue-nph7f5ph.js} +1 -1
- package/dist/client/_nuxt/ndrawer.vue-bscihm5p.js +1 -0
- package/dist/client/_nuxt/ndropdown.vue-mt2skirs.js +1 -0
- package/dist/client/_nuxt/{nicon-title.vue-mr03t3pg.js → nicon-title.vue-l5va2e26.js} +1 -1
- package/dist/client/_nuxt/nlink.vue-gjku6j2r.js +1 -0
- package/dist/client/_nuxt/{nmarkdown.vue-n5lhcplj.js → nmarkdown.vue-ho3nn7tc.js} +1 -1
- package/dist/client/_nuxt/nnavbar.vue-fe2vbqhk.js +1 -0
- package/dist/client/_nuxt/none-b6qt2l9k.js +1 -0
- package/dist/client/_nuxt/nsection-block-b1meb1ma.js +1 -0
- package/dist/client/_nuxt/nselect-tabs.vue-hb4dua1x.js +1 -0
- package/dist/client/_nuxt/nselect.vue-j457efs9.js +1 -0
- package/dist/client/_nuxt/{nswitch.vue-ihk2zmam.js → nswitch.vue-m7rzt1v6.js} +1 -1
- package/dist/client/_nuxt/{open-graph-jnsmvgeb.js → open-graph-h1bmv712.js} +1 -1
- package/dist/client/_nuxt/overview-igkkj0w7.js +1 -0
- package/dist/client/_nuxt/pages-egvz386w.js +1 -0
- package/dist/client/_nuxt/payload-be770vb8.js +1 -0
- package/dist/client/_nuxt/pinia-brl9kc3p.js +1 -0
- package/dist/client/_nuxt/plugins-bgfzay6d.js +1 -0
- package/dist/client/_nuxt/render-tree-npycwzn4.js +1 -0
- package/dist/client/_nuxt/runtime-configs-fbrk7nq8.js +1 -0
- package/dist/client/_nuxt/server-discovery-iq9d1ccu.js +1 -0
- package/dist/client/_nuxt/server-route-inputs.vue-m4ax1l4d.js +1 -0
- package/dist/client/_nuxt/server-routes-koaspj0k.js +9 -0
- package/dist/client/_nuxt/server-tasks-2v7pcdmy.js +1 -0
- package/dist/client/_nuxt/settings-ob6p57bq.js +1 -0
- package/dist/client/_nuxt/stacktrace-list.vue-nfhbrir6.js +1 -0
- package/dist/client/_nuxt/state-components-i9ev6w42.js +1 -0
- package/dist/client/_nuxt/state-editor.vue-byiz4hoi.js +1 -0
- package/dist/client/_nuxt/state-modules-c2rs6wdq.js +1 -0
- package/dist/client/_nuxt/storage-fgzv4lrj.js +1 -0
- package/dist/client/_nuxt/terminals-fj33nfal.js +1 -0
- package/dist/client/_nuxt/timeline-f04w3haj.js +31 -0
- package/dist/client/_nuxt/{unocss-runtime-g9jktwmb.js → unocss-runtime-natbzd10.js} +1 -1
- package/dist/client/_nuxt/vendor/json-editor-vue-gd4lkf0o.js +3902 -0
- package/dist/client/_nuxt/vendor/{quicktype-core-o057hwfl.js → quicktype-core-jxekulwx.js} +1 -1
- package/dist/client/_nuxt/vendor/unocss-n80di6md.js +3 -0
- package/dist/client/_nuxt/vendor/vis-bs03k74b.js +84 -0
- package/dist/client/_nuxt/virtual-files-lrvn9h52.js +1 -0
- package/dist/client/_nuxt/vue-devtools-m76pi1vn.js +2 -0
- package/dist/client/_nuxt/{vue-virtual-scroller.esm-kqx3l34g.js → vue-virtual-scroller.esm-oaume2n6.js} +1 -1
- package/dist/client/index.html +23 -22
- package/dist/module.json +1 -1
- package/dist/runtime/auth/index.html +3 -3
- package/package.json +30 -30
- package/dist/client/_nuxt/__blank-h7gh4972.js +0 -1
- package/dist/client/_nuxt/analyze-build-gq32zfqj.js +0 -1
- package/dist/client/_nuxt/builds/meta/4d84ec87-f2c3-4b83-8664-cdcbe5c3aa91.json +0 -1
- package/dist/client/_nuxt/code-diff.vue-f9zhruxh.js +0 -8
- package/dist/client/_nuxt/code-snippets.vue-kmkapmuj.js +0 -1
- package/dist/client/_nuxt/components-lq40ymve.js +0 -1
- package/dist/client/_nuxt/composable-item.vue-jogp9uix.js +0 -1
- package/dist/client/_nuxt/custom-_name_-f34l2gap.js +0 -1
- package/dist/client/_nuxt/data-schema-button.vue-cgqdfu43.js +0 -1
- package/dist/client/_nuxt/debug-h5630t9o.js +0 -1
- package/dist/client/_nuxt/default-er15ytcq.js +0 -1
- package/dist/client/_nuxt/e1928lvz.js +0 -15
- package/dist/client/_nuxt/entry.css-ebiz9nsw.css +0 -1
- package/dist/client/_nuxt/error-404-eq7j2f69.js +0 -1
- package/dist/client/_nuxt/error-404.css-z2gtwy9t.css +0 -1
- package/dist/client/_nuxt/error-500-g4f9ioxi.js +0 -1
- package/dist/client/_nuxt/error-500.css-liy0brxy.css +0 -1
- package/dist/client/_nuxt/filepath-item.vue-kxrtauqr.js +0 -1
- package/dist/client/_nuxt/full-eq6zlj3s.js +0 -1
- package/dist/client/_nuxt/help-fab.vue-kdw4qv3n.js +0 -1
- package/dist/client/_nuxt/hooks-kg9ne2fi.js +0 -1
- package/dist/client/_nuxt/imports-ovzwli5n.js +0 -1
- package/dist/client/_nuxt/index-lp7uaru1.js +0 -1
- package/dist/client/_nuxt/launch-page.vue-e2fz4zcd.js +0 -1
- package/dist/client/_nuxt/modules-6pffkx9j.js +0 -1
- package/dist/client/_nuxt/nbadge-oryc1shd.js +0 -1
- package/dist/client/_nuxt/ncheckbox.vue-ktgiyht2.js +0 -1
- package/dist/client/_nuxt/ndrawer.vue-mt6mb0ol.js +0 -1
- package/dist/client/_nuxt/ndropdown.vue-lqitnb0r.js +0 -1
- package/dist/client/_nuxt/nlink.vue-0imskaxm.js +0 -1
- package/dist/client/_nuxt/nnavbar.vue-bxefhipc.js +0 -1
- package/dist/client/_nuxt/none-giyl4tlf.js +0 -1
- package/dist/client/_nuxt/nsection-block-i439i28t.js +0 -1
- package/dist/client/_nuxt/nselect-tabs.vue-nt980ye0.js +0 -1
- package/dist/client/_nuxt/nselect.vue-h7dqrznf.js +0 -1
- package/dist/client/_nuxt/overview-g5zkzp0f.js +0 -1
- package/dist/client/_nuxt/pages-nwsw6ze1.js +0 -1
- package/dist/client/_nuxt/payload-ighptlsv.js +0 -1
- package/dist/client/_nuxt/pinia-l1dh0fju.js +0 -1
- package/dist/client/_nuxt/plugins-obqyfkt1.js +0 -1
- package/dist/client/_nuxt/render-tree-er1eiqzu.js +0 -1
- package/dist/client/_nuxt/runtime-configs-d7k4bkrd.js +0 -1
- package/dist/client/_nuxt/server-discovery-oj0jqj0l.js +0 -1
- package/dist/client/_nuxt/server-route-inputs.vue-gdluyobn.js +0 -1
- package/dist/client/_nuxt/server-routes-i112gca3.js +0 -9
- package/dist/client/_nuxt/server-tasks-k1t7k6gy.js +0 -1
- package/dist/client/_nuxt/settings-dtmgkchg.js +0 -1
- package/dist/client/_nuxt/stacktrace-list.vue-hpi8ade8.js +0 -1
- package/dist/client/_nuxt/state-components-b144ao2u.js +0 -1
- package/dist/client/_nuxt/state-editor.vue-nqaru57v.js +0 -1
- package/dist/client/_nuxt/state-modules-f3x35nbf.js +0 -1
- package/dist/client/_nuxt/storage-dbzd2l6w.js +0 -1
- package/dist/client/_nuxt/terminals-inqu8q8z.js +0 -1
- package/dist/client/_nuxt/timeline-i5b4nf9n.js +0 -31
- package/dist/client/_nuxt/vendor/json-editor-vue-nstwj98r.js +0 -3857
- package/dist/client/_nuxt/vendor/unocss-eh8khx5b.js +0 -3
- package/dist/client/_nuxt/vendor/vis-je6lvt05.js +0 -132
- package/dist/client/_nuxt/virtual-files-l3u2jl70.js +0 -1
- package/dist/client/_nuxt/vue-devtools-b4i2wj6b.js +0 -2
|
@@ -33,7 +33,7 @@ import { getDefaultExportOptions, addNuxtModule } from 'magicast/helpers';
|
|
|
33
33
|
import { detectPackageManager } from 'nypm';
|
|
34
34
|
import semver from 'semver';
|
|
35
35
|
|
|
36
|
-
const version$1 = "2.6.
|
|
36
|
+
const version$1 = "2.6.5";
|
|
37
37
|
|
|
38
38
|
const urlAlphabet = "useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict";
|
|
39
39
|
function randomStr(size = 16, dict = urlAlphabet) {
|
|
@@ -126,7 +126,7 @@ function setupAnalyzeBuildRPC({ nuxt, refresh, ensureDevAuthToken }) {
|
|
|
126
126
|
const devtoolsAnalyzeDir = join(nuxt.options.rootDir, "node_modules/.cache/nuxt-devtools/analyze");
|
|
127
127
|
async function startAnalyzeBuild(name) {
|
|
128
128
|
if (promise)
|
|
129
|
-
throw new Error("
|
|
129
|
+
throw new Error("[Nuxt DevTools] A building process is already running");
|
|
130
130
|
const result = startSubprocess({
|
|
131
131
|
command: "npx",
|
|
132
132
|
args: ["nuxi", "analyze", "--no-serve", "--name", name],
|
|
@@ -260,6 +260,8 @@ function setupAssetsRPC({ nuxt, ensureDevAuthToken, refresh, options }) {
|
|
|
260
260
|
for (const { layerDir, files } of dirs) {
|
|
261
261
|
for (const path of files) {
|
|
262
262
|
const filePath = resolve(layerDir, path);
|
|
263
|
+
if (!filePath.startsWith(layerDir))
|
|
264
|
+
continue;
|
|
263
265
|
const stat = await fsp.lstat(filePath);
|
|
264
266
|
const fullPath = join(baseURL, path);
|
|
265
267
|
if (!uniquePaths.has(fullPath)) {
|
|
@@ -312,10 +314,12 @@ function setupAssetsRPC({ nuxt, ensureDevAuthToken, refresh, options }) {
|
|
|
312
314
|
return await Promise.all(
|
|
313
315
|
files.map(async ({ path, content, encoding, override }) => {
|
|
314
316
|
let finalPath = resolve(baseDir, path);
|
|
317
|
+
if (!finalPath.startsWith(baseDir))
|
|
318
|
+
throw new Error(`[Nuxt DevTools] File ${path} is not allowed to upload, it's outside of the public directory`);
|
|
315
319
|
const { ext } = parse(finalPath);
|
|
316
320
|
if (extensions !== "*") {
|
|
317
321
|
if (!extensions.includes(ext.toLowerCase().slice(1)))
|
|
318
|
-
throw new Error(`File extension ${ext} is not allowed to upload, allowed extensions are: ${extensions.join(", ")}
|
|
322
|
+
throw new Error(`[Nuxt DevTools] File extension ${ext} is not allowed to upload, allowed extensions are: ${extensions.join(", ")}
|
|
319
323
|
You can configure it in Nuxt config at \`devtools.assets.uploadExtensions\`.`);
|
|
320
324
|
}
|
|
321
325
|
if (!override) {
|
|
@@ -344,7 +348,7 @@ You can configure it in Nuxt config at \`devtools.assets.uploadExtensions\`.`);
|
|
|
344
348
|
await ensureDevAuthToken(token);
|
|
345
349
|
const exist = cache?.find((asset) => asset.filePath === newPath);
|
|
346
350
|
if (exist)
|
|
347
|
-
throw new Error(`File ${newPath} already exists`);
|
|
351
|
+
throw new Error(`[Nuxt DevTools] File ${newPath} already exists, failed to rename`);
|
|
348
352
|
return await fsp.rename(oldPath, newPath);
|
|
349
353
|
}
|
|
350
354
|
};
|
|
@@ -8829,7 +8833,7 @@ function normalizeid(id) {
|
|
|
8829
8833
|
if (typeof id !== "string") {
|
|
8830
8834
|
id = id.toString();
|
|
8831
8835
|
}
|
|
8832
|
-
if (/(node|data|http|https|file):/.test(id)) {
|
|
8836
|
+
if (/(?:node|data|http|https|file):/.test(id)) {
|
|
8833
8837
|
return id;
|
|
8834
8838
|
}
|
|
8835
8839
|
if (BUILTIN_MODULES.has(id)) {
|
|
@@ -8867,7 +8871,7 @@ function _resolve(id, options = {}) {
|
|
|
8867
8871
|
throw new TypeError("input must be a `string` or `URL`");
|
|
8868
8872
|
}
|
|
8869
8873
|
}
|
|
8870
|
-
if (/(node|data|http|https):/.test(id)) {
|
|
8874
|
+
if (/(?:node|data|http|https):/.test(id)) {
|
|
8871
8875
|
return id;
|
|
8872
8876
|
}
|
|
8873
8877
|
if (BUILTIN_MODULES.has(id)) {
|
|
@@ -8952,17 +8956,21 @@ function resolvePath(id, options) {
|
|
|
8952
8956
|
return Promise.reject(error);
|
|
8953
8957
|
}
|
|
8954
8958
|
}
|
|
8955
|
-
const EXPORT_DECAL_RE = /\bexport\s+(?<declaration>(async function\s*\*?|function\s*\*?|let|const enum|const|enum|var|class))\s+\*?(?<name>[\w$]+)(?<extraNames>.*,\s*[\s\w:[\]{}]*[\w$\]}]+)*/g;
|
|
8956
|
-
const EXPORT_NAMED_RE = /\bexport\s*{(?<exports>[^}]+?)[\s,]*}(
|
|
8957
|
-
const EXPORT_NAMED_DESTRUCT = /\bexport\s+(let|var|const)\s+(?:{(?<exports1>[^}]+?)[\s,]*}|\[(?<exports2>[^\]]+?)[\s,]*])\s+=/gm;
|
|
8958
|
-
const EXPORT_STAR_RE = /\bexport\s
|
|
8959
|
+
const EXPORT_DECAL_RE = /\bexport\s+(?<declaration>(?:async function\s*\*?|function\s*\*?|let|const enum|const|enum|var|class))\s+\*?(?<name>[\w$]+)(?<extraNames>.*,\s*[\s\w:[\]{}]*[\w$\]}]+)*/g;
|
|
8960
|
+
const EXPORT_NAMED_RE = /\bexport\s*{(?<exports>[^}]+?)[\s,]*}(?:\s*from\s*["']\s*(?<specifier>(?<="\s*)[^"]*[^\s"](?=\s*")|(?<='\s*)[^']*[^\s'](?=\s*'))\s*["'][^\n;]*)?/g;
|
|
8961
|
+
const EXPORT_NAMED_DESTRUCT = /\bexport\s+(?:let|var|const)\s+(?:{(?<exports1>[^}]+?)[\s,]*}|\[(?<exports2>[^\]]+?)[\s,]*])\s+=/gm;
|
|
8962
|
+
const EXPORT_STAR_RE = /\bexport\s*\*(?:\s*as\s+(?<name>[\w$]+)\s+)?\s*(?:\s*from\s*["']\s*(?<specifier>(?<="\s*)[^"]*[^\s"](?=\s*")|(?<='\s*)[^']*[^\s'](?=\s*'))\s*["'][^\n;]*)?/g;
|
|
8959
8963
|
const EXPORT_DEFAULT_RE = /\bexport\s+default\s+(async function|function|class|true|false|\W|\d)|\bexport\s+default\s+(?<defaultName>.*)/g;
|
|
8964
|
+
const EXPORT_DEFAULT_CLASS_RE = /\bexport\s+default\s+(?<declaration>class)\s+(?<name>[\w$]+)/g;
|
|
8960
8965
|
const TYPE_RE = /^\s*?type\s/;
|
|
8961
8966
|
function findExports(code) {
|
|
8962
8967
|
const declaredExports = matchAll(EXPORT_DECAL_RE, code, {
|
|
8963
8968
|
type: "declaration"
|
|
8964
8969
|
});
|
|
8965
8970
|
for (const declaredExport of declaredExports) {
|
|
8971
|
+
if (/^export\s+(?:async\s+)?function/.test(declaredExport.code)) {
|
|
8972
|
+
continue;
|
|
8973
|
+
}
|
|
8966
8974
|
const extraNamesStr = declaredExport.extraNames;
|
|
8967
8975
|
if (extraNamesStr) {
|
|
8968
8976
|
const extraNames = matchAll(
|
|
@@ -8994,6 +9002,9 @@ function findExports(code) {
|
|
|
8994
9002
|
type: "default",
|
|
8995
9003
|
name: "default"
|
|
8996
9004
|
});
|
|
9005
|
+
const defaultClassExports = matchAll(EXPORT_DEFAULT_CLASS_RE, code, {
|
|
9006
|
+
type: "declaration"
|
|
9007
|
+
});
|
|
8997
9008
|
const starExports = matchAll(EXPORT_STAR_RE, code, {
|
|
8998
9009
|
type: "star"
|
|
8999
9010
|
});
|
|
@@ -9002,6 +9013,7 @@ function findExports(code) {
|
|
|
9002
9013
|
...namedExports,
|
|
9003
9014
|
...destructuredExports,
|
|
9004
9015
|
...defaultExport,
|
|
9016
|
+
...defaultClassExports,
|
|
9005
9017
|
...starExports
|
|
9006
9018
|
]);
|
|
9007
9019
|
if (exports.length === 0) {
|
|
@@ -10781,7 +10793,7 @@ async function magicastGuard(fn, message = "") {
|
|
|
10781
10793
|
generated = await fn();
|
|
10782
10794
|
} catch (e) {
|
|
10783
10795
|
logger.error(e);
|
|
10784
|
-
throw new Error(`Magicast failed to modify Nuxt config automatically. Maybe the config are composed too dynamically that we failed to statically analyze it. ${message}`);
|
|
10796
|
+
throw new Error(`[Nuxt DevTools] Magicast failed to modify Nuxt config automatically. Maybe the config are composed too dynamically that we failed to statically analyze it. ${message}`);
|
|
10785
10797
|
}
|
|
10786
10798
|
return generated;
|
|
10787
10799
|
}
|
|
@@ -10883,7 +10895,7 @@ function setupNpmRPC({ nuxt, ensureDevAuthToken }) {
|
|
|
10883
10895
|
const code = result.exitCode;
|
|
10884
10896
|
if (code !== 0) {
|
|
10885
10897
|
console.error(result.stderr);
|
|
10886
|
-
throw new Error(`Failed to install module, process exited with ${code}`);
|
|
10898
|
+
throw new Error(`[Nuxt DevTools] Failed to install module, process exited with ${code}`);
|
|
10887
10899
|
}
|
|
10888
10900
|
if (installSet.size === 0) {
|
|
10889
10901
|
latestGenerated = null;
|
|
@@ -10931,7 +10943,7 @@ function setupNpmRPC({ nuxt, ensureDevAuthToken }) {
|
|
|
10931
10943
|
const code = result.exitCode;
|
|
10932
10944
|
if (code !== 0) {
|
|
10933
10945
|
console.error(result.stderr);
|
|
10934
|
-
throw new Error(`Failed to uninstall module
|
|
10946
|
+
throw new Error(`[Nuxt DevTools] Failed to uninstall module, process exited with ${code}`);
|
|
10935
10947
|
}
|
|
10936
10948
|
await fsp.writeFile(filepath, generated, "utf-8");
|
|
10937
10949
|
}
|
|
@@ -11420,7 +11432,7 @@ function setupRPC(nuxt, options) {
|
|
|
11420
11432
|
if (options.disableAuthorization)
|
|
11421
11433
|
return;
|
|
11422
11434
|
if (token !== await getDevAuthToken())
|
|
11423
|
-
throw new Error("Invalid dev auth token.");
|
|
11435
|
+
throw new Error("[Nuxt DevTools] Invalid dev auth token.");
|
|
11424
11436
|
}
|
|
11425
11437
|
};
|
|
11426
11438
|
nuxt.devtools = ctx;
|
package/dist/client/200.html
CHANGED
|
@@ -1,29 +1,30 @@
|
|
|
1
1
|
<!DOCTYPE html><html><head><meta charset="utf-8">
|
|
2
2
|
<meta name="viewport" content="width=device-width, initial-scale=1">
|
|
3
|
-
<
|
|
3
|
+
<script type="importmap">{"imports":{"#entry":"/__NUXT_DEVTOOLS_BASE__/_nuxt/ch41giyg.js"}}</script>
|
|
4
|
+
<link rel="stylesheet" href="/__NUXT_DEVTOOLS_BASE__/_nuxt/entry.css-bgro2w4m.css" crossorigin>
|
|
4
5
|
<link rel="stylesheet" href="/__NUXT_DEVTOOLS_BASE__/_nuxt/vendor/json-editor-vue.css-mqq5uooj.css" crossorigin>
|
|
5
6
|
<link rel="stylesheet" href="/__NUXT_DEVTOOLS_BASE__/_nuxt/vendor/unocss.css-mhvipxpl.css" crossorigin>
|
|
6
|
-
<link rel="modulepreload" as="script" crossorigin href="/__NUXT_DEVTOOLS_BASE__/_nuxt/
|
|
7
|
-
<link rel="modulepreload" as="script" crossorigin href="/__NUXT_DEVTOOLS_BASE__/_nuxt/vendor/json-editor-vue-
|
|
7
|
+
<link rel="modulepreload" as="script" crossorigin href="/__NUXT_DEVTOOLS_BASE__/_nuxt/ch41giyg.js">
|
|
8
|
+
<link rel="modulepreload" as="script" crossorigin href="/__NUXT_DEVTOOLS_BASE__/_nuxt/vendor/json-editor-vue-gd4lkf0o.js">
|
|
8
9
|
<link rel="modulepreload" as="script" crossorigin href="/__NUXT_DEVTOOLS_BASE__/_nuxt/vendor/shiki-jxvjmls6.js">
|
|
9
|
-
<link rel="modulepreload" as="script" crossorigin href="/__NUXT_DEVTOOLS_BASE__/_nuxt/vendor/unocss-
|
|
10
|
+
<link rel="modulepreload" as="script" crossorigin href="/__NUXT_DEVTOOLS_BASE__/_nuxt/vendor/unocss-n80di6md.js">
|
|
10
11
|
<link rel="prefetch" as="script" crossorigin href="/__NUXT_DEVTOOLS_BASE__/_nuxt/vendor/markdown-it-fvu08dbs.js">
|
|
11
|
-
<link rel="prefetch" as="script" crossorigin href="/__NUXT_DEVTOOLS_BASE__/_nuxt/default-
|
|
12
|
-
<link rel="prefetch" as="script" crossorigin href="/__NUXT_DEVTOOLS_BASE__/_nuxt/full-
|
|
13
|
-
<link rel="prefetch" as="script" crossorigin href="/__NUXT_DEVTOOLS_BASE__/_nuxt/none-
|
|
12
|
+
<link rel="prefetch" as="script" crossorigin href="/__NUXT_DEVTOOLS_BASE__/_nuxt/default-hdlt6j4k.js">
|
|
13
|
+
<link rel="prefetch" as="script" crossorigin href="/__NUXT_DEVTOOLS_BASE__/_nuxt/full-duvrk1v3.js">
|
|
14
|
+
<link rel="prefetch" as="script" crossorigin href="/__NUXT_DEVTOOLS_BASE__/_nuxt/none-b6qt2l9k.js">
|
|
14
15
|
<link rel="prefetch" as="style" crossorigin href="/__NUXT_DEVTOOLS_BASE__/_nuxt/ncode-block.css-lvdc77tw.css">
|
|
15
|
-
<link rel="prefetch" as="script" crossorigin href="/__NUXT_DEVTOOLS_BASE__/_nuxt/data-schema-drawer-
|
|
16
|
-
<link rel="prefetch" as="script" crossorigin href="/__NUXT_DEVTOOLS_BASE__/_nuxt/nselect.vue-
|
|
17
|
-
<link rel="prefetch" as="script" crossorigin href="/__NUXT_DEVTOOLS_BASE__/_nuxt/nswitch.vue-
|
|
18
|
-
<link rel="prefetch" as="script" crossorigin href="/__NUXT_DEVTOOLS_BASE__/_nuxt/ndropdown.vue-
|
|
19
|
-
<link rel="prefetch" as="script" crossorigin href="/__NUXT_DEVTOOLS_BASE__/_nuxt/ncode-block.vue-
|
|
20
|
-
<link rel="prefetch" as="script" crossorigin href="/__NUXT_DEVTOOLS_BASE__/_nuxt/client-
|
|
21
|
-
<link rel="prefetch" as="script" crossorigin href="/__NUXT_DEVTOOLS_BASE__/_nuxt/ndrawer.vue-
|
|
22
|
-
<link rel="prefetch" as="script" crossorigin href="/__NUXT_DEVTOOLS_BASE__/_nuxt/vendor/quicktype-core-
|
|
23
|
-
<link rel="prefetch" as="script" crossorigin href="/__NUXT_DEVTOOLS_BASE__/_nuxt/unocss-runtime-
|
|
24
|
-
<link rel="prefetch" as="style" crossorigin href="/__NUXT_DEVTOOLS_BASE__/_nuxt/error-404.css-
|
|
25
|
-
<link rel="prefetch" as="script" crossorigin href="/__NUXT_DEVTOOLS_BASE__/_nuxt/error-404-
|
|
26
|
-
<link rel="prefetch" as="style" crossorigin href="/__NUXT_DEVTOOLS_BASE__/_nuxt/error-500.css-
|
|
27
|
-
<link rel="prefetch" as="script" crossorigin href="/__NUXT_DEVTOOLS_BASE__/_nuxt/error-500-
|
|
28
|
-
<script type="module" src="/__NUXT_DEVTOOLS_BASE__/_nuxt/
|
|
29
|
-
<script>window.__NUXT__={};window.__NUXT__.config={public:{},app:{baseURL:"/__NUXT_DEVTOOLS_BASE__/",buildId:"
|
|
16
|
+
<link rel="prefetch" as="script" crossorigin href="/__NUXT_DEVTOOLS_BASE__/_nuxt/data-schema-drawer-l8t0dpro.js">
|
|
17
|
+
<link rel="prefetch" as="script" crossorigin href="/__NUXT_DEVTOOLS_BASE__/_nuxt/nselect.vue-j457efs9.js">
|
|
18
|
+
<link rel="prefetch" as="script" crossorigin href="/__NUXT_DEVTOOLS_BASE__/_nuxt/nswitch.vue-m7rzt1v6.js">
|
|
19
|
+
<link rel="prefetch" as="script" crossorigin href="/__NUXT_DEVTOOLS_BASE__/_nuxt/ndropdown.vue-mt2skirs.js">
|
|
20
|
+
<link rel="prefetch" as="script" crossorigin href="/__NUXT_DEVTOOLS_BASE__/_nuxt/ncode-block.vue-nph7f5ph.js">
|
|
21
|
+
<link rel="prefetch" as="script" crossorigin href="/__NUXT_DEVTOOLS_BASE__/_nuxt/client-kvgyopwa.js">
|
|
22
|
+
<link rel="prefetch" as="script" crossorigin href="/__NUXT_DEVTOOLS_BASE__/_nuxt/ndrawer.vue-bscihm5p.js">
|
|
23
|
+
<link rel="prefetch" as="script" crossorigin href="/__NUXT_DEVTOOLS_BASE__/_nuxt/vendor/quicktype-core-jxekulwx.js">
|
|
24
|
+
<link rel="prefetch" as="script" crossorigin href="/__NUXT_DEVTOOLS_BASE__/_nuxt/unocss-runtime-natbzd10.js">
|
|
25
|
+
<link rel="prefetch" as="style" crossorigin href="/__NUXT_DEVTOOLS_BASE__/_nuxt/error-404.css-nxlugf5l.css">
|
|
26
|
+
<link rel="prefetch" as="script" crossorigin href="/__NUXT_DEVTOOLS_BASE__/_nuxt/error-404-i1es9hcq.js">
|
|
27
|
+
<link rel="prefetch" as="style" crossorigin href="/__NUXT_DEVTOOLS_BASE__/_nuxt/error-500.css-bcokcrit.css">
|
|
28
|
+
<link rel="prefetch" as="script" crossorigin href="/__NUXT_DEVTOOLS_BASE__/_nuxt/error-500-du8psod2.js">
|
|
29
|
+
<script type="module" src="/__NUXT_DEVTOOLS_BASE__/_nuxt/ch41giyg.js" crossorigin></script></head><body><div id="__nuxt"></div><div id="teleports"></div><script type="application/json" data-nuxt-data="nuxt-app" data-ssr="false" id="__NUXT_DATA__">[{"prerenderedAt":1,"serverRendered":2},1758391405598,false]</script>
|
|
30
|
+
<script>window.__NUXT__={};window.__NUXT__.config={public:{},app:{baseURL:"/__NUXT_DEVTOOLS_BASE__/",buildId:"50d38183-21be-4c6a-b93c-9aad9dacb71b",buildAssetsDir:"/_nuxt/",cdnURL:""}}</script></body></html>
|
package/dist/client/404.html
CHANGED
|
@@ -1,29 +1,30 @@
|
|
|
1
1
|
<!DOCTYPE html><html><head><meta charset="utf-8">
|
|
2
2
|
<meta name="viewport" content="width=device-width, initial-scale=1">
|
|
3
|
-
<
|
|
3
|
+
<script type="importmap">{"imports":{"#entry":"/__NUXT_DEVTOOLS_BASE__/_nuxt/ch41giyg.js"}}</script>
|
|
4
|
+
<link rel="stylesheet" href="/__NUXT_DEVTOOLS_BASE__/_nuxt/entry.css-bgro2w4m.css" crossorigin>
|
|
4
5
|
<link rel="stylesheet" href="/__NUXT_DEVTOOLS_BASE__/_nuxt/vendor/json-editor-vue.css-mqq5uooj.css" crossorigin>
|
|
5
6
|
<link rel="stylesheet" href="/__NUXT_DEVTOOLS_BASE__/_nuxt/vendor/unocss.css-mhvipxpl.css" crossorigin>
|
|
6
|
-
<link rel="modulepreload" as="script" crossorigin href="/__NUXT_DEVTOOLS_BASE__/_nuxt/
|
|
7
|
-
<link rel="modulepreload" as="script" crossorigin href="/__NUXT_DEVTOOLS_BASE__/_nuxt/vendor/json-editor-vue-
|
|
7
|
+
<link rel="modulepreload" as="script" crossorigin href="/__NUXT_DEVTOOLS_BASE__/_nuxt/ch41giyg.js">
|
|
8
|
+
<link rel="modulepreload" as="script" crossorigin href="/__NUXT_DEVTOOLS_BASE__/_nuxt/vendor/json-editor-vue-gd4lkf0o.js">
|
|
8
9
|
<link rel="modulepreload" as="script" crossorigin href="/__NUXT_DEVTOOLS_BASE__/_nuxt/vendor/shiki-jxvjmls6.js">
|
|
9
|
-
<link rel="modulepreload" as="script" crossorigin href="/__NUXT_DEVTOOLS_BASE__/_nuxt/vendor/unocss-
|
|
10
|
+
<link rel="modulepreload" as="script" crossorigin href="/__NUXT_DEVTOOLS_BASE__/_nuxt/vendor/unocss-n80di6md.js">
|
|
10
11
|
<link rel="prefetch" as="script" crossorigin href="/__NUXT_DEVTOOLS_BASE__/_nuxt/vendor/markdown-it-fvu08dbs.js">
|
|
11
|
-
<link rel="prefetch" as="script" crossorigin href="/__NUXT_DEVTOOLS_BASE__/_nuxt/default-
|
|
12
|
-
<link rel="prefetch" as="script" crossorigin href="/__NUXT_DEVTOOLS_BASE__/_nuxt/full-
|
|
13
|
-
<link rel="prefetch" as="script" crossorigin href="/__NUXT_DEVTOOLS_BASE__/_nuxt/none-
|
|
12
|
+
<link rel="prefetch" as="script" crossorigin href="/__NUXT_DEVTOOLS_BASE__/_nuxt/default-hdlt6j4k.js">
|
|
13
|
+
<link rel="prefetch" as="script" crossorigin href="/__NUXT_DEVTOOLS_BASE__/_nuxt/full-duvrk1v3.js">
|
|
14
|
+
<link rel="prefetch" as="script" crossorigin href="/__NUXT_DEVTOOLS_BASE__/_nuxt/none-b6qt2l9k.js">
|
|
14
15
|
<link rel="prefetch" as="style" crossorigin href="/__NUXT_DEVTOOLS_BASE__/_nuxt/ncode-block.css-lvdc77tw.css">
|
|
15
|
-
<link rel="prefetch" as="script" crossorigin href="/__NUXT_DEVTOOLS_BASE__/_nuxt/data-schema-drawer-
|
|
16
|
-
<link rel="prefetch" as="script" crossorigin href="/__NUXT_DEVTOOLS_BASE__/_nuxt/nselect.vue-
|
|
17
|
-
<link rel="prefetch" as="script" crossorigin href="/__NUXT_DEVTOOLS_BASE__/_nuxt/nswitch.vue-
|
|
18
|
-
<link rel="prefetch" as="script" crossorigin href="/__NUXT_DEVTOOLS_BASE__/_nuxt/ndropdown.vue-
|
|
19
|
-
<link rel="prefetch" as="script" crossorigin href="/__NUXT_DEVTOOLS_BASE__/_nuxt/ncode-block.vue-
|
|
20
|
-
<link rel="prefetch" as="script" crossorigin href="/__NUXT_DEVTOOLS_BASE__/_nuxt/client-
|
|
21
|
-
<link rel="prefetch" as="script" crossorigin href="/__NUXT_DEVTOOLS_BASE__/_nuxt/ndrawer.vue-
|
|
22
|
-
<link rel="prefetch" as="script" crossorigin href="/__NUXT_DEVTOOLS_BASE__/_nuxt/vendor/quicktype-core-
|
|
23
|
-
<link rel="prefetch" as="script" crossorigin href="/__NUXT_DEVTOOLS_BASE__/_nuxt/unocss-runtime-
|
|
24
|
-
<link rel="prefetch" as="style" crossorigin href="/__NUXT_DEVTOOLS_BASE__/_nuxt/error-404.css-
|
|
25
|
-
<link rel="prefetch" as="script" crossorigin href="/__NUXT_DEVTOOLS_BASE__/_nuxt/error-404-
|
|
26
|
-
<link rel="prefetch" as="style" crossorigin href="/__NUXT_DEVTOOLS_BASE__/_nuxt/error-500.css-
|
|
27
|
-
<link rel="prefetch" as="script" crossorigin href="/__NUXT_DEVTOOLS_BASE__/_nuxt/error-500-
|
|
28
|
-
<script type="module" src="/__NUXT_DEVTOOLS_BASE__/_nuxt/
|
|
29
|
-
<script>window.__NUXT__={};window.__NUXT__.config={public:{},app:{baseURL:"/__NUXT_DEVTOOLS_BASE__/",buildId:"
|
|
16
|
+
<link rel="prefetch" as="script" crossorigin href="/__NUXT_DEVTOOLS_BASE__/_nuxt/data-schema-drawer-l8t0dpro.js">
|
|
17
|
+
<link rel="prefetch" as="script" crossorigin href="/__NUXT_DEVTOOLS_BASE__/_nuxt/nselect.vue-j457efs9.js">
|
|
18
|
+
<link rel="prefetch" as="script" crossorigin href="/__NUXT_DEVTOOLS_BASE__/_nuxt/nswitch.vue-m7rzt1v6.js">
|
|
19
|
+
<link rel="prefetch" as="script" crossorigin href="/__NUXT_DEVTOOLS_BASE__/_nuxt/ndropdown.vue-mt2skirs.js">
|
|
20
|
+
<link rel="prefetch" as="script" crossorigin href="/__NUXT_DEVTOOLS_BASE__/_nuxt/ncode-block.vue-nph7f5ph.js">
|
|
21
|
+
<link rel="prefetch" as="script" crossorigin href="/__NUXT_DEVTOOLS_BASE__/_nuxt/client-kvgyopwa.js">
|
|
22
|
+
<link rel="prefetch" as="script" crossorigin href="/__NUXT_DEVTOOLS_BASE__/_nuxt/ndrawer.vue-bscihm5p.js">
|
|
23
|
+
<link rel="prefetch" as="script" crossorigin href="/__NUXT_DEVTOOLS_BASE__/_nuxt/vendor/quicktype-core-jxekulwx.js">
|
|
24
|
+
<link rel="prefetch" as="script" crossorigin href="/__NUXT_DEVTOOLS_BASE__/_nuxt/unocss-runtime-natbzd10.js">
|
|
25
|
+
<link rel="prefetch" as="style" crossorigin href="/__NUXT_DEVTOOLS_BASE__/_nuxt/error-404.css-nxlugf5l.css">
|
|
26
|
+
<link rel="prefetch" as="script" crossorigin href="/__NUXT_DEVTOOLS_BASE__/_nuxt/error-404-i1es9hcq.js">
|
|
27
|
+
<link rel="prefetch" as="style" crossorigin href="/__NUXT_DEVTOOLS_BASE__/_nuxt/error-500.css-bcokcrit.css">
|
|
28
|
+
<link rel="prefetch" as="script" crossorigin href="/__NUXT_DEVTOOLS_BASE__/_nuxt/error-500-du8psod2.js">
|
|
29
|
+
<script type="module" src="/__NUXT_DEVTOOLS_BASE__/_nuxt/ch41giyg.js" crossorigin></script></head><body><div id="__nuxt"></div><div id="teleports"></div><script type="application/json" data-nuxt-data="nuxt-app" data-ssr="false" id="__NUXT_DATA__">[{"prerenderedAt":1,"serverRendered":2},1758391405599,false]</script>
|
|
30
|
+
<script>window.__NUXT__={};window.__NUXT__.config={public:{},app:{baseURL:"/__NUXT_DEVTOOLS_BASE__/",buildId:"50d38183-21be-4c6a-b93c-9aad9dacb71b",buildAssetsDir:"/_nuxt/",cdnURL:""}}</script></body></html>
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{p as e,J as n,$ as t}from"./vendor/json-editor-vue-gd4lkf0o.js";const c={"h-screen":"","w-screen":"","bg-black":""},r=e({__name:"__blank",setup(o){return(s,_)=>(t(),n("div",c))}});export{r as default};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{b6 as X,b7 as j,_ as P,r as V,E as R,b8 as Y,a6 as h,a7 as ee,Z as ne,a1 as te,j as le,b9 as k,a8 as ie,Q as oe,v as re,q as ue,aj as se,M as ae}from"#entry";import{_ as de}from"./filepath-item.vue-e693vfym.js";import{p as U,q as S,k as F,J as u,$ as i,a0 as e,a1 as g,F as p,ag as L,X as d,a8 as v,u as b,V as a,ab as f,ac as D,ad as I,a4 as E,U as B}from"./vendor/json-editor-vue-gd4lkf0o.js";import{_ as me}from"./ncode-block.vue-nph7f5ph.js";import{_ as pe}from"./ncheckbox.vue-cowm3nmm.js";import{_ as ve}from"./help-fab.vue-le7iybnb.js";import"./vendor/shiki-jxvjmls6.js";import"./vendor/unocss-n80di6md.js";import"./client-kvgyopwa.js";const fe={"h-full":"",grid:"~ rows-[max-content_1fr]"},ce={flex:"~ wrap","w-full":""},ye=["onClick"],be={key:0,flex:"~ col gap-4 items-center justify-center",p4:""},xe={grid:"~ cols-[30px_1fr] gap-x-2 gap-y-3 items-center justify-center","w-100":""},ge="/__nuxt_devtools__/client",_e=U({__name:"BuildAnalyzeDetails",props:{current:{},prev:{}},setup(N){const c=N,w=`${X().app.baseURL.replace(ge,"/")}/__nuxt_devtools__/analyze/`.replace(/\/+/g,"/"),y=S(()=>{const l=[{name:"Overview",id:"overview"}];return c.current.features.bundleClient&&l.push({name:"Client Bundle",id:"bundle-client"}),c.current.features.bundleNitro&&l.push({name:"Nitro Bundle",id:"bundle-nitro"}),c.current.features.viteInspect&&l.push({name:"Vite Inspect",id:"vite-inspect"}),l}),o=F(y.value[0]);function $(l){return`${((l.endTime-l.startTime)/1e3).toFixed(1)}s`}function m(l){return l<1024?`${l}B`:l<1024*1024?`${(l/1024).toFixed(1)}KB`:l<1024*1024*1024?`${(l/1024/1024).toFixed(1)}MB`:`${(l/1024/1024/1024).toFixed(1)}GB`}async function T(l){return V.clearAnalyzeBuilds(await R(),[l])}return(l,n)=>{const A=de,C=P;return i(),u("div",fe,[e("div",ce,[(i(!0),u(p,null,L(y.value,(r,t)=>(i(),u("button",{key:t,px4:"",py2:"",border:"r base",hover:"bg-active",class:E(r.id===o.value?.id?"":"border-b"),onClick:z=>o.value=r},[e("div",{class:E(r.id===o.value?.id?"":"op30")},v(r.name),3)],10,ye))),128)),n[1]||(n[1]=e("div",{border:"b base","flex-auto":""},null,-1))]),o.value?.id==="overview"?(i(),u("div",be,[n[15]||(n[15]=e("div",{"flex-auto":""},null,-1)),e("div",xe,[n[10]||(n[10]=e("div",{"i-carbon-commit":"","text-xl":""},null,-1)),e("div",null,[n[2]||(n[2]=e("div",{"text-sm":"",op50:""}," Name ",-1)),e("div",null,v(l.current.name),1)]),n[11]||(n[11]=e("div",{"i-carbon-time":"","text-xl":""},null,-1)),e("div",null,[n[3]||(n[3]=e("div",{"text-sm":"",op50:""}," Build duration ",-1)),e("div",null,v($(l.current)),1)]),l.current.size?.clientBundle?(i(),u(p,{key:0},[n[5]||(n[5]=e("div",{"i-carbon-cics-program":"","text-xl":""},null,-1)),e("div",null,[n[4]||(n[4]=e("div",{"text-sm":"",op50:""}," Client bundle size ",-1)),e("div",null,v(m(l.current.size.clientBundle)),1)])],64)):g("",!0),l.current.size?.nitroBundle?(i(),u(p,{key:1},[n[7]||(n[7]=e("div",{"i-carbon-bare-metal-server":"","text-xl":""},null,-1)),e("div",null,[n[6]||(n[6]=e("div",{"text-sm":"",op50:""}," Nitro bundle size ",-1)),e("div",null,v(m(l.current.size.nitroBundle)),1)])],64)):g("",!0),n[12]||(n[12]=e("div",{"i-carbon-edge-node":"","text-xl":""},null,-1)),e("div",null,[n[8]||(n[8]=e("div",{"text-sm":"",op50:""}," Built ",-1)),e("div",null,v(b(j)(new Date(l.current.endTime))),1)]),n[13]||(n[13]=e("div",{"i-carbon:folder-parent":"","text-xl":""},null,-1)),e("div",null,[n[9]||(n[9]=e("div",{"text-sm":"",op50:""}," Report Path ",-1)),d(A,{filepath:l.current.analyzeDir},null,8,["filepath"])])]),n[16]||(n[16]=e("div",{"flex-auto":""},null,-1)),d(C,{n:"rose",icon:"carbon-delete",onClick:n[0]||(n[0]=r=>T(l.current.name))},{default:a(()=>[...n[14]||(n[14]=[f(" Delete this report ",-1)])]),_:1})])):g("",!0),n._lazyshow1||o.value?.id==="bundle-client"?(n._lazyshow1=!0,i(),u(p,null,[D(e("iframe",{src:`${b(w)}${l.current.slug}/client.html`,"h-full":"","w-full":""},null,8,["src"]),[[I,o.value?.id==="bundle-client"]])],64)):g("v-show-if",!0),n._lazyshow2||o.value?.id==="bundle-nitro"?(n._lazyshow2=!0,i(),u(p,null,[D(e("iframe",{src:`${b(w)}${l.current.slug}/nitro.html`,"h-full":"","w-full":""},null,8,["src"]),[[I,o.value?.id==="bundle-nitro"]])],64)):g("v-show-if",!0),n._lazyshow3||o.value?.id==="vite-inspect"?(n._lazyshow3=!0,i(),u(p,null,[D(e("iframe",{src:`${b(w)}${l.current.slug}/.vite-inspect/`,"h-full":"","w-full":""},null,8,["src"]),[[I,o.value?.id==="vite-inspect"]])],64)):g("v-show-if",!0)])}}}),we={class:"markdown-body"},$e={__name:"analyze-build",setup(N,{expose:c}){return c({frontmatter:{}}),(w,y)=>(i(),u("div",we,[...y[0]||(y[0]=[e("h1",null,"Build Analyze",-1),e("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 "),e("code",null,"nuxt build --analyze"),f(" and present the output data directly in DevTools for easy browsing and comparing.")],-1)])]))}},ze={flex:"~ col"},Be=["onClick"],Ce={flex:"~ gap-1 items-center wrap","w-full":"","text-sm":"",op60:""},ke={flex:"~ items-center justify-center wrap",p4:""},Ne={flex:"~ col gap-1","w-250":"",p4:""},Te={flex:"~ gap-3",mt2:"","justify-end":""},Re=U({__name:"analyze-build",setup(N){const c=se(),_=Y(),w=h(),y=ee("analyze-build:slug",""),o=S(()=>_.value?.builds.find(r=>r.slug===y.value)??_.value?.builds[0]),$=F(!1),m=F(""),T=S(()=>_.value?.builds.some(r=>r.name===m.value.trim()));async function l(){m.value=await V.generateAnalyzeBuildName(),await c.start()&&(ae("analyze-build:start"),k.value={name:m.value,processId:await V.startAnalyzeBuild(await R(),m.value)},$.value&&C())}const n=ne();function A(r){return`${((r.endTime-r.startTime)/1e3).toFixed(1)}s`}function C(){k.value?.processId&&(n.value=k.value.processId,w.push("/modules/terminals"))}return te(()=>[{id:"action:analyze-build: start",title:"Start a new analyze build",icon:"i-carbon-edge-node",action:l}]),(r,t)=>{const z=P,G=_e,q=le,M=ie,O=re,Z=ue,H=me,J=pe,K=oe,Q=$e,W=ve;return i(),u(p,null,[d(M,{"left-size":30},{left:a(()=>[e("div",ze,[(i(!0),u(p,null,L(b(_)?.builds,s=>(i(),u(p,{key:s.slug},[e("button",{flex:"~ col gap1",p3:"","hover:bg-active":"",class:E(s.slug===o.value?.slug?"text-primary bg-active":""),onClick:x=>y.value=s.slug},[e("code",null,v(s.name),1),e("div",Ce,[t[4]||(t[4]=e("div",{"i-carbon-time":""},null,-1)),e("span",null,v(A(s)),1),t[5]||(t[5]=e("div",{"flex-auto":""},null,-1)),e("span",null,v(b(j)(new Date(s.endTime))),1)])],10,Be),t[6]||(t[6]=e("div",{"x-divider":""},null,-1))],64))),128)),e("div",ke,[b(k)?(i(),B(z,{key:1,n:"primary",icon:"carbon-circle-dash animate-spin",onClick:t[1]||(t[1]=s=>C())},{default:a(()=>[...t[8]||(t[8]=[f(" Building... ",-1)])]),_:1})):(i(),B(z,{key:0,n:"primary",icon:"carbon-edge-node",onClick:t[0]||(t[0]=s=>l())},{default:a(()=>[...t[7]||(t[7]=[f(" Start a new build ",-1)])]),_:1}))])])]),right:a(()=>[o.value?(i(),B(G,{key:0,current:o.value},null,8,["current"])):(i(),B(q,{key:1}))]),_:1}),d(b(c),null,{default:a(({resolve:s})=>[d(K,{"model-value":!0,onClose:x=>s(!1)},{default:a(()=>[e("div",Ne,[t[13]||(t[13]=e("h3",{class:"text-lg font-medium leading-6",mb2:""}," Start analyze build? ",-1)),t[14]||(t[14]=e("p",{op50:""}," Enter the name of the build: ",-1)),d(O,{modelValue:m.value,"onUpdate:modelValue":t[2]||(t[2]=x=>m.value=x),placeholder:"Build name"},null,8,["modelValue"]),T.value?(i(),B(Z,{key:0,"n-orange":""},{default:a(()=>[...t[9]||(t[9]=[f(" A build with the same name already exists, continue would overrides the previous build result. ",-1)])]),_:1})):g("",!0),t[15]||(t[15]=e("div",{my3:"","x-divider":""},null,-1)),t[16]||(t[16]=e("p",{op50:""}," The following command will be executed in your terminal: ",-1)),d(H,{code:`npx nuxi analyze --no-serve --name=${m.value}`,lang:"bash",px4:"",py2:"",border:"~ base rounded",lines:!1},null,8,["code"]),d(J,{modelValue:$.value,"onUpdate:modelValue":t[3]||(t[3]=x=>$.value=x),mt2:"",n:"primary"},{default:a(()=>[...t[10]||(t[10]=[f(" Navigate to terminal ",-1)])]),_:1},8,["modelValue"]),e("div",Te,[d(z,{onClick:x=>s(!1)},{default:a(()=>[...t[11]||(t[11]=[f(" Cancel ",-1)])]),_:1},8,["onClick"]),d(z,{n:"solid primary",onClick:x=>s(!0)},{default:a(()=>[...t[12]||(t[12]=[f(" Start ",-1)])]),_:1},8,["onClick"])])])]),_:2},1032,["onClose"])]),_:1}),d(W,null,{default:a(()=>[d(Q)]),_:1})],64)}}});export{Re as default};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{G as Z,H as ee,_ as te,I as ne,J as R,K as ce,L as pe,M as me,r as W,E as X,v as se,N as ve,O as fe,c as le,A as ge,a as he,w as xe,P as be,Q as we,R as _e,S as ye,T as $e,g as ke,U as Ce}from"
|
|
1
|
+
import{G as Z,H as ee,_ as te,I as ne,J as R,K as ce,L as pe,M as me,r as W,E as X,v as se,N as ve,O as fe,c as le,A as ge,a as he,w as xe,P as be,Q as we,R as _e,S as ye,T as $e,g as ke,U as Ce}from"#entry";import{_ as Ve}from"./ncheckbox.vue-cowm3nmm.js";import{_ as Pe}from"./ndropdown.vue-mt2skirs.js";import{_ as Ae}from"./nnavbar.vue-fe2vbqhk.js";import{p as J,k as T,ai as oe,J as i,$ as o,a4 as H,u as m,ac as K,X as d,a0 as t,ab as D,F as z,ag as G,U as V,a1 as U,V as h,q as S,a2 as ae,a8 as N,W as De,j as Ne,at as Fe,a3 as Ue}from"./vendor/json-editor-vue-gd4lkf0o.js";import{_ as Se}from"./nsection-block-b1meb1ma.js";import{_ as Ie}from"./filepath-item.vue-e693vfym.js";import{_ as Te}from"./code-snippets.vue-i2momvvn.js";import{_ as je}from"./ndrawer.vue-bscihm5p.js";import{D as Ee}from"./constants-b32h69zq.js";import"./vendor/shiki-jxvjmls6.js";import"./vendor/unocss-n80di6md.js";import"./nicon-title.vue-l5va2e26.js";import"./ncode-block.vue-nph7f5ph.js";import"./client-kvgyopwa.js";const Be={key:0,"h-full":"","w-full":"",flex:"","items-center":"","justify-center":""},Le={for:"drop-zone-input","text-3xl":"",hover:"text-green cursor-pointer","transition-all":""},ze={key:1,relative:"","h-full":"","w-full":"",grid:"~ rows-[max-content_1fr_max-content]"},Oe={grid:"~ cols-minmax-8rem gap-8","overflow-auto":"",p6:""},Re={flex:"","items-center":"","justify-center":"","of-hidden":"",rounded:"","rounded-t-lg":"","bg-active":"","object-cover":"",class:"aspect-1/1",border:"~ base"},Me=["src"],Ke={flex:"~ gap1","items-center":""},qe={flex:"~ gap-2","items-center":"","justify-center":"",p8:""},Ge=J({__name:"AssetDropZone",props:{modelValue:{type:Boolean,required:!0},folder:{type:String,required:!0}},setup(L){const l=L,f=ee(l,"modelValue"),C=T(),n=T([]);function v(s){C.value=s.target,f.value=!0}function b(s){s.target===C.value&&(f.value=!1)}function j(s){s.preventDefault()}function P(s){s.preventDefault(),x(s.dataTransfer.files)}function x(s){const c=Array.from(s||[]);if(c.length){const g=[],_=n.value.map(u=>u.name);for(const u of c)if(_.includes(u.name)){let A=1;const[y,B]=u.name.split(".");for(;_.includes(`${y} (${A}).${B}`);)A++;const M=`${y}-${A}.${B}`,a=new Blob([u],{type:u.type}),e=new File([a],M,{lastModified:Date.now()});g.push(e),_.push(M)}else u.type===""&&R({message:"Folders are not supported yet",icon:"carbon:face-dissatisfied",classes:"text-orange"}),g.push(u);n.value=[...n.value,...g]}}async function E(){if(ce.value||pe.value)return;me("assets:upload");const s=[];for(const c of n.value){const g=new FileReader;g.readAsDataURL(c);const u=(await new Promise(A=>{g.onload=()=>A(g.result)})).split(";base64,").pop();s.push({path:c.name,encoding:"base64",content:u})}await W.writeStaticAssets(await X(),[...s],l.folder).then(()=>{p(),R({message:"Files uploaded successfully!",icon:"i-carbon:checkmark"})}).catch(c=>{p(),R({message:`Error uploading files: ${c?.message??"unknown"}`,icon:"i-carbon-warning",classes:"text-red"})}),f.value=!1}function q(s){n.value?.splice(s,1)}function O(s){return URL.createObjectURL(s)}function w(s,c){const[g,_]=s.name.split("."),u=c.replace(/\.\w+$/,""),A=`${u}.${_}`;return u.length===0?(alert("File name must be at least 1 characters long"),g):(Object.defineProperty(s,"name",{value:A,writable:!1}),n.value.splice(n.value.indexOf(s),1,s),s)}function r(){n.value=[]}function p(){f.value=!1,r()}return Z("dragenter",v),Z("dragleave",b),Z("dragover",j),Z("drop",P),(s,c)=>{const g=te,_=ne,u=se,A=oe("tooltip");return o(),i("div",{fixed:"","bottom-0":"","left-13":"","right-0":"","top-0":"","z-10":"","backdrop-blur-20":"","transition-all":"",class:H(m(f)?"opacity-100 visible":"opacity-0 invisible")},[K(d(g,{icon:"carbon-close",title:"Close",absolute:"","right-5":"","top-5":"","z-20":"","text-xl":"",border:!1,onClick:p},null,512),[[A,"Close",void 0,{"bottom-end":!0}]]),n.value?.length?(o(),i("div",ze,[c[4]||(c[4]=t("div",{px6:"",py6:""},[t("h1",{"text-2xl":""}," Upload "),t("p",{"text-sm":"",op50:""}," Drag and drop files to upload ")],-1)),t("div",Oe,[(o(!0),i(z,null,G(n.value,(y,B)=>(o(),i("div",{key:y.name,flex:"~ col gap-2",relative:"","h-50":"","w-40":"","items-center":""},[t("div",Re,[t("img",{"h-full":"","w-full":"","rounded-t-lg":"","object-cover":"",src:O(y)},null,8,Me)]),t("div",Ke,[d(u,{n:"xs","h-full":"","flex-auto":"","model-value":y.name,"onUpdate:modelValue":M=>w(y,M.target.value)},null,8,["model-value","onUpdate:modelValue"]),d(g,{n:"red",icon:"carbon-trash-can","h-full":"","flex-none":"",title:"Remove file",onClick:M=>q(B)},null,8,["onClick"])])]))),128))]),t("div",qe,[n.value.length?(o(),V(g,{key:0,n:"red",onClick:r},{default:h(()=>[d(_,{icon:"carbon-clean"}),c[2]||(c[2]=D(" Clear ",-1))]),_:1})):U("",!0),d(g,{disabled:!n.value.length,n:"primary solid",onClick:E},{default:h(()=>[d(_,{icon:"carbon-cloud-upload"}),c[3]||(c[3]=D(" Upload ",-1))]),_:1},8,["disabled"])])])):(o(),i("div",Be,[t("label",Le,[d(_,{icon:"carbon-cloud-upload","mr-2":""}),c[1]||(c[1]=D(" Drop files here or click to select ",-1))]),t("input",{id:"drop-zone-input",type:"file",multiple:"",hidden:"",onChange:c[0]||(c[0]=y=>x(y.target.files))},null,32)]))],2)}}}),Je=J({__name:"AssetFontPreview",props:{asset:{}},setup(L){const l=L,f=S(()=>`devtools-assets-${ve(l.asset)}`);return fe(S(()=>`
|
|
2
2
|
@font-face {
|
|
3
3
|
font-family: '${f.value}';
|
|
4
4
|
src: url('${l.asset.publicPath}');
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"id":"
|
|
1
|
+
{"id":"50d38183-21be-4c6a-b93c-9aad9dacb71b","timestamp":1758391374888}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"id":"50d38183-21be-4c6a-b93c-9aad9dacb71b","timestamp":1758391374888,"matcher":{"static":{},"wildcard":{},"dynamic":{}},"prerendered":[]}
|