@nuxt/devtools 2.6.1 → 2.6.3
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 +4 -1
- package/dist/client/200.html +23 -23
- package/dist/client/404.html +23 -23
- package/dist/client/_nuxt/__blank-h7gh4972.js +1 -0
- package/dist/client/_nuxt/analyze-build-gq32zfqj.js +1 -0
- package/dist/client/_nuxt/assets-fwzpm7nx.js +16 -0
- package/dist/client/_nuxt/builds/latest.json +1 -1
- package/dist/client/_nuxt/builds/meta/4d84ec87-f2c3-4b83-8664-cdcbe5c3aa91.json +1 -0
- package/dist/client/_nuxt/{client-oeqdl4pb.js → client-hkqvtzyx.js} +1 -1
- package/dist/client/_nuxt/code-diff.vue-f9zhruxh.js +8 -0
- package/dist/client/_nuxt/code-snippets.vue-kmkapmuj.js +1 -0
- package/dist/client/_nuxt/components-lq40ymve.js +1 -0
- package/dist/client/_nuxt/composable-item.vue-jogp9uix.js +1 -0
- package/dist/client/_nuxt/custom-_name_-f34l2gap.js +1 -0
- package/dist/client/_nuxt/data-schema-button.vue-cgqdfu43.js +1 -0
- package/dist/client/_nuxt/data-schema-drawer-c7c346do.js +2 -0
- package/dist/client/_nuxt/debug-h5630t9o.js +1 -0
- package/dist/client/_nuxt/{default-f5v1rjia.js → default-er15ytcq.js} +1 -1
- package/dist/client/_nuxt/duration-display.vue-l0zz5iex.js +1 -0
- package/dist/client/_nuxt/e1928lvz.js +15 -0
- package/dist/client/_nuxt/{entry.css-mloq4mxl.css → entry.css-ebiz9nsw.css} +1 -1
- package/dist/client/_nuxt/error-404-eq7j2f69.js +1 -0
- package/dist/client/_nuxt/error-404.css-z2gtwy9t.css +1 -0
- package/dist/client/_nuxt/{error-500-c5xs7f38.js → error-500-g4f9ioxi.js} +1 -1
- package/dist/client/_nuxt/error-500.css-liy0brxy.css +1 -0
- package/dist/client/_nuxt/{error-k138ukws.js → error-mb5ek223.js} +5 -5
- package/dist/client/_nuxt/filepath-item.vue-kxrtauqr.js +1 -0
- package/dist/client/_nuxt/full-eq6zlj3s.js +1 -0
- package/dist/client/_nuxt/help-fab.vue-kdw4qv3n.js +1 -0
- package/dist/client/_nuxt/hooks-kg9ne2fi.js +1 -0
- package/dist/client/_nuxt/imports-ovzwli5n.js +1 -0
- package/dist/client/_nuxt/index-lp7uaru1.js +1 -0
- package/dist/client/_nuxt/launch-page.vue-e2fz4zcd.js +1 -0
- package/dist/client/_nuxt/modules-6pffkx9j.js +1 -0
- package/dist/client/_nuxt/nbadge-oryc1shd.js +1 -0
- package/dist/client/_nuxt/ncheckbox.vue-ktgiyht2.js +1 -0
- package/dist/client/_nuxt/ncode-block.vue-j1bpwykw.js +2 -0
- package/dist/client/_nuxt/ndrawer.vue-mt6mb0ol.js +1 -0
- package/dist/client/_nuxt/ndropdown.vue-lqitnb0r.js +1 -0
- package/dist/client/_nuxt/nicon-title.vue-mr03t3pg.js +1 -0
- package/dist/client/_nuxt/nlink.vue-0imskaxm.js +1 -0
- package/dist/client/_nuxt/nmarkdown.vue-n5lhcplj.js +1 -0
- package/dist/client/_nuxt/nnavbar.vue-bxefhipc.js +1 -0
- package/dist/client/_nuxt/none-giyl4tlf.js +1 -0
- package/dist/client/_nuxt/nsection-block-i439i28t.js +1 -0
- package/dist/client/_nuxt/nselect-tabs.vue-nt980ye0.js +1 -0
- package/dist/client/_nuxt/nselect.vue-h7dqrznf.js +1 -0
- package/dist/client/_nuxt/nswitch.vue-ihk2zmam.js +1 -0
- package/dist/client/_nuxt/open-graph-jnsmvgeb.js +3 -0
- package/dist/client/_nuxt/overview-g5zkzp0f.js +1 -0
- package/dist/client/_nuxt/pages-nwsw6ze1.js +1 -0
- package/dist/client/_nuxt/payload-ighptlsv.js +1 -0
- package/dist/client/_nuxt/pinia-l1dh0fju.js +1 -0
- package/dist/client/_nuxt/plugins-obqyfkt1.js +1 -0
- package/dist/client/_nuxt/render-tree-er1eiqzu.js +1 -0
- package/dist/client/_nuxt/runtime-configs-d7k4bkrd.js +1 -0
- package/dist/client/_nuxt/server-discovery-oj0jqj0l.js +1 -0
- package/dist/client/_nuxt/server-route-inputs.vue-gdluyobn.js +1 -0
- package/dist/client/_nuxt/server-routes-i112gca3.js +9 -0
- package/dist/client/_nuxt/server-tasks-k1t7k6gy.js +1 -0
- package/dist/client/_nuxt/settings-dtmgkchg.js +1 -0
- package/dist/client/_nuxt/stacktrace-list.vue-hpi8ade8.js +1 -0
- package/dist/client/_nuxt/{state-components-kha5xa3m.js → state-components-b144ao2u.js} +1 -1
- package/dist/client/_nuxt/state-editor.vue-nqaru57v.js +1 -0
- package/dist/client/_nuxt/state-modules-f3x35nbf.js +1 -0
- package/dist/client/_nuxt/storage-dbzd2l6w.js +1 -0
- package/dist/client/_nuxt/terminals-inqu8q8z.js +1 -0
- package/dist/client/_nuxt/timeline-i5b4nf9n.js +31 -0
- package/dist/client/_nuxt/{unocss-runtime-cdytntxi.js → unocss-runtime-g9jktwmb.js} +1 -1
- package/dist/client/_nuxt/vendor/json-editor-vue-nstwj98r.js +3857 -0
- package/dist/client/_nuxt/vendor/quicktype-core-o057hwfl.js +1007 -0
- package/dist/client/_nuxt/vendor/{shiki-imfwxqoq.js → shiki-jxvjmls6.js} +10 -10
- package/dist/client/_nuxt/vendor/unocss-eh8khx5b.js +3 -0
- package/dist/client/_nuxt/vendor/vis-je6lvt05.js +132 -0
- package/dist/client/_nuxt/vendor/xterm-elw8536o.js +9 -0
- package/dist/client/_nuxt/virtual-files-l3u2jl70.js +1 -0
- package/dist/client/_nuxt/{vue-devtools-fvy4oij0.js → vue-devtools-b4i2wj6b.js} +1 -1
- package/dist/client/_nuxt/vue-virtual-scroller.esm-kqx3l34g.js +2 -0
- package/dist/client/discovery/index.html +9 -9
- package/dist/client/index.html +23 -23
- package/dist/module.json +3 -3
- package/dist/webcomponents/index.d.mts +2 -1
- package/dist/webcomponents/index.mjs +43 -29
- package/package.json +37 -37
- package/dist/client/_nuxt/__blank-n1wcnoye.js +0 -1
- package/dist/client/_nuxt/analyze-build-jh7bur04.js +0 -1
- package/dist/client/_nuxt/assets-n9yof1w5.js +0 -16
- package/dist/client/_nuxt/builds/meta/41596d10-5c26-42ef-abf5-f8fc005365de.json +0 -1
- package/dist/client/_nuxt/code-diff.vue-faqqiiv0.js +0 -8
- package/dist/client/_nuxt/code-snippets.vue-jst45uux.js +0 -1
- package/dist/client/_nuxt/components-ldu5jgdq.js +0 -1
- package/dist/client/_nuxt/composable-item.vue-ohpuhwbn.js +0 -1
- package/dist/client/_nuxt/custom-_name_-k8t39z0l.js +0 -1
- package/dist/client/_nuxt/data-schema-button.vue-kuz5pkek.js +0 -1
- package/dist/client/_nuxt/data-schema-drawer-eu0b8eyz.js +0 -2
- package/dist/client/_nuxt/debug-nq7q262k.js +0 -1
- package/dist/client/_nuxt/duration-display.vue-mr4ha0rw.js +0 -1
- package/dist/client/_nuxt/error-404-pdqa4my4.js +0 -1
- package/dist/client/_nuxt/error-404.css-kgnrxm6x.css +0 -1
- package/dist/client/_nuxt/error-500.css-bay4acf7.css +0 -1
- package/dist/client/_nuxt/filepath-item.vue-f9nq4lw8.js +0 -1
- package/dist/client/_nuxt/full-o52oqsg9.js +0 -1
- package/dist/client/_nuxt/help-fab.vue-d36s6htl.js +0 -1
- package/dist/client/_nuxt/hooks-fmf6z8je.js +0 -1
- package/dist/client/_nuxt/imports-lvrnrb6f.js +0 -1
- package/dist/client/_nuxt/index-g1j28rtv.js +0 -1
- package/dist/client/_nuxt/launch-page.vue-b53bqs6b.js +0 -1
- package/dist/client/_nuxt/mihtqtxa.js +0 -15
- package/dist/client/_nuxt/modules-f4arv9x2.js +0 -1
- package/dist/client/_nuxt/nbadge-e9vkbxgo.js +0 -1
- package/dist/client/_nuxt/ncheckbox.vue-de0732k3.js +0 -1
- package/dist/client/_nuxt/ncode-block.vue-ctkw4rc7.js +0 -2
- package/dist/client/_nuxt/ndrawer.vue-gsquq1a1.js +0 -1
- package/dist/client/_nuxt/ndropdown.vue-fqgjhyuy.js +0 -1
- package/dist/client/_nuxt/nicon-title.vue-ejocqf9t.js +0 -1
- package/dist/client/_nuxt/nlink.vue-k5yoz8g1.js +0 -1
- package/dist/client/_nuxt/nmarkdown.vue-mk2gi3ky.js +0 -1
- package/dist/client/_nuxt/nnavbar.vue-chg3j9po.js +0 -1
- package/dist/client/_nuxt/none-dzzbxolm.js +0 -1
- package/dist/client/_nuxt/nsection-block-d2034e4h.js +0 -1
- package/dist/client/_nuxt/nselect-tabs.vue-7oit640i.js +0 -1
- package/dist/client/_nuxt/nselect.vue-gbkqq9mb.js +0 -1
- package/dist/client/_nuxt/nswitch.vue-bpoo3j7g.js +0 -1
- package/dist/client/_nuxt/open-graph-37xc8fq7.js +0 -3
- package/dist/client/_nuxt/overview-eaaffh3x.js +0 -1
- package/dist/client/_nuxt/pages-lx41nkfl.js +0 -1
- package/dist/client/_nuxt/payload-cx4l3bfg.js +0 -1
- package/dist/client/_nuxt/pinia-pa6ub2uf.js +0 -1
- package/dist/client/_nuxt/plugins-ilcdh0dk.js +0 -1
- package/dist/client/_nuxt/render-tree-n6odibo3.js +0 -1
- package/dist/client/_nuxt/runtime-configs-eovx1kqw.js +0 -1
- package/dist/client/_nuxt/server-discovery-o8qz5mby.js +0 -1
- package/dist/client/_nuxt/server-route-inputs.vue-j0srlwil.js +0 -1
- package/dist/client/_nuxt/server-routes-czb56glb.js +0 -9
- package/dist/client/_nuxt/server-tasks-nec1alq9.js +0 -1
- package/dist/client/_nuxt/settings-jw8zr1wu.js +0 -1
- package/dist/client/_nuxt/stacktrace-list.vue-h9snzu77.js +0 -1
- package/dist/client/_nuxt/state-editor.vue-wk1rth22.js +0 -1
- package/dist/client/_nuxt/state-modules-l9tloo2i.js +0 -1
- package/dist/client/_nuxt/storage-o8cxn7ow.js +0 -1
- package/dist/client/_nuxt/terminals-mczpzkx9.js +0 -1
- package/dist/client/_nuxt/timeline-bko2l6r7.js +0 -31
- package/dist/client/_nuxt/vendor/json-editor-vue-m9gzt21j.js +0 -3869
- package/dist/client/_nuxt/vendor/quicktype-core-dsrweb93.js +0 -1007
- package/dist/client/_nuxt/vendor/unocss-oyl7opas.js +0 -2
- package/dist/client/_nuxt/vendor/vis-n7jjo36l.js +0 -89
- package/dist/client/_nuxt/vendor/xterm-dbpzgj7s.js +0 -9
- package/dist/client/_nuxt/virtual-files-o6fg0gga.js +0 -1
- package/dist/client/_nuxt/vue-virtual-scroller.esm-k5helfir.js +0 -2
package/dist/client/index.html
CHANGED
|
@@ -1,29 +1,29 @@
|
|
|
1
1
|
<!DOCTYPE html><html><head><meta charset="utf-8">
|
|
2
2
|
<meta name="viewport" content="width=device-width, initial-scale=1">
|
|
3
|
-
<link rel="stylesheet" href="/__NUXT_DEVTOOLS_BASE__/_nuxt/entry.css-
|
|
3
|
+
<link rel="stylesheet" href="/__NUXT_DEVTOOLS_BASE__/_nuxt/entry.css-ebiz9nsw.css" crossorigin>
|
|
4
4
|
<link rel="stylesheet" href="/__NUXT_DEVTOOLS_BASE__/_nuxt/vendor/json-editor-vue.css-mqq5uooj.css" crossorigin>
|
|
5
5
|
<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-
|
|
8
|
-
<link rel="modulepreload" as="script" crossorigin href="/__NUXT_DEVTOOLS_BASE__/_nuxt/vendor/
|
|
9
|
-
<link rel="modulepreload" as="script" crossorigin href="/__NUXT_DEVTOOLS_BASE__/_nuxt/vendor/
|
|
6
|
+
<link rel="modulepreload" as="script" crossorigin href="/__NUXT_DEVTOOLS_BASE__/_nuxt/e1928lvz.js">
|
|
7
|
+
<link rel="modulepreload" as="script" crossorigin href="/__NUXT_DEVTOOLS_BASE__/_nuxt/vendor/json-editor-vue-nstwj98r.js">
|
|
8
|
+
<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-eh8khx5b.js">
|
|
10
10
|
<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-
|
|
11
|
+
<link rel="prefetch" as="script" crossorigin href="/__NUXT_DEVTOOLS_BASE__/_nuxt/default-er15ytcq.js">
|
|
12
|
+
<link rel="prefetch" as="script" crossorigin href="/__NUXT_DEVTOOLS_BASE__/_nuxt/full-eq6zlj3s.js">
|
|
13
|
+
<link rel="prefetch" as="script" crossorigin href="/__NUXT_DEVTOOLS_BASE__/_nuxt/none-giyl4tlf.js">
|
|
14
14
|
<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:"
|
|
15
|
+
<link rel="prefetch" as="script" crossorigin href="/__NUXT_DEVTOOLS_BASE__/_nuxt/data-schema-drawer-c7c346do.js">
|
|
16
|
+
<link rel="prefetch" as="script" crossorigin href="/__NUXT_DEVTOOLS_BASE__/_nuxt/nselect.vue-h7dqrznf.js">
|
|
17
|
+
<link rel="prefetch" as="script" crossorigin href="/__NUXT_DEVTOOLS_BASE__/_nuxt/nswitch.vue-ihk2zmam.js">
|
|
18
|
+
<link rel="prefetch" as="script" crossorigin href="/__NUXT_DEVTOOLS_BASE__/_nuxt/ndropdown.vue-lqitnb0r.js">
|
|
19
|
+
<link rel="prefetch" as="script" crossorigin href="/__NUXT_DEVTOOLS_BASE__/_nuxt/ncode-block.vue-j1bpwykw.js">
|
|
20
|
+
<link rel="prefetch" as="script" crossorigin href="/__NUXT_DEVTOOLS_BASE__/_nuxt/client-hkqvtzyx.js">
|
|
21
|
+
<link rel="prefetch" as="script" crossorigin href="/__NUXT_DEVTOOLS_BASE__/_nuxt/ndrawer.vue-mt6mb0ol.js">
|
|
22
|
+
<link rel="prefetch" as="script" crossorigin href="/__NUXT_DEVTOOLS_BASE__/_nuxt/vendor/quicktype-core-o057hwfl.js">
|
|
23
|
+
<link rel="prefetch" as="script" crossorigin href="/__NUXT_DEVTOOLS_BASE__/_nuxt/unocss-runtime-g9jktwmb.js">
|
|
24
|
+
<link rel="prefetch" as="style" crossorigin href="/__NUXT_DEVTOOLS_BASE__/_nuxt/error-404.css-z2gtwy9t.css">
|
|
25
|
+
<link rel="prefetch" as="script" crossorigin href="/__NUXT_DEVTOOLS_BASE__/_nuxt/error-404-eq7j2f69.js">
|
|
26
|
+
<link rel="prefetch" as="style" crossorigin href="/__NUXT_DEVTOOLS_BASE__/_nuxt/error-500.css-liy0brxy.css">
|
|
27
|
+
<link rel="prefetch" as="script" crossorigin href="/__NUXT_DEVTOOLS_BASE__/_nuxt/error-500-g4f9ioxi.js">
|
|
28
|
+
<script type="module" src="/__NUXT_DEVTOOLS_BASE__/_nuxt/e1928lvz.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},1755823299372,false]</script>
|
|
29
|
+
<script>window.__NUXT__={};window.__NUXT__.config={public:{},app:{baseURL:"/__NUXT_DEVTOOLS_BASE__/",buildId:"4d84ec87-f2c3-4b83-8664-cdcbe5c3aa91",buildAssetsDir:"/_nuxt/",cdnURL:""}}</script></body></html>
|
package/dist/module.json
CHANGED
|
@@ -16,4 +16,5 @@ declare const NuxtDevtoolsInspectPanel: VueElementConstructor<{
|
|
|
16
16
|
props: NuxtDevToolsInspectorProps;
|
|
17
17
|
}>;
|
|
18
18
|
|
|
19
|
-
export {
|
|
19
|
+
export { NuxtDevtoolsFrame, NuxtDevtoolsInspectPanel };
|
|
20
|
+
export type { NuxtDevToolsInspectorProps };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { isRef, toRefs as toRefs$1, customRef, toValue, onMounted, nextTick, watch, getCurrentScope, onScopeDispose, getCurrentInstance, shallowRef, computed, unref, ref, defineComponent, mergeModels, useModel, watchEffect, withDirectives, createElementBlock, openBlock, createCommentVNode, createElementVNode, withModifiers, vShow, reactive, normalizeClass, normalizeStyle, toDisplayString, Fragment, createVNode, defineCustomElement
|
|
1
|
+
import { isRef, toRefs as toRefs$1, customRef, toValue, onMounted, nextTick, watch, getCurrentScope, onScopeDispose, getCurrentInstance, shallowRef, computed, unref, ref, defineComponent, mergeModels, useModel, watchEffect, withDirectives, createElementBlock, openBlock, createCommentVNode, createElementVNode, withModifiers, vShow, reactive, useTemplateRef, normalizeClass, normalizeStyle, toDisplayString, Fragment, createVNode, defineCustomElement } from 'vue';
|
|
2
2
|
|
|
3
3
|
const css = `*{box-sizing:border-box;border-style:solid;border-width:0;border-color:var(--un-default-border-color,#e5e7eb)}:before{box-sizing:border-box;border-style:solid;border-width:0;border-color:var(--un-default-border-color,#e5e7eb)}:after{box-sizing:border-box;border-style:solid;border-width:0;border-color:var(--un-default-border-color,#e5e7eb)}:before{--un-content:""}:after{--un-content:""}html{-webkit-text-size-adjust:100%;tab-size:4;font-feature-settings:normal;font-variation-settings:normal;-webkit-tap-highlight-color:transparent;font-family:ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Noto Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji;line-height:1.5}:host{-webkit-text-size-adjust:100%;tab-size:4;font-feature-settings:normal;font-variation-settings:normal;-webkit-tap-highlight-color:transparent;font-family:ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Noto Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji;line-height:1.5}body{line-height:inherit;margin:0}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,samp,pre{font-feature-settings:normal;font-variation-settings:normal;font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;font-size:1em}small{font-size:80%}sub,sup{vertical-align:baseline;font-size:75%;line-height:0;position:relative}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}button,input,optgroup,select,textarea{font-feature-settings:inherit;font-variation-settings:inherit;font-family:inherit;font-size:100%;font-weight:inherit;line-height:inherit;color:inherit;margin:0;padding:0}button,select{text-transform:none}button{-webkit-appearance:button;background-color:transparent;background-image:none}[type=button]{-webkit-appearance:button;background-color:transparent;background-image:none}[type=reset]{-webkit-appearance:button;background-color:transparent;background-image:none}[type=submit]{-webkit-appearance:button;background-color:transparent;background-image:none}:-moz-focusring{outline:auto}:-moz-ui-invalid{box-shadow:none}progress{vertical-align:baseline}::-webkit-inner-spin-button{height:auto}::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}summary{display:list-item}blockquote,dl,dd,h1,h2,h3,h4,h5,h6,hr,figure,p,pre{margin:0}fieldset{margin:0;padding:0}legend{padding:0}ol,ul,menu{margin:0;padding:0;list-style:none}dialog{padding:0}textarea{resize:vertical}input::placeholder{opacity:1;color:#9ca3af}textarea::placeholder{opacity:1;color:#9ca3af}button{cursor:pointer}[role=button]{cursor:pointer}:disabled{cursor:default}img,svg,video,canvas,audio,iframe,embed,object{vertical-align:middle;display:block}img,video{max-width:100%;height:auto}[hidden]:where(:not([hidden=until-found])){display:none}:root{--un-text-opacity:100%}@property --nuxt-devtools-inspect-border-angle{syntax:"<angle>";inherits:false;initial-value:90deg}.nuxt-devtools-inspect-running-border{filter:blur(10px);--nuxt-devtools-inspect-border-angle:0deg;background:conic-gradient(from var(--nuxt-devtools-inspect-border-angle),#00dc82,#00e6e8,#42e200,#0086e2,#00dc82)border-box;-webkit-mask:linear-gradient(#fff 0,#fff 0) padding-box,linear-gradient(#fff 0,#fff 0);-webkit-mask-composite:destination-out;transition:all .5s;animation:1s linear infinite color-rotate-background;mask-image:linear-gradient(#fff 0,#fff 0),linear-gradient(#fff 0,#fff 0);mask-position:0 0,0 0;mask-size:auto,auto;mask-repeat:repeat,repeat;mask-clip:padding-box,border-box;mask-origin:padding-box,border-box;mask-composite:exclude;mask-mode:match-source,match-source}.nuxt-devtools-inspect-neon{background-image:linear-gradient(90deg,#00dc82,#00e6e8,#42e200,#00dc82,#00e6e8,#42e200,#00dc82,#00e6e8,#42e200);background-position:0;background-size:400% 400%}.nuxt-devtools-inspect-neon.running{animation:3s linear infinite neon-background}@keyframes neon-background{0%{background-position:0%}50%{background-position:100%}to{background-position:0%}}.nuxt-devtools-frame{z-index:2147483645;-webkit-font-smoothing:antialiased;width:100%;height:100%;position:fixed}.nuxt-devtools-frame iframe{background:var(--nuxt-devtools-widget-bg);border:1px solid rgba(125,125,125,.2);-webkit-border-radius:10px;border-radius:10px;outline:none;width:100%;height:100%}.nuxt-devtools-resize-handle-horizontal{cursor:ns-resize;-webkit-border-radius:5px;border-radius:5px;height:10px;margin:-5px 0;position:absolute;left:6px;right:6px}.nuxt-devtools-resize-handle-vertical{cursor:ew-resize;-webkit-border-radius:5px;border-radius:5px;width:10px;margin:0 -5px;position:absolute;top:6px;bottom:0}.nuxt-devtools-resize-handle-corner{-webkit-border-radius:6px;border-radius:6px;width:14px;height:14px;margin:-6px;position:absolute}.nuxt-devtools-resize-handle:hover{background:rgba(125,125,125,.1)}#nuxt-devtools-anchor{z-index:2147483645;transform-origin:50%;box-sizing:border-box;width:0;font-family:Arial,Helvetica,sans-serif;position:fixed;transform:translate(-50%,-50%)rotate(0);font-size:15px!important}#nuxt-devtools-anchor *{box-sizing:border-box}#nuxt-devtools-anchor button{cursor:pointer;color:inherit;background:0 0;border:none;outline:none;margin:0;padding:0}#nuxt-devtools-anchor .nuxt-devtools-label{align-items:center;justify-items:center;gap:3px;padding:0 7px 0 8px;font-size:.8em;line-height:1em;display:flex}#nuxt-devtools-anchor .nuxt-devtools-label .nuxt-devtools-label-main{opacity:.8;white-space:nowrap}#nuxt-devtools-anchor .nuxt-devtools-label .nuxt-devtools-label-secondary{opacity:.5;white-space:nowrap;font-size:.8em;line-height:.6em}#nuxt-devtools-anchor .nuxt-devtools-nuxt-button{flex:none}#nuxt-devtools-anchor.nuxt-devtools-vertical .nuxt-devtools-nuxt-button{transform:rotate(-90deg)}#nuxt-devtools-anchor.nuxt-devtools-vertical .nuxt-devtools-label{flex-direction:column;gap:2px;padding:0 10px;transform:rotate(-90deg)}#nuxt-devtools-anchor .nuxt-devtools-panel{border:1px solid var(--nuxt-devtools-widget-border);background-color:var(--nuxt-devtools-widget-bg);backdrop-filter:blur(10px);height:30px;color:var(--nuxt-devtools-widget-fg);box-shadow:2px 2px 8px var(--nuxt-devtools-widget-shadow);user-select:none;touch-action:none;-webkit-border-radius:100px;border-radius:100px;justify-content:flex-start;align-items:center;gap:2px;max-width:150px;padding:2px 2px 2px 2.5px;transition:all .6s,max-width .6s,padding .5s,transform .4s,opacity .2s;display:flex;position:absolute;top:0;left:0;overflow:hidden;transform:translate(-50%,-50%)}#nuxt-devtools-anchor.nuxt-devtools-hide .nuxt-devtools-panel{max-width:32px;padding:2px 0}#nuxt-devtools-anchor.nuxt-devtools-vertical .nuxt-devtools-panel{box-shadow:2px -2px 8px var(--nuxt-devtools-widget-shadow);transform:translate(-50%,-50%)rotate(90deg)}#nuxt-devtools-anchor .nuxt-devtools-panel-content{transition:opacity .4s}#nuxt-devtools-anchor.nuxt-devtools-hide .nuxt-devtools-panel-content{opacity:0}#nuxt-devtools-anchor .nuxt-devtools-icon-button{opacity:.8;border-width:0;-webkit-border-radius:100%;border-radius:100%;justify-content:center;align-items:center;width:30px;height:30px;transition:opacity .2s ease-in-out;display:flex}#nuxt-devtools-anchor .nuxt-devtools-icon-button:hover{opacity:1}#nuxt-devtools-anchor:hover .nuxt-devtools-glowing{opacity:.6}#nuxt-devtools-anchor .nuxt-devtools-glowing{opacity:0;pointer-events:none;z-index:-1;filter:blur(60px);background-image:linear-gradient(45deg,#00dc82,#00dc82,#00dc82);-webkit-border-radius:9999px;border-radius:9999px;width:160px;height:160px;transition:all 1s;position:absolute;top:0;left:0;transform:translate(-50%,-50%)}@media print{#nuxt-devtools-anchor{display:none}}*{--un-rotate:0;--un-rotate-x:0;--un-rotate-y:0;--un-rotate-z:0;--un-scale-x:1;--un-scale-y:1;--un-scale-z:1;--un-skew-x:0;--un-skew-y:0;--un-translate-x:0;--un-translate-y:0;--un-translate-z:0;--un-pan-x: ;--un-pan-y: ;--un-pinch-zoom: ;--un-scroll-snap-strictness:proximity;--un-ordinal: ;--un-slashed-zero: ;--un-numeric-figure: ;--un-numeric-spacing: ;--un-numeric-fraction: ;--un-border-spacing-x:0;--un-border-spacing-y:0;--un-ring-offset-shadow:0 0 transparent;--un-ring-shadow:0 0 transparent;--un-shadow-inset: ;--un-shadow:0 0 transparent;--un-ring-inset: ;--un-ring-offset-width:0px;--un-ring-offset-color:#fff;--un-ring-width:0px;--un-ring-color:rgba(147,197,253,.5);--un-blur: ;--un-brightness: ;--un-contrast: ;--un-drop-shadow: ;--un-grayscale: ;--un-hue-rotate: ;--un-invert: ;--un-saturate: ;--un-sepia: ;--un-backdrop-blur: ;--un-backdrop-brightness: ;--un-backdrop-contrast: ;--un-backdrop-grayscale: ;--un-backdrop-hue-rotate: ;--un-backdrop-invert: ;--un-backdrop-opacity: ;--un-backdrop-saturate: ;--un-backdrop-sepia: }:before{--un-rotate:0;--un-rotate-x:0;--un-rotate-y:0;--un-rotate-z:0;--un-scale-x:1;--un-scale-y:1;--un-scale-z:1;--un-skew-x:0;--un-skew-y:0;--un-translate-x:0;--un-translate-y:0;--un-translate-z:0;--un-pan-x: ;--un-pan-y: ;--un-pinch-zoom: ;--un-scroll-snap-strictness:proximity;--un-ordinal: ;--un-slashed-zero: ;--un-numeric-figure: ;--un-numeric-spacing: ;--un-numeric-fraction: ;--un-border-spacing-x:0;--un-border-spacing-y:0;--un-ring-offset-shadow:0 0 transparent;--un-ring-shadow:0 0 transparent;--un-shadow-inset: ;--un-shadow:0 0 transparent;--un-ring-inset: ;--un-ring-offset-width:0px;--un-ring-offset-color:#fff;--un-ring-width:0px;--un-ring-color:rgba(147,197,253,.5);--un-blur: ;--un-brightness: ;--un-contrast: ;--un-drop-shadow: ;--un-grayscale: ;--un-hue-rotate: ;--un-invert: ;--un-saturate: ;--un-sepia: ;--un-backdrop-blur: ;--un-backdrop-brightness: ;--un-backdrop-contrast: ;--un-backdrop-grayscale: ;--un-backdrop-hue-rotate: ;--un-backdrop-invert: ;--un-backdrop-opacity: ;--un-backdrop-saturate: ;--un-backdrop-sepia: }:after{--un-rotate:0;--un-rotate-x:0;--un-rotate-y:0;--un-rotate-z:0;--un-scale-x:1;--un-scale-y:1;--un-scale-z:1;--un-skew-x:0;--un-skew-y:0;--un-translate-x:0;--un-translate-y:0;--un-translate-z:0;--un-pan-x: ;--un-pan-y: ;--un-pinch-zoom: ;--un-scroll-snap-strictness:proximity;--un-ordinal: ;--un-slashed-zero: ;--un-numeric-figure: ;--un-numeric-spacing: ;--un-numeric-fraction: ;--un-border-spacing-x:0;--un-border-spacing-y:0;--un-ring-offset-shadow:0 0 transparent;--un-ring-shadow:0 0 transparent;--un-shadow-inset: ;--un-shadow:0 0 transparent;--un-ring-inset: ;--un-ring-offset-width:0px;--un-ring-offset-color:#fff;--un-ring-width:0px;--un-ring-color:rgba(147,197,253,.5);--un-blur: ;--un-brightness: ;--un-contrast: ;--un-drop-shadow: ;--un-grayscale: ;--un-hue-rotate: ;--un-invert: ;--un-saturate: ;--un-sepia: ;--un-backdrop-blur: ;--un-backdrop-brightness: ;--un-backdrop-contrast: ;--un-backdrop-grayscale: ;--un-backdrop-hue-rotate: ;--un-backdrop-invert: ;--un-backdrop-opacity: ;--un-backdrop-saturate: ;--un-backdrop-sepia: }::backdrop{--un-rotate:0;--un-rotate-x:0;--un-rotate-y:0;--un-rotate-z:0;--un-scale-x:1;--un-scale-y:1;--un-scale-z:1;--un-skew-x:0;--un-skew-y:0;--un-translate-x:0;--un-translate-y:0;--un-translate-z:0;--un-pan-x: ;--un-pan-y: ;--un-pinch-zoom: ;--un-scroll-snap-strictness:proximity;--un-ordinal: ;--un-slashed-zero: ;--un-numeric-figure: ;--un-numeric-spacing: ;--un-numeric-fraction: ;--un-border-spacing-x:0;--un-border-spacing-y:0;--un-ring-offset-shadow:0 0 transparent;--un-ring-shadow:0 0 transparent;--un-shadow-inset: ;--un-shadow:0 0 transparent;--un-ring-inset: ;--un-ring-offset-width:0px;--un-ring-offset-color:#fff;--un-ring-width:0px;--un-ring-color:rgba(147,197,253,.5);--un-blur: ;--un-brightness: ;--un-contrast: ;--un-drop-shadow: ;--un-grayscale: ;--un-hue-rotate: ;--un-invert: ;--un-saturate: ;--un-sepia: ;--un-backdrop-blur: ;--un-backdrop-brightness: ;--un-backdrop-contrast: ;--un-backdrop-grayscale: ;--un-backdrop-hue-rotate: ;--un-backdrop-invert: ;--un-backdrop-opacity: ;--un-backdrop-saturate: ;--un-backdrop-sepia: }.i-ph-arrow-bend-left-up-duotone{--un-icon:url("data:image/svg+xml;utf8,%3Csvg viewBox='0 0 256 256' width='1em' height='1em' xmlns='http://www.w3.org/2000/svg' %3E%3Cg fill='currentColor'%3E%3Cpath d='M152 80H56l48-48Z' opacity='.2'/%3E%3Cpath d='M200 216a88.1 88.1 0 0 1-88-88V88h40a8 8 0 0 0 5.66-13.66l-48-48a8 8 0 0 0-11.32 0l-48 48A8 8 0 0 0 56 88h40v40a104.11 104.11 0 0 0 104 104a8 8 0 0 0 0-16M104 43.31L132.69 72H75.31Z'/%3E%3C/g%3E%3C/svg%3E");-webkit-mask:var(--un-icon)no-repeat;mask:var(--un-icon)no-repeat;color:inherit;background-color:currentColor;width:1em;height:1em;mask-size:100% 100%}.i-ph-arrow-up-right-light{--un-icon:url("data:image/svg+xml;utf8,%3Csvg viewBox='0 0 256 256' width='1em' height='1em' xmlns='http://www.w3.org/2000/svg' %3E%3Cpath fill='currentColor' d='M198 64v104a6 6 0 0 1-12 0V78.48L68.24 196.24a6 6 0 0 1-8.48-8.48L177.52 70H88a6 6 0 0 1 0-12h104a6 6 0 0 1 6 6'/%3E%3C/svg%3E");-webkit-mask:var(--un-icon)no-repeat;mask:var(--un-icon)no-repeat;color:inherit;background-color:currentColor;width:1em;height:1em;mask-size:100% 100%}.i-ph-x{--un-icon:url("data:image/svg+xml;utf8,%3Csvg viewBox='0 0 256 256' width='1em' height='1em' xmlns='http://www.w3.org/2000/svg' %3E%3Cpath fill='currentColor' d='M205.66 194.34a8 8 0 0 1-11.32 11.32L128 139.31l-66.34 66.35a8 8 0 0 1-11.32-11.32L116.69 128L50.34 61.66a8 8 0 0 1 11.32-11.32L128 116.69l66.34-66.35a8 8 0 0 1 11.32 11.32L139.31 128Z'/%3E%3C/svg%3E");-webkit-mask:var(--un-icon)no-repeat;mask:var(--un-icon)no-repeat;color:inherit;background-color:currentColor;width:1em;height:1em;mask-size:100% 100%}.container{width:100%}.bg-glass{--un-backdrop-blur:blur(5px);backdrop-filter:var(--un-backdrop-blur)var(--un-backdrop-brightness)var(--un-backdrop-contrast)var(--un-backdrop-grayscale)var(--un-backdrop-hue-rotate)var(--un-backdrop-invert)var(--un-backdrop-opacity)var(--un-backdrop-saturate)var(--un-backdrop-sepia);background-color:rgba(255,255,255,.75)}.color-base{--un-text-opacity:1;color:rgba(38,38,38,var(--un-text-opacity))}.ring-base{--un-ring-opacity:.13;--un-ring-color:rgba(136,136,136,var(--un-ring-opacity))}@media (prefers-color-scheme:dark){.bg-glass{background-color:rgba(17,17,17,.75)}.color-base{--un-text-opacity:1;color:rgba(229,229,229,var(--un-text-opacity))}}@media (min-width:640px){.container{max-width:640px}}@media (min-width:768px){.container{max-width:768px}}@media (min-width:1024px){.container{max-width:1024px}}@media (min-width:1280px){.container{max-width:1280px}}@media (min-width:1536px){.container{max-width:1536px}}.pointer-events-none{pointer-events:none}.disabled\\:pointer-events-none:disabled{pointer-events:none}.absolute{position:absolute}.fixed{position:fixed}.relative{position:relative}.inset-0{top:0;bottom:0;left:0;right:0}.z-10{z-index:10}.z-9999999{z-index:9999999}.ms:not(:is(:lang(ae),:lang(ar),:lang(arc),:lang(bcc),:lang(bqi),:lang(ckb),:lang(dv),:lang(fa),:lang(glk),:lang(he),:lang(ku),:lang(mzn),:lang(nqo),:lang(pnb),:lang(ps),:lang(sd),:lang(ug),:lang(ur),:lang(yi))){margin-left:1rem}.ms:is(:lang(ae),:lang(ar),:lang(arc),:lang(bcc),:lang(bqi),:lang(ckb),:lang(dv),:lang(fa),:lang(glk),:lang(he),:lang(ku),:lang(mzn),:lang(nqo),:lang(pnb),:lang(ps),:lang(sd),:lang(ug),:lang(ur),:lang(yi)){margin-right:1rem}.mt--2{margin-top:-.5rem}.w-400px{width:400px}.flex{display:flex}.flex-auto{flex:auto}.flex-none{flex:none}.flex-col{flex-direction:column}.transform{transform:translateX(var(--un-translate-x))translateY(var(--un-translate-y))translateZ(var(--un-translate-z))rotate(var(--un-rotate))rotateX(var(--un-rotate-x))rotateY(var(--un-rotate-y))rotateZ(var(--un-rotate-z))skewX(var(--un-skew-x))skewY(var(--un-skew-y))scaleX(var(--un-scale-x))scaleY(var(--un-scale-y))scaleZ(var(--un-scale-z))}.resize{resize:both}.items-center{align-items:center}.gap-2{gap:.5rem}.of-hidden{overflow:hidden}.border-1\\.5{border-width:1.5px}.border-transparent{border-color:transparent}.rounded-lg{-webkit-border-radius:.5rem;border-radius:.5rem}.p2{padding:.5rem}.px{padding-left:1rem;padding-right:1rem}.text-lg{font-size:1.125rem;line-height:1.75rem}.text-sm{font-size:.875rem;line-height:1.25rem}.hover\\:text-green6:hover{--un-text-opacity:1;color:rgba(22,163,74,var(--un-text-opacity))}.font-mono{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace}.op0{opacity:0}.op100{opacity:1}.op50{opacity:.5}.hover\\:op100:hover{opacity:1}.disabled\\:op10\\!:disabled{opacity:.1!important}.shadow-lg{--un-shadow:var(--un-shadow-inset)0 10px 15px -3px var(--un-shadow-color,rgba(0,0,0,.1)),var(--un-shadow-inset)0 4px 6px -4px var(--un-shadow-color,rgba(0,0,0,.1));box-shadow:var(--un-ring-offset-shadow),var(--un-ring-shadow),var(--un-shadow)}.ring-1{--un-ring-width:1px;--un-ring-offset-shadow:var(--un-ring-inset)0 0 0 var(--un-ring-offset-width)var(--un-ring-offset-color);--un-ring-shadow:var(--un-ring-inset)0 0 0 calc(var(--un-ring-width) + var(--un-ring-offset-width))var(--un-ring-color);box-shadow:var(--un-ring-offset-shadow),var(--un-ring-shadow),var(--un-shadow)}.backdrop-blur{--un-backdrop-blur:blur(8px);backdrop-filter:var(--un-backdrop-blur)var(--un-backdrop-brightness)var(--un-backdrop-contrast)var(--un-backdrop-grayscale)var(--un-backdrop-hue-rotate)var(--un-backdrop-invert)var(--un-backdrop-opacity)var(--un-backdrop-saturate)var(--un-backdrop-sepia)}.transition-opacity{transition-property:opacity;transition-duration:.15s;transition-timing-function:cubic-bezier(.4,0,.2,1)}.duration-200{transition-duration:.2s}.duration-300{transition-duration:.3s}.transition-none{transition:none}`;
|
|
4
4
|
|
|
@@ -82,6 +82,7 @@ function getLifeCycleTarget(target) {
|
|
|
82
82
|
return getCurrentInstance();
|
|
83
83
|
}
|
|
84
84
|
|
|
85
|
+
// @__NO_SIDE_EFFECTS__
|
|
85
86
|
function useDebounceFn(fn, ms = 200, options = {}) {
|
|
86
87
|
return createFilterWrapper(
|
|
87
88
|
debounceFilter(ms, options),
|
|
@@ -289,6 +290,7 @@ function onClickOutside(target, handler, options = {}) {
|
|
|
289
290
|
return stop;
|
|
290
291
|
}
|
|
291
292
|
|
|
293
|
+
// @__NO_SIDE_EFFECTS__
|
|
292
294
|
function useMounted() {
|
|
293
295
|
const isMounted = shallowRef(false);
|
|
294
296
|
const instance = getCurrentInstance();
|
|
@@ -300,6 +302,7 @@ function useMounted() {
|
|
|
300
302
|
return isMounted;
|
|
301
303
|
}
|
|
302
304
|
|
|
305
|
+
// @__NO_SIDE_EFFECTS__
|
|
303
306
|
function useSupported(callback) {
|
|
304
307
|
const isMounted = useMounted();
|
|
305
308
|
return computed(() => {
|
|
@@ -324,12 +327,12 @@ function useMutationObserver(target, callback, options = {}) {
|
|
|
324
327
|
return new Set(items);
|
|
325
328
|
});
|
|
326
329
|
const stopWatch = watch(
|
|
327
|
-
|
|
328
|
-
(
|
|
330
|
+
targets,
|
|
331
|
+
(newTargets) => {
|
|
329
332
|
cleanup();
|
|
330
|
-
if (isSupported.value &&
|
|
333
|
+
if (isSupported.value && newTargets.size) {
|
|
331
334
|
observer = new MutationObserver(callback);
|
|
332
|
-
|
|
335
|
+
newTargets.forEach((el) => observer.observe(el, mutationOptions));
|
|
333
336
|
}
|
|
334
337
|
},
|
|
335
338
|
{ immediate: true, flush: "post" }
|
|
@@ -917,11 +920,17 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
|
|
|
917
920
|
});
|
|
918
921
|
const safeArea = useScreenSafeArea();
|
|
919
922
|
const isSafari = navigator.userAgent.includes("Safari") && !navigator.userAgent.includes("Chrome");
|
|
923
|
+
function toNumber(value) {
|
|
924
|
+
const num = +value;
|
|
925
|
+
if (Number.isNaN(num))
|
|
926
|
+
return 0;
|
|
927
|
+
return num;
|
|
928
|
+
}
|
|
920
929
|
watchEffect(() => {
|
|
921
|
-
panelMargins.left =
|
|
922
|
-
panelMargins.top =
|
|
923
|
-
panelMargins.right =
|
|
924
|
-
panelMargins.bottom =
|
|
930
|
+
panelMargins.left = toNumber(safeArea.left.value) + 10;
|
|
931
|
+
panelMargins.top = toNumber(safeArea.top.value) + 10;
|
|
932
|
+
panelMargins.right = toNumber(safeArea.right.value) + 10;
|
|
933
|
+
panelMargins.bottom = toNumber(safeArea.bottom.value) + 10;
|
|
925
934
|
});
|
|
926
935
|
const vars = computed(() => {
|
|
927
936
|
const dark = props.client.app.colorMode.value === "dark";
|
|
@@ -932,10 +941,13 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
|
|
|
932
941
|
"--nuxt-devtools-widget-shadow": dark ? "rgba(0,0,0,0.3)" : "rgba(128,128,128,0.1)"
|
|
933
942
|
};
|
|
934
943
|
});
|
|
935
|
-
const frameBox =
|
|
936
|
-
const panelEl =
|
|
937
|
-
const anchorEl =
|
|
938
|
-
const windowSize = reactive({
|
|
944
|
+
const frameBox = useTemplateRef("frameBox");
|
|
945
|
+
const panelEl = useTemplateRef("panelEl");
|
|
946
|
+
const anchorEl = useTemplateRef("anchorEl");
|
|
947
|
+
const windowSize = reactive({
|
|
948
|
+
width: window.innerWidth,
|
|
949
|
+
height: window.innerHeight
|
|
950
|
+
});
|
|
939
951
|
const isDragging = ref(false);
|
|
940
952
|
const draggingOffset = reactive({ x: 0, y: 0 });
|
|
941
953
|
const mousePosition = reactive({ x: 0, y: 0 });
|
|
@@ -957,21 +969,23 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
|
|
|
957
969
|
useEventListener(window, "pointermove", (e) => {
|
|
958
970
|
if (!isDragging.value)
|
|
959
971
|
return;
|
|
960
|
-
const centerX =
|
|
961
|
-
const centerY =
|
|
972
|
+
const centerX = window.innerWidth / 2;
|
|
973
|
+
const centerY = window.innerHeight / 2;
|
|
962
974
|
const x = e.clientX - draggingOffset.x;
|
|
963
975
|
const y = e.clientY - draggingOffset.y;
|
|
976
|
+
if (Number.isNaN(x) || Number.isNaN(y))
|
|
977
|
+
return;
|
|
964
978
|
mousePosition.x = x;
|
|
965
979
|
mousePosition.y = y;
|
|
966
980
|
const deg = Math.atan2(y - centerY, x - centerX);
|
|
967
981
|
const HORIZONTAL_MARGIN = 70;
|
|
968
982
|
const TL = Math.atan2(0 - centerY + HORIZONTAL_MARGIN, 0 - centerX);
|
|
969
|
-
const TR = Math.atan2(0 - centerY + HORIZONTAL_MARGIN,
|
|
970
|
-
const BL = Math.atan2(
|
|
971
|
-
const BR = Math.atan2(
|
|
983
|
+
const TR = Math.atan2(0 - centerY + HORIZONTAL_MARGIN, window.innerWidth - centerX);
|
|
984
|
+
const BL = Math.atan2(window.innerHeight - HORIZONTAL_MARGIN - centerY, 0 - centerX);
|
|
985
|
+
const BR = Math.atan2(window.innerHeight - HORIZONTAL_MARGIN - centerY, window.innerWidth - centerX);
|
|
972
986
|
state.value.position = deg >= TL && deg <= TR ? "top" : deg >= TR && deg <= BR ? "right" : deg >= BR && deg <= BL ? "bottom" : "left";
|
|
973
|
-
state.value.left = snapToPoints(x /
|
|
974
|
-
state.value.top = snapToPoints(y /
|
|
987
|
+
state.value.left = snapToPoints(x / window.innerWidth * 100);
|
|
988
|
+
state.value.top = snapToPoints(y / window.innerHeight * 100);
|
|
975
989
|
});
|
|
976
990
|
useEventListener(window, "pointerup", () => {
|
|
977
991
|
isDragging.value = false;
|
|
@@ -1181,7 +1195,7 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
|
|
|
1181
1195
|
onMounted(() => {
|
|
1182
1196
|
bringUp();
|
|
1183
1197
|
});
|
|
1184
|
-
const __returned__ = { props, state, settings, millisecondToHumanreadable, panelMargins, safeArea, isSafari, SNAP_THRESHOLD, vars, frameBox, panelEl, anchorEl, windowSize, isDragging, draggingOffset, mousePosition, onPointerDown, snapToPoints, clamp, isHovering, isVertical, anchorPos, get _timer() {
|
|
1198
|
+
const __returned__ = { props, state, settings, millisecondToHumanreadable, panelMargins, safeArea, isSafari, toNumber, SNAP_THRESHOLD, vars, frameBox, panelEl, anchorEl, windowSize, isDragging, draggingOffset, mousePosition, onPointerDown, snapToPoints, clamp, isHovering, isVertical, anchorPos, get _timer() {
|
|
1185
1199
|
return _timer;
|
|
1186
1200
|
}, set _timer(v) {
|
|
1187
1201
|
_timer = v;
|
|
@@ -1243,7 +1257,7 @@ function _sfc_render$1(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
1243
1257
|
onClick: _cache[0] || (_cache[0] = ($event) => $props.client.devtools.toggle())
|
|
1244
1258
|
},
|
|
1245
1259
|
[
|
|
1246
|
-
(openBlock(), createElementBlock("svg", _hoisted_1$1, _cache[2] || (_cache[2] = [
|
|
1260
|
+
(openBlock(), createElementBlock("svg", _hoisted_1$1, [..._cache[2] || (_cache[2] = [
|
|
1247
1261
|
createElementVNode(
|
|
1248
1262
|
"path",
|
|
1249
1263
|
{
|
|
@@ -1254,7 +1268,7 @@ function _sfc_render$1(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
1254
1268
|
-1
|
|
1255
1269
|
/* CACHED */
|
|
1256
1270
|
)
|
|
1257
|
-
])))
|
|
1271
|
+
])]))
|
|
1258
1272
|
],
|
|
1259
1273
|
4
|
|
1260
1274
|
/* STYLE */
|
|
@@ -1314,7 +1328,7 @@ function _sfc_render$1(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
1314
1328
|
style: normalizeStyle([{ "height": "1.2em", "width": "1.2em", "opacity": "0.5" }, $props.client.inspector.isEnabled.value ? "opacity:1;color:#00dc82" : ""]),
|
|
1315
1329
|
viewBox: "0 0 24 24"
|
|
1316
1330
|
},
|
|
1317
|
-
_cache[3] || (_cache[3] = [
|
|
1331
|
+
[..._cache[3] || (_cache[3] = [
|
|
1318
1332
|
createElementVNode(
|
|
1319
1333
|
"g",
|
|
1320
1334
|
{
|
|
@@ -1336,7 +1350,7 @@ function _sfc_render$1(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
1336
1350
|
-1
|
|
1337
1351
|
/* CACHED */
|
|
1338
1352
|
)
|
|
1339
|
-
]),
|
|
1353
|
+
])],
|
|
1340
1354
|
4
|
|
1341
1355
|
/* STYLE */
|
|
1342
1356
|
))
|
|
@@ -1477,7 +1491,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
1477
1491
|
class: "flex items-center text-sm font-mono op50 disabled:pointer-events-none hover:text-green6 hover:op100 disabled:op10!",
|
|
1478
1492
|
disabled: !$props.props.hasParent,
|
|
1479
1493
|
onClick: $setup.selectParent
|
|
1480
|
-
}, _cache[0] || (_cache[0] = [
|
|
1494
|
+
}, [..._cache[0] || (_cache[0] = [
|
|
1481
1495
|
createElementVNode(
|
|
1482
1496
|
"div",
|
|
1483
1497
|
{ class: "i-ph-arrow-bend-left-up-duotone text-lg" },
|
|
@@ -1485,7 +1499,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
1485
1499
|
-1
|
|
1486
1500
|
/* CACHED */
|
|
1487
1501
|
)
|
|
1488
|
-
]), 8, _hoisted_2),
|
|
1502
|
+
])], 8, _hoisted_2),
|
|
1489
1503
|
createElementVNode("button", {
|
|
1490
1504
|
title: "Open in editor",
|
|
1491
1505
|
class: "flex items-center text-sm font-mono op50 hover:text-green6 hover:op100",
|
|
@@ -1517,7 +1531,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
1517
1531
|
title: "Close",
|
|
1518
1532
|
class: "flex-none op50 hover:op100",
|
|
1519
1533
|
onClick: $setup.close
|
|
1520
|
-
}, _cache[2] || (_cache[2] = [
|
|
1534
|
+
}, [..._cache[2] || (_cache[2] = [
|
|
1521
1535
|
createElementVNode(
|
|
1522
1536
|
"div",
|
|
1523
1537
|
{ class: "i-ph-x text-lg" },
|
|
@@ -1525,7 +1539,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
1525
1539
|
-1
|
|
1526
1540
|
/* CACHED */
|
|
1527
1541
|
)
|
|
1528
|
-
]))
|
|
1542
|
+
])])
|
|
1529
1543
|
],
|
|
1530
1544
|
512
|
|
1531
1545
|
/* NEED_PATCH */
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nuxt/devtools",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "2.6.
|
|
4
|
+
"version": "2.6.3",
|
|
5
5
|
"description": "The Nuxt DevTools gives you insights and transparency about your Nuxt App.",
|
|
6
6
|
"license": "MIT",
|
|
7
7
|
"homepage": "https://devtools.nuxt.com",
|
|
@@ -36,61 +36,61 @@
|
|
|
36
36
|
"vite": ">=6.0"
|
|
37
37
|
},
|
|
38
38
|
"dependencies": {
|
|
39
|
-
"@nuxt/kit": "^3.
|
|
39
|
+
"@nuxt/kit": "^3.18.1",
|
|
40
40
|
"@vue/devtools-core": "^7.7.7",
|
|
41
41
|
"@vue/devtools-kit": "^7.7.7",
|
|
42
|
-
"birpc": "^2.
|
|
42
|
+
"birpc": "^2.5.0",
|
|
43
43
|
"consola": "^3.4.2",
|
|
44
44
|
"destr": "^2.0.5",
|
|
45
45
|
"error-stack-parser-es": "^1.0.5",
|
|
46
46
|
"execa": "^8.0.1",
|
|
47
|
-
"fast-npm-meta": "^0.4.
|
|
48
|
-
"get-port-please": "^3.
|
|
47
|
+
"fast-npm-meta": "^0.4.6",
|
|
48
|
+
"get-port-please": "^3.2.0",
|
|
49
49
|
"hookable": "^5.5.3",
|
|
50
50
|
"image-meta": "^0.2.1",
|
|
51
51
|
"is-installed-globally": "^1.0.0",
|
|
52
|
-
"launch-editor": "^2.
|
|
53
|
-
"local-pkg": "^1.1.
|
|
52
|
+
"launch-editor": "^2.11.1",
|
|
53
|
+
"local-pkg": "^1.1.2",
|
|
54
54
|
"magicast": "^0.3.5",
|
|
55
|
-
"nypm": "^0.6.
|
|
55
|
+
"nypm": "^0.6.1",
|
|
56
56
|
"ohash": "^2.0.11",
|
|
57
57
|
"pathe": "^2.0.3",
|
|
58
58
|
"perfect-debounce": "^1.0.0",
|
|
59
|
-
"pkg-types": "^2.
|
|
59
|
+
"pkg-types": "^2.3.0",
|
|
60
60
|
"semver": "^7.7.2",
|
|
61
61
|
"simple-git": "^3.28.0",
|
|
62
62
|
"sirv": "^3.0.1",
|
|
63
63
|
"structured-clone-es": "^1.0.0",
|
|
64
64
|
"tinyglobby": "^0.2.14",
|
|
65
|
-
"vite-plugin-inspect": "^11.3.
|
|
65
|
+
"vite-plugin-inspect": "^11.3.2",
|
|
66
66
|
"vite-plugin-vue-tracer": "^1.0.0",
|
|
67
67
|
"which": "^5.0.0",
|
|
68
68
|
"ws": "^8.18.3",
|
|
69
|
-
"@nuxt/devtools-kit": "2.6.
|
|
70
|
-
"@nuxt/devtools-wizard": "2.6.
|
|
69
|
+
"@nuxt/devtools-kit": "2.6.3",
|
|
70
|
+
"@nuxt/devtools-wizard": "2.6.3"
|
|
71
71
|
},
|
|
72
72
|
"devDependencies": {
|
|
73
73
|
"@antfu/utils": "^9.2.0",
|
|
74
|
-
"@discoveryjs/cli": "^2.14.
|
|
74
|
+
"@discoveryjs/cli": "^2.14.4",
|
|
75
75
|
"@discoveryjs/discovery": "1.0.0-beta.92",
|
|
76
76
|
"@iconify-json/bxl": "^1.2.2",
|
|
77
|
-
"@iconify-json/carbon": "^1.2.
|
|
78
|
-
"@iconify-json/logos": "^1.2.
|
|
77
|
+
"@iconify-json/carbon": "^1.2.13",
|
|
78
|
+
"@iconify-json/logos": "^1.2.9",
|
|
79
79
|
"@iconify-json/ph": "^1.2.2",
|
|
80
80
|
"@iconify-json/ri": "^1.2.5",
|
|
81
|
-
"@iconify-json/simple-icons": "^1.2.
|
|
82
|
-
"@iconify-json/tabler": "^1.2.
|
|
81
|
+
"@iconify-json/simple-icons": "^1.2.48",
|
|
82
|
+
"@iconify-json/tabler": "^1.2.22",
|
|
83
83
|
"@nuxt/test-utils": "^3.19.2",
|
|
84
84
|
"@parcel/watcher": "^2.5.1",
|
|
85
85
|
"@types/markdown-it-link-attributes": "^3.0.5",
|
|
86
|
-
"@unhead/schema": "^2.0.
|
|
87
|
-
"@unocss/nuxt": "^66.
|
|
88
|
-
"@unocss/preset-icons": "^66.
|
|
89
|
-
"@unocss/preset-uno": "^66.
|
|
90
|
-
"@unocss/runtime": "^66.
|
|
86
|
+
"@unhead/schema": "^2.0.14",
|
|
87
|
+
"@unocss/nuxt": "^66.4.2",
|
|
88
|
+
"@unocss/preset-icons": "^66.4.2",
|
|
89
|
+
"@unocss/preset-uno": "^66.4.2",
|
|
90
|
+
"@unocss/runtime": "^66.4.2",
|
|
91
91
|
"@vitest/ui": "^3.2.4",
|
|
92
92
|
"@vue/devtools-applet": "^7.7.7",
|
|
93
|
-
"@vueuse/nuxt": "^13.
|
|
93
|
+
"@vueuse/nuxt": "^13.7.0",
|
|
94
94
|
"@xterm/addon-fit": "^0.10.0",
|
|
95
95
|
"@xterm/xterm": "^5.5.0",
|
|
96
96
|
"cronstrue": "^2.61.0",
|
|
@@ -102,25 +102,25 @@
|
|
|
102
102
|
"markdown-it": "^14.1.0",
|
|
103
103
|
"markdown-it-link-attributes": "^4.0.1",
|
|
104
104
|
"my-ua-parser": "^2.0.4",
|
|
105
|
-
"nitropack": "^2.
|
|
106
|
-
"nuxt": "^3.
|
|
105
|
+
"nitropack": "^2.12.4",
|
|
106
|
+
"nuxt": "^3.18.1",
|
|
107
107
|
"ofetch": "^1.4.1",
|
|
108
108
|
"quicktype-core": "22.0.0",
|
|
109
109
|
"scule": "^1.3.0",
|
|
110
|
-
"shiki": "^3.
|
|
111
|
-
"shiki-codegen": "^3.
|
|
112
|
-
"theme-vitesse": "^0.
|
|
113
|
-
"tsx": "^4.20.
|
|
114
|
-
"unimport": "^5.
|
|
115
|
-
"unocss": "^66.
|
|
116
|
-
"unplugin-vue": "^
|
|
110
|
+
"shiki": "^3.11.0",
|
|
111
|
+
"shiki-codegen": "^3.11.0",
|
|
112
|
+
"theme-vitesse": "^1.0.0",
|
|
113
|
+
"tsx": "^4.20.4",
|
|
114
|
+
"unimport": "^5.2.0",
|
|
115
|
+
"unocss": "^66.4.2",
|
|
116
|
+
"unplugin-vue": "^7.0.1",
|
|
117
117
|
"unplugin-vue-markdown": "^29.1.0",
|
|
118
|
-
"vanilla-jsoneditor": "^3.
|
|
119
|
-
"vis-data": "^
|
|
120
|
-
"vis-network": "^
|
|
121
|
-
"vue-tsc": "^
|
|
118
|
+
"vanilla-jsoneditor": "^3.8.0",
|
|
119
|
+
"vis-data": "^8.0.1",
|
|
120
|
+
"vis-network": "^10.0.1",
|
|
121
|
+
"vue-tsc": "^3.0.6",
|
|
122
122
|
"vue-virtual-scroller": "^2.0.0-beta.8",
|
|
123
|
-
"@nuxt/devtools": "2.6.
|
|
123
|
+
"@nuxt/devtools": "2.6.3"
|
|
124
124
|
},
|
|
125
125
|
"scripts": {
|
|
126
126
|
"build": "pnpm dev:prepare && pnpm build:module && pnpm build:discovery && pnpm build:client",
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{p as e,J as n,a3 as t}from"./vendor/json-editor-vue-m9gzt21j.js";const a={"h-screen":"","w-screen":"","bg-black":""},r=e({__name:"__blank",setup(c){return(o,s)=>(t(),n("div",a))}});export{r as default};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{b6 as Y,b7 as j,_ as P,r as S,E as R,aj as X,b8 as h,a6 as ee,a7 as ne,Z as te,a1 as le,i as ie,b9 as k,a8 as oe,Q as re,v as ue,q as se,M as ae}from"./mihtqtxa.js";import{_ as de}from"./filepath-item.vue-f9nq4lw8.js";import{p as U,q as V,k as F,J as u,a3 as i,S as e,U as x,F as p,ag as L,a5 as d,aa as v,u as y,a4 as a,ab as f,ac as D,ad as I,Z as E,V as B}from"./vendor/json-editor-vue-m9gzt21j.js";import{_ as me}from"./ncode-block.vue-ctkw4rc7.js";import{_ as pe}from"./ncheckbox.vue-de0732k3.js";import{_ as ve}from"./help-fab.vue-d36s6htl.js";import"./vendor/unocss-oyl7opas.js";import"./vendor/shiki-imfwxqoq.js";import"./client-oeqdl4pb.js";const fe={"h-full":"",grid:"~ rows-[max-content_1fr]"},_e={flex:"~ wrap","w-full":""},ce=["onClick"],ye={key:0,flex:"~ col gap-4 items-center justify-center",p4:""},be={grid:"~ cols-[30px_1fr] gap-x-2 gap-y-3 items-center justify-center","w-100":""},xe="/__nuxt_devtools__/client",ge=U({__name:"BuildAnalyzeDetails",props:{current:{},prev:{}},setup(N){const _=N,w=`${Y().app.baseURL.replace(xe,"/")}/__nuxt_devtools__/analyze/`.replace(/\/+/g,"/"),c=V(()=>{const l=[{name:"Overview",id:"overview"}];return _.current.features.bundleClient&&l.push({name:"Client Bundle",id:"bundle-client"}),_.current.features.bundleNitro&&l.push({name:"Nitro Bundle",id:"bundle-nitro"}),_.current.features.viteInspect&&l.push({name:"Vite Inspect",id:"vite-inspect"}),l}),o=F(c.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 S.clearAnalyzeBuilds(await R(),[l])}return(l,n)=>{const A=de,C=P;return i(),u("div",fe,[e("div",_e,[(i(!0),u(p,null,L(c.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,ce))),128)),n[1]||(n[1]=e("div",{border:"b base","flex-auto":""},null,-1))]),o.value?.id==="overview"?(i(),u("div",ye,[n[15]||(n[15]=e("div",{"flex-auto":""},null,-1)),e("div",be,[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)):x("",!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)):x("",!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(y(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,__:[14]})])):x("",!0),n._lazyshow1||o.value?.id==="bundle-client"?(n._lazyshow1=!0,i(),u(p,null,[D(e("iframe",{src:`${y(w)}${l.current.slug}/client.html`,"h-full":"","w-full":""},null,8,["src"]),[[I,o.value?.id==="bundle-client"]])],64)):x("v-show-if",!0),n._lazyshow2||o.value?.id==="bundle-nitro"?(n._lazyshow2=!0,i(),u(p,null,[D(e("iframe",{src:`${y(w)}${l.current.slug}/nitro.html`,"h-full":"","w-full":""},null,8,["src"]),[[I,o.value?.id==="bundle-nitro"]])],64)):x("v-show-if",!0),n._lazyshow3||o.value?.id==="vite-inspect"?(n._lazyshow3=!0,i(),u(p,null,[D(e("iframe",{src:`${y(w)}${l.current.slug}/.vite-inspect/`,"h-full":"","w-full":""},null,8,["src"]),[[I,o.value?.id==="vite-inspect"]])],64)):x("v-show-if",!0)])}}}),we={class:"markdown-body"},$e={__name:"analyze-build",setup(N,{expose:_}){return _({frontmatter:{}}),(w,c)=>(i(),u("div",we,c[0]||(c[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 _=X(),g=h(),w=ee(),c=ne("analyze-build:slug",""),o=V(()=>g.value?.builds.find(r=>r.slug===c.value)??g.value?.builds[0]),$=F(!1),m=F(""),T=V(()=>g.value?.builds.some(r=>r.name===m.value.trim()));async function l(){m.value=await S.generateAnalyzeBuildName(),await _.start()&&(ae("analyze-build:start"),k.value={name:m.value,processId:await S.startAnalyzeBuild(await R(),m.value)},$.value&&C())}const n=te();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 le(()=>[{id:"action:analyze-build: start",title:"Start a new analyze build",icon:"i-carbon-edge-node",action:l}]),(r,t)=>{const z=P,G=ge,Z=ie,q=oe,M=ue,O=se,H=me,J=pe,K=re,Q=$e,W=ve;return i(),u(p,null,[d(q,{"left-size":30},{left:a(()=>[e("div",ze,[(i(!0),u(p,null,L(y(g)?.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:b=>c.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(y(j)(new Date(s.endTime))),1)])],10,Be),t[6]||(t[6]=e("div",{"x-divider":""},null,-1))],64))),128)),e("div",ke,[y(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,__:[8]})):(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,__:[7]}))])])]),right:a(()=>[o.value?(i(),B(G,{key:0,current:o.value},null,8,["current"])):(i(),B(Z,{key:1}))]),_:1}),d(y(_),null,{default:a(({resolve:s})=>[d(K,{"model-value":!0,onClose:b=>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(M,{modelValue:m.value,"onUpdate:modelValue":t[2]||(t[2]=b=>m.value=b),placeholder:"Build name"},null,8,["modelValue"]),T.value?(i(),B(O,{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,__:[9]})):x("",!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]=b=>$.value=b),mt2:"",n:"primary"},{default:a(()=>t[10]||(t[10]=[f(" Navigate to terminal ")])),_:1,__:[10]},8,["modelValue"]),e("div",Te,[d(z,{onClick:b=>s(!1)},{default:a(()=>t[11]||(t[11]=[f(" Cancel ")])),_:2,__:[11]},1032,["onClick"]),d(z,{n:"solid primary",onClick:b=>s(!0)},{default:a(()=>t[12]||(t[12]=[f(" Start ")])),_:2,__:[12]},1032,["onClick"])])])]),_:2},1032,["onClose"])]),_:1}),d(W,null,{default:a(()=>[d(Q)]),_:1})],64)}}});export{Re as default};
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import{G as ee,H as X,_ as te,I as ne,J as R,K as ce,L as pe,M as me,r as J,E as W,v as se,N as ve,O as fe,c as le,A as ge,a as he,w as _e,P as xe,Q as be,R as we,S as ye,T as $e,g as ke,U as Ce}from"./mihtqtxa.js";import{_ as Ve}from"./ncheckbox.vue-de0732k3.js";import{_ as Pe}from"./ndropdown.vue-fqgjhyuy.js";import{_ as Ae}from"./nnavbar.vue-chg3j9po.js";import{p as Z,k as T,ai as oe,J as i,a3 as o,Z as H,u as m,ac as K,a5 as d,S as t,ab as D,F as z,ag as G,V,U as S,a4 as h,q as U,X as ae,aa as N,W as De,j as Ne,at as Fe,Y as Se}from"./vendor/json-editor-vue-m9gzt21j.js";import{_ as Ue}from"./nsection-block-d2034e4h.js";import{_ as Ie}from"./filepath-item.vue-f9nq4lw8.js";import{_ as Te}from"./code-snippets.vue-jst45uux.js";import{_ as je}from"./ndrawer.vue-gsquq1a1.js";import{D as Ee}from"./constants-b32h69zq.js";import"./vendor/unocss-oyl7opas.js";import"./vendor/shiki-imfwxqoq.js";import"./nicon-title.vue-ejocqf9t.js";import"./ncode-block.vue-ctkw4rc7.js";import"./client-oeqdl4pb.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=Z({__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 x(s){s.target===C.value&&(f.value=!1)}function j(s){s.preventDefault()}function P(s){s.preventDefault(),_(s.dataTransfer.files)}function _(s){const c=Array.from(s||[]);if(c.length){const g=[],w=n.value.map(u=>u.name);for(const u of c)if(w.includes(u.name)){let A=1;const[y,B]=u.name.split(".");for(;w.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),w.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 J.writeStaticAssets(await W(),[...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 b(s,c){const[g,w]=s.name.split("."),u=c.replace(/\.\w+$/,""),A=`${u}.${w}`;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 X("dragenter",v),X("dragleave",x),X("dragover",j),X("drop",P),(s,c)=>{const g=te,w=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=>b(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(w,{icon:"carbon-clean"}),c[2]||(c[2]=D(" Clear "))]),_:1,__:[2]})):S("",!0),d(g,{disabled:!n.value.length,n:"primary solid",onClick:E},{default:h(()=>[d(w,{icon:"carbon-cloud-upload"}),c[3]||(c[3]=D(" Upload "))]),_:1,__:[3]},8,["disabled"])])])):(o(),i("div",Be,[t("label",Le,[d(w,{icon:"carbon-cloud-upload","mr-2":""}),c[1]||(c[1]=D(" Drop files here or click to select "))]),t("input",{id:"drop-zone-input",type:"file",multiple:"",hidden:"",onChange:c[0]||(c[0]=y=>_(y.target.files))},null,32)]))],2)}}}),Ze=Z({__name:"AssetFontPreview",props:{asset:{}},setup(L){const l=L,f=U(()=>`devtools-assets-${ve(l.asset)}`);return fe(U(()=>`
|
|
2
|
-
@font-face {
|
|
3
|
-
font-family: '${f.value}';
|
|
4
|
-
src: url('${l.asset.publicPath}');
|
|
5
|
-
}
|
|
6
|
-
`)),(C,n)=>(o(),i("div",{"of-hidden":"",style:ae({fontFamily:`'${f.value}'`})}," Aa Bb Cc Dd Ee Ff Gg Hh Ii Jj Kk Ll Mm Nn Oo Pp Qq Rr Ss Tt Uu Vv Ww Xx Yy Zz ",4))}}),Je={flex:"","items-center":"","justify-center":"","of-hidden":"","bg-active":"","object-cover":"",p1:""},We=["src"],Xe={key:2,"i-carbon-document":"","text-3xl":"",op20:""},He={key:3,"w-full":"","self-start":"",p4:""},Qe=["textContent"],Ye={key:4},et=["src","autoplay","controls"],tt={key:5},nt={key:0,"i-carbon-volume-up":"","text-3xl":"",op20:""},ot=["src"],lt={key:6,"i-carbon-help":"","text-3xl":"",op20:""},ie=Z({__name:"AssetPreview",props:{asset:{},textContent:{},detail:{type:Boolean}},setup(L){return(l,f)=>{const C=Ze;return o(),i("div",Je,[l.asset.type==="image"?(o(),i("img",{key:0,src:l.asset.publicPath},null,8,We)):l.asset.type==="font"?(o(),V(C,{key:l.asset.publicPath,asset:l.asset,"self-stretch":"",p2:"","text-2xl":""},null,8,["asset"])):l.asset.type==="text"&&!l.textContent?(o(),i("div",Xe)):l.asset.type==="text"&&l.textContent?(o(),i("div",He,[t("pre",{"max-h-10rem":"","of-hidden":"","text-xs":"","font-mono":"",textContent:N(l.textContent)},null,8,Qe)])):l.asset.type==="video"?(o(),i("div",Ye,[t("video",{src:l.asset.publicPath,autoplay:l.detail,controls:l.detail},null,8,et)])):l.asset.type==="audio"?(o(),i("div",tt,[l.detail?(o(),i("audio",{key:1,src:l.asset.publicPath,controls:""},null,8,ot)):(o(),i("div",nt))])):(o(),i("div",lt))])}}}),st={relative:"",flex:"~ col gap-1",hover:"bg-active","items-center":"","of-hidden":"",rounded:"",p2:""},at={"w-full":"","of-hidden":"",truncate:"","ws-nowrap":"","text-center":"","text-xs":""},it=Z({__name:"AssetGridItem",props:{asset:{},folder:{}},setup(L){const l=L,f=U(()=>l.folder&&l.asset.path.startsWith(l.folder)?l.asset.path.slice(l.folder.length):l.asset.path);return(C,n)=>{const v=ne,x=ie;return o(),i("button",st,[C.asset.layer?(o(),V(v,{key:0,icon:"i-carbon-layers",absolute:"","right-4":"","top-4":"","bg-primary":""})):S("",!0),d(x,{"h-30":"","w-30":"",rounded:"",border:"~ base",asset:C.asset},null,8,["asset"]),t("div",at,N(f.value),1)])}}}),re=Z({__name:"AssetListItem",props:{item:{},index:{default:0},modelValue:{}},setup(L,{emit:l}){const f=L,n=ee(f,"modelValue",l,{passive:!0}),v=U(()=>f.item?.children?.length),x=T(!0),j=U(()=>v.value?"i-carbon-folder":f.item.type==="image"?"i-carbon-image":f.item.type==="video"?"i-carbon-video":f.item.type==="audio"?"i-carbon-volume-up":f.item.type==="font"?"i-carbon-text-small-caps":f.item.type==="text"?"i-carbon-document":f.item.type==="json"?"i-carbon-json":"i-carbon-document-blank");return(P,_)=>{const E=ne,q=re;return o(),i("div",null,[t("button",{flex:"~ gap-2","w-full":"","items-center":"",hover:"bg-active",px4:"",py1:"",style:ae({paddingLeft:`calc(1rem + ${P.index*1.5}em)`}),class:H({"bg-active":!v.value&&m(n)?.filePath===P.item?.filePath}),border:"b base",onClick:_[0]||(_[0]=O=>v.value?x.value=!x.value:n.value=P.item)},[t("div",{class:H(j.value)},null,2),t("span",{class:H({"flex items-center":v.value}),"flex-auto":"","text-start":"","text-sm":"","font-mono":""},[D(N(P.item.path)+" ",1),P.item.layer?(o(),V(E,{key:0,icon:"i-carbon-layers","bg-primary":""})):S("",!0)],2),v.value?(o(),V(E,{key:0,icon:"carbon:chevron-right","transform-rotate":x.value?90:0,transition:""},null,8,["transform-rotate"])):S("",!0)],6),x.value?De(P.$slots,"default",{key:0},()=>[(o(!0),i(z,null,G(P.item?.children,O=>(o(),V(q,{key:O.filepath,modelValue:m(n),"onUpdate:modelValue":_[1]||(_[1]=b=>Ne(n)?n.value=b:null),item:O,index:P.index+1},null,8,["modelValue","item","index"]))),128))]):S("",!0)])}}}),rt={flex:"~ col gap-4","min-h-full":"","w-full":"","of-hidden":"",p4:""},ut={flex:"~","items-center":"","justify-center":""},dt={"max-w-full":"","w-full":"","table-fixed":""},ct={flex:"~ gap-1","w-full":"","items-center":""},pt={flex:"~ gap-1","w-full":"","items-center":"","of-hidden":""},mt={"flex-auto":"","of-hidden":"",truncate:"","ws-pre":"","font-mono":""},vt={capitalize:""},ft={key:0},gt={op70:""},ht={flex:"~ gap2 wrap"},_t={flex:"~ col gap-4","min-h-full":"","w-full":"","of-hidden":"",p8:""},xt={flex:"~ gap2 wrap justify-center"},bt={flex:"~ col gap-4","min-h-full":"","w-full":"","of-hidden":"",p8:""},wt={flex:"~ gap2 wrap justify-center"},yt={flex:"~ col gap-4","min-h-full":"","w-full":"","of-hidden":"",p4:""},$t={flex:"","justify-end":"","gap-4":""},kt=Z({__name:"AssetDetails",props:{modelValue:{}},setup(L,{emit:l}){const n=ee(L,"modelValue",l,{passive:!0}),v=le(async()=>{if(n.value.type==="image")return J.getImageMeta(await W(),n.value.filePath)}),x=T(!1),j=T(),P=T(0),_=le(async()=>{if(n.value.type!=="text")return;P.value;const a=await J.getTextAssetContent(await W(),n.value.filePath);return j.value=a,a});async function E(){if(_.value!==j.value)try{await J.writeStaticAssets(await W(),[{path:n.value.path,content:j.value,override:!0}],""),x.value=!1,P.value++,R({message:"Updated",icon:"i-carbon-checkmark",classes:"text-green"})}catch(a){console.error(a),R({message:"Something went wrong!",icon:"i-carbon-warning",classes:"text-red"})}}const q=ge(),O=U(()=>(q.value?._installedModules||[]).some(e=>e.meta?.name==="@nuxt/image"||e.meta?.name==="@nuxt/image-edge"||e.meta?.name==="@nuxt/image-nightly")),b=U(()=>{const a=[];if(n.value.type==="image"){const e=v.value?.width?`
|
|
7
|
-
width="${v.value.width}"
|
|
8
|
-
height="${v.value.height}" `:" ";return a.push({lang:"vue-html",code:`<img${e}
|
|
9
|
-
src="${n.value.publicPath}"
|
|
10
|
-
/>`,name:"Plain Image"}),O.value&&a.push({lang:"vue-html",code:`<NuxtImg${e}
|
|
11
|
-
src="${n.value.publicPath}"
|
|
12
|
-
/>`,name:"Nuxt Img",docs:"https://image.nuxt.com/usage/nuxt-img"},{lang:"vue-html",code:`<NuxtPicture${e}
|
|
13
|
-
src="${n.value.publicPath}"
|
|
14
|
-
/>`,name:"Nuxt Picture",docs:"https://image.nuxt.com/usage/nuxt-picture"}),a}return a.push({lang:"html",code:`<a download href="${n.value.publicPath}">
|
|
15
|
-
Download ${n.value.path.split("/").slice(-1)[0]}
|
|
16
|
-
</a>`,name:"Download link"}),a}),r=he(),p=_e(),s=xe(()=>n.value.mtime),c=U(()=>{const a=n.value.size;return a<1024?`${a} B`:a<1024*1024?`${(a/1024).toFixed(2)} KB`:`${(a/1024/1024).toFixed(2)} MB`}),g=U(()=>{if(!v.value?.width||!v.value?.height)return"";const a=($,I)=>I?a(I,$%I):$,e=a(v.value.width,v.value.height);return e>3?`${v.value.width/e}:${v.value.height/e}`:""}),w=U(()=>["image","text","video","audio","font"].includes(n.value.type)),u=T(!1);async function A(){try{await J.deleteStaticAsset(await W(),n.value.filePath),n.value=void 0,u.value=!1,R({message:"Asset deleted",icon:"i-carbon-checkmark",classes:"text-green"})}catch(a){console.error(a),R({message:"Something went wrong!",icon:"i-carbon-warning",classes:"text-red"})}}const y=T(!1),B=T("");async function M(){const a=n.value.filePath.split("/"),e=a.slice(-1)[0].split(".").slice(0,-1).join(".");if(!B.value||B.value===e)return R({message:"Please enter a new name",icon:"i-carbon-warning",classes:"text-orange"});try{const $=a.slice(-1)[0].split(".").slice(-1)[0],I=`${a.slice(0,-1).join("/")}/${B.value}.${$}`;await J.renameStaticAsset(await W(),n.value.filePath,I),n.value=void 0,y.value=!1,R({message:"Asset renamed",icon:"i-carbon-checkmark",classes:"text-green"})}catch($){console.error($),R({message:"Something went wrong!",icon:"i-carbon-warning",classes:"text-red"})}}return(a,e)=>{const $=ie,I=Ie,F=te,ue=Te,Q=be,de=se,Y=oe("tooltip");return o(),i(z,null,[t("div",rt,[w.value?(o(),i(z,{key:0},[e[13]||(e[13]=t("div",{flex:"~ gap2","mb--2":"","items-center":"",op50:""},[t("div",{"x-divider":""}),t("div",{"flex-none":""}," Preview "),t("div",{"x-divider":""})],-1)),t("div",ut,[d($,{detail:"","max-h-80":"","min-h-20":"","min-w-20":"","w-auto":"",rounded:"",border:"~ base",asset:m(n),"text-content":m(_)},null,8,["asset","text-content"])])],64)):S("",!0),e[25]||(e[25]=t("div",{flex:"~ gap2","mb--2":"","items-center":"",op50:""},[t("div",{"x-divider":""}),t("div",{"flex-none":""}," Details "),t("div",{"x-divider":""})],-1)),t("table",dt,[t("tbody",null,[t("tr",null,[e[14]||(e[14]=t("td",{"w-30":"","ws-nowrap":"",pr5:"","text-right":"",op50:""}," Filepath ",-1)),t("td",null,[t("div",ct,[d(I,{filepath:m(n).filePath,"text-left":""},null,8,["filepath"]),K(d(F,{"flex-none":"",title:"Open in Editor",icon:"carbon-launch",border:!1,onClick:e[0]||(e[0]=k=>m(p)(m(n).filePath))},null,512),[[Y,"Open in Editor"]])])])]),t("tr",null,[e[15]||(e[15]=t("td",{"w-30":"","ws-nowrap":"",pr5:"","text-right":"",op50:""}," Public Path ",-1)),t("td",null,[t("div",pt,[t("div",mt,N(m(n).publicPath),1),K(d(F,{"flex-none":"",title:"Copy public path",icon:"carbon-copy",border:!1,onClick:e[1]||(e[1]=k=>m(r)(m(n).publicPath,"assets-public-path"))},null,512),[[Y,"Copy public path"]]),K(d(F,{"flex-none":"",to:m(n).publicPath,icon:"carbon-launch",target:"_blank",border:!1,title:"Open in browser"},null,8,["to"]),[[Y,"Open in browser"]])])])]),t("tr",null,[e[16]||(e[16]=t("td",{"w-30":"","ws-nowrap":"",pr5:"","text-right":"",op50:""}," Type ",-1)),t("td",vt,N(m(n).type),1)]),m(v)?.width?(o(),i(z,{key:0},[t("tr",null,[e[17]||(e[17]=t("td",{"w-30":"","ws-nowrap":"",pr5:"","text-right":"",op50:""}," Image Size ",-1)),t("td",null,N(m(v).width)+" x "+N(m(v).height),1)]),g.value?(o(),i("tr",ft,[e[18]||(e[18]=t("td",{"w-30":"","ws-nowrap":"",pr5:"","text-right":"",op50:""}," Aspect Ratio ",-1)),t("td",null,N(g.value),1)])):S("",!0)],64)):S("",!0),t("tr",null,[e[19]||(e[19]=t("td",{"w-30":"","ws-nowrap":"",pr5:"","text-right":"",op50:""}," File size ",-1)),t("td",null,N(c.value),1)]),t("tr",null,[e[20]||(e[20]=t("td",{"w-30":"","ws-nowrap":"",pr5:"","text-right":"",op50:""}," Last modified ",-1)),t("td",null,[D(N(new Date(m(n).mtime).toLocaleString())+" ",1),t("span",gt,"("+N(m(s))+")",1)])])])]),e[26]||(e[26]=t("div",{flex:"~ gap2","mb--2":"","items-center":"",op50:""},[t("div",{"x-divider":""}),t("div",{"flex-none":""}," Actions "),t("div",{"x-divider":""})],-1)),t("div",ht,[d(F,{to:m(n).publicPath,download:"",target:"_blank",icon:"carbon-download",n:"green"},{default:h(()=>e[21]||(e[21]=[D(" Download ")])),_:1,__:[21]},8,["to"]),m(n).type==="text"?(o(),V(F,{key:0,icon:"carbon-edit",n:"cyan",onClick:e[2]||(e[2]=k=>x.value=!x.value)},{default:h(()=>e[22]||(e[22]=[D(" Edit ")])),_:1,__:[22]})):S("",!0),d(F,{icon:"carbon-text-annotation-toggle",n:"blue",onClick:e[3]||(e[3]=k=>y.value=!y.value)},{default:h(()=>e[23]||(e[23]=[D(" Rename ")])),_:1,__:[23]}),d(F,{icon:"carbon-delete",n:"red",onClick:e[4]||(e[4]=k=>u.value=!u.value)},{default:h(()=>e[24]||(e[24]=[D(" Delete ")])),_:1,__:[24]})]),e[27]||(e[27]=t("div",{"flex-auto":""},null,-1)),b.value.length?(o(),V(ue,{key:1,border:"t base","mx--4":"","mb--4":"","code-snippets":b.value},null,8,["code-snippets"])):S("",!0)]),d(Q,{modelValue:u.value,"onUpdate:modelValue":e[6]||(e[6]=k=>u.value=k)},{default:h(()=>[t("div",_t,[e[30]||(e[30]=t("span",null," Are you sure you want to delete this asset? ",-1)),t("div",xt,[d(F,{icon:"carbon-close",onClick:e[5]||(e[5]=k=>u.value=!1)},{default:h(()=>e[28]||(e[28]=[D(" Cancel ")])),_:1,__:[28]}),d(F,{icon:"carbon-delete",n:"red",onClick:A},{default:h(()=>e[29]||(e[29]=[D(" Delete ")])),_:1,__:[29]})])])]),_:1},8,["modelValue"]),d(Q,{modelValue:y.value,"onUpdate:modelValue":e[9]||(e[9]=k=>y.value=k)},{default:h(()=>[t("div",bt,[d(de,{modelValue:B.value,"onUpdate:modelValue":e[7]||(e[7]=k=>B.value=k),placeholder:"New name",n:"blue"},null,8,["modelValue"]),t("div",wt,[d(F,{icon:"carbon-close",onClick:e[8]||(e[8]=k=>y.value=!1)},{default:h(()=>e[31]||(e[31]=[D(" Cancel ")])),_:1,__:[31]}),d(F,{icon:"carbon-text-annotation-toggle",n:"blue",onClick:M},{default:h(()=>e[32]||(e[32]=[D(" Rename ")])),_:1,__:[32]})])])]),_:1},8,["modelValue"]),m(n).type==="text"?(o(),V(Q,{key:0,modelValue:x.value,"onUpdate:modelValue":e[12]||(e[12]=k=>x.value=k)},{default:h(()=>[t("div",yt,[K(t("textarea",{"onUpdate:modelValue":e[10]||(e[10]=k=>j.value=k),placeholder:"Item value...",class:"h-lg w-xl of-auto rounded-lg p-4 text-sm font-mono outline-none",onKeydown:Se(E,["enter"])},null,544),[[Fe,j.value]]),t("div",$t,[d(F,{icon:"carbon-close",onClick:e[11]||(e[11]=k=>x.value=!1)},{default:h(()=>e[33]||(e[33]=[D(" Cancel ")])),_:1,__:[33]}),d(F,{icon:"carbon:save",n:"primary",onClick:E},{default:h(()=>e[34]||(e[34]=[D(" save ")])),_:1,__:[34]})])])]),_:1},8,["modelValue"])):S("",!0)],64)}}}),Ct={"h-full":"","of-auto":""},Vt={"flex-none":"",flex:"~ gap2 items-center","text-lg":""},Pt={flex:"~ items-center justify-center",absolute:"","bottom--1":"","right--1":"","h-4":"","w-4":"","rounded-full":"","bg-primary:30":"","text-8px":""},At={flex:"~ col","w-30":"","of-auto":""},Dt={"text-xs":"",op75:""},Nt={op50:""},Ft={key:0},St={"mt--4":"",px2:"",grid:"~ cols-minmax-8rem"},Ut={key:1,p2:"",grid:"~ cols-minmax-8rem"},It={key:1},Xt=Z({__name:"assets",setup(L){const l=we(),f=T(!1),C=T(""),n=U(()=>new ye(l.value||[],{keys:["path"]})),v=$e(()=>{const b=[];for(const r of l.value||[]){const p=r.path.split(".").pop();p&&!b.find(s=>s.name===p)&&b.push({name:p,value:!0})}return b}),x=U(()=>(C.value?n.value.search(C.value).map(r=>r.item):l.value||[]).filter(r=>{const p=r.path.split(".").pop();return!p||v.some(s=>s.name===p&&s.value)})),j=U(()=>{const b={};for(const r of x.value){const p=`${r.path.split("/").slice(0,-1).join("/")}/`;b[p]||(b[p]=[]),b[p].push(r)}return Object.entries(b).sort(([r],[p])=>r.localeCompare(p))}),P=U(()=>{const b={children:[]},r=(p,s,c)=>{const[g,...w]=s;let u=p.children.find(A=>A.path===g);u||(u={...c,path:g,children:[]},p.children.push(u)),w.length>1?r(u,w,c):w.length===1&&u.children.push({...c,path:w[0]})};return x.value.forEach(p=>{const s=p.path.split("/").filter(c=>c!=="");r(b,s,p)}),b.children}),_=T(),{view:E}=ke("assets");function q(){E.value=E.value==="list"?"grid":"list"}Ce("Escape",()=>{_.value=void 0});const O=T();return(b,r)=>{const p=te,s=Ve,c=Pe,g=Ae,w=Ge,u=it,A=Ue,y=re,B=kt,M=je,a=oe("tooltip");return o(),i("div",Ct,[d(g,{ref_key:"navbar",ref:O,search:C.value,"onUpdate:search":r[1]||(r[1]=e=>C.value=e),pb2:""},{actions:h(()=>[t("div",Vt,[K(d(p,{icon:"carbon:cloud-upload",title:"File Upload",border:!1,onClick:r[0]||(r[0]=e=>f.value=!f.value)},null,512),[[a,"File Upload",void 0,{"bottom-end":!0}]]),m(v).length?(o(),V(c,{key:0,direction:"end",n:"sm primary"},{trigger:h(({click:e})=>[K(d(p,{icon:"carbon-filter",border:!1,title:"Filter",p3:"","text-lg":"",onClick:$=>e()},null,8,["onClick"]),[[a,"Filter",void 0,{"bottom-end":!0}]]),t("span",Pt,N(m(v).length),1)]),default:h(()=>[t("div",At,[(o(!0),i(z,null,G(m(v),e=>(o(),V(s,{key:e.name,modelValue:e.value,"onUpdate:modelValue":$=>e.value=$,flex:"~ gap-2",rounded:"",px2:"",py2:""},{default:h(()=>[t("span",Dt,N(e.name),1)]),_:2},1032,["modelValue","onUpdate:modelValue"]))),128))])]),_:1})):S("",!0),K(d(p,{"text-lg":"",border:!1,icon:m(E)==="grid"?"i-carbon-list":"i-carbon-grid",title:"Toggle view",onClick:q},null,8,["icon"]),[[a,"Toggle View",void 0,{"bottom-end":!0}]])])]),default:h(()=>[t("div",Nt,[C.value?(o(),i("span",Ft,N(x.value.length)+" matched · ",1)):S("",!0),t("span",null,N(m(l)?.length)+" assets in total",1)])]),_:1},8,["search"]),d(w,{modelValue:f.value,"onUpdate:modelValue":r[2]||(r[2]=e=>f.value=e),folder:"/"},null,8,["modelValue"]),m(E)==="grid"?(o(),i(z,{key:0},[j.value.length>1?(o(!0),i(z,{key:0},G(j.value,([e,$])=>(o(),V(A,{key:e,text:e,description:`${$.length} items`,open:$.length<=m(Ee),padding:!1},{default:h(()=>[t("div",St,[(o(!0),i(z,null,G($,I=>(o(),V(u,{key:I.path,asset:I,folder:e,onClick:F=>_.value=I},null,8,["asset","folder","onClick"]))),128))])]),_:2},1032,["text","description","open"]))),128)):(o(),i("div",Ut,[(o(!0),i(z,null,G(x.value,e=>(o(),V(u,{key:e.path,asset:e,onClick:$=>_.value=e},null,8,["asset","onClick"]))),128))]))],64)):(o(),i("div",It,[(o(!0),i(z,null,G(P.value,(e,$)=>(o(),V(y,{key:$,modelValue:_.value,"onUpdate:modelValue":r[3]||(r[3]=I=>_.value=I),item:e},null,8,["modelValue","item"]))),128))])),d(M,{"model-value":!!_.value,"auto-close":"","w-120":"",top:O.value,onClose:r[5]||(r[5]=e=>_.value=void 0)},{default:h(()=>[_.value?(o(),V(B,{key:0,modelValue:_.value,"onUpdate:modelValue":r[4]||(r[4]=e=>_.value=e)},null,8,["modelValue"])):S("",!0)]),_:1},8,["model-value","top"])])}}});export{Xt as default};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"id":"41596d10-5c26-42ef-abf5-f8fc005365de","timestamp":1751413653078,"matcher":{"static":{},"wildcard":{},"dynamic":{}},"prerendered":[]}
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import{_ as k}from"./ncode-block.vue-ctkw4rc7.js";import{ao as D}from"./mihtqtxa.js";import{p as I,q as T,k as j,E as y,V as q,a3 as M}from"./vendor/json-editor-vue-m9gzt21j.js";class V{diff(e,t,n={}){let o;typeof n=="function"?(o=n,n={}):"callback"in n&&(o=n.callback);const u=this.castInput(e,n),c=this.castInput(t,n),r=this.removeEmpty(this.tokenize(u,n)),s=this.removeEmpty(this.tokenize(c,n));return this.diffWithOptionsObj(r,s,n,o)}diffWithOptionsObj(e,t,n,o){var u;const c=d=>{if(d=this.postProcess(d,n),o){setTimeout(function(){o(d)},0);return}else return d},r=t.length,s=e.length;let l=1,i=r+s;n.maxEditLength!=null&&(i=Math.min(i,n.maxEditLength));const p=(u=n.timeout)!==null&&u!==void 0?u:1/0,f=Date.now()+p,a=[{oldPos:-1,lastComponent:void 0}];let h=this.extractCommon(a[0],t,e,0,n);if(a[0].oldPos+1>=s&&h+1>=r)return c(this.buildValues(a[0].lastComponent,t,e));let g=-1/0,w=1/0;const x=()=>{for(let d=Math.max(g,-l);d<=Math.min(w,l);d+=2){let C;const P=a[d-1],v=a[d+1];P&&(a[d-1]=void 0);let L=!1;if(v){const E=v.oldPos-d;L=v&&0<=E&&E<r}const _=P&&P.oldPos+1<s;if(!L&&!_){a[d]=void 0;continue}if(!_||L&&P.oldPos<v.oldPos?C=this.addToPath(v,!0,!1,0,n):C=this.addToPath(P,!1,!0,1,n),h=this.extractCommon(C,t,e,d,n),C.oldPos+1>=s&&h+1>=r)return c(this.buildValues(C.lastComponent,t,e))||!0;a[d]=C,C.oldPos+1>=s&&(w=Math.min(w,d-1)),h+1>=r&&(g=Math.max(g,d+1))}l++};if(o)(function d(){setTimeout(function(){if(l>i||Date.now()>f)return o(void 0);x()||d()},0)})();else for(;l<=i&&Date.now()<=f;){const d=x();if(d)return d}}addToPath(e,t,n,o,u){const c=e.lastComponent;return c&&!u.oneChangePerToken&&c.added===t&&c.removed===n?{oldPos:e.oldPos+o,lastComponent:{count:c.count+1,added:t,removed:n,previousComponent:c.previousComponent}}:{oldPos:e.oldPos+o,lastComponent:{count:1,added:t,removed:n,previousComponent:c}}}extractCommon(e,t,n,o,u){const c=t.length,r=n.length;let s=e.oldPos,l=s-o,i=0;for(;l+1<c&&s+1<r&&this.equals(n[s+1],t[l+1],u);)l++,s++,i++,u.oneChangePerToken&&(e.lastComponent={count:1,previousComponent:e.lastComponent,added:!1,removed:!1});return i&&!u.oneChangePerToken&&(e.lastComponent={count:i,previousComponent:e.lastComponent,added:!1,removed:!1}),e.oldPos=s,l}equals(e,t,n){return n.comparator?n.comparator(e,t):e===t||!!n.ignoreCase&&e.toLowerCase()===t.toLowerCase()}removeEmpty(e){const t=[];for(let n=0;n<e.length;n++)e[n]&&t.push(e[n]);return t}castInput(e,t){return e}tokenize(e,t){return Array.from(e)}join(e){return e.join("")}postProcess(e,t){return e}get useLongestToken(){return!1}buildValues(e,t,n){const o=[];let u;for(;e;)o.push(e),u=e.previousComponent,delete e.previousComponent,e=u;o.reverse();const c=o.length;let r=0,s=0,l=0;for(;r<c;r++){const i=o[r];if(i.removed)i.value=this.join(n.slice(l,l+i.count)),l+=i.count;else{if(!i.added&&this.useLongestToken){let p=t.slice(s,s+i.count);p=p.map(function(f,a){const h=n[l+a];return h.length>f.length?h:f}),i.value=this.join(p)}else i.value=this.join(t.slice(s,s+i.count));s+=i.count,i.added||(l+=i.count)}}return o}}class z extends V{constructor(){super(...arguments),this.tokenize=N}equals(e,t,n){return n.ignoreWhitespace?((!n.newlineIsToken||!e.includes(`
|
|
2
|
-
`))&&(e=e.trim()),(!n.newlineIsToken||!t.includes(`
|
|
3
|
-
`))&&(t=t.trim())):n.ignoreNewlineAtEof&&!n.newlineIsToken&&(e.endsWith(`
|
|
4
|
-
`)&&(e=e.slice(0,-1)),t.endsWith(`
|
|
5
|
-
`)&&(t=t.slice(0,-1))),super.equals(e,t,n)}}const A=new z;function W(m,e,t){return A.diff(m,e,t)}function N(m,e){e.stripTrailingCr&&(m=m.replace(/\r\n/g,`
|
|
6
|
-
`));const t=[],n=m.split(/(\n|\r\n)/);n[n.length-1]||n.pop();for(let o=0;o<n.length;o++){const u=n[o];o%2&&!e.newlineIsToken?t[t.length-1]+=u:t.push(u)}return t}const B=I({__name:"CodeDiff",props:{from:{},to:{},lang:{}},setup(m){const e=m;function t(r,s){const l=W(r.trim(),s.trim()),i=[],p=[],f=[];for(const a of l){const h=a.value.trimEnd().split(`
|
|
7
|
-
`);for(const g of h)a.added?(i.push(f.length),f.push(g)):(a.removed&&p.push(f.length),f.push(g))}return{added:i,removed:p,result:f.join(`
|
|
8
|
-
`)}}const n=T(()=>t(e.from,e.to));function o(r){let s=0;return r.replace(/class="shiki/,'class="shiki diff').replace(/class="line"/g,l=>(s++,n.value.added.includes(s-1)?'class="line line-added"':n.value.removed.includes(s-1)?'class="line line-removed"':l))}const u=j();y(c);function c(){const r=D(u);r&&r.querySelector(".line-added,.line-removed")?.scrollIntoView()}return(r,s)=>{const l=k;return M(),q(l,{ref_key:"elRef",ref:u,code:n.value.result,lang:r.lang,"transform-rendered":o,onLoaded:c},null,8,["code","lang"])}}});export{B as _};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{_ as g}from"./ncode-block.vue-ctkw4rc7.js";import{a as C,_ as S}from"./mihtqtxa.js";import{p as x,n as w,q as B,w as N,J as n,U as r,a3 as a,S as s,F as d,ag as V,a5 as i,V as $,u as T,a4 as u,ab as v,Z as m,aa as h}from"./vendor/json-editor-vue-m9gzt21j.js";const D={key:0,relative:"","n-code-block":""},E={flex:"~ wrap","w-full":""},F=["onClick"],L={flex:"~ gap-2",px3:"",pb3:"",n:"sm primary"},U=x({__name:"CodeSnippets",props:{codeSnippets:{},eventType:{}},setup(_){const l=_,e=w(l.codeSnippets[0]),f=C(),b=B(()=>e.value?.lang||"text");return N(()=>{l.codeSnippets.includes(e.value)||(e.value=l.codeSnippets[0])}),(p,o)=>{const k=g,c=S;return p.codeSnippets.length?(a(),n("div",D,[s("div",E,[(a(!0),n(d,null,V(p.codeSnippets,(t,y)=>(a(),n("button",{key:y,px4:"",py2:"",border:"r base",hover:"bg-active",class:m(t===e.value?"":"border-b"),onClick:q=>e.value=t},[s("div",{class:m(t===e.value?"":"op30"),"font-mono":""},h(t.name),3)],10,F))),128)),o[1]||(o[1]=s("div",{border:"b base","flex-auto":""},null,-1))]),e.value?(a(),n(d,{key:0},[i(k,{code:e.value.code,lang:b.value,lines:!1,"w-full":"","of-auto":"",p3:""},null,8,["code","lang"]),s("div",L,[i(c,{icon:"carbon-copy",onClick:o[0]||(o[0]=t=>T(f)(e.value.code,p.eventType||`code-snippet-${e.value.name}`))},{default:u(()=>o[2]||(o[2]=[v(" Copy ")])),_:1,__:[2]}),e.value?.docs?(a(),$(c,{key:0,to:e.value.docs,target:"_blank",icon:"carbon-catalog"},{default:u(()=>o[3]||(o[3]=[v(" Docs ")])),_:1,__:[3]},8,["to"])):r("",!0)])],64)):r("",!0)])):r("",!0)}}});export{U as _};
|