@vitejs/devtools 0.0.0-alpha.9 → 0.1.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/DockIcon-BtMEW4VE.js +97 -0
- package/dist/DockStandalone-CZAqITKs.js +81 -0
- package/dist/LogItem-BTrEubKY.js +205 -0
- package/dist/ToastOverlay-DO3Kl_rY.js +1055 -0
- package/dist/ViewBuiltinLogs-BL373XPJ.js +428 -0
- package/dist/ViewBuiltinTerminals-DdpE1Ftb.js +10409 -0
- package/dist/ViewJsonRender-coidkW9b.js +6835 -0
- package/dist/cli-commands-BRswBnHn.js +180 -0
- package/dist/cli-commands.js +3 -5
- package/dist/cli.js +3 -6
- package/dist/client/inject.js +171 -18
- package/dist/client/standalone/assets/DockStandalone-DDaYjGO1.js +1 -0
- package/dist/client/standalone/assets/LogItem-CKbVrExA.js +1 -0
- package/dist/client/standalone/assets/ViewBuiltinLogs-9oWDdl1G.js +1 -0
- package/dist/client/standalone/assets/ViewBuiltinTerminals-CpexS-ib.js +36 -0
- package/dist/client/standalone/assets/ViewJsonRender-CKPzRgqQ.js +43 -0
- package/dist/client/standalone/assets/dist-JpCJ4ieR.js +1 -0
- package/dist/client/standalone/assets/iconify-C-CPDXMf.js +2 -0
- package/dist/client/standalone/assets/index-3wlMt-60.js +3 -0
- package/dist/client/standalone/assets/index-6F2y1lxr.css +1 -0
- package/dist/client/standalone/assets/runtime-core.esm-bundler-oO31W4LZ.js +1 -0
- package/dist/client/standalone/index.html +7 -3
- package/dist/client/webcomponents.d.ts +21657 -31
- package/dist/client/webcomponents.js +307 -455
- package/dist/config.d.ts +25 -0
- package/dist/config.js +14 -0
- package/dist/dirs.js +7 -3
- package/dist/dist-Cgqg5_oP.js +1113 -0
- package/dist/iconify-YyqAMHKf.js +1625 -0
- package/dist/index.d.ts +256 -13
- package/dist/index.js +2 -4
- package/dist/plugins-Cvy_lJ0L.js +2135 -0
- package/dist/popup-ffZHGm5D.js +358 -0
- package/dist/utils-Csuu5uNf.js +10 -0
- package/dist/{dist-2aLfy0Lc.js → vue.runtime.esm-bundler-D2MZbyFr.js} +1948 -1734
- package/package.json +53 -21
- package/dist/cli-commands-CWESTkWI.js +0 -97
- package/dist/client/standalone/assets/index-CXKamp9k.js +0 -7
- package/dist/client/standalone/assets/index-DULlvzQC.css +0 -1
- package/dist/dirs-DcSK9l9L.js +0 -9
- package/dist/index-C-9eMTqf.d.ts +0 -142
- package/dist/plugins-5VE4Mfdt.js +0 -1365
|
@@ -0,0 +1,97 @@
|
|
|
1
|
+
import { D as openBlock, N as watchEffect, U as ref, d as createBlock, g as createVNode, l as computed, m as createStaticVNode, p as createElementBlock, s as Fragment, v as defineComponent } from "./vue.runtime.esm-bundler-D2MZbyFr.js";
|
|
2
|
+
import { t as getIconifySvg } from "./iconify-YyqAMHKf.js";
|
|
3
|
+
//#region src/client/webcomponents/components/IconifyIcon.vue
|
|
4
|
+
const _hoisted_1$2 = ["innerHTML"];
|
|
5
|
+
const _hoisted_2 = ["src"];
|
|
6
|
+
const _sfc_main$2 = /* @__PURE__ */ defineComponent({
|
|
7
|
+
__name: "IconifyIcon",
|
|
8
|
+
props: { icon: {} },
|
|
9
|
+
setup(__props) {
|
|
10
|
+
const props = __props;
|
|
11
|
+
const isUrlIcon = computed(() => props.icon.includes("/") || props.icon.startsWith("data:") || props.icon.startsWith("builtin:"));
|
|
12
|
+
const iconifyParsed = computed(() => {
|
|
13
|
+
if (isUrlIcon.value) return void 0;
|
|
14
|
+
const match = props.icon.match(/^(?:i-)?([\w-]+):([\w-]+)$/);
|
|
15
|
+
if (!match) return void 0;
|
|
16
|
+
return {
|
|
17
|
+
collection: match[1],
|
|
18
|
+
icon: match[2]
|
|
19
|
+
};
|
|
20
|
+
});
|
|
21
|
+
const iconifyLoaded = ref(void 0);
|
|
22
|
+
watchEffect(async () => {
|
|
23
|
+
if (!iconifyParsed.value) {
|
|
24
|
+
iconifyLoaded.value = void 0;
|
|
25
|
+
return;
|
|
26
|
+
}
|
|
27
|
+
iconifyLoaded.value = await getIconifySvg(iconifyParsed.value.collection, iconifyParsed.value.icon);
|
|
28
|
+
});
|
|
29
|
+
return (_ctx, _cache) => {
|
|
30
|
+
return iconifyParsed.value ? (openBlock(), createElementBlock("div", {
|
|
31
|
+
key: 0,
|
|
32
|
+
innerHTML: iconifyLoaded.value
|
|
33
|
+
}, null, 8, _hoisted_1$2)) : (openBlock(), createElementBlock("img", {
|
|
34
|
+
key: 1,
|
|
35
|
+
src: __props.icon,
|
|
36
|
+
class: "w-full h-full m-auto",
|
|
37
|
+
draggable: "false"
|
|
38
|
+
}, null, 8, _hoisted_2));
|
|
39
|
+
};
|
|
40
|
+
}
|
|
41
|
+
});
|
|
42
|
+
//#endregion
|
|
43
|
+
//#region \0/plugin-vue/export-helper
|
|
44
|
+
var export_helper_default = (sfc, props) => {
|
|
45
|
+
const target = sfc.__vccOpts || sfc;
|
|
46
|
+
for (const [key, val] of props) target[key] = val;
|
|
47
|
+
return target;
|
|
48
|
+
};
|
|
49
|
+
//#endregion
|
|
50
|
+
//#region src/client/webcomponents/components/icons/VitePlusCore.vue
|
|
51
|
+
const _sfc_main$1 = {};
|
|
52
|
+
const _hoisted_1$1 = {
|
|
53
|
+
viewBox: "0 0 22 22",
|
|
54
|
+
fill: "none",
|
|
55
|
+
xmlns: "http://www.w3.org/2000/svg"
|
|
56
|
+
};
|
|
57
|
+
function _sfc_render(_ctx, _cache) {
|
|
58
|
+
return openBlock(), createElementBlock("svg", _hoisted_1$1, [..._cache[0] || (_cache[0] = [createStaticVNode("<g clip-path=\"url(#clip0_2_2)\"><path d=\"M11.85 20.535C11.7881 20.6144 11.7029 20.6726 11.6064 20.7012C11.5098 20.7298 11.4067 20.7276 11.3115 20.6947C11.2163 20.6619 11.1337 20.6001 11.0754 20.5181C11.017 20.436 10.9858 20.3377 10.986 20.237V15.834C10.986 15.5775 10.8841 15.3316 10.7028 15.1502C10.5214 14.9689 10.2755 14.867 10.019 14.867H5.157C5.06821 14.867 4.98114 14.8426 4.90534 14.7964C4.82954 14.7501 4.76795 14.6839 4.72734 14.6049C4.68673 14.526 4.66866 14.4374 4.67513 14.3488C4.6816 14.2603 4.71235 14.1752 4.764 14.103L7.961 9.62801C8.06459 9.48335 8.12626 9.31291 8.13923 9.13546C8.15219 8.95801 8.11594 8.78042 8.03448 8.62224C7.95301 8.46406 7.82948 8.33143 7.67749 8.23893C7.52549 8.14644 7.35093 8.09768 7.173 8.09801H1.29C1.20122 8.09803 1.11414 8.07359 1.03834 8.02736C0.962542 7.98113 0.900953 7.91489 0.86034 7.83594C0.819727 7.75699 0.801662 7.66837 0.80813 7.57982C0.814597 7.49127 0.845347 7.40622 0.897 7.33401L5.04 1.53301C5.08452 1.46999 5.14358 1.41864 5.21217 1.38331C5.28075 1.34797 5.35685 1.32969 5.434 1.33001H17.782C18.175 1.33001 18.404 1.77501 18.175 2.09401L14.978 6.57001C14.521 7.21001 14.978 8.10001 15.766 8.10001H20.627C21.031 8.10001 21.257 8.56401 21.007 8.88201L11.85 20.535Z\" fill=\"#6254FE\"></path><mask id=\"mask0_2_2\" style=\"mask-type:alpha;\" maskUnits=\"userSpaceOnUse\" x=\"0\" y=\"1\" width=\"22\" height=\"20\"><path d=\"M11.85 20.535C11.7881 20.6144 11.7029 20.6726 11.6064 20.7012C11.5098 20.7298 11.4067 20.7276 11.3115 20.6947C11.2163 20.6619 11.1337 20.6001 11.0754 20.5181C11.017 20.436 10.9858 20.3377 10.986 20.237V15.834C10.986 15.5775 10.8841 15.3316 10.7028 15.1502C10.5214 14.9689 10.2755 14.867 10.019 14.867H5.157C5.06821 14.867 4.98114 14.8426 4.90534 14.7964C4.82954 14.7501 4.76795 14.6839 4.72734 14.6049C4.68673 14.526 4.66866 14.4374 4.67513 14.3488C4.6816 14.2603 4.71235 14.1752 4.764 14.103L7.961 9.62801C8.06459 9.48335 8.12626 9.31291 8.13923 9.13546C8.15219 8.95801 8.11594 8.78042 8.03448 8.62224C7.95301 8.46406 7.82948 8.33143 7.67749 8.23893C7.52549 8.14644 7.35093 8.09768 7.173 8.09801H1.29C1.20122 8.09803 1.11414 8.07359 1.03834 8.02736C0.962542 7.98113 0.900953 7.91489 0.86034 7.83594C0.819727 7.75699 0.801662 7.66837 0.80813 7.57982C0.814597 7.49127 0.845347 7.40622 0.897 7.33401L5.04 1.53301C5.08452 1.46999 5.14358 1.41864 5.21217 1.38331C5.28075 1.34797 5.35685 1.32969 5.434 1.33001H17.782C18.175 1.33001 18.404 1.77501 18.175 2.09401L14.978 6.57001C14.521 7.21001 14.978 8.10001 15.766 8.10001H20.627C21.031 8.10001 21.257 8.56401 21.007 8.88201L11.85 20.535Z\" fill=\"#833BFF\"></path></mask><g mask=\"url(#mask0_2_2)\"><g filter=\"url(#filter0_f_2_2)\"><path d=\"M11.4271 17.1119C11.4313 18.412 8.62134 19.475 5.1508 19.4863C1.68026 19.4975 -1.13659 18.4528 -1.14081 17.1527C-1.14503 15.8526 1.66497 14.7896 5.13551 14.7783C8.60605 14.767 11.4229 15.8118 11.4271 17.1119Z\" fill=\"#EDE6FF\"></path></g><g filter=\"url(#filter1_f_2_2)\"><path d=\"M9.48364 9.06048C9.49161 11.5148 3.78614 13.523 -3.25987 13.5459C-10.3059 13.5688 -16.0243 11.5977 -16.0322 9.14332C-16.0402 6.68898 -10.3347 4.6808 -3.28872 4.65792C3.75729 4.63505 9.47567 6.60614 9.48364 9.06048Z\" fill=\"#EDE6FF\"></path></g><g filter=\"url(#filter2_f_2_2)\"><path d=\"M9.53104 8.43813C9.53526 9.7382 3.70543 10.8111 -3.49025 10.8344C-10.6859 10.8578 -16.5226 9.82279 -16.5268 8.52272C-16.531 7.22265 -10.7012 6.1498 -3.50554 6.12644C3.69014 6.10308 9.52682 7.13806 9.53104 8.43813Z\" fill=\"#4E14FF\"></path></g><g filter=\"url(#filter3_f_2_2)\"><path d=\"M11.5916 16.1293C11.5958 17.4293 5.74448 18.5022 -1.47775 18.5256C-8.69997 18.549 -14.5582 17.5141 -14.5624 16.214C-14.5666 14.9139 -8.71523 13.841 -1.493 13.8176C5.72923 13.7942 11.5874 14.8292 11.5916 16.1293Z\" fill=\"#4E14FF\"></path></g><g filter=\"url(#filter4_f_2_2)\"><path d=\"M12.2473 16.6206C12.2515 17.9206 6.40021 18.9935 -0.821978 19.017C-8.04417 19.0404 -13.9023 18.0055 -13.9066 16.7055C-13.9108 15.4054 -8.05945 14.3325 -0.837261 14.309C6.38493 14.2856 12.2431 15.3205 12.2473 16.6206Z\" fill=\"#4E14FF\"></path></g><g filter=\"url(#filter5_f_2_2)\"><path d=\"M14.047 5.7039C14.2411 2.38813 18.6158 -0.0529585 23.8183 0.251568C29.0207 0.556095 33.0808 3.49092 32.8867 6.80669C32.6926 10.1225 28.3179 12.5635 23.1154 12.259C17.913 11.9545 13.8529 9.01966 14.047 5.7039Z\" fill=\"#EDE6FF\"></path></g><g filter=\"url(#filter6_f_2_2)\"><path d=\"M14.7518 7.88531C14.7376 7.06639 18.8396 6.33138 23.9137 6.2436C28.9879 6.15583 33.1129 6.74854 33.127 7.56745C33.1412 8.38637 29.0392 9.12139 23.965 9.20916C18.8909 9.29693 14.7659 8.70422 14.7518 7.88531Z\" fill=\"#4E14FF\"></path></g><g filter=\"url(#filter7_f_2_2)\"><path d=\"M14.7518 7.88531C14.7376 7.06639 18.8396 6.33138 23.9137 6.2436C28.9879 6.15583 33.1129 6.74854 33.127 7.56745C33.1412 8.38637 29.0392 9.12139 23.965 9.20916C18.8909 9.29693 14.7659 8.70422 14.7518 7.88531Z\" fill=\"#4E14FF\"></path></g><g filter=\"url(#filter8_f_2_2)\"><path d=\"M-6.98848 14.7616C-6.18615 15.4233 -1.99229 11.6626 2.37876 6.362C6.74982 1.06138 9.64283 -3.77199 8.84049 -4.43362C8.03816 -5.09525 3.8443 -1.3346 -0.526755 3.96602C-4.89781 9.26665 -7.79082 14.1 -6.98848 14.7616Z\" fill=\"#4E14FF\"></path></g><g filter=\"url(#filter9_f_2_2)\"><path d=\"M13.4305 8.5449C14.2512 9.18361 18.3372 5.30605 22.5568 -0.115883C26.7764 -5.53781 29.5318 -10.4509 28.7111 -11.0896C27.8904 -11.7284 23.8044 -7.8508 19.5848 -2.42887C15.3651 2.99306 12.6098 7.90619 13.4305 8.5449Z\" fill=\"#4E14FF\"></path></g><g filter=\"url(#filter10_f_2_2)\"><path d=\"M14.9501 9.73878C16.4926 10.9392 19.2111 10.026 21.0221 7.69897C22.8331 5.37198 23.0507 2.51245 21.5083 1.31202C19.9658 0.111596 17.2473 1.02485 15.4363 3.35184C13.6253 5.67882 13.4077 8.53835 14.9501 9.73878Z\" fill=\"#2BFDD2\"></path></g><g filter=\"url(#filter11_f_2_2)\"><path d=\"M-7.68233 27.5293C-6.86163 28.168 -2.77563 24.2904 1.44401 18.8685C5.66365 13.4466 8.41904 8.53346 7.59834 7.89474C6.77764 7.25603 2.69164 11.1336 -1.528 16.5555C-5.74764 21.9775 -8.50303 26.8906 -7.68233 27.5293Z\" fill=\"#4E14FF\"></path></g><g filter=\"url(#filter12_f_2_2)\"><path d=\"M-7.68233 27.5293C-6.86163 28.168 -2.77563 24.2904 1.44401 18.8685C5.66365 13.4466 8.41904 8.53346 7.59834 7.89474C6.77764 7.25603 2.69164 11.1336 -1.528 16.5555C-5.74764 21.9775 -8.50303 26.8906 -7.68233 27.5293Z\" fill=\"#4E14FF\"></path></g><g filter=\"url(#filter13_f_2_2)\"><path d=\"M8.26366 23.8563C9.13579 24.535 13.2635 20.6899 17.4831 15.268C21.7028 9.84604 24.4165 4.90047 23.5443 4.22173C22.6722 3.54299 18.5445 7.38811 14.3249 12.81C10.1052 18.232 7.39153 23.1775 8.26366 23.8563Z\" fill=\"#4E14FF\"></path></g><g filter=\"url(#filter14_f_2_2)\"><path d=\"M12.2866 22.5389C13.7846 23.7047 17.4746 21.4689 20.5284 17.5449C23.5822 13.621 24.8434 9.49495 23.3454 8.32912C21.8474 7.16329 18.1574 9.39917 15.1036 13.3231C12.0498 17.247 10.7886 21.3731 12.2866 22.5389Z\" fill=\"#2BFDD2\"></path></g></g></g><defs><filter id=\"filter0_f_2_2\" x=\"-7.68682\" y=\"8.2322\" width=\"25.6599\" height=\"17.8002\" filterUnits=\"userSpaceOnUse\" color-interpolation-filters=\"sRGB\"><feFlood flood-opacity=\"0\" result=\"BackgroundImageFix\"></feFlood><feBlend mode=\"normal\" in=\"SourceGraphic\" in2=\"BackgroundImageFix\" result=\"shape\"></feBlend><feGaussianBlur stdDeviation=\"3.273\" result=\"effect1_foregroundBlur_2_2\"></feGaussianBlur></filter><filter id=\"filter1_f_2_2\" x=\"-22.5782\" y=\"-1.88827\" width=\"38.6079\" height=\"21.9804\" filterUnits=\"userSpaceOnUse\" color-interpolation-filters=\"sRGB\"><feFlood flood-opacity=\"0\" result=\"BackgroundImageFix\"></feFlood><feBlend mode=\"normal\" in=\"SourceGraphic\" in2=\"BackgroundImageFix\" result=\"shape\"></feBlend><feGaussianBlur stdDeviation=\"3.273\" result=\"effect1_foregroundBlur_2_2\"></feGaussianBlur></filter><filter id=\"filter2_f_2_2\" x=\"-20.4548\" y=\"2.19805\" width=\"33.9139\" height=\"12.5647\" filterUnits=\"userSpaceOnUse\" color-interpolation-filters=\"sRGB\"><feFlood flood-opacity=\"0\" result=\"BackgroundImageFix\"></feFlood><feBlend mode=\"normal\" in=\"SourceGraphic\" in2=\"BackgroundImageFix\" result=\"shape\"></feBlend><feGaussianBlur stdDeviation=\"1.964\" result=\"effect1_foregroundBlur_2_2\"></feGaussianBlur></filter><filter id=\"filter3_f_2_2\" x=\"-18.4904\" y=\"9.88925\" width=\"34.01\" height=\"12.5648\" filterUnits=\"userSpaceOnUse\" color-interpolation-filters=\"sRGB\"><feFlood flood-opacity=\"0\" result=\"BackgroundImageFix\"></feFlood><feBlend mode=\"normal\" in=\"SourceGraphic\" in2=\"BackgroundImageFix\" result=\"shape\"></feBlend><feGaussianBlur stdDeviation=\"1.964\" result=\"effect1_foregroundBlur_2_2\"></feGaussianBlur></filter><filter id=\"filter4_f_2_2\" x=\"-17.8346\" y=\"10.3806\" width=\"34.0099\" height=\"12.5648\" filterUnits=\"userSpaceOnUse\" color-interpolation-filters=\"sRGB\"><feFlood flood-opacity=\"0\" result=\"BackgroundImageFix\"></feFlood><feBlend mode=\"normal\" in=\"SourceGraphic\" in2=\"BackgroundImageFix\" result=\"shape\"></feBlend><feGaussianBlur stdDeviation=\"1.964\" result=\"effect1_foregroundBlur_2_2\"></feGaussianBlur></filter><filter id=\"filter5_f_2_2\" x=\"7.4943\" y=\"-6.32009\" width=\"31.9451\" height=\"25.1508\" filterUnits=\"userSpaceOnUse\" color-interpolation-filters=\"sRGB\"><feFlood flood-opacity=\"0\" result=\"BackgroundImageFix\"></feFlood><feBlend mode=\"normal\" in=\"SourceGraphic\" in2=\"BackgroundImageFix\" result=\"shape\"></feBlend><feGaussianBlur stdDeviation=\"3.273\" result=\"effect1_foregroundBlur_2_2\"></feGaussianBlur></filter><filter id=\"filter6_f_2_2\" x=\"10.8237\" y=\"2.30699\" width=\"26.2313\" height=\"10.8388\" filterUnits=\"userSpaceOnUse\" color-interpolation-filters=\"sRGB\"><feFlood flood-opacity=\"0\" result=\"BackgroundImageFix\"></feFlood><feBlend mode=\"normal\" in=\"SourceGraphic\" in2=\"BackgroundImageFix\" result=\"shape\"></feBlend><feGaussianBlur stdDeviation=\"1.964\" result=\"effect1_foregroundBlur_2_2\"></feGaussianBlur></filter><filter id=\"filter7_f_2_2\" x=\"10.8237\" y=\"2.30699\" width=\"26.2313\" height=\"10.8388\" filterUnits=\"userSpaceOnUse\" color-interpolation-filters=\"sRGB\"><feFlood flood-opacity=\"0\" result=\"BackgroundImageFix\"></feFlood><feBlend mode=\"normal\" in=\"SourceGraphic\" in2=\"BackgroundImageFix\" result=\"shape\"></feBlend><feGaussianBlur stdDeviation=\"1.964\" result=\"effect1_foregroundBlur_2_2\"></feGaussianBlur></filter><filter id=\"filter8_f_2_2\" x=\"-11.0501\" y=\"-8.43711\" width=\"23.9523\" height=\"27.2022\" filterUnits=\"userSpaceOnUse\" color-interpolation-filters=\"sRGB\"><feFlood flood-opacity=\"0\" result=\"BackgroundImageFix\"></feFlood><feBlend mode=\"normal\" in=\"SourceGraphic\" in2=\"BackgroundImageFix\" result=\"shape\"></feBlend><feGaussianBlur stdDeviation=\"1.964\" result=\"effect1_foregroundBlur_2_2\"></feGaussianBlur></filter><filter id=\"filter9_f_2_2\" x=\"9.35783\" y=\"-15.0865\" width=\"23.4259\" height=\"27.6282\" filterUnits=\"userSpaceOnUse\" color-interpolation-filters=\"sRGB\"><feFlood flood-opacity=\"0\" result=\"BackgroundImageFix\"></feFlood><feBlend mode=\"normal\" in=\"SourceGraphic\" in2=\"BackgroundImageFix\" result=\"shape\"></feBlend><feGaussianBlur stdDeviation=\"1.964\" result=\"effect1_foregroundBlur_2_2\"></feGaussianBlur></filter><filter id=\"filter10_f_2_2\" x=\"9.99386\" y=\"-3.14457\" width=\"16.4707\" height=\"17.3399\" filterUnits=\"userSpaceOnUse\" color-interpolation-filters=\"sRGB\"><feFlood flood-opacity=\"0\" result=\"BackgroundImageFix\"></feFlood><feBlend mode=\"normal\" in=\"SourceGraphic\" in2=\"BackgroundImageFix\" result=\"shape\"></feBlend><feGaussianBlur stdDeviation=\"1.964\" result=\"effect1_foregroundBlur_2_2\"></feGaussianBlur></filter><filter id=\"filter11_f_2_2\" x=\"-11.755\" y=\"3.89791\" width=\"23.4259\" height=\"27.6282\" filterUnits=\"userSpaceOnUse\" color-interpolation-filters=\"sRGB\"><feFlood flood-opacity=\"0\" result=\"BackgroundImageFix\"></feFlood><feBlend mode=\"normal\" in=\"SourceGraphic\" in2=\"BackgroundImageFix\" result=\"shape\"></feBlend><feGaussianBlur stdDeviation=\"1.964\" result=\"effect1_foregroundBlur_2_2\"></feGaussianBlur></filter><filter id=\"filter12_f_2_2\" x=\"-11.755\" y=\"3.89791\" width=\"23.4259\" height=\"27.6282\" filterUnits=\"userSpaceOnUse\" color-interpolation-filters=\"sRGB\"><feFlood flood-opacity=\"0\" result=\"BackgroundImageFix\"></feFlood><feBlend mode=\"normal\" in=\"SourceGraphic\" in2=\"BackgroundImageFix\" result=\"shape\"></feBlend><feGaussianBlur stdDeviation=\"1.964\" result=\"effect1_foregroundBlur_2_2\"></feGaussianBlur></filter><filter id=\"filter13_f_2_2\" x=\"4.17262\" y=\"0.216058\" width=\"23.4628\" height=\"27.6459\" filterUnits=\"userSpaceOnUse\" color-interpolation-filters=\"sRGB\"><feFlood flood-opacity=\"0\" result=\"BackgroundImageFix\"></feFlood><feBlend mode=\"normal\" in=\"SourceGraphic\" in2=\"BackgroundImageFix\" result=\"shape\"></feBlend><feGaussianBlur stdDeviation=\"1.964\" result=\"effect1_foregroundBlur_2_2\"></feGaussianBlur></filter><filter id=\"filter14_f_2_2\" x=\"7.72776\" y=\"4.09222\" width=\"20.1765\" height=\"22.6836\" filterUnits=\"userSpaceOnUse\" color-interpolation-filters=\"sRGB\"><feFlood flood-opacity=\"0\" result=\"BackgroundImageFix\"></feFlood><feBlend mode=\"normal\" in=\"SourceGraphic\" in2=\"BackgroundImageFix\" result=\"shape\"></feBlend><feGaussianBlur stdDeviation=\"1.964\" result=\"effect1_foregroundBlur_2_2\"></feGaussianBlur></filter><clipPath id=\"clip0_2_2\"><rect width=\"22\" height=\"22\" fill=\"white\"></rect></clipPath></defs>", 2)])]);
|
|
59
|
+
}
|
|
60
|
+
var VitePlusCore_default = /* @__PURE__ */ export_helper_default(_sfc_main$1, [["render", _sfc_render]]);
|
|
61
|
+
//#endregion
|
|
62
|
+
//#region src/client/webcomponents/components/DockIcon.vue
|
|
63
|
+
const _hoisted_1 = { key: 1 };
|
|
64
|
+
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
65
|
+
__name: "DockIcon",
|
|
66
|
+
props: {
|
|
67
|
+
icon: {},
|
|
68
|
+
title: {}
|
|
69
|
+
},
|
|
70
|
+
setup(__props) {
|
|
71
|
+
const props = __props;
|
|
72
|
+
const icon = computed(() => {
|
|
73
|
+
if (typeof props.icon === "string") return {
|
|
74
|
+
dark: props.icon,
|
|
75
|
+
light: props.icon
|
|
76
|
+
};
|
|
77
|
+
return props.icon;
|
|
78
|
+
});
|
|
79
|
+
return (_ctx, _cache) => {
|
|
80
|
+
return icon.value.light === "builtin:vite-plus-core" ? (openBlock(), createBlock(VitePlusCore_default, { key: 0 })) : (openBlock(), createElementBlock("div", _hoisted_1, [icon.value.light === icon.value.dark ? (openBlock(), createBlock(_sfc_main$2, {
|
|
81
|
+
key: 0,
|
|
82
|
+
icon: icon.value.light,
|
|
83
|
+
title: __props.title
|
|
84
|
+
}, null, 8, ["icon", "title"])) : (openBlock(), createElementBlock(Fragment, { key: 1 }, [createVNode(_sfc_main$2, {
|
|
85
|
+
class: "dark-hidden",
|
|
86
|
+
icon: icon.value.light,
|
|
87
|
+
title: __props.title
|
|
88
|
+
}, null, 8, ["icon", "title"]), createVNode(_sfc_main$2, {
|
|
89
|
+
class: "light-hidden",
|
|
90
|
+
icon: icon.value.dark,
|
|
91
|
+
title: __props.title
|
|
92
|
+
}, null, 8, ["icon", "title"])], 64))]));
|
|
93
|
+
};
|
|
94
|
+
}
|
|
95
|
+
});
|
|
96
|
+
//#endregion
|
|
97
|
+
export { VitePlusCore_default as n, export_helper_default as r, _sfc_main as t };
|
|
@@ -0,0 +1,81 @@
|
|
|
1
|
+
import { D as openBlock, M as watch, P as withCtx, U as ref, Y as unref, d as createBlock, f as createCommentVNode, g as createVNode, j as useTemplateRef, l as computed, n as defineCustomElement, p as createElementBlock, s as Fragment, u as createBaseVNode, v as defineComponent, z as markRaw } from "./vue.runtime.esm-bundler-D2MZbyFr.js";
|
|
2
|
+
import { n as filterPopupDockEntry, r as isDockPopupEntryVisible } from "./popup-ffZHGm5D.js";
|
|
3
|
+
import { a as VitePlus_default, c as _sfc_main$2, d as css_default, i as _sfc_main$1, n as _sfc_main$4, r as _sfc_main$3, s as PersistedDomViewsManager, t as _sfc_main$5 } from "./ToastOverlay-DO3Kl_rY.js";
|
|
4
|
+
import "./iconify-YyqAMHKf.js";
|
|
5
|
+
//#region src/client/webcomponents/components/DockStandalone.vue
|
|
6
|
+
const _hoisted_1 = {
|
|
7
|
+
key: 0,
|
|
8
|
+
class: "h-screen w-screen of-hidden"
|
|
9
|
+
};
|
|
10
|
+
const _hoisted_2 = {
|
|
11
|
+
key: 1,
|
|
12
|
+
class: "h-screen w-screen of-hidden grid cols-[max-content_1fr]"
|
|
13
|
+
};
|
|
14
|
+
const _hoisted_3 = { class: "border-r border-base flex flex-col" };
|
|
15
|
+
const _hoisted_4 = { class: "p2 border-b border-base flex" };
|
|
16
|
+
const _hoisted_5 = { class: "transition duration-200 p2" };
|
|
17
|
+
//#endregion
|
|
18
|
+
//#region src/client/webcomponents/components/DockStandalone.ts
|
|
19
|
+
const DockStandalone = defineCustomElement(/* @__PURE__ */ defineComponent({
|
|
20
|
+
__name: "DockStandalone",
|
|
21
|
+
props: { context: {} },
|
|
22
|
+
setup(__props) {
|
|
23
|
+
const context = __props.context;
|
|
24
|
+
const viewsContainer = useTemplateRef("viewsContainer");
|
|
25
|
+
const persistedDoms = markRaw(new PersistedDomViewsManager(viewsContainer));
|
|
26
|
+
const isRpcTrusted = ref(context.rpc.isTrusted);
|
|
27
|
+
context.rpc.events.on("rpc:is-trusted:updated", (isTrusted) => {
|
|
28
|
+
isRpcTrusted.value = isTrusted;
|
|
29
|
+
});
|
|
30
|
+
watch(() => context.docks.entries, () => {
|
|
31
|
+
context.docks.selectedId ||= context.docks.entries[0]?.id ?? null;
|
|
32
|
+
}, { immediate: true });
|
|
33
|
+
const groupedEntries = computed(() => {
|
|
34
|
+
if (isDockPopupEntryVisible("standalone")) return context.docks.groupedEntries;
|
|
35
|
+
return filterPopupDockEntry(context.docks.groupedEntries);
|
|
36
|
+
});
|
|
37
|
+
function switchEntry(id) {
|
|
38
|
+
if (id) context.docks.switchEntry(id);
|
|
39
|
+
}
|
|
40
|
+
return (_ctx, _cache) => {
|
|
41
|
+
return openBlock(), createElementBlock(Fragment, null, [
|
|
42
|
+
!isRpcTrusted.value ? (openBlock(), createElementBlock("div", _hoisted_1, [createVNode(_sfc_main$1, { context: unref(context) }, null, 8, ["context"])])) : (openBlock(), createElementBlock("div", _hoisted_2, [createBaseVNode("div", _hoisted_3, [createBaseVNode("div", _hoisted_4, [createVNode(VitePlus_default, { class: "w-7 h-7 ma" })]), createBaseVNode("div", _hoisted_5, [createVNode(_sfc_main$2, {
|
|
43
|
+
context: unref(context),
|
|
44
|
+
groups: groupedEntries.value,
|
|
45
|
+
"is-vertical": false,
|
|
46
|
+
selected: unref(context).docks.selected,
|
|
47
|
+
onSelect: _cache[0] || (_cache[0] = (e) => switchEntry(e?.id))
|
|
48
|
+
}, {
|
|
49
|
+
separator: withCtx(() => [..._cache[1] || (_cache[1] = [createBaseVNode("div", { class: "border-base border-b w-full my-2" }, null, -1)])]),
|
|
50
|
+
_: 1
|
|
51
|
+
}, 8, [
|
|
52
|
+
"context",
|
|
53
|
+
"groups",
|
|
54
|
+
"selected"
|
|
55
|
+
])])]), createBaseVNode("div", null, [createBaseVNode("div", {
|
|
56
|
+
id: "vite-devtools-views-container",
|
|
57
|
+
ref_key: "viewsContainer",
|
|
58
|
+
ref: viewsContainer,
|
|
59
|
+
class: "pointer-events-auto"
|
|
60
|
+
}, null, 512), unref(context).docks.selected && viewsContainer.value ? (openBlock(), createBlock(_sfc_main$3, {
|
|
61
|
+
key: unref(context).docks.selected.id,
|
|
62
|
+
entry: unref(context).docks.selected,
|
|
63
|
+
context: unref(context),
|
|
64
|
+
"persisted-doms": unref(persistedDoms)
|
|
65
|
+
}, null, 8, [
|
|
66
|
+
"entry",
|
|
67
|
+
"context",
|
|
68
|
+
"persisted-doms"
|
|
69
|
+
])) : createCommentVNode("v-if", true)])])),
|
|
70
|
+
createVNode(_sfc_main$4),
|
|
71
|
+
createVNode(_sfc_main$5, { context: unref(context) }, null, 8, ["context"])
|
|
72
|
+
], 64);
|
|
73
|
+
};
|
|
74
|
+
}
|
|
75
|
+
}), {
|
|
76
|
+
shadowRoot: true,
|
|
77
|
+
styles: [css_default]
|
|
78
|
+
});
|
|
79
|
+
if (!customElements.get("vite-devtools-dock-standalone")) customElements.define("vite-devtools-dock-standalone", DockStandalone);
|
|
80
|
+
//#endregion
|
|
81
|
+
export { DockStandalone };
|
|
@@ -0,0 +1,205 @@
|
|
|
1
|
+
import { A as renderSlot, D as openBlock, Q as toDisplayString, V as reactive, X as normalizeClass, Y as unref, Z as normalizeStyle, d as createBlock, f as createCommentVNode, k as renderList, l as computed, p as createElementBlock, s as Fragment, u as createBaseVNode, v as defineComponent } from "./vue.runtime.esm-bundler-D2MZbyFr.js";
|
|
2
|
+
import { o as useTimeAgo } from "./dist-Cgqg5_oP.js";
|
|
3
|
+
//#region src/client/webcomponents/state/toasts.ts
|
|
4
|
+
const toasts = reactive([]);
|
|
5
|
+
const timers = /* @__PURE__ */ new Map();
|
|
6
|
+
function useToasts() {
|
|
7
|
+
return toasts;
|
|
8
|
+
}
|
|
9
|
+
function addToast(entry) {
|
|
10
|
+
const existing = toasts.find((t) => t.id === entry.id);
|
|
11
|
+
if (existing) {
|
|
12
|
+
existing.entry = entry;
|
|
13
|
+
const timer = timers.get(entry.id);
|
|
14
|
+
if (timer) clearTimeout(timer);
|
|
15
|
+
const timeout = entry.autoDismiss ?? 5e3;
|
|
16
|
+
timers.set(entry.id, setTimeout(dismissToast, timeout, entry.id));
|
|
17
|
+
return;
|
|
18
|
+
}
|
|
19
|
+
const item = {
|
|
20
|
+
id: entry.id,
|
|
21
|
+
entry
|
|
22
|
+
};
|
|
23
|
+
toasts.push(item);
|
|
24
|
+
const timeout = entry.autoDismiss ?? 5e3;
|
|
25
|
+
timers.set(entry.id, setTimeout(dismissToast, timeout, entry.id));
|
|
26
|
+
}
|
|
27
|
+
function dismissToast(id) {
|
|
28
|
+
const idx = toasts.findIndex((t) => t.id === id);
|
|
29
|
+
if (idx !== -1) toasts.splice(idx, 1);
|
|
30
|
+
const timer = timers.get(id);
|
|
31
|
+
if (timer) {
|
|
32
|
+
clearTimeout(timer);
|
|
33
|
+
timers.delete(id);
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
//#endregion
|
|
37
|
+
//#region src/client/webcomponents/state/logs.ts
|
|
38
|
+
let _logsState;
|
|
39
|
+
function useLogs(context) {
|
|
40
|
+
if (_logsState) return _logsState;
|
|
41
|
+
const state = _logsState = reactive({
|
|
42
|
+
entries: [],
|
|
43
|
+
unreadCount: 0
|
|
44
|
+
});
|
|
45
|
+
const entryMap = /* @__PURE__ */ new Map();
|
|
46
|
+
let isInitialFetch = true;
|
|
47
|
+
let lastVersion;
|
|
48
|
+
async function updateLogs() {
|
|
49
|
+
const result = await context.rpc.call("devtoolskit:internal:logs:list", lastVersion);
|
|
50
|
+
let newCount = 0;
|
|
51
|
+
for (const id of result.removedIds) entryMap.delete(id);
|
|
52
|
+
for (const entry of result.entries) {
|
|
53
|
+
const prev = entryMap.get(entry.id);
|
|
54
|
+
if (!prev) {
|
|
55
|
+
newCount++;
|
|
56
|
+
if (isInitialFetch) {
|
|
57
|
+
if (entry.notify && entry.status === "loading") addToast(entry);
|
|
58
|
+
} else if (entry.notify) addToast(entry);
|
|
59
|
+
} else if (entry.notify && JSON.stringify(entry) !== JSON.stringify(prev)) addToast(entry);
|
|
60
|
+
entryMap.set(entry.id, entry);
|
|
61
|
+
}
|
|
62
|
+
state.entries = Array.from(entryMap.values());
|
|
63
|
+
state.unreadCount += newCount;
|
|
64
|
+
lastVersion = result.version;
|
|
65
|
+
isInitialFetch = false;
|
|
66
|
+
}
|
|
67
|
+
context.rpc.client.register({
|
|
68
|
+
name: "devtoolskit:internal:logs:updated",
|
|
69
|
+
type: "action",
|
|
70
|
+
handler: () => updateLogs()
|
|
71
|
+
});
|
|
72
|
+
updateLogs();
|
|
73
|
+
return state;
|
|
74
|
+
}
|
|
75
|
+
function markLogsAsRead() {
|
|
76
|
+
if (_logsState) _logsState.unreadCount = 0;
|
|
77
|
+
}
|
|
78
|
+
//#endregion
|
|
79
|
+
//#region src/client/webcomponents/components/LogItemConstants.ts
|
|
80
|
+
const levels = {
|
|
81
|
+
info: {
|
|
82
|
+
icon: "i-ph:info-duotone",
|
|
83
|
+
color: "text-blue",
|
|
84
|
+
bg: "bg-blue",
|
|
85
|
+
label: "Info"
|
|
86
|
+
},
|
|
87
|
+
warn: {
|
|
88
|
+
icon: "i-ph:warning-duotone",
|
|
89
|
+
color: "text-amber",
|
|
90
|
+
bg: "bg-amber",
|
|
91
|
+
label: "Warning"
|
|
92
|
+
},
|
|
93
|
+
error: {
|
|
94
|
+
icon: "i-ph:x-circle-duotone",
|
|
95
|
+
color: "text-red",
|
|
96
|
+
bg: "bg-red",
|
|
97
|
+
label: "Error"
|
|
98
|
+
},
|
|
99
|
+
success: {
|
|
100
|
+
icon: "i-ph:check-circle-duotone",
|
|
101
|
+
color: "text-green",
|
|
102
|
+
bg: "bg-green",
|
|
103
|
+
label: "Success"
|
|
104
|
+
},
|
|
105
|
+
debug: {
|
|
106
|
+
icon: "i-ph:bug-duotone",
|
|
107
|
+
color: "text-gray",
|
|
108
|
+
bg: "bg-gray",
|
|
109
|
+
label: "Debug"
|
|
110
|
+
}
|
|
111
|
+
};
|
|
112
|
+
const formEntries = {
|
|
113
|
+
server: {
|
|
114
|
+
icon: "i-ph:hexagon-duotone",
|
|
115
|
+
color: "text-green-800 dark:text-green-200",
|
|
116
|
+
label: "Server"
|
|
117
|
+
},
|
|
118
|
+
browser: {
|
|
119
|
+
icon: "i-ph:globe-simple-duotone",
|
|
120
|
+
color: "text-amber-800 dark:text-amber-200",
|
|
121
|
+
label: "Browser"
|
|
122
|
+
}
|
|
123
|
+
};
|
|
124
|
+
function getHashColorFromString(name, opacity = 1) {
|
|
125
|
+
let hash = 0;
|
|
126
|
+
for (let i = 0; i < name.length; i++) hash = name.charCodeAt(i) + ((hash << 5) - hash);
|
|
127
|
+
return `hsla(${hash % 360}, 55%, 55%, ${opacity})`;
|
|
128
|
+
}
|
|
129
|
+
//#endregion
|
|
130
|
+
//#region src/client/webcomponents/components/HashBadge.vue
|
|
131
|
+
const _sfc_main$1 = /* @__PURE__ */ defineComponent({
|
|
132
|
+
__name: "HashBadge",
|
|
133
|
+
props: { label: {} },
|
|
134
|
+
setup(__props) {
|
|
135
|
+
const props = __props;
|
|
136
|
+
const style = computed(() => ({
|
|
137
|
+
color: getHashColorFromString(props.label),
|
|
138
|
+
backgroundColor: getHashColorFromString(props.label, .1)
|
|
139
|
+
}));
|
|
140
|
+
return (_ctx, _cache) => {
|
|
141
|
+
return openBlock(), createElementBlock("span", {
|
|
142
|
+
class: "text-xs px-1 rounded",
|
|
143
|
+
style: normalizeStyle(style.value)
|
|
144
|
+
}, toDisplayString(__props.label), 5);
|
|
145
|
+
};
|
|
146
|
+
}
|
|
147
|
+
});
|
|
148
|
+
//#endregion
|
|
149
|
+
//#region src/client/webcomponents/components/LogItem.vue
|
|
150
|
+
const _hoisted_1 = { class: "flex items-start gap-2 relative" };
|
|
151
|
+
const _hoisted_2 = {
|
|
152
|
+
key: 0,
|
|
153
|
+
class: "flex-none mt-0.5 border-2 border-current border-t-transparent rounded-full animate-spin op50 w-4 h-4"
|
|
154
|
+
};
|
|
155
|
+
const _hoisted_3 = { class: "flex-1 min-w-0" };
|
|
156
|
+
const _hoisted_4 = {
|
|
157
|
+
key: 0,
|
|
158
|
+
class: "text-xs op80 mt-0.5 whitespace-pre-wrap"
|
|
159
|
+
};
|
|
160
|
+
const _hoisted_5 = {
|
|
161
|
+
key: 1,
|
|
162
|
+
class: "flex items-center gap-2 mt-0.5"
|
|
163
|
+
};
|
|
164
|
+
const _hoisted_6 = ["title"];
|
|
165
|
+
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
166
|
+
__name: "LogItem",
|
|
167
|
+
props: {
|
|
168
|
+
entry: {},
|
|
169
|
+
compact: { type: Boolean }
|
|
170
|
+
},
|
|
171
|
+
setup(__props) {
|
|
172
|
+
const props = __props;
|
|
173
|
+
const timeAgo = useTimeAgo(() => props.entry.timestamp);
|
|
174
|
+
return (_ctx, _cache) => {
|
|
175
|
+
return openBlock(), createElementBlock("div", _hoisted_1, [
|
|
176
|
+
createBaseVNode("div", { class: normalizeClass(["w-2px flex-none absolute left-0 top-4px bottom-4px rounded-r", [unref(levels)[__props.entry.level]?.bg || "bg-gray"]]) }, null, 2),
|
|
177
|
+
__props.entry.status === "loading" ? (openBlock(), createElementBlock("div", _hoisted_2)) : (openBlock(), createElementBlock("div", {
|
|
178
|
+
key: 1,
|
|
179
|
+
class: normalizeClass(["flex-none mt-0.5 w-4 h-4", [unref(levels)[__props.entry.level]?.icon, unref(levels)[__props.entry.level]?.color]])
|
|
180
|
+
}, null, 2)),
|
|
181
|
+
createBaseVNode("div", _hoisted_3, [
|
|
182
|
+
createBaseVNode("div", { class: normalizeClass(["truncate text-sm font-medium", [__props.entry.status === "loading" ? "op60" : ""]]) }, toDisplayString(__props.entry.message), 3),
|
|
183
|
+
__props.entry.description ? (openBlock(), createElementBlock("div", _hoisted_4, toDisplayString(__props.entry.description), 1)) : createCommentVNode("v-if", true),
|
|
184
|
+
!__props.compact ? (openBlock(), createElementBlock("div", _hoisted_5, [__props.entry.category ? (openBlock(), createBlock(_sfc_main$1, {
|
|
185
|
+
key: 0,
|
|
186
|
+
label: __props.entry.category
|
|
187
|
+
}, null, 8, ["label"])) : createCommentVNode("v-if", true), (openBlock(true), createElementBlock(Fragment, null, renderList(__props.entry.labels, (label) => {
|
|
188
|
+
return openBlock(), createBlock(_sfc_main$1, {
|
|
189
|
+
key: label,
|
|
190
|
+
label
|
|
191
|
+
}, null, 8, ["label"]);
|
|
192
|
+
}), 128))])) : createCommentVNode("v-if", true)
|
|
193
|
+
]),
|
|
194
|
+
!__props.compact ? (openBlock(), createElementBlock("span", {
|
|
195
|
+
key: 2,
|
|
196
|
+
class: "text-xs op40 flex-none",
|
|
197
|
+
title: new Date(__props.entry.timestamp).toLocaleString()
|
|
198
|
+
}, toDisplayString(unref(timeAgo)), 9, _hoisted_6)) : createCommentVNode("v-if", true),
|
|
199
|
+
renderSlot(_ctx.$slots, "actions")
|
|
200
|
+
]);
|
|
201
|
+
};
|
|
202
|
+
}
|
|
203
|
+
});
|
|
204
|
+
//#endregion
|
|
205
|
+
export { levels as a, dismissToast as c, getHashColorFromString as i, useToasts as l, _sfc_main$1 as n, markLogsAsRead as o, formEntries as r, useLogs as s, _sfc_main as t };
|