@unocss/inspector 0.12.18 → 0.14.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/client/assets/[id].751da2a7.js +1 -0
- package/dist/client/assets/[id].e876e72e.css +1 -0
- package/dist/client/assets/index.97c32687.css +1 -0
- package/dist/client/assets/index.ed93a060.js +3 -0
- package/dist/client/assets/repl.0c68f84f.js +3 -0
- package/dist/client/assets/repl.bafd2276.css +1 -0
- package/dist/client/assets/vendor.6dcf7589.js +41 -0
- package/dist/client/index.html +3 -3
- package/dist/index.js +4 -3
- package/dist/index.mjs +4 -3
- package/package.json +1 -1
- package/dist/client/assets/index.1f767355.css +0 -1
- package/dist/client/assets/index.fcacc1b8.js +0 -1
- package/dist/client/assets/vendor.a7ab7170.js +0 -18
package/dist/client/index.html
CHANGED
|
@@ -8,9 +8,9 @@
|
|
|
8
8
|
<link rel="preconnect" href="https://fonts.googleapis.com" />
|
|
9
9
|
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin />
|
|
10
10
|
<link href="https://fonts.googleapis.com/css2?family=Inter:wght@100;200;400&family=Fira+Code&display=swap" rel="stylesheet" />
|
|
11
|
-
<script type="module" crossorigin src="/__unocss/assets/index.
|
|
12
|
-
<link rel="modulepreload" href="/__unocss/assets/vendor.
|
|
13
|
-
<link rel="stylesheet" href="/__unocss/assets/index.
|
|
11
|
+
<script type="module" crossorigin src="/__unocss/assets/index.ed93a060.js"></script>
|
|
12
|
+
<link rel="modulepreload" href="/__unocss/assets/vendor.6dcf7589.js">
|
|
13
|
+
<link rel="stylesheet" href="/__unocss/assets/index.97c32687.css">
|
|
14
14
|
</head>
|
|
15
15
|
<body>
|
|
16
16
|
<div id="app"></div>
|
package/dist/index.js
CHANGED
|
@@ -55,7 +55,8 @@ var import_gzip_size = __toModule(require("gzip-size"));
|
|
|
55
55
|
var _dirname = typeof __dirname !== "undefined" ? __dirname : (0, import_path.dirname)((0, import_url.fileURLToPath)(importMetaUrlShim));
|
|
56
56
|
function UnocssInspector(ctx) {
|
|
57
57
|
let config;
|
|
58
|
-
function configureServer(server) {
|
|
58
|
+
async function configureServer(server) {
|
|
59
|
+
await ctx.ready;
|
|
59
60
|
server.middlewares.use("/__unocss", (0, import_sirv.default)((0, import_path.resolve)(_dirname, "../dist/client"), {
|
|
60
61
|
single: true,
|
|
61
62
|
dev: true
|
|
@@ -68,8 +69,8 @@ function UnocssInspector(ctx) {
|
|
|
68
69
|
version: ctx.uno.version,
|
|
69
70
|
root: config.root,
|
|
70
71
|
modules: Array.from(ctx.modules.keys()),
|
|
71
|
-
|
|
72
|
-
|
|
72
|
+
config: ctx.uno.config,
|
|
73
|
+
configSources: (await ctx.ready).sources
|
|
73
74
|
};
|
|
74
75
|
res.setHeader("Content-Type", "application/json");
|
|
75
76
|
res.write(JSON.stringify(info, null, 2));
|
package/dist/index.mjs
CHANGED
|
@@ -26,7 +26,8 @@ import gzipSize from "gzip-size";
|
|
|
26
26
|
var _dirname = typeof __dirname !== "undefined" ? __dirname : dirname(fileURLToPath(import.meta.url));
|
|
27
27
|
function UnocssInspector(ctx) {
|
|
28
28
|
let config;
|
|
29
|
-
function configureServer(server) {
|
|
29
|
+
async function configureServer(server) {
|
|
30
|
+
await ctx.ready;
|
|
30
31
|
server.middlewares.use("/__unocss", sirv(resolve(_dirname, "../dist/client"), {
|
|
31
32
|
single: true,
|
|
32
33
|
dev: true
|
|
@@ -39,8 +40,8 @@ function UnocssInspector(ctx) {
|
|
|
39
40
|
version: ctx.uno.version,
|
|
40
41
|
root: config.root,
|
|
41
42
|
modules: Array.from(ctx.modules.keys()),
|
|
42
|
-
|
|
43
|
-
|
|
43
|
+
config: ctx.uno.config,
|
|
44
|
+
configSources: (await ctx.ready).sources
|
|
44
45
|
};
|
|
45
46
|
res.setHeader("Content-Type", "application/json");
|
|
46
47
|
res.write(JSON.stringify(info, null, 2));
|
package/package.json
CHANGED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
*,:before,:after{box-sizing:border-box;border-width:0;border-style:solid;border-color:currentColor}html{line-height:1.5;-webkit-text-size-adjust:100%;-moz-tab-size:4;tab-size:4;font-family:ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,"Helvetica Neue",Arial,"Noto Sans",sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol","Noto Color Emoji"}body{margin:0;line-height:inherit}hr{height:0;color:inherit;border-top-width:1px}abbr[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-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",monospace;font-size:1em}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}button,input,optgroup,select,textarea{font-family:inherit;font-size:100%;line-height:inherit;color:inherit;margin:0;padding:0}button,select{text-transform:none}button,[type=button],[type=reset],[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,::-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{list-style:none;margin:0;padding:0}textarea{resize:vertical}input::placeholder,textarea::placeholder{opacity:1;color:#9ca3af}button,[role=button]{cursor:pointer}:disabled{cursor:default}img,svg,video,canvas,audio,iframe,embed,object{display:block;vertical-align:middle}img,video{max-width:100%;height:auto}[hidden]{display:none}.splitpanes{display:-webkit-box;display:-ms-flexbox;display:flex;width:100%;height:100%}.splitpanes--vertical{-webkit-box-orient:horizontal;-webkit-box-direction:normal;-ms-flex-direction:row;flex-direction:row}.splitpanes--horizontal{-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column}.splitpanes--dragging *{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.splitpanes__pane{width:100%;height:100%;overflow:hidden}.splitpanes--vertical .splitpanes__pane{-webkit-transition:width .2s ease-out;transition:width .2s ease-out}.splitpanes--horizontal .splitpanes__pane{-webkit-transition:height .2s ease-out;transition:height .2s ease-out}.splitpanes--dragging .splitpanes__pane{-webkit-transition:none;transition:none}.splitpanes__splitter{-ms-touch-action:none;touch-action:none}.splitpanes--vertical>.splitpanes__splitter{min-width:1px;cursor:col-resize}.splitpanes--horizontal>.splitpanes__splitter{min-height:1px;cursor:row-resize}.splitpanes.default-theme .splitpanes__pane{background-color:#f2f2f2}.splitpanes.default-theme .splitpanes__splitter{background-color:#fff;-webkit-box-sizing:border-box;box-sizing:border-box;position:relative;-ms-flex-negative:0;flex-shrink:0}.splitpanes.default-theme .splitpanes__splitter:after,.splitpanes.default-theme .splitpanes__splitter:before{content:"";position:absolute;top:50%;left:50%;background-color:#00000026;-webkit-transition:background-color .3s;transition:background-color .3s}.splitpanes.default-theme .splitpanes__splitter:hover:after,.splitpanes.default-theme .splitpanes__splitter:hover:before{background-color:#00000040}.splitpanes.default-theme .splitpanes__splitter:first-child{cursor:auto}.default-theme.splitpanes .splitpanes .splitpanes__splitter{z-index:1}.default-theme.splitpanes--vertical>.splitpanes__splitter,.default-theme .splitpanes--vertical>.splitpanes__splitter{width:7px;border-left:1px solid #eee;margin-left:-1px}.default-theme.splitpanes--vertical>.splitpanes__splitter:after,.default-theme .splitpanes--vertical>.splitpanes__splitter:after,.default-theme.splitpanes--vertical>.splitpanes__splitter:before,.default-theme .splitpanes--vertical>.splitpanes__splitter:before{-webkit-transform:translateY(-50%);transform:translateY(-50%);width:1px;height:30px}.default-theme.splitpanes--vertical>.splitpanes__splitter:before,.default-theme .splitpanes--vertical>.splitpanes__splitter:before{margin-left:-2px}.default-theme.splitpanes--vertical>.splitpanes__splitter:after,.default-theme .splitpanes--vertical>.splitpanes__splitter:after{margin-left:1px}.default-theme.splitpanes--horizontal>.splitpanes__splitter,.default-theme .splitpanes--horizontal>.splitpanes__splitter{height:7px;border-top:1px solid #eee;margin-top:-1px}.default-theme.splitpanes--horizontal>.splitpanes__splitter:after,.default-theme .splitpanes--horizontal>.splitpanes__splitter:after,.default-theme.splitpanes--horizontal>.splitpanes__splitter:before,.default-theme .splitpanes--horizontal>.splitpanes__splitter:before{-webkit-transform:translateX(-50%);transform:translate(-50%);width:30px;height:1px}.default-theme.splitpanes--horizontal>.splitpanes__splitter:before,.default-theme .splitpanes--horizontal>.splitpanes__splitter:before{margin-top:-2px}.default-theme.splitpanes--horizontal>.splitpanes__splitter:after,.default-theme .splitpanes--horizontal>.splitpanes__splitter:after{margin-top:1px}.dark .dark\:i-carbon-moon,.dark [dark\:i-carbon-moon=""]{--un-icon:url("data:image/svg+xml;utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='1em' height='1em' preserveAspectRatio='xMidYMid meet' viewBox='0 0 32 32'%3E%3Cpath d='M13.502 5.414a15.075 15.075 0 0 0 11.594 18.194a11.113 11.113 0 0 1-7.975 3.39c-.138 0-.278.005-.418 0a11.094 11.094 0 0 1-3.2-21.584M14.98 3a1.002 1.002 0 0 0-.175.016a13.096 13.096 0 0 0 1.825 25.981c.164.006.328 0 .49 0a13.072 13.072 0 0 0 10.703-5.555a1.01 1.01 0 0 0-.783-1.565A13.08 13.08 0 0 1 15.89 4.38A1.015 1.015 0 0 0 14.98 3z' fill='currentColor'/%3E%3C/svg%3E");mask:var(--un-icon) no-repeat;mask-size:100% 100%;-webkit-mask:var(--un-icon) no-repeat;-webkit-mask-size:100% 100%;background-color:currentColor;height:1.2em;width:1.2em;display:inline-block;vertical-align:text-bottom;}.i-carbon-document-blank{--un-icon:url("data:image/svg+xml;utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='1em' height='1em' preserveAspectRatio='xMidYMid meet' viewBox='0 0 32 32'%3E%3Cpath d='M25.7 9.3l-7-7A.908.908 0 0 0 18 2H8a2.006 2.006 0 0 0-2 2v24a2.006 2.006 0 0 0 2 2h16a2.006 2.006 0 0 0 2-2V10a.908.908 0 0 0-.3-.7zM18 4.4l5.6 5.6H18zM24 28H8V4h8v6a2.006 2.006 0 0 0 2 2h6z' fill='currentColor'/%3E%3C/svg%3E");mask:var(--un-icon) no-repeat;mask-size:100% 100%;-webkit-mask:var(--un-icon) no-repeat;-webkit-mask-size:100% 100%;background-color:currentColor;height:1.2em;width:1.2em;display:inline-block;vertical-align:text-bottom;}.i-carbon-folder{--un-icon:url("data:image/svg+xml;utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='1em' height='1em' preserveAspectRatio='xMidYMid meet' viewBox='0 0 32 32'%3E%3Cpath d='M11.17 6l3.42 3.41l.58.59H28v16H4V6h7.17m0-2H4a2 2 0 0 0-2 2v20a2 2 0 0 0 2 2h24a2 2 0 0 0 2-2V10a2 2 0 0 0-2-2H16l-3.41-3.41A2 2 0 0 0 11.17 4z' fill='currentColor'/%3E%3C/svg%3E");mask:var(--un-icon) no-repeat;mask-size:100% 100%;-webkit-mask:var(--un-icon) no-repeat;-webkit-mask-size:100% 100%;background-color:currentColor;height:1.2em;width:1.2em;display:inline-block;vertical-align:text-bottom;}.i-carbon-portfolio{--un-icon:url("data:image/svg+xml;utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='1em' height='1em' preserveAspectRatio='xMidYMid meet' viewBox='0 0 32 32'%3E%3Cpath d='M28 10h-6V6a2 2 0 0 0-2-2h-8a2 2 0 0 0-2 2v4H4a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h24a2 2 0 0 0 2-2V12a2 2 0 0 0-2-2zM12 6h8v4h-8zM4 26V12h24v14z' fill='currentColor'/%3E%3C/svg%3E");mask:var(--un-icon) no-repeat;mask-size:100% 100%;-webkit-mask:var(--un-icon) no-repeat;-webkit-mask-size:100% 100%;background-color:currentColor;height:1.2em;width:1.2em;display:inline-block;vertical-align:text-bottom;}.i-carbon-vmdk-disk{--un-icon:url("data:image/svg+xml;utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='1em' height='1em' preserveAspectRatio='xMidYMid meet' viewBox='0 0 32 32'%3E%3Ccircle cx='10.5' cy='24.5' r='1.5' fill='currentColor'/%3E%3Cpath d='M18 16.414L19.414 15L23 18.585L21.585 20z' fill='currentColor'/%3E%3Ccircle cx='16' cy='13' r='2' fill='currentColor'/%3E%3Cpath d='M16 6a7 7 0 0 0 0 14v-2a5 5 0 1 1 5-5h2a7 7 0 0 0-7-7z' fill='currentColor'/%3E%3Cpath d='M26 2H6a2 2 0 0 0-2 2v24a2 2 0 0 0 2 2h20a2 2 0 0 0 2-2V4a2 2 0 0 0-2-2zm0 26H6V4h20z' fill='currentColor'/%3E%3C/svg%3E");mask:var(--un-icon) no-repeat;mask-size:100% 100%;-webkit-mask:var(--un-icon) no-repeat;-webkit-mask-size:100% 100%;background-color:currentColor;height:1.2em;width:1.2em;display:inline-block;vertical-align:text-bottom;}.i-logos-vue{background:url("data:image/svg+xml;utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='1em' height='1em' preserveAspectRatio='xMidYMid meet' viewBox='0 0 256 221'%3E%3Cpath d='M204.8 0H256L128 220.8L0 0h97.92L128 51.2L157.44 0h47.36z' fill='%2341B883'/%3E%3Cpath d='M0 0l128 220.8L256 0h-51.2L128 132.48L50.56 0H0z' fill='%2341B883'/%3E%3Cpath d='M50.56 0L128 133.12L204.8 0h-47.36L128 51.2L97.92 0H50.56z' fill='%2335495E'/%3E%3C/svg%3E") no-repeat;background-size:100% 100%;background-color:transparent;height:1.2em;width:1.2em;display:inline-block;vertical-align:text-bottom;}.i-carbon-dashboard,[i-carbon-dashboard=""]{--un-icon:url("data:image/svg+xml;utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='1em' height='1em' preserveAspectRatio='xMidYMid meet' viewBox='0 0 32 32'%3E%3Cpath d='M24 21h2v5h-2z' fill='currentColor'/%3E%3Cpath d='M20 16h2v10h-2z' fill='currentColor'/%3E%3Cpath d='M11 26a5.006 5.006 0 0 1-5-5h2a3 3 0 1 0 3-3v-2a5 5 0 0 1 0 10z' fill='currentColor'/%3E%3Cpath d='M28 2H4a2.002 2.002 0 0 0-2 2v24a2.002 2.002 0 0 0 2 2h24a2.003 2.003 0 0 0 2-2V4a2.002 2.002 0 0 0-2-2zm0 9H14V4h14zM12 4v7H4V4zM4 28V13h24l.002 15z' fill='currentColor'/%3E%3C/svg%3E");mask:var(--un-icon) no-repeat;mask-size:100% 100%;-webkit-mask:var(--un-icon) no-repeat;-webkit-mask-size:100% 100%;background-color:currentColor;height:1.2em;width:1.2em;display:inline-block;vertical-align:text-bottom;}.i-carbon-sun,[i-carbon-sun=""]{--un-icon:url("data:image/svg+xml;utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='1em' height='1em' preserveAspectRatio='xMidYMid meet' viewBox='0 0 32 32'%3E%3Cpath d='M16 12.005a4 4 0 1 1-4 4a4.005 4.005 0 0 1 4-4m0-2a6 6 0 1 0 6 6a6 6 0 0 0-6-6z' fill='currentColor'/%3E%3Cpath d='M5.394 6.813l1.414-1.415l3.506 3.506L8.9 10.318z' fill='currentColor'/%3E%3Cpath d='M2 15.005h5v2H2z' fill='currentColor'/%3E%3Cpath d='M5.394 25.197L8.9 21.691l1.414 1.415l-3.506 3.505z' fill='currentColor'/%3E%3Cpath d='M15 25.005h2v5h-2z' fill='currentColor'/%3E%3Cpath d='M21.687 23.106l1.414-1.415l3.506 3.506l-1.414 1.414z' fill='currentColor'/%3E%3Cpath d='M25 15.005h5v2h-5z' fill='currentColor'/%3E%3Cpath d='M21.687 8.904l3.506-3.506l1.414 1.415l-3.506 3.505z' fill='currentColor'/%3E%3Cpath d='M15 2.005h2v5h-2z' fill='currentColor'/%3E%3C/svg%3E");mask:var(--un-icon) no-repeat;mask-size:100% 100%;-webkit-mask:var(--un-icon) no-repeat;-webkit-mask-size:100% 100%;background-color:currentColor;height:1.2em;width:1.2em;display:inline-block;vertical-align:text-bottom;}.i-carbon-terminal,[i-carbon-terminal=""]{--un-icon:url("data:image/svg+xml;utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='1em' height='1em' preserveAspectRatio='xMidYMid meet' viewBox='0 0 32 32'%3E%3Cpath d='M26 4.01H6a2 2 0 0 0-2 2v20a2 2 0 0 0 2 2h20a2 2 0 0 0 2-2v-20a2 2 0 0 0-2-2zm0 2v4H6v-4zm-20 20v-14h20v14z' fill='currentColor'/%3E%3Cpath d='M10.76 16.18l2.82 2.83l-2.82 2.83l1.41 1.41l4.24-4.24l-4.24-4.24l-1.41 1.41z' fill='currentColor'/%3E%3C/svg%3E");mask:var(--un-icon) no-repeat;mask-size:100% 100%;-webkit-mask:var(--un-icon) no-repeat;-webkit-mask-size:100% 100%;background-color:currentColor;height:1.2em;width:1.2em;display:inline-block;vertical-align:text-bottom;}html,body,#app{height:100%;overflow:hidden}html:not(.dark){color-scheme:light}.dark{color-scheme:dark;background:#080808;color:#fff}.splitpanes__splitter{position:relative}.splitpanes__splitter:before{content:"";position:absolute;left:0;top:0;transition:opacity .4s;background-color:#7d7d7d1a;opacity:0;z-index:1}.splitpanes__splitter:hover:before{opacity:1}.splitpanes--vertical>.splitpanes__splitter:before{left:-10px;right:-10px;height:100%}.splitpanes--horizontal>.splitpanes__splitter:before{top:-10px;bottom:-10px;width:100%}[b~="main"]{--un-border-opacity:1;border-color:rgba(156,163,175,var(--un-border-opacity));--un-border-opacity:0.3;}[p~="x1\.5"]{padding-left:0.375rem;padding-right:0.375rem;}[p~="x2"]{padding-left:0.5rem;padding-right:0.5rem;}[p~="x4"]{padding-left:1rem;padding-right:1rem;}[p~="y0\.5"]{padding-top:0.125rem;padding-bottom:0.125rem;}[p~="y1"]{padding-top:0.25rem;padding-bottom:0.25rem;}[p~="y3"]{padding-top:0.75rem;padding-bottom:0.75rem;}[p~="y4"]{padding-top:1rem;padding-bottom:1rem;}.pl3,[pl3=""]{padding-left:0.75rem;}.children\:my-auto > *,[children\:my-auto=""] > *{margin-top:auto;margin-bottom:auto;}[m~="l-3\.7"]{margin-left:0.925rem;}[m~="r-1\.5"]{margin-right:0.375rem;}.ml-1,[ml-1=""]{margin-left:0.25rem;}.ml2,[ml2=""]{margin-left:0.5rem;}.ml4,[ml4=""]{margin-left:1rem;}.block,[block=""]{display:block;}.inline-block,[inline-block=""]{display:inline-block;}.bg-gray\/10{background-color:rgba(156,163,175,0.1);}.bg-teal5\:10,[bg-teal5\:10=""]{background-color:rgba(20,184,166,0.1);}.b{border-width:1px;border-style:solid;}[b~="b"]{border-bottom-width:1px;border-style:solid;}[b~="r"]{border-right-width:1px;border-style:solid;}.rounded,[rounded=""]{border-radius:0.25rem;}.text-lg,[text-lg=""]{font-size:1.125rem;line-height:1.75rem;}.text-sm,[text-sm=""]{font-size:0.875rem;line-height:1.25rem;}.truncate,[truncate=""]{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}.text-teal5,[text-teal5=""]{--un-text-opacity:1;color:rgba(20,184,166,var(--un-text-opacity));}.italic,[italic=""]{font-style:italic;}[flex~="col"]{flex-direction:column;}.flex-auto,[flex-auto=""]{flex:1 1 auto;}[flex=""],.flex,[flex~="\~"]{display:flex;}.grid,[grid~="\~"]{display:grid;}[grid~="rows-\[max-content\2c 1fr\]"]{grid-template-rows:max-content 1fr;}.gap-3,[flex~="gap-3"]{grid-gap:0.75rem;gap:0.75rem;}.h-full,[h-full=""]{height:100%;}[h~="\31 \.3em"]{height:1.3em;}.cursor-default,[cursor-default=""]{cursor:default;}.select-none,[select-none=""]{user-select:none;}.ws-nowrap,[ws-nowrap=""]{white-space:nowrap;}.of-hidden,[of-hidden=""]{overflow:hidden;}[overflow~="auto"]{overflow:auto;}.filter,[filter=""]{--un-blur:var(--un-empty,/*!*/ /*!*/);--un-brightness:var(--un-empty,/*!*/ /*!*/);--un-contrast:var(--un-empty,/*!*/ /*!*/);--un-grayscale:var(--un-empty,/*!*/ /*!*/);--un-hue-rotate:var(--un-empty,/*!*/ /*!*/);--un-invert:var(--un-empty,/*!*/ /*!*/);--un-saturate:var(--un-empty,/*!*/ /*!*/);--un-sepia:var(--un-empty,/*!*/ /*!*/);--un-drop-shadow:var(--un-empty,/*!*/ /*!*/);filter:var(--un-blur) var(--un-brightness) var(--un-contrast) var(--un-grayscale) var(--un-hue-rotate) var(--un-invert) var(--un-saturate) var(--un-sepia) var(--un-drop-shadow);}.dark .dark\:invert,.dark [dark\:invert=""]{--un-invert:invert(1);}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{d as m,c as k,o as a,a as p,n as b,u,b as B,r as h,e as l,f as x,t as w,F as $,g as R,h as v,i as d,w as f,j as I,k as S,l as L,m as C,p as E,s as y,q as A,v as H,x as M}from"./vendor.a7ab7170.js";const W=function(){const n=document.createElement("link").relList;if(n&&n.supports&&n.supports("modulepreload"))return;for(const e of document.querySelectorAll('link[rel="modulepreload"]'))t(e);new MutationObserver(e=>{for(const o of e)if(o.type==="childList")for(const c of o.addedNodes)c.tagName==="LINK"&&c.rel==="modulepreload"&&t(c)}).observe(document,{childList:!0,subtree:!0});function r(e){const o={};return e.integrity&&(o.integrity=e.integrity),e.referrerpolicy&&(o.referrerPolicy=e.referrerpolicy),e.crossorigin==="use-credentials"?o.credentials="include":e.crossorigin==="anonymous"?o.credentials="omit":o.credentials="same-origin",o}function t(e){if(e.ep)return;e.ep=!0;const o=r(e);fetch(e.href,o)}};W();const U=[],q=m({props:{id:null},setup(s){const n=s,r=k(()=>n.id.split(/\./g).pop()),t=k(()=>{switch(r.value){case"vue":return"i-logos-vue";default:return"i-carbon-document-blank"}});return(e,o)=>(a(),p("div",{class:b(u(t))},null,2))}}),z={open:""},K={"cursor-default":"","select-none":"","text-sm":"",truncate:"",p:"y1"},G={"ml-1":""},J=m({props:{node:null,icon:{default:"i-carbon-folder"}},setup(s){const n=B();return(r,t)=>{const e=h("ModuleTreeNode",!0),o=q,c=h("RouterLink");return a(),p("details",z,[l("summary",K,[l("div",{class:b(s.icon)},null,2),x(" "+w(s.node.name),1)]),(a(!0),p($,null,R(Object.entries(s.node.children),i=>(a(),v(e,{key:i[0],ml2:"",node:i[1]},null,8,["node"]))),128)),(a(!0),p($,null,R(s.node.items,i=>(a(),p("div",{key:i.full,ml4:"",truncate:""},[d(c,{block:"","text-sm":"",p:"x2 y1",rounded:"",to:`/module/${encodeURIComponent(i.full)}`,class:b({"bg-gray/10":i.full===u(n).params.id})},{default:f(()=>[d(o,{id:i.path},null,8,["id"]),l("span",G,w(i.path.split("/").pop()),1)]),_:2},1032,["to","class"])]))),128))])}}});var Q="/__unocss/icon.svg";const X={p:"x4 y3",b:"b main",flex:"","children:my-auto":""},Y=l("div",{flex:"","flex-auto":"","children:my-auto":"","ws-nowrap":""},[l("img",{src:Q,filter:"","dark:invert":"","inline-block":"",h:"1.3em",m:"r-1.5"}),l("div",{"of-hidden":""},[x(" Inspector "),l("sup",{"text-teal5":"","bg-teal5:10":"",p:"x1.5 y0.5",rounded:"",italic:""},"beta")])],-1),Z=m({setup(s){const n=I(),r=S(n);return(t,e)=>(a(),p("nav",X,[Y,l("button",{"text-lg":"","i-carbon-sun":"","dark:i-carbon-moon":"",onClick:e[0]||(e[0]=o=>u(r)())})]))}}),ee="modulepreload",O={},te="/__unocss/",oe=function(n,r){return!r||r.length===0?n():Promise.all(r.map(t=>{if(t=`${te}${t}`,t in O)return;O[t]=!0;const e=t.endsWith(".css"),o=e?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${t}"]${o}`))return;const c=document.createElement("link");if(c.rel=e?"stylesheet":ee,e||(c.as="script",c.crossOrigin=""),c.href=t,document.head.appendChild(c),e)return new Promise((i,V)=>{c.addEventListener("load",i),c.addEventListener("error",V)})})).then(()=>n())},ne="/@vite/client",se=L(),P=L(),re=P.on;oe(()=>import(ne),[]).then(s=>{const n=s.createHotContext("/");n.on("vite:beforeUpdate",r=>{r.updates.forEach(t=>{se.trigger(t)})}),n.on("unocss:config-changed",()=>{P.trigger()})}).catch(s=>{console.error("failed to connect to client vite server, you might need to do manual refresh to see the updates"),console.error(s)});const N="/__unocss_api",T=C(N).json(),j=C(`${N}/overview`,{immediate:!1}).json(),_=T.data;j.data;re(()=>{T.execute(),j.execute()});const g=k(()=>{if(!_.value)return{workspace:{children:{},items:[]},root:{children:{},items:[]}};const s=_.value.modules.map(t=>({full:t,path:t})),n=s.filter(t=>t.full.startsWith(_.value.root)),r=s.filter(t=>!t.full.startsWith(_.value.root));return n.forEach(t=>t.path=t.path.slice(_.value.root.length+1)),{workspace:D(n,"Project Root"),root:D(r,"Disk Root")}});function D(s,n){const r={name:n,children:{},items:[]};function t(e,o,c=r){if(o.length<=1){c.items.push(e);return}const i=o.shift();c.children[i]||(c.children[i]={name:i,children:{},items:[]}),t(e,o,c.children[i])}return s.forEach(e=>{const o=e.path.split(/\//g).filter(Boolean);t(e,o)}),r}const ce={"h-full":"",grid:"~ rows-[max-content,1fr]",b:"r main","of-hidden":""},ie={overflow:"auto",p:"y4",flex:"~ col gap-3"},le=l("div",{"i-carbon-dashboard":""},null,-1),ae=l("span",null," Overview ",-1),ue=l("div",{"i-carbon-terminal":""},null,-1),de=l("span",null," REPL ",-1),pe=l("div",{b:"b main"},null,-1),fe=m({setup(s){return(n,r)=>{const t=Z,e=h("RouterLink"),o=J;return a(),p("div",ce,[d(t),l("div",ie,[d(e,{block:"",to:"/","text-sm":"",m:"l-3.7"},{default:f(()=>[le,ae]),_:1}),d(e,{block:"",to:"/repl","text-sm":"",m:"l-3.7"},{default:f(()=>[ue,de]),_:1}),pe,Object.keys(u(g).workspace.children).length?(a(),v(o,{key:0,node:u(g).workspace,pl3:"",icon:"i-carbon-portfolio"},null,8,["node"])):E("",!0),Object.keys(u(g).root.children).length?(a(),v(o,{key:1,node:u(g).root,pl3:"",icon:"i-carbon-vmdk-disk"},null,8,["node"])):E("",!0)])])}}}),me={"h-full":"","of-hidden":""},_e=m({setup(s){return(n,r)=>{const t=fe,e=h("RouterView");return a(),v(u(y.exports.Splitpanes),{"h-full":"",flex:""},{default:f(()=>[d(u(y.exports.Pane),{size:"15","push-other-panes":!1},{default:f(()=>[d(t)]),_:1}),d(u(y.exports.Pane),{size:"85"},{default:f(()=>[l("div",me,[d(e)])]),_:1})]),_:1})}}}),F=A(_e);F.use(H({history:M(),routes:U}));F.mount("#app");
|